Example
The following example sets the stroke style to
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "ragged";
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.thickness
Availability
Flash MX 2004.
Usage
stroke.thickness
Description
Property; an integer that specifies the stroke size.
Example
The following example sets the
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.thickness = 2;
fl.getDocumentDOM().setCustomStroke( myStroke );
stroke.variation
Availability
Flash MX 2004.
Usage
stroke.variation
Description
Property; a string that specifies the variation of a stippled line. This property is available only if
the
stroke.style
,
variation"
"varied sizes"
Example
The following example sets the variation property to
:
stipple
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "stipple";
myStroke.dotSpace= 3;
myStroke.variation = "random sizes";
myStroke.density = "sparse";
fl.getDocumentDOM().setCustomStroke( myStroke );
282
Chapter 3: Objects
thickness
property is set to
"stipple"
, and
"random sizes"
:
"ragged"
property of the stroke to a value of
. Acceptable values are
.
"random sizes"
:
2
,
"one size"
"small
for a stroke style of
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?