# gotoAndPlay - errors!

**URL:** <https://forum.kirupa.com/t/gotoandplay-errors/187786>\
**Category:** Uncategorized\
**Created:** [May 2, 2006, 10:17am UTC](https://forum.kirupa.com/t/gotoandplay-errors/187786 "2006-05-02T10:17:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UserName2](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@UserName2](https://forum.kirupa.com/u/UserName2)\
**Post date:** [May 2, 2006, 10:17am UTC](https://forum.kirupa.com/t/gotoandplay-errors/187786/1 "2006-05-02T10:17:25Z")

</div>

before you all shout - i am new to this so be gentle…

I have a variable set in my code navigationNum and what i want to do is gotoAndPlay a scene of that number.

So for example with out the variable name it would be:

\_root.gotoAndPlay(“1”);

what i want to do and cant figure out is

\_root.gotoAndPlay(navigationNum); but for it to go to “1”.

It might seam really basic but i am struggling ☹
