# End Movie Timer

**URL:** <https://forum.kirupa.com/t/end-movie-timer/97768>\
**Category:** Uncategorized\
**Created:** [December 29, 2003, 7:49am UTC](https://forum.kirupa.com/t/end-movie-timer/97768 "2003-12-29T07:49:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [December 29, 2003, 7:49am UTC](https://forum.kirupa.com/t/end-movie-timer/97768/1 "2003-12-29T07:49:44Z")

</div>

I’m trying to make a timer for a movie, so far i have AS like this on a MC that is playing…

[AS]

onClipEvent(enterFrame) {

```
     timer = getTimer()
     rtime = Math.round(timer/1000)
     _root.frameText.text = "Current Frame: " + _currentframe;
     _root.timebox.text = "Seconds elapsed: " + rtime;

```

}

[/AS]

What i want to know… How can i get the timer to stop counting when this mc gets to the last frame ? and restart when if it’s played over again.
