Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > Boolean > valueOf (Boolean.valueOf method) | |||
public valueOf() : Boolean
Returns true if the primitive value type of the specified Boolean object is true; false otherwise.
Availability: ActionScript 1.0; Flash Lite 2.0
Boolean - A Boolean value.
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