Frame 2
stats = SharedObject.getLocal("statistics");
stage.showmenu = false;
_quality = "LOW";
but1 = 65;
but2 = 68;
but3 = 87;
but4 = 83;
but5 = 81;
but6 = 69;
but7 = 32;
but8 = 16;
Instance of Symbol 107 MovieClip in Frame 3
onClipEvent (load) {
if (music != false) {
this.gotoAndStop(1);
}
}
Frame 5
stop();
Instance of Symbol 98 MovieClip in Frame 5
on (press) {
getURL ("http://www.thecrunge.net/", "_blank");
}
Frame 15
stop();
function shoot1() {
dorofl(gun_a, xnow, ynow);
srdy = 2;
shotsfired++;
}
function shoot2() {
dowtf(xnow, ynow);
wtfsrdy = 10;
}
function shoot3() {
doomg(xnow, ynow, 1);
omgsrdy = 15;
}
function shoot4() {
doomg(xnow, ynow, 2);
omgsrdy = 15;
}
function dolewl(xstrt, ystrt) {
level++;
game.attachMovie("lewlsion", "lewlsion" + level, level);
game["lewlsion" + level]._x = xstrt;
game["lewlsion" + level]._y = ystrt;
}
function dorofl(s_a, s_xnow, s_ynow) {
s_r = rad(s_a - 90);
s_x = cos(30, s_r);
s_y = sin(30, s_r);
level++;
roflcount++;
game.attachMovie("roflbul", ["roflbul" + roflcount], level);
game["roflbul" + roflcount].xnow = s_xnow;
game["roflbul" + roflcount].ynow = s_ynow;
game["roflbul" + roflcount]._rotation = s_a;
game["roflbul" + roflcount].s_x = s_x;
game["roflbul" + roflcount].s_y = s_y;
_root.rofls.push(roflcount);
sfx_1.start();
}
function roflloop() {
for (n in rofls) {
i = rofls[n];
game["roflbul" + i].xnow = game["roflbul" + i].xnow + game["roflbul" + i].s_x;
game["roflbul" + i].ynow = game["roflbul" + i].ynow + game["roflbul" + i].s_y;
y = game["roflbul" + i].ynow;
x = game["roflbul" + i].xnow + xoff;
if ((((x < -200) or (y < -250)) or (x > 850)) or (y > 321)) {
game["roflbul" + i].removeMovieClip();
if (rofls[n] == i) {
rofls.splice(n, 1);
}
}
for (e in nmes) {
j = nmes[e];
if (game["roflbul" + i].hitTest(game["enemy" + j])) {
game["roflbul" + i].removeMovieClip();
if (rofls[n] == i) {
rofls.splice(n, 1);
}
score = score + 20;
game["enemy" + j].health = game["enemy" + j].health - 50;
if (game["enemy" + j].health <= 0) {
sfx_5.start();
score = score + 200;
kills++;
level++;
game.attachMovie("lollerdie", "lollerdie" + level, level);
game["lollerdie" + level]._x = game["enemy" + j].xnow;
game["lollerdie" + level]._y = game["enemy" + j]._y;
game["enemy" + j].removeMovieClip();
if (nmes[e] == j) {
nmes.splice(e, 1);
}
}
sfx_3.start();
shotshit++;
break;
}
}
for (e in lmaos) {
j = lmaos[e];
if (game["roflbul" + i].hitTest(game["enemy" + j])) {
game["roflbul" + i].removeMovieClip();
if (rofls[n] == i) {
rofls.splice(n, 1);
}
score = score + 20;
game["enemy" + j].health = game["enemy" + j].health - 35;
if (game["enemy" + j].health <= 0) {
sfx_5.start();
score = score + 500;
kills++;
level++;
game.attachMovie("lmaodie", "lmaodie" + level, level);
game["lmaodie" + level]._x = game["enemy" + j].xnow;
game["lmaodie" + level]._y = game["enemy" + j]._y;
game["lmaodie" + level].gotoAndStop(game["enemy" + j].direction);
game["enemy" + j].removeMovieClip();
if (lmaos[e] == j) {
lmaos.splice(e, 1);
}
}
sfx_3.start();
shotshit++;
break;
}
}
game["roflbul" + i]._x = game["roflbul" + i].xnow;
game["roflbul" + i]._y = game["roflbul" + i].ynow;
}
}
function dolol(s_a, s_xnow, s_ynow) {
s_r = rad(s_a - 90);
s_x = cos(8, s_r);
s_y = sin(8, s_r);
level++;
lolcount++;
game.attachMovie("roflbul", ["lollbul" + lolcount], level);
game["lollbul" + lolcount].xnow = s_xnow;
game["lollbul" + lolcount].ynow = s_ynow;
game["lollbul" + lolcount]._rotation = s_a;
game["lollbul" + lolcount].s_x = s_x;
game["lollbul" + lolcount].s_y = s_y;
lols.push(lolcount);
}
function lolloop() {
for (n in lols) {
i = lols[n];
game["lollbul" + i].xnow = game["lollbul" + i].xnow + game["lollbul" + i].s_x;
game["lollbul" + i].ynow = game["lollbul" + i].ynow + game["lollbul" + i].s_y;
y = game["lollbul" + i].ynow;
x = game["lollbul" + i].xnow + xoff;
if ((((x < -200) or (y < -250)) or (x > 850)) or (y > 321)) {
game["lollbul" + i].removeMovieClip();
if (lols[n] == i) {
lols.splice(n, 1);
}
}
deltaX = xnow - game["lollbul" + i].xnow;
deltaY = ynow - game["lollbul" + i].ynow;
dist = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
if (!bbl) {
if (dist < 50) {
health = health - 5;
game["lollbul" + i].removeMovieClip();
if (lols[n] == i) {
lols.splice(n, 1);
}
}
} else if (dist < 100) {
game["lollbul" + i].removeMovieClip();
if (lols[n] == i) {
lols.splice(n, 1);
}
}
game["lollbul" + i]._x = game["lollbul" + i].xnow;
game["lollbul" + i]._y = game["lollbul" + i].ynow;
}
}
function dowtf(s_xnow, s_ynow) {
level++;
wtfcount++;
game.attachMovie("wtfbul", ["wtfbul" + wtfcount], level);
game["wtfbul" + wtfcount].xnow = s_xnow;
game["wtfbul" + wtfcount].ynow = s_ynow;
game["wtfbul" + wtfcount].s_x = -xvel;
game["wtfbul" + wtfcount].s_y = 15;
wtfs.push(wtfcount);
}
function wtfloop() {
for (n in wtfs) {
i = wtfs[n];
game["wtfbul" + i].xnow = game["wtfbul" + i].xnow + game["wtfbul" + i].s_x;
game["wtfbul" + i].ynow = game["wtfbul" + i].ynow + game["wtfbul" + i].s_y;
y = game["wtfbul" + i].ynow;
if (y > 321) {
cmbcnt = 0;
dolewl(game["wtfbul" + i].xnow, game["wtfbul" + i].ynow);
for (e in nmes) {
j = nmes[e];
if ((game["enemy" + j].xnow < (game["wtfbul" + i]._x + 150)) and (game["enemy" + j].xnow > (game["wtfbul" + i]._x - 150))) {
cmbcnt++;
level++;
game.attachMovie("lollerdie", "lollerdie" + level, level);
game["lollerdie" + level]._x = game["enemy" + j].xnow;
game["lollerdie" + level]._y = game["enemy" + j]._y;
game["enemy" + j].removeMovieClip();
if (nmes[e] == j) {
nmes.splice(e, 1);
}
}
}
sfx_2.start();
score = score + (200 * cmbcnt);
kills = kills + cmbcnt;
game["wtfbul" + i].removeMovieClip();
if (wtfs[n] == i) {
wtfs.splice(n, 1);
}
}
game["wtfbul" + i]._x = game["wtfbul" + i].xnow;
game["wtfbul" + i]._y = game["wtfbul" + i].ynow;
}
}
function doomg(s_xnow, s_ynow, s_dir) {
level++;
omgcount++;
game.attachMovie("omgbul", ["omgbul" + omgcount], level);
game["omgbul" + omgcount].xnow = s_xnow;
game["omgbul" + omgcount].ynow = s_ynow;
if (s_dir == 1) {
game["omgbul" + omgcount].s_x = -20;
game["omgbul" + omgcount].gotoAndStop(1);
} else {
game["omgbul" + omgcount].s_x = 20;
game["omgbul" + omgcount].gotoAndStop(2);
}
omgs.push(omgcount);
}
function omgloop() {
for (n in omgs) {
i = omgs[n];
game["omgbul" + i].xnow = game["omgbul" + i].xnow + game["omgbul" + i].s_x;
x = game["omgbul" + i].xnow + xoff;
if ((x < -200) or (x > 850)) {
game["omgbul" + i].removeMovieClip();
if (omgs[n] == i) {
omgs.splice(n, 1);
}
}
for (e in lmaos) {
j = lmaos[e];
deltaX = game["omgbul" + i].xnow - game["enemy" + j]._x;
deltaY = game["omgbul" + i].ynow - game["enemy" + j]._y;
dist = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
if (dist < 70) {
cmbcnt = 0;
for (g in lmaos) {
k = lmaos[g];
deltaX = game["omgbul" + i].xnow - game["enemy" + k]._x;
deltaY = game["omgbul" + i].ynow - game["enemy" + k]._y;
dist = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
if (dist < 140) {
level++;
game.attachMovie("lmaodie", "lmaodie" + level, level);
game["lmaodie" + level]._x = game["enemy" + k].xnow;
game["lmaodie" + level]._y = game["enemy" + k]._y;
game["lmaodie" + level].gotoAndStop(game["enemy" + k].direction);
game["enemy" + k].removeMovieClip();
if (lmaos[g] == k) {
lmaos.splice(g, 1);
}
cmbcnt++;
}
}
sfx_2.start();
dolewl(game["omgbul" + i].xnow, game["omgbul" + i].ynow);
score = score + (cmbcnt * 500);
kills = kills + cmbcnt;
game["omgbul" + i].removeMovieClip();
if (omgs[n] == i) {
omgs.splice(n, 1);
}
break;
}
}
game["omgbul" + i]._x = game["omgbul" + i].xnow;
game["omgbul" + i]._y = game["omgbul" + i].ynow;
}
}
function enterframe() {
if (!srdy) {
if (shooting) {
_root.shoot1();
}
} else {
srdy--;
}
if (!wtfsrdy) {
if (Key.isDown(but7) and bombs) {
_root.shoot2();
bombs--;
}
} else {
wtfsrdy--;
}
if ((!omgsrdy) and missiles) {
if (Key.isDown(but5)) {
_root.shoot3();
missiles--;
} else if (Key.isDown(but6)) {
_root.shoot4();
missiles--;
}
} else {
omgsrdy--;
}
if (Key.isDown(but8) and shield) {
bbl = true;
shield--;
} else {
bbl = false;
}
dx = xnow - _root.game._xmouse;
dy = ynow - _root.game._ymouse;
gun_a = atan2(dy, dx);
gun_a = floor((gun_a = gun_a * (180 / pi)));
gun_a = gun_a - 90;
if (Key.isDown(but1)) {
if (xvel < 10) {
xvel = xvel + 1;
}
} else if (Key.isDown(but2)) {
if (xvel > -10) {
xvel = xvel - 1;
}
} else if (xvel > 0) {
xvel = xvel - 0.5;
} else if (xvel < 0) {
xvel = xvel + 0.5;
}
if (Key.isDown(but3)) {
if (yvel < 10) {
yvel = yvel + 1;
}
} else if (Key.isDown(but4)) {
if (yvel > -10) {
yvel = yvel - 1;
}
} else {
if (yvel > 0) {
yvel = yvel - 1;
}
if (yvel < 0) {
yvel = yvel + 1;
}
}
ran = random(30);
if ((ran <= 1) and (nmes.length < 7)) {
level++;
enemycount++;
game.attachMovie("lollerskate", "enemy" + enemycount, level);
game["enemy" + enemycount].direction = random(2) + 1;
if (game["enemy" + enemycount].direction == 1) {
game["enemy" + enemycount].xnow = (-xoff) + 660;
} else {
game["enemy" + enemycount].xnow = (-xoff) - 10;
}
game["enemy" + enemycount]._y = 278;
game["enemy" + enemycount].health = 100;
_root.nmes.push(enemycount);
} else if ((ran == 3) and (lmaos.length < 5)) {
level++;
enemycount++;
game.attachMovie("lmaoplane", "enemy" + enemycount, level);
game["enemy" + enemycount].direction = random(2) + 1;
if (game["enemy" + enemycount].direction == 1) {
game["enemy" + enemycount].xnow = (-xoff) + 670;
game["enemy" + enemycount].xmove = -6;
} else {
game["enemy" + enemycount].xnow = (-xoff) - 20;
game["enemy" + enemycount].xmove = 6;
}
game["enemy" + enemycount]._y = random(378) - 200;
game["enemy" + enemycount].health = 100;
game["enemy" + enemycount].gotoAndStop(game["enemy" + enemycount].direction);
_root.lmaos.push(enemycount);
}
ynow = ynow - yvel;
xnow = xnow - xvel;
timecnt--;
if (!timecnt) {
timecnt = 24;
seconds++;
}
if (ynow > 300) {
health = health - 5;
yvel = 10;
} else if (ynow < -200) {
yvel = -10;
}
if (xnow < 0) {
xvel = -10;
} else if (xnow > 1350) {
xvel = 10;
}
nmeloop();
lmaoloop();
roflloop();
lolloop();
omgloop();
wtfloop();
scroll();
render();
}
function mousedown() {
shooting = true;
}
function mouseup() {
shooting = false;
}
function render() {
rofl._x = xnow;
rofl._y = ynow;
rofl.bbl._visible = bbl;
gun._rotation = gun_a - (-(xvel * 3.5));
game._x = xoff;
game._y = yoff;
rofl._rotation = -(xvel * 3.5);
iface.health._width = 67 * (health / 200);
iface.shield._width = 67 * (shield / 150);
if (health <= 0) {
dounload();
}
}
function nmeloop() {
for (n in nmes) {
i = nmes[n];
if (game["enemy" + i].direction == 1) {
game["enemy" + i].xnow = game["enemy" + i].xnow - 5;
} else {
game["enemy" + i].xnow = game["enemy" + i].xnow + 5;
}
if (random(50) == 1) {
if (game["enemy" + i].direction == 1) {
game["enemy" + i].direction = 2;
} else {
game["enemy" + i].direction = 1;
}
}
if (random(110) == 1) {
dx = game["enemy" + i].xnow - xnow;
dy = game["enemy" + i]._y - ynow;
lol_a = atan2(dy, dx);
lol_a = floor((lol_a = lol_a * (180 / pi)));
lol_a = lol_a - 90;
dolol(lol_a, game["enemy" + i].xnow, game["enemy" + i]._y);
}
x = game["enemy" + i].xnow + xoff;
if ((x < -200) or (x > 850)) {
game["enemy" + i].removeMovieClip();
if (nmes[n] == i) {
nmes.splice(n, 1);
}
}
game["enemy" + i]._x = game["enemy" + i].xnow;
game["enemy" + i].gotoAndStop(game["enemy" + i].direction);
}
}
function lmaoloop() {
for (n in lmaos) {
i = lmaos[n];
game["enemy" + i].xnow = game["enemy" + i].xnow + game["enemy" + i].xmove;
deltaX = xnow - game["enemy" + i].xnow;
deltaY = ynow - game["enemy" + i]._y;
dist = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
if (!bbl) {
if (dist < 70) {
health = health - 10;
level++;
game.attachMovie("lmaodie", "lmaodie" + level, level);
game["lmaodie" + level]._x = game["enemy" + i].xnow;
game["lmaodie" + level]._y = game["enemy" + i]._y;
game["lmaodie" + level].gotoAndStop(game["enemy" + i].direction);
game["enemy" + i].removeMovieClip();
lmaos.splice(n, 1);
} else {
x = game["enemy" + i].xnow + xoff;
if ((x < -200) or (x > 850)) {
game["enemy" + i].removeMovieClip();
if (lmaos[n] == i) {
lmaos.splice(n, 1);
}
}
game["enemy" + i]._x = game["enemy" + i].xnow;
}
} else if (dist < 130) {
level++;
game.attachMovie("lmaodie", "lmaodie" + level, level);
game["lmaodie" + level]._x = game["enemy" + i].xnow;
game["lmaodie" + level]._y = game["enemy" + i]._y;
game["lmaodie" + level].gotoAndStop(game["enemy" + i].direction);
game["enemy" + i].removeMovieClip();
if (lmaos[n] == i) {
lmaos.splice(n, 1);
}
} else {
x = game["enemy" + i].xnow + xoff;
if ((x < -200) or (x > 850)) {
game["enemy" + i].removeMovieClip();
if (lmaos[n] == i) {
lmaos.splice(n, 1);
}
}
game["enemy" + i]._x = game["enemy" + i].xnow;
}
}
}
function loadsfx() {
sfx_1 = new Sound();
sfx_1.attachSound("sfx_1");
sfx_2 = new Sound();
sfx_2.attachSound("sfx_2");
sfx_3 = new Sound();
sfx_3.attachSound("sfx_3");
sfx_4 = new Sound();
sfx_4.attachSound("sfx_4");
sfx_5 = new Sound();
sfx_5.attachSound("sfx_5");
}
function sin(i, n) {
return(i * sine(n));
}
function cos(i, n) {
return(i * coss(n));
}
function rad(i) {
return((pi / 180) * i);
}
function doload() {
paused = false;
health = 200;
shield = 150;
bombs = 30;
missiles = 30;
score = 0;
kills = 0;
seconds = 0;
timecnt = 24;
shotsfired = 0;
shotshit = 0;
_root.game.removeMovieClip();
_root.iface.removeMovieClip();
_root.attachMovie("empty", "game", 5);
_root.attachMovie("interface", "iface", 6);
yoff = 100;
xnow = 325;
_root.game.attachMovie("roflcopter", "rofl", 3);
rofl = _root.game.rofl;
gun = _root.game.rofl.gun;
level = 3;
_root.rofls = Array();
_root.omgs = Array();
_root.lols = Array();
_root.nmes = Array();
_root.wtfs = Array();
_root.lmaos = Array();
i = 0;
while (i < 4) {
level++;
_root.game.attachMovie("gnd", "gnd" + i, level);
_root.game["gnd" + i]._x = 294 * i;
_root.game["gnd" + i]._y = 321;
i++;
}
loadsfx();
}
function dounload() {
_root.game.removeMovieClip();
_root.iface.removeMovieClip();
gotoAndStop (20);
}
function scroll() {
if (((xnow + xoff) < 325) and (xoff < 0)) {
xoff = xoff - floor((xnow + xoff) - 325);
} else if (((xnow + xoff) > 325) and (xoff > -700)) {
xoff = xoff + floor(325 - (xnow + xoff));
}
if (((ynow + yoff) < 150) and (yoff < 200)) {
yoff = yoff - ((ymove = floor((ynow + yoff) - 150)));
} else if (((ynow + yoff) > 250) and (yoff > 100)) {
yoff = yoff + ((ymove = floor(250 - (ynow + yoff))));
}
hozpoz = (hozid * 294) + xoff;
verpoz = (verid * 294) + yoff;
if (hozpoz < -294) {
i = hozid + 4;
game["gnd" + hozid]._x = game["gnd" + hozid]._x + 1176;
game["gnd" + hozid]._name = "gnd" + i;
hozid++;
} else if (hozpoz > 0) {
k = hozid - 1;
i = hozid + 3;
game["gnd" + i]._x = game["gnd" + i]._x - 1176;
game["gnd" + i]._name = "gnd" + k;
hozid--;
}
}
var xnow = 0;
var ynow = 0;
var xoff = 0;
var yoff = 0;
var hozpoz = 0;
var hozid = 0;
var verpoz = 0;
var verid = 0;
var shotsfired = 0;
var shotshit = 0;
var xstart = 0;
var ystart = 0;
var xmax = 0;
var ymax = 0;
var timecnt = 0;
var seconds = 0;
var yvel = 0;
var xvel = 0;
var jumpcount = 0;
var cwpn = 0;
var srdy = 0;
var wtfsrdy = 0;
var omgsrdy = 0;
var health = 0;
var shield = 0;
var bombs = 0;
var score = 0;
var kills = 0;
var floor = Math.floor;
var atan2 = Math.atan2;
var pi = Math.PI;
var sine = Math.sin;
var coss = Math.cos;
doload();
Instance of Symbol 87 MovieClip [empty] in Frame 15
onClipEvent (enterFrame) {
if (!_root.paused) {
_root.enterframe();
}
}
onClipEvent (mouseDown) {
_root.mousedown();
}
onClipEvent (mouseUp) {
_root.mouseup();
}
Frame 20
accuracy = (shotshit / shotsfired) * 100;
accuracy = Math.floor(accuracy * 100) / 100;
stats.data.shotshit = stats.data.shotshit + shotshit;
stats.data.shotsfired = stats.data.shotsfired + shotsfired;
stats.data.totaltime = stats.data.totaltime + seconds;
stats.data.totalscore = stats.data.totalscore + score;
stats.data.totalkills = stats.data.totalkills + kills;
if ((kills < stats.data.worstkills) or (stats.data.worstkills == undefined)) {
stats.data.worstkills = kills;
}
if ((kills > stats.data.bestkills) or (stats.data.bestkills == undefined)) {
stats.data.bestkills = kills;
}
if ((seconds < stats.data.worsttime) or (stats.data.worsttime == undefined)) {
stats.data.worsttime = seconds;
}
if ((seconds > stats.data.besttime) or (stats.data.besttime == undefined)) {
stats.data.besttime = seconds;
}
if ((score < stats.data.worstscore) or (stats.data.worstscore == undefined)) {
stats.data.worstscore = score;
}
if ((score > stats.data.bestscore) or (stats.data.bestscore == undefined)) {
stats.data.bestscore = score;
}
stats.data.plays++;
stats.flush();
Symbol 35 MovieClip [lollerdie] Frame 13
this.removeMovieClip();
Symbol 51 MovieClip Frame 11
_parent.removeMovieClip();
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [lmaodie] Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 6;
}
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [lmaodie] Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 6;
}
Symbol 75 Button
on (keyPress "p") {
if (_root.paused == false) {
_root.paused = true;
paused._visible = true;
} else {
_root.paused = false;
paused._visible = false;
}
}
on (keyPress "P") {
if (!_root.paused) {
_root.paused = true;
paused._visible = true;
} else {
_root.paused = false;
paused._visible = false;
}
}
Instance of Symbol 77 MovieClip "paused" in Symbol 78 MovieClip [interface] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 83 MovieClip [lewlsion] Frame 8
this.removeMovieClip();
Symbol 88 Button [empty]
on (keyPress "m") {
if (music == true) {
gotoAndStop (2);
music = false;
} else {
gotoAndStop (1);
music = true;
}
}
Symbol 93 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 93 MovieClip Frame 2
gotoAndPlay (1);
Symbol 103 MovieClip Frame 1
_root.stop();
Instance of Symbol 97 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 98 MovieClip in Symbol 103 MovieClip Frame 1
on (press) {
getURL ("http://www.thecrunge.net/", "_blank");
}
Symbol 103 MovieClip Frame 112
_root.play();
Symbol 107 MovieClip Frame 1
stop();
Symbol 125 Button
on (press) {
_root.gotoAndStop(6);
}
Symbol 126 Button
on (press) {
_root.gotoAndStop(8);
}
Symbol 127 Button
on (press) {
_root.gotoAndStop(9);
}
Symbol 128 Button
on (press) {
_root.gotoAndStop(15);
}
Symbol 129 Button
on (press) {
_root.gotoAndStop(7);
}
Symbol 142 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 168 Button
on (release) {
editing = 1;
}
Symbol 169 Button
on (release) {
editing = 2;
}
Symbol 170 Button
on (release) {
editing = 3;
}
Symbol 171 Button
on (release) {
editing = 4;
}
Symbol 172 Button
on (release) {
editing = 5;
}
Symbol 173 Button
on (release) {
editing = 6;
}
Symbol 174 Button
on (release) {
editing = 7;
}
Symbol 175 Button
on (release) {
editing = 8;
}
Instance of Symbol 87 MovieClip [empty] in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
function dokeys() {
p.but1 = (r.but1 + " / ") + String.fromCharCode(r.but1);
p.but2 = (r.but2 + " / ") + String.fromCharCode(r.but2);
p.but3 = (r.but3 + " / ") + String.fromCharCode(r.but3);
p.but4 = (r.but4 + " / ") + String.fromCharCode(r.but4);
p.but5 = (r.but5 + " / ") + String.fromCharCode(r.but5);
p.but6 = (r.but6 + " / ") + String.fromCharCode(r.but6);
p.but7 = (r.but7 + " / ") + String.fromCharCode(r.but7);
p.but8 = (r.but8 + " / ") + String.fromCharCode(r.but8);
}
p = _parent;
r = _root;
p.editing = 0;
dokeys();
}
onClipEvent (keyDown) {
if (p.editing != 0) {
keypress = Key.getCode();
_root["but" + p.editing] = keypress;
dokeys();
p.editing = 0;
}
}
Symbol 208 MovieClip Frame 1
if (_root.stats.data.plays == undefined) {
plays = 0;
totaltime = 0;
besttime = 0;
worsttime = 0;
totalscore = 0;
bestscore = 0;
worstscore = 0;
totalkills = 0;
bestkills = 0;
worstkills = 0;
shotsfired = 0;
shotshit = 0;
accuracy = 0;
} else {
plays = _root.stats.data.plays;
totaltime = _root.stats.data.totaltime;
besttime = _root.stats.data.besttime;
worsttime = _root.stats.data.worsttime;
totalscore = _root.stats.data.totalscore;
bestscore = _root.stats.data.bestscore;
worstscore = _root.stats.data.worstscore;
totalkills = _root.stats.data.totalkills;
bestkills = _root.stats.data.bestkills;
worstkills = _root.stats.data.worstkills;
shotsfired = _root.stats.data.shotsfired;
shotshit = _root.stats.data.shotshit;
accuracy = (shotshit / shotsfired) * 100;
accuracy = Math.floor(accuracy * 100) / 100;
}
Symbol 211 Button
on (press) {
getURL ("http://www.thecrunge.net/", "_blank");
}