# Simple problem with goto

**URL:** https://forum.kirupa.com/t/simple-problem-with-goto/172155
**Category:** flash
**Created:** [December 12, 2005, 12:34am UTC](https://forum.kirupa.com/t/simple-problem-with-goto/172155 "2005-12-12T00:34:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zimmermann](https://avatars.discourse-cdn.com/v4/letter/z/f19dbf/32.png) [@Zimmermann](https://forum.kirupa.com/u/Zimmermann)
#### Post date: [December 12, 2005, 12:34am UTC](https://forum.kirupa.com/t/simple-problem-with-goto/172155/1 "2005-12-12T00:34:23Z")

</div>

I have these 5 scenes (“start”, “game1”, “game2”, “game3”, “end”).

For some reason these lines of code either don’t work at all or sends you to a wrong scene and frame:

```auto
gotoAndStop("game1", 1);
gotoAndStop(2);

```

Putting \_root in front of them doesn’t work. I’m now using nextFrame() instead, but it doesn’t work all the time.
