I have a movie and when I click on the button it loads a new movie .swf onto the main timeline on level 1 - that’s good, my problem is…
I want to click on the button of the movie just loaded, unload the movie (thats fine), and then make it go to a frame number or lable of the main time line and play on load …
Its the second one … not sure if I am explaining it very well
I have one the main timeline runing which has a button.
I click on it which loads a movie .swf file that movie runs and also has a button … when you click the button of this loaded movie I want it to unload the movie from the level which is one and move to a frame number 65 and play from there…
So when you unload that second movie, whereabouts does the original return to? The same place you left off?
If that’s the case, then you could use a flag of some kind, to determine whether or not the second movie has been unloaded, and if that’s true, gotoAndPlay frame 65…
This one, you set it in your original movie to be 0 to start with, so like: [AS]movieflag = 0;[/AS] Now, the code for the button should have your loadMovie statement inside, as well as this: [AS]on (release) {
movieflag = 1;
loadMovieNum(“yourMovie”, 1);
} [/AS] Then the new movie will load, play and close. When it closes and returns to the original, you’ll need to test for the contents of the movieflag. So Just add a conditional if statement to check it inside and onEnterFrame() event handler.