A-C > Color.getRGB

 

Color.getRGB

color.getrgb, getrgb, color

Availability

Flash Player 5.

Usage

myColor.getRGB()

Parameters

None.

Returns

A number that represents the RGB numeric value for the color specified.

Description

Method; returns the numeric values set by the last setRGB call.

Example

The following code retrieves the RGB value for the Color object instance myColor, converts it to a hexadecimal string, and assigns it to the value variable.

value = myColor.getRGB().toString(16);

See also

Color.setRGB