Variable control problems

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.

Please post the first block of text again, I can’t make anything out of it. An arrayed movieclip ? An array loading movies ? The arrayed movie button ?

i just mean that the ‘MY RANDOM.swf’ loads a series of different movies into a empty movieclip…it has a random function, which uses a new array function ( i guess i should’ve never mentioned that part ) i don’t think it effects my problem at all.

sorry.

You can always load into movieclips instead of into levels. I think that will be easier to do instead of using levels. Use the same syntax as you used to load the random movie: holder.loadMovie(“yourswf.swf”); Also, have a look at the “Creating a Full Flash site” tutorial on kirupa.com :slight_smile: