Reputation: 3324
Is it possible? If so, how can I write such code?
E.g. I have files called image.gif, image2.gif, someother.gif etc. and these files are all animated gifs.
I would like to import it somehow in flash using actionscript, so actionscript grab all gifs in the folder he is located and display them below each other automatically.
The problem is is it possible so they are doing they own animation inside flash?
I would like to make a protected flash container for my gif banners.
thanks for any suggestion how can I do such thing.
Upvotes: 0
Views: 1920
Reputation: 51867
I recommend using Thibault Imbert's GIF Player library.
Follow the examples/documentation that come with the library, it's fairly straight forward:
var gifImage:GIFPlayer = new GIFPlayer();
addChild ( gifImage );
gifImage.load ( new URLRequest ("animation.gif") );
gifImage.play();
I've used it about 4 years ago for a uni project and remember it was easy to pickup.
Regarding the use, it doesn't look like fun:
Upvotes: 2