1 Reply Latest reply on Apr 16, 2006 3:50 AM by a_little_ant

    Help refining this code, please?

    Angyl
      here's the code I'm working with:

      stop();
      b1.onRelease = test
      function test (){
      pauseI=setInterval(pauseF,1000);
      function pauseF(){

      _root.gotoAndStop(3);
      clearInterval(pauseI);
      _root.coverAll.gotoAndPlay(2);
      }
      }

      Problem I have with this is that both the _root.gotoAndStop(3) and the coverAll.gotoAndPlay(2) both happen after the delay.

      How do I set this up so that the coverAll.gotoAndPlay(2) happens IMMEDIATELY while the _root.gotoAndStop(3) waits the delay?