Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unloadMovieNum(0)

Status
Not open for further replies.

jzauner

Technical User
Feb 21, 2006
22
US
Just started learning Flash a couple weeks ago. Made good progress up to now.

The site i'm working on currently requires loading many movies, but none at the same time. In other words, i want only one movie running at a time. So, upon loading one movie, how do i unload the previous.

Here's an example of what's not working:
on (release) {
loadMovieNum("/site/flash/seatOne.swf", 50);
unloadMovieNum(0);
}

The above seems to unload all movies, leaving nothing.

Here's the link to the site:
Here's the navigation instructions: rollOver "cloud9", clickOn "cruiser", rollOver the first saddle in the upper left corner and click -- screen goes to background color.

I appreciated the help.
 
I'm no flash expert, but couldn't you unload before you load?

Code:
on (release) {
    unloadMovieNum(0);
    loadMovieNum("/site/flash/seatOne.swf", 50);
}

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Using unloadMovieNum(0) simply unloads your main movie located on level 0, thus as you've discovered, unloading any other movie loaded on any other level with it.

Simply always load the next movie on the same level... It will automatically "unload" the previous movie when you load the next one.

Or load all your movies on level 0...

on (release) {
loadMovieNum("/site/flash/seatOne.swf", 0);
}

Thus each movie loaded becomes the main movie, one after the other...

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
on (release) {
    loadMovieNum("/site/flash/seatOne.swf", 0);
}


That did it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top