EasyManua.ls Logo

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

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Color 419
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
target_mc parameter. You can then
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
target:Object - The instance name of a movie clip.
Example
The following example creates a Color object called
my_color for the movie clip my_mc and
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
Number - A number that represents the RGB numeric value for the color specified.

Table of Contents

Related product manuals