hi everyone !!! its nice to be here :thumb:…
i having a problem on how can i make a dynamic data loading in a system with the scrollbar in 2 column…
[SIZE=4]data1[/SIZE][SIZE=4] | data2 [/SIZE][SIZE=4][COLOR=Red]↑[/COLOR]
data3 | data4
data5 | data6 [/SIZE][COLOR=Red][SIZE=4]↓[/SIZE][/COLOR]
like this:
[SIZE=2]Creating a dynamic list from XML[/SIZE]
here is the .fla
iv tried this code
but still in one column…
for (h=0; h<2; h++) {
for (m=0; m<theData.length; m++) {
mc_item = container_mc.attachMovie("itemlist","item"+m, 1024+m);
mc_item._x = (mc_item._width + spaceBetween) * h;
mc_item._y = (mc_item._height + spaceBetween) * m;
mc_item.date_txt.text = theData[m].field1;
mc_item.location_txt.text = theData[m].field2;
positions.push(mc_item._y);
counter++;
}
}
result:
[SIZE=4]data1 [/SIZE][SIZE=4][COLOR=Red]↑[/COLOR]
data2
data3 [COLOR=Red]|[/COLOR]
data4
data5 [/SIZE][COLOR=Red][SIZE=4]↓[/SIZE][/COLOR]
tnx!!!