# Need to set and interval

**URL:** https://forum.kirupa.com/t/need-to-set-and-interval/97533
**Category:** Uncategorized
**Created:** [December 23, 2003, 9:28pm UTC](https://forum.kirupa.com/t/need-to-set-and-interval/97533 "2003-12-23T21:28:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Reginald](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@Reginald](https://forum.kirupa.com/u/Reginald)
#### Post date: [December 23, 2003, 9:28pm UTC](https://forum.kirupa.com/t/need-to-set-and-interval/97533/1 "2003-12-23T21:28:40Z")

</div>

right, how do I put a delay in my function, i want it to attach the ball, then wait 10 milliseconds, then attach another, how would i go about doing this, thanks

heres my code:

function attach() {  
for (i=0; i\<40; i++) {  
repeat = attachMovie(“ball”, “ball”+i, i);  
repeat.\_x = ((i_3)+30);  
repeat.\_y = ((i_3)+30);  
repeat.\_rotation = (20\*(i\*2));  
}  
}  
attach();
