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]
Gustavo,
function rotateMC(mc, increment, targetDegree){
mc.onEnterFrame = function(){
this._rotation = this._rotation + increment;
if(this._rotation == targetDegree){
delete this.onEnterFrame;
}
}
}
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:
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
4 matches
Mail list logo