Archive for January 2nd, 2012

02/01/2012

Flash listener for IOS keyboard “done” – snippet

import flash.ui.Keyboard;

stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyListener);

private function KeyListener(evt:KeyboardEvent):void
{
if(evt.keyCode == Keyboard.ENTER)
{
//evaluate done key code
}
}

Once you set the keyboard listener for stage, you can crack the “done” button for a textField input.
Hope this snippet helps.

Follow

Get every new post delivered to your Inbox.

Join 438 other followers