Constructor for the Number class
Availability
Flash Player 5.
Usage
new Number(value:Number) : Number
Parameters
The numeric value of the Number object being created or a value to be converted to
value
a number. The default value is 0 if
Returns
A reference to a Number object.
Description
Constructor; creates a new Number object. You must use the Number constructor when using
Number.toString()
properties of a Number object. The
A Number object is not the same as the
primitive value.
Example
The following code constructs new Number objects:
var n1:Number = new Number(3.4);
var n2:Number = new Number(-10);
See also
Number()
value
and Number.valueOf(). You do not use a constructor when using the
new Number
Number()
is not provided.
constructor is primarily used as a placeholder.
function that converts a parameter to a
Number class
651
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?