7 Replies Latest reply on May 23, 2007 7:56 AM by kglad

    newb setinterval() help

    MrLeche
      Hi,

      My flash is simple, I just have to alpha in and out pictures having setinterval() as their delays.

      my problem is, the movieclip exported into .swf should be loaded wihtin a .swf files with is mainly the control for the clips using buttons on releases then loadMovieNum x.swf level 10.

      now, everything works fine except the setinetrval() how do I make it right?

      mycode:

      stop();
      var interval:Number = setInterval(function () {
      play();
      clearInterval(interval);
      }, 7000);

      to delay it 7 seconds. the .swf itself works and delays for 7 seconds but after it has been loaded inside a .swf, the intervals are gone.

      please help me. Thanks!