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 number value corresponding to the specified Number object.

Example

The following example results in the primative value of the numSocks object.

var numSocks = new Number(2);
trace(numSocks.valueOf()); // output: 2

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00002034.html