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

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

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