Color Constructor; Getrgb (Color.getrgb Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Color constructor

public Color(target:Object)
Deprecated since Flash Player 8. The Color class has been deprecated in favor of the
flash.geom.ColorTransform class.
Creates a Color object for the movie clip specified by the
parameter. You can then
target_mc
use the methods of that Color object to change the color of the entire target movie clip.
Availability: ActionScript 1.0; Flash Player 5
Parameters
- The instance name of a movie clip.
target:Object
Example
The following example creates a Color object called
for the movie clip
and
my_color
my_mc
sets its RGB value to orange:
var my_color:Color = new Color(my_mc);
my_color.setRGB(0xff9933);

getRGB (Color.getRGB method)

public getRGB() : Number
Deprecated since Flash Player 8. The Color class has been deprecated in favor of the
flash.geom.ColorTransform class.
Returns the R+G+B combination currently in use by the color object.
Availability: ActionScript 1.0; Flash Player 5
Returns
- A number that represents the RGB numeric value for the color specified.
Number
Color
419

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF