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

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

Advertisement

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
A string.
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 = mbchr(36) add mbchr(50);
trace ("string length = " add mblength(myString));
// Output: string length = 2
See also
,
mbchr()
mbsubstring()
28
Flash Lite Global Functions
variable:
myString

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents