Boolean.valueOf()
Availability
Flash Player 5.
Usage
myBoolean.valueOf() : Boolean
Parameters
None.
Returns
A Boolean value.
Description
Method: returns
otherwise.
Example
The following example shows how this method works, and also shows that the primitive value
type of a new Boolean object is
var x:Boolean = new Boolean();
trace(x.valueOf());
x = (6==3+3);
trace(x.valueOf());
130
Chapter 2: ActionScript Language Reference
if the primitive value type of the specified Boolean object is true;
true
:
false
// false
// true
false
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?