Object

Object 
 
public class Object

The Object class is at the root of the ActionScript class hierarchy. This class contains a small subset of the features provided by the JavaScript Object class.

Availability

Flash Lite 2.0

Property summary

Modifiers

Property

Description

 

constructor:Object

Reference to the constructor function for a given object instance.

 

__proto__:Object

Refers to the prototype property of the class (ActionScript 2.0) or constructor function (ActionScript 1.0) used to create the object.

static

prototype:Object

A reference to the superclass of a class or function object.

 

__resolve:Object

A reference to a user-defined function that is invoked if ActionScript code refers to an undefined property or method.

Constructor summary

Signature

Description

Object()

Creates an Object object and stores a reference to the object's constructor method in the object's constructor property.

Method summary

Modifiers

Signature

Description

 

addProperty(name:String, getter:Function, setter:Function) : Boolean

Creates a getter/setter property.

 

hasOwnProperty(name:String) : Boolean

Indicates whether an object has a specified property defined.

 

isPropertyEnumerable(name:String) : Boolean

Indicates whether the specified property exists and is enumerable.

 

isPrototypeOf(theClass:Object) : Boolean

Indicates whether an instance of the Object class is in the prototype chain of the object specified as an argument.

static

registerClass(name:String, theClass:Function) : Boolean

Associates a movie clip symbol with an ActionScript object class.

 

toString() : String

Converts the specified object to a string and returns it.

 

unwatch(name:String) : Boolean

Removes a watchpoint that Object.watch() created.

 

valueOf() : Object

Returns the primitive value of the specified object.

 

watch(name:String, callback:Function, [userData:Object]) : Boolean

Registers an event handler to be invoked when a specified property of an ActionScript object changes.