First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Jason Riegner | Website: http://www.innousa.com

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 www.innousa.com

» Level Basic

Added: 2001-06-28
Rating: 7.93 Votes: 100
(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: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.