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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

See also
,
Key
_xmouse (MovieClip._xmouse property)
,
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
- The character to convert to an ASCII code number.
character:String
Returns
- The ASCII code number of the specified character.
Number
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,
space preceding valid integers is ignored, as are trailing nonnumeric characters.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The string to read and convert to a floating-point number.
string:String
Returns
- A number or
Number
(not a number).
NaN
,
_ymouse (MovieClip._ymouse
parseFloat()
returns
. White
NaN
Global Functions
73

Advertisement

Table of Contents
loading

Table of Contents