July 2009
Intermediate to advanced
384 pages
9h 22m
English
ActionScript provides a full programming interface that allows you to draw objects onscreen through code, freeing you from having to rely on the Flash Professional drawing tools. This interface is particularly helpful in that you can have objects drawn at runtime based on user-provided variables.
Drawing in ActionScript relies on the Graphics class, which defines line and fill styles and lets you draw lines, curves, and shapes. All the methods of the class can be called via the graphics property of the display object onto which you are drawing. It can be helpful, although not required, to create a specific object, often using the Sprite class, to hold your drawings rather than place them directly ...
Read now
Unlock full access