7 Replies Latest reply on Jun 21, 2016 10:33 AM by kglad

    gotoAndPlay("label") going to different frames on second click HTML5 canvas

    markb58573280

      I have a very strange problem I can't seem to figure out.

       

      I'm working in Animate CC with an HTML5 canvas.  I've made a simple interactive slideshow that a user can jump around in.  Instead of going to frame numbers I've been using labels for each button.  My button codes look like this:

       

      this.SL01_01But.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_2.bind(this));

      function fl_ClickToGoToAndPlayFromFrame_2()

      {

        createjs.Sound.stop();

        this.gotoAndPlay("Slide02");

      }

       

      I stop the sound, then go and play a frame label.  It works on the first click, however, if the user sees this frame again, on the second click it goes to the next frame (the one after the label).  For the life of me I can not figure out why.  Any ideas?