Boolean.valueOf( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Boolean.valueOf( ) Method Flash 5

the primitive value of the Boolean object
booleanObject.valueOf()

Returns

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.

Description

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.

Example

x = new Boolean(0); trace(x.valueOf());  // Displays: false

See Also

Object.valueOf( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net