![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 158](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049158.webp)
158
Objects
document.setStroke()
Availability
Flash MX 2004.
Usage
document.setStroke(
color
,
size
,
strokeType
)
Parameters
color
The color of the stroke, in one of the following formats:
■
A string in the format
"#RRGGBB"
or
"#RRGGBBAA"
■
A hexadecimal number in the format
0xRRGGBB
■
An integer that represents the decimal equivalent of a hexadecimal number
size
A floating-point value that specifies the new stroke size for the selection.
strokeType
A string that specifies the new type of stroke for the selection. Acceptable
values are
"hairline"
,
"solid"
,
"dashed"
,
"dotted"
,
"ragged"
,
"stipple"
, and
"hatched"
.
Returns
Nothing.
Description
Method; sets the color, width, and style of the selected strokes. For information on changing
the stroke in the Tools panel and Property inspector, see
document.setCustomStroke()
.
Example
The following example sets the color of the stroke to red, the size to 3.25, and the type to
dashed:
fl.getDocumentDOM().setStroke("#ff0000", 3.25, "dashed");
document.setStrokeColor()
Availability
Flash MX 2004.
Usage
document.setStrokeColor(
color
)
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...