Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > ColorTransform (flash.geom.ColorTransform) > 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
String - A string that lists all of the properties of the ColorTransform object.
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 CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001547.html