Chapter 38: stroke object, Stroke object – Adobe Extending Flash Professional CS5 User Manual
Page 418
396
Last updated 5/2/2011
Chapter 38: Stroke object
Availability
Flash MX 2004.
Description
The Stroke object contains all the settings for a stroke, including the custom settings. This object represents the
information contained in the Property inspector. Using the Stroke object together with the
method, you can change the stroke settings for the Tools panel, the Property
inspector, and the current selection. You can also get the stroke settings of the Tools panel and Property inspector, or
of the current selection, by using the
method.
This object always has the following four properties:
style
,
thickness
,
color
, and
breakAtCorners
. (In Flash CS3,
the
breakAtCorners
property was deprecated in favor of
.) Other properties can be set, depending
on the value of the
Property summary
The following properties are available for the Stroke object:
Property
Description
A Boolean value, same as the Sharp Corners setting in the custom Stroke Style dialog box.
A string that specifies the type of cap for the stroke.
A string, hexadecimal value, or integer that represents the stroke color.
A string that specifies the type of hatching for the stroke.
An integer that specifies the lengths of the solid part of a dashed line.
An integer that specifies the lengths of the blank part of a dashed line.
A string that specifies the density of a stippled line.
A string that specifies the dot size of a stippled line.
An integer that specifies the spacing between dots in a dotted line.
A string that specifies the thickness of a hatch line.
A string that specifies the jiggle property of a hatched line.
A string that specifies the type of join for the stroke.
A string that specifies the length of a hatch line.
A float value that specifies the angle above which the tip of the miter will be truncated
by a segment.
A string that specifies the pattern of a ragged line.
A string that specifies the rotation of a hatch line.
A string that specifies the type of scale to be applied to the stroke.
A
that represents the fill settings of the stroke.
A string that specifies the spacing of a hatched line.