Home / Articles / Adobe Flash / Modify Simple Graphics in Flash MX 2004

Modify Simple Graphics in Flash MX 2004

Chapter Description

Flash back to Macromedia Flash MX 2004 for a retro tutorial on how to modify simple graphics in Flash! If you're still using Macromedia Flash MX 2004, you'll want to sneak a peek at this sample chapter, which shows you how to use the selection, lasso, and subselection tools to select and modify graphics. You'll also learn about using the Property Inspector and other panels to modify elements' attributes.

Putting Gradients to Work

In "Creating New Gradients" earlier in this chapter, you learned how to create color blends. Flash treats gradients just like any other fill. You use the paint-bucket tool to fill outline shapes with a gradient and the brush tool to create freeform swashes of gradient color.

To fill a shape (or replace a solid fill) with a gradient:

  1. In the Toolbar, select the paint-bucket icon.
  2. In the Color Mixer panel, define a new gradient. or From the Color Swatches panel, or the fill-color box in the Toolbar or Property Inspector, choose an existing linear gradient ( Figure 3.94 ) or radial gradient ( Figure 3.95 ).
    fig_0394_applygrdnttofllm.jpg

    Figure 3.94 You can use the paint-bucket tool to apply a linear-gradient fill.

    fig_0395_applyrdialgrdntm.jpg

    Figure 3.95 The paint-bucket tool can also apply a radial-gradient fill.

  3. Click the paint bucket's hot spot (the tip of the drip of paint) somewhere inside the outline shape or within the existing fill. The shape fills with the gradient currently displayed in the fill-color boxes.

To paint with an unlocked gradient:

  1. In the Toolbar, select the brush tool.
  2. Make sure that the Lock Fill modifier is deselected ( Figure 3.96 ).
    fig_0396_newloccondslctw.jpg

    Figure 3.96 Deselect the Lock Fill modifier to paint with an unlocked gradient.

  3. Using one of the methods described in the preceding exercises, choose a gradient.
  4. Paint with the brush as described in Chapter 2. Flash cannot preview the shape you paint with the gradient you chose, as it can do with solid-color fills. The preview shape has a black-and-white pattern.
  5. When you finish your brush stroke, release the mouse button. Flash redraws the painted shape, using the gradient currently selected in the fill-color box. Flash fills the shape's bounding box (an invisible rectangle that's just the right size to enclose the shape) with the gradient. The painted shape reveals portions of that gradient pattern ( Figure 3.97 and Figure 3.98 ).
    169fig01.jpg

    Figure 3.97 A painted shape with a linear-gradient fill.

    169fig02.jpg

    Figure 3.98 A painted shape with a radial-gradient fill.

29. Modifying Applied Gradients | Next Section Previous Section