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

equivalent createjs code for flash keyboard code snippet

Contributor ,
Mar 28, 2016 Mar 28, 2016

for flash cc

stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler);

function fl_KeyboardDownHandler(event:KeyboardEvent):void

{

  trace("you press any of your keyboard button");

}

for createjs it should altert in browser once i press any button

/*js

stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler);

function fl_KeyboardDownHandler(event:KeyboardEvent):void

{

  alert('you press any of your keyboard button');

}

*/

TOPICS
ActionScript
672
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

LEGEND , Mar 28, 2016 Mar 28, 2016

Here's a thread that discusses canvas key events: Canvas - controlling object with js keypress function

Translate
LEGEND ,
Mar 28, 2016 Mar 28, 2016
LATEST

Here's a thread that discusses canvas key events: Canvas - controlling object with js keypress function

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