# FMX - MC postitioning problems

**URL:** <https://forum.kirupa.com/t/fmx-mc-postitioning-problems/72500>\
**Category:** flash\
**Created:** [December 6, 2004, 3:09pm UTC](https://forum.kirupa.com/t/fmx-mc-postitioning-problems/72500 "2004-12-06T15:09:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orangefisk](https://avatars.discourse-cdn.com/v4/letter/o/4491bb/32.png) [@orangefisk](https://forum.kirupa.com/u/orangefisk)\
**Post date:** [December 6, 2004, 3:09pm UTC](https://forum.kirupa.com/t/fmx-mc-postitioning-problems/72500/1 "2004-12-06T15:09:11Z")

</div>

Hello people. I am making a small gallery of thumbnails, and am having a little problem here. I can position the first 12 thumbnails without problem, but the next thumbnails are just positioned in one spot (same spot as the main clip i duplicate). Here’s the code i use right now (picline is defining which line it should be put on 3 lines of 4 pictures):

for (var picLine = 0; picLine\<3; picLine++) {

```
             // How many pages do we need to show?
             for (var totalPages = 0; totalPages&lt;Number(this.pictureCount/maxThumb); totalPages++){
                     totalPagesMore = (totalPages+1);
                     trace("total pages More:"+totalPagesMore);
             // How many pages do we need to show?
                                                                             
                 if (picLine==0 && i&gt;=(1*totalPages-1) && i&lt;=(3*totalPagesMore)){
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._x = (35*i*totalPagesMore); // position the movieclip
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._y = 0; // position the movieclip
                 }
                 if (picLine==1 && i&gt;=(4*totalPagesMore) && i&lt;=(7*totalPagesMore)){
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._x = (35*i*totalPagesMore-(140)); // position the movieclip second row
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._y = (T_height)/2+(spacer/2); // position the movieclip second row
                 }
                 if (picLine==2 && i&gt;=(8*totalPagesMore) && i&lt;=(12)*totalPagesMore){
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._x = (35*i*totalPagesMore-(140*2)); // position the movieclip second row
                     _root["pictureModule"]["imgMC"]["clip_"+i*totalPagesMore]._y = ((T_height)+spacer); // position the movieclip second row
                 }
                 
                 // Add the buttons here (show if the totalpage number is &gt; than 0)
             }
         }

```

You can se an online version here:  
[http://wroooar.kevinandersson.com](http://wroooar.kevinandersson.com)
