Chapter 5. Drawing in Flash

IN THIS CHAPTER

  • Using shape and drawing tools

  • Working with Drawing Objects and Shape Primitive tools

  • Setting Brush tool and Eraser tool modes

  • Creating optimized lines and curves

  • Choosing fill and stroke styles

  • Using selection tools and options

  • Controlling snapping behavior

  • Aligning, scaling, and rotating artwork

  • Knowing the Edit menu commands

  • Creating symbol patterns with the Spray Brush tool and the Deco tool

This chapter introduces the primary tools for creating and manipulating vector graphics in Flash, as well as some features of the Flash environment that affect how elements behave. The primary drawing tools have self-explanatory names: the Line, Oval, Rectangle, PolyStar, Pencil, Brush, and Eraser. However, these tools have a variety of options and modifiers that make them more sophisticated than they may at first appear. In this chapter, you learn to apply the primary options of these tools to create shapes and line art.

The selection tools — Selection (arrow), Lasso, and Subselection — are found in the top section of the Tools panel, and these work as your "hands" within the drawing space of Flash, enabling you to select elements or grab and adjust specific parts of a shape or line.

The Pen is a powerful tool that draws lines by laying down editable points. You use both the Pen and Subselection tools to manipulate the points; you can also use them to select and edit all lines and shapes to manually optimize artwork.

Tip

Like the Pen tool in Illustrator, the Pen tool in Flash has a series of different modes that you can select from the same tool space in the Tools panel by clicking and holding the Pen tool icon.

The built-in shape-creation tools of Flash and the adjustable shape-recognition settings make it easy even for people who "can't draw a straight line" to create useable elements for Flash interfaces.

Tip

Tools for creating dynamically editable shapes based on an Oval Primitive or Rectangle Primitive can be selected from the same tool space as the basic Oval, Rectangle, and PolyStar tools. The shape primitives can be adjusted with controls in the Properties panel even after they are drawn to create a variety of useful polygons — including rounded or beveled rectangles and open circles or curves.

In addition to drawing, in this chapter you also learn to apply some of the terrific tools Flash provides to help you organize and align elements as you create layouts.

Note

If you're comfortable using the core Flash drawing tools and design panels, you can skip to Chapter 9 for a deeper look into the options available for editing artwork, including the Free Transform tool, the Envelope modifier, new 3-D tools, and the Commands feature, which you can use to record and repeat authoring steps.

The primary drawing tools can be divided into two groups: geometric shapes and freehand lines and strokes. Line, Oval, Rectangle, and PolyStar fall into the first category; Pencil, Brush, and Eraser fall into the second.

Note

The default fill and stroke settings that Flash launches with are sufficient to get started with any of the drawing tools, but I introduce many more inspiring choices later in this chapter.

Tip

The Object Drawing option in the Tools panel provides a workaround to the standard overlap and merge behavior of raw graphics. If you prefer shapes or lines on the same layer to behave more like groups and not interfere with each other as you are drawing, you can enable the Object Drawing mode and work with any of the standard drawing and shape tools to create well-behaved, autonomous drawing objects.

There are two tools in Flash CS5 that enable you to create patterns by using symbols. If you have worked with Illustrator, the Deco tool and the Spray Brush tool workflow will be familiar: You select a symbol to use as your "ink" and then set the parameters for your "brush," and with a click on the Stage, Flash creates a cool pattern for you that consists of many instances of your base symbol(s). This can save you hours of time, and the symbol instances can still be selected and edited individually after they have been placed on the Stage as part of a pattern. These symbol-based drawing tools are discussed in more detail toward the end of this chapter.

Using Geometric Shape Tools

As shown in Figure 5.1, the prebuilt geometric shapes available for creating graphics in Flash are easy to access from the Tools panel. The basic Line, Oval, and Rectangle tools are straightforward but infinitely useful. The Oval Primitive and Rectangle Primitive tools make it easier to create more complex shapes without having to manually move points or merge multiple shapes. Instead, you can use settings in the Properties panel to control the corner radius of your rectangles or the inner radius and fill areas of your ovals. The PolyStar tool creates a wide variety of geometric shapes defined by a separate Tool Settings dialog box — available from the Options button in the Tool Settings section of the Properties panel. You can use custom stroke styles and the various fill options (described later in this chapter) with any of these shapes to create nearly any graphic you may need. Geometric shapes are more optimized than freehand drawings, and you can combine or modify them in multiple ways to create your graphics.

Note

The Rectangle Primitive and Oval Primitive tools are really not primitive at all — they create dynamic shapes that can be adjusted with controls on the Properties panel. However, if you choose to edit these shapes manually in the Document window, you are given an option to convert them to simple drawing objects. After shape primitives are converted to drawing objects, they can be edited directly in Edit mode but they no longer have the same options available in the Properties panel for modifying corner radius or fill angle settings.

The shape tools are all nested together in the Flash CS5 Tools panel.

Figure 5.1. The shape tools are all nested together in the Flash CS5 Tools panel.

The Oval tool

Drawing with the Oval tool (O) creates a perfectly smooth oval. You draw ovals by clicking and then dragging diagonally from one "corner" of the oval to the other — dragging more vertically creates a taller oval, whereas dragging more horizontally creates a wider oval.

Tip

To constrain the shape to a perfect circle, hold down the Shift key before releasing the mouse.

The Oval tool has no unique options, but it can be filled with any of the fill colors available in the Swatches panel (described later in this chapter) as well as "outlined" with any of the stroke styles or colors. Figure 5.2 shows some of the huge variety of shapes you can create by using the Oval tool with different stroke and fill settings.

Shapes created with the Oval tool, using different stroke and fill settings

Figure 5.2. Shapes created with the Oval tool, using different stroke and fill settings

The Oval Primitive tool

If you need more complex shapes based on an oval, the Oval Primitive tool (available in the same drop-down Tools menu as the Oval tool) can save you a lot of time. With the Oval Primitive tool you can draw a basic oval and then modify angle and radius settings in the Properties panel (in the Oval Options section) to create donut or pie shapes, or open curves. Figure 5.3 includes just a few of the shapes that you can draw, along with the settings that were used to create them.

Shapes created with the Oval Primitive tool, using different angle and radius settings

Figure 5.3. Shapes created with the Oval Primitive tool, using different angle and radius settings

Don't overlook the Close path check box available in the Properties panel for oval primitives. By default, this check box is selected to create filled shapes, but if you prefer to create outlined shapes or curves, simply deselect the Close path check box. Figure 5.4 shows the same shapes as Figure 5.3, with the difference in effect created by deselecting the Close path check box.

Shapes created with the Oval Primitive tool, with the Close path check box deselected

Figure 5.4. Shapes created with the Oval Primitive tool, with the Close path check box deselected

The Oval tool and Oval Primitive tool both have a "hidden" Settings dialog box that you can use to set the width and height of an oval before you draw it. To access this feature, select the Oval or Oval Primitive tool in the Tools panel (0), and then hold down the Alt (or Option) key as you click in the Document window where you want the shape to be drawn. The dialog box shown in Figure 5.5 pops up and you can set the width and height (in pixels). By default, the Draw from center check box is selected; if you prefer the shape to be drawn from the top-left corner (originating where you clicked), deselect the check box. After you have entered the settings and clicked OK, the shape is drawn for you to the correct dimensions.

The Oval Settings dialog box can be used to generate shapes with precise width and height settings, instead of estimating size as you draw them manually.

Figure 5.5. The Oval Settings dialog box can be used to generate shapes with precise width and height settings, instead of estimating size as you draw them manually.

Tip

The Oval tool and the Oval Primitive tool have the same shortcut key (O), but you can toggle between the two by pressing the shortcut key again.

The Rectangle tool and Rectangle Primitive tool

The Rectangle tool (R) creates perfect rectangles, which means that all four sides are parallel, regardless of the length or width of the shape. Draw rectangles by clicking to place a starting corner and then dragging toward the opposite corner of your shape until you have the size and shape that you want.

Tip

To constrain the rectangle to a perfect square, hold down the Shift key before releasing the mouse.

Aside from choosing the stroke and fill to apply to a shape drawn with the Rectangle tool, there are also value boxes in the Properties panel under Rectangle Options for setting the radius for corners on the rectangle. The radius is set to 0 pt by default, to create rectangles with square or 90-degree corners. The range for radius settings is 100 pt to −100 pt, but unless the dimensions of the rectangle are equal to double the radius setting that you use, you will not see any additional effect by pushing the value farther. For example, the highest (or lowest) setting that would have a visible effect on a rectangle that was 30 × 30 pixels square would be 15 or −15. Choosing a more moderate radius setting creates rounded rectangles or squares with softened corners, and choosing negative values creates rectangles with indented corners (see Figure 5.6). By default, all rectangle corners are locked to have the same value, but if you want to create more interesting polygons you can click the lock icon in the Properties panel to "unlock" the corner values and enter different radius settings for each corner.

Warning

You'll want to choose the radius setting before you create a shape with the basic Rectangle tool because the radius cannot be reapplied or easily modified after the shape is drawn.

Tip

Like the Oval tool, the Rectangle tool and Rectangle Primitive tool also have a Settings dialog box that you can use to set the width, height, and corner radius to have Flash draw the shape for you. To access this feature, select the Rectangle tool in the Tools panel (R), and then hold down the Alt (or Option) key as you click in the Document window where you want the shape to be drawn.

Radius settings for rectangles made with the basic Rectangle tool cannot be adjusted after they are drawn, but shapes drawn with the Rectangle Primitive tool can be modified, using the options in the Properties panel, as long as they are not converted to drawing objects or broken apart into basic shapes.

Warning

The Corner Radius values do not reset automatically, so if you change the radius settings, you have to use the Reset button to return to drawing standard rectangles. Any radius setting entered in the Rectangle Settings dialog box accessed by Alt (or Option)+clicking in the Document window while the Rectangle tool is selected in the Tools panel is also transferred to the radius settings in the Properties panel.

Rectangles drawn with different radius settings create different degrees of roundness or inversion on the corners. Radius settings for rectangle primitives remain editable after they are drawn, and settings for basic rectangles "stick" and are not editable (from the Properties panel) after the shape is created.

Figure 5.6. Rectangles drawn with different radius settings create different degrees of roundness or inversion on the corners. Radius settings for rectangle primitives remain editable after they are drawn, and settings for basic rectangles "stick" and are not editable (from the Properties panel) after the shape is created.

Join and Miter settings

As shown in Figure 5.7, the Join menu includes three settings — Miter, Round, and Bevel — that you can apply to create three different join styles on any of your drawings or shapes with intersecting lines.

The three join styles available in the Join drop-down menu in the Properties panel create corners or angles with different types of line intersection.

Figure 5.7. The three join styles available in the Join drop-down menu in the Properties panel create corners or angles with different types of line intersection.

When you select the Miter join style, you can further adjust the angle of the join by entering a setting between 1 and 60 in the Miter field. This field is a hot text value in Flash CS5, which means it can also be modified by clicking and dragging left or right to update the Miter angle. As shown in Figure 5.8, the visual difference between these different Miter angles is very subtle, and for most graphics you will probably be happy with the default setting of 3.

The sharpness of Miter joins can be adjusted by entering a setting between 1 and 60 in the Miter field.

Figure 5.8. The sharpness of Miter joins can be adjusted by entering a setting between 1 and 60 in the Miter field.

The PolyStar tool

The PolyStar tool is so named because it is a multipurpose tool that can make a whole variety of different polygons and stars. If you're using the default Tools set in Flash, you'll find the PolyStar tool at the bottom of the shape tools submenu in the Tools panel. There is no shortcut key for the PolyStar tool.

When the PolyStar tool is active, an Options button appears in the Properties panel to open a Tool Settings dialog box that enables you to control the type of shape you want to draw. The composite in Figure 5.9 includes the Properties panel as it appears when the PolyStar tool is active, as well as the Tool Settings dialog box with the two shape styles available: polygon or star. You can set the number of sides for either shape by entering a value between 3 and 32 in the Number of Sides field. As shown at the top of Figure 5.9, a standard five-sided star is as easy to create as a triangle — that is, a polygon with three sides.

A composite figure showing the Options button in the Properties panel (left) that launches the Tool Settings dialog box, used to create different shape styles (right)

Figure 5.9. A composite figure showing the Options button in the Properties panel (left) that launches the Tool Settings dialog box, used to create different shape styles (right)

Note

If you are a little confused by the inconsistent workflow for accessing settings dialog boxes for the different drawing tools, don't worry, I was too! Hopefully, these glitches will be smoothed out in future releases of Flash. For now, I just have to live with the fact that there isn't an Options button in the Properties panel for launching the Settings dialog box for the Oval or Rectangle tool, and the Settings dialog box for the PolyStar tool doesn't show up when you Alt (or Option)+click in the Document window.

