Hi Kitten, here's a couple of ways around the problem.
First an ActionScript routine (attach it to a button) that will pause a movie for any length of time you want. It uses the getTimer() function - all you have to do is change the value of the variable named "pause". This is best for a movie that uses loads of separate clips and doesn't have a straight timeline running through it...
on(release){ //get current time and hold it in a variable
target=getTimer(); //add 3 seconds to that target to create a pause (in milliseconds)
pause=3000
target+=pause
do{ //check current time and compare it to the pause target time
now=getTimer();
}while(now<target); //move on!
gotoAndStop(nextFrame);
}
Alternatively you could just read your movie's frame rate and add frames to your timeline to create a pause, this is best for movies which are straight through animation from beginning to end with little scripting. If you're running at 12fps then adding 36 frames where nothing new happens will create a three second pause. The only problem with this is that if you're running on a slow machine you can't guarantee that it will play the movie at the right speed if things get complicated and your pause could reeeeeeaaalllly stretch ;-)
Kitten,
I guess Wangbar's solution would work attach to a button... But if you want to have an automatic pause, you'll have to rely on a "pauser" mc.
Check my posts in this thread250-62448 for a way to do so!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.