Name
Boolean.toString( ) Method — the value of the Boolean object converted to a string
Availability
Flash 5
Synopsis
booleanObject.toString( )
Returns
The string “true” if the primitive value of
booleanObject
is true
;
“false” if the primitive value of
booleanObject
is false
.
The value of the Boolean object is specified when the object is
constructed and stored internally thereafter. Although the internal
value of a Boolean object is inaccessible, we can use
toString( )
to convert it to its string
equivalent.
Description
The toString( )
method retrieves the primitive
value of a Boolean object, converts that value to a string, and
returns the resulting string.
Example
x = new Boolean(true); trace(x.toString( )); // Displays: "true"
See Also
Object.toString( )
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.