How to automatically pass to next frame after x seconds on Flash Mx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • londres9b
    New Member
    • Apr 2010
    • 106

    How to automatically pass to next frame after x seconds on Flash Mx

    I'm quite a beginner on Flash and ActionScript..
    I was wondering how to make the movie pass to the next frame automatically, but after some amount of seconds?

    (Using Macromedia Flash Mx)

    Thank you
  • Dhruba Ghosh

    #2
    function wait()
    {
    stop ();
    var myInterval = setInterval(fun ction ()
    {
    play ();
    clearInterval(m yInterval);
    }, 120000);
    } // End of the function
    wait();

    Comment

    • londres9b
      New Member
      • Apr 2010
      • 106

      #3
      thanks, this was so much time ago that I had forgotten.. I found the answer, it's the same as your's. But thanks anyway.


      Code:
      function wait() {
      play();
      clearInterval(myInterval);
      }
      myInterval = setInterval(wait, 2000);

      Comment

      Working...