# Desperate with duplicat+onEnterFrame combo

**URL:** <https://forum.kirupa.com/t/desperate-with-duplicat-onenterframe-combo/100748>\
**Category:** Uncategorized\
**Created:** [February 2, 2004, 12:46am UTC](https://forum.kirupa.com/t/desperate-with-duplicat-onenterframe-combo/100748 "2004-02-02T00:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Limor](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@Limor](https://forum.kirupa.com/u/Limor)\
**Post date:** [February 2, 2004, 12:46am UTC](https://forum.kirupa.com/t/desperate-with-duplicat-onenterframe-combo/100748/1 "2004-02-02T00:46:51Z")

</div>

I am trying to get a shape to be duplicated and then run and rotate on the screen in a chain effect. I wrote the below program it did duplicate the shape i guess 99 time and it rotated each new dup and moved it \*6. So i have a nice long chain of this shape but it seems as if it stopped. I know it’s still running cause i did trace. but i’m gussing it runs the whole 99 at one shot. I’m trying to get each dup. to move and rotate one by one for the moving/rotating chain effect.

this.onEnterFrame = function(){  
for (i=1; i\<100; i++) {  
duplicateMovieClip(fish,“fishy”+i,i);  
\_root[“fishy”+i].\_x += i_6;  
\_root[“fishy”+i].\_rotation += i_5;  
}  
}

What is wrong with my code?  
I have tried so many ways. I don’t understand why it won’t work.  
Please help me understand.  
Thank you…
