Creating Keyframes

I l @ ve RuBoard

Flash offers two commands for creating keyframes. Insert Blank Keyframe defines a keyframe that's empty, and Insert Keyframe defines a keyframe that duplicates the content of the preceding keyframe in that layer. Use the Insert Blank Keyframe command when you want to change the contents of the Stage completely. Use Insert Keyframe when you want to duplicate the content of the preceding keyframe.

graphics/01icon02.gif Tip

  • The following tasks access frame- related commands from the main menu bar, but all the relevant commands for working with frames are available from the contextual frame menu as well. You can Control-click (Mac) or right-click (Windows) a frame in the Timeline to bring up the contextual frame menu.


To add a blank keyframe to the end of your movie:

  1. Create a new Flash document. The new document by default has one layer and one blank keyframe at Frame 1.

  2. In the Timeline, click the protoframe for Frame 10 to select it.

  3. From the Insert menu, choose Blank Keyframe (Figure 8.5).

    Figure 8.5. Select a frame in the Timeline (top) and then choose Insert > Blank Keyframe (middle) to add a new blank keyframe (bottom).

    graphics/08fig05.gif

    Flash revises the Timeline to give you information about the frames you've defined. A hollow rectangle appears in Frame 9, and a black line separates Frame 9 from Frame 10. This line indicates where the content for one keyframe ends and the content for the next keyframe begins. Flash replaces the gray bars separating Protoframes 2 through 9 with gray tick marks and removes the gray highlight that appeared in every fifth frame of the undefined frames.

To create a blank keyframe in the middle of your movie:

  1. Follow the steps in the preceding section to create a single-layer , 10-frame movie.

  2. In the Timeline, click Frame 1 to select it.

  3. Place an object on the Stage (use the drawing tools to create something new, copy something from another document, or bring in an instance of a symbol from a library).

    Flash updates the Timeline, adding a solid bullet to Frame 1 (Figure 8.6).

    Figure 8.6. When you place content in a keyframe, Flash displays that frame in the Timeline with a solid bullet. The gray tint on the frames between keyframes indicates that content from the preceding keyframe appears during these frames. The hollow square indicates the end of the span of in-between frames displaying the same content.

    graphics/08fig06.gif

    With Tinted Frames selected in the Frame View menu (Flash's default setting), Flash shades Frames 1 through 9 with gray. The shading indicates that Keyframe 1 has content that remains visible until Frame 10 in this layer. A hollow rectangle appears in Frame 9, indicating the end of the span of in-between frames that displays the content of Keyframe 1.

    Frame 10 still contains a hollow bullet, meaning that it has no content. (Try clicking Frame 10 to see that the Stage is blank.)

  4. In the Timeline, click the number 5 or drag the playhead to position it in Frame 5. Flash displays Frame 5 on the Stage. Notice that this in-between frame continues to display the content of the preceding keyframe, Frame 1.

  5. From the Insert menu, choose Blank Keyframe.

    Flash converts the selected in-between frame to a keyframe and removes all content from the Stage in that frame (Figure 8.7).

    Figure 8.7. When you convert an in-between frame that displays content to a blank keyframe, Flash removes content from the Stage for that frame. Frames 6 through 9 are tinted when they display the content of Frame 1 (top). When you add a blank keyframe at Frame 5 (bottom), the tint disappears, because these frames now display the content of the most recent keyframe, Frame 5, which is empty.

    graphics/08fig07.gif

To duplicate the contents of the preceding keyframe:

  1. Create a single-layer, 10-frame movie with keyframes at 1, 5, and 10 and content only in Frame 1.

  2. In the Timeline, position the playhead in Frame 3.

  3. From the Insert menu, choose Keyframe. Flash creates a new keyframe, duplicates the contents of Frame 1 in Frame 3, and places a solid bullet in the Timeline at Frame 3 and a hollow rectangle in Frame 4 (Figure 8.8). The content of frames 1 and 3 is totally separate. Try selecting Frame 1 and making changesmove the graphic or delete it. Now select Frame 3 again; it remains unchanged.

    Figure 8.8. The Insert > Keyframe command creates a keyframe that duplicates the contents of the preceding keyframe in that layer.

    graphics/08fig08.gif

graphics/01icon02.gif Tips

  • The word insert used in connection with keyframes is a bit misleading. When you use the Insert Keyframe command, Flash adds frames to your movie only if you've selected a protoframe. If you select an existing in-between frame, the Insert Keyframe command converts the selected frame to a keyframe and leaves the length of the movie as it was. The Insert Frame command, however, always adds frames to your movie.

  • The fact that Flash doesn't truly insert keyframes means that you cannot add a keyframe between two back-to-back keyframes. If you have keyframes in frames 5 and 6, and you select Frame 5 and choose Insert > Blank Keyframe, Flash moves the playhead to Frame 6; Flash doesn't add a new blank keyframe. With Frame 5 selected, you must first choose Insert > Frame. Flash creates an in-between frame at Frame 6. Now you can select Frame 5 or Frame 6 and choose Insert > Blank Keyframe; Flash converts Frame 6 to a keyframe.


Keyframe Mysteries: Insert versus Convert

In addition to the Insert > Keyframe and Insert > Blank Keyframe commands, Flash offers commands for converting frames to keyframes. Choose Modify > Frames > Convert to Keyframes (or press F6) or choose Modify > Frames > Convert to Blank Keyframes (or press F7). These conversion commands are also found in the contextual menu for framesControl-click (Mac) or right-click (Windows) a frame in the Timeline to access the menu.

Whether you should insert or convert keyframes depends on how many frames you have selected when you issue the command and how many frames you want to create.The Insert commands create a single keyframe regardless of how many frames you have selected; the Modify > Convert commands create multiple keyframes, one for each selected frame.

With a single frame selected, the Insert > Keyframe command and the Modify > Frames > Convert to Keyframe command work identically. If you select one protoframe or in-between frame, both commands transform that frame to a keyframe and duplicate the content of the preceding keyframe (if there is one). If you select a keyframe that is followed by an in-between frame or protoframe, both commands transform that following frame to a keyframe with the same content as the selected frame. Neither command has any effect on a selected keyframe that is followed by another keyframe.

With multiple protoframes or in-between frames selected, the Insert > Keyframe command creates a single keyframe, usually in the same frame as the playhead (if you select frames at the end of your movie, the playhead can't actually move beyond the last defined frame, but Flash places the new keyframe in the last selected frame). The remaining selected frames become in-between frames.

With multiple protoframes or in-between frames selected, the Modify > Frames > convert to Keyframes command creates a keyframe in every selected frame.

The commands for blank keyframes work similarly. Insert > Blank Keyframe creates one keyframe in the same frame as the playhead; the remaining frames become in-between frames. Modify > Frames > Convert to Blank Keyframe creates a blank keyframe in all the selected frames.

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