Frame 1
Stage.showMenu = false;
percentloaded = 0;
mochi.MochiServices.connect("620fc9cc1f2a9a0b");
if (GAMEHASBEENPLAYED == true) {
gotoAndPlay (4);
}
_root.kongregateServices.connect();
stop();
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.percentloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.loadedtext.text = ("" + int(_root.percentloaded)) + "%";
if (_root.percentloaded == 100) {
this.play();
}
}
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.play();
}
}
Frame 3
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);
}
Instance of Symbol 73 MovieClip in Frame 3
on (release) {
_root.getURL("http://www.kongregate.com/?gamereferral=jumpcat");
__com_mochibot__("ee3fa78b", this, 10301, true);
}
Frame 4
stop();
Instance of Symbol 81 MovieClip in Frame 4
on (release) {
this.play();
}
Instance of Symbol 84 MovieClip in Frame 4
on (release) {
this.play();
}
Instance of Symbol 112 MovieClip in Frame 4
on (release) {
_root.getURL("http://www.kongregate.com/?gamereferral=jumpcat");
__com_mochibot__("ee3fa78b", this, 10301, true);
}
Frame 10
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);
}
pausypausy._visible = false;
cat.yspeed = 0;
cat.xmove = 5;
cat.gravity = 1;
cat.currjump = 0;
cat.maxjump = 22;
cat.jumpinc = 1.5;
cat.minjump = 5;
var obst_timer = 850;
var obst_timer_def = 60;
var dup = 1;
var game_speed = 10;
var stuffarray = ["rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli", "rock", "tree", "redheli", "hawk", "yellowheli", "greenheli"];
var duration = -750;
var catflicker = false;
var delete_beacon = false;
var first_score = 0;
var second_score = 0;
var third_score = 0;
var final_score = 0;
var GAMEISPAUSED = false;
var this_combo = 1;
var bonus_score = 0;
var best_combo = 0;
cat.cat_face.gotoAndStop(1);
duuude.skippyskippy.onRelease = function () {
duuude.gotoAndStop(750);
duration = 0;
obst_timer = 100;
};
onEnterFrame = function () {
if (duration < 0) {
if (Key.isDown(13)) {
duuude.gotoAndStop(750);
duration = 0;
obst_timer = 100;
}
}
if (!GAMEISPAUSED) {
if (cat._y < 300) {
cat.yspeed = cat.yspeed + cat.gravity;
cat._y = cat._y + cat.yspeed;
cat.currjump = 0;
cat.gotoAndStop(1);
cat.cat_face.gotoAndStop(3);
} else {
cat.play();
cat._y = 300;
cat.yspeed = 0;
if (((Key.isDown(32) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(1)) {
if (cat.currjump < cat.maxjump) {
if (cat.currjump < (cat.maxjump / 2)) {
cat.currjump = cat.currjump + cat.jumpinc;
} else {
cat.currjump = cat.currjump + (cat.jumpinc / 2);
}
}
if (cat.currjump < cat.minjump) {
cat.currjump = cat.minjump;
}
} else {
cat.yspeed = -cat.currjump;
if (cat.currjump > 0) {
if (music) {
if (cat.currjump < 10) {
soundFX.gotoAndPlay("boing1");
} else if (cat.currjump < 16) {
soundFX.gotoAndPlay("boing2");
} else if (cat.currjump < 22) {
soundFX.gotoAndPlay("boing3");
} else {
soundFX.gotoAndPlay("boing4");
}
}
}
cat.currjump = 0;
cat._y = cat._y + cat.yspeed;
}
cat.cat_face.gotoAndStop(1);
}
} else {
cat.stop();
}
if (!GAMEISPAUSED) {
if (_root.CONTROLS != "mouse") {
if (Key.isDown(37) or Key.isDown(65)) {
cat._x = cat._x - cat.xmove;
}
if (Key.isDown(39) or Key.isDown(68)) {
cat._x = cat._x + cat.xmove;
}
if (cat._x < 10) {
cat._x = 10;
}
if (cat._x > (Stage.width - 10)) {
cat._x = Stage.width - 10;
}
} else {
if (_xmouse < (cat._x - cat.xmove)) {
cat._x = cat._x - cat.xmove;
} else if (_xmouse > (cat._x + cat.xmove)) {
cat._x = cat._x + cat.xmove;
} else {
cat._x = _xmouse;
}
if (cat._x < 10) {
cat._x = 10;
}
if (cat._x > (Stage.width - 10)) {
cat._x = Stage.width - 10;
}
}
}
if (cat.currjump > 0) {
guidearrow._y = 270 - (Math.pow(cat.currjump, 2) / (2 * cat.gravity));
guidearrow._visible = true;
} else {
guidearrow._visible = false;
}
guidearrow._x = cat._x;
if (!GAMEISPAUSED) {
obst_timer--;
if (obst_timer <= 0) {
curr_obst = Math.floor(Math.random() * (duration / 400));
this[stuffarray[curr_obst]].duplicateMovieClip(stuffarray[curr_obst] + dup, _root.getNextHighestDepth());
if (stuffarray[curr_obst] == "yellowheli") {
this[stuffarray[curr_obst] + dup].onEnterFrame = function () {
if (!GAMEISPAUSED) {
if (this.yspeed == undefined) {
this.yspeed = 5;
}
this._y = this._y + this.yspeed;
if (this._y > 310) {
this.yspeed = -5;
} else if (this._y < 60) {
this.yspeed = 5;
}
this._x = this._x - (game_speed / 1.5);
if (this._x < -150) {
obst_timer_def = obst_timer_def - 0.2;
if (this_combo > 0) {
if (this_combo > 20) {
bonus_score = bonus_score + 1000;
} else {
bonus_score = bonus_score + (this_combo * 50);
}
bonus_popup.gotoAndStop(this_combo);
bonus_popup._alpha = 100;
}
this_combo = this_combo + 1;
this.removeMovieClip();
}
if (this.hitTest(cat._x + 25, cat._y - 20, true) or this.hitTest(cat._x - 25, cat._y - 20, true)) {
HITCAT();
}
if (delete_beacon) {
this.removeMovieClip();
}
}
};
} else if (stuffarray[curr_obst] == "greenheli") {
this[stuffarray[curr_obst] + dup].onEnterFrame = function () {
if (!GAMEISPAUSED) {
if (this._y > (cat._y + 10)) {
this._y = this._y - 5;
} else if (this._y < (cat._y - 10)) {
this._y = this._y + 5;
}
this._x = this._x - (game_speed / 1.5);
if (this._x < -150) {
obst_timer_def = obst_timer_def - 0.2;
if (this_combo > 0) {
if (this_combo > 20) {
bonus_score = bonus_score + 1000;
} else {
bonus_score = bonus_score + (this_combo * 50);
}
bonus_popup.gotoAndStop(this_combo);
bonus_popup._alpha = 100;
}
this_combo = this_combo + 1;
this.removeMovieClip();
}
if (this.hitTest(cat._x + 25, cat._y - 20, true) or this.hitTest(cat._x - 25, cat._y - 20, true)) {
HITCAT();
}
if (delete_beacon) {
this.removeMovieClip();
}
}
};
} else {
this[stuffarray[curr_obst] + dup].onEnterFrame = function () {
if (!GAMEISPAUSED) {
this._x = this._x - game_speed;
if (this._x < -150) {
obst_timer_def = obst_timer_def - 0.2;
if (this_combo > 0) {
if (this_combo > 20) {
bonus_score = bonus_score + 1000;
} else {
bonus_score = bonus_score + (this_combo * 50);
}
bonus_popup.gotoAndStop(this_combo);
bonus_popup._alpha = 100;
}
this_combo = this_combo + 1;
this.removeMovieClip();
}
if (this.hitTest(cat._x + 25, cat._y - 20, true) or this.hitTest(cat._x - 25, cat._y - 20, true)) {
HITCAT();
}
if (delete_beacon) {
this.removeMovieClip();
}
}
};
}
dup++;
obst_timer = (Math.random() * 30) + obst_timer_def;
}
if (duration > 2000) {
bomber._y = 0;
if (bomber._currentframe == 1) {
bomber._x = bomber._x + ((cat._x - bomber._x) / 20);
}
if (Math.random() < 0.02) {
bomber.play();
}
if (bomber._currentframe == 15) {
bomber.play();
missile.duplicateMovieClip("missile" + dup, _root.getNextHighestDepth());
this["missile" + dup]._x = bomber._x;
this["missile" + dup]._y = bomber._y - 10;
this["missile" + dup].onEnterFrame = function () {
this._y = this._y + 6;
if (this._y > (Stage.height + 100)) {
this.removeMovieClip();
}
if ((this.hitTest(cat._x + 25, cat._y - 20, true) or this.hitTest(cat._x - 25, cat._y - 20, true)) or cat.hitTest(this._x, this._y, true)) {
HITCAT();
}
if (delete_beacon) {
this.removeMovieClip();
}
};
}
}
if ((duration > 800) and (duration < 900)) {
rolling_rock._x = rolling_rock._x + 1;
if ((cat._x - rolling_rock._x) < 80) {
cat._x = rolling_rock._x + 80;
}
}
if ((duration > 1500) and (duration < 2500)) {
rolling_rock._x = rolling_rock._x + 2;
rolling_rock._xscale = rolling_rock._xscale - 0.2;
rolling_rock._yscale = rolling_rock._yscale - 0.2;
if (Math.random() < 0.333333333333333) {
small_rock.duplicateMovieClip("small_rock" + dup, _root.getNextHighestDepth());
this["small_rock" + dup].yspeed = (-random(10)) - 5;
this["small_rock" + dup]._rotation = random(360);
this["small_rock" + dup]._x = (rolling_rock._x - 15) + random(30);
this["small_rock" + dup]._y = (rolling_rock._y - 15) + random(30);
this["small_rock" + dup]._alpha = 50 + (Math.random() * 50);
this["small_rock" + dup].onEnterFrame = function () {
if (!GAMEISPAUSED) {
this.yspeed = this.yspeed + 1;
this._y = this._y + this.yspeed;
if (this._y > (Stage.height + 20)) {
this.removeMovieClip();
}
this._x = this._x - 5;
this._rotation = this._rotation + 20;
}
};
dup++;
}
}
if (rolling_rock.hitTest(cat._x - 25, cat._y - 20, true) or rolling_rock.hitTest(cat._x + 25, cat._y - 20, true)) {
HITCAT();
}
if ((duration > 3000) and (duration < 3130)) {
rolling_rock2._x = rolling_rock2._x + 1;
if ((cat._x - rolling_rock2._x) < 130) {
cat._x = rolling_rock2._x + 130;
}
}
if ((duration > 4500) and (duration < 5000)) {
rolling_rock2._x = rolling_rock2._x + 1;
rolling_rock2._xscale = rolling_rock2._xscale - 0.1;
rolling_rock2._yscale = rolling_rock2._yscale - 0.1;
if (Math.random() < 0.333333333333333) {
small_rock.duplicateMovieClip("small_rock" + dup, _root.getNextHighestDepth());
this["small_rock" + dup].yspeed = (-random(10)) - 5;
this["small_rock" + dup]._rotation = random(360);
this["small_rock" + dup]._x = (rolling_rock2._x - 15) + random(30);
this["small_rock" + dup]._y = (rolling_rock2._y - 15) + random(30);
this["small_rock" + dup]._alpha = 50 + (Math.random() * 50);
this["small_rock" + dup].onEnterFrame = function () {
if (!GAMEISPAUSED) {
this.yspeed = this.yspeed + 1;
this._y = this._y + this.yspeed;
if (this._y > (Stage.height + 20)) {
this.removeMovieClip();
}
this._x = this._x - 5;
this._rotation = this._rotation + 20;
}
};
dup++;
}
}
if (rolling_rock2.hitTest(cat._x - 25, cat._y - 20, true) or rolling_rock.hitTest(cat._x + 25, cat._y - 20, true)) {
HITCAT();
}
}
ground.swapDepths(_root.getNextHighestDepth());
cat.swapDepths(_root.getNextHighestDepth());
bomber.swapDepths(_root.getNextHighestDepth());
if (!GAMEISPAUSED) {
if (catflicker) {
cat.cat_face.gotoAndStop(2);
if (cat._visible) {
cat._visible = false;
} else {
cat._visible = true;
}
} else {
cat._visible = true;
}
duration++;
if (delete_beacon) {
ground.removeMovieClip();
cat.removeMovieClip();
bomber.removeMovieClip();
}
}
if (Key.isDown(80)) {
if (duuude._currentframe == 750) {
GAMEISPAUSED = true;
pausypausy._visible = true;
}
}
if (Key.isDown(79)) {
GAMEISPAUSED = false;
pausypausy._visible = false;
}
if (GAMEISPAUSED) {
ground.stop();
} else {
ground.play();
}
if (((((first_score + second_score) + third_score) + duration) + bonus_score) > 0) {
score_text.text = "score: " + ((((first_score + second_score) + third_score) + duration) + bonus_score);
} else {
score_text.text = "score: ";
}
};
HITCAT = function () {
if (!catflicker) {
if (music) {
soundFX.gotoAndPlay("meow");
}
if (this_combo > best_combo) {
best_combo = this_combo;
}
this_combo = 0;
if (life_one._visible) {
life_one.play();
catflicker = true;
first_score = duration;
trace(first_score);
} else if (life_two._visible) {
life_two.play();
catflicker = true;
second_score = duration;
trace(second_score);
} else if (life_three._visible) {
life_three.play();
catflicker = true;
third_score = duration;
trace(third_score);
} else {
final_score = duration;
trace(final_score);
GAMEOVER();
}
}
};
GAMEOVER = function () {
delete_beacon = true;
play();
};
__com_mochibot__("b9d0989a", this, 10301, true);
_root.kongregateStats.submit("plays", 1);
stop();
Instance of Symbol 115 MovieClip "rock" in Frame 10
onClipEvent (load) {
gotoAndStop(Math.ceil(Math.random() * 2));
}
Instance of Symbol 118 MovieClip "tree" in Frame 10
onClipEvent (load) {
gotoAndStop(Math.ceil(Math.random() * 2));
}
Instance of Symbol 141 MovieClip "redheli" in Frame 10
onClipEvent (load) {
_y = (200 + (Math.random() * 100));
gotoAndStop(Math.ceil(Math.random() * 2));
}
Instance of Symbol 144 MovieClip "yellowheli" in Frame 10
onClipEvent (load) {
_y = (200 + (Math.random() * 100));
gotoAndStop(Math.ceil(Math.random() * 2));
}
Instance of Symbol 147 MovieClip "greenheli" in Frame 10
onClipEvent (load) {
_y = _root.cat._y;
gotoAndStop(Math.ceil(Math.random() * 2));
}
Instance of Symbol 236 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 263 MovieClip "bonus_popup" in Frame 10
onClipEvent (load) {
_alpha = 0;
this.stop();
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
this.stop();
}
Frame 11
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);
}
onEnterFrame = null;
_root.kongregateServices.connect();
_root.kongregateScores.setMode("TotalScore");
_root.kongregateScores.submit(total_score);
_root.kongregateScores.setMode("ScoreBeforeFirstHit");
_root.kongregateScores.submit(first_score);
_root.kongregateScores.setMode("BestCombo");
_root.kongregateScores.submit(best_combo);
_root.kongregateStats.submit("highscore", total_score);
_root.kongregateStats.submit("combo", best_combo);
_root.kongregateStats.submit("firsthitscore", first_score);
score1.text = first_score;
score2.text = second_score;
score3.text = third_score;
score4.text = final_score;
scoreb.text = bonus_score;
var total_score = ((((first_score + second_score) + third_score) + final_score) + bonus_score);
trace(total_score);
totalscore.text = total_score;
GAMEHASBEENPLAYED = true;
submitscorebutton.onRelease = function () {
if ((name_text.text != undefined) and (name_text.text != "type your name here")) {
mochi.MochiScores.showLeaderboard({boardID:"461bd981640c7617", score:total_score, name:name_text.text});
}
};
stop();
Instance of Symbol 112 MovieClip in Frame 11
on (release) {
_root.getURL("http://cycerin.newgrounds.com", "_blank");
}
Instance of Symbol 112 MovieClip in Frame 11
on (release) {
_root.getURL("http://editundo.bravehost.com", "_blank");
}
Instance of Symbol 8 MovieClip "starparticle" in Symbol 9 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(int(random(5) + 1));
fade = 10;
_x = (random(200) - 100);
_y = (random(_root.percentloaded * 2) - 100);
dup = 1;
}
onClipEvent (enterFrame) {
if (_name == "starparticle") {
_visible = false;
i = 1;
while (i <= ((_root.percentloaded / 5) + 5)) {
this.duplicateMovieClip("starparticle" + dup, _parent.getNextHighestDepth());
dup++;
i++;
}
} else {
_y = (_y + yspeed);
_alpha = (_alpha - fade);
_rotation = random(360);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 20
_root.play();
this.stop();
Symbol 294 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 295 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip != mochi.MochiServices.__get__clip()) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 25 MovieClip Frame 1
_root.stop();
Symbol 25 MovieClip Frame 144
_root.play();
Symbol 73 MovieClip Frame 1
this._alpha = 10;
_root.stop();
Symbol 73 MovieClip Frame 2
this._alpha = 20;
Symbol 73 MovieClip Frame 3
this._alpha = 30;
Symbol 73 MovieClip Frame 4
this._alpha = 40;
Symbol 73 MovieClip Frame 5
this._alpha = 50;
Symbol 73 MovieClip Frame 6
this._alpha = 60;
Symbol 73 MovieClip Frame 7
this._alpha = 70;
Symbol 73 MovieClip Frame 8
this._alpha = 80;
Symbol 73 MovieClip Frame 9
this._alpha = 90;
Symbol 73 MovieClip Frame 10
this._alpha = 100;
Symbol 73 MovieClip Frame 171
this._alpha = 100;
Symbol 73 MovieClip Frame 172
this._alpha = 90;
Symbol 73 MovieClip Frame 173
this._alpha = 80;
Symbol 73 MovieClip Frame 174
this._alpha = 70;
Symbol 73 MovieClip Frame 175
this._alpha = 60;
Symbol 73 MovieClip Frame 176
this._alpha = 50;
Symbol 73 MovieClip Frame 177
this._alpha = 40;
Symbol 73 MovieClip Frame 178
this._alpha = 30;
Symbol 73 MovieClip Frame 179
this._alpha = 20;
Symbol 73 MovieClip Frame 180
this._alpha = 10;
this.stop();
_root.play();
Symbol 81 MovieClip Frame 1
_root._quality = "HIGH";
stop();
Symbol 81 MovieClip Frame 2
_root._quality = "MEDIUM";
stop();
Symbol 81 MovieClip Frame 3
_root._quality = "LOW";
stop();
Symbol 84 MovieClip Frame 1
if ((_root.music == undefined) or (_root.music == true)) {
_root.music = true;
_root.musicMC.play();
this.stop();
} else {
_root.musicMC.stop();
this.gotoAndStop(2);
}
Symbol 84 MovieClip Frame 2
_root.music = false;
_root.musicMC.stop();
stop();
Symbol 84 MovieClip Frame 3
_root.music = true;
_root.musicMC.play();
Symbol 91 Button
on (release) {
_root.CONTROLS = "spacebar";
gotoAndPlay ("GAME");
}
Symbol 95 Button
on (release) {
_root.CONTROLS = "arrows";
gotoAndPlay ("GAME");
}
Symbol 102 Button
on (release) {
_root.CONTROLS = "wad";
gotoAndPlay ("GAME");
}
Symbol 108 Button
on (release) {
_root.CONTROLS = "mouse";
gotoAndPlay ("GAME");
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 15
stop();
Symbol 214 MovieClip Frame 1
if (_root.CONTROLS == "spacebar") {
play();
} else if (_root.CONTROLS == "arrows") {
gotoAndPlay (751);
} else if (_root.CONTROLS == "wad") {
gotoAndPlay (1501);
} else {
gotoAndPlay (2251);
}
Symbol 214 MovieClip Frame 750
stop();
Symbol 214 MovieClip Frame 1500
stop();
Symbol 214 MovieClip Frame 2250
stop();
Symbol 214 MovieClip Frame 3000
stop();
Symbol 230 MovieClip Frame 750
this._visible = false;
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 51
_root.catflicker = false;
_visible = false;
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 25
stop();
Symbol 242 MovieClip Frame 75
stop();
Symbol 242 MovieClip Frame 125
stop();
Symbol 242 MovieClip Frame 175
stop();
Symbol 242 MovieClip Frame 228
stop();
Symbol 277 Button
on (release) {
gotoAndPlay (10);
}
Symbol 282 Button
on (release) {
_root.getURL("http://www.kongregate.com/?gamereferral=jumpcat");
__com_mochibot__("ee3fa78b", this, 10301, true);
}
Symbol 284 Button
on (release) {
gotoAndPlay (4);
}