# Variable control problems

**URL:** <https://forum.kirupa.com/t/variable-control-problems/35528>\
**Category:** Uncategorized\
**Created:** [November 14, 2003, 10:57pm UTC](https://forum.kirupa.com/t/variable-control-problems/35528 "2003-11-14T22:57:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jondj24](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jondj24](https://forum.kirupa.com/u/jondj24)\
**Post date:** [November 14, 2003, 10:57pm UTC](https://forum.kirupa.com/t/variable-control-problems/35528/1 "2003-11-14T22:57:46Z")

</div>

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:

```auto

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):

```auto

// 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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 7:59am UTC](https://forum.kirupa.com/t/variable-control-problems/35528/2 "2003-11-15T07:59:25Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 1:22am UTC](https://forum.kirupa.com/t/variable-control-problems/35528/3 "2003-11-16T01:22:48Z")

</div>

yeah, sorry about that, i was kinda in a rush. but here it is:

i have a movie(‘MY RANDOM.swf’) that is arrayed, loading movies into an empty movieclip, this movie(‘MY RANDOM’)  
is on level 3.

within the arrayed movie is a 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.

i cleared it up a little bit, i hope it is understandable now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 10:36am UTC](https://forum.kirupa.com/t/variable-control-problems/35528/4 "2003-11-16T10:36:51Z")

</div>

What do you mean with an arrayed movie ??
