title: Error #1006: gotoAndStop is not a function
body: <p>This is driving me insane trying to figure this out because I know it's simple. </p>
  
  <p>I have the following code in the last frame of a movie clip on the timeline. When the framehead hits the last frame of the mc, i want to go back to the frame "photoIntro" on the main timeline.</p>
  
  <pre><code>addEventListener(Event.ENTER_FRAME, goBackToTimeline);
  
  function goBackToTimeline(event:Event):void
   {
   Object(this.parent).gotoAndStop("photoIntro");
   }
  </code></pre>
  
  <p>The output error I keep getting is:</p>
  
  <p>TypeError: Error #1006: gotoAndStop is not a function.
   at PandU_EmergingIssuesKiosk_v1c_fla::logoAnimationMO V_1/goBackToTimeline().</p>
  
  <p>Help? Thanks. </p>