ColorTransform (flash.geom.ColorTransform)
435
greenOffset
:Number
[optional] - The offset for the green color channel value (-255 to 255).
The default value is 0.
blueOffset
:Number
[optional] - The offset for the blue color channel value (-255 to 255).
The default value is 0.
alphaOffset
:Number
[optional] - The offset for alpha transparency channel value (-255 to
255). The default value is 0.
Example
The following example creates a ColorTransform object called
greenTransform
:
var greenTransform:flash.geom.ColorTransform = new
flash.geom.ColorTransform(0.5, 1.0, 0.5, 0.5, 10, 10, 10, 0);
The following example creates the ColorTransfrom object
colorTrans_1
with the default
constructor values. The fact that
colorTrans_1
and
colorTrans_2
trace the same values is
evidence that the default constructor values are used.
import flash.geom.ColorTransform;
var colorTrans_1:ColorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0,
0);
trace(colorTrans_1);
//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1,
redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
var colorTrans_2:ColorTransform = new ColorTransform();
trace(colorTrans_2);
//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1,
redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
concat (ColorTransform.concat method)
public concat(second:ColorTransform) : Void
Applies a second, additive color transformation to the movie clip. The second set of
transformation parameters is applied to the colors of the movie clip after the first
transformation has been completed.
Availability:
ActionScript 1.0; Flash Player 8
Parameters
second
:flash.geom.ColorTransform
- A second ColorTransform object to be combined
with the current ColorTransform object.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...