7 Replies Latest reply on May 8, 2007 7:48 AM by Cain23

    Button Navigation ActionScript Problem

    Cain23
      Hi! im really frustrated!!!
      I just created a button called Bot and added this code in my actionscrip layer:

      function Next(evt:MouseEvent):void {
      gotoAndPlay(891);
      }
      Bot.addEventListener(MouseEvent.CLICK, Next);

      When it compiles i receive this error message:

      1120: Acces of undefinied property Bot in : Bot.addEventListener(MouseEvent.CLICK, Next);

      WHats wrong?! I'm really frustrated with AS3 its learning everything again!