Flash Lite 2.x and 3.0 ActionScript Language Reference

fromCharCode (String.fromCharCode method)

public static fromCharCode() : String

Returns a string comprising the characters represented by the Unicode values in the parameters.

Returns

String - A string value of the specified Unicode character codes.

Example

The following example uses fromCharCode() to insert an @ character in the e-mail address:

var address_str:String = "dog"+String.fromCharCode(64)+"house.net";
trace(address_str); // output: dog@house.net