10 Replies Latest reply on Jun 28, 2010 9:58 PM by koahmad98

    I need HELP flash cs4 error #1009

    koahmad98

      ok i need help with my flash site

      i keep getting a error: i just dont know how to fix it   please help me the error is below and the code is to

       

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()[Untitled_fla.MainTimeline::frame1:3 7]

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()[Untitled_fla.MainTimeline::frame1:3 7]

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()[Untitled_fla.MainTimeline::frame1:3 7]

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()[Untitled_fla.MainTimeline::frame1:3 7]

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

      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:10]

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()[Untitled_fla.MainTimeline::frame1:3 7]

       

       

      CODE:

       

      stop();

      button1.addEventListener(MouseEvent.CLICK,button1Clicked);

      button2.addEventListener(MouseEvent.CLICK,button2Clicked);

      button3.addEventListener(MouseEvent.CLICK,button3Clicked);

      button4.addEventListener(MouseEvent.CLICK,button4Clicked);

      buttonLS1.addEventListener(MouseEvent.CLICK,buttonLS1Clicked);

      buttonLS2.addEventListener(MouseEvent.CLICK,buttonLS2Clicked);

      buttonLS3.addEventListener(MouseEvent.CLICK,buttonLS3Clicked);

      buttonLS4.addEventListener(MouseEvent.CLICK,buttonLS4Clicked);

      buttonLW1.addEventListener(MouseEvent.CLICK,buttonLW1Clicked);

      if(buttonLW2!=null)

      {   

      buttonLW2.addEventListener(MouseEvent.CLICK,buttonLW2Clicked);

      }

      buttonLW3.addEventListener(MouseEvent.CLICK,buttonLW3Clicked);

      buttonLW4.addEventListener(MouseEvent.CLICK,buttonLW4Clicked);

      buttonLW5.addEventListener(MouseEvent.CLICK,buttonLW5Clicked);

      buttonLW6.addEventListener(MouseEvent.CLICK,buttonLW6Clicked);

      buttonLW7.addEventListener(MouseEvent.CLICK,buttonLW7Clicked);

      buttonLW8.addEventListener(MouseEvent.CLICK,buttonLW8Clicked);

      buttonLW9.addEventListener(MouseEvent.CLICK,buttonLW9Clicked);

      buttonLW10.addEventListener(MouseEvent.CLICK,buttonLW10Clicked);

      buttonLW11.addEventListener(MouseEvent.CLICK,buttonLW11Clicked);

      buttonLW12.addEventListener(MouseEvent.CLICK,buttonLW12Clicked);

      buttonLI1.addEventListener(MouseEvent.CLICK,buttonLI1Clicked);

      buttonLI21.addEventListener(MouseEvent.CLICK,buttonLI2Clicked);

      buttonHC1.addEventListener(MouseEvent.CLICK,buttonHC1Clicked);

      buttonHC2.addEventListener(MouseEvent.CLICK,buttonHC2Clicked);

      buttonHC3.addEventListener(MouseEvent.CLICK,buttonHC3Clicked);

      buttonHC4.addEventListener(MouseEvent.CLICK,buttonHC4Clicked);

      buttonHC5.addEventListener(MouseEvent.CLICK,buttonHC5Clicked);

      buttonHC6.addEventListener(MouseEvent.CLICK,buttonHC6Clicked);

      buttonHC7.addEventListener(MouseEvent.CLICK,buttonHC7Clicked);

      buttonHC8.addEventListener(MouseEvent.CLICK,buttonHC8Clicked);

      function button1Clicked(event:MouseEvent):void

      {

      gotoAndStop('button11');

      }

      function button2Clicked(event:MouseEvent):void

      {

      gotoAndStop('button21');

      }

      function button3Clicked(event:MouseEvent):void

      {

      gotoAndStop('button31');

      }

      function button4Clicked(event:MouseEvent):void

      {

      gotoAndStop('button41');

      }

      function buttonLS1Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLS12');

      }

      function buttonLS2Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLS22');

      }

      function buttonLS3Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLS32');

      }

      function buttonLS4Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLS42');

      }

      function buttonLW1Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW11');

      }

      function buttonLW2Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW21');

      }

      function buttonLW3Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW31');

      }

      function buttonLW4Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW41');

      }

      function buttonLW5Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW51');

      }

      function buttonLW6Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW61');

      }

      function buttonLW7Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW71');

      }

      function buttonLW8Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW81');

      }

      function buttonLW9Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW91');

      }

      function buttonLW10Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW101');

      }

      function buttonLW11Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW111');

      }

      function buttonLW12Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLW121');

      }

      function buttonLI1Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLI11');

      }

      function buttonLI2Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonLI21');

      }

      function buttonHC1Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC11');

      }

      function buttonHC2Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC21');

      }

      function buttonHC3Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC31');

      }

      function buttonHC4Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC41');

      }

      function buttonHC5Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC51');

      }

      function buttonHC6Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC61');

      }

      function buttonHC7Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC71');

      }

      function buttonHC8Clicked(event:MouseEvent):void

      {

      gotoAndStop('buttonHC81');

      }