| By Jen deHaan, Chris Georgenes | Article Rating: |
|
| January 8, 2006 03:30 PM EST | Reads: |
53,789 |
Creating Tweened Animations
Flash can create two types of tweened animation: motion tweening and shape tweening.
In motion tweening, you define properties such as position, size, and rotation for an instance, group, or text block at one point in time, and then change those properties at another point in time. After you do so, you can apply the motion tween between those two frames. Flash automatically creates the movement between the first and second point in time. You can also apply a motion tween and assign a path for it to follow. For more information on motion tweens, see the next section, Creating Motion Tweens.
In shape tweening, you draw a shape at one point in time, and then change that shape or draw another shape at another point in time. Flash interpolates the values or shapes for the frames in between, thus creating the animation. The shape morphs from the first shape into the second shape. For more information on shape tweens, see the later section, Creating Shape Tweens.
Note: To apply shape tweening to groups, instances, or bitmap images, you must first break these elements apart (Modify > Break Apart). To apply shape tweening to text, you must break the text apart twice to convert the text to objects.
Tweened animation is an effective way to create movement and changes over time while minimizing file size and development time. In tweened animation, Flash stores only the values for the changes between frames. To quickly prepare elements in a document for tweened animation, distribute objects to layers (Modify > Timeline > Distribute to Layers).
Creating Motion Tweens
To tween the changes in properties of instances, groups, and type, you use motion tweening. Flash can tween position, size, rotation, and skew of instances, groups, and type. Additionally, Flash can tween the color of instances and type, creating gradual color shifts or making an instance fade in or out. To tween the color of groups or type, you must make them into symbols.
If you apply a motion tween and then change the number of frames between the two keyframes, or move the group or symbol in either keyframe, Flash automatically tweens the frames again.
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.
- Create the first keyframe for the animation, insert the number of frames you want in the Timeline, select Insert > Timeline > Create Motion Tween, and move the object to the new location on the Stage. Flash automatically creates the ending keyframe.
When tweening a position, you can make the object move along a nonlinear path. To create a motion tween using the Motion Tweening option:
- Create a new file and call it motiontween.fla.
- Select Frame 1 of Layer 1. This is where the animation will start.
- Create a graphic with the Pen, Oval, Rectangle, Pencil, or Brush tool. Select it and then choose Modify > Convert to Symbol.
- In the Convert to Symbol dialog box, make sure the Movie Clip option is selected and then click OK. Now the graphic you created is an instance on the Stage (with a symbol in the Library).
- Select Frame 10 on Layer 1 and then press F6 to create a second keyframe. This is where the animation will end.
- Select your instance on the Stage at Frame 10. Do any of the following to modify the instance:
- Move it to a new position on the Stage.
- Modify the item's size, rotation, or skew using the Free Transform tool.
- Click any frame in the tween's frame span (for example, select Frame 5 of Layer 1) and select Motion from the Tween pop-up menu in the Property inspector (Window > Properties > Properties).
- With the frame still selected, drag the arrow next to the Easing value in the Property inspector (Window > Properties > Properties) or type in a value to adjust the rate of change between tweened frames. Note: By default, the rate of change between tweened frames is constant. Easing creates a more natural appearance of acceleration or deceleration by gradually adjusting the rate of change.
- To rotate the selected item while tweening, select an option from the Rotate menu:
- Select None (the default setting) to prevent rotation
- Select Auto to rotate the object once in the direction requiring the least motion
- Select Clockwise (CW) or Counterclockwise (CCW) to rotate the object as indicated, and then enter a number to specify the number of rotations
- Select Control > Test Movie to test the animation.
The term easing refers to gradual acceleration or deceleration during an animation, which helps your animations appear more realistic. Easing creates a more natural appearance of acceleration or deceleration by gradually adjusting the rate of change.
To produce a more realistic sense of motion, you can apply easing to the motion tween you create. Flash provides two methods by which you can apply easing to a motion tween: You can specify an easing value for each motion tween you create using the Ease slider, or you can use the Custom Ease In/Ease Out dialog box (Flash Professional only) to control the speed of the motion tween more precisely.
To apply regular easing to a motion tween:
- Create a new file and call it motionease.fla.
- Select Frame 1 of Layer 1. This is where the animation will start.
- Create a graphic with the Pen, Oval, Rectangle, Pencil, or Brush tool. Select it and then choose Modify > Convert to Symbol.
- In the Convert to Symbol dialog box, make sure the Movie Clip option is selected and then click OK. The graphic you created is an instance on the Stage (with a symbol in the Library).
- Select Frame 10 on Layer 1 and then press F6 to create a second keyframe. This is where the animation will end.
- Select your instance on the Stage at Frame 10. Do any of the following to modify the instance:
- Move it to a new position on the Stage.
- Modify the item's size, rotation, or skew using the Free Transform tool.
- Click any frame in the tween's frame span (for example, select Frame 5 of Layer 1) and select Motion from the Tween pop-up menu in the Property inspector (Window > Properties > Properties).
- With the frame still selected, drag the arrow next to the Easing value in the Property inspector (Window > Properties > Properties) or type in a value to adjust the rate of change between tweened frames:
- To begin the motion tween slowly and accelerate the tween toward the end of the animation, drag the slider up or enter a negative value between 1 and 100.
- To begin the motion tween rapidly and decelerate the tween toward the end of the animation, drag the slider down or enter a positive value between 1 and 100.
- Select Control > Test Movie to test the animation. The SWF file shows regular easing (the top bee) and customized easing (the bottom bee). The vertical line that animates from left to right has no easing applied.
The Custom Ease In/Ease Out dialog box displays a graph representing the degree of motion over time. Frames are represented by the horizontal axis and the tween's percentage of change is represented by the vertical axis. The first keyframe is in the animation is at 0% and the last keyframe is at 100%. The rate of change of the tweened instance is shown by the slope of the graph's curve. If you create a horizontal line (no slope) on the graph, the velocity is zero; if you create a vertical line on the graph, there is an instantaneous rate of change.
Published January 8, 2006 Reads 53,789
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Jen deHaan
Jen deHaan, a rather awkward and uncool Canadian, likes robots and pirates (as well as robotic pirates). Jen works on documentation at Macromedia in San Francisco. She also maintains a blog at weblogs.macromedia.com/dehaan and believes that _root and low-carb diets are unusually evil.
More Stories By Chris Georgenes
Chris Georgenes is a full-time freelance artist, animator, and all-around designer for the web, CD-ROM, and television. His clients include Pileated Pictures, LucasArts, Universal Records, Plot Developers, and AOL, among others. He maintains www.mudbubble.com as his online portfolio and www.keyframer.com as his Flash tutorial website. Chris is also a member of Team Macromedia.
![]() |
Debi 02/07/06 09:02:08 PM EST | |||
I have an image of fake fire that I need to make flicker....do you know of an easy way to do this? (I'm just learning Flash) A tutorial maybe?? I will go thru this and the Part II to see if I can glean some much needed knowledge....but something more specific would be good. Thanks, Debi |
||||
![]() |
SYS-CON Australia News Desk 01/08/06 04:38:34 PM EST | |||
Adobe Flash Basic 8 and Flash Professional 8 offer several ways to include animation and special effects in your document. For example, you can create tweened animations using the Timeline and Flash workspace, automated Timeline effects (by making selections in a dialog box), or ActionScript code. |
||||
![]() |
SYS-CON Australia News Desk 01/08/06 04:35:03 PM EST | |||
Adobe Flash Basic 8 and Flash Professional 8 offer several ways to include animation and special effects in your document. For example, you can create tweened animations using the Timeline and Flash workspace, automated Timeline effects (by making selections in a dialog box), or ActionScript code. |
||||
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Adobe Flex Developer Earns $100K in New York City
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Ph.D. in Twitter Anyone?
- Eolas Sues the Internet
- Adobe LiveCycle Enterprise Suite 2 for Cloud Computing
- Adobe Betas Target RIAs and Cloud Computing
- Special Report on the Emerging Cloud Computing Trend
- Adobe Cans Another 9% of its Workforce
- My Thoughts on Ulitzer
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Ulitzer Live! New Media Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Eval JavaScript in a Global Context
- Fig Leaf Software to Exhibit at Government IT Conference & Expo
- Cloud Executives Feature on Cloud Computing Expo Power Panel
- Software Flexibility in the Cloud - Part 4 of 5
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Is Microsoft as Free as Open Source?
- Adobe Reader Sued
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Where Are RIA Technologies Headed in 2008?
- Cover Story: How to Increase the Frame Rates of Your Flash Movies
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Your First Adobe Flex Application with a ColdFusion Backend
- Adobe Flex 2: Advanced DataGrid
- i-Technology Blog: Death-Knell For "Rich Media? Hardly!
- Adobe/Macromedia - Microsoft, Look Out!
- How To Create a Photo Slide Show ...
- Adobe Flex Interface Customization - Themes, Styles, Skins
- Personal Branding Checklist
- Has the Technology Bounceback Begun?
- "Real-World Flex" by Adobe's Christophe Coenraets




































