1.10. Drawing Primitive Shapes
Problem
You want to draw primitive shapes, such as ovals, circles, rectangles, and squares.
Solution
Use the Oval (O) and Rectangle (R) tools, or the Pencil (Y) tool.
Discussion
To create ovals or rectangles, select the Oval or Rectangle tool from the Tools panel, and click and drag across the stage to create the bounds of the shape. Because they are closed shapes, ovals and rectangles are automatically filled with the default fill style.
Tip
Fills are not visible if View → Outlines mode is active. To view fills, switch to another mode, such as View → Antialias.
Set the fill style to No Color to create unfilled shapes. To create an unfilled shape regardless of the default fill style, use the Pencil tool to scribble your best approximation of a rectangle or oval. Flash will automatically convert a rough approximation to a perfect rectangle or oval, especially if the Recognize Shapes option—under Edit → Preferences → Drawing—is set to Tolerant. The Recognize Shapes option works only if you draw the shape in one continuous motion without releasing the mouse button or lifting the pen from the tablet until you’ve closed the shape. Also note that the only shapes that Flash can recognize with the Pencil tool are primitive shapes—ovals, rectangles, and triangles. It cannot recognize polygons with sides numbering anything greater than four. To draw regular polygons (polygons with equilateral sides) you’ll need to use the PolyStar tool as discussed in Recipe 1.11.
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