Flash MX – I am working on a file where I am loading several different movies. When it loads, the user clicks on button 1 and sees movie 1, clicks “back” and goes to the main animation; clicks button 2 and watches movie 2, etc.
OK, it works, but I need to find a way when the user clicks the “back” button to go to the end of the main animation, not watch it from the beginning. Is there a way I can do that?
For the “back” button I use:
on (release) {
loadMovieNum(“intro.swf”, 3);
}
I tried:
On frame 1 of the main movie:
firstTime=true;
And in the intro movie I added this action:
_root.firstTime=false;
On the first frame of the intro movie:
if (_root.firstFrame==false) {
gotoAndPlay(“end”);
}
But for some reason it’s not working. What am I doing wrong? Here is the original file:
http://www.2funzone.com/intro.fla