# movieTimer

**URL:** <https://forum.kirupa.com/t/movietimer/40386>\
**Category:** flash\
**Created:** [January 18, 2004, 2:24am UTC](https://forum.kirupa.com/t/movietimer/40386 "2004-01-18T02:24:21Z")\
**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:** [January 18, 2004, 2:24am UTC](https://forum.kirupa.com/t/movietimer/40386/1 "2004-01-18T02:24:21Z")

</div>

I’m trying to make a movie timer, to keep track of seconds elapsed on a MC, i’m trying to use this function, based on a previous post by senecular for voets counting up timer. this is what i have so far, but i’m not sure if i’m understanding it, or using it correctly. So here it is:

[AS]

runTimer = function() {  
if(\_root.ball.\_currentframe \>= 1 && \_root.ball.\_currentframe \< \_root.ball.\_totalframes) {  
iTime = getTimer();  
rTime = Math.round((iTime/1000));  
}  
};

startTimer = function() {  
\_root.ball.onEnterFrame = runTimer;  
};

stopTimer = function() {  
delete this.onEnterFrame  
};

\_root.theTime.text = rTime;

startTimer();

[/AS]

I’ve changed it a bit, but it doesn’t work, any suggestions?
