Computersight > Software > Flash

Flash Tutorial 3: Advanced Motion Tweens

A beginner's guide on modifying motion tweens.

In this tutorial, I will talk/write about more advanced motion tweens; I will explain two things here, editing motion tweens and using motion tweens for rotation.

EDITING MOTION TWEENS

  1. Open up a new flash document, name is not important
  2. Draw a square on frame 1
  3. Create a keyframe on frame 10
  4. On frame 10, move the square to a different spot on the stage
  5. Create a motion tween between the 2 keyframes. If you don't know how to, refer to tutorial 1 of my flash tutorials.
  6. It should look something like this so far:
  7. Test your movie, the square moves and stops as expected
  8. Now, click on a frame between 1-9 and look down at the properties panel and click edit:
  9. Now, it should come up with a screen like this:
  10. Here you can edit the motion tween progress, the dot at the lower left corner represents the start/first frame of tween and the top right dot represents the end/last frame of tween
  11. You can click and drag the line between the 2 dots to edit the progress of the motion tween. Edit the line so it looks like this:
  12. Click OK and test your movie
  13. You will see that the tween starts off slow then speeds up. Back at the tween editing screen, the X axis represents the frames in the tween, in this case 10 and the Y axis represents the progress in the tween. So, we made it so between frames 1 - 4.75 it will only do 20% of the tween, and then between frames 4.75 and 10 it will complete the tween but since there's less frames means that it will have to complete it faster.
  14. Any major mistakes can be fixed by pressing the reset button
  15. Now, back at the editing screen, make it look like this:
  16. Click OK and test your movie
  17. You will find that in frames 5.25 - 6 it will go backwards. Editing tweens is a nice function and is very handy.

USING TWEENS FOR ROTATION

  1. Open up a new flash document (discard the one you used in the editing motion tweens tutorial)
  2. Draw a square in the first keyframe
  3. Now, draw an arrow within that square with a different colour to the square using the line tool (Hotkey N). It will look something like this:
  4. Now, select BOTH the square and the arrow using the select tool by clicking the mouse and dragging it over the 2 objects
  5. For now press F8, select movie clip if it isn't already selected and name it box and press OK. Doing this will convert the box and arrow into a movie clip. Since it is now a grouped object you cannot use shape tweens with this, but it doesn't matter, I will talk about movie clips in another tutorial but for now, just do this.
  6. It should look something like this:
  7. Now, make a key frame at frame 10 and create a motion tween
  8. Now, at frame 10, using the transformation tool, rotate the box movie about 90 degrees clockwise. This is what the box should look like now:
  9. Now, play your movie by pressing Control and Enter/return and you will see the movie clip will rotate 90 degrees clockwise. Typical, you might be thinking that it's just a motion tween, but what if you wanted it to rotate anticlockwise?
  10. Click on the motion tween (the arrow) in the timeline and then look at the properties panel. Look for this:
  11. Now, to the right of "Rotate" click and select CCW (counter clockwise)
  12. Now beside the CCW change the 1 to a 0
  13. Now test your movie, you will find out that the box will now rotate anticlockwise
  14. The number I just told you to change to 0, change it back to 1
  15. Now test your movie
  16. You will see that it will rotate anticlockwise, but it will add an extra spin on it. So if you put 5 in that field, it will add 5 extra spins etc.
  17. Congratulations, you have now edited a box's motion tween and made one rotate anticlockwise

NOTE: You can also change the direction to go clockwise and also add extra spins, this can become handy if you want something to spin one way, but it's going the other way. To make a motion tween take longer to complete, just simply add more frames within the motion tween and to make it shorter, remove frames.

16
Liked It
I Like It!
Related Articles
Main Methods Of Animation  |  Flash Tutorial 1: Motion Tweens
More Articles by Harry ...
AutoCAD Tutorial 15: Project Three - Creating a Desk  |  Autocad Tutorial 14: Project Two - Creating a Soft-drink Cup
Latest Articles in Flash
How to Flash and Flex a Motorola V3r  |  Flash Games
Comments (0)
Post Your Comment:
Name:  
Copy the code into this box:  
Post comment with your Triond credentials?
Inside Computersight

Communication & Networks

 /

Computers

 /

Hardware

 /

Operating Systems

 /

Programming

 /

Software


Popular Tags
Popular Writers
Powered by
Computersight
About Us
Terms of Use
Privacy Policy
Services
Submit an Article
Advertise with Us
Contact

© 2007 Copyright Stanza Ltd. All Rights Reserved.