Flash CS3 Documentation |
|||
| ActionScript 2.0 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 Player 5
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
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/00001435.html