4 Replies Latest reply on Mar 17, 2016 2:38 PM by watershed5

    Can't get click event working

    watershed5

      I'm attempting to create a simple animation exported to HTML5, I'm able to animate the objects and stop the movie but I'm unable to create a click even that works for starting the animatIon again.

       

      I've tried several different things and none seem to see the click event, I'm currently using this built from the Code Snippets panel and am not getting any alert in the Output panel nor is the timeline playing after the click.

       

      this.nextBtn01.addEventListener("click", fl_MouseClickHandler_4.bind(this));

       

      function fl_MouseClickHandler_4()

      {

        // Start your custom code

        // This example code displays the words "Mouse clicked" in the Output panel.

        alert("Mouse clicked");

        this.play();

        // End your custom code

      }

       

      Any ideas? Thanks.