Isprototypeof (Object.isprototypeof Method); Object Constructor - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

var myObj:Object = new Object();
myObj.prop1 = "hello";
trace(myObj.isPropertyEnumerable("prop1")); // Output: true
var myArray = new Array();
trace(myArray.isPropertyEnumerable("length")); // Output: false
See also
for..in statement

isPrototypeOf (Object.isPrototypeOf method)

public isPrototypeOf(theClass:Object) : Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object
specified as an argument. This method returns
if the object is in the prototype chain of
true
the object specified by the
parameter. The method returns
not only if the
theClass
false
target object is absent from the prototype chain of the
object, but also if the
theClass
argument is not an object.
theClass
Availability: ActionScript 1.0; Flash Player 6
Parameters
-
theClass:Object
Returns
- A Boolean value:
if the object is in the prototype chain of the object specified
Boolean
true
by the
parameter;
otherwise.
theClass
false

Object constructor

public Object()
Creates an Object object and stores a reference to the object's constructor method in the
object's
property.
constructor
Availability: ActionScript 1.0; Flash Player 5
Example
The following example creates a generic object named myObject:
var myObject:Object = new Object();
Object
997

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF