toString (Boolean.toString method)

public toString() : String

Returns the string representation ("true" or "false") of the Boolean object.

Availability: ActionScript 1.0; Flash Player 5

Returns

String - A string; "true" or "false".

Example

This example creates a variable of type Boolean and then uses toString() to convert the value to a string for use in an array of strings:

var myStringArray:Array = new Array("yes", "could be");
var myBool:Boolean = 0;
myBool.toString();
myStringArray.push(myBool);

Flash CS3