O'Reilly logo

Understanding Flash MX 2004 ActionScript 2 by Alex Michael

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required