A-C > Color.setRGB

Color.setRGB

Syntax

myColor.setRGB(0xRRGGBB);

Arguments

0xRRGGBB The hexadecimal or RGB color to be set. RR, GG, and BB each consist of two hexadecimal digits specifying the offset of each color component.

Description

Method; specifies an RGB color for the Color object. Calling this method overrides any previous settings by the setTransform method.

Player

Flash 5 or later.

Example

The following example sets the RGB color value for the movie clip myMovie:

myColor = new Color(myMovie);
myColor.setRGB(0x993366);

See also

Color.setTransform