title: AS3 Play/Pause and Stop Buttons ALMOST working, but with one little issue
body: <p>I have a 240 frame animation with sound. The sound file is inside my library.</p>
  
  <p>I have 2 buttons. Play/pause, and Stop.</p>
  
  <p>The video autoplays, and you can pause and resume no issue. You can even hit Stop (which clears the video, but you can hit play again and it starts from the beginning).</p>
  
  <p>My issue is that if you let the animation play all the way to the end, the play button does not start back at the beginning. I had a line of code or 2 changed recently, and before it WOULD go back, but there would be 2 instances of audio. I feel like I am so close, and someone else might be able to point out the issue, I'm sure it may be very small. Here is my code.</p>
  
  <p>Frame 1 Actions:</p>
  
  <pre><code>import flash.events.MouseEvent;
  
  var audioPosition:Number = 0; /* Pause Point */
  
  var isJamming:Boolean; //true or false checking whether sound is playing
  
  var snd0:Sound = new snd();
  var soundChannel:SoundChannel = new SoundChannel();
  PlayBtn.addEventListener(MouseEvent.CLICK, clickPlayPause);
  
  soundChannel = snd0.play();
  isJamming = true;
  
  
  
  function clickPlayPause(evt:MouseEvent) {   
  
  
  if(currentFrame == 1){
      audioPosition = 0.00;
  gotoAndStop(1);
  flash.media.SoundMixer.stopAll();
      play();
          soundChannel = snd0.play(audioPosition);
          isJamming = true;
  } else if (isJamming) {
          stop();
          audioPosition = soundChannel.position;
          soundChannel.stop();
          isJamming = false;
      }   else {
          play();
          soundChannel = snd0.play(audioPosition);
          isJamming = true;
      }       
  }
  
  
  
  CloseBtn.addEventListener(MouseEvent.CLICK, close);
      function close(Event:MouseEvent):void {
      audioPosition = 0.00;
      gotoAndStop(1);
      flash.media.SoundMixer.stopAll();
  }
  </code></pre>
  
  <p>Frame 240 Actions:</p>
  
  <pre><code>audioPosition = 0.00;
  gotoAndStop(1);
  flash.media.SoundMixer.stopAll();
  </code></pre>