EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Mblength()

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 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...
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()

Table of Contents

Related product manuals