Skip to main content
Fred de Jupiter
Participant
May 11, 2019
Answered

Key-Event in Animate CC 2018 in HTML5 Canvas

  • May 11, 2019
  • 1 reply
  • 1348 views

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.

    This topic has been closed for replies.
    Correct answer kglad

    document.onkeydown=f.bind(this);

    function f(e){

    this.play(); // or whatever

    }

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    May 11, 2019

    document.onkeydown=f.bind(this);

    function f(e){

    this.play(); // or whatever

    }

    Fred de Jupiter
    Participant
    May 12, 2019

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