Frame 1
if (this == _level0) {
play();
} else {
stop();
}
Frame 2
Stage.align = "TL";
Stage.scaleMode = "NoScale";
Frame 3
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndStop (6);
} else {
play();
}
Frame 4
prevFrame();
Frame 6
stop();
Frame 13
prevFrame();
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip Frame 1
onClipEvent (load) {
function isInsideFlash() {
if (_url.substring(0, 1) == "f") {
var sStart = _url.substring(_url.indexOf("/"));
var i = 1;
while (sStart.charAt(i) == "/") {
i++;
}
_isLocal = true;
_isAuthoring = i == 3;
} else {
_isLocal = false;
_isAuthoring = false;
}
return(_isAuthoring);
}
function QueueList(bShowLoader) {
this.takeFocus = function () {
return(this.current < this.list.length);
};
this.update = function (iIndex) {
this.currentObj = this.list[this.current];
if (this.currentObj.state == 0) {
this.start();
} else {
this.watch();
}
};
this.start = function () {
var filePath = ((_level0.filePath != null) ? (_level0.filePath) : "");
loadMovieNum (filePath + this.currentObj.src, this.currentObj.level);
this.currentTarget = eval ("_level" + this.currentObj.level);
this.currentObj.state++;
if (this.showLoader) {
Movie.Loader.update(this);
}
};
this.watch = function () {
this.currentTarget = eval ("_level" + this.currentObj.level);
this.currentObj.transferred = this.currentTarget.getBytesLoaded();
this.currentObj.fileSize = this.currentTarget.getBytesTotal();
this.currentObj.loaded = this.currentObj.transferred / this.currentObj.fileSize;
if (this.currentObj.transferred == null) {
return(null);
}
this.totalFiles = this.list.length;
this.filesLoaded = this.current;
this.filesLoadedRatio = this.filesLoaded / this.totalFiles;
this.overallLoaded = this.filesLoadedRatio + ((1 / this.totalFiles) * this.currentObj.loaded);
if (this.currentObj.title != null) {
this.currentTitle = this.currentObj.title;
} else if (this.currentObj.name != null) {
this.currentTitle = this.currentObj.name;
} else {
this.currentTitle = this.currentObj.nodeName;
}
this.currentNode = this.currentObj.nodeName;
this.hasLoaded = this.currentObj.loaded >= 1;
if (this.showLoader) {
Movie.Loader.update(this);
}
if (this.hasLoaded) {
this.finish();
}
};
this.finish = function () {
this.currentObj.state = 2;
this.currentObj.target = this.currentTarget;
this.currentObj.target._shellEntry = this.currentObj;
this.currentObj.target.onLoadDone();
if (this.currentObj.name != null) {
MovieClip.prototype[this.currentObj.name] = this.currentObj.target;
}
this.current++;
this.currentTarget = null;
if (this.current >= this.list.length) {
if (this.showLoader) {
Movie.Loader.notifyEnd(this);
}
this.loaded = true;
if (this.resetStatsAfter) {
this.reset();
}
}
};
this.reset = function () {
this.list = [];
this.current = 0;
this.currentObj = null;
this.loaded = true;
this.currentTarget = null;
};
this.addFile = function (oFile) {
this.loaded = false;
this.list.push(oFile);
};
this.current = 0;
this.currentObj = null;
this.currentTarget = null;
this.list = [];
this.loaded = true;
this.showLoader = boolean(bShowLoader);
if (iUseGroup != null) {
if (typeof(iUseGroup) == "number") {
this.group = [iUseGroup];
} else if (typeof(iUseGroup) == "string") {
this.group = iUseGroup.split(",");
} else {
this.group = [0];
}
} else {
this.group = [0];
}
this.resetStatsAfter = false;
File.queues.push(this);
}
function checkForbidden(sString) {
for (items in forbidden) {
if (forbidden[items] == sString) {
return(true);
}
}
return(false);
}
function processXML() {
var node;
var currentNode;
oTarget = (movie.fileData = new Object());
var i = 0;
while (i < xmlData.childNodes.length) {
if (xmlData.childNodes[i].nodeName == "root") {
node = xmlData.childNodes[i];
}
i++;
}
for (attribs in node.attributes) {
if (!checkForbidden(attribs)) {
Movie[attribs] = node.attributes[attribs];
}
}
var i = (node.childNodes.length - 1);
while (i >= 0) {
currentNode = node.childNodes[i];
if (currentNode.nodeName != null) {
if (currentNode.attributes.type.toLowerCase() == "object") {
doXMLObject(currentNode);
} else if (currentNode.attributes.type.toLowerCase() == "variable") {
doXMLVariable(currentNode);
} else {
doXMLArray(currentNode);
}
} else {
currentNode.removeNode();
}
i--;
}
delete baseLevel;
delete oTarget;
delete required;
delete autoStart;
delete xmlData;
enterQueuelist();
_root.gotoAndStop("loadData");
}
function doXMLObject(xData) {
var oReturn = new Object();
var currentNode;
baseLevel = Number(xData.attributes.baseLevel);
required = Boolean(xData.attributes.required);
groupName = xData.nodeName;
if (oTarget[xData.nodeName] == null) {
oTarget[xData.nodeName] = new Object();
}
var i = 0;
while (i < xData.childNodes.length) {
currentNode = xData.childNodes[i];
if (currentNode.nodeName != null) {
oReturn[currentNode.nodeName] = getDataObject(currentNode);
oReturn[currentNode.nodeName].name = currentNode.nodeName;
}
i++;
}
oTarget[xData.nodeName] = oReturn;
}
function doXMLArray(xData) {
var oReturn = new Array();
var currentNode;
baseLevel = Number(xData.attributes.baseLevel);
required = Boolean(xData.attributes.required);
groupName = xData.nodeName;
var i = 0;
while (i < xData.childNodes.length) {
currentNode = xData.childNodes[i];
if (currentNode.nodeName != null) {
oReturn.push(getDataObject(currentNode));
}
i++;
}
oTarget[xData.nodeName] = oReturn.reverse();
}
function getDataObject(xData) {
xData.attributes.state = 0;
if (xData.attributes.required == null) {
xData.attributes.required = required;
}
xData.attributes.required = Boolean(xData.attributes.required);
if ((xData.attributes.level == null) || (xData.attributes.level == "")) {
xData.attributes.level = baseLevel++;
} else {
xData.attributes.level = Number(xData.attributes.level);
}
xData.attributes.textValue = xData.nodeValue;
xData.attributes.nodeName = groupName;
xData.attributes.loaded = 0;
xData.attributes.active = false;
return(xData.attributes);
}
function enterQueuelist() {
if (File == null) {
return(false);
}
var i = 0;
while (i < queueOrderGroups.length) {
for (item in FileData) {
if (item.toLowerCase() == queueOrderGroups[i]) {
var fpInit = eval (queueOrderGroups[i]);
for (var fileObj in FileData[item]) {
var oObject = FileData[item][fileObj];
var sType = typeof(oObject);
if (sType == "object") {
File.request(oObject);
}
}
if (fpInit != null) {
fpInit.init(FileData[item]);
}
}
}
i++;
}
return(true);
}
MovieClip.prototype.Movie = this;
_parent._visible = false;
if (_framerate == null) {
_frameRate = 12;
}
isInsideFlash();
Content = {};
Content.current = 0;
Content.history = [];
Content.list = [];
Content.next = null;
Content.begin = (Content.start = function () {
this.current.target.gotoAndStop(1);
if (this.next.loaded == 1) {
this.setCurrent();
} else {
Movie.File.request(this.next, true);
}
});
Content.init = function (pObject) {
this.list = pObject.reverse();
this.active = true;
this.next = this.list[0];
};
Content.setContent = function (vID) {
var changed = false;
var sType = typeof(vID);
if (sType == "string") {
for (elements in this.list) {
if (this.list[elements].name.toLowerCase() == vID.toLowerCase()) {
this.next = this.list[elements];
changed = true;
break;
}
}
} else if (sType == "number") {
this.next = this.list[vID];
changed = true;
} else {
changed = false;
}
if (changed) {
this.current.target.onEnd();
}
return(changed);
};
Content.setCurrent = function () {
this.current = this.next;
this.current.target.onStart();
this.next = null;
};
Loader = {};
Loader.current = null;
Loader.list = [];
Loader.state = "off";
Loader.init = function (pObject) {
this.list = pObject.reverse();
this.active = true;
this.current = this.list[0];
};
Loader.doLoaderStart = function () {
if (this.current.loaded == 1) {
this.current.active = this.current.target.$version != null;
if (this.current.active) {
this.updateDisplay();
this.current.target.onStart();
}
}
};
Loader.doLoaderEnd = function (oCallee) {
if (this.current.target == null) {
Movie.Content.begin();
} else {
this.current.active = false;
this.current.target.onEnd();
}
};
Loader.setLoader = function (vID) {
var changed = false;
var sArgType = typeof(vID);
if (sArgType == "string") {
for (element in this.list) {
if (this.list[element].name == vID) {
this.current = this.list[element];
changed = true;
break;
}
}
} else if (sArgType == "number") {
this.current = this.list[vID];
changed = true;
} else {
changed = false;
}
return(changed);
};
Loader.updateDisplay = function (oCallee) {
var oTarget = this.current.target;
oTarget._loadedRatio = oCallee.overallLoaded;
oTarget._queueRatio = oCallee.filesLoadedRatio;
oTarget._fileRatio = oCallee.currentObj.loaded;
oTarget._status = oCallee.currentNode;
oTarget._title = oCallee.currentTitle;
oTarget._totalFiles = oCallee.totalFiles;
oTarget._filesLoaded = oCallee.filesLoaded;
oTarget._file = oCallee.currentObj.src;
oTarget.onUpdate();
};
Loader.notifyEnd = function () {
this.doLoaderEnd();
};
Loader.update = function (oCallee) {
if (!this.current.active) {
this.doLoaderStart();
} else {
this.updateDisplay(oCallee);
}
};
File = {};
File.list = [];
File.queues = [];
File.getNow = new QueueList(true);
File.getNow.resetStatsAfter = true;
File.required = new QueueList(true);
File.cache = new QueueList(false);
File.request = function (oFile, bUrgent) {
if (bUrgent) {
this.getNow.addFile(oFile);
} else {
this.list.push(oFile);
if (oFile.required) {
this.required.addFile(oFile);
} else {
this.cache.addFile(oFile);
}
}
};
File.update = function () {
oLocal = Movie.File.queues;
var i = 0;
while (i < oLocal.length) {
if (oLocal[i].takeFocus()) {
Files.currentQueue = i;
oLocal[i].update(i);
return;
}
i++;
}
};
Event.attachEvent("enterFrame", File.update);
var forbidden = ["File", "Content", "Loader", "xmlData"];
var xmlData = new XML();
xmlData.onLoad = function () {
movie.processXML();
};
queueOrderGroups = ["loader", "module", "content"];
xmlFile = ((_level0.filelist != null) ? (_level0.filelist) : "shell.xml");
xmlData.load(xmlFile);
}
onClipEvent (enterFrame) {
File.update();
}