3 Replies Latest reply on Nov 22, 2006 1:23 AM by ESK-2004

    Stopping a flash movie

    ESK-2004
      could anyone perhaps tell me how i can stop/pause a movie for 5 seconds...
      My current movie is 40 frames long and i need to pause it at frame 34 for about 5 seconds...before continuing on to frame 40...without user interaction (no buttons or mouse actions)

      i did a search on the adobe site but the link seems to be broken:
      "How to use GetTimer to pause a movie (TechNote #14207)"
        • 1. Re: Stopping a flash movie
          Level 7
          1st make frame 34 a keyframe... and then put this script on frame 34...

          stop();
          intervalHandle = setInterval( resumePlay, 5000 );

          function resumePlay()
          {
          clearInterval( intervalHandle );
          play();
          }


          ESK-2004 wrote:
          > could anyone perhaps tell me how i can stop/pause a movie for 5 seconds...
          > My current movie is 40 frames long and i need to pause it at frame 34 for
          > about 5 seconds...before continuing on to frame 40...without user interaction
          > (no buttons or mouse actions)
          >
          > i did a search on the adobe site but the link seems to be broken:
          > "How to use GetTimer to pause a movie (TechNote #14207)"
          >
          • 2. Re: Stopping a flash movie
            Level 7

            "Bruce McMurry" <nomail@here.com> wrote in message
            news:ejvck1$sfa$1@forums.macromedia.com...
            > 1st make frame 34 a keyframe... and then put this script on frame 34...
            >
            > stop();
            > intervalHandle = setInterval( resumePlay, 5000 );
            >
            > function resumePlay()
            > {
            > clearInterval( intervalHandle );
            > play();
            > }
            >

            or you can use the undocumented setTimeout(resumePlay, 5000); instead and
            not have to clear the interval id.



            • 3. Re: Stopping a flash movie
              ESK-2004 Level 1
              excellent....
              Works wonders, thanks for the help guys.

              just starting to use flash again so i am a bit lost. Last version i used was flash 3....!