Frame 1
MochiAd.showPreGameAd({id:"1348762d7e5f6aee", res:"550x500", background:16763117, color:16747008, outline:16711697, no_bg:false});
_root.kongregateServices.connect();
Frame 3
stop();
Frame 5
function loadOnce() {
showTutorial = true;
}
function initial() {
firstRun = true;
currLevel = 0;
startLevel == false;
dropNumber = 0;
score = 0;
cloudToxicSpeed = 4;
cloudToxicGo = false;
cloudBoostGo = false;
cometGo = false;
storeItem1price = 5000;
storeItem2price = 15000;
storeItem3price = 10000;
cometValue = -1000;
totalBoostDrops = 0;
percentRequired = 90;
attemptsLeft = 3;
catchedPercent = 0;
closeBucketAbility = false;
jumpAbility = false;
jumpFullSpeed = 7;
bucketClosed = false;
nightAbility = false;
day = false;
}
function nextLevel() {
if (currLevel == 0) {
if ((showTutorial == true) and (nowRestartingLevel != true)) {
tutorial_mc.gotoAndStop("lev_one");
}
firstRun = false;
drop1Speed = 5;
dropRatio = 20;
cloud1Speed = 8;
totalDrops = 30;
cloudBoostGo = true;
dropBoostSpeed = 5;
dropBoostRatio = 200;
cloudBoostSpeed = 8;
totalBoostDrops = 10;
} else if (currLevel == 1) {
if ((showTutorial == true) and (nowRestartingLevel != true)) {
tutorial_mc.gotoAndStop("lev_two");
}
drop1Speed = 6;
dropRatio = 19;
cloud1Speed = 9;
totalDrops = 35;
cloudToxicGo = true;
dropToxicSpeed = 3;
totalToxicDrops = 5;
dropToxicRatio = 100;
cloudBoostGo = true;
dropBoostSpeed = 6;
dropBoostRatio = 100;
cloudBoostSpeed = 8;
totalBoostDrops = 20;
} else if (currLevel == 2) {
if ((showTutorial == true) and (nowRestartingLevel != true)) {
tutorial_mc.gotoAndStop("lev_three");
}
drop1Speed = 7;
dropRatio = 18;
cloud1Speed = 10;
totalDrops = 40;
cometSpeed = 12;
cometRatio = 250;
totalComets = 1;
cloudBoostGo = true;
dropBoostSpeed = 6;
dropBoostRatio = 140;
cloudBoostSpeed = 9;
totalBoostDrops = 25;
cloudToxicGo = true;
dropToxicSpeed = 4;
totalToxicDrops = 9;
dropToxicRatio = 80;
} else if (currLevel == 3) {
if ((showTutorial == true) and (nowRestartingLevel != true)) {
tutorial_mc.gotoAndStop("lev_four");
}
drop1Speed = 8;
dropRatio = 17;
cloud1Speed = 11;
totalDrops = 45;
cometSpeed = 12;
cometRatio = 300;
totalComets = 2;
cloudBoostGo = true;
dropBoostSpeed = 7;
dropBoostRatio = 300;
cloudBoostSpeed = 9;
totalBoostDrops = 10;
cloudToxicGo = true;
dropToxicSpeed = 4;
totalToxicDrops = 9;
dropToxicRatio = 80;
} else if (currLevel == 4) {
drop1Speed = 9;
dropRatio = 16;
cloud1Speed = 11;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 5;
totalToxicDrops = 9;
dropToxicRatio = 80;
cometSpeed = 12;
cometRatio = 250;
totalComets = 3;
} else if (currLevel == 5) {
drop1Speed = 10;
dropRatio = 16;
cloud1Speed = 12;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 6;
totalToxicDrops = 9;
dropToxicRatio = 80;
cloudBoostGo = true;
dropBoostSpeed = 7;
dropBoostRatio = 140;
cloudBoostSpeed = 9;
totalBoostDrops = 25;
} else if (currLevel == 6) {
drop1Speed = 11;
dropRatio = 15;
cloud1Speed = 12;
totalDrops = 52;
cloudToxicGo = true;
dropToxicSpeed = 7;
totalToxicDrops = 9;
dropToxicRatio = 80;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 220;
cloudBoostSpeed = 9;
totalBoostDrops = 15;
cometSpeed = 12;
cometRatio = 300;
totalComets = 2;
} else if (currLevel == 7) {
drop1Speed = 12;
dropRatio = 15;
cloud1Speed = 12;
totalDrops = 52;
cloudToxicGo = true;
dropToxicSpeed = 8;
totalToxicDrops = 13;
dropToxicRatio = 60;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 220;
cloudBoostSpeed = 9;
totalBoostDrops = 15;
cometSpeed = 12;
cometRatio = 180;
totalComets = 4;
} else if (currLevel == 8) {
drop1Speed = 13;
dropRatio = 16;
cloud1Speed = 13;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 9;
totalToxicDrops = 15;
dropToxicRatio = 50;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 150;
cloudBoostSpeed = 10;
totalBoostDrops = 25;
} else if (currLevel == 9) {
drop1Speed = 14;
dropRatio = 16;
cloud1Speed = 13;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 9;
totalToxicDrops = 15;
dropToxicRatio = 50;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 150;
cloudBoostSpeed = 10;
totalBoostDrops = 25;
cometSpeed = 12;
cometRatio = 250;
totalComets = 3;
} else if (currLevel == 10) {
drop1Speed = 15;
dropRatio = 16;
cloud1Speed = 13;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 9;
totalToxicDrops = 15;
dropToxicRatio = 50;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 150;
cloudBoostSpeed = 10;
totalBoostDrops = 25;
cometSpeed = 12;
cometRatio = 450;
totalComets = 1;
} else if (currLevel == 11) {
drop1Speed = 16;
dropRatio = 16;
cloud1Speed = 13;
totalDrops = 50;
cloudToxicGo = true;
dropToxicSpeed = 9;
totalToxicDrops = 15;
dropToxicRatio = 50;
cloudBoostGo = true;
dropBoostSpeed = 8;
dropBoostRatio = 150;
cloudBoostSpeed = 10;
totalBoostDrops = 25;
cometSpeed = 12;
cometRatio = 180;
totalComets = 4;
} else if (currLevel > 11) {
drop1Speed++;
dropRatio = 16;
cloud1Speed = 13;
totalDrops = 47;
cloudToxicGo = true;
dropToxicSpeed = currLevel - 2;
totalToxicDrops = 15;
dropToxicRatio = 50;
cloudBoostGo = true;
dropBoostSpeed = 9;
dropBoostRatio = 150;
cloudBoostSpeed = 10;
totalBoostDrops = 25;
cometSpeed = 12;
cometRatio = 180;
totalComets = random(4) + 1;
trace(totalComets);
}
background_mc.play();
nextLevel_mc.nextFrame();
levelStart();
currLevel++;
totalDropsInLevel = totalDrops;
nowRestartingLevel = false;
}
function dragCatcher() {
drag = true;
}
function levelStart() {
firstRun = false;
catchedPercent = 0;
dropsCatchedInLevel = 0;
dragCatcher();
startLevel = true;
dropTime = 0;
dropToxicTime = 0;
dropBoostTime = 0;
dropCometTime = 0;
itemsInAir = 0;
}
function levelFinished() {
drag = false;
startLevel = false;
nextLevel_mc.nextFrame();
}
function dropEngine() {
dropTime++;
dropToxicTime++;
dropBoostTime++;
dropCometTime++;
if ((dropTime == dropRatio) and (totalDrops != 0)) {
dropTime = 0;
duplicateMovieClip (drop, "drop" + dropNumber, dropNumber);
dropNumber++;
itemsInAir++;
totalDrops--;
cloud_mc.gotoAndPlay(2);
}
if ((dropToxicTime == dropToxicRatio) and (totalToxicDrops != 0)) {
dropToxicTime = 0;
duplicateMovieClip (dropToxic, "drop" + dropNumber, dropNumber);
dropNumber++;
itemsInAir++;
totalToxicDrops--;
cloudToxic_mc.gotoAndPlay(2);
}
if (((dropBoostTime == dropBoostRatio) or (dropBoostTime > (dropBoostRatio - 5))) and (totalBoostDrops != 0)) {
duplicateMovieClip (dropBoost, "drop" + dropNumber, dropNumber);
dropNumber++;
itemsInAir++;
totalBoostDrops--;
if (dropBoostTime == dropBoostRatio) {
dropBoostTime = 0;
}
}
if ((dropCometTime == cometRatio) and (totalComets != 0)) {
comet_mc.fireballSound.gotoAndPlay(2);
cometGo = true;
itemsInAir++;
totalComets--;
dropCometTime = 0;
}
}
function jump() {
if (jumpSpeed == (-jumpFullSpeed)) {
jumpGo = false;
}
catcher._y = catcher._y - jumpSpeed;
jumpSpeed--;
}
function onEnterFrame() {
if (startLevel == true) {
dropEngine();
}
if (((totalDrops == 0) and (itemsInAir == 0)) and (startLevel == true)) {
levelFinished();
}
if (jumpGo == true) {
jump();
}
if (((closeBucketAbility == true) and (cursor._y >= (catcher._y - 30))) and (startLevel == true)) {
cursor.gotoAndStop(3);
} else if (((jumpAbility == true) and (cursor._y < (catcher._y - 30))) and (startLevel == true)) {
cursor.gotoAndStop(2);
} else {
cursor.gotoAndStop(1);
}
}
function pauseGame() {
startLevel = false;
drag = false;
}
function unPauseGame() {
startLevel = true;
dragCatcher();
}
function onMouseDown() {
if (((jumpAbility == true) and (jumpGo != true)) and (startLevel == true)) {
jumpGo = true;
jumpSpeed = jumpFullSpeed;
}
}
function onMouseMove() {
if (drag == true) {
catcher._x = _xmouse;
}
}
function restartGame() {
stopAllSounds();
_root.gotoAndPlay("initial");
}
function closeBucket() {
catcher.bucket.closeBucket.play();
}
function menuChoiceOne() {
getURL ("http://www.iceflass.net");
}
NewMenu = new ContextMenu();
NewMenu.customItems.push(new ContextMenuItem("Copyright: iceflass.net", menuChoiceOne));
NewMenu.hideBuiltInItems();
this.menu = NewMenu;
loadOnce();
Frame 10
initial();
Frame 15
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("14110b4c", this, 10301, true);
if (debug == true) {
} else {
stop();
}
startDrag (cursor, true, 0, 0, 550, 500);
Instance of Symbol 154 MovieClip "music" in Frame 15
onClipEvent (load) {
gotoAndStop (2);
_visible = false;
}
Frame 20
catcher._x = 275;
catcher._y = 450;
catcher.gotoAndStop(3);
catcher.person_fullhead.gotoAndStop(_root.personSelect);
if (firstRun == true) {
tutorial_mc.gotoAndStop("first");
}
stop();
Instance of Symbol 192 MovieClip "drop" in Frame 20
onClipEvent (load) {
if (_name == "drop") {
_visible = false;
} else {
value = _root.drop1Speed * 20;
_x = _root.cloud_mc._x;
_y = (_root.cloud_mc._y + 20);
}
}
onClipEvent (enterFrame) {
if ((_name == "drop") or (_root.startLevel == false)) {
} else if ((this.hitTest(_root.catcher.bucket.hitter) and (_currentframe == 1)) and (_root.bucketClosed != true)) {
catched = true;
_root.dropsCatchedInLevel++;
_root.catchedPercent = Math.round((_root.dropsCatchedInLevel / _root.totalDropsInLevel) * 100);
gotoAndStop (2);
} else if (((_y >= 450) and (catched != true)) and (dropped != true)) {
dropped = true;
gotoAndPlay (3);
} else if ((catched != true) and (dropped != true)) {
_y = (_y + _root.drop1Speed);
}
}
Instance of Symbol 193 MovieClip "catcher" in Frame 20
/* no clip actions */
Instance of Symbol 200 MovieClip "dropToxic" in Frame 20
onClipEvent (load) {
if (_name == "dropToxic") {
_visible = false;
} else {
value = -250;
_x = _root.cloudToxic_mc._x;
_y = (_root.cloudToxic_mc._y + 20);
}
}
onClipEvent (enterFrame) {
if ((_name == "dropToxic") or (_root.startLevel == false)) {
} else if ((this.hitTest(_root.catcher.bucket.hitter) and (_currentframe == 1)) and (_root.bucketClosed != true)) {
gotoAndStop (2);
} else if (((_y >= 450) and (_currentframe != 2)) and (_currentframe == 1)) {
gotoAndPlay (3);
} else if (_currentframe == 1) {
_y = (_y + _root.dropToxicSpeed);
}
}
Instance of Symbol 204 MovieClip "cloudBoost_mc" in Frame 20
onClipEvent (load) {
xscal = _xscale;
}
onClipEvent (enterFrame) {
if ((_root.startLevel == true) and (_root.cloudBoostGo == true)) {
if (Cloud1dir != "right") {
_xscale = xscal;
_x = (_x - _root.cloudBoostSpeed);
if (_x <= 50) {
Cloud1dir = "right";
}
} else {
_xscale = (-xscal);
_x = (_x + _root.cloudBoostSpeed);
if (_x >= 500) {
Cloud1dir = "left";
}
}
}
}
Instance of Symbol 207 MovieClip "dropBoost" in Frame 20
onClipEvent (load) {
if (_name == "dropBoost") {
_visible = false;
} else {
value = 150;
_x = _root.cloudBoost_mc._x;
_y = (_root.cloudBoost_mc._y + 5);
}
}
onClipEvent (enterFrame) {
if ((_name == "dropBoost") or (_root.startLevel == false)) {
} else if ((this.hitTest(_root.catcher.bucket.hitter) and (_currentframe == 1)) and (_root.bucketClosed != true)) {
gotoAndStop (2);
} else if ((_y >= 450) and (_currentframe == 1)) {
gotoAndPlay (3);
} else if (_currentframe == 1) {
_y = (_y + _root.dropBoostSpeed);
}
}
Instance of Symbol 224 MovieClip "comet_mc" in Frame 20
onClipEvent (load) {
value = _root.cometValue;
}
onClipEvent (enterFrame) {
if (((_root.startLevel == true) and (_root.cometGo == true)) and (_currentframe == 1)) {
if (_y >= 450) {
gotoAndStop (2);
} else {
_y = (_y + _root.cometSpeed);
}
}
if ((this.hitTest(_root.catcher.bucket.hitter) and (_currentframe == 1)) and (_root.bucketClosed != true)) {
gotoAndStop (3);
_root.score = _root.score + _root.cometValue;
}
}
Instance of Symbol 241 MovieClip "bar_progress" in Frame 20
onClipEvent (enterFrame) {
barMask._yscale = _root.catchedPercent;
}
Instance of Symbol 247 MovieClip "cloudToxic_mc" in Frame 20
onClipEvent (enterFrame) {
if ((_root.startLevel == true) and (_root.cloudToxicGo == true)) {
if (Cloud1dir != "right") {
_x = (_x - _root.cloudToxicSpeed);
if (_x <= 50) {
Cloud1dir = "right";
}
} else {
_x = (_x + _root.cloudToxicSpeed);
if (_x >= 500) {
Cloud1dir = "left";
}
}
}
}
Instance of Symbol 251 MovieClip "cloud_mc" in Frame 20
onClipEvent (enterFrame) {
if (_root.startLevel == true) {
if (Cloud1dir != "right") {
_x = (_x - _root.cloud1Speed);
ran = random(_root.cloud1Speed * 2);
if (ran == 1) {
Cloud1dir = "right";
}
if (_x <= 50) {
Cloud1dir = "right";
}
} else {
_x = (_x + _root.cloud1Speed);
ran = random(_root.cloud1Speed * 2);
if (ran == 1) {
Cloud1dir = "left";
}
if (_x >= 500) {
Cloud1dir = "left";
}
}
}
}
Instance of Symbol 396 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.score < 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 397 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
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 _local22 = 11000;
var _local25 = 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 _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 _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_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(_local21);
_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, _local23, 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 = _local22;
chk.ad_timeout = _local25;
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;
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) {
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) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
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) {
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;
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) {
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
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);
}
}
Symbol 4 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 31 MovieClip Frame 180
_root.play();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 1
_parent._parent.h._visible = true;
_root.bucketClosed = false;
stop();
Symbol 44 MovieClip Frame 2
_parent.closeBucketHand.gotoAndPlay(_currentframe);
_parent._parent.h._visible = false;
_root.bucketClosed = true;
Symbol 44 MovieClip Frame 6
Symbol 44 MovieClip Frame 14
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
Symbol 45 MovieClip Frame 6
Instance of Symbol 47 MovieClip "hitter" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 64 Button
on (press) {
getURL ("http://www.iceflass.net", "_blank");
}
Symbol 68 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=catchem2", "_blank");
}
Symbol 81 Button
on (release) {
_root.credits.play();
}
Symbol 84 Button
on (release) {
_root.selectPlayer_mc.play();
}
Symbol 85 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=catchem2", "_blank");
}
Symbol 86 MovieClip Frame 40
stop();
Symbol 89 Button
on (release) {
play();
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 20
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 134 Button
on (release) {
getURL ("http://www.kongregate.com/game_sponsorships/list", "_blank");
}
Symbol 143 Button
on (release) {
_root.personSelect = 2;
_parent.play();
}
Symbol 146 Button
on (release) {
_root.personSelect = 1;
_parent.play();
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 20
stop();
Symbol 148 MovieClip Frame 21
_root.play();
Symbol 148 MovieClip Frame 40
Symbol 151 Button
on (release, keyPress "m") {
gotoAndStop (2);
}
on (release, keyPress "M") {
gotoAndStop (2);
}
Symbol 153 Button
on (release, keyPress "m") {
gotoAndStop (1);
}
on (release, keyPress "M") {
gotoAndStop (1);
}
Symbol 154 MovieClip Frame 1
if (_root.debug == true) {
gotoAndStop (2);
}
stop();
Symbol 154 MovieClip Frame 2
stopAllSounds();
Symbol 159 MovieClip Frame 1
stop();
Instance of Symbol 156 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 40
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 40
stop();
Symbol 174 MovieClip Frame 86
stop();
Symbol 175 MovieClip Frame 1
if (_root.nightAbility == true) {
if (_root.day == true) {
b2.gotoAndStop("day");
b1.gotoAndStop("day");
} else {
b2.gotoAndStop("night");
b1.gotoAndStop("night");
}
} else if (_root.currLevel != 1) {
b2.play();
b1.play();
}
stop();
Symbol 175 MovieClip Frame 2
call(1);
Symbol 183 MovieClip Frame 16
removeMovieClip(_parent);
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
_root.score = _root.score + value;
_root.itemsInAir--;
stop();
Symbol 192 MovieClip Frame 3
_root.score = _root.score - value;
_root.itemsInAir--;
Symbol 192 MovieClip Frame 20
removeMovieClip(this);
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 3
stop();
Symbol 193 MovieClip Frame 4
stop();
Symbol 193 MovieClip Frame 5
stop();
Symbol 199 MovieClip Frame 16
removeMovieClip(_parent);
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
_root.score = _root.score + value;
_root.itemsInAir--;
_root.catcher.prevFrame();
stop();
Symbol 200 MovieClip Frame 3
_root.itemsInAir--;
Symbol 200 MovieClip Frame 20
removeMovieClip(this);
stop();
Symbol 203 MovieClip Frame 10
stop();
Symbol 206 MovieClip Frame 16
removeMovieClip(_parent);
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
_root.score = _root.score + value;
_root.itemsInAir--;
stop();
Symbol 207 MovieClip Frame 3
_root.itemsInAir--;
Symbol 207 MovieClip Frame 30
removeMovieClip(this);
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 33
_root.comet_mc._y = -50;
_root.comet_mc._x = random(300) + 100;
_root.itemsInAir--;
_root.comet_mc.gotoAndStop(1);
Symbol 223 MovieClip Frame 27
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
_root.cometGo = false;
stop();
Symbol 224 MovieClip Frame 3
_root.cometGo = false;
stop();
Symbol 227 Button
on (release, keyPress "p") {
if (_root.startLevel == true) {
_root.pauseGame();
play();
}
}
on (release, keyPress "P") {
if (_root.startLevel == true) {
_root.pauseGame();
play();
}
}
on (release, keyPress "<Space>") {
if (_root.startLevel == true) {
_root.pauseGame();
play();
}
}
Symbol 230 MovieClip Frame 25
stop();
Symbol 235 Button
on (release, keyPress "p") {
_root.unPauseGame();
play();
}
on (release, keyPress "P") {
_root.unPauseGame();
play();
}
on (release, keyPress "<Space>") {
_root.unPauseGame();
play();
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 3
Symbol 247 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
attemptsLeft_mc.gotoAndStop(_root.attemptsLeft);
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 4
stop();
Symbol 285 MovieClip Frame 1
txt = _root.currLevel + 1;
stop();
Symbol 285 MovieClip Frame 2
txt = _root.currLevel + 1;
stop();
Symbol 285 MovieClip Frame 3
txt = _root.currLevel + 1;
stop();
Symbol 289 Button
on (release) {
_root.nextLevel_mc.play();
play();
}
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 24
_root.nextLevel();
trace("hi");
Symbol 293 Button
on (release) {
_root.nextLevel_mc.play();
play();
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 24
_root.currLevel--;
_root.attemptsLeft--;
_root.nowRestartingLevel = true;
_root.nextLevel();
Symbol 299 Button
on (release) {
_root.kongregateScores.submit(_root.score);
play();
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 25
_parent._parent.failed_mc.gotoAndStop(4);
stop();
Symbol 304 Button
on (release) {
play();
}
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 25
_root.restartGame();
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 3
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 3
stop();
Symbol 319 Button
on (release) {
_root.score = _root.score - _root.storeItem3price;
_root.storeItem3price = "Choose";
_root.nightAbility = true;
_root.day = false;
}
on (rollOver) {
_parent.tips.gotoAndStop(4);
}
on (rollOut, dragOut) {
_parent.tips.gotoAndStop(1);
}
Symbol 322 Button
on (release) {
img.gotoAndStop(3);
_root.day = true;
}
Symbol 323 Button
on (release) {
img.gotoAndStop(2);
_root.day = false;
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
_parent.tips.gotoAndStop(1);
stop();
Symbol 324 MovieClip Frame 3
_parent.tips.gotoAndStop(1);
if (_root.day == true) {
img.gotoAndStop(3);
} else {
img.gotoAndStop(2);
}
Symbol 328 Button
on (release) {
_root.score = _root.score - _root.storeItem2price;
_root.storeItem2price = "-";
_root.jumpAbility = true;
}
on (rollOver) {
_parent.tips.gotoAndStop(3);
}
on (rollOut, dragOut) {
_parent.tips.gotoAndStop(1);
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
_parent.tips.gotoAndStop(1);
stop();
Symbol 331 MovieClip Frame 3
_parent.tips.gotoAndStop(1);
Symbol 334 Button
on (release) {
_root.score = _root.score - _root.storeItem1price;
_root.catcher.nextFrame();
}
on (rollOver) {
_parent.tips.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.tips.gotoAndStop(1);
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
_parent.tips.gotoAndStop(1);
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 3
stop();
Symbol 352 MovieClip Frame 4
stop();
Symbol 356 MovieClip Frame 1
stop();
Instance of Symbol 324 MovieClip "storeField3" in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nightAbility == true) {
gotoAndStop (3);
} else if (_root.score < _root.storeItem3price) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 331 MovieClip "storeField2" in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.jumpAbility == true) {
gotoAndStop (3);
} else if (_root.score < _root.storeItem2price) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 335 MovieClip "storeField1" in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.score < _root.storeItem1price) or (_root.catcher._currentframe == _root.catcher._totalframes)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 356 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 1
if (_root.personSelect == 1) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 359 MovieClip Frame 1
if ((_root.currLevel == 0) and (_root.firstRun == true)) {
levelResult.gotoAndStop(2);
} else if (((_root.percentRequired > _root.catchedPercent) and (_root.firstRun != true)) and (_root.attemptsLeft > 0)) {
levelResult.gotoAndStop(3);
store_mc.gotoAndStop(2);
failed_mc.gotoAndStop(2);
levelBtn_mc.gotoAndStop(2);
} else if ((_root.attemptsLeft == 0) and (_root.percentRequired > _root.catchedPercent)) {
levelResult.gotoAndStop(3);
store_mc.gotoAndStop(2);
failed_mc.gotoAndStop(3);
levelBtn_mc.gotoAndStop(3);
}
stop();
Symbol 359 MovieClip Frame 25
stop();
Symbol 359 MovieClip Frame 26
gotoAndStop (1);
Symbol 361 Button
on (release) {
if ((_root.firstRun == true) and (_currentframe != 4)) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 368 Button
on (release) {
_root.showTutorial = false;
_parent.gotoAndStop(1);
}
Symbol 391 MovieClip Frame 1
if (_root.firstRun != true) {
_root.unPauseGame();
}
_root.nextLevel_mc._visible = true;
stop();
Symbol 391 MovieClip Frame 2
_root.nextLevel_mc._visible = false;
stop();
Symbol 391 MovieClip Frame 3
stop();
Symbol 391 MovieClip Frame 4
stop();
Symbol 391 MovieClip Frame 5
_root.pauseGame();
stop();
Symbol 391 MovieClip Frame 6
_root.pauseGame();
stop();
Symbol 391 MovieClip Frame 7
_root.pauseGame();
stop();
Symbol 391 MovieClip Frame 8
_root.pauseGame();
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();