Frame 1
function onLoadProgress(bytesLoaded, bytesTotal, target, url) {
this.loader_mc.showProgress(bytesLoaded, bytesTotal);
this.loader_mc.swapDepths(this.getNextHighestDepth());
}
function onQueueProgress(loaded, total) {
this.loader_mc.showProgress(loaded, total);
this.loader_mc.gotoAndStop(Math.round((loaded / total) * 100));
this.loader_mc.swapDepths(this.getNextHighestDepth());
}
function onQueueComplete() {
this.loader_mc.killProgress();
this.progressBar_mc._visible = false;
}
function resolveString(str, variable, value) {
if (str.indexOf(variable) < 0) {
return(str);
}
return(str.split(variable).join(value));
}
System.security.allowDomain("*");
var ExpressInstall = function () {
this.needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
};
ExpressInstall.prototype = {init:function () {
if (this.needsUpdate) {
this.loadUpdater();
return(true);
}
return(false);
}, loadUpdater:function () {
System.security.allowDomain("fpdownload.macromedia.com");
this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
this.updater.installStatus = _self.onInstallStatus;
this.hold = this.updater.createEmptyMovieClip("hold", 1);
this.updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3);
}, initUpdater:function () {
this.hold.redirectURL = _root.MMredirectURL;
this.hold.MMplayerType = _root.MMplayerType;
this.hold.MMdoctitle = _root.MMdoctitle;
this.hold.startUpdate();
}, onInstallStatus:function (msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
getURL ("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.')");
}
}};
var ExpressInstall = new ExpressInstall();
if (ExpressInstall.needsUpdate) {
ExpressInstall.init();
stop();
}
_root.siteCookie = SharedObject.getLocal("haloProfile", "/");
shell = new com.akqa.shell.Shell(this, 1);
shell.addListener(this);
com.comic.Globals.filePath = "";
com.comic.Globals.SHELL = shell;
com.comic.Globals.initTracker();
com.comic.Globals.SHELL.resolveContentNodes = function (shell, variable, value) {
for (var _local7 in shell.__contentNodes) {
var _local2 = shell.__contentNodes[_local7];
for (var _local5 in _local2.attributes) {
_local2.attributes[_local5] = resolveString(_local2.attributes[_local5], variable, value);
}
var _local1 = _local2.firstChild;
while (_local1 != null) {
for (var _local5 in _local1.attributes) {
_local1.attributes[_local5] = resolveString(_local1.attributes[_local5], variable, value);
}
_local1 = _local1.nextSibling;
}
}
};
Frame 2
shell.loadDriver("xml/shell.xml", true);
stop();
Symbol 1 MovieClip [sound_mc] Frame 1
stop();
Symbol 4 MovieClip [loader_mc] Frame 1
#initclip 29
Object.registerClass("loader_mc", com.comic.Loader);
#endinitclip
Symbol 5 MovieClip [__Packages.com.comic.Globals] Frame 0
class com.comic.Globals
{
static var fontGroup, SHELL;
function Globals () {
}
static function checkIfLanguage(languageID) {
fontGroup = "System";
var _local1 = new Array("en", "fr");
for (var _local3 in _local1) {
if (_local1[_local3] == languageID) {
fontGroup = "Embed";
}
}
}
static function initTracker() {
var _local2 = new com.akqa.xml.DotXML();
_local2.onLoad = function () {
com.comic.Globals.tracker = new com.xbox.Tracker(this);
com.comic.Globals.tracker.hit("Comic_initload");
};
_local2.load("xml/tracking.xml");
}
static function getInSite() {
trace("get In\u00C9");
SHELL.layers.main.loadContent("main");
initFooter();
}
static function initFooter() {
SHELL.layers.footer.content.registrar.init();
}
static function makeCopy(refClip, copyClip) {
var _local1 = new flash.display.BitmapData(refClip._width, refClip._height, true, 0);
_local1.draw(refClip);
var _local2 = copyClip.createEmptyMovieClip("stub", 1);
_local2.attachBitmap(_local1, 1, "auto", true);
}
static function changeBrightness(target_mc, brightnessLevel) {
var _local3 = [1, 0, 0, 0, brightnessLevel, 0, 1, 0, 0, brightnessLevel, 0, 0, 1, 0, brightnessLevel, 0, 0, 0, 1, 0];
var _local2 = new flash.filters.ColorMatrixFilter(_local3);
target_mc.filters = [_local2];
}
}
Symbol 6 MovieClip [__Packages.com.akqa.xml.DotXML] Frame 0
class com.akqa.xml.DotXML
{
var __broadcaster, __xmlObject;
function DotXML (source) {
__broadcaster = new com.akqa.event.EventBroadcaster();
if (source != null) {
parseDotXML(source);
}
}
function load(url) {
if (url.length <= 0) {
return(undefined);
}
var self = this;
__xmlObject = new XML();
__xmlObject.ignoreWhite = true;
__xmlObject.onLoad = function (success) {
if (success) {
self.parseDotXML(this);
self.onLoad();
self.__broadcaster.broadcastEvent("onLoad");
} else {
var _local3 = "Load.Fail";
var _local2 = "XML not loaded: " + url;
self.onError(_local3, _local2);
self.__broadcaster.broadcastEvent("onError", _local3, _local2);
}
};
__xmlObject.load(url);
}
function parseDotXML(source) {
var _local2 = com.akqa.xml.parsers.DotXMLParser.parse(source);
for (var _local3 in _local2) {
if (((_local3 != "__xmlObject") && (_local3 != "__broadcaster")) && (!(this[_local3] instanceof Function))) {
this[_local3] = _local2[_local3];
}
}
}
function getBytesLoaded() {
return(__xmlObject.getBytesLoaded());
}
function getBytesTotal() {
return(__xmlObject.getBytesTotal());
}
function addListener(listener) {
__broadcaster.addListener(listener);
}
function removeListener(listener) {
return(__broadcaster.removeListener(listener));
}
function onLoad() {
}
function onError(errorCode, errorMessage) {
}
}
Symbol 7 MovieClip [__Packages.com.akqa.event.EventBroadcasterInterface] Frame 0
interface com.akqa.event.EventBroadcasterInterface
{
}
Symbol 8 MovieClip [__Packages.com.akqa.event.EventBroadcaster] Frame 0
class com.akqa.event.EventBroadcaster implements com.akqa.event.EventBroadcasterInterface
{
var __listeners;
function EventBroadcaster () {
__listeners = new Array();
}
function addListener(listener) {
if (listener == null) {
return(undefined);
}
removeListener(listener);
__listeners.push(listener);
}
function removeListener(listener) {
var _local2 = 0;
while (_local2 < __listeners.length) {
if (__listeners[_local2] == listener) {
__listeners.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function broadcastEvent() {
if (arguments.length == 0) {
return(undefined);
}
var _local6 = String(arguments.shift());
var _local5 = __listeners.concat();
var _local3 = 0;
while (_local3 < _local5.length) {
var _local4 = _local5[_local3];
_local4[_local6].apply(_local4, arguments);
_local3++;
}
}
}
Symbol 9 MovieClip [__Packages.com.akqa.xml.parsers.DotXMLParser] Frame 0
class com.akqa.xml.parsers.DotXMLParser
{
function DotXMLParser () {
}
static function parse(source) {
if (source == null) {
return(null);
}
var _local1;
if (typeof(source) == "string") {
var _local8 = new XML();
_local8.ignoreWhite = true;
_local8.parseXML(source);
_local1 = _local8;
} else if (source instanceof XMLNode) {
_local1 = source;
} else {
return(null);
}
var _local6 = new Object();
for (var _local7 in _local1.attributes) {
_local6[_local7] = _local1.attributes[_local7];
}
if (_local1.nodeType == 3) {
_local6._value = _local1.nodeValue;
} else if ((_local1.childNodes.length > 0) && (_local1.childNodes[0].nodeType == 3)) {
_local6._value = __parseChildrenAsText(_local1);
} else {
var _local2 = 0;
while (_local2 < _local1.childNodes.length) {
var _local4 = _local1.childNodes[_local2];
var _local5 = _local4.nodeName;
var _local3 = _local6[_local5];
if (!(_local3 instanceof Array)) {
_local3 = (_local6[_local5] = new Array());
}
_local3.push(parse(_local4));
_local2++;
}
}
return(_local6);
}
static function __parseChildrenAsText(node) {
var _local3 = "";
var _local1 = 0;
while (_local1 < node.childNodes.length) {
var _local2 = node.childNodes[_local1];
if (_local2.nodeType == 3) {
_local3 = _local3 + _local2.nodeValue;
} else {
_local3 = _local3 + _local2.toString();
}
_local1++;
}
return(_local3);
}
}
Symbol 10 MovieClip [__Packages.com.xbox.Tracker] Frame 0
class com.xbox.Tracker
{
var __get__DEBUG;
function Tracker (doc) {
trackers.push(new com.akqa.tracking.WebTrends(doc));
}
function hit(id) {
var _local2 = 0;
while (_local2 < trackers.length) {
trackers[_local2].hit(id);
_local2++;
}
}
function set DEBUG(to) {
var _local2 = 0;
while (_local2 < trackers.length) {
trackers[_local2].DEBUG = to;
_local2++;
}
//return(__get__DEBUG());
}
var trackers = new Array();
}
Symbol 11 MovieClip [__Packages.com.akqa.tracking.TrackingSystem] Frame 0
interface com.akqa.tracking.TrackingSystem
{
}
Symbol 12 MovieClip [__Packages.com.akqa.tracking.WebTrends] Frame 0
class com.akqa.tracking.WebTrends implements com.akqa.tracking.TrackingSystem
{
var xml, __get__DEBUG;
function WebTrends (xml) {
this.xml = xml;
}
function hit(id) {
sendDebug(("hit \"" + id) + "\"");
var _local4 = xml.tracking[0].tags[0].tag;
var _local5;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
if (_local3.id === id) {
_local5 = _local3;
break;
}
_local2++;
}
if (_local5) {
sendTrackingCall(_local5);
} else {
trace(((((">> " + CLASS_NAME) + ": ") + "couldn't find tag \"") + id) + "\"");
}
}
function sendTrackingCall(data) {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("dcsMultiTrack", "DCS.dcsuri", (data.id + "/") + data.channel, "WT.ti", data.channel);
}
}
function sendDebug() {
if (debug == true) {
trace(((">>" + CLASS_NAME) + ": ") + arguments.join(" "));
}
}
function set DEBUG(to) {
debug = to;
sendDebug("debug on");
//return(__get__DEBUG());
}
var debug = false;
var CLASS_NAME = "WebTrends";
}
Symbol 13 MovieClip [__Packages.com.akqa.shell.AbstractShellContainer] Frame 0
class com.akqa.shell.AbstractShellContainer
{
var __parent, __foreground, __mainground, __background, __masterBus, __transitionInObject, __transitionOutObject, __broadcaster, __target, __depth, __mainQueueLoader, __precacheQueueLoader, __onLoadComplete, __onTransitionInComplete, __onTransitionOutComplete, __shell, __selfStub, __itemsCache, __disableLock, __garbageCollector, __newItem, __curItem, __oldItem, __semaphore;
function AbstractShellContainer () {
}
function get parent() {
return(__parent);
}
function get foreground() {
return(__foreground);
}
function get mainground() {
return(__mainground);
}
function get background() {
return(__background);
}
function get x() {
return(__x);
}
function set x(x) {
__setX(x);
//return(this.x);
}
function get y() {
return(__y);
}
function set y(y) {
__setY(y);
//return(this.y);
}
function get cache() {
return(__cache);
}
function set cache(cache) {
__cache = cache;
//return(this.cache);
}
function get masterBus() {
return(__masterBus);
}
function setTransitionIn(transitionClass, duration, easing, options) {
if (transitionClass != null) {
var _local2 = new Object();
_local2.transitionClass = transitionClass;
_local2.duration = duration;
_local2.easing = easing;
_local2.options = options;
__transitionInObject = _local2;
} else {
__transitionInObject = null;
}
}
function setTransitionOut(transitionClass, duration, easing, options) {
if (transitionClass != null) {
var _local2 = new Object();
_local2.transitionClass = transitionClass;
_local2.duration = duration;
_local2.easing = easing;
_local2.options = options;
__transitionOutObject = _local2;
} else {
__transitionOutObject = null;
}
}
function setTransitionMode(transitionMode) {
__transitionMode = transitionMode.toLowerCase();
if ((__transitionMode != "cross") && (__transitionMode != "loadafter")) {
__transitionMode = "loadfirst";
}
}
function disable(key) {
__disable("__" + key);
}
function enable(key) {
__enable("__" + key);
}
function addListener(listener, channel) {
if ((channel == null) || (channel == 0)) {
channel = 1;
}
__broadcaster.addListener(listener, channel);
}
function removeListener(listener, channel) {
if ((channel == null) || (channel == 0)) {
channel = 1;
}
return(__broadcaster.removeListener(listener, channel));
}
function __construct(target, depth, shell, parent) {
if ((target == null) || (__constructed)) {
return(false);
}
__parent = null;
__foreground = null;
__mainground = null;
__background = null;
__x = 0;
__y = 0;
__cache = false;
__masterBus = null;
__target = null;
__depth = null;
__mainChannel = 1;
__precacheChannel = -1;
__mainQueueLoader = null;
__precacheQueueLoader = null;
__onLoadComplete = null;
__onTransitionInComplete = null;
__onTransitionOutComplete = null;
__constructed = false;
__created = false;
__prepared = false;
__shell = null;
__selfStub = null;
__itemsDepth = 0;
__itemsCache = null;
__transitionInObject = null;
__transitionOutObject = null;
__transitionMode = "loadfirst";
__disableLock = null;
__broadcaster = null;
__garbageCollector = null;
__newItem = null;
__curItem = null;
__oldItem = null;
__constructed = true;
__target = target;
__depth = ((depth != null) ? (depth) : 0);
__shell = shell;
__parent = ((parent != null) ? (parent) : (__target));
__semaphore = __shell.__semaphore;
__selfStub = __target.createEmptyMovieClip("__container" + __depth, __depth);
__foreground = __selfStub.createEmptyMovieClip("__foreground", 1);
__mainground = __selfStub.createEmptyMovieClip("__mainground", 0);
__background = __selfStub.createEmptyMovieClip("__background", -1);
if (__parent == __target) {
__masterBus = new com.akqa.sound.mixer.Bus();
} else {
__masterBus = new com.akqa.sound.mixer.Bus(__parent.__masterBus);
}
__selfStub._visible = false;
__broadcaster = new com.akqa.event.ChannelBroadcaster();
__garbageCollector = new com.akqa.util.GarbageCollector(this, __selfStub);
__garbageCollector.addHandler(__deconstruct);
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__constructed = false;
__wait();
__garbageCollector.setCollector(null);
__destroy();
__oldItem.__deconstruct();
__curItem.__deconstruct();
__newItem.__deconstruct();
for (var _local2 in __itemsCache) {
__itemsCache[_local2].__deconstruct();
}
__masterBus.dispose();
__mainQueueLoader.dispose();
__precacheQueueLoader.dispose();
__selfStub.removeMovieClip();
delete __parent;
delete __foreground;
delete __mainground;
delete __background;
delete __x;
delete __y;
delete __cache;
delete __masterBus;
delete __target;
delete __depth;
delete __mainChannel;
delete __precacheChannel;
delete __mainQueueLoader;
delete __precacheQueueLoader;
delete __onLoadComplete;
delete __onTransitionInComplete;
delete __onTransitionOutComplete;
delete __constructed;
delete __created;
delete __prepared;
delete __shell;
delete __selfStub;
delete __itemsDepth;
delete __itemsCache;
delete __transitionInObject;
delete __transitionOutObject;
delete __transitionMode;
delete __disableLock;
delete __broadcaster;
delete __garbageCollector;
delete __newItem;
delete __curItem;
delete __oldItem;
__signal();
return(true);
}
function __create() {
if ((!__constructed) || (__created)) {
return(false);
}
__created = true;
__prepared = true;
__itemsCache = new Object();
__disableLock = new com.akqa.util.SharedLock();
__parent.__redisable();
__selfStub._visible = true;
return(true);
}
function __destroy() {
if (!__created) {
return(false);
}
__created = false;
__wait();
__prepareDestroy();
__selfStub._visible = false;
__destroyItem(__oldItem, false);
__destroyItem(__curItem, false);
__destroyItem(__newItem, false);
for (var _local2 in __itemsCache) {
__destroyItem(__itemsCache[_local2], false);
}
__masterBus.stop();
delete __itemsCache;
delete __disableLock;
__signal();
return(true);
}
function __prepareDestroy() {
if (!__prepared) {
return(false);
}
__prepared = false;
__wait();
__destroyItem(__newItem, true);
for (var _local3 in __itemsCache) {
var _local2 = __itemsCache[_local3];
if ((_local2 != __curItem) && (_local2 != __oldItem)) {
__destroyItem(_local2, true);
}
}
__curItem.__prepareDestroy();
__signal();
return(true);
}
function __disable(key) {
if ((__disableLock != null) && (__disableLock.lock(key))) {
__newItem.__disable("parent");
__curItem.__disable("parent");
}
}
function __enable(key) {
if ((__disableLock != null) && (__disableLock.unlock(key))) {
__newItem.__enable("parent");
__curItem.__enable("parent");
}
}
function __redisable() {
if ((__disableLock != null) && (__disableLock.__get__locked())) {
__newItem.__disable("parent");
__curItem.__disable("parent");
}
}
function __findContent(target) {
if ((!__created) || (target == null)) {
return(null);
}
var _local2 = null;
if (__curItem != null) {
_local2 = __curItem.__findContent(target);
}
if ((_local2 == null) && (__oldItem != null)) {
_local2 = __oldItem.__findContent(target);
}
return(_local2);
}
function __broadcastEvent(channel, eventName) {
__semaphore.invoke(__broadcaster, __broadcaster.broadcastEvent, arguments);
}
function __wait() {
__semaphore.wait();
}
function __signal() {
__semaphore.signal();
}
function __loadItem(itemName) {
if ((!__prepared) || (__getItemNode(itemName) == null)) {
return(false);
}
var _local2 = new Object();
_local2.itemName = itemName;
_local2.transitionInObject = __transitionInObject;
_local2.transitionOutObject = __transitionOutObject;
_local2.transitionMode = __transitionMode;
__loadItemSnapshot1(_local2);
return(true);
}
function __loadItemSnapshot1(snapshot) {
var self = this;
snapshot.newItem = __newItem;
snapshot.curItem = __curItem;
snapshot.oldItem = __oldItem;
snapshot.newItem.__resetEvents();
snapshot.curItem.__resetEvents();
snapshot.oldItem.__resetEvents();
snapshot.curItem.__prepareDestroy();
__wait();
if ((snapshot.newItem != null) && (snapshot.itemName != snapshot.newItem.__name)) {
__destroyItem(snapshot.newItem);
}
if ((snapshot.oldItem != null) && (snapshot.curItem != null)) {
snapshot.oldItem.__onTransitionOutComplete = function () {
if (snapshot.curItem.__transitionInCompleted) {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__onTransitionInComplete();
self.__loadItemSnapshot1(snapshot);
self.__signal();
}
};
snapshot.curItem.__onTransitionInComplete = function () {
if (snapshot.oldItem.__transitionOutCompleted) {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__onTransitionInComplete();
self.__loadItemSnapshot1(snapshot);
self.__signal();
}
};
if (snapshot.oldItem.__transitionOutCompleted) {
snapshot.oldItem.__onTransitionOutComplete();
}
__signal();
return(undefined);
}
if (snapshot.oldItem != null) {
snapshot.oldItem.__onTransitionOutComplete = function () {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__loadItemSnapshot2(snapshot);
self.__signal();
};
if (snapshot.oldItem.__transitionOutCompleted) {
snapshot.oldItem.__onTransitionOutComplete();
}
__signal();
return(undefined);
}
if ((snapshot.curItem != null) && ((snapshot.itemName == snapshot.curItem.__name) || (snapshot.transitionMode == "loadafter"))) {
snapshot.curItem.__onTransitionInComplete = function () {
self.__wait();
self.__onTransitionInComplete();
self.__handleItemTransitionOut(snapshot.curItem, snapshot.transitionOutObject);
self.__signal();
};
snapshot.curItem.__onTransitionOutComplete = function () {
self.__wait();
self.__destroyItem(snapshot.curItem, (snapshot.itemName == snapshot.curItem.__name) || (snapshot.curItem.__cache));
self.__loadItemSnapshot2(snapshot);
self.__signal();
};
if (snapshot.curItem.__transitionInCompleted) {
snapshot.curItem.__onTransitionInComplete();
}
__signal();
return(undefined);
}
if (snapshot.curItem != null) {
snapshot.curItem.__onTransitionInComplete = function () {
self.__wait();
self.__onTransitionInComplete();
self.__loadItemSnapshot2(snapshot);
self.__signal();
};
if (snapshot.curItem.__transitionInCompleted) {
snapshot.curItem.__onTransitionInComplete();
}
__signal();
return(undefined);
}
__loadItemSnapshot2(snapshot);
__signal();
}
function __loadItemSnapshot2(snapshot) {
var self = this;
snapshot.newItem = __newItem;
snapshot.curItem = __curItem;
snapshot.newItem.__resetEvents();
snapshot.curItem.__resetEvents();
__wait();
if ((snapshot.newItem == null) || (snapshot.itemName != snapshot.newItem.__name)) {
__destroyItem(snapshot.newItem);
snapshot.newItem = (__newItem = __createItem(snapshot.itemName));
if (snapshot.newItem == null) {
__signal();
return(undefined);
}
snapshot.newItem.__setChannel(__mainChannel);
snapshot.newItem.__setQueueLoader(__mainQueueLoader);
}
snapshot.newItem.__onLoadComplete = function () {
self.__wait();
self.__onLoadComplete();
self.__loadItemSnapshot3(snapshot);
self.__signal();
};
if (!snapshot.newItem.__loadStarted) {
__handleItemLoad(snapshot.newItem);
} else if (snapshot.newItem.__loadCompleted) {
snapshot.newItem.__onLoadComplete();
}
__signal();
}
function __loadItemSnapshot3(snapshot) {
var self = this;
snapshot.newItem = __newItem;
snapshot.curItem = __curItem;
snapshot.newItem.__resetEvents();
snapshot.curItem.__resetEvents();
__wait();
if ((snapshot.curItem != null) && (snapshot.transitionMode == "cross")) {
snapshot.curItem.__onTransitionOutComplete = function () {
if (snapshot.newItem.__transitionInCompleted) {
self.__wait();
self.__destroyItem(snapshot.curItem);
self.__onTransitionInComplete();
self.__signal();
}
};
snapshot.newItem.__onTransitionInComplete = function () {
if (snapshot.curItem.__transitionOutCompleted) {
self.__wait();
self.__destroyItem(snapshot.curItem);
self.__onTransitionInComplete();
self.__signal();
}
};
if (!snapshot.curItem.__transitionOutStarted) {
__handleItemTransitionOut(snapshot.curItem, snapshot.transitionOutObject);
} else if (snapshot.curItem.__transitionOutCompleted) {
snapshot.curItem.__onTransitionOutComplete();
}
if (!snapshot.newItem.__transitionInStarted) {
__handleItemTransitionIn(snapshot.newItem, snapshot.transitionInObject);
} else if (snapshot.newItem.__transitionInCompleted) {
snapshot.newItem.__onTransitionInComplete();
}
__signal();
return(undefined);
}
if (snapshot.curItem != null) {
snapshot.curItem.__onTransitionOutComplete = function () {
self.__wait();
self.__destroyItem(snapshot.curItem);
self.__handleItemTransitionIn(snapshot.newItem, snapshot.transitionInObject);
self.__signal();
};
snapshot.newItem.__onTransitionInComplete = function () {
self.__onTransitionInComplete();
};
if (!snapshot.curItem.__transitionOutStarted) {
__handleItemTransitionOut(snapshot.curItem, snapshot.transitionOutObject);
} else if (snapshot.curItem.__transitionOutCompleted) {
snapshot.curItem.__onTransitionOutComplete();
}
__signal();
return(undefined);
}
snapshot.newItem.__onTransitionInComplete = function () {
self.__onTransitionInComplete();
};
if (!snapshot.newItem.__transitionInStarted) {
__handleItemTransitionIn(snapshot.newItem, snapshot.transitionInObject);
} else if (snapshot.newItem.__transitionInCompleted) {
snapshot.newItem.__onTransitionInComplete();
}
__signal();
}
function __unloadItem() {
if ((!__created) || (((__newItem == null) && (__curItem == null)) && (__oldItem == null))) {
return(false);
}
var _local2 = new Object();
_local2.transitionOutObject = __transitionOutObject;
__unloadItemSnapshot(_local2);
return(true);
}
function __unloadItemSnapshot(snapshot) {
var self = this;
snapshot.newItem = __newItem;
snapshot.curItem = __curItem;
snapshot.oldItem = __oldItem;
snapshot.newItem.__resetEvents();
snapshot.curItem.__resetEvents();
snapshot.oldItem.__resetEvents();
snapshot.curItem.__prepareDestroy();
__wait();
__destroyItem(snapshot.newItem);
if ((snapshot.oldItem == null) && (snapshot.curItem == null)) {
__onTransitionOutComplete();
__signal();
return(undefined);
}
if ((snapshot.oldItem != null) && (snapshot.curItem != null)) {
snapshot.oldItem.__onTransitionOutComplete = function () {
if (snapshot.curItem.__transitionInCompleted) {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__onTransitionInComplete();
self.__unloadItemSnapshot(snapshot);
self.__signal();
}
};
snapshot.curItem.__onTransitionInComplete = function () {
if (snapshot.oldItem.__transitionOutCompleted) {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__onTransitionInComplete();
self.__unloadItemSnapshot(snapshot);
self.__signal();
}
};
if (snapshot.oldItem.__transitionOutCompleted) {
snapshot.oldItem.__onTransitionOutComplete();
}
__signal();
return(undefined);
}
if (snapshot.oldItem != null) {
snapshot.oldItem.__onTransitionOutComplete = function () {
self.__wait();
self.__destroyItem(snapshot.oldItem);
self.__onTransitionOutComplete();
self.__signal();
};
if (snapshot.oldItem.__transitionOutCompleted) {
snapshot.oldItem.__onTransitionOutComplete();
}
__signal();
return(undefined);
}
snapshot.curItem.__onTransitionInComplete = function () {
self.__wait();
self.__onTransitionInComplete();
self.__handleItemTransitionOut(snapshot.curItem, snapshot.transitionOutObject);
self.__signal();
};
snapshot.curItem.__onTransitionOutComplete = function () {
self.__wait();
self.__destroyItem(snapshot.curItem);
self.__onTransitionOutComplete();
self.__signal();
};
if (snapshot.curItem.__transitionInCompleted) {
snapshot.curItem.__onTransitionInComplete();
}
__signal();
}
function __precacheItem(itemName) {
if (!__prepared) {
return(false);
}
__wait();
var _local2 = __getFromCache(itemName);
if (_local2 == null) {
_local2 = __createItem(itemName);
}
if (_local2 == null) {
__signal();
return(false);
}
if (((_local2 != __newItem) && (_local2 != __curItem)) && (_local2 != __oldItem)) {
_local2.__setChannel(__precacheChannel);
_local2.__setQueueLoader(__precacheQueueLoader);
_local2.__load();
}
__signal();
return(true);
}
function __uncacheItem(itemName) {
if (!__created) {
return(false);
}
__wait();
var _local2 = __getFromCache(itemName);
if (_local2 == null) {
__signal();
return(false);
}
_local2.__cache = false;
if (((_local2 != __newItem) && (_local2 != __curItem)) && (_local2 != __oldItem)) {
__destroyItem(_local2, false);
}
__signal();
return(true);
}
function __uncacheAllItems() {
if (!__created) {
return(false);
}
__wait();
for (var _local2 in __itemsCache) {
__uncacheItem(_local2);
}
__signal();
return(true);
}
function __getItemNode(itemName) {
return(null);
}
function __createItem(itemName) {
__wait();
var _local2 = __getFromCache(itemName);
if (_local2 != null) {
_local2.__unload();
_local2.__resetEvents();
_local2.__moveToDepth(__itemsDepth++);
__signal();
return(_local2);
}
var _local3 = __getItemNode(itemName);
if (_local3 == null) {
__signal();
return(null);
}
_local2 = __createNewItem(_local3);
__addToCache(itemName, _local2);
__signal();
return(_local2);
}
function __createNewItem(itemNode) {
return(null);
}
function __destroyItem(item, keepCached) {
__wait();
if (__newItem == item) {
delete __newItem;
}
if (__curItem == item) {
delete __curItem;
}
if (__oldItem == item) {
delete __oldItem;
}
if (keepCached == null) {
keepCached = item.__cache;
}
item.__resetEvents();
if (keepCached) {
item.__unload();
} else {
__removeFromCache(item.__name);
__destroyOldItem(item);
}
__signal();
}
function __destroyOldItem(item) {
}
function __handleItemLoad(item) {
item.__load();
}
function __handleItemTransitionIn(item, transitionInObject) {
if ((__newItem == item) && (__curItem == null)) {
delete __newItem;
__curItem = item;
}
item.__transitionIn(transitionInObject);
}
function __handleItemTransitionOut(item, transitionOutObject) {
if ((__curItem == item) && (__oldItem == null)) {
delete __curItem;
__oldItem = item;
}
item.__transitionOut(transitionOutObject);
}
function __addToCache(itemName, item) {
__itemsCache[itemName] = item;
}
function __removeFromCache(itemName) {
if (__itemsCache[itemName] == null) {
return(false);
}
delete __itemsCache[itemName];
return(true);
}
function __getFromCache(itemName) {
return(__itemsCache[itemName]);
}
function __setX(x) {
__x = x;
__selfStub._x = __x;
}
function __setY(y) {
__y = y;
__selfStub._y = __y;
}
var __x = 0;
var __y = 0;
var __cache = false;
var __mainChannel = 1;
var __precacheChannel = -1;
var __constructed = false;
var __created = false;
var __prepared = false;
var __itemsDepth = 0;
var __transitionMode = "loadfirst";
}
Symbol 14 MovieClip [__Packages.com.akqa.sound.mixer.Bus] Frame 0
class com.akqa.sound.mixer.Bus
{
var __children, __garbageCollector, __parent;
function Bus (parent) {
__children = new Array();
if (!routeTo(parent)) {
routeTo(com.akqa.sound.mixer.MainMix);
}
__garbageCollector = new com.akqa.util.GarbageCollector(this);
__garbageCollector.addHandler(dispose);
}
function getGain() {
return(__gain);
}
function setGain(gain) {
__gain = gain;
__updateVolume();
}
function getVolume() {
return(__volume);
}
function setVolume(volume) {
__volume = volume;
__updateVolume();
}
function getPan() {
return(__pan);
}
function setPan(pan) {
__pan = pan;
__updatePan();
}
function start(secondsOffset, loops) {
var _local2 = 0;
while (_local2 < __children.length) {
__children[_local2].start(secondsOffset, loops);
_local2++;
}
}
function stop() {
var _local2 = 0;
while (_local2 < __children.length) {
__children[_local2].stop();
_local2++;
}
}
function routeTo(parent) {
if ((parent != com.akqa.sound.mixer.MainMix) && (!(parent instanceof com.akqa.sound.mixer.Bus))) {
return(false);
}
if (parent.__addChild(this)) {
__parent.__removeChild(this);
__parent = parent;
return(true);
}
return(false);
}
function setGarbageCollector(collector) {
__garbageCollector.setCollector(collector);
}
function dispose() {
__garbageCollector.setCollector(null);
var _local3 = __children.concat();
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[0].dispose();
_local2++;
}
stop();
__parent.__removeChild(this);
delete __parent;
}
function __inheritVolume(volumeInherited) {
__volumeInherited = volumeInherited;
__updateVolume();
}
function __inheritPan(panInherited) {
__panInherited = panInherited;
__updatePan();
}
function __update() {
__updateVolume();
__updatePan();
}
function __updateVolume() {
var _local3 = (__gain * (__volume / 100)) * (__volumeInherited / 100);
var _local2 = 0;
while (_local2 < __children.length) {
__children[_local2].__inheritVolume(_local3);
_local2++;
}
}
function __updatePan() {
var _local3 = __pan;
if (__panInherited > 0) {
_local3 = _local3 + ((100 - __pan) * (__panInherited / 100));
} else if (__panInherited < 0) {
_local3 = _local3 + ((100 + __pan) * (__panInherited / 100));
}
var _local2 = 0;
while (_local2 < __children.length) {
__children[_local2].__inheritPan(_local3);
_local2++;
}
}
function __addChild(child) {
if (__isDescendantOf(child)) {
return(false);
}
if (__parent == null) {
routeTo(com.akqa.sound.mixer.MainMix);
}
__children.push(child);
__update();
return(true);
}
function __removeChild(child) {
var _local2 = 0;
while (_local2 < __children.length) {
if (__children[_local2] == child) {
__children.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function __isDescendantOf(ancestor) {
if (ancestor == this) {
return(true);
}
if (__parent == null) {
return(false);
}
return(__parent.__isDescendantOf(ancestor));
}
var __gain = 100;
var __volume = 100;
var __volumeInherited = 100;
var __pan = 0;
var __panInherited = 0;
}
Symbol 15 MovieClip [__Packages.com.akqa.util.GarbageCollector] Frame 0
class com.akqa.util.GarbageCollector
{
var __scope, __handlers, __collector;
function GarbageCollector (scope, collector) {
__scope = scope;
__handlers = new Array();
setCollector(collector);
}
function get collected() {
return(__collected);
}
function setCollector(collector) {
__collected = false;
delete __collector.onUnload;
__collector.removeMovieClip();
if ((!(collector instanceof MovieClip)) || (collector == _level0)) {
return(undefined);
}
var self = this;
__collector = com.akqa.util.UtilityStubManager.createLocalStub(collector);
__collector.onUnload = function () {
self.__collectGarbage();
};
}
function addHandler(method) {
if (!(method instanceof Function)) {
return(undefined);
}
removeHandler(method);
__handlers.push(method);
}
function removeHandler(method) {
var _local2 = 0;
while (_local2 < __handlers.length) {
if (__handlers[_local2] == method) {
__handlers.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function __collectGarbage() {
if (__collected) {
return(false);
}
__collected = true;
var _local4 = __handlers.concat();
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local3.apply(__scope);
_local2++;
}
return(true);
}
var __collected = false;
}
Symbol 16 MovieClip [__Packages.com.akqa.util.UtilityStubManager] Frame 0
class com.akqa.util.UtilityStubManager
{
function UtilityStubManager () {
}
static function createRootStub() {
return(createLocalStub(_level0));
}
static function createLocalRootStub(target) {
while ((target._parent != null) && (target._parent._url == target._url)) {
target = target._parent;
}
return(createLocalStub(target));
}
static function createLocalStub(target) {
if (!(target instanceof MovieClip)) {
return(null);
}
var _local1 = target.__utilityStubs;
if (_local1 == null) {
_local1 = target.createEmptyMovieClip("__utilityStubs", -654321);
_local1.__stubDepth = 0;
}
var _local3 = _local1.createEmptyMovieClip("__utilityStub" + _local1.__stubDepth, _local1.__stubDepth++);
_local1._visible = false;
return(_local3);
}
}
Symbol 17 MovieClip [__Packages.com.akqa.sound.mixer.MainMix] Frame 0
class com.akqa.sound.mixer.MainMix
{
function MainMix () {
}
static function getGain() {
return(__mainBus.getGain());
}
static function setGain(gain) {
__mainBus.setGain(gain);
}
static function getVolume() {
return(__mainBus.getVolume());
}
static function setVolume(volume) {
__mainBus.setVolume(volume);
}
static function getPan() {
return(__mainBus.getPan());
}
static function setPan(pan) {
__mainBus.setPan(pan);
}
static function start(secondsOffset, loops) {
__mainBus.start(secondsOffset, loops);
}
static function stop() {
__mainBus.stop();
}
static function __addChild(child) {
return(__mainBus.__addChild(child));
}
static function __removeChild(child) {
return(__mainBus.__removeChild(child));
}
static var __mainBus = new com.akqa.sound.mixer.Bus();
}
Symbol 18 MovieClip [__Packages.com.akqa.util.Semaphore] Frame 0
class com.akqa.util.Semaphore
{
var __methodCalls;
function Semaphore () {
__methodCalls = new Array();
}
function invoke(scope, method, parameters) {
if (!(method instanceof Function)) {
return(undefined);
}
var _local2 = new Object();
_local2.scope = scope;
_local2.method = method;
_local2.parameters = parameters;
__methodCalls.push(_local2);
__tryInvoking();
}
function wait() {
__waiting++;
}
function signal() {
__waiting--;
__tryInvoking();
}
function __tryInvoking() {
if (__invoking) {
return(undefined);
}
__invoking = true;
while ((__waiting <= 0) && (__methodCalls.length > 0)) {
var _local2 = __methodCalls.shift();
_local2.method.apply(_local2.scope, _local2.parameters);
}
__invoking = false;
}
var __waiting = 0;
var __invoking = false;
}
Symbol 19 MovieClip [__Packages.com.akqa.loaders.QueueLoaderTree] Frame 0
class com.akqa.loaders.QueueLoaderTree
{
var __parent, __root, __queue, __semaphore, __children, __broadcaster, __garbageCollector;
function QueueLoaderTree (parent) {
__parent = parent;
if (!(__parent instanceof com.akqa.loaders.QueueLoaderTree)) {
__root = this;
__depth = 0;
__queue = new Array();
__semaphore = new com.akqa.util.Semaphore();
} else {
__root = __parent.__root;
__depth = __parent.__depth + 1;
__queue = __parent.__queue;
__semaphore = __parent.__semaphore;
__parent.__addChild(this);
}
__children = new Array();
__broadcaster = new com.akqa.event.EventBroadcaster();
__garbageCollector = new com.akqa.util.GarbageCollector(this);
__garbageCollector.addHandler(dequeueAll);
}
function get length() {
return(__filesTotal - __filesLoaded);
}
function get priority() {
return(__root.__priority);
}
function set priority(priority) {
if (__root == this) {
__priority = priority.toLowerCase();
if ((__priority != "parents") && (__priority != "children")) {
__priority = "none";
}
}
//return(this.priority);
}
function enqueue(target, url) {
if (((__disposed || (target == null)) || (url.length <= 0)) || (__garbageCollected())) {
return(undefined);
}
__wait();
__root.dequeue(target);
var _local5 = __createFileObject(target, url);
var _local6 = false;
var _local2 = __root.__queue;
if (__root.__priority == "parents") {
var _local3 = 0;
while (_local3 < _local2.length) {
var _local4 = _local2[_local3];
if (_local4.queueLoader.__depth > __depth) {
_local2.splice(_local3, 0, _local5);
_local6 = true;
break;
}
_local3++;
}
} else if (__root.__priority == "children") {
var _local3 = 0;
while (_local3 < _local2.length) {
var _local4 = _local2[_local3];
if (_local4.queueLoader.__depth < __depth) {
_local2.splice(_local3, 0, _local5);
_local6 = true;
break;
}
_local3++;
}
}
if (!_local6) {
_local2.push(_local5);
}
__adjustFilesTotal(1);
__root.__loadNextFile();
__signal();
}
function dequeue(targetOrURL) {
__wait();
if (typeof(targetOrURL) == "string") {
var _local6 = false;
var _local4 = __root.__queue;
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
if ((_local2.url == targetOrURL) && (_local2.queueLoader.__isDescendantOf(this))) {
_local4.splice(_local3--, 1);
_local2.queueLoader.__adjustFilesTotal(-1);
_local2.queueLoader.__broadcastQueueComplete();
_local6 = true;
}
_local3++;
}
var _local7 = __root.__currentFile;
if (((_local7 != null) && (_local7.url == targetOrURL)) && (_local7.queueLoader.__isDescendantOf(this))) {
_local7.fileLoader.abort(_local7.target);
_local6 = true;
}
__root.__loadNextFile();
__signal();
return(_local6);
}
var _local7 = __root.__currentFile;
if (((_local7 != null) && (_local7.target == targetOrURL)) && (_local7.queueLoader.__isDescendantOf(this))) {
_local7.fileLoader.abort(_local7.target);
__root.__loadNextFile();
__signal();
return(true);
}
var _local4 = __root.__queue;
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
if ((_local2.target == targetOrURL) && (_local2.queueLoader.__isDescendantOf(this))) {
_local4.splice(_local3, 1);
_local2.queueLoader.__adjustFilesTotal(-1);
_local2.queueLoader.__broadcastQueueComplete();
__root.__loadNextFile();
__signal();
return(true);
}
_local3++;
}
__signal();
return(false);
}
function dequeueAll() {
__wait();
var _local4 = __root.__queue;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
if (_local3.queueLoader.__isDescendantOf(this)) {
_local4.splice(_local2--, 1);
_local3.queueLoader.__adjustFilesTotal(-1);
_local3.queueLoader.__broadcastQueueComplete();
}
_local2++;
}
var _local5 = __root.__currentFile;
if ((_local5 != null) && (_local5.queueLoader.__isDescendantOf(this))) {
_local5.fileLoader.abort(_local5.target);
}
__root.__loadNextFile();
__signal();
}
function prioritize(target) {
var _local8 = __root.__currentFile;
if (((_local8 != null) && (_local8.target == target)) && (_local8.queueLoader.__isDescendantOf(this))) {
return(true);
}
var _local3 = __root.__queue;
var _local5 = 0;
while (_local5 < _local3.length) {
var _local2 = _local3[_local5];
if ((_local2.target == target) && (_local2.queueLoader.__isDescendantOf(this))) {
_local3.splice(_local5, 1);
if (__root.__priority == "parents") {
var _local4 = _local5 - 1;
while (_local4 >= 0) {
var _local6 = _local3[_local4];
if (_local6.queueLoader.__depth < _local2.queueLoader.__depth) {
_local3.splice(_local4 + 1, 0, _local2);
return(true);
}
_local4--;
}
} else if (__root.__priority == "children") {
var _local4 = _local5 - 1;
while (_local4 >= 0) {
var _local6 = _local3[_local4];
if (_local6.queueLoader.__depth > _local2.queueLoader.__depth) {
_local3.splice(_local4 + 1, 0, _local2);
return(true);
}
_local4--;
}
}
_local3.unshift(_local2);
return(true);
}
_local5++;
}
return(false);
}
function addListener(listener) {
__broadcaster.addListener(listener);
}
function removeListener(listener) {
return(__broadcaster.removeListener(listener));
}
function setGarbageCollector(collector) {
__garbageCollector.setCollector(collector);
}
function dispose() {
if (__disposed) {
return(undefined);
}
__disposed = true;
__wait();
dequeueAll();
var _local3 = __children.concat();
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].dispose();
_local2++;
}
__parent.__removeChild(this);
delete __root;
delete __parent;
delete __depth;
delete __children;
delete __queue;
delete __currentFile;
delete __filesLoaded;
delete __filesTotal;
delete __priority;
delete __running;
delete __broadcaster;
delete __garbageCollector;
__signal();
}
function __createFileObject(target, url) {
var _local2 = new Object();
_local2.target = target;
_local2.url = url;
_local2.queueLoader = this;
_local2.fileLoader = new com.akqa.loaders.FileLoader();
_local2.fileLoader.addListener(_local2);
_local2.onLoadStart = function (target, url) {
this.queueLoader.__wait();
this.queueLoader.__broadcastQueueStart();
this.queueLoader.__broadcastLoadStart(target, url);
this.queueLoader.__signal();
};
_local2.onLoadProgress = function (bytesLoaded, bytesTotal, target, url) {
this.queueLoader.__wait();
this.queueLoader.__broadcastLoadProgress(bytesLoaded, bytesTotal, target, url);
this.queueLoader.__broadcastQueueProgress(bytesLoaded, bytesTotal);
this.queueLoader.__signal();
};
_local2.onLoadComplete = function (target, url) {
this.queueLoader.__wait();
this.queueLoader.__root.__currentFile = null;
this.queueLoader.__adjustFilesLoaded(1);
this.queueLoader.__broadcastLoadComplete(target, url);
this.queueLoader.__broadcastQueueComplete();
this.queueLoader.__root.__loadNextFile();
this.queueLoader.__signal();
};
_local2.onLoadAbort = function (target, url) {
this.queueLoader.__wait();
this.queueLoader.__root.__currentFile = null;
this.queueLoader.__adjustFilesTotal(-1);
this.queueLoader.__broadcastLoadAbort(target, url);
this.queueLoader.__broadcastQueueComplete();
this.queueLoader.__root.__loadNextFile();
this.queueLoader.__signal();
};
_local2.onLoadError = function (errorCode, errorMessage, target, url) {
this.queueLoader.__wait();
this.queueLoader.__broadcastLoadError(errorCode, errorMessage, target, url);
this.queueLoader.__signal();
};
return(_local2);
}
function __loadNextFile() {
if (__root.__currentFile != null) {
return(undefined);
}
__wait();
var _local3 = __root.__queue;
while (_local3.length > 0) {
var _local2 = (__root.__currentFile = _local3.shift());
if (_local2.fileLoader.load(_local2.target, _local2.url)) {
break;
}
__root.__currentFile = null;
_local2.queueLoader.__adjustFilesTotal(-1);
_local2.queueLoader.__broadcastQueueComplete();
}
__signal();
}
function __broadcastQueueStart() {
__parent.__broadcastQueueStart();
if ((!__running) && (__filesLoaded < __filesTotal)) {
__running = true;
__broadcastEvent("onQueueStart");
}
}
function __broadcastQueueProgress(bytesLoaded, bytesTotal) {
var _local3 = __filesLoaded + (bytesLoaded / bytesTotal);
var _local2 = __filesTotal;
__broadcastEvent("onQueueProgress", _local3, _local2);
__parent.__broadcastQueueProgress(bytesLoaded, bytesTotal);
}
function __broadcastQueueComplete() {
if (__running && (__filesLoaded == __filesTotal)) {
__filesLoaded = 0;
__filesTotal = 0;
__running = false;
__broadcastEvent("onQueueComplete");
}
__parent.__broadcastQueueComplete();
}
function __broadcastLoadStart(target, url) {
__broadcastEvent("onLoadStart", target, url);
__parent.__broadcastLoadStart(target, url);
}
function __broadcastLoadProgress(bytesLoaded, bytesTotal, target, url) {
__broadcastEvent("onLoadProgress", bytesLoaded, bytesTotal, target, url);
__parent.__broadcastLoadProgress(bytesLoaded, bytesTotal, target, url);
}
function __broadcastLoadComplete(target, url) {
__broadcastEvent("onLoadComplete", target, url);
__parent.__broadcastLoadComplete(target, url);
}
function __broadcastLoadAbort(target, url) {
__broadcastEvent("onLoadAbort", target, url);
__parent.__broadcastLoadAbort(target, url);
}
function __broadcastLoadError(errorCode, errorMessage, target, url) {
__broadcastEvent("onLoadError", errorCode, errorMessage, target, url);
__parent.__broadcastLoadError(errorCode, errorMessage, target, url);
}
function __adjustFilesLoaded(value) {
__filesLoaded = __filesLoaded + value;
__parent.__adjustFilesLoaded(value);
}
function __adjustFilesTotal(value) {
__filesTotal = __filesTotal + value;
__parent.__adjustFilesTotal(value);
}
function __addChild(child) {
if (__disposed || (__isDescendantOf(child))) {
return(false);
}
__children.push(child);
return(true);
}
function __removeChild(child) {
var _local2 = 0;
while (_local2 < __children.length) {
if (__children[_local2] == child) {
__children.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function __isDescendantOf(ancestor) {
if (ancestor == this) {
return(true);
}
if (__parent == null) {
return(false);
}
return(__parent.__isDescendantOf(ancestor));
}
function __garbageCollected() {
if (__garbageCollector.__get__collected()) {
return(true);
}
if (__parent != null) {
return(__parent.__garbageCollected());
}
return(false);
}
function __broadcastEvent(eventName) {
__semaphore.invoke(__broadcaster, __broadcaster.broadcastEvent, arguments);
}
function __wait() {
__semaphore.wait();
}
function __signal() {
__semaphore.signal();
}
var __depth = 0;
var __currentFile = null;
var __filesLoaded = 0;
var __filesTotal = 0;
var __priority = "none";
var __running = false;
var __disposed = false;
}
Symbol 20 MovieClip [__Packages.com.akqa.loaders.FileLoader] Frame 0
class com.akqa.loaders.FileLoader
{
var __fileObjects, __intervals, __semaphore, __broadcaster, __garbageCollector;
function FileLoader () {
__fileObjects = new Array();
__intervals = new com.akqa.util.IntervalManager();
__semaphore = new com.akqa.util.Semaphore();
__broadcaster = new com.akqa.event.EventBroadcaster();
__garbageCollector = new com.akqa.util.GarbageCollector(this);
__garbageCollector.addHandler(abortAll);
}
function load(target, url) {
if (__garbageCollector.__get__collected()) {
return(false);
}
__wait();
abort(target);
if (url.length <= 0) {
__broadcastEvent("onLoadError", "Load.Fail", "URL is undefined.", target, url);
__signal();
return(false);
}
if ((target == null) || ((target instanceof MovieClip) && (eval (target) == null))) {
__broadcastEvent("onLoadError", "Load.Fail", "Target is undefined.", target, url);
__signal();
return(false);
}
if (!(target.getBytesLoaded instanceof Function)) {
__broadcastEvent("onLoadError", "Load.Fail", "Target must implement method getBytesLoaded().", target, url);
__signal();
return(false);
}
if (!(target.getBytesTotal instanceof Function)) {
__broadcastEvent("onLoadError", "Load.Fail", "Target must implement method getBytesTotal().", target, url);
__signal();
return(false);
}
var fileObject = new Object();
fileObject.target = target;
fileObject.url = url;
fileObject.isMovieClip = target instanceof MovieClip;
fileObject.waitAnInterval = fileObject.isMovieClip;
fileObject.intervalLoad;
if (target.load instanceof Function) {
fileObject.load = function () {
this.target.load(this.url);
};
} else if (target.loadMovie instanceof Function) {
fileObject.load = function () {
this.target.loadMovie(this.url);
};
} else if (target.loadSound instanceof Function) {
fileObject.load = function () {
this.target.loadSound(this.url);
};
} else {
__broadcastEvent("onLoadError", "Load.Fail", "Load method not found.", target, url);
__signal();
return(false);
}
__fileObjects.push(fileObject);
__handleLoadStart(fileObject);
__signal();
return(true);
}
function abort(targetOrURL) {
__wait();
if (typeof(targetOrURL) == "string") {
var _local4 = __fileObjects.concat();
var _local6 = false;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
if (_local3.url == targetOrURL) {
_local6 = true;
__handleLoadAbort(_local3);
}
_local2++;
}
__signal();
return(_local6);
}
var _local2 = 0;
while (_local2 < __fileObjects.length) {
var _local3 = __fileObjects[_local2];
if (_local3.target == targetOrURL) {
__handleLoadAbort(_local3);
__signal();
return(true);
}
_local2++;
}
__signal();
return(false);
}
function abortAll() {
__wait();
var _local3 = __fileObjects.concat();
var _local2 = 0;
while (_local2 < _local3.length) {
__handleLoadAbort(_local3[_local2]);
_local2++;
}
__signal();
}
function addListener(listener) {
__broadcaster.addListener(listener);
}
function removeListener(listener) {
return(__broadcaster.removeListener(listener));
}
function setGarbageCollector(collector) {
__garbageCollector.setCollector(collector);
}
function __handleLoadStart(fileObject) {
fileObject.load();
__intervals.clearInterval(fileObject.intervalLoad);
fileObject.intervalLoad = __intervals.setInterval(this, __handleLoadProgress, 100, fileObject);
__broadcastEvent("onLoadStart", fileObject.target, fileObject.url);
}
function __handleLoadProgress(fileObject) {
__wait();
if (fileObject.isMovieClip) {
if (eval (fileObject.target) == null) {
__broadcastEvent("onLoadError", "Load.Fail", "Target is undefined.", fileObject.target, fileObject.url);
__handleLoadAbort(fileObject);
__signal();
return(undefined);
}
}
var bytesTotal = fileObject.target.getBytesTotal();
if (bytesTotal > 4) {
var bytesLoaded = Math.min(fileObject.target.getBytesLoaded(), bytesTotal);
__broadcastEvent("onLoadProgress", bytesLoaded, bytesTotal, fileObject.target, fileObject.url);
if (bytesLoaded == bytesTotal) {
if (fileObject.waitAnInterval) {
fileObject.waitAnInterval = false;
} else {
__handleLoadComplete(fileObject);
}
}
}
__signal();
}
function __handleLoadComplete(fileObject) {
__intervals.clearInterval(fileObject.intervalLoad);
if (__removeFileObject(fileObject)) {
__broadcastEvent("onLoadComplete", fileObject.target, fileObject.url);
}
}
function __handleLoadAbort(fileObject) {
__intervals.clearInterval(fileObject.intervalLoad);
if (__removeFileObject(fileObject)) {
__broadcastEvent("onLoadAbort", fileObject.target, fileObject.url);
}
}
function __removeFileObject(fileObject) {
var _local2 = 0;
while (_local2 < __fileObjects.length) {
if (__fileObjects[_local2] == fileObject) {
__fileObjects.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function __broadcastEvent(eventName) {
__semaphore.invoke(__broadcaster, __broadcaster.broadcastEvent, arguments);
}
function __wait() {
__semaphore.wait();
}
function __signal() {
__semaphore.signal();
}
}
Symbol 21 MovieClip [__Packages.com.akqa.util.IntervalManager] Frame 0
class com.akqa.util.IntervalManager
{
var __intervals, __garbageCollector;
function IntervalManager () {
__intervals = new Object();
__garbageCollector = new com.akqa.util.GarbageCollector(this);
__garbageCollector.addHandler(clearAllIntervals);
}
function setInterval(scope, method, milliseconds) {
function doInterval() {
method.apply(scope, parameters);
}
if ((__garbageCollector.__get__collected() || (!(method instanceof Function))) || (milliseconds == null)) {
return(null);
}
var _local6 = this;
var parameters = arguments.slice(3, arguments.length);
var _local4 = __intervalId++;
__intervals[_local4] = _global.setInterval(doInterval, milliseconds);
return(_local4);
}
function clearInterval(intervalId) {
if (__intervals[intervalId] == null) {
return(false);
}
_global.clearInterval(__intervals[intervalId]);
delete __intervals[intervalId];
return(true);
}
function clearAllIntervals() {
for (var _local3 in __intervals) {
_global.clearInterval(__intervals[_local3]);
}
__intervals = new Object();
}
function setGarbageCollector(collector) {
__garbageCollector.setCollector(collector);
}
static var __intervalId = 0;
}
Symbol 22 MovieClip [__Packages.com.akqa.util.SharedLock] Frame 0
class com.akqa.util.SharedLock
{
var __keys;
function SharedLock () {
__keys = new Object();
}
function get locked() {
return(__isLocked());
}
function lock(key) {
var _local3 = __isLocked();
key = __formatKey(key);
__keys[key] = true;
return(_local3 != __isLocked());
}
function unlock(key) {
var _local3 = __isLocked();
key = __formatKey(key);
delete __keys[key];
return(_local3 != __isLocked());
}
function unlockAll() {
__keys = new Object();
}
function __formatKey(key) {
if (key == null) {
return("null");
}
return("__" + key);
}
function __isLocked() {
for (var _local2 in __keys) {
return(true);
}
return(false);
}
}
Symbol 23 MovieClip [__Packages.com.akqa.event.ChannelBroadcaster] Frame 0
class com.akqa.event.ChannelBroadcaster
{
var __channels;
function ChannelBroadcaster () {
__channels = new Object();
addChannel(0);
}
function addChannel(channel) {
if ((channel == null) || (__channels[channel] != null)) {
return(undefined);
}
__channels[channel] = new com.akqa.event.EventBroadcaster();
}
function removeChannel(channel) {
if ((channel == 0) || (__channels[channel] == null)) {
return(false);
}
delete __channels[channel];
return(true);
}
function addListener(listener, channel) {
if (channel == null) {
channel = 0;
}
addChannel(channel);
var _local3 = __channels[channel];
if (_local3 != null) {
_local3.addListener(listener);
}
}
function removeListener(listener, channel) {
if (channel == null) {
channel = 0;
}
var _local2 = __channels[channel];
if (_local2 != null) {
return(_local2.removeListener(listener));
}
return(false);
}
function broadcastEvent(channel, eventName) {
if (channel == null) {
return(undefined);
}
arguments.shift();
var _local3 = __channels[channel];
if (_local3 != null) {
_local3.broadcastEvent.apply(_local3, arguments);
}
}
}
Symbol 24 MovieClip [__Packages.com.akqa.shell.AbstractShellItem] Frame 0
class com.akqa.shell.AbstractShellItem
{
var __parent, __foreground, __mainground, __background, __masterBus, __name, __settings, __paths, __assets, __target, __curChannel, __curQueueLoader, __onLoadComplete, __onTransitionInComplete, __onTransitionOutComplete, __shell, __node, __selfStub, __assetsStub, __assetsArray, __loadListener, __loadListener1, __transitionInInstance, __transitionOutInstance, __transitionInListener, __transitionOutListener, __disableLock, __garbageCollector, __semaphore;
function AbstractShellItem () {
}
function get parent() {
return(__parent);
}
function get foreground() {
return(__foreground);
}
function get mainground() {
return(__mainground);
}
function get background() {
return(__background);
}
function get x() {
return(__x);
}
function set x(x) {
__setX(x);
//return(this.x);
}
function get y() {
return(__y);
}
function set y(y) {
__setY(y);
//return(this.y);
}
function get cache() {
return(__cache);
}
function set cache(cache) {
__cache = cache;
//return(this.cache);
}
function get masterBus() {
return(__masterBus);
}
function get name() {
return(__name);
}
function get settings() {
return(__settings);
}
function get paths() {
return(__paths);
}
function get assets() {
return(__assets);
}
function disable(key) {
__disable("__" + key);
}
function enable(key) {
__enable("__" + key);
}
function __construct(target, depth, shell, parent, node) {
if ((target == null) || (__constructed)) {
return(false);
}
__parent = null;
__foreground = null;
__mainground = null;
__background = null;
__x = 0;
__y = 0;
__cache = false;
__masterBus = null;
__name = null;
__settings = null;
__paths = null;
__assets = null;
__target = null;
__depth = 0;
__curChannel = null;
__curQueueLoader = null;
__onLoadComplete = null;
__onTransitionInComplete = null;
__onTransitionOutComplete = null;
__constructed = false;
__created = false;
__prepared = false;
__loadStarted = false;
__loadBroadcasted = false;
__loadCompleted = false;
__transitionInStarted = false;
__transitionInCompleted = false;
__transitionIn1Completed = false;
__transitionIn2Completed = false;
__transitionOutStarted = false;
__transitionOutCompleted = false;
__transitionOut1Completed = false;
__transitionOut2Completed = false;
__activated = false;
__shell = null;
__node = null;
__selfStub = null;
__assetsStub = null;
__assetsDepth = 0;
__assetsArray = null;
__loadListener = null;
__loadListener1 = null;
__transitionInInstance = null;
__transitionOutInstance = null;
__transitionInListener = null;
__transitionOutListener = null;
__disableLock = null;
__garbageCollector = null;
__constructed = true;
__target = target;
__depth = ((depth != null) ? (depth) : 0);
__shell = shell;
__parent = parent;
__node = node;
__semaphore = __shell.__semaphore;
__selfStub = __target.createEmptyMovieClip("__item" + __depth, __depth);
__foreground = __selfStub.createEmptyMovieClip("__foreground", 1);
__mainground = __selfStub.createEmptyMovieClip("__mainground", 0);
__background = __selfStub.createEmptyMovieClip("__background", -1);
__assetsStub = __selfStub.createEmptyMovieClip("__assets", -100);
__masterBus = new com.akqa.sound.mixer.Bus(__parent.__masterBus);
__selfStub._visible = false;
__assetsStub._visible = false;
__garbageCollector = new com.akqa.util.GarbageCollector(this, __selfStub);
__garbageCollector.addHandler(__deconstruct);
__processNode(__node);
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__constructed = false;
__wait();
__garbageCollector.setCollector(null);
__destroy();
__masterBus.dispose();
__curQueueLoader.dispose();
__selfStub.removeMovieClip();
delete __parent;
delete __foreground;
delete __mainground;
delete __background;
delete __x;
delete __y;
delete __cache;
delete __masterBus;
delete __name;
delete __settings;
delete __paths;
delete __assets;
delete __target;
delete __depth;
delete __curChannel;
delete __curQueueLoader;
delete __onLoadComplete;
delete __onTransitionInComplete;
delete __onTransitionOutComplete;
delete __constructed;
delete __created;
delete __prepared;
delete __loadStarted;
delete __loadBroadcasted;
delete __loadCompleted;
delete __transitionInStarted;
delete __transitionInCompleted;
delete __transitionIn1Completed;
delete __transitionIn2Completed;
delete __transitionOutStarted;
delete __transitionOutCompleted;
delete __transitionOut1Completed;
delete __transitionOut2Completed;
delete __activated;
delete __shell;
delete __node;
delete __selfStub;
delete __assetsStub;
delete __assetsDepth;
delete __assetsArray;
delete __loadListener;
delete __loadListener1;
delete __transitionInInstance;
delete __transitionOutInstance;
delete __transitionInListener;
delete __transitionOutListener;
delete __disableLock;
delete __garbageCollector;
__signal();
return(true);
}
function __create() {
if ((!__constructed) || (__created)) {
return(false);
}
__created = true;
var _local3 = Number(__node.attributes.x);
var _local2 = Number(__node.attributes.y);
if (!isNaN(_local3)) {
__setX(_local3);
}
if (!isNaN(_local2)) {
__setY(_local2);
}
if (__node.attributes.cache.toLowerCase() == "false") {
__cache = false;
} else {
__cache = __parent.__cache || (__node.attributes.cache.toLowerCase() == "true");
}
return(true);
}
function __destroy() {
if (!__created) {
return(false);
}
__created = false;
__wait();
__unload();
var _local2 = __assetsArray.length - 1;
while (_local2 >= 0) {
__destroyAssetTarget(__assetsArray[_local2]);
_local2--;
}
__signal();
return(true);
}
function __prepareDestroy() {
if (!__prepared) {
return(false);
}
__prepared = false;
__wait();
__disable("transitionOut");
__signal();
return(true);
}
function __load() {
if ((!__created) || (__loadStarted)) {
return(false);
}
__loadStarted = true;
__wait();
var self = this;
__loadListener = new Object();
__loadListener.onQueueStart = function () {
self.__loadBroadcast();
};
__loadListener.onQueueComplete = function () {
self.__loadComplete();
};
__curQueueLoader.addListener(__loadListener);
__disableLock = new com.akqa.util.SharedLock();
__parent.__redisable();
__load1();
__load2();
if (__curQueueLoader.__get__length() == 0) {
__loadComplete();
}
__signal();
return(true);
}
function __load1() {
var self = this;
__loadListener1 = new Object();
__loadListener1.onLoadComplete = function (target, url) {
var _local1 = 0;
while (_local1 < self.__assetsArray.length) {
var _local2 = self.__assetsArray[_local1];
if (_local2.target == target) {
_local2.loaded = true;
if (_local1 == (self.__assetsArray.length - 1)) {
self.__load1Complete();
}
return(undefined);
}
_local1++;
}
};
__curQueueLoader.addListener(__loadListener1);
var _local4 = false;
var _local3 = 0;
while (_local3 < __assetsArray.length) {
var _local2 = __assetsArray[_local3];
if (!_local2.loaded) {
__createAssetTarget(_local2);
if (_local2.target != null) {
__curQueueLoader.enqueue(_local2.target, _local2.url);
_local4 = true;
}
}
_local3++;
}
if (!_local4) {
__load1Complete();
}
}
function __load2() {
}
function __load1Complete() {
__curQueueLoader.removeListener(__loadListener1);
delete __loadListener1;
}
function __load2Complete() {
}
function __loadBroadcast() {
if ((!__loadStarted) || (__loadBroadcasted)) {
return(undefined);
}
__loadBroadcasted = true;
__broadcastEvent("LoadStart", this);
}
function __loadComplete() {
if ((!__loadStarted) || (__loadCompleted)) {
return(undefined);
}
__loadCompleted = true;
__wait();
__curQueueLoader.removeListener(__loadListener);
delete __loadListener;
__loadBroadcast();
__broadcastEvent("LoadComplete", this);
__onLoadComplete();
__signal();
}
function __unload() {
if (!__loadStarted) {
return(false);
}
__wait();
__prepareDestroy();
if (__transitionInStarted) {
__transitionIn1Complete();
__transitionIn2Complete();
}
if (__transitionOutStarted) {
__transitionOut1Complete();
__transitionOut2Complete();
}
__curQueueLoader.removeListener(__loadListener);
delete __loadListener;
__deactivate();
__unload2();
__unload1();
if (__loadBroadcasted) {
if (!__loadCompleted) {
__broadcastEvent("LoadAbort", this);
}
__broadcastEvent("Unload", this);
}
__masterBus.stop();
delete __disableLock;
__loadStarted = false;
__loadBroadcasted = false;
__loadCompleted = false;
__transitionInStarted = false;
__transitionInCompleted = false;
__transitionIn1Completed = false;
__transitionIn2Completed = false;
__transitionOutStarted = false;
__transitionOutCompleted = false;
__transitionOut1Completed = false;
__transitionOut2Completed = false;
__signal();
return(true);
}
function __unload1() {
__curQueueLoader.removeListener(__loadListener1);
delete __loadListener1;
var _local2 = __assetsArray.length - 1;
while (_local2 >= 0) {
var _local3 = __assetsArray[_local2];
if (!_local3.loaded) {
__curQueueLoader.dequeue(_local3.target);
__destroyAssetTarget(_local3);
}
_local2--;
}
}
function __unload2() {
}
function __transitionIn(transitionObject) {
if ((!__loadCompleted) || (__transitionInStarted)) {
return(false);
}
__prepared = true;
__transitionInStarted = true;
__wait();
__activate();
__disable("transitionIn");
__enable("transitionOut");
__broadcastEvent("TransitionInStart", this);
__transitionIn1(transitionObject);
__transitionIn2();
__signal();
return(true);
}
function __transitionIn1(transitionObject) {
if (transitionObject != null) {
__transitionInInstance = new transitionObject.transitionClass(__selfStub, transitionObject.duration, transitionObject.easing, transitionObject.options);
} else {
__transitionInInstance = null;
}
var self = this;
if (__transitionInInstance.transitionIn instanceof Function) {
__transitionInListener = new Object();
__transitionInListener.onTransitionComplete = function () {
self.__transitionIn1Complete();
};
__transitionInInstance.addListener(__transitionInListener);
__transitionInInstance.transitionIn();
} else {
__transitionIn1Complete();
}
}
function __transitionIn2() {
}
function __transitionIn1Complete() {
__transitionInInstance.removeListener(__transitionInListener);
__transitionInInstance.stop();
__transitionInInstance.clear();
__transitionIn1Completed = true;
__transitionInComplete();
}
function __transitionIn2Complete() {
__transitionIn2Completed = true;
__transitionInComplete();
}
function __transitionInComplete() {
if (((!__transitionIn1Completed) || (!__transitionIn2Completed)) || (__transitionInCompleted)) {
return(undefined);
}
__transitionInCompleted = true;
__wait();
__enable("transitionIn");
__broadcastEvent("TransitionInComplete", this);
__onTransitionInComplete();
__signal();
}
function __transitionOut(transitionObject) {
if ((!__transitionInCompleted) || (__transitionOutStarted)) {
return(false);
}
__transitionOutStarted = true;
__wait();
__prepareDestroy();
__broadcastEvent("TransitionOutStart", this);
__transitionOut1(transitionObject);
__transitionOut2();
__signal();
return(true);
}
function __transitionOut1(transitionObject) {
if (transitionObject != null) {
__transitionOutInstance = new transitionObject.transitionClass(__selfStub, transitionObject.duration, transitionObject.easing, transitionObject.options);
} else {
__transitionOutInstance = null;
}
var self = this;
if (__transitionOutInstance.transitionOut instanceof Function) {
__transitionOutListener = new Object();
__transitionOutListener.onTransitionComplete = function () {
self.__transitionOut1Complete();
};
__transitionOutInstance.addListener(__transitionOutListener);
__transitionOutInstance.transitionOut();
} else {
__transitionOut1Complete();
}
}
function __transitionOut2() {
}
function __transitionOut1Complete() {
__transitionOutInstance.removeListener(__transitionOutListener);
__transitionOutInstance.stop();
__transitionOutInstance.clear();
__transitionOut1Completed = true;
__transitionOutComplete();
}
function __transitionOut2Complete() {
__transitionOut2Completed = true;
__transitionOutComplete();
}
function __transitionOutComplete() {
if (((!__transitionOut1Completed) || (!__transitionOut2Completed)) || (__transitionOutCompleted)) {
return(undefined);
}
__transitionOutCompleted = true;
__wait();
__broadcastEvent("TransitionOutComplete", this);
__onTransitionOutComplete();
__signal();
}
function __activate() {
if ((!__loadCompleted) || (__activated)) {
return(undefined);
}
__activated = true;
__wait();
__activate1();
__activate2();
__selfStub._visible = true;
__signal();
}
function __activate1() {
var _local3 = 0;
while (_local3 < __assetsArray.length) {
var _local2 = __assetsArray[_local3];
if (_local2.type == "movieclip") {
if (_local2.target.activate instanceof Function) {
_local2.target.activate();
} else {
_local2.target.play();
}
}
_local3++;
}
}
function __activate2() {
}
function __deactivate() {
if (!__activated) {
return(undefined);
}
__activated = false;
__wait();
__selfStub._visible = false;
__deactivate2();
__deactivate1();
__signal();
}
function __deactivate1() {
var _local3 = __assetsArray.length - 1;
while (_local3 >= 0) {
var _local2 = __assetsArray[_local3];
if (_local2.type == "movieclip") {
if (_local2.target.deactivate instanceof Function) {
_local2.target.deactivate();
} else {
_local2.target.gotoAndStop(1);
}
}
_local3--;
}
}
function __deactivate2() {
}
function __disable(key) {
if ((__disableLock != null) && (__disableLock.lock(key))) {
__disable2();
}
}
function __disable2() {
}
function __enable(key) {
if ((__disableLock != null) && (__disableLock.unlock(key))) {
__enable2();
}
}
function __enable2() {
}
function __redisable() {
if ((__disableLock != null) && (__disableLock.__get__locked())) {
__disable2();
}
}
function __getChannel() {
return(__curChannel);
}
function __setChannel(channel) {
if (__loadStarted) {
return(undefined);
}
__curChannel = channel;
}
function __getQueueLoader() {
return(__curQueueLoader);
}
function __setQueueLoader(parentQueueLoader) {
if (__loadStarted) {
return(undefined);
}
__curQueueLoader.dispose();
__curQueueLoader = __shell.__createSlaveQueueLoader(parentQueueLoader);
}
function __resetEvents() {
delete __onLoadComplete;
delete __onTransitionInComplete;
delete __onTransitionOutComplete;
}
function __moveToDepth(depth) {
__selfStub.swapDepths(depth);
}
function __findContent(target) {
return(null);
}
function __broadcastEvent(eventName) {
arguments.unshift(__curChannel);
__parent.__broadcastEvent.apply(__parent, arguments);
}
function __wait() {
__semaphore.wait();
}
function __signal() {
__semaphore.signal();
}
function __processNode(node) {
var _local4 = Number(node.attributes.x);
var _local3 = Number(node.attributes.y);
if (!isNaN(_local4)) {
__setX(_local4);
}
if (!isNaN(_local3)) {
__setY(_local3);
}
if (__node.attributes.cache.toLowerCase() == "false") {
__cache = false;
} else {
__cache = __parent.__cache || (node.attributes.cache.toLowerCase() == "true");
}
__name = node.attributes.name;
__settings = new Object();
__paths = new Object();
__assets = new Object();
__assetsArray = new Array();
node = node.firstChild;
while (node != null) {
switch (node.nodeName.toUpperCase()) {
case "SET" :
__processSetting(node);
break;
case "PATH" :
__processPath(node);
break;
case "ASSET" :
__processAsset(node);
}
node = node.nextSibling;
}
}
function __processSetting(node) {
if (node.attributes.name.length > 0) {
__settings[node.attributes.name] = __parseAttribute(node.attributes.value);
}
}
function __processPath(node) {
if (node.attributes.name.length > 0) {
__paths[node.attributes.name] = node.attributes.url;
}
}
function __processAsset(node) {
if ((node.attributes.name.length > 0) && (node.attributes.url.length > 0)) {
var _local2 = new Object();
_local2.name = node.attributes.name;
_local2.type = node.attributes.type.toLowerCase();
_local2.url = node.attributes.url;
_local2.loaded = false;
delete _local2.target;
__assetsArray.push(_local2);
}
}
function __parseAttribute(value) {
var _local2 = Number(value);
if (!isNaN(_local2)) {
return(_local2);
}
if (value.toLowerCase() == "true") {
return(true);
}
if (value.toLowerCase() == "false") {
return(false);
}
return(value);
}
function __createAssetTarget(asset) {
switch (asset.type) {
case "xml" :
asset.target = new XML();
asset.target.ignoreWhite = true;
break;
case "dotxml" :
asset.target = new com.akqa.xml.DotXML();
break;
case "sound" :
asset.target = new com.akqa.sound.mixer.Channel(__masterBus);
break;
case "movieclip" :
asset.target = __assetsStub.createEmptyMovieClip("__asset" + __assetsDepth, __assetsDepth++);
}
if (asset.target != null) {
__assets[asset.name] = asset.target;
}
}
function __destroyAssetTarget(asset) {
switch (asset.type) {
case "xml" :
delete asset.target;
break;
case "dotxml" :
delete asset.target;
break;
case "sound" :
asset.target.dispose();
delete asset.target;
break;
case "movieclip" :
asset.target.removeMovieClip();
delete asset.target;
}
asset.loaded = false;
delete __assets[asset.name];
}
function __setX(x) {
__x = x;
__selfStub._x = __x;
}
function __setY(y) {
__y = y;
__selfStub._y = __y;
}
var __x = 0;
var __y = 0;
var __cache = false;
var __depth = 0;
var __constructed = false;
var __created = false;
var __prepared = false;
var __loadStarted = false;
var __loadBroadcasted = false;
var __loadCompleted = false;
var __transitionInStarted = false;
var __transitionInCompleted = false;
var __transitionIn1Completed = false;
var __transitionIn2Completed = false;
var __transitionOutStarted = false;
var __transitionOutCompleted = false;
var __transitionOut1Completed = false;
var __transitionOut2Completed = false;
var __activated = false;
var __assetsDepth = 0;
}
Symbol 25 MovieClip [__Packages.com.akqa.shell.ShellContent] Frame 0
class com.akqa.shell.ShellContent extends com.akqa.shell.AbstractShellItem
{
var __queueLoader, __registrar, __prepared, __wait, __containers, __shell, __parent, __signal, __loadCompleted, __redisable, __transitionInStarted, __transitionIn2Complete, __transitionOutStarted, __transitionOut2Complete, __constructed, __url, __loadListener2, __curQueueLoader, __mainground, __selfStub, __created, __curChannel, __node;
function ShellContent () {
super();
}
static function __createShellContent(target, depth, shell, parent, node) {
var _local1 = new com.akqa.shell.ShellContent();
_local1.__construct(target, depth, shell, parent, node);
return(_local1);
}
function get queueLoader() {
return(__queueLoader);
}
function get registrar() {
return(__registrar);
}
function __createContainer(target, depth, standalone) {
if (!__prepared) {
return(null);
}
__wait();
if (depth == null) {
depth = 0;
}
var _local2 = 0;
while (_local2 < __containers.length) {
var _local5 = __containers[_local2];
if ((_local5.__target == target) && (_local5.__depth == depth)) {
_local5.__deconstruct();
__containers.splice(_local2, 1);
break;
}
_local2++;
}
if (standalone == true) {
var _local5 = com.akqa.shell.ShellContainer.__createShellContainer(target, depth, __shell);
} else {
var _local5 = com.akqa.shell.ShellContainer.__createShellContainer(target, depth, __shell, __parent);
}
_local5.__create();
__containers.push(_local5);
__signal();
return(_local5);
}
function __destroyContainer(container) {
__wait();
var _local2 = 0;
while (_local2 < __containers.length) {
if (__containers[_local2] == container) {
__containers[_local2].__deconstruct();
__containers.splice(_local2, 1);
__signal();
return(true);
}
_local2++;
}
__signal();
return(false);
}
function __registerTarget(target, targetClass) {
if (!__loadCompleted) {
return(null);
}
if (targetClass instanceof Object) {
__registrar = targetClass;
} else {
__registrar = target;
}
__redisable();
return(this);
}
function __transitionInCompleteTarget() {
if (!__transitionInStarted) {
return(false);
}
__transitionIn2Complete();
return(true);
}
function __transitionOutCompleteTarget() {
if (!__transitionOutStarted) {
return(false);
}
__transitionOut2Complete();
return(true);
}
function __construct(target, depth, shell, parent, node) {
if ((target == null) || (__constructed)) {
return(false);
}
__queueLoader = null;
__registrar = null;
__loaded = false;
__url = null;
__containers = null;
__loadListener2 = null;
super.__construct(target, depth, shell, parent, node);
__containers = new Array();
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__wait();
super.__deconstruct();
delete __queueLoader;
delete __registrar;
delete __loaded;
delete __url;
delete __containers;
delete __loadListener2;
__signal();
return(true);
}
function __prepareDestroy() {
if (!__prepared) {
return(false);
}
__wait();
super.__prepareDestroy();
var _local3 = 0;
while (_local3 < __containers.length) {
__containers[_local3].__prepareDestroy();
_local3++;
}
__queueLoader.dispose();
delete __queueLoader;
__signal();
return(true);
}
function __load2() {
var self = this;
__queueLoader = __shell.__createSlaveQueueLoader(__parent.__mainQueueLoader);
if (!__loaded) {
__loadListener2 = new Object();
__loadListener2.onLoadComplete = function (target, url) {
if (target == self.__mainground) {
self.__load2Complete();
}
};
__curQueueLoader.addListener(__loadListener2);
__mainground.removeMovieClip();
__mainground = __selfStub.createEmptyMovieClip("__mainground", 0);
__curQueueLoader.enqueue(__mainground, __url);
} else {
__load2Complete();
}
}
function __load2Complete() {
if (!__loaded) {
__loaded = true;
__curQueueLoader.removeListener(__loadListener2);
delete __loadListener2;
}
}
function __unload2() {
if (!__loaded) {
__curQueueLoader.removeListener(__loadListener2);
delete __loadListener2;
__curQueueLoader.dequeue(__mainground);
__mainground.removeMovieClip();
}
}
function __transitionIn2() {
if (__registrar.transitionIn instanceof Function) {
__registrar.transitionIn();
} else {
__transitionIn2Complete();
}
}
function __transitionOut2() {
if (__registrar.transitionOut instanceof Function) {
__registrar.transitionOut();
} else {
__transitionOut2Complete();
}
}
function __activate2() {
__registerTarget(__mainground);
if (__mainground.activate instanceof Function) {
__mainground.activate();
} else {
__mainground.play();
}
}
function __deactivate2() {
var _local2 = 0;
while (_local2 < __containers.length) {
__containers[_local2].__deconstruct();
_local2++;
}
__containers = new Array();
if (__mainground.deactivate instanceof Function) {
__mainground.deactivate();
} else {
__mainground.gotoAndStop(1);
}
delete __registrar;
}
function __disable2() {
__wait();
__selfStub.onRollOver = function () {
};
__selfStub.enabled = false;
__registrar.disable("com.akqa.shell.ShellContent");
var _local2 = 0;
while (_local2 < __containers.length) {
__containers[_local2].__disable("parent");
_local2++;
}
__signal();
}
function __enable2() {
delete __selfStub.onRollOver;
__selfStub.enabled = true;
__registrar.enable("com.akqa.shell.ShellContent");
var _local2 = 0;
while (_local2 < __containers.length) {
__containers[_local2].__enable("parent");
_local2++;
}
}
function __findContent(target) {
if ((!__created) || (target == null)) {
return(null);
}
var _local5 = String(target);
var _local6 = String(__mainground);
if (_local5.indexOf(_local6) != 0) {
return(null);
}
var _local2 = 0;
while (_local2 < __containers.length) {
var _local3 = __containers[_local2].__findContent(target);
if (_local3 != null) {
return(_local3);
}
_local2++;
}
return(this);
}
function __broadcastEvent(eventName) {
arguments[0] = "onContent" + eventName;
arguments.unshift(__curChannel);
__parent.__broadcastEvent.apply(__parent, arguments);
}
function __processNode(node) {
__url = __node.attributes.url;
super.__processNode(node);
}
var __loaded = false;
}
Symbol 26 MovieClip [__Packages.com.akqa.shell.ShellContainer] Frame 0
class com.akqa.shell.ShellContainer extends com.akqa.shell.AbstractShellContainer
{
var __newItem, __oldItem, __curItem, __loadItem, __unloadItem, __precacheItem, __uncacheItem, __uncacheAllItems, __constructed, __mainQueueLoader, __shell, __mainChannel, __precacheQueueLoader, __precacheChannel, __wait, __signal, __mainground, __itemsDepth;
function ShellContainer () {
super();
}
static function __createShellContainer(target, depth, shell, parentContainer) {
var _local1 = new com.akqa.shell.ShellContainer();
_local1.__construct(target, depth, shell, parentContainer);
return(_local1);
}
function get newContent() {
return(__newItem);
}
function get oldContent() {
return(__oldItem);
}
function get content() {
return(__curItem);
}
function get registrar() {
return(__curItem.__registrar);
}
function loadContent(contentName) {
return(__loadItem(contentName));
}
function unloadContent() {
return(__unloadItem());
}
function precacheContent(contentName) {
return(__precacheItem(contentName));
}
function uncacheContent(contentName) {
return(__uncacheItem(contentName));
}
function uncacheAllContent() {
return(__uncacheAllItems());
}
function __construct(target, depth, shell, parentContainer) {
if ((target == null) || (__constructed)) {
return(false);
}
super.__construct(target, depth, shell);
if (parentContainer != null) {
__mainQueueLoader = __shell.__createSlaveQueueLoader(parentContainer.__mainQueueLoader, this, __mainChannel);
__precacheQueueLoader = __shell.__createSlaveQueueLoader(parentContainer.__precacheQueueLoader, this, __precacheChannel);
} else {
var _local3 = __shell.__createPrecacheQueueLoader(this, __precacheChannel);
__mainQueueLoader = __shell.__createMainQueueLoader(this, __mainChannel, _local3);
__precacheQueueLoader = _local3;
}
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__wait();
super.__deconstruct();
__signal();
return(true);
}
function __getItemNode(itemName) {
if (itemName.length <= 0) {
return(null);
}
var _local2 = __shell.__contentNodes[itemName];
if ((_local2 == null) && (itemName.indexOf(".") != -1)) {
_local2 = new XML(((("<CONTENT name='" + itemName) + "' url='") + itemName) + "' />").firstChild;
}
return(_local2);
}
function __createNewItem(itemNode) {
var _local2 = com.akqa.shell.ShellContent.__createShellContent(__mainground, __itemsDepth++, __shell, this, itemNode);
_local2.__create();
return(_local2);
}
function __destroyOldItem(item) {
item.__deconstruct();
}
}
Symbol 27 MovieClip [__Packages.com.akqa.loaders.PauseableQueueLoaderTree] Frame 0
class com.akqa.loaders.PauseableQueueLoaderTree extends com.akqa.loaders.QueueLoaderTree
{
var __pauseLock;
function PauseableQueueLoaderTree () {
super();
__pauseLock = new com.akqa.util.SharedLock();
}
function pause(key) {
__pauseLock.lock(key);
}
function resume(key) {
__pauseLock.unlock(key);
__loadNextFile();
}
function __loadNextFile() {
if (!__pauseLock.__get__locked()) {
super.__loadNextFile();
}
}
}
Symbol 28 MovieClip [__Packages.com.akqa.sound.mixer.Channel] Frame 0
class com.akqa.sound.mixer.Channel
{
var __garbageCollector, __soundGarbageCollector, __soundObject, __parent, __soundTarget;
function Channel (parent) {
if (!routeTo(parent)) {
routeTo(com.akqa.sound.mixer.MainMix);
}
__garbageCollector = new com.akqa.util.GarbageCollector(this);
__garbageCollector.addHandler(dispose);
__soundGarbageCollector = new com.akqa.util.GarbageCollector(this);
__soundGarbageCollector.addHandler(dispose);
}
function get sound() {
return(__soundObject);
}
function attachSound(libraryReference, linkageId) {
if (linkageId.length <= 0) {
return(null);
}
if (__parent == null) {
routeTo(com.akqa.sound.mixer.MainMix);
}
stop();
__soundGarbageCollector.setCollector(null);
__soundTarget.removeMovieClip();
__soundTarget = com.akqa.util.UtilityStubManager.createLocalRootStub(libraryReference);
if (__soundTarget != null) {
__soundGarbageCollector.setCollector(__soundTarget);
__soundObject = new Sound(__soundTarget);
__soundObject.attachSound(linkageId);
}
__update();
return(__soundObject);
}
function loadSound(url, stream) {
if (url.length <= 0) {
return(null);
}
if (__parent == null) {
routeTo(com.akqa.sound.mixer.MainMix);
}
stop();
__soundGarbageCollector.setCollector(null);
__soundTarget.removeMovieClip();
__soundTarget = com.akqa.util.UtilityStubManager.createRootStub();
__soundGarbageCollector.setCollector(__soundTarget);
__soundObject = new Sound(__soundTarget);
__soundObject.loadSound(url, stream);
__update();
return(__soundObject);
}
function registerSound(soundObject) {
if (soundObject == null) {
return(null);
}
if (__parent == null) {
routeTo(com.akqa.sound.mixer.MainMix);
}
stop();
__soundGarbageCollector.setCollector(null);
__soundTarget.removeMovieClip();
__soundObject = soundObject;
__update();
return(__soundObject);
}
function getBytesLoaded() {
return(__soundObject.getBytesLoaded());
}
function getBytesTotal() {
return(__soundObject.getBytesTotal());
}
function getGain() {
return(__gain);
}
function setGain(gain) {
__gain = gain;
__updateVolume();
}
function getVolume() {
return(__volume);
}
function setVolume(volume) {
__volume = volume;
__updateVolume();
}
function getPan() {
return(__pan);
}
function setPan(pan) {
__pan = pan;
__updatePan();
}
function start(secondsOffset, loops) {
stop();
__soundObject.start(secondsOffset, loops);
}
function stop() {
__soundObject.stop();
}
function routeTo(parent) {
if ((parent != com.akqa.sound.mixer.MainMix) && (!(parent instanceof com.akqa.sound.mixer.Bus))) {
return(false);
}
if (parent.__addChild(this)) {
__parent.__removeChild(this);
__parent = parent;
return(true);
}
return(false);
}
function setGarbageCollector(collector) {
__garbageCollector.setCollector(collector);
}
function dispose() {
__garbageCollector.setCollector(null);
__soundGarbageCollector.setCollector(null);
stop();
__soundTarget.removeMovieClip();
__parent.__removeChild(this);
delete __soundTarget;
delete __soundObject;
delete __parent;
}
function __inheritVolume(volumeInherited) {
__volumeInherited = volumeInherited;
__updateVolume();
}
function __inheritPan(panInherited) {
__panInherited = panInherited;
__updatePan();
}
function __update() {
__updateVolume();
__updatePan();
}
function __updateVolume() {
var _local2 = (__gain * (__volume / 100)) * (__volumeInherited / 100);
__soundObject.setVolume(_local2);
}
function __updatePan() {
var _local2 = __pan;
if (__panInherited > 0) {
_local2 = _local2 + ((100 - __pan) * (__panInherited / 100));
} else if (__panInherited < 0) {
_local2 = _local2 + ((100 + __pan) * (__panInherited / 100));
}
__soundObject.setPan(_local2);
}
var __gain = 100;
var __volume = 100;
var __volumeInherited = 100;
var __pan = 0;
var __panInherited = 0;
}
Symbol 29 MovieClip [__Packages.com.akqa.shell.Shell] Frame 0
class com.akqa.shell.Shell extends com.akqa.shell.AbstractShellContainer
{
var __create, __settings, __paths, __assets, __scenes, __newItem, __oldItem, __curItem, __scenesArray, __loadItem, __unloadItem, __precacheItem, __uncacheItem, __uncacheAllItems, __findContent, __queueLoaders, __constructed, __scene, __layers, __contentNodes, __sceneNodes, __assetsStub, __assetsArray, __assetsLoadListener, __semaphore, __selfStub, __mainQueueLoader, __precacheQueueLoader, __wait, __signal, __created, __broadcastEvent, __mainChannel, __setX, __setY, __cache, __mainground, __itemsDepth, __masterBus;
function Shell (target, depth) {
super();
__construct(target, depth);
__create();
}
function get settings() {
return(__settings);
}
function get paths() {
return(__paths);
}
function get assets() {
return(__assets);
}
function get scenes() {
return(__scenes);
}
function get newScene() {
return(__newItem);
}
function get oldScene() {
return(__oldItem);
}
function get scene() {
return(__curItem);
}
function get layers() {
return(__curItem.__layers);
}
function loadDriver(url, auto) {
return(__loadDriver(url, auto));
}
function loadFirstScene() {
if (__scenesArray.length == 0) {
return(false);
}
var _local2 = __scenesArray[0];
return(loadScene(_local2.__name));
}
function loadNextScene() {
if ((__scenesArray.length == 0) || (__scenesIndex >= (__scenesArray.length - 1))) {
return(false);
}
var _local2 = __scenesArray[__scenesIndex + 1];
return(loadScene(_local2.__name));
}
function loadPreviousScene() {
if (__scenesIndex <= 0) {
return(false);
}
var _local2 = __scenesArray[__scenesIndex - 1];
return(loadScene(_local2.__name));
}
function loadScene(sceneName) {
var _local2 = 0;
while (_local2 < __scenesArray.length) {
if (__scenesArray[_local2].__name == sceneName) {
__scenesIndex = _local2;
__loadAssets();
return(__loadItem(sceneName));
}
_local2++;
}
return(false);
}
function unloadScene() {
if (__unloadItem()) {
__unloadAssets();
return(true);
}
return(false);
}
function precacheNextScene() {
if ((__scenesArray.length == 0) || (__scenesIndex >= (__scenesArray.length - 1))) {
return(false);
}
var _local2 = __scenesArray[__scenesIndex + 1];
return(precacheScene(_local2.__name));
}
function precacheScene(sceneName) {
return(__precacheItem(sceneName));
}
function uncacheScene(sceneName) {
return(__uncacheItem(sceneName));
}
function uncacheAllScenes() {
__uncacheAllItems();
}
function createContainer(target, depth, standalone) {
var _local2 = __findContent(target);
if (_local2 != null) {
return(_local2.__createContainer(target, depth, standalone));
}
return(null);
}
function destroyContainer(container) {
var _local2 = __findContent(container.__target);
if (_local2 != null) {
return(_local2.__destroyContainer(container));
}
return(false);
}
function register(target, targetClass) {
var _local2 = __findContent(target);
if (_local2 != null) {
return(_local2.__registerTarget(target, targetClass));
}
return(null);
}
function transitionInComplete(target) {
var _local2 = __findContent(target);
if (_local2 != null) {
return(_local2.__transitionInCompleteTarget());
}
return(false);
}
function transitionOutComplete(target) {
var _local2 = __findContent(target);
if (_local2 != null) {
return(_local2.__transitionOutCompleteTarget());
}
return(false);
}
function __getShellQueueLoader(channel) {
if ((channel == null) || (channel == 0)) {
channel = 1;
}
if (channel < 0) {
if (__queueLoaders[channel] == null) {
__queueLoaders[channel] = __createPrecacheQueueLoader(this, channel);
}
return(__queueLoaders[channel]);
}
if (__queueLoaders[channel] == null) {
var _local3 = __getShellQueueLoader(-channel);
__queueLoaders[channel] = __createMainQueueLoader(this, channel, _local3);
}
return(__queueLoaders[channel]);
}
function __createMainQueueLoader(container, channel, precacheQueueLoader) {
var _local4 = this;
var _local3 = new com.akqa.loaders.QueueLoaderTree();
_local3.__set__priority("parents");
var _local2 = __createQueueListener(container, channel);
_local2.precacheQueueLoader = precacheQueueLoader;
_local2.onQueueStart = function () {
this.container.__wait();
this.precacheQueueLoader.pause("mainQueueLoader");
this.container.__broadcastEvent(this.channel, "onQueueStart");
this.container.__signal();
};
_local2.onQueueComplete = function () {
this.container.__wait();
this.container.__broadcastEvent(this.channel, "onQueueComplete");
this.precacheQueueLoader.resume("mainQueueLoader");
this.container.__signal();
};
_local3.addListener(_local2);
return(_local3);
}
function __createPrecacheQueueLoader(container, channel) {
var _local2 = new com.akqa.loaders.PauseableQueueLoaderTree();
_local2.__set__priority("children");
var _local3 = __createQueueListener(container, channel);
_local2.addListener(_local3);
return(_local2);
}
function __createSlaveQueueLoader(parent, container, channel) {
var _local2 = new com.akqa.loaders.QueueLoaderTree(parent);
var _local3 = __createQueueListener(container, channel);
if (_local3 != null) {
_local2.addListener(_local3);
}
return(_local2);
}
function __createQueueListener(container, channel) {
if ((container == null) || (channel == null)) {
return(null);
}
var _local2 = new Object();
_local2.container = container;
_local2.channel = channel;
_local2.onQueueStart = function () {
this.container.__broadcastEvent(this.channel, "onQueueStart");
};
_local2.onQueueProgress = function (filesLoaded, filesTotal) {
this.container.__broadcastEvent(this.channel, "onQueueProgress", filesLoaded, filesTotal);
};
_local2.onQueueComplete = function () {
this.container.__broadcastEvent(this.channel, "onQueueComplete");
};
_local2.onLoadStart = function (target, url) {
if (typeof(target) == "movieclip") {
target.gotoAndStop(1);
}
this.container.__broadcastEvent(this.channel, "onLoadStart", target, url);
};
_local2.onLoadProgress = function (bytesLoaded, bytesTotal, target, url) {
if (typeof(target) == "movieclip") {
target.gotoAndStop(1);
}
this.container.__broadcastEvent(this.channel, "onLoadProgress", bytesLoaded, bytesTotal, target, url);
};
_local2.onLoadComplete = function (target, url) {
this.container.__broadcastEvent(this.channel, "onLoadComplete", target, url);
};
_local2.onLoadAbort = function (target, url) {
this.container.__broadcastEvent(this.channel, "onLoadAbort", target, url);
};
_local2.onLoadError = function (errorCode, errorMessage, target, url) {
this.container.__broadcastEvent(this.channel, "onLoadError", errorCode, errorMessage, target, url);
};
return(_local2);
}
function __construct(target, depth) {
if ((target == null) || (__constructed)) {
return(false);
}
__settings = null;
__paths = null;
__assets = null;
__scenes = null;
__scene = null;
__layers = null;
__contentNodes = null;
__sceneNodes = null;
__loadDriverStarted = false;
__loadDriverCompleted = false;
__assetsLoaded = false;
__assetsStub = null;
__assetsDepth = 0;
__assetsArray = null;
__assetsLoadListener = null;
__scenesArray = null;
__scenesIndex = 0;
__queueLoaders = null;
super.__construct(target, depth, this);
__semaphore = new com.akqa.util.Semaphore();
__assetsStub = __selfStub.createEmptyMovieClip("__assets", -100);
__assetsStub._visible = false;
__queueLoaders = new Object();
__mainQueueLoader = __getShellQueueLoader(1);
__precacheQueueLoader = __getShellQueueLoader(-1);
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__wait();
super.__deconstruct();
delete __settings;
delete __paths;
delete __assets;
delete __scenes;
delete __scene;
delete __layers;
delete __contentNodes;
delete __sceneNodes;
delete __loadDriverStarted;
delete __loadDriverCompleted;
delete __assetsLoaded;
delete __assetsStub;
delete __assetsDepth;
delete __assetsArray;
delete __assetsLoadListener;
delete __scenesArray;
delete __scenesIndex;
delete __queueLoaders;
__signal();
return(true);
}
function __loadDriver(url, auto) {
if (((!__created) || (url.length <= 0)) || (__loadDriverStarted)) {
return(false);
}
__loadDriverStarted = true;
__wait();
__broadcastEvent(__mainChannel, "onDriverLoadStart");
var self = this;
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = function () {
self.__loadDriverComplete(this.firstChild, auto);
};
_local2.load(url);
__signal();
return(true);
}
function __loadDriverComplete(node, auto) {
if ((!__loadDriverStarted) || (__loadDriverCompleted)) {
return(undefined);
}
__loadDriverCompleted = true;
__wait();
__processNode(node);
__broadcastEvent(__mainChannel, "onDriverLoadComplete");
__signal();
if (auto) {
loadFirstScene();
}
}
function __processNode(node) {
var _local4 = Number(node.attributes.x);
var _local3 = Number(node.attributes.y);
if (!isNaN(_local4)) {
__setX(_local4);
}
if (!isNaN(_local3)) {
__setY(_local3);
}
if (node.attributes.cache.toLowerCase() == "false") {
__cache = false;
} else {
__cache = __cache || (node.attributes.cache.toLowerCase() == "true");
}
__settings = new Object();
__paths = new Object();
__assets = new Object();
__assetsArray = new Array();
__contentNodes = new Object();
__sceneNodes = new Object();
__scenes = new Object();
__scenesArray = new Array();
node = node.firstChild;
while (node != null) {
switch (node.nodeName.toUpperCase()) {
case "SET" :
__processSetting(node);
break;
case "PATH" :
__processPath(node);
break;
case "ASSET" :
__processAsset(node);
break;
case "CONTENT" :
__processContent(node);
break;
case "SCENE" :
__processScene(node);
}
node = node.nextSibling;
}
}
function __processSetting(node) {
if (node.attributes.name.length > 0) {
__settings[node.attributes.name] = __parseAttribute(node.attributes.value);
}
}
function __processPath(node) {
if (node.attributes.name.length > 0) {
__paths[node.attributes.name] = node.attributes.url;
}
}
function __processAsset(node) {
if ((node.attributes.name.length > 0) && (node.attributes.url.length > 0)) {
var _local2 = new Object();
_local2.name = node.attributes.name;
_local2.type = node.attributes.type.toLowerCase();
_local2.url = node.attributes.url;
_local2.loaded = false;
_local2.target = null;
__assetsArray.push(_local2);
}
}
function __processContent(node) {
if ((node.attributes.name.length > 0) && (node.attributes.url.length > 0)) {
__contentNodes[node.attributes.name] = node;
}
}
function __processScene(node) {
if (node.attributes.name.length > 0) {
__sceneNodes[node.attributes.name] = node;
var _local2 = com.akqa.shell.ShellScene.__createShellScene(__mainground, __itemsDepth++, this, this, node);
__scenes[_local2.__name] = _local2;
__scenesArray.push(_local2);
}
}
function __parseAttribute(value) {
var _local2 = Number(value);
if (!isNaN(_local2)) {
return(_local2);
}
if (value.toLowerCase() == "true") {
return(true);
}
if (value.toLowerCase() == "false") {
return(false);
}
return(value);
}
function __loadAssets() {
if ((!__created) || (__assetsLoaded)) {
return(undefined);
}
var self = this;
__assetsLoadListener = new Object();
__assetsLoadListener.onLoadComplete = function (target, url) {
var _local1 = 0;
while (_local1 < self.__assetsArray.length) {
var _local2 = self.__assetsArray[_local1];
if (_local2.target == target) {
_local2.loaded = true;
if (_local1 == (self.__assetsArray.length - 1)) {
self.__loadAssetsComplete();
}
return(undefined);
}
_local1++;
}
};
__mainQueueLoader.addListener(__assetsLoadListener);
var _local4 = false;
var _local3 = 0;
while (_local3 < __assetsArray.length) {
var _local2 = __assetsArray[_local3];
if (!_local2.loaded) {
__createAssetTarget(_local2);
if (_local2.target != null) {
__mainQueueLoader.enqueue(_local2.target, _local2.url);
_local4 = true;
}
}
_local3++;
}
if (!_local4) {
__loadAssetsComplete();
}
}
function __loadAssetsComplete() {
__mainQueueLoader.removeListener(__assetsLoadListener);
__assetsLoaded = true;
__activateAssets();
}
function __unloadAssets() {
if (__assetsLoaded) {
return(undefined);
}
var _local2 = __assetsArray.length - 1;
while (_local2 >= 0) {
var _local3 = __assetsArray[_local2];
if (!_local3.loaded) {
__mainQueueLoader.dequeue(_local3.target);
__destroyAssetTarget(_local3);
}
_local2--;
}
__mainQueueLoader.removeListener(__assetsLoadListener);
}
function __activateAssets() {
var _local3 = 0;
while (_local3 < __assetsArray.length) {
var _local2 = __assetsArray[_local3];
if (_local2.type == "movieclip") {
if (_local2.target.activate instanceof Function) {
_local2.target.activate();
} else {
_local2.target.play();
}
}
_local3++;
}
}
function __createAssetTarget(asset) {
switch (asset.type) {
case "xml" :
asset.target = new XML();
asset.target.ignoreWhite = true;
break;
case "dotxml" :
asset.target = new com.akqa.xml.DotXML();
break;
case "sound" :
asset.target = new com.akqa.sound.mixer.Channel(__masterBus);
break;
case "movieclip" :
asset.target = __assetsStub.createEmptyMovieClip("__asset" + __assetsDepth, __assetsDepth++);
}
if (asset.target != null) {
__assets[asset.name] = asset.target;
}
}
function __destroyAssetTarget(asset) {
switch (asset.type) {
case "xml" :
delete asset.target;
break;
case "dotxml" :
delete asset.target;
break;
case "sound" :
asset.target.dispose();
delete asset.target;
break;
case "movieclip" :
asset.target.removeMovieClip();
delete asset.target;
}
asset.loaded = false;
delete __assets[asset.name];
}
function __getItemNode(itemName) {
if (itemName.length <= 0) {
return(null);
}
return(__sceneNodes[itemName]);
}
function __createNewItem(itemNode) {
var _local2 = __scenes[itemNode.attributes.name];
_local2.__create();
_local2.__resetEvents();
_local2.__enable("transitionOut");
_local2.__moveToDepth(__itemsDepth++);
return(_local2);
}
function __destroyOldItem(item) {
item.__destroy();
}
var __loadDriverStarted = false;
var __loadDriverCompleted = false;
var __assetsLoaded = false;
var __assetsDepth = 0;
var __scenesIndex = 0;
}
Symbol 30 MovieClip [__Packages.com.akqa.shell.ShellScene] Frame 0
class com.akqa.shell.ShellScene extends com.akqa.shell.AbstractShellItem
{
var __layers, __constructed, __layersArray, __wait, __signal, __created, __prepared, __transitionIn2Complete, __transitionOut2Complete, __curChannel, __parent, __mainground, __shell;
function ShellScene () {
super();
}
static function __createShellScene(target, depth, shell, parent, node) {
var _local1 = new com.akqa.shell.ShellScene();
_local1.__construct(target, depth, shell, parent, node);
return(_local1);
}
function get layers() {
return(__layers);
}
function __construct(target, depth, shell, parent, node) {
if ((target == null) || (__constructed)) {
return(false);
}
__layers = null;
__layersArray = null;
__layersDepth = 0;
super.__construct(target, depth, shell, parent, node);
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__wait();
var _local3 = 0;
while (_local3 < __layersArray.length) {
__layersArray[_local3].__deconstruct();
_local3++;
}
super.__deconstruct();
delete __layers;
delete __layersArray;
delete __layersDepth;
__signal();
return(true);
}
function __create() {
if (!super.__create()) {
return(false);
}
var _local3 = 0;
while (_local3 < __layersArray.length) {
__layersArray[_local3].__create();
_local3++;
}
return(true);
}
function __destroy() {
if (!__created) {
return(false);
}
__wait();
var _local3 = 0;
while (_local3 < __layersArray.length) {
__layersArray[_local3].__destroy();
_local3++;
}
super.__destroy();
__signal();
return(true);
}
function __prepareDestroy() {
if (!__prepared) {
return(false);
}
__wait();
super.__prepareDestroy();
var _local3 = 0;
while (_local3 < __layersArray.length) {
__layersArray[_local3].__prepareDestroy();
_local3++;
}
__signal();
return(true);
}
function __load2() {
var _local2 = 0;
while (_local2 < __layersArray.length) {
__layersArray[_local2].__load();
_local2++;
}
}
function __unload2() {
var _local2 = 0;
while (_local2 < __layersArray.length) {
__layersArray[_local2].__unload();
_local2++;
}
}
function __transitionIn2() {
function layerTransitionInComplete() {
delete this.__onTransitionInComplete;
count--;
if (count <= 0) {
self.__transitionIn2Complete();
}
}
var self = this;
var count = __layersArray.length;
if (count > 0) {
var _local2 = 0;
while (_local2 < __layersArray.length) {
var _local3 = __layersArray[_local2];
_local3.__onTransitionInComplete = layerTransitionInComplete;
_local3.__transitionIn();
_local2++;
}
} else {
__transitionIn2Complete();
}
}
function __transitionOut2() {
function layerTransitionOutComplete() {
delete this.__onTransitionOutComplete;
count--;
if (count <= 0) {
self.__transitionOut2Complete();
}
}
var self = this;
var count = __layersArray.length;
if (count > 0) {
var _local2 = 0;
while (_local2 < __layersArray.length) {
var _local3 = __layersArray[_local2];
_local3.__onTransitionOutComplete = layerTransitionOutComplete;
_local3.__transitionOut();
_local2++;
}
} else {
__transitionOut2Complete();
}
}
function __disable2() {
var _local2 = 0;
while (_local2 < __layersArray.length) {
__layersArray[_local2].__disable("parent");
_local2++;
}
}
function __enable2() {
var _local2 = 0;
while (_local2 < __layersArray.length) {
__layersArray[_local2].__enable("parent");
_local2++;
}
}
function __findContent(target) {
if ((!__created) || (target == null)) {
return(null);
}
var _local2 = 0;
while (_local2 < __layersArray.length) {
var _local3 = __layersArray[_local2].__findContent(target);
if (_local3 != null) {
return(_local3);
}
_local2++;
}
return(null);
}
function __broadcastEvent(eventName) {
arguments[0] = "onScene" + eventName;
arguments.unshift(__curChannel);
__parent.__broadcastEvent.apply(__parent, arguments);
}
function __processNode(node) {
super.__processNode(node);
__layers = new Object();
__layersArray = new Array();
node = node.firstChild;
while (node != null) {
if (!(node.nodeName.toUpperCase() === "LAYER")) {
} else {
__processLayer(node);
}
node = node.nextSibling;
}
}
function __processLayer(node) {
if (node.attributes.name.length > 0) {
var _local2 = com.akqa.shell.ShellLayer.__createShellLayer(__mainground, __layersDepth--, __shell, this, node);
__layers[node.attributes.name] = _local2;
__layersArray.push(_local2);
}
}
var __layersDepth = 0;
}
Symbol 31 MovieClip [__Packages.com.akqa.shell.ShellLayer] Frame 0
class com.akqa.shell.ShellLayer extends com.akqa.shell.AbstractShellContainer
{
var __name, __channel, __newItem, __oldItem, __curItem, __loadItem, __unloadItem, __precacheItem, __uncacheItem, __uncacheAllItems, __constructed, __onLoadComplete, __onTransitionInComplete, __onTransitionOutComplete, __node, __initContent, __initTransitionInObject, __shell, __mainQueueLoader, __mainChannel, __precacheQueueLoader, __precacheChannel, __wait, __signal, __prepared, __setX, __setY, __cache, __parent, __disableLock, __createItem, __transitionInObject, __handleItemLoad, __destroyItem, __itemsCache, __masterBus, __handleItemTransitionIn, __prepareDestroy, __mainground, __itemsDepth;
function ShellLayer () {
super();
}
static function __createShellLayer(target, depth, shell, parent, node) {
var _local1 = new com.akqa.shell.ShellLayer();
_local1.__construct(target, depth, shell, parent, node);
return(_local1);
}
function get name() {
return(__name);
}
function get channel() {
return(__channel);
}
function get newContent() {
return(__newItem);
}
function get oldContent() {
return(__oldItem);
}
function get content() {
return(__curItem);
}
function get registrar() {
return(__curItem.__registrar);
}
function loadContent(contentName) {
return(__loadItem(contentName));
}
function unloadContent() {
return(__unloadItem());
}
function precacheContent(contentName) {
return(__precacheItem(contentName));
}
function uncacheContent(contentName) {
return(__uncacheItem(contentName));
}
function uncacheAllContent() {
return(__uncacheAllItems());
}
function __construct(target, depth, shell, parent, node) {
if ((target == null) || (__constructed)) {
return(false);
}
__name = null;
__channel = null;
__onLoadComplete = null;
__onTransitionInComplete = null;
__onTransitionOutComplete = null;
__node = null;
__initContent = null;
__initTransitionInObject = null;
super.__construct(target, depth, shell, parent);
__node = node;
__processNode(__node);
var _local3 = __shell.__getShellQueueLoader(__channel);
var _local4 = __shell.__getShellQueueLoader(-__channel);
__mainQueueLoader = __shell.__createSlaveQueueLoader(_local3, this, __mainChannel);
__precacheQueueLoader = __shell.__createSlaveQueueLoader(_local4, this, __precacheChannel);
return(true);
}
function __deconstruct() {
if (!__constructed) {
return(false);
}
__wait();
super.__deconstruct();
delete __name;
delete __channel;
delete __onLoadComplete;
delete __onTransitionInComplete;
delete __onTransitionOutComplete;
delete __node;
delete __initContent;
delete __initTransitionInObject;
__signal();
return(true);
}
function __create() {
if (!super.__create()) {
return(false);
}
__prepared = false;
var _local4 = Number(__node.attributes.x);
var _local3 = Number(__node.attributes.y);
if (!isNaN(_local4)) {
__setX(_local4);
}
if (!isNaN(_local3)) {
__setY(_local3);
}
if (__node.attributes.cache.toLowerCase() == "false") {
__cache = false;
} else {
__cache = __parent.__cache || (__node.attributes.cache.toLowerCase() == "true");
}
return(true);
}
function __load() {
__wait();
__disableLock = new com.akqa.util.SharedLock();
__parent.__redisable();
__newItem = __createItem(__initContent);
if (__newItem == null) {
__onLoadComplete();
__signal();
return(undefined);
}
__initTransitionInObject = __transitionInObject;
if (__parent.__getChannel() < 0) {
__newItem.__setChannel(__precacheChannel);
} else {
__newItem.__setChannel(__mainChannel);
}
__newItem.__setQueueLoader(__parent.__getQueueLoader());
var self = this;
__newItem.__onLoadComplete = function () {
delete this.__onLoadComplete;
self.__onLoadComplete();
};
__handleItemLoad(__newItem);
__signal();
}
function __unload() {
__wait();
__destroyItem(__oldItem, true);
__destroyItem(__curItem, true);
__destroyItem(__newItem, true);
for (var _local2 in __itemsCache) {
__destroyItem(__itemsCache[_local2], true);
}
__masterBus.stop();
delete __disableLock;
__signal();
}
function __transitionIn() {
__prepared = true;
__wait();
if ((__newItem == null) || (!__newItem.__loadCompleted)) {
__onTransitionInComplete();
__signal();
return(undefined);
}
var self = this;
__newItem.__onTransitionInComplete = function () {
delete this.__onTransitionInComplete;
self.__onTransitionInComplete();
};
__handleItemTransitionIn(__newItem, __initTransitionInObject);
__signal();
}
function __transitionOut() {
__wait();
__prepareDestroy();
if (!__unloadItem()) {
__onTransitionOutComplete();
}
__signal();
}
function __processNode(node) {
var _local4 = Number(node.attributes.x);
var _local3 = Number(node.attributes.y);
if (!isNaN(_local4)) {
__setX(_local4);
}
if (!isNaN(_local3)) {
__setY(_local3);
}
if (__node.attributes.cache.toLowerCase() == "false") {
__cache = false;
} else {
__cache = __parent.__cache || (node.attributes.cache.toLowerCase() == "true");
}
__name = node.attributes.name;
__channel = Math.abs(Number(node.attributes.channel));
if (isNaN(__channel) || (__channel == 0)) {
__channel = 1;
}
__initContent = node.attributes.content;
}
function __getItemNode(itemName) {
if (itemName.length <= 0) {
return(null);
}
var _local2 = __shell.__contentNodes[itemName];
if ((_local2 == null) && (itemName.indexOf(".") != -1)) {
_local2 = new XML(((("<CONTENT name='" + itemName) + "' url='") + itemName) + "' />").firstChild;
}
return(_local2);
}
function __createNewItem(itemNode) {
var _local2 = com.akqa.shell.ShellContent.__createShellContent(__mainground, __itemsDepth++, __shell, this, itemNode);
_local2.__create();
return(_local2);
}
function __destroyOldItem(item) {
item.__deconstruct();
}
}
Symbol 32 MovieClip [__Packages.com.comic.Loader] Frame 0
class com.comic.Loader extends MovieClip
{
var maskOrigWidth, loaderLine_mc, loaderMask_mc;
function Loader () {
super();
var _local4 = this;
_local4._visible = false;
maskOrigWidth = _local4.loaderBarMask_mc._width;
_local4.loaderBarMask_mc._width = 0;
var _local3 = loaderLine_mc.createEmptyMovieClip("copyLine", loaderLine_mc.getNextHighestDepth());
_local3._x = loaderLine_mc.img_mc._x;
_local3._y = loaderLine_mc.img_mc._y;
com.comic.Globals.makeCopy(loaderLine_mc.img_mc, _local3);
}
function showProgress(bytesLoaded, bytesTotal) {
var _local2 = this;
_local2._alpha = 100;
_local2._visible = true;
trace("sss");
_local2.loadPer_txt.text = ("Loading " + Math.round((bytesLoaded / bytesTotal) * 100)) + "%";
loaderLine_mc._rotation = Math.round((bytesLoaded / bytesTotal) * 360);
var _local4 = Math.round((bytesLoaded / bytesTotal) * 100);
loaderMask_mc.gotoAndStop(_local4);
}
function killProgress() {
var _local2 = this;
_local2._visible = false;
loaderMask_mc.gotoAndStop(1);
}
}