title: Flash CC - HTML5 Canvas: Slideshow Navigation
body: <p>I am trying to create a simple 3 image slideshow with a next and back button in Flash CC using HTML5 Canvas. I'm new to javascript and seem to be having an issue with it working.</p>
  
  <pre><code>this.stop();
  
  this.next_btn.addEventListener("click", playClickNext.bind(this));
  
  function playClickNext() 
  {
      this.gotoAndStop(this.currentFrame + 1);
  }
  
  
  this.back_btn.addEventListener("click", playClickBack.bind(this));
  
  function playClickBack() 
  {
      this.gotoAndStop(this.currentFrame - 1);
  }
  </code></pre>
  
  <p>I'm getting it to publish and the next button works but sometimes goes to the wrong frame. The back button sometimes work and sometimes doesn't. The most common thing it does is also go back to a random frame when clicked.</p>
  
  <p>Thanks for any help!</p>