Frame 1
function goToSoap() {
_root.getURL("http://www.soap.com.au", "_blank");
}
function goToNGK() {
ngsCustomEvent("http://kids.nationalgeographic.com/", "exit_link");
getURL ("http://kids.nationalgeographic.com/", "_blank");
}
function movLoaded() {
xmov = xmovA[movi];
xmovTXT = xmovTXTA[movi];
movi++;
if (movi == (xmovA.length + 1)) {
delete xmov;
delete movi;
gotoAndPlay ("loaded");
}
}
var cm = new ContextMenu();
cm.hideBuiltInItems();
var cmItem = new ContextMenuItem("Game by Soap Creative", goToSoap);
cm.customItems.push(cmItem);
var cmItem = new ContextMenuItem("Visit National Geographic Kids", goToNGK);
cm.customItems.push(cmItem);
this.menu = cm;
xmovA = new Array(this);
xmovTXTA = new Array("GAME");
movi = 0;
movLoaded();
loader.gotoAndPlay(2);
stop();
Instance of Symbol 5 MovieClip [NG Analytics] in Frame 1
//component parameters
onClipEvent (construct) {
delay = 100;
}
Frame 8
function __com_mochibot__(swfid, mc, lv, trk) {
var _local4;
var _local5;
var _local2;
var _local11;
var _local6;
var _local10;
var _local12;
var _local3;
var _local7;
_local3 = "__mochibot__";
_local7 = "mochibot.com";
_local5 = (_global ? _global : (_level0._root));
if (_local5[_local3 + swfid]) {
return(_local5[_local3 + swfid]);
}
_local2 = System.security;
_local4 = mc._root.getSWFVersion;
_local11 = (_local4 ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!_local2) {
_local2 = {};
}
_local6 = _local2.sandboxType;
if (_local6 == "localWithFile") {
return(null);
}
_local4 = _local2.allowDomain;
if (_local4) {
_local2.allowDomain(_local7);
}
_local4 = _local2.allowInsecureDomain;
if (_local4) {
_local2.allowInsecureDomain(_local7);
}
_local10 = (((((((((((("http://" + _local7) + "/my/core.swf?mv=7&fv=") + _local11) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (_local6 ? ("&sb=" + _local6) : "")) + (trk ? "&t=1" : "");
lv = ((_local11 > 6) ? (mc.getNextHighestDepth()) : ((_local5[_local3 + "level"] ? (_local5[_local3 + "level"] + 1) : (lv))));
_local5[_local3 + "level"] = lv;
_local12 = "_level" + lv;
loadMovieNum (_local10, 2);
return(_local12);
}
__com_mochibot__("20c6b0c6", this, 10301, true);
_global.trackSite = function (n) {
ngsPageView(n);
};
_global.GAME = this;
SOT = "RECYCLEROUNDUP_1.1";
so = SharedObject.getLocal(SOT, "/");
_global.SOD = so.data;
if (SOD.bestScore == undefined) {
SOD.bestScore = 0;
}
_global.GAMEID = 120;
String.prototype.SR = function (find, replace) {
return(this.split(find).join(replace));
};
_global.makeKash = function (num) {
num = num + "";
numLength = num.length;
newNum = "";
if (numLength > 3) {
diff = numLength % 3;
i = 0;
while (i < numLength) {
if ((((i % 3) == diff) && (i != (numLength - 1))) && (i != 0)) {
newNum = newNum + ",";
}
newNum = newNum + num.charAt(i);
i++;
}
} else {
newNum = newNum + num;
}
return(newNum);
};
_global.chkEmail = function (e) {
if (e.length > 7) {
if (e.indexOf("@") > 0) {
if ((((e.indexOf(" ") < 0) && (e.indexOf(",") < 0)) && (e.indexOf("'") < 0)) && (e.indexOf("\"") < 0)) {
if ((e.indexOf("@") + 1) < e.lastIndexOf(".")) {
if (e.indexOf("@") == e.lastIndexOf("@")) {
if (e.lastIndexOf(".") < (e.length - 1)) {
return(true);
}
}
}
}
}
}
return(false);
};
_global.chkWWW = function (e) {
var _local1 = e.toLowerCase();
if (_local1.indexOf("www.") == 0) {
_local1 = e.slice(4);
return(_local1);
}
return(_local1);
};
Frame 67
function playS(s) {
if (s == "buttonOver") {
s = "buttonOver_" + random(4);
} else if (s == "happy") {
s = "happy_" + (random(3) + 1);
} else if (s == "sad") {
s = "sad_" + (random(2) + 1);
}
s = game[s];
s.start();
}
mainMusicM = new Sound(this.createEmptyMovieClip("mainMusicMS", 24));
mainMusicM.attachSound("mainMusic");
mainMusicM.start(0, 9999);
mainMusicM.setVolume(40);
thud = new Sound(this.createEmptyMovieClip("thudS", 12));
thud.attachSound("thud");
thud.setVolume(120);
whooshClose = new Sound(this.createEmptyMovieClip("whooshCloseS", 13));
whooshClose.attachSound("whooshClose");
whooshClose.setVolume(120);
whooshOpen = new Sound(this.createEmptyMovieClip("whooshOpenS", 14));
whooshOpen.attachSound("whooshOpen");
whooshOpen.setVolume(100);
buttonClick = new Sound(this.createEmptyMovieClip("buttonClickS", 15));
buttonClick.attachSound("buttonClick");
buttonClick.setVolume(120);
collect = new Sound(this.createEmptyMovieClip("collectS", 16));
collect.attachSound("collect");
collect.setVolume(50);
completeS = new Sound(this.createEmptyMovieClip("completeSS", 17));
completeS.attachSound("completeS");
completeS.setVolume(90);
buttonOver_0 = new Sound(this.createEmptyMovieClip("buttonOver_0S", 8));
buttonOver_0.attachSound("buttonOver_0");
buttonOver_0.setVolume(80);
buttonOver_1 = new Sound(this.createEmptyMovieClip("buttonOver_1S", 9));
buttonOver_1.attachSound("buttonOver_1");
buttonOver_1.setVolume(80);
buttonOver_2 = new Sound(this.createEmptyMovieClip("buttonOver_2S", 10));
buttonOver_2.attachSound("buttonOver_2");
buttonOver_2.setVolume(80);
buttonOver_3 = new Sound(this.createEmptyMovieClip("buttonOver_3S", 11));
buttonOver_3.attachSound("buttonOver_3");
buttonOver_3.setVolume(80);
binFill = new Sound(this.createEmptyMovieClip("binFillS", 18));
binFill.attachSound("binFill");
binFill.setVolume(70);
happy_1 = new Sound(this.createEmptyMovieClip("happy_1S", 19));
happy_1.attachSound("happy_1");
happy_1.setVolume(140);
happy_2 = new Sound(this.createEmptyMovieClip("happy_2S", 20));
happy_2.attachSound("happy_2");
happy_2.setVolume(140);
happy_3 = new Sound(this.createEmptyMovieClip("happy_3S", 21));
happy_3.attachSound("happy_3");
happy_3.setVolume(140);
sad_1 = new Sound(this.createEmptyMovieClip("sad_1S", 22));
sad_1.attachSound("sad_1");
sad_1.setVolume(140);
sad_2 = new Sound(this.createEmptyMovieClip("sad_2S", 23));
sad_2.attachSound("sad_2");
sad_2.setVolume(140);
gotoAndPlay ("mainMenu");
Frame 68
function gotoGame() {
gotoAndPlay ("mainOutro");
}
function soundOff() {
menuMC.soundMC.gotoAndStop(2);
globalS.setVolume(0);
}
function soundOn() {
menuMC.soundMC.gotoAndStop(1);
globalS.setVolume(100);
}
function showPanel(typ) {
if (typ != "newlevel") {
snapShotGame();
}
panelH.typ = typ;
panelH.gotoAndPlay(2);
}
function snapShotGame() {
border._visible = false;
panelBit = new flash.display.BitmapData(650, 500, false, 0);
panelBit.draw(this);
BMPH.attachBitmap(panelBit, 1);
gs.TweenFilterLite.to(BMPH, 0, {type:"Blur", blurX:8, blurY:8, quality:2});
BMPH._alpha = 0;
gs.TweenLite.to(BMPH, 0.5, {_alpha:100, ease:mx.transitions.easing.Regular.easeOut, onComplete:endMove, onCompleteParams:["dude"], overwrite:false});
border._visible = true;
}
function disposeSnapshot() {
panelBit.dispose();
}
function hideSnapShot() {
gs.TweenLite.to(BMPH, 0.5, {_alpha:0, ease:mx.transitions.easing.Regular.easeOut, onComplete:disposeSnapshot, onCompleteParams:["dude"], overwrite:false});
}
function visitSchol() {
ngsCustomEvent("http://www.scholastic.com/actgreen/", "exit_link");
getURL ("http://www.scholastic.com/actgreen/", "_blank");
}
_global.game = this;
disposeSnapshot();
trackSite("mainmenu");
globalS = new Sound();
Frame 135
stop();
Frame 144
function addWeight(id, typ) {
if (typ == "rec") {
KGrecycled = KGrecycled + weightA[id];
} else if (typ == "comp") {
KGcomposted = KGcomposted + weightA[id];
}
}
function updateScore(sc, typ) {
score = score + sc;
if (score < 0) {
score = 0;
}
topNav.tempScoreView = makeKash(score);
game.userScore = score;
}
function initScores(typ) {
itemA = new Array();
fallenA = new Array();
shadA = new Array();
itemi = 55;
missed = 0;
itemsCollected = 0;
if (typ != "level") {
iright = 0;
wrong = 0;
KGrecycled = 0;
KGcomposted = 0;
score = 0;
userScore = 0;
}
}
function endLevel() {
playS("completeS");
trackSite("finish_level");
stopTimer();
stopCode("level");
updateScore(itemsToCollect * levelMultiplyer, "level");
level++;
itemsToCollect = itemsToCollect + itemsToCollectIncrease;
showPanel("newlevel");
initScores("level");
}
function calcDepth(mc) {
var _local3 = mc._x;
var _local2 = mc._y;
if (mc.ydest) {
_local2 = mc.ydest;
}
return(int(((_local2 * 15) + _local3) + 200));
}
function ranBeep() {
if (random(2) == 0) {
soundBeep.gotoAndPlay("s" + (random(7) + 1));
}
}
function stopTimer() {
timer.gotoAndStop(1);
}
function startTimer() {
timer.mins = 2;
secs = 0;
timer.secs = secs;
total_secs = timer.mins * 60;
total_secs = total_secs + secs;
timer.reset = int(getTimer() / 1000);
timer.gotoAndPlay(2);
}
function times_up() {
gameOver();
}
function quitGame() {
gameOver();
}
function gameOver() {
stopTimer();
trackSite("gameover");
if (userScore > SOD.bestScore) {
SOD.bestScore = userScore;
}
showPanel("gameover");
stopCode();
}
function getScale(y) {
return(game.scMin + (game.scDiff * ((y - game.ymin) / game.yDiff)));
}
function fillBin(n) {
player.ani = true;
player.holding = false;
var _local1 = game["bin" + n];
_local1.gotoAndPlay("fill");
var _local3 = player.items;
_local1.items.gotoAndStop(player.itemHoldID);
if ((itemTypeA[player.itemHoldID - 1] == _local1.typ) || (itemTypeA[player.itemHoldID - 1] == _local1.typ2)) {
player.gotoAndPlay("putInBinRight");
iright++;
itemsCollected++;
var _local2 = itemTypeA[player.itemHoldID - 1];
if (_local2 == "reccomp") {
_local2 = _local1.typ;
}
addWeight(player.itemHoldID - 1, _local2);
if (player.itemHoldFallen) {
updateScore(rightScFallen);
} else {
updateScore(rightSc);
}
} else {
player.gotoAndPlay("putInBinWrong");
wrong++;
updateScore(wrongSc);
}
}
function removeItemA(mc, typ) {
if ((typ == "missed") || (typ == "remove")) {
var _local1 = 0;
while (_local1 < itemLim) {
if (mc == itemA[_local1]) {
itemA.splice(_local1, 1);
itemLim = itemA.length;
}
_local1++;
}
if (typ == "missed") {
mc.fallen = true;
fallenA.push(mc);
}
} else {
var _local1 = 0;
while (_local1 < fallenA.length) {
if (mc == fallenA[_local1]) {
fallenA.splice(_local1, 1);
}
_local1++;
}
}
}
function missItem(mc) {
missed++;
mc.gotoAndPlay("missed");
removeItemA(mc, "missed");
}
function runGame() {
var _local2 = 0;
while (_local2 < itemLim) {
var _local1 = itemA[_local2];
_local1._y = _local1._y + _local1.sp;
var _local3 = _local1.shad._y - _local1._y;
var _local5 = int(100 * (_local3 / _local1.ydist)) / 100;
var _local4 = (30 - (30 * _local5)) + 10;
_local1.shad._alpha = _local4;
if (_local1._y >= _local1.ydest) {
missItem(_local1);
}
_local2++;
}
}
function tryCatch() {
var _local7 = itemA.concat(fallenA);
var _local8 = _local7.length;
var _local2 = 0;
while (_local2 < _local8) {
var _local1 = _local7[_local2];
var _local6 = _local1._x;
var _local5 = _local1._y;
var _local4 = _local1.ydest;
if (player.catchMC.hitTest(_local6, _local5, 1)) {
var _local3 = _local4 - player._y;
if ((_local3 < itemCatchYDist) && (_local3 > 0)) {
catchedItem(_local1);
break;
}
}
_local2++;
}
if (player.holding) {
if (player.itemHoldFallen) {
player.gotoAndPlay("pickup_item");
} else {
player.gotoAndPlay("catch_item");
}
} else {
player.gotoAndPlay("catch");
}
}
function catchedItem(mc) {
removeItemA(mc, "catch");
mc.gotoAndPlay("catched");
player.holding = true;
player.itemHoldID = mc.id;
player.itemHoldFallen = mc.fallen;
}
function testRubbishHit(x, y) {
if (bin1.hitTest(x, y, 1)) {
return(true);
}
if (bin2.hitTest(x, y, 1)) {
return(true);
}
if (bin3.hitTest(x, y, 1)) {
return(true);
}
return(false);
}
function makeFallingObj() {
var _local3 = random(600) + 25;
var _local2 = (ymin + 10) + random(yDiffItem - 10);
while (testRubbishHit(_local3, _local2)) {
_local3 = random(600) + 25;
_local2 = (ymin + 10) + random(yDiffItem - 10);
}
var _local1 = falling.duplicateMovieClip("fallItem" + itemi, itemi);
_local1.fallen = false;
var _local5 = random(itemTypeA.length) + 1;
_local1.id = _local5;
_local1.items.gotoAndStop(_local5);
_local1._x = _local3;
var _local6 = getScale(_local2);
_local1._yscale = (_local1._xscale = _local6);
_local1.ydest = _local2;
_local1.sp = random(3) + 1;
if (level > 2) {
_local1.sp = _local1.sp + (level / 5);
if (_local1.sp > 6) {
_local1.sp = 6;
}
}
itemA.push(_local1);
itemLim = itemA.length;
_local1.swapDepths(calcDepth(_local1));
var _local4 = shadH.itemShad.duplicateMovieClip("itemShad" + itemi, itemi);
shadA.push(_local4);
_local1.shad = _local4;
_local4._x = _local3;
_local4._y = _local2;
_local4._alpha = 10;
_local4.items.gotoAndStop(_local5);
var _local7 = _local1._width;
_local4._width = _local7 - 4;
_local6 = _local4._xscale;
_local4._yscale = _local6;
_local1.ydist = _local2 - _local1._y;
gs.TweenFilterLite.to(_local4, 0, {type:"Blur", blurX:2, blurY:2, quality:2});
itemi++;
}
function gameInt() {
if ((itemA.length + fallenA.length) < itemMax) {
makeFallingObj();
}
}
function removeAllStuff(typ) {
if (typ != "level") {
player.removeMovieClip();
bin1.removeMovieClip();
bin2.removeMovieClip();
bin3.removeMovieClip();
}
var _local4 = itemA.concat(fallenA);
var _local5 = _local4.length;
var _local1 = 0;
while (_local1 < (_local5 + 10)) {
var _local3 = _local4[_local1];
_local3.removeMovieClip();
_local1++;
}
_local1 = 0;
while (_local1 < shadA.length) {
var _local2 = shadA[_local1];
_local2.removeMovieClip();
_local1++;
}
shadA = new Array();
delete fallenA;
delete itemA;
}
function stopCode(typ) {
delete player.onEnterFrame;
Mouse.removeListener(ML);
this.onEnterFrame = null;
clearInterval(gameTimerInt);
removeAllStuff(typ);
}
function backToMain() {
stopCode();
gotoAndPlay ("mainMenu");
}
function playAgain() {
player.removeMovieClip();
panelH.removeMovieClip();
gotoAndPlay ("resetGame");
}
function startGame() {
clearInterval(gameTimerInt);
gameTimerInt = setInterval(gameInt, 2200);
this.onEnterFrame = function () {
runGame();
};
Mouse.addListener(ML);
player.onEnterFrame = function () {
playerFunc();
};
startTimer();
}
timer = topNav.timer;
trackSite("game");
ymin = 285;
ymax = 455;
ymaxItem = 420;
yDiff = ymax - ymin;
yDiffItem = ymaxItem - ymin;
itemMax = 10;
itemTypeA = new Array("rec", "rec", "rec", "rec", "rec", "comp", "comp", "comp", "comp", "comp", "comp", "reccomp", "reccomp", "reccomp", "reccomp", "reccomp", "reccomp", "reccomp", "reccomp", "nonrec", "nonrec", "nonrec");
weightA = new Array(0.149, 0.15, 0.085, 0.065, 0.133, 0.006, 0.005, 0.01, 0.045, 0.04, 0.2, 0.08, 0.18, 0.1, 0.09, 0.4, 0.018, 0.025, 0.085, 0, 0, 0, 0, 0);
scMax = 90;
scMin = 40;
scDiff = scMax - scMin;
itemCatchYDist = 50;
bin1.bin.gotoAndStop(1);
bin2.bin.gotoAndStop(2);
bin3.bin.gotoAndStop(3);
bin1.typ = "rec";
bin1.typ2 = "reccomp";
bin2.typ = "nonrec";
bin3.typ = "comp";
bin3.typ2 = "reccomp";
rightSc = 500;
rightScFallen = 300;
wrongSc = -250;
initScores();
itemsToCollectIncrease = 5;
itemsToCollect = 5;
level = 1;
levelMultiplyer = 250;
player.ani = false;
player.holding = false;
player.waiting = true;
followDot.onEnterFrame = function () {
var _local3 = game._xmouse;
var _local2 = game._ymouse;
_local2 = Math.max(_local2, game.ymin - 10);
_local2 = Math.min(_local2, game.ymax);
this._y = _local2;
this._x = _local3;
};
playerFunc = function () {
var _local1 = game.followDot._x - player._x;
var _local2 = game.followDot._y - player._y;
if (!player.ani) {
if ((Math.abs(_local1) < 2) && (Math.abs(_local2) < 2)) {
if (player.holding) {
player.gotoAndStop("wait_item");
} else {
player.gotoAndStop("wait");
}
player.waiting = true;
} else {
if (_local1 < 0) {
dir = "left";
} else {
dir = "right";
}
if (player.waiting || (dir != player.currentDIR)) {
if (dir == "left") {
player.currentDIR = "left";
if (player.holding) {
player.gotoAndPlay("walk_left_item");
} else {
player.gotoAndPlay("walk_left");
}
} else {
player.currentDIR = "right";
if (player.holding) {
player.gotoAndPlay("walk_right_item");
} else {
player.gotoAndPlay("walk_right");
}
}
player.waiting = false;
}
}
}
player._x = player._x + (_local1 / 4);
player._y = player._y + (_local2 / 4);
var _local3 = getScale(player._y);
player._yscale = (player._xscale = _local3);
player.swapDepths(calcDepth(player));
};
var ML = new Object();
ML.onMouseDown = function () {
if (!menuMC.hitTest(_xmouse, _ymouse, 1)) {
if (!player.holding) {
player.ani = true;
tryCatch();
} else {
var _local2 = player._x;
var _local1 = player._y;
if (bin1.hitTest(_local2, _local1, 1)) {
fillBin(1);
} else if (bin2.hitTest(_local2, _local1, 1)) {
fillBin(2);
} else if (bin3.hitTest(_local2, _local1, 1)) {
fillBin(3);
}
}
}
};
var sc = getScale(player._y);
player._yscale = (player._xscale = sc);
Frame 164
bin1.swapDepths(calcDepth(bin1));
bin2.swapDepths(calcDepth(bin2));
bin3.swapDepths(calcDepth(bin3));
player.swapDepths(99);
panelH.swapDepths(this.getNextHighestDepth());
showPanel("newlevel");
Frame 169
stop();
Frame 171
gotoAndPlay ("theGame");
Symbol 5 MovieClip [NG Analytics] Frame 1
#initclip 6
Object.registerClass("NG Analytics", GetURLManager);
#endinitclip
Symbol 10 MovieClip Frame 1
c = 0;
r = 0;
col = 0;
var i = 0;
while (i < 900) {
var mc = pattern.duplicateMovieClip("p_" + i, i);
mc._x = 20 * c;
if ((r % 2) == 0) {
mc._x = mc._x + 10;
}
mc._y = 20 * r;
if (c == 33) {
r++;
c = 0;
}
c++;
i++;
}
Symbol 15 MovieClip Frame 1
percent = 0;
_xscale = 1;
fric = 3;
stop();
Symbol 15 MovieClip Frame 2
play();
Symbol 15 MovieClip Frame 3
myl = _root.xmov.getBytesLoaded();
myt = _root.xmov.getBytesTotal();
if (myt > 50) {
percent = int((myl / myt) * 100);
_parent._parent.loadMSG = ("LOADING " + percent) + "%";
xdest = percent;
if ((myt == myl) && ((_xscale > 99.4) && (myt > 50))) {
_root.movLoaded();
gotoAndPlay (1);
} else {
play();
}
}
xdiff = xdest - _xscale;
_xscale = (_xscale + (xdiff / fric));
Symbol 15 MovieClip Frame 4
gotoAndPlay (3);
Symbol 23 MovieClip Frame 1
c = 0;
stop();
Symbol 23 MovieClip Frame 2
loadB.loadB.gotoAndPlay(2);
play();
Symbol 23 MovieClip Frame 3
gotoAndPlay (2);
Symbol 723 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _gc;
var tweenID, endTargetID, vars, duration, delay, target, _endTarget, tweens, extraTweens, initTime, _active, color, colorParts, _sound, startTime, __get__endTarget;
function TweenLite ($target, $duration, $vars) {
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
if (($vars.overwrite != false) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration;
delay = $vars.delay || 0;
if ($duration == 0) {
duration = 0.001;
if (delay == 0) {
vars.runBackwards = true;
}
}
target = (_endTarget = $target);
if (typeof(vars.ease) != "function") {
vars.ease = easeOut;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (vars.mcColor != undefined) {
vars.tint = vars.mcColor;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
}
tweens = {};
extraTweens = {};
initTime = getTimer();
if (vars.runBackwards == true) {
initTweenVals();
}
_active = false;
if (($duration == 0) && (delay == 0)) {
complete(true);
} else {
if (_e._visible != false) {
if (!_root.tweenLite_mc) {
var _local5 = _root.getNextHighestDepth() || 9999;
_e = _root.createEmptyMovieClip("tweenLite_mc", _local5);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
}
_e.onEnterFrame = executeAll;
}
}
function initTweenVals() {
var _local6 = delay - ((getTimer() - initTime) / 1000);
var _local8 = typeof(target) == "movieclip";
var _local3;
var _local10;
if (target instanceof Array) {
var _local9 = vars.endArray || ([]);
var _local2 = 0;
while (_local2 < _local9.length) {
if ((target[_local2] != _local9[_local2]) && (target[_local2] != undefined)) {
tweens[_local2.toString()] = {o:target, s:target[_local2], c:_local9[_local2] - target[_local2]};
}
_local2++;
}
} else {
for (var _local31 in vars) {
_local3 = vars[_local31];
if ((((((((((((((_local31 == "delay") || (_local31 == "ease")) || (_local31 == "overwrite")) || (_local31 == "onComplete")) || (_local31 == "onCompleteParams")) || (_local31 == "runBackwards")) || (_local31 == "onUpdate")) || (_local31 == "onUpdateParams")) || (_local31 == "autoAlpha")) || (_local31 == "onStart")) || (_local31 == "onStartParams")) || (_local31 == "easeParams")) || (_local31 == "mcColor")) || (_local31 == "type")) {
} else if ((_local31 == "tint") && (_local8 || (target instanceof TextField))) {
color = new Color(target);
colorParts = color.getTransform();
var _local7;
var _local4;
if ((_local3 == null) || (_local3 == "")) {
if (vars._alpha != undefined) {
_local4 = vars._alpha;
delete vars._alpha;
delete tweens._alpha;
} else {
_local4 = target._alpha;
}
_local7 = {rb:0, gb:0, bb:0, ab:0, ra:_local4, ga:_local4, ba:_local4, aa:_local4, ease:vars.ease, delay:_local6, overwrite:false, runBackwards:vars.runBackwards};
} else {
_local7 = {rb:_local3 >> 16, gb:(_local3 >> 8) & 255, bb:_local3 & 255, ra:0, ga:0, ba:0, ease:vars.ease, delay:_local6, overwrite:false, runBackwards:vars.runBackwards};
}
var _local12 = new gs.TweenLite(colorParts, duration, _local7);
var _local13 = new gs.TweenLite(this, duration, {colorProxy:1, delay:_local6, overwrite:false, runBackwards:vars.runBackwards});
_local12.endTarget = (_local13.endTarget = target);
} else if ((_local31 == "volume") && (_local8 || (target instanceof Sound))) {
if (_local8) {
_sound = new Sound(target);
} else {
_sound = Sound(target);
}
var _local11 = new gs.TweenLite(this, duration, {volumeProxy:_local3, ease:easeOut, delay:_local6, overwrite:false, runBackwards:vars.runBackwards});
_local11.endTarget = target;
} else if (target[_local31] != undefined) {
if (typeof(vars[_local31]) == "number") {
_local10 = _local3 - target[_local31];
} else {
_local10 = Number(_local3);
}
tweens[_local31] = {o:target, s:target[_local31], c:_local10};
} else {
extraTweens[_local31] = {o:target, s:0, c:0, v:_local3};
}
}
}
if (vars.runBackwards == true) {
var _local5;
for (var _local31 in tweens) {
_local5 = tweens[_local31];
_local5.s = _local5.s + _local5.c;
_local5.c = _local5.c * -1;
_local5.o[_local31] = _local5.s;
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
}
if (typeof(vars.autoAlpha) == "number") {
target._visible = !((vars.runBackwards == true) && (target._alpha == 0));
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:false}));
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
startTime = 0;
render(duration * 1000);
return(undefined);
}
if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) {
target._visible = false;
}
if (vars.onComplete) {
vars.onComplete.apply(null, vars.onCompleteParams);
}
removeTween(this);
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
function render($t) {
var _local4 = ($t - startTime) / 1000;
if (_local4 > duration) {
_local4 = duration;
}
var _local2;
var _local3 = vars.ease(_local4, 0, 1, duration);
for (var _local5 in tweens) {
_local2 = tweens[_local5];
_local2.o[_local5] = _local2.s + (_local3 * _local2.c);
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function executeAll() {
var _local2 = _all;
var _local3 = getTimer();
var _local1;
for (var _local5 in _local2) {
for (var _local4 in _local2[_local5]) {
_local1 = _local2[_local5][_local4];
if (_local1.active) {
_local1.render(_local3);
}
}
}
}
static function killGarbage() {
if (_e.onEnterFrame != null) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_e.onEnterFrame = null;
}
}
}
static function easeOut($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
function get active() {
if (_active) {
return(true);
}
if (((getTimer() - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (vars.runBackwards != true) {
initTweenVals();
} else if (typeof(vars.autoAlpha) == "number") {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(null, vars.onStartParams);
}
return(true);
}
return(false);
}
function set endTarget($t) {
if ((duration == 0.001) && (delay <= 0)) {
removeTween(this);
} else {
_all[endTargetID][tweenID] = {active:false};
delete _all[endTargetID][tweenID];
endTargetID = getID($t, true);
_endTarget = $t;
_all[endTargetID][tweenID] = this;
}
//return(__get__endTarget());
}
function set volumeProxy($n) {
_sound.setVolume($n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_sound.getVolume());
}
function set colorProxy($n) {
color.setTransform(colorParts);
//return(colorProxy);
}
function get colorProxy() {
return(0);
}
static var version = 5.9;
static var _all = new Object();
static var _cnt = -16000;
static var killDelayedCallsTo = killTweensOf;
}
Symbol 724 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _mc, _clrsa, vars, _matrix, tweens, _f, _endMatrix, initTime, delay, _clrMtxTw, duration, _fType, extraTweens, __get__active, startTime;
function TweenFilterLite ($mc, $duration, $vars) {
super($mc, $duration, $vars);
_mc = $mc;
_clrsa = [];
if (vars.runBackwards == true) {
initTweenVals();
}
if ((gs.TweenLite.version < 5.84) || (gs.TweenLite.version == undefined)) {
}
}
function initTweenVals() {
if (_mc != undefined) {
super.initTweenVals();
if (vars.type != undefined) {
_clrsa = [];
_matrix = _idMatrix.slice();
if ((vars.quality == undefined) || (isNaN(vars.quality))) {
vars.quality = 2;
}
if (vars.runBackwards == true) {
for (var _local3 in tweens) {
tweens[_local3].flipped = true;
}
}
switch (vars.type.toLowerCase()) {
case "blur" :
setFilter(flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, vars.quality));
break;
case "glow" :
setFilter(flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, vars.strength || 1, vars.quality, vars.inner, vars.knockout));
break;
case "colormatrix" :
case "color" :
case "colormatrixfilter" :
case "colorize" :
setFilter(flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_matrix = _f.matrix;
if (vars.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, vars.brightness);
_endMatrix = setContrast(_endMatrix, vars.contrast);
_endMatrix = setHue(_endMatrix, vars.hue);
_endMatrix = setSaturation(_endMatrix, vars.saturation);
_endMatrix = setThreshold(_endMatrix, vars.threshold);
if (!isNaN(vars.colorize)) {
_endMatrix = colorize(_endMatrix, vars.colorize, vars.amount);
} else if (!isNaN(vars.color)) {
_endMatrix = colorize(_endMatrix, vars.color, vars.amount);
}
var _local4 = delay - ((getTimer() - initTime) / 1000);
_clrMtxTw = new gs.TweenLite(_matrix, duration, {endArray:_endMatrix, ease:vars.ease, delay:_local4, overwrite:false, runBackwards:vars.runBackwards});
_clrMtxTw.__set__endTarget(_mc);
break;
case "shadow" :
case "dropshadow" :
setFilter(flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, vars.quality, vars.inner, vars.knockout, vars.hideObject));
break;
case "bevel" :
setFilter(flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, vars.quality));
}
if (vars.runBackwards == true) {
flipFilterVals();
}
}
}
}
function setFilter($filterType, $props, $defaultFilter) {
_fType = $filterType;
var _local7 = _mc.filters;
var _local3;
var _local8;
_local3 = 0;
while (_local3 < _local7.length) {
if (_local7[_local3] instanceof $filterType) {
_f = _local7[_local3];
break;
}
_local3++;
}
if (_f == undefined) {
_local7.push($defaultFilter);
_mc.filters = _local7;
_f = $defaultFilter;
}
var _local2;
var _local6;
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if (tweens[_local2] != undefined) {
_local6 = tweens[_local2];
delete tweens[_local2];
} else if (extraTweens[_local2] != undefined) {
_local6 = extraTweens[_local2];
} else {
_local6 = null;
}
if (_local6 != null) {
if (((((((_local2 == "brightness") || (_local2 == "colorize")) || (_local2 == "amount")) || (_local2 == "saturation")) || (_local2 == "contrast")) || (_local2 == "hue")) || (_local2 == "threshold")) {
} else if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
var _local4 = HEXtoRGB(_f[_local2]);
var _local5 = HEXtoRGB(vars[_local2]);
_clrsa.push({p:_local2, e:vars.ease, sr:_local4.rb, cr:_local5.rb - _local4.rb, sg:_local4.gb, cg:_local5.gb - _local4.gb, sb:_local4.bb, cb:_local5.bb - _local4.bb});
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_f[_local2] = vars[_local2];
} else {
if (typeof(vars[_local2]) == "number") {
_local8 = vars[_local2] - _f[_local2];
} else {
_local8 = Number(vars[_local2]);
}
tweens[_local2] = {o:_f, p:_local2, s:_f[_local2], c:_local8};
}
}
_local3++;
}
}
static function to($target, $duration, $vars, $delay, $onComplete, $onCompleteParams, $overwrite) {
return(new gs.TweenFilterLite($target, $duration, $vars, $delay, $onComplete, $onCompleteParams, $overwrite));
}
static function from($target, $duration, $vars, $delay, $onComplete, $onCompleteParams, $overwrite) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars, $delay, $onComplete, $onCompleteParams, $overwrite));
}
function flipFilterVals() {
var _local6 = __get__active();
var _local3;
var _local2;
for (var _local7 in tweens) {
if (tweens[_local7].flipped != true) {
_local2 = tweens[_local7];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
_local2.o[_local7] = _local2.s;
_local2.flipped = true;
}
}
_local3 = 0;
while (_local3 < _clrsa.length) {
_local2 = _clrsa[_local3];
_local2.sr = _local2.sr + _local2.cr;
_local2.cr = _local2.cr * -1;
_local2.sg = _local2.sg + _local2.cg;
_local2.cg = _local2.cg * -1;
_local2.sb = _local2.sb + _local2.cb;
_local2.cb = _local2.cb * -1;
if (!_local6) {
_f[_local2.p] = ((_local2.sr << 16) | (_local2.sg << 8)) | _local2.sb;
}
_local3++;
}
if (_local6 && (duration != 0.001)) {
render(getTimer());
} else {
if (_endMatrix) {
_f.matrix = _matrix;
}
var _local4 = _mc.filters;
var _local5 = [];
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] instanceof _fType) {
_local5.push(_f);
} else {
_local5.push(_local4[_local3]);
}
_local3++;
}
_mc.filters = _local5;
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
}
function render($t) {
var _local11 = ($t - startTime) / 1000;
if (_local11 > duration) {
_local11 = duration;
}
var _local5 = vars.ease(_local11, 0, 1, duration);
var _local3;
var _local4;
var _local9;
var _local10;
var _local8;
for (var _local12 in tweens) {
_local3 = tweens[_local12];
_local3.o[_local12] = _local3.s + (_local5 * _local3.c);
}
_local4 = 0;
while (_local4 < _clrsa.length) {
_local3 = _clrsa[_local4];
_local9 = _local3.sr + (_local5 * _local3.cr);
_local10 = _local3.sg + (_local5 * _local3.cg);
_local8 = _local3.sb + (_local5 * _local3.cb);
_f[_local3.p] = ((_local9 << 16) | (_local10 << 8)) | _local8;
_local4++;
}
if (_endMatrix) {
_f.matrix = _matrix;
}
var _local6 = _mc.filters;
var _local7 = [];
_local4 = 0;
while (_local4 < _local6.length) {
if (_local6[_local4] instanceof _fType) {
_local7.push(_f);
} else {
_local7.push(_local6[_local4]);
}
_local4++;
}
_mc.filters = _local7;
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
if (_local11 == duration) {
super.complete(true);
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$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 (($n == undefined) || (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 (($n == undefined) || (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 (($n == undefined) || (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 (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (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 == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _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 version = 5.84;
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;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
}
Symbol 725 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1 MovieClip [__Packages.GetURLManager] Frame 0
class GetURLManager extends MovieClip
{
var $requestDelay, requestInt, getURL;
function GetURLManager () {
super();
init();
}
function set delay(i) {
$requestDelay = i;
//return(delay);
}
function get delay() {
return($requestDelay);
}
function init() {
var _local1 = this;
var _local3 = _global;
_local3.ngsPageView = mx.utils.Delegate.create(_local1, _local1.ngsPageView);
_local3.ngsCustomEvent = mx.utils.Delegate.create(_local1, _local1.ngsCustomEvent);
_local3.newPage = mx.utils.Delegate.create(_local1, _local1.ngsNewPage);
_local1._visible = false;
if (_local1.requestDelay == undefined) {
_local1.requestDelay = _local1.delay;
}
var _local2 = _root.web_analytics.toLowerCase();
if (_local2 == "off") {
_local1.eventTracking = false;
_local1.eventDebugging = false;
_local1.iframeAds = false;
} else if (_local2 == "debug") {
_local1.eventDebugging = true;
_local1.eventTracking = false;
_local1.iframeAds = false;
} else if (_local2 == "iframeads") {
_local1.eventTracking = true;
_local1.eventDebugging = false;
_local1.iframeAds = true;
} else {
_local1.eventTracking = true;
_local1.eventDebugging = false;
_local1.iframeAds = false;
}
}
function ngsNewPage(url, window) {
var _local1 = this;
var _local2 = url;
trace("newPage called = " + _local2);
if (_local1.iframeAds) {
_local1.refreshAds();
} else if (_local2 == undefined) {
} else {
_local1.createRequest(_local2, window);
}
}
function ngsPageView(pname, separator) {
var _local2 = pname;
trace("ngsPageView called = " + _local2);
if (_local2 == undefined) {
} else {
var _local1 = _local2;
if (separator != undefined) {
_local1 = _local1 + ("', '" + separator);
}
_local1 = ("javascript:try{ngsPageView('" + _local1) + "')} catch(err){}";
createRequest(_local1);
}
}
function ngsCustomEvent(pname, etype, separator) {
var _local2 = pname;
trace("ngsCustomEvent called = " + _local2);
if (_local2 == undefined) {
} else {
var _local1 = _local2;
if (etype != undefined) {
_local1 = _local1 + ("', '" + etype);
}
if (separator != undefined) {
_local1 = _local1 + ("', '" + separator);
}
_local1 = ("javascript:try{ngsCustomEvent('" + _local1) + "')} catch(err){}";
createRequest(_local1);
}
}
function createRequest(url, window) {
var _local2 = this;
var _local3 = window;
var _local1 = new Object();
_local1.url = url;
if ((_local3 != null) && (_local3 != undefined)) {
_local1.window = _local3;
} else {
_local1.window = "_self";
}
_local2.requestQueue.push(_local1);
if (_local2.requestInt == undefined) {
_local2.requestInt = setInterval(_local2, "sendQueuedRequests", _local2.requestDelay);
}
}
function sendQueuedRequests() {
var _local2 = this;
var _local1 = _local2.requestQueue.shift();
if (_local1 == undefined) {
_local2.killInterval();
} else {
if (_local2.eventTracking) {
(_local2.getURL(_local1.url, _local1.window));// not popped
trace(("***sending request = " + _local1.url) + " ***");
}
if (_local2.eventDebugging) {
(_local2.getURL(("javascript:alert( \" " + _local1.url) + " \" )"));// not popped
}
_local1.callback.func.call(_local1.callback.scope);
}
}
function killInterval() {
clearInterval(requestInt);
requestInt = null;
}
function refreshAds() {
var _local1 = "javascript:try{updateAds()} catch(err){}";
_local1 = getURL(_local1);
}
var requestQueue = new Array();
}
Symbol 6 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = func;
var _local3 = arguments;
var _local1 = function () {
var _local1 = arguments;
var _local2 = _local1.callee.target;
var _local3 = _local1.callee.func;
return(_local3.apply(_local2, _local1));
};
_local1.target = obj;
_local1.func = _local2;
return(_local1);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 46 Button
on (release) {
goToNGK();
}
Symbol 59 Button
on (rollOver) {
game.playS("buttonOver");
gotoAndPlay (2);
}
on (rollOut, dragOut) {
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
_parent._parent.closePanel();
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 9
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 8
stop();
Symbol 73 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
doFunc();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 9
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 9
stop();
Symbol 138 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
if (inPanel) {
_parent._parent._parent.theFunc = game.gotoGame;
_parent._parent._parent.closePanel();
} else {
game.gotoGame();
}
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 8
stop();
Symbol 241 MovieClip Frame 64
gotoAndPlay("wait_" + random(3));
Symbol 241 MovieClip Frame 119
gotoAndPlay (2);
Symbol 241 MovieClip Frame 202
gotoAndPlay (2);
Symbol 241 MovieClip Frame 283
gotoAndPlay (2);
Symbol 374 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
var f = _parent._parent._parent.itemHoldID;
if (f == undefined) {
f = _parent._parent._parent._parent.itemHoldID;
}
items.gotoAndStop(f);
var x = items._x;
var halfw = (items._width / 2);
if (items._currentframe == 14) {
halfw = halfw - 12;
} else if (items._currentframe == 11) {
halfw = halfw - 8;
}
fingerL._x = (x - halfw) + 4;
fingerR._x = (x + halfw) - 4;
Symbol 410 MovieClip Frame 16
game.playS("collect");
Symbol 410 MovieClip Frame 29
stop();
Symbol 411 MovieClip Frame 27
stop();
Symbol 417 MovieClip Frame 13
game.playS("collect");
Symbol 417 MovieClip Frame 29
stop();
Symbol 418 MovieClip Frame 23
stop();
Symbol 432 MovieClip Frame 8
game.playS("sad");
Symbol 439 MovieClip Frame 8
game.playS("happy");
Symbol 441 MovieClip Frame 1
ani = false;
waiting = true;
Symbol 441 MovieClip Frame 2
stop();
Symbol 441 MovieClip Frame 8
ani = false;
waiting = true;
Symbol 441 MovieClip Frame 9
ani = false;
stop();
Symbol 441 MovieClip Frame 27
stop();
Symbol 441 MovieClip Frame 40
stop();
Symbol 441 MovieClip Frame 53
stop();
Symbol 441 MovieClip Frame 66
stop();
Symbol 441 MovieClip Frame 83
game.playS("thud");
Symbol 441 MovieClip Frame 95
gotoAndStop (1);
Symbol 441 MovieClip Frame 113
game.playS("thud");
Symbol 441 MovieClip Frame 125
if (holding) {
gotoAndPlay ("wait_item");
} else {
gotoAndPlay ("wait");
}
Symbol 441 MovieClip Frame 149
if (holding) {
gotoAndPlay ("wait_item");
} else {
gotoAndPlay ("wait");
}
Symbol 441 MovieClip Frame 178
gotoAndPlay ("wait");
Symbol 441 MovieClip Frame 206
gotoAndPlay ("wait");
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 16
game.removeItemA(this, "remove");
this.shad.removeMovieClip();
this.removeMovieClip();
stop();
Symbol 473 MovieClip Frame 1
function chgPage(dir) {
var _local2 = this._currentframe + dir;
if (_local2 < 2) {
but_prev._visible = false;
} else if (_local2 == this._totalframes) {
but_next._visible = false;
} else {
but_prev._visible = true;
but_next._visible = true;
}
this.gotoAndStop(_local2);
}
stop();
playBut.inPanel = true;
but_prev._visible = false;
but_prev.doFunc = function () {
this._parent.chgPage(-1);
};
but_next.doFunc = function () {
this._parent.chgPage(1);
};
Symbol 473 MovieClip Frame 3
player.yeti.gotoAndPlay("wait_1");
Symbol 473 MovieClip Frame 4
player.gotoAndPlay("catch");
Symbol 473 MovieClip Frame 10
player.yeti.gotoAndPlay("wait_0");
Symbol 480 MovieClip Frame 1
n = Number(_name.substr(1, 1));
gotoAndPlay(n * 2);
Symbol 480 MovieClip Frame 18
gotoAndPlay (2);
Symbol 492 MovieClip Frame 1
function loadHS(typ) {
scoreOffset = 0;
HIS = new XML();
HIS.ignoreWhite = true;
HIS.onLoad = function (success) {
if (success) {
sortHIS(this);
}
};
var _local3 = random(1000000000);
gameID = GAMEID;
var _local2 = (("http://www.soapcreative.com/highscoreengine/highscoreXML.php?gameid=" + gameID) + "&start=0&count=100&cacheB=") + _local3;
HIS.load(_local2);
}
function sortHIS(x) {
var _local6 = x.firstChild.childNodes;
var _local7 = _local6.length;
HISA = new Array();
var _local1 = 0;
while (_local1 < _local7) {
var _local5 = _local6[_local1];
HISA[_local1] = new Array();
var _local2 = HISA[_local1];
var _local3 = _local5.attributes;
var _local4 = _local3.score;
_local2.score = makeKash(_local4);
_local2.name = _local3.pname.toUpperCase();
_local1++;
}
delete HIS;
gotoAndPlay ("showList");
}
function chgDisplay(d) {
scoreOffset = scoreOffset + d;
makeLIST(scoreOffset);
}
function makeLIST(off) {
var i = 0;
while (i < 10) {
var mc = eval ("topList.item_" + i);
mc.stopTween();
mc.removeMovieClip();
i++;
}
if (off == 0) {
but_prev._visible = false;
} else {
but_prev._visible = true;
}
if ((off + 10) > (HISA.length - 1)) {
but_next._visible = false;
} else {
but_next._visible = true;
}
topList.item._visible = 0;
var sx = topList.item._x;
var i = 0;
while (i < 10) {
var m = topList.item.duplicateMovieClip("item_" + i, i);
m._y = 0 + (22 * i);
var ii = (i + off);
var a = HISA[ii].name;
if (a == undefined) {
m._visible = 0;
return;
}
m.name = HISA[ii].name;
m.score = HISA[ii].score;
if (((i + 1) + off) < 10) {
n = "0" + (i + 1);
} else {
n = i + 1;
n = n + off;
}
m.rank = n;
i++;
}
}
bestscoreView = makeKash(SOD.bestScore);
Symbol 492 MovieClip Frame 9
loadHS();
stop();
Symbol 492 MovieClip Frame 10
play();
but_prev._visible = false;
but_prev.doFunc = function () {
this._parent.chgDisplay(-10);
};
but_next.doFunc = function () {
this._parent.chgDisplay(10);
};
Symbol 492 MovieClip Frame 11
makeLIST(0);
Symbol 492 MovieClip Frame 25
stop();
Symbol 499 MovieClip Frame 1
logo.setMask(circleMask);
Symbol 500 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, dragOut) {
gotoAndPlay ("off");
}
on (release) {
game.visitSchol();
}
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 11
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 9
stop();
Symbol 509 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.visitSchol();
}
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 8
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 9
stop();
Symbol 514 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
_parent.play();
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 8
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 9
stop();
Symbol 529 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.playAgain();
}
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 8
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 9
stop();
Symbol 534 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
_parent.gotoAndPlay("submit_score");
}
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 8
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 22
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 9
stop();
Symbol 549 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
_parent.checkForm();
}
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 8
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 9
stop();
Symbol 556 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
if (inPanel) {
_parent._parent.gotoAndPlay("highscores");
} else {
game.showPanel("highscores");
}
}
Symbol 557 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 8
stop();
Symbol 561 Button
on (rollOver) {
_parent.gotoAndPlay("theForm");
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
soap.natgeo.games.barriergreef.Main.instance.soundManager.playSound("button");
_parent.checkForm();
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 9
stop();
Symbol 562 MovieClip Frame 15
gotoAndStop (1);
Symbol 565 MovieClip Frame 1
function send_data() {
MF = new LoadVars();
MF.onLoad = function (success) {
if (success) {
if (MF.result eq "yes") {
gotoAndPlay ("done");
} else if ((MF.result eq "no") || (MF.result eq "lower")) {
gotoAndPlay ("nerror2");
}
} else {
gotoAndPlay ("error");
}
};
a = 0;
gameID = GAMEID;
MF.intGameId = gameID;
MF.strName = firstname.text;
SOD.username = firstname.text;
MF.strEmail = ((random(1000000) + "noemail@www") + random(1000000)) + ".com";
MF.intScore = game.userScore;
MF.intOptIn = "1";
gotoAndPlay ("sendform");
}
function check_cuss(word) {
word = word.toLowerCase();
if (word eq "") {
return("bad");
}
var _local1 = 0;
while (_local1 < cuss_array.length) {
if (word.indexOf(cuss_array[_local1].toLowerCase(), 0) > -1) {
return("bad");
}
_local1++;
}
}
function checkForm() {
errorB.gotoAndStop(1);
var _local1 = true;
errorA = new Array();
if ((firstname.text eq "") || (check_cuss(firstname.text) eq "bad")) {
_local1 = false;
fieldsA[0].bg.gotoAndPlay(2);
} else {
fieldsA[0].bg.gotoAndStop(1);
}
if (_local1) {
send_data();
} else {
errorB.gotoAndPlay(2);
}
}
stop();
if (SOD.username) {
firstname.text = SOD.username;
}
sfocus = function () {
this.bg.gotoAndStop(1);
formError.gotoAndStop(1);
};
kfocus = function () {
};
fieldsA = new Array(firstname);
var i = 0;
while (i < fieldsA.length) {
fieldsA[i].onSetFocus = sfocus;
fieldsA[i].onKillFocus = kfocus;
fieldsA[i].bg = eval (fieldsA[i] + "Box");
fieldsA[i].defaultTXT = fieldsA[i].text;
fieldsA[i].tabIndex = i + 1;
i++;
}
serverURL = "http://www.soapcreative.com/highscoreengine/portal.php";
cuss_array = new Array("fuck", "cunt", "dick", "shit", "pussy", "kunt", "gay", "poof", "homo", "fag");
Symbol 565 MovieClip Frame 2
trackSite("submit_score_send");
Symbol 565 MovieClip Frame 14
MF.sendAndLoad(serverURL, MF, "POST");
Symbol 565 MovieClip Frame 15
a++;
if (a > 220) {
gotoAndStop ("error");
} else {
play();
}
Symbol 565 MovieClip Frame 16
gotoAndPlay(_currentframe - 1);
Symbol 565 MovieClip Frame 26
trackSite("submit_score_success");
_global.scoreSubmitted = true;
HSbut.inPanel = true;
Symbol 565 MovieClip Frame 44
stop();
Symbol 565 MovieClip Frame 58
stop();
Symbol 565 MovieClip Frame 72
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 9
stop();
Symbol 573 Button
on (rollOver) {
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
_parent._parent.theFunc = game.startGame;
_parent._parent.closePanel();
}
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 8
stop();
Symbol 575 MovieClip Frame 1
stop();
gotoAndStop(_parent.typ);
Symbol 575 MovieClip Frame 8
stop();
trackSite("instructions");
Symbol 575 MovieClip Frame 24
stop();
Symbol 575 MovieClip Frame 25
_parent.theFunc = game.backToMain;
Symbol 575 MovieClip Frame 43
stop();
Symbol 575 MovieClip Frame 50
userScoreView = makeKash(game.userScore);
if (game.userScore > 1000) {
resultTXT.gotoAndStop(2);
}
if (game.userScore > 5000) {
resultTXT.gotoAndStop(3);
}
var w1kg = game.KGrecycled;
var w2kg = game.KGcomposted;
var w1 = (int((w1kg * 2.2) * 100) / 100);
var w2 = (int((w2kg * 2.2) * 100) / 100);
var w1kg = (int(game.KGrecycled * 100) / 100);
var w2kg = (int(game.KGcomposted * 100) / 100);
resultTXT.weightTXT = ((((((("You recycled " + w1) + " lb (") + w1kg) + " kg) and composted ") + w2) + " lb (") + w2kg) + " kg) of trash.";
rightC.num = game.iright;
wrongC.num = game.wrong;
stop();
Symbol 575 MovieClip Frame 51
bestscoreView = makeKash(SOD.bestScore);
Symbol 575 MovieClip Frame 67
trackSite("submit_score");
stop();
Symbol 575 MovieClip Frame 85
stop();
Symbol 576 MovieClip Frame 1
stop();
theFunc = undefined;
Symbol 576 MovieClip Frame 2
function closePanel() {
gotoAndPlay ("off");
}
theBut.useHandCursor = false;
game.playS("whooshOpen");
Symbol 576 MovieClip Frame 17
stop();
panel.play();
Symbol 576 MovieClip Frame 18
game.hideSnapShot();
game.playS("whooshClose");
Symbol 576 MovieClip Frame 28
if (theFunc) {
theFunc();
}
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 9
stop();
Symbol 665 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.soundOff();
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 8
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 9
stop();
Symbol 672 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.soundOn();
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 8
stop();
Symbol 674 MovieClip Frame 1
stop();
if (game.globalS.getVolume() == 0) {
gotoAndStop (2);
}
Instance of Symbol 666 MovieClip in Symbol 674 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 673 MovieClip in Symbol 674 MovieClip Frame 2
/* no clip actions */
Symbol 677 MovieClip Frame 1
stop();
Symbol 677 MovieClip Frame 9
stop();
Symbol 678 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.showPanel("help");
}
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 8
stop();
Symbol 682 Button
on (release) {
game.goToNGK();
}
Symbol 686 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 6
game.playS("binFill");
Symbol 700 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 9
stop();
Symbol 701 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.backToMain();
}
Symbol 702 MovieClip Frame 1
stop();
Symbol 702 MovieClip Frame 8
stop();
Symbol 707 MovieClip Frame 1
stop();
time_secs = 0;
Symbol 707 MovieClip Frame 2
time_secs = int(getTimer() / 1000) - reset;
secs_left = _root.total_secs - time_secs;
mins = int(secs_left / 60);
secs = (game.total_secs - (60 * mins)) - time_secs;
if (secs < 0) {
secs = "0";
mins = mins - 1;
a++;
}
if (secs < 10) {
secs = "0" + secs;
}
if (mins < 0) {
mins = "0";
sec = "00";
game.times_up();
stop();
}
play();
Symbol 707 MovieClip Frame 5
gotoAndPlay (2);
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 9
stop();
Symbol 720 Button
on (rollOver) {
game.playS("buttonOver");
but.gotoAndPlay(2);
gotoAndPlay (2);
}
on (rollOut, dragOut) {
but.gotoAndPlay("off");
gotoAndPlay ("off");
}
on (release) {
game.playS("buttonClick");
game.quitGame();
}
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 8
stop();