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.
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
Reference to the constructor function for a given object instance. |
|
|
|
Refers to the prototype property of the class (ActionScript 2.0) or constructor function (ActionScript 1.0) used to create the object. |
|
|
static |
A reference to the superclass of a class or function object. |
|
|
|
A reference to a user-defined function that is invoked if ActionScript code refers to an undefined property or method. |
|
Signature |
Description |
|---|---|
|
Object() |
Creates an Object object and stores a reference to the object's constructor method in the object's constructor property. |
|
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. |
|
|
Converts the specified object to a string and returns it. |
|
|
|
Removes a watchpoint that Object.watch() created. |
|
|
|
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. |