0
Contributor
,
/t5/animate-discussions/equivalent-createjs-code-for-flash-keyboard-code-snippet/td-p/8239031
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
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
LEGEND
,
LATEST
/t5/animate-discussions/equivalent-createjs-code-for-flash-keyboard-code-snippet/m-p/8239032#M157156
Mar 28, 2016
Mar 28, 2016
Copy link to clipboard
Copied
Here's a thread that discusses canvas key events: Canvas - controlling object with js keypress function
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

