MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 159

Extending flash
Table of Contents

Advertisement

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
Returns
Nothing.
Description
Method; changes the stroke color of the selection to the specified color. For information on
changing the stroke in the Tools panel 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 )
Parameters
A floating-point value from 0.25 to 10 that specifies the stroke size. The method
size
ignores precision greater than two decimal places.
Returns
Nothing.
or
"#RRGGBB"
"#RRGGBBAA"
0xRRGGBB
.
Document object
159

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents