MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 259

Actionscript language reference
Table of Contents

Advertisement

Usage
myBoolean.toString() : String
Parameters
None.
Returns
A string;
"true"
Description
Method; returns the string representation (
Example
This example creates a variable of type Boolean and uses
string for use in the trace statement:
var myBool:Boolean = true;
trace("The value of the Boolean myBool is: " + myBool.toString());
myBool = false;
trace("The value of the Boolean myBool is: " + myBool.toString());
Boolean.valueOf()
Availability
Flash Player 5.
Usage
myBoolean.valueOf() : Boolean
Parameters
None.
Returns
A Boolean value.
Description
Method: returns
otherwise.
Example
The following example shows how this method works, and also shows that the primitive value
type of a new Boolean object is
var x:Boolean = new Boolean();
trace(x.valueOf());
x = (6==3+3);
trace(x.valueOf());
or
.
"false"
if the primitive value type of the specified Boolean object is true;
true
:
false
// false
// true
or
) of the Boolean object.
"true"
"false"
toString()
to convert the value to a
false
Boolean.valueOf()
259

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents