Hello all,

I have two pausing keyframe on my timeline. On the first pause frame 15 (pause for 60sec then go frame 100), I have a button, when I click on it, it jumps to frame 50 (pause for 60sec then go frame 100), when I click the button on frame 50, it jumps back to frame 15. So it can jump back and forth.

My question is I would like to know how can I clear the timer each time when I jump to the pauses. Right now the code I have doesn't do that, the timer keeps on going so when I jump to frame 50, it's still counting from the first timer in frame 15. A little bit messed up.

Here's my code:

stop();
clearTimeout(my_timedProcess)
function wait() {
gotoAndPlay(100);
}
my_timedProcess = setTimeout(this, 'wait', 60000);

Would be great if anyone can help.

Ka-ka