G-L > Key.getAscii |  |

Key.getAscii

key.getascii, getascii, ascii

Availability

Flash Player 5.

Usage

    Key.getAscii();

Parameters

None.

Returns

An integer that represents the ASCII value of the last key pressed.

Description

Method; returns the ASCII code of the last key pressed or released. The ASCII values returned are English keyboard values. For example, if you press Shift+2, `Key.getAscii` returns `@` on a Japanese keyboard, just as it does on an English keyboard.