Boolean.valueOf( ) Method | Flash 5 |
the primitive value of the Boolean object |
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 it is stored internally thereafter.
The valueOf( ) method returns the primitive Boolean datum associated with a Boolean object. The valueOf( ) method returns the value argument with which the constructor was called, converted to its primitive Boolean equivalent.
x = new Boolean(0); trace(x.valueOf()); // Displays: false