typeof Operator

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
typeof Operator Flash 5

determine the datatype of an expression or identifier
typeof operand;

Operands

operand

The expression or identifier whose datatype will be determined.

Returns

A string indicating the datatype of the evaluated operand as shown in Table 3-4 in Chapter 3.

Description

The typeof operator returns the datatype of operand. For example, it returns "movieclip" when used with a movie clip identifier.

See Also

instanceof; "The typeof Operator," in Chapter 5; "Determining the Type of an Existing Datum," and Table 3-4 in Chapter 3



    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