Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

490

Likes

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

Likes

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

Likes

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