ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy 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

    Категории