beautypg.com

Document.setstrokesize(), Document.setstrokestyle() – Adobe Extending Flash Professional CS4 User Manual

Page 178

background image

156

EXTENDING FLASH CS4 PROFESSIONAL

Document object

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:

fl.getDocumentDOM().setStrokeColor("#cc00cc");

fl.getDocumentDOM().setStrokeColor(0xcc00cc);

fl.getDocumentDOM().setStrokeColor(120000);

document.setStrokeSize()

Availability
Flash MX 2004.

Usage

document.setStrokeSize(size)

Parameters

size

A floating-point value from 0.25 to 10 that specifies the stroke size. The method ignores precision greater than

two decimal places.

Returns
Nothing.

Description
Method; changes the stroke size of the selection to the specified size. For information on changing the stroke in the
Tools panel and Property inspector, see

document.setCustomStroke()

.

Example
The following example changes the stroke size for the selection to 5:

fl.getDocumentDOM().setStrokeSize(5);

document.setStrokeStyle()

Availability
Flash MX 2004.

Usage

document.setStrokeStyle(strokeType)