I have a for loop which invokes a function with loop variable as the paramter. i need the for loop to wait until the first invocation is executed, before the next
for(i=1;i<6;i++){
demo($firstFrame,i)
}
how do we make the for loop wait.
The demo function has a timeout in it there for obviously the for loop will have to wait before invoking the function for the second time.