HomeAfter Sale Support Working with Flash Advanced How to go back to the main scene in flash

How to go back to the main scene in flash


Q: Once an external SWF file is loaded with the main movie there is another button that I would like to close out of the SWF file and go back to the main movie.

A: If the button is within the loaded movie you should use this action script:


on(release)
{
this.unloadMovie();
}


If the button is within the main movie, please use the following script:


on(release)
{
_root.Contents.unloadMovie();
}



See also:

How to go back to a specific place in a movie demo movie
How to skip a flash movie demo movie
How to skip a flash movie (alternative) demo movie