282
Chapter 3: Objects
Example
The following example sets the stroke style to
"ragged"
:
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
thickness
property of the stroke to a value of
2
:
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
property is set to
"stipple"
. Acceptable values are
"one size"
,
"small
variation"
,
"varied sizes"
, and
"random sizes"
.
Example
The following example sets the variation property to
"random sizes"
for a stroke style of
stipple
:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "stipple";
myStroke.dotSpace= 3;
myStroke.variation = "random sizes";
myStroke.density = "sparse";
fl.getDocumentDOM().setCustomStroke( myStroke );
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...