15 Replies Latest reply on Jun 27, 2010 2:25 PM by koahmad98

    I need HELP PLZZZZ!!!

    koahmad98

      ok i am making a website for a friend who is paying me for this job. he has a page that is flash that includes a lot of buttons! the code i have is this:

      stop();

      import flash.events.MouseEvent;

      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);

      buttonLW13.addEventListener(MouseEvent.CLICK,buttonLW1Clicked);

      buttonLW23.addEventListener(MouseEvent.CLICK,buttonLW2Clicked);

      buttonLW33.addEventListener(MouseEvent.CLICK,buttonLW3Clicked);

      buttonLW43.addEventListener(MouseEvent.CLICK,buttonLW4Clicked);

      buttonLW53.addEventListener(MouseEvent.CLICK,buttonLW5Clicked);

      buttonLW63.addEventListener(MouseEvent.CLICK,buttonLW6Clicked);

      buttonLW73.addEventListener(MouseEvent.CLICK,buttonLW7Clicked);

      buttonLW83.addEventListener(MouseEvent.CLICK,buttonLW8Clicked);

      buttonLW93.addEventListener(MouseEvent.CLICK,buttonLW9Clicked);

      buttonLW103.addEventListener(MouseEvent.CLICK,buttonLW10Clicked);

      buttonLW113.addEventListener(MouseEvent.CLICK,buttonLW11Clicked);

      buttonLW123.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("buttonLC11");

      }

      function buttonHC2Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC21");

      }

      function buttonHC3Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC31");

      }

      function buttonHC4Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC41");

      }

      function buttonHC5Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC51");

      }

      function buttonHC6Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC61");

      }

      function buttonHC7Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC71");

      }

      function buttonHC8Clicked(event:MouseEvent):void

      {

      gotoAndStop("buttonLC81");

      }

      but i still keep getting an error:

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

      at Untitled_fla::MainTimeline/frame1()

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

      at Untitled_fla::MainTimeline/frame1()

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()

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

      at Untitled_fla::MainTimeline/frame1()

      at flash.display::MovieClip/gotoAndStop()

      at Untitled_fla::MainTimeline/button1Clicked()

      If anyone can please help i am really in need of help! i have to finish this website today!!