User Guide

402 Objects
Example
The following example sets the stroke color:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.color = "#000000";
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.curve
Availability
Flash MX 2004.
Usage
stroke.curve
Description
Property; a string that specifies type of hatching for the stroke. This property can be set only if
the
stroke.style property is "hatched" (see stroke.style). Acceptable values are
"straight", "slight curve", "medium curve", and "very curved".
Example
The following example sets the curve property, as well as others, for a stroke having the
"hatched" style:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "hatched";
myStroke.curve = "straight";
myStroke.space = "close";
myStroke.jiggle = "wild";
myStroke.rotate = "free";
myStroke.length = "slight";
myStroke.hatchThickness = "thin";
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.dash1
Availability
Flash MX 2004.
Usage
stroke.dash1