274
Chapter 3: Objects
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 Stroke Properties inspector. Using the Stroke object
together with the
document.setCustomStroke()
method, you can change the stroke settings for
the toolbar, the Properties Inspector, and the current selection. You can also get the stroke settings
of the toolbar and Properties Inspector, or of the current selection, by using the
document.getCustomStroke()
method.
This object always has the following four properties:
style
,
thickness
,
color
, and
breakAtCorners
. Other properties can be set, depending on the value of the
style
property.
Property summary for the Stroke object
The following properties are available for the Stroke object:
Property
Description
stroke.breakAtCorners
Same as the Sharp Corners setting in the custom Stroke Style dialog box.
stroke.color
A color string in hexadecimal (#rrggbb) format or an integer containing the
value.
stroke.curve
A string that specifies type of hatching for the stroke.
stroke.dash1
An integer that specifies the lengths of the solid part of a dashed line.
stroke.dash2
An integer that specifies the lengths of the blank part of a dashed line.
stroke.density
A string that specifies the density of a stippled line.
stroke.dotSize
A string that specifies the dot size of a stippled line.
stroke.dotSpace
An integer that specifies the spacing between dots in a dotted line.
stroke.hatchThickness
A string that specifies the thickness of a hatch line.
stroke.jiggle
A string that specifies the jiggle property of a hatched line.
stroke.length
A string that specifies the length of a hatch line.
stroke.pattern
A string that specifies the pattern of a ragged line.
stroke.rotate
A string that specifies the rotation of a hatch line.
stroke.space
A string that specifies the spacing of a hatched line.
stroke.style
A string that describes the stroke style.
stroke.thickness
An integer that specifies the stroke size.
stroke.variation
A string that specifies the variation of a stippled line.
CHAPTER 3
Objects
Содержание 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 ...