Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

key_up event not working

Guru ,
Feb 18, 2015 Feb 18, 2015

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

TOPICS
ActionScript
311
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Feb 18, 2015 Feb 18, 2015

Found the solution shortly after: There was a keyObject in my class that overrrid the listener.

Translate
Guru ,
Feb 18, 2015 Feb 18, 2015
LATEST

Found the solution shortly after: There was a keyObject in my class that overrrid the listener.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines