Extending Flash |
|
|
|
| Objects > Document object > document.setStrokeColor() | |||
Flash MX 2004.
document.setStrokeColor(color)
color The color of the stroke, in one of the following formats:
"#RRGGBB" or "#RRGGBBAA"0xRRGGBBNothing.
Method; changes the stroke color of the selection to the specified color. For information on changing the stroke in the Tools panel and Property inspector, see document.setCustomStroke().
The three statements in the following example set the stroke color using each of the different formats for specifying color:
flash.getDocumentDOM().setStrokeColor("#cc00cc");
flash.getDocumentDOM().setStrokeColor(0xcc00cc);
flash.getDocumentDOM().setStrokeColor(120000);
|
|
|
|