Method summary for the Color class
Method
Color.getRGB()
Color.getTransform()
Color.setRGB()
Color.setTransform()
Constructor for the Color class
Availability
Flash Player 5.
Usage
new Color(target)
Parameters
The instance name of a movie clip.
target
Returns
Nothing.
Description
Constructor; creates a Color object for the movie clip specified by the
then use the methods of that Color object to change the color of the entire target movie clip.
Example
The following example creates a Color object called
its RGB value:
my_color = new Color(my_mc);
my_color.setRGB(0xff9933);
Color.getRGB()
Availability
Flash Player 5.
Usage
my_color.getRGB()
Parameters
None.
Returns
A number that represents the RGB numeric value for the color specified.
332
Chapter 12: ActionScript Dictionary
Description
Returns the numeric RGB value set by the last
Returns the transform information set by the last
Sets the hexadecimal representation of the RGB value for a Color object.
Sets the color transform for a Color object.
setRGB()
setTransform()
target
for the movie clip
my_color
call.
call.
parameter. You can
and sets
my_mc
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers