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.
document.onkeydown=f.bind(this);
function f(e){
this.play(); // or whatever
}
Copy link to clipboard
Copied
document.onkeydown=f.bind(this);
function f(e){
this.play(); // or whatever
}
Copy link to clipboard
Copied
Dear kglad, thank you a lot for answering so fast! I'll gonna try it. Best wishes to you.
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.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now