![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 401](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049401.webp)
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
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...