May 2001
Intermediate to advanced
720 pages
23h 24m
English
Object.constructor Property — a reference to the class constructor function used to create the object
Flash 5
someObject.constructor
Read/write (overwriting an object’s
constructor property is not recommended as it
alters the natural structure of class inheritance).
The constructor property stores a reference to the
constructor function that was used to create
someObject. For example, the
constructor property of a
Date object is the Date
constructor function:
now = new Date( ); now.constructor == Date; // Yields true
Read now
Unlock full access