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


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