03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

var numSocks = new Number(2);<br />

trace(numSocks.valueOf()); // output: 2<br />

Object<br />

Object<br />

public class Object<br />

The Object class is at the root of the <strong>ActionScript</strong> class hierarchy. This class contains a small<br />

subset of the features provided by the JavaScript Object class.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - (became a native object in Flash Player 6,<br />

which improved performance significantly).<br />

Property summary<br />

Modifiers Property Description<br />

Constructor summary<br />

1004 <strong>ActionScript</strong> classes<br />

constructor:Object <strong>Reference</strong> to the constructor function for a given<br />

object instance.<br />

__proto__:Object Refers to the prototype property of the class<br />

(<strong>ActionScript</strong> <strong>2.0</strong>) or constructor function<br />

(<strong>ActionScript</strong> 1.0) used to create the object.<br />

static prototype:Object A reference to the superclass of a class or function<br />

object.<br />

Signature Description<br />

__resolve:Object A reference to a user-defined function that is<br />

invoked if <strong>ActionScript</strong> code refers to an undefined<br />

property or method.<br />

Object() Creates an Object object <strong>and</strong> stores a reference to the object's<br />

constructor method in the object's constructor property.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!