ActionScript 2.0 Language Reference |
|
|
|
| ActionScript language elements > Operators > typeof operator | |||
typeof(expression)
Evaluates the expression and returns a string specifying whether the expression is a String, MovieClip, Object, Function, Number, or Boolean value.
Availability: ActionScript 1.0; Flash Player 5
expression : Object - A string, movie clip, button, object, or function.
String - A String representation of the type of expression. The following table shows the results of the typeof operator on each type of expression.
|
Expression Type |
Result |
|---|---|
|
String |
|
|
Movie clip |
|
|
Button |
|
|
Text field |
|
|
Number |
|
|
Boolean |
|
|
Object |
|
|
Function |
|
|
|
|
|