Chapter 5. Advanced Drawing and Coloring

There's a difference between using a pencil to create stick drawings and using a pencil to create a carefully shaded portrait. Chapter 2 covered drawing basics, explaining exactly how the Pencil, Pen, Brush, Line, and Shape tools work. This chapter explains how to use the tools in a more creative and nuanced manner. In real life—whether you're pounding out Flash animations for your boss or for your own personal website—you're rarely going to be satisfied with a simple drawing. For each keyframe of your animation, you're going to want to start with a basic sketch and then play with it, changing its color, moving a line here and there, adding a graphic element or two, and repositioning it until it looks exactly the way you want it to look.

In this chapter, you'll get more acquainted with Flash's selection tools—the tools you use to tell Flash which specific part of a drawing you want to change. Then you'll apply Flash's editing tools from basic (copying, pasting, and moving) to advanced (scaling, rotating, stacking, grouping, and more). You'll also do more with color in Flash drawings than you saw in Chapter 2. After a quick background in color theory, this chapter covers applying color effects like brightness and transparency, and even creating custom colors. The chapter wraps up with some special tools that let you create complex patterns with a click of your mouse.

With few exceptions, before you can modify an object on the stage, you first have to select the object. It's the same in a word processor, where you have to highlight a word with your cursor before you can edit or delete it. Since Flash deals with more complex objects than words, it gives you a variety of selection tools for different purposes. The Tools panel (Figure 5-1) has three different selection tools. Each is good for selecting different types of objects.

There are a couple of exceptions to this rule: specifically, modifying fill color using the Paint Bucket tool (Changing the Color of a Fill) and reshaping lines and curves using the Selection tool (next page). But in general, you need to select stuff in Flash before you can work with it.

The following sections describe each of these tools in detail.

The aptly named Selection tool (V) is the workhorse of Flash's selection tools; with it, you can select individual graphic elements like strokes, fills, shapes, symbols, text blocks, and grouped objects. You can also use the Selection tool to select a portion of any object, as shown in Figure 5-2 or to move or reshape an object (a process sometimes referred to as transforming an object).

The most common thing you're going to want to do with the Selection tool is select an entire graphic element—a circle, a line, a block of text, a bitmap, a hand-drawn kangaroo—so that you can apply color to it, copy it, skew it, or make some other modification to it.

To select an entire graphic element (or group of elements) using the Selection tool:

With the object selected, you can make any modifications you want to the object using the main menu options, Flash's Color or Transform tools (pages Adding Color and Copying and Pasting Frames), or any of the panels, like the Properties panel.

Here's yet another case when shapes drawn in object drawing mode behave differently from shapes drawn in merge mode. Select a shape created in object drawing mode and it's an all-or-nothing deal. Flash thinks of those shapes as a unit. However, if you create a shape in merge mode, it's easy to select just a portion of the shape. A single click selects the fill or the stroke—maybe just a segment of the stroke. That's why shapes drawn in merge mode are sometimes called ungrouped shapes. Because they're ungrouped, you can select or carve a chunk off the shape. Maybe you want to apply a gradient effect to a portion of the shape. Or maybe you want to sculpt a complex shape from a rectangle or oval, by removing bits and pieces. Using the Selection tool, you can drag a rectangle anywhere over an ungrouped shape to tell Flash to select just a portion.

So, is it impossible to edit parts of a shape drawn in object mode? No, not at all. Double-click a drawing object, and it opens for editing as an ungrouped shape. Other objects on the stage are dimmed and un-selectable. The Edit bar above the stage lists "Drawing Object" to indicate that you're editing a drawing object. To close the object, click the scene name or the blue Back arrow in the Edit bar. The drawing object closes, and no matter how you've changed its appearance, it still behaves as a drawing object. For example, a single click selects the object and the Properties panel describes it as a drawing object.

If you want, you can convert a drawing object into an ungrouped shape. Select the shape, and then choose Modify→Ungroup. Flash gives you visual clues so you can tell a grouped shape from an ungrouped shape, as shown in Figure 5-4. Your object drawing becomes an ungrouped shape as if it were drawn in merge mode. You can confirm this by selecting the shape and checking the Properties panel, where it's listed as a Shape.

To select just a portion of an ungrouped shape using the Selection tool:

The Selection tool does more than just select objects. It also moves and reshapes, or transforms, them. This is great—as long as you know what to expect. (Many's the budding Flashionado who's sat down to select part of an image and been totally dismayed when the object suddenly, inexplicably, developed a barnacle-like bulge.)

Here's how it works: If you click the Selection tool and then position your cursor directly over an unselected fill or stroke, Flash displays, next to your cursor, one of three icons: a cross with arrowheads, a curve, or an angle.

When you want to modify the individual points and segments that make up your shapes, use the Subselection tool, the white arrow in the Tools panel.

Click a stroke or the edge of a fill with the Subselection tool, and you see the anchor points that define the stroke or shape. To change the stroke or shape, drag one of the anchor points. To adjust a curved line segment, click an anchor point adjacent to the curve, and you see control handles connected to the anchor. These control handles work like the ones used with the Pen tool (Pen tool). To change a curve, drag a control handle, and the curve changes its path. You can move a fill or stroke using the Subselection tool—just make sure you don't click on an anchor point. The cursor shows a hollow square when it's over an anchor point and a solid square when it's over a line segment.

To use the Subselection tool to move an object:

To use the Subselection tool to move an anchor point (and, by association, the segments attached to that point):

Sometimes a rectangular selection just can't encompass the objects you want to select. Say you want to select an irregular shape inside an oval so you can recolor it or remove it. Or perhaps your stage is so jam-packed with images that you can't select the image you want with the Selection tool without inadvertently selecting parts of images you don't want. Those situations call for the Lasso tool (L). Draw a line around your selection with the Lasso tool and you can grab it, as shown in Figure 5-11. The lasso has two modes—freehand mode and polygon mode. You'll learn how to use both here.

Tip

As explained earlier in this chapter (Selecting part of a shape or object), you can only select portions of ungrouped shapes. If it's a drawing object, then double-click the object to open it for editing, or convert it to an ungrouped shape with Modify→Ungroup.

Flash treats bitmaps—for example photos in the JPEG format—differently from the way it treats the shapes you create using its drawing tools. And if you take a look at Figure 5-13, you'll see why.

While you can't manipulate bitmaps in Flash anywhere near as easily or as completely as you can manipulate the shapes and lines you draw directly onto the stage, Flash does have a special tool specifically for selecting ranges of colors in bitmaps: the Magic Wand. After you select color ranges, you can then recolor them or cut them out of the bitmap completely.

To select color ranges in a bitmap using the Magic Wand:

  1. On the stage, select the bitmap you want to work with.

    Flash displays a light-colored border around the selected bitmap.

  2. Choose Modify→Break Apart.

    Flash redisplays the bitmap as a selected fill.

  3. From the Tools panel, select the Lasso. Then, in the Options section of the Tools panel, click the Magic Wand (Figure 5-14, top).

    As you mouse over the bitmap, your cursor turns into a tiny magic wand.

  4. Click the bitmap to select a color range.

    Flash highlights bits of selected color.

  5. Click the bitmap again (click a similarly colored area).

    Flash highlights the bits of color that match your selection. You can modify the highlighted bits of fill color as you go (cut them, recolor them using the Eyedropper tool described on Copying Color with the Eyedropper, and so on), or continue to click the bitmap as you did in step 4 to add to the selection.

In Figure 5-14 (bottom), the designer first selected, and then cut (Edit→Cut) the pixels to make the selected areas easier to see.