![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 73](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553073.webp)
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).
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...