Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"58408dba73ff3e97", res:"600x400"});
mochi.as2.MochiServices.connect("58408dba73ff3e97");
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
Frame 3
function initAll() {
trace("init all");
resetGame();
ROOT.attachMovie("screen_intro", "screen_intro", DEP_SCREEN_INTRO, {_x:0, _y:0});
initSounds();
screen_intro.butPlay.onPress = function () {
closeAllScreens();
muteSounds = false;
ROOT.gotoAndStop("game");
initGame();
stats.butPause.enabled = true;
};
screen_intro.butPlay.onRollOver = function () {
this.gotoAndStop(2);
};
screen_intro.butPlay.onRollOut = function () {
this.gotoAndStop(1);
};
screen_intro.butRaiko.onRelease = function () {
getURL ("http://www.raikogames.com", "_blank");
};
}
function playAgain() {
closeAllScreens();
resetGame();
initGame();
tutAnim.gotoAndStop(1);
stats.butPause.enabled = true;
}
function closeAllScreens() {
screen_game_over.removeMovieClip();
screen_pause.removeMovieClip();
screen_intro.removeMovieClip();
screen_bg._visible = false;
bloker._visible = false;
}
function initGame() {
trace("initGame");
bloker._visible = false;
bloker.swapDepths(DEP_BLOKER);
bloker.onPress = function () {
};
bloker.useHandCursor = false;
stopSounds();
maskMain.swapDepths(DEP_MASK_MAIN);
screen_bg.swapDepths(DEP_SCREEN_BG);
water.swapDepths(DEP_WATER);
water._visible = true;
stats.butMute.sound_off._visible = false;
tasmociag.swapDepths(DEP_LINE);
if (!muteSounds) {
sound_pulley.start(0, loops);
sound_gulls.start(0, loops);
}
stats.swapDepths(DEP_STATS);
stats._visible = true;
screen_bg._visible = false;
pir._visible = true;
pir.swapDepths(DEP_PIR);
pir.states.gotoAndStop(1);
pirE = false;
pir._x = 275;
pir._y = 350;
clickArea.enabled = true;
tasmociag.gotoAndPlay(2);
tutAnim.gotoAndStop(2);
trace("tutAnim:" + tutAnim);
scoreVal = 0;
minTime = 8;
maxTime = 18;
pirState = "";
paused = false;
energyVal = energyVal_DEF;
initFish();
initInfo();
updateEnergy();
stats.butPause.onPress = function () {
this.gotoAndStop(1);
if (!paused) {
ropeTween0.pause();
ropeTween1.pause();
ropeTween2.pause();
ropeTween3.pause();
ropeTween4.pause();
clickArea.enabled = (stats.butPause.enabled = paused);
clickArea.enabled = (stats.butPause.enabled = paused);
tasmociag.gotoAndStop(tasmociag._currentframe);
tutAnim.gotoAndStop(tutAnim._currentframe);
sound_pulley.stop("pulley");
screen_bg._visible = true;
ROOT.attachMovie("screen_pause", "screen_pause", DEP_SCREEN_PAUSE, {_x:0, _y:-300});
com.greensock.TweenMax.to(screen_pause, 1, {_x:0, _y:0, ease:com.greensock.easing.Expo.easeOut});
paused = !paused;
screen_pause.butResume.onPress = function () {
bloker._visible = true;
com.greensock.TweenMax.to(screen_pause, 0.7, {_x:0, _y:-300, ease:com.greensock.easing.Back.easeIn, onComplete:makeResume});
};
screen_pause.butResume.onRollOver = function () {
this.gotoAndStop(2);
};
screen_pause.butResume.onRollOut = function () {
this.gotoAndStop(1);
};
screen_pause.butMenu.onPress = function () {
water._visible = false;
finishGame();
closeAllScreens();
pir._visible = false;
stats._visible = false;
initAll();
};
screen_pause.butMenu.onRollOver = function () {
this.gotoAndStop(2);
};
screen_pause.butMenu.onRollOut = function () {
this.gotoAndStop(1);
};
}
};
stats.butPause.onRollOver = function () {
this.gotoAndStop(2);
};
stats.butPause.onRollOut = function () {
this.gotoAndStop(1);
};
stats.butMute.onPress = function () {
muteSounds = !muteSounds;
stats.butMute.sound_off._visible = muteSounds;
if (muteSounds) {
stopSounds();
} else {
startSounds();
}
trace("mute:" + muteSounds);
};
stats.butMute.onRollOver = function () {
this.gotoAndStop(2);
};
stats.butMute.onRollOut = function () {
this.gotoAndStop(1);
};
ROOT.onEnterFrame = function () {
mm.text = "pause";
if (!paused) {
mm.text = "EnFr";
rotVal = (Math.abs(250 - _xmouse) - 1) / 5;
if (_xmouse > pir._x) {
rot = 1;
} else if (_xmouse <= pir._x) {
rot = -1;
}
ROOT.clickArea.onPress = function () {
pirState = "jump";
comboX = _xmouse;
comboY = _ymouse;
if (!pirE) {
pirAnim("jump");
}
};
if ((scoreVal >= 10) && (scoreVal < 20)) {
minTime = 10;
maxTime = 18;
} else if ((scoreVal >= 20) && (scoreVal < 30)) {
minTime = 8;
maxTime = 15;
} else if ((scoreVal >= 40) && (scoreVal < 50)) {
minTime = 6;
maxTime = 13;
} else if ((scoreVal >= 50) && (scoreVal < 100)) {
minTime = 6;
maxTime = 13;
} else if ((scoreVal >= 100) && (scoreVal < 150)) {
minTime = 4;
maxTime = 8;
} else if (scoreVal >= 150) {
minTime = 3;
maxTime = 6;
} else {
minTime = 6;
maxTime = 8;
}
if (!pirE) {
if (rot > 0) {
pir.gotoAndStop(2);
} else {
pir.gotoAndStop(1);
}
}
if (pir._y > posWater._y) {
if (comboCount > 1) {
ROOT.createEmptyMovieClip("blankCombo", 2998);
blankCombo._x = comboX;
blankCombo._y = comboY;
textAnimate("combo +" + (POINTS * comboCount), 1, blankCombo, 10, 5804213, 2000);
trace("comboCount:" + comboCount);
comboCount = 0;
}
pirE = false;
if (pir._y > (posWater._y + 20)) {
pir.states.gotoAndStop(1);
pirTween.pause();
pirState = "ready";
if (((pir._x > 70) || (_xmouse > 70)) && ((pir._x < 500) || (_xmouse < 500))) {
if (Math.abs(_xmouse - pir._x) < 1) {
pir._x = _xmouse;
} else {
pir._x = pir._x - ((pir._x - _xmouse) / 36);
}
if (Math.abs(pirYdef - pir._y) < 1) {
pir._y = pirYdef;
} else {
pir._y = pir._y + 0.5;
}
}
}
}
}
};
}
function makeResume() {
closeAllScreens();
paused = !paused;
ropeTween0.resume();
ropeTween1.resume();
ropeTween2.resume();
ropeTween3.resume();
ropeTween4.resume();
tasmociag.gotoAndPlay(2);
if (tutAnim._currentframe > 1) {
tutAnim.gotoAndPlay(tutAnim._currentframe + 1);
}
if (!muteSounds) {
sound_pulley.start(0, loops);
}
clickArea.enabled = (stats.butPause.enabled = true);
}
function finishGame() {
ROOT.onEnterFrame = null;
sound_pulley.stop("pulley");
ropeTween0.pause();
ropeTween1.pause();
ropeTween2.pause();
ropeTween3.pause();
ropeTween4.pause();
clickArea.enabled = (stats.butPause.enabled = false);
tasmociag.gotoAndStop(tasmociag._currentframe);
screen_bg._visible = true;
ROOT.attachMovie("screen_game_over", "screen_game_over", DEP_GAME_OVER, {_x:0, _y:-300});
com.greensock.TweenMax.to(screen_game_over, 1, {_x:0, _y:0, ease:com.greensock.easing.Expo.easeOut});
screen_game_over.tfScore.text = scoreVal;
screen_game_over.butPlayAgain.onPress = function () {
bloker._visible = true;
com.greensock.TweenMax.to(screen_game_over, 0.7, {_x:0, _y:-300, ease:com.greensock.easing.Back.easeIn, onComplete:playAgain});
};
screen_game_over.butPlayAgain.onRollOver = function () {
this.gotoAndStop(2);
};
screen_game_over.butPlayAgain.onRollOut = function () {
this.gotoAndStop(1);
};
screen_game_over.butMenu.onPress = function () {
actionButMenu();
};
screen_game_over.butMenu.onRollOver = function () {
this.gotoAndStop(2);
};
screen_game_over.butMenu.onRollOut = function () {
this.gotoAndStop(1);
};
screen_game_over.butSubmitScore.onPress = function () {
submitScore();
};
screen_game_over.butSubmitScore.onRollOver = function () {
this.gotoAndStop(2);
};
screen_game_over.butSubmitScore.onRollOut = function () {
this.gotoAndStop(1);
};
trace("--finishGame--scoreVal:" + scoreVal);
}
function actionButMenu() {
water._visible = false;
finishGame();
closeAllScreens();
pir._visible = false;
stats._visible = false;
initAll();
}
function submitScore() {
bloker._visible = true;
mochi.as2.MochiScores.showLeaderboard({boardID:"c1e213fcf949fbd3", score:scoreVal, onClose:actionButMenu});
}
function resetGame() {
trace("--resetGame");
for (i in fishContainer) {
fishContainer[i].removeMovieClip();
}
tasmociag.gotoAndStop(1);
screen_bg._visible = false;
}
function initInfo() {
scoreVal = 0;
addScore(scoreVal);
}
function initSounds() {
sound_bite.attachSound("bite");
sound_bite_miss.attachSound("bite_miss1");
sound_jump_in.attachSound("jump_in");
sound_jump_out.attachSound("jump_out");
sound_pulley.attachSound("pulley");
sound_gulls.attachSound("gulls");
}
function stopSounds() {
sound_pulley.stop("pulley");
sound_gulls.stop("gulls");
}
function startSounds() {
sound_pulley.start();
sound_gulls.start();
}
function createRope(id, dy, dt, dd) {
fishContainer.attachMovie("rope", "r" + id, DEP_FISH - id, {_x:-40, _y:10});
var _local1 = fishContainer["r" + id];
_local1.rope.mask._height = 50 + dy;
_local1._rotation = (los() ? 5 : -5);
_local1.fish.gotoAndStop(drawNumber(1, 4));
_local1.fish._y = 30 + dy;
_local1.fish.tf.text = id;
_local1.points = POINTS;
ROOT["ropeTween" + id] = com.greensock.TweenMax.to(_local1, dt, {_x:fishContainer._width - 40, _y:10, delay:dd, ease:com.greensock.easing.Linear.easeNone, onComplete:fishRemove, onCompleteParams:[_local1, id, 1]});
ropeRotation(_local1);
}
function ropeRotation(mc) {
if (mc._rotation > 0) {
rr = -1 * drawNumber(1, 5);
} else {
rr = drawNumber(1, 5);
}
com.greensock.TweenMax.to(mc, 1, {_rotation:rr, ease:com.greensock.easing.Linear.easeNone, onComplete:ropeRotation, onCompleteParams:[mc]});
}
function initFish() {
var _local5 = new Array();
var _local1 = 0;
while (_local1 < MAX_FISH) {
var _local2 = drawNumber(0, 130);
var _local4 = drawNumber(minTime, maxTime);
var _local3 = drawNumber(0, 4);
createRope(_local1, _local2, _local4, _local3);
_local1++;
}
}
function fishUp(mc) {
}
function fishRemove(mc, id, normalEnd) {
mc.removeMovieClip();
if (normalEnd == 1) {
energyVal--;
updateEnergy();
}
var _local1 = drawNumber(0, 130);
var _local3 = drawNumber(minTime, maxTime);
var _local2 = drawNumber(0, 4);
ROOT["ropeTween" + id].pause();
if (energyVal <= 0) {
finishGame();
return(undefined);
}
createRope(id, _local1, _local3, _local2);
}
function pirAnim(what) {
switch (what) {
case "jump" :
if (!muteSounds) {
sound_jump_out.start();
}
comboCount = 0;
pir.states.gotoAndStop(2);
var _local1 = Math.sqrt(((pir._x - _xmouse) * (pir._x - _xmouse)) + ((pir._y - _ymouse) * (pir._y - _ymouse)));
var _local2 = _local1 / 170;
pirE = true;
pirTween = com.greensock.TweenMax.to(pir, _local2 * 0.3, {_x:_xmouse, _y:_ymouse, _rotation:rotVal * rot, onComplete:catchFish, ease:com.greensock.easing.Quint.easeOut});
break;
case 1 :
break;
case 2 :
}
}
function catchFish() {
var _local2 = false;
pir.states.gotoAndStop(5);
var _local1 = 0;
while (_local1 < MAX_FISH) {
fish = fishContainer["r" + _local1].fish;
ropeFull = fishContainer["r" + _local1];
fishContainer.ropeFull.localToGlobal(fish);
if (pir.pos.hitTest(fish)) {
addScore(ropeFull.points);
textAnimate("+" + POINTS, 1, ropeFull, 10, 5804213, 2000);
fishRemove(ropeFull, _local1, 0);
_local2 = true;
comboCount++;
if ((comboCount == 1) && (!muteSounds)) {
sound_bite.start();
}
}
_local1++;
}
if (!_local2) {
if (!muteSounds) {
sound_bite_miss.start();
}
addScore(POINTS * -1);
ROOT.createEmptyMovieClip("blank", 2999);
blank._x = _xmouse;
blank._y = _ymouse;
textAnimate("-" + POINTS, 0, blank, 10, 13509632, 2000);
}
pirTween = new com.greensock.TweenMax(pir, 0, {delay:0.1, onComplete:goDown, onCompleteParams:[pir]});
}
function textAnimate(str, dir, obj, ox, clr, dur) {
var _local6 = ox;
var _local8 = DEP_INFO;
var _local5 = ((obj._parent == ROOT.fishContainer) ? (obj.fish._y) : (obj._y));
var _local2 = fishContainer.attachMovie("points_info", "p" + DEP_INFO, DEP_INFO, {_x:obj._x, _y:_local5});
_local2.tf0.autoSize = (_local2.tf1.autoSize = true);
_local2.tf0.text = (_local2.tf1.text = str);
_local2.tf0.textColor = clr;
_local2.tf1.textColor = 16777215 /* 0xFFFFFF */;
_local2.dur = dur;
_local2.startTime = getTimer();
_local2.onEnterFrame = function () {
var _local2 = (getTimer() - this.startTime) / this.dur;
if (_local2 > 1) {
this.removeMovieClip();
}
if (dir == 1) {
this._y = this._y - 0.5;
} else {
this._y = this._y + 0.5;
}
};
DEP_INFO++;
}
function goDown() {
if (!muteSounds) {
sound_jump_in.start();
}
pirState = "down";
pir.states.gotoAndStop(1);
pirTween = com.greensock.TweenMax.to(pir, 1.5, {_x:pir._x, _y:pirYdef, _rotation:0, onComplete:pirReady, ease:com.greensock.easing.Expo.easeOut});
}
function pirReady() {
trace("---goDown skonczony ---");
}
function addScore(s) {
scoreVal = scoreVal + s;
stats.score.text = scoreVal;
screen_game_over.tfScore.text = scoreVal;
}
function updateEnergy() {
stats.energy.bar._width = 100 * ((energyVal * 10) / 100);
}
function inArray(arr, val) {
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == val) {
return(true);
}
_local1++;
}
return(false);
}
function drawNumber(minA, maxB) {
var _local1 = Math.floor(Math.random() * ((maxB - minA) + 1)) + minA;
return(_local1);
}
function los() {
var _local1 = ((Math.random() < 0.5) ? true : false);
return(_local1);
}
com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin]);
var ROOT = this;
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
var DEP_BLOKER = 5020;
var DEP_MASK_MAIN = 5015;
var DEP_SCREEN_INTRO = 5014;
var DEP_SCREEN_PAUSE = 5013;
var DEP_GAME_OVER = 5012;
var DEP_SCREEN_BG = 5011;
var DEP_INFO = 5010;
var DEP_STATS = 5006;
var DEP_WATER = 5005;
var DEP_PIR = 5000;
var DEP_LINE = 170;
var DEP_FISH = 100;
var DEP_ROPE = 50;
var MAX_FISH = 5;
var pirTween;
var ropeTween0;
var ropeTween1;
var ropeTween2;
var ropeTween3;
var ropeTween4;
var pirYdef = 350;
var pirState = "";
var scoreVal = 0;
var minTime = 8;
var maxTime = 18;
var paused = false;
var POINTS = 5;
var comboCount = 0;
var energyStep = 20;
var energyVal = 10;
var energyVal_DEF = 10;
var loops = 1000000;
var muteSounds = false;
var sound_bite = new Sound();
var sound_bite_miss = new Sound();
var sound_jump_in = new Sound();
var sound_jump_out = new Sound();
var sound_pulley = new Sound();
var sound_gulls = new Sound();
Frame 4
stop();
initAll();
Symbol 20 MovieClip Frame 1
stop();
Symbol 25 MovieClip [plusk] Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 90 MovieClip [pir] Frame 1
stop();
Symbol 145 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local10 + ".swf", "POST");
}
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 146 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 147 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.7 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 148 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 149 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 150 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 151 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 152 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 153 MovieClip [__Packages.com.greensock.easing.Linear] Frame 0
class com.greensock.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 154 MovieClip [__Packages.com.greensock.easing.Quint] Frame 0
class com.greensock.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d * 0.5);
if (t < 1) {
return(((((((c * 0.5) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c * 0.5) * (((((t * t) * t) * t) * t) + 2)) + b);
}
}
Symbol 155 MovieClip [__Packages.com.greensock.core.TweenCore] Frame 0
class com.greensock.core.TweenCore
{
static var _classInitted;
var vars, cachedDuration, cachedTotalDuration, _delay, cachedTimeScale, active, cachedTotalTime, cachedTime, data, gc, initted, cacheIsDirty, cachedPaused, cachedReversed, _rawPrevTime, cachedStartTime, timeline, _pauseTime;
function TweenCore (duration, vars) {
this.vars = vars || ({});
cachedDuration = (cachedTotalDuration = duration || 0);
_delay = Number(this.vars.delay) || 0;
cachedTimeScale = this.vars.timeScale || 1;
active = Boolean(((duration == 0) && (_delay == 0)) && (this.vars.immediateRender != false));
cachedTotalTime = (cachedTime = 0);
data = this.vars.data;
gc = (initted = (cacheIsDirty = (cachedPaused = (cachedReversed = false))));
_rawPrevTime = -1;
if (!_classInitted) {
if (isNaN(com.greensock.TweenLite.rootFrame)) {
com.greensock.TweenLite.initClass();
_classInitted = true;
} else {
return;
}
}
var _local2 = ((this.vars.timeline instanceof com.greensock.core.SimpleTimeline) ? (this.vars.timeline) : (((this.vars.useFrames == true) ? (com.greensock.TweenLite.rootFramesTimeline) : (com.greensock.TweenLite.rootTimeline))));
cachedStartTime = _local2.cachedTotalTime + _delay;
_local2.addChild(this);
if (this.vars.reversed) {
cachedReversed = true;
}
if (this.vars.paused) {
paused = (true);
}
}
function play() {
reversed = (false);
paused = (false);
}
function pause() {
paused = (true);
}
function resume() {
paused = (false);
}
function restart(includeDelay, suppressEvents) {
reversed = (false);
paused = (false);
setTotalTime((includeDelay ? (-_delay) : 0), Boolean(suppressEvents != false));
}
function reverse(forceResume) {
reversed = (true);
if (forceResume != false) {
paused = (false);
} else if (gc) {
setEnabled(true, false);
}
}
function renderTime(time, suppressEvents, force) {
}
function complete(skipRender, suppressEvents) {
if (!skipRender) {
renderTime(totalDuration, suppressEvents, false);
return(undefined);
}
if (timeline.autoRemoveChildren) {
setEnabled(false, false);
} else {
active = false;
}
if (!suppressEvents) {
if ((vars.onComplete && (cachedTotalTime == cachedTotalDuration)) && (!cachedReversed)) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
} else if ((cachedReversed && (cachedTotalTime == 0)) && (vars.onReverseComplete)) {
vars.onReverseComplete.apply(vars.onReverseCompleteScope, vars.onReverseCompleteParams);
}
}
}
function invalidate() {
}
function setEnabled(enabled, ignoreTimeline) {
if (enabled == gc) {
if (enabled) {
active = Boolean(((!cachedPaused) && (cachedTotalTime > 0)) && (cachedTotalTime < cachedTotalDuration));
if (ignoreTimeline != true) {
timeline.addChild(this);
}
} else {
active = false;
if (ignoreTimeline != true) {
timeline.remove(this, true);
}
}
gc = !enabled;
}
return(false);
}
function kill() {
setEnabled(false, false);
}
function setDirtyCache(includeSelf) {
var _local2 = ((includeSelf != false) ? this : (timeline));
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
}
}
function setTotalTime(time, suppressEvents) {
if (timeline) {
var _local3 = ((_pauseTime || (_pauseTime == 0)) ? (_pauseTime) : (timeline.cachedTotalTime));
if (cachedReversed) {
var _local4 = (cacheIsDirty ? (totalDuration) : (cachedTotalDuration));
cachedStartTime = _local3 - ((_local4 - time) / cachedTimeScale);
} else {
cachedStartTime = _local3 - (time / cachedTimeScale);
}
if (!timeline.cacheIsDirty) {
setDirtyCache(false);
}
if (cachedTotalTime != time) {
renderTime(time, suppressEvents, false);
}
}
}
function get delay() {
return(_delay);
}
function set delay(n) {
startTime = startTime + (n - _delay);
_delay = n;
//return(delay);
}
function get duration() {
return(cachedDuration);
}
function set duration(n) {
cachedDuration = (cachedTotalDuration = n);
setDirtyCache(false);
//return(duration);
}
function get totalDuration() {
return(cachedTotalDuration);
}
function set totalDuration(n) {
duration = (n);
//return(totalDuration);
}
function get currentTime() {
return(cachedTime);
}
function set currentTime(n) {
setTotalTime(n, false);
//return(currentTime);
}
function get totalTime() {
return(cachedTotalTime);
}
function set totalTime(n) {
setTotalTime(n, false);
//return(totalTime);
}
function get startTime() {
return(cachedStartTime);
}
function set startTime(n) {
var _local2 = Boolean((timeline != undefined) && ((n != cachedStartTime) || (gc)));
cachedStartTime = n;
if (_local2) {
timeline.addChild(this);
}
//return(startTime);
}
function get reversed() {
return(cachedReversed);
}
function set reversed(b) {
if (b != cachedReversed) {
cachedReversed = b;
setTotalTime(cachedTotalTime, true);
}
//return(reversed);
}
function get paused() {
return(cachedPaused);
}
function set paused(b) {
if ((b != cachedPaused) && (timeline)) {
if (b) {
_pauseTime = timeline.rawTime;
} else {
cachedStartTime = cachedStartTime + (timeline.__get__rawTime() - _pauseTime);
_pauseTime = NaN;
setDirtyCache(false);
}
cachedPaused = b;
active = Boolean(((!cachedPaused) && (cachedTotalTime > 0)) && (cachedTotalTime < cachedTotalDuration));
}
if ((!b) && (gc)) {
setTotalTime(cachedTotalTime, false);
setEnabled(true, false);
}
//return(paused);
}
static var version = 1.11;
}
Symbol 156 MovieClip [__Packages.com.greensock.core.SimpleTimeline] Frame 0
class com.greensock.core.SimpleTimeline extends com.greensock.core.TweenCore
{
var _firstChild, _lastChild, cachedTotalTime, cachedTime;
function SimpleTimeline (vars) {
super(0, vars);
}
function addChild(node) {
if ((!node.gc) && (node.timeline != undefined)) {
node.timeline.remove(node, true);
}
node.timeline = this;
if (node.gc) {
node.setEnabled(true, true);
}
if (_firstChild) {
_firstChild.prevNode = node;
}
node.nextNode = _firstChild;
_firstChild = node;
node.prevNode = undefined;
}
function remove(node, skipDisable) {
if ((!node.gc) && (skipDisable != true)) {
node.setEnabled(false, true);
}
if (node.nextNode) {
node.nextNode.prevNode = node.prevNode;
} else if (_lastChild == node) {
_lastChild = node.prevNode;
}
if (node.prevNode) {
node.prevNode.nextNode = node.nextNode;
} else if (_firstChild == node) {
_firstChild = node.nextNode;
}
}
function renderTime(time, suppressEvents, force) {
var _local2 = _firstChild;
var _local4;
var _local5;
cachedTotalTime = time;
cachedTime = time;
while (_local2) {
_local5 = _local2.nextNode;
if (_local2.active || (((time >= _local2.cachedStartTime) && (!_local2.cachedPaused)) && (!_local2.gc))) {
if (!_local2.cachedReversed) {
_local2.renderTime((time - _local2.cachedStartTime) * _local2.cachedTimeScale, suppressEvents, false);
} else {
_local4 = (_local2.cacheIsDirty ? (_local2.__get__totalDuration()) : (_local2.cachedTotalDuration));
_local2.renderTime(_local4 - ((time - _local2.cachedStartTime) * _local2.cachedTimeScale), suppressEvents, false);
}
}
_local2 = _local5;
}
}
function get rawTime() {
return(cachedTotalTime);
}
}
Symbol 157 MovieClip [__Packages.com.greensock.TweenLite] Frame 0
class com.greensock.TweenLite extends com.greensock.core.TweenCore
{
static var _timingClip, rootTimeline, rootFrame, rootFramesTimeline, overwriteManager, onPluginEvent;
var ratio, target, _targetID, vars, cachedTimeScale, propTweenLookup, _ease, _overwrite, active, cachedPT1, _notifyPluginsOfEnabled, _hasPlugins, _hasUpdate, _overwrittenProps, initted, cachedTime, cachedPaused, cachedDuration, cachedTotalTime, _rawPrevTime, cachedReversed, complete, gc;
function TweenLite (target, duration, vars) {
super(duration, vars);
if (_timingClip.onEnterFrame != updateAll) {
var _local7 = ((_root.getBytesLoaded() == undefined) ? (findSubloadedSWF(_root)) : _root);
var _local6 = 999;
while (_local7.getInstanceAtDepth(_local6) != undefined) {
_local6++;
}
_timingClip = _local7.createEmptyMovieClip("__tweenLite" + String(version).split(".").join("_"), _local6);
_timingClip.onEnterFrame = updateAll;
rootTimeline.cachedStartTime = getTimer() * 0.001;
rootFramesTimeline.cachedStartTime = rootFrame;
}
ratio = 0;
this.target = target;
_targetID = getID(target, true);
if ((this.vars.timeScale != undefined) && (this.target instanceof com.greensock.core.TweenCore)) {
cachedTimeScale = 1;
}
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((vars.overwrite == undefined) || ((!overwriteManager.enabled) && (vars.overwrite > 1))) ? (overwriteManager.mode) : (Number(vars.overwrite)));
var _local5 = masterList[_targetID].tweens;
if (_local5.length == 0) {
_local5[0] = this;
} else if (_overwrite == 1) {
var _local4 = _local5.length;
while (_local4--) {
if (!_local5[_local4].gc) {
_local5[_local4].setEnabled(false, false);
}
}
masterList[_targetID].tweens = [this];
} else {
_local5[_local5.length] = this;
}
if (active || (this.vars.immediateRender)) {
renderTime(0, false, true);
}
}
static function initClass() {
rootFrame = 0;
rootTimeline = new com.greensock.core.SimpleTimeline(null);
rootFramesTimeline = new com.greensock.core.SimpleTimeline(null);
rootTimeline.autoRemoveChildren = (rootFramesTimeline.autoRemoveChildren = true);
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
}
function init() {
var _local2;
var _local5;
var _local3;
var _local6;
var _local7;
if (typeof(vars.ease) == "function") {
_ease = vars.ease;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = _ease;
_ease = easeProxy;
}
cachedPT1 = undefined;
propTweenLookup = {};
for (_local2 in vars) {
if (_reservedProps[_local2] && (!((_local2 == "timeScale") && (target instanceof com.greensock.core.TweenCore)))) {
} else if (plugins[_local2] && ((_local3 = new plugins[_local2]()).onInitTween(target, vars[_local2], this))) {
cachedPT1 = new com.greensock.core.PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length == 1) ? (_local3.overwriteProps[0]) : "_MULTIPLE_"), true, cachedPT1);
if (cachedPT1.name == "_MULTIPLE_") {
_local5 = _local3.overwriteProps.length;
while (_local5--) {
propTweenLookup[_local3.overwriteProps[_local5]] = cachedPT1;
}
} else {
propTweenLookup[cachedPT1.name] = cachedPT1;
}
if (_local3.priority) {
cachedPT1.priority = _local3.priority;
_local6 = true;
}
if (_local3.onDisable || (_local3.onEnable)) {
_notifyPluginsOfEnabled = true;
}
_hasPlugins = true;
} else {
cachedPT1 = new com.greensock.core.PropTween(target, _local2, Number(target[_local2]), ((typeof(vars[_local2]) == "number") ? (Number(vars[_local2]) - target[_local2]) : (Number(vars[_local2]))), _local2, false, cachedPT1);
propTweenLookup[_local2] = cachedPT1;
}
}
if (_local6) {
onPluginEvent("onInit", this);
}
if (vars.runBackwards) {
var _local4 = cachedPT1;
while (_local4) {
_local4.start = _local4.start + _local4.change;
_local4.change = -_local4.change;
_local4 = _local4.nextNode;
}
}
_hasUpdate = Boolean(typeof(vars.onUpdate) == "function");
if (_overwrittenProps) {
killVars(_overwrittenProps);
if (cachedPT1 == undefined) {
setEnabled(false, false);
}
}
if ((((_overwrite > 1) && (cachedPT1)) && (_local7 = masterList[_targetID].tweens)) && (_local7.length > 1)) {
if (overwriteManager.manageOverwrites(this, propTweenLookup, _local7, _overwrite)) {
init();
}
}
initted = true;
}
function renderTime(time, suppressEvents, force) {
var _local4;
var _local5 = cachedTime;
if ((!active) && (!cachedPaused)) {
active = true;
}
if (time >= cachedDuration) {
cachedTotalTime = (cachedTime = cachedDuration);
ratio = 1;
_local4 = true;
if (cachedDuration == 0) {
if (((time == 0) || (_rawPrevTime < 0)) && (_rawPrevTime != time)) {
force = true;
}
_rawPrevTime = time;
}
} else if (time <= 0) {
cachedTotalTime = (cachedTime = (ratio = 0));
if (time < 0) {
active = false;
if (cachedDuration == 0) {
if (_rawPrevTime > 0) {
force = true;
_local4 = true;
}
_rawPrevTime = time;
}
}
if (cachedReversed && (_local5 != 0)) {
_local4 = true;
}
} else {
cachedTotalTime = (cachedTime = time);
ratio = _ease(time, 0, 1, cachedDuration);
}
if ((cachedTime == _local5) && (!force)) {
return(undefined);
}
if (!initted) {
init();
if ((!_local4) && (cachedTime)) {
ratio = _ease(cachedTime, 0, 1, cachedDuration);
}
}
if ((((_local5 == 0) && (vars.onStart)) && (cachedTime != 0)) && (!suppressEvents)) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
var _local2 = cachedPT1;
while (_local2) {
_local2.target[_local2.property] = _local2.start + (ratio * _local2.change);
_local2 = _local2.nextNode;
}
if (_hasUpdate && (!suppressEvents)) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4) {
if (_hasPlugins && (cachedPT1)) {
onPluginEvent("onComplete", this);
}
complete(true, suppressEvents);
}
}
function killVars(vars, permanent) {
if (_overwrittenProps == undefined) {
_overwrittenProps = {};
}
var _local3;
var _local2;
var _local5;
for (_local3 in vars) {
if (propTweenLookup[_local3]) {
_local2 = propTweenLookup[_local3];
if (_local2.isPlugin && (_local2.name == "_MULTIPLE_")) {
_local2.target.killProps(vars);
if (_local2.target.overwriteProps.length == 0) {
_local2.name = "";
}
}
if (_local2.name != "_MULTIPLE_") {
if (_local2.nextNode) {
_local2.nextNode.prevNode = _local2.prevNode;
}
if (_local2.prevNode) {
_local2.prevNode.nextNode = _local2.nextNode;
} else if (cachedPT1 == _local2) {
cachedPT1 = _local2.nextNode;
}
if (_local2.isPlugin && (_local2.target.onDisable)) {
_local2.target.onDisable();
if (_local2.target.activeDisable) {
_local5 = true;
}
}
delete propTweenLookup[_local3];
}
}
if (permanent != false) {
_overwrittenProps[_local3] = 1;
}
}
return(_local5);
}
function invalidate() {
if (_notifyPluginsOfEnabled) {
onPluginEvent("onDisable", this);
}
cachedPT1 = undefined;
_overwrittenProps = undefined;
_hasUpdate = (initted = (active = (_notifyPluginsOfEnabled = false)));
propTweenLookup = {};
}
function setEnabled(enabled, ignoreTimeline) {
if (enabled == gc) {
if (enabled) {
var _local3 = masterList[_targetID].tweens;
if (_local3) {
_local3[_local3.length] = this;
} else {
masterList[_targetID] = {target:target, tweens:[this]};
}
}
super.setEnabled(enabled, ignoreTimeline);
if (_notifyPluginsOfEnabled && (cachedPT1)) {
return(onPluginEvent((enabled ? "onEnable" : "onDisable"), this));
}
}
return(false);
}
function easeProxy(t, b, c, d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
static function to(target, duration, vars) {
return(new com.greensock.TweenLite(target, duration, vars));
}
static function from(target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(new com.greensock.TweenLite(target, duration, vars));
}
static function delayedCall(delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return(new com.greensock.TweenLite(onComplete, 0, {delay:delay, onComplete:onComplete, onCompleteParams:onCompleteParams, onCompleteScope:onCompleteScope, immediateRender:false, useFrames:useFrames, overwrite:0}));
}
static function updateAll() {
rootTimeline.renderTime(((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale, false, false);
rootFrame++;
rootFramesTimeline.renderTime((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale, false, false);
if (!(rootFrame % 60)) {
var _local3 = masterList;
var _local2;
var _local1;
for (var _local4 in _local3) {
_local1 = _local3[_local4].tweens;
_local2 = _local1.length;
while (_local2--) {
if (_local1[_local2].gc) {
_local1.splice(_local2, 1);
}
}
if (_local1.length == 0) {
delete _local3[_local4];
}
}
}
}
static function killTweensOf(target, complete) {
var _local5 = getID(target, true);
var _local3 = masterList[_local5].tweens;
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length;
while (_local2--) {
_local1 = _local3[_local2];
if (!_local1.gc) {
if (complete == true) {
_local1.complete(false, false);
} else {
_local1.setEnabled(false, false);
}
}
}
delete masterList[_local5];
}
}
static function getID(target, lookup) {
var _local2;
if (lookup) {
var _local1 = masterList;
if (typeof(target) == "movieclip") {
if (_local1[String(target)] != undefined) {
return(String(target));
}
_local2 = String(target);
masterList[_local2] = {target:target, tweens:[]};
return(_local2);
}
for (var _local3 in _local1) {
if (_local1[_local3].target == target) {
return(_local3);
}
}
}
_cnt++;
_local2 = "t" + _cnt;
masterList[_local2] = {target:target, tweens:[]};
return(_local2);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((-1 * t) * (t - 2));
}
static function findSubloadedSWF(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
if ((mc[_local3]._url != _root._url) && (mc[_local3].getBytesLoaded() != undefined)) {
return(mc[_local3]);
}
if (findSubloadedSWF(mc[_local3]) != undefined) {
return(findSubloadedSWF(mc[_local3]));
}
}
}
return(undefined);
}
static var version = 11.12;
static var plugins = {};
static var killDelayedCallsTo = killTweensOf;
static var defaultEase = easeOut;
static var masterList = {};
static var _cnt = -16000;
static var _reservedProps = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
}
Symbol 158 MovieClip [__Packages.com.greensock.core.PropTween] Frame 0
class com.greensock.core.PropTween
{
var target, property, start, change, name, isPlugin, nextNode, priority;
function PropTween (target, property, start, change, name, isPlugin, nextNode, priority) {
this.target = target;
this.property = property;
this.start = start;
this.change = change;
this.name = name;
this.isPlugin = isPlugin;
if (nextNode) {
nextNode.prevNode = this;
this.nextNode = nextNode;
}
this.priority = priority || 0;
}
}
Symbol 159 MovieClip [__Packages.com.greensock.plugins.TweenPlugin] Frame 0
class com.greensock.plugins.TweenPlugin
{
var _tweens, _changeFactor, propName, round, overwriteProps;
function TweenPlugin () {
_tweens = [];
_changeFactor = 0;
}
function onInitTween(target, value, tween) {
addTween(target, propName, target[propName], value, propName);
return(true);
}
function addTween(object, propName, start, end, overwriteProp) {
if (end != undefined) {
var _local3 = ((typeof(end) == "number") ? (Number(end) - start) : (Number(end)));
if (_local3 != 0) {
_tweens[_tweens.length] = new com.greensock.core.PropTween(object, propName, start, _local3, overwriteProp || (propName));
}
}
}
function updateTweens(changeFactor) {
var _local3 = _tweens.length;
var _local2;
if (round) {
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = Math.round(_local2.start + (_local2.change * changeFactor));
}
} else {
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * changeFactor);
}
}
}
function get changeFactor() {
return(_changeFactor);
}
function set changeFactor(n) {
updateTweens(n);
_changeFactor = n;
//return(changeFactor);
}
function killProps(lookup) {
var _local2 = overwriteProps.length;
while (_local2--) {
if (lookup[overwriteProps[_local2]]) {
overwriteProps.splice(_local2, 1);
}
}
_local2 = _tweens.length;
while (_local2--) {
if (lookup[_tweens[_local2].name]) {
_tweens.splice(_local2, 1);
}
}
}
static function onTweenEvent(type, tween) {
var _local1 = tween.cachedPT1;
var _local5;
if (type == "onInit") {
var _local2 = [];
while (_local1) {
_local2[_local2.length] = _local1;
_local1 = _local1.nextNode;
}
_local2.sortOn("priority", Array.NUMERIC | Array.DESCENDING);
var _local3 = _local2.length;
while (_local3--) {
_local2[_local3].nextNode = _local2[_local3 + 1];
_local2[_local3].prevNode = _local2[_local3 - 1];
}
tween.cachedPT1 = _local2[0];
} else {
while (_local1) {
if (_local1.isPlugin && (_local1.target[type])) {
if (_local1.target.activeDisable) {
_local5 = true;
}
_local1.target[type]();
}
_local1 = _local1.nextNode;
}
}
return(_local5);
}
static function activate(plugins) {
com.greensock.TweenLite.onPluginEvent = onTweenEvent;
var _local1 = plugins.length;
var _local3;
while (_local1--) {
if (plugins[_local1].API == 1) {
_local3 = new plugins[_local1]();
com.greensock.TweenLite.plugins[_local3.propName] = plugins[_local1];
}
}
return(true);
}
static var VERSION = 1.3;
static var API = 1;
var priority = 0;
}
Symbol 160 MovieClip [__Packages.com.greensock.plugins.VisiblePlugin] Frame 0
class com.greensock.plugins.VisiblePlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _target, _tween, _initVal, _visible, __get__changeFactor;
function VisiblePlugin () {
super();
propName = "_visible";
overwriteProps = ["_visible"];
}
function onInitTween(target, value, tween) {
_target = target;
_tween = tween;
_initVal = Boolean(_target._visible);
_visible = Boolean(value);
return(true);
}
function set changeFactor(n) {
if ((n == 1) && ((_tween.cachedDuration == _tween.cachedTime) || (_tween.cachedTime == 0))) {
_target._visible = _visible;
} else {
_target._visible = _initVal;
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 161 MovieClip [__Packages.com.greensock.plugins.AutoAlphaPlugin] Frame 0
class com.greensock.plugins.AutoAlphaPlugin extends com.greensock.plugins.VisiblePlugin
{
var propName, overwriteProps, _target, addTween, _ignoreVisible, updateTweens, __get__changeFactor;
function AutoAlphaPlugin () {
super();
propName = "autoAlpha";
overwriteProps = ["_alpha", "_visible"];
}
function onInitTween(target, value, tween) {
_target = target;
addTween(target, "_alpha", target._alpha, value, "_alpha");
return(true);
}
function killProps(lookup) {
super.killProps(lookup);
_ignoreVisible = Boolean(lookup._visible != undefined);
}
function set changeFactor(n) {
updateTweens(n);
if (!_ignoreVisible) {
_target._visible = Boolean(_target._alpha != 0);
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 162 MovieClip [__Packages.com.greensock.plugins.EndArrayPlugin] Frame 0
class com.greensock.plugins.EndArrayPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _info, _a, round, __get__changeFactor;
function EndArrayPlugin () {
super();
propName = "endArray";
overwriteProps = ["endArray"];
_info = [];
}
function onInitTween(target, value, tween) {
if ((!(target instanceof Array)) || (!(value instanceof Array))) {
return(false);
}
init([target][0], [value][0]);
return(true);
}
function init(start, end) {
_a = start;
var _local2 = end.length;
while (_local2--) {
if ((start[_local2] != end[_local2]) && (start[_local2] != undefined)) {
_info[_info.length] = new com.greensock.plugins.helpers.ArrayTweenInfo(_local2, _a[_local2], end[_local2] - _a[_local2]);
}
}
}
function set changeFactor(n) {
var _local3 = _info.length;
var _local2;
if (round) {
while (_local3--) {
_local2 = _info[_local3];
_a[_local2.index] = Math.round(_local2.start + (_local2.change * n));
}
} else {
while (_local3--) {
_local2 = _info[_local3];
_a[_local2.index] = _local2.start + (_local2.change * n);
}
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 163 MovieClip [__Packages.com.greensock.plugins.helpers.ArrayTweenInfo] Frame 0
class com.greensock.plugins.helpers.ArrayTweenInfo
{
var index, start, change;
function ArrayTweenInfo (index, start, change) {
this.index = index;
this.start = start;
this.change = change;
}
}
Symbol 164 MovieClip [__Packages.com.greensock.plugins.FramePlugin] Frame 0
class com.greensock.plugins.FramePlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, round, _target, frame, addTween, updateTweens, __get__changeFactor;
function FramePlugin () {
super();
propName = "frame";
overwriteProps = ["frame"];
round = true;
}
function onInitTween(target, value, tween) {
if ((typeof(target) != "movieclip") || (isNaN(value))) {
return(false);
}
_target = MovieClip(target);
frame = _target._currentframe;
addTween(this, "frame", frame, value, "frame");
return(true);
}
function set changeFactor(n) {
updateTweens(n);
_target.gotoAndStop(frame);
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 165 MovieClip [__Packages.com.greensock.plugins.TintPlugin] Frame 0
class com.greensock.plugins.TintPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _ignoreAlpha, _color, _ct, _tweens, __get__changeFactor;
function TintPlugin () {
super();
propName = "tint";
overwriteProps = ["tint"];
}
function onInitTween(target, value, tween) {
if ((typeof(target) != "movieclip") && (!(target instanceof TextField))) {
return(false);
}
var _local2 = ((tween.vars._alpha != undefined) ? (tween.vars._alpha) : (((tween.vars.autoAlpha != undefined) ? (tween.vars.autoAlpha) : (target._alpha))));
var _local4 = Number(value);
var _local6 = (((value == null) || (tween.vars.removeTint == true)) ? ({rb:0, gb:0, bb:0, ab:0, ra:_local2, ga:_local2, ba:_local2, aa:_local2}) : ({rb:_local4 >> 16, gb:(_local4 >> 8) & 255, bb:_local4 & 255, ra:0, ga:0, ba:0, aa:_local2}));
_ignoreAlpha = true;
init(target, _local6);
return(true);
}
function init(target, end) {
_color = new Color(target);
_ct = _color.getTransform();
var _local5;
var _local2;
for (_local2 in end) {
if (_ct[_local2] != end[_local2]) {
_tweens[_tweens.length] = new com.greensock.core.PropTween(_ct, _local2, _ct[_local2], end[_local2] - _ct[_local2], "tint", false);
}
}
}
function set changeFactor(n) {
var _local3 = _tweens.length;
var _local2;
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * n);
}
if (_ignoreAlpha) {
var _local5 = _color.getTransform();
_ct.aa = _local5.aa;
_ct.ab = _local5.ab;
}
_color.setTransform(_ct);
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 166 MovieClip [__Packages.com.greensock.plugins.RemoveTintPlugin] Frame 0
class com.greensock.plugins.RemoveTintPlugin extends com.greensock.plugins.TintPlugin
{
var propName;
function RemoveTintPlugin () {
super();
propName = "removeTint";
}
static var API = 1;
}
Symbol 167 MovieClip [__Packages.com.greensock.plugins.VolumePlugin] Frame 0
class com.greensock.plugins.VolumePlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _sound, volume, addTween, updateTweens, __get__changeFactor;
function VolumePlugin () {
super();
propName = "volume";
overwriteProps = ["volume"];
}
function onInitTween(target, value, tween) {
if (isNaN(value) || ((typeof(target) != "movieclip") && (!(target instanceof Sound)))) {
return(false);
}
_sound = ((typeof(target) == "movieclip") ? (new Sound(target)) : (Sound(target)));
volume = _sound.getVolume();
addTween(this, "volume", volume, value, "volume");
return(true);
}
function set changeFactor(n) {
updateTweens(n);
_sound.setVolume(volume);
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 168 MovieClip [__Packages.com.greensock.plugins.FilterPlugin] Frame 0
class com.greensock.plugins.FilterPlugin extends com.greensock.plugins.TweenPlugin
{
var _target, _index, _type, _filter, _remove, onComplete, propName, _tweens, addTween, __get__changeFactor;
function FilterPlugin () {
super();
}
function initFilter(props, defaultFilter, propNames) {
var _local6 = _target.filters;
var _local2;
var _local3;
var _local5;
var _local7 = ((props instanceof flash.filters.BitmapFilter) ? ({}) : (props));
_index = -1;
if (_local7.index != undefined) {
_index = _local7.index;
} else {
_local3 = _local6.length;
while (_local3--) {
if (_local6[_local3] instanceof _type) {
_index = _local3;
break;
}
}
}
if (((_index == -1) || (_local6[_index] == undefined)) || (_local7.addFilter == true)) {
_index = ((_local7.index != undefined) ? (_local7.index) : (_local6.length));
_local6[_index] = defaultFilter;
_target.filters = _local6;
}
_filter = _local6[_index];
if (_local7.remove == true) {
_remove = true;
onComplete = onCompleteTween;
}
_local3 = propNames.length;
while (_local3--) {
_local2 = propNames[_local3];
if ((props[_local2] != undefined) && (_filter[_local2] != props[_local2])) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local5 = new com.greensock.plugins.HexColorsPlugin();
_local5.initColor(_filter, _local2, _filter[_local2], props[_local2]);
_tweens[_tweens.length] = new com.greensock.core.PropTween(_local5, "changeFactor", 0, 1, propName);
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_filter[_local2] = props[_local2];
} else {
addTween(_filter, _local2, _filter[_local2], props[_local2], propName);
}
}
}
}
function onCompleteTween() {
if (_remove) {
var _local3 = _target.filters;
if (!(_local3[_index] instanceof _type)) {
var _local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] instanceof _type) {
_local3.splice(_local2, 1);
break;
}
}
} else {
_local3.splice(_index, 1);
}
_target.filters = _local3;
}
}
function set changeFactor(n) {
var _local2 = _tweens.length;
var _local3;
var _local4 = _target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = _local3.start + (_local3.change * n);
}
if (!(_local4[_index] instanceof _type)) {
_local2 = (_index = _local4.length);
while (_local2--) {
if (_local4[_local2] instanceof _type) {
_index = _local2;
break;
}
}
}
_local4[_index] = _filter;
_target.filters = _local4;
//return(__get__changeFactor());
}
static var VERSION = 2.03;
static var API = 1;
}
Symbol 169 MovieClip [__Packages.com.greensock.plugins.HexColorsPlugin] Frame 0
class com.greensock.plugins.HexColorsPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _colors, __get__changeFactor;
function HexColorsPlugin () {
super();
propName = "hexColors";
overwriteProps = [];
_colors = [];
}
function onInitTween(target, value, tween) {
for (var _local4 in value) {
initColor(target, _local4, Number(target[_local4]), Number(value[_local4]));
}
return(true);
}
function initColor(target, propName, start, end) {
if (start != end) {
var _local3 = start >> 16;
var _local5 = (start >> 8) & 255;
var _local2 = start & 255;
_colors[_colors.length] = [target, propName, _local3, (end >> 16) - _local3, _local5, ((end >> 8) & 255) - _local5, _local2, (end & 255) - _local2];
overwriteProps[overwriteProps.length] = propName;
}
}
function killProps(lookup) {
var _local3 = _colors.length;
while (_local3--) {
if (lookup[_colors[_local3][1]] != undefined) {
_colors.splice(_local3, 1);
}
}
super.killProps(lookup);
}
function set changeFactor(n) {
var _local4 = _colors.length;
var _local2;
while (_local4--) {
_local2 = _colors[_local4];
_local2[0][_local2[1]] = (((_local2[2] + (n * _local2[3])) << 16) | ((_local2[4] + (n * _local2[5])) << 8)) | (_local2[6] + (n * _local2[7]));
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 170 MovieClip [__Packages.com.greensock.plugins.BevelFilterPlugin] Frame 0
class com.greensock.plugins.BevelFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function BevelFilterPlugin () {
super();
propName = "bevelFilter";
overwriteProps = ["bevelFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.BevelFilter;
initFilter(value, new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, value.quality || 2), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"];
}
Symbol 171 MovieClip [__Packages.com.greensock.plugins.BezierPlugin] Frame 0
class com.greensock.plugins.BezierPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _future, _target, _orientData, _orient, _beziers, round, __get__changeFactor;
function BezierPlugin () {
super();
propName = "bezier";
overwriteProps = [];
_future = {};
}
function onInitTween(target, value, tween) {
if (!(value instanceof Array)) {
return(false);
}
init(tween, [value][0], false);
return(true);
}
function init(tween, beziers, through) {
_target = tween.target;
var _local7 = tween.vars;
if (_local7.orientToBezier == true) {
_orientData = [["_x", "_y", "_rotation", 0, 0.01]];
_orient = true;
} else if (_local7.orientToBezier instanceof Array) {
_orientData = _local7.orientToBezier;
_orient = true;
}
var _local3 = {};
var _local4;
var _local2;
var _local8;
_local4 = 0;
while (_local4 < beziers.length) {
for (_local2 in beziers[_local4]) {
if (_local3[_local2] == undefined) {
_local3[_local2] = [tween.target[_local2]];
}
if (typeof(beziers[_local4][_local2]) == "number") {
_local3[_local2].push(beziers[_local4][_local2]);
} else {
_local3[_local2].push(tween.target[_local2] + Number(beziers[_local4][_local2]));
}
}
_local4++;
}
for (_local2 in _local3) {
overwriteProps[overwriteProps.length] = _local2;
if (_local7[_local2] != undefined) {
if (typeof(_local7[_local2]) == "number") {
_local3[_local2].push(_local7[_local2]);
} else {
_local3[_local2].push(tween.target[_local2] + Number(_local7[_local2]));
}
_local8 = {};
_local8[_local2] = true;
tween.killVars(_local8, false);
delete _local7[_local2];
}
}
_beziers = parseBeziers(_local3, through);
}
static function parseBeziers(props, through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if (through == true) {
for (_local4 in props) {
_local1 = props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = [_local1[0], _local1[1] - ((_local1[2] - _local1[0]) / 4), _local1[1]];
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = [_local1[_local2], _local1[_local2] + (_local1[_local2] - _local3[_local2 - 1][1]), _local1[_local2 + 1]];
_local2++;
}
} else {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
} else {
for (_local4 in props) {
_local1 = props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = [_local1[0], _local1[1], (_local1[1] + _local1[2]) / 2];
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = [_local3[_local2 - 2][2], _local1[_local2], (_local1[_local2] + _local1[_local2 + 1]) / 2];
_local2++;
}
_local3[_local3.length] = [_local3[_local3.length - 1][2], _local1[_local1.length - 2], _local1[_local1.length - 1]];
} else if (_local1.length == 3) {
_local3[_local3.length] = [_local1[0], _local1[1], _local1[2]];
} else if (_local1.length == 2) {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
}
return(_local6);
}
function killProps(lookup) {
for (var _local4 in _beziers) {
if (lookup[_local4] != undefined) {
delete _beziers[_local4];
}
}
super.killProps(lookup);
}
function set changeFactor(n) {
var _local3;
var _local5;
var _local4;
var _local6;
var _local7;
var _local15;
var _local16;
if (n == 1) {
for (_local5 in _beziers) {
_local3 = _beziers[_local5].length - 1;
_target[_local5] = _beziers[_local5][_local3][2];
}
} else {
for (_local5 in _beziers) {
_local7 = _beziers[_local5].length;
if (n < 0) {
_local3 = 0;
} else if (n >= 1) {
_local3 = _local7 - 1;
} else {
_local3 = (_local7 * n) >> 0;
}
_local6 = (n - (_local3 * (1 / _local7))) * _local7;
_local4 = _beziers[_local5][_local3];
if (round) {
_target[_local5] = Math.round(_local4[0] + (_local6 * (((2 * (1 - _local6)) * (_local4[1] - _local4[0])) + (_local6 * (_local4[2] - _local4[0])))));
} else {
_target[_local5] = _local4[0] + (_local6 * (((2 * (1 - _local6)) * (_local4[1] - _local4[0])) + (_local6 * (_local4[2] - _local4[0]))));
}
}
}
if (_orient == true) {
_local3 = _orientData.length;
var _local9 = {};
var _local11;
var _local10;
var _local2;
var _local12;
while ((_local3--) > 0) {
_local2 = _orientData[_local3];
_local9[_local2[0]] = _target[_local2[0]];
_local9[_local2[1]] = _target[_local2[1]];
}
var _local13 = _target;
var _local14 = round;
_target = _future;
round = false;
_orient = false;
_local3 = _orientData.length;
while ((_local3--) > 0) {
_local2 = _orientData[_local3];
changeFactor = (n + (_local2[4] || 0.01));
_local12 = _local2[3] || 0;
_local11 = _future[_local2[0]] - _local9[_local2[0]];
_local10 = _future[_local2[1]] - _local9[_local2[1]];
_local13[_local2[2]] = (Math.atan2(_local10, _local11) * _RAD2DEG) + _local12;
}
_target = _local13;
round = _local14;
_orient = true;
}
//return(__get__changeFactor());
}
static var API = 1;
static var _RAD2DEG = 57.2957795130823;
}
Symbol 172 MovieClip [__Packages.com.greensock.plugins.BezierThroughPlugin] Frame 0
class com.greensock.plugins.BezierThroughPlugin extends com.greensock.plugins.BezierPlugin
{
var propName, init;
function BezierThroughPlugin () {
super();
propName = "bezierThrough";
}
function onInitTween(target, value, tween) {
if (!(value instanceof Array)) {
return(false);
}
init(tween, [value][0], true);
return(true);
}
static var API = 1;
}
Symbol 173 MovieClip [__Packages.com.greensock.plugins.BlurFilterPlugin] Frame 0
class com.greensock.plugins.BlurFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function BlurFilterPlugin () {
super();
propName = "blurFilter";
overwriteProps = ["blurFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.BlurFilter;
initFilter(value, new flash.filters.BlurFilter(0, 0, value.quality || 2), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["blurX", "blurY", "quality"];
}
Symbol 174 MovieClip [__Packages.com.greensock.plugins.ColorMatrixFilterPlugin] Frame 0
class com.greensock.plugins.ColorMatrixFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter, _matrix, _filter, _matrixTween, __get__changeFactor;
function ColorMatrixFilterPlugin () {
super();
propName = "colorMatrixFilter";
overwriteProps = ["colorMatrixFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.ColorMatrixFilter;
var _local3 = value;
initFilter({remove:value.remove, index:value.index, addFilter:value.addFilter}, new flash.filters.ColorMatrixFilter(_idMatrix.slice()), _propNames);
_matrix = flash.filters.ColorMatrixFilter(_filter).matrix;
var _local2 = [];
if ((_local3.matrix != undefined) && (_local3.matrix instanceof Array)) {
_local2 = _local3.matrix;
} else {
if (_local3.relative == true) {
_local2 = _matrix.slice();
} else {
_local2 = _idMatrix.slice();
}
_local2 = setBrightness(_local2, _local3.brightness);
_local2 = setContrast(_local2, _local3.contrast);
_local2 = setHue(_local2, _local3.hue);
_local2 = setSaturation(_local2, _local3.saturation);
_local2 = setThreshold(_local2, _local3.threshold);
if (!isNaN(_local3.colorize)) {
_local2 = colorize(_local2, _local3.colorize, _local3.amount);
}
}
_matrixTween = new com.greensock.plugins.EndArrayPlugin();
_matrixTween.init(_matrix, _local2);
return(true);
}
function set changeFactor(n) {
_matrixTween.__set__changeFactor(n);
flash.filters.ColorMatrixFilter(_filter).matrix = _matrix;
super.__set__changeFactor(n);
//return(__get__changeFactor());
}
static function colorize(m, color, amount) {
if (isNaN(color)) {
return(m);
}
if (isNaN(amount)) {
amount = 1;
}
var _local3 = ((color >> 16) & 255) / 255;
var _local5 = ((color >> 8) & 255) / 255;
var _local2 = (color & 255) / 255;
var _local4 = 1 - amount;
var _local7 = [_local4 + ((amount * _local3) * _lumR), (amount * _local3) * _lumG, (amount * _local3) * _lumB, 0, 0, (amount * _local5) * _lumR, _local4 + ((amount * _local5) * _lumG), (amount * _local5) * _lumB, 0, 0, (amount * _local2) * _lumR, (amount * _local2) * _lumG, _local4 + ((amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, m));
}
static function setThreshold(m, n) {
if (isNaN(n)) {
return(m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function setHue(m, n) {
if (isNaN(n)) {
return(m);
}
n = n * (Math.PI/180);
var _local1 = Math.cos(n);
var _local2 = Math.sin(n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, m));
}
static function setBrightness(m, n) {
if (isNaN(n)) {
return(m);
}
n = (n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m));
}
static function setSaturation(m, n) {
if (isNaN(n)) {
return(m);
}
var _local4 = 1 - n;
var _local2 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local1 = _local4 * _lumB;
var _local6 = [_local2 + n, _local5, _local1, 0, 0, _local2, _local5 + n, _local1, 0, 0, _local2, _local5, _local1 + n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, m));
}
static function setContrast(m, n) {
if (isNaN(n)) {
return(m);
}
n = n + 0.01;
var _local2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function applyMatrix(m, m2) {
if ((!(m instanceof Array)) || (!(m2 instanceof Array))) {
return(m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = ((((m[_local2] * m2[_local1]) + (m[_local2 + 1] * m2[_local1 + 5])) + (m[_local2 + 2] * m2[_local1 + 10])) + (m[_local2 + 3] * m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var API = 1;
static var _propNames = [];
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 175 MovieClip [__Packages.com.greensock.plugins.ColorTransformPlugin] Frame 0
class com.greensock.plugins.ColorTransformPlugin extends com.greensock.plugins.TintPlugin
{
var propName, init;
function ColorTransformPlugin () {
super();
propName = "colorTransform";
}
function onInitTween(target, value, tween) {
if ((typeof(target) != "movieclip") && (!(target instanceof TextField))) {
return(false);
}
var _local7 = new Color(target);
var _local2 = _local7.getTransform();
if (value.redMultiplier != undefined) {
_local2.ra = value.redMultiplier * 100;
}
if (value.greenMultiplier != undefined) {
_local2.ga = value.greenMultiplier * 100;
}
if (value.blueMultiplier != undefined) {
_local2.ba = value.blueMultiplier * 100;
}
if (value.alphaMultiplier != undefined) {
_local2.aa = value.alphaMultiplier * 100;
}
if (value.redOffset != undefined) {
_local2.rb = value.redOffset;
}
if (value.greenOffset != undefined) {
_local2.gb = value.greenOffset;
}
if (value.blueOffset != undefined) {
_local2.bb = value.blueOffset;
}
if (value.alphaOffset != undefined) {
_local2.ab = value.alphaOffset;
}
if ((!isNaN(value.tint)) || (!isNaN(value.color))) {
var _local4 = ((!isNaN(value.tint)) ? (value.tint) : (value.color));
if (_local4 != null) {
_local2.rb = Number(_local4) >> 16;
_local2.gb = (Number(_local4) >> 8) & 255;
_local2.bb = Number(_local4) & 255;
_local2.ra = 0;
_local2.ga = 0;
_local2.ba = 0;
}
}
if (!isNaN(value.tintAmount)) {
var _local5 = value.tintAmount / (1 - (((_local2.ra + _local2.ga) + _local2.ba) / 300));
_local2.rb = _local2.rb * _local5;
_local2.gb = _local2.gb * _local5;
_local2.bb = _local2.bb * _local5;
_local2.ra = (_local2.ga = (_local2.ba = (1 - value.tintAmount) * 100));
} else if (!isNaN(value.exposure)) {
_local2.rb = (_local2.gb = (_local2.bb = 255 * (value.exposure - 1)));
_local2.ra = (_local2.ga = (_local2.ba = 100));
} else if (!isNaN(value.brightness)) {
_local2.rb = (_local2.gb = (_local2.bb = Math.max(0, (value.brightness - 1) * 255)));
_local2.ra = (_local2.ga = (_local2.ba = (1 - Math.abs(value.brightness - 1)) * 100));
}
if ((tween.vars._alpha != undefined) && (value.alphaMultiplier == undefined)) {
_local2.aa = tween.vars._alpha;
tween.killVars({alpha:1});
}
init(target, _local2);
return(true);
}
static var API = 1;
}
Symbol 176 MovieClip [__Packages.com.greensock.plugins.DropShadowFilterPlugin] Frame 0
class com.greensock.plugins.DropShadowFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function DropShadowFilterPlugin () {
super();
propName = "dropShadowFilter";
overwriteProps = ["dropShadowFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.DropShadowFilter;
initFilter(value, new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, value.quality || 2, value.inner, value.knockout, value.hideObject), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"];
}
Symbol 177 MovieClip [__Packages.com.greensock.plugins.FrameLabelPlugin] Frame 0
class com.greensock.plugins.FrameLabelPlugin extends com.greensock.plugins.FramePlugin
{
var propName, _target, frame, addTween;
function FrameLabelPlugin () {
super();
propName = "frameLabel";
}
function onInitTween(target, value, tween) {
if (typeof(tween.target) != "movieclip") {
return(false);
}
_target = MovieClip(target);
frame = _target._currentframe;
var _local2 = _target.duplicateMovieClip("tempMC" + Math.round(Math.random() * 999999), _target._parent.getNextHighestDepth());
_local2.gotoAndStop(value);
var _local3 = _local2._currentframe;
_local2.removeMovieClip();
if (frame != _local3) {
addTween(this, "frame", frame, _local3, "frame");
}
return(true);
}
static var API = 1;
}
Symbol 178 MovieClip [__Packages.com.greensock.plugins.GlowFilterPlugin] Frame 0
class com.greensock.plugins.GlowFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function GlowFilterPlugin () {
super();
propName = "glowFilter";
overwriteProps = ["glowFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.GlowFilter;
initFilter(value, new flash.filters.GlowFilter(16777215, 0, 0, 0, value.strength || 1, value.quality || 2, value.inner, value.knockout), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"];
}
Symbol 179 MovieClip [__Packages.com.greensock.plugins.RoundPropsPlugin] Frame 0
class com.greensock.plugins.RoundPropsPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, round, addTween;
function RoundPropsPlugin () {
super();
propName = "roundProps";
overwriteProps = [];
round = true;
}
function add(object, propName, start, change) {
addTween(object, propName, start, start + change, propName);
overwriteProps[overwriteProps.length] = propName;
}
static var API = 1;
}
Symbol 180 MovieClip [__Packages.com.greensock.plugins.ShortRotationPlugin] Frame 0
class com.greensock.plugins.ShortRotationPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, addTween;
function ShortRotationPlugin () {
super();
propName = "shortRotation";
overwriteProps = [];
}
function onInitTween(target, value, tween) {
if (typeof(value) == "number") {
trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})");
return(false);
}
for (var _local4 in value) {
initRotation(target, _local4, target[_local4], value[_local4]);
}
return(true);
}
function initRotation(target, propName, start, end) {
var _local2 = (end - start) % 360;
if (_local2 != (_local2 % 180)) {
_local2 = ((_local2 < 0) ? (_local2 + 360) : (_local2 - 360));
}
addTween(target, propName, start, start + _local2, propName);
overwriteProps[overwriteProps.length] = propName;
}
static var API = 1;
}
Symbol 181 MovieClip [__Packages.com.greensock.OverwriteManager] Frame 0
class com.greensock.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init(defaultMode) {
if (com.greensock.TweenLite.version < 11.1) {
trace("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
com.greensock.TweenLite.overwriteManager = com.greensock.OverwriteManager;
mode = ((defaultMode == undefined) ? 2 : (defaultMode));
enabled = true;
return(mode);
}
static function manageOverwrites(tween, props, targetTweens, mode) {
var _local3;
var _local9;
var _local1;
if (mode >= 4) {
var _local17 = targetTweens.length;
_local3 = 0;
while (_local3 < _local17) {
_local1 = targetTweens[_local3];
if (_local1 != tween) {
if (_local1.setEnabled(false, false)) {
_local9 = true;
}
} else if (mode == 5) {
break;
}
_local3++;
}
return(_local9);
}
var _local7 = tween.__get__startTime();
var _local8 = [];
var _local13 = [];
var _local15 = 0;
var _local12 = 0;
_local3 = targetTweens.length;
while (_local3--) {
_local1 = targetTweens[_local3];
if ((_local1 == tween) || (_local1.gc)) {
} else if (_local1.timeline != tween.timeline) {
if (!getGlobalPaused(_local1)) {
_local13[_local15++] = _local1;
}
} else if (((_local1.__get__startTime() <= _local7) && ((_local1.__get__startTime() + _local1.__get__totalDuration()) > _local7)) && (!getGlobalPaused(_local1))) {
_local8[_local12++] = _local1;
}
}
if (_local15 != 0) {
var _local5 = tween.cachedTimeScale;
var _local6 = _local7;
var _local4;
var _local11;
var _local2;
_local2 = tween.timeline;
while (_local2) {
_local5 = _local5 * _local2.cachedTimeScale;
_local6 = _local6 + _local2.startTime;
_local2 = _local2.timeline;
}
_local7 = _local5 * _local6;
_local3 = _local15;
while (_local3--) {
_local4 = _local13[_local3];
_local5 = _local4.cachedTimeScale;
_local6 = _local4.startTime;
_local2 = _local4.timeline;
while (_local2) {
_local5 = _local5 * _local2.cachedTimeScale;
_local6 = _local6 + _local2.startTime;
_local2 = _local2.timeline;
}
_local11 = _local5 * _local6;
if ((_local11 <= _local7) && (((_local11 + (_local4.__get__totalDuration() * _local5)) > _local7) || (_local4.cachedDuration == 0))) {
_local8[_local12++] = _local4;
}
}
}
if (_local12 == 0) {
return(_local9);
}
_local3 = _local12;
if (mode == 2) {
while (_local3--) {
_local1 = _local8[_local3];
if (_local1.killVars(props)) {
_local9 = true;
}
if ((_local1.cachedPT1 == undefined) && (_local1.initted)) {
_local1.setEnabled(false, false);
}
}
} else {
while (_local3--) {
if (_local8[_local3].setEnabled(false, false)) {
_local9 = true;
}
}
}
return(_local9);
}
static function getGlobalPaused(tween) {
while (tween) {
if (tween.cachedPaused) {
return(true);
}
tween = tween.timeline;
}
return(false);
}
static var version = 6;
static var NONE = 0;
static var ALL_IMMEDIATE = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
static var ALL_ONSTART = 4;
static var PREEXISTING = 5;
}
Symbol 182 MovieClip [__Packages.com.greensock.TweenMax] Frame 0
class com.greensock.TweenMax extends com.greensock.TweenLite
{
var _cyclesComplete, yoyo, vars, _repeat, _repeatDelay, cacheIsDirty, target, cachedTimeScale, cachedPT1, _hasPlugins, propTweenLookup, setDirtyCache, cachedTotalTime, initted, __set__totalTime, killVars, cachedTime, ratio, active, cachedPaused, cachedTotalDuration, cachedDuration, _rawPrevTime, cachedReversed, _ease, _hasUpdate, complete, __get__duration, setTotalTime, __set__duration, _pauseTime, timeline, cachedStartTime;
function TweenMax (target, duration, vars) {
super(target, duration, vars);
if (com.greensock.TweenLite.version < 11.1) {
trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
_cyclesComplete = 0;
yoyo = Boolean(this.vars.yoyo);
_repeat = this.vars.repeat || 0;
_repeatDelay = this.vars.repeatDelay || 0;
cacheIsDirty = true;
if ((this.vars.timeScale != undefined) && (!(this.target instanceof com.greensock.core.TweenCore))) {
cachedTimeScale = this.vars.timeScale;
}
}
function init() {
if (vars.startAt) {
vars.startAt.overwrite = 0;
vars.startAt.immediateRender = true;
var _local10 = new com.greensock.TweenMax(target, 0, vars.startAt);
}
super.init();
if (vars.roundProps && (com.greensock.TweenLite.plugins.roundProps)) {
var _local11;
var _local4;
var _local6;
var _local9 = vars.roundProps;
var _local5;
var _local7;
var _local3;
var _local8 = _local9.length;
while (_local8--) {
_local4 = _local9[_local8];
_local3 = cachedPT1;
while (_local3) {
if (_local3.name == _local4) {
if (_local3.isPlugin) {
_local3.target.round = true;
} else {
if (_local5 == undefined) {
_local5 = new com.greensock.TweenLite.plugins.roundProps();
_local5.add(_local3.target, _local4, _local3.start, _local3.change);
_hasPlugins = true;
_local7 = insertPropTween(_local5, "changeFactor", 0, 1, "_MULTIPLE_", true, cachedPT1);
cachedPT1 = _local7;
} else {
_local5.add(_local3.target, _local4, _local3.start, _local3.change);
}
removePropTween(_local3);
propTweenLookup[_local4] = _local7;
}
} else if ((_local3.isPlugin && (_local3.name == "_MULTIPLE_")) && (!_local3.target.round)) {
_local6 = (" " + _local3.target.overwriteProps.join(" ")) + " ";
if (_local6.indexOf((" " + _local4) + " ") != -1) {
_local3.target.round = true;
}
}
_local3 = _local3.nextNode;
}
}
}
}
function insertPropTween(target, property, start, end, name, isPlugin, nextNode) {
var _local3 = new com.greensock.core.PropTween(target, property, start, ((typeof(end) == "number") ? (Number(end) - start) : (Number(end))), name, isPlugin, nextNode);
if (isPlugin && (name == "_MULTIPLE_")) {
var _local2 = target.overwriteProps.length;
while (_local2--) {
propTweenLookup[target.overwriteProps[_local2]] = _local3;
}
} else {
propTweenLookup[name] = _local3;
}
return(_local3);
}
function removePropTween(propTween) {
if (propTween.nextNode) {
propTween.nextNode.prevNode = propTween.prevNode;
}
if (propTween.prevNode) {
propTween.prevNode.nextNode = propTween.nextNode;
} else if (cachedPT1 == propTween) {
cachedPT1 = propTween.nextNode;
}
if (propTween.isPlugin && (propTween.target.onDisable)) {
propTween.target.onDisable();
if (propTween.target.activeDisable) {
return(true);
}
}
return(false);
}
function invalidate() {
yoyo = Boolean(vars.yoyo);
_repeat = vars.repeat || 0;
_repeatDelay = vars.repeatDelay || 0;
setDirtyCache(true);
super.invalidate();
}
function updateTo(vars, adjustStartingValues) {
var _local9 = cachedPT1;
var _local8 = cachedTotalTime;
var _local2;
var _local3;
var _local7;
var _local6;
var _local5;
if (initted) {
if (adjustStartingValues != true) {
__set__totalTime(0);
}
killVars(vars, false);
for (_local2 in vars) {
if (com.greensock.TweenLite._reservedProps[_local2] != undefined) {
} else if (com.greensock.TweenLite.plugins[_local2] != undefined) {
_local3 = new com.greensock.TweenLite.plugins[_local2]();
if (!_local3.onInitTween(target, vars[_local2], this)) {
cachedPT1 = insertPropTween(target, _local2, target[_local2], vars[_local2], _local2, false, cachedPT1);
} else {
_local6 = {};
_local5 = _local3.overwriteProps.length;
while (_local5--) {
_local6[_local3.overwriteProps[_local5]] = true;
}
killVars(_local6, false);
cachedPT1 = insertPropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length == 1) ? (_local3.overwriteProps[0]) : "_MULTIPLE_"), true, cachedPT1);
_hasPlugins = true;
if (_local3.priority) {
cachedPT1.priority = _local3.priority;
_local7 = true;
}
}
} else {
cachedPT1 = insertPropTween(target, _local2, target[_local2], vars[_local2], _local2, false, cachedPT1);
}
this.vars[_local2] = vars[_local2];
}
if (_local7) {
com.greensock.TweenLite.onPluginEvent("onInit", this);
}
if ((adjustStartingValues == true) && (cachedTotalTime)) {
adjustStartValues();
}
} else {
for (_local2 in vars) {
this.vars[_local2] = vars[_local2];
}
}
}
function setDestination(property, value, adjustStartValues) {
var _local2 = {};
_local2[property] = value;
updateTo(_local2, Boolean(adjustStartValues != false));
}
function adjustStartValues() {
if (cachedTime != 0) {
var _local4 = 1 / (1 - ratio);
var _local2 = cachedPT1;
var _local3;
var _local5;
while (_local2) {
_local3 = _local2.start + _local2.change;
if (_local2.isPlugin) {
_local2.change = (_local3 - ratio) * _local4;
} else {
_local2.change = (_local3 - _local2.target[_local2.property]) * _local4;
}
_local2.start = _local3 - _local2.change;
_local2 = _local2.nextNode;
}
}
}
function killProperties(names) {
var _local3 = {};
var _local2 = names.length;
while (_local2--) {
_local3[names[_local2]] = true;
}
killVars(_local3);
}
function renderTime(time, suppressEvents, force) {
if ((!active) && (!cachedPaused)) {
active = true;
}
var _local9 = (cacheIsDirty ? (totalDuration) : (cachedTotalDuration));
var _local7 = cachedTime;
var _local4;
var _local10;
var _local6;
if (time >= _local9) {
cachedTotalTime = _local9;
cachedTime = cachedDuration;
ratio = 1;
_local4 = true;
if (cachedDuration == 0) {
if (((time == 0) || (_rawPrevTime < 0)) && (_rawPrevTime != time)) {
force = true;
}
_rawPrevTime = time;
}
} else if (time <= 0) {
if (time < 0) {
active = false;
if (cachedDuration == 0) {
if (_rawPrevTime > 0) {
force = true;
_local4 = true;
}
_rawPrevTime = time;
}
}
cachedTotalTime = (cachedTime = (ratio = 0));
if (cachedReversed && (_local7 != 0)) {
_local4 = true;
}
} else {
cachedTotalTime = (cachedTime = time);
_local6 = true;
}
if (_repeat != 0) {
var _local5 = cachedDuration + _repeatDelay;
if (_local4) {
if (yoyo && (_repeat % 2)) {
cachedTime = (ratio = 0);
}
} else if (time > 0) {
if (_cyclesComplete != ((_cyclesComplete = Math.floor(cachedTotalTime / _local5)))) {
_local10 = true;
}
cachedTime = ((cachedTotalTime / _local5) - _cyclesComplete) * _local5;
if (yoyo && (_cyclesComplete % 2)) {
cachedTime = cachedDuration - cachedTime;
} else if (cachedTime >= cachedDuration) {
cachedTime = cachedDuration;
ratio = 1;
_local6 = false;
}
if (cachedTime <= 0) {
cachedTime = (ratio = 0);
_local6 = false;
}
}
}
if ((_local7 == cachedTime) && (!force)) {
return(undefined);
}
if (!initted) {
init();
}
if (_local6) {
ratio = _ease(cachedTime, 0, 1, cachedDuration);
}
if ((((_local7 == 0) && (vars.onStart)) && (cachedTotalTime != 0)) && (!suppressEvents)) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
var _local2 = cachedPT1;
while (_local2) {
_local2.target[_local2.property] = _local2.start + (ratio * _local2.change);
_local2 = _local2.nextNode;
}
if (_hasUpdate && (!suppressEvents)) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4) {
if (_hasPlugins && (cachedPT1)) {
com.greensock.TweenLite.onPluginEvent("onComplete", this);
}
complete(true, suppressEvents);
} else if (_local10 && (!suppressEvents)) {
if (vars.onRepeat) {
vars.onRepeat.apply(vars.onRepeatScope, vars.onRepeatParams);
}
}
}
static function to(target, duration, vars) {
return(new com.greensock.TweenMax(target, duration, vars));
}
static function from(target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(new com.greensock.TweenMax(target, duration, vars));
}
static function fromTo(target, duration, fromVars, toVars) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return(new com.greensock.TweenMax(target, duration, toVars));
}
static function allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
var _local3;
var _local2;
var _local1;
var _local7 = targets.length;
var _local5 = [];
var _local6 = vars.delay || 0;
var onCompleteProxy = vars.onComplete;
var onCompleteParamsProxy = vars.onCompleteParams;
var onCompleteScopeProxy = vars.onCompleteScope;
var _local9 = (((stagger <= 0) || (stagger == undefined)) ? 0 : (_local7 - 1));
_local3 = 0;
while (_local3 < _local7) {
_local2 = {};
for (_local1 in vars) {
_local2[_local1] = vars[_local1];
}
_local2.delay = _local6;
if ((_local3 == _local9) && (onCompleteAll != undefined)) {
_local2.onComplete = function () {
if (onCompleteProxy != undefined) {
onCompleteProxy.apply(onCompleteScopeProxy, onCompleteParamsProxy);
}
onCompleteAll.apply(onCompleteAllScope, onCompleteAllParams);
};
}
_local5[_local5.length] = new com.greensock.TweenMax(targets[_local3], duration, _local2);
_local6 = _local6 + stagger;
_local3++;
}
return(_local5);
}
static function allFrom(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope));
}
static function allFromTo(targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return(allTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope));
}
static function delayedCall(delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return(new com.greensock.TweenMax(onComplete, 0, {delay:delay, onComplete:onComplete, onCompleteParams:onCompleteParams, onCompleteScope:onCompleteScope, immediateRender:false, useFrames:useFrames, overwrite:0}));
}
static function getTweensOf(target) {
var _local2 = com.greensock.TweenLite.masterList[target].tweens;
var _local3 = [];
if (_local2) {
var _local1 = _local2.length;
while (_local1--) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
}
}
return(_local3);
}
static function isTweening(target) {
var _local3 = getTweensOf(target);
var _local2 = _local3.length;
var _local1;
while (_local2--) {
_local1 = _local3[_local2];
if (_local1.active || ((_local1.cachedStartTime == _local1.timeline.cachedTime) && (_local1.timeline.active))) {
return(true);
}
}
return(false);
}
static function getAllTweens() {
var _local5 = com.greensock.TweenLite.masterList;
var _local4 = 0;
var _local3 = [];
var _local2;
var _local1;
for (var _local6 in _local5) {
_local2 = _local5[_local6].tweens;
_local1 = _local2.length;
while (_local1--) {
if (!_local2[_local1].gc) {
_local3[_local4++] = _local2[_local1];
}
}
}
return(_local3);
}
static function killAll(complete, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length;
while (_local1--) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local3 == delayedCalls) || (_local3 != tweens)) {
if (complete == true) {
_local2[_local1].complete(false, false);
} else {
_local2[_local1].setEnabled(false, false);
}
}
}
}
static function killChildTweensOf(parent, complete) {
var _local3 = getAllTweens();
var _local4;
var _local1;
var _local2 = _local3.length;
while (_local2--) {
_local4 = _local3[_local2].target;
if (_local4 instanceof MovieClip) {
_local1 = _local4._parent;
while (_local1) {
if (_local1 == parent) {
if (complete == true) {
_local3[_local2].complete(false, false);
} else {
_local3[_local2].setEnabled(false, false);
}
}
_local1 = _local1._parent;
}
}
}
}
static function pauseAll(tweens, delayedCalls) {
changePause(true, tweens, delayedCalls);
}
static function resumeAll(tweens, delayedCalls) {
changePause(false, tweens, delayedCalls);
}
static function changePause(pause, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length;
while (_local1--) {
_local3 = Boolean(_local2[_local1].target == _local2[_local1].vars.onComplete);
if ((_local3 == delayedCalls) || (_local3 != tweens)) {
_local2[_local1].paused = pause;
}
}
}
function get currentProgress() {
return(cachedTime / __get__duration());
}
function set currentProgress(n) {
if (_cyclesComplete == 0) {
setTotalTime(__get__duration() * n, false);
} else {
setTotalTime((__get__duration() * n) + (_cyclesComplete * cachedDuration), false);
}
//return(currentProgress);
}
function get totalProgress() {
return(cachedTotalTime / totalDuration);
}
function set totalProgress(n) {
setTotalTime(totalDuration * n, false);
//return(totalProgress);
}
function get currentTime() {
return(cachedTime);
}
function set currentTime(n) {
if (_cyclesComplete == 0) {
} else if (yoyo && ((_cyclesComplete % 2) == 1)) {
n = (__get__duration() - n) + (_cyclesComplete * (cachedDuration + _repeatDelay));
} else {
n = n + (_cyclesComplete * (__get__duration() + _repeatDelay));
}
setTotalTime(n, false);
//return(currentTime);
}
function get totalDuration() {
if (cacheIsDirty) {
cachedTotalDuration = ((_repeat == -1) ? 999999999999 : ((cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat)));
cacheIsDirty = false;
}
return(cachedTotalDuration);
}
function set totalDuration(n) {
if (_repeat == -1) {
return;
}
__set__duration((n - (_repeat * _repeatDelay)) / (_repeat + 1));
//return(totalDuration);
}
function get timeScale() {
return(cachedTimeScale);
}
function set timeScale(n) {
if (n == 0) {
n = 0.0001;
}
var _local3 = ((_pauseTime || (_pauseTime == 0)) ? (_pauseTime) : (timeline.cachedTotalTime));
cachedStartTime = _local3 - (((_local3 - cachedStartTime) * cachedTimeScale) / n);
cachedTimeScale = n;
setDirtyCache(false);
//return(timeScale);
}
function get repeat() {
return(_repeat);
}
function set repeat(n) {
_repeat = n;
setDirtyCache(true);
//return(repeat);
}
function get repeatDelay() {
return(_repeatDelay);
}
function set repeatDelay(n) {
_repeatDelay = n;
setDirtyCache(true);
//return(repeatDelay);
}
static function get globalTimeScale() {
return(((com.greensock.TweenLite.rootTimeline == undefined) ? 1 : (com.greensock.TweenLite.rootTimeline.cachedTimeScale)));
}
static function set globalTimeScale(n) {
if (n == 0) {
n = 0.0001;
}
if (com.greensock.TweenLite.rootTimeline == undefined) {
com.greensock.TweenLite.to({}, 0, {});
}
var _local1 = com.greensock.TweenLite.rootTimeline;
var _local2 = getTimer() * 0.001;
_local1.cachedStartTime = _local2 - (((_local2 - _local1.cachedStartTime) * _local1.cachedTimeScale) / n);
_local1 = com.greensock.TweenLite.rootFramesTimeline;
_local2 = com.greensock.TweenLite.rootFrame;
_local1.cachedStartTime = _local2 - (((_local2 - _local1.cachedStartTime) * _local1.cachedTimeScale) / n);
com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale = (com.greensock.TweenLite.rootTimeline.cachedTimeScale = n);
//return(globalTimeScale);
}
static var version = 11.12;
static var _activatedPlugins = com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin, com.greensock.plugins.EndArrayPlugin, com.greensock.plugins.FramePlugin, com.greensock.plugins.RemoveTintPlugin, com.greensock.plugins.TintPlugin, com.greensock.plugins.VisiblePlugin, com.greensock.plugins.VolumePlugin, com.greensock.plugins.BevelFilterPlugin, com.greensock.plugins.BezierPlugin, com.greensock.plugins.BezierThroughPlugin, com.greensock.plugins.BlurFilterPlugin, com.greensock.plugins.ColorMatrixFilterPlugin, com.greensock.plugins.ColorTransformPlugin, com.greensock.plugins.DropShadowFilterPlugin, com.greensock.plugins.FrameLabelPlugin, com.greensock.plugins.GlowFilterPlugin, com.greensock.plugins.HexColorsPlugin, com.greensock.plugins.RoundPropsPlugin, com.greensock.plugins.ShortRotationPlugin, {}]);
static var _overwriteMode = (com.greensock.OverwriteManager.enabled ? (com.greensock.OverwriteManager.mode) : (com.greensock.OverwriteManager.init(2)));
static var killTweensOf = com.greensock.TweenLite.killTweensOf;
static var killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
}
Symbol 183 MovieClip [__Packages.com.greensock.easing.Expo] Frame 0
class com.greensock.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : (((c * Math.pow(2, 10 * ((t / d) - 1))) + b) - (c * 0.001))));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d * 0.5);
if (t < 1) {
return(((c * 0.5) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c * 0.5) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
}
Symbol 184 MovieClip [__Packages.com.greensock.easing.Back] Frame 0
class com.greensock.easing.Back
{
function Back () {
}
static function easeIn(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 easeOut(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 easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d * 0.5);
if (t < 1) {
s = s * 1.525;
return(((c * 0.5) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c * 0.5) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
play();