Flash CS3 Documentation |
|||
| Extending Flash > Objects > drawingLayer object | |||
Flash MX 2004.
The drawingLayer object is accessible from JavaScript as a child of the flash object. The drawingLayer object is used for extensible tools when the user wants to temporarily draw while dragging--for example, when creating a selection marquee. You should call drawingLayer.beginFrame() before you call any other drawingLayer methods.
The following methods are available for the drawingLayer object:
|
Methods |
Description |
|---|---|
|
Puts Flash in drawing mode. |
|
|
Erases what was previously drawn using the drawingLayer and prepares for more drawing commands. |
|
|
Draws a cubic curve from the current pen location using the parameters as the coordinates of the cubic segment. |
|
|
Draws a quadratic curve segment starting at the current drawing position and ending at a specified point. |
|
|
Draws the specified path. |
|
|
Exits drawing mode. |
|
|
Signals the end of a group of drawing commands. |
|
|
Draws a line from the current drawing position to the point (x,y). |
|
|
Sets the current drawing position. |
|
|
Returns a new Path object. |
|
|
Sets the color of subsequently drawn data. |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004039.html