Frame 1
function init(pCid) {
stop();
Stage.scaleMode = "noScale";
Stage.align = "T";
fscommand ("showmenu", false);
this._alpha = 0;
initSite(pCid);
initLogo(pCid);
site_total = SIMPSONS_mc.getBytesTotal();
site_loaded = 0;
initPreloader();
var _local3 = new _65.data.XmlData();
var _local2 = new Object();
_local2.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
_simpsons.TextItem.IS_EMBED = pObj.target.settings.font_embed;
initOnLoad("xml", pObj.target);
initSound();
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_local3.addEventListener("onError", _local2);
_local3.addEventListener("onLoad", _local2);
_local3.load(("content/xml/main_" + SETTINGS.cid) + ".xml");
var _local4 = new TextField.StyleSheet();
_local4.onLoad = function (success) {
if (success) {
_simpsons.TextItem.STYLESHEET = this;
initOnLoad("css");
} else {
trace("Unable to load CSS file.");
}
};
_local4.load(("content/css/styles_" + SETTINGS.cid) + ".css");
}
function initSite() {
var _local1 = SIMPSONS_mc.createEmptyMovieClip("content_mc", 1);
_local1._x = 480;
var _local3 = SIMPSONS_mc.createEmptyMovieClip("top_mc", 2);
SIMPSONS_mc.tween("_alpha", 100, 0.5, "easeInOutSine");
var _local4 = _local1.createEmptyMovieClip("scrim_mc", 5);
var _local2 = _local1.attachMovie("bg_landing", "bg_mc", 0, {_alpha:0});
_local2._width = Stage.width;
}
function initPreloader() {
var loader_mc = SIMPSONS_mc.attachMovie("loader_mc", "loader_mc", 6);
loader_mc.cacheAsBitmap = true;
_simpsons.Resize.centerToStage(loader_mc);
loader_mc.percent_txt.text = "0%";
loader_mc.onEnterFrame = function () {
site_loaded = SIMPSONS_mc.getBytesLoaded();
loaderPercent();
var _local1 = (SIMPSONS_mc.getBytesLoaded() / SIMPSONS_mc.getBytesTotal()) * 100;
if (_local1 >= 100) {
loader_mc._visible = false;
removeMovieClip(loader_mc);
initOnLoad("site");
delete loader_mc.onEnterFrame;
}
};
}
function loaderPercent() {
var _local1 = (site_loaded / site_total) * 100;
loader_mc.percent_txt.text = Math.round(_local1) + "%";
}
function initOnLoad(_data, pXml) {
var _local1 = ((typeof(_data) == "string") ? (_data) : "xml");
trace("initOnLoad: " + _local1);
if (!load_info) {
load_info = {xml:false, site:false, css:false, logo:false, sound:false};
}
load_info[_local1] = true;
if (_local1 == "xml") {
simpsons_data = pXml;
} else if (_local1 == "sound") {
sound_data = pXml;
}
if ((((load_info.site and load_info.css) and load_info.logo) and load_info.xml) and load_info.sound) {
delete site_loaded;
gotoAndStop (3);
}
}
function initLogo(pCid) {
var _local4 = top_mc.createEmptyMovieClip("logo_mc", 0);
_local4._alpha = 0;
var _local1 = ("content/logo/logo_" + pCid) + ".swf";
if (_local1) {
var _local3 = new Object();
_local3.onLoadInit = function (target_mc) {
initOnLoad("logo");
target_mc._xscale = (target_mc._yscale = 100);
top_mc._x = (Stage.width / 2) - 437;
top_mc._y = 10;
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local3);
_local2.loadClip(_local1, _local4);
} else {
initOnLoad("logo");
}
}
function initSound() {
var _local4 = this.createEmptyMovieClip("soundHolder", this.getNextHighestDepth());
var _local3 = new Object();
_local3.onLoadInit = function () {
initOnLoad("sound");
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local3);
_local2.loadClip(simpsons_data.settings.audio.src, _local4);
}
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing, com.mosesSupposes.fuse.CustomEasing);
_focusrect = false;
_global.SIMPSONS_mc = this;
_global.SETTINGS = {path:"", cid:cid};
if (!cid) {
SETTINGS.cid = "us";
}
init(SETTINGS.cid);
Frame 3
function init() {
initIntro();
stageResize();
if (deeplink != undefined) {
handleDeepLink();
}
}
function handleDeepLink() {
var _local8 = _65.data.XmlData.getArray(simpsons_data.navigation, "entry");
var _local6 = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var _local5 = _65.data.XmlData.getArray(simpsons_data.video, "entry");
var _local7 = _65.data.XmlData.getArray(simpsons_data.games, "entry");
_local8.func = "scrimSelect";
_local6.func = "loadSection";
_local5.func = "loadVideo";
_local7.func = "loadGame";
var _local3 = new Array(_local8, _local6, _local5, _local7);
if (deeplink == "avatar") {
loadSection("simpsonizer");
toggleNav(true);
}
i = 0;
while (i < _local3.length) {
g = 0;
while (g < _local3[i].length) {
if (_local3[i][g].sections != undefined) {
var _local4 = _local3[i][g].sections.split(",");
h = 0;
while (h < _local4.length) {
if (deeplink == _local4[h]) {
scrimSelect(_local3[i][g].title, g, _local4[h]);
}
h++;
}
}
if ((deeplink == _local3[i][g].title) || (deeplink == _local3[i][g].code)) {
switch (_local3[i].func) {
case "scrimSelect" :
scrimSelect(_local3[i][g].title, g);
break;
case "loadSection" :
if (_local3[i][g].title == "hall") {
fadeMySite(true);
getURL ("javascript:track('games/skate')");
getURL (((("javascript:popFeature('" + _global.SETTINGS.cid) + "', 'skate', ") + user.__get__id()) + ")");
} else {
loadSection(_local3[i][g].title);
}
toggleSite(false);
break;
case "loadVideo" :
scrimSelect("video");
setTimeout(selectVideo, 4000, videoBtnMc, g);
setTimeout(playVid, 4000, _local5, videoScrim, g);
break;
case "loadGame" :
fadeMySite(true);
getURL (("javascript:track('games/" + _local3[i][g].code) + "')");
getURL (((((((((("javascript:popFeature('" + _global.SETTINGS.cid) + "', '") + _local3[i][g].code) + "', ") + user.__get__id()) + ", '") + _root.user.username) + "', '") + _root.user.password) + "')");
}
}
g++;
}
i++;
}
_sizeListener.onResize();
}
function stageResize() {
var _local1 = content_mc.section_mc[_SECTION + "_mc"];
_sizeListener = new Object();
_sizeListener.onResize = function () {
top_mc._x = 52.5;
content_mc.bg_mc._width = Stage.width;
content_mc.bottom_mc._y = Stage.height - 210;
content_mc.bottom_mc.bot._x = (-(Stage.width - 960)) / 2;
content_mc.bottom_mc.bot._width = Stage.width;
content_mc.scrim_mc.fadeBg._x = ((-Stage.width) / 2) - 200;
content_mc.scrim_mc.fadeBg._width = Stage.width * 3;
fadeSite._x = (-Stage.width) / 2;
fadeSite._width = Stage.width * 3;
fadeSiteBtn._x = Stage.width / 2;
if (_SECTION == "landing") {
content_mc.section_mc.landing_mc.foreground._y = Stage.height - 170;
content_mc.section_mc.landing_mc.map._scale = 100;
if (Stage.width > 2537) {
content_mc.section_mc.landing_mc.map._width = Stage.width;
content_mc.section_mc.landing_mc.map._scale = Math.max(100, content_mc.section_mc.landing_mc.map._xscale) + 10;
}
content_mc.section_mc.landing_mc.map._x = ((-Math.max(2200, Stage.width)) / 2) - 0;
}
};
Stage.addListener(_sizeListener);
_sizeListener.onResize();
}
function getMapStartZ() {
var _local2 = content_mc.section_mc.landing_mc.map._width;
if (Stage.width > (content_mc.section_mc.landing_mc.map._width - 200)) {
content_mc.section_mc.landing_mc.map._width = Stage.width + 200;
var _local1 = Math.max(100, content_mc.section_mc.landing_mc.map._xscale) + 10;
}
content_mc.section_mc.landing_mc.map._width = _local2;
return((_local1 ? (_local1) : 100));
}
function getMapStartX() {
return(((-Math.max(2200, Stage.width)) / 2) - 100);
}
function initIntro(pSection) {
var _local1 = top_mc.logo_mc;
_local1._alpha = 0;
_local1.tween("_scale, _alpha", [100, 100], 3, "easeInOutSine", 3);
_local1.onRelease = function () {
if (_SECTION != "landing") {
loadSection("landing");
}
};
myAudio = _65.media.AudioController.addAudio("content/audio/theme.mp3", 100, 0, 0, "external", "music");
myAudio.fadeVolume(10, 1);
myAudioLanding = _65.media.AudioController.addAudio("content/audio/enviroment_loop.mp3", 0, 0, 1000, "external", "music");
myAudioLanding.fadeVolume(50, 2, 1);
initLanding();
}
function initLanding(pIsReset) {
toggleGlowLogo(false);
toggleMapSections(false);
if (!pIsReset) {
var _local7 = content_mc.createEmptyMovieClip("section_mc", 1);
var _local3 = content_mc.attachMovie("bottom_mc", "bottom_mc", 500);
_local3._x = -480;
_local3._y = Stage.height + 580;
_local3.bot._width = Stage.width;
_local3._alpha = 0;
_local3.tween("_y, _alpha", [Stage.height - 210, 100], 2.5, "easeOutSine");
_local3.cacheAsBitmap = true;
_local3.bot.onRelease = function () {
};
_local3.bot.useHandCursor = false;
setTimeout(initNav, 6000);
setTimeout(initTopNav, 7000);
setTimeout(initFooter, 9000);
setTimeout(toggleMapRollovers, 8000, true);
setTimeout(toggleNav, 7001, false);
}
content_mc.section_mc._alpha = 100;
var _local4 = content_mc.section_mc.attachMovie("landing_mc", "landing_mc", 1, {_tint:16777215, _tintPercent:100});
_local4.colorTo(null, 2.5, "easeOutSine", 0.5);
_local4.map._x = getMapStartX();
_local4.map._y = 0;
_local4.map._scale = getMapStartZ();
if (SETTINGS.cid == "jp") {
_local4.map.smoke._visible = false;
_local4.map.smoke_towers._visible = false;
} else {
_local4.map.smoke._alpha = 0;
_local4.map.smoke.tween("_alpha", 100, 5, null, 3);
}
var _local5 = _root.attachMovie("bird0", "bird", 501, {_x:-Stage.width, _y:200});
_local5.tween("_x, _y, _scale", [Stage.width, -20, 30], 2.5, "easeOutSine", 0.5, {func:killThis, args:_local5});
content_mc.bg_mc.alphaTo(100, 2.5, "easeOutSine", 2);
content_mc.bg_mc.colorTo(null, 2.5, "easeOutSine", 2);
content_mc.section_mc.landing_mc.foreground._x = 50;
content_mc.section_mc.landing_mc.foreground._y = Stage.height - 170;
var _local2 = content_mc.section_mc.landing_mc.foreground.front;
_local2._alpha = 100;
_local2.road._yscale = (_local2.road._xscale = 70);
_local2.road.frameTo(30, 2, "linear", 1.5);
_local2.left_hill.sign._visible = false;
_local2.left_hill.callouts_holder._visible = false;
_local2.left_hill.lakeCallout._visible = false;
_local2.front.sign._visible = false;
_local2.front.callouts_holder._visible = false;
_local2.front.lakeCallout._visible = false;
_local2.front.tween("_xscale, _yscale, _x", [700, 700, (Stage.width / 2) - 400, Stage.height - 400], 4, "easeInOutSine", 0);
_local2.front.tween("_y", Stage.height - 400, 8, "easeInOutSine", 3);
_local2.right_hill.tween("_x", 670, 4, "easeInOutSine", 1);
_local2.left_hill.tween("_x", 100, 4, "easeInOutSine", 1);
_local2.road.tween("_xscale, _yscale", [100, 100], 3, "easeInOutSine");
_local2.road.tween("_x,_y", [220, _local2.road._y - 55], 3, "easeInOutSine", 0);
_local2.road.road_lines.stop();
_local2.road.road_lines.tween("_frame", 45, 4, "easeInOutSine", 3);
_local2.bart.tween("_y", -90, 1, "easeOutSine", 6);
landingRollovers(content_mc.section_mc.landing_mc.map);
initCallOuts(content_mc.section_mc.landing_mc.foreground.front.right_hill.callouts_holder);
content_mc._fgToonIsActive = true;
scaleX = Math.round((100 * Stage.width) / 960);
scaleY = Math.round((100 * Stage.height) / 900);
var _local6 = Math.min(scaleY, scaleX);
if (_local6 > 100) {
content_mc._xscale = (content_mc._yscale = _local6);
}
landingBirds();
}
function landingRollovers(pMC) {
var _local6 = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var _local10 = content_mc.section_mc.landing_mc.map;
if (_local10._x != -1100) {
_local10._x = -1100;
}
var _local7 = 5;
var _local11 = _local6.length - 1;
var _local3 = 0;
while (_local3 < _local11) {
var _local8 = _local10["section" + _local3];
_local8.index = _local3;
_local8.title = _local6[_local3].title;
_local8.active = _local6[_local3].active;
_local8.section = _local6[_local3].title;
var _local4 = simpsons_data.sections.entry[_local3]._value;
var _local13 = _simpsons.TextItem.createItem(_local8.titleMc, _local4, "map_items");
if (_local6[_local3].active == false) {
if ((_local6[_local3].title == "mart") && (_global.SETTINGS.cid == "us")) {
_local4 = "FIND ONE NEAR YOU";
} else {
_local4 = simpsons_data.misc.coming_soon2._value;
}
if (_global.SETTINGS.cid == "jp") {
_local4 = "";
}
var _local5 = _simpsons.TextItem.createItem(_local8.titleMc, _local4, "rootBeer");
_local13._y = (-(_local13._height + (_local5._height - 3))) / 2;
if (_global.SETTINGS.cid == "jp") {
_local5._width = 100;
}
} else if (_local6[_local3].title == "hall") {
_local4 = simpsons_data.misc.coming_soon4._value.toUpperCase();
var _local5 = _simpsons.TextItem.createItem(_local8.titleMc, _local4, "rootBeer");
_local13._y = (-(_local13._height + (_local5._height - 3))) / 2;
} else {
_local13._y = (-_local13._height) / 2;
}
_local13._x = (-_local13._width) / 2;
_local5._x = (-_local5._width) / 2;
_local5._y = _local13._y + 12;
_local8.titleMc.bgMc._height = _local13._height + _local5._height;
if (_local8.titleMc.bgMc._height < 29.55) {
_local8.titleMc.bgMc._height = 29.55;
}
if (_local6[_local3].title == "hall") {
_local8.titleMc.bgMc._width = _local5._width + 10;
_local8.titleMc.bgMc._height = 40;
} else {
_local8.titleMc.bgMc._width = _local13._width + 10;
}
_local8.titleMc._alpha = 0;
_local8.titleMc._scale = 75;
_local8.hitArea = _local8.hitMc;
_local8.onRollOver = function () {
this.scaleTo(140, 1, "easeOutElastic");
this.titleMc.alphaTo(100, 0.5, "easeInOutSine");
_65.media.AudioController.addAudio("moes_rollover");
};
_local8.onRollOut = (_local8.onReleaseOutside = function () {
this.scaleTo(100, 0.3, "easeOutQuad");
this.titleMc.alphaTo(0, 0.5, "easeInOutSine");
});
_local8.onRelease = function () {
if (this.active == true) {
this.scaleTo(100, 0.3, "easeOutQuad");
this.titleMc.alphaTo(0, 0.5, "easeInOutSine");
this.enabled = false;
if (this.title == "hall") {
loadSection(this.section);
} else {
loadSection(this.section);
}
} else if ((this.title == "mart") && (_global.SETTINGS.cid == "us")) {
loadMartCallout();
}
};
if (_local8) {
_local8.scaleTo(100, 1, "easeOutElastic", _local7, {extra1:40});
_65.media.AudioController.addAudio("moes_rollover", 30, _local7);
_local7 = _local7 + 0.2;
}
_local3++;
}
var _local14 = content_mc.section_mc.landing_mc.foreground.front.right_hill.sign;
_local14.attachMovie("welcome_" + _global.SETTINGS.cid, "welcomeSignTxt", _local14.getNextHighestDepth(), {_x:29.1, _y:56.1});
var _local8 = pMC._parent.foreground.front.right_hill.lakeCallout;
_local8.index = 5;
_local8.active = _local6[_local8.index].active;
_local8.section = _local6[_local8.index].title;
var _local13 = _simpsons.TextItem.createItem(_local8, simpsons_data.sections.entry[_local8.index]._value, "map_items", {_tint:16777215});
_local13._x = (-_local13._width) / 2;
_local13._y = (-_local13._height) / 2;
var _local12 = _simpsons.TextItem.createItem(_local8.titleMc, simpsons_data.misc.coming_soon2._value, "map_items");
_local12._x = (-_local12._width) / 2;
_local12._y = (-_local12._height) / 2;
_local8.titleMc.bgMc._width = _local12._width + 10;
_local8.titleMc._alpha = 0;
_local8.onRollOver = function () {
if (!this.active) {
this.titleMc.alphaTo(100, 0.5, "easeInOutSine");
}
_65.media.AudioController.addAudio("moes_rollover");
};
_local8.onRollOut = (_local8.onReleaseOutside = function () {
this.titleMc.alphaTo(0, 0.5, "easeInOutSine");
});
_local8.onRelease = function () {
if (this.active) {
loadSection(this.section);
this.titleMc.alphaTo(0, 0.5, "easeInOutSine");
this.enabled = false;
}
};
}
function loadMartCallout() {
var _local4 = content_mc.scrim_mc.getNextHighestDepth();
var _local2 = content_mc.scrim_mc.createEmptyMovieClip("scrim" + _local4, _local4);
_local2._x = -472;
_local2._y = 100;
var _local3 = new MovieClipLoader();
var _local5 = new Object();
_local5.onLoadInit = function (mc) {
mc.closeBtn.onRelease = function () {
this._parent.removeMovieClip();
};
};
_local3.addListener(_local5);
_local3.loadClip("content/callouts/simp_kwik_callout_01.swf", _local2);
}
function landingBirds(pIsReset) {
var _local14 = content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc;
if (!_local14) {
_local14 = content_mc.section_mc.landing_mc.foreground.front.right_hill.createEmptyMovieClip("birds_mc", 0);
}
var _local1 = new Array();
_local1[0] = [366, -889, 46, 484, -355];
_local1[1] = [1286, -693, 48, 524, -354];
_local1[2] = [1383, -490, 50, 572, -359];
_local1[3] = [-129, -834, 50, 597, -372];
_local1[4] = [1060, -847, 55, 642, -370];
var _local4;
var _local6 = new Object();
var _local3 = 0;
while (_local3 < 5) {
_local4 = (pIsReset ? (3 + (_local3 * 0.2)) : (7.5 + (_local3 * 0.2)));
if (_local3 == 4) {
_local6 = {func:initBartShooter};
}
var _local2 = _local14.attachMovie("bird" + _local3, "bird" + _local3, _local3, {index:_local3, isHit:false, _alpha:0, _x:_local1[_local3][0], _y:_local1[_local3][1], _scale:_local1[_local3][2]});
_local2.alphaTo(100, 0.01, "linear", _local4);
_local2.slideTo(_local1[_local3][3], _local1[_local3][4], 1.5, "easeOutSine", _local4);
_local2.frameTo(2, 0, "linear", _local4 + 1.5, _local6);
_local3++;
}
var _local16 = _65.media.AudioController.addAudio("birds_fly_in", 100, _local4 - 0.7);
_local3 = 0;
while (_local3 < 2) {
var _local5 = content_mc.section_mc.landing_mc.foreground.front.right_hill.sign["can" + _local3];
if (_local5.isHit == undefined) {
_local5.isHit = false;
}
_local3++;
}
}
function initBartShooter(pIsReset) {
if (_SECTION == "landing") {
toggleNav(true);
var _local3 = content_mc.section_mc.landing_mc.foreground.front.bart;
var _local10 = content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc;
var _local9 = 0;
if (!bartTargets) {
bartTargets = new Array();
var _local6 = 0;
while (_local6 < 5) {
var _local2 = content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc["bird" + _local6];
var _local4 = {x:_local2._x, y:_local2._y};
_local2._parent.localToGlobal(_local4);
_local3.globalToLocal(_local4);
bartTargets.push(_local4);
_local4 = {x:_local2._x + _65.Math2.random(0, 300), y:_local2._y + _65.Math2.random(-300, 0)};
_local2._parent.localToGlobal(_local4);
_local3.globalToLocal(_local4);
bartTargets.push(_local4);
_local6++;
}
_local6 = 0;
while (_local6 < 2) {
var _local5 = content_mc.section_mc.landing_mc.foreground.front.right_hill.sign["can" + _local6];
var _local4 = {x:_local5._x, y:_local5._y};
_local5._parent.localToGlobal(_local4);
_local3.globalToLocal(_local4);
bartTargets.push(_local4);
_local4 = {x:_local2._x + _65.Math2.random(0, 300), y:_local2._y + _65.Math2.random(-300, 0)};
_local2._parent.localToGlobal(_local4);
_local3.globalToLocal(_local4);
bartTargets.push(_local4);
_local6++;
}
}
targetHit = _65.Array2.shuffle(bartTargets);
_local3.tween("_y", -90, 1, "easeInOutSine");
_local3.gotoAndStop(1);
_local3.hit.isShooting = false;
_local3.hit.onRollOver = function () {
if (shootCount == 0) {
this._parent.laugh = _65.media.AudioController.addAudio("bart_whoa");
shootCount++;
}
if (!this.isShooting) {
this._parent.tween("_frame", 8, 0.3);
if (!this.pullAudio.duration) {
this.pullAudio = _65.media.AudioController.addAudio("sling_shot_pull");
}
}
};
_local3.hit.onRollOut = (_local3.hit.onReleaseOutside = function () {
if (!this.isShooting) {
this._parent.tween("_frame", 1, 0.4);
}
});
_local3.hit.onRelease = function () {
if (!this.isShooting) {
bartShoot();
}
};
}
}
function bartShoot() {
var _local9 = content_mc.section_mc.landing_mc.foreground.front.bart;
_local9.gotoAndStop(8);
_local9.tween("_frame", 13, 0.3, "linear", 0, {func:bartReset});
_local9.hit.isShooting = true;
_local9.hit.enabled = false;
if (shootCount == 0) {
if (!_local9.laugh.duration) {
_local9.laugh = _65.media.AudioController.addAudio("bart_whoa");
}
shootCount++;
}
_65.media.AudioController.addAudio("sling_shot_release");
var _local13 = _local9.getNextHighestDepth();
var _local12 = _local9.attachMovie("rock", "rock" + _local13, _local13, {_x:102, _y:134});
_local12.tween("_x, _y, _scale", [targetHit[0].x, targetHit[0].y, 50], 1);
_local12.tween("_alpha", 0, 1, null, 0.4, {func:bartMiss, args:_local12});
_local12.onEnterFrame = function () {
var _local10 = false;
var _local3 = 0;
while (_local3 < 5) {
var _local4 = content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc["bird" + _local3];
if (this.hitTest(_local4) && (!_local4.isHit)) {
_local4.play();
break;
}
_local3++;
}
_local3 = 0;
while (_local3 < 2) {
var _local2 = content_mc.section_mc.landing_mc.foreground.front.right_hill.sign["can" + _local3];
if (this.hitTest(_local2) && (!_local2.isHit)) {
_local2.tween(["_bezier_", "_rotation"], [{x:"600", y:"550", controlX:"300", controlY:"-400"}, 1000], 1, "linear");
_local2.isHit = true;
_65.media.AudioController.addAudio("can_hit");
_local10 = true;
break;
}
_local3++;
}
if (_local10) {
tempPts = tempPts + 10;
buildTempPtsWindow();
_65.media.AudioController.addAudio("pts_chime", 100, 0.15);
var _local9 = 5;
_local3 = 0;
while (_local3 < 5) {
var _local4 = content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc["bird" + _local3];
if (_local4.isHit || (_local4.isHit == undefined)) {
_local9--;
}
_local3++;
}
if (_local9 == 0) {
setTimeout(landingBirds, 3100, true);
}
removeMovieClip(this);
}
};
targetHit.shift();
if (targetHit[0] == undefined) {
targetHit = _65.Array2.shuffle(bartTargets);
}
}
function bartReset() {
var _local1 = content_mc.section_mc.landing_mc.foreground.front.bart;
_local1.gotoAndStop(1);
_local1.hit.isShooting = false;
_local1.hit.enabled = true;
}
function bartMiss(pRock) {
_65.media.AudioController.addAudio("shot_miss", 100);
pRock.removeMovieClip();
}
function buildTempPtsWindow() {
if ((tempPts == 20) && (!user.__get__isLoggedIn())) {
var _local5 = content_mc.section_mc.landing_mc.getNextHighestDepth();
var ptsWindow = content_mc.section_mc.landing_mc.attachMovie("ptsWindow", "ptsWindow", _local5, {_alpha:0, _x:300, _y:80});
var _local4 = simpsons_data.pts_callout._value;
var _local3 = simpsons_data.pts_callout.btn;
var _local9 = _simpsons.TextItem.setText(ptsWindow.txt, _local4, "callout");
var _local2 = _simpsons.TextItem.createItem(ptsWindow.register, _local3, "subnav");
_local2._x = (-_local2._width) / 2;
_local2._y = (-_local2._height) / 2;
ptsWindow.register.bg._alpha = 0;
ptsWindow.register.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
ptsWindow.register.onRollOut = (form.register.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
ptsWindow.register.onRelease = function () {
scrimSelect("login", 0, "register");
closeTempPtsWindow(ptsWindow);
};
ptsWindow.close.onRollOver = function () {
this.tween("_scale", 110, 1, "easeOutElastic");
};
ptsWindow.close.onRollOut = (form.register.onReleaseOutside = function () {
this.tween("_scale", 100, 1, "easeOutElastic");
});
ptsWindow.close.onRelease = function () {
closeTempPtsWindow(ptsWindow);
};
ptsWindow.tween("_alpha", 100, 1, "easeInOutSine");
}
}
function closeTempPtsWindow(pTarget) {
pTarget.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:killThis, args:pTarget});
tempPts = 0;
}
function initCallOuts(pMC) {
var _local9 = _65.data.XmlData.getArray(simpsons_data.callouts, "entry");
var _local4 = 0;
while (_local4 < 3) {
if ((_global.SETTINGS.cid != "us") || (_global.SETTINGS.cid != "en")) {
content_mc.section_mc.landing_mc.foreground.front.right_hill.sign.welcomeSignTxt.callouts["sign" + _local4]._visible = false;
var _local11 = pMC.createEmptyMovieClip("smallSign" + _local4, pMC.getNextHighestDepth());
}
var _local5 = pMC["callout" + _local4];
var _local8 = _local5.createEmptyMovieClip("image", 0);
var _local6 = new MovieClipLoader();
var _local7 = new Object();
_local7.onLoadInit = function (pTarget) {
pTarget._y = -10;
pTarget._x = (-pTarget._width) / 2;
};
_local6.addListener(_local7);
if ((_global.SETTINGS.cid == "us") || (_global.SETTINGS.cid == "en")) {
_local6.loadClip(_local9[_local4].src, _local8);
} else {
_local6.loadClip(((("content/callouts/callout0" + (_local4 + 1)) + "_") + _global.SETTINGS.cid) + ".swf", _local8);
}
_local5.active = _local9[_local4].active;
_local5.code = _local9[_local4].code;
_local5.onRollOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_scale", 110, 2, "easeOutElastic");
_65.media.AudioController.addAudio("bar_rollover_picture");
};
_local5.onRollOut = (_local5.onReleaseOutside = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_scale", 100, 1, "easeOutElastic");
});
_local5.onRelease = function () {
if (this.active) {
if (this.code == "avatar") {
loadSection("simpsonizer");
toggleNav(true);
} else if (this.code == "login") {
if (user.__get__isLoggedIn()) {
scrimSelect("account", 0, "account");
} else {
scrimSelect("login", 0, "login");
}
} else {
getURL (("javascript:track('games/" + this.code) + "')");
getURL (((((((((("javascript:popFeature('" + _global.SETTINGS.cid) + "', '") + this.code) + "', ") + user.__get__id()) + ", '") + _root.user.username) + "', '") + _root.user.password) + "')");
fadeMySite(true);
}
}
};
_local4++;
}
}
function loadSection(pSectionTitle) {
if (pSectionTitle == "landing") {
myAudio.fadeVolume(10, 1);
myAudioLanding.fadeVolume(50, 1);
} else {
myAudio.fadeVolume(0, 1);
myAudioLanding.fadeVolume(0, 1);
}
if ((((pSectionTitle != "landing") && (pSectionTitle != "simpsonizer")) && (_SECTION != "simpsonizer")) && (_SECTION == "landing")) {
getURL (("javascript:track('" + pSectionTitle) + "')");
var _local9 = content_mc.section_mc.landing_mc.map._x - 200;
var _local8 = content_mc.section_mc.landing_mc.map._y + 200;
content_mc.section_mc.landing_mc.map.tween("_x,_y,_scale", [_local9, _local8, 120], 2, "easeInOutSine");
content_mc.section_mc.landing_mc.map.colorTo(16777215, 0.5, "easeInOutSine", 1.5, function () {
content_mc.section_mc.landing_mc.map._visible = false;
});
var _local2 = content_mc.section_mc.landing_mc.foreground.front;
_local2.road.tween("_y", -25, 4, "easeInOutSine");
content_mc.section_mc.landing_mc.foreground.front.right_hill.callouts_holder.tween("_alpha", 0, 0.5, "easeInOutSine");
content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc.tween("_alpha", 0, 0.5, "easeInOutSine");
_local2.bart.tween("_y", 400, 2, "easeInOutSine");
_local2.right_hill.sign.tween("_x, _y,", ["1000", "500"], 4, "easeInOutSine");
_local2.right_hill.lakeCallout.tween("_x, _y,", ["1200", "600"], 4, "easeInOutSine");
_local2.road.road_lines.play();
var _local14 = content_mc.section_mc.landing_mc.getDepth();
var _local7 = content_mc.section_mc.getNextHighestDepth();
var _local10 = content_mc.section_mc.createEmptyMovieClip(pSectionTitle + "_mc", _local7);
content_mc.section_mc.landing_mc.swapDepths(_local10);
var _local3 = _local2.attachMovie("transition", "transition_mc", 2);
_local3._x = 250;
_local3._y = 100;
_local3._scale = 250;
_local3.tween("_scale, _x, _y", [100, 250, -400], 4, "easeInOutSine", 0, {func:startCarDriving, args:_local3.car});
_local3.carSound = _65.media.AudioController.addAudio("driving_loop", 100, 2, 100);
setTimeout(transitionLoader, 5000, pSectionTitle, _local10);
setTimeout(createRoadSign, 1500, _local2.road);
} else if (pSectionTitle == "simpsonizer") {
getURL ("javascript:track('avatar')");
var oldSection = content_mc.section_mc[_SECTION + "_mc"];
content_mc.bg_mc.alphaTo(0, 0.5, "easeInOutSine");
oldSection.colorTo(16777215, 0.5, "easeOutSine", null, function () {
killThis(oldSection);
});
simpsonizerTransition(pSectionTitle);
} else if (pSectionTitle == "landing") {
var oldSection = content_mc.section_mc[_SECTION + "_mc"];
content_mc.bg_mc.alphaTo(0, 0.5, "easeInOutSine");
oldSection.colorTo(16777215, 0.5, "easeOutSine", null, function () {
initLanding(true);
killThis(oldSection);
});
toggleLogo(true);
toggleNav(true);
toggleTopNav(true);
} else {
getURL (("javascript:track('" + pSectionTitle) + "')");
var oldSection = content_mc.section_mc[_SECTION + "_mc"];
content_mc.bg_mc.alphaTo(0, 0.5, "easeInOutSine");
oldSection.colorTo(16777215, 0.5, "easeOutSine", null, function () {
killThis(oldSection);
});
var _local5 = content_mc.section_mc.attachMovie("landing_mc", "landing_mc", content_mc.section_mc.getNextHighestDepth(), {_tint:16777215, _tintPercent:100});
_local5.colorTo(null, 2.5, "easeOutSine", 0.5);
content_mc.section_mc.landing_mc.foreground._x = 200;
content_mc.section_mc.landing_mc.foreground._y = Stage.height - 170;
_local5.map._visible = false;
var _local2 = content_mc.section_mc.landing_mc.foreground.front;
_local2._alpha = 100;
_local2.road._yscale = (_local2.road._xscale = 70);
_local2.road.frameTo(30, 2, "linear", 1.5);
_local2.right_hill.sign._visible = false;
_local2.right_hill.callouts_holder._visible = false;
_local2.right_hill.lakeCallout._visible = false;
_local2.left_hill.sign._visible = false;
_local2.left_hill.callouts_holder._visible = false;
_local2.left_hill.lakeCallout._visible = false;
_local2.front.sign._visible = false;
_local2.front.callouts_holder._visible = false;
_local2.front.lakeCallout._visible = false;
_local2.front.tween("_xscale, _yscale, _x", [700, 700, (Stage.width / 2) - 400, Stage.height - 400], 4, "easeInOutSine", 0);
_local2.front.tween("_y", Stage.height - 400, 8, "easeInOutSine", 3);
_local2.right_hill.tween("_x", 670, 4, "easeInOutSine", 1);
_local2.left_hill.tween("_x", 100, 4, "easeInOutSine", 1);
_local2.road.tween("_xscale, _yscale", [100, 100], 3, "easeInOutSine");
_local2.road.tween("_x,_y", [220, _local2.road._y - 55], 3, "easeInOutSine", 0);
_local2.road.road_lines.stop();
_local2.road.road_lines.tween("_frame", 45, 4, "easeInOutSine", 3);
_local2.bart._visible = false;
var _local14 = content_mc.section_mc.landing_mc.getDepth();
var _local7 = content_mc.section_mc.getNextHighestDepth();
var _local10 = content_mc.section_mc.createEmptyMovieClip(pSectionTitle + "_mc", _local7);
var _local3 = _local2.attachMovie("front_car", "transition_mc", 2);
_local3._x = 250;
_local3._y = 100;
if ((_root.user.isLoggedIn && (_root.user.avatars.length >= 1)) && (_root.user.avatars[0].id != undefined)) {
var _local6 = new _simpsons.simpsonizer.SimpsonsAvatar(_local3.car.homer.avatar);
_local6.load(_root.user.avatars[0]);
_local3.car.homer.avatar.setMask(_local3.car.homer.avatarMask);
} else {
_local3.car.homer.avatar._visible = false;
_local3.car.homer.avatarMask._visible = false;
}
_local3._scale = 250;
_local3.tween("_scale, _x, _y", [100, 250, -400], 4, "easeInOutSine", 0, {func:startCarDriving2, args:_local3.car});
_local3.carSound = _65.media.AudioController.addAudio("driving_loop", 100, 2, 100);
content_mc.bg_mc.alphaTo(0, 0.5, "easeOutSine", 0);
setTimeout(transitionLoader, 5000, pSectionTitle, _local10);
}
_SECTION = pSectionTitle;
}
function simpsonizerTransition(pSectionTitle) {
var _local5 = content_mc.section_mc.landing_mc.map._x - 200;
var _local4 = content_mc.section_mc.landing_mc.map._y + 200;
content_mc.section_mc.landing_mc.map.tween("_x,_y,_scale", [_local5, _local4, 120], 2, "easeInOutSine");
content_mc.section_mc.landing_mc.map.colorTo(16777215, 0.5, "easeInOutSine", 1.5, function () {
content_mc.section_mc.landing_mc.map._visible = false;
killThis(oldSection);
});
var oldSection = content_mc.section_mc[_SECTION + "_mc"];
content_mc.bg_mc.alphaTo(0, 0.5, "easeInOutSine");
oldSection.colorTo(16777215, 0.5, "easeOutSine", null, function () {
killThis(oldSection);
});
var _local1 = content_mc.section_mc.landing_mc.foreground.front;
_local1.road.tween("_y", -25, 4, "easeInOutSine");
content_mc.section_mc.landing_mc.foreground.front.right_hill.callouts_holder.tween("_alpha", 0, 0.5, "easeInOutSine");
content_mc.section_mc.landing_mc.foreground.front.right_hill.birds_mc.tween("_alpha", 0, 0.5, "easeInOutSine");
_local1.bart.tween("_y", 400, 2, "easeInOutSine");
_local1.right_hill.sign.tween("_x, _y,", ["1000", "500"], 4, "easeInOutSine");
_local1.right_hill.lakeCallout.tween("_x, _y,", ["1200", "600"], 4, "easeInOutSine");
var _local8 = content_mc.section_mc.landing_mc.getDepth();
var _local3 = content_mc.section_mc.getNextHighestDepth();
var _local2 = content_mc.section_mc.createEmptyMovieClip(pSectionTitle + "_mc", _local3);
content_mc.section_mc.landing_mc.swapDepths(_local2);
transition.tween("_x, _y", [500, -140], 2, "easeInSine", 0);
if (_SECTION == "landing") {
_local1.tween("_x,_y,_scale", [-500, Stage.height - 100, 150], 2, "easeInSine", 0, {func:killThis, args:transition});
}
content_mc.section_mc.landing_mc.colorTo(16777215, 1, "easeInSine", 2, {func:killThis, args:content_mc.section_mc.landing_mc});
simpsonizerLoader(pSectionTitle, _local2);
}
function startCarDriving(pMC) {
pMC.tween("_x, _rotation", [_65.Math2.random(400, 550), -1], 3, "easeInOutSine", null, {cycles:2});
pMC.body.hand.tween("_frame", 50, 3, "easeInOutSine", 0.3, {cycles:2});
pMC.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
var _local3 = setInterval(carLoop, 10000, pMC);
}
function startCarDriving2(pMC) {
pMC.tween("_x, _rotation", [_65.Math2.random(200, 350), -1], 3, "easeInOutSine", null, {cycles:2});
pMC.body.hand.tween("_frame", 50, 3, "easeInOutSine", 0.3, {cycles:2});
pMC.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
var _local3 = setInterval(carLoop2, 10000, pMC);
}
function transitionOut() {
var _local1 = content_mc.section_mc.landing_mc.foreground.front;
if (_local1 != undefined) {
var _local2 = _local1.transition_mc;
_local2.car.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
_local2.tween("_x, _y", [500, -140], 2, "easeInSine", 0);
_local1.tween("_x,_y,_scale", [-500, Stage.height - 100, 150], 2, "easeInSine", 0, {func:killThis, args:_local2});
content_mc.section_mc.landing_mc.colorTo(16777215, 1, "easeInSine", 2, {func:killThis, args:content_mc.section_mc.landing_mc});
content_mc.bg_mc.alphaTo(0, 2, "easeOutSine", 2);
} else {
transitionOut2();
}
}
function transitionOut2() {
var _local2 = content_mc.section_mc;
var _local1 = _local2.transition_mc;
_local1.car.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
_local1.carSound.fadeVolume(-1, 2);
_local1.tween("_x, _y", [350, 740], 1, "easeInSine", 0, {func:killThis, args:_local1});
content_mc.section_mc.landing_mc.colorTo(16777215, 1, "easeInSine", 2, {func:killThis, args:content_mc.section_mc.landing_mc});
content_mc.bg_mc.alphaTo(0, 2, "easeOutSine", 2);
}
function carLoop(pMC) {
function carMovement(pPosition, pDelay, pSecondDelay) {
pMC.tween("_x, _rotation", [pPosition, -1], pDelay, "easeInOutSine", null, {cycles:2});
pMC.body.hand.tween("_frame", 50, pDelay, "easeInOutSine", 0.3, {cycles:2});
if (pDelay < 5) {
pMC.tween("_x, _rotation", [pPosition - 75, -1], pSecondDelay, "easeInOutSine", pDelay, {cycles:2});
pMC.body.hand.tween("_frame", 50, pSecondDelay, "easeInOutSine", pDelay + 0.3, {cycles:2});
pMC.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
}
}
var _local1 = _65.Math2.random(1, 5);
var _local2 = _65.Math2.random(400, 550);
switch (_local1) {
case 1 :
carMovement(_local2, _local1, 4);
break;
case 2 :
carMovement(_local2, _local1, 3);
break;
case 3 :
carMovement(_local2, _local1, 3);
break;
case 4 :
carMovement(_local2, _local1, 1);
break;
case 5 :
carMovement(_local2, _local1, 0);
}
}
function carLoop2(pMC) {
function carMovement(pPosition, pDelay, pSecondDelay) {
pMC.tween("_x, _rotation", [pPosition, -1], pDelay, "easeInOutSine", null, {cycles:2});
pMC.body.hand.tween("_frame", 50, pDelay, "easeInOutSine", 0.3, {cycles:2});
if (pDelay < 5) {
pMC.tween("_x, _rotation", [pPosition - 75, -1], pSecondDelay, "easeInOutSine", pDelay, {cycles:2});
pMC.body.hand.tween("_frame", 50, pSecondDelay, "easeInOutSine", pDelay + 0.3, {cycles:2});
pMC.body.body_homer.homer.tween("_frame", 25, 2, "easeInOutSine");
}
}
var _local1 = _65.Math2.random(1, 5);
var _local2 = _65.Math2.random(200, 350);
switch (_local1) {
case 1 :
carMovement(_local2, _local1, 4);
break;
case 2 :
carMovement(_local2, _local1, 3);
break;
case 3 :
carMovement(_local2, _local1, 3);
break;
case 4 :
carMovement(_local2, _local1, 1);
break;
case 5 :
carMovement(_local2, _local1, 0);
}
}
function createRoadSign(pMC) {
var _local4 = pMC.getNextHighestDepth();
var _local3 = _root.simpsons_data.transition.almost_there._value;
var _local2 = pMC.attachMovie("road_sign0", "road_sign", _local4);
_simpsons.TextItem.setText(_local2.loader.txt, _local3, "nav");
_local2._scale = 10;
_local2._x = 905;
_local2._y = 20;
_local2._alpha = 0;
_local2.tween("_scale, _x, _y", [500, 1210, -1400], 7, "easeInOutSine", null, {func:killThis, args:_local2});
_local2.tween("_alpha", 100, 1, "easeInOutSine");
_local2.loader.load_txt.text = percentSectionLoaded;
}
function transitionLoader(pSectionTitle, pMC) {
createLoader(content_mc.section_mc, -90, 210, "loader_transition");
content_mc.section_mc.loader.progress._width = 0;
var transition = content_mc.section_mc.landing_mc.foreground.front.transition_mc;
scaleX = Math.round((100 * Stage.width) / 960);
scaleY = Math.round((100 * Stage.height) / 900);
var _local5 = Math.min(scaleX, scaleY);
transition_mcl = new MovieClipLoader();
var _local1 = new Object();
_local1.scaleFactor = _local5;
_local1.onLoadInit = function (target_mc) {
currMcKill = target_mc;
transitionOut();
content_mc.section_mc._alpha = 100;
target_mc._x = -target_mc._parent._parent._x;
var _local3 = Math.round((100 * target_mc._width) / 960);
var _local2 = Math.round((100 * target_mc._height) / 900);
var _local4 = Math.min(_local3, _local2);
content_mc.section_mc.loader.tween("_alpha", 0, 0.5, null, null, {func:killThis, args:content_mc.section_mc.loader});
transition.carSound.fadeVolume(-1, 2);
};
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = (numBytesLoaded / numBytesTotal) * 100;
percentSectionLoaded = Math.round(_local1);
content_mc.section_mc.loader.load_txt.text = percentSectionLoaded + "%";
content_mc.section_mc.loader.progress._width = (133.6 * percentSectionLoaded) * 0.01;
var _local2 = percentSectionLoaded + 100;
};
transition_mcl.addListener(_local1);
transition_mcl.loadClip(("content/sections/" + pSectionTitle) + ".swf", pMC);
}
function simpsonizerLoader(pSectionTitle, pMC) {
toggleGlowLogo(false);
createLoader(content_mc.section_mc, -90, 210, "loader_transition");
content_mc.section_mc.loader.progress._width = 0;
scaleX = Math.round((100 * Stage.width) / 960);
scaleY = Math.round((100 * Stage.height) / 900);
var _local3 = Math.min(scaleX, scaleY);
my_mcl = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadComplete = function (target_mc) {
transitionOut();
toggleLogo(true);
toggleNav(true);
toggleTopNav(true);
content_mc.section_mc._alpha = 100;
target_mc._x = -target_mc._parent._parent._x;
target_mc._y = -target_mc._parent._parent._y;
target_mc._xscale = (target_mc._yscale = scalefactor);
content_mc.section_mc.loader.tween("_alpha", 0, 0.5, null, null, {func:killThis, args:content_mc.section_mc.loader});
};
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = (numBytesLoaded / numBytesTotal) * 100;
percentSectionLoaded = Math.round(_local1);
content_mc.section_mc.loader.load_txt.text = percentSectionLoaded + "%";
content_mc.section_mc.loader.progress._width = (133.6 * percentSectionLoaded) * 0.01;
};
my_mcl.addListener(_local1);
my_mcl.loadClip(("content/sections/" + pSectionTitle) + ".swf", pMC);
}
function initNav(pIsReset) {
if (pIsReset == true) {
var _local12 = content_mc.bottom_mc.nav_mc;
_local12._alpha = 100;
} else {
var _local15 = content_mc.bottom_mc.getNextHighestDepth();
var _local12 = content_mc.bottom_mc.createEmptyMovieClip("nav_mc", _local15);
}
if (user.__get__isLoggedIn() == true) {
var _local5 = _65.data.XmlData.getArray(simpsons_data.navigation_loggedin, "entry");
} else {
var _local5 = _65.data.XmlData.getArray(simpsons_data.navigation, "entry");
}
var _local13 = _local5.length;
var _local7 = 0;
var _local14 = 10;
var _local4 = 0;
while (_local4 < _local13) {
var _local3 = _local12.attachMovie("nav_item", "nav_item" + _local4, _local4, {_x:_local7, _y:_local14, _alpha:0, index:_local4, txt:_local5[_local4]._value, active:_local5[_local4].active, title:_local5[_local4].title, selected:false});
var _local6 = _simpsons.TextItem.createItem(_local3, _local5[_local4]._value, "nav", {_x:5});
_local6._y = (36 - _local6._height) - 4;
_local3.nav_bg._alpha = 0;
_local3.nav_bg._width = _local6._width + 10;
_local7 = _local7 + (_local3.nav_bg._width + 7);
_local3.bg_mc._width = _local3.title_mc._width;
_local3.tween("_alpha", 100, 2, "easeOutBounce", 0.3 * _local4);
if (_local5[_local4].active == false) {
_local6 = _simpsons.TextItem.createItem(_local3, simpsons_data.misc.coming_soon1._value, "comingsoon", {_alpha:0});
_local6._x = (_local3.nav_bg._width - _local6._width) / 2;
}
if (_local4 == 0) {
_local6.colorTo(11094885, 1);
}
_local3.onRollOver = function () {
this.nav_bg.tween("_alpha", 100, 0.5, "easeInOutSine");
if (this.active == false) {
this.n0_mc.alphaTo(0, 0.5, "easeInOutSine");
this.n1_mc.alphaTo(100, 0.5, "easeInOutSine");
}
_65.media.AudioController.addAudio("lower_options_roll", 100, 0.15);
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
if (this.active == false) {
this.n0_mc.alphaTo(100, 0.5, "easeInOutSine");
this.n1_mc.alphaTo(0, 0.5, "easeInOutSine");
}
if (this.selected == false) {
this.nav_bg.tween("_alpha", 0, 0.5, "easeInOutSine");
}
});
_local3.onRelease = function () {
if (this.active == true) {
if ((_global.SETTINGS.cid == "jp") && (this.title == "mobile")) {
getURL ("http://movies.foxjapan.com/simpsons/mobile/", "_blank");
} else {
scrimSelect(this.title, this.index);
_global.stopSection();
this.selected = true;
selectNav(this.index);
}
_65.media.AudioController.addAudio("lower_options_click");
}
};
_local4++;
}
_local12._x = (840 - _local7) / 2;
_local12._y = 0;
initSoundController(_local7);
}
function selectNav(pIndex) {
var _local5 = _65.data.XmlData.getArray(simpsons_data.navigation, "entry");
var _local3 = _local5.length;
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = content_mc.bottom_mc.nav_mc["nav_item" + _local2];
_local1.nav_bg.tween("_alpha", 0, 0.5, "easeInOutSine");
_local1.selected = false;
_local1.enabled = true;
_local2++;
}
if (pIndex != undefined) {
var _local4 = content_mc.bottom_mc.nav_mc["nav_item" + pIndex];
_local4.nav_bg.tween("_alpha", 100, 0.5, "easeInOutSine");
_local4.selected = true;
_local4.enabled = false;
}
}
function navLogout(pMC) {
scrimClose(pMC._parent);
content_mc.bottom_mc.nav_mc.tween("_alpha", 0, 1, "easeInOutSine", null, {func:resetNav});
user.__set__isLoggedIn(false);
}
function navLogin(pMC) {
scrimClose(pMC);
content_mc.bottom_mc.nav_mc.tween("_alpha", 0, 1, "easeInOutSine", null, {func:resetNav});
}
function resetNav() {
var _local2;
for (_local2 in content_mc.bottom_mc.nav_mc) {
var _local1 = content_mc.bottom_mc.nav_mc[_local2];
removeMovieClip(_local1);
}
initNav(true);
}
function initSoundController(pX) {
function toggleSound() {
if (isSoundPlaying == true) {
controller.soundDrag_mc.tween("_x", -1, 0.5, "easeInOutSine", null, function () {
setVolume(0, true);
});
} else if (isSoundPlaying == false) {
controller.soundDrag_mc.tween("_x", 56, 0.5, "easeInOutSine", null, function () {
setVolume(100, true);
});
}
}
var _local3 = content_mc.bottom_mc.nav_mc.getNextHighestDepth();
var controller = content_mc.bottom_mc.nav_mc.attachMovie("sound_controls", "sound_controls", _local3);
controller._x = pX + 30;
controller._y = 21;
controller._alpha = 0;
controller.tween("_alpha", 100, 0.5, "easeInOutSine", 2.5);
var volumeRange = 56;
controller.soundDrag_mc.onPress = function () {
this.startDrag(false, -1, 4, volumeRange, 4);
controller.onEnterFrame = function () {
var _local2 = Math.round((this.soundDrag_mc._x / volumeRange) * 100);
setVolume(_local2);
};
};
controller.soundDrag_mc.onRollOut = function () {
this.stopDrag();
};
controller.soundDrag_mc.onRelease = (controller.soundDrag_mc.onReleaseOutside = function () {
this.stopDrag();
});
controller.speaker.onRelease = toggleSound;
setVolume(25);
}
function setVolume(pVolume, pIsReset) {
var _local3 = 56;
var _local1 = content_mc.bottom_mc.nav_mc.sound_controls;
if (pIsReset != true) {
_local1.soundDrag_mc._x = Math.round((_local3 * pVolume) / 100);
}
var _local4 = Math.round(((_local1.soundDrag_mc._x / _local3) * 100) / 33) + 1;
_local1.speaker.gotoAndStop(_local4);
_65.media.AudioController.fadeVolume(pVolume, 0.5);
if (pVolume == 0) {
isSoundPlaying = false;
} else if (pVolume > 0) {
isSoundPlaying = true;
}
}
function initTopNav() {
var _local12 = top_mc.createEmptyMovieClip("topNav_mc", 1);
_local12._x = 270;
_local12._y = -38;
var _local4 = _65.data.XmlData.getArray(simpsons_data.topnav, "entry");
var _local13 = _local4.length;
var _local5 = 0;
var _local1 = 0;
while (_local1 < _local13) {
var _local3 = _local12.attachMovie("topNavBlock", "topNav_" + _local1, _local1, {_x:_local5, _alpha:100, title:_local4[_local1].title, name:_local4[_local1].name});
_local5 = _local5 + 220;
_local3.block.tween("_frame", 18, 1, "easeOutSine", _local1 * 0.4);
var _local2 = _simpsons.TextItem.createItem(_local3, _local4[_local1]._value, "top_nav", {width:151, bold:true});
_local2._x = (211 - _local2._width) / 2;
_local2._y = 75 - _local2._height;
_local2._alpha = 0;
_local2.tween("_alpha", 100, 1.5, "easeInOutSine", _local1 * 0.8);
_local1++;
}
}
function initTopNavContent(pMC, pTitle, pName) {
var _local2 = pMC.getNextHighestDepth();
var _local1 = pMC.attachMovie(pTitle + "_content", pTitle + "_content", _local2, {_x:105.5, _y:215, _scale:0});
_local1.tween("_scale", 100, 2, "easeOutElastic", 0.5);
switch (pTitle) {
case "avatar" :
initTopNavAvatar(_local1, pName);
break;
case "stars" :
initTopNavLeaderBoard(_local1, pName);
break;
case "tour" :
initTopNavTour(_local1);
}
}
function outTopNavContent(pMC, pTitle) {
var _local1 = pMC[pTitle + "_content"];
killThis(_local1);
}
function initTopNavAvatar(pMC, pName) {
var _local4 = _simpsons.TextItem.setText(pMC.desc.txt, pName, "topnav_name", false, 155, 31);
var _local3 = new _simpsons.simpsonizer.SimpsonsAvatar(pMC.avatar);
_local3.random();
pMC.desc.onRollOver = function () {
this.bg._tint = 16777215 /* 0xFFFFFF */;
};
pMC.desc.onRollOut = function () {
this.bg._tint = null;
};
pMC.desc.onRelease = function () {
loadSection("simpsonizer");
};
}
function initTopNavLeaderBoard(pMC, pName) {
var _local6 = _simpsons.TextItem.setText(pMC.desc.txt, pName, "topnav_name", false, 155, 31);
var _local5 = new _simpsons.SimpsonsPoints();
var _local3 = new Array();
var _local2 = new Array();
_local3.push(simpsons_data.leaderboard.sort);
_local2.push("");
i = 0;
while (i < simpsons_data.login.country.length) {
_local3.push(simpsons_data.login.country[i]._value);
_local2.push(simpsons_data.login.country[i].code);
if (simpsons_data.login.country[i].code == _global.SETTINGS.cid) {
drop.id = i;
}
i++;
}
pMC.drop1.section = "leaderboard";
pMC.drop1.dispArray = _local3;
pMC.drop1.dataArray = _local2;
pMC.drop1.dropSize = 400;
pMC.drop1._visible = false;
_local5.getLeaderBoard(pMC);
}
function leaderBoardPopulate(pMC, pData) {
var _local16 = pMC.getNextHighestDepth();
var scores_holder = pMC.createEmptyMovieClip("scores_holder", _local16);
scores_holder._x = -85;
scores_holder._y = 15;
var _local3 = 0;
var _local13 = 9;
var _local9 = 0;
var _local14 = 0;
while (_local3 < _local13) {
var _local4 = scores_holder.attachMovie("leaderBoard_item", "score_item_" + _local3, _local3, {_x:_local14, _y:_local9, _alpha:0});
var _local5 = _local4.createEmptyMovieClip("flag" + _local3, _local4.getNextHighestDepth());
_local5._x = 3.1;
_local5._y = 4;
_local5.loadMovie(("content/images/flags/" + pData[_local3].country) + ".gif");
var _local6 = pData[_local3].username;
if ((((_local3 == 1) || (_local3 == 3)) || (_local3 == 5)) || (_local3 == 7)) {
_local4.bg.colorTo(13421772, 0.3);
}
var _local7 = pData[_local3].s;
_local9 = _local9 + 20;
_local4.tween("_alpha", 100, 0.5, "easeInOutSine", _local3 * 0.2);
var _local11 = _simpsons.TextItem.setText(_local4.username, _local6, "leaderboard");
var _local10 = _simpsons.TextItem.setText(_local4.points, _local7.toString(), "leaderboard");
_local3++;
}
var _local18 = simpsons_data.leaderboard.title.toUpperCase();
var _local17 = scores_holder.createEmptyMovieClip("clipit", 100);
var _local15 = _simpsons.TextItem.createItem(_local17, _local18, "top_nav", {_x:0, _y:-25, width:200, height:20, bold:true, _xscale:100, _yscale:100});
_local15._x = (scores_holder._width - _local15._width) / 2;
if (_global.SETTINGS.cid == "us") {
scores_holder.attachMovie("DomGamesCallout", "gamesCallout", scores_holder.getNextHighestDepth(), {_x:85, _y:-95});
} else {
scores_holder.attachMovie("IntnlGamesCallout", "gamesCallout", scores_holder.getNextHighestDepth(), {_x:85, _y:-95});
}
if (_global.SETTINGS.cid != "jp") {
scores_holder.gamesCallout.onRelease = function () {
scrimSelect("games", 4);
};
}
var scores_mask = pMC.attachMovie("leaderBoardMask", "scores_mask", pMC.getNextHighestDepth(), {_x:-83, _y:-137});
scores_holder.setMask(scores_mask);
pMC.desc.onRollOver = function () {
this.bg._tint = 16777215 /* 0xFFFFFF */;
};
pMC.desc.onRollOut = function () {
this.bg._tint = null;
};
pMC.desc.onRelease = function () {
scores_holder.tween("_y", -82, 1, "easeInCubic");
scores_holder.gamesCallout.alphaTo(0, 0.5, "linear");
scores_holder.gamesCallout.enabled = false;
this.tween("_alpha", 0, 1, "linear");
scores_mask.tween("_height", scores_mask._height + 250, 1, "easeInCubic");
pMC.drop1._visible = true;
pMC.drop1._alpha = 0;
pMC.drop1.alphaTo(100, 1, "linear");
this.enabled = false;
};
}
function dropSelect(pMC, pSection) {
var _local2 = new _simpsons.SimpsonsPoints();
if ((pSection == "leaderboard") && (pMC.drop1.value != "")) {
g = 0;
while (g < 9) {
pMC.scores_holder["score_item_" + g].removeMovieClip();
g++;
}
_local2.sortLeaderBoard(pMC, pMC.drop1.value);
}
}
function filterLeaderBoard(pMC, pData) {
var _local1 = 0;
var _local13 = 9;
var _local7 = -107;
var _local15 = -83;
var _local14 = pMC;
while (_local1 < _local13) {
var _local2 = _local14.attachMovie("leaderBoard_item", "score_item_" + _local1, _local1, {_x:_local15, _y:_local7, _alpha:0});
var _local3 = _local2.createEmptyMovieClip("flag" + _local1, _local2.getNextHighestDepth());
_local3._x = 3.1;
_local3._y = 4;
_local3.loadMovie(("content/images/flags/" + pData[_local1].country) + ".gif");
var _local4 = pData[_local1].username;
if ((((_local1 == 1) || (_local1 == 3)) || (_local1 == 5)) || (_local1 == 7)) {
_local2.bg.colorTo(13421772, 0.3);
}
var _local5 = pData[_local1].s;
_local7 = _local7 + 20;
_local2.tween("_alpha", 100, 0.5, "easeInOutSine", _local1 * 0.2);
var _local9 = _simpsons.TextItem.setText(_local2.username, _local4, "leaderboard");
var _local8 = _simpsons.TextItem.setText(_local2.points, _local5.toString(), "leaderboard");
_local1++;
}
}
function initTopNavTour(pMC) {
var tourData = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var total = (tourData.length - 1);
var currentTourItem = 0;
var comingSoon_txt = simpsons_data.misc.coming_soon2._value;
pMC.forward.onRollOver = function () {
this.tween("_scale", 130, 1, "easeOutElastic");
if (!this.forwardAudio.duration) {
this.forwardAudio = _65.media.AudioController.addAudio("top_nav_arrow_roll");
}
};
pMC.forward.onRollOut = (pMC.forward.onReleaseOutside = function () {
this.tween("_scale", 100, 1, "easeOutElastic");
});
pMC.back.onRollOver = function () {
this.tween("_scale", 130, 1, "easeOutElastic");
if (!this.backAudio.duration) {
this.backAudio = _65.media.AudioController.addAudio("top_nav_arrow_roll");
}
};
pMC.back.onRollOut = (pMC.back.onReleaseOutside = function () {
this.tween("_scale", 100, 1, "easeOutElastic");
});
pMC.forward.onRelease = function () {
if (currentTourItem == total) {
swapTour(pMC, 0);
currentTourItem = 0;
} else {
swapTour(pMC, currentTourItem + 1);
currentTourItem = currentTourItem + 1;
}
};
pMC.back.onRelease = function () {
if (currentTourItem == 0) {
swapTour(pMC, total);
currentTourItem = total;
} else {
swapTour(pMC, currentTourItem - 1);
currentTourItem = currentTourItem - 1;
}
};
pMC.desc.onRollOver = function () {
if (tourData[currentTourItem].active == false) {
_simpsons.TextItem.setText(this.txt, comingSoon_txt, "topnav_name", false, 155, 31);
}
this.bg._tint = 16777215 /* 0xFFFFFF */;
};
pMC.desc.onRollOut = (pMC.desc.onReleaseOutside = function () {
if (tourData[currentTourItem].active == false) {
_simpsons.TextItem.setText(this.txt, tourData[currentTourItem]._value, "topnav_name", false, 155, 31);
}
this.bg._tint = null;
});
pMC.desc.onRelease = function () {
if ((tourData[currentTourItem].active == true) && (tourData[currentTourItem].title != _SECTION)) {
var _local2 = pMC._parent;
outTopNavContent(_local2, _local2.title);
_local2.gotoAndStop(1);
_local2.block.enabled = false;
_local2.block.gotoAndStop(18);
_local2.block.inner.tween("_alpha", 100, 0.5, "easeInOutSine");
_local2.onMouseMove = null;
_65.media.AudioController.addAudio("top_nav_rollout");
_root.toggleMapSections(true);
var _local3 = tourData[currentTourItem].title;
if (_local3 != _SECTION) {
_local2.block.enabled = true;
loadSection(_local3);
}
}
};
swapTour(pMC, 0);
}
function swapTour(pMC, pIndex) {
function loadItem() {
var tourData = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var tourName = tourData[pIndex]._value;
var _local4 = tourData.length;
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadComplete = function (target_mc) {
var _local1 = _simpsons.TextItem.setText(pMC.desc.txt, tourName, "topnav_name", false, 155, 31);
_local1._alpha = 0;
_local1.tween("_alpha", 100, 0.5, "easeInOutSine");
pMC.active = tourData[pIndex].active;
pMC.img_holder._alpha = 0;
pMC.img_holder.tween("_alpha, _scale", [100, 100], 1.5, customBounce_alt);
};
_local2.addListener(_local1);
_local2.loadClip(tourData[pIndex].thumb, pMC.img_holder.img);
}
pMC.img_holder.tween("_alpha, _scale", [0, 0], 0.5, "easeOutQuad", null, {func:loadItem});
}
function scrimSelect(pTitle, pIndex, pSection) {
killVideo(content_mc.scrim_mc.currentScrim);
toggleLandingSmoke(false);
toggleLandingCallouts(false);
var depth = content_mc.scrim_mc.getNextHighestDepth();
var oldDepth = (depth - 2);
var scrim = content_mc.scrim_mc.attachMovie("scrim", "scrim" + depth, depth);
var oldScrim = content_mc.scrim_mc["scrim" + oldDepth];
var oldBg = content_mc.scrim_mc.fadeBg;
oldBg.removeMovieClip();
content_mc.scrim_mc.currentScrim = scrim;
var randPos = randScrimPosition();
var customEasing = [{Mx:0, My:0, Nx:70, Ny:-132, Px:27, Py:-71}, {Mx:97, My:-203, Nx:78, Ny:74, Px:-7, Py:-72}, {Mx:168, My:-201, Nx:0, Ny:2, Px:32, Py:-1}, {Mx:200, My:-200, Nx:0, Ny:-2, Px:0, Py:2}, {Mx:200, My:-200}];
if (pTitle != "video") {
setTimeout(killVideo, 2001, oldScrim);
}
oldScrim.tween("_x, _y, _scale", [0, -400, 10], 1, "easeInOutSine");
oldScrim.tween("_alpha", 0, 1, "easeInOutSine", 0.7);
oldScrim.tween("_frame", [40], 1, "easeInOutSine");
oldScrim.close_mc.tween("_alpha", 0, 0.3, "easeOutElastic");
oldScrim.hdr.tween("_alpha", 0, 0.3, "easeOutElastic");
var i;
for (i in oldScrim) {
var clip = oldScrim[i];
clip.tween("_scale", 0, 0.5, "easeOutSine");
clip.tween("_alpha", 0, 0.5, "easeOutSine", 0.5);
}
var fadeBg = content_mc.scrim_mc.createEmptyMovieClip("fadeBg", content_mc.scrim_mc.getNextHighestDepth());
with (fadeBg) {
beginFill(0);
moveTo(0, 0);
lineTo(Stage.width * 2, 0);
lineTo(Stage.width * 2, Stage.height * 2);
lineTo(0, Stage.height * 2);
lineTo(0, 0);
endFill();
}
fadeBg._alpha = 0;
fadeBg._x = ((-Stage.width) / 2) - 200;
fadeBg._y = ((-Stage.height) / 2) - 200;
fadeBg.swapDepths(scrim);
fadeBg.onRelease = function () {
};
fadeBg.useHandCursor = false;
var scrimCenter = ((content_mc._y / 2) - (scrim._height / 2));
scrim._x = 0;
scrim._y = 200;
scrim._alpha = 0;
scrim._xscale = 10;
scrim._yscale = 10;
scrim.tween("_scale, _x, _y", [100, -185, 200], 2, customEasing);
scrim.tween("_frame", 20, 1, "easeInOutSine");
scrim.tween("_alpha", 100, 0.5, "easeInOutSine");
fadeBg.tween("_alpha", 35, 0.5, "linear", 2);
setTimeout(initScrim, 1400, scrim, pTitle, pIndex, pSection);
if (depth > 1) {
var removalDepth = (depth - 2);
var removeClip = scrim_mc["scrim" + removalDepth];
removeClip.removeMovieClip();
}
if (content_mc._fgToonIsActive == true) {
content_mc.section_mc.landing_mc.foreground.front.bart.tween("_y", 400, 1, "linear", 0.7);
content_mc._fgToonIsActive = false;
}
_global.stopSection();
var scriminAudio = _65.media.AudioController.addAudio("scrim_in", 100);
}
function initScrim(pMC, pScrimTitle, pIndex, pSection) {
function fadeContent(pMC) {
var _local2;
for (_local2 in pMC) {
var _local1 = pMC[_local2];
_local1.tween("_alpha", 0, 0.5, "easeOutSine");
}
}
if (user.__get__isLoggedIn() == true) {
var _local9 = simpsons_data.navigation_loggedin.entry[pIndex]._value;
} else {
var _local9 = simpsons_data.navigation.entry[pIndex]._value;
}
var _local8 = _simpsons.TextItem.createItem(pMC, _local9, "scrim_title", {bold:true, _y:-50});
_local8._x = ((866 - _local8._width) / 2) - 207;
_local8._alpha = 0;
_local8.tween("_alpha", 100, 1, "easeInOutSine");
pMC.hdr = _local8;
switch (pScrimTitle) {
case "account" :
initMyAccount(pMC, pScrimTitle, pIndex, pSection);
break;
case "login" :
initLogin(pMC, pScrimTitle, pIndex, pSection);
break;
case "about" :
initAbout(pMC, pScrimTitle, pIndex, pSection);
break;
case "gallery" :
initGallery(pMC, pScrimTitle, pIndex, pSection);
break;
case "video" :
initVideo(pMC, pScrimTitle, pIndex, pSection);
break;
case "games" :
initGames(pMC, pScrimTitle, pIndex, pSection);
break;
case "mobile" :
if (_global.SETTINGS.cid == "us") {
initMobile(pMC, pScrimTitle, pIndex, pSection);
} else {
initMobileIntl(pMC, "mobile_intl", pIndex, pSection);
}
break;
case "downloads" :
initDownloads(pMC, pScrimTitle, pIndex, pSection);
break;
case "partners" :
initPartners(pMC, pScrimTitle, pIndex, pSection);
}
pMC.close_mc.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
pMC.close_mc.onRollOut = (pMC.close_mc.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
pMC.close_mc.onRelease = function () {
scrimClose(pMC);
_global.startSection();
this.tween("_alpha", 0, 0.3, "easeOutElastic");
this._parent.hdr.tween("_alpha", 0, 0.3, "easeOutElastic");
this.colorTo(0, 0.5, "easeInOutSine");
fadeContent(this._parent);
};
}
function fadeMySite(pToggle) {
if (pToggle == true) {
_global.stopSection();
var fadeSite = _root.createEmptyMovieClip("fadeSite", _root.getNextHighestDepth());
var fadeSiteBtn = _root.attachMovie("activate_site", "fadeSiteBtn", _root.getNextHighestDepth());
with (fadeSite) {
beginFill(0);
moveTo(0, 0);
lineTo(Stage.width * 2, 0);
lineTo(Stage.width * 2, Stage.height * 2);
lineTo(0, Stage.height * 2);
lineTo(0, 0);
endFill();
}
fadeSite._alpha = 0;
fadeSite._x = ((-Stage.width) / 2) - 200;
fadeSite._y = ((-Stage.height) / 2) - 200;
fadeSite.swapDepths(scrim);
fadeSite.onRelease = function () {
fadeMySite(false);
};
fadeSite.useHandCursor = false;
fadeSite.tween("_alpha", 75, 0.5, "easeOutSine");
fadeSiteBtn._x = 480;
fadeSiteBtn._y = Stage.height / 2;
var activate_txt = simpsons_data.misc.activate_site._value;
var activate_btn = _simpsons.TextItem.setText(fadeSiteBtn.txt, activate_txt, "activate_site", false, 400, 75);
_65.media.AudioController.fadeVolume(0, 1, "music");
} else {
_global.startSection();
_root.fadeSite.swapDepths(999);
_root.fadeSite.removeMovieClip();
_root.fadeSiteBtn.swapDepths(999);
_root.fadeSiteBtn.removeMovieClip();
_65.media.AudioController.fadeVolume(100, 1, "music");
}
}
function createScrimSubnav(pScrim, pScrimTitle, pIndex, pSection, pX, pY, pTopOffset, pIsSwitch) {
if (user.__get__isLoggedIn() == true) {
var _local6 = simpsons_data.navigation_loggedin.entry[pIndex].sections.split(",");
var _local12 = simpsons_data.navigation_loggedin.entry[pIndex].titles.split(",");
var _local7 = simpsons_data.navigation_loggedin.entry[pIndex].sections_active.split(",");
} else {
var _local6 = simpsons_data.navigation.entry[pIndex].sections.split(",");
var _local12 = simpsons_data.navigation.entry[pIndex].titles.split(",");
var _local7 = simpsons_data.navigation.entry[pIndex].sections_active.split(",");
}
var _local13 = pScrim.getNextHighestDepth();
var subNav = pScrim.attachMovie("scrim_subnav", pScrimTitle + "_subnav", _local13, {_x:pX, _y:pY});
if (pIsSwitch == undefined) {
var switchSection = true;
} else {
var switchSection = pIsSwitch;
}
if (pSection == undefined) {
currentSection = _local6[0];
} else {
currentSection = pSection;
}
if (pTopOffset == undefined) {
var _local8 = 45;
} else {
var _local8 = pTopOffset;
}
var _local5 = 0;
while (_local5 < _local6.length) {
var _local2 = subNav.buttons.attachMovie("subnav_item", "subnav_" + _local5, subNav.buttons.getNextHighestDepth(), {_y:_local8, section:_local6[_local5], selected:false, index:_local5, active:_local7[_local5]});
var _local8 = _local8 + 30;
var _local4 = _simpsons.TextItem.createItem(_local2, _local12[_local5], "subnav", {bold:true});
_local4._x = (-_local4._width) / 2;
_local4._y = (-_local4._height) / 2;
if (_local7[_local5] == "false") {
var _local3 = _simpsons.TextItem.createItem(_local2, simpsons_data.misc.coming_soon2._value, "subnav", {bold:true, _alpha:0});
_local3._x = (-_local3._width) / 2;
_local3._y = (-_local3._height) / 2;
}
_local2.bg._alpha = 0;
_local2.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
if (this.active == "false") {
this.n0_mc.alphaTo(0, 0.5, "easeInOutSine");
this.n1_mc.alphaTo(100, 0.5, "easeInOutSine");
}
};
_local2.onRollOut = (_local2.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
if (this.active == "false") {
this.n0_mc.alphaTo(100, 0.5, "easeInOutSine");
this.n1_mc.alphaTo(0, 0.5, "easeInOutSine");
}
});
_local2.onRelease = function () {
if (this.active == "true") {
if (this.section == "logout") {
logout(pScrim);
} else {
scrimSectionSelect(pScrim, pScrimTitle, pIndex, this.section, switchSection);
}
this.selected == true;
selectScrimSubNav(subNav.buttons, this.index);
}
};
_local5++;
}
_local5 = 0;
while (_local5 < _local6.length) {
if (_local6[_local5] == currentSection) {
break;
}
_local5++;
}
selectScrimSubNav(subNav.buttons, _local5);
subNav._scale = 0;
subNav.scaleTo(100, 1, "easeOutBack", 0.3);
}
function selectScrimSubNav(pMC, pIndex) {
var _local3;
for (_local3 in pMC) {
var _local1 = pMC[_local3];
_local1.n0_mc.colorTo(0, 0.5);
_local1.bg.tween("_alpha", 0, 1, "easeInOutSine");
_local1.selected = false;
_local1.enabled = true;
}
var _local4 = pMC["subnav_" + pIndex];
_local4.n0_mc.colorTo(16777215, 0.8);
_local4.bg.tween("_alpha", 100, 1, "easeInOutSine");
_local4.selected = true;
_local4.enabled = false;
}
function scrimClose(pMC) {
pMC.tween("_x, _y, _scale", [0, 0, 10], 1, "easeInOutSine", null, {func:killThis, args:pMC});
pMC.tween("_alpha", 0, 1, "easeInOutSine", 0.8);
pMC.tween("_frame", [40], 1, "easeInOutSine");
pMC._parent.fadeBg.tween("_alpha", 0, 0.5, "linear", 2, {func:killThis, args:pMC._parent.fadeBg});
var _local3 = _65.media.AudioController.addAudio("window_disappears", 100, 0.3);
if (_SECTION == "landing") {
initBartShooter(true);
content_mc._fgToonIsActive = true;
toggleLandingSmoke(true);
toggleLandingCallouts(true);
} else {
startSection();
}
_65.media.AudioController.fadeVolume(100, 1, "music");
selectNav();
}
function scrimSectionSelect(pScrim, pScrimTitle, pIndex, pSection, pIsSwitch) {
function gotoNextContentFrame(pMC) {
switch (pScrimTitle) {
case "account" :
initMyAccount(pScrim._parent, pScrimTitle, pIndex, pSection);
return;
case "about" :
initAbout(pScrim._parent, pScrimTitle, pIndex, pSection);
return;
case "downloads" :
initDownloads(pScrim._parent, pScrimTitle, pIndex, pSection);
return;
case "login" :
initLogin(pScrim._parent, pScrimTitle, pIndex, pSection);
return;
case "gallery" :
initGallery(pScrim._parent, pScrimTitle, pIndex, pSection, pIsSwitch);
return;
case "games" :
initGames(pScrim._parent, pScrimTitle, pIndex, pSection, pIsSwitch);
return;
case "mobile" :
initMobile(pScrim._parent, pScrimTitle, pIndex, pSection, pIsSwitch);
return;
case "mobile_intl" :
initMobileIntl(pScrim._parent, pScrimTitle, pIndex, pSection, pIsSwitch);
}
}
if (pIsSwitch == true) {
var _local1 = pScrim.character;
var _local2 = pScrim.content;
var _local4 = _local1.character._x + (_local1.character._width / 2);
var _local3 = _local1.character._y + (_local1.character._height / 2);
_local2.tween("_frame", 2, 0.1, "linear");
_local2.tween("_alpha, _scale", [0, 50], 0.75, "linear");
_local1.tween("_frame", 2, 0.1, "linear");
_local1.character.tween("_alpha, _scale, _x, _y", [0, 0, _local4, _local3], 0.5, "linear");
_local1.tween("_alpha, _scale", [0, 50], 0.5, "linear", 0.25, {func:gotoNextContentFrame, args:pScrim});
} else {
gotoNextContentFrame(pScrim);
}
}
function logout(pMC) {
getURL ("javascript:track('account/update')");
navLogout(pMC);
}
function initLogin(pScrim, pScrimTitle, pIndex, pSection) {
var _local7 = simpsons_data.navigation.entry[pIndex].sections.split(",");
if (!pScrim[pScrimTitle + "_content"]) {
var _local8 = pScrim.getNextHighestDepth();
var _local2 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local8);
_local2._x = 235;
_local2._y = 130;
} else {
var _local2 = pScrim[pScrimTitle + "_content"];
}
if ((!pScrim.login_content.sweepstakes) && (_global.SETTINGS.cid == "us")) {
var _local6 = pScrim.login_content.createEmptyMovieClip("sweepstakes", pScrim.login_content.getNextHighestDepth());
var _local10 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg.title.toUpperCase(), "nav", {_x:-410, _y:-190, width:225, bold:true});
var _local17 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg.desc.toUpperCase(), "topnav_name", {_x:-410, _y:-173, width:225, height:505, bold:true});
var _local11 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg._value, "select", {_x:-400, _y:-128, width:202, height:215});
}
if (pSection == undefined) {
var _local3 = _local7[0];
} else {
var _local3 = pSection;
}
_local2.gotoAndStop(_local3);
if (!_local2[pScrimTitle + "_subnav"]) {
createScrimSubnav(_local2, pScrimTitle, pIndex, _local3, -300, 50, 60, true);
_local2.scrim_subnav._height = 50;
_local2.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
getURL (("javascript:track('login/" + _local3) + "')");
switch (_local3) {
case "login" :
initLoginScreen(_local2);
break;
case "register" :
initRegister(_local2);
break;
case "forgot_password" :
initForgotPass(_local2);
}
_local2.character._scale = 0;
_local2.content._scale = 0;
_local2.character.tween("_scale", 100, 2, customBounce, 0.6);
_local2.content.tween("_scale", 100, 2, customBounce, 0.9);
}
function initLoginScreen(pMC) {
var loginArray = _65.data.XmlData.getArray(simpsons_data.login, "entry");
var form = pMC.content.form;
form.username.drawFocus = "";
form.password.drawFocus = "";
form.username.tabIndex = 1;
form.password.tabIndex = 2;
var _local6 = simpsons_data.login_msg._value;
var _local8 = _simpsons.TextItem.setText(form.msg, _local6, "form");
var _local9 = _simpsons.TextItem.setText(form.username_hdr, loginArray[0].username.toUpperCase(), "form");
var _local10 = _simpsons.TextItem.setText(form.password_hdr, loginArray[0].password.toUpperCase(), "form");
var _local13 = _simpsons.TextItem.createItem(form, loginArray[0].submit.toUpperCase(), "submit", {_y:242, width:450});
form.submit.bg._alpha = 0;
form.submit.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
form.submit.onRollOut = (form.submit.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
var submitNum = 0;
form.submit.onRelease = function () {
if (submitNum >= 1) {
var _local6 = this._parent.getInstanceAtDepth(this._parent.getNextHighestDepth() - 1);
_local6.removeMovieClip();
}
if ((form.username.text != "") && (form.password.text != "")) {
this.enabled = false;
var _local3 = form.username.text;
var _local5 = form.password.text;
user.login(this._parent, _local3, _local5);
} else {
var _local2;
this.bg._alpha = 0;
if (form.username.text == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].username;
} else {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].password;
}
var _local4 = _simpsons.TextItem.createItem(this._parent, _local2.toUpperCase(), "myspace", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
}
submitNum++;
};
}
function initRegister(pMC) {
var loginArray = _65.data.XmlData.getArray(simpsons_data.login, "entry");
var form = pMC.content.form;
form.lastname.drawFocus = "";
form.firstname.drawFocus = "";
form.email.drawFocus = "";
form.username.drawFocus = "";
form.password.drawFocus = "";
form.country.drawFocus = "";
form.dob.drawFocus = "";
form.lastname.tabIndex = 1;
form.firstname.tabIndex = 2;
form.email.tabIndex = 2;
form.username.tabIndex = 3;
form.password.tabIndex = 4;
form.country.tabIndex = 5;
form.dob.tabIndex = 5;
if (_global.SETTINGS.cid == "us") {
for (var _local6 in form) {
if ((form[_local6] != form.msg) && (form[_local6] != form.submit)) {
form[_local6]._y = form[_local6]._y - 25;
}
}
form.firstname_hdr._y = (form.password_hdr._y = form.firstname_hdr._y - 5);
form.email_hdr._y = (form.country_hdr._y = form.email_hdr._y - 15);
form.dob_hdr._y = form.dob_hdr._y - 25;
form.firstname._y = (form.firstnameBg._y = form.firstname_hdr._y + 15);
form.password._y = (form.passwordBg._y = form.password_hdr._y + 15);
form.email._y = (form.emailBg._y = form.email_hdr._y + 15);
form.country._y = (form.drop1._y = form.country_hdr._y + 15);
form.dob._y = (form.dobBg._y = form.dob_hdr._y + 15);
} else {
form.dob._visible = false;
form.dob_hdr._visible = false;
form.dobBg._visible = false;
}
var _local14 = simpsons_data.register_msg._value;
var _local17 = _simpsons.TextItem.setText(form.msg, _local14, "form");
var _local24 = _simpsons.TextItem.setText(form.lastname_hdr, loginArray[0].lastname.toUpperCase(), "select");
var _local16 = _simpsons.TextItem.setText(form.firstname_hdr, loginArray[0].firstname.toUpperCase(), "select");
var _local18 = _simpsons.TextItem.setText(form.username_hdr, loginArray[0].username.toUpperCase(), "select");
var _local21 = _simpsons.TextItem.setText(form.password_hdr, loginArray[0].password.toUpperCase(), "select");
var _local26 = _simpsons.TextItem.setText(form.email_hdr, loginArray[0].email.toUpperCase(), "select");
var _local20 = _simpsons.TextItem.setText(form.country_hdr, loginArray[0].country.toUpperCase(), "select");
var _local19 = _simpsons.TextItem.setText(form.dob_hdr, loginArray[0].dob.toUpperCase(), "select");
var _local4 = new Array();
var _local3 = new Array();
i = 0;
while (i < simpsons_data.login.country.length) {
_local4.push(simpsons_data.login.country[i]._value);
_local3.push(simpsons_data.login.country[i].code);
if (simpsons_data.login.country[i].code == _global.SETTINGS.cid) {
form.drop1.id = i;
}
i++;
}
form.drop1.dispArray = _local4;
form.drop1.dataArray = _local3;
var _local25 = _simpsons.TextItem.createItem(form, loginArray[0].submit.toUpperCase(), "submit", {_y:257, width:450});
form.submit.bg._alpha = 0;
form.submit.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
form.submit.onRollOut = (form.submit.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
var submitNum = 0;
form.submit.onRelease = function () {
if (submitNum >= 1) {
var _local10 = this._parent.getInstanceAtDepth(this._parent.getNextHighestDepth() - 1);
_local10.removeMovieClip();
}
var _local3 = form.firstname.text;
var _local8 = form.lastname.text;
var _local5 = form.drop1.value;
var _local4 = form.username.text;
var _local7 = form.password.text;
var _local6 = form.email.text;
if ((((((_local3 != "") && (_local8 != "")) && (_local5 != "")) && (_local4 != "")) && (_local7 != "")) && (_local6 != "")) {
this.enabled = false;
user.register(this._parent, _local3, _local8, _local5, _local6, _local4, _local7);
} else {
var _local2;
this.bg._alpha = 0;
if (_local8 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].lastname;
} else if (_local3 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].firstname;
} else if (_local5 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].country;
} else if (_local4 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].username;
} else if (_local7 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].password;
} else if (_local6 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].email;
}
var _local9 = _simpsons.TextItem.createItem(this._parent, _local2.toUpperCase(), "myspace", {_y:275, width:450});
_local9.colorTo(16711680, 0.3);
}
submitNum++;
};
}
function initForgotPass(pMC) {
var loginArray = _65.data.XmlData.getArray(simpsons_data.login, "entry");
var form = pMC.content.form;
form.username.drawFocus = "";
form.username.tabIndex = 1;
var _local4 = simpsons_data.forgot_msg._value;
var _local7 = _simpsons.TextItem.setText(form.msg, _local4, "form");
var _local8 = _simpsons.TextItem.setText(form.username_hdr, loginArray[0].username.toUpperCase(), "form");
var _local11 = _simpsons.TextItem.createItem(form, loginArray[0].submit.toUpperCase(), "submit", {_y:237, width:450});
form.submit.bg._alpha = 0;
form.submit.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
form.submit.onRollOut = (form.submit.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
var submitNum = 0;
form.submit.onRelease = function () {
if (submitNum >= 1) {
var _local5 = this._parent.getInstanceAtDepth(this._parent.getNextHighestDepth() - 1);
_local5.removeMovieClip();
}
var _local2 = form.username.text;
if (_local2 != "") {
user.forgotPassword(this._parent, _local2);
this.enabled = false;
} else {
var _local4 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].password;
this.bg._alpha = 0;
var _local3 = _simpsons.TextItem.createItem(this._parent, _local4.toUpperCase(), "myspace", {_y:275, width:450});
_local3.colorTo(16711680, 0.3);
}
submitNum++;
};
}
function initMyAccount(pScrim, pScrimTitle, pIndex, pSection) {
var _local7 = simpsons_data.navigation_loggedin.entry[pIndex].sections.split(",");
if (!pScrim[pScrimTitle + "_content"]) {
var _local8 = pScrim.getNextHighestDepth();
var _local2 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local8);
_local2._x = 235;
_local2._y = 130;
} else {
var _local2 = pScrim[pScrimTitle + "_content"];
}
if ((!pScrim.account_content.sweepstakes) && (_global.SETTINGS.cid == "us")) {
var _local6 = pScrim.account_content.createEmptyMovieClip("sweepstakes", pScrim.account_content.getNextHighestDepth());
var _local10 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg.title.toUpperCase(), "nav", {_x:-410, _y:-190, width:225, bold:true});
var _local17 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg.desc.toUpperCase(), "topnav_name", {_x:-410, _y:-173, width:225, height:505, bold:true});
var _local11 = _simpsons.TextItem.createItem(_local6, simpsons_data.sweepstakes_msg._value, "select", {_x:-400, _y:-128, width:202, height:215});
}
if (pSection == undefined) {
var _local4 = _local7[0];
} else {
var _local4 = pSection;
}
_local2.gotoAndStop(_local4);
if (!_local2[pScrimTitle + "_subnav"]) {
createScrimSubnav(_local2, pScrimTitle, pIndex, _local4, -300, 50, 60, false);
_local2.subnav._scale = 0;
_local2.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
if (!(_local4 === "account")) {
} else {
initUpdateUser(_local2);
}
_local2.character._scale = 0;
_local2.content._scale = 0;
_local2.character.tween("_scale", 100, 2, customBounce, 0.6);
_local2.content.tween("_scale", 100, 2, customBounce, 0.9);
}
function initUpdateUser(pMC) {
getURL ("javascript:track('account/update')");
var loginArray = _65.data.XmlData.getArray(simpsons_data.login, "entry");
var form = pMC.content.form;
form.firstname.drawFocus = "";
form.lastname.drawFocus = "";
form.password.drawFocus = "";
form.email.drawFocus = "";
form.firstname.tabIndex = 1;
form.lastname.tabIndex = 2;
form.password.tabIndex = 3;
form.email.tabIndex = 4;
var _local13 = simpsons_data.update_msg._value;
var _local16 = _simpsons.TextItem.setText(form.msg, _local13, "form");
var _local23 = _simpsons.TextItem.setText(form.lastname_hdr, loginArray[0].lastname.toUpperCase(), "form");
var _local15 = _simpsons.TextItem.setText(form.firstname_hdr, loginArray[0].firstname.toUpperCase(), "form");
var _local17 = _simpsons.TextItem.setText(form.username_hdr, loginArray[0].username.toUpperCase(), "form");
var _local20 = _simpsons.TextItem.setText(form.password_hdr, loginArray[0].password.toUpperCase(), "form");
var _local24 = _simpsons.TextItem.setText(form.email_hdr, loginArray[0].email.toUpperCase(), "form");
var _local19 = _simpsons.TextItem.setText(form.country_hdr, loginArray[0].country.toUpperCase(), "form");
if (_global.SETTINGS.cid == "us") {
form.dob.drawFocus = "";
form.dob.tabIndex = 5;
var _local18 = _simpsons.TextItem.setText(form.dob_hdr, loginArray[0].dob.toUpperCase(), "form");
} else {
form.dob._visible = false;
form.dob_hdr._visible = false;
form.dobBg._visible = false;
}
var submit_txt = _simpsons.TextItem.createItem(form, loginArray[0].submit.toUpperCase(), "submit", {_y:264, width:450});
form.submit.bg._alpha = 0;
var _local4 = new Array();
var _local3 = new Array();
i = 0;
while (i < simpsons_data.login.country.length) {
_local4.push(simpsons_data.login.country[i]._value);
_local3.push(simpsons_data.login.country[i].code);
if (simpsons_data.login.country[i].code == _global.SETTINGS.cid) {
form.drop1.id = i;
}
i++;
}
form.drop1.dispArray = _local4;
form.drop1.dataArray = _local3;
user.getUser(form, user.__get__id());
form.submit.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
form.submit.onRollOut = (form.submit.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
if (form.submit.txt.text != "SUBMIT") {
submit_txt.colorTo(0, 0.3);
}
});
var submitNum = 0;
form.submit.onRelease = function () {
if (submitNum >= 1) {
var _local10 = this._parent.getInstanceAtDepth(this._parent.getNextHighestDepth() - 1);
_local10.removeMovieClip();
}
var _local3 = form.firstname.text;
var _local7 = form.lastname.text;
var _local4 = form.drop1.value;
var _local6 = form.password.text;
var _local5 = form.email.text;
var _local9 = form.dob.text;
if (((((_local3 != "") && (_local7 != "")) && (_local4 != "")) && (_local6 != "")) && (_local5 != "")) {
this.enabled = false;
user.updateUser(this._parent, _local5, _local7, _local3, _local6, _local4, user.__get__id(), user.__get__username(), _local9);
} else {
var _local2;
this.bg._alpha = 0;
if (_local7 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].lastname;
} else if (_local3 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].firstname;
} else if (_local4 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].country;
} else if (_local6 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].password;
} else if (_local5 == "") {
_local2 = (simpsons_data.login_replies.validation_error._value + " ") + loginArray[0].email;
}
var _local8 = _simpsons.TextItem.createItem(this._parent, _local2.toUpperCase(), "myspace", {_y:278, width:450});
_local8.colorTo(16711680, 0.3);
}
submitNum++;
};
}
function initAbout(pScrim, pScrimTitle, pIndex, pSection) {
var _local12 = simpsons_data.navigation.entry[pIndex].sections.split(",");
if (!pScrim[pScrimTitle + "_content"]) {
var _local13 = pScrim.getNextHighestDepth();
var _local1 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local13);
_local1._x = 235;
_local1._y = 130;
} else {
var _local1 = pScrim[pScrimTitle + "_content"];
}
if (pSection == undefined) {
var _local2 = _local12[0];
} else {
var _local2 = pSection;
}
var _local15 = simpsons_data[_local2];
var _local16 = _65.data.XmlData.getArray(_local15, "entry");
if (!_local1[pScrimTitle + "_subnav"]) {
createScrimSubnav(_local1, pScrimTitle, pIndex, _local2, -300, 20, 45, false);
_local1.subnav._scale = 0;
_local1.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
getURL (("javascript:track('about/" + _local2) + "')");
for (var _local4 in _local1.content) {
_local1.content[_local4].removeMovieClip();
}
for (var _local4 in _local1.orderScrim.orderDvd) {
_local1.orderScrim.orderDvd[_local4].removeMovieClip();
}
for (var _local4 in _local1.orderScrim.orderBluray) {
_local1.orderScrim.orderBluray[_local4].removeMovieClip();
}
var _local7 = _local1.content.createEmptyMovieClip("sectionContent2", _local1.content.getNextHighestDepth());
_local7.setMask(_local1.content.scrollMask);
var _local6 = _local1.content;
var _local11 = _simpsons.TextItem.createItem(_local7, _local16[0]._value, "copy", {_x:-153, _y:-116, width:232});
var _local10 = _local6.attachMovie("scroller", "about_scroller", _local6.getNextHighestDepth(), {_x:88, _y:-116});
_local10.init(_local11, 262, 262);
_local1.character._scale = 0;
_local1.content._scale = 0;
_local1.character.tween("_scale", 100, 2, customBounce, 0.6);
_local1.content.tween("_scale", 100, 2, customBounce, 0.9);
var _local18 = _simpsons.TextItem.createItem(_local1.orderScrim.orderDvd, simpsons_data.order_dvd.dvd_text, "order_dvd", {bold:true, _y:4, width:163, height:32});
var _local19 = _simpsons.TextItem.createItem(_local1.orderScrim.orderBluray, simpsons_data.order_dvd.bluray_text, "order_dvd", {bold:true, _y:4, width:163, height:32});
_local1.homerBar._visible = false;
_local1.orderScrim.orderDvd.onRelease = function () {
getURL (simpsons_data.order_dvd.dvd_link, "_blank");
};
_local1.orderScrim.orderBluray.onRelease = function () {
getURL (simpsons_data.order_dvd.bluray_link, "_blank");
};
_local1.orderScrim._xscale = (_local1.orderScrim._yscale = 0);
var _local5 = new MovieClipLoader();
var _local14 = _local1.orderScrim.createEmptyMovieClip("boxArt", _local1.orderScrim.getNextHighestDepth());
var _local8 = new Object();
_local8.onLoadInit = function (mc) {
mc._x = -8;
mc._y = -10;
mc._parent.tween("_scale", 100, 2, customBounce, 0.6);
};
_local5.addListener(_local8);
_local5.loadClip(simpsons_data.order_dvd.image, _local14);
}
function initGallery(pScrim, pScrimTitle, pIndex, pSection, pIsSwitch) {
getURL ("javascript:track('gallery')");
if (!pScrim[pScrimTitle + "_content"]) {
var _local11 = pScrim.getNextHighestDepth();
var _local10 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local11, {_x:235, _y:130});
} else {
var _local10 = pScrim[pScrimTitle + "_content"];
}
var sectionContent = _local10.content;
var imgArr = _65.data.XmlData.getArray(simpsons_data.gallery, "entry");
var _local2 = 0;
while (_local2 < imgArr.length) {
var _local3 = sectionContent.thumbsHolder.attachMovie("galleryItem", "i" + _local2, _local2, {_y:(_local2 * 46) + 20, _x:44.5, index:_local2});
_local3.image.loadMovie(imgArr[_local2].thumb);
_local3.onRollOver = function () {
this.swapDepths(this._parent.getNextHighestDepth());
this.scaleTo(120, 1, "easeOutElastic");
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.scaleTo(100, 0.5, "easeOutBack");
});
_local3.onRelease = function () {
swapItem(imgArr, sectionContent.img_holder, this.index);
};
_local2++;
}
swapItem(imgArr, sectionContent.img_holder, 0);
var _local7 = sectionContent.upBtn;
var _local6 = sectionContent.downBtn;
_local7.inc = 5;
_local6.inc = -5;
_local7.onPress = (_local6.onPress = (_local7.onRollOver = (_local6.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
this.onEnterFrame = function () {
sectionContent.thumbsHolder._y = Math.min(-110, Math.max(((-sectionContent.thumbsHolder._height) + 224) - 110, sectionContent.thumbsHolder._y + this.inc));
};
})));
_local7.onRelease = (_local6.onRelease = (_local7.onReleaseOutside = (_local6.onReleaseOutside = (_local7.onRollOut = (_local6.onRollOut = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
delete this.onEnterFrame;
})))));
sectionContent._scale = 0;
sectionContent.tween("_scale", 100, 2, customBounce, 0.9);
}
function swapItem(pData, pMC, pIndex) {
function loadImg() {
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = Math.round((numBytesLoaded / numBytesTotal) * 100);
pMC._parent.loader.load_txt.text = _local1 + "%";
};
_local1.onLoadComplete = function (target_mc) {
target_mc._parent.tween("_alpha", 100, 0.5);
pMC._parent.loader.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:killThis, args:pMC.loader});
};
_local2.addListener(_local1);
_local2.loadClip(pData[pIndex].src, pMC.img);
}
getURL (("javascript:track('gallery/image" + (pIndex + 1)) + "')");
pMC.tween("_alpha", 0, 0.5, "easeInOutSine", null, loadImg);
}
function initVideo(pScrim, pScrimTitle, pIndex, pSection) {
setVolume(50);
_65.media.AudioController.fadeVolume(0, 1, "music");
if (!pScrim[pScrimTitle + "_content"]) {
var depth = pScrim.getNextHighestDepth();
var scrimContent = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", depth);
scrimContent._x = 235;
scrimContent._y = 130;
} else {
var scrimContent = pScrim[pScrimTitle + "_content"];
}
if (_global.SETTINGS.cid == "us") {
if ((pSection == "trailer") || (pSection == undefined)) {
var _local15 = _simpsons.TextItem.createItem(pScrim.video_content, simpsons_data.video.trailers.toUpperCase(), "topnav_name", {_x:-370, _y:-153, bold:true});
var _local12 = _simpsons.TextItem.createItem(pScrim.video_content, simpsons_data.video.clips.toUpperCase(), "topnav_name", {_x:-280, _y:-153, bold:true});
_local15.colorTo(8037812, 0.5);
} else if (pSection == "clip") {
var _local15 = _simpsons.TextItem.createItem(pScrim.video_content, simpsons_data.video.trailers.toUpperCase(), "topnav_name", {_x:-370, _y:-153, bold:true});
var _local12 = _simpsons.TextItem.createItem(pScrim.video_content, simpsons_data.video.clips.toUpperCase(), "topnav_name", {_x:-280, _y:-153, bold:true});
_local12.colorTo(8037812, 0.5);
}
}
_local15.onRollOver = (_local12.onRollOver = function () {
this.tween("_scale", 110, 1, "easeOutElastic");
});
_local15.onRollOut = (_local12.onRollOut = function () {
this.tween("_scale", 100, 1, "easeOutElastic");
});
_local15.onRelease = function () {
scrimSelect("video", 3, "trailer");
};
_local12.onRelease = function () {
scrimSelect("video", 3, "clip");
};
var _local18 = simpsons_data.video;
var scrimContentArray = _65.data.XmlData.getArray(_local18, "entry");
var _local11 = new Array();
var subnav = scrimContent.subnav;
var _local5 = 0;
var _local13 = scrimContentArray.length;
var _local8 = 45;
if (pSection == undefined) {
pSection = "trailer";
}
while (_local5 < _local13) {
if (scrimContentArray[_local5].type == pSection) {
_local11.push(scrimContentArray[_local5]);
var _local3 = subnav.buttons.attachMovie("subnav_item", "subnav" + _local5, _local5, {_y:_local8, index:_local5, selected:false});
_local8 = _local8 + 30;
var _local4 = _simpsons.TextItem.createItem(_local3, scrimContentArray[_local5]._value.toUpperCase(), "subnav", {bold:true});
_local4._x = ((-_local4._width) / 2) - 25;
_local4._y = (-_local4._height) / 2;
_local3.bg._alpha = 0;
_local3.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
_local3.onRelease = function () {
if (this.selected == false) {
playVid(scrimContentArray, scrimContent.content.myVid, this.index);
this.selected == true;
selectVideo(subnav.buttons, this.index);
}
};
}
_local5++;
}
_local15._alpha = 0;
_local12._alpha = 0;
_local15.tween("_alpha", 100, 0.5, "easeInOutSine", 0.6);
_local12.tween("_alpha", 100, 0.5, "easeInOutSine", 0.6);
scrimContent.character._scale = 0;
scrimContent.content._scale = 0;
scrimContent.subnav._scale = 0;
scrimContent.subnav._y = -41;
scrimContent.subnav.tween("_scale", 90, 2, customBounce, 0.3);
scrimContent.character.tween("_scale", 100, 2, customBounce, 0.6);
scrimContent.content.tween("_scale", 100, 2, customBounce, 0.9);
var _local17 = subnav.attachMovie("scroller", "video_scroller", scrimContent.getNextHighestDepth(), {_x:72, _y:-90});
_local17.init(subnav.buttons, 180);
if (pSection == "trailer") {
var _local7 = _65.data.XmlData.getArray(simpsons_data.video_sharing, "entry");
var _local21 = _simpsons.TextItem.setText(scrimContent.callout_hdr, simpsons_data.video_sharing.hdr, "video_callout");
_local5 = 0;
while (_local5 < 3) {
var depth = scrimContent.getNextHighestDepth();
var _local6 = scrimContent["callout" + _local5];
_local6._scale = 0;
_local6.tween("_scale", 100, 2, customBounce, _local5 * 0.6);
_local6.action = _local7[_local5].action;
_simpsons.TextItem.setText(_local6.txt, _local7[_local5]._value, "video_callout");
_local6.onRollOver = function () {
this.tween("_scale", 120, 1, "easeOutElastic");
this.swapDepths(depth);
};
_local6.onRollOut = (_local6.onReleaseOutside = function () {
this.tween("_scale", 100, 1, "easeOutElastic");
});
_local6.onRelease = function () {
getURL (((((("javascript:popVideoShare('" + SETTINGS.cid) + "', '") + this.action) + "', '") + vidCode) + "')");
};
_local5++;
}
} else {
_local5 = 0;
while (_local5 < 3) {
var _local6 = scrimContent["callout" + _local5];
_local6._visible = false;
_local6.enabled = false;
_local5++;
}
}
videoBtnMc = subnav.buttons;
videoScrim = scrimContent.content.myVid;
selectVideo(subnav.buttons, 0);
isVideo = true;
setTimeout(playVid, 1500, _local11, scrimContent.content.myVid, 0);
}
function playVid(pData, pMC, pIndex) {
if (isVideo) {
vidCode = pData[pIndex].code;
getURL (("javascript:track('video/" + vidCode) + "')");
videoScrim.load(pData[pIndex].src, null, pData[pIndex].duration);
}
}
function killVideo(pMC) {
isVideo = false;
videoScrim.load(null);
pMC.video_content.content.myVid.kill();
_65.media.AudioController.fadeVolume(100, 1, "music");
}
function selectVideo(pMC, pIndex) {
for (var _local3 in videoBtnMc) {
var _local1 = videoBtnMc[_local3];
_local1.n0_mc.colorTo(0, 0.5);
_local1.bg.tween("_alpha", 0, 1, "easeInOutSine");
_local1.selected = false;
_local1.enabled = true;
}
var _local2 = videoBtnMc["subnav" + pIndex];
_local2.n0_mc.colorTo(16777215, 0.5);
_local2.bg.tween("_alpha", 100, 1, "easeInOutSine");
_local2.selected = true;
_local2.enabled = false;
}
function initGames(pScrim, pScrimTitle, pIndex, pSection, pIsSwitch) {
getURL ("javascript:track('games')");
if (!pScrim[pScrimTitle + "_content"]) {
var _local11 = pScrim.getNextHighestDepth();
var _local10 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local11, {_x:235, _y:130});
} else {
var _local10 = pScrim[pScrimTitle + "_content"];
}
var sectionContent = _local10.content;
var gameArr = _65.data.XmlData.getArray(simpsons_data.games, "entry");
var _local2 = 0;
while (_local2 < gameArr.length) {
var _local3 = sectionContent.thumbsHolder.attachMovie("gameItem", "i" + _local2, _local2, {_x:45, _y:(_local2 * 78) + 36.5, index:_local2});
_local3.image.loadMovie(gameArr[_local2].thumb);
_local3.onRollOver = function () {
this.swapDepths(this._parent.getNextHighestDepth());
this.scaleTo(120, 0.8, "easeOutElastic");
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.scaleTo(100, 0.5, "easeOutBack");
});
_local3.onRelease = function () {
swapGameItem(gameArr, sectionContent.img_holder, sectionContent.desc, this.index);
};
_local2++;
}
var _local7 = sectionContent.upBtn;
var _local6 = sectionContent.downBtn;
if (gameArr.length > 3) {
_local7.inc = 5;
_local6.inc = -5;
_local7.onPress = (_local6.onPress = (_local7.onRollOver = (_local6.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
this.onEnterFrame = function () {
sectionContent.thumbsHolder._y = Math.min(-110, Math.max(((-sectionContent.thumbsHolder._height) + 230) - 110, sectionContent.thumbsHolder._y + this.inc));
};
})));
_local7.onRelease = (_local6.onRelease = (_local7.onReleaseOutside = (_local6.onReleaseOutside = (_local7.onRollOut = (_local6.onRollOut = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
delete this.onEnterFrame;
})))));
} else {
_local7._visible = (_local6._visible = false);
}
sectionContent._scale = 0;
sectionContent.tween("_scale", 100, 0.8, "easeOutBack", 0.9, {func:swapGameItem, args:[gameArr, sectionContent.img_holder, sectionContent.desc, 0]});
sectionContent.img_holder._alpha = 0;
}
function swapGameItem(pData, pImg_mc, pDesc_mc, pIndex) {
function loadImg() {
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = Math.round((numBytesLoaded / numBytesTotal) * 100);
pImg_mc._parent.loader.load_txt.text = _local1 + "%";
};
_local1.onLoadComplete = function (target_mc) {
contentFadeIn();
target_mc._parent.tween("_alpha", 100, 0.5);
pImg_mc._parent.loader.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:killThis, args:pMC.loader});
};
_local2.addListener(_local1);
_local2.loadClip(pData[pIndex].src, pImg_mc.img);
}
function contentFadeIn() {
var gameCode = pData[pIndex].code;
pDesc_mc.myTxtTitle.removeMovieClip();
pDesc_mc.myTxtDesc.removeMovieClip();
pDesc_mc.myTxtBtn.removeMovieClip();
var _local6 = _simpsons.TextItem.createItem(pDesc_mc, pData[pIndex].title, "scrim_subnav", {bold:true, _x:-96, _y:-117, width:194});
var _local5 = _simpsons.TextItem.createItem(pDesc_mc, pData[pIndex]._value, "copy", {_x:-96, _y:-73, width:194});
var _local4 = _simpsons.TextItem.createItem(pDesc_mc.link, pData[pIndex].link, "scrim_subnav", {bold:true});
pDesc_mc.myTxtTitle = _local6;
pDesc_mc.myTxtDesc = _local5;
pDesc_mc.myTxtBtn = _local4;
pDesc_mc.myTxtBtn._x = (-pDesc_mc.myTxtBtn._width) / 2;
pDesc_mc.myTxtBtn._y = (-pDesc_mc.myTxtBtn._height) / 2;
_local6._alpha = 0;
_local5._alpha = 0;
_local4._alpha = 0;
_local6.tween("_alpha", 100, 1, "easeInOutSine");
_local5.tween("_alpha", 100, 1, "easeInOutSine");
_local4.tween("_alpha", 100, 1, "easeInOutSine");
pDesc_mc.link.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
pDesc_mc.link.onRollOut = (sectionContent.desc.link.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
pDesc_mc.link.onRelease = function () {
if (pData[pIndex].active) {
fadeMySite(true);
getURL (("javascript:track('games/" + gameCode) + "')");
getURL (((((((((("javascript:popFeature('" + _global.SETTINGS.cid) + "', '") + gameCode) + "', ") + user.__get__id()) + ", '") + _root.user.username) + "', '") + _root.user.password) + "')");
}
};
}
if (pDesc_mc.myTxtBtn) {
pDesc_mc.myTxtTitle.tween("_alpha", 0, 0.5, "easeInOutSine");
pDesc_mc.myTxtDesc.tween("_alpha", 0, 0.5, "easeInOutSine");
pDesc_mc.myTxtBtn.tween("_alpha", 0, 0.5, "easeInOutSine");
pImg_mc.tween("_alpha", 0, 0.5, "easeInOutSine", null, loadImg);
} else {
loadImg();
}
}
function initDownloads(pScrim, pScrimTitle, pIndex, pSection) {
var _local12 = simpsons_data.navigation.entry[pIndex].sections.split(",");
if (!pScrim[pScrimTitle + "_content"]) {
var _local13 = pScrim.getNextHighestDepth();
var _local3 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local13);
_local3._x = 235;
_local3._y = 130;
} else {
var _local3 = pScrim[pScrimTitle + "_content"];
}
if (pSection == undefined) {
var _local5 = _local12[0];
} else {
var _local5 = pSection;
}
_local3.gotoAndStop(_local5);
var _local14 = simpsons_data[_local5];
var _local8 = _65.data.XmlData.getArray(_local14, "entry");
var _local15 = _65.media.AudioController.addAudio("download_content_in", 100, 0.4);
if (!_local3[pScrimTitle + "_subnav"]) {
createScrimSubnav(_local3, pScrimTitle, pIndex, _local5, -300, 40);
_local3.subnav._scale = 0;
_local3.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
getURL (("javascript:track('downloads/" + _local5) + "')");
switch (_local5) {
case "wallpapers" :
initWallpapers(_local3, _local8);
break;
case "icons" :
initIcons(_local3, _local8);
break;
case "screensavers" :
initScreensavers(_local3, _local8);
}
_local3.character._scale = 0;
_local3.content._scale = 0;
_local3.character.tween("_scale", 100, 2, customBounce, 0.6);
_local3.content.tween("_scale", 100, 2, customBounce, 0.9);
if ((simpsons_data.dvd_order != null) && (simpsons_data.dvd_order != undefined)) {
var _local6 = _local3.createEmptyMovieClip("orderMc", _local3.getNextHighestDepth());
var _local9 = new MovieClipLoader();
var _local7 = new Object();
_local6._x = _local3[pScrimTitle + "_subnav"]._x + ((_local3[pScrimTitle + "_subnav"]._width - 157) / 2);
_local6._y = _local3[pScrimTitle + "_subnav"]._y - 166;
_local7.link = simpsons_data.dvd_order.entry.url;
_local7.onLoadInit = function (mc) {
mc.link = this.link;
mc.onRelease = function () {
getURL (this.link, "_blank");
};
};
_local9.addListener(_local7);
_local9.loadClip(simpsons_data.dvd_order.entry.thumb, _local6);
}
if (_global.SETTINGS.cid == "us") {
var _local11 = _simpsons.TextItem.createItem(_local3.content, "GET FUN SKINS FOR YOUR MYSPACE PAGE", "myspace_link", {_y:160, _x:-125, width:467, bold:true});
_local11.onRelease = function () {
getURL ("http://www.myspace.com/simpsonsmovie", "_blank");
};
}
}
function initWallpapers(pMC) {
var sectionContent = pMC.content;
var wallArr = _65.data.XmlData.getArray(simpsons_data.wallpapers, "entry");
var wallTotal = (wallArr.length - 1);
sectionContent.img_holder.links._alpha = 0;
sectionContent.img_holder.bg.onRollOver = function () {
sectionContent.img_holder.links.tween("_alpha", 100, 0.5, "easeInOutSine");
};
sectionContent.img_holder.bg.onRollOut = (sectionContent.img_holder.bg.onReleaseOutside = function () {
sectionContent.img_holder.links.tween("_alpha", 0, 0.5, "easeInOutSine");
});
var currentWalItem = 0;
swapWallItem(wallArr, sectionContent.img_holder, currentWalItem);
sectionContent.forward.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.forward.onRollOut = (sectionContent.forward.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
sectionContent.back.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.back.onRollOut = (sectionContent.back.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
sectionContent.forward.onRelease = function () {
if (currentWalItem == wallTotal) {
swapWallItem(wallArr, sectionContent.img_holder, 0);
currentWalItem = 0;
} else {
swapWallItem(wallArr, sectionContent.img_holder, currentWalItem + 1);
currentWalItem = currentWalItem + 1;
}
};
sectionContent.back.onRelease = function () {
if (currentWalItem == 0) {
swapWallItem(wallArr, sectionContent.img_holder, wallTotal);
currentWalItem = wallTotal;
} else {
swapWallItem(wallArr, sectionContent.img_holder, currentWalItem - 1);
currentWalItem = currentWalItem - 1;
}
};
}
function initIcons(pMC) {
var sectionContent = pMC.content;
var _local5 = _65.data.XmlData.getArray(simpsons_data.icons, "entry");
var _local8 = _local5.length;
var _local6 = 33.5;
var _local2 = 0;
while (_local2 < (_local8 + 1)) {
var _local3 = sectionContent.thumbs_holder.thumbs.attachMovie("icons_content_thumb", "icon_thumb" + _local2, _local2, {_x:_local6, url:_local5[_local2].link});
_local6 = _local6 + 57.5;
loadBitmapImg(_local3.img, _local5[_local2].thumb);
_local3.onRollOver = function () {
var _local2 = sectionContent.thumbs_holder.thumbs.getNextHighestDepth();
this.tween("_scale", 125, 2, customBounce);
this.swapDepths(_local2);
};
_local3.onRollOut = (target_mc._parent.onReleaseOutside = function () {
this.tween("_scale", 100, 2, customBounce);
});
_local3.onRelease = function () {
getURL (("javascript:track('downloads/icons/" + this.url) + "')");
getURL (((("javascript:popIcons('" + SETTINGS.cid) + "', '") + this.url) + "')");
};
_local2++;
}
_local3._visible = false;
sectionContent.forward.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.forward.onRollOut = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
};
sectionContent.back.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.back.onRollOut = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
};
sectionContent.forward.onPress = function () {
if (thumbs_holder._x > (((-thumbs_holder._width) + 412) + 57)) {
thumbs_holder._x = thumbs_holder._x - 57.5;
}
};
sectionContent.back.onPress = function () {
if (thumbs_holder._x < 0) {
thumbs_holder._x = thumbs_holder._x + 57.5;
}
};
var thumbs_holder = sectionContent.thumbs_holder.thumbs;
}
function initScreensavers(pMC) {
var sectionContent = pMC.content;
var screenArr = _65.data.XmlData.getArray(simpsons_data.screensavers, "entry");
var screenTotal = (screenArr.length - 1);
var currentScreenItem = 0;
swapScreenItem(screenArr, sectionContent.img_holder, currentScreenItem);
sectionContent.forward.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.forward.onRollOut = (sectionContent.forward.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
sectionContent.back.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
};
sectionContent.back.onRollOut = (sectionContent.back.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
if (screenTotal > 0) {
sectionContent.forward.onRelease = function () {
if (currentScreenItem == screenTotal) {
swapScreenItem(screenArr, sectionContent.img_holder, 0);
currentScreenItem = 0;
} else {
swapScreenItem(screenArr, sectionContent.img_holder, currentScreenItem + 1);
currentScreenItem = currentScreenItem + 1;
}
};
sectionContent.back.onRelease = function () {
if (currentScreenItem == 0) {
swapScreenItem(screenArr, sectionContent.img_holder, screenTotal);
currentScreenItem = screenTotal;
} else {
swapScreenItem(screenArr, sectionContent.img_holder, currentScreenItem - 1);
currentScreenItem = currentScreenItem - 1;
}
};
}
}
function swapScreenItem(pData, pMC, pIndex) {
function loadImg() {
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = Math.round((numBytesLoaded / numBytesTotal) * 100);
pMC._parent.lo.load_txt.text = _local1 + "%";
};
_local1.onLoadComplete = function (target_mc) {
contentFadeIn();
pMC._parent.loader.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:killThis, args:pMC.loader});
};
_local2.addListener(_local1);
_local2.loadClip(pData[pIndex].thumb, pMC.img);
}
function contentFadeIn() {
pMC.tween("_alpha", 100, 0.5, "easeInOutSine");
var _local6 = pData[pIndex];
var _local5 = new Array(_local6.mac, _local6.pc);
var _local3 = 0;
while (_local3 < 2) {
var _local4 = pMC.links;
var _local2 = _local4["link" + _local3];
_local2.url = _local5[_local3];
_local2.onRollOver = function () {
this.tween("_scale,", 120, 1, "easeOutElastic");
};
_local2.onRollOut = (_local2.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
_local2.onRelease = function () {
getURL (("javascript:track('downloads/screensavers/" + this.url) + "')");
getURL (this.url, "_blank");
};
_local3++;
}
}
pMC.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:loadImg});
}
function swapWallItem(pData, pMC, pIndex) {
function loadImg() {
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadProgress = function (target_mc, numBytesLoaded, numBytesTotal) {
var _local1 = Math.round((numBytesLoaded / numBytesTotal) * 100);
pMC._parent.loader.load_txt.text = _local1 + "%";
};
_local1.onLoadComplete = function (target_mc) {
contentFadeIn();
target_mc._parent.tween("_alpha", 100, 0.5);
pMC._parent.loader.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:killThis, args:pMC.loader});
};
_local2.addListener(_local1);
_local2.loadClip(pData[pIndex].thumb, pMC.img);
}
function contentFadeIn() {
var _local6 = pData[pIndex];
var _local5 = new Array(_local6.link1, _local6.link2, _local6.link3);
var _local3 = 0;
while (_local3 < 3) {
var _local4 = pMC.links;
var _local2 = _local4["link" + _local3];
_local2.url = _local5[_local3];
_local2.onRollOver = function () {
this.tween("_scale,", 130, 1, "easeOutElastic");
this._parent.tween("_alpha", 100, 0.5, "easeInOutSine");
};
_local2.onRollOut = (_local2.onReleaseOutside = function () {
this.tween("_scale,", 100, 1, "easeOutElastic");
});
_local2.onRelease = function () {
getURL (("javascript:track('downloads/wallpapers/" + this.url) + "')");
getURL (((("javascript:popWallpaper('" + SETTINGS.cid) + "', '") + this.url) + "')");
};
_local3++;
}
}
pMC.tween("_alpha", 0, 0.5, "easeInOutSine", null, {func:loadImg});
}
function initPartners(pScrim, pScrimTitle, pIndex, pSection) {
getURL ("javascript:track('partners')");
if ((_global.SETTINGS.cid == "us") || (_global.SETTINGS.cid == "de")) {
var _local7 = simpsons_data.partners.entry.length;
i = 0;
while (i < _local7) {
var _local4 = new MovieClipLoader();
var _local5 = pScrim.createEmptyMovieClip("imgMc" + i, pScrim.getNextHighestDepth());
var _local3 = new Object();
_local3.xVal = simpsons_data.partners.entry[i].xVal;
_local3.yVal = simpsons_data.partners.entry[i].yVal;
_local3.code = simpsons_data.partners.entry[i].code;
_local3.url = simpsons_data.partners.entry[i].url;
_local3.onLoadInit = function (mc) {
mc._x = this.xVal;
mc._y = this.yVal;
mc.code = this.code;
mc.url = this.url;
mc.onRelease = function () {
if (_global.SETTINGS.cid == "us") {
getURL (("javascript:track('partners/" + this.code) + "')");
}
getURL (this.url, "_blank");
};
};
_local4.addListener(_local3);
_local4.loadClip(simpsons_data.partners.entry[i].thumb, _local5);
i++;
}
}
}
function initMobile(pScrim, pScrimTitle, pIndex, pSection) {
var _local5 = simpsons_data.navigation.entry[pIndex].sections.split(",");
pScrim[pScrimTitle + "_content"].removeMovieClip();
if (!pScrim[pScrimTitle + "_content"]) {
var _local6 = pScrim.getNextHighestDepth();
var _local1 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local6);
_local1._x = 235;
_local1._y = 130;
} else {
var _local1 = pScrim[pScrimTitle + "_content"];
}
if (pSection == undefined) {
var _local2 = _local5[0];
} else {
var _local2 = pSection;
}
_local1.gotoAndStop(_local2);
if (!_local1[pScrimTitle + "_subnav"]) {
createScrimSubnav(_local1, pScrimTitle, pIndex, _local2, -300, 40);
_local1.subnav._scale = 0;
_local1.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
getURL (("javascript:track('mobile/" + _local2) + "')");
switch (_local2) {
case "mobile_wallpapers" :
initMobileSection(_local1, "wall");
break;
case "ringtones" :
initMobileSection(_local1, "ring");
break;
case "site" :
initMobileSite(_local1);
break;
case "siteIntl" :
initMobileSite(_local1);
break;
case "mobile_screensavers" :
initMobileSection(_local1, "screen");
}
_local1.character._scale = 0;
_local1.character.tween("_scale, _alpha", [100, 100], 2, customBounce, 0.6);
_local1.content._scale = 0;
_local1.content.tween("_scale, _alpha", [100, 100], 2, customBounce, 0.9);
}
function initMobileSection(pMC, pSection) {
var _local15;
switch (pSection) {
case "wall" :
_local15 = simpsons_data.mobile_wallpaper;
break;
case "ring" :
_local15 = simpsons_data.mobile_ringtone;
break;
case "screen" :
_local15 = simpsons_data.mobile_screensaver;
}
var _local8 = pMC.content.createEmptyMovieClip("linkMc", pMC.content.getNextHighestDepth());
_local8._y = 155;
var _local17 = _simpsons.TextItem.createItem(_local8, simpsons_data.mobile_links.link, "copy");
var _local14 = _simpsons.TextItem.createItem(_local8, simpsons_data.mobile_links.link2, "copy", {_y:20});
var _local16 = _simpsons.TextItem.createItem(_local8, simpsons_data.mobile_links.link3, "copy", {_y:20, _x:_local14._width + 5, bold:true});
var _local13 = simpsons_data.mobile_links.entry.length;
var _local9 = _local17._width + 5;
var _local5 = 0;
while (_local5 < _local13) {
var _local7 = _local8.attachMovie("flag_" + simpsons_data.mobile_links.entry[_local5].flag, "flag" + _local5, _local8.getNextHighestDepth(), {_x:_local9});
_local7.link = simpsons_data.mobile_links.entry[_local5].link;
_local7.onRelease = function () {
getURL (this.link, "_blank");
};
_local9 = _local9 + 27;
_local5++;
}
_local8._x = -(_local8._width / 2);
_local14._x = (_local8._width - ((_local14._width + _local16._width) + 5)) / 2;
_local16._x = (_local14._x + _local14._width) + 5;
_local16.onRelease = function () {
getURL (simpsons_data.mobile_links.link4, "_blank");
};
var _local4 = _simpsons.TextItem.createItem(pMC.content, _local15.msg._value, "mobile", {_x:-230, _y:-125, width:460, height:125});
var _local6 = _65.data.XmlData.getArray(_local15, "entry");
var _local2 = 0;
while (_local2 < _local6.length) {
var _local3 = pMC.content.itemsMc.attachMovie("mobileItem", "i" + _local2, _local2, {_x:_local2 * 93, ring:_local6[_local2].audio});
_local3.cacheAsBitmap = true;
_local3.image.loadMovie(_local6[_local2].thumb);
_local4 = _simpsons.TextItem.createItem(_local3, _local6[_local2].code, "copy", {_x:6, _alpha:0});
_local4._width = 74;
_local4._scale = _local4._xscale;
_local4._y = (86 - _local4._height) / 2;
_local3.ro = _local4;
_local3.onRollOver = function () {
this.ro.alphaTo(100, 0.4, "easeInSine");
this.image.alphaTo(20, 0.4, "easeOutSine");
if (this.ring) {
mobileAudio.kill();
mobileAudio = _65.media.AudioController.addAudio(this.ring, 100, 0, 0, "external", "mobile");
}
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.ro.alphaTo(0, 0.4, "easeOutSine");
this.image.alphaTo(100, 0.4, "easeInSine");
});
_local2++;
}
pMC.content.scroller.scrollTarget = "itemsMc._x";
pMC.content.scroller.scrollMax = ((-pMC.content.itemsMc._width) + 230) - 2;
pMC.content.scroller.scrollMin = -230;
}
function initMobileSite(pMC) {
if (SETTINGS.cid == "us") {
var _local6 = simpsons_data.mobile_site.entry._value;
var _local9 = _simpsons.TextItem.setText(pMC.content.content_txt, _local6, "copy");
var _local4 = pMC.content.attachMovie("scroller", "scroller", pMC.content.getNextHighestDepth(), {_x:80, _y:-120});
_local4.init(pMC.content.content_txt, 250);
var _local7 = simpsons_data.mobile_site.entry.submit;
var _local8 = _simpsons.TextItem.setText(pMC.content.submit.txt, _local7, "submit");
var _local3 = pMC.content.submit;
_local3.bg._alpha = 0;
_local3.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
_local3.onRelease = function () {
};
} else {
var _local5 = simpsons_data.mobileIntl_site.hdr._value;
var _local10 = _simpsons.TextItem.setText(pMC.content.hdr_txt, _local5, "copy");
var _local4 = pMC.content.attachMovie("scroller", "scroller", pMC.content.getNextHighestDepth(), {_x:80, _y:-120});
_local4.init(pMC.content.hdr_txt, 56);
var _local6 = simpsons_data.mobileIntl_site.content._value;
var _local9 = _simpsons.TextItem.setText(pMC.content.content_txt, _local6, "copy");
var _local7 = simpsons_data.mobile_site.entry.submit;
var _local8 = _simpsons.TextItem.setText(pMC.content.submit.txt, _local7, "submit");
var _local3 = pMC.content.submit;
_local3.bg._alpha = 0;
_local3.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
_local3.onRelease = function () {
};
}
}
function initMobileIntl(pScrim, pScrimTitle, pIndex, pSection) {
var _local6 = simpsons_data.navigation.entry[pIndex].sections.split(",");
pScrim[pScrimTitle + "_content"].removeMovieClip();
if (!pScrim[pScrimTitle + "_content"]) {
var _local7 = pScrim.getNextHighestDepth();
var _local2 = pScrim.attachMovie("scrim_" + pScrimTitle, pScrimTitle + "_content", _local7);
_local2._x = 235;
_local2._y = 130;
} else {
var _local2 = pScrim[pScrimTitle + "_content"];
}
if (pSection == undefined) {
var _local3 = _local6[0];
} else {
var _local3 = pSection;
}
_local2.gotoAndStop(_local3);
if ((!_local2[pScrimTitle + "_subnav"]) && (_global.SETTINGS.cid != "br")) {
createScrimSubnav(_local2, pScrimTitle, pIndex, _local3, -300, 40);
_local2.subnav._scale = 0;
_local2.subnav.tween("_scale", 100, 2, customBounce, 0.3);
}
getURL (("javascript:track('mobile/" + _local3) + "')");
switch (_local3) {
case "mobile_wallpapers" :
initMobileSectionIntl(_local2, "wall");
break;
case "mobile_ringtones" :
initMobileSectionIntl(_local2, "ring");
break;
case "site" :
initMobileSiteIntl(_local2);
break;
case "siteIntl" :
initMobileSiteIntl(_local2);
break;
case "mobile_screensavers" :
initMobileSectionIntl(_local2, "screen");
}
_local2.character._scale = 0;
_local2.character.tween("_scale, _alpha", [100, 100], 2, customBounce, 0.6);
_local2.content._scale = 0;
_local2.content.tween("_scale, _alpha", [100, 100], 2, customBounce, 0.9);
}
function initMobileSectionIntl(pMC, pSection) {
if (_global.SETTINGS.cid == "br") {
pMC.character._visible = false;
pMC.character2._alpha = 100;
}
var _local18;
switch (pSection) {
case "wall" :
_local18 = simpsons_data.mobile_wallpaper;
break;
case "ring" :
_local18 = simpsons_data.mobile_ringtone;
break;
case "screen" :
_local18 = simpsons_data.mobile_screensaver;
}
if (_global.SETTINGS.cid != "br") {
var _local5 = _simpsons.TextItem.createItem(pMC.content, _local18.msg._value, "mobile", {_x:-230, _y:-135, width:460, height:50});
}
var _local25 = _simpsons.TextItem.createItem(pMC.content, _local18.instructions._value, "copy", {_x:-232, _y:40, width:275, height:50});
var _local29 = _simpsons.TextItem.createItem(pMC.content, simpsons_data.mobile.number._value.toUpperCase(), "copy", {_x:66, _y:31, width:164, height:25});
var _local32 = _simpsons.TextItem.createItem(pMC.content, simpsons_data.login.entry.submit.toUpperCase(), "submit", {_y:95, _x:-250, width:498});
pMC.content.submit.bg._alpha = 0;
pMC.content.submit.onRollOver = function () {
this.bg.tween("_alpha", 100, 1, "easeInOutSine");
this.tween("_scale", 110, 1, "easeOutElastic");
};
pMC.content.submit.onRollOut = (form.submit.onReleaseOutside = function () {
this.bg.tween("_alpha", 0, 1, "easeInOutSine");
this.tween("_scale", 100, 1, "easeOutElastic");
});
var submitNum = 0;
pMC.content.submit.url = "";
pMC.content.submit.onRelease = function () {
if (submitNum >= 1) {
var _local3 = this._parent.getInstanceAtDepth(this._parent.getNextHighestDepth() - 1);
_local3.removeMovieClip();
sendingTxt.removeMovieClip();
}
var sendingTxt = _simpsons.TextItem.createItem(pMC.content, simpsons_data.mobile.sending._value.toUpperCase(), "mobile", {_x:-250, _y:125, width:498});
var _registerResponseData = (new _65.data.XmlData());
var _local2 = new Object();
_local2.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
sendingTxt.removeMovieClip();
if (_registerResponseData.MMS_Result.Code._value == "1") {
var _local1 = _simpsons.TextItem.createItem(pMC.content, simpsons_data.mobile.success._value.toUpperCase(), "mobile", {_x:-250, _y:125, width:498});
} else {
var _local1 = _simpsons.TextItem.createItem(pMC.content, simpsons_data.mobile.error._value.toUpperCase(), "mobile", {_x:-250, _y:125, width:498});
}
} else if (pObj.type == "onError") {
sendingTxt.removeMovieClip();
var _local1 = _simpsons.TextItem.createItem(pMC.content, simpsons_data.mobile.error._value.toUpperCase(), "mobile", {_x:-250, _y:125, width:498});
}
};
_registerResponseData.addEventListener("onError", _local2);
_registerResponseData.addEventListener("onLoad", _local2);
_registerResponseData.load(this.url + pMC.content.number.text);
submitNum++;
};
var _local7 = _65.data.XmlData.getArray(_local18, "entry");
var _local3 = 0;
while (_local3 < _local7.length) {
var _local4 = pMC.content.itemsMc.attachMovie("mobileItemIntl", "i" + _local3, _local3, {_x:_local3 * 92, ring:_local7[_local3].audio});
_local4.cacheAsBitmap = true;
_local4.image.loadMovie(_local7[_local3].thumb);
var _local14 = _simpsons.TextItem.createItem(_local4, simpsons_data.mobile.select._value, "copy", {_x:15, _y:77});
var _local5 = _simpsons.TextItem.createItem(_local4, _local7[_local3].code, "copy", {_x:6, _alpha:0});
_local5._width = 74;
_local5._scale = _local5._xscale;
_local5._y = (86 - _local5._height) / 2;
_local4.ro = _local5;
var _local11 = _local4.createClassObject(mx.controls.CheckBox, "checkbox" + _local3, _local4.getNextHighestDepth(), {_y:81});
var _local8 = new Object();
_local8.url = _local7[_local3].url;
_local8.click = function (eventObj) {
pMC.content.submit.url = this.url;
};
_local11.addEventListener("click", _local8);
_local3++;
}
pMC.content.scroller.scrollTarget = "itemsMc._x";
pMC.content.scroller.scrollMax = ((-pMC.content.itemsMc._width) + 230) - 2;
pMC.content.scroller.scrollMin = -230;
if (_global.SETTINGS.cid == "br") {
pMC.content.itemsMc._visible = (pMC.content.scroller._visible = false);
var _local20 = pMC.content.attachMovie("brLogo", "brLogo", pMC.content.getNextHighestDepth());
_local20._x = -(_local20._width / 2);
_local20._y = -(_local20._height + 10);
}
var _local10 = pMC.content.createEmptyMovieClip("linkMc", pMC.content.getNextHighestDepth());
_local10._y = 155;
var _local23 = _simpsons.TextItem.createItem(_local10, simpsons_data.mobile_links.link, "copy");
var _local19 = _simpsons.TextItem.createItem(_local10, simpsons_data.mobile_links.link2, "copy", {_y:20});
var _local22 = _simpsons.TextItem.createItem(_local10, simpsons_data.mobile_links.link3, "copy", {_y:20, _x:_local19._width + 5, bold:true});
var _local17 = simpsons_data.mobile_links.entry.length;
var _local12 = _local23._width + 5;
var _local6 = 0;
while (_local6 < _local17) {
var _local9 = _local10.attachMovie("flag_" + simpsons_data.mobile_links.entry[_local6].flag, "flag" + _local6, _local10.getNextHighestDepth(), {_x:_local12});
_local9.link = simpsons_data.mobile_links.entry[_local6].link;
_local9.onRelease = function () {
getURL (this.link, "_blank");
};
_local12 = _local12 + 27;
_local6++;
}
_local10._x = -(_local10._width / 2);
_local19._x = (_local10._width - ((_local19._width + _local22._width) + 5)) / 2;
_local22._x = (_local19._x + _local19._width) + 5;
_local22.onRelease = function () {
getURL (simpsons_data.mobile_links.link4, "_blank");
};
}
function initFooter() {
var _local4 = content_mc.bottom_mc.getNextHighestDepth();
var _local1 = content_mc.bottom_mc.createEmptyMovieClip("footer_mc", 500);
_local1._alpha = 0;
_local1._y = 65;
var _local3 = new MovieClipLoader();
var _local2 = new Object();
_local2.onLoadInit = function (target_mc) {
target_mc.tween("_alpha", 100, 2);
target_mc._x = (960 - target_mc._width) / 2;
};
_local3.addListener(_local2);
_local3.loadClip(("content/footer/footer_" + SETTINGS.cid) + ".swf", _local1);
}
function toggleLogo(pToggle) {
top_mc.logo_mc.enabled = pToggle;
}
function toggleMapRollovers(pToggle) {
var _local6 = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var _local3 = content_mc.section_mc.landing_mc.map;
var _local7 = 5;
var _local4 = _local6.length - 1;
var _local1 = 0;
while (_local1 < _local4) {
var _local2 = _local3["section" + _local1];
_local2.enabled = pToggle;
_local1++;
}
}
function toggleNav(pToggle) {
var _local5 = _65.data.XmlData.getArray(simpsons_data.navigation, "entry");
var _local3 = _local5.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = content_mc.bottom_mc.nav_mc["nav_item" + _local1];
_local2.enabled = pToggle;
_local1++;
}
}
function toggleTopNav(pToggle) {
var _local5 = new Array("avatar", "stars", "tour");
var _local1 = 0;
while (_local1 < 3) {
var _local2 = top_mc.topNav_mc["topNav_" + _local1];
var _local3 = _local2.block;
_local3.enabled = pToggle;
_local1++;
}
}
function toggleLandingSmoke(pToggle) {
if (pToggle == false) {
content_mc.section_mc.landing_mc.map.smoke.smoke_holder.smoke1.stop();
content_mc.section_mc.landing_mc.map.smoke.smoke_holder.smoke2.stop();
} else {
content_mc.section_mc.landing_mc.map.smoke.smoke_holder.smoke1.play();
content_mc.section_mc.landing_mc.map.smoke.smoke_holder.smoke2.play();
}
}
function toggleLandingCallouts(pToggle) {
var _local1 = 0;
while (_local1 < 3) {
var _local2 = content_mc.section_mc.landing_mc.foreground.front.callouts["callout" + _local1]["callout_content" + _local1];
_local2.img_holder.img.enabled = pToggle;
_local1++;
}
}
function toggleGlowLogo(pToggle) {
var _local1 = top_mc.logo_mc;
if (pToggle == true) {
var _local3 = new flash.filters.GlowFilter(16711092, 0.4, 120, 75, 5, 3, false, false);
var _local2 = new Array();
_local2.push(_local3);
_local1.filters = _local2;
} else {
_local1.filters = null;
}
}
function toggleSite(pToggle) {
toggleLogo(pToggle);
toggleNav(pToggle);
toggleTopNav(pToggle);
if (_global._SECTION == "landing") {
toggleLandingCallouts(pToggle);
toggleLandingSmoke(pToggle);
}
}
function toggleMapSections(pToggle) {
var _local6 = _65.data.XmlData.getArray(simpsons_data.sections, "entry");
var _local3 = content_mc.section_mc.landing_mc.map;
var _local1 = 0;
var _local4 = _local6.length - 1;
while (_local1 < _local4) {
var _local2 = _local3["section" + _local1];
_local2.enabled = pToggle;
_local1++;
}
}
function killThis(pMC, pDelay) {
if ((pDelay == undefined) && (pMC != undefined)) {
trace("KILLED1-PRE: " + pMC);
removeMovieClip(pMC);
if (pMC == _root.content_mc.section_mc.mart_mc) {
unloadMovie (pMC);
removeMovieClip(pMC);
transition_mcl.unloadClip(currMcKill);
}
} else {
setTimeout(removeThis, pDelay, pMC);
}
trace("KILLED1: " + pMC);
}
function removeThis(pMC) {
if (pMC == _root.content_mc.section_mc.mart_mc) {
pMC.swapDepths(0);
removeMovieClip(pMC);
pMC._parent.createEmptyMovieClip("dummy", pMC.getDepth());
transition_mcl.unloadClip(pMC);
}
trace("KILLED2: " + pMC);
}
function randScrimPosition() {
var _local3 = _65.Math2.random(2000, 5000);
var _local2 = _65.Math2.random(-1500, 0);
var _local5 = new Array(_local3, _local2);
var _local4 = random(2);
var _local1 = _local5[_local4];
return(_local1);
}
function createLoader(pTarget, pX, pY, pType) {
if (!pType) {
pType = "subloader";
}
var _local3 = pTarget.getNextHighestDepth();
var _local1 = pTarget.attachMovie(pType, "loader", _local3);
_local1._x = pX;
_local1._y = pY;
_local1._alpha = 0;
_local1.alphaTo(100, 1);
_local1.load_txt.text = "0%";
}
function loadBitmapImg(pMC, pImgSrc) {
var _local1 = new MovieClipLoader();
var _local2 = new Object();
_local1.addListener(_local2);
_local2.onLoadInit = function (mc) {
mc._scale = 80;
};
_local1.loadClip(pImgSrc, pMC);
}
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing, com.mosesSupposes.fuse.CustomEasing, com.mosesSupposes.fuse.FuseItem);
Stage.showMenu = false;
_focusrect = false;
_global._SECTION = "landing";
var percentSectionLoaded = 100;
var signInterval;
var customBounce = [{Mx:0, My:0, Nx:18, Ny:-236, Px:-1, Py:36}, {Mx:17, My:-200, Nx:22, Ny:-50, Px:2, Py:50}, {Mx:41, My:-200, Nx:38, Ny:0, Px:-5, Py:0}, {Mx:74, My:-200, Nx:26, Ny:0, Px:0, Py:0}, {Mx:100, My:-200, Nx:36, Ny:0, Px:-4, Py:0}, {Mx:132, My:-200, Nx:32, Ny:0, Px:-1, Py:0}, {Mx:163, My:-200, Nx:44, Ny:0, Px:-7, Py:0}, {Mx:200, My:-200}];
var customBounce_alt = [{Mx:0, My:0, Nx:56, Ny:-238, Px:-19, Py:37}, {Mx:37, My:-201, Nx:64, Ny:66, Px:6, Py:-65}, {Mx:107, My:-200, Nx:114, Ny:0, Px:-39, Py:0}, {Mx:182, My:-200, Nx:16, Ny:0, Px:2, Py:0}, {Mx:200, My:-200}];
var user = (new _simpsons.SimpsonsUser());
_65.media.AudioController.init(this);
_65.media.AudioController.createGroup(this, "music", 100);
_65.media.AudioController.createGroup(this, "mobile", 100);
_65.media.AudioController.DEFAULT_GROUP = "simpsonsfx";
var isSoundPlaying;
var tempPts = 0;
init();
var videoScrim;
var videoBtnMc;
var shootCount = 0;
var transition_mcl;
var currMcKill;
var isVideo = false;
Symbol 168 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 179 MovieClip [CheckBoxAssets] Frame 1
#initclip 50
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 181 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 183 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 186 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 188 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 191 MovieClip [Defaults] Frame 1
#initclip 51
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 192 MovieClip [UIObjectExtensions] Frame 1
#initclip 52
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 193 MovieClip [UIObject] Frame 1
#initclip 53
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 196 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 197 MovieClip Frame 1
#initclip 54
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 198 MovieClip [FocusRect] Frame 1
#initclip 55
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 199 MovieClip [FocusManager] Frame 1
#initclip 56
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 200 MovieClip [UIComponentExtensions] Frame 1
#initclip 57
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 201 MovieClip [UIComponent] Frame 1
#initclip 58
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 202 MovieClip [SimpleButton] Frame 1
#initclip 59
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 203 MovieClip [Border] Frame 1
#initclip 60
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 204 MovieClip [RectBorder] Frame 1
#initclip 61
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 205 MovieClip [ButtonSkin] Frame 1
#initclip 62
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 206 MovieClip [Button] Frame 1
#initclip 63
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 202 MovieClip [SimpleButton] in Symbol 206 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 207 MovieClip [CheckBox] Frame 1
#initclip 64
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 206 MovieClip [Button] in Symbol 207 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1168 MovieClip [__Packages.com.mosesSupposes.fuse.CustomEasing] Frame 0
class com.mosesSupposes.fuse.CustomEasing
{
function CustomEasing () {
}
static function precalced(t, b, c, d, pl) {
return(b + (c * pl[Math.round((t / d) * pl.length)]));
}
static function fromCurve(t, b, c, d, pl) {
var _local4 = (200 * t) / d;
var _local2 = -1;
var _local1;
_local2++;
while (pl[_local2].Mx <= _local4) {
_local1 = pl[_local2];
}
var _local7 = _local1.Px;
var _local5 = _local1.Nx;
var _local6 = ((_local7 == 0) ? ((-(_local1.Mx - _local4)) / _local5) : (((-_local5) + Math.sqrt((_local5 * _local5) - ((4 * _local7) * (_local1.Mx - _local4)))) / (2 * _local7)));
return(b - (c * (((_local1.My + (_local1.Ny * _local6)) + ((_local1.Py * _local6) * _local6)) / 200)));
}
static var registryKey = "customEasing";
}
Symbol 1169 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts] Frame 0
class com.mosesSupposes.fuse.Shortcuts
{
function Shortcuts () {
}
static function initialize() {
if (shortcuts == null) {
initShortcuts();
}
}
static function doShortcut(obj, methodName) {
initialize();
var _local5 = shortcuts[methodName];
if (_local5 == undefined) {
if (typeof(obj) == "movieclip") {
_local5 = mcshortcuts[methodName];
}
}
if (_local5 == undefined) {
return(null);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (!(obj instanceof Array)) {
obj = [obj];
}
var _local3 = "";
for (var _local6 in obj) {
var _local2 = String(_local5.apply(obj[_local6], arguments));
if ((_local2 != null) && (_local2.length > 0)) {
if (_local3.length > 0) {
_local3 = (_local2 + "|") + _local3;
} else {
_local3 = _local2;
}
}
}
return(((_local3 == "") ? null : (_local3)));
}
static function addShortcutsTo() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, _local2.getter, _local2.setter);
_global.ASSetPropFlags(o, _local5, 3, 1);
} else {
o[_local5] = _local2;
_global.ASSetPropFlags(o, _local5, 7, 1);
}
}
};
for (var _local7 in arguments) {
var _local4 = arguments[_local7];
if ((_local4 == MovieClip.prototype) || (typeof(_local4) == "movieclip")) {
_local5(_local4, mcshortcuts);
}
_local5(_local4, shortcuts);
}
}
static function removeShortcutsFrom() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
_global.ASSetPropFlags(o, _local5, 0, 2);
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, null, null);
}
delete o[_local5];
}
};
for (var _local7 in arguments) {
var _local3 = arguments[_local7];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local5(_local3, mcshortcuts);
}
_local5(_local3, shortcuts);
}
}
static function parseStringTypeCallback(callbackStr) {
var evaluate = function (val) {
var first = val.charAt(0);
if ((first == val.slice(-1)) && ((first == "\"") || (first == "'"))) {
return(val.slice(1, -1));
}
if (val == "true") {
return(Object(true));
}
if (val == "false") {
return(Object(false));
}
if (val == "null") {
return(Object(null));
}
if (_global.isNaN(Number(val)) == false) {
return(Object(Number(val)));
}
return(Object(eval (val)));
};
var trimWhite = function (str) {
while (str.charAt(0) == " ") {
str = str.slice(1);
}
while (str.slice(-1) == " ") {
str = str.slice(0, -1);
}
return(str);
};
var evaluateList = function (list) {
var _local11 = [];
var _local4 = 0;
while (_local4 < list.length) {
var _local3 = list[_local4];
_local3 = trimWhite(_local3);
var _local5 = (_local3.charAt(0) == "{") && ((_local3.indexOf("}") > -1) || (_local3.indexOf(":") > -1));
var _local10 = _local3.charAt(0) == "[";
if ((_local5 || (_local10)) == true) {
var _local6 = ((_local5 == true) ? ({}) : ([]));
var _local2 = _local4;
while (_local2 < list.length) {
if (_local2 == _local4) {
_local3 = _local3.slice(1);
}
var _local1;
var _local8 = (_local1.slice(-1) == ((_local5 == true) ? "}" : "]")) || (_local2 == (list.length - 1));
if (_local8 == true) {
_local1 = _local1.slice(0, -1);
}
if ((_local5 == true) && (_local1.indexOf(":") > -1)) {
var _local7 = _local1.split(":");
_local6[trimWhite(_local7[0])] = evaluate(trimWhite(_local7[1]));
} else if (_local10 == true) {
_local6.push(evaluate(trimWhite(_local1)));
}
if (_local8 == true) {
_local11.push(_local6);
_local4 = _local2;
break;
}
_local2++;
}
} else {
_local11.push(evaluate(trimWhite(_local3)));
}
_local4++;
}
return(_local11);
};
var parts = callbackStr.split("(");
var p0 = parts[0];
var p1 = parts[1];
return({func:p0.slice(p0.lastIndexOf(".") + 1), scope:eval (p0.slice(0, p0.lastIndexOf("."))), args:evaluateList(p1.slice(0, p1.lastIndexOf(")")).split(","))});
}
static function initShortcuts() {
shortcuts = new Object();
var methods = {alphaTo:"_alpha", scaleTo:"_scale", sizeTo:"_size", rotateTo:"_rotation", brightnessTo:"_brightness", brightOffsetTo:"_brightOffset", contrastTo:"_contrast", colorTo:"_tint", tintPercentTo:"_tintPercent", colorResetTo:"_colorReset", invertColorTo:"_invertColor"};
var _local4 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts();
var _local7 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1};
for (var _local9 in _local4) {
if (_local7[_local4[_local9].split("_")[1]] === 1) {
methods[_local4[_local9] + "To"] = _local4[_local9];
}
}
var _local8 = {__resolve:function (name) {
var propName = methods[name];
return(function () {
var _local4 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments));
return(_local4);
});
}};
var _local5 = {__resolve:function (name) {
var _local3 = {setter:function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.doTween(this, ((name == "_tintString") ? "_tint" : (name)), v, 0);
}};
switch (name) {
case "_colorReset" :
_local3.getter = function () {
return(100 - _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tintPercent);
};
break;
case "_colorTransform" :
_local3.getter = function () {
return(Color(new Color(this)).getTransform());
};
break;
case "_fade" :
_local3.getter = function () {
return(this._alpha);
};
break;
case "_size" :
_local3.getter = function () {
return(((this._width == this._height) ? (this._width) : null));
};
break;
case "_scale" :
_local3.getter = function () {
return(((this._xscale == this._yscale) ? (this._xscale) : null));
};
break;
default :
_local3.getter = function () {
return(_global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this)[name.slice(1)]);
};
}
return(_local3);
}};
for (var _local9 in methods) {
shortcuts[_local9] = _local8[_local9];
if ((_local9 != "alphaTo") && (_local9 != "rotateTo")) {
shortcuts[methods[_local9]] = _local5[methods[_local9]];
}
}
shortcuts._tintString = _local5._tintString;
shortcuts._colorTransform = _local5._colorTransform;
shortcuts._fade = _local5._fade;
shortcuts.tween = function (props, endVals, seconds, ease, delay, callback) {
if ((arguments.length == 1) && (typeof(props) == "object")) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, action:props}));
}
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, props, endVals, seconds, ease, delay, callback));
};
shortcuts.removeTween = (shortcuts.stopTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this, props);
});
shortcuts.removeAllTweens = (shortcuts.stopAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.removeTween("ALL");
});
shortcuts.isTweening = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweening(this, prop));
};
shortcuts.getTweens = function () {
return(com.mosesSupposes.fuse.ZigoEngine.getTweens(this));
};
shortcuts.lockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, true);
};
shortcuts.unlockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, false);
};
shortcuts.isTweenLocked = function () {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenLocked(this));
};
shortcuts.isTweenPaused = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(this, prop));
};
shortcuts.pauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(this, props);
};
shortcuts.resumeTween = (shortcuts.unpauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween(this, props);
});
shortcuts.pauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.pauseTween("ALL");
};
shortcuts.resumeAllTweens = (shortcuts.unpauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween("ALL");
});
shortcuts.ffTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.ffTween(this, props);
};
shortcuts.rewTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, false, suppressStartEvents);
};
shortcuts.rewAndPauseTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, true, suppressStartEvents);
};
shortcuts.skipTweenTo = function (seconds, props) {
com.mosesSupposes.fuse.ZigoEngine.skipTweenTo(seconds, this, props);
};
shortcuts.bezierTo = function (destX, destY, controlX, controlY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_bezier_", {x:destX, y:destY, controlX:controlX, controlY:controlY}, seconds, ease, delay, callback));
};
shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_colorTransform", {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}, seconds, ease, delay, callback));
};
shortcuts.tintTo = function (rgb, percent, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_tint", {tint:rgb, percent:percent}, seconds, ease, delay, callback));
};
shortcuts.slideTo = function (destX, destY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x,_y", [destX, destY], seconds, ease, delay, callback));
};
shortcuts.fadeIn = function (seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_fade", 100, seconds, ease, delay, callback));
};
shortcuts.fadeOut = function (seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_fade", 0, seconds, ease, delay, callback));
};
mcshortcuts = new Object();
mcshortcuts._frame = {getter:function () {
return(this._currentframe);
}, setter:function (v) {
this.gotoAndStop(Math.round(v));
}};
mcshortcuts.frameTo = function (endframe, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), seconds, ease, delay, callback));
};
}
static var registryKey = "shortcuts";
static var shortcuts = null;
static var mcshortcuts = null;
}
Symbol 1170 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _resetTo100() {
return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|");
}
static function _resetTo0() {
return("|_brightness|_brightOffset|_colorReset|_rotation|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|");
}
static function _fuseEvents() {
return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) {
var _local1 = false;
var _local2 = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
_local1 = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
_local1 = true;
}
} else {
_local2 = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
_local1 = true;
}
if ((outputLevel > 0) && (_local1 == false)) {
error("109", c, inGroup, _local2);
}
return(_local1);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local5 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local5 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + " ZigoEngine.simpleSetup(Shortcuts);") + _local5);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local5 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local5);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "].");
if (Boolean(_local4) == true) {
_local2 = _local2 + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
_local2 = _local2 + " Object syntax call failed. **";
}
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local2 = _local2 + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("** ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized. **");
break;
case "010" :
_local2 = _local2 + ((((("** " + ((_local3 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((_local4 == 1) ? "callback[" : (String(_local4) + " callbacks["))) + _local6) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
_local2 = _local2 + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local2 = _local2 + (((((("- Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("- Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
_local2 = _local2 + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
_local2 = _local2 + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(_local3) * 100))) + "% ]");
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local5 + " You must now use the following commands:");
_local2 = _local2 + ((_local5 + _local5) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local5 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local5);
break;
case "102" :
_local2 = _local2 + (((("** Fuse " + _local3) + " index or label not found (") + _local4) + ") or out of range. **");
break;
case "103" :
_local2 = _local2 + (((("** Fuse skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "104" :
_local2 = _local2 + (("** Fuse fastForward index out of play range (" + _local3) + ") - skipTo has been called instead. **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local5 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local5 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local5);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Command \"" + _local3) + "\" discarded. ");
if (_local4 == true) {
_local2 = _local2 + "Not allowed within a group. **";
} else if (_local6 == true) {
_local2 = _local2 + (("Not supported in Object Syntax, use the " + _local3) + " property instead. **");
} else {
_local2 = _local2 + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
_local2 = _local2 + (((("** " + _local3) + " illegal Fuse property discarded:\"") + _local4) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local5);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + ((("** " + _local3) + ": No targets found!") + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
_local2 = _local2 + ((((("** " + _local3) + ": ") + ((_local4 == 1) ? "" : (_local4 + " actions in the group"))) + " missing targets") + ((_local6 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "123" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "124" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
_local2 = _local2 + (_local3 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
_local2 = _local2 + (((("** FuseFMP error: A " + _local3) + " could not be created for ") + _local4) + " **");
break;
case "203" :
_local2 = _local2 + (("** FuseFMP.setFilterProps - too few arguments passed (" + _local3) + ") - minimum 2 required. **");
break;
case "204" :
_local2 = _local2 + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + _local3) + ") **");
}
output(_local2);
}
static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) {
if (callback._vcb == true) {
return(callback);
}
var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1};
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
if (typeof(callback) == "object") {
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if ((callback.roundResults === true) || (callback.roundResults === false)) {
validCBs.roundResults = callback.roundResults;
}
} else {
callback = {func:callback};
}
var prefixes = ["start", "upd", ""];
var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback;
for (var i in prefixes) {
var prefix = prefixes[i];
var fstr = callback[prefix + "func"];
if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) {
if (easyfuncparse != undefined) {
var efc = easyfuncparse(fstr);
if (efc.func != undefined) {
callback[prefix + "scope"] = efc.scope;
callback[prefix + "func"] = efc.func;
callback[prefix + "args"] = efc.args;
}
} else if (outputLevel > 0) {
error("008");
}
}
}
var basescope = callback.scope;
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"]));
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args};
if (callerIsEngine == true) {
validCBs[prefix].id = ++cbTicker;
}
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (_cbprops().indexOf(("|" + i) + "|") == -1) {
error("009", i);
}
}
if ((cbErrors.length > 0) && (outputLevel > 0)) {
if (outputLevel > 0) {
error("010", callerIsEngine, cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = "Fuse Kit 2.1.2r1 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
static var cbTicker = 0;
}
Symbol 1171 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if (TIME_MULTIPLIER != prevTimeMult) {
TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER);
if (_global.isNaN(TIME_MULTIPLIER) == true) {
TIME_MULTIPLIER = 1;
}
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER);
}
prevTimeMult = TIME_MULTIPLIER;
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals, true);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
seconds = seconds * TIME_MULTIPLIER;
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
delay = delay * TIME_MULTIPLIER;
var _local12 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, _local7, OUTPUT_LEVEL, true);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
_local12.extra1 = ease;
if (typeof(ease[0]) == "number") {
_local9 = extensions.customEasing.precalced;
} else {
_local9 = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
if (instance == undefined) {
return(0);
}
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked == true);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props, suppressEndEvents) {
instance.alterTweens("ff", targs, props, null, suppressEndEvents);
}
static function skipTweenTo(seconds, targs, props) {
instance.alterTweens("skipTo", targs, props, false, false, seconds);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local3 = {};
var _local7 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local9 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local5 = ((_local7 == true) ? (100 - _local1.ra) : 0);
if (_local5 != 0) {
var _local6 = 100 / _local5;
_local3.tint = (((_local1.rb * _local6) << 16) | ((_local1.gb * _local6) << 8)) | (_local1.bb * _local6);
_local3.tintPercent = _local5;
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local7 == true) && (_local9 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var TIME_MULTIPLIER = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var prevTimeMult = 1;
}
Symbol 1172 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local24 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local44 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local30 = callback.extra1;
var _local29 = callback.extra2;
var _local23 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local43 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local42 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local25 = "";
var _local28 = "";
var _local22 = obj.__zigoID__;
var _local7 = tweens[String(_local22)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local40 in _local7.props) {
_local23.unshift(_local40);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local47 in props) {
var _local5 = props[_local47];
var _local4 = endvals[_local47];
var _local15 = 0;
if (_local5 == "_fade") {
_local5 = "_alpha";
_local15 = ((_local4 < 50) ? -1 : 1);
}
var _local16 = _local42.indexOf(("|" + _local5) + "|") > -1;
var _local18 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local16 == true) && (_local18 != undefined)) {
_local23.unshift(_local18);
delete _local7.props[_local18];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local5] != undefined) {
_local23.unshift(_local5);
delete _local7[_local5];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1, complex:-1};
var _local11 = ((_local24 == 0) && ((seconds + delay) == 0)) || ((_local24 > 0) && (seconds == 0));
var _local10 = false;
var _local13 = (_local14 != undefined) && (_local43.indexOf(("|" + _local5) + "|") > -1);
var _local19 = (_local5.toLowerCase().indexOf("colors") > -1) && (_local4 instanceof Array);
var _local27 = ((_local13 == true) && (_local5.indexOf("lor") > -1)) && (_local5.charAt(2) != "l");
if (_local13 == true) {
_local3.fmp = _local14;
_local3.ps = _local14.getFilterProp(obj, _local5, true);
_local3.special = true;
}
if (((_local16 == true) || (_local19 == true)) || (_local27 && (_local11 == false))) {
_local3.complex = 1;
if (_local16 == true) {
_local3.c = new Color(obj);
_local3.ps = Color(_local3.c).getTransform();
var _local17 = ((((_local5 == "_tint") || (_local5 == "_tintPercent")) || (_local5 == "_colorReset")) ? "tint" : (_local5.slice(1)));
var _local9 = null;
var _local12 = null;
if (_local5 != "_colorTransform") {
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local9 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local5 == "_tintPercent") || (_local5 == "_colorReset")) {
var _local20 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (_local5 == "_colorReset") {
_local9 = Math.min(_local20, 100 - Math.abs(Number(_local4)));
} else {
_local9 = ((typeof(_local4) == "string") ? ((_local20 || 0) + Number(_local4)) : Number(_local4));
}
_local9 = Math.max(0, Math.min(_local9, 100));
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local9 = 100;
}
} else {
_local9 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local9, _local12);
}
if (_local11 == true) {
if (_local5 == "_colorTransform") {
Color(_local3.c).setTransform(_local4);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, _local17, _local9, _local12);
}
} else {
var _local21 = getChangeObj(_local3.ps, _local4, false, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local11 == true) {
_local14.setFilterProp(obj, _local5, _local4);
} else if (_local19 == true) {
_local3.c = 2;
_local3.ch = [];
for (var _local40 in _local4) {
if (_local4[_local40] != null) {
if (_local3.ps == null) {
_local3.ps = [];
}
_local3.ps[_local40] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((_local3.ps[_local40] == null) ? obj[_local5][_local40] : _local3.ps[_local40]));
var _local21 = getChangeObj(_local3.ps[_local40], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4[_local40]), true, false);
_local3.ch[_local40] = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
var _local21 = getChangeObj(_local3.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4), true, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local5 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if (typeof(_local4) == "object") {
_local3.complex = ((_local4 instanceof Array) ? 0 : 1);
}
if ((_local5 == "_x") || (_local5 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local5 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local13 == false) {
if (_local3.complex > -1) {
_local3.ps = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local40 in _local4) {
_local3.ps[_local40] = obj[_local5][_local40];
}
} else {
_local3.ps = obj[_local5];
}
}
if (_local11 == true) {
if (_local13 == true) {
_local14.setFilterProp(obj, _local5, ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)));
} else if (_local3.complex > -1) {
for (var _local40 in _local4) {
if ((_local4[_local40] != null) && (_global.isNaN(Number(_local4[_local40])) == false)) {
obj[_local5][_local40] = ((typeof(_local4[_local40]) == "string") ? (_local3.ps[_local40] + Number(_local4[_local40])) : _local4[_local40]);
if (_global.isNaN(obj[_local5][_local40]) == true) {
obj[_local5][_local40] = 0;
}
}
}
} else {
obj[_local5] = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local15 == 1) {
obj._visible = true;
} else if (_local15 == -1) {
obj._visible = false;
}
}
} else if (_local3.complex > -1) {
var _local21 = getChangeObj(_local3.ps, _local4, _local13, _local3.complex == 0);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local24 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
if ((_local3.complex > -1) && (!(_local3.c === 2))) {
_local3.ps = [_local3.ps];
_local3.ch = [_local3.ch];
}
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local44;
if (_local30 != undefined) {
_local3.e1 = _local30;
}
if (_local29 != undefined) {
_local3.e2 = _local29;
}
_local3.v = _local15;
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (callback.roundResults != undefined) {
_local3.rr = callback.roundResults;
}
if (tweens[String(_local22)] == undefined) {
_local7 = (tweens[String(_local22)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:_local22, props:{}});
numTweens++;
}
if (_local16 == true) {
_local7.colorProp = _local5;
}
_local7.props[_local5] = _local3;
_local7.numProps++;
_local25 = (_local5 + ",") + _local25;
_local28 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local28;
}
_local3 = undefined;
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local23.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local23, __zigoID__:_local22, during:"add"});
}
if (_local25 == "") {
if (_local24 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local48 = obj._listeners.length > 0;
if (_local48 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local25 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local25.slice(0, -1), _local28.slice(0, -1));
}
}
return(((_local25 == "") ? null : (_local25.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local12 = paramsObj(targs, props);
if (_local12.none == true) {
return(undefined);
}
var _local16 = _local12.all;
var _local17 = _local12.allprops;
var _local9 = ((_local16 == true) ? (tweens) : (Object(_local12.tg)));
var _local8 = false;
for (var _local20 in _local9) {
var _local3 = ((_local16 == true) ? (_local20) : (String(_local9[_local20].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local17 == true) ? (_local2.props) : (_local12.props));
for (var _local14 in _local6) {
var _local5 = (_local14 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local14] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local14);
if ((_local14 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local14];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local19 in _local4) {
var _local7 = tweens[_local19].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local19].targID) + "\")]")), props:_local4[_local19], __zigoID__:tweens[_local19].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local14 = _local11.all;
var _local15 = _local11.allprops;
var _local9 = ((_local14 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = 0;
for (var _local16 in _local9) {
var _local7 = ((_local14 == true) ? (_local16) : (String(_local9[_local16].__zigoID__)));
var _local5 = tweens[_local7];
var _local4 = ((_local15 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local10 in _local4) {
_local8++;
var _local2 = _local5.props[_local10];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (noEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
_local2.suppressEnd = true;
}
_local2.o = true;
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "skipTo") {
_local2.ts = Math.min(now, (_local2.ts + (now - _local2.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local8 > 0)) {
update();
} else if ((type == "rewind") && (_local8 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local19 = {};
var _local21 = {};
var _local20 = {};
var _local15 = {};
var _local13 = {};
var _local14 = {};
var _local24 = false;
var _local22 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local33 in tweens) {
var _local12 = tweens[_local33];
var _local5 = _local12.targ;
var _local32 = _local12.props;
var _local18 = _local5._listeners.length > 0;
if (_local5.__zigoID__ == undefined) {
_local24 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local23 = [];
for (var _local28 in _local32) {
_local23.unshift(_local28);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local5.addProperty) == "function") ? (_local5) : (("[MISSING:" + _local12.targID) + "]")), props:_local23, __zigoID__:_local12.targZID, during:"update"});
}
continue;
}
for (var _local28 in _local32) {
var _local3 = _local32[_local28];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local9 = now >= (_local3.ts + _local3.d);
if (_local3.complex == -1) {
var _local6;
if (_local9 == true) {
_local6 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local6;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local9 = false;
}
} else {
_local6 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local6) == false) {
if ((_local3.rr == true) || ((_local22 == true) && (!(_local3.rr === false)))) {
_local6 = Math.round(Number(_local6));
}
if (_local3.special != true) {
_local5[_local28] = _local6;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local5, _local28, _local6);
} else if (_local28 == "_bezier_") {
var _local10 = _local3.bz;
_local5._x = _local10.sx + (_local6 * (((2 * (1 - _local6)) * _local10.ctrlx) + (_local6 * _local10.chx)));
_local5._y = _local10.sy + (_local6 * (((2 * (1 - _local6)) * _local10.ctrly) + (_local6 * _local10.chy)));
} else if (_local28 == "_frame") {
MovieClip(_local5).gotoAndStop(Math.ceil(_local6));
}
}
} else {
var _local16 = (_local9 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
var _local7 = [];
for (var _local25 in _local3.ch) {
var _local4 = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local26 in _local3.ch[_local25]) {
var _local8 = _local3.ch[_local25][_local26];
var _local11 = _local3.ps[_local25][_local26];
if (_local9 == true) {
_local4[_local26] = _local11 + _local8;
if (_local16 == true) {
_local3.ch[_local25][_local26] = -_local8;
}
} else {
_local4[_local26] = _local3.ef(now - _local3.ts, _local11, _local8, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local26]) == false) {
if ((_local3.rr == true) || ((_local22 == true) && (!(_local3.rr === false)))) {
_local4[_local26] = Math.round(_local4[_local26]);
}
}
if ((_local3.fmp == -1) && (_local3.c == -1)) {
_local5[_local28][_local26] = _local4[_local26];
}
}
_local7.push(_local4);
if ((_local3.fmp == -1) && (_local3.c == 2)) {
_local5[_local28][_local25] = Number(((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb);
}
}
if (_local3.fmp != -1) {
if (_local3.c == 1) {
_local3.fmp.setFilterProp(_local5, _local28, ((_local7[0].rb << 16) | (_local7[0].gb << 8)) | _local7[0].bb);
} else if (_local3.c == 2) {
var _local17 = [];
for (var _local26 in _local7) {
_local17.unshift(((_local7[_local26].rb << 16) | (_local7[_local26].gb << 8)) | _local7[_local26].bb);
}
_local3.fmp.setFilterProp(_local5, _local28, _local17);
}
} else if (_local3.c != -1) {
_local3.c.setTransform(_local7[0]);
}
if (_local16 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local9 = false;
_local3.ts = now;
_local3.ps = _local7;
}
}
if (_local3.sf == false) {
if (_local3.v != 0) {
_local5._visible = true;
}
if (_local18 == true) {
if (_local15[_local33] == undefined) {
_local15[_local33] = [_local5, []];
}
_local15[_local33][1].unshift(_local28);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local19[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local18 == true) {
if (_local13[_local33] == undefined) {
_local13[_local33] = [_local5, []];
}
_local13[_local33][1].unshift(_local28);
}
if (_local3.ucb != undefined) {
_local21[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local9 == true) {
if (_local3.v === -1) {
_local5._visible = false;
}
if (_local3.suppressEnd != true) {
if (_local18 == true) {
if (_local14[_local33] == undefined) {
_local14[_local33] = [_local5, []];
}
_local14[_local33][1].unshift(_local28);
}
if (_local3.ecb != undefined) {
_local20[String(_local3.ecb.id)] = _local3.ecb;
}
}
delete _local32[_local28];
if (_local28 == _local12.colorProp) {
delete _local12.colorProp;
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local24 = true;
}
}
delete _local3.suppressEnd;
}
}
for (var _local33 in _local15) {
_local15[_local33][0].broadcastMessage("onTweenStart", {target:_local15[_local33][0], props:_local15[_local33][1]});
}
for (var _local33 in _local19) {
_local19[_local33].f.apply(_local19[_local33].s, _local19[_local33].a);
}
for (var _local33 in _local13) {
_local13[_local33][0].broadcastMessage("onTweenUpdate", {target:_local13[_local33][0], props:_local13[_local33][1]});
}
for (var _local33 in _local21) {
_local21[_local33].f.apply(_local21[_local33].s, _local21[_local33].a);
}
for (var _local33 in _local14) {
_local14[_local33][0].broadcastMessage("onTweenEnd", {target:_local14[_local33][0], props:_local14[_local33][1]});
}
for (var _local33 in _local20) {
_local20[_local33].f.apply(_local20[_local33].s, _local20[_local33].a);
}
if (_local24) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if ((((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) && (_local2._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals, retainFade) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if ((_local1[_local11] == "_fade") && (retainFade != true)) {
_local1[_local11] = "_alpha";
}
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var _local3 = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var _local7 in ep) {
if ((((((isFMP == true) && (_local7.charAt(1) == "b")) || (ep[_local7] != ps[_local7])) || (useArray == true)) && (ep[_local7] != null)) && (_global.isNaN(Number(ep[_local7])) == false)) {
_local3.map[_local7] = ((typeof(ep[_local7]) == "string") ? (Number(ep[_local7])) : (ep[_local7] - ps[_local7]));
if (_global.isNaN(_local3.map[_local7]) == true) {
_local3.map[_local7] = 0;
} else if (_local3.map[_local7] != 0) {
_local3.changed = true;
}
}
}
return(_local3);
}
var numTweens = 0;
}
Symbol 1173 MovieClip [__Packages._simpsons.Resize] Frame 0
class _simpsons.Resize
{
function Resize () {
}
static function resizeToStage(pTarget, _pX, _pY) {
if (_pX == undefined) {
_pX = true;
}
if (_pY == undefined) {
_pY = true;
}
if (_pX == true) {
pTarget._width = Stage.width;
}
if (_pY == true) {
pTarget._height = Stage.height;
}
}
static function centerToStage(pTarget, _pX, _pY) {
if (_pX == undefined) {
_pX = true;
}
if (_pY == undefined) {
_pY = true;
}
if (_pX == true) {
pTarget._x = 480;
}
if (_pY == true) {
pTarget._y = 450;
}
}
}
Symbol 1174 MovieClip [__Packages._65.data.XmlData] Frame 0
class _65.data.XmlData
{
var _url, _args, _doRetry, _isFileError, _sendVars, _receiveVars, _method, _httpStatusCode, _httpStatusType;
function XmlData (pSource) {
if (pSource) {
clear("all");
parse(pSource);
} else {
mx.events.EventDispatcher.initialize(this);
}
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function load(pUrl, pArgs, pMethod, pRetry) {
if (!pUrl) {
return(false);
}
_url = pUrl;
_args = pArgs;
_doRetry = ((pRetry == true) ? true : false);
_isFileError = false;
_sendVars = new LoadVars();
_receiveVars = new LoadVars();
if (pMethod) {
_method = ((pMethod.toUpperCase() == "GET") ? "GET" : "POST");
_receiveVars.owner = this;
_receiveVars.onHTTPStatus = function (httpStatus) {
this.owner.onHTTPStatus(httpStatus);
};
_receiveVars.onData = function (pSrc) {
this.owner.onData(pSrc);
};
var _local2;
for (_local2 in _args) {
_sendVars[_local2] = _args[_local2];
}
_sendVars.sendAndLoad(_url, _receiveVars, _method);
} else {
_receiveVars.owner = this;
_receiveVars.onHTTPStatus = function (httpStatus) {
this.owner.onHTTPStatus(httpStatus);
};
_receiveVars.onData = function (pSrc) {
this.owner.onData(pSrc);
};
_receiveVars.load(_url);
}
return(true);
}
function onHTTPStatus(httpStatus) {
_httpStatusCode = httpStatus;
if (httpStatus < 100) {
_httpStatusType = "";
} else if (httpStatus < 200) {
_httpStatusType = "informational";
} else if (httpStatus < 300) {
_httpStatusType = "successful";
} else if (httpStatus < 400) {
_httpStatusType = "redirection";
} else if (httpStatus < 500) {
_httpStatusType = "clientError";
_isFileError = true;
} else if (httpStatus < 600) {
_httpStatusType = "serverError";
_isFileError = true;
}
dispatchEvent({type:"onHTTPStatus", target:this, msg:_httpStatusType, code:_httpStatusCode});
}
function onData(pSource) {
if (pSource == undefined) {
if (_httpStatusType == "") {
_httpStatusCode = 0;
_httpStatusType = "undefined";
}
_isFileError = true;
}
if (_isFileError) {
if (_doRetry) {
load(_url, _args, _method, _doRetry);
}
dispatchEvent({type:"onError", target:this, msg:_httpStatusType, code:_httpStatusCode, url:_url, src:pSource.slice(0, 50)});
} else {
parse(pSource);
dispatchEvent({type:"onLoad", target:this});
clear("events");
}
}
function parse(pSource) {
clear();
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(pSource);
parseData(_local2.firstChild, this);
}
function clear(pAction) {
var _local2;
if ((pAction == "all") || (pAction == undefined)) {
for (_local2 in this) {
if ((((_local2 != "dispatchQueue") and (_local2 != "dispatchEvent")) and (_local2 != "removeEventListener")) and (_local2 != "addEventListener")) {
delete this[_local2];
}
}
}
if (pAction == "events") {
delete dispatchQueue;
delete dispatchEvent;
delete removeEventListener;
delete addEventListener;
}
}
function parseData(pXml, pObj) {
var _local3;
var _local2;
var _local6;
var _local7;
for (_local3 in pXml.attributes) {
pObj[_local3] = checkType(pXml.attributes[_local3]);
}
for (_local3 in pXml.childNodes) {
_local2 = pXml.childNodes[_local3].nodeName;
_local6 = pXml.childNodes[_local3].nodeType;
_local7 = pXml.childNodes[_local3].nodeValue;
if (_local6 == 3) {
pObj._value = _local7;
} else if ((_local6 == 1) && (_local2 != null)) {
if (pObj[_local2] == null) {
pObj[_local2] = parseData(pXml.childNodes[_local3], {});
} else if (pObj[_local2].length == undefined) {
pObj[_local2] = [pObj[_local2]];
}
if (pObj[_local2].length != undefined) {
pObj[_local2].unshift(parseData(pXml.childNodes[_local3], {}));
}
}
}
return(pObj);
}
function checkType(pData) {
if (pData.toLowerCase() == "true") {
return(true);
}
if (pData.toLowerCase() == "false") {
return(false);
}
if (!isNaN(pData)) {
return(Number(pData));
}
return(pData);
}
static function getArray(pData, pChildren) {
if (!pChildren) {
pChildren = "entry";
}
var _local1 = getChild(pData, pChildren.split("."));
if (_local1 == undefined) {
return([]);
}
if (_local1.length == undefined) {
return([_local1]);
}
return(_local1);
}
static function getChild(pData, pChildren) {
if (pChildren.length > 0) {
var _local2 = pChildren.slice(1);
pData = getChild(pData[pChildren[0]], _local2);
}
return(pData);
}
function kill() {
delete _receiveVars.onHTTPStatus;
delete _receiveVars.onData;
clear();
}
}
Symbol 212 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1175 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 1176 MovieClip [__Packages._simpsons.TextItem] Frame 0
class _simpsons.TextItem extends MovieClip
{
var bgMc, typeMc, titleTxt, type, fontEmbed, bold, text, css, autoSize, width, height;
function TextItem () {
super();
typeMc.cacheAsBitmap = (bgMc.cacheAsBitmap = true);
titleTxt = typeMc.titleTxt;
if (type == "input") {
typeMc.gotoAndStop(3);
titleTxt.selectable = true;
bgMc._visible = false;
fontEmbed = true;
} else {
typeMc.gotoAndStop((bold ? 2 : 1));
titleTxt.selectable = false;
type = "dynamic";
bgMc._visible = ((fontEmbed != undefined) ? (!fontEmbed) : (!IS_EMBED));
if (bgMc._visible == true) {
bgMc.setMask(typeMc);
}
fontEmbed = ((fontEmbed != undefined) ? (fontEmbed) : (IS_EMBED));
}
var _local3 = setText(titleTxt, text, css, autoSize, width, height, fontEmbed);
bgMc._width = _local3._width;
bgMc._height = _local3._height;
}
static function setText(pTextField, pText, pCSS, pAutosize, pWidth, pHeight, pEmbed) {
pTextField.embedFonts = ((pEmbed != undefined) ? (pEmbed) : (IS_EMBED));
if (pTextField.type != "input") {
pTextField.styleSheet = STYLESHEET;
pTextField.tabEnabled = true;
} else {
pTextField.wordWrap = false;
pTextField.antiAliasType = "advanced";
}
pTextField.html = true;
if (pWidth) {
if (pTextField.type != "input") {
pTextField.wordWrap = true;
}
pTextField._width = pWidth;
}
if (pHeight) {
pTextField.multiline = true;
pTextField.wordWrap = true;
pTextField._height = pHeight;
} else if (pAutosize) {
pTextField.autoSize = true;
pTextField.condenseWhite = true;
}
if (pText == undefined) {
pText = "";
}
pText = pText.split("\\n").join("<br>");
pTextField.htmlText = ((("<p class='" + pCSS) + "'>") + pText) + "</p>";
return(pTextField);
}
static function createItem(pParent, pText, pCSS, pObject) {
if (pObject == undefined) {
pObject = new Object();
}
pObject.text = ((pText == undefined) ? "" : (pText));
pObject.css = ((pCSS == undefined) ? "" : (pCSS));
pObject.autoSize = ((typeof(pObject.autoSize) == "boolean") ? (pObject.autoSize) : true);
pObject.width = ((typeof(pObject.width) == "number") ? (pObject.width) : 0);
pObject.bold = ((typeof(pObject.bold) == "boolean") ? (pObject.bold) : false);
pObject.tabEnabled = false;
var _local2 = pParent.getNextHighestDepth();
return(pParent.attachMovie("text_item", ("n" + _local2) + "_mc", _local2, pObject));
}
static function createInputItem(pParent, pText, pObject) {
if (pObject == undefined) {
pObject = new Object();
}
pObject.text = ((pText == undefined) ? "" : (pText));
pObject.autoSize = false;
pObject.width = ((typeof(pObject.width) == "number") ? (pObject.width) : 0);
pObject.height = ((typeof(pObject.height) == "number") ? (pObject.height) : 0);
pObject.type = "input";
pObject.tabEnabled = true;
var _local2 = pParent.getNextHighestDepth();
return(pParent.attachMovie("text_item", ("n" + _local2) + "_mc", _local2, pObject));
}
static var IS_EMBED = true;
static var STYLESHEET = null;
}
Symbol 1177 MovieClip [__Packages._65.media.AudioController] Frame 0
class _65.media.AudioController
{
static var AUDIO_CONTROL;
var _target, _groups, _audioListener, _groupListener;
function AudioController (pTarget) {
if (AUDIO_CONTROL == undefined) {
_target = pTarget;
_groups = new Object();
_target.myAudio = new _65.media.Audio();
_target.onUnload = function () {
this.myAudio.kill();
};
_audioListener = new Object();
_audioListener.owner = this;
_audioListener.onKill = function (pObj) {
pObj.target.target.removeMovieClip();
};
_groupListener = new Object();
_groupListener.owner = this;
_groupListener.onVolumeFade = function (pObj) {
this.owner.fadeGroupVolume(pObj.target.target);
};
_groupListener.onVolumeFadeEnd = function (pObj) {
this.owner.fadeGroupVolume(pObj.target.target);
};
createGroup2(pTarget._parent, "sfx", 100);
mx.events.EventDispatcher.initialize(this);
}
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
static function init(pParent) {
if (AUDIO_CONTROL == undefined) {
var _local2 = pParent.getNextHighestDepth();
var _local3 = pParent.createEmptyMovieClip("_65audioController", _local2);
AUDIO_CONTROL = new _65.media.AudioController(_local3);
return(AUDIO_CONTROL);
}
var _local2 = pParent.getNextHighestDepth();
var _local3 = pParent.createEmptyMovieClip("_65audioController", _local2);
return(AUDIO_CONTROL);
}
static function createGroup(pParent, pGroup, pVolume) {
AUDIO_CONTROL.createGroup2(pParent, pGroup, pVolume);
}
function createGroup2(pParent, pGroup, pVolume) {
if ((_groups[pGroup] == undefined) || (!_groups[pGroup].clip.myAudio)) {
pParent = (pParent ? (pParent._65audioController) : (_target._65audioController));
var _local5 = pParent.getNextHighestDepth();
var _local2 = pParent.createEmptyMovieClip(pGroup, _local5);
_local2.myAudio = new _65.media.Audio(_local2, null, pVolume);
_local2.onUnload = function () {
this.myAudio.kill();
};
_local2.myAudio.addEventListener("onVolumeFade", _groupListener);
_local2.myAudio.addEventListener("onVolumeFadeEnd", _groupListener);
_local2.myAudio.addEventListener("onPanFade", _groupListener);
_local2.myAudio.addEventListener("onPanFadeEnd", _groupListener);
_groups[pGroup] = new Object();
_groups[pGroup].clip = _local2;
}
}
static function addAudio(pId, pVol, pDelay, pLoops, pType, pGroup) {
return(AUDIO_CONTROL.addAudio2(pId, pVol, pDelay, pLoops, pType, pGroup));
}
function addAudio2(pId, pVol, pDelay, pLoops, pType, pGroup) {
pGroup = (pGroup ? (pGroup) : (DEFAULT_GROUP));
var _local4 = _groups[pGroup].clip.getNextHighestDepth();
var _local2 = _groups[pGroup].clip.createEmptyMovieClip("a" + _local4, _local4);
_local2.myAudio = new _65.media.Audio(_local2, pId, pVol, pDelay, pLoops, pType);
if (pType == "external") {
_local2.myAudio.volumePercent = _groups[pGroup].clip.myAudio.volume / 100;
}
_local2.onUnload = function () {
this.myAudio.kill();
};
_local2.myAudio.addEventListener("onKill", _audioListener);
return(_local2.myAudio);
}
static function fadeVolume(pVol, pTime, pGroup) {
AUDIO_CONTROL.fadeVolume2(pVol, pTime, pGroup);
}
function fadeVolume2(pVol, pTime, pGroup) {
var _local2 = (pGroup ? (_groups[pGroup].clip) : (_target));
_local2.myAudio.fadeVolume(pVol, pTime);
}
function fadeGroupVolume(pGroup) {
var _local3 = pGroup.myAudio.volume / 100;
var _local2;
for (_local2 in pGroup) {
if (typeof(pGroup[_local2]) == "movieclip") {
if (pGroup[_local2].myAudio.type == "external") {
pGroup[_local2].myAudio.volumePercent = _local3;
}
}
}
}
static var DEFAULT_GROUP = "sfx";
}
Symbol 1178 MovieClip [__Packages._65.media.Audio] Frame 0
class _65.media.Audio extends Sound
{
var _target, _id, _volume, setVolume, _volumePercent, _pan, _loops, _isPaused, _pauseSecond, _hasStarted, _volumeInterval, _panInterval, _type, loadSound, _loadBytes, _loadInterval, attachSound, _delayInterval, position, getBytesLoaded, getBytesTotal, setPan, getVolume, getPan;
function Audio (pTarget, pId, pVol, pDelay, pLoops, pType) {
super(pTarget);
_target = pTarget;
_id = pId;
_volume = ((pVol == undefined) ? 100 : (Math.max(0, pVol)));
setVolume(_volume);
_volumePercent = 1;
_pan = 0;
_loops = ((pLoops == undefined) ? 1 : (Math.round(Math.max(0, pLoops))));
_isPaused = false;
_pauseSecond = 0;
_hasStarted = false;
_volumeInterval = null;
_panInterval = null;
if (pType.toLowerCase() == "external") {
_type = "external";
loadSound(_id, true);
_loadBytes = 0;
_loadInterval = setInterval(this, "checkDownload", 100);
} else {
_type = "internal";
attachSound(_id);
_loadInterval = null;
}
if (pDelay) {
_delayInterval = setInterval(this, "start", pDelay * 1000);
} else {
_delayInterval = null;
start();
}
mx.events.EventDispatcher.initialize(this);
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function start(pOffset) {
clearInterval(_delayInterval);
_delayInterval = null;
super.start(pOffset);
}
function stop() {
clearInterval(_delayInterval);
_delayInterval = null;
super.stop();
}
function pause(pDoPause) {
pDoPause = ((pDoPause != undefined) ? (pDoPause) : (!_isPaused));
if (pDoPause) {
_pauseSecond = position / 1000;
super.stop();
} else {
if (_isPaused) {
start(_pauseSecond);
}
_pauseSecond = 0;
}
_isPaused = pDoPause;
}
function checkDownload() {
if (_loadBytes < getBytesLoaded()) {
_loadBytes = getBytesLoaded();
dispatchEvent({type:"onLoadProgress", target:this, bytesLoaded:_loadBytes, bytesTotal:getBytesTotal()});
}
if (!_hasStarted) {
setVolume(_volume * _volumePercent);
}
if (((position > 0) || (getBytesLoaded() == getBytesTotal())) && (!_hasStarted)) {
setVolume(_volume * _volumePercent);
setPan(_pan);
if (_delayInterval) {
super.stop();
}
_hasStarted = true;
pause(_isPaused);
dispatchEvent({type:"onStart", target:this});
}
}
function onLoad() {
clearInterval(_loadInterval);
_loadInterval = null;
checkDownload();
dispatchEvent({type:"onLoad", target:this});
}
function onSoundComplete() {
_pauseSecond = 0;
_isPaused = false;
trace(((("Audio[" + _id) + "]: loops[") + _loops) + "]");
if (_loops > 1) {
_loops--;
dispatchEvent({type:"onLoop", target:this});
if (_type == "external") {
loadSound(_id, true);
_hasStarted = false;
_loadBytes = 0;
_loadInterval = setInterval(this, "checkDownload", 100);
} else {
start();
}
} else {
kill();
}
}
function fadeVolume(pVol, pTime, pDelay) {
pDelay = ((!pDelay) ? 0 : (Math.max(0, pDelay)));
pTime = ((!pTime) ? 1 : (Math.max(0.1, pTime)));
clearInterval(_volumeInterval);
_volumeInterval = null;
if (pDelay) {
_volumeInterval = setInterval(this, "fadeVolume", pDelay * 1000, pVol, pTime);
} else {
pVol = Math.max(-100, Math.min(400, pVol));
var _local5 = ((pVol - getVolume()) / pTime) / 10;
if (Math.abs((_volume + _local5) - pVol) > 2) {
volumeFadeIncrement(pVol, _local5);
}
_volumeInterval = setInterval(this, "volumeFadeIncrement", 100, pVol, _local5);
}
}
function volumeFadeIncrement(pVol, pVolInc) {
_volume = _volume + pVolInc;
if (Math.abs(_volume - pVol) <= 2) {
clearInterval(_volumeInterval);
_volumeInterval = null;
_volume = pVol;
setVolume(_volume * _volumePercent);
dispatchEvent({type:"onVolumeFadeEnd", target:this});
} else {
setVolume(_volume * _volumePercent);
dispatchEvent({type:"onVolumeFade", target:this});
}
if (_volume < 0) {
kill();
}
}
function fadePan(pPan, pTime, pDelay) {
pDelay = ((!pDelay) ? 0 : (Math.max(0, pDelay)));
pTime = ((!pTime) ? 1 : (Math.max(0.1, pTime)));
clearInterval(_panInterval);
_panInterval = null;
if (pDelay) {
_panInterval = setInterval(this, "fadePan", pDelay * 1000, pPan, pTime);
} else {
pPan = Math.max(-100, Math.min(100, pPan));
var _local4 = ((pPan - getPan()) / pTime) / 10;
if (Math.abs((_pan + _local4) - pPan) > 2) {
panFadeIncrement(pPan, _local4);
}
_panInterval = setInterval(this, "panFadeIncrement", 100, pPan, _local4);
}
}
function panFadeIncrement(pPan, pPanInc) {
_pan = _pan + pPanInc;
if (Math.abs(_pan - pPan) <= 2) {
clearInterval(_panInterval);
_panInterval = null;
_pan = pPan;
setPan(_pan);
dispatchEvent({type:"onPanFadeEnd", target:this});
} else {
setPan(_pan);
dispatchEvent({type:"onPanFade", target:this});
}
}
function kill() {
clearInterval(_delayInterval);
_delayInterval = null;
clearInterval(_loadInterval);
_loadInterval = null;
clearInterval(_volumeInterval);
_volumeInterval = null;
clearInterval(_panInterval);
_panInterval = null;
super.stop();
_pauseSecond = 0;
dispatchEvent({type:"onKill", target:this});
}
function get target() {
return(_target);
}
function set target(pArg) {
//return(target);
}
function get id() {
return(_id);
}
function set id(pArg) {
//return(id);
}
function get type() {
return(_type);
}
function set type(pArg) {
//return(type);
}
function get isPaused() {
return(_isPaused);
}
function set isPaused(pArg) {
//return(isPaused);
}
function get loops() {
return(_loops);
}
function set loops(pArg) {
_loops = pArg;
//return(loops);
}
function get volume() {
return(getVolume());
}
function set volume(pArg) {
clearInterval(_volumeInterval);
_volumeInterval = null;
_volume = pArg;
setVolume(_volume * _volumePercent);
if (_volume < 0) {
kill();
}
//return(volume);
}
function get volumePercent() {
return(_volumePercent);
}
function set volumePercent(pArg) {
_volumePercent = pArg;
setVolume(_volume * _volumePercent);
//return(volumePercent);
}
function get pan() {
return(getPan());
}
function set pan(pArg) {
clearInterval(_panInterval);
_panInterval = null;
_pan = pArg;
setPan(_pan);
//return(pan);
}
}
Symbol 1179 MovieClip [__Packages._65.gui.DropDown] Frame 0
class _65.gui.DropDown extends MovieClip
{
var _dropDown, _selectedId, _isOpen, _dropSize, _dropSizeW, _width, dataArray, dispArray, onRelease, onUnload, _parent, _x, _y, _linkScrollerID, _dataArray, _linkItemID, _dispArray, resultTxt;
function DropDown () {
super();
_dropDown = null;
_selectedId = null;
_isOpen = false;
_dropSize = 100;
_dropSizeW = _width;
setArrays(dataArray, dispArray);
setVal(0);
onRelease = function () {
this.toggleDrop();
};
onUnload = function () {
this.toggleDrop(false);
};
mx.events.EventDispatcher.initialize(this);
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function setItem() {
}
function toggleDrop(pToggle) {
var _local3 = ((pToggle != undefined) ? (pToggle != _isOpen) : true);
_isOpen = ((pToggle != undefined) ? (pToggle) : (!_isOpen));
if (!_isOpen) {
dispatchEvent({type:"onDropOut"});
_dropDown.removeMovieClip();
_dropDown = null;
} else if (_isOpen && (_local3)) {
dispatchEvent({type:"onDrop"});
createDrop();
}
}
function createDrop() {
var _local10 = _parent.getNextHighestDepth();
_dropDown = _parent.createEmptyMovieClip("dropDownSelectorClassItem" + _local10, _local10);
_dropDown._x = _x;
_dropDown._y = _y;
var _local5 = _dropDown.createEmptyMovieClip("bgMc", 0);
var _local6 = _dropDown.createEmptyMovieClip("contentMc", 1);
var _local11 = _dropDown.createEmptyMovieClip("maskMc", 2);
var _local9 = _dropDown.attachMovie(_linkScrollerID, "scrollerMc", 3, {_alpha:100});
var _local2;
var _local13 = 0;
var _local7 = _dataArray.length;
var _local3;
_local2 = 0;
while (_local2 < _local7) {
_local3 = _local6.attachMovie(_linkItemID, "i" + _local2, _local2, {_y:_local13, index:_local2});
_local3.titleTxt.text = _dispArray[_local2];
_local3.owner = this;
_local3.onRelease = function () {
this.owner.setVal(this.index);
this.owner.toggleDrop(false);
this.dispatchEvent({type:"onSelect"});
};
setItem(_local3, _local2);
_local13 = _local13 + (_local3._height - 2);
_local2++;
}
_local9.init(_local6, _dropSize);
_local9._x = _dropSizeW - _local9._width;
_local6.setMask(_local11);
createRect(_local11);
createRect(_local5);
_local5._width = _local5._width + 20;
_local5._x = _local5._x - 10;
_local5._height = _local5._height + 20;
_local5._y = _local5._y - 10;
_local5.owner = this;
_local5.useHandCursor = false;
_local5.onRelease = function () {
this.owner.toggleDrop();
};
_local5.onEnterFrame = function () {
var _local2 = {x:this._xmouse, y:this._ymouse};
this.localToGlobal(_local2);
if (!this.hitTest(_local2.x, _local2.y)) {
this.owner.toggleDrop();
}
};
}
function createRect(pMc) {
pMc.clear();
pMc.beginFill(0, 0);
pMc.lineTo(_dropSizeW, 0);
pMc.lineTo(_dropSizeW, _dropSize);
pMc.lineTo(0, _dropSize);
pMc.lineTo(0, 0);
pMc.endFill();
}
function setArrays(pData, pDisp) {
if (pData) {
_dataArray = pData;
}
if (pDisp) {
_dispArray = pDisp;
}
if (_dataArray == null) {
_dataArray = _dispArray;
}
if (_dispArray == null) {
_dispArray = _dataArray;
}
}
function setVal(pId, pIsDefault) {
setArrays(dataArray, dispArray);
var _local3 = pId != _selectedId;
_selectedId = pId;
resultTxt.text = _dispArray[_selectedId];
if (_local3 && (!pIsDefault)) {
dispatchEvent({type:"onValueChange", id:pId, value:_dataArray[pId]});
}
}
function get dropSize() {
return(_dropSize);
}
function set dropSize(pArg) {
_dropSize = pArg;
//return(dropSize);
}
function get dropSizeW() {
return(_dropSizeW);
}
function set dropSizeW(pArg) {
_dropSizeW = pArg;
//return(dropSizeW);
}
function get linkItemID() {
return(_linkItemID);
}
function set linkItemID(pArg) {
_linkItemID = pArg;
//return(linkItemID);
}
function get linkScrollerID() {
return(_linkScrollerID);
}
function set linkScrollerID(pArg) {
_linkScrollerID = pArg;
//return(linkScrollerID);
}
function get id() {
return(_selectedId);
}
function set id(pArg) {
setVal(pArg, true);
//return(id);
}
function get value() {
return(_dataArray[_selectedId]);
}
function set value(pArg) {
//return(value);
}
}
Symbol 1180 MovieClip [__Packages._65.gui.Scroller] Frame 0
class _65.gui.Scroller extends MovieClip
{
var _type, _min, _max, _speed, _direction, _position, _scrollerSize, buttonSize, buttonPosition, handleResize, _scrollee, _ogY, _maskSize, _clickY, onEnterFrame, _percent, handleMc, _visibleArea, bgMc, downMc, upMc;
function Scroller () {
super();
_type = "movieclip";
_min = 0;
_max = 100;
_speed = ((_speed != undefined) ? (_speed) : 10);
_direction = -1;
_position = 0;
_scrollerSize = ((_scrollerSize != undefined) ? (_scrollerSize) : 100);
buttonSize = ((buttonSize != undefined) ? (buttonSize) : 10);
buttonPosition = ((buttonPosition != undefined) ? (buttonPosition) : "normal");
handleResize = (handleResize ? true : false);
mx.events.EventDispatcher.initialize(this);
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function hide() {
}
function redraw() {
}
function scroll() {
}
function show() {
}
function init(pTarget, pSize, pMaskSize) {
_scrollee = pTarget;
_type = ((typeof(_scrollee) == "movieclip") ? "movieclip" : "textfield");
_ogY = _scrollee._y;
if (_type == "movieclip") {
_scrollerSize = (pSize ? (pSize) : 100);
_maskSize = (pMaskSize ? (pMaskSize) : (_scrollerSize));
_min = (-_maskSize) + _scrollee._y;
_max = _scrollee._y;
_position = _scrollee._y;
} else {
_scrollee.scroll = 0;
_scrollerSize = (pSize ? (pSize) : (_scrollee._height));
_min = 0;
_max = _scrollee.maxscroll;
_position = _scrollee.maxscroll;
_speed = 1;
_scrollee.owner = this;
_scrollee.onScroller = function () {
this.owner._position = this.owner._max - this.owner._scrollee.scroll;
this.owner.update();
};
_scrollee.onChanged = function () {
this.owner._max = this.maxscroll;
this.owner.draw();
};
}
draw();
}
function scrollBar(pValue) {
_clickY = pValue;
onEnterFrame = function () {
var _local2;
var _local3;
if (this.buttonPosition == "normal") {
_local2 = this.buttonSize;
_local3 = (this._scrollerSize - this.buttonSize) - this.handleMc._height;
} else if (this.buttonPosition == "top") {
_local2 = this.buttonSize * 2;
_local3 = this._scrollerSize - this.handleMc._height;
} else if (this.buttonPosition == "bottom") {
_local2 = 0;
_local3 = (this._scrollerSize - (this.buttonSize * 2)) - this.handleMc._height;
} else if (this.buttonPosition == "none") {
_local2 = 0;
_local3 = this._scrollerSize - this.handleMc._height;
}
var _local4 = (this._ymouse - (this.bgMc._height - this.handleMc._height)) - this._clickY;
this._position = ((-(((_local4 - _local2) / (_local3 - _local2)) + 1)) * (this._max - this._min)) + this._max;
this.update();
};
}
function scrollButton(pValue) {
_direction = pValue;
onEnterFrame = function () {
this._position = this._position + (this._speed * this._direction);
this.update();
};
}
function update() {
_position = Math.min(_max, Math.max(_min, _position));
_position = Math.floor(_position);
_percent = 1 - ((_position - _min) / (_max - _min));
if (_type == "movieclip") {
_scrollee._y = _position;
} else {
_scrollee.scroll = _max - _position;
}
var _local2;
var _local3;
if (buttonPosition == "normal") {
_local2 = buttonSize;
_local3 = (_scrollerSize - buttonSize) - handleMc._height;
} else if (buttonPosition == "top") {
_local2 = buttonSize * 2;
_local3 = _scrollerSize - handleMc._height;
} else if (buttonPosition == "bottom") {
_local2 = 0;
_local3 = (_scrollerSize - handleMc._height) - (buttonSize * 2);
} else if (buttonPosition == "none") {
_local2 = 0;
_local3 = _scrollerSize - handleMc._height;
}
handleMc._y = ((1 - ((_position - _min) / (_max - _min))) * (_local3 - _local2)) + _local2;
if (_visibleArea >= 1) {
upMc.enabled = (downMc.enabled = (handleMc.enabled = (bgMc.enabled = false)));
hide();
} else {
upMc.enabled = (downMc.enabled = (handleMc.enabled = (bgMc.enabled = true)));
show();
}
scroll(_position, _percent);
dispatchEvent({type:"onScroll", target:this, position:position, percent:_percent});
}
function draw() {
if (buttonPosition == "normal") {
downMc._y = _scrollerSize - buttonSize;
bgMc._height = _scrollerSize - (buttonSize * 2);
bgMc._y = buttonSize;
} else if (buttonPosition == "top") {
downMc._y = buttonSize;
bgMc._height = _scrollerSize - (buttonSize * 2);
bgMc._y = buttonSize * 2;
} else if (buttonPosition == "bottom") {
upMc._y = _scrollerSize - (buttonSize * 2);
downMc._y = _scrollerSize - buttonSize;
bgMc._height = _scrollerSize - (buttonSize * 2);
bgMc._y = 0;
} else if (buttonPosition == "none") {
upMc._visible = (downMc._visible = false);
bgMc._height = _scrollerSize;
bgMc._y = 0;
}
if (_type == "movieclip") {
_min = ((-_scrollee._height) + _ogY) + _maskSize;
_visibleArea = _maskSize / _scrollee._height;
} else {
_max = _scrollee.maxscroll;
_visibleArea = _scrollerSize / _scrollee.textHeight;
}
if (handleResize and (buttonPosition == "none")) {
handleMc._height = Math.max(10, Math.min(1, _visibleArea) * _scrollerSize);
} else if (handleResize) {
handleMc._height = Math.max(10, Math.min(1, _visibleArea) * (_scrollerSize - (buttonSize * 2)));
}
upMc.owner = (downMc.owner = (handleMc.owner = (bgMc.owner = this)));
upMc.onPress = function () {
this.owner.scrollButton(1);
};
downMc.onPress = function () {
this.owner.scrollButton(-1);
};
upMc.onRelease = (upMc.onReleaseOutside = (downMc.onRelease = (downMc.onReleaseOutside = function () {
delete this.owner.onEnterFrame;
})));
handleMc.onPress = function () {
this.owner.scrollBar(this.owner._ymouse - this.owner.handleMc._y);
};
bgMc.onPress = function () {
this.owner.scrollBar(this.owner.handleMc._height / 2);
};
handleMc.onRelease = (handleMc.onReleaseOutside = (bgMc.onRelease = (bgMc.onReleaseOutside = function () {
delete this.owner.onEnterFrame;
})));
update();
redraw();
}
function get target() {
return(_scrollee);
}
function set target(pTarget) {
init(pTarget, _scrollerSize, _maskSize);
//return(target);
}
function get type() {
return(_type);
}
function set type(pType) {
//return(type);
}
function get position() {
return(((_type == "movieclip") ? (_position) : (_max - _position)));
}
function set position(pPosition) {
_position = ((_type == "movieclip") ? (pPosition) : ((-pPosition) + _max));
update();
//return(position);
}
function get percent() {
return(_percent);
}
function set percent(pPercent) {
//return(percent);
}
function get scrollerSize() {
return(_scrollerSize);
}
function set scrollerSize(pSize) {
init(_scrollee, pSize, _maskSize);
//return(scrollerSize);
}
}
Symbol 1181 MovieClip [__Packages._65.media.VideoPlayer] Frame 0
class _65.media.VideoPlayer extends MovieClip
{
var _isAutoPlay, _isSmooth, _isPaused, _bufferTime, _bufferStatus, _playStatus, _updateInterval, _bufferPercent, _loadPercent, controlsBg, controls, mainBar, playBar, loadBar, playHead, playClip, audioClip, _w, vidScreen, _h, _barOffset, _controlPosition, controlsMask, bgClip, _type, _duration, _streamName, _nc, _vsConn, _vsListener, _ns;
function VideoPlayer () {
super();
_isAutoPlay = true;
_isSmooth = false;
_isPaused = false;
_bufferTime = (_bufferTime ? (_bufferTime) : 5);
_bufferStatus = "clear";
_playStatus = "stop";
_updateInterval = null;
_bufferPercent = 0;
_loadPercent = 0;
controlsBg = controls.controlsBg;
mainBar = controls.mainBar;
playBar = controls.playBar;
loadBar = controls.loadBar;
playHead = controls.playHead;
playClip = controls.playClip;
audioClip = controls.audioClip;
_w = (_w ? (_w) : (vidScreen._width));
_h = (_h ? (_h) : (vidScreen._height));
_barOffset = (_barOffset ? (_barOffset) : (controlsBg._width - mainBar._width));
_controlPosition = "static";
pauseToggle(true);
controlsEnable(false);
setup();
playBar._width = (loadBar._width = 0);
playHead._x = mainBar._x;
mx.events.EventDispatcher.initialize(this);
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function resize(pWidth, pHeight) {
_w = (pWidth ? (pWidth) : (_w));
_h = (pHeight ? (pHeight) : (_h));
vidScreen._width = (bgClip._width = (controlsMask._width = _w));
vidScreen._height = (bgClip._height = (controlsMask._height = _h));
playBar._width = (loadBar._width = 0);
playHead._x = mainBar._x;
if (_controlPosition != "static") {
controls._y = _h;
controlsBg._width = _w;
mainBar._width = _w - _barOffset;
}
}
function setup() {
playClip.owner = this;
playClip.onRelease = function () {
this.owner.pauseToggle();
};
mainBar.owner = this;
mainBar.onRelease = function () {
this.owner.seek();
};
controlsBg.owner = (bgClip.owner = this);
controlsBg.useHandCursor = (bgClip.useHandCursor = false);
if (controlPosition == "inside") {
playClip.onRollOver = function () {
this.owner.controlsToggle(true);
};
playClip.onRollOut = (playClip.onReleaseOutside = function () {
this.owner.controlsToggle(false);
});
mainBar.onRollOver = function () {
this.owner.controlsToggle(true);
};
mainBar.onRollOut = (mainBar.onReleaseOutside = function () {
this.owner.controlsToggle(false);
});
controlsBg.onRollOver = function () {
this.owner.controlsToggle(true);
};
controlsBg.onRollOut = (controlsBg.onReleaseOutside = function () {
this.owner.controlsToggle(false);
});
bgClip.onRollOver = function () {
this.owner.controlsToggle(true);
};
bgClip.onRollOut = (bgClip.onReleaseOutside = function () {
this.owner.controlsToggle(false);
});
} else {
bgClip.onRollOut = function () {
};
delete playClip.onRollOver;
delete playClip.onRollOut;
delete mainBar.onRollOver;
delete mainBar.onRollOut;
delete controlsBg.onRollOver;
delete controlsBg.onRollOut;
delete bgClip.onRollOver;
}
}
function controlsToggle(pDoShow) {
if (controlPosition == "inside") {
if (pDoShow) {
controls.tween("_y", _h - controls._height, 0.5, "easeOutSine");
} else {
controls.tween("_y", _h, 0.5, "easeInSine");
}
}
}
function controlsEnable(pDoEnabled) {
playClip.enabled = (mainBar.enabled = (bgClip.enabled = (controlsBg.enabled = pDoEnabled)));
controlsToggle(pDoEnabled);
}
function load(pStream, pConnObjects, pDuration, pType) {
trace("test");
kill();
if (pType.toLowerCase() == "stream") {
_type = "stream";
} else if (pType.toLowerCase() == "vitalstream") {
_type = "vitalstream";
} else {
_type = "progressive";
}
_duration = pDuration;
_bufferStatus = "clear";
_playStatus = "stop";
_isPaused = true;
_bufferPercent = 0;
_loadPercent = 0;
if (_type == "progressive") {
_streamName = pStream;
_nc = new NetConnection();
_nc.connect(null);
init();
} else if (_type == "stream") {
_streamName = pStream;
_nc = new NetConnection();
_nc.owner = this;
_nc.onStatus = function (pInfo) {
this.owner.dispatchEvent({type:"onNcStatus", target:this.owner, code:pInfo.code, description:pInfo.description, level:pInfo.level});
};
_nc.connect.apply(_nc, pConnObjects);
init();
} else if (_type == "vitalstream") {
_vsConn = new _65.media.VSConnection(pStream);
_vsListener = new Object();
_vsListener.owner = this;
_vsListener.onError = function (pInfo) {
this.owner.dispatchEvent({type:"onError", target:this.owner, code:pInfo.code, msg:pInfo.msg});
};
_vsListener.onSuccess = function (pInfo) {
this.owner._nc = this.owner._vsConn.nc;
this.owner._streamName = this.owner._vsConn.streamName;
this.owner.init();
};
_vsListener.onStatus = function (pInfo) {
this.owner.dispatchEvent({type:"onNcStatus", target:this.owner, code:pInfo.code, description:pInfo.description, level:pInfo.level});
};
_vsConn.addEventListener("onError", _vsListener);
_vsConn.addEventListener("onSuccess", _vsListener);
_vsConn.addEventListener("onStatus", _vsListener);
}
}
function init() {
_ns = new NetStream(_nc);
_ns.owner = this;
_ns.setBufferTime(_bufferTime);
_ns.onStatus = function (pInfo) {
if (pInfo.code == "NetStream.Buffer.Empty") {
this.owner._bufferStatus = "clear";
} else if (pInfo.code == "NetStream.Buffer.Full") {
this.owner._bufferStatus = "full";
} else if (((pInfo.code == "NetStream.Play.Start") or (pInfo.code == "NetStream.Play.Reset")) or (pInfo.code == "NetStream.Unpause.Notify")) {
this.owner._playStatus = "start";
} else if ((pInfo.code == "NetStream.Play.Stop") or (pInfo.code == "NetStream.Pause.Notify")) {
this.owner._playStatus = "stop";
}
if (((this.time + 5) > this.owner._duration) and (this.owner._playStatus == "stop")) {
this.owner.pauseToggle(true);
this.seek(0);
this.owner._bufferStatus = "clear";
this.owner._playStatus = "pause";
this.owner.dispatchEvent({type:"onEnd", target:this.owner});
}
this.owner.dispatchEvent({type:"onStatus", target:this.owner, code:pInfo.code, description:pInfo.description, level:pInfo.level});
};
_ns.onMetaData = function (pInfo) {
for (var _local2 in pInfo) {
}
};
vidScreen.attachVideo(_ns);
controlsEnable(true);
if (_isAutoPlay) {
pauseToggle(false);
_ns.play(_streamName);
} else {
_ns.play(_streamName);
pauseToggle(true);
}
_updateInterval = setInterval(this, "timer", 25);
}
function timer() {
_loadPercent = _ns.bytesLoaded / _ns.bytesTotal;
_bufferPercent = _ns.bufferLength / _ns.bufferTime;
var _local2 = (_ns.time / _duration) * mainBar._width;
_local2 = Math.round(Math.min(mainBar._width, Math.max(0, _local2)));
playBar._width = _local2;
playHead._x = _local2 + mainBar._x;
if (_type == "progressive") {
loadBar._width = mainBar._width * _loadPercent;
} else {
loadBar._width = _local2 + ((_ns.bufferLength / _duration) * mainBar._width);
}
dispatchEvent({type:"onTimer", target:this});
}
function pauseToggle(pDoPause) {
var _local2 = ((pDoPause == undefined) ? ((_isPaused - 1) * -1) : (Number(pDoPause)));
_isPaused = (_local2 ? true : false);
_ns.pause(_isPaused);
if (_isPaused) {
playClip.gotoAndStop("play");
} else {
playClip.gotoAndStop("pause");
}
}
function seek(pSecond) {
var _local2 = ((pSecond != undefined) ? (pSecond) : ((((mainBar._xmouse * mainBar._xscale) / 100) / mainBar._width) * _duration));
_local2 = Math.max(0, Math.min(_duration, _local2));
pauseToggle(false);
_ns.seek(_local2);
_bufferStatus = "clear";
}
function onUnload() {
kill();
}
function kill() {
clearInterval(_updateInterval);
_updateInterval = null;
_nc.close();
_ns.close();
vidScreen.clear();
_vsConn.kill();
controlsEnable(false);
}
function get streamName() {
return(_streamName);
}
function set streamName(pArg) {
//return(streamName);
}
function get type() {
return(_type);
}
function set type(pArg) {
//return(type);
}
function get nc() {
return(_nc);
}
function set nc(pArg) {
//return(nc);
}
function get ns() {
return(_ns);
}
function set ns(pArg) {
//return(ns);
}
function get isAutoPlay() {
return(_isAutoPlay);
}
function set isAutoPlay(pArg) {
_isAutoPlay = pArg;
//return(isAutoPlay);
}
function get isSmooth() {
return(_isSmooth);
}
function set isSmooth(pArg) {
_isSmooth = pArg;
vidScreen.smoothing = _isSmooth;
//return(isSmooth);
}
function get duration() {
return(_duration);
}
function set duration(pArg) {
_duration = pArg;
//return(duration);
}
function get time() {
return(_ns.time);
}
function set time(pArg) {
//return(time);
}
function get bufferTime() {
return(_bufferTime);
}
function set bufferTime(pArg) {
_bufferTime = pArg;
_ns.setBufferTime(_bufferTime);
//return(bufferTime);
}
function get bufferPercent() {
return(_bufferPercent);
}
function set bufferPercent(pArg) {
//return(bufferPercent);
}
function get loadPercent() {
return(_loadPercent);
}
function set loadPercent(pArg) {
//return(loadPercent);
}
function get isLoading() {
return(((_bufferStatus == "clear") and (_isPaused != true)) and ((time + _bufferTime) < _duration));
}
function set isLoading(pArg) {
//return(isLoading);
}
function get controlPosition() {
return(_controlPosition);
}
function set controlPosition(pArg) {
if (pArg.toLowerCase() == "bottom") {
_controlPosition = "bottom";
} else if (pArg.toLowerCase() == "inside") {
_controlPosition = "inside";
} else {
_controlPosition = "static";
}
if (_controlPosition != "static") {
resize();
}
setup();
//return(controlPosition);
}
}
Symbol 1182 MovieClip [__Packages._65.media.VSConnection] Frame 0
class _65.media.VSConnection
{
var _xmlUri, _serverName, _streamName, _appName, _autoBandwith, _connList, _connListTotal, _xml, _xmlListener, _connTimeOut, _connListCounter, _streamUri, _ncId;
function VSConnection (pUri) {
_xmlUri = pUri;
_serverName = "";
_streamName = "";
_appName = "";
_autoBandwith = false;
_connList = [{protocol:"rtmp", port:1935}, {protocol:"rtmp", port:443}, {protocol:"rtmpt", port:80}];
_connListTotal = _connList.length;
mx.events.EventDispatcher.initialize(this);
load();
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function load() {
_xml = new _65.data.XmlData();
_xmlListener = new Object();
_xmlListener.owner = this;
_xmlListener.onError = function (pObj) {
this.owner.dispatchEvent({type:"onError", target:this, msg:pObj.msg, code:pObj.code});
};
_xmlListener.onLoad = function (pObj) {
this.owner.parse();
};
_xml.addEventListener("onError", _xmlListener);
_xml.addEventListener("onLoad", _xmlListener);
_xml.load(_xmlUri);
}
function parse() {
var _local5 = _xml.appURL._value;
var _local3 = _local5.split("/");
var _local2;
var _local4 = _local3.length;
_serverName = _local3[2];
_local2 = 3;
while (_local2 < _local4) {
_appName = _appName + (_local3[_local2] + "/");
_local2++;
}
_appName = _appName.substring(0, _appName.length - 1);
_streamName = _xml.streamName._value;
_xml.kill();
_xml = null;
_xmlListener = null;
connect();
}
function connect() {
clearInterval(_connTimeOut);
_connTimeOut = setInterval(this, "kill", 60000, ["timeout"]);
var _local2 = 0;
while (_local2 < _connListTotal) {
_connList[_local2].interval = null;
_connList[_local2].nc = new NetConnection();
var _local3 = _connList[_local2].nc;
_local3.owner = this;
_local3.connIndex = _local2;
_local3.pending = true;
_local3.onStatus = function (pInfo) {
this.pending = false;
this.owner.dispatchEvent({type:"onStatus", target:this.owner, code:pInfo.code, description:pInfo.description, level:pInfo.level});
if (pInfo.code == "NetConnection.Connect.Success") {
if (!this.pending) {
this.owner.onConnected(this.connIndex);
}
}
};
_local2++;
}
_connListCounter = 0;
nextConnect();
}
function nextConnect() {
clearInterval(_connList[_connListCounter].interval);
_connList[_connListCounter].interval = null;
_streamUri = (((((_connList[_connListCounter].protocol + "://") + _serverName) + ":") + _connList[_connListCounter].port) + "/") + _appName;
_connList[_connListCounter].nc.connect(_streamUri, _autoBandwith, _streamName);
if (_connListCounter < (_connListTotal - 1)) {
_connListCounter++;
_connList[_connListCounter].interval = setInterval(this, "nextConnect", 1500);
}
}
function onConnected(pConnIndex, pBandwidth) {
_ncId = pConnIndex;
kill("connect", pConnIndex);
dispatchEvent({type:"onSuccess", target:this});
}
function kill(pMethod, pArg) {
clearInterval(_connTimeOut);
_connTimeOut = null;
if (pMethod == "timeout") {
dispatchEvent({type:"onError", target:this, msg:"timeout", code:0});
}
var _local3;
var _local2;
_local2 = 0;
while (_local2 < _connListTotal) {
if ((_local2 == pArg) and (pMethod == "connect")) {
clearInterval(_connList[_local2].interval);
_connList[_local2].interval = null;
} else {
_local3 = _connList[_local2].nc;
clearInterval(_connList[_local2].interval);
_local3.onStatus = null;
_local3.close();
_local3 = null;
delete _connList[_local2];
}
_local2++;
}
}
function get appName() {
return(_appName);
}
function set appName(pArg) {
//return(appName);
}
function get serverName() {
return(_serverName);
}
function set serverName(pArg) {
//return(serverName);
}
function get streamName() {
return(_streamName);
}
function set streamName(pArg) {
//return(streamName);
}
function get streamUri() {
return(_streamUri);
}
function set streamUri(pArg) {
//return(streamUri);
}
function get nc() {
return(_connList[_ncId].nc);
}
function set nc(pArg) {
//return(nc);
}
}
Symbol 1183 MovieClip [__Packages._65.Array2] Frame 0
class _65.Array2
{
function Array2 () {
}
static function shuffle(pArray) {
var _local1 = pArray.slice();
_local1.sort(_65.Math2.randomSign);
return(_local1);
}
static function strip(pArray, pStrip, pStrict) {
var _local3 = pArray.slice();
var _local9 = new Array();
var _local4 = new Array();
if (typeof(pStrip) == "object") {
_local4 = pStrip;
} else {
_local4.push(pStrip);
}
var _local1;
var _local2;
var _local7 = _local3.length;
var _local6 = _local4.length;
_local1 = _local7 - 1;
while (_local1 >= 0) {
_local2 = 0;
while (_local2 < _local6) {
if ((_local3[_local1] == _local4[_local2]) && (!pStrict)) {
_local3.splice(_local1, 1);
} else if ((_local3[_local1] === _local4[_local2]) && (pStrict)) {
_local3.splice(_local1, 1);
}
_local2++;
}
_local1--;
}
return(_local3);
}
static function getUniques(pArray, pStrict) {
var _local2 = new Array();
var _local5 = pArray.length;
var _local1 = 0;
if (pStrict == true) {
var _local6 = 0;
while (_local1 < _local5) {
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] === pArray[_local1]) {
break;
}
_local6++;
}
if (_local6 == _local2.length) {
_local2.push(pArray[_local1]);
}
_local1++;
}
} else {
var _local4 = new Object();
while (_local1 < _local5) {
_local4[pArray[_local1]] = pArray[_local1];
_local1++;
}
for (var _local6 in _local4) {
_local2.unshift(_local4[_local6]);
}
}
return(_local2);
}
}
Symbol 1184 MovieClip [__Packages._65.Math2] Frame 0
class _65.Math2
{
function Math2 () {
}
static function round(pValue, pRoundTo) {
if (!pRoundTo) {
pRoundTo = 1;
}
return(Math.floor((pValue + (pRoundTo / 2)) / pRoundTo) * pRoundTo);
}
static function random(pMin, pMax, pRoundTo) {
if (!pRoundTo) {
pRoundTo = 1;
}
return(pMin + (Math.round(Math.random() * ((pMax - pMin) / pRoundTo)) * pRoundTo));
}
static function randomSign() {
return(((Math.random() < 0.5) ? -1 : 1));
}
static function getSign(pNumb) {
return(((pNumb == 0) ? 0 : (Math.abs(pNumb) / pNumb)));
}
static function getAngle(pX1, pY1, pX2, pY2) {
var _local1 = Math.atan2(pY2 - pY1, pX2 - pX1);
var _local2 = toDegrees(_local1);
return(_local2);
}
static function getDistance(pX1, pY1, pX2, pY2) {
return(Math.sqrt(Math.pow(pY2 - pY1, 2) + Math.pow(pX2 - pX1, 2)));
}
static function toRadians(pDeg) {
return((Math.PI * pDeg) / 180);
}
static function toDegrees(pRad) {
return((pRad * 180) / Math.PI);
}
static function rot(pA, pB, pX) {
return((pX * pB) / pA);
}
}
Symbol 158 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 208 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 209 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 211 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 210 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 1185 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
static var _ZigoEngine, _aInstances;
var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens, _oTwBeingAdded;
function FuseItem (id, o, fuseID) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_aProfiles = [];
_oElements = {aEvents:[]};
_oTemps = {};
if (!(o instanceof Array)) {
o = [o];
}
var _local19 = _global.com.mosesSupposes.fuse.Fuse;
_oTemps.outputLevel = ((_local19 != undefined) ? (_local19.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL));
if (o.length == 1) {
var _local18 = o[0];
var _local12 = ((_local18.action != undefined) ? (_local18.action) : (_local18));
if ((_local12.__buildMode != true) && (_local12.command != undefined)) {
_oElements.command = _local12.command;
_oElements.scope = _local12.scope;
_oElements.args = _local12.args;
_sImage = " Elements:[" + ("command" + ((typeof(_local12.command) == "string") ? ((":\"" + _local12.command) + "\", ") : ", "));
if (_local12.delay != undefined) {
_sImage = _sImage + "delay, ";
_oElements.delay = _local12.delay;
}
_sImage = _sImage.slice(0, -2) + "]";
if ((_local12.func != undefined) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return;
}
}
_oTemps.sImgS = "";
_oTemps.sImgE = "";
_oTemps.sImgB = "";
_oTemps.afl = 0;
_oTemps.ael = 0;
_oTemps.twDelayFlag = false;
_oTemps.nActions = o.length;
_oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
_oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
_oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
_oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
_oTemps.bTriggerFound = false;
for (var _local17 in o) {
var _local3 = o[_local17];
if ((_local3.label != undefined) && (typeof(_local3.label) == "string")) {
_oElements.label = _local3.label;
}
var _local4;
var _local8 = Boolean(typeof(_local3.action) == "object");
if (_local8 == true) {
var _local7 = ((_local3.action instanceof Array) ? (_local3.action) : ([_local3.action]));
_local4 = {delay:_local3.delay, target:_local3.target, addTarget:_local3.addTarget, label:_local3.label, trigger:_local3.trigger};
for (var _local15 in _local7) {
var _local5 = parseProfile(_local7[_local15], _local4);
if (_local5 != undefined) {
_aProfiles.unshift(_local5);
}
}
} else {
var _local7 = _local3;
var _local5 = parseProfile(_local7, _local4);
if (_local5 != undefined) {
_aProfiles.unshift(_local5);
}
}
}
_sImage = "";
var _local16 = "";
if (_oTemps.afl > 0) {
_local16 = _local16 + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, ");
}
if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) {
_local16 = _local16 + "delay, ";
}
if (_oTemps.bTriggerFound == true) {
_local16 = _local16 + "trigger, ";
}
if (_oTemps.ael > 0) {
_local16 = _local16 + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, ");
}
if (_local16 != "") {
_sImage = _sImage + ((" Elements:[" + _local16.slice(0, -2)) + "]");
}
if (_oTemps.sImgS != "") {
_sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]");
}
if (_oTemps.sImgE != "") {
_sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]");
}
if (_oTemps.sImgB != "") {
_sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]");
}
if (_sImage.slice(-2) == ", ") {
_sImage = _sImage.slice(0, -2);
}
delete _oTemps;
}
static function doTween() {
for (var _local3 in arguments) {
if (typeof(arguments[_local3]) == "object") {
if (_aInstances == undefined) {
_aInstances = new Array();
}
var _local2 = new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[_local3], -1);
return(_local2.startItem());
}
}
}
function get label() {
return(_oElements.label);
}
function hasTriggerFired() {
return(_bTrigger == true);
}
function getInitObj() {
return(_initObj);
}
function getActiveTargets(targetList) {
if (_aTweens.length <= 0) {
return(targetList);
}
var _local3 = false;
for (var _local5 in _aTweens) {
for (var _local4 in targetList) {
if (targetList[_local4] == _aTweens[_local5].targ) {
_local3 = true;
break;
}
}
if (_local3 == false) {
targetList.unshift(_aTweens[_local5].targ);
}
}
return(targetList);
}
function toString() {
return(String((_sID() + ":") + _sImage));
}
function evalDelay(scope) {
var _local3 = _oElements.delay;
if (_local3 instanceof Function) {
_local3 = _local3.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope)));
}
if (typeof(_local3) == "string") {
_local3 = parseClock(String(_local3));
}
if (_global.isNaN(Number(_local3)) == true) {
return(0);
}
return(Number(_local3));
}
function startItem(targs, scope, duration, easing) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var _local11 = _global.com.mosesSupposes.fuse.Fuse;
var _local5 = ((_local11 != undefined) ? (_local11.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_oElements.command != null) {
var _local12 = _oElements.scope || (scope);
var _local10 = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(_local12))) : (String(_oElements.command)));
var _local6 = ((_oElements.args instanceof Function) ? (_oElements.args.apply(_local12)) : (_oElements.args));
var _local13 = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(_local10, _aProfiles.length > 0, (_local6 != null) && (!((_local6 instanceof Array) && (_local6.length == 0))), _local5, false);
if (_local13 == true) {
_nPlaying = 1;
if (!(_local6 instanceof Array)) {
_local6 = ((_local6 == null) ? ([]) : ([_local6]));
}
dispatchRequest(String(_local10), _local6);
}
if ((_local13 == false) || (_local10 == "setStartProps")) {
complete();
}
return(null);
}
if (_aTweens.length > 0) {
stop();
}
_ZigoEngine.addListener(this);
_nPlaying = 2;
var _local4 = null;
if (_aProfiles.length > 0) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("112");
} else {
_local4 = doTweens(targs, scope, duration, easing, false, false);
}
}
_nPlaying = 1;
var _local3 = _oElements.aEvents;
for (var _local9 in _local3) {
if (((_local4 == null) && (_aTweens.length > 0)) && (_local3[_local9].skipLevel == 2)) {
continue;
}
fireEvents(_local3[_local9], scope, _local5, targs);
}
if (((_local4 == null) && (_aTweens.length <= 0)) && (_nPlaying == 1)) {
if (_local5 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " no tweens added - item done. [getTimer()=") + getTimer()) + "]");
}
complete();
}
return(_local4);
}
function stop() {
var _local2 = _nPlaying > -1;
_nPlaying = -1;
if (_local2 == true) {
onStop();
}
_ZigoEngine.removeListener(this);
}
static function removeInstance(id) {
com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy();
delete _aInstances[id];
}
function onStop() {
_bStartSet = false;
for (var _local3 in _aTweens) {
var _local2 = _aTweens[_local3];
_local2.targ.removeListener(this);
_ZigoEngine.removeTween(_local2.targ, _local2.props);
delete _aTweens[_local3];
}
delete _aTweens;
_bTrigger = false;
}
function evtSetStart(o) {
if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) {
return(undefined);
}
if (o.all != true) {
var _local3 = false;
for (var _local4 in o.filter) {
if ((Number(o.filter[_local4]) == _nItemID) || (String(o.filter[_local4]) == _oElements.label)) {
_local3 = true;
}
}
if (_local3 == false) {
return(undefined);
}
}
_nPlaying = 2;
doTweens(o.targs, o.scope, null, null, true, false);
_nPlaying = -1;
_bStartSet = true;
}
function pause(resume) {
if (_nPlaying == -1) {
return(undefined);
}
_nPlaying = ((resume == true) ? 1 : 0);
for (var _local12 in _aTweens) {
var _local4 = _aTweens[_local12];
var _local2 = _local4.targ;
var _local3 = _local4.props;
if (resume == true) {
var _local5 = [];
var _local6 = _aTweens.length;
for (var _local8 in _local3) {
if (_ZigoEngine.isTweenPaused(_local2, _local3[_local8]) == false) {
_local5.push(_local3[_local8]);
}
}
if (_local5.length > 0) {
onTweenEnd({__zigoID__:_local4.targZID, props:_local5, isResume:true});
}
if (_aTweens.length == _local6) {
_local2.addListener(this);
_ZigoEngine.unpauseTween(_local2, _local4.props);
}
} else {
_local2.removeListener(this);
_ZigoEngine.pauseTween(_local2, _local4.props);
}
}
if ((resume == true) && (_aTweens.length <= 0)) {
complete();
} else if (resume == true) {
_ZigoEngine.addListener(this);
} else {
_ZigoEngine.removeListener(this);
}
}
function fastForward(ignore, targs, scope) {
if (_nPlaying == 1) {
for (var _local4 in _aTweens) {
var _local3 = _aTweens[_local4];
var _local2 = _local3.targ;
_local2.removeListener(this);
_ZigoEngine.ffTween(_local2, _local3.props, true);
}
return(undefined);
}
if (_nPlaying == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("125", _nItemID);
}
_nPlaying = 2;
doTweens(targs, scope, null, null, false, true);
stop();
}
function destroy() {
var _local3 = _nPlaying > -1;
_nPlaying = -1;
for (var _local5 in _aTweens) {
var _local2 = _aTweens[_local5];
_local2.targ.removeListener(this);
if (_local3 == true) {
_ZigoEngine.removeTween(_local2.targ, _local2.props);
}
delete _aTweens[_local5];
}
for (var _local4 in this) {
delete this[_local4];
}
}
function dispatchRequest(type, args) {
var _local4 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((!(args instanceof Array)) && (args != null)) {
args = new Array(args);
}
Function(_local4[type]).apply(_local4, args);
}
function _sID() {
var _local3;
if (_nFuseID == -1) {
_local3 = "-One-off tween ";
} else {
_local3 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID).getHandle();
}
_local3 = _local3 + (">Item #" + String(_nItemID));
if (_oElements.label != undefined) {
_local3 = _local3 + ((" \"" + _oElements.label) + "\"");
}
return(_local3);
}
function parseProfile(obj, aap) {
var _local40;
var _local2;
var _local8;
if (obj.__buildMode == true) {
if (obj.command != undefined) {
if (obj.command == "delay") {
_oElements.delay = obj.commandargs;
} else if (obj.command == "trigger") {
if (_oTemps.bTriggerFound == false) {
_oTemps.bTriggerFound = true;
return({trigger:obj.commandargs, _doTimer:true});
}
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), obj.commandargs);
}
} else {
_oElements.command = obj.command;
_oElements.args = obj.commandargs;
}
}
if (obj.func != undefined) {
_oTemps.afl++;
_oElements.aEvents.unshift({scope:obj.scope, func:obj.func, args:obj.args});
}
if (obj.tweenargs != undefined) {
_oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ",");
return(obj);
}
return(null);
}
var _local4 = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:((((typeof(obj.skipLevel) == "number") && (obj.skipLevel >= 0)) && (obj.skipLevel <= 2)) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), roundResults:obj.roundResults, oSP:{}, oEP:{}, oAFV:{}};
var _local22 = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger));
if (_local22 != undefined) {
if (_oTemps.bTriggerFound == false) {
_local4.trigger = _local22;
_oTemps.bTriggerFound = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), _local22);
}
}
if (_local4.delay == undefined) {
_local4.delay = obj.startAt;
}
if (_local4.ease == undefined) {
_local4.ease = obj.easing;
}
if (_local4.seconds == undefined) {
_local4.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time));
}
if (aap.target != undefined) {
_local4.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target]));
} else if (obj.target != undefined) {
_local4.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target]));
}
if (obj.addTarget != undefined) {
_local4.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget]));
}
if (aap.addTarget != undefined) {
if (_local4.addTarget == undefined) {
_local4.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget]));
} else {
_local4.addTarget = ((_local4.addTarget instanceof Array) ? (_local4.addTarget.concat(aap.addTarget)) : (new Array(_local4.addTarget).concat(aap.addTarget)));
}
}
var _local15 = false;
for (_local2 in obj) {
var _local11 = obj[_local2];
if (_oTemps.cbProps.indexOf(("|" + _local2) + "|") > -1) {
if (_local2 != "skipLevel") {
_local4[_local2] = _local11;
}
continue;
}
if (_oTemps.fuseProps.indexOf(("|" + _local2) + "|") > -1) {
if (((_local2 == "command") && (_oTemps.nActions > 1)) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("109", String(_local11), true);
}
continue;
}
if (typeof(_local11) == "object") {
var _local10 = ((_local11 instanceof Array) ? ([]) : ({}));
for (_local8 in _local11) {
_local10[_local8] = _local11[_local8];
}
_local11 = _local10;
}
var _local3;
var _local21;
if (_local2.indexOf("start_") == 0) {
if (((_local2 == "start_controlX") || (_local2 == "start_controlY")) || (_local2.indexOf("_bezier_") > -1)) {
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("110", _sID(), _local2);
}
continue;
}
_local2 = _local2.slice(6);
_local3 = _local4.oSP;
} else {
_local3 = _local4.oEP;
}
if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + _local2) + "|") > -1)) {
_local2 = "_" + _local2;
}
if (_oTemps.sCT.indexOf(("|" + _local2) + "|") > -1) {
var _local13 = (_local2 == "_tintPercent") && (_local3.colorProp.p == "_tint");
var _local12 = (_local2 == "_tint") && (_local3.colorProp.p == "_tintPercent");
if (((_local3.colorProp == undefined) || (_local13 == true)) || (_local12 == true)) {
if (_local13 == true) {
_local3.colorProp = {p:"_tint", v:{tint:_local3.colorProp.v, percent:_local11}};
} else if (_local12 == true) {
_local3.colorProp = {p:"_tint", v:{tint:_local11, percent:_local3.colorProp.v}};
} else {
_local3.colorProp = {p:_local2, v:_local11};
}
_local15 = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local2);
}
} else if (_local11 != null) {
_local3[_local2] = _local11;
_local15 = true;
}
}
if ((_local15 == false) && ((_local4.trigger != undefined) || (((_local4.delay != undefined) || (_local4.seconds != undefined)) && (((_local4.startfunc != undefined) || (_local4.updfunc != undefined)) || ((_local4.func != undefined) && (_oTemps.nActions > 1)))))) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("116");
} else {
if (_local4.func != undefined) {
_oTemps.afl++;
}
if (_local4.event != undefined) {
_oTemps.ael++;
}
_local4._doTimer = true;
if (_local4.delay != undefined) {
_oTemps.twDelayFlag = true;
}
return(_local4);
}
}
if (_local15 == true) {
var _local17 = _local4.oEP.colorProp != undefined;
var _local7 = 0;
while (_local7 < 2) {
var _local3 = ((_local7 == 0) ? (_local4.oSP) : (_local4.oEP));
var _local6 = ((_local7 == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE));
var _local9 = _local3.colorProp.p;
if (_local9 != undefined) {
_local3[_local9] = _local3.colorProp.v;
delete _local3.colorProp;
}
if (((_local3._xscale != undefined) || (_local3._scale != undefined)) && ((_local3._width != undefined) || (_local3._size != undefined))) {
var _local14 = ((_local3._xscale != undefined) ? "_xscale" : "_scale");
delete _local3[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
if (((_local3._yscale != undefined) || (_local3._scale != undefined)) && ((_local3._height != undefined) || (_local3._size != undefined))) {
var _local14 = ((_local3._yscale != undefined) ? "_yscale" : "_scale");
delete _local3[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
if ((_local3._fade != undefined) && (_local3._alpha != undefined)) {
delete _local3._alpha;
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), "_alpha");
}
}
for (_local2 in _local3) {
if (_local6.indexOf(_local2 + ", ") == -1) {
_local6 = _local6 + (_local2 + ", ");
}
if (_local3 == _local4.oSP) {
if ((_local4.oEP[_local2] == undefined) && (!((_local2 == _local9) && (_local17 == true)))) {
_local4.oAFV[_local2] = true;
_local4.oEP[_local2] = [];
}
}
}
((_local7 == 0) ? ((_oTemps.sImgS = _local6)) : ((_oTemps.sImgE = _local6)));
_local7++;
}
return(_local4);
}
if ((_local4.delay != undefined) && (_oTemps.nActions == 1)) {
_oElements.delay = _local4.delay;
_oElements.delayscope = _local4.scope;
}
if (_local4.event != undefined) {
_oTemps.ael++;
_oElements.aEvents.unshift({scope:_local4.scope, e:_local4.event, ep:_local4.eventparams, skipLevel:_local4.skipLevel});
}
var _local23 = _oElements.aEvents.length;
if (_local4.func != undefined) {
_oElements.aEvents.push({func:_local4.func, scope:_local4.scope, args:_local4.args, skipLevel:_local4.skipLevel});
}
_oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - _local23);
return(undefined);
}
function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF) {
if (_aTweens == null) {
_aTweens = [];
}
var tba = ((_oTwBeingAdded = {}));
var ZE = _ZigoEngine;
var _local35 = function (target, props, endvals, seconds, ease, delay, callback) {
if (target.__zigoID__ == null) {
ZE.initializeTargets(target);
}
tba[target.__zigoID__] = true;
var _local3 = ZE.doTween.apply(ZE, arguments);
tba[target.__zigoID__] = false;
return(((_local3 == null) ? ([]) : (_local3.split(","))));
};
var _local74 = _global.com.mosesSupposes.fuse.Fuse;
var _local19 = ((_local74 != undefined) ? (_local74.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local24 = "";
var _local66 = 0;
var _local8;
var _local5;
var _local6;
var _local75 = (_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1));
var _local51 = 0;
while (_local51 < _aProfiles.length) {
if (_nPlaying < 2) {
return(null);
}
var _local4 = _aProfiles[_local51];
if (_local4.__buildMode == true) {
var _local10 = _aProfiles[_local51].tweenargs;
var _local65 = _local24;
if ((_local10[6].cycles === 0) || (_local10[6].cycles.toUpperCase() == "LOOP")) {
delete _local10[6].cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
}
var _local60 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(_local10[6]);
if (!(_local10[0] instanceof Array)) {
_local10[0] = [_local10[0]];
}
for (_local8 in _local10[0]) {
if (isFF == true) {
_local35(_local10[0][_local8], _local10[1], _local10[2], 0, null, 0, {skipLevel:0});
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF(simple syntax)\ttargets:[") + _local10[0][_local8]) + "]\tprops:[") + _local10[1]) + "]");
}
} else {
var _local17 = _local35(_local10[0][_local8], _local10[1], _local10[2], _local10[3], _local10[4], _local10[5], _local60);
if (_local17.length > 0) {
_aTweens.push({targ:_local10[0][_local8], props:_local17, targZID:_local10[0][_local8].__zigoID__});
_local10[0][_local8].addListener(this);
for (_local5 in _local17) {
if (_local24.indexOf(_local17[_local5] + ",") == -1) {
_local24 = _local24 + (_local17[_local5] + ",");
}
}
}
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN(simple syntax)\ttargets:[") + _local10[0][_local8]) + "]\tprops tweened:[") + _local17.toString()) + "]");
}
}
}
if ((isFF == false) && ((_local65 == _local24) || (_local24 == ""))) {
_local66++;
}
} else {
var _local23 = defaultScope;
var _local16 = [];
var _local52 = ((_local4.target == undefined) ? (targs) : (_local4.target));
var _local26 = [];
var _local54 = false;
for (_local8 in _local52) {
var _local7 = _local52[_local8];
_local26 = _local26.concat(((_local7 instanceof Function) ? (_local7.apply(_local23)) : (_local7)));
}
for (_local8 in _local4.addTarget) {
var _local7 = _local4.addTarget[_local8];
_local26 = _local26.concat(((_local7 instanceof Function) ? (_local7.apply(_local23)) : (_local7)));
}
for (_local8 in _local26) {
var _local7 = _local26[_local8];
if (_local7 != null) {
var _local40 = false;
for (_local5 in _local16) {
if (_local16[_local5] == _local7) {
_local40 = true;
break;
}
}
if (_local40 == false) {
_local16.unshift(_local7);
}
} else {
_local54 = true;
}
}
var _local56 = ((_local4._doTimer == true) && (_local16.length == 0)) && (isFF == false);
if ((_local54 == true) || ((_local16.length == 0) && (_local4._doTimer != true))) {
_local66++;
}
if (_local75 == true) {
for (_local8 in _local16) {
if (_nPlaying < 2) {
return(null);
}
var _local36 = _local16[_local8];
var _local33 = [];
var _local27 = [];
if (setStart == true) {
for (var _local63 in _local4.oEP) {
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local36, _local63, true);
}
}
for (var _local64 in _local4.oSP) {
var _local7 = _local4.oSP[_local64];
if (_local7 instanceof Function) {
_local7 = _local7.apply(_local23);
}
if ((_local7 === true) || (_local7 === false)) {
_local36[_local64] = _local7;
if (_local4.oAFV[_local64] == true) {
for (_local6 in _local4.oEP[_local64]) {
if (_local4.oEP[_local64][_local6].targ == _local36) {
_local4.oEP[_local64].splice(Number(_local6), 1);
}
}
_local4.oEP[_local64].push({targ:_local36, val:"IGNORE", _isAF:true});
}
continue;
}
if (((_local4.oAFV[_local64] == true) && (!((_local64 == "_colorReset") && (_local7 == 100)))) && (!((_local64 == "_tintPercent") && (_local7 == 0)))) {
var _local20;
if ((_local64 == "_tint") || (_local64 == "_colorTransform")) {
_local20 = _ZigoEngine.getColorTransObj();
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf(("|" + _local64) + "|") > -1) || ((_local64 == "_fade") && (_local7 < 50))) {
_local20 = 100;
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf(("|" + _local64) + "|") > -1) || (_local64 == "_fade")) {
_local20 = 0;
} else {
var _local29 = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local36, _local64, true);
if (_local29 != null) {
_local20 = _local29;
} else {
_local20 = ((_global.isNaN(_local36[_local64]) == false) ? _local36[_local64] : 0);
}
}
for (_local6 in _local4.oEP[_local64]) {
if (_local4.oEP[_local64][_local6].targ == _local36) {
_local4.oEP[_local64].splice(Number(_local6), 1);
}
}
_local4.oEP[_local64].push({targ:_local36, val:_local20, _isAF:true});
}
if (typeof(_local7) == "object") {
var _local28 = ((_local7 instanceof Array) ? ([]) : ({}));
for (_local6 in _local7) {
_local28[_local6] = ((_local7[_local6] instanceof Function) ? Function(_local7[_local6]).apply(_local23) : _local7[_local6]);
}
_local7 = _local28;
}
_local33.push(_local64);
_local27.push(_local7);
}
if (_local27.length > 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output((((_sID() + " ") + _local36) + " SET STARTS: ") + [("[" + _local33) + "]", ("[" + _local27) + "]"]);
}
_local35(_local36, _local33, _local27, 0);
}
}
}
if (setStart == true) {
} else {
var _local25;
var _local50;
var _local32;
var _local12;
var _local49;
var _local21;
var _local43 = "";
if (isFF == false) {
if (_local4.scope != undefined) {
_local23 = _local4.scope;
}
_local50 = ((_local4.skipLevel instanceof Function) ? (_local4.skipLevel.apply(_local23)) : (_local4.skipLevel));
var _local71 = ((_local4.extra1 instanceof Function) ? (_local4.extra1.apply(_local23)) : (_local4.extra1));
var _local70 = ((_local4.extra2 instanceof Function) ? (_local4.extra2.apply(_local23)) : (_local4.extra2));
var _local72 = ((_local4.roundResults instanceof Function) ? (_local4.roundResults.apply(_local23)) : (_local4.roundResults));
_local32 = {skipLevel:_local50, extra1:_local71, extra2:_local70, roundResults:_local72};
_local12 = {skipLevel:_local50, extra1:_local71, extra2:_local70, roundResults:_local72};
if (_local4.cycles != undefined) {
var _local55 = ((_local4.cycles instanceof Function) ? (_local4.cycles.apply(_local23)) : (_local4.cycles));
if (((Number(_local55) == 0) || (String(_local55).toUpperCase() == "LOOP")) && (_local74 != undefined)) {
delete _local4.cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
} else {
_local32.cycles = (_local12.cycles = _local55);
}
}
if (((_local4.func != undefined) || (_local4.startfunc != undefined)) || (_local4.updfunc != undefined)) {
for (_local8 in _local4) {
if (_local8.indexOf("func") > -1) {
_local12[_local8] = _local4[_local8];
} else if (((_local8 == "startscope") || (_local8 == "updscope")) || (_local8.indexOf("args") > -1)) {
_local12[_local8] = _local4[_local8];
}
}
if (_local23 != undefined) {
if ((_local12.func != undefined) && (_local12.scope == undefined)) {
_local12.scope = _local23;
}
if ((_local12.updfunc != undefined) && (_local12.updscope == undefined)) {
_local12.updscope = _local23;
}
if ((_local12.startfunc != undefined) && (_local12.startscope == undefined)) {
_local12.startscope = _local23;
}
}
}
for (_local5 in _local12) {
_local43 = _local43 + (((_local5 + ":") + _local12[_local5]) + "|");
}
if (_local4.event != undefined) {
_local25 = {scope:_local4.scope, e:_local4.event, ep:_local4.eventparams, skipLevel:_local50};
}
_local49 = _local4.trigger === true;
_local21 = undefined;
if ((_local49 == false) && (_local4.trigger != undefined)) {
_local21 = ((_local4.trigger instanceof Function) ? (_local4.trigger.apply(_local23)) : (_local4.trigger));
if (typeof(_local21) == "string") {
_local21 = ((String(_local21).charAt(0) == "-") ? (-parseClock(String(_local21).slice(1))) : (parseClock(String(_local21))));
}
if (_global.isNaN(_local21) == true) {
_local21 = undefined;
}
}
}
var _local18;
var _local13;
var _local22;
var _local15;
var _local42 = false;
var _local53 = ((_local56 == false) ? (_local16) : ([0]));
var _local34 = -1;
for (_local8 in _local53) {
if (_nPlaying < 2) {
return(null);
}
if (isFF == false) {
if (_local4.ease != null) {
_local22 = _local4.ease;
if (_local22 instanceof Function) {
var _local44 = Function(_local22);
if (typeof(_local44(1, 1, 1, 1)) != "number") {
_local22 = _local44.apply(_local23);
}
}
}
if (_local22 == null) {
_local22 = defaultEase;
}
_local13 = ((_local4.seconds instanceof Function) ? (_local4.seconds.apply(_local23)) : (_local4.seconds));
if (_local13 != undefined) {
if (typeof(_local13) == "string") {
_local13 = parseClock(String(_local13));
}
if (_global.isNaN(_local13) == true) {
_local13 = _ZigoEngine.DURATION || 0;
}
}
if (_local13 == null) {
_local13 = defaultSeconds;
}
_local18 = ((_local4.delay instanceof Function) ? (_local4.delay.apply(_local23)) : (_local4.delay));
if (typeof(_local18) == "string") {
_local18 = parseClock(String(_local18));
}
if ((_local18 == null) || (_global.isNaN(_local18) == true)) {
_local18 = 0;
}
if (_local56 == true) {
continue;
}
}
var _local36 = _local53[_local8];
var _local9 = [];
var _local11 = [];
var _local46 = 0;
var _local14 = -2;
for (var _local64 in _local4.oEP) {
var _local7 = _local4.oEP[_local64];
if (_local7 instanceof Function) {
_local7 = _local7.apply(_local23);
}
if ((_local7 === true) || (_local7 === false)) {
if (_local15 == undefined) {
_local15 = {};
}
_local15[_local64] = _local7;
_local46++;
continue;
}
if (typeof(_local7) == "object") {
if (_local7[0]._isAF == true) {
for (_local6 in _local7) {
if (_local7[_local6].targ == _local36) {
_local7 = _local7[_local6].val;
break;
}
}
} else {
var _local28 = ((_local7 instanceof Array) ? [] : {});
for (_local6 in _local7) {
_local28[_local6] = ((_local7[_local6] instanceof Function) ? Function(_local7[_local6]).apply(_local23) : _local7[_local6]);
}
_local7 = _local28;
}
}
if (_local7 != "IGNORE") {
if (_local64 == "_bezier_") {
_local14 = _local9.length;
} else if ((_local14 == -2) && ((_local64 == "controlX") || (_local64 == "controlY"))) {
_local14 = -1;
}
_local9.push(_local64);
_local11.push(_local7);
}
}
if (_local11.length > 0) {
if (_local14 > -2) {
if (_local14 == -1) {
_local14 = _local9.length;
}
_local9[_local14] = "_bezier_";
if (typeof(_local11[_local14]) != "object") {
_local11[_local14] = {};
}
var _local37 = _local11[_local14];
for (_local5 in _local9) {
if ("|x|y|_x|_y|controlX|controlY|".indexOf(("|" + _local9[_local5]) + "|") > -1) {
if (_local9[_local5].charAt(0) == "_") {
_local9[_local5] = _local9[_local5].slice(-1);
}
if (typeof(_local37[_local9[_local5]]) == "number") {
if ((_local19 > 0) && ((_local34 == -1) || (_local34 == _local8))) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local9[_local5]);
_local34 = Number(_local8);
}
} else {
_local37[_local9[_local5]] = _local11[_local5];
}
_local9.splice(Number(_local5), 1);
_local11.splice(Number(_local5), 1);
}
}
}
if (isFF == true) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF\ttargets:[") + _local36) + "]\tprops:[") + _local9.toString()) + "]");
}
_local35(_local36, _local9, _local11, 0, null, 0, {skipLevel:0});
continue;
}
var _local31 = {caught:false, onTweenEnd:function (evto) {
this.caught = true;
}};
_local36.addListener(_local31);
var _local17 = _local35(_local36, _local9, _local11, _local13, _local22, _local18, _local12);
_local36.removeListener(_local31);
if (_local17.length == 0) {
if (_local31.caught == true) {
_local12 = _local32;
}
} else {
if (_local17.length > 0) {
var _local38 = {targ:_local36, props:_local17, bools:_local15, targZID:_local36.__zigoID__};
if (_local42 == false) {
_local12 = _local32;
_local38.event = _local25;
_local15 = undefined;
_local25 = _local15;
_local38.trigger = _local49;
}
_aTweens.push(_local38);
_local36.addListener(this);
_local42 = true;
for (_local5 in _local17) {
if (_local24.indexOf(_local17[_local5] + ",") == -1) {
_local24 = _local24 + (_local17[_local5] + ",");
}
}
}
if (_local19 == 3) {
var _local45 = _local9.toString();
if (_local17.length > _local9.length) {
_local45 = _local45 + (("\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + _local17.toString()) + "]");
}
var _local30 = "";
for (_local5 in _local11) {
_local30 = (((typeof(_local11[_local5]) == "string") ? (("\"" + _local11[_local5]) + "\"") : _local11[_local5]) + ", ") + _local30;
}
com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + _local36, "props: " + _local45, "endVals: " + _local30, "time: " + ((_local13 == undefined) ? _ZigoEngine.DURATION : _local13), "easing: " + ((_local22 == undefined) ? _ZigoEngine.EASING : _local22), "delay: " + ((_local18 == undefined) ? 0 : _local18), "callbacks: " + ((_local43 == "") ? "(none)" : _local43)].join("\n\t"));
}
}
_local31 = undefined;
}
}
if ((_global.isNaN(_local13) == true) || (_local4.seconds == null)) {
_local13 = 0;
}
var _local39 = _local18 + _local13;
if (_local21 != undefined) {
if (_local21 < 0) {
_local21 = _local21 + _local39;
}
if ((_local21 > 0) && ((_local39 == 0) || (_local21 < _local39))) {
if (_local39 == 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " graft a timed trigger (") + _local21) + " sec). [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
doTimerTween(null, _local21, 0, true, _local15, _local12, _local25);
_local42 = true;
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " graft a timed trigger (") + _local21) + " sec).");
}
doTimerTween(null, _local21, 0, true);
}
} else if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((_sID() + " timed trigger discarded: out of range. [") + _local21) + "/") + _local39) + "]");
}
}
if ((_local42 == false) && (((_local12 != _local32) || (_local25 != undefined)) || (_local15 != undefined))) {
if ((_local50 == 0) && (_local39 > 0)) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " no props tweened - graft a delay (") + _local39) + " sec). [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
doTimerTween(_local16, _local13, _local18, _local49, _local15, _local12, _local25);
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " no props tweened, executing nontween items. [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
for (_local8 in _local16) {
for (_local5 in _local15) {
_local16[_local8][_local5] = _local15[_local5];
}
}
if (_local50 < 2) {
if (_local12 != undefined) {
fireEvents(_local12, _local23, _local19, _local16);
}
if (_local25 != undefined) {
fireEvents(_local25, _local23, _local19);
}
}
}
}
}
}
_local51++;
}
if ((_local66 > 0) && (_local19 > 0)) {
if ((_local66 == _aProfiles.length) && (_local24 == "")) {
com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("119", _sID(), _local66, _local75);
}
}
tba = undefined;
_oTwBeingAdded = undefined;
return(((_local24 == "") ? null : (_local24.slice(0, -1))));
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) {
var _local2 = {__TweenedDelay:0};
_ZigoEngine.initializeTargets(_local2);
_aTweens.push({targ:_local2, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:_local2.__zigoID__});
var _local3 = _ZigoEngine.doTween(_local2, "__TweenedDelay", 1, duration, null, delay, callback) == null;
if (_local3 == true) {
onTweenEnd({target:_local2, props:["__TweenedDelay"]});
} else {
_local2.addListener(this);
}
}
function onTweenEnd(o, doAutoStop) {
if (_nPlaying < 1) {
return(undefined);
}
var _local12 = _global.com.mosesSupposes.fuse.Fuse;
var _local8 = ((_local12 != undefined) ? (_local12.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local11 = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__));
for (var _local19 in _aTweens) {
var _local3 = _aTweens[_local19];
if (_local3.targZID == _local11) {
for (var _local18 in o.props) {
var _local7 = _local3.props;
for (var _local16 in _local7) {
var _local5 = _local7[_local16];
if (_local5 == o.props[_local18]) {
_local7.splice(Number(_local16), 1);
if (doAutoStop == true) {
var _local6 = _local12.getInstance(_nFuseID);
var _local10 = (((_bTrigger == true) && (o.during == "add")) && (_local6[_local6.currentIndex]._oTwBeingAdded[_local11] === true)) && (_local6.state == "playing");
if (_local10 == false) {
_local3.targ.removeListener(this);
for (var _local19 in _aTweens) {
if (_aTweens[_local19].targZID == _local11) {
for (var _local18 in o.props) {
for (var _local16 in _aTweens[_local19].props) {
if (_aTweens[_local19].props[_local16] == o.props[_local18]) {
_aTweens[_local19].props.splice(Number(_local16), 1);
}
}
}
if (_aTweens[_local19].props.length == 0) {
_aTweens.splice(Number(_local19), 1);
}
}
}
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " triggering auto-stop due to interruption");
}
if ((_local6.autoClear == true) || ((!(_local6.autoClear === false)) && (_local12.AUTOCLEAR == true))) {
dispatchRequest("destroy");
} else {
dispatchRequest("stop");
}
return(undefined);
}
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("note -" + _sID()) + " interrupted one of its own properties \"") + _local5) + "\". (Autostop not triggered.)");
}
}
if ((_nPlaying == 2) && (_local5 != "__TweenedDelay")) {
if (_local8 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), _local5);
}
}
if (_local7.length == 0) {
if (_local3.event != undefined) {
fireEvents(_local3.event, null, _local8);
}
if (_local5 == "__TweenedDelay") {
_ZigoEngine.deinitializeTargets(_local3.targ);
delete _local3.targ;
for (var _local14 in _local3.bools) {
for (var _local13 in _local3.actualTargs) {
_local3.actualTargs[_local13][_local14] = _local3.bools[_local14];
}
}
} else {
var _local9 = false;
for (var _local14 in _local3.bools) {
_local3.targ[_local14] = _local3.bools[_local14];
}
for (var _local15 in _aTweens) {
if ((_local15 != _local19) && (_aTweens[_local15].targ == _local3.targ)) {
_local9 = true;
}
}
if (_local9 == false) {
_local3.targ.removeListener(this);
}
}
if (_local3.trigger == true) {
if (((_bTrigger == false) && (o.isResume != true)) && (_aTweens.length > 1)) {
_bTrigger = true;
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " trigger fired!");
}
var breakChainInt;
breakChainInt = setInterval(function (fi) {
clearInterval(breakChainInt);
fi.dispatchRequest("advance", [false, false, false]);
}, 1, this);
}
}
_aTweens.splice(Number(_local19), 1);
}
}
}
}
}
}
if (((_aTweens.length == 0) && (_nPlaying == 1)) && (o.isResume != true)) {
complete(_local8);
}
}
function onTweenInterrupt(o) {
if (_nPlaying == -1) {
return(undefined);
}
var _local4 = _global.com.mosesSupposes.fuse.Fuse;
var _local6 = _local4.getInstance(_nFuseID);
var _local8 = (_local6.autoStop == true) || ((!(_local6.autoStop === false)) && (_local4.AUTOSTOP == true));
var _local3 = o.__zigoID__;
var _local9 = ((_local4 != undefined) ? (_local4.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if ((_local8 == true) || ((!(_local8 === false)) && (_local4.AUTOSTOP == true))) {
onTweenEnd(o, true);
return(undefined);
}
if (typeof(o.target) != "string") {
onTweenEnd(o);
return(undefined);
}
for (var _local5 in _aTweens) {
if (_aTweens[_local5].targZID == _local3) {
_aTweens.splice(Number(_local5), 1);
}
}
if ((_aTweens.length == 0) && (_nPlaying == 1)) {
complete(_local9);
}
}
function complete(outputLevel) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " complete.");
}
var breakChainInt;
breakChainInt = setInterval(function (fi, trigger) {
clearInterval(breakChainInt);
var _local1 = fi._nPlaying;
if (trigger != true) {
if (_local1 < 1) {
return(undefined);
}
}
fi.stop();
if (_local1 > 0) {
fi.dispatchRequest("advance", [trigger, false, false]);
}
}, 1, this, _bTrigger);
}
function parseClock(str) {
if (str.indexOf(":") != 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return(_ZigoEngine.DURATION || 0);
}
var _local4 = 0;
var _local3 = str.split(":");
_local3.reverse();
var _local2;
if ((String(_local3[0]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[0]))) == false)) {
_local4 = _local4 + (_local2 / 100);
}
if (((String(_local3[1]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[1]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + _local2;
}
if (((String(_local3[2]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[2]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + (_local2 * 60);
}
if (((String(_local3[3]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[3]))) == false)) && (_local2 < 24)) {
_local4 = _local4 + (_local2 * 3600);
}
return(_local4);
}
function fireEvents(o, scope, outputLevel, targets) {
if (o.scope == undefined) {
o.scope = scope;
}
if (o.e == undefined) {
var _local3 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o, targets, outputLevel, false);
if (_local3.start.f != null) {
_local3.start.f.apply(_local3.start.s, _local3.start.a);
}
if (_local3.upd.f != null) {
_local3.upd.f.apply(_local3.upd.s, _local3.upd.a);
}
if (_local3.end.f != null) {
_local3.end.f.apply(_local3.end.s, _local3.end.a);
}
} else {
var _local6 = ((o.e instanceof Function) ? (String(o.e.apply(scope))) : (String(o.e)));
if ((_local6 != "undefined") && (_local6.length > 0)) {
if (String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf(("|" + _local6) + "|") > -1) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("122", _local6);
}
} else {
var _local7 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var _local5 = ((o.ep instanceof Function) ? (o.ep.apply(scope)) : (o.ep));
if ((_local5 == null) || (typeof(_local5) != "object")) {
_local5 = {};
}
_local5.target = _local7;
_local5.type = _local6;
_local7.dispatchEvent.call(_local7, _local5);
}
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("123", _sID());
}
}
}
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
}
Symbol 1186 MovieClip [__Packages._simpsons.SimpsonsUser] Frame 0
class _simpsons.SimpsonsUser
{
var _userName, _userPassword, _userID, _userAvatars, _registerUrl, _registerData, _loginUrl, _loginData, _forgotPasswordUrl, _forgotPasswordData, _getUserUrl, _getUserData, _updateUserUrl, _updateUserData;
function SimpsonsUser () {
_isLoggedIn = false;
_userName = "";
_userPassword = "";
_userID = null;
_userAvatars = new Array();
mx.events.EventDispatcher.initialize(this);
}
function dispatchQueue() {
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function register(pTarget, pFirstName, pLastName, pCountry, pEmail, pUserName, pPassword, pDob) {
_registerUrl = _root.simpsons_data.login.register_url;
_registerData = Object();
_registerData.firstname = pFirstName;
_registerData.lastname = pLastName;
_registerData.country = pCountry;
_registerData.email = pEmail;
_registerData.username = pUserName;
_registerData.password = pPassword;
_registerData.action = "register";
_registerData.gender = "m";
if (pDob == undefined) {
_registerData.birthday = "02-08-1976";
} else {
_registerData.birthday = pDob;
}
_registerData.cid = _global.SETTINGS.cid;
var _registerResponseData = (new _65.data.XmlData());
var myListener = new Object();
myListener.owner = this;
myListener.pTarget = pTarget;
myListener.pUserName = pUserName;
myListener.pPassword = pPassword;
myListener.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("registerresponse: " + _registerResponseData.result.output);
this.owner.registerResponse(myListener.pTarget, _registerResponseData.result.output, myListener.pUserName, myListener.pPassword);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_registerResponseData.addEventListener("onError", myListener);
_registerResponseData.addEventListener("onLoad", myListener);
_registerResponseData.load(_registerUrl, _registerData, "post", false);
}
function registerResponse(pTarget, pResponse, pUsername, pPassword) {
trace("pResponse: " + pResponse);
var _local9 = _root.simpsons_data.login_replies.register_sucess._value;
var _local6 = _root.simpsons_data.login_replies.error._value;
var _local8 = _root.simpsons_data.login_replies.duplicate._value;
var _local7 = _root.simpsons_data.login_replies.duplicate_email._value;
pTarget.submit.enabled = true;
if (pResponse == 1) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local9, "submit", {_y:275, width:450});
login(pTarget, pUsername, pPassword);
} else if (pResponse == -1) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local6, "submit", {_y:275, width:450});
_local5.colorTo(16711680, 0.3);
} else if (pResponse == -2) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local8, "submit", {_y:275, width:450});
_local5.colorTo(16711680, 0.3);
} else if (pResponse == -3) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local7, "submit", {_y:275, width:450});
_local5.colorTo(16711680, 0.3);
}
}
function login(pTarget, pUserName, pPassword, pIsAutoLogin) {
_loginUrl = _root.simpsons_data.login.login_url;
_loginData = Object();
_loginData.username = pUserName;
_loginData.password = pPassword;
_loginData.action = "login";
var _loginResponseData = (new _65.data.XmlData());
var myListener = new Object();
myListener.owner = this;
myListener.pTarget = pTarget;
myListener.pUserName = pUserName;
myListener.pPassword = pPassword;
myListener.pIsAutoLogin = pIsAutoLogin;
myListener.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("login_reponse: " + _loginResponseData.result.output);
var _local3 = new Array(_loginResponseData.characters.char);
if (_loginResponseData.characters.char.length == undefined) {
this.owner.loginResponse(myListener.pTarget, _loginResponseData.result.output, myListener.pUserName, myListener.pPassword, _loginResponseData.user.id, myListener.pIsAutoLogin, _local3);
} else {
this.owner.loginResponse(myListener.pTarget, _loginResponseData.result.output, myListener.pUserName, myListener.pPassword, _loginResponseData.user.id, myListener.pIsAutoLogin, _loginResponseData.characters.char);
}
trace("avatarArr.length: " + _loginResponseData.characters.char.length);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_loginResponseData.addEventListener("onError", myListener);
_loginResponseData.addEventListener("onLoad", myListener);
_loginResponseData.load(_loginUrl, _loginData, "post", false);
}
function loginResponse(pTarget, pResponse, pUserName, pPassword, pUserID, pIsAutoLogin, pAvatars) {
var _local9 = _root.simpsons_data.login_replies.login_sucess._value;
var _local4 = _root.simpsons_data.login_replies.error._value;
pTarget.submit.enabled = true;
if (pResponse == 0) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local4, "submit", {_y:275, width:450});
_local5.colorTo(16711680, 0.3);
} else if (pResponse == 1) {
pTarget.submit.bg._alpha = 0;
_isLoggedIn = true;
_userName = pUserName;
_userPassword = pPassword;
_userID = pUserID;
_userAvatars = pAvatars;
cookieUser();
dispatchEvent({type:"onLogin"});
if (pIsAutoLogin != true) {
_root.navLogin(pTarget._parent._parent._parent);
}
} else if (pResponse == -1) {
pTarget.submit.bg._alpha = 0;
var _local5 = _simpsons.TextItem.createItem(pTarget, _local4, "submit", {_y:275, width:450});
_local5.colorTo(16711680, 0.3);
}
}
function forgotPassword(pTarget, pUserName) {
_forgotPasswordUrl = _root.simpsons_data.login.forgot_pass;
_forgotPasswordData = Object();
_forgotPasswordData.username = pUserName;
_forgotPasswordData.action = "password";
var _forgotPasswordResponseData = (new _65.data.XmlData());
var myListener = new Object();
myListener.owner = this;
myListener.pTarget = pTarget;
myListener.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("forgot_reponse: " + _forgotPasswordResponseData.result.output);
this.owner.forgotPasswordResponse(myListener.pTarget, _forgotPasswordResponseData.result.output);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_forgotPasswordResponseData.addEventListener("onError", myListener);
_forgotPasswordResponseData.addEventListener("onLoad", myListener);
_forgotPasswordResponseData.load(_forgotPasswordUrl, _forgotPasswordData, "post", false);
}
function forgotPasswordResponse(pTarget, pResponse) {
var _local6 = _root.simpsons_data.login_replies.forgot_pass._value;
var _local3 = _root.simpsons_data.login_replies.forgot_pass_error._value;
pTarget.submit.enabled = true;
if (pResponse == 0) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local3, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
} else if (pResponse == 1) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local6, "submit", {_y:275, width:450});
} else if (pResponse == -1) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local3, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
}
}
function getUser(pTarget, pId) {
_getUserUrl = _root.simpsons_data.login.get_user;
_getUserData = Object();
_getUserData.id = _userID;
_getUserData.action = "getuser";
trace("userId: " + pId);
var _getUserResponseData = (new _65.data.XmlData());
var myListener = new Object();
myListener.owner = this;
myListener.pTarget = pTarget;
myListener.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("get_response: " + _getUserResponseData.result.output);
this.owner.getUserResponse(myListener.pTarget, _getUserResponseData);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_getUserResponseData.addEventListener("onError", myListener);
_getUserResponseData.addEventListener("onLoad", myListener);
_getUserResponseData.load(_getUserUrl, _getUserData, "post", false);
}
function getUserResponse(pTarget, pObj) {
var _local5 = _root.simpsons_data.login_replies.error._value;
switch (pObj.result.output) {
case 0 :
var _local4 = _simpsons.TextItem.createItem(pTarget, _local5, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
break;
case 1 :
pTarget.submit.bg._alpha = 0;
pTarget.lastname.text = pObj.user.lastname;
pTarget.firstname.text = pObj.user.firstname;
pTarget.email.text = pObj.user.email;
pTarget.password.text = pObj.user.password;
pTarget.drop1.value = pObj.user.country;
}
}
function updateUser(pTarget, pEmail, pLastname, pFirstname, pPassword, pCountry, pUserID, pUsername, pDob) {
_updateUserUrl = _root.simpsons_data.login.update_user;
_updateUserData = Object();
_updateUserData.email = pEmail;
_updateUserData.lastname = pLastname;
_updateUserData.firstname = pFirstname;
_updateUserData.password = pPassword;
_updateUserData.country = pCountry;
_updateUserData.id = pUserID;
_updateUserData.username = pUsername;
_updateUserData.gender = "m";
if (pDob == undefined) {
_updateUserData.birthday = "02-08-1976";
} else {
_updateUserData.birthday = pDob;
}
_updateUserData.action = "update";
var _updateUserResponseData = (new _65.data.XmlData());
var myListener = new Object();
myListener.owner = this;
myListener.pTarget = pTarget;
myListener.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("update_reponse: " + _updateUserResponseData.result.output);
this.owner.updateUserResponse(myListener.pTarget, _updateUserResponseData.result.output);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_updateUserResponseData.addEventListener("onError", myListener);
_updateUserResponseData.addEventListener("onLoad", myListener);
_updateUserResponseData.load(_updateUserUrl, _updateUserData, "post", false);
}
function updateUserResponse(pTarget, pResponse) {
var _local6 = _root.simpsons_data.login_replies.update_success._value;
var _local3 = _root.simpsons_data.login_replies.error._value;
pTarget.submit.enabled = true;
if (pResponse == 0) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local3, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
} else if (pResponse == 1) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local6, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
} else if (pResponse == -1) {
pTarget.submit.bg._alpha = 0;
var _local4 = _simpsons.TextItem.createItem(pTarget, _local3, "submit", {_y:275, width:450});
_local4.colorTo(16711680, 0.3);
}
}
function checkCookie() {
}
function cookieUser() {
}
function changeLogStatus(pArg) {
_isLoggedIn = pArg;
if (pArg == false) {
dispatchEvent({type:"onLogout"});
}
}
function get username() {
return(_userName);
}
function get password() {
return(_userPassword);
}
function get id() {
return(_userID);
}
function get isLoggedIn() {
return(_isLoggedIn);
}
function set isLoggedIn(pArg) {
changeLogStatus(pArg);
//return(isLoggedIn);
}
function get avatars() {
return(_userAvatars);
}
var _isLoggedIn = false;
}
Symbol 1187 MovieClip [__Packages._simpsons.SimpsonsPoints] Frame 0
class _simpsons.SimpsonsPoints
{
var _leaderboardUrl, _leaderBoardArray, _leaderBoardData;
function SimpsonsPoints () {
}
function getLeaderBoard(pTarget) {
_leaderboardUrl = _root.simpsons_data.leaderboard.url;
_leaderBoardArray = new Array();
_leaderBoardData = Object();
_leaderBoardData.action = "leaderboard";
var _leaderBoardResponseData = (new _65.data.XmlData());
var _local3 = new Object();
_local3.owner = this;
_local3.pTarget = pTarget;
_local3.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("leaderboard_response: " + _leaderBoardResponseData.result.output);
this._leaderBoardArray = _65.data.XmlData.getArray(_leaderBoardResponseData.scores, "score");
this.owner.leaderBoardSetResponse(this.pTarget, this._leaderBoardArray);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_leaderBoardResponseData.addEventListener("onError", _local3);
_leaderBoardResponseData.addEventListener("onLoad", _local3);
_leaderBoardResponseData.load(_leaderboardUrl, _leaderBoardData, "post", false);
}
function leaderBoardSetResponse(pTarget, pResponseArray) {
_leaderBoardArray = pResponseArray;
_root.leaderBoardPopulate(pTarget, _leaderBoardArray);
}
function sortLeaderBoard(pTarget, pId) {
_leaderboardUrl = _root.simpsons_data.leaderboard.filtered_url;
_leaderBoardArray = new Array();
_leaderBoardData = Object();
_leaderBoardData.action = "filtered_leaderboard";
_leaderBoardData.country = pId;
var _leaderBoardResponseData = (new _65.data.XmlData());
var _local3 = new Object();
_local3.owner = this;
_local3.pTarget = pTarget;
_local3.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("filtered_leaderboard_response: " + _leaderBoardResponseData.result.output);
this._leaderBoardArray = _65.data.XmlData.getArray(_leaderBoardResponseData.scores, "score");
this.owner.sortLeaderBoardSetResponse(this.pTarget, this._leaderBoardArray);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
_leaderBoardResponseData.addEventListener("onError", _local3);
_leaderBoardResponseData.addEventListener("onLoad", _local3);
_leaderBoardResponseData.load(_leaderboardUrl, _leaderBoardData, "post", false);
}
function sortLeaderBoardSetResponse(pTarget, pResponseArray) {
_leaderBoardArray = pResponseArray;
_root.filterLeaderBoard(pTarget, _leaderBoardArray);
}
function get leaderBoard() {
return(_leaderBoardArray);
}
}
Symbol 159 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 160 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 161 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local11 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local9 = (__width - borderW) - borderW;
var _local10 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local11 = Math.min(_local9 - _local7, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local9 - _local11) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local9 - _local11) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local11;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local10 - _local6) / 2;
_local4 = (_local10 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local11 = Math.min(_local9, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local9 - _local11) / 2;
_local2._x = (_local9 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local10 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local10 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 162 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.127";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 1188 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local3 = new mx.data.binding.ObjectDumper();
if (maxLineLength == undefined) {
maxLineLength = 100;
}
if (indent == undefined) {
indent = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local8 = 0;
while (_local8 < inProgress.length) {
if (inProgress[_local8] == obj) {
return("***");
}
_local8++;
}
inProgress.push(obj);
indent++;
var _local16 = typeof(obj);
var _local5;
if ((obj instanceof XMLNode) && (showXMLstructures != true)) {
_local5 = obj.toString();
} else if (obj instanceof Date) {
_local5 = obj.toString();
} else if (_local16 == "object") {
var _local4 = new Array();
if (obj instanceof Array) {
_local5 = "[";
var _local15 = 0;
while (_local15 < obj.length) {
_local4.push(_local15);
_local15++;
}
} else {
_local5 = "{";
for (var _local15 in obj) {
_local4.push(_local15);
}
_local4.sort();
}
var _local9 = "";
var _local3 = 0;
while (_local3 < _local4.length) {
var _local6 = obj[_local4[_local3]];
var _local7 = true;
if (typeof(_local6) == "function") {
_local7 = showFunctions == true;
}
if (typeof(_local6) == "undefined") {
_local7 = showUndefined == true;
}
if (_local7) {
_local5 = _local5 + _local9;
if (!(obj instanceof Array)) {
_local5 = _local5 + (_local4[_local3] + ": ");
}
_local5 = _local5 + realToString(_local6, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
_local9 = ", `";
}
_local3++;
}
if (obj instanceof Array) {
_local5 = _local5 + "]";
} else {
_local5 = _local5 + "}";
}
} else if (_local16 == "function") {
_local5 = "function";
} else if (_local16 == "string") {
_local5 = ("\"" + obj) + "\"";
} else {
_local5 = String(obj);
}
if (_local5 == "undefined") {
_local5 = "-";
}
inProgress.pop();
return(replaceAll(_local5, "`", ((_local5.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var _local4 = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
_local4 = _local4 + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(_local4);
}
function doIndent(indent) {
var _local2 = "";
var _local1 = 0;
while (_local1 < indent) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 1189 MovieClip [__Packages._simpsons.simpsonizer.SimpsonsAvatar] Frame 0
class _simpsons.simpsonizer.SimpsonsAvatar
{
var _hairTotal, _charMc, _bodyMc, _floorMc, _headMc;
function SimpsonsAvatar (pChar) {
_hairTotal = 104;
redraw(pChar);
}
function changeHairTotal(pTotal) {
_hairTotal = pTotal;
}
function redraw(pChar) {
_charMc = pChar;
_charMc.owner = this;
_bodyMc = pChar.body;
_floorMc = pChar.floorMc;
_headMc = pChar.head;
bodyTypeUpdate(_bodyType);
setHead(pChar.head);
setAction(_action);
}
function setHead(pHead) {
_headMc = pHead;
hairStyleUpdate(_hairStyle);
hairColorUpdate(_hairColor);
hairAccesoryColorUpdate(_hairAccesoryColor);
eyeBrowStyleUpdate(_eyeBrowStyle);
eyeBrowColorUpdate(_eyeBrowColor);
eyeStyleUpdate(_eyeStyle);
noseStyleUpdate(_noseStyle);
mouthStyleUpdate(_mouthStyle);
lipColorUpdate(_lipColor);
facialHairColorUpdate(_facialHairColor);
skullStyleUpdate(_skullStyle);
skinColorUpdate(_skinColor);
if (!_bodyMc) {
_headMc.shirtBg._visible = false;
} else {
_headMc.shirtBg._visible = true;
}
}
function resetBody() {
shirtColorUpdate(_shirtColor);
_bodyMc.collarB.swapDepths();
shirtStyleUpdate(_shirtStyle);
pantColorUpdate(_pantColor);
shoeColorUpdate(_shoeColor);
}
function setAction(pValue) {
_action = pValue;
if (_action == "stand") {
_bodyMc.gotoAndStop(_action);
_bodyMc.legs.gotoAndStop(_action);
} else {
_bodyMc.gotoAndPlay(_action);
_bodyMc.legs.gotoAndPlay(_action);
}
resetBody();
}
function setTint(pTarget, pColor) {
var _local1 = new com.quasimondo.geom.ColorMatrix();
_local1.colorize(pColor, 1);
pTarget.filters = [new flash.filters.ColorMatrixFilter(_local1.matrix)];
}
function getValue(pCurrent, pValue, pTotal) {
if (pValue == "r") {
return(_65.Math2.random(1, pTotal));
}
if (pValue.charAt(0) == "+") {
var _local2 = pCurrent + Number(pValue.slice(1));
if (_local2 > pTotal) {
_local2 = 1;
}
return(_local2);
}
if (pValue.charAt(0) == "-") {
var _local2 = pCurrent - Number(pValue.slice(1));
if (_local2 < 1) {
_local2 = pTotal;
}
return(_local2);
}
return(Number(pValue));
}
function random() {
bodyType = ("r");
randomFace();
randomClothes();
_randomSkinColors = _65.Array2.shuffle(_randomSkinColors);
skinColor = (_randomSkinColors[0]);
}
function randomFace() {
_hairColorArr = _65.Array2.shuffle(_hairColorArr);
hairColorUpdate(_hairColorArr[0]);
hairAccesoryColorUpdate(_65.Color2.randomRGB());
_lipColorArr = _65.Array2.shuffle(_lipColorArr);
lipColorUpdate(_lipColorArr[0]);
facialHairColorUpdate(_65.Color2.randomRGB());
skullStyle = ("r");
if (bodyType.charAt(0) == "m") {
_hairStyleArrM = _65.Array2.shuffle(_hairStyleArrM);
_mouthStyleArrM = _65.Array2.shuffle(_mouthStyleArrM);
_eyeStyleArrM = _65.Array2.shuffle(_eyeStyleArrM);
hairStyle = (_hairStyleArrM[0]);
mouthStyle = (_mouthStyleArrM[0]);
eyeStyle = (_eyeStyleArrM[0]);
} else if (bodyType.charAt(0) == "f") {
_hairStyleArrF = _65.Array2.shuffle(_hairStyleArrF);
_mouthStyleArrF = _65.Array2.shuffle(_mouthStyleArrF);
_eyeStyleArrF = _65.Array2.shuffle(_eyeStyleArrF);
eyeStyle = (_eyeStyleArrF[0]);
hairStyle = (_hairStyleArrF[0]);
mouthStyle = (_mouthStyleArrF[0]);
}
_eyeBrowStyleArr = _65.Array2.shuffle(_eyeBrowStyleArr);
_noseStyleArr = _65.Array2.shuffle(_noseStyleArr);
eyeBrowStyle = (_eyeBrowStyleArr[0]);
noseStyle = (_noseStyleArr[0]);
eyeBrowColor = (hairColor);
facialHairColor = (hairColor);
}
function randomClothes() {
shirtColorUpdate(_65.Color2.randomRGB());
pantColorUpdate(_65.Color2.randomRGB());
shoeColorUpdate(_65.Color2.randomRGB());
shirtStyle = ("r");
}
function hide(pExcept) {
var _local2;
for (_local2 in _headMc) {
if (_local2.indexOf(pExcept)) {
_headMc[_local2]._visible = false;
}
}
}
function skinColorUpdate(pValue) {
_skinColor = getValue(_skinColor, pValue, skinColors.length);
var _local2 = _65.Color2.toColor(skinColors[_skinColor - 1]);
if (_local2 == undefined) {
_local2 = 16777215 /* 0xFFFFFF */;
}
setTint(_headMc.skull, _local2);
setTint(_bodyMc.armR.skin, _local2);
setTint(_bodyMc.armL.skin, _local2);
setTint(_headMc.ear, _local2);
setTint(_headMc.eyeBrowSkin, _local2);
setTint(_headMc.eyeLEyelid, _local2);
setTint(_headMc.eyeREyelid, _local2);
setTint(_headMc.nose, _local2);
setTint(_headMc.mouthSkin, _local2);
}
function bodyTypeUpdate(pArg1, pArg2) {
if (arguments.length == 2) {
if (pArg1 == "r") {
pArg1 = genders[_65.Math2.random(1, genders.length) - 1];
}
if (pArg2 == "r") {
pArg2 = sizes[_65.Math2.random(1, sizes.length) - 1];
}
pArg1 = pArg1.charAt(0) + pArg2.charAt(0);
}
var _local3 = pArg1.toLowerCase().slice(0, 2);
if ((((((((_local3 == "mk") || (_local3 == "fk")) || (_local3 == "ms")) || (_local3 == "fs")) || (_local3 == "mm")) || (_local3 == "fm")) || (_local3 == "mb")) || (_local3 == "fb")) {
_bodyType = _local3;
} else {
_bodyType = bodyTypes[_65.Math2.random(1, bodyTypes.length) - 1];
}
_charMc.gotoAndStop(_bodyType);
_headMc.shirtBg.gotoAndStop(_bodyType);
skullStyleUpdate(_skullStyle);
setAction(_action);
skinColorUpdate(_skinColor);
_yOffset = Math.round(_floorMc._y);
_bodyMc.onReset = function () {
this._parent.owner.resetBody();
};
}
function skullStyleUpdate(pValue) {
_skullStyle = getValue(_skullStyle, pValue, skullTotal);
var _local2 = _skullStyle;
if ((_bodyType == "fm") || (_bodyType == "ms")) {
_local2 = _local2 + 20;
} else if (((_bodyType == "mm") || (_bodyType == "mb")) || (_bodyType == "fb")) {
_local2 = _local2 + 40;
}
_headMc.skull.gotoAndStop(1);
}
function shirtColorUpdate(pValue) {
_shirtColor = _65.Color2.toColor(pValue);
setTint(_bodyMc.collarF, _shirtColor);
setTint(_bodyMc.shirt, _shirtColor);
setTint(_bodyMc.armL.shirt, _shirtColor);
setTint(_bodyMc.armR.shirt, _shirtColor);
setTint(_headMc.collarB, _shirtColor);
setTint(_headMc.collarF, _shirtColor);
setTint(_headMc.shirtBg, _shirtColor);
}
function shirtStyleUpdate(pValue) {
_shirtStyle = getValue(_shirtStyle, pValue, shirtTotal);
_bodyMc.logo.gotoAndStop(_shirtStyle);
}
function pantColorUpdate(pValue) {
_pantColor = _65.Color2.toColor(pValue);
setTint(_bodyMc.legs, _pantColor);
}
function shoeColorUpdate(pValue) {
_shoeColor = _65.Color2.toColor(pValue);
setTint(_bodyMc.footL, _shoeColor);
setTint(_bodyMc.footR, _shoeColor);
}
function hairStyleUpdate(pValue) {
_hairStyle = getValue(_hairStyle, pValue, hairTotal);
_headMc.hairTop.gotoAndStop(_hairStyle);
_headMc.hairBottom.gotoAndStop(_hairStyle);
_headMc.hairAccesory.gotoAndStop(_hairStyle);
}
function hairColorUpdate(pValue) {
_hairColor = _65.Color2.toColor(pValue);
setTint(_headMc.hairTop, _hairColor);
setTint(_headMc.hairBottom, _hairColor);
}
function hairAccesoryColorUpdate(pValue) {
_hairAccesoryColor = _65.Color2.toColor(pValue);
setTint(_headMc.hairAccesory, _hairAccesoryColor);
}
function eyeStyleUpdate(pValue) {
_eyeStyle = getValue(_eyeStyle, pValue, eyeTotal);
_headMc.eyeLEyeball.gotoAndStop(_eyeStyle);
_headMc.eyeLEyelid.gotoAndStop(_eyeStyle);
_headMc.eyeLPupil.gotoAndStop(_eyeStyle);
_headMc.eyeREyeball.gotoAndStop(_eyeStyle);
_headMc.eyeREyelid.gotoAndStop(_eyeStyle);
_headMc.eyeRPupil.gotoAndStop(_eyeStyle);
}
function eyeBrowStyleUpdate(pValue) {
_eyeBrowStyle = getValue(_eyeBrowStyle, pValue, eyeBrowTotal);
_headMc.eyeBrowHair.gotoAndStop(_eyeBrowStyle);
_headMc.eyeBrowSkin.gotoAndStop(_eyeBrowStyle);
}
function eyeBrowColorUpdate(pValue) {
_eyeBrowColor = _65.Color2.toColor(pValue);
setTint(_headMc.eyeBrowHair, _eyeBrowColor);
}
function noseStyleUpdate(pValue) {
_noseStyle = getValue(_noseStyle, pValue, noseTotal);
_headMc.nose.gotoAndStop(_noseStyle);
}
function mouthStyleUpdate(pValue) {
_mouthStyle = getValue(_mouthStyle, pValue, mouthTotal);
_headMc.mouthSkin.gotoAndStop(_mouthStyle);
_headMc.mouthHair.gotoAndStop(_mouthStyle);
_headMc.mouthLip.gotoAndStop(_mouthStyle);
_headMc.mouthTeeth.gotoAndStop(_mouthStyle);
}
function lipColorUpdate(pValue) {
_lipColor = _65.Color2.toColor(pValue);
setTint(_headMc.mouthLip, _lipColor);
}
function facialHairColorUpdate(pValue) {
_facialHairColor = _65.Color2.toColor(pValue);
setTint(_headMc.mouthHair, _facialHairColor);
}
function save(pTarget, pId) {
var _local4 = ["_user", "_name", "_bodyType", "_skullStyle", "_hairStyle", "_hairColor", "_hairAccesoryColor", "_eyeBrowStyle", "_eyeBrowColor", "_eyeStyle", "_noseStyle", "_mouthStyle", "_facialHairColor", "_lipColor", "_shirtStyle", "_shirtColor", "_pantColor", "_shoeColor", "_skinColor"];
var _local8 = pTarget._parent._parent.xmlLoad.urls.addupdate._value;
var _local6 = {};
var _local5 = "";
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3].indexOf("Color") != -1) && (_local4[_local3] != "_skinColor")) {
_local5 = _65.Color2.toString(this[_local4[_local3]]);
} else if (_local4[_local3] == "_user") {
_local5 = _root.user.id;
} else {
_local5 = this[_local4[_local3]];
trace("this: " + this);
}
_local6[_local4[_local3].slice(1)] = _local5;
_local3++;
}
trace("isEdit: " + pTarget._parent._parent.editId);
if (pTarget._parent._parent.isEdit) {
_local6.id = pTarget._parent._parent.editId;
}
_local6.action = "addupdatecharacter";
trace((("avatar.save: " + mx.data.binding.ObjectDumper.toString(_local6)) + " save: ") + _local8);
var saveResponseData = (new _65.data.XmlData());
var _local7 = new Object();
_local7.owner = this;
_local7.pTarget = pTarget;
_local7.responseData = saveResponseData;
_local7.handleEvent = function (pObj) {
if (pObj.type == "onLoad") {
trace("login_response: " + saveResponseData.result.output);
this.owner._id = this.responseData.char.id;
trace("avatar ID: " + this.owner._id);
this.owner.saveResponse(this.pTarget, this.responseData.result.output);
} else if (pObj.type == "onError") {
trace((((("error: " + pObj.msg) + ", ") + pObj.code) + ", ") + pObj.url);
}
};
saveResponseData.addEventListener("onError", _local7);
saveResponseData.addEventListener("onLoad", _local7);
saveResponseData.load(_local8, _local6, "post", false);
}
function saveResponse(pTarget, pResponse) {
var _local2 = pTarget._parent._parent.xmlLoad.strings.saveError._value;
switch (pResponse) {
case 0 :
var _local4 = _simpsons.TextItem.createItem(pTarget, _local2, "submit", {_y:275});
break;
case 1 :
removeMovieClip(pTarget);
_root.user.login(_root, _root.user.username, _root.user.password);
}
}
function load(pObj) {
var _local3 = ["_id", "_name", "_bodyType", "_skullStyle", "_hairStyle", "_hairColor", "_hairAccesoryColor", "_eyeBrowStyle", "_eyeBrowColor", "_eyeStyle", "_noseStyle", "_mouthStyle", "_facialHairColor", "_lipColor", "_shirtStyle", "_shirtColor", "_pantColor", "_shoeColor", "_skinColor"];
for (var _local5 in _local3) {
var _local2 = _local3[_local5].slice(1);
if (pObj[_local2] != undefined) {
this[_local2] = pObj[_local2];
}
}
}
function loadResponse() {
}
function get skullTotal() {
return(4);
}
function get hairTotal() {
return(_hairTotal);
}
function set hairTotal(pValue) {
changeHairTotal(pValue);
//return(hairTotal);
}
function get eyeBrowTotal() {
return(_headMc.eyeBrowHair._totalframes);
}
function get eyeTotal() {
return(_headMc.eyeLEyeball._totalframes);
}
function get noseTotal() {
return(_headMc.nose._totalframes);
}
function get mouthTotal() {
return(_headMc.mouthSkin._totalframes);
}
function get skinTotal() {
return(skinColors.length);
}
function get shirtTotal() {
return(_bodyMc.logo._totalframes);
}
function get name() {
return(_name);
}
function set name(pValue) {
_name = pValue;
//return(name);
}
function get id() {
return(_id);
}
function set id(pValue) {
_id = pValue;
//return(id);
}
function get action() {
return(_action);
}
function set action(pValue) {
setAction(pValue);
//return(action);
}
function get yOffset() {
return(((-_yOffset) * _charMc._xscale) / 100);
}
function get yOffset2() {
return(-_yOffset);
}
function set yOffset(pValue) {
//return(yOffset);
}
function get head() {
return(_headMc);
}
function set head(pValue) {
setHead(pValue);
//return(head);
}
function get body() {
return(_bodyMc);
}
function set body(pValue) {
//return(body);
}
function get skinColor() {
return(_skinColor);
}
function set skinColor(pValue) {
skinColorUpdate(pValue);
//return(skinColor);
}
function get bodyType() {
return(_bodyType);
}
function set bodyType(pValue) {
bodyTypeUpdate(pValue);
//return(bodyType);
}
function get gender() {
return(_bodyType.charAt(0));
}
function set gender(pValue) {
bodyTypeUpdate(pValue.charAt(0), bodySize);
//return(gender);
}
function get bodySize() {
return(_bodyType.charAt(1));
}
function set bodySize(pValue) {
bodyTypeUpdate(gender, pValue.charAt(0));
//return(bodySize);
}
function get skullStyle() {
return(_skullStyle);
}
function set skullStyle(pValue) {
skullStyleUpdate(pValue);
//return(skullStyle);
}
function get shirtColor() {
return(_shirtColor);
}
function set shirtColor(pValue) {
shirtColorUpdate(pValue);
//return(shirtColor);
}
function get shirtStyle() {
return(_shirtStyle);
}
function set shirtStyle(pValue) {
shirtStyleUpdate(pValue);
//return(shirtStyle);
}
function get pantColor() {
return(_pantColor);
}
function set pantColor(pValue) {
pantColorUpdate(pValue);
//return(pantColor);
}
function get shoeColor() {
return(_shoeColor);
}
function set shoeColor(pValue) {
shoeColorUpdate(pValue);
//return(shoeColor);
}
function get hairStyle() {
return(_hairStyle);
}
function set hairStyle(pValue) {
hairStyleUpdate(pValue);
//return(hairStyle);
}
function get hairColor() {
return(_hairColor);
}
function set hairColor(pValue) {
hairColorUpdate(pValue);
//return(hairColor);
}
function get hairAccesoryColor() {
return(_hairAccesoryColor);
}
function set hairAccesoryColor(pValue) {
hairAccesoryColorUpdate(pValue);
//return(hairAccesoryColor);
}
function get eyeBrowStyle() {
return(_eyeBrowStyle);
}
function set eyeBrowStyle(pValue) {
eyeBrowStyleUpdate(pValue);
//return(eyeBrowStyle);
}
function get eyeBrowColor() {
return(_eyeBrowColor);
}
function set eyeBrowColor(pValue) {
eyeBrowColorUpdate(pValue);
//return(eyeBrowColor);
}
function get eyeStyle() {
return(_eyeStyle);
}
function set eyeStyle(pValue) {
eyeStyleUpdate(pValue);
//return(eyeStyle);
}
function get noseStyle() {
return(_noseStyle);
}
function set noseStyle(pValue) {
noseStyleUpdate(pValue);
//return(noseStyle);
}
function get mouthStyle() {
return(_mouthStyle);
}
function set mouthStyle(pValue) {
mouthStyleUpdate(pValue);
//return(mouthStyle);
}
function get lipColor() {
return(_lipColor);
}
function set lipColor(pValue) {
lipColorUpdate(pValue);
//return(lipColor);
}
function get facialHairColor() {
return(_facialHairColor);
}
function set facialHairColor(pValue) {
facialHairColorUpdate(pValue);
//return(facialHairColor);
}
var _name = "";
var _id = 0;
var _action = "stand";
var _yOffset = 0;
var _skinColor = 0;
var _bodyType = "fs";
var _skullStyle = 1;
var _shirtColor = 16777215;
var _shirtStyle = 1;
var _pantColor = 16777215;
var _shoeColor = 16777215;
var _hairStyle = 1;
var _hairColor = 16777215;
var _hairAccesoryColor = 16777215;
var _eyeBrowStyle = 1;
var _eyeBrowColor = 0;
var _eyeStyle = 1;
var _noseStyle = 1;
var _mouthStyle = 29;
var _lipColor = 16777215;
var _facialHairColor = 16777215;
static var skinColors = new Array("ffffe3", "ffffba", "fff06d", "ffd911", "feba35", "f7970f", "e87b00", "d15c00", "995429", "b27629", "d88f1f", "d0a660");
static var bodyTypes = new Array("fk", "fm", "fs", "fb", "mk", "mm", "ms", "mb");
static var genders = new Array("f", "m");
static var sizes = new Array("k", "m", "s", "b");
var _hairStyleArrF = new Array(65, 66, 67, 68, 71, 72, 75, 78, 96, 97, 101);
var _hairStyleArrM = new Array(12, 16, 17, 18, 19, 20, 21, 23, 26, 27, 28, 30, 31, 33, 34, 35, 39, 41);
var _eyeBrowStyleArr = new Array(1, 2, 4, 5, 6, 7);
var _eyeStyleArrM = new Array(1, 2, 3, 4, 12, 17);
var _eyeStyleArrF = new Array(1, 2, 3, 4, 12, 17, 20, 21, 22, 23, 24);
var _noseStyleArr = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 22, 23, 24);
var _mouthStyleArrF = new Array(8, 17, 19, 23, 27, 28, 29, 30, 31, 32, 34);
var _mouthStyleArrM = new Array(8, 17, 19, 23);
var _hairColorArr = new Array("241B1E", "211B27", "7B3422", "AA5530", "D6B081", "F09451", "E58E1A", "F68026", "E5891C", "FFFBC1");
var _lipColorArr = new Array("F44094", "FF0000", "FBB4D9", "F6014F");
var _randomSkinColors = new Array(3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
}
Symbol 1190 MovieClip [__Packages.com.quasimondo.geom.ColorMatrix] Frame 0
class com.quasimondo.geom.ColorMatrix
{
var matrix;
function ColorMatrix (mat) {
if (mat instanceof com.quasimondo.geom.ColorMatrix) {
matrix = mat.matrix.concat();
} else if (mat instanceof Array) {
matrix = mat.concat();
} else {
reset();
}
}
function reset() {
matrix = IDENTITY.concat();
}
function clone() {
return(new com.quasimondo.geom.ColorMatrix(matrix));
}
function adjustSaturation(s) {
var _local2 = 1 - s;
var _local5 = _local2 * r_lum;
var _local3 = _local2 * g_lum;
var _local4 = _local2 * b_lum;
var _local7 = Array(_local5 + s, _local3, _local4, 0, 0, _local5, _local3 + s, _local4, 0, 0, _local5, _local3, _local4 + s, 0, 0, 0, 0, 0, 1, 0);
concat(_local7);
}
function adjustContrast(r, g, b) {
g = g || (r);
b = b || (r);
r = r + 1;
g = g + 1;
b = b + 1;
var _local5 = Array(r, 0, 0, 0, 128 * (1 - r), 0, g, 0, 0, 128 * (1 - g), 0, 0, b, 0, 128 * (1 - b), 0, 0, 0, 1, 0);
concat(_local5);
}
function adjustBrightness(r, g, b) {
g = g || (r);
b = b || (r);
var _local4 = Array(1, 0, 0, 0, r, 0, 1, 0, 0, g, 0, 0, 1, 0, b, 0, 0, 0, 1, 0);
concat(_local4);
}
function adjustHue(angle) {
angle = angle * (Math.PI/180);
var _local2 = Math.cos(angle);
var _local3 = Math.sin(angle);
var _local6 = 0.213;
var _local5 = 0.715;
var _local4 = 0.072;
var _local8 = Array((_local6 + (_local2 * (1 - _local6))) + (_local3 * (-_local6)), (_local5 + (_local2 * (-_local5))) + (_local3 * (-_local5)), (_local4 + (_local2 * (-_local4))) + (_local3 * (1 - _local4)), 0, 0, (_local6 + (_local2 * (-_local6))) + (_local3 * 0.143), (_local5 + (_local2 * (1 - _local5))) + (_local3 * 0.14), (_local4 + (_local2 * (-_local4))) + (_local3 * -0.283), 0, 0, (_local6 + (_local2 * (-_local6))) + (_local3 * (-(1 - _local6))), (_local5 + (_local2 * (-_local5))) + (_local3 * _local5), (_local4 + (_local2 * (1 - _local4))) + (_local3 * _local4), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1);
concat(_local8);
}
function colorize(rgb, amount) {
var _local4 = ((rgb >> 16) & 255) / 255;
var _local6 = ((rgb >> 8) & 255) / 255;
var _local3 = (rgb & 255) / 255;
if (amount == null) {
amount = 1;
}
var _local5 = 1 - amount;
var _local8 = Array(_local5 + ((amount * _local4) * r_lum), (amount * _local4) * g_lum, (amount * _local4) * b_lum, 0, 0, (amount * _local6) * r_lum, _local5 + ((amount * _local6) * g_lum), (amount * _local6) * b_lum, 0, 0, (amount * _local3) * r_lum, (amount * _local3) * g_lum, _local5 + ((amount * _local3) * b_lum), 0, 0, 0, 0, 0, 1, 0);
concat(_local8);
}
function setAlpha(alpha) {
var _local2 = Array(1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, alpha, 0);
concat(_local2);
}
function desaturate() {
var _local2 = Array(r_lum, g_lum, b_lum, 0, 0, r_lum, g_lum, b_lum, 0, 0, r_lum, g_lum, b_lum, 0, 0, 0, 0, 0, 1, 0);
concat(_local2);
}
function invert() {
var _local2 = Array(-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0);
concat(_local2);
}
function threshold(t, f) {
if (f == null) {
f = 256;
}
var _local4 = Array(r_lum * f, g_lum * f, b_lum * f, 0, (-f) * t, r_lum * f, g_lum * f, b_lum * f, 0, (-f) * t, r_lum * f, g_lum * f, b_lum * f, 0, (-f) * t, 0, 0, 0, 1, 0);
concat(_local4);
}
function randomize(amount) {
if (amount == null) {
amount = 1;
}
var _local3 = 1 - amount;
var _local10 = _local3 + (amount * (Math.random() - Math.random()));
var _local15 = amount * (Math.random() - Math.random());
var _local12 = amount * (Math.random() - Math.random());
var _local6 = (amount * 255) * (Math.random() - Math.random());
var _local8 = amount * (Math.random() - Math.random());
var _local14 = _local3 + (amount * (Math.random() - Math.random()));
var _local11 = amount * (Math.random() - Math.random());
var _local5 = (amount * 255) * (Math.random() - Math.random());
var _local7 = amount * (Math.random() - Math.random());
var _local13 = amount * (Math.random() - Math.random());
var _local9 = _local3 + (amount * (Math.random() - Math.random()));
var _local4 = (amount * 255) * (Math.random() - Math.random());
var _local16 = Array(_local10, _local15, _local12, 0, _local6, _local8, _local14, _local11, 0, _local5, _local7, _local13, _local9, 0, _local4, 0, 0, 0, 1, 0);
concat(_local16);
}
function setChannels(r, g, b, a) {
var _local3 = (((((r & 1) == 1) ? 1 : 0) + (((r & 2) == 2) ? 1 : 0)) + (((r & 4) == 4) ? 1 : 0)) + (((r & 8) == 8) ? 1 : 0);
if (_local3 > 0) {
_local3 = 1 / _local3;
}
var _local2 = (((((g & 1) == 1) ? 1 : 0) + (((g & 2) == 2) ? 1 : 0)) + (((g & 4) == 4) ? 1 : 0)) + (((g & 8) == 8) ? 1 : 0);
if (_local2 > 0) {
_local2 = 1 / _local2;
}
var _local4 = (((((b & 1) == 1) ? 1 : 0) + (((b & 2) == 2) ? 1 : 0)) + (((b & 4) == 4) ? 1 : 0)) + (((b & 8) == 8) ? 1 : 0);
if (_local4 > 0) {
_local4 = 1 / _local4;
}
var _local5 = (((((a & 1) == 1) ? 1 : 0) + (((a & 2) == 2) ? 1 : 0)) + (((a & 4) == 4) ? 1 : 0)) + (((a & 8) == 8) ? 1 : 0);
if (_local5 > 0) {
_local5 = 1 / _local5;
}
var _local10 = Array((((r & 1) == 1) ? (_local3) : 0), (((r & 2) == 2) ? (_local3) : 0), (((r & 4) == 4) ? (_local3) : 0), (((r & 8) == 8) ? (_local3) : 0), 0, (((g & 1) == 1) ? (_local2) : 0), (((g & 2) == 2) ? (_local2) : 0), (((g & 4) == 4) ? (_local2) : 0), (((g & 8) == 8) ? (_local2) : 0), 0, (((b & 1) == 1) ? (_local4) : 0), (((b & 2) == 2) ? (_local4) : 0), (((b & 4) == 4) ? (_local4) : 0), (((b & 8) == 8) ? (_local4) : 0), 0, (((a & 1) == 1) ? (_local5) : 0), (((a & 2) == 2) ? (_local5) : 0), (((a & 4) == 4) ? (_local5) : 0), (((a & 8) == 8) ? (_local5) : 0), 0);
concat(_local10);
}
function blend(m, amount) {
var _local3 = 1 - amount;
var _local2 = 0;
while (_local2 < 20) {
matrix[_local2] = (_local3 * matrix[_local2]) + (amount * m.matrix[_local2]);
_local2++;
}
}
function concat(mat) {
var _local6 = Array();
var _local3 = 0;
var _local5 = 0;
while (_local5 < 4) {
var _local2 = 0;
while (_local2 < 5) {
_local6[_local3 + _local2] = ((((mat[_local3] * matrix[_local2]) + (mat[_local3 + 1] * matrix[_local2 + 5])) + (mat[_local3 + 2] * matrix[_local2 + 10])) + (mat[_local3 + 3] * matrix[_local2 + 15])) + ((_local2 == 4) ? (mat[_local3 + 4]) : 0);
_local2++;
}
_local3 = _local3 + 5;
_local5++;
}
matrix = _local6;
}
function get filter() {
return(new flash.filters.ColorMatrixFilter(matrix));
}
static var r_lum = 0.212671;
static var g_lum = 0.71516;
static var b_lum = 0.072169;
static var IDENTITY = Array(1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0);
}
Symbol 1191 MovieClip [__Packages._65.Color2] Frame 0
class _65.Color2
{
function Color2 () {
}
static function toString(pValue, pIsForced, pIsAlpha) {
var _local1 = pValue.toString(16);
if (pIsForced) {
if (_local1.length <= 1) {
_local1 = "0" + _local1;
}
if (_local1.length <= 2) {
_local1 = "00" + _local1;
}
if (_local1.length <= 3) {
_local1 = "0" + _local1;
}
if (_local1.length <= 4) {
_local1 = "00" + _local1;
}
if (_local1.length <= 5) {
_local1 = "0" + _local1;
}
if ((_local1.length <= 6) && (pIsAlpha)) {
_local1 = "00" + _local1;
}
if ((_local1.length <= 7) && (pIsAlpha)) {
_local1 = "0" + _local1;
}
}
return("#" + _local1.toUpperCase());
}
static function toRGB(pValue, pIsPercent) {
var _local3;
var _local4;
var _local5;
var _local2;
_local3 = (pValue & 4278190080) >> 24;
_local4 = (pValue & 16711680) >> 16;
_local5 = (pValue & 65280) >> 8;
_local2 = pValue & 255;
if (pIsPercent) {
_local3 = _local3 / 255;
_local4 = _local4 / 255;
_local5 = _local5 / 255;
_local2 = _local2 / 255;
}
return({a:_local3, r:_local4, g:_local5, b:_local2});
}
static function toColor(pArg1, pArg2, pArg3, pArg4, pArg5) {
var _local3;
var _local4 = arguments.length;
if ((_local4 == 1) && (typeof(pArg1) == "string")) {
pArg1 = pArg1.split("#").join("");
pArg1 = pArg1.split("0x").join("");
_local3 = Number("0x" + pArg1);
} else if ((_local4 == 1) && (typeof(pArg1) == "number")) {
_local3 = pArg1;
} else if (_local4 == 3) {
_local3 = ((toDigit(pArg1) << 16) | (toDigit(pArg2) << 8)) | toDigit(pArg3);
} else if (((_local4 == 4) && (typeof(pArg4) == "boolean")) && (pArg4)) {
_local3 = ((toDigit(pArg1, true) << 16) | (toDigit(pArg2, true) << 8)) | toDigit(pArg3, true);
} else if (((_local4 == 4) && (typeof(pArg4) == "boolean")) && (!pArg4)) {
_local3 = ((toDigit(pArg1) << 16) | (toDigit(pArg2) << 8)) | toDigit(pArg3);
} else if (_local4 == 4) {
_local3 = (((toDigit(pArg1) << 24) | (toDigit(pArg2) << 16)) | (toDigit(pArg3) << 8)) | toDigit(pArg4);
} else if (((_local4 == 5) && (typeof(pArg5) == "boolean")) && (pArg5)) {
_local3 = (((toDigit(pArg1, true) << 24) | (toDigit(pArg2, true) << 16)) | (toDigit(pArg3, true) << 8)) | toDigit(pArg4, true);
} else if (((_local4 == 5) && (typeof(pArg5) == "boolean")) && (!pArg5)) {
_local3 = (((toDigit(pArg1) << 24) | (toDigit(pArg2) << 16)) | (toDigit(pArg3) << 8)) | toDigit(pArg4);
}
return(_local3);
}
static function toDigit(pArg, pIsPercent) {
pArg = Number(pArg);
if (isNaN(pArg)) {
pArg = 0;
}
if (pIsPercent) {
pArg = ((pArg / 100) * 256) - 1;
}
pArg = Math.min(255, Math.max(0, Math.round(pArg)));
return(pArg);
}
static function randomRGB(pR1, pR2, pG1, pG2, pB1, pB2) {
var _local3 = ((pR1 != undefined) ? (toDigit(pR1)) : 0);
var _local2 = ((pR2 != undefined) ? (toDigit(pR2)) : 256);
var _local7 = ((pG1 != undefined) ? (toDigit(pG1)) : 0);
var _local6 = ((pG2 != undefined) ? (toDigit(pG2)) : 256);
var _local5 = ((pB1 != undefined) ? (toDigit(pB1)) : 0);
var _local4 = ((pB2 != undefined) ? (toDigit(pB2)) : 256);
var _local1 = toColor(_65.Math2.random(_local3, _local2), _65.Math2.random(_local7, _local6), _65.Math2.random(_local5, _local4));
return(_local1);
}
}
Symbol 213 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 214 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 215 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 216 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 217 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 218 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 219 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 220 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 221 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 222 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 223 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 224 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 225 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 226 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 227 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 354 MovieClip Frame 19
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
function onEnd() {
Set("_parent." + scrollTarget, Math.round(((but._x * (scrollMax - scrollMin)) / (100 - but._width)) + scrollMin));
}
if (isNaN(scrollMin)) {
scrollMin = eval ("_parent." + scrollMin);
}
if (isNaN(scrollMax)) {
scrollMax = eval ("_parent." + scrollMax);
}
but._x = ((eval ("_parent." + scrollTarget) - scrollMin) / (scrollMax - scrollMin)) * (100 - but._width);
but.onPress = function () {
go = 1;
startDrag (this, false, 0, 0, 100 - but._width, 0);
};
but.onRelease = function () {
go = 0;
stopDrag();
};
but.onReleaseOutside = function () {
go = 0;
stopDrag();
};
but.onEnterFrame = function () {
if (go == 1) {
onEnd();
}
};
onEnd();
Symbol 370 MovieClip Frame 1
mt._visible = false;
Symbol 372 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 383 MovieClip [scrim_mobile_intl] Frame 1
stop();
Symbol 398 MovieClip [dropScroller] Frame 1
#initclip 69
Object.registerClass("dropScroller", _65.gui.Scroller);
#endinitclip
buttonSize = 10;
handleResize = true;
draw();
Symbol 406 MovieClip [drop] Frame 1
#initclip 65
Object.registerClass("drop", _65.gui.DropDown);
#endinitclip
function setItem(pMc, pId) {
pMc.onRollOver = function () {
ZigoEngine.doTween(this.bgMc, "_tint", {tint:7967902, percent:100}, 0.4, "easeOutSine");
ZigoEngine.doTween(this.titleTxt, "_tint", {tint:16777215, percent:100}, 0.4, "easeOutSine");
};
pMc.onRollOut = (pMc.onReleaseOutside = function () {
ZigoEngine.doTween(this.bgMc, "_tint", {tint:0, percent:0}, 1, "easeInOutSine");
ZigoEngine.doTween(this.titleTxt, "_tint", {tint:0, percent:0}, 1, "easeInOutSine");
});
}
linkItemID = "dropEntry";
linkScrollerID = "dropScroller";
var dropListener = new Object();
dropListener.mcRef = this;
dropListener.onValueChange = function (pObj) {
this.value = pObj.value;
_root.dropSelect(this.mcRef._parent, this.mcRef.section);
};
addEventListener("onValueChange", dropListener);
Symbol 420 MovieClip Frame 179
gotoAndPlay (30);
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
play();
Symbol 458 MovieClip Frame 18
gotoAndPlay (2);
Symbol 464 MovieClip Frame 8
if (Math.abs(_parent._parent.ketten.xspeed) < 1) {
gotoAndPlay(_currentframe - 1);
}
Symbol 464 MovieClip Frame 12
if (_parent._parent.ketten.xspeed < -1) {
gotoAndPlay(_currentframe - 1);
}
Symbol 464 MovieClip Frame 32
if (_parent._parent.ketten.xspeed > 1) {
gotoAndPlay(_currentframe - 1);
} else if (_parent._parent.ketten.kr) {
gotoAndPlay(back);
} else {
gotoAndPlay (1);
}
Symbol 464 MovieClip Frame 58
gotoAndPlay (1);
Instance of Symbol 464 MovieClip "kabine" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
function crash() {
act = "crash";
gotoAndPlay(act);
}
aktiv = true;
act = "start";
gotoAndPlay (2);
}
Instance of Symbol 466 MovieClip "topdummy" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 497 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 1
function newGame() {
ccc = 0;
level = 0;
kampos = ketten._x - 200;
kamspeed = 0;
staubs = 0;
newLevel();
}
function newLevel() {
ketten.reset();
arm.reset();
kaltx = seil13._x;
seil13.gotoAndStop(1);
hitted = false;
anistop = false;
homiecrash = false;
bouncedivisor = 1;
anistop = false;
}
function doRope() {
if (!anistop) {
rpx = 0;
rpy = 0;
var _local3 = arm.topdummy._x;
var _local2 = arm.topdummy._y;
var _local6 = ((Math.atan2(_local2, _local3) * 180) / Math.PI) + 90;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local4 = (ketten._rotation + _local6) - 90;
rpx = (Math.cos(_local4 / 57.1769862953342) * _local5) + arm._x;
rpy = (Math.sin(_local4 / 57.1769862953342) * _local5) + arm._y;
seil0._x = rpx;
seil0._y = rpy;
i = 0;
while (i < anzahlRopes) {
moveRope(this["seil" + i]);
limitRope(this["seil" + i]);
if (i == 12) {
kxspeed = seil13._x - kaltx;
kaltx = seil13._x;
}
i++;
}
}
}
moveRope = function (rope) {
var _local5 = rope._x;
var _local4 = rope._y;
var _local1 = rope.velox;
var _local3 = rope.veloy;
var _local8 = rope.letzter;
var _local13 = 1.5;
_local1 = _local1 * 0.75;
_local3 = _local3 * 0.75;
_local5 = _local5 + _local1;
_local4 = _local4 + _local3;
if (_local8) {
if (!hitted) {
var _local11 = flytruck._x - seil13._x;
var _local6 = (seil13._y + 13) - flytruck._y;
var _local17 = Math.sqrt((_local11 * _local11) + (_local6 * _local6)) - 20;
if (_local17 < 40) {
var _local10 = (-Math.abs(kxspeed / 3)) + (Math.abs(_local6 / 30) / bouncedivisor);
var _local7 = -2 + (((_local6 / -7) * (1 + Math.abs(_local10 / 3))) / bouncedivisor);
if (_local7 > 0) {
_local7 = _local7 / 4;
}
var _local16 = (_local7 * Math.abs(_local6 / 100)) - 1;
flytruck.startFly(_local10, _local7, _local16);
sch.schOn();
hitted = true;
relKam = _x;
}
}
if (seil13._y < boden) {
_local3 = _local3 + 4;
_local1 = _local1 * 1.25;
} else {
_local3 = 0;
_local1 = 0;
}
var _local15 = _local8._x - _local5;
var _local14 = _local8._y - _local4;
rope._rotation = (Math.atan2(_local14, _local15) * 180) / Math.PI;
var _local12 = Math.sqrt((_local15 * _local15) + (_local14 * _local14));
_local1 = _local1 + ((_local15 / _local12) * _local13);
_local3 = _local3 + ((_local14 / _local12) * _local13);
if (ketten.act == "crash") {
if (_local1 > -10) {
_local1 = _local1 * 1.1;
}
}
} else {
var _local9 = rope.naechster;
var _local15 = _local9._x - _local5;
var _local14 = _local9._y - _local4;
rope._rotation = ((Math.atan2(_local14, _local15) * 180) / Math.PI) + 180;
}
if (seil13._x > arm._x) {
if (ketten.act != "crash") {
_local1 = -Math.abs(_local1);
} else if ((!hitted) and (!homiecrash)) {
homiecrash = true;
arm.kabine.gotoAndStop("nohomie");
arm.pendel = true;
var _local18 = 0;
seil13.gotoAndPlay(5);
}
}
if (_local4 > (boden - 15)) {
_local4._y = boden - 15;
_local3 = 0;
_local1 = 0;
}
rope._x = _local5;
rope._y = _local4;
rope.velox = _local1;
rope.veloy = _local3;
};
limitRope = function (rope) {
var _local3 = rope._x;
var _local2 = rope._y;
var _local1 = rope.letzter;
if (_local1) {
var _local5 = _local1._x - _local3;
var _local4 = _local1._y - _local2;
var _local7 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
_local3 = _local1._x - ((_local5 / _local7) * 14);
_local2 = _local1._y - ((_local4 / _local7) * 14);
}
rope._x = _local3;
rope._y = _local2;
};
anzahlRopes = 14;
boden = ketten._y;
startx = arm._x + arm.topdummy._x;
starty = arm._y + arm.topdummy._y;
var nodes = [];
var i = 0;
while (i < anzahlRopes) {
var node = ((nodes[i] = this["seil" + i]));
this["seil" + i]._x = (this["seil" + i].posx = startx);
this["seil" + i]._y = (this["seil" + i].posy = starty + (i * 18));
this["seil" + i].velox = 0;
this["seil" + i].veloy = 0;
if (i > 0) {
node.letzter = nodes[i - 1];
} else {
node._rotation = -90;
}
moveRope(node);
limitRope(node);
i++;
}
this.onEnterFrame = doRope;
Instance of Symbol 491 MovieClip "arm" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
function reset() {
_rotation = 0;
aktiv = true;
pendel = false;
kpos = 30;
r = -0.25;
kabine.gotoAndPlay(2);
gotoAndStop(kpos);
}
reset();
}
onClipEvent (enterFrame) {
if (!pendel) {
if (kpos < 41) {
kpos++;
gotoAndStop(kpos);
}
} else if (_parent.seil13._x < (topdummy._x + _x)) {
if ((kpos > 34) and (kpos < 42)) {
kpos = kpos + r;
} else {
r = r * -1;
kpos = kpos + r;
}
gotoAndStop(Math.abs(kpos));
}
}
Instance of Symbol 494 MovieClip "ketten" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
function reset() {
aktiv = false;
act = "crash";
xspeed = 0;
_x = homex;
xx = _x;
yy = _y;
_rotation = 0;
rotation = 0;
rspeed = 0;
maxspeed = 30;
maxback = 10;
accel = 0.5;
endArmChanged = false;
gotoAndStop (1);
}
homex = _x;
reset();
}
Instance of Symbol 497 MovieClip "medtrees2" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
function reset() {
gotoAndStop (1);
_x = homex;
}
homex = _x;
}
onClipEvent (enterFrame) {
_x = (_x + (_parent.kamspeed / 4));
if ((_x + _parent._x) > 840) {
_x = (_x - 1680);
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
} else if ((_x + _parent._x) < -200) {
_x = (_x + 1680);
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
}
Instance of Symbol 503 MovieClip "c3" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
function reset() {
_x = homex;
}
homex = _x;
}
onClipEvent (enterFrame) {
_x = (_x + (_parent.kamspeed / 2.4));
if ((_x + _parent._x) > 640) {
_x = (_x - 840);
} else if ((_x + _parent._x) < -200) {
_x = (_x + 840);
}
}
Symbol 504 MovieClip Frame 2
newGame();
stop();
Symbol 542 MovieClip Frame 1
gotoAndPlay (355);
Symbol 542 MovieClip Frame 569
gotoAndPlay (2);
Symbol 593 MovieClip Frame 1
stop();
Symbol 594 MovieClip [scrim_mobile] Frame 1
stop();
Symbol 631 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 1
stop();
Symbol 716 MovieClip [scrim_account] Frame 1
stop();
Symbol 716 MovieClip [scrim_account] Frame 2
stop();
Symbol 739 MovieClip [scroller] Frame 1
#initclip 66
Object.registerClass("scroller", _65.gui.Scroller);
#endinitclip
function hide() {
_alpha = 0;
}
function show() {
_alpha = 100;
}
handleResize = false;
draw();
Symbol 742 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 1
stop();
Symbol 765 MovieClip [scrim_login] Frame 1
stop();
Symbol 765 MovieClip [scrim_login] Frame 3
stop();
Symbol 765 MovieClip [scrim_login] Frame 5
stop();
Symbol 795 MovieClip [vid] Frame 1
#initclip 67
Object.registerClass("vid", _65.media.VideoPlayer);
#endinitclip
controlPosition = "inside";
bufferTime = 10;
Symbol 804 MovieClip Frame 1
stop();
Symbol 805 MovieClip [scrim_gallery] Frame 1
stop();
Symbol 812 MovieClip [about_content] Frame 1
stop();
Symbol 816 MovieClip [downloads_wallpapers_character] Frame 1
stop();
Symbol 831 MovieClip Frame 1
var count = 0;
this.onMouseMove = function () {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
count++;
if (count == 1) {
this.links.tween("_alpha", 0, 0.5, "easeInOutSine", null, function () {
count = 0;
});
}
}
};
Symbol 832 MovieClip [wallpaper_content] Frame 1
stop();
Symbol 837 MovieClip Frame 1
mask.cacheAsBitmap = true;
thumbs.cacheAsBitmap = true;
thumbs.setMask(mask);
Symbol 838 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 1
stop();
Symbol 851 MovieClip [scrim_downloads] Frame 1
stop();
Symbol 888 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 18
stop();
Symbol 888 MovieClip Frame 31
stop();
Symbol 889 MovieClip [topNavBlock] Frame 1
stop();
trace("hit frame 1");
block.onRollOver = function () {
var _local3 = this._parent;
_local3.gotoAndStop(2);
_local3.block.inner.tween("_alpha", 0, 0.5, "easeInOutSine", 0.3);
_local3.block.tween("_y", 250, 1, _root.customBounce_alt);
_root.initTopNavContent(_local3, _local3.title, _local3.name);
_65.media.AudioController.addAudio("top_nav_rollover");
_root.toggleMapSections(false);
};
Symbol 889 MovieClip [topNavBlock] Frame 2
stop();
var count = 0;
this.onMouseMove = function () {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
count++;
if (count == 1) {
var parent = this;
_root.outTopNavContent(parent, parent.title);
parent.block.tween("_y", 0, 1, _root.customBounce_alt, null, function () {
parent.gotoAndStop(1);
parent.block.gotoAndStop(18);
parent.block.inner.tween("_alpha", 100, 0.5, "easeInOutSine");
});
_65.media.AudioController.addAudio("top_nav_rollout");
_root.toggleMapSections(true);
}
}
};
Symbol 933 MovieClip [bart_shooter] Frame 1
stop();
Symbol 933 MovieClip [bart_shooter] Frame 13
stop();
Symbol 942 MovieClip [foreground] Frame 1
#initclip 68
Object.registerClass("foreground", _simpsons.Resize);
#endinitclip
Symbol 1016 MovieClip Frame 431
_65.media.AudioController.addAudio("sirens", 100);
Symbol 1016 MovieClip Frame 565
_65.media.AudioController.addAudio("skid_and_crash", 100);
Symbol 1016 MovieClip Frame 650
stop();
Symbol 1051 MovieClip Frame 1
smoke_holder.setMask(mask);
smoke_holder.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
Symbol 1102 MovieClip Frame 17
if ((random(10) + 1) > 6) {
play();
} else {
gotoAndPlay (1);
}
Symbol 1123 MovieClip [bird0] Frame 1
stop();
Symbol 1123 MovieClip [bird0] Frame 2
stop();
Symbol 1123 MovieClip [bird0] Frame 35
gotoAndStop (2);
Symbol 1126 MovieClip [bird3] Frame 1
stop();
Symbol 1126 MovieClip [bird3] Frame 2
stop();
Symbol 1126 MovieClip [bird3] Frame 50
gotoAndStop (2);
Symbol 1136 MovieClip [bird2] Frame 1
stop();
Symbol 1136 MovieClip [bird2] Frame 2
stop();
Symbol 1136 MovieClip [bird2] Frame 45
gotoAndStop (2);
Symbol 1138 MovieClip [bird1] Frame 1
stop();
Symbol 1138 MovieClip [bird1] Frame 2
stop();
Symbol 1138 MovieClip [bird1] Frame 23
gotoAndStop (2);
Symbol 1141 MovieClip [bird4] Frame 1
stop();
Symbol 1141 MovieClip [bird4] Frame 2
stop();
Symbol 1141 MovieClip [bird4] Frame 25
gotoAndStop (2);
Symbol 1167 MovieClip [scrim] Frame 1
stop();
Symbol 1167 MovieClip [scrim] Frame 18
stop();
Symbol 1167 MovieClip [scrim] Frame 40
stop();