PDA

View Full Version : unloading movie from variable


pdh
08-06-2001, 05:54 AM
i have a movie ("mod1.swf") loaded into a blank movie clip (blank_mod1). from a button within a movie clip on the main timeline, i would like to unload this movie from a variable (currentMod). the reason why i need to unload from a variable is that i need to unload different movies depending upon which movie you are in (i change the variable definition during the timeline).

what i have done is load a movie and define the currentMod variable to be blank_mod1. from the button, i try to unload the movie with:

unloadMovie (_root.currentMod);

this does not work. it does work, however, when i unload the movie directly such as:

unloadMovie ("_root.blank_mod1");

i have tried different versions with/without quotes. no luck. anyone have some advice??? (please??)

thanks.

Jesse
08-07-2001, 04:13 AM
notice that it works with "_root." but you variable string is only "blank_mod1". Make it "_root.blank_mod1" then using a variable it should work fine