# 30 second timer

**URL:** <https://forum.kirupa.com/t/30-second-timer/105865>\
**Category:** Uncategorized\
**Created:** [March 30, 2004, 3:09pm UTC](https://forum.kirupa.com/t/30-second-timer/105865 "2004-03-30T15:09:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barrie](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Barrie](https://forum.kirupa.com/u/Barrie)\
**Post date:** [March 30, 2004, 3:09pm UTC](https://forum.kirupa.com/t/30-second-timer/105865/1 "2004-03-30T15:09:21Z")

</div>

I aneed alittle help please i made this small loader I need a code to add to this I made, That will stop in 30 seconds and go directly to next frame.

My As  
onClipEvent (load) {  
var rotateUnit = 10;  
}

onClipEvent (enterFrame) {  
\_rotation = \_rotation + rotateUnit;

```
if(_rotation &gt; 100){
    rotateUnit = -10;
} 

if (_rotation &lt; -100){
    rotateUnit = 10;
} 

```

}

Regrads Barrie
