User Guide

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