Although you normally create sprites by dragging a cast member from the Cast window to the Stage, it's possible to draw very simple sprites directly on the Stage. You do this by using the Line and shape tools in the Tool palette (Figure 9.18). When you draw a shape on the Stage, it appears automatically in the Cast window.
Shapes drawn on the Stage are essentially vector graphics, but they use a different (and older) technology than what's used in the Vector Shape window. They lack anti-aliasing, and they animate a bit more slowly than standard vector or bitmapped sprites. On the positive side, they consume virtually no memory and add practically nothing to a movie's file size. They're also quick and easy to create.
These simple shapes come in handy for a variety of tasksfor example, creating colored backdrops for a movie (see Figure 9.3) or temporarily hiding other sprites (Figure 9.19).
The next time you use the Line tool or any of the shape tools, the tool will draw with the specified line width.
Select the desired colors from the Foreground and Background Color menus (Figure 9.21) in the Tool palette.
The selected foreground color applies to all lines, to the fill color of filled shapes, and to the foreground color of patterns.
The background color applies only to the background of patterns.
Select the desired pattern from the Pattern menu.
The selected pattern appears only in filled shapes. The default setting is a solid pattern (which is to say no pattern at all).
The color and pattern you select will remain in effect for all tools until you choose another color or pattern.
In the Tool palette, click the Line tool (Figure 9.22).
Drag on the Stage to draw a line.
Release the mouse button when the line has the desired length and direction.
Hold down the Shift key while dragging to constrain the Line tool to horizontal, vertical, and 45-degree lines.
Click one of the shape tools in the Tool palette (Figure 9.23).
On the Stage, drag diagonally to make a shape.
Release the mouse button when the shape has the desired height and width.
Hold down the Shift key to constrain a rectangle to a square, or an ellipse to a circle.
Click the Arrow tool in the Tool palette.
On the Stage, select the line, shape, or group of lines and shapes that you want to adjust.
Choose a new color, pattern, or line width from the Tool palette.
The selected sprites change to reflect the new setting.
Sprites drawn on the Stage can be resized, rotated, skewed, and so forth like any other sprite. See "Changing Sprite Properties" in Chapter 3.