# Timer

**URL:** <https://forum.kirupa.com/t/timer/20896>\
**Category:** Uncategorized\
**Created:** [May 14, 2003, 2:41pm UTC](https://forum.kirupa.com/t/timer/20896 "2003-05-14T14:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fried](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fried](https://forum.kirupa.com/u/fried)\
**Post date:** [May 14, 2003, 2:41pm UTC](https://forum.kirupa.com/t/timer/20896/1 "2003-05-14T14:41:16Z")

</div>

timer = int(80-(getTimer()-/:starttime)/1000);  
if (Number(timer) == 0) {  
with (\_root) {  
gotoAndPlay(70);  
}  
timer = 0;  
}

Above is my code on a frame in a movie clip. The movie clip contains a dynamic text box that counts down. The variable name and the name of the clip is timer. when the timer reaches 0 it is supposed to go frame 70 which says sorry you did not make it, instead it goes to the frame that says congratulations… What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 4:45pm UTC](https://forum.kirupa.com/t/timer/20896/2 "2003-06-02T16:45:36Z")

</div>

is frame 71 the one that says, ‘congratulations’? If so, you might want ot use gotoAndStop(70); instead of gotoAndPlay(70);
