Groups | Blog | Home
all groups > flash (macromedia) > november 2005 >

flash (macromedia) : smooth rotation of a symbol


Tom Unger
11/4/2005 5:00:09 PM
FlashyMcCool;
Remove the last frame? -Tom Unger

FlashyMcCool
11/4/2005 9:44:52 PM
I'm trying to have a movie clip of a triangle that rotates one time, but in the
movie, it will look as if it's rotating forever. I create a symbol of the
triangle and then insert a keyframe at say frame 20. I create the motion tween
and set it to rotate one time. It does this fine. However, because frame 1
and 20 are the same, when the movie plays it will have a slight lag. I want to
get rid of the lag so that the rotation is smooth throughout.

I would appreciate any help. thanks
Chip W.
11/4/2005 10:03:41 PM
The simple answer would be to remove frame 20, so frame 19 is the last frame. That should remove the lag. A better way would be to rotate your triangle using Actionscript.

bencallahan
11/4/2005 10:15:59 PM
quick as to rotate a clip...

myClip_mc.onEnterFrame = function()
{
this._rotation++;
}

I believe the _rotation property will reset itself if over 180, so you
shouldn't have to worry about the upper or lower boundaries.

If you want it to go faster, you could use:

this._rotation += 10;

...or some other number (higher = faster).

good luck,
Ben Callahan
Design District
designdistrictinc.com
AddThis Social Bookmark Button