3 Replies Latest reply on Nov 17, 2015 7:43 AM by kglad

    FLASH AS2 Controlling main swf plaback from loaded swf

    lauraa51823306 Level 1

      Hello,

       

      I have two swf files. The main swf (main.swf) that loads another swf (external.swf).

      Current code in my main swf that loads the external swf is:

       

      stop();

      this.createEmptyMovieClip ("holder", 1);

      holder.loadMovie ("content/swf/M01/disclaimer.swf");

       

      Then the loaded swf should unload on a click event and the main swf movie should resume play.

      The code in that swf file is:

      on (release) {

      _level0.gotoAndPlay("hideMSG");

      _parent.unloadMovie("content/swf/M01/disclaimer.swf",1);

      }

       

      The external swf loads and unloads perfectly, but the main movie does not seem to resume.

      When I try to use _level0.play, it seems to reload and restart the main.swf file.

       

      Any help would be greatly appreciated.

      Laura