SWiSH Player Support SWF5 or later - Supported Internally
Syntax
myString.charCodeAt(index)
Arguments
index: The number of the character in the string to be returned. The first character is at index position 0.
Returns
The character code at the specified index.
Description
Method: Returns the character code of the character in the position specified by the parameter index. The index of the first character in a string is 0. If index is not a number from 0 to string.length - 1, 0 is returned.
The character code is an integer from 0 to 65535. Sample onLoad () {
i = 0;
t1 = $version;
trace(t1);
do {
trace(t1.charCodeAt(i));
}while (i++ < t1.length);
}
See Also ord