flash - delay in as3 while loop -


i using as3. sprites not working correctly on hittestpoint in while loop. think because going fast before can update display. add delay while loop. easiest way this?

like:

while (condition){ main code here     code delay of 20ms     } 

how can delay in as3?

you use timer instead of loop.


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -