I am working on a map that is pulling data in from an xml file to plot the points. I have written the code below that runs a loop through and attachs a movie clip based on the xml. The problem is is that the attached movies are not showing up at all. I have run traces to see if the data is coming through correctly and it appears that it is. Can anyone see a problem with my code that would be causing this?
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function(success){
if(success){
numOfLocs = this.firstChild.childNodes.length;
for (i=0; i<numOfLocs; i++) {
varName = this.firstChild.childNodes*.childNodes[3].firstChild.nodeValue;
XLoc = this.firstChild.childNodes*.childNodes[11].firstChild.nodeValue;
YLoc = this.firstChild.childNodes*.childNodes[12].firstChild.nodeValue;
this.mapBaseMC.dotsMC.attachMovie("mappointMC", varName, i);
this.mapBaseMC.dotsMC.varName._x = XLoc
this.mapBaseMC.dotsMC.varName._y = YLoc
}
}else{
trace("Error");
}
};
xml.load("[XML FILE](http://compass/clfr/Metrics_copy(1)/new%20pages/LakeOfTheOzarks/OzarksXML.xml)");