Frame 1
function parseSchedData() {
showName = sData.getNode([tempName]).attributes.shortname;
showTime = sData.getNode([tempName]).attributes.time;
showLink = sData.getNode([tempName]).attributes.link;
showName = sData.getNode([tempName]).attributes.longname;
show_time.autoSize = true;
show_name.text = showName.toUpperCase();
if (showTime == "none") {
show_time.text = "";
} else {
show_time.text = showTime.toUpperCase();
}
if (showLink != "none") {
scheduleLink = showLink;
var _local1 = this.attachMovie("shw_sched", "shw_sched_mc", 1);
_local1.onRelease = function () {
getURL (scheduleLink);
};
if (showTime == "none") {
_local1._x = 0;
} else {
_local1._x = show_time.textWidth + 10;
}
_local1._y = 13.5;
}
}
function loadSchedData() {
sData = new XML_Loader();
sData.getXML(schedXml, _root, "parseSchedData");
}
var schedXml;
var tempName = CN_short_show_name;
var scheduleLink;
var bgImage;
if (tempName == undefined) {
tempName = "batman";
}
schedXml = "/tools/xml/schedule.xml";
if (bground == undefined) {
bgImage = "bg/416x320bg.jpg";
} else {
bgImage = ("/games/tools/img/bg/" + bground) + "bg.jpg";
}
loadMovie (bgImage, "backgroundMC");
loadSchedData();
stop();
Symbol 3 MovieClip [shw_sched] Frame 1
stop();
Symbol 3 MovieClip [shw_sched] Frame 6
stop();
Symbol 3 MovieClip [shw_sched] Frame 13
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 7 MovieClip [__Packages.XML_Loader] Frame 0
class XML_Loader extends XML
{
var ignoreWhite, firstChild;
function XML_Loader () {
super();
trace("new XML_Loader()");
ignoreWhite = true;
}
function getXML(sURL, callbackParent, callbackFunction) {
var _local1 = this;
_local1._callbackFunction = callbackFunction;
_local1._callbackParent = callbackParent;
trace((("load XML for " + _local1._callbackParent) + " then do ") + _local1._callbackFunction);
_local1.load(sURL);
}
function onLoad(success) {
var _local1 = this;
if (success) {
} else {
trace("ERROR: could not load XML");
_root.onError("Could not load XML");
}
_local1._callbackParent[_local1._callbackFunction].apply(_local1._callbackParent, [_local1]);
}
function getNode(nodeNamesAr) {
var _local3 = nodeNamesAr;
var val;
var _local2 = _local3.shift();
var _local1 = firstChild.firstChild;
while (_local1 != null) {
if (_local1.nodeName == _local2) {
if (_local3.length == 0) {
val = _local1;
break;
}
_local1 = _local1.firstChild;
_local2 = _local3.shift();
} else {
_local1 = _local1.nextSibling;
}
}
return(val);
}
}