A simple bit of code to produce an alternative for 'wait' that works for html5 deployment:
Code: Select all
on waitFor pMS
put the millisec into tMS
put the millisec - tMS into tMSDiff
repeat until tMSDiff >= pMS
put the millisec - tMS into tMSDiff
end repeat
end waitFor
Obviously, this causes the stack to hang and can't process any messages. One handy thing though is that buttons and other UI items also become unresponsive, so it prevents user interaction during this time (without affecting the rest of the browser).
I'm working on a way to do it with messages. I'll post here when I'm done.
Pi