MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 333

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Description
Method; returns the numeric values set by the last
Example
The following code retrieves the RGB value for the Color object
hexadecimal string, and assigns it to the
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
See also
Color.setTransform()
Color.setRGB()
Availability
Flash Player 5.
Usage
my_color.setRGB(0xRRGGBB)
Parameters
The hexadecimal or RGB color to be set.
0xRRGGBB
hexadecimal digits specifying the offset of each color component. The
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()
variable.
value
settings.
call.
setRGB()
my_color
Color.setTransform()
,
, and
each consist of two
RR
GG
BB
0x
, converts it to a
call.
tells the ActionScript
Color.setRGB()
333

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents