Description
Method; returns a new Path object. You typically use this method only when creating
extensible tools. See
Path
Example
The following example returns a new Path object:
fl.drawingLayer.newPath();
drawingLayer.setColor()
Availability
Flash MX 2004.
Usage
drawingLayer.setColor(color)
Parameters
The color of subsequently drawn data, in one of the following formats:
color
A string in the format
A hexadecimal number in the format
An integer that represents the decimal equivalent of a hexadecimal number
Returns
Nothing.
Description
Method; sets the color of subsequently drawn data. Applies only to persistent data. To use this
method, the parameter passed to
typically use this method only when creating extensible tools. See
drawingLayer.beginDraw()
Example
The following example draws a red line on the Stage:
fl.drawingLayer.beginDraw( true );
fl.drawingLayer.beginFrame();
fl.drawingLayer.setColor( "#ff0000" );
fl.drawingLayer.moveTo(0,0);
fl.drawingLayer.lineTo(100,100);
fl.drawingLayer.endFrame();
fl.drawingLayer.endDraw();
184
Objects
object.
or
"#RRGGBB"
"#RRGGBBAA"
0xRRGGBB
drawingLayer.beginDraw()
.
must be set to
. You
true
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers