# \[FMX\] Simple ? Variable issue

**URL:** <https://forum.kirupa.com/t/fmx-simple-variable-issue/66324>\
**Category:** flash\
**Created:** [October 4, 2004, 9:48pm UTC](https://forum.kirupa.com/t/fmx-simple-variable-issue/66324 "2004-10-04T21:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmethods](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dmethods](https://forum.kirupa.com/u/dmethods)\
**Post date:** [October 4, 2004, 9:48pm UTC](https://forum.kirupa.com/t/fmx-simple-variable-issue/66324/1 "2004-10-04T21:48:05Z")

</div>

I have a dropdown menu in my main movie with buttons like so…

onClipEvent (mouseUp) {  
\_root.Flabel = 25;  
}

After clicking the button it sets the variable and an external movie is loaded.

Within the external movie the variable is called here

\_root.contents.gotoAndStop(\_root.FLabel);

This all works fine and dandy but I want to have several buttons go to different frames. Right now if I add this to another button:

ie onClipEvent (mouseUp) {  
\_root.Flabel = 17;  
}

The variable doesn’t get replaced. It just stays set to whatever the first buttons variable is set to. Shouldn’t the mouseUp automatically change the variable when it’s clicked. Not sure why this doesn’t work.

---

<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:** [October 4, 2004, 9:55pm UTC](https://forum.kirupa.com/t/fmx-simple-variable-issue/66324/2 "2004-10-04T21:55:19Z")

</div>

Try using global variables?

:hr:
