122
Chapter 3: Objects
Returns
Nothing.
Description
Method; sets the color, width, and style of the selected strokes. For information on changing the
stroke in the toolbar 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
)
Parameters
color
A color string in hexadecimal #rrggbb format (where
r
is red,
g
is green, and
b
is blue), a
hexidecimal color value (such as, 0xff0000), or an integer color value.
Returns
Nothing.
Description
Method; changes the stroke color of the selection to the specified color. For information on
changing the stroke in the toolbar and Property inspector, see
document.setCustomStroke()
.
Example
The three statements in the following example set the stroke color using each of the different
formats for specifying color:
flash.getDocumentDOM().setStrokeColor("#cc00cc");
flash.getDocumentDOM().setStrokeColor(0xcc00cc);
flash.getDocumentDOM().setStrokeColor(120000);
document.setStrokeSize()
Availability
Flash MX 2004.
Usage
document.setStrokeSize(
size
)
Содержание 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 ...