User Guide

798 Chapter 2:
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.
Description
Method; returns a string comprising the characters represented by the ASCII values in
the parameters.
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