While() not working properly

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 :frowning: where’s the problem?