Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Number > valueOf (Number.valueOf method) | |||
public valueOf() : Number
Returns the primitive value type of the specified Number object.
Availability: ActionScript 1.0; Flash Player 5
Number - A number value corresponding to the specified Number object.
The following example results in the primative value of the numSocks object.
var numSocks = new Number(2); trace(numSocks.valueOf()); // output: 2
Flash CS3