User Guide

Stroke object 403
Description
Property; an integer that specifies the lengths of the solid parts of a dashed line. This property
is available only if the
stroke.style property is set to "dashed" (see stroke.style).
Example
The following example sets the dash1 and dash2 properties for a stroke style of dashed:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "dashed";
myStroke.dash1 = 1;
myStroke.dash2 = 2;
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.dash2
Availability
Flash MX 2004.
Usage
stroke.dash2
Description
Property; an integer that specifies the lengths of the blank parts of a dashed line. This
property is available only if the
stroke.style property is set to "dashed" (see
stroke.style).
Example
See stroke.dash1.
stroke.density
Availability
Flash MX 2004.
Usage
stroke.density
Description
Property; a string that specifies the density of a stippled line. This property is available only if
the
stroke.style property is set to "stipple" (see stroke.style). Acceptable values are
"very dense", "dense", "sparse", and "very sparse".