# While() not working properly

**URL:** https://forum.kirupa.com/t/while-not-working-properly/47310
**Category:** Uncategorized
**Created:** [April 2, 2004, 3:52pm UTC](https://forum.kirupa.com/t/while-not-working-properly/47310 "2004-04-02T15:52:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hsadan](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hsadan](https://forum.kirupa.com/u/hsadan)
#### Post date: [April 2, 2004, 3:52pm UTC](https://forum.kirupa.com/t/while-not-working-properly/47310/1 "2004-04-02T15:52:53Z")

</div>

i tried following the duplicate mc tutorial, however the part on putting the code in a frame to get it to duplicate on load doesn’t seem to work for me

here’s my code in the frame:

stop();  
amount = 5;  
while(amount\>0) {  
duplicateMovieClip (\_root.arrow, “arrow” + i, i);  
i = i + 1;  
amount = amount-1;  
}

apparently the clip only gets duplicated once ☹ where’s the problem?
