title: Flash go to frame label action
body: <p>It is my first time using AS3.</p>
  
  <p>The way that is set up us I have a "Main MOvie Clip" and inside the main movie clip I have another movie clip which is the MainMenu. </p>
  
  <p>Inside the MainMenu are buttons. The frame label I wanted to go to in outside of the MainMenu but Inside of the MainMovieClip.</p>
  
  <p>I am doing a small project that involves <code>gotoAndPlay("frame label")</code></p>
  
  <p><strong>In the action layer at the end of the timeline of the MainMenu Moviclip Here is my code:</strong></p>
  
  <pre><code>btn1.addEventListener(MouseEvent.MOUSE_UP,mouseDownHandler);
  
  function mouseDownHandler(event:MouseEvent):void {
  gotoAndPlay("nordic");
  }
  
  stop();
  </code></pre>
  
  <p><strong>The error I get:</strong></p>
  
  <blockquote>
    <p>TypeError: Error #1009: Cannot access
    a property or method of a null object
    reference.    at
    Ronor_CD20100421_fla::mainMenu_3/frame27()</p>
  </blockquote>