Colortransform (Flash.geom.colortransform) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

ColorTransform
(flash.geom.ColorTransform)
Object
|
+-flash.geom.ColorTransform
public class ColorTransform
extends Object
The ColorTransform class lets you mathematically adjust all of the color values in a movie
clip. The color adjustment function or color transformation can be applied to all four channels:
red, green, blue, and alpha transparency.
When a ColorTransform object is applied to a movie clip, a new value for each color channel
is calculated like this:
New red value = (old red value *
New green value = (old green value *
New blue value = (old blue value *
New alpha value = (old alpha value *
If any of the color channel values is greater than 255 after the calculation, it is set to 255. If it
is less than 0, it is set to 0.
You must use the
new ColorTransform()
before you can call the methods of the ColorTransform object.
Color transformations do not apply to the background color of a movie clip (such as a loaded
SWF object). They apply only to graphics and symbols that are attached to the movie clip.
Availability: ActionScript 1.0; Flash Player 8
See also
colorTransform (Transform.colorTransform property)
428
ActionScript classes
+
redMultiplier)
redOffset
greenMultiplier)
blueMultiplier)
alphaMultiplier)
constructor to create a ColorTransform object
+
greenOffset
+
blueOffset
+
alphaOffset

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF