Manipulating Frames in One Layer


You can't copy or paste frames by using the standard Copy and Paste commands that you use for graphic elements. Flash's Edit menu provides special commands for copying and pasting frames. Flash also lets you drag selected frames to new locations in the Timeline.

For the following tasks, open a new Flash document. Create a 10-frame movie with keyframes at frames 1, 3, 5, and 9. Using the text tool, place a text box in each keyframe, and enter the number of the frame in the text box; this technique makes it easy to tell what frame winds up where as you practice. Your document should look like Figure 8.13.

Figure 8.13. To practice moving frames around, create a document with keyframes at frames 1, 3, 5, and 9. Each keyframe contains a text box with the number of the frame.


To copy and paste a single frame

1.

In the Timeline, select keyframe 3.

2.

Choose Edit > Timeline > Copy Frames, or press Option--C (Mac) or Ctrl-Alt-C (Windows) (Figure 8.14).

Figure 8.14. Flash's Edit menu provides special commands for copying and pasting frames in the Timeline.


Flash copies the selected frame to the Clipboard.

3.

In the Timeline, click frame 4 to select it as the location for pasting the copied frame.

4.

Choose Edit > Timeline > Paste Frames, or press Option--V (Mac) or Ctrl-Alt-V (Windows).

Flash pastes the copied frame into frame 4 (Figure 8.15).

Figure 8.15. When you paste a frame with new content into an in-between frame, Flash converts the frame to a keyframe.


5.

Paste another copy into frame 5 (Figure 8.16).

Figure 8.16. When you paste a frame with new content into a keyframe, Flash replaces the keyframe's content.


Flash replaces the contents of keyframe 5 with the content of keyframe 3.

6.

Paste another copy into protoframe 12.

Flash extends the movie to accommodate the pasted frame. Note that the playhead won't move to protoframe 12 until after you've pasted the copy to create a defined frame.

Tips

  • You can copy and paste multiple frames; in step 1 of the preceding task, select a range of frames.

  • To copy and paste the content of a keyframe, you can also copy an in-between frame that displays that content. When you paste, Flash creates a new keyframe.

  • Warning: Flash always replaces the content of the selected frame with the pasted frame (or, for multiple-frame pastes, with the first pasted frame). If you're not careful, you may eat up the content of keyframes you intended to keep. To be safe, always paste frames into in-between frames or blank keyframes. You can always delete an unwanted keyframe separately.

  • You can't paste frames between back-to-back keyframes in a single step. You must first create an in-between frame (press F5) between the two, select the new in-between frame, and paste the copied frames.


To move frames using drag and drop

1.

In the Timeline of your practice document, select the keyframe span that starts with keyframe 5 and ends with frame 8.

2.

Position the pointer over the selected frames.

The pointer changes to an arrow with a square.

3.

Click and drag the selected frames.

Flash further highlights the selection with a rectangle of hatched lines. Flash uses this rectangle to preview the new location for the selected frames as you drag in the Timeline.

4.

To move the selected frames to the end of your movie, drag the rectangle past the last defined frame and into the area of protoframes, and release the mouse button.

Flash adds frames to the end of the movie; these frames display the content from frame 5. In frame-based selection style, Flash completely removes the content from frames 58 and adds those frames to the preceding span. In span-based selection style, Flash removes the content but keeps a keyframe at frame 5 (Figure 8.17).

Figure 8.17. The process of dragging and dropping frames in the Timeline to relocate them is the same in Flash's two frame-selection styles (top). The results, however, are quite different (bottom). The frame-based selection style removes selected keyframes from their original location, leaving only in-between frames. The span-based style retains the original keyframes but removes their content.


5.

To move the selected frames to the beginning of your movie, drag the selected frames to frame 1 and release the mouse button.

The dragged frames replace the content of frames 14.

Tips

  • To drag a copy of selected frames in the Timeline, hold down Option (Mac) or Alt (Windows) as you drag.

  • In span-based selection mode, if you select a span that consists of a keyframe and one in-between frame, you never get the arrow-with-square pointer; you only get the double-headed arrow. That means you can't drag the span to move it. To move such spans, switch to frame-based selection, or Option-drag (Mac) or Alt-drag (Windows) a copy of the span; then remove the original.

  • No matter which frame-selection style you use, pressing the key (Mac) or Ctrl key (Windows) lets you access some of the functionality of the other style temporarily. In frame-based selection, the modifier lets you access the double-headed arrow pointer for extending keyframe spans. In span-based mode, the modifier gives you the arrow pointer for selecting individual frames.

  • If you make a mistake in modifying the frames in the Timeline, you can undo your steps by choosing Edit > Undo. Flash tracks the selection and deselection of frames as part of the undo history. Operations such as dragging frames to move them or to extend spans may require repeated Undo commands, because some of the steps involved are things Flash does behind the scenes.


The Trick to Extending Keyframe Spans

In span-based selection style, the pointer becomes a double-headed arrow when it hovers over a keyframe or an end-of-span frame. Use this pointer to drag that frame to the right or the left to increase or decrease the length of the span.

Resizing a span in the middle of other spans gets a bit tricky. Flash won't let your expanding span eat up the content of other keyframes. Your expansion can reduce the length of a neighboring span, however. In your practice document, for example, using span-based selection, position the pointer over the end of the span that runs from frame 3 to frame 4 (the frame should not be selected). With the double-headed arrow pointer, drag frame 4 to the right. When you get to frame 7, you can drag no further. Release the mouse button. The span that starts at frame 3 now extends through frame 7. The content that was originally in keyframe 5 still exists, but Flash has pushed it into frame 8.

To increase the length of a span without affecting the length of neighboring spans, select the span or any frame within it; then choose Insert > Timeline > Frame or press F5. Flash adds an in-between frame to the selected span and pushes all subsequent spans to the right in the Timeline.

When you reduce the size of a span by dragging, Flash creates blank keyframe spans to cover any gaps between the end of the span you're resizing and the beginning of the neighboring span.





Macromedia Flash 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Flash 8 for Windows & Macintosh
ISBN: 0321349636
EAN: 2147483647
Year: 2005
Pages: 204

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