ColorTransform (flash.geom.ColorTransform)
441
var depth:Number = scope.getNextHighestDepth();
var mc:MovieClip = scope.createEmptyMovieClip("mc_" + depth, depth);
mc.beginFill(color);
mc.lineTo(0, height);
mc.lineTo(width, height);
mc.lineTo(width, 0);
mc.lineTo(0, 0);
return mc;
}
toString (ColorTransform.toString method)
public toString() : String
Formats and returns a string that describes all of the properties of the ColorTransform object.
Availability:
ActionScript 1.0; Flash Player 8
Returns
String
- A string that lists all of the properties of the ColorTransform object.
Example
The following example creates the ColorTransform object
colorTrans
and calls its
toSting()
method. This method results in a string with the following format:
(redMultiplier=RM, greenMultiplier=GM, blueMultiplier=BM, alphaMultiplier=AM,
redOffset=RO, greenOffset=GO, blueOffset=BO, alphaOffset=AO).
import flash.geom.ColorTransform;
var colorTrans:ColorTransform = new ColorTransform(1, 2, 3, 4, -255, -128,
128, 255);
trace(colorTrans.toString());
// (redMultiplier=1, greenMultiplier=2, blueMultiplier=3,
alphaMultiplier=4, redOffset=-255, greenOffset=-128, blueOffset=128,
alphaOffset=255)
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...