MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 158

Extending flash
Table of Contents

Advertisement

document.setStroke()
Availability
Flash MX 2004.
Usage
document.setStroke( color
Parameters
The color of the stroke, in one of the following formats:
color
A string in the format
A hexadecimal number in the format
An integer that represents the decimal equivalent of a hexadecimal number
A floating-point value that specifies the new stroke size for the selection.
size
A string that specifies the new type of stroke for the selection. Acceptable
strokeType
values are
"hairline"
.
"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
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 )
158
Objects
,
,
size
strokeType )
or
"#RRGGBB"
"#RRGGBBAA"
0xRRGGBB
,
,
"solid"
"dashed"
,
,
"dotted"
"ragged"
document.setCustomStroke()
,
, and
"stipple"
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents