1.9. Creating Effects with Strokes
Problem
You want to add effects to a line, such as expanding it or softening its edges.
Solution
Use the Convert Lines to Fills command, and then manipulate the resulting fill.
Discussion
Lines and fills each have unique capabilities. Lines are best for creating complex designs, closed or open. However, fills enable special effects, such as bitmap fills. In addition, shapes can be expanded and have their edges softened.
Flash provides different tools to create these kinds of effects. For example, the Brush tool is the most direct way to paint fills. But if you don’t have a graphics tablet, it is very hard to draw well with the mouse and the Brush tool.
You can get the best of both worlds—the precision of working with lines and the visual effects available with shapes—by converting lines to fills.
To convert lines to fills, follow these steps:
Draw the line. Any of the line drawing tools will work: Pencil, Pen, or Line tools.
When you are satisfied with the overall shape, convert the stroke to a fill by choosing Modify → Shape → Convert Lines to Fills. At the end of this step, the shape looks the same on stage as it did before, but it is a fill and you can start treating it as such.
To change the fill to a bitmap, set the active fill to the bitmap, and use the Paint Bucket tool to apply it to the shape.
To expand the width of the fill, choose Modify → Shape → Expand Fill. In the dialog box that appears, choose the number of pixels that you want it to expand. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access