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
- A string.
Number
Example
The following example results in the primative value of the
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
constructor:Object
__proto__:Object
static
prototype:Object
__resolve:Object
990
ActionScript classes
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.
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.
object.
numSocks
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?