Where someMovieClip__mc is the instance name of the rotating movieClip on the 
stage.

Add this code to the frame you want it to start rotating.

onEnterFrame = function(){
        if(someMovieClip__mc._rotation == -90){
                delete onEnterFrame;
        } else {
                someMovieClip__mc._rotation--;
        }
}

This will subtract 1 from rotation each frame, and then delete the function 
when its done, thus stopping the rotation at -90.

Hope that helps!

Daniel Holth
I.S. Programmer
x5217   ||   J301


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gustavo
Duenas
Sent: Friday, January 19, 2007 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] movement question


Hi, I'm not a much a programmer guy. I'm trying to do something, I 
have a movie clip which is rotating --, this is supposed to stop 
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has 
rotated to -90, and the start a command...


I'll appreciate any help


Gustavo Duenas

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to