# \[FMX\] duplicating clips in a grid fashion

**URL:** <https://forum.kirupa.com/t/fmx-duplicating-clips-in-a-grid-fashion/41372>\
**Category:** flash\
**Created:** [January 28, 2004, 11:22am UTC](https://forum.kirupa.com/t/fmx-duplicating-clips-in-a-grid-fashion/41372 "2004-01-28T11:22:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [January 28, 2004, 11:22am UTC](https://forum.kirupa.com/t/fmx-duplicating-clips-in-a-grid-fashion/41372/1 "2004-01-28T11:22:34Z")

</div>

Well i want to duplicate clips so they are in a grid fashion. I thought about something similar to this tutorial:

[http://www.kirupa.com/developer/actionscript/grid.htm](http://www.kirupa.com/developer/actionscript/grid.htm)

But for that, you can’t have for example, 27 of the same clips. It will always be 25, 30, 35 - depending on your i and j values of course.

So the question is how can you chagne the code from the tutorial, so the grid isn’t actually a grid. In other words, have 5 clips in row 1, 5 clips in row 2, but 2 clips in row 3.

I hope that wasn’t too confusing :puzzled: thanks :tie:
