Number.valueOf()
Availability
Flash Player 5.
Usage
myNumber.valueOf() : Number
Parameters
None.
Returns
Number.
Description
Method; returns the primitive value type of the specified Number object.
Example
The following example results in the primative value of the
var numSocks = new Number(2);
trace(numSocks.valueOf()); // output: 2
658
Chapter 2: ActionScript Language Reference
object.
numSocks
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?