ColorShortcuts

This class creates special properties used when controlling the color of certain display classes, such as MovieClip or DisplayObject. They provide an easier way to apply certain color transformations that require more complex math and are not directly acessible.

Usage

First, import then initialize the class.

import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();

Then, you can use any of the special properties listed below on a normal tweening. See the introduction to special properties for more information.

Property name (AS2/AS3) Description Target type Type Compatibility Notes Usual values Related reference
Channel color transformation properties
Please notice: these properties are available when using the legacy AS2 (Flash 7, FlashLite 2, and FlashLite 3) version of Tweener, and work in the same way. However, they use the old color transformation object to achieve the desired results.
_color_redMultiplier A decimal value that is multiplied with the red channel value. The original value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from 0 to 1. ColorTransform.redMultiplier
_color_redOffset A number from -255 to 255 that is added to the red channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from -255 to 255. ColorTransform.redOffset
_color_greenMultiplier A decimal value that is multiplied with the green channel value. The original value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from 0 to 1. ColorTransform.greenMultiplier
_color_greenOffset A number from -255 to 255 that is added to the green channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from -255 to 255. ColorTransform.greenOffset
_color_blueMultiplier A decimal value that is multiplied with the blue channel value. The original value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from 0 to 1. ColorTransform.blueMultiplier
_color_blueOffset A number from -255 to 255 that is added to the blue channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from -255 to 255. ColorTransform.blueOffset
_color_alphaMultiplier A decimal value that is multiplied with the alpha channel value. The original value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from 0 to 1. ColorTransform.alphaMultiplier
_color_alphaOffset A number from -255 to 255 that is added to the alpha channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number Emulated in Flash 7/FL2/FL3 A number from -255 to 255. ColorTransform.alphaOffset
Complete color transformation properties
_color A color that you want to set the object to. This tints the object to this new color, maintaining nothing of the original object's content colors. AS2: MovieClip
AS3: DisplayObject
Number   Any color formatted as a number (for example, 0xffdd33).  
_colorTransform A color transformation object declaring how each specific color channel should be changed. Tweener will create a new tweening for each property found on the supplied object. This is a powerful way to change the color of objects, but it can't do channel mixing; using the ColorMatrixFilter or the related special properties for that. AS2: MovieClip
AS3: DisplayObject
ColorTransform   Any ColorTransform object that specifies a complex color transformation. ColorTransform
Color adjustment properties
_brightness The brightness of an object. This value is analogous to the brightness value used in Photoshop, or Flash's new "Adjust color" filter, but using a range of -1 to 1 instead of -100 to 100. The standard value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -1 (dark) to 0 (normal) to 1 (bright). A value of 2.55 specifies total exposure, and is complete white.  
_tintBrightness The brightness of an object, as set by tinting it with a percentage of black or while. This is analogous to Flash's old "Brightness" color option on the object property panel, but using a range of 0 to 1 instead of 0 to 100. The standard value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -1 (black) to 0 (normal) to 1 (white).  
_contrast The contrast of a display object. This property aims to provide a more linear progression and as such is not analogous either to Photoshop's or Flash's own contrast settings; use higher values to get stronger results. The standard value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -1 (grey) to 0 (normal) to 1 (high contrast).  
_hue The hue offset of a display object, in degrees. This is used to cycle through different color tones. This value is analogous to the hue value used in Photoshop, or Flash's new "Adjust color" filter. The standard value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 A number from -180 to 0 (normal) to 180.  
_saturation The absolute saturation of a display object, as a multiplier. This saturation property takes luminosity into account for an stardard RGB screen, so it doesn't simply mix the RGB channels. It also aims to provide a more linear progression and as such is not analogous either to Photoshop's or Flash's own saturation settings; use higher values to get stronger results. The standard value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 A number from 0 (complete grayscale) to 1 (normal color) to 2 (highly saturated).  
_dumbSaturation The absolute saturation of a display object, as a multiplier. This saturation property simply even outs the values of the RGB channels and as such produces a grayscale image that has luminosity values different from the original colored version; using the _saturation property instead is recommended. The standard value for display objects is 1. AS2: MovieClip
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 A number from 0 (complete grayscale) to 1 (normal color) to 2 (highly saturated).  
Old channel color transformation properties
Warning: these special properties have been deprecated. They still work, but using them should be avoided.
_color_ra Percent of the original red channel that should be used. The original value for display objects is 100. AS2: MovieClip
AS3: DisplayObject
Number   A number from 0 to 100.  
_color_rb A number from -255 to 255 that is added to the red channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -255 to 255.  
_color_ga Percent of the original green channel that should be used. The original value for display objects is 100. AS2: MovieClip
AS3: DisplayObject
Number   A number from 0 to 100.  
_color_gb A number from -255 to 255 that is added to the green channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -255 to 255.  
_color_ba Percent of the original blue channel that should be used. The original value for display objects is 100. AS2: MovieClip
AS3: DisplayObject
Number   A number from 0 to 100.  
_color_bb A number from -255 to 255 that is added to the blue channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -255 to 255.  
_color_aa Percent of the original alpha channel that should be used. The original value for display objects is 100. AS2: MovieClip
AS3: DisplayObject
Number   A number from 0 to 100.  
_color_ab A number from -255 to 255 that is added to the alpha channel value after it has been multiplied by the redMultiplier value. The original value for display objects is 0. AS2: MovieClip
AS3: DisplayObject
Number   A number from -255 to 255.