Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Global Functions > mbord() | |||
Flash Lite 1.0.
mbord(character)
character The character to convert to a multibyte number.
String function; converts the specified character to a multibyte number.
The following examples convert the characters in the myString variable to multibyte numbers:
myString = "A";
trace ("ord = " add mbord(myString)); // Output: 65
myString = "$120";
for (i=1; i<=length(myString); i++)
char = substring(myString, i, 1);
trace ("char ord = " add mbord(char)); // Output: 36, 49, 50, 48
}
|
|
|
|