Could some one tell me why?

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

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:


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

Is this right?
(-:

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.