Converting Lines to Fills

I l @ ve RuBoard

Flash lets you convert lines and outlines (strokes) to fills, which you can then edit or fill with gradients. You can expand or contract a shape by a user -specified amount. And you can create soft-edged graphic elements. These conversions increase the number of curves that Flash creates and therefore may increase file size .

To convert a line to a fill:

  1. In the Toolbox, select the pencil tool.

  2. Draw a simple line on the Stage.

  3. Change to the arrow tool, and click the line to select it.

  4. From the Modify menu, choose Shape > Convert Lines to Fills (Figure 3.122).

    Figure 3.122. Choose Modify > Shape > Convert Lines to Fills to transform strokes into fills. Flash converts the line to a fill shape that looks exactly like the line. You can now edit the "line's" outline (or apply a gradient) as though you were working with a fill created with the brush tool (Figure 3.123).

    graphics/03fig122.gif

    Figure 3.123. You can convert an outline, such as this line drawn with the pencil tool (top), to a fill. The fill then has its own editable outlines (middle and bottom).

    graphics/03fig123.gif

To expand a fill:

  1. In the Toolbox, select the oval tool with no stroke.

  2. On the Stage, draw an oval shape.

  3. Change to the arrow tool, and click the shape to select it.

  4. From the Modify menu, choose Shape > Expand Fill.

    The Expand Fill dialog box appears (Figure 3.124).

    Figure 3.124. The Expand Fill dialog box presents options for resizing a selected fill.

    graphics/03fig124.gif

  5. Enter a value in the Distance field.

  6. Choose a Direction option.

    Expand makes the shape larger. Inset makes the shape smaller.

  7. Click OK.

    Flash blows the fill shape up like a balloon or shrinks it (Figure 3.125).

    Figure 3.125. Using the Expand Fill command on the selected fill (top) causes its outlines to expand. The grid here is set to 36 pixels.

    graphics/03fig125.gif

To soften the edges of a fill:

  1. In the Toolbox, select the oval tool with no stroke.

  2. On the Stage, draw an oval shape.

  3. Change to the arrow tool, and click the shape to select it.

  4. From the Modify menu, choose Shape > Soften Fill Edges.

    The Soften Fill Edges dialog box appears (Figure 3.126).

    Figure 3.126. The Soften Fill Edges dialog box.

    graphics/03fig126.gif

  5. Enter values for Distance and Number of Steps.

  6. Choose a Direction option.

    Expand makes the shape larger; Inset makes the shape smaller.

  7. Click OK.

    Flash divides the expansion or inset value by the number of steps you specified and creates a series of concentric shapes that outline your original shape. The new shapes get progressively lighter in color as they approach the outer edge of the softened shape (Figure 3.127).

    Figure 3.127. The Soften Fill Edges command creates a purposeful banding effect to give fill shapes a soft edge. The selected circle (top) gets a soft edge in eight steps (middle). Enlarged views show the banding more clearly (bottom left); you can select individual steps of the softened edge (bottom right).

    graphics/03fig127.gif

graphics/01icon02.gif Tips

  • The Expand Fill and Soften Fill Edges commands work best on plain fill shapes (fills without strokes). Small shapes and shapes with convoluted outlines take a longer time to convert, and the result may not be what you expect.

  • When you use the Modify > Shape commands on fills that also have strokes around them, the stroke doesn't expand or shrink to match the expansion or inset. Depending on how far you expand the fill, it will eat intoor coverthe stroke.

  • If you use one of the Modify > Shape commands to inset the fill of a stroked graphic, you wind up with a blank ring inside the stroke. This effect could be handy should you ever need to create a secondary outline for a shape, but it's usually not the effect you're looking for.

  • The multiple bands created by the Soften Fill Edges command will use processor power during playback. Used too often, the soft-edged effect will slow your final published movie's frame rate.


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