User Guide

990 ActionScript classes
valueOf (Number.valueOf method)
public valueOf() : Number
Returns the primitive value type of the specified Number object.
Availability: ActionScript 1.0; Flash Player 5
Returns
Number - A string.
Example
The following example results in the primative value of the
numSocks object.
var numSocks = new Number(2);
trace(numSocks.valueOf()); // output: 2
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: ActionScript 1.0; Flash Player 5 - (became a native object in Flash Player 6,
which improved performance significantly).
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.