1 Reply Latest reply on Jul 23, 2006 9:50 PM by Craig Grummitt

    disable code

    flashfloozie Level 1
      I've add the following code to pause a looping movie on a page with video, after 2 minutes of no mouse movement it loops back to frame 1. but with still no mouse movement by the time it gets back to the video frame it just skips it the video frame and goes back to frame 1. I need it to wait the 2 minutes each time it gets to the videos.

      Please help.

      ff


      t=120; // 60 seconds inactivity triggers return to frame 1
      clearInterval(inactiveI); // <-- new statement
      inactiveI=setInterval(inactiveF,1000*t);
      function inactiveF(){
      _root.gotoAndPlay(1);
      }
      _root.onMouseMove=function(){
      clearInterval(inactiveI);
      inactiveI=setInterval(inactiveF,1000*t);