This line:
stage.addEventListener (KeyboardEvent.KEY_DOWN, checkArrowKey);
works in the player but not in a browser. How can I capture arrow key input (I’m guessing the browser is capturing it first). Is this a focus issue?
This line:
stage.addEventListener (KeyboardEvent.KEY_DOWN, checkArrowKey);
works in the player but not in a browser. How can I capture arrow key input (I’m guessing the browser is capturing it first). Is this a focus issue?
Listen to Event.ACTIVATE and Event.DEACTIVATE.
They will tell you when your flash app has focus and capture keys properly.
:: Copyright KIRUPA 2024 //--