# A little help

**URL:** <https://forum.kirupa.com/t/a-little-help/132458>\
**Category:** Uncategorized\
**Created:** [December 28, 2004, 9:28pm UTC](https://forum.kirupa.com/t/a-little-help/132458 "2004-12-28T21:28:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nizam\_Rahman](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@Nizam\_Rahman](https://forum.kirupa.com/u/Nizam_Rahman)\
**Post date:** [December 28, 2004, 9:28pm UTC](https://forum.kirupa.com/t/a-little-help/132458/1 "2004-12-28T21:28:54Z")

</div>

Background; I want to load a global variable from a button action, and use this global variable to point to a frame named with what I’m gonna set the variable to, for instance a global variable of 1 will trigger a movie clip with a to play to a frame named 1.

I’ve set \_global.x = 1 from a button instance withing an on(rollOver) block, and it shows up fine through trace(\_global.x) from within a separate movie clip instance (within the same scene/timeline), but when I tried to use it in gotoAndPlay using the syntax gotoAndPlay(\_global.x) it doesn’t work. I’m sure I’m doing something wrong but I just don’t know what. Help please?
