# Dynamic varibles

**URL:** <https://forum.kirupa.com/t/dynamic-varibles/129503>\
**Category:** Uncategorized\
**Created:** [November 24, 2004, 3:55pm UTC](https://forum.kirupa.com/t/dynamic-varibles/129503 "2004-11-24T15:55:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)\
**Post date:** [November 24, 2004, 3:55pm UTC](https://forum.kirupa.com/t/dynamic-varibles/129503/1 "2004-11-24T15:55:12Z")

</div>

Hi All,

I`m working on a site with a xml menu. When clicking on a menu point in the nav. this is part of the script which is executed:

function executeAction(arg){  
\_level.play();  
display = arg;  
\_global.select=\<arg\> OR A VARIABLE depending on the arg;  
}

then in the main movie (the nav is external) I have a script that checks the variable and according to which one, it should go a certain frame or scene.

if(\_global.select==\<arg\> OR VARIABLE){  
nextFrame();  
// or gotoAndPlay(); //or whatever  
}else{  
stop();  
}

Naturally this does not work… any ideas?

Thanks in advance,  
m.
