# Goto and stop... but it doesn't saty there?

**URL:** <https://forum.kirupa.com/t/goto-and-stop-but-it-doesnt-saty-there/328168>\
**Category:** Uncategorized\
**Created:** [April 23, 2012, 9:45pm UTC](https://forum.kirupa.com/t/goto-and-stop-but-it-doesnt-saty-there/328168 "2012-04-23T21:45:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![racagiale](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@racagiale](https://forum.kirupa.com/u/racagiale)\
**Post date:** [April 23, 2012, 9:45pm UTC](https://forum.kirupa.com/t/goto-and-stop-but-it-doesnt-saty-there/328168/1 "2012-04-23T21:45:57Z")

</div>

.

hello kirupa gurus

got a very simple but very odd problem…

frame 1 has an action script as such:

```auto
stop();

function goon():Void{
_root.gotoAndPlay(2);
}

setTimeout(goon,5000);

```

also a button that jumps to frame 5 with this simple code:

```auto
on (release){
    gotoAndStop(5);
}

```

problem is that it doesn’t stay on frame 5, which has a simple stop(); function, but jumps back to frame 2.

seems like the setTimeout command carries on to frame 5… but jumping to frm 5 from frame 2 which does not have the setTimeout command works just as expected.

any idea how to fix this?

many thanx in advance  
racagiale

.
