# While loop

**URL:** <https://forum.kirupa.com/t/while-loop/14994>\
**Category:** Uncategorized\
**Created:** [March 5, 2003, 3:13am UTC](https://forum.kirupa.com/t/while-loop/14994 "2003-03-05T03:13:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://forum.kirupa.com/u/nobody)\
**Post date:** [March 5, 2003, 3:13am UTC](https://forum.kirupa.com/t/while-loop/14994/1 "2003-03-05T03:13:13Z")

</div>

can someone open up this .fla and tell my why they think it isnt working…  
theres the wierd little chain thing doesnt start from the right spot and i dunno how to fix that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 5, 2003, 7:03am UTC](https://forum.kirupa.com/t/while-loop/14994/2 "2003-03-05T07:03:08Z")

</div>

ehmm … yeah … where’s the fla? 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 5, 2003, 12:01pm UTC](https://forum.kirupa.com/t/while-loop/14994/3 "2003-03-05T12:01:20Z")

</div>

wow… that would probably help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 5, 2003, 12:29pm UTC](https://forum.kirupa.com/t/while-loop/14994/4 "2003-03-05T12:29:17Z")

</div>

why don’t you use **for loops**??

```auto
for (init; condition; next) {
	statement(s);
}

```

ie.

```auto
for (i=0; i<10; i++) {
	duplicateMovieClip(particle_mc, "particle"+i+"_mc", i);
}

```

and everything seems fine to me … ?? :-\

if you mean that the original particle\_mc doesn’t move at all … it’s because it’s not included in your code.

i’d say place it out of the stage or set its **\_visible** property to false 🙂

```auto
particle_mc._visible = false;

```

hope it helps =)
