
Document object
159
Parameters
color
The color of the stroke, in one of the following formats:
■
A string in the format
"#RRGGBB"
or
"#RRGGBBAA"
■
A hexadecimal number in the format
0xRRGGBB
■
An integer that represents the decimal equivalent of a hexadecimal number
Returns
Nothing.
Description
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()
.
Example
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);
document.setStrokeSize()
Availability
Flash MX 2004.
Usage
document.setStrokeSize(
size
)
Parameters
size
A floating-point value from 0.25 to 10 that specifies the stroke size. The method
ignores precision greater than two decimal places.
Returns
Nothing.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...