View Full Version : animating continuous rotation
fatbluefish
05-01-2003, 07:30 PM
I have a circle of type that I want to rotate continuously.
What would be the best way to go about doing this?
rrottman
05-01-2003, 11:17 PM
I don't know whether this is the easiest way but I'd create a movieclip containing the object to rotate and attach the following script:
onClipEvent (load)
{
var rSpeed = 5;
}
onClipEvent (enterFrame)
{
this._rotation += rSpeed;
}
I attached the .fla. (In the .fla I actually did not make use of the variable but assigned a value (5) directly.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.