title: Linking a button to a movie clip... gotoAndPlay() doesn't work!
body: <p>I have a button, "pb".</p>
  
  <p>I have a movieclip, "pm".</p>
  
  <p>I want the clip to play certain frames when I press the button.</p>
  
  <p>I have a layer on top of every other layer, with only one frame. In the ActionScript for that frame, I have put:</p>
  
  <pre><code>stop();
  
  pb.addEventListener(MouseEvent.CLICK, onMouseClick);
  
  function onMouseClick(event:MouseEvent):void 
  {
      trace("I've been clicked!");
      pm.gotoAndPlay(10);
  }
  </code></pre>
  
  <p>When I click the button, the message comes up BUT THE MOVIE DOES NOT PLAY.</p>
  
  <p>What have I done wrong? This should work. I've been looking online all day and this is what everyone says to do... I'm at a loss. Thanks.</p>