User Guide
Object 997
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
true if the object is in the prototype chain of
the object specified by the
theClass parameter. The method returns false not only if the
target object is absent from the prototype chain of the
theClass object, but also if the
theClass argument is not an object.
Availability: ActionScript 1.0; Flash Player 6
Parameters
theClass:Object -
Returns
Boolean - A Boolean value: true if the object is in the prototype chain of the object specified
by the
theClass parameter; false otherwise.
Object constructor
public Object()
Creates an Object object and stores a reference to the object's constructor method in the
object's
constructor property.
Availability: ActionScript 1.0; Flash Player 5
Example
The following example creates a generic object named myObject:
var myObject:Object = new Object();