dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Movie delay/pause question?

  1. #1
    Senior Member
    Join Date
    Sep 2001
    Posts
    299

    Smile

    Hello and thanx for taking the time to read my thread.
    I need to be able to pause/delay my movie at the last frame or frame before last, for a short period before it goes back to play the first frame.
    Any help is good help....

    Cheers
    Pippin

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    83
    You can use a movie clip as a timer

    make a movie clip

    in the first frame of your movie clip have a stop action

    in the second frame

    x = getTimer();
    play ();

    3rd frame

    play();

    4th frame

    if ((getTimer())>(x)+5000) {
    _root.gotoAndplay(1)
    } else {
    prevFrame ();
    }

    this timer is for 5 seconds
    1sec = 100 milliseconds

    target this movie clip in the main timelinewhenever you want the timer to start

    tellTarget ("timermovie") {
    gotoAndPlay (2);
    }

    Hope I am clear

    Regards...




  3. #3
    Senior Member
    Join Date
    Sep 2001
    Posts
    299

    Smile Thankyou for your answer to my question

    Thanx so much for the help, is there a way I can do this without creating another movie clip? or is this the only way around this?

  4. #4
    Flash Bravo
    Join Date
    Jan 2001
    Location
    Bombay
    Posts
    5

    Exclamation Thanks for the AS

    delay timer
    That was something I was looking for thanks for the help.

  5. #5
    Member
    Join Date
    Aug 2000
    Posts
    83

    Re: Thanks for the AS

    you can give the code in the main time line itself intead of a movie clip

    Regards...

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