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?