Gustavo, 
 
function rotateMC(mc, increment, targetDegree){ 
        mc.onEnterFrame = function(){ 
                this._rotation = this._rotation + increment; 
                if(this._rotation == targetDegree){ 
                        delete this.onEnterFrame; 
                } 
        } 
} 
 
// Clockwise rotation 
rotateMC(someMovieClip, 10, -90); 
 
// Counter-clockwise rotation 
rotateMC(someMovieClip, -10, -90); 
 
HTH 
 
-Keith 
http://keithreinfeld.home.comcast.net
 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On 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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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