5 Replies Latest reply on Jul 4, 2006 10:22 PM by kglad

    Problem with delay - go to frame, script

    jon2185
      Hi all, I have a thumbnail gallery viewer, instead of just stopping on each thumbnail I want the play head to got back to frame 1 after a delay so the movie starts over when an image is left on for certain lenghth of time.

      I have this script which seems to work except when other thumbnails are clicked the delay seems to be shortened even though the delay time for each thumbnail is the same, I think it is because flash doesnt discard the countdown from the previouse clicked thumbs so the delay gets shorter after each click!!!! i think lol...im no expert.

      stop();
      var id = setInterval(go, 12000);
      function go() {
      clearInterval(id);
      gotoAndStop(1);
      }


      can I alter the script to solve the proble?

      thanks....jon