all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

help rotation


Re: help rotation David Stiller
1/31/2005 4:57:59 PM
flash actionscript:
mfoster31,

[quoted text, click to view]

Where are you getting stuck?


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

help rotation mfoster31
1/31/2005 9:49:38 PM
Re: help rotation NSurveyor
1/31/2005 10:15:39 PM
If you had a movieclip named "spinThing" you could add this code onto the frame
that holds it. It will first rotate 1 degree for the first frame. Then 2
degress on the second frame. Then 3 degrees, etc... Finally it will stay at the
"finalSpeed" of 20.

finalSpeed = 20;
spinThing.onEnterFrame = function(){
if(this.cspeed==undefined)this.cspeed = 0;
if(this.cspeed<finalSpeed)this.cspeed++;
this._rotation+=this.cspeed;
}
AddThis Social Bookmark Button