Hi Kirupa…
loving the ideas in this thread…
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<row;l++){
for(j=0;j<col;j++){
r=_global.j_array.push(j);
q=_global.l_array.push(l);
}
}
}
array_maker();
function mover(){
if(t<_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…