I would eventually like to be able to have a link applied to these with a dynamic reflection effect.
The problem at hand is that it is only creating one row of them. If I remove cover or mirror they run fine but if I have both defined it only runs mirror.
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
link = [];
cover = [];
mirror = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
link* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
cover* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
mirror* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
_root.createEmptyMovieClip("covers"+i, i);
_root.createEmptyMovieClip("mirror"+i, i);
cover_mc = _root["covers"+i];
mirror_mc = _root["mirror"+i];
cover_mc.loadMovie(_root.cover*);
mirror_mc.loadMovie(_root.mirror*);
cover_mc._x = 86*i;
cover_mc._y = 0;
mirror_mc._x = 86*i;
mirror_mc._y = 100;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("playlist.xml");
any help would be appreciated.
Thanks,
saveth