I'm trying to add this feature to one of my facebook applications, the upload script allows gif and jpeg but facebook doesn't allow gif animation on the profile unless it is flash so I'm looking to transform image type to flash type.
Yes, and you could use a single Flash file that displays images with a parameter that collects the image location and name and displays that image.
So you have the flash file 'image.swf' and your image is stored in the 'images/' folder and your image name is 'gif_animation.gif' you would have 'image.swf?image=images/gif_animation.gif'. I would suggest Googling 'Flash Gallery' or 'Display Images In Flash' or 'Dynamic Flash Images'.
You can get an upload code from anywhere, just google 'PHP Upload'!