MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 404

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents