5 Replies Latest reply on Oct 21, 2009 10:41 AM by kglad

    How to restart SWF within Movie Clip (loaded via .loadmovie)

    Ginger85

      Hello,

       

      I have a flash document that is calling an .swf file into a movie clip via the .loadmovie command.  The .swf plays all the way through in the movie clip, but it has problems with the "play again" button at the end. It is not letting go of all the actions from the first play and doesn't reload properly.  The .swf restarts perfectly by itself, it uses this code to replay:

       

      on(release){

      _root.gotoAndPlay(1);

      }

       

      but once the .swf is loaded into the main flash file, the "play again" button doesn't work anymore.

       

      Can anyone please suggest actionscript that I can apply to the button at the end of the .swf that will allow it to replay when it is loaded into the movieclip in the main .fla file?

       

      Thank you very much in advance,

       

      Ginger