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

equivalent createjs code for flash keyboard code snippet

Contributor ,
Mar 28, 2016 Mar 28, 2016

Copy link to clipboard

Copied

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

Views

600

Translate

Translate

Report

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

Votes

Translate

Translate
LEGEND ,
Mar 28, 2016 Mar 28, 2016

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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