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

Operands

expression : Object - A string, movie clip, button, object, or function.

Returns

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

string

Movie clip

movieclip

Button

object

Text field

object

Number

number

Boolean

boolean

Object

object

Function

function

See also

instanceof operator


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001308.html