Home > Articles > Web Development > Dreamweaver & Flash

This chapter is from the book

Creating Gradients

Flash can create a number of paint effects in addition to solid colors. Gradients are made up of two or more colors that gradually fade into each other. They can be used to give depth to an object or create realistic shadows. Two gradient modes are available: linear and radial. Linear gradients are made up of parallel bands of color. Radial gradients radiate from a center focal point. Both can be edited for color, alpha, and position within a fill or stroke. You can add up to 16 colors to a gradient, precisely control the location of the gradient focal point, and apply other parameters. A gradient behaves like any other fill or stroke. It can be saved to the palette as a swatch using the Color Mixer panel Options button, and added to other shapes with the Paint Bucket tool.

Create a Multi-Color Gradient

  • circle1.jpg With the Arrow Selection tool, select the fill or stroke of a shape on the Stage.
  • circle2.jpg In the Color Mixer panel, click the Fill Style Type popup, and then click Linear or Radial.
  • circle3.jpg Click the Overflow popup, and then select the gradient overflow style you want to control colors past the limits of the gradient when publishing for Flash Player 8 (New!).
  • circle4.jpg Position the pointer on the Gradient bar to display a plus (+) sign next to the pointer.
  • circle5.jpg Click in the Gradient bar to create a color proxy indicated by a little box with a triangle on top.
  • circle6.jpg Click one of the color proxy indicators to select it.
  • circle7.jpg Click a new color from the Color Picker below.
  • circle8.jpg Drag the color proxy indicator along the Gradient bar to adjust the color placement.
  • circle9.jpg Repeat steps 4-8 to add up to 15 more gradient colors.
  • + Share This
  • 🔖 Save To Your Account