28
Flash Lite Global Functions
Example
The following example converts ASCII code numbers to their mulitibyte character
equivalents:
trace (mbchr(65));// Output: A
trace (mbchr(97));// Output: a
trace (mbchr(36));// Output: $
myString = mbchr(51) - mbchr(49);
trace ("result = " add myString);// Output: result = 2
See also
mblength()
,
mbsubstring()
mblength()
Availability
Flash Lite 1.0.
Usage
mblength(
string
)
Operands
string
A
string.
Description
String function; returns the length of the multibyte character string.
Example
The following example displays the length of the string in the
myString
variable:
myString = mbchr(36) add mbchr(50);
trace ("string length = " add mblength(myString));
// Output: string length = 2
See also
mbchr()
,
mbsubstring()
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...