
407
EXTENDING FLASH PROFESSIONAL
Stroke object
Last updated 5/2/2011
• If value is "hatched", there are six additional properties: hatchThickness, space, jiggle, rotate, curve, and
length.
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 (see stroke.style). 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:
Komentáře k této Příručce