# Actionscript 2.0 getTimer Help

**URL:** <https://forum.kirupa.com/t/actionscript-2-0-gettimer-help/254551>\
**Category:** flash\
**Created:** [March 13, 2008, 3:20am UTC](https://forum.kirupa.com/t/actionscript-2-0-gettimer-help/254551 "2008-03-13T03:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpha1](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@alpha1](https://forum.kirupa.com/u/alpha1)\
**Post date:** [March 13, 2008, 3:20am UTC](https://forum.kirupa.com/t/actionscript-2-0-gettimer-help/254551/1 "2008-03-13T03:20:13Z")

</div>

Hi,

I am using getTimer and at the end of the following code (which works as I want it to), i then want the timer to reset and/or loop again. Ive read your forums extensively and tried many different variations, unfortunately to no avail.

Any help would be greatly appreciated.  
There is only 1 frame in this movie.  
My code;

> onEnterFrame = function() {  
> trace(“getTimer() =” +getTimer());

if (getTimer()\>0 and getTimer()\<400) {  
trace(“start picture”)  
movie.picture.loadMovie(JPG[0]);  
caption.text = captions[0];  
Header.text = Title[0];  
}

if (getTimer()\>7000 and getTimer()\<7400) {  
trace(“second picture”)  
movie.picture.loadMovie(JPG[1]);  
caption.text = captions[1];  
Header.text = Title[1];  
}

if (getTimer()\>14000 and getTimer()\<14400) {  
trace(“third picture”)  
movie.picture.loadMovie(JPG[2]);  
caption.text = captions[2];  
Header.text = Title[2];  
}

if (getTimer()\>21000 and getTimer()\<21400) {  
trace(“third picture”)  
movie.picture.loadMovie(JPG[3]);  
caption.text = captions[3];  
Header.text = Title[3];  
}  
};  
Alpha
