8 Replies Latest reply on Jan 15, 2017 10:03 AM by ClayUUID

    I want to create html canvas movie clip button




      I created movie clip buttons with as3 and then converted to html canvas. I created buttons that worked perfectly in actionscript. But I can't get them to work in JavaScript. I'm using very simple code. Tell me what am I doing wrong?


      /* Mouse Over Event

      Mousing over the symbol instance executes a function in which you can add your own custom code.




      1. Add your custom code on a new line after the line that says "// Start your custom code" below.

      The code will execute when the symbol instance is moused over.

      frequency is the number of the times event should be triggered.


      var frequency = 3;


      this.btn1.addEventListener("mouseover", fl_MouseOverHandler_5);



      function fl_MouseOverHandler_5()


        this.gotoAndPlay("over");// Start your custom code

        // This example code displays the words "Moused over" in the Output panel.

        alert("Moused over");

        // End your custom code