Time delay actionscript

does anyone know of any actionscript i can use for a time delay.
Say you have only 3 frames on a time line is there some way using actionscript that i can delay the playhead so for instance it stays on each frame for 20mins and once that time is up it moves on to the next frame and so on and so on.

any help would be appreciated.

Paste this script on the fame you want to pause on:[AS]this.stop();
pause = function () {
play();
clearInterval(pausei);
}
pausei = setInterval(pause, 10000);
[/AS]
As of right now, it will pause for 10 seconds, 10 sec = 10000.

So if you want it to pause for 20 min, you’ll need to change it to 1200000.

My math is a lil rusty, but I think that is correct. :stuck_out_tongue:

EDIT: it’s 1200000, thanks to claudio. :stuck_out_tongue:

Actually i think it is 1200000

10 sec = 10000
60 sec = 60000

60sec = 1min = 60000

20 min = 20 * 60000 = 1200000

I might be wrong
:slight_smile:

Actually you’re right. I just checked it too. :stuck_out_tongue:

Wow, its 6:15am and i can still do math :slight_smile:

Math isn’t my thing, I suck at the 1, 2, 4’s. I’m better with my A, B, D’s. :stuck_out_tongue:

Im an engineering student, my day is pretty much math, physycs and electronics based.
=)

heavy night on the booze last night - maths is the last thing i wanna think about…i’ll take your word for it.

cheers guys.

You’re welcome wilma
:slight_smile: