valueOf (Number.valueOf method)

public valueOf() : Number

Returns the primitive value type of the specified Number object.

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

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/00005384.html