
Stroke object
401
Example
The following example sets the
breakAtCorners
property to
true
:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.breakAtCorners = true;
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.capType
Availability
Flash 8.
Usage
stroke.capType
Description
Property; a string that specifies the type of cap for the stroke. Acceptable values are
"none"
,
"round"
, and
"square"
.
Example
The following example sets the stroke cap type to
"round"
:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.capType = "round";
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.color
Availability
Flash MX 2004.
Usage
stroke.color
Description
Property; 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
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...