Animating Graphics That Change Size

I l @ ve RuBoard

Animating Graphics That Change Size

Flash can tween changes in the size of a graphic. To tween graphics that grow or shrink, you must check the Scale checkbox in the Frame Property Inspector.

To tween a growing and shrinking graphic:

  1. Create a new Flash document.

  2. On the Stage, create a new object in Frame 1.

  3. With Frame 1 selected, choose Insert > Create Motion Tween.

    Flash turns your graphic into a symbol.

  4. To create a keyframe that defines the end of a growing sequence, in the Timeline, select Frame 5; then choose Insert > Keyframe.

    Flash duplicates the symbol from Frame 1 in the new keyframe. The motion-tween arrow and color coding now appear in frames 2 through 4.

  5. With Frame 5 being the current frame, select your graphic and make it bigger.

    (For detailed instructions on resizing graphics, see Chapter 3.)

  6. In the Timeline, select any of the frames in the first keyframe span (1, 2, 3, or 4).

  7. In the Frame Property Inspector, make sure that the Tween property is set to Motion.

  8. Check the Scale checkbox.

    Flash increases the size of your graphic in equal steps from Frame 1 to Frame 5 (Figure 9.14).

    Figure 9.14. To tween a growing graphic, the graphic in the first keyframe of the sequence (top) must be smaller than the graphic in the end keyframe of the sequence (middle). To make the graphic grow in equal steps, set the Tween property of the frames in the tweened span to Motion, and choose the Scale property. You set the properties for a selected frame in the Frame Property Inspector (bottom).

    graphics/09fig14.gif

  9. To add an ending keyframe for a shrinking sequence, in the Timeline, select Frame 10; then choose Insert > Keyframe.

    Flash duplicates the symbol from Frame 5 in the new keyframe. The motion-tween arrow and color coding now appear in frames 6 through 9. All the motion-tween parameters you set in the Frame Property Inspector continue in force.

  10. With Frame 10 being the current frame, select your graphic and make it smaller.

    Flash creates a tween that shrinks your graphic in five equal steps (Figure 9.15).

    Figure 9.15. To tween a shrinking graphic, make it smaller in the end keyframe of the sequence. Turn on onion skin mode to see the size of the graphic Flash creates for each in-between frame.

    graphics/09fig15.gif

graphics/01icon02.gif Tip

  • As long as you don't change the settings in the Frame Property Inspector, the Scale checkbox remains checked, and Flash updates the tween any time you change the content in one of the keyframes in this series. You don't even have to have the Frame Property Inspector open to fine-tune the size of your scaling graphic.


I l @ ve RuBoard


Macromedia Flash MX for Windows and Macintosh. Visual QuickStart Guide
Macromedia Flash MX 2004 for Windows and Macintosh (Visual QuickStart Guides)
ISBN: 0582851165
EAN: 2147483647
Year: 2002
Pages: 243

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net