# Variable in Flash 5

**URL:** <https://forum.kirupa.com/t/variable-in-flash-5/99160>\
**Category:** Uncategorized\
**Created:** [January 15, 2004, 9:40am UTC](https://forum.kirupa.com/t/variable-in-flash-5/99160 "2004-01-15T09:40:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemchooi](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@clemchooi](https://forum.kirupa.com/u/clemchooi)\
**Post date:** [January 15, 2004, 9:40am UTC](https://forum.kirupa.com/t/variable-in-flash-5/99160/1 "2004-01-15T09:40:54Z")

</div>

Hi everyone,

I got one problem about variable in flash. When the Director send a variable command to flash how do I tell the flash to jump to next label?

// speaker is variable from director

onClipEvent (enterFrame) {

```
if (speaker == "sound_on") {

	_root.speak09.gotoAndStop("onn");
}
if (speaker == "sound_off") {

	_root.speak09.gotoAndStop("off");
}

```

}

Please refer to the fla file. Your reply will be kindly appreciate.
