beautypg.com

Symbolinstance.colormode, Symbolinstance.colorredamount, Symbolinstance.colorredpercent – Adobe Extending Flash Professional CS5 User Manual

Page 444

background image

422

EXTENDING FLASH PROFESSIONAL

SymbolInstance object

Last updated 5/2/2011

Example
The following example sets the

colorGreenPercent

of the selected symbol instance to 70:

fl.getDocumentDOM().selection[0].colorGreenPercent = 70;

symbolInstance.colorMode

Availability
Flash MX 2004.

Usage

symbolInstance.colorMode

Description
Property; a string that specifies the color mode as identified in the symbol Property inspector Color pop-up menu.
Acceptable values are

"none"

,

"brightness"

,

"tint"

,

"alpha"

, and

"advanced"

.

Example
The following example changes the

colorMode

property of the first element in the first frame of the first layer in the

timeline to

alpha

:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].colorMode = "alpha";

symbolInstance.colorRedAmount

Availability
Flash MX 2004.

Usage

symbolInstance.colorRedAmount

Description
Property; an integer that is part of the color transformation for the instance. This property is equivalent to using the
Color > Advanced setting in the instance Property inspector. Allowable values are from -255 to 255.

Example
The following example sets the

colorRedAmount

of the selected symbol instance to 255:

fl.getDocumentDOM().selection[0].colorRedAmount = 255;

symbolInstance.colorRedPercent

Availability
Flash MX 2004.

This manual is related to the following products: