0 Replies Latest reply on Jul 5, 2007 10:57 AM by sr817

    Error 1120: Access of Undefined Property

    sr817
      Earlier today, I recieved help on a pause code (courtesy of yarkehsiow). I'm working in AS 3.0.

      Here is the simple code I have currently:
      import flash.display.*;
      import flash.events.*;
      import flash.display.MovieClip;
      stop();
      btmbtna.booksbtna.addEventListener(MouseEvent.MOUSE_DOWN, startBooks);

      intID = setInterval(delay, 3000); //this tells flash to wait 3 seconds
      function delay(){
      clearInterval(intID);
      midbtna.gotoAndStop(1); // or do something else...
      }

      function startBooks(e:MouseEvent): void {
      topbtna.gotoAndPlay(1);
      stop();
      delay();
      }


      For some reason, I get two error 1120 messages: Access of Undefined Property IntID. The error sources are: "intID = setInterval(delay, 3000);" and "clearInterval(intID);". It seems as though there is some problem with the IntID variable, but with my low level of actionscript understanding, I'm rather useless. Anyone have any suggestions?

      Thank you,
      Sam