The fields in the Tool Settings dialog box look the same whether you select polygon or star in the Style menu, but Star point size does not affect polygon shapes. If you are drawing a star, enter any number between 0 and 1 to control the depth of the star points. This might not look like much of a range, but you can enter decimal numbers, so you actually have 99 possible settings! As shown in Figure 5.10, numbers closer to 0 create sharper stars and numbers closer to 1 create blockier shapes.

Star point size decimal settings between 0 and 1 create various star shapes.

Figure 5.10. Star point size decimal settings between 0 and 1 create various star shapes.

The Line tool

Drawing with the Line tool (N) enables you to create a perfectly straight line that extends from a starting point to an endpoint, simply by clicking a start position and dragging to the end position before releasing the mouse. Just select the Line tool in the Tools panel and start drawing in the Document window. You can select various line styles and stroke heights from the Properties panel, as well as set the color with the popup Swatches panel accessible from the Stroke color chip on either the Properties panel or the Tools panel. I describe the various options for line styles and colors later in this chapter. Snapping settings and guides can be used to help control where a line is placed and how precisely it connects to other lines. The Line tool conforms to the snapping settings I describe later in this chapter.

Tip

To restrict the line to 45-degree-angle increments, hold down the Shift key as you drag out the line.

Figure 5.11 shows how a line previews as you drag and how it appears when the mouse is released and the current line style and stroke height settings are applied.

With the Cap option menu in the Properties panel, you can quickly switch a stroke from a rounded end to a square end to a flat or no cap end. Figure 5.12 illustrates how these cap styles render on a 10 pt line.

Line tool preview (top) and the final line (bottom), displayed when the mouse button is released and line style is rendered

Figure 5.11. Line tool preview (top) and the final line (bottom), displayed when the mouse button is released and line style is rendered

A 10 pt line rendered with different cap styles. These styles can be applied to any line using the Cap style menu in the Properties panel: None (top), Round (center), Square (bottom).

Figure 5.12. A 10 pt line rendered with different cap styles. These styles can be applied to any line using the Cap style menu in the Properties panel: None (top), Round (center), Square (bottom).

Using Drawing Tools

The tools for drawing freehand lines and strokes in Flash come with options for applying different combinations of line processing and shape recognition. So, what does that mean exactly? These are general terms for a class of options that you can set to assist accurate drawing and manipulation of basic shapes. These options can be applied dynamically as you draw with the Pencil or Brush tool, or applied cumulatively to an item selected with the Selection tool to clean up a shape or line that you've already drawn. These are some of the Flash assistants that can help even a drafting-challenged designer create sharp-looking graphics with ease.

Note

The biggest challenge when drawing in Flash is finding a happy medium between the degree of line variation and complexity required to get the graphic look you want, and the optimization and file size that you need to keep your artwork Web friendly.

The Pencil tool

You use the Pencil tool to draw lines and shapes. At first glance, it operates much like a real pencil. You can use the Pencil tool with different line styles as you draw a freeform shape. But a deeper examination reveals that, unlike a real pencil, you can set the Flash Pencil tool to straighten lines and smooth curves as you draw. You can also set it to recognize or correct basic geometric shapes. For example, a crude lumpy oval can be automatically recognized and processed into a true, or perfect, oval. You can further modify these shapes and lines after you've drawn them by using the Selection and Subselect tools.

When the Pencil tool is active, one option besides the Object Drawing toggle appears at the bottom of the Tools panel. This is actually a button for the Pencil Mode popup menu, which sets the Pencil tool's current drawing mode. The three modes, or drawing styles, for the Pencil are Straighten, Smooth, and Ink. These settings control the way that line processing occurs as you draw.

Figure 5.13 shows the same freehand drawing done with the different Pencil modes. The drawing on the left was done with the Straighten mode, the drawing in the middle was done with Smooth mode, and the drawing on the right was done with Ink mode. As you can see, each mode is more effective for certain types of lines and shapes.

Similar sketches made by using the three different Pencil modes to show how line processing affects various shapes: Straighten (left), Smooth (center), and Ink (right)

Figure 5.13. Similar sketches made by using the three different Pencil modes to show how line processing affects various shapes: Straighten (left), Smooth (center), and Ink (right)

To create a pleasing finished result, you'll most likely use different Pencil modes when working on individual elements of your drawing. Here are some notes on the characteristics of the three Pencil drawing modes that you can select in the Tools panel:

  • Straighten: Drawing with the Straighten option processes your drawings while taking into account both line and shape recognition. This means that nearly straight lines are straightened, and wobbly curves are smoothed. Approximate geometric shapes, such as ovals, rectangles, and triangles, are recognized and automatically adjusted.

  • Smooth: Drawing with the Smooth option reduces the zeal with which Flash automatically processes your drawings. With the Smooth option, line straightening and shape recognition are not applied, but curved lines are smoothed. Additionally, a line that ends near another line is joined automatically, if the Connect Lines tolerance is set to Can be Distant.

  • Ink: Drawing with the Ink option turns off all line processing. Lines remain as you've drawn them. Your lines are not smoothed, straightened, or joined. There will always be a slight difference between the line preview and the final, rendered line, but this setting is as close to raw sketching as you can get in the Flash drawing environment.

The Brush tool

You use the Brush tool to create smooth or tapered marks and to fill enclosed areas. Unlike the Pencil tool, which creates marks with a single row of anchor points, the Brush tool actually creates marks by using filled shapes. The fills can be solid colors, gradients, or fills derived from bitmaps. Because the Brush paints only with a fill, the Stroke color chip does not apply to the marks drawn with the brush. The Brush tool is especially well suited for artwork created using a drawing tablet. A number of settings and options are available when the Brush tool is active, giving you precise control over the type of marks that it makes.

The Brush mode menu

The Brush tool includes options for controlling exactly where the fill is applied. The Brush mode option menu reveals five painting modes that are amazingly useful for a wide range of effects when applying the Brush tool: Paint Normal, Paint Fills, Paint Behind, Paint Selection, and Paint Inside, as shown in Figure 5.14.

The Brush tool and options (left); the Brush mode settings menu (right)

Figure 5.14. The Brush tool and options (left); the Brush mode settings menu (right)

Note

The Pressure toggle and the Tilt toggle are visible in the Options area only if you have a drawing tablet installed on your system.

Note

To learn more about tablets and read some fun tutorials, visit www.wacom.com.

Figure 5.15 depicts the various ways in which the Brush modes interact with drawn and painted elements. The base image is a solid white rectangle drawn with a black outline. The boat outline is drawn with the Pencil tool in dark gray on top of the rectangle:

  • A: Paint Normal mode: Applies brush strokes over the top of any lines or fills.

  • B: Paint Fills mode: Applies brush strokes to replace any fills, but leaves lines untouched.

  • C: Paint Behind mode: Applies brush strokes only to blank areas and leaves all fills, lines, or other items untouched. In Figure 5.15 (C), the only areas the brush mark covers are those in the background, outside the frame of the picture. Effectively, the brush has gone behind the entire shape. If the stroke had originated within the frame, it would have covered the white fill and gone behind the drawn gray lines and the black outline.

  • D: Paint Selection mode: Applies brush strokes only to selected fills. In Figure 5.15 (D), a selection was made by Shift+clicking both the white fill inside the boat and inside the sail. The same gray brush marks drawn on the previous figure are now visible only inside the selected fills.

  • E: Paint Inside mode: Applies brush strokes only to the singular fill area where the brush stroke was first initiated. As the name implies, Paint Inside never paints over lines. If you initiate painting from an empty area, the brush strokes won't affect any existing fills or lines, which approximates the same effect as the Paint Behind setting.

Warning

Painting with the background color (such as white) is not the same as erasing. Although painting with a background color may appear to accomplish something similar to erasing, you are, in fact, creating a filled item that can be selected, moved, edited, deleted, and erased. Even if you can't see it, it adds to your file size. Only erasing erases!

Brush size and shape options

Although similar to Stroke height and style, the Brush size and Brush shape settings are unique to the Brush tool.

Note

The Lock Fill option is common to both the Brush tool and the Paint Bucket tool. For coverage of using the Lock Fill option with the Brush tool and the Paint Bucket tool, refer to Chapter 9, "Modifying Graphics."

In Flash, the size of applied brush marks is always related to the Zoom setting. Therefore, using the same brush diameter creates different-sized brush marks, depending on what Zoom setting you work with in the Document window (see Figure 5.16). You can paint over your whole stage in one stroke, even with a small brush diameter, if your Zoom is at a low setting such as 8 percent; or you can use a large brush diameter to make detailed lines if your Zoom is at a high setting such as 1,500 percent.

The result of painting with the Brush tool varies depending on the Brush mode. Paint Normal (A), Paint Fills (B), Paint Behind (C), Paint Selection (D), Paint Inside (E).

Figure 5.15. The result of painting with the Brush tool varies depending on the Brush mode. Paint Normal (A), Paint Fills (B), Paint Behind (C), Paint Selection (D), Paint Inside (E).

Marks made by using the same brush size applied with the Document View at different percentages of Zoom

Figure 5.16. Marks made by using the same brush size applied with the Document View at different percentages of Zoom

The Brush Shape option is a drop-down menu with nine possible brush shapes that are based on the circle, ellipse, square, rectangle, and line shapes. (Refer to Figure 5.14.) The oval, rectangle, and line shapes are available in various angles. You can combine these stock brush shapes with the range of brush sizes available in the Brush Size menu to generate a wide variety of brush tips. When using shapes other than circles, note that the diameter sizes chosen in the Brush Size menu apply to the broadest area of any brush shape.

Additional Brush options for drawing tablets

If you use a pressure-sensitive tablet for drawing, two extra options appear in the Tools panel when the Brush tool is active. (The Pressure and Tilt toggles are shown at the bottom of the Tools panel in Figure 5.14.) The Pressure toggle enables you to use pen pressure on a tablet to vary the thickness of brush marks as you draw. Working on a tablet with this option, you can create organic-looking strokes that taper or vary in width as you change the amount of pressure applied to the tablet surface.

Tip

To achieve pressure-sensitive eraser marks, use the eraser on the tablet pen while the Brush tool is active rather than the Eraser tool in the Tools panel.

Figure 5.17 shows a series of tapered marks created with a pressure-sensitive tablet, using a single Brush size and a consistent Zoom setting.

Drawing with the Brush tool on a pressure-sensitive tablet (with the Pressure option turned on in the Tools panel) creates tapered, calligraphic marks.

Figure 5.17. Drawing with the Brush tool on a pressure-sensitive tablet (with the Pressure option turned on in the Tools panel) creates tapered, calligraphic marks.

If you're drawing on a tablet that supports this feature, activating the Tilt toggle enables you to control the thickness and direction of strokes with the movement of your wrist. The degree of tilt is determined by the angle between the top of your stylus (or pen) and the top edge of the drawing tablet. This is a very subtle control that you'll most likely notice if you're using a large, tapered (or "flat") brush style — and if you spend hours drawing on a tablet! I didn't include a figure to illustrate this feature because it is hard to tell from finished artwork how it affects your drawings, but experienced artists will appreciate the "feel" that this option adds to the drawing environment.

Note

Support for the Tilt feature varies on different drawing tablets. If you have a Wacom tablet, you can get current drivers and feature documentation from www.wacom.com. It is beyond the scope of this book to describe different types and features of drawing tablets, but the drawing options available in Flash have been tested on a wide range of tablets, so the chances are good that they will work for you.

The Eraser tool

The Eraser tool (E) is used in concert with the shape and drawing tools to obtain final, useable art. As the name implies, the Eraser tool is primarily used for rubbing out mistakes. When the Eraser tool is active, three options appear on the Tools panel, as shown in Figure 5.18. Eraser mode and Eraser Shape are both drop-down menus with multiple options. For Eraser Shape, you can select rectangular or oval erasers in various sizes. Eraser modes are similar to the Brush modes I described previously.

You use the Eraser tool's one unique option, the Faucet toggle, to clear enclosed areas of fill. Using the Faucet is the equivalent of selecting a line or a fill and then deleting it, but the Faucet accomplishes this in one easy step. Select the Eraser tool, choose the Faucet option, and then click any line or fill to instantly erase it. Clicking any part of a selection with the Faucet deletes all elements in the selection.

The interaction of Eraser modes and artwork is consistent with the Brush modes available for the Brush tool. The only difference is that instead of adding a mark to a specified part of a drawing, the Eraser removes marks in a specified part of a drawing. Aside from Erase Normal, Erase Fills, Erase Selected Fills, and Erase Inside, which you will recognize from the previous descriptions of Brush modes, there is also an Erase Lines mode that enables you to remove any lines without disrupting fills.

Note

The Eraser tool erases only lines and fills that are in the current frame of the scene. It won't erase groups, symbols, or text. When you need to erase a part of a group, you have two options: Select the group and choose Edit

The Eraser tool
The Eraser tool has three basic options: Eraser mode, Eraser shape, and Faucet.

Figure 5.18. The Eraser tool has three basic options: Eraser mode, Eraser shape, and Faucet.

Tip

Drawing Objects have some of the same characteristics as grouped shapes, but they can be treated like raw shapes when you're using the Eraser tool — no need to break them apart.

