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);
}
function countDown() {
sec++;
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
if (sec >= (getPercent * 100)) {
sec = getPercent * 100;
}
}
function submitScore(scoreVal) {
var _local3 = parseFloat(scoreVal);
var _local6 = "http://www.agitatedferret.com/facebook/remote/score.php?";
var _local4 = _root.userId;
var _local8 = _root.hash;
var _local5 = _root.session;
var _local7 = generateHash(_local3);
var _local2 = new LoadVars();
_local2.load((((((((((_local6 + "user=") + _local4) + "&hash=") + _local8) + "&session=") + _local5) + "&score=") + _local3) + "&v=") + _local7, "", "GET");
_local2.onLoad = function (success) {
if (success) {
gotoFinishPage();
} else {
if (onScoreSubmitFailed != null) {
onScoreSubmitFailed();
}
flash.external.ExternalInterface.call("failedSubmit");
}
};
}
function gotoFinishPage() {
flash.external.ExternalInterface.call("finishSubmit");
}
function generateHash(score) {
var _local1 = Math.abs(h1(score));
var _local2 = Math.abs(h2(score + _local1));
var _local3 = Math.abs(h3(_local1 + _local2));
return((((_local1 + ":") + _local2) + ".") + _local3);
}
function h1(i) {
return(i ^ ((i * 6.5) << 2));
}
function h2(i) {
return(((((i * 7) ^ ((5 - (5 ^ (i % 1503))) - 4)) ^ 48) ^ 9) ^ 0);
}
function h3(i) {
return(((((((i * 2) ^ 4) ^ -1) ^ 7) ^ (3 + (4 ^ (i % 1503)))) ^ 6) ^ 100);
}
__com_mochibot__("ac496feb", this, 10301, true);
gameLocked = 0;
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "agitatedferret.com") {
gameLocked = 1;
}
var kongregate = _global.kongregate;
kongregate.services.connect();
stop();
if (domain != "kongregate.com") {
var CPMStarContentSpotID = "1692QC25ABC96";
System.security.allowDomain("server.cpmstar.com");
loader.adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
sec = 0;
countdown = setInterval(countDown, 200);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
onScoreSubmitFailed = function () {
};
Frame 2
function onEnterFrame() {
blockeMove2();
expMove2();
ner = ner + 1;
if (ner == 280) {
gotoAndStop (3);
}
}
function blockeMove2() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._x = lsers[i]._x + lsX[i];
lsers[i]._y = lsers[i]._y + lsY[i];
lsY[i] = lsY[i] + grav;
lsX[i] = lsX[i] * airF;
if ((lsers[i]._x + (lsers[i]._width / 2)) >= Stage.width) {
lsX[i] = lsX[i] * -1;
}
if ((lsers[i]._x - (lsers[i]._width / 2)) <= 0) {
lsX[i] = lsX[i] * -1;
lsers[i]._x = lsers[i]._x + lsX[i];
}
if ((lsers[i]._y + (lsers[i]._height / 2)) >= Stage.height) {
lsY[i] = lsY[i] * -0.5;
lsers[i]._y = Stage.height - (lsers[i]._height / 2);
}
lsLive[i] = lsLive[i] - 1;
if (lsLive[i] <= 0) {
lsers[i]._alpha = lsers[i]._alpha - 2;
if (lsers[i]._alpha <= 0) {
removeBlock2();
}
}
i--;
}
}
function removeBlock2() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
function blockSplode2() {
b = 10;
while (b > 0) {
ls = attachMovie("aa", "lser" + depth2, depth2);
depth2++;
lsers.push(ls);
ls._x = random(Stage.width);
ls._y = random(Stage.height);
dire = random(180);
lsX.push(Math.cos((dire * Math.PI) / 180) * 20);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * 20);
lsLive.push(30);
b--;
}
}
function expMove2() {
i = exp.length - 1;
while (i >= 0) {
exp[i]._x = exp[i]._x + expX[i];
exp[i]._y = exp[i]._y + expY[i];
expX[i] = expX[i] * 0.98;
expY[i] = expY[i] * 0.98;
exp[i]._alpha = exp[i]._alpha - 5;
if (exp[i]._alpha <= 0) {
removeExp2();
}
i--;
}
}
function explosion2() {
b = 3;
while (b >= 0) {
cna = attachMovie("pua", "cn" + depth2, depth2);
depth2++;
cna._x = _xmouse;
cna._y = _ymouse;
rotTemp = random(360);
exp.push(cna);
expX.push(random(10) - 5);
expY.push(random(10) - 5);
cna._xscale = (cna._yscale = random(50) + 25);
b--;
}
}
function removeExp2() {
exp[i].removeMovieClip();
exp.splice(i, 1);
expX.splice(i, 1);
expY.splice(i, 1);
}
var my_sound2 = new Sound();
my_sound2.attachSound("297711_Rising_Waves.mp3");
my_sound2.start(0, 100);
stop();
depth2 = 103;
grav = 1;
airF = 0.9;
exp = new Array();
expX = new Array();
expY = new Array();
lsers = new Array();
lsY = new Array();
lsX = new Array();
lsLive = new Array();
dire = 0;
ner = 0;
Frame 3
function setUp() {
sp._x = random((Stage.width - dist) - 4) + 2;
ep._x = sp._x + dist;
}
function onEnterFrame() {
if (right == 1) {
block._x = block._x + 10;
} else if (right == 0) {
block._x = block._x - 10;
}
if (block._x >= Stage.width) {
right = 0;
}
if (block._x <= 0) {
right = 1;
}
blockeMove();
}
function blockeMove() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._x = lsers[i]._x + lsX[i];
lsers[i]._y = lsers[i]._y + lsY[i];
lsY[i] = lsY[i] + grav;
lsX[i] = lsX[i] * airF;
if ((lsers[i]._x + (lsers[i]._width / 2)) >= Stage.width) {
lsX[i] = lsX[i] * -1;
}
if ((lsers[i]._x - (lsers[i]._width / 2)) <= 0) {
lsX[i] = lsX[i] * -1;
lsers[i]._x = lsers[i]._x + lsX[i];
}
if ((lsers[i]._y + (lsers[i]._height / 2)) >= Stage.height) {
lsY[i] = lsY[i] * -0.5;
lsers[i]._y = Stage.height - (lsers[i]._height / 2);
}
lsLive[i] = lsLive[i] - 1;
if (lsLive[i] <= 0) {
lsers[i]._alpha = lsers[i]._alpha - 2;
if (lsers[i]._alpha <= 0) {
removeBlock();
}
}
i--;
}
}
function removeBlock() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
stop();
sObject = SharedObject.getLocal("objectName");
var my_sound = new Sound();
my_sound.attachSound("Big_clun-Public_D-348.wav");
pBest = 0;
if (sObject.data.pBest > 0) {
pBest = sObject.data.pBest;
}
pBestTxt = pBest;
dist = 50;
right = 1;
score = 0;
scoreTxt = "score: " + score;
lsers = new Array();
lsX = new Array();
lsY = new Array();
lsLive = new Array();
grav = 0.5;
airF = 0.95;
depth = 103;
Key.removeListener(keyListener);
var keyListener = new Object();
keyListener.onKeyDown = function () {
num = Key.getCode();
if (num == 32) {
if ((block._x >= sp._x) && (block._x <= ep._x)) {
right = 0;
dist = dist - 1;
if (dist <= 12) {
dist = 12;
}
setUp();
aw.gotoAndPlay(2);
aw.aw.gotoAndStop(random(4) + 1);
aw._x = random(400) + 75;
aw._y = random(100) + 25;
score = score + 1;
if (score == 5) {
background2.gotoAndStop(2);
}
if (score == 10) {
background2.gotoAndStop(3);
}
if (score == 15) {
background2.gotoAndStop(4);
}
if (score == 20) {
background2.gotoAndStop(5);
}
if (score == 25) {
background2.gotoAndStop(6);
}
if (score == 30) {
background2.gotoAndStop(7);
}
if (score >= pBest) {
pBest = score;
pBestTxt = pBest;
}
scoreTxt = "score: " + score;
flashq.gotoAndPlay(2);
disa.gotoAndStop(2);
my_sound.start();
i = score;
while (i > 0) {
ls = attachMovie("lSquare", "lser" + depth, depth);
depth++;
lsers.push(ls);
ls._x = block._x;
ls._y = block._y;
dire = random(180);
lsX.push(Math.cos((dire * Math.PI) / 180) * 10);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * 10);
lsLive.push(50);
i--;
}
} else {
gotoAndStop (4);
}
}
};
Key.addListener(keyListener);
setUp();
Frame 4
function onEnterFrame() {
if ((335 - (score * 5)) <= ranker._y) {
ranker._y = ranker._y - 1;
ranker.rankTxt = Math.floor((335 - ranker._y) / 5);
if (Math.floor((335 - ranker._y) / 5) >= rankNumbers[rankNameRank + 1]) {
rankNameRank = rankNameRank + 1;
}
rankNameTxt = rankNames[rankNameRank];
} else if (called == 0) {
submitScore(score);
called = 1;
}
if (ranker._y <= 35) {
ranker._y = 35;
ranker.rankTxt = score;
if (called == 0) {
submitScore(score);
called = 1;
}
}
blockeMove();
}
Key.removeListener(keyListener);
sObject.data.pBest = pBest;
Object.flush();
if (pBest >= 10) {
a1.gotoAndStop(2);
}
if (pBest >= 20) {
a2.gotoAndStop(2);
}
if (pBest >= 30) {
a3.gotoAndStop(2);
}
rankNames = new Array("Failure", "Pathetic", "Bad", "Beginner", "Amateur", "Novice", "Fair", "Average", "Acceptable", "Intermediate", "Good", "Satisfying", "Rad", "Great", "Superb", "Splendid", "Advanced", "Amazing", "Pro", "Veteran", "Inhuman");
rankNumbers = new Array(0, 1, 2, 3, 4, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 30, 35, 40, 45, 50, 1000, 10200);
var keyListener = new Object();
keyListener.onKeyDown = function () {
num = Key.getCode();
if (num == 32) {
gotoAndStop (3);
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
}
};
Key.addListener(keyListener);
ta.onRollOver = function () {
ta.gotoAndStop(2);
};
ta.onRollOut = function () {
ta.gotoAndStop(1);
};
ta.onRelease = function () {
gotoAndStop (3);
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
};
scoreTxt = "score: " + score;
rankNameRank = 0;
called = 0;
Symbol 14 MovieClip Frame 1
stop();
Symbol 19 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.agitatedferret.com/app", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 32 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 33 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Symbol 44 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.agitatedferret.com/app", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 201
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 97 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://apps.facebook.com/agitatedferret/guestScore.php?game=33&score=" + score, "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}