# Could some one tell me why?

**URL:** <https://forum.kirupa.com/t/could-some-one-tell-me-why/16660>\
**Category:** Uncategorized\
**Created:** [March 27, 2003, 4:53am UTC](https://forum.kirupa.com/t/could-some-one-tell-me-why/16660 "2003-03-27T04:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MP5SD](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@MP5SD](https://forum.kirupa.com/u/MP5SD)\
**Post date:** [March 27, 2003, 4:53am UTC](https://forum.kirupa.com/t/could-some-one-tell-me-why/16660/1 "2003-03-27T04:53:59Z")

</div>

why oh why dosnt thins work?

onClipEvent(load) {  
tmr1 = getTimer();  
}  
onClipEvent(enterFrame) {  
tmr2 = getTimer();  
tmr3 = tmr2 - tmr1;  
if(tmr3\>1000) {  
this.\_rotation = 90;  
tmr1 = getTimer();  
}  
}

ok maybe i just cant do it this way or maybe im missing something pls help ANYONE.

Flash MX

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 6:39am UTC](https://forum.kirupa.com/t/could-some-one-tell-me-why/16660/2 "2003-03-27T06:39:09Z")

</div>

Hey.  
I’m not sure what you’re trying to do. I don’t know what  
getTimer(); does, but I could take a good guess. If you just want a counter to go to 1000, then stop your function, try this:

```php

onClipEvent(load){
	i=1;
}
onClipEvent(enterFrame){
	i++;
	this._rotation=i*90;
	if(i>1000){
		this._rotation=0;
	}
}

```

Is this right?  
(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 12:29pm UTC](https://forum.kirupa.com/t/could-some-one-tell-me-why/16660/3 "2003-03-27T12:29:02Z")

</div>

well i was trying to get it to repeat an action over and over every second that why i have 1000 in there.

i just dont seem to be able to get it to work.
