hey all,

I need to pause a function for a set amount of time.

This is the best i've been able to come up with but it causes the script to stop responding.


main (){
if (doit == true){
pause();
}
}

pause (){
timer = new Date();
now = timer.getTime();
finish = now + 10
while (now < finish){
now = timer.getTime();
}
}

Any one got any ideas? There has to be a way to create a puse with out using the timeline or any goto actions!