A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: After Stop in last Frame 30 Sec, How can it automatic go back to First Frame?

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Posts
    26

    After Stop in last Frame 30 Sec, How can it automatic go back to First Frame?

    Hi Guys:

    Could you let me know how I can set up a script in last frame stop for 30 sec. and then back to first frame play again. It is just like a loop.

    Thanks


    silky

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Sure!

    Define this pause function on your first frame...
    code:
    function pause(){
    play();
    clearInterval(timer);
    }



    Then on your last frame (or whenever you want to pause your movie), on a keyframe add this...
    code:

    stop();
    timer = setInterval(pause, 10000);
    //where 10000 is 10 seconds or 60000, 1 minute.


  3. #3
    Junior Member
    Join Date
    Feb 2003
    Posts
    26

    Thanks oldnewbie!

    oldnewbie,

    THANKS IT WORKS VERY WELL!!!


    SILKY

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center