Introduction to using the advanced drawing API

Flash Player 10 and Adobe AIR 1.5 introduce support for an advanced set of drawing features. The drawing API enhancements expand upon the drawing methods from previous releases so you can establish data sets to generate shapes, alter shapes at runtime, and create three-dimensional effects. The drawing API enhancements consolidate existing methods into alternative commands. These commands leverage vector arrays and enumeration classes to provide data sets for drawing methods. Using vector arrays allows for more complex shapes to render quickly and for developers to change the array values programmatically for dynamic shape rendering at runtime.

The drawing features introduced in Flash Player 10 are described in the following sections: Drawing Paths, Defining winding rules, Using graphics data classes, and About using drawTriangles().