String.fromCharCode()

Availability

Flash Player 5.

Usage

String.fromCharCode(c1,c2,...cN)

Parameters

c1,c2,...cN Decimal integers that represent ASCII values.

Returns

A string.

Description

Method; returns a string made up of the characters represented by the ASCII values in the parameters.

Example

This example uses fromCharCode() to insert an @ character in the e-mail address.

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