03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Constructor summary<br />

Signature Description<br />

Boolean([value:Obje Creates a Boolean object.<br />

ct])<br />

Method summary<br />

Modifiers Signature Description<br />

Methods inherited from class Object<br />

Boolean constructor<br />

public Boolean([value:Object])<br />

Creates a Boolean object. If you omit the value parameter, the Boolean object is initialized<br />

with a value of false. If you specify a value for the value parameter, the method evaluates it<br />

<strong>and</strong> returns the result as a Boolean value according to the rules in the global Boolean()<br />

function.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Parameters<br />

value:Object [optional] - Any expression. The default value is false.<br />

Example<br />

The following code creates a new empty Boolean object called myBoolean:<br />

var myBoolean:Boolean = new Boolean();<br />

350 <strong>ActionScript</strong> classes<br />

toString() : String Returns the string representation ("true" or "false")<br />

of the Boolean object.<br />

valueOf() : Boolean Returns true if the primitive value type of the specified<br />

Boolean object is true; false otherwise.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!