Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > Boolean > Boolean constructor | |||
public Boolean([value:Object])
Creates a Boolean object. If you omit the value parameter, the Boolean object is initialized with a value of false. If you specify a value for the value parameter, the method evaluates it and returns the result as a Boolean value according to the rules in the global Boolean() function.
Availability: ActionScript 1.0; Flash Lite 2.0
value:Object [optional] - Any expression. The default value is false.
The following code creates a new empty Boolean object called myBoolean:
var myBoolean:Boolean = new Boolean();