If I load animated GIF via …
_root.myloader.loadMovie("p1.GIF");
will I see the animation in the final SWF. Or do I have to animated the GIF in Flash? I am using AS2 in Flash 8.
If I load animated GIF via …
_root.myloader.loadMovie("p1.GIF");
will I see the animation in the final SWF. Or do I have to animated the GIF in Flash? I am using AS2 in Flash 8.
The loadMovie method will only show the first frame, sadly. But if you import the GIF into a Flash file with File > Import > Import to Stage, Flash will automatically separate each frame on the timeline for you, essentially animating the GIF in Flash. You could save this animation in a movieclip and attach to the stage dynamically (or just drag it on to the stage of course), or if you want to load it from an external file, publish the animation as a SWF, and load that file with loadMovie.
:: Copyright KIRUPA 2024 //--