Object class

Availability

Flash Player 5 (became a native object in Flash Player 6, which improved performance significantly).

Description

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.

Method summary for the Object class

Method

Description

Object.addProperty()

Creates a getter/setter property on an object.

Object.registerClass()

Associates a movie clip symbol with an ActionScript object class.

Object.toString()

Converts the specified object to a string and returns it.

Object.unwatch()

Removes the watchpoint that Object.watch() created.

Object.valueOf()

Returns the primitive value of an object.

Object.watch()

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

Property summary for the Object class

Property

Description

Object.__proto__

A reference to the prototype property of the object's constructor function.

Constructor for the Object class

Availability

Flash Player 5.

Usage

new Object([value])

Parameters

value A number, Boolean value, or string to be converted to an object. This parameter is optional. If you do not specify value, the constructor creates a new object with no defined properties.

Returns

Nothing.

Description

Constructor; creates a new Object object.