String.charAt(position)
Top  Previous  Next


Syntax
myString.charAt(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 at the specified index.

Description
Method: Returns 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, an empty string is returned.

Sample
onLoad () {
   i = 0;
   t1 = $version;
   trace(t1);
   do {
      trace(t1.charat(i));
   }
 while (i++ < t1.length());
}