A-C > chr

chr

Syntax

chr(number);

Arguments

number The ASCII code number to convert to a character.

Description

String function; converts ASCII code numbers to characters.

Player

Flash 4 or later. This function has been deprecated in Flash 5; use of the String.fromCharCode method is recommended.

Example

The following example converts the number 65 to the letter "A":

chr(65) = "A"

See also

String.fromCharCode