User Guide
Stroke object 409
Example
The following example sets the rotate property to "free" for a style stroke of hatched:
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";
stroke.scaleType
Availability
Flash 8.
Usage
stroke.scaleType
Description
Property; a string that specifies the type of scale to be applied to the stroke. Acceptable values
are
"normal", "horizontal", "vertical", and "none".
Example
The following example sets the scale type of the stroke to "horizontal":
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.scaleType = "horizontal";
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.shapeFill
Availability
Flash 8.
Usage
stroke.shapeFill
Description
Property; a Fill object that represents the fill settings of the stroke.
Example
The following example specifies fill settings and then applies them to the stroke: