EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Ord Function; Parsefloat Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Global Functions 73
See also
Key, _xmouse (MovieClip._xmouse property), _ymouse (MovieClip._ymouse
property)
, on handler
ord function
ord(character) : Number
Deprecated since Flash Player 5. This function was deprecated in favor of the methods and
properties of the String class.
Converts characters to ASCII code numbers.
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
character:String - The character to convert to an ASCII code number.
Returns
Number - The ASCII code number of the specified character.
See also
String, charCodeAt (String.charCodeAt method)
parseFloat function
parseFloat(string:String) : Number
Converts a string to a floating-point number. The function reads, or parses, and returns the
numbers in a string until it reaches a character that is not a part of the initial number. If the
string does not begin with a number that can be parsed,
parseFloat() returns NaN. White
space preceding valid integers is ignored, as are trailing nonnumeric characters.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
string:String - The string to read and convert to a floating-point number.
Returns
Number - A number or NaN (not a number).

Table of Contents

Related product manuals