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

Key-Event in Animate CC 2018 in HTML5 Canvas

New Here ,
May 11, 2019 May 11, 2019

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.

1.3K
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

Community Expert , May 11, 2019 May 11, 2019

document.onkeydown=f.bind(this);

function f(e){

this.play(); // or whatever

}

Translate
Community Expert ,
May 11, 2019 May 11, 2019

document.onkeydown=f.bind(this);

function f(e){

this.play(); // or whatever

}

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
New Here ,
May 12, 2019 May 12, 2019

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

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
New Here ,
May 12, 2019 May 12, 2019

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.

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
Community Expert ,
May 12, 2019 May 12, 2019
LATEST

you're welcome.

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