
typeof Operator
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
908
|
ActionScript Language Reference
Example
trace(firstName); // Output the value of firstName
trace(myClip); // Output the path to myClip
trace(myClip._x) // Output the x coordinate of myClip
trace("hello" + " there"); // Resolve and then output the expression
See Also
Object.watch(); Chapter 17
typeof Operator
determine the datatype of an expression or identifier
Flash 5
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
unescape() Global Function
decode an escaped (URL-encoded) string
Flash 5
unescape(stringExpression)
Arguments
stringExpression
A string (or an expression that resolves to a string) that was previously
encoded via escape().
Returns
A new string that is a decoded version of string.
Description
The unescape() function returns a new string based on string. The new string contains
equivalent characters for every occurrence of hexadecimal escape sequences in
string ...