Pausing for loop?
Pausing for loop?
Out of context: Reply #1
- Started
- Last post
- 4 Responses
- unfittoprint0
use a setinterval instead.
for example,
i=0
myLoop=setInterval(function(){
this["movie"+i].doThis();
++i;
if(i==limit){
clearInterval(myLoop);
}
}, 500)