2 Replies Latest reply on Aug 1, 2009 11:59 AM by jshrek

    loadMovie won't play animated gifs but swf plays fine

    jshrek

      I am using Flash CS3 with ActionScript 2.

       

      My program so far succesfully can load into a movieClip (using loadMovie) external .jpg & .png & .gif (non-animated) and displays them properly. I can also have it load in an external .swf and get it to play properly. The only problem I have is with animated gifs... they load in but then only show the first frame/animation (even when using play() ).

       

      Is there a different method besides play() to get a movie clip with an animated gif loaded into it to play?

       

      This is only a sample, this is not the working code (it's very long so did not want to post it)... these are just the main calls that will work for the .swf file, so I thought they would work for the animated gif as well.

      this.createEmptyMovieClip("myMC", 1);

      myMC.loadMovie("filename.gif",1);

      myMC.play();

       

      Again, my 'real code' will load and display static .jpg .png or .gif files fine, as well it will load and play .swf files fine... it's just animated gifs that don't play.

       

      My full code is here, if you want to look at it:

      http://forums.adobe.com/thread/467815

       

      Thanks