i’m trying to get it so that when different movieclips are pressed it gets the relevant data from an xml file. I thought it would be easy but seem to be having a few problems.
I’m using the following to get all the values from the xml file into flash and when i trace it shows them all being loaded:
if (loaded) {
xmlNode = findNode(this, “fixtures”);
team = [];
date = [];
for (i=0; i<xmlNode.childNodes.length; i++) {
teamNode = findNode (xmlNode.childNodes*, "fixture");
date = xmlNode.childNodes*.attributes.date;
for (j=0; teamNode.childNodes && j<teamNode.childNodes.length; j++) {
teamH = teamNode.childNodes[j].attributes.shortname;
}
//trace(teamH)
//trace(date)
}
now how can i search through these and have it only display the requried team and date when the movieclip button is clicked??