User Guide
130 Chapter 2: ActionScript Language Reference
Boolean.valueOf()
Availability
Flash Player 5.
Usage
myBoolean.valueOf() : Boolean
Parameters
None.
Returns
A Boolean value.
Description
Method: returns true if the primitive value type of the specified Boolean object is true; false
otherwise.
Example
The following example shows how this method works, and also shows that the primitive value
type of a new Boolean object is
false:
var x:Boolean = new Boolean();
trace(x.valueOf()); // false
x = (6==3+3);
trace(x.valueOf()); // true