Manipulating Frames in Multiple Layers

I l @ ve RuBoard

Manipulating Frames in Multiple Layers

As your movie gets more complex, you will need to add layers. You can perform editing operations on selected frames and layers, for example, by copying, cutting, and pasting frames across multiple layers. You can also insert frames, keyframes, and blank keyframes into selected frames and layers.

To select and copy frames in several layers:

  1. Open a new Flash document.

  2. Add two layersfor a total of three layers in the movieand insert 20 frames into each layer.

    Place content in the layers to help you see what's going on as you work with the various frames and layers. Use the text tool, for example, to place the frame number in every other frame of Layer 1 and to place a text block with the name of the layer in layers 2 and 3.

  3. In the Timeline, in Layer 3, in frame-based selections mode click and drag as though you were drawing a selection rectangle around frames 5 through 10 in all three layers. In span-based selection mode; graphics/01icon01.gif -click (Mac) or Ctrl-Click (Windows) and drag to select a range of frames or reversal layers.

    Flash highlights the selected frames (Figure 11.7).

    Figure 11.7. In frame-based mode click and drag across frames and layers to select frames in those layers (bottom).

    graphics/11fig07.gif

  4. From the Edit menu, choose Copy Frames. Flash copies the frames and layer information to the Clipboard.

graphics/01icon02.gif Tip

  • To select a block of frames that spans several layers without dragging, in frame-based selection style, click a frame at one of the four corners of the block. Then Shift-click the frame at the opposite corner. Flash selects all the frames in the rectangle that you've defined (Figure 11.8). In span-based selection style, graphics/01icon01.gif -click (Mac) or Ctrl-click (Windows) one corner and then graphics/01icon01.gif -Shift-click (Mac) or Ctrl-Shift-click (Windows) the opposite corner to make your selection.

    Figure 11.8. To select a block of frames, in frame-based selection style, click one corner of the block; then Shift-click the opposite corner to define the block. In span-based selection style, graphics/01icon01.gif -click (Mac) or Ctrl-click (Windows) the first corner and then graphics/01icon01.gif -Shift-click (Mac) or Ctrl-Shift-click (Windows) the opposite corner of your selection block.

    graphics/11fig08.gif


To replace the content of frames with a multilayer selection:

  1. Continuing with the document that you created in the preceding exercise, select frames 15 through 20 on all three layers.

  2. From the Edit menu, choose Paste Frames. Flash pastes the copied frames 5 through 10 into frames 15 through 20 in each of the three layers. The numbers on the Stage in Layer 1 now start over with 5 at Frame 15, 7 at Frame 17, and 9 at Frame 19.

To paste a multiple-layer selection into blank frames:

  1. Using the document that you created in the preceding exercise, select Frame 21 on all three layers.

  2. From the Edit menu, choose Paste Frames.

    Flash pastes the copied frames 5 through 10 into protoframes 21 through 26 in each of the three layers (Figure 11.9). Layer 1 now displays the number 5 at Frame 21, 7 at Frame 23, and 9 at Frame 25.

    Figure 11.9. Pasting a multiple-layer, multiple-frame selection at the end of a movie (top) extends the movie to accommodate the new frames and layers (bottom).

    graphics/11fig09.gif

To paste a multiple-layer selection into a new scene:

  1. Using the document that you created in the preceding exercise, insert a new scene, following the instructions in the first section in this chapter.

    By default, the new scene has one layer and one frame.

  2. Select Frame 1.

  3. From the Edit menu, choose Paste Frames.

    Flash pastes the copied selection from the first scene (frames 5 through 10 on layers 1 through 3) into the new scene. Flash adds layers 2 and 3 and creates frames 1 through 6 in each layer (Figure 11.10). Layer 1 now displays the number 5 at Frame 1, 7 at Frame 3, and 9 at Frame 5.

    Figure 11.10. When you paste a multiple-layer, multiple-frame selection into a new scene (top), Flash creates new layers and frames to hold the contents of the Clipboard (bottom).

    graphics/11fig10.gif

When Should One Element Span Several Layers?

Often, an element that you think of as a single entity actually consists of several shapes in Flash. A candle flame is a good example. To simulate the flickering of a lighted candle, you might create a flame with three shades of orange and then animate changes in the flame shape and colors.

One natural way to do this is to draw each flame segment in the same layer so that you can see the interaction of the shapes immediately. Unfortunately, Flash has trouble tweening shapes that you create that way. You'll be better off creating a rough version of each segment in a separate layer and then fine-tuning that version. That way, Flash has to tween only one shape per layer, and the result will be cleaner.

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