Section 4.2. Adding Content to Multiple Layers


4.2. Adding Content to Multiple Layers

A layer is nothing more than a named sequence of frames. So you won't be surprised to learn that, after you create a couple of layers as described in Chapter 3, you need to fill up each layer's frames with content. This section shows you how.

When you're working with a single layer, adding content to frames is easy because you don't have to worry about which layer you're working with: You simply click a keyframe and use Flash's drawing and painting tools to create an image on the Stage.

But when you're working with multiple layersfor example, when you're creating a composite drawing by adding a background layer, a foreground layer, and a separate layer for your sound clipsyou may find adding content a bit trickier because you have to be aware of the layer to which you're adding your content. Fortunately, as you see in the steps below, the Timeline's Show/Hide icon helps you keep track of which content you've placed on which layers.

Here's how to add content to multiple layers:

  1. Open the file multiple_layers.fla .

    You can find this file (and all the other examples files for this book) on the "Missing CD" page at www.missingmanuals.com/cds.

    Figure 4-4. Top: You can work with multiple images just as easily as single images. For example, you can select several (or all of them) and apply whatever edits you likemoving them, coloring them, reshaping them, and so on.
    Bottom: If you need to differentiate between the content in the selected frame and the content in the other frames, click Edit Multiple Frames and then click Onion Skin Outlines. All the non-selected frames appear in outline form, as shown here. (Clicking Onion Skin shows the content of non-selected frames in semi-transparent form). With onion skinning turned on, you can see multiple frames, but you can edit only the content of the selected frame; click Edit Multiple Frames to return to multiple-frame editing mode.
  2. Click the first keyframe in Layer 1 .

    Flash highlights the selected frame, as well as the layer name . You also see a little pencil icon that lets you know this frame's now ready for editing.

  3. Use Flash's drawing and painting tools to draw a fence on the Stage .

    Your fence doesn't have to be fancy; a quick "wooden" fence, like the one in Figure 4-5, is fine.

  4. Hide Layer 1 by clicking the Show/Hide icon next to Layer 1 .

    The content on the Stage temporarily disappears. Flash replaces the Show/Hide icon with an X and draws a slash through the pencil icon next to Layer 1 to let you know this layer is no longer editable (Figure 4-5).


    Note: Technically, you don't have to hide the contents of one layer while you're working with another; in fact, in some cases, you want to see the contents of both layers on the Stage at the same time (Section 4.3). But for this example, hiding is the best way to go.
    GEM IN THE ROUGH
    Editing Multiple Frames with Find and Replace

    Another way to edit the content of multiple frames is to use Flash's "Find and Replace" function. Similar to the find-and-replace you've undoubtedly used in word processing programs, this function lets you search every frame of your animation for a specific bit of text (or even a certain color or bitmap file) and either replace the occurrences yourself, or tell Flash to replace them for you using the text (or color or bitmap file) you tell it to use.

    To use this function, select Edit Find and Replace. Then, in the "Find and Replace window that appears, head to the For drop-down menu and select the item you want to find. Your choices include Text, Font, Color, Symbol, Sound, Video, and Bitmap.

    To change the occurrences yourself, click Find Next or Find All (and then make your changes on the Stage). To tell Flash to change the occurrences, add a Replace With option (for example, the color or text you want to insert) and then click Replace or Replace All.


    Figure 4-5. You can tell at a glance which layer's active (editable) by the pencil icon next to the layer's name. Here, Layer 1 is active.
  5. Click the first keyframe in Layer 2 .

    Flash highlights the selected frame, as well as the layer name (Layer 2). Now the pencil icon's next to Layer 2.

  6. Use Flash's drawing and painting tools to draw a few flowers on the Stage .

    Your workspace should look like the one in Figure 4-6.

  7. Hide Layer 2 by clicking the Show/Hide icon next to Layer 2 .

    The content on the Stage temporarily disappears. Flash replaces the Show/Hide icon with an X and draws a slash through the pencil icon next to Layer 2 to let you know that this layer is no longer editable.

    Figure 4-6. Sometimes you want to see the frame contents of two or more layers at the same time, like when you're trying to line up objects in multiple layers. But sometimes seeing all those different objects on the same Stagesome of which you can edit and some of which you can't, since Flash only lets you edit one layer at a timeis just plain confusing. Here, the fence in the first frame of Layer 1 is hidden (you can tell by the big X in the Show/Hide column) so that you can focus on the contents of Layer 2 (the flowers).
  8. Repeat Steps 46 for Layers 3 and 4, adding some gray clouds to Layer 3 (Figure 4-7, top) and some flying birds to Layer 4 (Figure 4-7, bottom) .

  9. To see the content for all four layers, click to uncheck the Show/Hide icon next to Layer 3, Layer 2, and Layer 1, as shown in Figure 4-8 .

    Flash displays the content for all four layers on the same Stage.




Flash 8
Flash Fox and Bono Bear (Chimps) (Chimps Series)
ISBN: 1901737438
EAN: 2147483647
Year: 2006
Pages: 126
Authors: Tessa Moore

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