Highlighted

Key-Event in Animate CC 2018 in HTML5 Canvas

New Here ,
May 11, 2019

Copy link to clipboard

Copied

Hello everyone! Maybe someone is able to help? I like to create a KeyDown-Event to go to next frame and play (or stop) in timeline in HTML5 Canvas? I know it was possible in ActionScript 3 but I can't realize it in HTML5 Canvas! Does anyone have an idea? Thank you a lot.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

document.onkeydown=f.bind(this);

function f(e){

this.play(); // or whatever

}

Views

484

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

Key-Event in Animate CC 2018 in HTML5 Canvas

New Here ,
May 11, 2019

Copy link to clipboard

Copied

Hello everyone! Maybe someone is able to help? I like to create a KeyDown-Event to go to next frame and play (or stop) in timeline in HTML5 Canvas? I know it was possible in ActionScript 3 but I can't realize it in HTML5 Canvas! Does anyone have an idea? Thank you a lot.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

document.onkeydown=f.bind(this);

function f(e){

this.play(); // or whatever

}

Views

485

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
May 11, 2019 0
Adobe Community Professional ,
May 11, 2019

Copy link to clipboard

Copied

document.onkeydown=f.bind(this);

function f(e){

this.play(); // or whatever

}

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
Reply
Loading...
May 11, 2019 0
New Here ,
May 12, 2019

Copy link to clipboard

Copied

Dear kglad, thank you a lot for answering so fast! I'll gonna try it. Best wishes to you.

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
Reply
Loading...
May 12, 2019 0
New Here ,
May 12, 2019

Copy link to clipboard

Copied

Dear kglad, I tried it and it works. Maybe no big surprise for you but one for me! Again I have to thank you a lot, and best wishes to you.

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
Reply
Loading...
May 12, 2019 0
kglad LATEST
Adobe Community Professional ,
May 12, 2019

Copy link to clipboard

Copied

you're welcome.

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
Reply
Loading...
May 12, 2019 0