Hi, I am trying to call a function every second, but after the first second it starts massively calling it over and over, without waiting one second. Can anyone please help? this is what i have:
on the first frame:
function doIt() {
trace("gotcha");
clearInterval(intervalID);
}
and on the second frame:
onEnterFrame = function(){
moveIt();
intervalID = setInterval(doIt,1000);
}
I would really appreciate your help :)