The only alternative to using the Eraser tool to remove graphic elements or areas of drawings is to select them with the Selection, Subselect, or Lasso tool, and then delete them by pressing Delete (or Backspace).

Tip

To quickly erase everything in the current keyframe (even from multiple layers), double-click the Eraser tool in the Tools panel. Don't double-click on the Stage with the Eraser selected; just double-click the Eraser button on the Tools panel. And — poof! — everything in the keyframe is gone.

Creating Precise Lines and Bezier Curves with the Pen Tool

You use the Pen tool (P) to draw precision paths that define straight lines and smooth curves. These paths define adjustable line segments, which may be straight or curved — the angle and length of straight segments is completely adjustable, as is the slope and length of curved segments. To draw a series of straight-line segments with the Pen tool, simply move the cursor and click successively: Each subsequent click defines the endpoint of the line. To draw curved line segments with the Pen tool, simply click and drag: the length and direction of the drag determines the depth and shape of the current segment. Both straight- and curved-line segments can be modified and edited by adjusting their anchor points and tangent handles. In addition, any lines or shapes that have been created by other Flash drawing tools can also be displayed as paths (points on lines) and edited with either the Pen tool or the Subselect tool (described in the section "Putting Selection Tools to Work").

Tip

If you're working on a background color that is too similar to your Layer Outline Color, the points on your line will be difficult to see and adjust. Remember that you can always change the Layer Outline Color to contrast with the background.

Creating shapes with the Pen tool takes a little practice, but it produces the most controlled optimization of artwork. Because no points are auto-created, every line and curve is defined only with the points that you place. This saves having to delete points from an overly complex path that may result from drawing with the Pencil or the Brush tool. To make drawing a little less mysterious, there is a submenu for the Pen tool that makes it easier to access some of its secondary capabilities. As shown in Figure 5.19, you can change the Pen tool from its default behavior of placing points (for drawing lines) to add, delete, or convert anchor points on a line that you've already drawn.

