Flash CS3 Documentation |
|||
| 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.
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();
Flash CS3