ich generiere aus einem XML file eine liste von objekten. pro objekt attache ich einen movie clip. die movieclips sollen ueberlappen und wenn eine bestimmte breiteueberschritten ist, soll eine neue reihe begonnen werden.
ActionScript:
loadBtn.onRelease = function(){
testXml = new XML();
testXml.ignoreWhite = true;
testXml.onLoad = function() {
testXmlItem = this.firstChild.childNodes;
theLength = testXmlItem.length;
pC = _root.createEmptyMovieClip("printContainer",50);
pC._x = 5;
pC._y = 12;
thePrintees = new Array()
for (var i=0; i<theLength; i++) {
thePrintees[i] = pC.attachMovie("theMC", "theMC" + i, i);
thePrintees[i].theName.text = testXmlItem[i].attributes.name;
thePrintees[i].theShop.text = testXmlItem[i].attributes.shop;
thePrintees[i].theInfo.text = testXmlItem[i].attributes.info;
if() {
thePrintees[i]._x = thePrintees[i-1]._x+20;
}else{
}
}
}
testXml.load("test.xml");
};
Irgendwie komme ich da nicht weiter.