EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 404

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
404 Chapter 12: ActionScript Dictionary
instanceof
Availability
Flash Player 6.
Usage
object
instanceof class
Parameters
object
An ActionScript object.
class A reference to an ActionScript constructor function, such as String or Date.
Returns
If object is an instance of class, instanceof returns true; otherwise, instanceof returns
false. Also, _global instanceof Object returns false.
Description
Operator; determines whether an object belongs to a specified class. Tests whether object is an
instance of
class.
The
instanceof operator does not convert primitive types to wrapper objects. For example, the
following code returns
true:
new String("Hello") instanceof String;
Whereas the following code returns false:
"Hello" instanceof String;
See also
typeof
int
Availability
Flash Player 4. This function was deprecated in Flash 5 in favor of Math.round().
Usage
int(value)
Parameters
value
A number to be rounded to an integer.
Returns
Nothing.
Description
Function; converts a decimal number to the closest integer value.

Table of Contents

Related product manuals