User Guide

342 ActionScript classes
Method summary
Methods inherited from class Object
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 Player 5
Parameters
value:Object [optional] - Any expression. The default value is false.
Example
The following code creates a new empty Boolean object called
myBoolean:
var myBoolean:Boolean = new Boolean();
Modifiers Signature Description
toString() : String Returns the string representation ("true" or
"false") of the Boolean object.
valueOf() : Boolean Returns true if the primitive value type of the
specified Boolean object is true; false otherwise.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)