Why does my grid work but only the last set of data from the xml is being displayed in all 6 content boxes? The location is off, but it is displaying grid only one set of content though.
var numOfItems:Number;
var games:MovieClip = this;
////
xStart = Stage.width/2;
// where to start on the x axis
yStart = Stage.height/2;
// where to start on the y axis
//counter to keep track of what step we're on
counter = 0;
///spacing size of content boxes
spacing = 162;
////GetEm
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
// 3X2 following loops.
for (var b = 1; b <=3; b++) {
for (var c = 1; c <=2; c++) {
counter++;
for (var i = 0; i<numOfItems; i++) {
var t = games.attachMovie("iconMC", "icon_MC" +counter, counter);
t._x = xStart+(b*spacing);
t._y = yStart+(c*spacing);
// We assign a _x position to the cell and _y
///////////////////////////////////////
////////////////LoadrestSetFunc
t.logo.logoContainer.loadMovie(nodes*.attributes.logo);
t.t1.tText.text = nodes*.attributes.title;
t.link = nodes*.attributes.link;
t.onRollOver = over;
t.onRollOut = out;
t.onRelease = released;
}
}
}
};
xml.load("icons.xml");