![]() ![]() | |
Flash Player 4; behavior changed in Flash Player 7.
Number(expression)
expression An expression to convert to a number.
A number or NaN.
Function; converts the parameter expression to a number and returns a value as follows:
expression is a number, the return value is expression.expression is a Boolean value, the return value is 1 if expression is true, 0 if expression is false.expression is a string, the function attempts to parse expression as a decimal number with an optional trailing exponent, that is, 1.57505e-3.expression is undefined, the return value is as follows:
NaN.This function is used to convert Flash 4 files containing deprecated operators that are imported into the Flash 5 or later authoring environment. For more information, see & (bitwise AND operator).
![]() ![]() | |