_rotate 1 time

onClipEvent (enterFrame) {

rotateL = 5;

this._rotation+=rotateL;

}

Need to rotate mc 1 time, or have control on number of rotations.
I am clueless… can you tell?
Thanks…

sean

I think that you could do something like this

onClipEvent (load){
flag=true;
}
onClipEvent (enterFrame) {
if(flag==true){
this._rotation+=5;
if(this._rotation==0){
flag=false;
}
}
}

the first if statement will be true, and will execute the rotation effect, making it 5. as it increases it works it’s way back to 0 when the flag trips off and stops the effect.

The only thing with this is I’m not sure how many radians make up a full circle. If it’s an even number, then the 5 radian incriment might make it rotation past the 0 point instead of landing on it. in which case it will continue to rotation a number of times until it’s rotation is 0 at the point of that if statement. So, you might have to switch that incriment to 4 or 3 or 6 or 7 just to see which one lands on 0 on one pass. (If you know radians, then perhaps you can figure it out without trial and error.)

The other thing about this is that you can now make it rotate whenever you want. just by calling to that movie clip and making it’s “flag” equal to true. If you set the flag to false in the on load event, then it will not rotate until you tell it to.