document.setStrokeColor()

Availability

Flash MX 2004.

Usage

document.setStrokeColor(color)

Parameters

color The color of the stroke, in one of the following formats:

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);