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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -