# Help using variables to navigate

**URL:** <https://forum.kirupa.com/t/help-using-variables-to-navigate/214249>\
**Category:** Uncategorized\
**Created:** [January 26, 2007, 5:44pm UTC](https://forum.kirupa.com/t/help-using-variables-to-navigate/214249 "2007-01-26T17:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrismeisner](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@chrismeisner](https://forum.kirupa.com/u/chrismeisner)\
**Post date:** [January 26, 2007, 5:44pm UTC](https://forum.kirupa.com/t/help-using-variables-to-navigate/214249/1 "2007-01-26T17:44:38Z")

</div>

ok so i have my menubar movieclip with movie clip nav buttons inside with code like this :

on (release) {  
\_root.section=“gallery”;

```
if (_root._currentframe == 55) 
{}

if (_root._currentframe == 20) 
{_root.gotoAndPlay("fade");}

if (_root._currentframe == 80) 
{_root.gotoAndPlay(81);}

```

}

then on my \_root timeline i have simple code like this :

gotoAndPlay(section);

this works fine for the first section , it’ll jump from the home page to the 1st designated section fine , but wont jump to the section further down the timeline when you hit that movie lip . it just freezes at the gotoAndPlay(section); frame .

sorry if this doesnt make sense , i just dont know why a script will work perfectly on one movieclip , and freeze on an identical one .
