Copy link to clipboard
Copied
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
No, there is no stop in that frame, there's actually a play(); which is exactly what I want.
I managed to get it working using variables instead.
Thanks,
Laura
Copy link to clipboard
Copied
I am not sure but maybe there's a stop() method on the frame "hideMSG" try to go to the next frame and play.
Copy link to clipboard
Copied
No, there is no stop in that frame, there's actually a play(); which is exactly what I want.
I managed to get it working using variables instead.
Thanks,
Laura
Copy link to clipboard
Copied
if holder is on the main timeline of your level0 swf, in the loaded swf you would use:
on (release) {
_level0.gotoAndPlay("hideMSG");
_level0.holder.unloadMovie();
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now