title: AS3---TypeError: Error #1009: Cannot access a property or method of a null object reference
body: <p>Flash is giving me this error after I click a button to go to another frame. After I get the error, some buttons do not go to its destination and instead it just does nothing.</p>
  
  <p>The error is as follows:</p>
  
  <pre><code>TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at wmhssports_fla::MainTimeline/frame39()
  </code></pre>
  
  <p>Here is the code for frame 39:</p>
  
  <pre><code>stop();
  
  winter_btn.addEventListener(MouseEvent.CLICK, buttonClick1);
  function buttonClick1(event:MouseEvent):void{
  gotoAndPlay(39);
  };
  
  spring_btn_boys.addEventListener(MouseEvent.CLICK, buttonClick10);
  function buttonClick10(event:MouseEvent):void{
  gotoAndPlay(114);
  };
  
  fall_btn_boys.addEventListener(MouseEvent.CLICK, buttonClick11);
  function buttonClick11(event:MouseEvent):void{
  gotoAndPlay(135);
  }; 
  </code></pre>