Return to Snippet

Revision: 15693
at July 14, 2009 02:38 by mprabhuram


Initial Code
public function init():void
{
    txtBox.addEventListener(KeyboardEvent.KEY_UP,pressEscape);
}

public function pressEscape(event:KeyboardEvent):void
{
    if (event.keyCode==13)
    {
        Alert.show("Enter Key has been pressed");
    }
}

Initial URL


Initial Description
Use this code to handle keypress/keyboard events

Initial Title
KeyPress/keyboard events handling in Flex AS3

Initial Tags
actionscript, event, Flex

Initial Language
ActionScript 3