variable problems
i have a movie(‘MY RANDOM.swf’) that has an array loading movies into an empty movieclip, this movie(‘MY RANDOM’)
is on level 3. within the arrayed movie button with a set variable: _level3.mtclip.current_selection = “sound”;.
i would like this button to load 3 external movies if pressed (load movie1, then after movie 1 is loaded, load 2 & 3 ).
currently it opens one movie but the other 2 are a struggle.
this is the script i have for the frame with the variable:
_level3.mtclip.current_selection = “sound”;
this is the script inside the button:
on (release) {
_level3.mtclip.current_selection = "sound";
unloadMovieNum(2);
unloadMovieNum(3);
loadMovieNum("work_box_1.swf", 6);
}
}
this is the script in a frame in the first loaded movie (work_box_1.swf):
// I also don't think i am setting the variable
correctly, if i am, i don't think i am addressing the variable with other movies correctly.
_level3.current_selection = "sound";
if (_level3.current_selection == "sound") {
//I want the script to say 'if "sound" button has been pressed, load the movies below
loadMovieNum("sound_box.swf", 9);
loadMovieNum("sound_box_low.swf", 10);
_level3.current_selection = "sound";
}
i cannot get this to work, please help.
thanks.