Recipe 1.22. Applying a Stroke to a Fill


Problem

You want to add or replace a stroke to/on an existing fill.

Solution

Use the Ink Bottle tool (S) in the Tools panel.

Discussion

The Ink Bottle adds or changes the stroke on an existing fill. It has two behaviors, depending on the nature of the fill:

  • If the fill lacks a stroke, the Ink Bottle adds a line enclosing the shape and gives it the active stroke.

  • If the shape already has a stroke, the Ink Bottle changes the stroke to the active stroke.

Using the tool requires two steps: setting the active stroke and then applying it to the shape. To specify the stroke formatting, select the Ink Bottle tool and choose the desired stroke color, height, and style from the Property inspector. To apply the new stroke, click anywhere on the shape itself, if it's a solid color. Otherwise, click near the edge of the fill to add the stroke.

See Also

Recipe 1.1




Flash 8 Cookbook
Flash 8 Cookbook (Cookbooks (OReilly))
ISBN: 0596102402
EAN: 2147483647
Year: 2007
Pages: 336
Authors: Joey Lott

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net