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

.

hello kirupa gurus

got a very simple but very odd problem…

frame 1 has an action script as such:

stop();


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


setTimeout(goon,5000);

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

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

.