MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 258

Actionscript language reference
Table of Contents

Advertisement

Boolean class
Availability
Flash Player 5.
Description
The Boolean class is a wrapper object with the same functionality as the standard JavaScript
Boolean object. Use the Boolean class to retrieve the primitive data type or string representation
of a Boolean object.
You must use the constructor
its methods.
Method summary for the Boolean class
Method
Boolean.toString()
Boolean.valueOf()
Constructor for the Boolean class
Availability
Flash Player 5.
Usage
new Boolean([x]) : Boolean
Parameters
Any expression. This parameter is optional.
x
Returns
A reference to a Boolean object.
Description
Constructor; creates a Boolean object. If you omit the
initialized with a value of
it and returns the result as a Boolean value according to the rules in the
Example
The following code creates a new empty Boolean object called
var myBoolean:Boolean = new Boolean();
Boolean.toString()
Availability
Flash Player 5.
258
Chapter 6: ActionScript Core Classes
new Boolean()
Description
Returns the string representation
Returns the primitive value type of the specified Boolean object.
. If you specify a value for the
false
ActionScript Core Classes
to create a Boolean object before calling
or
("true"
"false")
parameter, the Boolean object is
x
parameter, the method evaluates
x
myBoolean
CHAPTER 6
of the Boolean object.
function.
Boolean()
:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents