Flash Script – Basic Motion Tween

By Georgina Laidlaw

Download the sample files here.

You can create a motion tween using one of two methods:

  • Create the starting and ending keyframes for the animation, and use the Motion Tweening option in the Property inspector to create the effect.
  • Create the first keyframe for the animation, then insert the number of frames you want on the Timeline. Choose Insert > Create Motion Tween and move the object to the new location on the stage. In this case, Flash automatically creates the ending keyframe.

To create a motion tween:

1. Click a layer name to make it current.

2. Select an empty keyframe in the layer, create an object, and convert the object into symbol.

3. Create a second keyframe where you want the animation to end.

4. In the ending frame, do some modifications, such as moving an object’s position, changing its color, etc.

5. If the Property inspector is not visible, choose Window > Properties.

6. Select the first key frame. Choose Motion from the Tween pop-up menu in the Property inspector.

You’re done! Test the movie.

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.