Simulate Virtual Keyboard
hi,
could offer inputs on simulating virtual keyboard similar windows on screen keyboard in flex/air? instance trapping key board , mouse events both flex / air application on browser (example, webkit browser) being launched flex / air application? in advance.
if flex/air application has focus can listen key events.
here's code.
<?xml version="1.0" encoding="utf-8"?>
<mx:windowedapplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationcomplete="init()">
<mx:script>
<![cdata[
private function init():void {
stage.addeventlistener(keyboardevent.key_down, onkeydown);
}
private function onkeydown(event:keyboardevent):void {
trace(event.charcode);
}
]]>
</mx:script>
</mx:windowedapplication>
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment