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__("7a63ca94", 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 = "2424QDC71D53B";
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);
}
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 ber(button) {
button.onRollOver = function () {
button._alpha = 15;
};
button.onRollOut = function () {
button._alpha = 0;
};
}
stop();
ber(q1);
ber(q2);
ber(q3);
ber(q4);
ber(q5);
ber(q6);
ber(q7);
cg._x = Stage.width / 2;
cg._y = Stage.height / 2;
q1.onRelease = function () {
fi.gotoAndPlay(2);
fi._x = Stage.width / 2;
fi._y = Stage.height / 2;
};
q2.onRelease = function () {
gotoAndStop (5);
};
q3.onRelease = function () {
gotoAndStop (6);
};
achievements = new Array(0, 0, 0, 0, 0, 0, 0, 0);
sObject = SharedObject.getLocal("saveFile");
i = 0;
while (i <= achievements.length) {
if (sObject.data.achievements[i] != undefined) {
achievements[i] = sObject.data.achievements[i];
}
i++;
}
Frame 4
function updateStats() {
ui.lTxt = group;
ui.dTxt = deaths;
ui.mTxt = Math.floor(money);
ui.rTxt = rageCharge;
ui.tTxt = (((("Time: " + hours) + ":") + minutes) + ":") + seconds;
}
function shaker() {
if (lShake == 0) {
_root._x = _root._x + 3;
_root._y = _root._y + 1;
lShake = lShake + 1;
} else if (lShake == 1) {
_root._x = _root._x - 2;
_root._y = _root._y - 2;
lShake = lShake + 1;
} else if (lShake == 2) {
_root._x = _root._x - 2;
_root._y = _root._y - 1;
lShake = lShake + 1;
} else if (lShake == 3) {
_root._x = _root._x + 1;
_root._y = _root._y + 2;
lShake = 0;
}
}
function shaker2() {
if (lShake2 == 0) {
_root._x = _root._x + (random(6) - 3);
_root._y = _root._y + (random(6) - 3);
lShake2 = lShake2 + 1;
} else if (lShake2 == 1) {
_root._x = 0;
_root._y = 0;
lShake2 = -1;
}
}
function onEnterFrame() {
awardWait();
if (!gamePaused) {
adel = adel - 1;
if (adel <= 0) {
adel = 10000000 /* 0x989680 */;
stopGame = 0;
}
if (mGo == 1) {
upgradeScreen._alpha = upgradeScreen._alpha - 5;
char._alpha = char._alpha + 5;
if (upgradeScreen._alpha <= 0) {
upgradeScreen._alpha = 100;
char._alpha = 100;
mGo = 0;
stopGame = 0;
upgradeScreen._x = 2000;
}
}
time = time + 1;
seconds = Math.floor(time / 30);
if (seconds >= 60) {
time = 0;
seconds = 0;
minutes = minutes + 1;
if (minutes >= 60) {
minutes = 0;
hours = hours + 1;
}
}
updateStats();
blockeMove();
expMove();
mLoc._x = _xmouse;
mLoc._y = _ymouse;
bg._y = bg._y + 15;
bg2._y = bg2._y + 15;
fog._y = fog._y + 25;
fog2._y = fog2._y + 25;
lAlpha = lAlpha - 2;
if (stopGame == 1) {
lAlpha = lAlpha + 2;
}
if (lAlpha <= 0) {
lAlpha = 0;
}
lev._alpha = lAlpha;
if (upgradeScreen._x <= 850) {
bg._y = bg._y - 15;
bg2._y = bg2._y - 15;
fog._y = fog._y - 25;
fog2._y = fog2._y - 25;
}
shaker2();
if (fog._y >= 1520) {
fog._y = fog._y - 2000;
}
if (fog2._y >= 1520) {
fog2._y = fog2._y - 2000;
}
if (bg._y >= 1920) {
bg._y = bg._y - 1920;
}
if (bg2._y >= 1920) {
bg2._y = bg2._y - 1920;
}
if (controlShip == 1) {
if (upgradeLevels[2] == 0) {
char._x = char._x - ((char._x - _xmouse) / 8);
char._y = char._y - ((char._y - _ymouse) / 8);
}
if (upgradeLevels[2] == 1) {
char._x = char._x - ((char._x - _xmouse) / 6);
char._y = char._y - ((char._y - _ymouse) / 6);
}
if (upgradeLevels[2] == 2) {
char._x = char._x - ((char._x - _xmouse) / 3);
char._y = char._y - ((char._y - _ymouse) / 3);
}
if ((char._x + 15) >= Stage.width) {
char._x = Stage.width - 15;
}
if ((char._x - 15) <= 0) {
char._x = 15;
}
if ((char._y + 10) >= Stage.height) {
char._y = Stage.height - 10;
}
if ((char._y - 10) <= 0) {
char._y = 10;
}
} else {
char._y = char._y - sBackSpeed;
sBackSpeed = sBackSpeed * 1.1;
if (upgradeScreen._x <= Stage.width) {
sBackSpeed = 2;
char._y = Stage.height / 2;
}
}
shotDelay = shotDelay - 1;
if (dcOn == 1) {
dc._x = dc._x - (((dc._x - (Stage.width / 2)) / 15) + 2);
if (dc._x <= (Stage.width / 2)) {
dc._x = Stage.width / 2;
dcOn = 0;
}
}
if (stopGame == 0) {
rageOn = 0;
if (bonusLife == 1) {
char.sOr._alpha = 100;
} else {
char.sOr._alpha = 0;
}
if (mDown == 1) {
rageCharge = rageCharge - 1;
if (rageCharge >= 0) {
rageOn = 1;
if (_root.blendMode == "normal") {
_root.blendMode = "subtract";
}
shaker();
}
if (rageCharge <= 0) {
rageCharge = 0;
}
}
if ((_root.blendMode = "subtract" && (rageOn != 1))) {
_root.blendMode = "normal";
}
if (mouseIsDown == 1) {
if (shotDelay <= 0) {
shotDelay = 1;
shotl.start();
if (upgradeLevels[5] == 0) {
createShot(90);
}
if (upgradeLevels[5] == 1) {
createShot(70);
createShot(110);
}
if (upgradeLevels[5] == 2) {
createShot(50);
createShot(90);
createShot(130);
}
bsDel = bsDel - 1;
if ((upgradeLevels[1] == 1) && (bsDel <= 0)) {
bsDel = 2;
createBackShot();
}
}
}
addEnDelay = addEnDelay - 1;
if ((addEnDelay <= 0) && (groupAmount[group - 1] > 0)) {
addEnDelay = EDelay[group - 1];
createEnemy();
}
bulletMovement();
enemyMovement();
coinMovement();
if (((aliveInGroup == 0) && (groupAmount[group - 1] <= 0)) && (theRest <= 0)) {
uScreenDelay = uScreenDelay - 1;
if ((uScreenDelay <= 0) || (coins.length == 0)) {
controlShip = 0;
if ((char._y + 10) <= 0) {
stopGame = 1;
Mouse.show();
clearScreen();
dcOn = 1;
dc._x = 2000;
if ((_root.blendMode = "subtract" && (rageOn != 1))) {
_root.blendMode = "normal";
}
kongregate.stats.submit("Level", group);
kongregate.stats.submit("Money", money);
if (group == 25) {
kongregate.stats.submit("GameComplete", 1);
kongregate.stats.submit("Deaths", deaths);
clearScreen();
if (achievements[4] == 0) {
giveAward(5);
}
char.removeMovieClip();
upgradeScreen.removeMovieClip();
ui.removeMovieClip();
char.removeMovieClip();
mLoc.removeMovieClip();
fog.removeMovieClip();
dc.removeMovieClip();
map.removeMovieClip();
fog2.removeMovieClip();
if ((minutes < 20) && (achievements[6] == 0)) {
giveAward(7);
}
if ((deaths < 10) && (achievements[7] == 0)) {
giveAward(8);
}
gotoAndStop (7);
}
dc._y = Stage.height / 2;
dc.me = "Money Earned: $" + moneyForLevel;
dc.lc = "Level Complete";
dc.td = "Total Deaths: " + deaths;
dc.tm = "Total Money:" + money;
moneyForLevel = 0;
dc.fin.onRelease = function () {
dc._x = 2000;
dcOn = 0;
map._x = Stage.width / 2;
map._y = Stage.height / 2;
};
}
}
}
}
}
}
function createShot(dir) {
bl = attachMovie("bullet", "bullet" + depth, depth++);
bl._x = char._x;
bl._y = char._y;
bullets.push(bl);
bY.push(15);
bX.push(Math.cos((dir * Math.PI) / 180) * 3);
bl._y = bl._y - 5;
if (upgradeLevels[0] == 1) {
bl.gotoAndStop(2);
}
if (upgradeLevels[0] == 2) {
bl.gotoAndStop(3);
}
if (upgradeLevels[0] == 3) {
bl.gotoAndStop(4);
}
}
function createBackShot() {
bl = attachMovie("bullet", "bullet" + depth, depth++);
bl._x = char._x;
bl._y = char._y;
bullets.push(bl);
bY.push(-15);
bX.push(0);
bl._y = bl._y + 5;
if (upgradeLevels[0] == 1) {
bl.gotoAndStop(2);
}
if (upgradeLevels[0] == 2) {
bl.gotoAndStop(3);
}
if (upgradeLevels[0] == 3) {
bl.gotoAndStop(4);
}
}
function createCoin(num) {
cn = attachMovie("coin", "coin" + depth, depth++);
cn._x = enemies[i]._x;
cn._y = enemies[i]._y;
cn.gotoAndStop(num);
cnX.push((random(100) / 10) - 5);
cnY.push((random(100) / 10) - 5);
coins.push(cn);
}
function coinMovement() {
i = coins.length - 1;
while (i >= 0) {
coins[i]._x = coins[i]._x + cnX[i];
coins[i]._y = coins[i]._y + cnY[i];
cnX[i] = cnX[i] * cFric;
cnY[i] = cnY[i] * cFric;
coins[i]._y = coins[i]._y + 4;
if ((coins[i]._x + (coins[i]._width / 2)) >= Stage.width) {
coins[i]._x = Stage.width - (coins[i]._width / 2);
cnX[i] = -5;
}
if ((coins[i]._x - (coins[i]._width / 2)) <= 0) {
coins[i]._x = coins[i]._width / 2;
cnX[i] = 5;
}
ax = char._x - coins[i]._x;
ay = char._y - coins[i]._y;
if (((15 + (coins[i]._width / 2)) + (30 * upgradeLevels[4])) >= Math.sqrt((ax * ax) + (ay * ay))) {
theDir = Math.atan2(ay, ax);
cnX[i] = 5 * Math.cos(theDir);
cnY[i] = 5 * Math.sin(theDir);
}
if (char.char.hitTest(coins[i])) {
if (coins[i]._currentframe == 1) {
money = money + (1 + (upgradeLevels[6] * 0.2));
moneyForLevel = moneyForLevel + (1 + (upgradeLevels[6] * 0.2));
}
if (coins[i]._currentframe == 2) {
money = money + (4 + (upgradeLevels[6] * 0.8));
moneyForLevel = moneyForLevel + (4 + (upgradeLevels[6] * 0.8));
}
if (coins[i]._currentframe == 3) {
money = money + (10 + (upgradeLevels[6] * 2));
moneyForLevel = moneyForLevel + (10 + (upgradeLevels[6] * 2));
}
explosion(2, coins[i], 5);
if ((money >= 1000) && (achievements[2] == 0)) {
giveAward(3);
}
if ((money >= 3000) && (achievements[5] == 0)) {
giveAward(6);
}
if ((money >= 10000) && (achievements[8] == 0)) {
giveAward(9);
}
cc.start();
cc.start();
cc.start();
removeCoin();
}
if ((coins[i]._y - (coins[i]._height / 2)) >= Stage.height) {
removeCoin();
}
i--;
}
}
function removeCoin() {
coins[i].removeMovieClip();
coins.splice(i, 1);
cnX.splice(i, 1);
cnY.splice(i, 1);
}
function createEnBullet() {
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-1);
enCoinAmt.push(1);
enLives.push(1);
xa = char._x - en._x;
ya = char._y - en._y;
dira = Math.atan2(ya, xa);
enX.push(10 * Math.cos(dira));
enY.push(10 * Math.sin(dira));
en.inner.inner.gotoAndStop(5);
theRest = theRest + 1;
}
function createEvilBullet() {
theRest = theRest + 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-2);
enCoinAmt.push(3);
enLives.push(4);
enX.push(0);
enY.push(0);
en.inner.inner.gotoAndStop(5);
}
function createEnBullet2() {
ft(0 + enemies[i]._rotation);
ft(90 + enemies[i]._rotation);
ft(180 + enemies[i]._rotation);
ft(270 + enemies[i]._rotation);
}
function createEnBullet3() {
ft(0 + enemies[i]._rotation);
ft(180 + enemies[i]._rotation);
}
function ft(dira) {
theRest = theRest + 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-1);
enCoinAmt.push(3);
enLives.push(2);
enX.push(10 * Math.cos((dira * Math.PI) / 180));
enY.push(10 * Math.sin((dira * Math.PI) / 180));
en.inner.inner.gotoAndStop(5);
}
function createEnBullet4() {
theRest = theRest + 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-1);
enCoinAmt.push(5);
enLives.push(25);
enX.push(0);
enY.push(0);
en.inner.inner.gotoAndStop(5);
}
function createEnBullet5(dira) {
theRest = theRest + 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-1);
enCoinAmt.push(5);
enLives.push(6);
enX.push(10 * Math.cos((dira * Math.PI) / 180));
enY.push(10 * Math.sin((dira * Math.PI) / 180));
en.inner.inner.gotoAndStop(5);
}
function createDeaths() {
fourTimes();
fourTimes();
fourTimes();
fourTimes();
}
function fourTimes() {
theRest = theRest + 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = enemies[i]._x;
en._y = enemies[i]._y;
enemies.push(en);
enType.push(-1);
enCoinAmt.push(3);
enLives.push(10);
enX.push(random(20) - 10);
enY.push(random(20) - 10);
en.inner.inner.gotoAndStop(7);
}
function createEnemy() {
aliveInGroup = aliveInGroup + 1;
groupAmount[group - 1] = groupAmount[group - 1] - 1;
en = attachMovie("enemy", "enemy" + depth, depth++);
en._x = random(Stage.width - en._width) + (en._width / 2);
en._y = (-en._height) / 2;
enemies.push(en);
if (enGroups[group - 1] == 1) {
enType.push(1);
enLives.push(10);
enX.push(0);
enY.push(3);
enCoinAmt.push(2);
}
if (enGroups[group - 1] == 2) {
enType.push(2);
enLives.push(2);
enX.push(0);
enY.push((random(10) / 5) + 1);
en.inner.inner.gotoAndStop(2);
enCoinAmt.push(1);
}
if (enGroups[group - 1] == 3) {
enType.push(3);
enLives.push(20);
sider = random(2);
if (sider == 0) {
en._x = (-en._width) / 2;
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push((random(10) / 5) + 3);
enY.push(2);
} else {
en._x = Stage.width + (en._width / 2);
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push(-3 - (random(10) / 5));
enY.push(2);
}
enCoinAmt.push(4);
en.inner.inner.gotoAndStop(3);
}
if (enGroups[group - 1] == 4) {
typer = random(5);
if (typer == 1) {
enType.push(4);
enLives.push(20);
sider = random(2);
enCoinAmt.push(3);
if (sider == 0) {
en._x = (-en._width) / 2;
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push((random(10) / 5) + 3);
enY.push(2);
} else {
en._x = Stage.width + (en._width / 2);
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push(-3 - (random(10) / 5));
enY.push(2);
}
en.inner.inner.gotoAndStop(3);
} else {
enType.push(4);
enLives.push(2);
enX.push(0);
enY.push((random(10) / 5) + 1);
en.inner.inner.gotoAndStop(2);
enCoinAmt.push(1);
}
}
if (enGroups[group - 1] == 5) {
enType.push(5);
enLives.push(5);
enX.push(0);
enY.push((random(10) / 5) + 1);
enCoinAmt.push(4);
en.inner.inner.gotoAndStop(4);
}
if (enGroups[group - 1] == 6) {
typer = random(2);
if (typer == 1) {
enType.push(6);
enLives.push(20);
sider = random(2);
enCoinAmt.push(3);
if (sider == 0) {
en._x = (-en._width) / 2;
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push((random(10) / 5) + 3);
enY.push(2);
} else {
en._x = Stage.width + (en._width / 2);
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push(-3 - (random(10) / 5));
enY.push(2);
}
en.inner.inner.gotoAndStop(3);
} else {
enCoinAmt.push(4);
enType.push(5);
enLives.push(10);
enX.push(0);
enY.push((random(10) / 5) + 1);
en.inner.inner.gotoAndStop(4);
}
}
if (enGroups[group - 1] == 7) {
enType.push(7);
enLives.push(10);
enX.push(0);
enY.push(0);
en.inner.inner.gotoAndStop(6);
enCoinAmt.push(4);
}
if (enGroups[group - 1] == 8) {
enType.push(8);
enLives.push(10);
enX.push(random(20) - 10);
enY.push(random(20) - 10);
en.inner.inner.gotoAndStop(7);
enCoinAmt.push(5);
}
if (enGroups[group - 1] == 9) {
enType.push(9);
enLives.push(50);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(8);
enCoinAmt.push(10);
}
if (enGroups[group - 1] == 10) {
enType.push(10);
enLives.push(250);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(9);
enCoinAmt.push(75);
}
if (enGroups[group - 1] == 11) {
typer = random(5);
if (typer == 1) {
enType.push(9);
enLives.push(50);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(8);
enCoinAmt.push(10);
} else {
enType.push(5);
enLives.push(10);
enX.push(0);
enY.push((random(10) / 5) + 1);
en.inner.inner.gotoAndStop(4);
enCoinAmt.push(4);
}
}
if (enGroups[group - 1] == 12) {
typer = random(3);
if (typer >= 1) {
enType.push(2);
enLives.push(7);
enX.push(0);
enY.push((random(10) / 5) + 1);
en.inner.inner.gotoAndStop(2);
enCoinAmt.push(2);
} else {
enType.push(8);
enLives.push(15);
enX.push(random(20) - 10);
enY.push(random(20) - 10);
en.inner.inner.gotoAndStop(7);
enCoinAmt.push(4);
}
}
if (enGroups[group - 1] == 13) {
typer = random(3);
if (typer == 1) {
enType.push(7);
enLives.push(12);
enX.push(0);
enY.push(0);
en.inner.inner.gotoAndStop(6);
enCoinAmt.push(3);
} else {
enType.push(3);
enLives.push(25);
sider = random(2);
enCoinAmt.push(3);
if (sider == 0) {
en._x = (-en._width) / 2;
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push((random(10) / 5) + 3);
enY.push(2);
} else {
en._x = Stage.width + (en._width / 2);
en._y = random(Stage.height / 2) + (en._height / 2);
enX.push(-3 - (random(10) / 5));
enY.push(2);
}
en.inner.inner.gotoAndStop(3);
}
}
if (enGroups[group - 1] == 14) {
enType.push(1);
enLives.push(35);
enX.push(0);
enY.push(6);
enCoinAmt.push(4);
}
if (enGroups[group - 1] == 15) {
enType.push(15);
enLives.push(25);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(10);
enCoinAmt.push(8);
}
if (enGroups[group - 1] == 16) {
enType.push(16);
enLives.push(100);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(11);
enCoinAmt.push(20);
}
if (enGroups[group - 1] == 17) {
enType.push(17);
enLives.push(20);
enX.push(0);
enY.push(4);
en.inner.inner.gotoAndStop(12);
enCoinAmt.push(6);
}
if (enGroups[group - 1] == 18) {
enType.push(18);
enLives.push(35);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(13);
enCoinAmt.push(6);
}
if (enGroups[group - 1] == 19) {
enType.push(19);
enLives.push(50);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(14);
enCoinAmt.push(8);
}
if (enGroups[group - 1] == 20) {
enType.push(20);
enLives.push(800);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(15);
enCoinAmt.push(100);
}
if (enGroups[group - 1] == 21) {
enType.push(21);
enLives.push(75);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(16);
enCoinAmt.push(25);
}
if (enGroups[group - 1] == 22) {
enType.push(22);
enLives.push(60);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(17);
enCoinAmt.push(20);
}
if (enGroups[group - 1] == 23) {
typer = random(4);
if (typer == 1) {
enType.push(19);
enLives.push(45);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(14);
enCoinAmt.push(10);
} else {
enType.push(21);
enLives.push(70);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(16);
enCoinAmt.push(20);
}
}
if (enGroups[group - 1] == 24) {
typer = random(3);
if (typer == 1) {
enType.push(16);
enLives.push(200);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(11);
enCoinAmt.push(20);
} else {
enType.push(18);
enLives.push(25);
enX.push(random(20) - 10);
enY.push(4);
en.inner.inner.gotoAndStop(13);
enCoinAmt.push(8);
}
}
if (enGroups[group - 1] == 25) {
typer = random(3);
if (typer >= 1) {
enType.push(17);
enLives.push(20);
enX.push(0);
enY.push(4);
en.inner.inner.gotoAndStop(12);
enCoinAmt.push(6);
} else {
enType.push(22);
enLives.push(50);
enX.push(random(10) - 5);
enY.push(random(10) - 5);
en.inner.inner.gotoAndStop(17);
enCoinAmt.push(15);
}
}
}
function bulletMovement() {
i = bullets.length - 1;
while (i >= 0) {
bullets[i]._y = bullets[i]._y - bY[i];
bullets[i]._x = bullets[i]._x - bX[i];
if (rageOn == 1) {
bullets[i].gotoAndStop(2);
}
if ((bullets[i]._y + (bullets[i]._height / 2)) <= 0) {
removeBullet(i);
}
if ((bullets[i]._y - (bullets[i]._height / 2)) >= Stage.height) {
removeBullet(i);
}
i--;
}
}
function enemyMovement() {
i = enemies.length - 1;
while (i >= 0) {
enemies[i]._y = enemies[i]._y + enY[i];
enemies[i]._x = enemies[i]._x + enX[i];
if (enType[i] == 10) {
bossShotDelay = bossShotDelay - 1;
enemies[i]._rotation = enemies[i]._rotation + 5;
if (bossShotDelay <= 0) {
bossShotDelay = 50;
createEnBullet2();
}
}
if (enType[i] == 15) {
enemies[i]._rotation = enemies[i]._rotation + 5;
if (random(100) == 1) {
createEnBullet3();
}
}
if (enType[i] == 19) {
if (random(60) == 1) {
createEnBullet4();
}
}
if (enType[i] == 21) {
enemies[i]._alpha = enemies[i]._alpha - 2;
if (enemies[i]._alpha <= 0) {
enemies[i]._alpha = 0;
}
}
if (enType[i] == 20) {
bossShotDelay = bossShotDelay - 1;
enemies[i]._rotation = enemies[i]._rotation + 5;
if (bossShotDelay <= 0) {
bossShotDelay = 8;
createEnBullet5(enemies[i]._rotation);
}
}
ax2 = char._x - enemies[i]._x;
ay2 = char._y - enemies[i]._y;
if (((((enemies[i].hitTest(char._x, char._y - 10, true) || (enemies[i].hitTest(char._x + 15, char._y + 10, true))) || (enemies[i].hitTest(char._x - 15, char._y + 10, true))) || (enemies[i].hitTest(char._x, char._y + 10, true))) || (enemies[i].hitTest(char._x + 10, char._y, true))) || (enemies[i].hitTest(char._x - 10, char._y, true))) {
if (bonusLife == 1) {
flashi.gotoAndPlay(2);
bonusLife = 0;
if (enType[i] == 9) {
createDeaths();
}
if (enType[i] > -1) {
aliveInGroup = aliveInGroup - 1;
}
if (enType[i] <= -1) {
theRest = theRest - 1;
}
removeEnemy();
} else {
stopGame = 1;
Mouse.show();
clearScreen();
deaths = deaths + 1;
dcOn = 1;
dc._x = 2000;
if ((_root.blendMode = "subtract" && (rageOn != 1))) {
_root.blendMode = "normal";
}
dc._y = Stage.height / 2;
dc.me = "Money Earned: $" + moneyForLevel;
dc.lc = "Level Failed";
dc.td = "Total Deaths: " + deaths;
dc.tm = "Total Money:" + money;
moneyForLevel = 0;
char._alpha = 0;
xp = attachMovie("boom", "xp" + depth, depth++);
xp._x = char._x;
xp._y = char._y;
dc.fin.onRelease = function () {
dc._x = 2000;
dcOn = 0;
upgradeScreen._x = Stage.width / 2;
upgradeScreen._y = Stage.height / 2;
shopSet();
};
groupAmount[group - 1] = groupAmountDup[group - 1];
group = group - 1;
shopSet();
}
}
if (enType[i] == 16) {
enX[i] = enX[i] * 1.001;
enY[i] = enY[i] * 1.001;
}
if (enType[i] == 18) {
if (random(50) == 1) {
createEvilBullet();
}
}
if (enType[i] == 5) {
if (random(100) == 1) {
createEnBullet();
}
}
if ((enType[i] == 7) || (enType[i] == -2)) {
xx = char._x - enemies[i]._x;
yy = char._y - enemies[i]._y;
ator = Math.atan2(yy, xx);
enX[i] = 5 * Math.cos(ator);
enY[i] = 5 * Math.sin(ator);
}
if ((enemies[i]._x <= (enemies[i]._width / 2)) && (enType[i] != 7)) {
enemies[i]._x = enemies[i]._width / 2;
enX[i] = enX[i] * -1;
}
if ((enemies[i]._x >= (Stage.width - (enemies[i]._width / 2))) && (enType[i] != 7)) {
enemies[i]._x = Stage.width - (enemies[i]._width / 2);
enX[i] = enX[i] * -1;
}
if ((enemies[i]._y <= (enemies[i]._height / 2)) && (enType[i] != 7)) {
enemies[i]._y = enemies[i]._height / 2;
enY[i] = enY[i] * -1;
}
if ((enemies[i]._y >= (Stage.height - (enemies[i]._height / 2))) && (enType[i] != 7)) {
enemies[i]._y = Stage.height - (enemies[i]._height / 2);
enY[i] = enY[i] * -1;
}
if (enType[i] == 22) {
ax = char._x - enemies[i]._x;
ay = char._y - enemies[i]._y;
if ((60 + (enemies[i]._width * 2)) >= Math.sqrt((ax * ax) + (ay * ay))) {
xx = char._x - enemies[i]._x;
yy = char._y - enemies[i]._y;
ator = Math.atan2(yy, xx);
enX[i] = 15 * Math.cos(ator);
enY[i] = 15 * Math.sin(ator);
}
}
ii = bullets.length - 1;
while (ii >= 0) {
ax = bullets[ii]._x - enemies[i]._x;
ay = bullets[ii]._y - enemies[i]._y;
if ((enType[i] == 17) && ((bullets[ii]._width + enemies[i]._width) >= Math.sqrt((ax * ax) + (ay * ay)))) {
rot = Math.atan2(ay, ax);
power = bY[ii] * Math.sin(rot);
aax = (power * Math.cos(rot)) / 50;
aay = (power * Math.sin(rot)) / 50;
enX[i] = enX[i] - aax;
enY[i] = enY[i] - aay;
}
if (((bullets[ii]._width / 2) + (enemies[i]._width / 2)) >= Math.sqrt((ax * ax) + (ay * ay))) {
rot = Math.atan2(ay, ax);
power = bY[ii] * Math.sin(rot);
aax = (power * Math.cos(rot)) / 10;
aay = (power * Math.sin(rot)) / 10;
enemies[i].gotoAndPlay(2);
if (rageOn == 0) {
enLives[i] = enLives[i] - (1 + (0.33 * upgradeLevels[0]));
explosion(1, bullets[ii], 3);
lShake2 = 0;
}
removeBullet(ii);
if (rageOn == 1) {
enLives[i] = enLives[i] - ((3 * (1 + (0.33 * upgradeLevels[0]))) * (1 + (0.33 * upgradeLevels[6])));
}
enX[i] = enX[i] - aax;
enY[i] = enY[i] - aay;
if (enType[i] == 21) {
enemies[i]._alpha = enemies[i]._alpha + 5;
}
if (enLives[i] <= 0) {
if (enType[i] == 9) {
createDeaths();
}
if (enType[i] > -1) {
aliveInGroup = aliveInGroup - 1;
}
if (enType[i] <= -1) {
theRest = theRest - 1;
}
while (enCoinAmt[i] > 0) {
if (enCoinAmt[i] >= 10) {
createCoin(3);
enCoinAmt[i] = enCoinAmt[i] - 9;
} else if (enCoinAmt[i] >= 4) {
createCoin(2);
enCoinAmt[i] = enCoinAmt[i] - 3;
} else if (enCoinAmt[i] >= 1) {
createCoin(1);
}
enCoinAmt[i] = enCoinAmt[i] - 1;
}
blockSplode(enemies[i]);
expl.start();
expl.start();
expl.start();
if ((achievements[1] == 0) && (enType[i] == 10)) {
giveAward(2);
}
removeEnemy();
ii = -10;
}
}
ii--;
}
i--;
}
}
function removeEnemy() {
enemies[i].removeMovieClip();
enemies.splice(i, 1);
enY.splice(i, 1);
enX.splice(i, 1);
enLives.splice(i, 1);
enType.splice(i, 1);
enCoinAmt.splice(i, 1);
}
function removeBullet(i) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bY.splice(i, 1);
bX.splice(i, 1);
}
function clearScreen() {
i = bullets.length - 1;
while (i >= 0) {
removeBullet(i);
i--;
}
i = enemies.length - 1;
while (i >= 0) {
removeEnemy();
i--;
}
i = coins.length - 1;
while (i >= 0) {
removeCoin();
i--;
}
i = exp.length - 1;
while (i >= 0) {
removeExp();
i--;
}
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
}
function grayscale(e) {
var _local1 = 0.333333333333333;
var _local2 = 1 - (_local1 * 2);
var _local4 = [_local2, _local1, _local1, 0, 0, _local1, _local2, _local1, 0, 0, _local1, _local1, _local2, 0, 0, 0, 0, 0, 1, 0];
var _local3 = new flash.filters.ColorMatrixFilter(_local4);
e.filters = [_local3];
}
function btor(button, num) {
grayscale(button);
if (upgradeLevels[actualNum[num]] > (pLevel[num] - 1)) {
unGrayscale(button);
}
button.onRollOver = function () {
unGrayscale(button);
upgradeScreen.d1 = l1Descriptions[num];
upgradeScreen.c1 = "$" + l1Costs[num];
};
button.onRollOut = function () {
if (upgradeLevels[actualNum[num]] <= (pLevel[num] - 1)) {
grayscale(button);
}
};
button.onRelease = function () {
if ((money >= l1Costs[num]) && (upgradeLevels[actualNum[num]] == (pLevel[num] - 1))) {
money = money - l1Costs[num];
upgradeLevels[actualNum[num]] = upgradeLevels[actualNum[num]] + 1;
}
shopSet();
};
}
function unGrayscale(e) {
e.filters = [];
}
function shopSet() {
upgradeScreen.moneyTxt = "$" + Math.floor(money);
upgradeScreen.fin.onRelease = function () {
upgradeScreen.l1 = ("Level " + upgradeLevels[0]) + " / 3";
upgradeScreen.l2 = ("Level " + upgradeLevels[1]) + " / 1";
upgradeScreen.l3 = ("Level " + upgradeLevels[2]) + " / 2";
upgradeScreen.l4 = ("Level " + upgradeLevels[3]) + " / 1";
upgradeScreen.l5 = ("Level " + upgradeLevels[4]) + " / 3";
upgradeScreen.l6 = ("Level " + upgradeLevels[5]) + " / 2";
upgradeScreen.l7 = ("Level " + upgradeLevels[6]) + " / 3";
upgradeScreen.l8 = ("Level " + upgradeLevels[7]) + " / 3";
mGo = 1;
if (((((((((achievements[3] == 0) && (upgradeLevels[0] == 3)) && (upgradeLevels[1] == 1)) && (upgradeLevels[2] == 2)) && (upgradeLevels[3] == 1)) && (upgradeLevels[4] == 3)) && (upgradeLevels[5] == 2)) && (upgradeLevels[6] == 3)) && (upgradeLevels[7] == 3)) {
giveAward(4);
}
aliveInGroup = 0;
theRest = 0;
group = group + 1;
char._x = Stage.width / 2;
char._y = Stage.height / 2;
controlShip = 1;
uScreenDelay = 100;
rageCharge = 30 + (upgradeLevels[6] * 10);
lev.lTxt = "Level " + group;
lAlpha = 200;
if (upgradeLevels[3] == 1) {
bonusLife = 1;
}
Mouse.hide();
sBackSpeed = 2;
};
}
function expMove() {
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) {
removeExp();
}
i--;
}
}
function explosion(frame, item, amt) {
b = amt;
while (b >= 0) {
cna = attachMovie("pu2", "cn" + depth, depth);
depth++;
cna._x = item._x;
cna._y = item._y;
cna.gotoAndStop(frame);
rotTemp = random(360);
exp.push(cna);
expX.push(random(20) - 10);
expY.push(random(20) - 10);
cna._xscale = (cna._yscale = random(40) + 30);
b--;
}
}
function removeExp() {
exp[i].removeMovieClip();
exp.splice(i, 1);
expX.splice(i, 1);
expY.splice(i, 1);
}
function blockeMove() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._y = lsers[i]._y - ySpeed;
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;
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);
}
function blockSplode(item) {
b = 10;
while (b > 0) {
ls = attachMovie("pu", "lser" + depth, depth);
ls.gotoAndStop(bType[i]);
ls._xscale = (ls._yscale = random(70) + 70);
depth++;
lsers.push(ls);
ls._x = item._x;
ls._y = item._y;
dire = random(180);
force = random(20);
lsX.push(Math.cos((dire * Math.PI) / 180) * force);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * force);
lsLive.push(30);
b--;
}
}
function giveAward(awardnum) {
if ((award._currentframe == 1) && (achievements[awardnum - 1] != 1)) {
award.aname.awardName = descs[awardnum - 1];
achievements[awardnum - 1] = 1;
award.gotoAndPlay(2);
sObject.data.achievements = achievements;
sObject.flush();
} else if (achievements[awardnum - 1] != 1) {
awardqueue.push(awardnum);
}
}
function awardWait() {
if (award._currentframe == 1) {
if (awardqueue.length != 0) {
giveAward(awardqueue[0]);
awardqueue.splice(0, 1);
}
}
}
function createHov(button, num) {
map.desc = descors[num];
button.onRollOver = function () {
if ((atLoc == num) && (button._alpha <= 175)) {
i = atDash - 1;
while (i <= (atDash + dashesPerLoc[atLoc - 1])) {
if (dashArray[i - 1]._alpha <= 150) {
dashArray[i - 1]._alpha = 150;
}
i++;
}
button._alpha = 150;
}
};
button.onRollOut = function () {
if ((atLoc == num) && (button._alpha <= 175)) {
button._alpha = 100;
i = atDash - 1;
while (i <= (atDash + dashesPerLoc[atLoc - 1])) {
if (dashArray[i - 1]._alpha <= 150) {
dashArray[i - 1]._alpha = 100;
}
i++;
}
}
};
button.onRelease = function () {
if (atLoc == num) {
button._alpha = 200;
i = atDash - 1;
while (i <= (atDash + dashesPerLoc[atLoc - 1])) {
dashArray[i - 1]._alpha = 200;
i++;
}
atDash = atDash + dashesPerLoc[atLoc - 1];
atLoc = atLoc + 1;
createHov(locations[atLoc], atLoc);
upgradeScreen._x = Stage.width / 2;
upgradeScreen._y = Stage.height / 2;
map._x = 2000;
shopSet();
}
};
}
awardqueue = new Array();
descs = new Array("Start the game", "Kill the First Boss", "Collect $1000", "All Upgrades", "Game Complete", "Collect $3000", "Under 20 Minutes", "Under 10 deaths", "Collect $10,000");
if (achievements[0] == 0) {
giveAward(1);
}
var song = new Sound();
song.attachSound("song");
song.start(0, 99);
song.start(0, 99);
song.start(0, 99);
song.start(0, 99);
song.start(0, 99);
song.start(0, 99);
song.setVolume(20);
award.gotoAndStop(1);
var expl = new Sound();
expl.attachSound("exp");
var shotl = new Sound();
shotl.attachSound("lazer");
var cc = new Sound();
cc.attachSound("boop");
stop();
Mouse.hide();
mouseIsDown = 1;
shotDelay = 0;
bullets = new Array();
enemies = new Array();
enY = new Array();
enX = new Array();
enType = new Array();
enLives = new Array();
enCoinAmt = new Array();
coins = new Array();
cnX = new Array();
cnY = new Array();
depth = 100;
char.swapDepths(900000);
upgradeScreen.swapDepths(910009);
ui.swapDepths(900002);
char.swapDepths(900003);
mLoc.swapDepths(900004);
fog.swapDepths(910000);
fog2.swapDepths(910001);
dc.swapDepths(910050);
map.swapDepths(910060);
award.swapDepths(911050);
bY = new Array();
bX = new Array();
power = 0;
addEnDelay = 0;
time = 0;
fo.swapDepths(975555);
fo._x = Stage.width / 2;
fo._y = Stage.height / 2;
groupAmountDup = new Array(5, 30, 8, 40, 25, 20, 30, 30, 7, 1, 30, 100, 30, 35, 15, 8, 30, 20, 8, 1, 12, 20, 20, 30, 60);
enGroups = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
groupAmount = new Array(5, 30, 8, 40, 25, 20, 30, 30, 7, 1, 30, 100, 30, 35, 15, 8, 30, 20, 8, 1, 12, 20, 20, 30, 60);
EDelay = new Array(10, 5, 20, 10, 10, 20, 15, 5, 30, 1, 10, 5, 8, 10, 15, 30, 10, 15, 10, 1, 15, 10, 8, 10, 5);
aliveInGroup = 0;
timer = 50;
theRest = 0;
deaths = 0;
stopGame = 1;
money = 50;
group = 1;
cFric = 0.9;
uScreenDelay = 100;
bonusLife = 0;
rageOn = 0;
rageCharge = 0;
mDown = 0;
controlShip = 1;
sBackSpeed = 2;
lShake = 0;
rageCharge = 30;
bsDel = 0;
lev.lTxt = "Mouse To Move";
onMouseDown = function () {
mDown = 1;
};
onMouseUp = function () {
mDown = 0;
};
lShake2 = 0;
lAlpha = 200;
seconds = 0;
minutes = 0;
hours = 0;
paused1._alpha = 0;
gamePaused = false;
paused1.qt.onRelease = function () {
if (paused1._alpha >= 50) {
upgradeScreen.removeMovieClip();
char.removeMovieClip();
upgradeScreen.removeMovieClip();
ui.removeMovieClip();
char.removeMovieClip();
mLoc.removeMovieClip();
fog.removeMovieClip();
dc.removeMovieClip();
map.removeMovieClip();
fog2.removeMovieClip();
award.removeMovieClip();
clearScreen();
gotoAndStop (3);
}
};
keyListener = new Object();
qbtn.onRelease = function () {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
};
keyListener.onKeyDown = function () {
num = Key.getAscii();
if (num == 109) {
if (sound1.sound1._currentframe == 1) {
sound1.sound1.gotoAndStop(2);
} else {
sound1.sound1.gotoAndStop(1);
}
}
if (num == 113) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
if (upgradeScreen._x >= 800) {
if ((num == 112) || (num == 32)) {
gamePaused = !gamePaused;
if (gamePaused) {
paused1._alpha = 100;
Mouse.show();
} else {
paused1._alpha = 0;
Mouse.hide();
}
}
}
};
Key.addListener(keyListener);
dcOn = 0;
moneyForLevel = 0;
adel = 235;
ang = 0;
bossShotDelay = 0;
upgradeLevels = new Array(0, 0, 0, 0, 0, 0, 0, 0);
l1Costs = new Array(100, 500, 2000, 50, 100, 300, 200, 500, 1000, 50, 200, 500, 500, 2500, 30, 200, 300, 1000);
l1Descriptions = new Array("Increase shot power to 133%", "Increase shot power to 166%", "Increase shot power to 200%", "Increasee pickup radius by 30px", "Increasee pickup radius by 60px", "Increasee pickup radius by 90px", "33% more damage in Rage mode", "66% more damage in Rage mode", "100% more damage in Rage mode", "Increase money pickups by 20%", "Increase money pickups by 40%", "Increase money pickups by 60%", "Shoot two shots at a time", "Shoot three shots at a time", "Increase reaction speed by 50%", "Increase reaction speed by 100%", "Shoot behind yourself", "Get a spare life");
actualNum = new Array(0, 0, 0, 4, 4, 4, 6, 6, 6, 7, 7, 7, 5, 5, 2, 2, 1, 3);
pLevel = new Array(1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 1, 1);
ater = new Array(upgradeScreen.q1, upgradeScreen.q2, upgradeScreen.q3, upgradeScreen.q4, upgradeScreen.q5, upgradeScreen.q6, upgradeScreen.q7, upgradeScreen.q8, upgradeScreen.q9, upgradeScreen.q10, upgradeScreen.q11, upgradeScreen.q12, upgradeScreen.q13, upgradeScreen.q14, upgradeScreen.q15, upgradeScreen.q16, upgradeScreen.q17, upgradeScreen.q18);
i = 0;
while (i <= 17) {
btor(ater[i], i);
i++;
}
mGo = 0;
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;
upgradeScreen.wt.onRelease = function () {
};
dashArray = new Array(map.z1, map.z2, map.z3, map.z4, map.z5, map.z6, map.z7, map.z8, map.z9, map.z10, map.z11, map.z12, map.z13, map.z14, map.z15, map.z16, map.z17, map.z18, map.z19, map.z20, map.z21, map.z22, map.z23, map.z24, map.z25, map.z26, map.z27, map.z28, map.z29, map.z30, map.z31, map.z32, map.z33, map.z34, map.z35, map.z36, map.z37, map.z38, map.z39, map.z40, map.z41, map.z42, map.z43, map.z44, map.z45, map.z46, map.z47, map.z48, map.z49, map.z50, map.z51, null);
dashesPerLoc = new Array(3, 2, 2, 4, 1, 1, 2, 3, 2, 2, 2, 1, 2, 3, 1, 2, 3, 2, 8, 1, 1, 1, 1, 1, 0);
locations = new Array(map.x1, map.x2, map.x3, map.x4, map.x5, map.x6, map.x7, map.x8, map.x9, map.x10, map.x11, map.x12, map.x13, map.x14, map.x15, map.x16, map.x17, map.x18, map.x19, map.x20, map.x21, map.x22, map.x23, map.x24, map.x25, null);
descors = new Array("", "A small set of drones are approaching. Although they come in great numbers they're very weak and easy to kill, you should have no trouble destroying them. Click on the second location to advance.", "Ahead is a smaller group of drones that have a decent amount of health, keep them away from you and you should be fine.", "The two gangs before had some survivors and managed to group up, it is reccommendedyou focus on the larger droids before you attack the smaller ones.", "The gangs have realized you're on to them and have sent some offensive droids to take you down, blast them to hell.", "This time it looks like attack drones and the big guys paired up, they're trying to defend the fuel station which you will need to get to. Shoot them down.", "Looks like refueling was successful, ahead is a group of rouge droids. They've acquired a technology which allows them to home in on you. Make them suffer.", "The federation is starting to get fed up with your instance, in order to put a stop to you they have sent out a bunch of fast annoying speed drones. Take em out.", "The boss is up ahead, but you must first blast your way though his guards. They're big. They're Strong, and did I mention they also spit out speed drones when they die?", "The boss is up ahead in his spinning shooting realm of fury, this guy will not be easy to kill find a way to stop him from getting too many bullets on the field.", "Congratulations on taking down the boss, unfortunately he's only the first of two that you will have to defeat if you ever hope at getting word back to earth. Kill the leftovers", "The federation has sent an ungodly amount of drones to kill you, fortunately for you they're all fairly weak so you shouldn't have any trouble taking them down.", "You see a group of homing droids and large droids ahead, you might have to come up with a strategy to take down this mix of enemies.", "Remember those droids you ran into back on the first level? Well, they're back stronger and more plentiful than ever.", "Attack spinners are up ahead, these tricky drones shoot out two shots instead of one making them harder to kill. You know the drill by now", "You're starting to scare the federation, they're attempts to destroy you are all failing. Keep them on the run.", "Ambush up ahead! There is a pack of boulder drones waiting to kill you up ahead, be careful, they speed up if you're not there to slow them down.", "A gang of avoider drones are up ahead, if you shoot closer to them with your bullet they will actively try to move away so they don't get hit.", "You're starting to scare the federation, they're attempts to destroy you are all failing. They're going for broke and sending their top set of attack droids to kill you.", "The second boss is getting close, once again he has a several guards stopping you. These drones use an interesting tactic of laying bullets to defend themselves.", "This boss is the leader of the federation, he commands everything. His spinning bullets make him a force to be reackoned with. Don't let down your guard for a second.", "The federation is on the retreat now, ahead are cloacking drones, don't let them escape.", "Ahead are a charging drones, they do not take lightly to being attacked. If you get too close from them they will charge at you.", "More cloacking drones are ahead trying to escape, they teamed up with bullet laying drones to protect them.", "Earth is withing your sites now, boulder drones and elite attack drones are blocking your path with a last ditch effort to stop you from returning to earth.", "You're practically within earths atmosphere, but one final group of rouge droids is the last hope for the federation. Put a stop to them and save Earth!");
atLoc = 1;
atDash = 0;
createHov(locations[atLoc], atLoc);
map.x1._alpha = 200;
Frame 5
function hasAchievement(num, theCheck) {
theCheck._alpha = 0;
if (achievements[num] == 1) {
theCheck._alpha = 100;
}
}
backBtn.onRelease = function () {
gotoAndStop (3);
};
hasAchievement(0, c1);
hasAchievement(1, c2);
hasAchievement(2, c3);
hasAchievement(3, c4);
hasAchievement(4, c5);
hasAchievement(5, c6);
hasAchievement(6, c7);
hasAchievement(7, c8);
hasAchievement(8, c9);
Frame 6
backBtn.onRelease = function () {
gotoAndStop (3);
};
kw.onRelease = function () {
getURL ("http://www.keepwalking07.deviantart.com/", "_blank");
};
Frame 7
function onEnterFrame() {
}
submitScore(1000 - deaths);
backBtn.onRelease = function () {
gotoAndStop (3);
award.removeMovieClip();
};
dTxt = deaths;
Symbol 3 MovieClip [bullet] Frame 1
stop();
Symbol 11 MovieClip [coin] Frame 1
stop();
Symbol 48 MovieClip Frame 52
_parent.removeMovieClip();
Symbol 83 MovieClip Frame 12
stop();
Symbol 87 Button
on (release) {
gotoAndPlay (2);
_root.music.stop();
}
Symbol 88 MovieClip Frame 11
stop();
Symbol 90 Button
on (release) {
gotoAndPlay (1);
_root.music.start(0, 99);
}
Symbol 91 MovieClip Frame 1
stop();
_root.song.setVolume(15);
Symbol 91 MovieClip Frame 2
stop();
_root.song.setVolume(0);
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip [sound_contr] Frame 1
/* no clip actions */
Symbol 103 MovieClip [pu2] Frame 1
stop();
Symbol 103 MovieClip [pu2] Frame 2
stop();
Symbol 125 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 126 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 126 MovieClip Frame 2
gotoAndPlay (1);
Symbol 130 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 140 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 146 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 201
stop();
Symbol 163 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/game.php?game=26", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 165 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=26&score=0", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 167 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/walkthrough.php?id=3", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 169 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 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 15
_root.gotoAndStop(_root._currentframe + 1);
Symbol 172 MovieClip Frame 11
stop();
Symbol 190 MovieClip Frame 635
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 267 MovieClip [enemy] Frame 1
stop();
Symbol 267 MovieClip [enemy] Frame 2
gotoAndPlay (3);
Symbol 276 MovieClip Frame 1
stop();
Symbol 295 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/walkthrough.php?id=3", "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}
Symbol 356 MovieClip Frame 10
stop();
this.removeMovieClip();
Symbol 429 MovieClip Frame 235
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 100
gotoAndStop (1);
Symbol 474 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=26&score=" + (1000 - deaths), "_blank");
__com_mochibot__("ad647f2b", this, 10301, true);
}