Boolean Constructor - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
toString() : String
valueOf() : Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

Boolean constructor

public Boolean([value:Object])
Creates a Boolean object. If you omit the
with a value of
false
and returns the result as a Boolean value according to the rules in the global
function.
Availability: ActionScript 1.0; Flash Player 5
Parameters
[optional] - Any expression. The default value is
value:Object
Example
The following code creates a new empty Boolean object called
var myBoolean:Boolean = new Boolean();
342
ActionScript classes
Description
Returns the string representation ("true" or
"false") of the Boolean object.
Returns true if the primitive value type of the
specified Boolean object is true; false otherwise.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
value
. If you specify a value for the
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
parameter, the Boolean object is initialized
parameter, the method evaluates it
value
false
myBoolean
valueOf
Boolean()
.
:

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF