Flash Lite 2.x and 3.0 ActionScript Language Reference

chr function

chr(number) : String

Deprecated since Flash Player 5. This function was deprecated in favor of String.fromCharCode().

Converts ASCII code numbers to characters.

Parameters

number:Number - An ASCII code number.

Returns

String - The character value of the specified ASCII code.

Example

The following example converts the number 65 to the letter A and assigns it to the variable myVar: myVar = chr(65);

See also

fromCharCode (String.fromCharCode method)