# DuplicateMovieClip to right and down

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-to-right-and-down/202064>\
**Category:** flash\
**Created:** [September 27, 2006, 12:57pm UTC](https://forum.kirupa.com/t/duplicatemovieclip-to-right-and-down/202064 "2006-09-27T12:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mentha](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mentha](https://forum.kirupa.com/u/mentha)\
**Post date:** [September 27, 2006, 12:57pm UTC](https://forum.kirupa.com/t/duplicatemovieclip-to-right-and-down/202064/1 "2006-09-27T12:57:58Z")

</div>

I can’t seem to find the answer to my problem, though I have a gut-feeling that the solution is overly simple…

I have a database with images and I want them to show up in a gallery-overview, like a matrix of images.  
Through an XML file I get the total of images. Based on that number I want the overview to be built, stopping the duplication of movieclips when the total of images is reached. So you kinda get something like this:

:):):):)🙂  
:):):):)🙂  
:):)🙂

See? It stops when the amount of 13 is reached and doesn’t continue to fill up the third row.

If anyone can help, I’d greatly appreciate it!
