EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 290

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
290 Chapter 12: ActionScript Dictionary
Method summary for the Boolean class
Constructor for the Boolean class
Availability
Flash Player 5.
Usage
new Boolean([x])
Parameters
x
Any expression. This parameter is optional.
Returns
Nothing.
Description
Constructor; creates a Boolean object. If you omit the x parameter, the Boolean object is
initialized with a value of
false. If you specify a value for the x parameter, the method evaluates
it and returns the result as a Boolean value according to the rules in the Boolean() function.
Example
The following code creates a new empty Boolean object called myBoolean.
myBoolean = new Boolean();
Boolean.toString()
Availability
Flash Player 5.
Usage
myBoolean.toString()
Parameters
None.
Returns
A Boolean value.
Description
Method; returns the string representation ("true” or "false”) of the Boolean object.
Method Description
Boolean.toString() Returns the string representation ("true" or "false") of the Boolean object.
Boolean.valueOf() Returns the primitive value type of the specified Boolean object.

Table of Contents

Related product manuals