Pre load xml attributes before appearing... trying again:(
So I have this code.... can anyone suggest some augmentation on the code so that I can have a condition that tests that all the attributes are loaded before showing all of them at the same time...
Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for (var i = 0; i<numOfItems; i++) {
var t = home.attachMovie("item", "item"+i, i+1);
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
}
}
Thanks in advance.