
When you select a shape you create using the object drawing model, a bounding box appears around that shape. In this image, the light yellow shape remains intact, even though the dark yellow shape overlaps the light yellow shape on the same layer. Each shape is created as a separate entity they do not merge when you overlap them.įigure 8. To draw using the object drawing model, select a drawing tool and then select Object Drawing under Options in the Tools panel (as shown in the Options area in Figure 8). When you create a shape with the new object drawing model, it does not cause changes to other shapes that exist underneath the new shape. You can now create shapes directly on the Stage that do not interfere with other shapes on the Stage. In previous versions of Flash, to work around the merging, you would typically have to draw shapes on stacked layers on the Timeline. To draw using the merge drawing model, select a drawing tool and then turn off Object Drawing under Options in the Tools panel (see the Options area in Figure 7). This drawing model is preserved in Flash 8 but is now called the merge drawing model because it merges shapes that you draw when they overlap. In this image, the dark yellow cuts away the light yellow that it overlapped. Drawings that are a different color cut away from other drawn shapes that overlap. If you drew two circles that were different colors and then selected one of those circles and moved it, it would remove any underlying content (see Figure 7).įigure 7. Previously in Flash, all shapes in the same layer on the Stage could affect the outlines of other overlapping shapes. Even fancier gradients are possible in Flash 8. The Fill Transform tool now includes an editable focal point that enables you to position the focal point (center) of a gradient fill applied to an object shown.įigure 6. You can add up to 15 colors to a gradient, precisely control the location of the gradient focal point, and apply other parameters to the gradient (see Figure 6). New controls also enable you to apply complex gradients to your drawings. By increasing the amount of smoothing, you can reduce the number of points used to calculate the curve, which results in smaller SWF files. However, Flash 8 introduces a new algorithm that optimizes these shapes. In both Flash MX 2004 and Flash 8, you can select the degree of smoothing to apply to curves that you draw with the Pencil and Brush tools. Using ActionScript code, you can use the Drawing API to control the line style of strokes that you draw as well as create complex gradient fills. In addition, the maximum size of a stroke has been increased from 10 pixels in Flash MX 2004 to 200 pixels in Flash 8, and you can now color strokes using a gradient fill. A join is the place where two strokes come together a cap is the end point of a stroke that does not join with another stroke. Joins and caps on strokes are now drawn more cleanly and precisely. New Features for Creating Strokes and Fills
