# For Loop with delay

**URL:** <https://forum.kirupa.com/t/for-loop-with-delay/83044>\
**Category:** flash\
**Created:** [March 15, 2005, 7:12pm UTC](https://forum.kirupa.com/t/for-loop-with-delay/83044 "2005-03-15T19:12:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)\
**Post date:** [March 15, 2005, 7:12pm UTC](https://forum.kirupa.com/t/for-loop-with-delay/83044/1 "2005-03-15T19:12:33Z")

</div>

I have been looking through this forum as well as all others I know of and cannot find a simple example to help me get through this. Everything I find is more complicated than what I need and since I don’t know many of the basics of AS I have trouble breaking it down to what I need.

I am trying to use a for loop with maybe a one or two second delay.

The for loop is set up to run the attachMovie command 7 times.

```auto
for (var i = 0; i<8; i++) {
clip= _root.attachMovie("square", "square"+i, (1+i));
clip._x = i+100;
clip._y = 50;

```
