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.

Description

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

Example

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

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

See also

Color.setRGB()