Flash Lite 2.x and 3.0 ActionScript Language Reference

Color

Object
    |
    +-Color

public class Color
extends Object

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.

Property summary

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)

Constructor summary

Signature

Description

Color(target:Object)

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

Method summary

Modifiers

Signature

Description

 

getRGB() : Number

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

 

getTransform() : Object

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

 

setRGB(offset:Number) : Void

Specifies an RGB color for a Color object.

 

setTransform(transformObject:Object) : Void

Sets color transform information for a Color object.

Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)