13 Replies Latest reply on Aug 2, 2017 11:25 AM by Animate_CC_Sufferer

    Gotoandstop functions aren't working html5/canvas animate cc

    Animate_CC_Sufferer Level 1

      I have a curious problem. Some buttons, which are all on separate layers, and some instances of the same button named uniquely, aren't functioning. I have a very simple function I'm trying to accomplish really. Once the button is clicked, the playhead moves to a desired frame and stops there. Some buttons work fine. On this frame, they aren't working.

       

      Here's the code on this frame. I've verified the button names are correct. I used Animate's code authoring feature so eliminate my human factor of mistakes.

       

      this.stop();

       

       

      this.s1m1_btn.addEventListener("click", fl_ClickToGoToAndStopAtFrame_8.bind(this));

       

       

      function fl_ClickToGoToAndStopAtFrame_8()

      {

      this.gotoAndStop(52);

      }

       

       

       

       

      this.backBtn.addEventListener("click", fl_ClickToGoToAndStopAtFrame_9.bind(this));

       

       

      function fl_ClickToGoToAndStopAtFrame_9()

      {

      this.gotoAndStop(24);

      }