First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Jason Riegner | Website:

If you're like me then rotating any object by tweening is frustrating. After hitting 180 degrees the movie then runs backwards and now you have to spend time fixing it just to get it to rotate correctly. On top of all this, if your movie is running too fast or slow the adjusments to the tween can be a bit time consuming. Here is a way to rotate any movie clip with only 3 frames and one variable for speed.

  1. Create an object. In this movie I made a box.
  2. select the object and convert it to a Movie Clip symbol.
  3. Name the instance. I named this one "box" for ease of use
  4. Span the object over three frames
  5. create a new layer
  6. Insert three blank keyframes on this new layer
  7. In the first blank keyframe insert this action: r = 0; This varible is the rotation angle. We set it to 0 (normal position)
  8. In the second frame add these actins: setProperty ("box", _rotation, r); r = r + 1;
  9. Now in the last frame add the action: gotoAndPlay (2);

To change the speed of the rotation just change the second frame action r = r + 1; to whatever number you need ex:r = r + 5; - speeds up the rotation while r = r + .05; slows it down.

Adding some if statements and other variables will allow you to control the rotation in even more detail.

Jason Riegner

» Level Basic

Added: 2001-06-28
Rating: 8 Votes: 99
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.