RE: [Flashcoders] movement question

2007-01-19 Thread Rost, Andrew
this.onEnterFrame=function():Void { if(myClip._rotation != -90){myClip._rotation--}; } Quick and simple... Andrew -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 1:58 PM To: Flashcoders mailing list Subject: [Flashcoders]

RE: [Flashcoders] movement question

2007-01-19 Thread Keith Reinfeld
Gustavo, function rotateMC(mc, increment, targetDegree){ mc.onEnterFrame = function(){ this._rotation = this._rotation + increment; if(this._rotation == targetDegree){ delete this.onEnterFrame; } } }

Re: [Flashcoders] movement question

2007-01-19 Thread Gustavo Duenas
thanks guys...you are good. Gus On Jan 19, 2007, at 3:24 PM, Rost, Andrew wrote: this.onEnterFrame=function():Void { if(myClip._rotation != -90){myClip._rotation--}; } Quick and simple... Andrew -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent:

RE: [Flashcoders] movement question

2007-01-19 Thread Steven Sacks | BLITZ
Need to clean up that enterFrame once it's finished. This is about as compact as it can get. this.onEnterFrame = function() { if (--myClip._rotation == -90) delete this.onEnterFrame; } ___ Flashcoders@chattyfig.figleaf.com To change your