Color


Object
    |
    +-Color

public class Color
extends Object

Deprecated since Flash Player 8. The Color class has been deprecated in favor of the flash.geom.ColorTransform class.

The Color class lets you set the RGB color value and color transform of movie clips and retrieve those values once they have been set.

You must use the constructor new Color() to create a Color object before calling its methods.

Availability: ActionScript 1.0; Flash Player 5

Property summary

Properties inherited from class Object

constructor, __proto__, prototype, __resolve


Constructor summary

Signature

Description

Color(target:Object)

Class Deprecated.

Creates a Color object for the movie clip specified by the target_mc parameter.

Method summary

Modifiers

Signature

Description

 

getRGB() : Number

Class Deprecated.

Returns the R+G+B combination currently in use by the color object.

 

getTransform() : Object

Class Deprecated.

Returns the transform value set by the last Color.setTransform() call.

 

setRGB(offset:Number) : Void

Class Deprecated.

Specifies an RGB color for a Color object.

 

setTransform(transformObject:Object) : Void

Class Deprecated.

Sets color transform information for a Color object.

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch



Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00002073.html