Flylib.com

Books Software

 
 
 

Applying Gradients to Multipart Shapes

I l @ ve RuBoard

Applying Gradients to Multipart Shapes

As the characters and elements in your animations get more complex, you may wind up creating graphics made up of numerous parts. When applying gradients to multipart graphics, you have the choice of filling each part with its own separate gradient (as you learned to do in Chapter 3) or selecting several parts and applying one gradient to all of them.

To apply one gradient separately to multiple fills:

  1. On the Stage, create a graphic made of several fills.

  2. Select the fills to which you want to apply the same gradient.

  3. To choose a gradient fill, do one of the following:

    • Click any fill-color box (in the Toolbox, the Property Inspector, or the Color Mixer panel), and from the pop-up swatch set, select a gradient.

    • In the Color Swatches panel, select a gradient.

      Flash applies the fill to each selected shape separately (Figure 4.41). The full range of the gradient appears within each shape.

      Figure 4.41. With several shapes selected (top), when you choose a gradient from a fill-color box or from the Color Swatches panel, Flash applies the gradient to each shape separately (bottom). The full range of the gradient fits within each shape.

      graphics/04fig41.gif

graphics/01icon02.gif Tip

  • You can also use the paint-bucket tool to apply separate gradients. Make sure that the Lock Fill modifier is deselected, choose the gradient you want, and then click the shapes to which you want to apply the gradient fills.


To spread one gradient across multiple fills:

  1. On the Stage, create an object made of several fills.

  2. On the Stage, select the fills to which you want to apply the gradient.

  3. In the Toolbox, select the paint bucket.

  4. Deselect the Lock Fill modifier.

  5. Choose a gradient fill.

    Flash applies the gradient to each shape separately.

  6. On the Stage, use the paint bucket to click any of the selected fills.

    Flash spreads a single gradient across all the selected fills (Figure 4.42).

    Figure 4.42. When you use the paint-bucket tool to apply a gradient to multiple selected shapes, none of the selected objects contains the entire color range of the gradient. Each object opens a window onto part of the gradient within a behind-the-scenes bounding box that contains a single gradient.

    graphics/04fig42.gif

graphics/01icon02.gif Tip

  • You can also spread a single gradient across unselected fills using the paint-bucket tool. In the Toolbox, select the paint bucket's Lock Fill modifier. Click each unselected fill on the Stage. Flash spreads the gradient across the entire Stage ). Each shape you click reveals the portion of the gradient that corresponds to that location in the frame.


I l @ ve RuBoard
I l @ ve RuBoard

Using the Eraser Tool with Multiple Shapes

Just as the brush has complex modes for interacting with live fills and lines, the eraser tool offers complex interaction modes. (For a review of the eraser's normal mode, see Chapter 3.)

Flash's eraser has four special modes that let you select what to erase; in each mode, the eraser interacts differently with lines and fills. In Erase Fills mode, the tool ignores any lines you drag over. In Erase Lines mode, the reverse occurs: The tool ignores fills and removes only lines. Erase Selected Fills mode ignores lines but also ignores any areas of fill you haven't selected. Erase Inside restricts you to erasing within a single fill: the one where you started erasing.

To erase only fills, leaving lines intact:

  1. Create several shapes on the Stage, using both lines and fills and a variety of colors.

  2. In the Toolbox, select the eraser.

  3. From the Eraser Mode pop-up menu, choose Erase Fills (Figure 4.43).

    Figure 4.43. The Eraser Mode pop-up menu lets you choose how the eraser interacts with lines and fills.

    graphics/04fig43.gif

  4. From the Eraser Shape pop-up menu, choose a shape for your eraser.

  5. To erase, click and drag over the objects on the Stage.

    When you release the mouse button, Flash removes only the erased fills. Any lines that you erased over reappear (Figure 4.44).

    Figure 4.44. When you select Erase Fills mode, Flash lets you run the eraser over lines without affecting them. The "erased" lines reappear when you release the mouse button.

    graphics/04fig44.gif

How Can You Tell What You're Erasing?

Flash cannot accurately preview erasures in complex erase modes the way it can in Normal mode. In complex modes, as you hold down the mouse button and erase in one continuous stroke, Flash temporarily obliterates everything you dragged the eraser over. When you release the mouse button, Flash redraws the erasure according to the Erase mode you have selected in the Toolbox.

To erase only lines:

  1. Create several shapes on the Stage, using both lines and fills and a variety of colors.

  2. In the Toolbox, select the eraser.

  3. From the Eraser Mode pop-up menu, choose Erase Lines.

  4. Click and drag over the objects on the Stage to erase.

    The preview erasure obliterates everything you dragged the eraser over. When you release the mouse button, Flash removes only the erased lines. Any fills you erased pop back up (Figure 4.45).

    Figure 4.45. In Erase Lines mode, Flash lets you run the eraser over fills without changing them. The "erased" fills reappear when you release the mouse button.

    graphics/04fig45.gif

To erase selected fills:

  1. With a variety of lines and fills already on the Stage, select one or more fills, making sure to leave some fills unselected .

  2. In the Toolbox, select the eraser.

  3. From the Eraser Mode pop-up menu, choose Erase Selected Fills.

  4. Start erasing; erase over both selected areas and areas you didn't select.

    Flash removes fills only from areas you highlighted as a selection. The eraser has no effect on selected lines or on lines and fills that lie outside the selection (Figure 4.46).

    Figure 4.46. When you choose Erase Selected Fills mode, Flash lets you restrict your erasure to fills in selected areas. Any "erased" lines, as well as any "erased" lines and fills that are not part of the selection, reappear when you release the mouse button.

    graphics/04fig46.gif

To restrict erasures to one area:

  1. With a variety of lines and fills already on the Stage, select the eraser tool in the Toolbox.

  2. From the Eraser Mode pop-up menu, choose Erase Inside.

  3. Start erasing within one shape, extending your erasure outside the shape where you began .

    Flash erases only inside the shape where you first clicked with the tool to begin erasing (Figure 4.47).

    Figure 4.47. When you select Erase Inside mode, Flash lets you restrict your erasure to the fill in which you start erasing. Any other "erased" fills reappear when you release the mouse button.

    graphics/04fig47.gif

I l @ ve RuBoard