Copy link to clipboard
Copied
Never actually ran into this problem before, the following code is throwing no errors but the KEY_UP event won`t work. (KEY_DOWN works as expected)
What am I missing here? Have tried focus-trick and forcing capture phase.
stage.focus = stage;
stage.addEventListener(KeyboardEvent.KEY_UP, upHandler, true);
private function upHandler(e:KeyboardEvent):void
{
trace(e.keyCode);
}
win7-Flash CC 13.1.0.226
Found the solution shortly after: There was a keyObject in my class that overrrid the listener.
Copy link to clipboard
Copied
Found the solution shortly after: There was a keyObject in my class that overrrid the listener.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now