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
document.setCustomStroke()
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
document.getCustomStroke()
This object always has the following four properties:
. Other properties can be set, depending on the value of the
breakAtCorners
property.
Property summary for the Stroke object
The following properties are available for the Stroke object:
Property
stroke.breakAtCorners
stroke.capType
stroke.color
stroke.curve
stroke.dash1
stroke.dash2
stroke.density
stroke.dotSize
stroke.dotSpace
stroke.hatchThickness
CHAPTER 37
method.
Description
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 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.
method, you can change the stroke settings
,
style
thickness
Objects
,
, and
color
stroke.style
Stroke object
399
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers