# Variation of iKim's thumbnail gallery

**URL:** <https://forum.kirupa.com/t/variation-of-ikims-thumbnail-gallery/234800>\
**Category:** flash\
**Created:** [August 6, 2007, 9:57am UTC](https://forum.kirupa.com/t/variation-of-ikims-thumbnail-gallery/234800 "2007-08-06T09:57:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazzamuz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mazzamuz/32/2650_2.png) [@mazzamuz](https://forum.kirupa.com/u/mazzamuz)\
**Post date:** [August 6, 2007, 9:57am UTC](https://forum.kirupa.com/t/variation-of-ikims-thumbnail-gallery/234800/1 "2007-08-06T09:57:17Z")

</div>

Hi Kirupa…

loving the ideas in this [thread…](http://www.kirupa.com/forum/showthread.php?t=196734&highlight=xml+thumbnails)  
iths the xml photo thumbnail gallery with modifications by ikim.  
im not really replying to anyone and as there is no simalar train of thought i am starting another thread…  
I have a query…

ive reworked the xml input page to a php script which creates xml…  
as below:  
\<rows row=5\>  
\<row noofpositions=3\>  
\<singles\>  
\<image /\>  
\<image /\>  
\<image /\>  
\</singles\>  
\</row\>  
then on to the next row with a different no of positions …  
\</rows\>

however i am trying to arrange the thumbnails so that the number of columns changes on loading every row…  
the rows attribute row sets the number of rows just fine…

anyone have anyideas on how i could use the noofpositions attribute in each row to set the col var?

MovieClip.prototype.grid\_maker\_02=function(){  
t=0;  
num=0;

```
row=rownumber;

//col=single[s];
col=single*;
//col=single;
//col=3;
scale=80;
space=10;
x_offset=100;
y_offset=0;
inter=300;
function array_maker(){
    _global.j_array= new Array();
    _global.l_array= new Array();
    for(l=0;l&lt;row;l++){
        for(j=0;j&lt;col;j++){
            r=_global.j_array.push(j);
            q=_global.l_array.push(l);
        }
    }
}
array_maker();
function mover(){
    if(t&lt;_global.total){
        n=_global.j_array[t];
        m=_global.l_array[t]
        with(eval("this.thumbnail_mc.th"+t)){
            xD=x_offset+((_width+space)*scale/100)*n;
            yD=y_offset+((_height+space)*scale/100)*m;
            rD=0;
            aD=100;
            _xscale=_yscale=scale;
            _visible=true;
            positioner(xD,yD,rD,aD);
        }
    }else{
        clearInterval(delay2);
        main_menu.boton_reset._visible=true;
    }
    t++;
}
delay2=setInterval (mover,inter);

```

}

many thanks  
actionscript novice…