The Preferences for the Pen tool are located in the Pen tool section of the Drawing Preferences dialog box. (Choose Edit

Creating Precise Lines and Bezier Curves with the Pen Tool
  • Show pen preview: When you select this option, Flash displays a preview of the next line segment, as you move the pointer, before you click to make the next endpoint and complete the line.

  • Show solid points: Select this option to invert the default display behavior for points along a selected line. The default is to show selected points as solid (filled circles) and unselected points as hollow (empty squares). When turned on, this option shows selected points as hollow (empty circles) and unselected anchor points as solid (filled squares).

  • Show precise cursors: This option toggles the Pen tool cursor between the default Pen tool icon and a precision crosshair cursor. This can make selecting points much easier and is recommended if you're doing detailed adjustments on a line.

The submenu for the Pen tool in the Tools panel makes it easy to change modes as you create or modify lines and curves.

Figure 5.19. The submenu for the Pen tool in the Tools panel makes it easy to change modes as you create or modify lines and curves.

Tip

You can also use a keyboard shortcut to toggle between the two Pen cursor displays: Caps Lock toggles between the precise crosshair icon and the Pen icon when the Pen tool is active.

As you work with the Pen tool, you will notice that it displays a number of different icons to the lower right of the cursor. These Pen states tell you at any given time what action the Pen can perform on a line.

The Pen states and actions are as follows:

  • The Pen displays a small (x) when it's over an empty area of the Stage and ready to place the first point in a line. Click to place the first point in a new line.

  • When the Pen hovers over an endpoint that can be connected to close a path, it displays a small link icon (a square with a line through it). Click this point to close the path.

  • When the Pen hovers over an endpoint that will not connect to close a path, it displays a slash (/). Click this point to select it as a starting point for a continuation of the path or as the first point for closing a path.

  • When the Pen hovers over a curve point, it displays a carat (^) to indicate that clicking that point turns it into a corner point.

  • When the Pen hovers over a corner point, it displays a minus (–) sign to indicate that clicking this corner point deletes it.

  • When the Pen is over a path (a line between two points), it displays a plus (+) sign to indicate that clicking there adds a point to the path.

  • With the Ctrl (or

    The submenu for the Pen tool in the Tools panel makes it easy to change modes as you create or modify lines and curves.
  • When adjusting a path with either the Pen tool or the Subselection tool, the default for selected points is a filled circle, whereas unselected points appear as hollow squares. Note that unselected points display a single tangent handle, bound toward the selected point, which displays two tangent handles.

Tip

Dragging with the Subselection tool around the area of a line that you want to adjust by using points and tangent handles makes these controls visible (as shown in Figure 5.20), so you don't have to try and find them by trolling around with your cursor and watching the Pen state icon.

Figure 5.20 shows a line made with only straight-line segments and corner points, a line made with both straight segments and corner points and curved segments with curve points, and a line made of only curved segments and curve points. You can see that curved segments are controlled by tangent handles extended from the curve points, while straight segments just have corner points without tangent handles.

Now that you've toured the various Pen tool icons, Pen states, and line types, it's time to start drawing and see how these actually apply as you work. To draw and adjust a straight-line segment with the Pen tool, follow these steps:

  1. With the Pen tool active in the Tools panel, click to place the first point of your line on the Stage (wherever you want the line to start).

  2. Choose the next position for a point and continue to click to create subsequent points and define individual line segments.

    Each subsequent click creates a corner point on the line that determines the length of individual line segments.

    Note

    Each click is a point along a continuous line. To end one line and begin a new line, double-click to place the final point in a line. This "breaks" the line so that the next click places a starting point for a new line rather than a continuation of the same line. A line should be ended or completed — by double-clicking or by closing your shape — before using the editing keys described in Step 3.

    Lines made with the Pen tool can consist of straight segments and corner points (top), both straight segments with corner points and curved segments with curve points (middle), or only curved segments with curve points (bottom).

    Figure 5.20. Lines made with the Pen tool can consist of straight segments and corner points (top), both straight segments with corner points and curved segments with curve points (middle), or only curved segments with curve points (bottom).

  3. To adjust straight segments, either switch to the Subselection tool in the Tools panel or press the Ctrl (or

    Lines made with the Pen tool can consist of straight segments and corner points (top), both straight segments with corner points and curved segments with curve points (middle), or only curved segments with curve points (bottom).

Tip

When you're creating straight lines with the Pen tool, press the Shift key to constrain lines to either 45-degree or 90-degree angles.

To draw and adjust a curved line segment with the Pen tool, follow these steps:

  1. Click to create the first anchor point.

  2. Move to the position on the Stage for the next anchor point, click to place it, and without releasing the mouse, drag the Pen tool in the direction you want the curve to go.

  3. When the preview of the line matches the curve that you want in the final line, release the mouse and move to click and place the next point in the segment. Repeat this process to create subsequent curve points for curved segments, or simply click elsewhere without dragging to place a point and make the subsequent segment a straight line with a corner point.

  4. As when adjusting straight segments, switch or toggle to the Subselection tool and then click a point to select it. Then drag and move the point to change the angle or length of the segment, or, after selecting a curve point with the Subselect tool, click and drag the tangent handles of the point to adjust the depth and shape of the curve.

Although both corner points and curve points may be adjusted, they behave differently:

  • Corner points and endpoints can be moved with the Subselection tool but they do not display tangent handles.

  • Because a curve point defines a curve, moving the tangent handle of a curve point modifies the curves on both sides of the point.

  • To convert a corner point into a curve point, simply select the point with the Subselection tool, and while pressing Alt (Option), drag the point slightly. A curve point with two tangent handles appears, replacing the original corner point.

  • To adjust one tangent handle of a curve point independent of the other handle, hold down Alt (Option) while dragging the tangent handle that you want to move.

  • To convert a curve point into a corner point, select the Convert Anchor point tool from the Pen submenu in the Tools panel and click any curve point once.

  • Endpoints cannot be converted into curve points unless the line is continued or joined with another line. To join two endpoints, simply click one endpoint with the Pen tool and then move to the point you want to connect it with and click again. A new line segment is created that joins the two points.

  • You can also use the arrow keys, located on your keyboard, to nudge selected corner and curve points into position. Press Shift to augment the arrow keys and to make them nudge 10 pixels with each click.

Note

You can also reshape any lines or shapes created with the Pen, Pencil, Brush, Line, Oval, Rectangle, or PolyStar tools later in this chapter.

Note

If you are finding it difficult to make sense of all the different Pen modes and options for editing Bezier curves, you might find it helpful to refer to Adobe's online help. You will find detailed descriptions of each element involved in working with Bezier drawing tools in the section for Using Flash CS5 Professional

Lines made with the Pen tool can consist of straight segments and corner points (top), both straight segments with corner points and curved segments with curve points (middle), or only curved segments with curve points (bottom).

Using Fill and Stroke Controls

Now that you know where to find and use the drawing tools, you can get more creative with color and line styles. In the following sections, I introduce you to the controls for setting the fill and stroke applied to artwork drawn in Flash.

Tip

When the Pen, Pencil, or Line tool is activated in the Tools panel, you will notice a new Hinting check box in the Properties panel. When selected, this option constrains all points to whole pixel values to ensure that the lines or strokes are not blurry (which is sometimes the case if control points land in between whole pixel values).

Choosing colors

The stroke and fill colors that are applied with any of the drawing tools are determined by the current settings of the color chips located in the Flash Tools panel and in the Properties panel. You can set the fill and stroke colors before you draw something, or select an element on the Stage and adjust it by choosing a new color from the stroke or fill swatches. The Oval, Rectangle, PolyStar, Brush, and Paint Bucket tools all use the current fill settings — you can select colors before you draw a new shape or select an existing shape and modify it by changing the fill and stroke colors.

The color chips in the Tools panel display the most recently selected colors and are always visible regardless of what tool you're using. The Properties panel shows the color chip of the currently active item and displays the chips only if they can be applied with the tool you have active or to the item you have selected. Thus, if you select the Line tool, both Stroke and Fill color chips are visible on the Tools panel, but the Properties panel displays only a Stroke color chip (the Fill color chip displays a strikethrough icon). Although these chips indicate the current color, they're really also buttons: click any color chip to select a new color from the popup Swatches menu. The Swatches menu is shown in Figure 5.21 as it pops up from the Tools panel or from the Properties panel.

The popup swatches display the same color options as the main Swatches panel shown in Figure 5.22. Use shortcut keys (Ctrl+F9 or

Choosing colors

Note

I discuss the custom palette options available in the Swatches panel in detail, along with the Mixer panel and other colorful issues, in Chapter 7, "Applying Color."

The current Swatches popup is opened by clicking the Stroke or Fill color chip in the Tools panel (left), or by clicking a color chip on the Properties panel (top right).

Figure 5.21. The current Swatches popup is opened by clicking the Stroke or Fill color chip in the Tools panel (left), or by clicking a color chip on the Properties panel (top right).

Grouping the Swatches panel with the Color panel enables tabbed access to either panel.

Figure 5.22. Grouping the Swatches panel with the Color panel enables tabbed access to either panel.

Choosing line styles

In Flash, for all tools that draw or display a line or outline, you control the thickness of the line — or stroke — either by dragging the Stroke Height slider or by entering a value in the Stroke Height numeric entry box. Both of these controls are available in the Properties panel, as shown in Figure 5.23. The stroke options are visible only when they can be applied — if a drawing tool that creates lines is active in the Tools panel or if you have selected an element with a stroke.

Note

Generally, in Flash, lines that are independent or not attached to any fill are referred to as lines, whereas lines or outlines on a filled shape are referred to as strokes. You use the same tools to create and edit lines and strokes.

Changes to stroke color and style apply to lines or curves drawn with the Pen, Line, Pencil, Oval, Rectangle, and PolyStar tools. For shapes, the changes apply only to the outline, not to the fill. As with fill color settings, you can select a stroke color and style before you create any artwork (as long as the tool you're going to use is active in the Tools panel), or you can select a line in the Document window with the Selection tool and change its appearance with the settings in the Properties panel.

The Properties panel gives you all the controls you need to select the stroke height, color, and style, as well as an option to control how strokes scale in the Flash Player and a new Hinting option to constrain points to whole pixel values.

Figure 5.23. The Properties panel gives you all the controls you need to select the stroke height, color, and style, as well as an option to control how strokes scale in the Flash Player and a new Hinting option to constrain points to whole pixel values.

Tip

You can set stroke heights up to 200. In our experience, any stroke with a height setting of more than about 25 becomes rather unwieldy. If you need a mark that big, instead of a giant stroke, you are probably better off using one of the shape tools to create a filled area.

Note

Depending upon the level of zoom, the height difference of some lines may not be visible on-screen, even though zooming in closer enables you to see that the stroke height is correct. Lines set to a height of 1 pixel or lower appear to be the same thickness unless the Stage view is zoomed to 200 percent or closer. However, all line heights still print correctly on a high-resolution printer and are visible in your final Flash movie (.swf) to anyone who zooms in close enough.

The Stroke Style drop-down menu (see Figure 5.24) offers the choice of Hairline or six standard, variable-width strokes. Hairline strokes always have the same 1-pixel thickness, even if the mark or shape that they outline is scaled larger after the stroke is applied. You can select and combine the other six line styles with any stroke height. If these styles do not deliver the line look you need, the Custom button (to the right of the Style menu) opens a Stroke Style dialog box (see Figure 5.24), which you can use to generate custom line styles by selecting from a range of properties for each preset line. Basic properties include stroke Thickness and Sharp corners. Other settings vary depending on what style of stroke you choose.

Tip

The Scale menu for strokes in the Properties panel enables you to control how lines scale when symbols are scaled in the authoring environment or the Flash movie is scaled in the Flash Player.

Note

Points are the default unit of measurement for determining the spacing and thickness of line segments in the Stroke Style dialog box.

To closely examine a custom line before you begin drawing with it, select the Zoom 4x check box beneath the preview area of the Line Style dialog box. Note the Sharp corners check box, which toggles this Line Style feature on or off — select the check box to turn Sharp corners on.

The Stroke Style dialog box is opened with the Custom button on the Properties panel. The properties that appear vary depending on the style of line you select for adjustment.

Figure 5.24. The Stroke Style dialog box is opened with the Custom button on the Properties panel. The properties that appear vary depending on the style of line you select for adjustment.

Tip

Although there is no way to save custom line styles within the Stroke Style dialog box, you can create a separate document (.fla) and save samples of your favorite lines there. This eases your workflow if you want to reuse custom line styles extensively. You can apply these styles quite easily to other lines by opening the document and using the Eyedropper tool in conjunction with the Ink Bottle tool. For more information, see the sections on the Eyedropper and the Ink Bottle tools in Chapter 9, "Modifying Graphics."

Of course, the best way to get an idea of the variety of possible strokes is to experiment with settings and sizes for each style, but there are a few things to keep in mind as you work with stroke styles in Flash:

  • The Hairline line style provides a consistent line thickness that doesn't visually vary at different zoom levels. This is the best line style to choose if you're creating artwork that you want to scale without losing the original line width. Regardless of whether an object with this stroke is enlarged or reduced in size, the Hairline stroke always displays as 1 point wide (as shown in Figure 5.25).

    Hairline strokes always display at 1 point, even if they are scaled in the authoring environment or in the Player.

    Figure 5.25. Hairline strokes always display at 1 point, even if they are scaled in the authoring environment or in the Player.

  • The Solid line style draws a smooth, unbroken line. The customization variables for this style are limited to Thickness and Sharp corners. These two variables can also be adjusted on all line styles. The Solid line style is the optimal style for Web viewing because it requires fewer points to describe it and is consequently less file intensive. The smaller file sizes theoretically translate into faster download times when the artwork is transmitted over the Web. This really only becomes an issue if you're making extensive use of complex line styles.

  • The Hatched line style thickness settings are different from the point size thickness settings that are available for all lines. The default thickness setting (measured in points) defines the thickness or height of the overall hatched line, whereas the hatch thickness setting defines the width of the individual vertical strokes that create the density of the hatched line texture.

Controlling stroke Scale behavior

The Scale option is available only for solid lines, but it is very helpful for ensuring the consistency of scaled UI elements with outlines such as buttons. The various scaling behaviors you can set by using the Scale menu work only if you convert the raw stroke into a symbol. To make this easier to understand, here are the steps for applying the Scale option:

  1. Select a Solid line style.

  2. Set the stroke height to any height between 0.1 and 200.

  3. Select the Scale behavior that works best for the specific element:

    • None: This produces a stroke that does not scale. A Solid stroke with Scale set to None has the same consistency as a Hairline but you are able to use any stroke height — instead of being restricted to the 1-point height for Hairline strokes. Figure 5.26 shows how a sample graphic with a 3-point stroke and a Scale setting of None appears when transformed with different amounts of scaling.

      Strokes with Scale set to None always appear with the original stroke height.

      Figure 5.26. Strokes with Scale set to None always appear with the original stroke height.

    • Horizontal: This produces a stroke that scales to match the horizontal transformation of an item. Vertical transformations have no effect on the scale of the stroke. Figure 5.27 shows how a sample graphic with a 3-point stroke and a Scale setting of Horizontal appears when transformed with different amounts of scaling.

      Strokes with Scale set to Horizontal scale only in proportion to horizontal transformations.

      Figure 5.27. Strokes with Scale set to Horizontal scale only in proportion to horizontal transformations.

    • Vertical: This produces a stroke that scales to match the vertical transformation of an item. Horizontal transformations have no effect on the scale of the stroke. Figure 5.28 shows how a sample graphic with a 3-point stroke and a Scale setting of Vertical appears when transformed with different amounts of scaling.

      Strokes with Scale set to Vertical scale only in proportion to vertical transformations.

      Figure 5.28. Strokes with Scale set to Vertical scale only in proportion to vertical transformations.

    • Normal: This produces a stroke that scales proportionally when it is scaled in any direction. This is generally the best setting to use if you want lines to maintain the same relative size as other scaled elements. However, if you want lines to have a fixed size no matter how big or small other elements are scaled, it is best to use the None setting. Figure 5.29 shows how a sample graphic with a 3-point stroke and a Scale setting of Normal appears when transformed with different amounts of scaling.

      Strokes with Scale set to Normal scale in proportion with the greatest transformation in any direction.

      Figure 5.29. Strokes with Scale set to Normal scale in proportion with the greatest transformation in any direction.

  4. Convert the graphic that contains the stroke into a symbol (Movie clip, Graphic, or Button).

  5. Scale instances of the symbol in the authoring environment or in the Player and you will notice how the stroke scaling is constrained based on the Scale setting that you applied to the original stroke (in Step 3).

If you have ever tried to reuse a graphic that needed to be scaled while maintaining a specific size ratio to other elements — either relative or fixed — you will appreciate the level of control the Scale menu affords. The most common use for this option is constraining the scale behavior of a custom button that has to be adjusted to fit text of varying lengths. Generally, you want the stroke on the button to remain consistent while the button is stretched to accommodate the text. If you apply the Vertical Scale behavior, you will have a button with a stroke that stays the same no matter how long you stretch it horizontally to fit your text. But if you decide the buttons need to be a bit bigger overall, you can apply a vertical transformation and the stroke grows proportionally. What more could I ask for?

Optimizing Drawings

Aside from making a drawing more geometric, the main advantage of simplifying a shape or line is that it reduces the number of points that Flash has to remember and, thus, reduces the final file size. This is especially important for projects such as cartoons or animations that include a large number of hand-drawn shapes.

The most powerful tool for optimizing artwork precisely is found in the Optimize Curves dialog box opened by choosing Modify

Optimizing Drawings

Figure 5.30 shows a sketch drawn with the Brush tool with default smoothing before and after Optimize Curves was applied. The reduction in points appears in the dialog box. For illustration purposes, I made a drastic adjustment by applying Optimization strength at 100. For practical purposes, you should find a balance between optimization and drawing complexity by testing a range of settings.

Tip

You can apply the Optimize Curves command to the same artwork multiple times to achieve maximum reduction of points, but keep an eye on the totals message because when your artwork reaches a threshold of smoothing, continuing to apply the command starts to add points. If you see a negative value in the percentage of reduction, use the Undo command to step back to the artwork with the fewest points.

Before (ltop) and after (bottom) Optimize Curves is used to reduce the complexity of a drawing made with the Brush tool with default smoothing. The reduction in points translates directly into a smaller file size.

Figure 5.30. Before (ltop) and after (bottom) Optimize Curves is used to reduce the complexity of a drawing made with the Brush tool with default smoothing. The reduction in points translates directly into a smaller file size.

Putting Selection Tools to Work

Selection tools enable you to choose items that you want to edit in the Document window, as well as move or reshape specific elements. The three main selection tools — Selection, Subselection, and Lasso — provide different selection styles you can use for different editing tasks. The Subselection tool is used primarily as a companion to the Pen tool.

Tip

When you are busy with another tool, you can temporarily toggle to the Selection tool by pressing Ctrl (or

Putting Selection Tools to Work

The Selection tool

The Selection (arrow) tool (V) is used most commonly to select and move items — or multiple items — on the Stage. It is also used to reshape lines and shapes, in a way that is familiar to users who have worked in other vector graphics applications. The Selection tool's neighbor, which is differentiated with a white, rather than a black, arrowhead, is the Subselect tool (A). The Subselect tool is most useful for moving and editing anchor points created with the Pen tool and adjusting tangents on Bezier curves.

You can use the Selection tool to reshape a line or shape by pulling on the line (or shape) itself, or on its endpoints, curves, or corners. You can also use the Selection tool to select, move, and edit other Flash graphic elements, including groups, symbols, buttons, and text. When you click a raw stroke or fill, a mesh pattern appears to indicate that it has been selected. If the item you click is a symbol, a group, or a drawing object, a thin, colored line (called a highlight) indicates the selection status. You may set the highlight color in the General Preferences dialog box found under Edit

The Selection tool

Tip

To temporarily turn off the selection mesh while editing an element, use View

The Selection tool

Figure 5.31 shows a shape, a drawing object, a shape primitive, a group, and a Graphic symbol as they look when unselected (top) and as they appear when selected with the Selection tool. The first oval (a primitive shape) displays a mesh pattern when selected (left). The second oval (drawn with the Object Drawing option turned on), the third oval (drawn with the Oval Primitive tool), and the fourth oval (with the stroke and fill combined in a group) all display a thin, rectangular border when selected — the subtle differences being the color of the selection outline and the small, filled dot that designates the center point of the oval primitive. The final oval (which was converted into a Graphic symbol) displays a thin, rectangular border with a small crosshair icon in the top-left corner and a white transformation point in the center when selected (right). You can move groups and symbols but not edit them directly on the Stage with the Selection tool unless you go into Edit mode.

Note

Drawing objects show a similar selection highlight as grouped shapes but are actually a hybrid graphic style, which shares selected characteristics with raw shapes, grouped shapes, and Graphic symbols. Like raw shapes, you can modify drawing objects directly on the Stage with the Selection tool and any of the tools related to fills and strokes. Like grouped shapes, drawing objects do not erase or merge with other shapes if they overlap on the same layer (unless special commands are applied).

Tip

Shape primitives have similar behavior to grouped shapes, but they have special editing options in the Properties panel that make them easy to modify. However, in order to edit a shape primitive with any of the selection tools, it must be converted into a drawing object or broken apart into a basic shape. The dynamic edit options in the Properties panel will no longer be available.

Note

I explain the various ways of using grouped shapes in graphics in Chapter 9, "Modifying Graphics," and I discuss using and editing symbols in Chapter 6, "Symbols, Instances, and the Library."

In addition to clicking a line or shape to select it, you can select one or more items by dragging a marquee around them when the Selection tool is active. This operation is called drag-select. You can add additional items to a current selection by pressing Shift and clicking the items in sequence. When you drag-select to make a selection, previously selected items are deselected and excluded from the selection. In order to include previously selected items, press Shift as you drag-select. When a group is selected and you drag to move it on the Stage, holding down Shift constrains the movement range of the elements to 45 degrees. This is helpful if you need to move an element up or down while keeping it on the same axis or baseline.

Top row shows items unselected; bottom row shows Selection tool highlights (L-R) for a shape, a drawing object, a shape primitive, a group, and a Graphic symbol

Figure 5.31. Top row shows items unselected; bottom row shows Selection tool highlights (L-R) for a shape, a drawing object, a shape primitive, a group, and a Graphic symbol

Deselect one or more items by using any of the following methods:

  • Pressing Esc

  • Choosing Edit

    Top row shows items unselected; bottom row shows Selection tool highlights (L-R) for a shape, a drawing object, a shape primitive, a group, and a Graphic symbol
  • Using the keyboard shortcut Ctrl+Shift+A (or

    Top row shows items unselected; bottom row shows Selection tool highlights (L-R) for a shape, a drawing object, a shape primitive, a group, and a Graphic symbol
  • Clicking anywhere outside all the selected items

You can also use the Selection tool for duplicating items. Simply select an item (or line segment) with the Selection tool and press Alt (Option) while dragging the item to a new location. The original item remains in place, and a new item is deposited at the end of your drag stroke.

Warning

Selecting a line with the Selection tool and then holding down Alt (Option) while dragging it to a new location duplicates it. Holding down Alt (Option) before dragging a line segment (that has not been selected) with the Selection tool adds a new corner point.

Moving multiple elements with the Selection tool

Text boxes, drawing objects, and groups are selected as single elements and move as a single unit. After you create text in a text box (I discuss text features in Chapter 8, "Working with Text"), Flash treats the text as one block, or group, meaning that all the individual letters move together when the box is selected. Similarly, a group of graphic elements — such as lines, outlines, fills, or shapes — can be grouped and moved or manipulated as a single element. However, when you move an item that is not grouped, only the selected Part is moved. This situation can be tricky when you have ungrouped fills and outlines because selecting one without the other could unintentionally break up your shape. To group elements, select them all and apply the Modify

Moving multiple elements with the Selection tool

Tip

Double-clicking the fill of a shape that has an outline stroke and a fill selects both. You can also use this strategy on lines with multiple sections. Double-clicking one section selects all the connected parts of a line, rather than just the closest segment.

The Drawing Object mode and the Shape Primitive tools make it easier to keep strokes and fills together. Drawing objects and shape primitives behave like grouped shapes: When you click anywhere on the shape, the stroke and fill are both selected so they move together. If you have drawn basic shapes with the Object Drawing toggle turned off, you can use the Modify

Moving multiple elements with the Selection tool

Modifying Selection preferences

In most cases, the default behavior for selection tools will support your workflow, but there are two preferences that you can modify to adjust selection behavior:

  • Turn off Shift select: Prior to Flash 4, additional elements were added to a selection simply by clicking them. To use this older selection style, go to Edit (or on Mac Flash)

    Modifying Selection preferences
  • Turn on Contact-sensitive selection: The standard selection behavior in Flash requires that a lasso or selection marquee completely enclose a group, drawing object, or symbol in order to select it. If you prefer to have these items included in a selection when the marquee touches any visible part, go to Edit

    Modifying Selection preferences
To change the default nonselection result of partial selections in Flash (top), you can turn on Contact-sensitive selection behavior to select even partially enclosed items (below).

Figure 5.32. To change the default nonselection result of partial selections in Flash (top), you can turn on Contact-sensitive selection behavior to select even partially enclosed items (below).

Using Selection tool arrow states to adjust or move drawings

In addition to the actions accomplished by selecting a line (or line section) and clicking an option, three arrow states — Move Selected Element, Reshape Curve or Line, and Reshape Endpoint or Corner — enable you to reshape and move parts of your drawings. It works like this: As you move the Selection tool over the Flash Stage, the arrow cursor changes state to indicate what tasks it can perform in context with various items (the line or fill) closest to the Selection tool's current position.

Tip

When reshaping brush strokes or other filled items with the Selection tool, make sure that you don't select both the stroke and fill before trying to reshape the outline. If you do, you'll be able to move only the entire brush stroke — you won't be able to reshape it.

Figure 5.33 shows a series of (magnified) images that demonstrate the various arrow states as they appear and are applied. On the left, the original shape is shown with the arrow states displayed as the cursor is moved over the center of the shape, over a corner (B), and over a line (C). The center image shows the preview as the Move Corner arrow is used to extend the corner of the square and the Reshape Curve arrow is used to stretch the curve. The final image on the right shows the resulting changes to the original square.

Figure 5.34 shows the various Selection tool arrow states used to modify a line. The lower images show the arrow state cursors, the center images show the preview as the mouse is dragged, and the top images show the resulting changes to the line when the mouse is released. You will notice that lines have to be selected in order to be moved without changing their shape with the Selection tool. If the line is not selected, the arrow displays only Move Corner or Reshape Curve states. If you want to add an angle to a line rather than add a curve, switch from Reshape Curve to Add Corner Point by holding down Alt (or Option) before clicking and dragging a line segment.

Selection tool arrow states used to reshape and reposition an element: Move Selected Item arrow, Reshape Corner arrow (B), and Reshape Curve arrow (C)

Figure 5.33. Selection tool arrow states used to reshape and reposition an element: Move Selected Item arrow, Reshape Corner arrow (B), and Reshape Curve arrow (C)

Warning

The icon visible next to the Selection tool arrow does not update when you switch from Reshape Curve to Add Corner Point by holding down Alt (or Option), but the behavior changes. After you click and move the line, the icon updates to match the behavior.

Using Selection tool arrow states to reshape and reposition a line (L-R: Move Selected Item, Reshape Corner, Reshape Curve)

Figure 5.34. Using Selection tool arrow states to reshape and reposition a line (L-R: Move Selected Item, Reshape Corner, Reshape Curve)

Tip

Some brush strokes are easier to reshape if you view them as outlines (as described in Chapter 4).

Knowing your Selection tool options

Figure 5.35 shows the three options that appear at the bottom section of the Tools panel when the Selection tool is active: Magnet (or snap to objects), Smooth, and Straighten. Because the various snap controls can be confusing at first, I compare the Magnet tool with the other snap settings available in Flash, later in this chapter.

The Selection tool options available on the Tools panel

Figure 5.35. The Selection tool options available on the Tools panel

The Smooth and Straighten options available with the Selection tool (when a raw shape or drawing object is selected) are best used to clean up drawings by smoothing irregular curves or straightening crooked lines. Smoothing or Straightening reduces the number of bumps and variations (or points of transition) in a complex shape or line by reducing the number of points. The simplest curve or line is described by only one point at each end.

To simplify a shape or line, click the Selection tool and select the item you just sketched. Then click the Straighten or Smooth button in the Tools panel to get incremental adjustment. If you want more control over the way these commands are applied to your artwork, use Modify

The Selection tool options available on the Tools panel

Tip

The controls in the Advanced Smooth dialog box can be a little confusing, but if you look at your drawing and consider if there are any angles that you do want to preserve and then use the angle menus to set a value range that excludes the angle you do want to keep (and not smooth), then it makes a little more sense. For example, if you have a 90-degree angle in your artwork (a clean corner) and you don't want that rounded off but you do want wider curves to be smoothed and narrower curves to be smoothed, you would set the first angle setting to Smooth angles below 89 degrees and the second setting to Smooth angles above 91 degrees. This would leave your 90-degree angle unsmoothed while applying smoothing to all the other angles in your drawing. If you have a hard time telling the difference between one result and another, don't be dismayed: This is a very subtle adjustment.

As shown in Figure 5.36, the simplified shape usually needs some further adjustment to get the result that you want after some of the points have been removed. The tools used for adjusting individual curves and points are the Pen tool and the Subselect tool.

You can apply the Smooth and Straighten options with the Selection tool to any selected shape or line to reduce the number of points and modify the form. The specific effect that these options have on your graphics is dependent on the Drawing settings that were used to create the original lines and the level of straightening or smoothing that you choose. By minimizing complexity in freehand drawings or shapes, Smooth and Straighten gradually reduce an erratic graphic into the most simplified form that can be described with the fewest points possible, while making curved lines straighter (when you apply Straighten) or sharp angles more rounded (when you apply Smooth).

Note

In the example shown in Figure 5.36, I achieved maximum smoothing on all angles in the drawing by using only the Smooth angle above setting in the Smooth dialog box. With this set to 0 and the Smooth angle below check box deselected, you are allowing the smoothing algorithm to be applied to all angles in the drawing (from 0 degrees to 180 degrees). The same effect could be achieved by setting the Smooth angle below value to 180 and deselecting the Smooth angle above check box.

Although these assistants nudge a sketch or line style in the direction that you want, they don't add information; so don't be surprised if your drawing doesn't really look "better" or it takes a few tries to get the right balance between rough drawing and shape recognition.

Lines drawn with the Pencil tool (top left) can be selected with the Selection tool and simplified with the Advanced Smooth (center) or Advanced Straighten (right) options. A geometric shape (bottom) can be smoothed to have more curved lines (center) or straightened to have more angular lines (right).

Figure 5.36. Lines drawn with the Pencil tool (top left) can be selected with the Selection tool and simplified with the Advanced Smooth (center) or Advanced Straighten (right) options. A geometric shape (bottom) can be smoothed to have more curved lines (center) or straightened to have more angular lines (right).

The Lasso tool

The Lasso (L) is a flexible tool, somewhat resembling the selection equivalent of the Pen tool crossed with the Pencil tool. You use the Lasso primarily to make freeform selections and to group-select odd or irregular-shaped areas of your drawing. After areas are selected, they can be moved, scaled, rotated, or reshaped as a single unit. You can also use the Lasso tool to split shapes or select portions of a line or a shape. As shown in Figure 5.37, it has three options in the Tools panel: the Polygon mode button, the Magic Wand, and the Magic Wand properties.

The Lasso tool works best if you drag a loop around the area you want to select. (Hence, the tool name Lasso!) But if you slip or if you don't end the loop near where you started, Flash closes the loop with a straight line between your starting point and the endpoint. Because you can use the Lasso tool to define an area of any shape — limited only by your ability to draw and use the multiple selection capabilities of Flash — the Lasso tool gives you more control over selections than the Selection tool.

Tip

To add to a previously selected area, hold down Shift before initiating additional selections.

The Lasso tool and options

Figure 5.37. The Lasso tool and options

Polygon mode

Polygon mode affords greater precision when making straight-edged selections, or in mixed mode, selections that combine freeform areas with straight edges. To describe a simple polygon selection, with the Lasso tool active, click the Polygon mode button to toggle on Polygon selection mode. In Polygon mode, you create selection points with a mouse-click, causing a straight selection line to extend between mouse-clicks. To complete the selection, double-click.

Mixed mode usage, which includes Polygon functionality, is available when the Lasso tool is in Freeform mode. To work in Freeform mode, the Polygon option must be in the off position. While drawing with the Freeform Lasso, press Alt (Option) to temporarily invoke Polygon mode. (Polygon mode continues only as long as Alt (Option) is pressed.) As long as Alt (Option) is pressed, a straight selection line extends between mouse clicks. To return to Freeform mode, simply release the Alt (or Option) key. Release the mouse to close the selection.

Note

Sometimes aberrant selections — selections that seem inside out, or that have a weird, unwanted straight line bisecting the intended selection — result from Lasso selections. That's usually because the point of origination of a Lasso selection is the point to which the Lasso snaps when the selection is closed. It takes a little practice to learn how to plan the point of origin so that the desired selection is obtained when the selection is closed.

The Magic Wand option and Magic Wand properties

The Magic Wand option of the Lasso tool is used to select ranges of a similar color in a bitmap that has been broken apart. After you select areas of the bitmap, you can change their fill color or delete them. Breaking apart a bitmap means that Flash subsequently sees the bitmap image as a collection of individual areas of color. (This is not the same as tracing a bitmap, which reduces the vast number of colors in a continuous-tone bitmap to areas of solid color.) After an image is broken apart, you can select individual areas of the image with any of the selection tools, including the Magic Wand option of the Lasso tool.

The Magic Wand option has two modifiable settings: Threshold and Smoothing. To set them, click the Magic Wand settings button to launch the Magic Wand Settings dialog box (shown in Figure 5.38) while the Lasso tool is active.

Use the Magic Wand Settings dialog box to adjust the selection range and level of smoothing.

Figure 5.38. Use the Magic Wand Settings dialog box to adjust the selection range and level of smoothing.

The Threshold setting defines the breadth of adjacent color values that the Magic Wand option includes in a selection. Values for the Threshold setting range from 0 to 200: the higher the setting, the broader the selection of adjacent colors. Conversely, a smaller number results in the Magic Wand making a narrower selection of adjacent colors. A value of zero results in a selection of contiguous pixels that are all the same color as the target pixel.

The Smoothing setting of the Magic Wand option determines to what degree the edge of the selection should be smoothed. This is similar to anti-aliasing. (Anti-aliasing dithers the edges of shapes and lines so that they look smoother on-screen.) The options are Smooth, Pixels, Rough, and Normal.

The Subselection tool

The Subselection (arrow) tool (A) is the companion for the Pen and is found in the Tools panel to the right of the Selection tool. The Subselection tool has two purposes:

  • To either move or edit individual anchor points and tangents on lines and outlines

  • To move individual objects

When you position the Subselection tool over a line or point, the hollow arrow cursor displays one of two states:

  • When over a line, it displays a small, filled square next to it, indicating that the whole selected shape or line can be moved.

  • When over a point, it displays a small, hollow square, indicating that the point will be moved to change the shape of the line.

Tip

If you use the Subselection tool to drag a selection rectangle around two items, you'll find that clicking and dragging from any line of an item enables you to move only that item, but clicking any point on an item enables you to move all items in the selection.

Figure 5.39 shows the use of the Subselection tool to move a path (A), to move a single point (B), to select a tangent handle (C), and to modify a curve by adjusting its tangent handle (D). Note that a preview is shown before releasing the handle.

Using the Subselection tool to modify lines and curves

Figure 5.39. Using the Subselection tool to modify lines and curves

The Subselection tool is most useful for modifying and adjusting paths. To display anchor points on a line or shape outline created with the Pencil, Brush, Line, Oval, or Rectangle tools, simply click the line or shape outline with the Subselection tool. This reveals the points that define the line or shape. Click any point to cause its tangent handles to appear. If you have a shape that is all fill, without any stroke, you'll need to position the cursor precisely at the edge of the shape in order to select or move it with the Subselection tool.

To convert a corner point into a curve point, follow these steps:

  1. Click to select the point with the Subselection tool.

  2. While pressing Alt (Option), click and drag the point. A curve point with tangent handles appears, replacing the original corner point.

Note

By holding down Ctrl (or

Using the Subselection tool to modify lines and curves

An important use of the Pen tool/Subselection tool combo is editing lines for optimal file size. The simpler your shapes, the smaller your file size and the faster your movie downloads. Most often, this involves deleting extraneous points. There are a few ways to delete points:

  • Select the line or outline with the Subselection tool, which causes the individual points to appear as hollow circles along the line. Select the point that you want to remove. Press Delete.

  • Select a line or outline with the Pen tool, and then position the cursor over the point that you want to remove. The cursor updates and displays a small inverted v (^) to the lower right, which is the Corner Point cursor. Click the point with the Corner Point cursor, and continue to hover over the point. After clicking with the Corner Point cursor, the cursor updates and displays a small minus sign (–) to the lower right, which is the Delete Point cursor. Click the point with the Delete Point cursor to delete it.

  • When deleting more than one point from a closed shape, such as an oval or polygon, use the Subselection tool to drag and select any number of points. Press Delete to eliminate the selected points. The path heals itself, closing the shape with a smooth arc or line.

Tip

If you use the Subselection tool to select a path and then Shift+select several points on it, those points can be moved in unison by dragging or by tapping the arrow keys.

Tip

The submenu available in the Tools panel for the Pen tool makes it easier to set the Pen mode to remove or convert points without having to keep such a close eye on the contextual cues. Simply choose the Pen mode that you want to work within the Tools panel, click the line you want to edit to make the points visible, and begin adding, subtracting, or converting points, depending on the setting you've chosen.

Designing and Aligning Elements

After you've drawn some lines or shapes, you'll want to organize them in your layout. Flash provides some useful tools to help with moving or modifying elements that are familiar if you've worked in other graphics programs. Aside from using the Flash grid and manually placed guides with various snap settings to control your layout, you can quickly access the Align panel or the Info panel to dynamically change the placement of elements on the Stage. The Transform panel is the most accurate way to modify the size, aspect ratio, rotation, and even the vertical or horizontal "slant" of an element.

The precise alignment possible with panels and snapping controls is especially helpful if you're working with detailed artwork or multiple shapes that need to be arranged in exact relation to each other.

Simplifying snapping settings

There are five independent snapping settings in Flash. Snapping is a feature that gives you guidance when moving elements on the Stage and helps to align elements accurately in relation to each other, to the drawing grid, to guides, or to whole pixel axis points. The five different snapping controls can be turned on and off in the View

Simplifying snapping settings
You can control Snapping settings in the Edit Snapping dialog box by using the Basic view, which shows only the top five check boxes, or the Advanced view, which expands the dialog box to include more Snap align settings, as shown here.

Figure 5.40. You can control Snapping settings in the Edit Snapping dialog box by using the Basic view, which shows only the top five check boxes, or the Advanced view, which expands the dialog box to include more Snap align settings, as shown here.

You can tell that an item is snapping by the appearance of dotted guide lines, as shown in the Snap Align example (see Figure 5.41), or by the appearance of a small circle beside the Selection tool arrow cursor, as shown in the Snap to Object and Snap to Grid examples (see Figure 5.42 and Figure 5.43). For best control of snapping position, click and drag from the center point or from an outside edge of an element.

The five main snapping modes are adjusted and applied as follows.

Snap Align

This feature gives you relative visual alignment guides as you move elements on the Stage. You'll either love or hate this option because it's the most "interactive" of all the snapping settings. The controls for Snap Align are in the Advanced settings of the Edit Snapping dialog box (shown in Figure 5.40). By default, Snap Align is set to display visual guides to alert you when an element is within 0 pixels of the movie border (aka the Stage edge), or within 0 pixels of another element in your layout.

As you move an element around on the Stage, you see dotted lines (see Figure 5.41) that alert you when the edge of the element is exactly 0 pixels from the edge of the Stage, or 0 pixels from the next closest fixed element. The dotted guide lets you know when the edges of the two elements are touching (or perfectly aligned), either vertically or horizontally. Modify the Movie border settings to change the alert or alignment distance between elements and the edge of the Stage. Modify the Horizontal or Vertical Snap tolerance settings to change the alert distance between elements. If you also want to see guides when elements are aligned to the center point of other elements, select the Horizontal or Vertical Center alignment check boxes.

Tip

If you change the Horizontal or Vertical Snap Align settings to show a dotted line when an item is a specific distance from another item (such as 10 pixels — this was the default setting in Flash MX 2004), you still see the dotted line show up when the items are touching or within 0 pixels of each other. The fixed-distance Snap Align cue can be very helpful if you are trying to arrange items but you need them to be more than 0 pixels apart.

Snap to Objects

The Snap to Objects setting is a toggle that causes items being drawn or moved on-screen to snap to or align with other items on the Stage. Click the magnet icon in the Tools panel to turn snapping on or off (Shift+Ctrl+/ or Shift+

Snap to Objects
Snap Align guides give visual feedback for various alignment settings.

Figure 5.41. Snap Align guides give visual feedback for various alignment settings.

As shown in Figure 5.42, object snapping is indicated by the "o" icon near the center point as an item is moved from its original position (left). When the item is dragged close enough to another item to snap to it, the "o" icon gets slightly larger, which indicates to you to release the mouse (right). This same visual cue works if you drag an item by a corner point rather than from a center point. Ovals can be aligned to the center point or to any point along their outer edge.

Snap to Objects indicated by a change in the size of the center point (or corner point) "o" icon as an item is moved to overlap with another item

Figure 5.42. Snap to Objects indicated by a change in the size of the center point (or corner point) "o" icon as an item is moved to overlap with another item

Snap to Grid

Snap to Grid (Ctrl+Shift+' [apostrophe] or

Snap to Grid

To control the tolerance of this snapping feature, use the settings found under View

Snap to Grid
The snap icon as it appears when an element is dragged onto a grid line with Snap to Grid turned on (snapping works regardless of whether the grid is visible or not)

Figure 5.43. The snap icon as it appears when an element is dragged onto a grid line with Snap to Grid turned on (snapping works regardless of whether the grid is visible or not)

Snap to Guides

As I described in the previous chapter, guides are vertical or horizontal visual alignment tools that can be dragged onto the pasteboard or Stage when rulers are visible: Choose View

Snap to Guides
The snap icon as it appears when an element is dragged onto a guide with Snap to Guides turned on

Figure 5.44. The snap icon as it appears when an element is dragged onto a guide with Snap to Guides turned on

Note

Snap to Guides is independent of Snap to Grid, but guides can be placed only outside the grid when Snap to Grid is turned off.

Tip

Rulers have to be visible to drag a guide onto the Stage, but after guides are placed, rulers can be turned off and guides will still be visible.

Snap to Pixels

Snap to Pixels is the only "global" setting that causes all elements to align with a 1-pixel grid that is visible only when the View scale is set to 400 percent or greater. This setting does not necessarily help you to align elements with each other, but it does help to keep elements from being placed "between pixels" by constraining movement of elements on the X and Y axes to whole pixels, rather than allowing decimals. There is no shortcut key for turning Snap to Pixels on, but you can always toggle it on and off from the View menu by checking or unchecking View

Snap to Pixels
The pixel grid visible when View scale is at 400 percent or higher with Snap to Pixels turned on

Figure 5.45. The pixel grid visible when View scale is at 400 percent or higher with Snap to Pixels turned on

Warning

If an item is positioned between pixels — for example if the X, Y position is 125.5, 200.5 — the Snap to Pixel feature does not correct the position to a whole pixel value. Snap to Pixels constrains only the movement of items to whole pixel values. Thus, the item example given here could be dragged to a new location only by moving in whole pixel values; so it might end up at a new location such as 130.5, 225.5. If you want to keep items aligned to whole pixel values, use the input fields in the Properties panel to manually enter a starting location with whole pixel X, Y values, and then use the Snap to Pixel option to keep items aligned with the 1-pixel grid.

Tip

When you are working with an oval or other nonsquare polygon, you will notice that the X, Y values in the Properties panel may still show decimal pixel values even when Snap to Pixels is turned on. If you use the Info panel to change the shape's registration point from the default top-left setting to the center (click the center square in the Registration grid), you will have more success positioning and tracking the shape with whole pixel values.

Design panels

When you are drawing in Flash, the design panels — Align, Info, and Transform — can be your best friends. Use the Align panel to align, regularize (match the sizes of), or distribute several items on Stage, either relative to each other or to the Stage area. Use the Info panel to modify the coordinates, dimensions, and transformation points for items on the Stage. Use the Transform panel to scale, rotate, and skew an item.

Tip

You can also access width and height and x, y location values directly in the Position and Size section of the new vertical Properties panel.

The Align panel (Ctrl+K or

Design panels

The Align panel

The Align panel (Ctrl+K or

The Align panel
Use the Align panel to both size and arrange items with ease.

Figure 5.46. Use the Align panel to both size and arrange items with ease.

The Align panel has five controls. The icons on the buttons show visually how selected items can be arranged:

  • To stage: On the far right, you will notice a To stage button. When this button is selected, all adjustments are made in relation to the full Stage. To stage is actually a toggle you can turn on or off at any time — it retains the last chosen state even if the panel is closed and reopened.

  • Align: There are six buttons in this first control. The first group of three buttons is for horizontal alignment, and the second group of three is for vertical alignment. These buttons align two or more items (or one or more items with the Stage) horizontally (top, middle, bottom) or vertically (left, middle, right).

  • Distribute: This control also has six buttons: three for horizontal distribution and three for vertical distribution. These buttons are most useful when you have three or more items that you want to space evenly (such as a row of menu items). These buttons distribute items equally, again vertically or horizontally. The different options enable you to distribute from edge to edge, or from item centers.

  • Match size: This control enables you to force two or more items of different sizes to become equal in size, and match items horizontally, vertically, or both.

  • Space: This option enables you to space items evenly, again, vertically or horizontally. You may wonder how this differs from Distribute. Both are similar in concept, and if your items are all the same size, these options have the same effect. The difference becomes more apparent when the items are of different sizes:

    • Distribute evenly distributes the items according to a common reference (top, center, or bottom). For example, if one item is larger than the others, it may be separated from the other items by less space, but the distance between its top edge and the next item's top edge will be consistent with all the selected items.

    • Space ensures that the spacing between items is the same; for example, each item might have exactly 36 pixels between it and the next.

To align an item to the exact center of the Stage, do the following:

  1. Click to select the item you want to center.

  2. Click the To stage toggle in the Align panel.

  3. Click the Align horizontal center button.

  4. Click the Align vertical center button.

The Info panel

Use the Info panel (Ctrl+I or

The Info panel

Warning

The registration point set in the Registration/Transformation point grid is actually a global setting that "sticks" even after you close the panel and change tools. After you change the registration point from top left to center, any new shapes or symbols that you create automatically have a center registration point. In most cases, it is best to stick with the default top-left registration point because this is the standard for items that are loaded or positioned with ActionScript. Changing the registration point on one item back to top left does not have any effect on other items that were created with a center registration point.

The Info panel has these controls:

  • Width: Use this numeric entry field to alter the width of a selected item.

  • Height: Use this numeric entry field to alter the height of a selected item.

Tip

Units for both Width and Height are measured in the units (pixels, inches, points, and so on) set in the Ruler Units option of the Document Properties dialog box found under Modify

The Info panel
Use the Info panel options to change the location and appearance of an item.

Figure 5.47. Use the Info panel options to change the location and appearance of an item.

  • Registration grid: The Registration grid is located just to the left of the numeric entry fields that are used for adjusting the X and Y location of any selected item. This grid consists of four small squares. Together, these squares represent the top corner of an invisible bounding box that encloses the selected item. Every shape created in Flash, even circles, resides within an imaginary rectangular bounding box that includes the extremities of the shape. The Registration grid enables you to toggle the selected item's registration point from the upper-left corner to the center of its bounding box. The T icon on the top-left square represents registration relative to the top-left corner of the item, and the O icon on the bottom-right square represents registration relative to the center of the item.

Note

The X (horizontal) and Y (vertical) coordinates are measured from the upper-left corner of the Flash Stage, which is the origin with coordinates 0,0.

  • X: Use this numeric entry field to either read the X coordinate of the item or to reposition the item numerically, relative to the center point on the X (or horizontal) axis.

  • Y: Use this numeric entry field to either read the Y coordinate of the item or to reposition the item numerically, relative to the center point on the Y (or vertical) axis.

  • RGBA: This sector of the Info panel gives the Red, Green, Blue, and Alpha values for graphic items and groups at the point immediately beneath the cursor. Values for symbols, the background, or interface elements do not register.

  • + X: / + Y: This sector of the Info panel gives the X and Y coordinates for the point immediately beneath the cursor — including offstage or pasteboard values. A negative X value is to the left of the Stage, whereas a negative Y is located above the Stage.

To scale or reposition an item, select the item and then open the Info panel with shortcut keys or by choosing Window

Use the Info panel options to change the location and appearance of an item.
  • Choose to scale or reposition the item relative to either the center or the upper-left corner. (The icon toggles from the T icon on the top left to the O icon on the lower right to indicate the current setting.)

  • To scale the item numerically, enter new values in the Width and Height fields, and then click elsewhere or press Enter to apply the change.

  • To reposition the item numerically, enter new values in the X and Y fields (located in the upper half of the panel), and then either press Enter or click outside the panel to apply the change.

The Transform panel

The Transform panel (Ctrl+T or

The Transform panel

Tip

If you're using the Properties panel to resize an item by pixel values, don't overlook the constrain option. When an item is selected on the Stage, a small lock icon appears beside the Width and Height fields. Click the lock to preserve the aspect ratio of an element as you enter a new value for width or height.

Use the Transform panel to scale, rotate, and skew items.

Figure 5.48. Use the Transform panel to scale, rotate, and skew items.

Some other powerful transform options are available from the Tools panel and from the Transform submenu of the Modify menu. I explain these more-complex editing tools in Chapter 9."Modifying Graphics." However, the best place to start with transform options is the Transform panel, and these options are applied as follows:

  • Scale: Use this to size the selected item by percentage. Enter a new number in the Scale field and press Enter. The shape scales to the specified percentage of its original size. To constrain the shape to its current proportions, click the Constrain check box. After a line or shape is deselected, the values in the Transform panel reset. The quickest way to get back to the original settings is to immediately use Edit

    Use the Transform panel to scale, rotate, and skew items.

Tip

When you are using the Transform panel with groups, drawing objects, shape primitives, and symbol instances, you can reference or reset the original settings, even after the item has been deselected. I explain making and using symbols in Chapter 6, "Symbols, Instances, and the Library."

  • Rotate: Click the radio button and then specify a rotation for the selected item by entering a number in the Rotate field. Press Return or Enter to apply the change to the selected item. The item rotates clockwise around its center point. To rotate an item counterclockwise, enter a negative number in the Rotate field.

  • Skew: Items can be skewed (slanted in the horizontal or vertical direction) by selecting the Skew radio button, and then entering values for the horizontal and vertical angles. Pressing Return or Enter skews the item to the values entered.

  • Duplicate Selection and Transform: Press this button and Flash makes a copy of the selected item (including shapes and lines) with all transform settings that have been applied to it. The duplicate is pasted in the same location as the original; select it with the Selection tool and move it to a new position to separate it from the original. Your original is left unchanged.

  • Remove Transform: This button, at the bottom-right corner of the panel, removes all transformation settings for a selected object. You can always use the Remove Transform (or "Reset") button for instances, groups, or type blocks to get back to 100 percent scale with no rotation or skew. However, after a shape or line is deselected, this button does not work. For shapes, this is really more like an "Undo All" button.

Note

I discuss the 3-D rotation and 3-D center point options as they relate to working with 3-D symbols in Flash in Chapter 9, "Modifying Graphics."

The Edit Menu

I discuss many of the commands in the Edit menu in Chapter 4, but some of these commands can be helpful for creating or modifying graphics and are worth mentioning again here:

  • Undo: When you make a mistake, before you do anything else, apply this command to get back to where you started. The default number for combined Undos that Flash remembers is 100; the maximum number is 300. Because Undo "memory" occupies system memory, you can set this level much lower if you find you don't rely on it. This setting is controlled in the General tab of the Flash Preferences dialog box.

Note

It is possible to switch the Undo behavior from Document-level (the default behavior) to Object-level (legacy Flash-style). Document-level Undo stores a combined history stack for all items in the current document, while Object-level Undo stores individual history stacks for each item stored in the library. The benefit of using Document-level Undo (the default setting for Flash CS5) is that more commands or editing steps can be undone. For a complete list of steps that cannot be undone if you opt to use Object-style Undo (including most Create and Delete commands in the Library panel), refer to the section on Using the Undo, Redo, and Repeat menu commands in the Using Flash booklet in the Help panel. The Undo behavior and the number of undo steps that you want to buffer are controlled in the General section of the Preferences dialog box: File

The Edit Menu

Note

Undo does not transcend focus: You cannot Undo work on the Stage from the ActionScript panel: You must first return focus to the Stage to exercise Undo.

  • Redo: The anti-Undo, this redoes what you just undid.

  • Repeat: If you have not just used Undo, you will see this as an option that enables you to "double" whatever edit you may have made, or to apply it to another item.

Note

The History panel provides a flexible, nonlinear option for backtracking or repeating steps as you create and edit graphics. You can also use the History panel in conjunction with the Commands menu to track and save authoring steps that you can archive and reuse. I discuss these features in Chapter 9, "Modifying Graphics."

  • Cut: This removes any selected item(s) from the Document window and places it on the Clipboard.

  • Copy: This copies any selected item(s) and places it on the Clipboard, without removing it from the Document window.

  • Paste in Center: Disabled if nothing has been copied or cut, this command pastes items from the Clipboard into the currently active frame on the currently active layer. You can also paste text into panel value fields.

Note

The Paste in Center command places items in the center of the currently visible area in the Document window, not in the center of the Stage. Double-click the Hand icon in the Tools panel to center the Stage in the Document window before using Paste in Center if you want the pasted item to be placed in the center of the Stage.

  • Paste in Place: This is like Paste, except that it pastes the object precisely in the same area of the Stage (or Work area) from which it was copied (but it can be on a new layer or keyframe).

  • Clear: This removes a selected item(s) from the Stage without copying it to the Clipboard.

  • Duplicate: This command duplicates a selected item or items, without burdening the Clipboard. The duplicated item appears adjacent to the original.

  • Select All: This selects all items in the Document window in the currently active keyframe of the project.

  • Deselect All: This deselects all currently selected items.

  • Find and Replace: This command launches a powerful option that enables you to specify elements in a current Flash document or scene and modify them with settings you choose in the Find and Replace dialog box. For more detailed information on using the Find and Replace command, refer to Chapter 9, "Modifying Graphics."

  • Find Next: This is a shortcut that searches through a Flash document or scene and finds the next item that matches the criteria set in the Find and Replace dialog box.

  • Timeline: This submenu provides access to the most common commands used to modify frames in the timeline: Cut Frames, Copy Frames, Paste Frames, Clear Frames, Remove Frames, and Select All Frames. These commands are also available in the contextual menu on any frame in the timeline. This submenu also includes the commands for converting timeline animation into reusable script-based motion elements that can be copied, pasted, or saved to share or use in other Flash files.

  • Edit Symbols: Select an instance of a symbol and choose this command to modify the content of the symbol in Edit mode, an edit space that is independent from the Stage. For more about symbols and editing symbols, refer to Chapter 6, "Symbols, Instances, and the Library."

  • Edit Selected: This command is enabled only if a group or symbol is selected on the Stage. It makes a selected group or symbol available in Edit mode. This same kind of edit space is invoked for symbols by choosing Edit Symbol.

  • Edit in Place: This command opens a selected group or symbol in a separate tab of the Document window (shown in the location label area of the Document window) and enables you to edit this group or symbol while still seeing the other elements on the Stage, dimmed in the background for reference.

Tip

Double-clicking a group or symbol on the Stage with the Selection tool has the same result as choosing the Edit in Place command.

  • Edit All: From Edit mode, Edit All is used to go back to editing the main Flash scene. You can also do this by clicking the Scene location label of the Document window.

Creating Patterns with Symbols Using the Spray Brush Tool and the Deco Tool

Although the Deco tool and the Spray Brush tool are stored in the Tools panel along with all the other drawing and selection tools, I discuss them here in their own section because they are fundamentally different than the tools covered so far in this chapter. Instead of helping you to make lines or shapes manually, these tools auto-create patterns based on settings that you enter before you use them. And instead of using a fill or stroke color to create patterns, these tools use symbols (either the default symbol or a Movie clip or Graphic symbol that you create and then select from the library). The Spray Brush tool is great at making random patterns with variations in size, rotation, and distribution of symbol instances that make up the "spray." The Deco tool gives you powerful WYSIWYG tools for imposing order and geometric precision to the layout of multiple symbol instances, and the power to grow your own (easy to animate) vine patterns with just a click of your mouse.

These tools may require a little more work upfront (with setup and/or custom symbol creation), but they have the power to save you hours of time: Instead of tediously placing and positioning individual elements on the Stage to create a complex pattern or fill effect, you can simply click your mouse and Flash distributes instances of your selected symbol across the Stage, arranged exactly as you have specified. Magic! These tools are so fun and easy to use that I expect to see complex geometric patterns and funky random fills in many more Flash movies.

Note

For information on how to create your own symbols, skip ahead to Chapter 6, "Symbols, Instances, and the Library".

Applying random "ink" with the Spray Brush tool

The Spray Brush tool shares space in the Tools panel with the old-fashioned Brush tool. To toggle between the two, click and hold the Tool space until the popup shows both tools, and then select the one you want to work with. The icon for the Spray Brush gives you a good clue for how this tool works: like a can of spray paint. When you select the Spray Brush, you won't see options in the Tools panel as you do for the standard Brush tool, but instead you see controls in the Properties panel for selecting the symbol you want to work with and setting the size and angle of the Brush (which for this tool is actually the spray area covered when you click without moving your cursor). Figure 5.49 includes the Tools panel with the Spray Brush selected and the Properties panel with the Symbol and Brush settings used to create the pattern of dots shown on the far left. The special beauty of the Spray Brush tool is that the distribution of dots is somewhat random. If you have ever tried to create a "random" pattern by placing individual elements on the Stage, you will truly appreciate how much time and effort this tool can save.

You can use the Spray Brush without creating any custom symbols by simply leaving the Symbol setting for Spray on no symbol (the Default shape check box will be selected). With this workflow you can choose a color for your spray, and you can choose the area that the "ink" (or small dot/particles) scatter in with each click, but you can't alter the shape or size of the particles in the spray. The maximum settings allowed for width and height of the Brush area match the size of your current Stage size, but you can spray as large an area as you want by holding down the mouse and dragging to spray. Each time you click and release the mouse with the Spray Brush, you create a group of symbol instances. These groups can be selected and edited individually after they have been sprayed onto the Stage.

Tip

To make editing easier, you might consider using the Select All (

Applying random "ink" with the Spray Brush tool
With the default settings in the Properties panel, the Spray Brush creates a random pattern of dots as you click and drag on the Stage.

Figure 5.49. With the default settings in the Properties panel, the Spray Brush creates a random pattern of dots as you click and drag on the Stage.

As shown in Figure 5.50, the Spray Brush gets a lot more interesting when you have some symbols in your library to work with.

To specify a custom symbol spray pattern, do the following:

  1. Select the Spray Brush tool in the Tools panel.

  2. Click the Edit button in the Symbol section of the Properties panel. The Swap symbol dialog box appears, which shows a list of all the symbols in your current library. Select the symbol you want to use as your spray particle.

  3. Choose scale settings for the symbol. In most cases, you get a more interesting result if you set the scale to less than 100 percent. You can use really large particles, but the Spray Brush is designed to work best with smaller particles (less than 100 pixels in width or height).

    Select a custom symbol as the spray, and then adjust the settings to create patterns by using multiple instances of your symbol with each click of the Spray Brush.

    Figure 5.50. Select a custom symbol as the spray, and then adjust the settings to create patterns by using multiple instances of your symbol with each click of the Spray Brush.

  4. Use the random settings to make the spray more interesting and organic:

    • Random scaling adjusts the size of the particles so that there are varying sizes in each spray. The specific sizing is random and unpredictable, but the particles can vary from 1 × 1 pixel to the size set by your scale setting in Step 3.

    • Rotate symbol adjusts the alignment of the spray so that your symbol instance is not always in its original position. It varies from 0 to 360 degree rotation, but the rotation of particles in each group is consistent.

    • Random rotation adjusts the alignment of the particles in each spray so that your symbol instance is in varying positions within each group. This option creates a nice random texture if you are working with an irregularly shaped particle.

  5. Set the size of the spray area by using the Brush width and height settings. Choose a value between 0 and the width or height of your current document. Experiment with this setting to get the result you like best, but I found that an area equal to half the current document size worked well for controlling the brush while not restricting the distribution of symbols too much.

  6. Set rotation for the spray area (if you like), using the Brush angle setting. Choose a value between 0 and 360. This setting has a visible result only if you have unequal values for the width and height of your spray area (set in Step 5). Using a rotation of 90 has the same final result as swapping your Brush width and height settings.

  7. Click and drag to spray a symbol pattern onto the Stage. Move the mouse to cover more area, or keep the mouse in one area to create a layered effect with a buildup of spray (or stacked symbol instances).

Symbol instances are sprayed and grouped each time you click the mouse. As shown in Figure 5.51, you may end up with a lot of groups if you click and spray multiple times.

Use Select all to see the symbol instance groups that make up a layered pattern created by the Spray Brush applied with multiple mouse clicks.

Figure 5.51. Use Select all to see the symbol instance groups that make up a layered pattern created by the Spray Brush applied with multiple mouse clicks.

Creating order and pattern with the Deco tool

The Deco tool (U) is more like 13 tools in one. It's represented by one icon in the Tools panel, but as shown in Figure 5.52, when you select it, you see a drop-down menu in the Property inspector that enables you to choose from 13 different drawing effects:

Note

Out of the 13 mini-tools inside the Deco tool, only 3 existed in Flash CS4 — Vine Fill, Grid Fill, and Symmetry Brush. The new Deco tools in Flash CS5 create stylized artwork and animations for you automatically.

The Deco tool in the Tools panel has 13 different drawing effect options in the Property inspector that produce distinctly different results, 3 of which are shown here: (far left, top to bottom) Vine Fill, Building Brush, Flower Brush. They all work by auto-arranging symbol instances or pre-built shapes on the Stage, but each has its own settings and controls for modifying the layout.

Figure 5.52. The Deco tool in the Tools panel has 13 different drawing effect options in the Property inspector that produce distinctly different results, 3 of which are shown here: (far left, top to bottom) Vine Fill, Building Brush, Flower Brush. They all work by auto-arranging symbol instances or pre-built shapes on the Stage, but each has its own settings and controls for modifying the layout.

  • Vine Fill: Auto-draws a vine pattern with leaf and flower symbols arranged on simple stems. The pattern originates where you click your mouse but continues to grow until it fills the shape that you have selected to place it in or you stop the effect (by hitting Esc or selecting another tool in the Tools panel). You can use the default symbols to create the vine (a simple leaf shape and a basic flower), assigning each a color if you want, or you can select your own symbol from the library for one or both of the leaf and flower elements.

  • Grid Fill: Arranges symbol instances in rows and columns based on the spacing and scale you set in the Property inspector (Advanced Options). The pattern originates where you click your mouse and continues tiling outward until it fills a shape or you stop the effect. You can tile the default symbol (a black square) or choose any Movie clip or Graphic symbol in your library.

  • Symmetry Brush: Provides control handles that enable you to direct the placement of multiple symbol instances in geometric patterns:

    • Reflect Across Line

    • Reflect Across Point

    • Rotate Around Point

    • Grid Translation

  • 3D Brush: Gives a simulated 3-D drawing effect to symbols or using the default square shape. As you use the Deco tool in 3D Brush mode, objects drawn toward the top of the screen are smaller than those drawn toward the bottom of the screen, simulating a vanishing point.

  • Building Brush: Draws one of four different buildings or a random building as you click and drag your mouse upward, creating the top of the building where you release your mouse button.

  • Decorated Brush: Allows you to use 1 of 20 predefined shapes to draw along a path.

  • Fire Animation: Automatically creates an animation of a fire burning. The colors of the fire can be controlled through the Properties panel, along with whether the animation should end with the fire burning out.

  • Flame Brush: Creates stylized flames as you drag your mouse, which gets darker the longer the mouse button is held down. In the Properties panel, you can set size and color of the flames.

  • Flower Brush: Draws one of four different types of flowers. The colors of the flowers can be controlled through the Properties panel, along with choosing whether flower clusters are connected with stems.

  • Lightning Brush: Creates bolts of lightning, which can be animated, colored, sized, and simplified in the Properties panel.

  • Particle System: Builds an animation of a particle system, which supports the default square shape, or any of up to two symbols you define. The particle system gives control over speed, direction, and size of the particles in the animation.

  • Smoke Animation: Creates animated smoke. The Properties panel allows you to define the size, speed, duration, and color of the smoke in the animation. In addition, like the fire animation effect, you can choose whether to let Flash create the end of the animation for you.

  • Tree Brush: Automatically creates 1 of 20 tree or vine patterns as you drag your mouse. Through the Properties panel, you can choose a design and control colors of the trees you create.

Growing patterns with the Vine Fill drawing effect

The Vine fill creates a simple pattern with the default symbols (as shown in Figure 5.52), but you can use it as a base for much more detailed designs. Keep in mind that the symbols you choose for the Leaf and Flower don't actually have to be leaves or flowers — they can be any symbol you choose. In Advanced Options you can choose a color and angle for the vine stem and also set a scale for the overall pattern and a length for the vine segments. As with any symbol instance, you have the option of editing your leaf and flower symbols after they have been drawn as part of the vine pattern. Figure 5.53 compares a Vine fill drawn with custom leaf and flower symbols with the same vine after the leaf and flower symbols have been edited.

You'll notice that the Vine fill "grows" in a kind of organic way after you click to start the fill. You can capture this fill pattern as frame-by-frame animation by selecting the Animate Pattern check box at the bottom of the Property inspector Advanced Options for the Deco tool Vine Fill drawing effect. The Frame step setting controls how often a new frame is added as the pattern grows: The range from 1 to 100 represents the percentage of the total pattern that is included in each frame. A setting of 100 puts only one keyframe on the timeline with the finished pattern in it, showing 100 percent of the drawing in just one step. A setting of 1 adds as many keyframes as there are elements in your vine pattern, showing the drawing in incremental steps with a keyframe for each step. For most purposes, a setting somewhere in the middle works just fine.

A Vine fill created with custom leaf and flower symbols (left) can be edited after it is drawn to have a very different look (right).

Figure 5.53. A Vine fill created with custom leaf and flower symbols (left) can be edited after it is drawn to have a very different look (right).

Warning

The Vine fill works best if the symbols you choose for the leaf and flower nodes are small in size: generally under 25 pixels in any direction. If the symbols are too large, the vine has no room for both leaves and flowers unless you make the segments really long — which makes the pattern look less like a vine and more like a series of long lines. If you are working with large symbols, you can either edit the graphics to scale them down or you can set the Pattern scale to a lower value to make the symbol instances small enough to fill the vine with a decent density of leaves and flowers.

Tip

If you like the look of larger leaves and flowers, it works better to create the fill pattern with small graphics and then edit the source symbols to scale the graphics larger; the symbol instances for the leaves and flowers update but the vine pattern is not disrupted. This was the workflow for the vines shown in Figure 5.53.

Tiling patterns with the Grid Fill drawing effect

The Grid Fill does just as its name implies: it fills an area with a grid-based pattern of symbol instances. The default graphic is a black square (as shown in Figure 5.52), but you can specify any Movie clip or Graphic symbol in your library. As shown in Figure 5.54, the options for Grid Fill (available after you activate the Deco tool in the Tools panel and select Grid Fill from the drop-down menu in the Property inspector) enable you to choose a Fill symbol and set the horizontal and vertical spacing and scale for the symbol instances. The pattern starts wherever you click your mouse on the Stage, and it continues to tile outward until you stop the effect (by hitting Esc or choosing another tool in the Tools panel) or until it hits the inside edges of whatever shape you have chosen to fill. The tile is symmetrical in all directions, so you might find that there are empty spaces left in a filled graphic because the fill hit an area that it could not tile evenly. Figure 5.54 shows just three examples of tiled fills created with the Deco tool and the Grid Fill drawing effect.

As with all the Deco tool artwork, the symbol instances for Grid fills are grouped each time you click to start a fill, and the source symbols and symbol instances can be edited after the fill pattern is created.

Creating reflected patterns with the Symmetry Brush drawing effect

The Symmetry Brush has four different modes, and each mode has a different guide that appears on the Stage, enabling you to control the placement of symbol instances in a geometric pattern. Although the guides are unique for each mode, the principle is the same — use the guide to set up placement of symbol instances, and then click to place them on the Stage while the drawing effect builds a reflected pattern each time you click. Figure 5.55 shows the guides and the pattern created by each with the default graphic (a black square).

Grid Fill creates a tiled pattern of symbol instances with the spacing and scale you choose. Here are just a few options: You can make the default shape small and dense (top), use a bitmap in a Graphic symbol as a fill for another shape (middle), or even apply the effect more than once to get layered geometric patterns (bottom).

Figure 5.54. Grid Fill creates a tiled pattern of symbol instances with the spacing and scale you choose. Here are just a few options: You can make the default shape small and dense (top), use a bitmap in a Graphic symbol as a fill for another shape (middle), or even apply the effect more than once to get layered geometric patterns (bottom).

The four Symmetry Brush modes enable you to use draggable guides to dynamically control the placement and spacing of symbol instances: Reflect Across Line (A), Reflect Across Point (B), Rotate Around Point (C), and Grid Translation (D).

Figure 5.55. The four Symmetry Brush modes enable you to use draggable guides to dynamically control the placement and spacing of symbol instances: Reflect Across Line (A), Reflect Across Point (B), Rotate Around Point (C), and Grid Translation (D).

These guides are tricky to describe and are best explored in a tactile way, but here is some explanation for each one:

  • Reflect Across Line: Click and drag the guide center point to position the guide in the area of the Stage where you want the pattern to originate. Click and drag the direction point — marked with a double arrow — anywhere within a 360-degree arc to orient the line that creates the reflection axis. Click on either side of the line to place symbol instances and expect to see an exact reflection on the other side of the line, mirroring placement on the Stage and distance from the axis.

  • Reflect Across Point: Click and drag the guide center point to position the guide in the area of the Stage where you want the pattern to originate. Click on any side of the center point to place symbol instances and expect to see an exact reflection on the other side of the point, mirroring placement on the Stage and distance from the axis.

  • Rotate Around Point (aka the clock-face effect): Click and drag the guide center point to position the guide in the area of the Stage where you want the pattern to originate. Click and drag the direction point — marked with a double arrow — to anywhere within a 360-degree arc to orient the starting position for the first symbol instance in the circular pattern. Click and drag the spacing point — marked with an × — to anywhere within a 180-degree arc to set the angle of reflection.

    Click anywhere around the two lines and expect to see reflections oriented around the center point and repeated as many times as there is room for in the reflection area. If you drag the spacing point closer to the direction point, you increase the reflection area and more symbol instances fill the space. If you drag the spacing point farther away from the direction point, you decrease the reflection area and fewer symbol instances fill the space.

Note

If the spacing point is 180 degrees from the direction point (forming a straight line), you see only one reflection for each symbol instance you place, but the effect is different than the Reflect Across Line pattern because the reflected instances are at the opposite end of the axis line rather than directly across.

  • Grid Translation: Click and drag the guide center point to position the guide in the area of the Stage where you want the pattern to originate. Click and drag the spacing points — marked with plus signs (+) — to set the endpoints for the fill pattern on the x and y axis. Click and drag the position guides — marked with double arrows — to adjust the rotation angle for the grid. One pointer changes the rotation of individual symbol instances in relation to each other, creating a skew effect, and the other pointer changes the rotation of the whole group of symbol instances in relation to the center point. Click to place a symbol instance in the grid area and expect to see a grid fill the space between the two spacing points.

One quick way to get a feel for the varied powers of these different Symmetry Brush modes is to create a pattern in one mode and then change the mode in the Property inspector without modifying the artwork on the Stage. This enables you to see how different the patterns made by each guide can be even with the same source symbol instances and placement.

Summary

  • The geometric shapes available from the Tools panel are a quick, accurate way of creating basic elements that you can customize with various fill and stroke styles.

  • The Primitive Shape tools for creating dynamic ovals and rectangles make it much easier to draw and modify shapes without having to start from scratch or make permanent manual changes to the original shape to create rounded rectangles, open circles, and other useful graphics.

  • Settings dialog boxes for the Oval tool and the Rectangle tool make it possible for you to set the width and height of these shapes before they are drawn.

  • The Pencil, Brush, and Pen tools enable you to draw freeform or Bezier lines that you can edit by using the Pen submenu, Selection tool arrow options, or the Subselection tool.

  • The Object Drawing option can be turned on while creating graphics with any of the drawing or shape tools. Drawing objects are hybrid graphics that share selective characteristics with shapes, grouped shapes, and Graphic symbols.

  • Enhanced Smoothing controls, a Tilt toggle, and a Pressure toggle give artists who use tablets lots of options to customize the Flash drawing environment.

  • The Scale control in the Properties panel gives you more precise control over strokes that will be scaled in the authoring environment (as symbol instances) or in the Flash Player (as final published content).

  • Optimizing artwork manually by editing points with the Subselection tool, or automatically by using the Optimize Curves option, can greatly reduce file size by simplifying lines and curves.

  • The Smooth and Straighten modifiers in the Tools panel are now augmented by dialog boxes that give you more control over the level of optimization — and in the case of Smoothing, the exact angles that you want to target. To access these more advanced smoothing controls, select Modify

    Summary
  • By adjusting and applying the various snapping modifiers, you can control how "auto" alignment behavior affects elements as you work. The Edit Snapping dialog box enables you to set or modify snapping behaviors quickly.

  • You have the option of using Document-level Undo or going back to the legacy-style Undo (Object-level). There are advantages to using Document-level Undo (which is the default), but the legacy option has been maintained in response to users who wanted to go back to the Undo style that they were familiar with from older versions of Flash.

  • New pattern tools enable you to use symbol instances as the basis for geometric or random fill patterns. The Spray Brush works like a spray can to scatter symbol instances as particles on the Stage. The Deco tool offers a range of different modes and guides for creating more organized patterns based on reflection and grids, plus a fun Vine Fill mode that lets you design your own organic fill with leaf and flower nodes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset