7. Creating Frame-by-Frame Animation

Introduction

Flash provides several methods for creating animation. In addition to shape and motion tweening, you can create frame-by-frame animations. The frame-by-frame method is derived from the traditional animation process whereby the content is redrawn on each frame with slight differences from the last frame. When these frames are played in sequence, there is an illusion of movement. In Flash, you utilize keyframes in the Timeline to accomplish this. A keyframe defines a change to the artwork placed on the Stage. There are a number of ways to create and edit keyframes, as they are editable objects. Keyframes can be moved, copied, and pasted to and from any Timeline in your Flash movie or between different Flash documents. Frame-by-frame animations can be previewed in the Flash development environment so you can quickly see the results and check your work as you animate. They can also be viewed in the Flash Player using the Test Movie feature.

Additionally, there is an Onion Skin mode that allows you to see the active frame in context to the frames around it, making it easier to fine-tune keyframe changes. The versatility of the Timeline and the strength of the Flash Player allow you to implement animation in your movie and give it life.

Understanding Frame-by-Frame Animation

Animation is the illusion of movement. It is comprised of a series of pictures, each slightly different from the last, that when played sequentially imply movement. Motion pictures work the same way. What you see when you view a film is a long strip of images played at specific intervals. In this way, the content in the pictures moves and seems to imitate real life.

Traditional cell animators draw a picture onto a frame of celluloid and then draw the same thing onto the next frame but with slight changes made to the drawing. Static parts of the scene (such as a background) are copied and only the objects that change are redrawn. In this way the process is more efficient.

The principles for animating in Flash have derived from this process. In Flash, you create frame-by-frame animations in the Timeline through the use of keyframes. Each keyframe defines a change on the Stage, and when played in succession, the content can seem to evolve, or move. When you export your movie, Flash will play these frames in succession at specific intervals depending on the frame rate you set. A good introduction to this concept, as well as the basics of animation, is the dissection a character walk cycle. When human beings walk, they are essentially repeating the same motion over and over again. In an animated walk cycle, the same thing occurs, though instead of drawing the cycle over and over again, the motion is spaced out so that the last frame (the last image drawn) meets up with the first frame. If this animation is looped, the character will seem to walk perpetually.

Understanding Frame-by-Frame Animation

Creating Keyframes

When art is placed on the Stage, it appears in a keyframe in the Timeline. A keyframe is represented as a black-bounded box with a small circle in it. By default, each layer in the Timeline has a keyframe on its first frame. An empty keyframe displays an empty or hollow circle, but when you place artwork or objects on the Stage, the bounding box becomes shaded and the small circle becomes a filled black dot. A keyframe can span multiple frames when there are no changes to the art. To make a change you create another keyframe. In this way, you can create animations or content that seems to move or change over time.

Create a Keyframe

Create a Keyframe Place art or an object on the Stage.

Create a Keyframe

Create a Keyframe Click on a frame later in the Timeline.

Create a Keyframe

Create a Keyframe Click the Insert menu, point to Timeline, and then click Keyframe.

A new keyframe appears.

Create a Keyframe

Timesaver

Press F6 to add a keyframe or Control+click (Mac) or right-click (Win) the selected frame, and then click Add Keyframe.

Did You Know?

You can remove content from a keyframe. Select a filled keyframe in the Timeline or the art on the Stage contained in that keyframe, and then press the Delete (Mac) or Backspace (Win) key.

Create a Blank Keyframe

Create a Blank Keyframe Click on a frame in the Timeline where you want to add a blank keyframe.

Create a Blank Keyframe
Create a Blank Keyframe

Important

You can only add a blank keyframe to a frame without an existing keyframe (sometimes called an inactive frame or keyspan).

Important Click the Insert menu, point to Timeline, and then click Blank Keyframe.

Timesaver

Press F7 to add a keyframe or Control+click (Mac) or right-click (Win) the selected frame, and then click Add Blank Keyframe.

Increase the Keyframe Span

Increase the Keyframe Span Click anywhere in a keyframe span.

• To insert multiple keyframes, select the number of frames you want.

Increase the Keyframe Span

Increase the Keyframe Span Click the Insert menu, point to Timeline, and then click Frame.

Repeat until you’ve increased the framespan to the length you need.

Increase the Keyframe Span

Timesaver

Press F5 to add a frame or Control+click (Mac) or right-click (Win) the selected frame, and then click Insert Frame.

Did You Know?

You can decrease the keyframe span. Press Shift+F5 for each frame you want to remove.

Converting Frames to Keyframes

Any frame can be converted into a keyframe. As a time-saver, you can select a range of frames and convert them all into keyframes simultaneously. This is useful when you have many frames to convert. It is also a good technique for fine-tuning shape and motion tweens. After the tween has been applied, you can convert the frames in the tweened span into keyframes and edit them independently.

Convert Multiple Frames Into Keyframes

Convert Multiple Frames Into Keyframes Click on a frame, and then drag to select a frame span.

Convert Multiple Frames Into Keyframes

Convert Multiple Frames Into Keyframes Click the Modify menu, point to Timeline, and then click Convert To Keyframes.

Convert Multiple Frames Into Keyframes

Timesaver

Press Ctrl+click (Mac) or right-click (Win) the selected frames, and then click Convert To Keyframes or Press F6 after selecting all of the frames you want to convert.

Did You Know?

You don’t have to select a frame to add keyframes. If you place the playhead over a frame and add a keyframe or a blank keyframe, it appears without you having to select the actual frame. However, if you are working with multiple layers, Flash adds a keyframe to all layers at that frame if no frame is selected.

Using Frame-Based Versus Span-Based Selection

Depending upon how you like to work, you can choose between two selection modes in Flash. The default mode is frame-based selection. In this mode, frames are treated as individual elements. When span-based selection is chosen, Flash treats frames as part of a frame span, which means all of the frames adjacent to a keyframe are selected as a unit. You can accomplish the same tasks in either mode and you can switch between the two depending upon the task at hand.

Set the Frame Selection Style

Set the Frame Selection Style Click the Flash (Mac) or Edit (Win) menu, and then click Preferences.

Set the Frame Selection Style If necessary, click the General category.

Set the Frame Selection Style

Set the Frame Selection Style Select the Span Based Selection check box to enable span-based selection or clear it to enable frame-based selection.

Set the Frame Selection Style Click OK.

Set the Frame Selection Style
Set the Frame Selection Style

Did You Know?

You can select a single frame in span-based mode. Press You can select a single frame in span-based mode.+click (Mac) or Ctrl+click (Win) the frame. Likewise, to select a span of frames in frame-based mode, click the first or last frame in the span, and then drag until you’ve selected the entire span.

Clearing Keyframes Versus Removing Frames

Depending on what you are trying to accomplish, you can choose to remove a frame’s status as a keyframe or remove the frame entirely. Clearing a keyframe preserves the length of the framespan and the overall duration of the animation on the layer. It simply turns the keyframe back into a regular frame and removes any changes the keyframe contained. Conversely, removing frames deletes the entire frame and shortens the framespan as well as the length of your animation in the Timeline.

Clear Keyframes

Clear Keyframes Click on the frame to select it or click and drag to select a range of frames.

Clear Keyframes

Clear Keyframes Click the Modify menu, point to Timeline, and then click Clear Keyframe.

Flash converts the keyframe back into a regular frame.

Clear Keyframes

Timesaver

Press Shift+F6 to clear keyframes.

Remove Frames

Remove Frames Click on the frame to select it or click and drag to select a range of frames.

Remove Frames

Remove Frames Click the Edit menu, point to Timeline, and then click Remove Frames.

Flash removes the selected frame(s) and shortens the length of the animation.

Remove Frames

Timesaver

Press Shift+F5 to remove frames.

Editing Keyframes

Keyframes are editable elements. You can add or remove content from a keyframe, move keyframes around by simply dragging, or copy and paste keyframes in the same Timeline, across scenes and even other Flash documents. Because keyframes are so versatile, you can continue to fine-tune your animations after they are created. When the playhead is placed on a frame, the content of that frame is displayed on your Stage. Selecting the keyframe in the Timeline selects all of the content on that keyframe on the Stage. Likewise, selecting any of your content on the Stage will select its corresponding keyframe. In this way, you can interactively edit the content in a keyframe or the keyframe’s position in the Timeline and know what you are affecting.

Copy and Paste Keyframes

Copy and Paste Keyframes Click on the keyframe to select it or click and drag to select a keyframe and a range of frames.

Copy and Paste Keyframes

Copy and Paste Keyframes Click the Edit menu, point to Timeline, and then click Copy Frames.

Timesaver

Press Option+ Timesaver+C (Mac) or Ctrl+Alt+C (Win) to copy frames.

Timesaver Click on the frame where you want to paste the frames.

Timesaver

Timesaver Click the Edit menu, point to Timeline, and then click Paste Frames.

Timesaver

Timesaver

Press Option+ Timesaver+V (Mac) or Ctrl+Alt+V (Win) to paste frames.

Drag and Drop Keyframes

Drag and Drop Keyframes Click on the keyframe to select it or click and drag to select a keyframe and a range of frames.

Drag and Drop Keyframes
Drag and Drop Keyframes
Drag and Drop Keyframes
Drag and Drop Keyframes
Drag and Drop Keyframes

Drag and Drop Keyframes Click again on the selected frame(s), and then drag to a new area of the Timeline.

Did You Know?

It’s important to understand the difference between the normal copy and Paste commands and the copy frames and Paste Frames commands. When you copy and paste frames you are copying the keyframes and in-between frames and the content contained in them. Pasting them preserves the structure and layout. If you select a keyframe and use the normal copy and paste commands It’s important to understand the difference between the normal copy and Paste commands and the copy frames and Paste Frames commands.+C and It’s important to understand the difference between the normal copy and Paste commands and the copy frames and Paste Frames commands.+V (Mac) or Ctrl+C and Ctrl+V (Win), you are only copying the content contained in that keyframe.

You can use drag and drop to copy frames. Press and hold down the Option (Mac) or Alt (Win) key as you drag frames, Flash copies them to a new location.

Creating a Simple Frame-by-Frame Animation

Flash incorporates the traditional animation technique with its use of keyframe-based animation. Artwork is placed in a keyframe in the Timeline and subsequent keyframes are created to record changes to the artwork. When played consecutively, these minute changes mimic movement as each keyframe describes an altered position or transform effect. Static art that does not change is stored on separate layers and can span the entire animation. In this way, you don’t have to redraw the entire frame and you can quickly create complex animations.

Create a Frame-by-Frame Animation

Create a Frame-by-Frame Animation Create a new Flash document or open an empty Timeline.

Create a Frame-by-Frame Animation Click the first frame to select it.

Create a Frame-by-Frame Animation

Create a Frame-by-Frame Animation Click the Oval tool on the Tools panel.

Create a Frame-by-Frame Animation

Create a Frame-by-Frame Animation Click on the Stage, and then drag to draw a circle.

Create a Frame-by-Frame Animation Click the second frame to select it.

Create a Frame-by-Frame Animation

Create a Frame-by-Frame Animation Click the Insert menu, point to Timeline, and then click Keyframe.

Timesaver

Press F6 to insert a keyframe.

Timesaver Select the second keyframe or double-click the circle on the Stage and drag it slightly to the right.

Timesaver Click on the third frame to select it.

Timesaver

Timesaver Repeat step 6.

Timesaver Select the third keyframe or double-click the circle on the Stage and drag it slightly further to the right.

Timesaver Continue to add keyframes and move the circle until it reaches the right edge of the Stage.

Important

The more keyframes you add the smoother the animation is.

Important Click the Playhead and move it across the frames to preview the movement of the circle.

Important

Playing an Animation

In addition to moving the playhead in the Timeline to view your animation, commonly called scrubbing, Flash provides a controller to navigate the Timeline. The Controller resembles the transport controls on a VCR and can be used in the same way. Additionally, you can export your Flash document into a Flash movie (a .swf file). You do this to see your Flash movie in its final state, as there are some elements that are not viewable in the Flash Development environment, such as animations contained in movie clip symbols and ActionScript functionality. To preview basic animations from their own Timeline, you can use the Controller to preview them.

Use the Controller to Play an Animation

Use the Controller to Play an Animation Click the Window menu, point to Toolbars, and then click Controller.

Use the Controller to Play an Animation

Use the Controller to Play an Animation To stop the animation, click Stop.

Use the Controller to Play an Animation

Use the Controller to Play an Animation To rewind to the first frame of the animation, click Rewind To Beginning.

Use the Controller to Play an Animation To step back one frame, click Step Back.

Timesaver

Press the < key to step back a frame.

Timesaver To play or stop the animation, click Play.

Timesaver

Press Return (Mac) or Enter (Win) to play if stopped or to stop if playing.

Timesaver To step forward one frame, click Step Forward.

Timesaver

Press the > key to step forward a frame.

Timesaver To fast-forward to the end of the animation, click Go To End.

Test Animation in the Flash Player

Test Animation in the Flash Player Click the Control menu, and then click Test Movie.

Flash exports the entire Timeline and any other scenes you’ve created into a .swf file that plays in the Flash Player.

Test Animation in the Flash Player
Test Animation in the Flash Player

Timesaver

Press Timesaver+Return (Mac) or Ctrl+Enter (Win) to Test Movie.

Using Onion Skinning

Normally, the playhead shows one frame at a time—the frame it’s placed on. As you play the Timeline, the Stage displays the content of one frame at a time, forming your animation. Onion Skinning mode allows you to view multiple frames simultaneously. This is useful for fine-tuning your animation, because you can see the content on the frames immediately preceding and following the active frame.

Activate Onion Skinning

Activate Onion Skinning Open a Timeline with a multiple frame animation.

Activate Onion Skinning

Activate Onion Skinning Click the Onion Skin Mode button in the Status bar.

Onion skin markers appear in the area above the frame numbers and the area of the range of frames selected dims. The frames that precede the active frame and the frames that follow appear in varying degrees of shading on the Stage, becoming lighter the further they are from the active frame.

Activate Onion Skinning

Use Onion Skin Outlines

Use Onion Skin Outlines Open a Timeline with a multiple frame animation.

Use Onion Skin Outlines

Use Onion Skin Outlines Click the Onion Skin Outlines button in the Status bar.

The frames that precede the active frame and the frames that follow appear as outlines on the Stage.

Did You Know?

You can only edit the active frame. This is the frame the playhead is on. The art that appears when Onion Skin (regular and outline) is enabled is for preview only.

Modifying Onion Skin Markers

You can adjust the number of frames previewed in the onion skin by manually dragging the onion skin markers. These markers have draggable handles that set the beginning and end of the onion skin. The handles appear as brackets with small dots. Alternately, you can set the range of the markers from the Modify Onion Markers popup menu.

Set Onion Skin Markers Manually

Set Onion Skin Markers Manually Click the Onion Skin Mode button in the Status bar, if necessary

Set Onion Skin Markers Manually

Set Onion Skin Markers Manually Click on the small dot on either end of the onion skin markers and then drag to include or exclude any consecutive frames in the onion skin.

Set Onion Skin Markers Manually

Did You Know?

You can only edit the active frame in the onion skin. To edit other frames and maintain the selected frames, select Anchor Onion in the Modify Markers popup menu.

Set Onion Skin Markers in Modify Onion Markers Window

Set Onion Skin Markers in Modify Onion Markers Window Click the Modify Onion Markers button.

The Modify Onion Markers popup appears.

Set Onion Skin Markers in Modify Onion Markers Window

Set Onion Skin Markers in Modify Onion Markers Window Select from the following options:

Always Show Markers. Keeps Onion Skin Markers visible in and out of Onion Skin mode.

Anchor Onion. Maintains the selected frames even if you move the playhead.

Onion 2. Shows two frames before and after the current frame.

Onion 5. Shows five frames before and after the current frame.

Onion All. Includes the entire duration of the Timeline in the markers.

Editing Multiple Frames

If you need to make changes to an entire animation or to a series of frames at once, you can select them in Edit Multiple Frames mode. When this feature is enabled, brackets appear similar to those in Onion Skinning mode. Drag them to select the range of frames you want to edit. This works well if you need to make global changes to your animation such as resizing it or changing its location. You can select an entire framespan or layer instead of moving or resizing the content on each individual frame separately.

Select Multiple Frames

Select Multiple Frames Open a Timeline with a multiple frame animation.

Select Multiple Frames

Select Multiple Frames Click the Edit Multiple Frames button in the Status bar.

Select Multiple Frames Click and drag the markers until they include all the frames you want to select.

All of the content in the selected frames appears on the Stage.

Select Multiple Frames

Select Multiple Frames Click the Selection tool on the Tools panel.

Select Multiple Frames

Timesaver

Press V to select the Selection tool.

Timesaver Drag a selection box around the content on the Stage.

You can make changes to location, scale, effects, etc. All the selected frames will be affected.

Timesaver

Press Timesaver+A (Mac) or Ctrl+A (Win) to select all the content on all unlocked layers.

Did You Know?

When Edit Multiple Frames is activated, it selects all of the frames on all layers contained in the markers. You must lock any layers you don’t want included in the selection.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset