Is there an existing javascript library for relaying key press events in the browser (or certain divs) into flash? I am hoping there might be a library kind of like this on
When the SWF has focus, you can just listen in actionscript for keypresses. And if you want, you can send them to Javascript as well.
addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); private function onKeyDown(e:KeyboardEvent):void { // handle key down, }