PDA

View Full Version : Telling a loaded .swf to unload itself


Adrenaline
08-30-2003, 07:01 PM
I load an .swf into the main movie using:

loadMovieNum("Blah.swf", 14);

I have a button inside that movie that when clicked I want it to unload itself.

I tried:

on (release) {
unloadMovie("level14");
}
//and
on (release) {
unloadMovieNum(14)
}

I have no idea why it doesn't work:confused:

pellepiano
08-30-2003, 07:43 PM
The last one is the correct one.

on (release) {
unloadMovieNum(14)
}

The only reason it should not work if you are loaing it in another level , as that code can be placed anywhere on any _level and work. Have you tried to specify another level where there is a swf file loaded?

Adrenaline
08-30-2003, 09:16 PM
wow! So I changed the load and unload level to 7, and it worked! So I changed it back to 14 and it still worked! What was the problem? Your guess was as good as mine. Thanks