begin = "http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/";
end = "/plays.xml";
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
gameday = [];
gdLink = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
gameday* = xmlNode.childNodes*.attributes.gameday_link;
gdLink* = begin + 'gid_' + gameday* + end;
}
games();
} else {
gotoAndStop(2);
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/miniscoreboard.xml");
function games() {
for (b=0; b<total; b++) {
xmlData2 = new XML();
xmlData2.ignoreWhite = true;
xmlData2.onLoad = loadXML;
xmlData2.load(gdLink[0]);
}
}
not sure if this will help any more but that is the code that i am using so far. As of right now when i try to get gdLink** to use the link it gives me an undefined where the gameday information should be…
Error opening URL “http://gd2.mlb.com/components/game/win/year_2010/month_01/day_30/gid_undefined/plays.xml”
where the undefined is should be: 2010_01_30_herwin_mazwin_1, which is what i got from the first xml file…
any help would be appreciated… thank you