User Guide
String.fromCharCode() 411
Example
In the following example, this method is called on the first letter of the string "Chris":
var my_str:String = "Chris";
var firstChar_num:Number = my_str.charCodeAt(0);
trace(firstChar_num); // output: 67
See also
String.charAt()
String.concat()
Availability
Flash Player 5.
Usage
my_str.concat(value1,...valueN) : String
Parameters
value1,...valueN
Zero or more values to be concatenated.
Returns
A string.
Description
Method; combines the value of the String object with the parameters and returns the newly
formed string; the original value,
my_str, is unchanged.
Example
The following example creates two strings and combines them using String.concat():
var stringA:String = "Hello";
var stringB:String = "World";
var combinedAB:String = stringA.concat(" ", stringB);
trace(combinedAB); // output: Hello World
String.fromCharCode()
Availability
Flash Player 5.
Usage
String.fromCharCode(c1:Number,c2,...cN) : String
Parameters
c1,c2,...cN
A number; decimal integers that represent ASCII values.
Returns
A string.