Flash Lite 2.x and 3.0 ActionScript Language Reference

Color constructor

public Color(target:Object)

Creates a Color object for the movie clip specified by the target_mc parameter. You can then use the methods of that Color object to change the color of the entire target movie clip.

Parameters

target:Object - The instance name of a movie clip.

Example

The following example creates a Color object called my_color for the movie clip my_mc and sets its RGB value to orange:

var my_color:Color = new Color(my_mc);
my_color.setRGB(0xff9933);