MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 422

Extending flash
Table of Contents

Advertisement

Example
The following example changes the
of the first layer in the timeline to
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
fl.getDocumentDOM().selection[0].colorRedAmount = 255;
symbolInstance.colorRedPercent
Availability
Flash MX 2004.
Usage
symbolInstance.colorRedPercent
Description
Property; part of the color transformation for the instance. This property is equivalent to
using the Color > Advanced setting in the instance Property inspector (the percentage
controls on the left of the dialog box). This value sets the red values to a specified percentage.
Allowable values are from -100 to 100.
Example
The following example sets the
fl.getDocumentDOM().selection[0].colorRedPercent = 10;
422
Objects
property of the first element in the first frame
colorMode
:
"alpha"
of the selected symbol instance to 255:
colorRedAmount
of the selected symbol instance to 10:
colorRedPercent

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents