Forum Moderators: open
how to have a script pause for say, 5 seconds then resume?
i tried something a long the lines of creating a function that uses onEnterFrame to increment a variable by one, and passing that function a number equal to the number of seconds i wanted to pause for mulitplied by the frame rate.
this worked but slowed playback down. (there was a few other onEnterFrames going on also)
any ideas> appreciated
I don't have a lot of time to get too involved right now, but if you look in the help files for getTimer(), setInterval(), and clearInterval() they are exactly what you need.
The getTimer() method is more accurate, however the set and clear Interval methods were new beginning with Flash MX.
I said getTimer() is more accurate as the Interval methods are relative to the stage's fps where getTimer is real time.
I have used both many times and I'll help out if you have any questions when I'm more available.
Cheers,
winstun