Defining variables/actions in external movies

Hey everybody,

I have a question about movies loaded to the main movie via loadMovieNum.

  1. I have a movie, called “index.swf”, another movie called “main.swf”, and another movie called “about.swf”

  2. On the only frame in “index.swf” I have the code

loadMovieNum(“main.swf”,1)

  1. On a specified frame in “main.swf” I have the code

loadMovieNum(“about.swf”,2)

  1. In the movie “main.swf” I have a button with this code

[quote]
on(press){
//to unload movie “about.swf”
unloadMovieNum(2);
//to continue to the next frame of “main.swf”
gotoAndPlay(19);
//code related to “main.swf”
var skip2:Boolean = new Boolean();
skip2=true;
}

  1. I do not want “about.swf” to simply unload and disappear though. I would like for the button in “main.swf” to be able to create a Boolean value within “about.swf” and tell it to play the next frame and finish playing the movie to the end before unloading the movie. With the parts I don’t know actionscript syntax for, the English translation of the code might look like what is between the english tags:

on(press){
english Create Boolean variable in current frame of “about.swf”;
play next frame of “about.swf”;
only when “about.swf” is complete (has reached its final frame) then do next
line of code on this button;english
unloadMovieNum(2);

gotoAndPlay(19);
  
var skip2:Boolean = new Boolean();
skip2=true;

}

I hope the idea of the english tags help and don’t confuse. Thanks for reading! I’m a complete amateur at this, but I’m not just copying code to do something. I’m learning how to apply this code in multiple ways, so I hope no one finds me annoying. This forum is great.