Color.setRGB() 333
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()
Color.getTransform()
Availability
Flash Player 5.
Usage
my_color.getTransform()
Parameters
None.
Returns
An object whose properties contain the current offset and percentage values for the
specified color.
Description
Method; returns the transform value set by the last Color.setTransform() call.
See also
Color.setTransform()
Color.setRGB()
Availability
Flash Player 5.
Usage
my_color.setRGB(0xRRGGBB)
Parameters
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. The 0x tells the ActionScript
compiler that the number is a hexadecimal value.
Description
Method; specifies an RGB color for a Color object. Calling this method overrides any previous
Color.setTransform() settings.