Color constructor

public Color(target:Object)

Deprecated since Flash Player 8. The Color class has been deprecated in favor of the flash.geom.ColorTransform class.

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.

Availability: ActionScript 1.0; Flash Player 5

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