Welcome to WebmasterWorld Guest from 188.8.131.52
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.
If used properly you don't even have to use onEnterFrame().
You can pm me for a tutorial on it.
Best of luck.