setInterval

ok, i have a question. Can anyone tell me how the setInterval command works?

i want it so that after you fire a laser from your spaceship, it takes 0.5 seconds to fire another.

thx.

setInterval(function,time in ms);

It calls the funtion every time the timer reaches the time in ms. It resets once it calls it.

setInterval(fireLaser,500);

Cool,

Please use more descriptive titles Moopers. I moved this thread to AS too. Read this for more info on setInterval:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary646.html