# attachMovie…. wait for 1 sec… attach(another)Movie. - Problem – set inInterval()?

**URL:** https://forum.kirupa.com/t/attachmovie-wait-for-1-sec-attach-another-movie-problem-set-ininterval/315995
**Category:** Uncategorized
**Created:** [November 9, 2010, 4:40pm UTC](https://forum.kirupa.com/t/attachmovie-wait-for-1-sec-attach-another-movie-problem-set-ininterval/315995 "2010-11-09T16:40:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cuz83](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@cuz83](https://forum.kirupa.com/u/cuz83)
#### Post date: [November 9, 2010, 4:40pm UTC](https://forum.kirupa.com/t/attachmovie-wait-for-1-sec-attach-another-movie-problem-set-ininterval/315995/1 "2010-11-09T16:40:41Z")

</div>

@font-face { font-family: “Cambria”; }p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: “Times New Roman”; }div.Section1 { page: Section1; } attachMovie…. wait for 1 sec… attach(another)Movie. - Problem – set inInterval()\> setTimeout()?

Hi, I was wondering if anyone could help or hare some ideas.

Essentially, I am attaching movie clips to the stage using a “for” loop. So the number of boxes with content put onto the stage = XML file

This bit is working great. But what I am trying to get it to do is attach a movie, wait 1 second, then attach the next, so rather than them all appearing at once, I wanted more of a build. Then perhaps to build on this later, fade in etc… but the key I feel is getting the boxes to load in one after the other with a short delay.

I have been using setInteval and setTimeout. I can get a delay, but the delay happens, then loads all the content at the same time, rather than one after the other, or doesn’t work at all no matter what I do!

Anyone able to help?

Here are the test files: [http://ian.greensplash.com/basicBoxModel.zip](http://ian.greensplash.com/basicBoxModel.zip)

File named :1 is with the delay, but not working correctly.  
File named: 2 is before I changed things so you can see what it is doing now.

Any help would be great!

Thanks
