8 Replies Latest reply on Apr 6, 2010 3:03 PM by kglad

    Getting error when trying to Test Movie



      When i click Test Movie no compiler errors,
      But when my scene finishes, On the bit where all my actionscript is..
      And output tab pops up with this error:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at JoeTorranC_fla::MainTimeline/frame160()

      I have 3 Layers,

      Layer 1 has the actionscript code and some text,
      Layer 2 has a button and a motion tween,
      Layer 3 has a button and a motion tween,

      The actionscript code in Layer 1 is this:


      tutorials.addEventListener(MouseEvent.MOUSE_DOWN, myBtnHandler1);

      function myBtnHandler1(event:MouseEvent):void {

          gotoAndPlay("Scene 59");


      Does anyone know why i get that output error,
      Also when i get that output error and try click my button, It dosent change scenes like it should