8

Color Object

The Color object lets you set the RGB color value and color transform of movie clips and retrieve those values once they have been set. The Color object is a special kind of data object used to control the color of MovieClip instances. The Color object works with RGB values, which are also commonly used in web pages to set the color of various elements. RGB stands for Red, Green, Blue and an RGB value is used to describe a particular mix of those three colors onscreen. Flash can understand and display millions of different RGB combinations.

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

Creating a New Object

As all with ActionScript objects, the Color objects require ...

Get Understanding Flash MX 2004 ActionScript 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.