May 2001
Intermediate to advanced
720 pages
23h 24m
English
Boolean.valueOf( ) Method — the primitive value of the Boolean object
Flash 5
booleanObject.valueOf( )
The Boolean value 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.
The valueOf( ) method returns the primitive
Boolean datum associated with a Boolean object. Although the internal
value of a Boolean object is inaccessible, we can use
valueOf( ) to convert it to its primitive
equivalent.
x = new Boolean(0); trace(x.valueOf( )); // Displays: false
Object.valueOf( )
Read now
Unlock full access