Frame 1
function runAdNoGame() {
pwnt = "This game has been stolen!";
adObj = {id:"0dd43f6997b57974", res:"600x500", background:16753571, color:16711680, outline:9175040, no_bg:true, ad_finished:function () {
stop();
}, ad_loaded:function (width, height) {
ad_back.h2 = height + 30;
ad_back.w2 = width + 50;
}};
}
var showAdMe = true;
var adFailed = false;
var adObj = {id:"0dd43f6997b57974", res:"600x500", background:16753571, color:16711680, outline:9175040, no_bg:true, ad_failed:function () {
adFailed = true;
}, ad_finished:function () {
play();
removeMovieClip(loader);
removeMovieClip(ad_back);
}, ad_loaded:function (width, height) {
ad_back.h2 = height + 30;
ad_back.w2 = width + 50;
}, ad_progress:function (percenta) {
percent = percenta;
}};
attachMovie("ad_backing", "ad_back", 44, {_x:300, _y:250, _width:1, _height:1, h2:0, w2:0});
if (showAdMe) {
MochiAd.showPreGameAd(adObj);
} else {
adFailed = true;
}
var loaded = 0;
var total = getBytesTotal();
var percent = ((loaded / total) * 100);
loader.bar._xscale = percent;
onEnterFrame = function () {
if (adFailed) {
loaded = _root.getBytesLoaded();
percent = (loaded / total) * 100;
if (loaded >= total) {
trace("Locked and Loaded!");
loader._alpha = loader._alpha - 2;
play();
removeMovieClip(_root.loader);
removeMovieClip(_root.ad_back);
}
}
if (loader.bar._xscale < percent) {
loader.bar._xscale = loader.bar._xscale + ((percent - loader.bar._xscale) / 5);
}
loader.percent_load = Math.round(percent) + "%";
if (ad_back._width != ad_back.w2) {
ad_back._width = ad_back._width + ((ad_back.w2 - ad_back._width) / 10);
}
if (ad_back._width != ad_back.h2) {
ad_back._height = ad_back._height + ((ad_back.h2 - ad_back._height) / 10);
}
};
stop();
Frame 15
function slowdown() {
intro.nextFrame();
trace("asdf");
}
function GO() {
clearInterval(bob);
play();
}
stop();
intro.stop();
var bob = setInterval(slowdown, 30);
Frame 30
gotoAndPlay ("skiptohere");
Frame 60
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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__("dceaea6e", this, 10301, true);
__com_mochibot__("3b56a67e", this, 10301, true);
var gamestate = "menu";
var setlevel = 1;
var levelProgress = 1;
SAVED_DATA = SharedObject.getLocal("jellyManData");
if (SAVED_DATA.data.levelReached == undefined) {
SAVED_DATA.data.levelReached = 1;
} else {
levelProgress = SAVED_DATA.data.levelReached;
}
trace("Our Progress is level " + levelProgress);
var nomusic = false;
var backgroundMusic = new Sound(this);
backgroundMusic.attachSound("jellymanTheme");
backgroundMusic.start();
backgroundMusic.onSoundComplete = function () {
backgroundMusic.start();
};
onEnterFrame = function () {
if (gamestate == "game") {
removeMovieClip(current);
attachMovie("game", "current", 100);
gamestate = undefined;
}
if (gamestate == "menu") {
removeMovieClip(current);
attachMovie("menu", "current", 100, {_alpha:0});
gamestate = undefined;
}
if (gamestate == "levelSelect") {
removeMovieClip(current);
attachMovie("levelselect", "current", 100, {_alpha:0});
gamestate = undefined;
}
if (gamestate == "credits") {
removeMovieClip(current);
attachMovie("credits", "current", 100, {_alpha:0});
gamestate = undefined;
}
if (gamestate == "options") {
removeMovieClip(current);
attachMovie("options", "current", 100, {_alpha:0});
gamestate = undefined;
}
if (gamestate == undefined) {
if (current._alpha < 100) {
current._alpha = current._alpha + 5;
}
}
};
stop();
Symbol 13 MovieClip [shockwave] Frame 15
removeMovieClip(this);
unloadMovie (this);
Symbol 20 MovieClip [Goodie] Frame 1
#initclip 17
Object.registerClass("Goodie", goodie);
#endinitclip
Symbol 23 MovieClip [GroundSpikes] Frame 1
#initclip 12
Object.registerClass("GroundSpikes", killer);
#endinitclip
stop();
Symbol 23 MovieClip [GroundSpikes] Frame 2
_parent._parent.shink_snd.start();
stop();
Symbol 31 MovieClip [cloakedMine] Frame 1
#initclip 13
Object.registerClass("cloakedMine", cloak);
#endinitclip
stop();
Symbol 31 MovieClip [cloakedMine] Frame 2
_parent._parent.esplode_snd.start();
Symbol 31 MovieClip [cloakedMine] Frame 45
stop();
Symbol 53 MovieClip [fan] Frame 1
#initclip 14
Object.registerClass("fan", fan);
#endinitclip
Symbol 119 MovieClip [heater] Frame 1
#initclip 15
Object.registerClass("heater", heater);
#endinitclip
Symbol 136 MovieClip [SpikeBall] Frame 1
#initclip 16
Object.registerClass("SpikeBall", killer);
#endinitclip
stop();
Symbol 136 MovieClip [SpikeBall] Frame 2
_parent._parent.boom_snd.start();
Symbol 136 MovieClip [SpikeBall] Frame 30
stop();
Symbol 141 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 383 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
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 384 MovieClip [__Packages.killer] Frame 0
class killer extends MovieClip
{
var ref, _parent, _x, _y, _width, _height, hitTest, play;
function killer () {
super();
ref = _parent._parent;
if (_x < 300) {
if (_y < 250) {
quadrant = 0;
} else {
quadrant = 1;
}
} else if (_y < 250) {
quadrant = 2;
} else {
quadrant = 3;
}
if ((_width > 100) || (_height > 100)) {
noquad = true;
}
}
function onEnterFrame() {
if ((ref.quadrant == quadrant) || (noquad)) {
if (hitTest(ref.line)) {
ref.killJello();
ref.attachMovie("part", "part1v", 978, {target:ref.part1, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part2v", 979, {target:ref.part2, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part3v", 980, {target:ref.part3, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part4v", 981, {target:ref.part4, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
play();
}
}
}
var quadrant = 0;
var noquad = false;
}
Symbol 385 MovieClip [__Packages.cloak] Frame 0
class cloak extends MovieClip
{
var ref, _parent, _alpha, hitTest, play;
function cloak () {
super();
ref = _parent._parent;
}
function onEnterFrame() {
if ((_alpha < 100) && (s)) {
_alpha = _alpha + 2;
} else if ((_alpha > 0) && (!s)) {
_alpha = _alpha - 2;
} else {
s = !s;
}
if (hitTest(ref.line)) {
_alpha = 100;
ref.killJello();
ref.attachMovie("part", "part1v", 978, {target:ref.part1, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part2v", 979, {target:ref.part2, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part3v", 980, {target:ref.part3, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part4v", 981, {target:ref.part4, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
play();
}
}
var s = true;
}
Symbol 386 MovieClip [__Packages.fan] Frame 0
class fan extends MovieClip
{
var ref, _parent, hitTest, _x, _y;
function fan () {
super();
ref = _parent._parent;
}
function onEnterFrame() {
for (var _local6 in ref.pArray) {
var _local2 = ref.pArray[_local6];
if (hitTest(_local2.x, _local2.y, true)) {
var _local4 = _local2.x - _x;
var _local3 = _local2.y - _y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
_local2.xv = _local2.xv + ((_local4 / _local5) / 2);
_local2.yv = _local2.yv + (_local3 / _local5);
if (ref.dead) {
ref.killJello();
}
}
}
}
}
Symbol 387 MovieClip [__Packages.Part] Frame 0
class Part
{
var x, y, oldx, oldy;
function Part (setx, sety) {
x = setx;
y = sety;
oldx = x;
oldy = y;
}
var xv = 0;
var yv = 0;
var hitting = 0;
}
Symbol 388 MovieClip [__Packages.heater] Frame 0
class heater extends MovieClip
{
var ref, _parent, hitTest;
function heater () {
super();
ref = _parent._parent;
}
function onEnterFrame() {
if (hitTest(ref.line)) {
if ((ref.level % 5) != 0) {
ref.jellow = ref.jellow - 0.15;
}
if ((ref.level % 5) == 0) {
ref.jellow = ref.jellow - 0.075;
}
if (((ref.jellow && (ref.jellow <= 12)) && (!ref.dead)) && ((ref.level % 5) != 0)) {
ref.killJello();
ref.attachMovie("part", "part1v", 978, {target:ref.part1, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part2v", 979, {target:ref.part2, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part3v", 980, {target:ref.part3, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part4v", 981, {target:ref.part4, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
}
if ((ref.jellow && (ref.jellow <= 6)) && (!ref.dead)) {
ref.killJello();
ref.attachMovie("part", "part1v", 978, {target:ref.part1, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part2v", 979, {target:ref.part2, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part3v", 980, {target:ref.part3, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
ref.attachMovie("part", "part4v", 981, {target:ref.part4, _xscale:ref.jellow * 4, _yscale:ref.jellow * 4});
}
}
}
}
Symbol 389 MovieClip [__Packages.goodie] Frame 0
class goodie extends MovieClip
{
var ref, _parent, hitTest, _alpha, _xscale, _yscale, unloadMovie;
function goodie () {
super();
ref = _parent._parent;
}
function onEnterFrame() {
if (hitTest(ref.line) && (done == false)) {
done = true;
ref.collect_snd.start();
}
if (done == true) {
_alpha = _alpha - 5;
_xscale = _xscale + 5;
_yscale = _xscale;
}
if (_alpha <= 0) {
ref.collected++;
(unloadMovie());// not popped
}
}
var done = false;
}
Symbol 390 MovieClip [__Packages.levelButton] Frame 0
class levelButton extends MovieClip
{
var ready, _alpha, dest, gotoAndStop, _parent;
function levelButton () {
super();
}
function disable() {
ready = false;
_alpha = 50;
}
function enable(argDest) {
dest = argDest;
ready = true;
}
function onRollOver() {
if (ready) {
(gotoAndStop("OVER"));// not popped
_parent.attachMovie("lvl" + dest, "thumb", 15, {_xscale:25, _yscale:25, _x:375, _y:350});
} else {
_parent.attachMovie("unknown", "thumb", 15, {_x:375, _y:350});
}
}
function onRollOut() {
if (ready) {
(gotoAndStop("UP"));// not popped
}
_parent.thumb.removeMovieClip();
}
function onPress() {
if (ready) {
(gotoAndStop("DOWN"));// not popped
}
}
function onRelease() {
if (ready) {
(gotoAndStop("OVER"));// not popped
_parent._parent.setlevel = dest;
_parent._parent.gamestate = "game";
}
}
function onReleaseOutside() {
if (ready) {
(gotoAndStop("Up"));// not popped
}
}
}
Symbol 391 MovieClip [__Packages.muteButton] Frame 0
class muteButton extends MovieClip
{
var _parent, ref, stop, mute, gotoAndStop;
function muteButton () {
super();
if (_parent._parent._parent) {
ref = _parent._parent._parent;
} else {
ref = _parent._parent;
}
(stop());// not popped
mute = ref.nomusic;
if (mute) {
(gotoAndStop("soundOff"));// not popped
}
}
function onRelease() {
mute = !mute;
if (mute) {
ref.backgroundMusic.stop();
(gotoAndStop("soundOff"));// not popped
ref.nomusic = true;
} else {
ref.backgroundMusic.start(0, Infinity);
(gotoAndStop("soundOn"));// not popped
ref.nomusic = false;
}
}
}
Symbol 392 MovieClip [__Packages.qualityButton] Frame 0
class qualityButton extends MovieClip
{
var _quality, gotoAndStop, stop;
function qualityButton () {
super();
if (_quality == "medium") {
setting = 1;
(gotoAndStop(2));// not popped
}
if (_quality == "low") {
setting = 0;
(gotoAndStop(3));// not popped
}
(stop());// not popped
}
function onRelease() {
setting = setting + 1;
if (setting == 3) {
setting = 0;
}
if (setting == 2) {
_quality = "high";
(gotoAndStop(1));// not popped
}
if (setting == 1) {
_quality = "medium";
(gotoAndStop(2));// not popped
}
if (setting == 0) {
_quality = "low";
(gotoAndStop(3));// not popped
}
}
var setting = 2;
}
Symbol 393 MovieClip [__Packages.jPart] Frame 0
class jPart extends MovieClip
{
var _x, target, _y;
function jPart () {
super();
}
function onEnterFrame() {
_x = target.x;
_y = target.y;
}
}
Symbol 146 Button
on (release) {
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
getURL ("http://www.ninjakiwi.com", "_blank");
__com_mochibot__("98df800b", this, 10301, true);
}
Symbol 190 MovieClip Frame 199
stop();
_root.GO();
Symbol 192 MovieClip [part] Frame 1
#initclip 24
Object.registerClass("part", jPart);
#endinitclip
Symbol 197 MovieClip [doublespike] Frame 1
#initclip 18
Object.registerClass("doublespike", killer);
#endinitclip
stop();
Symbol 197 MovieClip [doublespike] Frame 2
_parent._parent.shink_snd.start();
stop();
Symbol 214 MovieClip [menu] Frame 1
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
play_btn.onRelease = function () {
_parent.gamestate = "levelSelect";
};
credits_btn.onRelease = function () {
_parent.gamestate = "credits";
};
options_btn.onRelease = function () {
_parent.gamestate = "options";
};
moreGames_btn.onRelease = function () {
getURL ("http://ninjakiwi.com/", _blank);
__com_mochibot__("a31544ef", this, 10301, true);
};
Symbol 215 MovieClip [game] Frame 1
function constraint(p1, p2, distance, linetodraw) {
var _local5 = p1.x - p2.x;
var _local4 = p1.y - p2.y;
var _local3 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
var _local6 = _local3 - distance;
var _local10 = (_local5 / _local3) * _local6;
var _local9 = (_local4 / _local3) * _local6;
var _local8 = _local10 * spring;
var _local7 = _local9 * spring;
p1.xv = p1.xv - _local8;
p1.yv = p1.yv - _local7;
p2.xv = p2.xv + _local8;
p2.yv = p2.yv + _local7;
if (p1 == part1) {
linetodraw.moveTo(p1.x, p1.y);
}
linetodraw.lineTo(p2.x, p2.y);
}
function createJello(posx, posy) {
attachMovie("smiley", "smiley", 5674);
collected = 0;
part1 = new Part(posx - 5, posy);
part2 = new Part((posx + jellow) + 5, posy);
part3 = new Part(posx + jellow, posy + jellow);
part4 = new Part(posx, posy + jellow);
pArray = [part1, part2, part3, part4];
}
function killJello() {
respawntimer++;
if (!dead) {
for (var _local2 in pArray) {
var _local1 = pArray[_local2];
_local1.xv = _local1.xv * -4;
_local1.yv = _local1.yv * -4;
removeMovieClip(smiley);
}
attachMovie("Ouch", "Ouch", 117, {_x:part1.x, _y:part1.y});
pop_snd.start();
}
part1v._alpha = part1v._alpha - 0.5;
part2v._alpha = part2v._alpha - 0.5;
part3v._alpha = part3v._alpha - 0.5;
part4v._alpha = part4v._alpha - 0.5;
dead = true;
if (respawntimer > 200) {
removeJello();
dead = false;
levelplaying = false;
checkLevels();
respawntimer = 0;
removeMovieClip(Ouch);
}
}
function removeJello() {
jellow = 25;
spring = 0.375;
gravity = 0.25;
friction = 0.96;
pow = 2;
removeMovieClip(smiley);
}
function checkLevels() {
trace("playing level: " + level);
if (!levelplaying) {
removeMovieClip(levelmc);
switch (level) {
case 1 :
attachMovie("lvl1", "levelmc", 10, {jneeded:6});
createJello(50, 50);
break;
case 2 :
attachMovie("lvl2", "levelmc", 10, {jneeded:15});
createJello(525, 325);
break;
case 3 :
attachMovie("lvl3", "levelmc", 10, {jneeded:8});
createJello(50, 50);
break;
case 4 :
attachMovie("lvl4", "levelmc", 10, {jneeded:12});
createJello(50, 50);
break;
case 5 :
jellow = 12;
spring = 0.4;
gravity = 0.125;
friction = 0.975;
pow = 1;
attachMovie("lvl5", "levelmc", 10, {jneeded:32});
createJello(450, 450);
break;
case 6 :
attachMovie("lvl6", "levelmc", 10, {jneeded:11});
createJello(50, 50);
break;
case 7 :
attachMovie("lvl7", "levelmc", 10, {jneeded:10});
createJello(290, 300);
break;
case 8 :
attachMovie("lvl8", "levelmc", 10, {jneeded:3});
createJello(50, 50);
break;
case 9 :
attachMovie("lvl9", "levelmc", 10, {jneeded:5});
createJello(550, 450);
break;
case 10 :
jellow = 12;
spring = 0.4;
gravity = 0.125;
friction = 0.975;
pow = 1;
attachMovie("lvl10", "levelmc", 10, {jneeded:20});
createJello(300, 250);
break;
case 11 :
attachMovie("lvl11", "levelmc", 10, {jneeded:12});
createJello(50, 50);
break;
case 12 :
attachMovie("lvl12", "levelmc", 10, {jneeded:18});
createJello(100, 450);
break;
case 13 :
attachMovie("lvl13", "levelmc", 10, {jneeded:5});
createJello(250, 75);
break;
case 14 :
attachMovie("lvl14", "levelmc", 10, {jneeded:12});
createJello(525, 325);
break;
case 15 :
jellow = 12;
spring = 0.4;
gravity = 0.125;
friction = 0.975;
pow = 1;
attachMovie("lvl15", "levelmc", 10, {jneeded:20});
createJello(500, 50);
break;
case 16 :
attachMovie("lvl16", "levelmc", 10, {jneeded:4});
createJello(50, 50);
break;
case 17 :
attachMovie("lvl17", "levelmc", 10, {jneeded:9});
createJello(50, 450);
break;
case 18 :
attachMovie("lvl18", "levelmc", 10, {jneeded:7});
createJello(50, 50);
break;
case 19 :
attachMovie("lvl19", "levelmc", 10, {jneeded:4});
createJello(287, 337);
break;
case 20 :
jellow = 12;
spring = 0.4;
gravity = 0.125;
friction = 0.975;
pow = 1;
attachMovie("lvl20", "levelmc", 10, {jneeded:22});
createJello(50, 75);
break;
case 21 :
attachMovie("lvl21", "levelmc", 10, {jneeded:3});
createJello(75, 45);
break;
case 22 :
attachMovie("lvl22", "levelmc", 10, {jneeded:10});
createJello(520, 420);
break;
case 23 :
attachMovie("lvl23", "levelmc", 10, {jneeded:6});
createJello(50, 50);
break;
case 24 :
attachMovie("lvl24", "levelmc", 10, {jneeded:11});
createJello(300, 450);
break;
case 25 :
jellow = 12;
spring = 0.4;
gravity = 0.125;
friction = 0.975;
pow = 1;
attachMovie("lvl25", "levelmc", 10, {jneeded:8});
createJello(50, 50);
break;
case 26 :
attachMovie("theEnd", "levelmc", 10);
createJello(50, 450);
}
}
gameControl._visible = true;
this.levelmc._alpha = 0;
levelplaying = true;
}
function transition(argc) {
if (argc == "out") {
if (levelmc._alpha > 0) {
levelmc._alpha = levelmc._alpha - 5;
} else {
removeMovieClip(levelmc);
}
}
if (argc == "in") {
if (levelmc._alpha < 100) {
levelmc._alpha = levelmc._alpha + 5;
controllable = false;
} else {
controllable = true;
}
}
}
function onEnterFrame() {
if (level == 26) {
firetime++;
trace("uh");
if (firetime >= 50) {
trace("hum");
attachMovie("shockwave", "shockwave", this.getNextHighestDepth(), {_xscale:200, _yscale:200, _x:Math.random() * 600, _y:Math.random() * 500});
firetime == 0;
}
} else {
var _local9 = levelmc.jneeded - collected;
gameControl.jellyLeft_txt.text = ("You need to collect " + _local9) + " more Jellycoins";
}
line.clear();
if (!levelplaying) {
transition("out");
} else {
transition("in");
jellod = Math.sqrt((jellow * jellow) + (jellow * jellow));
var _local8 = (((part1.x + part2.x) + part3.x) + part4.x) / 4;
var _local7 = (((part1.y + part2.y) + part3.y) + part4.y) / 4;
var _local11 = part2.x - part1.x;
var _local10 = part2.y - part1.y;
smiley._rotation = Math.atan2(_local10, _local11) * RAD_TO_DEG;
smiley._x = _local8;
smiley._y = _local7;
smiley._xscale = (smiley._yscale = 4 * jellow);
if (_local8 < 300) {
if (_local7 < 250) {
quadrant = 0;
} else {
quadrant = 1;
}
} else if (_local7 < 250) {
quadrant = 2;
} else {
quadrant = 3;
}
if (!dead) {
line.beginFill(16711680, 50);
constraint(part1, part2, jellow, line);
constraint(part2, part3, jellow, line);
constraint(part3, part4, jellow, line);
constraint(part1, part4, jellow, line);
constraint(part2, part4, jellod, 0);
constraint(part1, part3, jellod, 0);
line.endFill();
if (Key.isDown(37) || (Key.isDown(65))) {
part1.xv = part1.xv - pow;
}
if (Key.isDown(39) || (Key.isDown(68))) {
part1.xv = part1.xv + pow;
}
if (Key.isDown(38) || (Key.isDown(87))) {
part1.yv = part1.yv - pow;
}
if (Key.isDown(40) || (Key.isDown(83))) {
part1.yv = part1.yv + pow;
}
}
for (var _local6 in pArray) {
var _local3 = pArray[_local6];
_local3.xv = _local3.xv * friction;
_local3.yv = _local3.yv * friction;
_local3.yv = _local3.yv + gravity;
_local3.y = _local3.y + _local3.yv;
_local3.x = _local3.x + _local3.xv;
if (levelmc.terrain.hitTest(_local3.x, _local3.y, true)) {
var _local4 = _local3.y - _local3.oldy;
var _local5 = _local3.x - _local3.oldx;
_local3.x = _local3.x - _local5;
_local3.y = _local3.y - _local4;
_local3.xv = _local3.xv - (_local5 * 1.5);
_local3.yv = _local3.yv - (_local4 * 1.5);
if (!_local3.hitting) {
attachMovie("shockwave", "shockwave", this.getNextHighestDepth(), {_x:_local3.x, _y:_local3.y});
fire_snd.start();
}
_local3.hitting = _local3.hitting + 3;
if (dead) {
killJello();
}
} else if (_local3.hitting > 0) {
_local3.hitting--;
}
_local3.oldx = _local3.x;
_local3.oldy = _local3.y;
}
if (line.hitTest(levelmc.exit._x, levelmc.exit._y - 5, false) && (levelplaying == true)) {
if (level == 26) {
trace("loloollolo");
_parent.gamestate = "menu";
return(undefined);
}
if (collected == levelmc.jneeded) {
level = level + 1;
if (_parent.levelProgress < level) {
_parent.levelProgress = level;
_parent.SAVED_DATA.data.levelReached = _parent.levelProgress;
_parent.SAVED_DATA.flush();
trace("flush");
}
levelplaying = false;
lefttextcolor == 16777215;
attachMovie("levelcomplete", "levelcompletemc", 127, {_x:300, _y:250});
gameControl._visible = false;
removeJello();
bing_snd.start();
} else {
trace("Not enough jelly");
if (lefttextcolor == 16777215) {
lefttextcolor = 16711680 /* 0xFF0000 */;
} else {
lefttextcolor = lefttextcolor + 4369;
}
}
} else {
lefttextcolor = 16777215 /* 0xFFFFFF */;
if (collected == levelmc.jneeded) {
gameControl.jellyLeft_txt.text = "Proceed to the exit!";
}
}
}
gameControl.jellyLeft_txt.textColor = lefttextcolor;
}
var quadrant = 0;
var gravity = 0.25;
var friction = 0.96;
var spring = 0.375;
var jellow = 25;
var jellod = Math.sqrt((jellow * jellow) + (jellow * jellow));
var dead = false;
var pow = 2;
var level = _parent.setlevel;
var levelplaying = false;
var respawntimer = 0;
var collected = 0;
var part1;
var part2;
var part3;
var part4;
var pArray = [part1, part2, part3, part4];
var RAD_TO_DEG = 57.2957795130823;
var lefttextcolor = 16777215;
var firetime = 0;
var collect_snd = new Sound(this);
collect_snd.attachSound("collect");
var boom_snd = new Sound(this);
boom_snd.attachSound("boom");
var bing_snd = new Sound(this);
bing_snd.attachSound("bing");
var pop_snd = new Sound(this);
pop_snd.attachSound("pop");
var fire_snd = new Sound(this);
fire_snd.attachSound("fire");
var esplode_snd = new Sound(this);
esplode_snd.attachSound("esplode");
var shink_snd = new Sound(this);
shink_snd.attachSound("shink");
this.createEmptyMovieClip("line", 100);
checkLevels();
attachMovie("gameControl", "gameControl", 666, {_x:460, _y:7});
Symbol 221 MovieClip [lvlbutton] Frame 1
#initclip 19
Object.registerClass("lvlbutton", levelButton);
#endinitclip
stop();
Symbol 249 MovieClip [levelselect] Frame 1
var i = 1;
while (i <= 25) {
if (i > _parent.levelProgress) {
this["b" + i].disable();
} else {
this["b" + i].enable(i);
}
i++;
}
go_menu.onRelease = function () {
_parent.gamestate = "menu";
};
beta.onRelease = function () {
_parent.setlevel = 26;
_parent.gamestate = "game";
};
Symbol 259 MovieClip [levelcomplete] Frame 1
function onEnterFrame() {
if ((!fadeout) && (!fadeoutc)) {
scalev = (scalev + ((100 - _xscale) / 20)) * 0.9;
}
if (fadeout) {
scalev--;
if (_xscale <= 0) {
removeMovieClip(this);
}
}
if (fadeoutc) {
scalev--;
if (_xscale <= 0) {
_root.gamestate = "levelSelect";
}
}
_xscale = (_xscale + scalev);
_yscale = _xscale;
}
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
var fadeout = false;
var fadeoutc = false;
var scalev = 0;
var k = new Object();
Key.addListener(k);
_xscale = 0;
k.onKeyUp = function () {
if (Key.getCode() == 32) {
contbtn.onRelease();
}
};
contbtn.onRelease = function () {
_parent.checkLevels();
fadeout = true;
scalev = 0;
};
stopbtn.onRelease = function () {
fadeoutc = true;
scalev = 0;
};
moreGames_btn.onRelease = function () {
getURL ("http://ninjakiwi.com/", _blank);
__com_mochibot__("a162727c", this, 10301, true);
};
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 290 MovieClip [credits] Frame 1
menu_btn.onRelease = function () {
_parent.gamestate = "menu";
};
siteLink.onRelease = function () {
getURL ("http://marmphco.com", _blank);
};
moreGames.onRelease = function () {
getURL ("http://ninjakiwi.com/", _blank);
};
Symbol 298 MovieClip [Mute] Frame 1
#initclip 20
Object.registerClass("Mute", muteButton);
#endinitclip
Symbol 302 MovieClip [gameControl] Frame 1
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
var k = new Object();
Key.addListener(k);
back_btn.onRelease = function () {
_parent._parent.gamestate = "levelSelect";
trace(_parent._parent);
};
reset_btn.onRelease = function () {
if (_parent.levelplaying && (!_parent.dead)) {
_parent.levelplaying = false;
_parent.removeJello();
_parent.checkLevels();
}
};
k.onKeyUp = function () {
if (Key.getCode() == 82) {
reset_btn.onRelease();
}
};
moreGames_btn.onRelease = function () {
getURL ("http://ninjakiwi.com/", _blank);
__com_mochibot__("d7622473", this, 10301, true);
};
Symbol 320 MovieClip [laserBeam] Frame 1
#initclip 21
Object.registerClass("laserBeam", killer);
#endinitclip
Symbol 370 MovieClip [Mute2] Frame 1
#initclip 22
Object.registerClass("Mute2", muteButton);
#endinitclip
Symbol 374 MovieClip [qualitybtn] Frame 1
#initclip 23
Object.registerClass("qualitybtn", qualityButton);
#endinitclip
Symbol 375 MovieClip [options] Frame 1
menu_btn.onRelease = function () {
_parent.gamestate = "menu";
};
teh_button.onRelease = function () {
muter.onRelease();
};
other_button.onRelease = function () {
quality.onRelease();
};
Symbol 377 MovieClip [Ouch] Frame 1
function onEnterFrame() {
scalev = (scalev + ((100 - _xscale) / 20)) * 0.9;
scalev--;
_xscale = (_xscale + scalev);
_yscale = _xscale;
}
var scalev = 0;
_xscale = 0;
stop();