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);
}
if (!neverusedTracker) {
__com_mochibot__("b1450d56", this, 10301, true);
neverusedTracker = true;
}
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._alpha = 0;
onEnterFrame = null;
gotoAndStop (5);
}
}
urls_allowed = ["beastgames.org", "www.beastgames.org", "flashgamelicense.com", "www.flashgamelicense.com"];
stop();
onEnterFrame = function () {
PercentLoaded = (getBytesLoaded() / getBytesTotal()) * 100;
if (PercentLoaded != 100) {
loadbar._xscale = PercentLoaded;
} else {
lpw._visible = false;
loadbar._visible = false;
gotoAndStop (2);
}
};
mochi.as2.MochiServices.connect("cd554b54f6be8322", _root);
if (highscoreSubmit) {
highscoreSubmit = false;
gotoAndStop (5);
}
Frame 2
var savefile = SharedObject.getLocal("battleroom");
for (var g in _root) {
_root[g].removeMovieClip();
}
esong.setVolume(100);
if (savefile.data.pname == null) {
savefile.data.run = 0;
savefile.data.def = 0;
savefile.data.jump = 0;
savefile.data.dodge = 0;
savefile.data.jumps = 1;
savefile.data.jheight = 8;
savefile.data.hp = 6;
savefile.data.laser = false;
savefile.data.speed = 3.5;
savefile.data.fric = 0.92;
savefile.data.duck = false;
savefile.data.drop = false;
savefile.data.roll = false;
savefile.data.exp = 0;
savefile.data.lvl = 0;
savefile.data.pnts = 0;
savefile.data.timer = 0;
savefile.data.highlvl = 0;
savefile.data.bossReached = false;
}
_quality = "HIGH";
stop();
onEnterFrame = function () {
if (Key.isDown(83)) {
gotoAndPlay(_currentframe + 1);
onEnterFrame = null;
}
};
Frame 3
var savefile = SharedObject.getLocal("battleroom");
for (var g in _root) {
_root[g].removeMovieClip();
}
esong.setVolume(100);
if (savefile.data.pname == null) {
savefile.data.run = 0;
savefile.data.def = 0;
savefile.data.jump = 0;
savefile.data.dodge = 0;
savefile.data.jumps = 1;
savefile.data.jheight = 8;
savefile.data.hp = 6;
savefile.data.laser = false;
savefile.data.speed = 3.5;
savefile.data.fric = 0.92;
savefile.data.duck = false;
savefile.data.drop = false;
savefile.data.roll = false;
savefile.data.exp = 0;
savefile.data.lvl = 0;
savefile.data.pnts = 0;
savefile.data.timer = 0;
savefile.data.highlvl = 0;
savefile.data.bossReached = false;
}
_quality = "LOW";
stop();
onEnterFrame = function () {
if (Key.isDown(83)) {
gotoAndPlay(_currentframe + 1);
onEnterFrame = null;
}
};
Frame 4
function dist(x1, y1, x2, y2) {
xdist = x2 - x1;
ydist = y2 - y1;
distance = Math.sqrt((xdist * xdist) + (ydist * ydist));
}
function angle(x1, y1, x2, y2) {
ad = x2 - x1;
op = y2 - y1;
ang = Math.atan2(op, ad);
ang = ang * 57.2957795130823;
}
function anglexy(ang) {
ang = ang / 57.2957795130823;
xmov = Math.cos(ang);
ymov = Math.sin(ang);
}
function attachMob(mc, xpos, ypos, dpth, pc) {
if (pc == null) {
attachMovie(mc, mc + dpth, dpth);
obj = _root[mc + dpth];
} else {
pc.attachMovie(mc, mc + dpth, dpth);
obj = pc[mc + dpth];
}
obj._x = xpos;
obj._y = ypos;
}
function newgunt(xpos, ypos) {
smoke.attachMovie("newgun", "ng" + smdpt, smdpt);
smoke["ng" + smdpt]._x = xpos;
smoke["ng" + smdpt]._y = ypos;
smdpt++;
}
healthp = function () {
};
healthp.prototype = new MovieClip();
healthp.prototype.onLoad = function () {
};
healthp.prototype.onEnterFrame = function () {
if (!gpause) {
this.play();
if (hero.hitTest(this)) {
trace(hero.hp);
hero.hp = hero.hp + 3;
if (_root.savefile.data.def > 0) {
hero.hp++;
}
if (_root.savefile.data.def == 3) {
hero.hp++;
}
trace(hero.hp);
trace("---------");
if (hero.hp > savefile.data.hp) {
hero.hp = savefile.data.hp;
}
gs.health.gotoAndPlay(2);
explnum = 5;
i = 0;
while (i < explnum) {
coexpl.attachMovie("health_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
anglexy((360 / explnum) * i);
coexpl["sm" + smdpt].xmv = xmov * 4;
coexpl["sm" + smdpt].ymv = ymov * 4;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
coexpl.attachMovie("health_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
coexpl["sm" + smdpt]._xscale = 125;
coexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
coexpl["sm" + smdpt].xmv = xmov * 3;
coexpl["sm" + smdpt].ymv = ymov * 3;
smdpt++;
i++;
}
this.removeMovieClip();
}
} else {
this.stop();
}
};
Object.registerClass("healthp", healthp);
redCoin = function () {
};
redCoin.prototype = new MovieClip();
redCoin.prototype.onLoad = function () {
this.attack = false;
this.spd = 0;
};
redCoin.prototype.onEnterFrame = function () {
if (!gpause) {
this.play();
if (!this.attack) {
if (hero.hitTest(this)) {
combo++;
explnum = 5;
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
anglexy((360 / explnum) * i);
coexpl["sm" + smdpt].xmv = xmov * 4;
coexpl["sm" + smdpt].ymv = ymov * 4;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
coexpl["sm" + smdpt]._xscale = 125;
coexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
coexpl["sm" + smdpt].xmv = xmov * 3;
coexpl["sm" + smdpt].ymv = ymov * 3;
smdpt++;
i++;
}
addscore_time = time + 40;
addscore = int((20 * combo) * (1 + (level / 10)));
gscore = gscore + int((20 * combo) * (1 + (level / 10)));
if (level == "BOSS") {
addscore = int((20 * combo) * 3.5);
gscore = gscore + int((20 * combo) * 3.5);
}
this.attack = true;
this.gotoAndStop(1);
if (savefile.data.lvl < 12) {
savefile.data.exp = savefile.data.exp + (1 + int(level / 2));
nextLvlUp = 20 + (savefile.data.lvl * 24);
if (savefile.data.exp >= nextLvlUp) {
savefile.data.exp = savefile.data.exp - nextLvlUp;
savefile.data.lvl++;
savefile.data.pnts++;
blsc.skilllevelup.gotoAndPlay(2);
blsc.skill = "SKILL LEVEL: " + savefile.data.lvl;
if (savefile.data.lvl >= 12) {
blsc.skill = "SKILL LEVEL: MAX";
}
}
blsc.exp = (("EXPERIENCE: " + savefile.data.exp) + "/") + nextLvlUp;
}
if (!guns.boss) {
this.removeMovieClip();
}
}
} else {
angle(this._x, this._y, guns.boss._x, guns.boss._y);
anglexy(ang);
if (this.spd < 10) {
this.spd = this.spd + 1;
}
this.xmv = xmov * this.spd;
this.ymv = ymov * this.spd;
smoke.attachMovie("crtail", "crt" + smdpt, smdpt, {_x:this._x, _y:this._y, _rotation:random(360)});
smdpt++;
smoke.attachMovie("crtail", "crt" + smdpt, smdpt, {_x:this._x + (this.xmv / 2), _y:this._y + (this.ymv / 2), _rotation:random(360)});
smdpt++;
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
if (this.hitTest(guns.boss)) {
explnum = 5;
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
anglexy((360 / explnum) * i);
coexpl["sm" + smdpt].xmv = xmov * 4;
coexpl["sm" + smdpt].ymv = ymov * 4;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
coexpl["sm" + smdpt]._xscale = 125;
coexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
coexpl["sm" + smdpt].xmv = xmov * 3;
coexpl["sm" + smdpt].ymv = ymov * 3;
smdpt++;
i++;
}
if (guns.boss.life > 0) {
guns.boss.gotoAndStop(3);
guns.boss.hurtAnim.gotoAndPlay(1);
guns.boss.life = guns.boss.life - 1.5;
}
_root.explode_snd.gotoAndPlay(2);
this.removeMovieClip();
}
}
} else {
this.stop();
}
};
Object.registerClass("redCoin", redCoin);
coin = function () {
};
coin.prototype = new MovieClip();
coin.prototype.onLoad = function () {
};
coin.prototype.onEnterFrame = function () {
if (!gpause) {
this.play();
if (hero.hitTest(this)) {
combo++;
explnum = 5;
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
anglexy((360 / explnum) * i);
coexpl["sm" + smdpt].xmv = xmov * 4;
coexpl["sm" + smdpt].ymv = ymov * 4;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
coexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
coexpl["sm" + smdpt]._x = this._x;
coexpl["sm" + smdpt]._y = this._y;
coexpl["sm" + smdpt]._xscale = 125;
coexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
coexpl["sm" + smdpt].xmv = xmov * 3;
coexpl["sm" + smdpt].ymv = ymov * 3;
smdpt++;
i++;
}
addscore_time = time + 40;
addscore = int((20 * combo) * (1 + (level / 10)));
gscore = gscore + int((20 * combo) * (1 + (level / 10)));
if (savefile.data.lvl < 12) {
savefile.data.exp = savefile.data.exp + (1 + int(level / 2));
nextLvlUp = 20 + (savefile.data.lvl * 24);
if (savefile.data.exp >= nextLvlUp) {
savefile.data.exp = savefile.data.exp - nextLvlUp;
savefile.data.lvl++;
savefile.data.pnts++;
blsc.skilllevelup.gotoAndPlay(2);
blsc.skill = "SKILL LEVEL: " + savefile.data.lvl;
if (savefile.data.lvl >= 12) {
blsc.skill = "SKILL LEVEL: MAX";
}
}
blsc.exp = (("EXPERIENCE: " + savefile.data.exp) + "/") + nextLvlUp;
}
this.removeMovieClip();
}
} else {
this.stop();
}
};
Object.registerClass("coin", coin);
char1 = function () {
};
char1.prototype = new MovieClip();
char1.prototype.onLoad = function () {
this.hp = savefile.data.hp;
this.dir = 1;
this.spd = 3;
hero = this;
htrack = 25;
gs.health.gotoAndPlay(2);
this.xmv = 0;
this.fric = savefile.data.fric;
this.dbjumps = savefile.data.jumps;
this.ymv = 0;
this.rbrk = 0;
this.jumping = false;
this.maxv = savefile.data.speed;
this.hh = this._height / 2;
this.hw = this._width / 2;
this.fx = this._x;
this.fy = this._y;
this.posa = new Array([this._x, this._y]);
};
char1.prototype.onEnterFrame = function () {
if (!gpause) {
this.fx = this._x;
this.fy = this._y;
this.hh = 14;
this.hw = this._width / 2;
if (gamestart) {
savefile.data.timer++;
}
if (!this.jumping) {
this.fx = this.fx + this.xmv;
} else {
this.fx = this.fx + (this.xmv / 2);
}
this.fy = this.fy + this.ymv;
this.ymv++;
if (this.hit == true) {
this.hitt = ((this.hitt == null) ? (time + 60) : (this.hitt));
if ((time / 3) == int(time / 3)) {
if (this._visible == true) {
this._visible = false;
} else {
this._visible = true;
}
}
if (this.hitt < time) {
this._visible = true;
this.hitt = null;
this.hit = false;
}
}
if (this.fy > (425 - this.hh)) {
this.fy = 425 - this.hh;
this.ymv = 0;
}
if (this.fy > (424 - this.hh)) {
this.air = false;
this.jumps = this.dbjumps;
} else {
this.air = true;
}
if (this.fx < (25 + this.hw)) {
this.fx = 25 + this.hw;
this.xmv = 0;
}
if (this.fx > (425 - this.hw)) {
this.fx = 425 - this.hw;
this.xmv = 0;
}
if ((!Key.isDown(83)) and (!Key.isDown(40))) {
if ((Math.abs(this.xmv) > 0.6) and (_root.savefile.data.run <= 1)) {
this.action = "skid";
} else {
this.action = "stand";
}
}
if (((Key.isDown(65) and (this.rbrk < time)) and (this.action != "duck")) or ((Key.isDown(37) and (this.rbrk < time)) and (this.action != "duck"))) {
this.xmv = (air ? (this.xmv--) : (this.xmv - this.spd));
this.dir = -1;
this.action = "walk";
}
if (((Key.isDown(68) and (this.rbrk < time)) and (this.action != "duck")) or ((Key.isDown(39) and (this.rbrk < time)) and (this.action != "duck"))) {
this.xmv = (air ? (this.xmv++) : (this.xmv + this.spd));
this.dir = 1;
this.action = "walk";
}
if ((Key.isDown(87) and noup) or (Key.isDown(38) and noup)) {
noup = false;
if ((!this.air) or (this.jumps > 0)) {
this.jumping = true;
}
}
if ((!Key.isDown(87)) and (!Key.isDown(38))) {
noup = true;
}
if (Key.isDown(83) or Key.isDown(40)) {
if (this.air) {
if (savefile.data.drop) {
if (this.ymv < 0) {
this.ymv = 0;
}
this.ymv++;
}
} else if ((!this.roll) and (!this.norl)) {
if (savefile.data.duck) {
this.action = "duck";
if (savefile.data.roll) {
if (((Key.isDown(65) or Key.isDown(68)) or Key.isDown(37)) or Key.isDown(39)) {
this.norl = true;
this.roll = true;
this.rt = time + 10;
this.rlx = 6;
}
}
}
}
}
if ((((!Key.isDown(65)) and (!Key.isDown(68))) and (!Key.isDown(37))) and (!Key.isDown(39))) {
this.norl = false;
}
if (this.roll) {
this.action = "roll";
this.fx = this.fx + (this.rlx * this.dir);
this.rlx = this.rlx * 0.86;
if (this.rlx < 1) {
this.roll = false;
this.rbrk = time + 5;
}
}
if (!this.air) {
if (this.action == "duck") {
this.xmv = int((0.94 * this.xmv) * 10) / 10;
} else {
this.xmv = int((this.fric * this.xmv) * 10) / 10;
}
} else if (this.ymv > -1) {
this.action = "airdown";
} else {
this.action = "airup";
}
if (Math.abs(this.xmv) > this.maxv) {
this.xmv = ((this.xmv > 0) ? (this.maxv) : (-this.maxv));
}
if (this.jumping) {
this.action = "jump";
}
this._xscale = 100 * this.dir;
this.gotoAndStop(this.action);
this._x = this.fx;
this._y = this.fy;
if (this.hp <= 0) {
explnum = 5;
dieExp.start(0, 0);
explode_snd.gotoAndPlay(2);
i = 0;
while (i < explnum) {
plexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
plexpl["sm" + smdpt]._x = this._x;
plexpl["sm" + smdpt]._y = this._y;
anglexy((360 / explnum) * i);
plexpl["sm" + smdpt].xmv = xmov * 4;
plexpl["sm" + smdpt].ymv = ymov * 4;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
plexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
plexpl["sm" + smdpt]._x = this._x;
plexpl["sm" + smdpt]._y = this._y;
plexpl["sm" + smdpt]._xscale = 125;
plexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
plexpl["sm" + smdpt].xmv = xmov * 3;
plexpl["sm" + smdpt].ymv = ymov * 3;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
plexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
plexpl["sm" + smdpt]._x = this._x;
plexpl["sm" + smdpt]._y = this._y;
plexpl["sm" + smdpt]._xscale = 150;
plexpl["sm" + smdpt]._yscale = 150;
anglexy((360 / explnum) * i);
plexpl["sm" + smdpt].xmv = xmov * 2;
plexpl["sm" + smdpt].ymv = ymov * 2;
smdpt++;
i++;
}
i = 0;
while (i < explnum) {
plexpl.attachMovie("guy_explode", "sm" + smdpt, smdpt);
plexpl["sm" + smdpt]._x = this._x;
plexpl["sm" + smdpt]._y = this._y;
plexpl["sm" + smdpt]._xscale = 125;
plexpl["sm" + smdpt]._yscale = 125;
anglexy(((360 / explnum) * i) + ((360 / explnum) / 2));
plexpl["sm" + smdpt].xmv = xmov;
plexpl["sm" + smdpt].ymv = ymov;
smdpt++;
i++;
}
dtime = time + 120;
dead = true;
this.removeMovieClip();
}
}
};
Object.registerClass("guy", char1);
gexplode = function () {
};
gexplode.prototype = new MovieClip();
gexplode.prototype.onLoad = function () {
this._rotation = random(360);
};
gexplode.prototype.onEnterFrame = function () {
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
this._xscale = this._xscale - 4;
this._yscale = this._yscale - 4;
if (this._xscale < 6) {
this.removeMovieClip();
}
};
Object.registerClass("guy_explode", gexplode);
Object.registerClass("health_explode", gexplode);
gun1 = function () {
};
gun1.prototype = new MovieClip();
gun1.prototype.onLoad = function () {
this.life = 8;
this.pos = random(2) + 1;
this.firetime = (time + random(30)) + 20;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 3) {
this._x = 25;
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425;
}
}
newgunt(this._x, this._y);
};
gun1.prototype.onEnterFrame = function () {
if (!gpause) {
angle(hero._x, hero._y, this._x, this._y);
this.gun.barrel._rotation = ang - this._rotation;
if ((time > this.firetime) and (this.life > 0)) {
angle(this._x, this._y, hero._x, hero._y);
if (random(2) == 0) {
ang = ((random(2) == 0) ? (ang + random(10)) : (ang - random(10)));
}
anglexy(ang);
bang_snd.gotoAndPlay(2);
_root.bullets.attachMovie("gun1_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x;
_root.bullets["b" + bdpt]._y = this._y;
_root.bullets["b" + bdpt].xmv = xmov * 5;
_root.bullets["b" + bdpt].ymv = ymov * 5;
bdpt++;
this.firetime = time + 40;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun1", gun1);
bullet1 = function () {
};
bullet1.prototype = new MovieClip();
bullet1.prototype.onLoad = function () {
bullcnt++;
};
bullet1.prototype.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
angle(0, 0, this.xmv, this.ymv);
if ((time / 4) == int(time / 4)) {
smoke.attachMovie("gun1_bullet_trail", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x - (this.xmv * 1.5);
smoke["sm" + smdpt]._y = this._y - (this.ymv * 1.5);
smoke["sm" + smdpt]._rotation = ang;
smdpt++;
}
if ((((this._x > 425) or (this._x < 25)) or (this._y > 425)) or (this._y < 25)) {
smoke.attachMovie("bang", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
if (this._x < 25) {
smoke["sm" + smdpt]._x = 25;
}
if (this._x > 425) {
smoke["sm" + smdpt]._x = 425;
}
if (this._y > 425) {
smoke["sm" + smdpt]._y = 425;
}
smdpt++;
bullcnt--;
this.removeMovieClip();
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
hero.hp--;
gs.health.gotoAndPlay(2);
smoke.attachMovie("bang", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
combo = 0;
hitdurlvl = true;
bullcnt--;
this.removeMovieClip();
}
}
};
Object.registerClass("gun1_bullet", bullet1);
gun2 = function () {
};
gun2.prototype = new MovieClip();
gun2.prototype.onLoad = function () {
this.life = 8;
this.fires = 0;
this.pos = random(2) + 1;
this.firetime = (time + random(30)) + 20;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 3) {
this._x = 25;
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425;
}
}
newgunt(this._x, this._y);
};
gun2.prototype.onEnterFrame = function () {
if (!gpause) {
angle(hero._x, hero._y, this._x, this._y);
this.gun.barrel._rotation = ang - this._rotation;
if ((time > this.firetime) and (this.life > 0)) {
angle(this._x, this._y, hero._x, hero._y);
if (random(2) == 0) {
ang = ((random(2) == 0) ? (ang + random(10)) : (ang - random(10)));
}
anglexy(ang);
bang_snd.gotoAndPlay(2);
_root.bullets.attachMovie("gun1_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x;
_root.bullets["b" + bdpt]._y = this._y;
_root.bullets["b" + bdpt].xmv = xmov * 5.5;
_root.bullets["b" + bdpt].ymv = ymov * 5.5;
bdpt++;
if ((this.fires / 2) == int(this.fires / 2)) {
this.firetime = time + 8;
} else {
this.firetime = time + 40;
}
this.fires++;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun2", gun2);
gun3 = function () {
};
gun3.prototype = new MovieClip();
gun3.prototype.onLoad = function () {
this.pos = random(2) + 1;
this.life = 4;
this.firetime = (time + random(40)) + 40;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 3) {
this._x = 25;
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425;
}
}
newgunt(this._x, this._y);
};
gun3.prototype.onEnterFrame = function () {
if (!gpause) {
angle(hero._x, hero._y, this._x, this._y);
this.gun.barrel._rotation = ang - this._rotation;
if ((time > this.firetime) and (this.life > 0)) {
angle(this._x, this._y, hero._x, hero._y);
this.ang = ang;
this.ang = this.ang - 40;
g = 3;
while (g > 0) {
this.ang = this.ang + 20;
anglexy(this.ang);
bang_snd.gotoAndPlay(2);
_root.bullets.attachMovie("gun1_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x;
_root.bullets["b" + bdpt]._y = this._y;
_root.bullets["b" + bdpt].xmv = xmov * 5;
_root.bullets["b" + bdpt].ymv = ymov * 5;
bdpt++;
g--;
}
this.firetime = time + 80;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun3", gun3);
gun4 = function () {
};
gun4.prototype = new MovieClip();
gun4.prototype.onLoad = function () {
this.pos = random(2) + 1;
this.life = 3;
this.firetime = (time + random(30)) + 20;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25 + (this._height / 2);
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 3) {
this._x = 25 + (this._height / 2);
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425 - (this._height / 2);
}
}
newgunt(this._x, this._y);
};
gun4.prototype.onEnterFrame = function () {
if (!gpause) {
if ((time > this.firetime) and (this.life > 0)) {
_root.bullets.attachMovie("gun4_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x;
_root.bullets["b" + bdpt]._y = this._y;
bang_snd.gotoAndPlay(2);
_root.bullets["b" + bdpt]._rotation = this._rotation;
_root.bullets["b" + bdpt]._rotation = _root.bullets["b" + bdpt]._rotation + 180;
bdpt++;
this.firetime = time + 120;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun4", gun4);
bullet4 = function () {
};
bullet4.prototype = new MovieClip();
bullet4.prototype.onLoad = function () {
this.tracking = false;
this.spd = 7;
bullcnt++;
this.posa = new Array();
};
bullet4.prototype.onEnterFrame = function () {
if (!gpause) {
angle(this._x, this._y, hero._x, hero._y);
this.posa.unshift(ang);
if (this.posa.length > htrack) {
this.posa.pop();
}
if (!this.tracking) {
if (this.spd < 0.1) {
this.tracking = true;
this.rot = this._rotation;
this.spd = 4;
this.life = (120 + random(80)) + time;
}
anglexy(this._rotation);
this.xmv = xmov * this.spd;
this.ymv = ymov * this.spd;
this.spd = this.spd * 0.9;
} else if (this.life > time) {
anglexy(this.posa[htrack - 1]);
this._rotation = this.posa[htrack - 1];
this.xmv = xmov * this.spd;
this.ymv = ymov * this.spd;
smoke.attachMovie("gun4_smoke", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x - (this.xmv * 1.5);
smoke["sm" + smdpt]._y = this._y - (this.ymv * 1.5);
smdpt++;
} else {
this.ymv = this.ymv + ((Math.abs(this.xmv) > 1) ? (0.4 / Math.abs(this.xmv)) : 0.4);
}
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
if ((((this._x > 425) or (this._x < 25)) or (this._y > 425)) or (this._y < 25)) {
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
if (this._x < 25) {
smoke["sm" + smdpt]._x = 25;
}
if (this._x > 425) {
smoke["sm" + smdpt]._x = 425;
}
if (this._y > 425) {
smoke["sm" + smdpt]._y = 425;
}
smdpt++;
bullcnt--;
this.removeMovieClip();
explode_snd.gotoAndPlay(2);
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
hero.hp = hero.hp - 2;
gs.health.gotoAndPlay(2);
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
combo = 0;
hitdurlvl = true;
explode_snd.gotoAndPlay(2);
bullcnt--;
this.removeMovieClip();
}
}
};
Object.registerClass("gun4_bullet", bullet4);
smoke4 = function () {
};
smoke4.prototype = new MovieClip();
smoke4.prototype.onLoad = function () {
this._rotation = random(360);
};
smoke4.prototype.onEnterFrame = function () {
this._xscale = this._xscale - 8;
this._yscale = this._yscale - 8;
if (this._xscale < 6) {
this.removeMovieClip();
}
};
Object.registerClass("gun4_smoke", smoke4);
gun5 = function () {
};
gun5.prototype = new MovieClip();
gun5.prototype.onLoad = function () {
this.pos = ((random(2) == 0) ? -1 : 1);
this.hh = this._height / 2;
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 1) {
this._x = 25 + (this._height / 2);
this._rotation = 180;
}
if (this.pos == -1) {
this._x = 425 - (this._height / 2);
}
this.xmax = 12;
this.xmv = 1 * this.pos;
this.ymv = 0;
bullcnt++;
newgunt(this._x, this._y);
};
gun5.prototype.onEnterFrame = function () {
if (!gpause) {
if (this._currentframe == 2) {
this._rotation = 90;
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
if (this._y > (425 - this.hh)) {
this._y = 425 - this.hh;
if (Math.abs(this.ymv) > 1) {
this.ymv = this.ymv * -0.35;
} else {
this.ymv = 0;
}
}
if (this._y > (424 - this.hh)) {
saw_snd.gotoAndPlay(2);
this.xmv = this.xmv + (0.5 * this.pos);
if (this.xmv > this.xmax) {
this.xmv = this.xmax;
}
if (this.xmv < (-this.xmax)) {
this.xmv = -this.xmax;
}
saws.attachMovie("gun5_saw_afterimage", "gsaw" + sawcnt, sawcnt);
saws["gsaw" + sawcnt]._x = this._x;
saws["gsaw" + sawcnt]._y = this._y + this.hh;
sawcnt++;
} else {
this.ymv++;
}
if ((this._x < (25 - this.hh)) or (this._x > (425 + this.hh))) {
this.gotoAndStop("in");
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
combo = 0;
hitdurlvl = true;
hero.hp = hero.hp - 2;
gs.health.gotoAndPlay(2);
}
}
}
};
Object.registerClass("gun5", gun5);
gun5_b = function () {
};
gun5_b.prototype = new MovieClip();
gun5_b.prototype.onLoad = function () {
this.hh = this._height / 2;
this.xmax = 12;
this.xmv = 1 * this.pos;
this.ymv = 0;
bullcnt++;
newgunt(this._x, this._y);
};
gun5_b.prototype.onEnterFrame = function () {
if (!gpause) {
if (this._currentframe == 2) {
this._rotation = 90;
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
if (this._y > (425 - this.hh)) {
this._y = 425 - this.hh;
if (Math.abs(this.ymv) > 1) {
this.ymv = this.ymv * -0.35;
} else {
this.ymv = 0;
}
}
if (this._y > (424 - this.hh)) {
saw_snd.gotoAndPlay(2);
this.xmv = this.xmv + (0.5 * this.pos);
if (this.xmv > this.xmax) {
this.xmv = this.xmax;
}
if (this.xmv < (-this.xmax)) {
this.xmv = -this.xmax;
}
saws.attachMovie("gun5_saw_afterimage", "gsaw" + sawcnt, sawcnt);
saws["gsaw" + sawcnt]._x = this._x;
saws["gsaw" + sawcnt]._y = this._y + this.hh;
sawcnt++;
} else {
this.ymv++;
}
if ((this._x < (25 - this.hh)) or (this._x > (425 + this.hh))) {
this.gotoAndStop("in");
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
combo = 0;
hitdurlvl = true;
hero.hp = hero.hp - 2;
gs.health.gotoAndPlay(2);
}
}
}
};
Object.registerClass("gun5_b", gun5_b);
smoke5 = function () {
};
smoke5.prototype = new MovieClip();
smoke5.prototype.onEnterFrame = function () {
this._xscale = this._xscale - 20;
this._yscale = this._yscale - 20;
if (this._xscale < 6) {
this.removeMovieClip();
}
};
Object.registerClass("gun5_saw_afterimage", smoke5);
gun6 = function () {
};
gun6.prototype = new MovieClip();
gun6.prototype.onLoad = function () {
this.life = 2;
this.pos = random(2) + 1;
this.firetime = (time + random(50)) + 90;
this._y = 34;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 90;
bullcnt++;
newgunt(this._x, this._y);
};
gun6.prototype.onEnterFrame = function () {
if (!gpause) {
if ((time > this.firetime) and (this.life > 0)) {
this.beam._visible = true;
this.armed = false;
this.beam.gotoAndPlay(1);
this.boff = time + 70;
this.firetime = time + 130;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
if (this.beam._visible) {
if (((Math.abs(hero._x - this._x) < ((hero._width / 2) + 9)) and (!hero.hit)) and this.armed) {
hero.hit = true;
if (!savefile.data.laser) {
hero.hp = hero.hp - 4;
} else {
hero.hp = hero.hp - 2;
}
combo = 0;
hitdurlvl = true;
gs.health.gotoAndPlay(2);
}
if (this.boff < time) {
this.beam._visible = false;
this.life--;
}
}
}
};
Object.registerClass("gun6", gun6);
gun6sp = function () {
};
gun6sp.prototype = new MovieClip();
gun6sp.prototype.onLoad = function () {
this.die = (time + 15) + random(25);
};
gun6sp.prototype.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + this.xmv;
this._y = this._y + 1;
this._xscale = this._xscale * 0.93;
this._yscale = this._yscale * 0.93;
if (this.die < time) {
this.removeMovieClip();
}
}
};
Object.registerClass("gun6_bs", gun6sp);
gun7 = function () {
};
gun7.prototype = new MovieClip();
gun7.prototype.onLoad = function () {
this.pos = random(2) + 1;
this.life = 3;
this.firetime = (time + random(30)) + 20;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(200 - this._height) + 25) + (this._height / 2);
if (this.pos == 3) {
this._x = 25;
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425;
}
}
newgunt(this._x, this._y);
};
gun7.prototype.onEnterFrame = function () {
if (!gpause) {
angle(hero._x, hero._y, this._x, this._y);
this.gun.barrel._rotation = ang - this._rotation;
if ((time > this.firetime) and (this.life > 0)) {
angle(this._x, this._y, hero._x, hero._y);
anglexy(ang);
_root.bullets.attachMovie("gun7_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x + (xmov * 12);
_root.bullets["b" + bdpt]._y = this._y + (ymov * 12);
_root.bullets["b" + bdpt]._rotation = ang - 30;
bdpt++;
_root.bullets.attachMovie("gun7_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x + (xmov * 12);
_root.bullets["b" + bdpt]._y = this._y + (ymov * 12);
_root.bullets["b" + bdpt]._rotation = ang + 30;
bdpt++;
bang_snd.gotoAndPlay(2);
this.firetime = time + 120;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun7", gun7);
bullet7 = function () {
};
bullet7.prototype = new MovieClip();
bullet7.prototype.onLoad = function () {
this.tracking = false;
if (!this.spd) {
this.spd = 7;
}
bullcnt++;
this.posa = new Array();
};
bullet7.prototype.onEnterFrame = function () {
if (!gpause) {
angle(this._x, this._y, hero._x, hero._y);
this.posa.unshift(ang);
if (this.posa.length > htrack) {
this.posa.pop();
}
if (!this.tracking) {
if (this.spd < 0.1) {
this.tracking = true;
this.rot = this._rotation;
this.spd = 4;
this.life = (120 + random(80)) + time;
}
anglexy(this._rotation);
this.xmv = xmov * this.spd;
this.ymv = ymov * this.spd;
this.spd = this.spd - 0.2;
} else if (this.life > time) {
anglexy(this.posa[htrack - 1]);
this._rotation = this.posa[htrack - 1];
this.xmv = xmov * this.spd;
this.ymv = ymov * this.spd;
smoke.attachMovie("gun4_smoke", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x - (this.xmv * 1.5);
smoke["sm" + smdpt]._y = this._y - (this.ymv * 1.5);
smdpt++;
} else {
this.ymv = this.ymv + ((Math.abs(this.xmv) > 1) ? (0.4 / Math.abs(this.xmv)) : 0.4);
}
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
if ((((this._x > 425) or (this._x < 25)) or (this._y > 425)) or (this._y < 25)) {
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
bullcnt--;
this.removeMovieClip();
explode_snd.gotoAndPlay(2);
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
hero.hp = hero.hp - 2;
combo = 0;
hitdurlvl = true;
gs.health.gotoAndPlay(2);
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
explode_snd.gotoAndPlay(2);
bullcnt--;
this.removeMovieClip();
}
}
};
Object.registerClass("gun7_bullet", bullet7);
gun8 = function () {
};
gun8.prototype = new MovieClip();
gun8.prototype.onLoad = function () {
this.life = 2;
bullcnt++;
this.pos = random(2) + 1;
this.firetime = (time + random(50)) + 90;
this._y = 34;
this._x = (random(400 - this._height) + 25) + (this._height / 2);
this._rotation = 90;
newgunt(this._x, this._y);
};
gun8.prototype.onEnterFrame = function () {
if (!gpause) {
if ((time > this.firetime) and (this.life > 0)) {
this.beam._visible = true;
this.armed = false;
this.prearmed = false;
this.beam.gotoAndPlay(1);
this.boff = time + 90;
this.firetime = time + 150;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
if (this.beam._visible) {
if (((Math.abs(hero._x - this._x) < ((hero._width / 2) + 9)) and (!hero.hit)) and this.armed) {
hero.hit = true;
if (!savefile.data.laser) {
hero.hp = hero.hp - 4;
} else {
hero.hp = hero.hp - 2;
}
combo = 0;
hitdurlvl = true;
gs.health.gotoAndPlay(2);
}
if (this.prearmed) {
if (this.life == 2) {
this._x++;
if ((this._x + (this._width / 2)) > 425) {
this._x = 425 - (this._width / 2);
}
}
if (this.life == 1) {
this._x--;
if ((this._x - (this._width / 2)) < 25) {
this._x = 25 + (this._width / 2);
}
}
}
if (this.boff < time) {
this.beam._visible = false;
this.life--;
}
}
}
};
Object.registerClass("gun8", gun8);
gun9 = function () {
};
gun9.prototype = new MovieClip();
gun9.prototype.onLoad = function () {
this.life = 4;
this.pos = random(2) + 1;
this.firetime = (time + random(30)) + 20;
if (this.pos == 2) {
this.pos = this.pos + (random(2) + 1);
}
if (this.pos == 1) {
this._y = 25;
this._x = (random(382) + 25) + 9;
this._rotation = 270;
}
if (this.pos > 2) {
this._y = (random(182) + 25) + 9;
if (this.pos == 3) {
this._x = 25;
this._rotation = 180;
}
if (this.pos == 4) {
this._x = 425;
}
}
newgunt(this._x, this._y);
};
gun9.prototype.onEnterFrame = function () {
if (!gpause) {
angle(hero._x, hero._y, this._x, this._y);
this.gun.barrel._rotation = ang - this._rotation;
if ((time > this.firetime) and (this.life > 0)) {
angle(this._x, this._y, hero._x, hero._y);
if (random(2) == 0) {
ang = ((random(2) == 0) ? (ang + random(10)) : (ang - random(10)));
}
anglexy(ang);
bang_snd.gotoAndPlay(2);
_root.bullets.attachMovie("gun9_bullet", "b" + bdpt, bdpt);
_root.bullets["b" + bdpt]._x = this._x;
_root.bullets["b" + bdpt]._y = this._y;
_root.bullets["b" + bdpt].xmv = xmov * 5.5;
_root.bullets["b" + bdpt].ymv = ymov * 5.5;
bdpt++;
this.firetime = time + 80;
this.life--;
} else if ((time > this.firetime) and (this.life <= 0)) {
this.gotoAndStop("in");
}
}
};
Object.registerClass("gun9", gun9);
bullet9 = function () {
};
bullet9.prototype = new MovieClip();
bullet9.prototype.onLoad = function () {
bullcnt++;
};
bullet9.prototype.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + this.xmv;
this._y = this._y + this.ymv;
angle(0, 0, this.xmv, this.ymv);
if ((time / 4) == int(time / 4)) {
smoke.attachMovie("gun1_bullet_trail", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x - (this.xmv * 1.5);
smoke["sm" + smdpt]._y = this._y - (this.ymv * 1.5);
smoke["sm" + smdpt]._rotation = ang;
smdpt++;
}
if (!this.hitg) {
if ((this._y > 425) or (this._y < 25)) {
this._y = int(this._y / 25) * 25;
this.stop();
this.xmv = 0;
this.ymv = 0;
metal_snd.gotoAndPlay(2);
this.tup = time + 120;
this.hitg = true;
}
if ((this._x > 425) or (this._x < 25)) {
this._x = Math.round(this._x / 25) * 25;
this.xmv = 0;
this.ymv = 0;
this.stop();
this.tup = time + 120;
metal_snd.gotoAndPlay(2);
this.hitg = true;
}
}
if (time > this.tup) {
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
explode_snd.gotoAndPlay(2);
bullcnt--;
this.removeMovieClip();
}
if (this.hitTest(hero) and (!hero.hit)) {
hero.hit = true;
hero.hp = hero.hp - 2;
gs.health.gotoAndPlay(2);
smoke.attachMovie("explode", "sm" + smdpt, smdpt);
smoke["sm" + smdpt]._x = this._x;
smoke["sm" + smdpt]._y = this._y;
smdpt++;
explode_snd.gotoAndPlay(2);
combo = 0;
hitdurlvl = true;
bullcnt--;
this.removeMovieClip();
}
}
};
Object.registerClass("gun9_bullet", bullet9);
gsong = new Sound();
gsong.attachSound("gsong");
esong = new Sound();
esong.attachSound("esong");
beep1 = new Sound();
beep1.attachSound("beep");
beep2 = new Sound();
beep2.attachSound("beepbeep");
dieExp = new Sound();
dieExp.attachSound("dieExp");
coinS = new Sound();
coinS.attachSound("coinS");
for (var s in _root) {
_root[s].removeMovieClip();
}
gotoAndStop(_currentframe + 1);
Frame 5
function createList(x1, y1, lgth, list) {
i = 0;
while (i < lgth) {
blsc.showScore.attachMovie("ls", "ls" + i, i, {_x:x1, _y:y1 + (i * 28)});
blsc.showScore["ls" + i].num = (i + 1) + ".)";
blsc.showScore["ls" + i].aaa = scoresData[i][0].firstChild.nodeValue;
blsc.showScore["ls" + i].bbb = scoresData[i][1].firstChild.nodeValue;
i++;
}
}
function createList2(x1, y1, lgth, list) {
i = 0;
while (i < lgth) {
fadeToBlack.showScore.attachMovie("ls", "ls" + i, i, {_x:x1, _y:y1 + (i * 32)});
fadeToBlack.showScore["ls" + i].num = (i + 1) + ".)";
fadeToBlack.showScore["ls" + i].aaa = scoresData[i][0].firstChild.nodeValue;
fadeToBlack.showScore["ls" + i].bbb = scoresData[i][1].firstChild.nodeValue;
i++;
}
}
stop();
createEmptyMovieClip("guns", 50);
createEmptyMovieClip("bullets", 40);
createEmptyMovieClip("bsps", 60);
createEmptyMovieClip("saws", 30);
createEmptyMovieClip("smoke", 10);
createEmptyMovieClip("plexpl", 10001);
createEmptyMovieClip("coins", 1000000);
createEmptyMovieClip("coexpl", 1000001);
createEmptyMovieClip("explCont", 1000004);
explodeS = new Sound(explCont);
explodeS.attachSound("explodeS");
esong.setVolume(100);
gs.health.gotoAndPlay(2);
sps = 0;
bullcnt = 0;
gs.swapDepths(10000);
fadeToBlack.swapDepths(10020);
bdpt = 0;
dpth = 1;
bossAdd = false;
sawcnt = 0;
smdpt = 0;
combo = 0;
startTime = 0;
time = startTime;
level = int(time / 600) + 1;
guncnt = 0;
beep2.start(0, 0);
restart = null;
gamestart = false;
lvlarray = [[1, [1]], [1, [9]], [1, [8]], [1, [2]], [1, [3]], [2, [3, 2]], [2, [4]], [2, [3, 3, 4]], [3, [1, 1, 2, 5, 5]], [3, [3, 4, 4]], [3, [4, 7]], [3, [5, 5, 6, 1]], [3, [2, 5]], [3, [9, 1]], [4, [1, 2, 4]], [3, [3]], [4, [2, 1, 8]], [6, [1, 2]], [4, [4, 7]], [5, [6, 6, 6, 2]], [4, [1, 2, 3, 4, 5, 6]], [4, [3, 4, 4]], [4, [2, 9]], [4, [4, 4, 8]], [5, [7]]];
gunmax = lvlarray[0][0];
lvlturrets = lvlarray[0][1];
dtime = null;
tilechoose = random(6) + 1;
blsc.bgtile.gotoAndStop(tilechoose);
gs.bgcolor.gotoAndStop(tilechoose);
dead = false;
cointm = random(80) + 40;
cocnt = 0;
cohght = 2 + _root.savefile.data.jump;
if (_root.savefile.data.jump == 3) {
cohght--;
}
gscore = 0;
gpause = false;
onEnterFrame = function () {
if (!gpause) {
time++;
if (time == dtime) {
blsc.gotoAndPlay("gover");
guns.removeMovieClip();
bullets.removeMovieClip();
coins.removeMovieClip();
}
ptm = savefile.data.timer / 40;
ptm_hours = int(ptm / 3600);
if (ptm_hours < 10) {
ptm_hours = "0" + ptm_hours;
}
ptm_minutes = int(ptm / 60) - (int(ptm / 3600) * 3600);
if (ptm_minutes < 10) {
ptm_minutes = "0" + ptm_minutes;
}
ptm_seconds = int(ptm) - (int(ptm / 60) * 60);
if (ptm_seconds < 10) {
ptm_seconds = "0" + ptm_seconds;
}
gs.timer = "SCORE: " + gscore;
if (addscore != null) {
addscore_time--;
gs.timer = ((("SCORE: " + gscore) + " (+") + addscore) + ")";
if (addscore_time <= 0) {
addscore = null;
}
}
if (time > restart) {
gotoAndPlay(_currentframe - 1);
}
if (gamestart) {
if (combo == 0) {
blsc.combo._visible = false;
} else {
blsc.combo._visible = true;
}
blsc.cmbotxt = "COMBO x" + combo;
prevlvl = level;
if ((level != "BOSS") and (level != "DONE")) {
level = int(time / 600) + 1;
}
if (level > 25) {
if (guncnt <= 0) {
level = "BOSS";
if (!bossAdd) {
savefile.data.bossReached = true;
blsc.bgblack.gotoAndPlay(2);
gs.bgblack.gotoAndPlay(2);
bossAdd = true;
}
}
}
if ((level == "DONE") and (guncnt <= 0)) {
if (bullcnt <= 0) {
setTimeout(function () {
blsc.gotoAndPlay("beatgame");
bullets.removeMovieClip();
coins.removeMovieClip();
}, 800);
gamestart = false;
}
guns.removeMovieClip();
}
if ((prevlvl < level) and (!dead)) {
if (savefile.data.highlvl < level) {
savefile.data.highlvl = level;
}
if ((level / 5) == int(level / 5)) {
coins.attachMovie("healthp", "coin" + cocnt, cocnt, {_x:int((random(375) + 45) / 15) * 15, _y:412 - (random(cohght) * 30)});
cocnt++;
}
if (!hitdurlvl) {
addscore = 300 * (1 + (level / 10));
gscore = gscore + (300 * (1 + (level / 10)));
plboost = 300 * (1 + (level / 10));
blsc.perfect.gotoAndPlay(2);
}
hitdurlvl = false;
tilechoose = blsc.bgtile._currentframe;
while (tilechoose == blsc.bgtile._currentframe) {
tilechoose = random(6) + 1;
}
blsc.bgtile.gotoAndStop(tilechoose);
gs.bgcolor.gotoAndStop(tilechoose);
}
if (((time > cointm) and (!dead)) and (blsc._currentframe == 63)) {
if (guns.boss == undefined) {
coins.attachMovie("coin", "coin" + cocnt, cocnt, {_x:int((random(375) + 45) / 15) * 15, _y:412 - (random(cohght) * 30)});
} else {
coins.attachMovie("redCoin", "coin" + cocnt, cocnt, {_x:int((random(375) + 45) / 15) * 15, _y:412 - (random(cohght) * 30)});
}
cocnt++;
cointm = (time + random(80)) + 40;
}
lvlturrets = lvlarray[level - 1][1];
gunmax = lvlarray[level - 1][0];
blsc.lvltxt = ((level < 10) ? ("LEVEL: 0" + level) : ("LEVEL: " + level));
if ((level == "BOSS") and guns.boss) {
bossDisplayHP = "";
i = 0;
while (i < int(guns.boss.life / 2)) {
bossDisplayHP = bossDisplayHP + "|";
i++;
}
if (int(guns.boss.life / 2) < (guns.boss.life / 2)) {
bossDisplayHP = bossDisplayHP + "'";
}
blsc.lvltxt = "BOSS:" + bossDisplayHP;
}
if (level != "DONE") {
if (level < 26) {
if (guncnt < gunmax) {
gtype = lvlturrets[random(lvlturrets.length)];
guns.attachMovie("gun" + gtype, "gun" + dpth, dpth);
dpth++;
guncnt++;
}
}
}
}
}
};
Frame 6
for (var s in _root) {
_root[s].removeMovieClip();
}
playername = savefile.data.pname;
var o = {n:[14, 13, 9, 3, 5, 14, 9, 8, 1, 14, 7, 8, 2, 3, 9, 7], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:gscore, name:playername});
highscoreSubmit = true;
stop();
Symbol 31 MovieClip Frame 5
_parent.ymv = -_root.savefile.data.jheight;
_parent.jumps--;
_parent.jumping = false;
Symbol 38 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 45 MovieClip Frame 1
onEnterFrame = null;
for (var i in this) {
this[i].removeMovieClip();
}
Symbol 45 MovieClip Frame 22
_parent.prearmed = true;
Symbol 45 MovieClip Frame 30
_parent.armed = true;
sps = 0;
time = 0;
if (_visible) {
_root.laser_snd.gotoAndPlay(2);
}
onEnterFrame = function () {
if (_visible) {
if ((time / 28) == int(time / 28)) {
dir = 1;
i = 0;
while (i < 10) {
_root.bsps.attachMovie("gun6_bs", "bs" + _root.sps, _root.sps);
_root.bsps["bs" + _root.sps]._x = _parent._x + (Math.random() * 4);
_root.bsps["bs" + _root.sps]._y = (((40 * i) + 20) + ((Math.random() * 30) - 15)) + _parent._y;
_root.bsps["bs" + _root.sps].xmv = 0.4 * dir;
_root.sps++;
i++;
}
dir = -1;
i = 0;
while (i < 10) {
_root.bsps.attachMovie("gun6_bs", "bs" + _root.sps, _root.sps);
_root.bsps["bs" + _root.sps]._x = _parent._x - (Math.random() * 4);
_root.bsps["bs" + _root.sps]._y = (((40 * i) + 20) + ((Math.random() * 30) - 15)) + _parent._y;
_root.bsps["bs" + _root.sps].xmv = 0.4 * dir;
_root.sps++;
i++;
}
}
time++;
}
};
stop();
Symbol 47 MovieClip Frame 10
_root.guncnt--;
_root.bullcnt--;
_parent.removeMovieClip();
Symbol 48 MovieClip [gun8] Frame 1
stop();
Symbol 48 MovieClip [gun8] Frame 2
beam._visible = false;
Symbol 49 MovieClip [gun6] Frame 1
stop();
Symbol 49 MovieClip [gun6] Frame 2
beam._visible = false;
Symbol 56 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 63 MovieClip Frame 10
_root.guncnt--;
_parent.removeMovieClip();
Symbol 64 MovieClip [gun7] Frame 1
stop();
Symbol 67 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 68 MovieClip Frame 10
_root.guncnt--;
_parent.removeMovieClip();
Symbol 69 MovieClip [gun4] Frame 1
stop();
Symbol 76 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 77 MovieClip Frame 10
_root.guncnt--;
_parent.removeMovieClip();
Symbol 78 MovieClip [gun3] Frame 1
stop();
Symbol 85 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 86 MovieClip Frame 10
_root.guncnt--;
_root.bullcnt--;
_parent.removeMovieClip();
Symbol 87 MovieClip [gun5_b] Frame 1
stop();
Symbol 88 MovieClip [gun5] Frame 1
stop();
Symbol 95 MovieClip Frame 10
_parent.gotoAndStop("fire");
Symbol 96 MovieClip Frame 10
_root.guncnt--;
_parent.removeMovieClip();
Symbol 97 MovieClip [gun2] Frame 1
stop();
Symbol 104 MovieClip [gun9] Frame 1
stop();
Symbol 105 MovieClip [gun1] Frame 1
stop();
Symbol 115 MovieClip [gun1_bullet_trail] Frame 7
this.removeMovieClip();
Symbol 127 MovieClip [gun6_bs] Frame 1
gotoAndStop(random(2) + 1);
Symbol 127 MovieClip [gun6_bs] Frame 2
_rotation = (90 * random(4));
Symbol 137 MovieClip [explode] Frame 11
this.removeMovieClip();
Symbol 144 MovieClip [bang] Frame 6
this.removeMovieClip();
Symbol 147 MovieClip [health_explode] Frame 42
stop();
Symbol 148 MovieClip [guy_explode] Frame 42
stop();
Symbol 151 MovieClip [newgun] Frame 13
stop();
this.removeMovieClip();
Symbol 156 MovieClip [redCoin] Frame 160
_root.combo = 0;
this.removeMovieClip();
Symbol 157 MovieClip [coin] Frame 160
_root.combo = 0;
this.removeMovieClip();
Symbol 161 MovieClip [healthp] Frame 160
this.removeMovieClip();
Symbol 170 MovieClip [gsmoke] Frame 12
this.removeMovieClip();
Symbol 175 MovieClip Frame 40
_parent.gotoAndStop(2);
Symbol 176 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 177 MovieClip Frame 5
_root.explodeS.setVolume(_parent._parent._alpha);
_root.explodeS.start(0, 0);
Symbol 177 MovieClip Frame 19
if (_parent._parent._alpha < 50) {
stop();
}
Symbol 178 MovieClip Frame 12
stop();
Symbol 179 MovieClip [boss] Frame 1
stop();
Symbol 179 MovieClip [boss] Frame 2
if (time == undefined) {
xmv = 3.8;
time = 0;
sawtime = 100;
mvolley = 0;
misstime = 100;
bullvolley = 0;
bulltime = 40;
act = "bullet";
life = 46;
}
onEnterFrame = function () {
if (!_root.gpause) {
if (life <= 0) {
this.gotoAndStop(4);
}
time++;
this._x = this._x + this.xmv;
if (this._x < 225) {
this.xmv = this.xmv + 0.1;
} else {
this.xmv = this.xmv - 0.1;
}
if ((time > bulltime) and (act == "bullet")) {
i = 0;
while (i < 2) {
if (this.i == 0) {
this.fireX = this._x + 90;
this.fireY = this._y + 30;
} else {
this.fireX = this._x - 90;
this.fireY = this._y + 30;
}
_root.angle(fireX, fireY, _root.hero._x, _root.hero._y);
if (random(2) == 0) {
_root.ang = ((random(2) == 0) ? (_root.ang + random(20)) : (_root.ang - random(20)));
}
_root.anglexy(_root.ang);
_root.bang_snd.gotoAndPlay(2);
_root.bullets.attachMovie("gun1_bullet", "b" + _root.bdpt, _root.bdpt);
_root.bullets["b" + _root.bdpt]._x = fireX;
_root.bullets["b" + _root.bdpt]._y = fireY;
_root.bullets["b" + _root.bdpt].xmv = _root.xmov * 5.5;
_root.bullets["b" + _root.bdpt].ymv = _root.ymov * 5.5;
_root.bdpt++;
i++;
}
if (life < 20) {
bulltime = time + 20;
bvolmax = 7;
} else {
bulltime = time + 20;
bvolmax = 5;
}
bullvolley++;
if (bullvolley > bvolmax) {
bullvolley = 0;
act = "pause";
nextA = "missile";
paus = 30;
}
}
if ((time > misstime) and (act == "missile")) {
_root.bullets.attachMovie("gun7_bullet", "b" + _root.bdpt, _root.bdpt);
_root.bullets["b" + _root.bdpt]._x = this._x + 90;
_root.bullets["b" + _root.bdpt]._y = this._y;
_root.bullets["b" + _root.bdpt].spd = 5;
_root.bullets["b" + _root.bdpt]._rotation = 270;
_root.bdpt++;
_root.bullets.attachMovie("gun7_bullet", "b" + _root.bdpt, _root.bdpt);
_root.bullets["b" + _root.bdpt]._x = this._x - 90;
_root.bullets["b" + _root.bdpt]._y = this._y;
_root.bullets["b" + _root.bdpt].spd = 5;
_root.bullets["b" + _root.bdpt]._rotation = 270;
_root.bdpt++;
bang_snd.gotoAndPlay(2);
mvolley++;
misstime = time + 30;
if (life < 30) {
mvolmax = 4;
} else {
mvolmax = 3;
}
if (life < 15) {
mvolmax = 5;
}
if (mvolley >= mvolmax) {
mvolley = 0;
act = "pause";
nextA = "bullet";
paus = 200;
}
}
if (act == "pause") {
paus--;
if (paus <= 0) {
act = nextA;
}
}
if ((time > sawtime) and (life < 20)) {
sawtime = (time + 100) + random(100);
_root.guns.attachMovie("gun5_b", "gun" + _root.dpth, _root.dpth);
_root.guns["gun" + _root.dpth]._x = this._x;
_root.guns["gun" + _root.dpth]._y = this._y;
if (this._x < _root.hero._x) {
_root.guns["gun" + _root.dpth].pos = 1;
} else {
_root.guns["gun" + _root.dpth].pos = -1;
}
_root.dpth++;
_root.guncnt++;
}
}
};
Symbol 179 MovieClip [boss] Frame 4
wait = 50;
wait2 = 50;
fade = false;
gone = false;
onEnterFrame = function () {
if (!_root.gpause) {
_y = (_y + 1);
_rotation = (_rotation + 0.25);
wait--;
if (_alpha <= 0) {
gone = true;
} else if (wait < 0) {
_alpha = (_alpha - 2);
}
if (gone) {
wait2--;
if (wait2 < 0) {
_root.blsc.endfade.gotoAndPlay(2);
this.removeMovieClip();
}
}
}
};
Symbol 182 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 183 MovieClip [crtail] Frame 14
this.removeMovieClip();
Symbol 195 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 457 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.0");
}
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";
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.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.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();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.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.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
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.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.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];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
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 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._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 ((args.options != null) && (args.options.onError != null)) {
args.options.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:_listenChannel._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:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 458 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.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 459 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 200 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 203 MovieClip Frame 60
stop();
Symbol 217 MovieClip Frame 14
stop();
Symbol 218 MovieClip Frame 255
_root.gotoAndStop(_root._currentframe + 1);
Symbol 222 Button
on (release) {
getURL ("http://www.beastgames.org", "_blank");
}
Symbol 229 MovieClip Frame 4
_parent.bgGallop.setVolume(_parent.bgVolume);
_parent.bgGallop.start(0, 0);
Symbol 249 MovieClip Frame 1
bgGallop = new Sound(this);
bgGallop.attachSound("bggallop");
bgVolume = 20;
Symbol 249 MovieClip Frame 75
bgVolume = 20;
Symbol 249 MovieClip Frame 90
bgVolume = 30;
Symbol 249 MovieClip Frame 125
bgVolume = 40;
Symbol 249 MovieClip Frame 385
stop();
_root.gotoAndPlay(_root._currentframe + 1);
Symbol 274 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 40
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
_root.guns.boss._visible = false;
Symbol 280 MovieClip Frame 3
_root.guns.boss._visible = true;
Symbol 280 MovieClip Frame 4
_root.beep2.start(0, 0);
_root.guns.boss._visible = false;
Symbol 280 MovieClip Frame 6
_root.guns.boss._visible = true;
Symbol 280 MovieClip Frame 8
_root.guns.boss.removeMovieClip();
Symbol 280 MovieClip Frame 30
_root.level = "DONE";
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 295 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 320 MovieClip Frame 1
plboost = "+" + _root.plboost;
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
_parent.skilllevelup.gotoAndStop(1);
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
_parent.perfect.gotoAndStop(1);
Symbol 327 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 329 MovieClip Frame 7
stop();
Symbol 341 Button
on (rollOver) {
redefine1();
}
on (release) {
if ((_root.savefile.data.def < 3) and (_root.savefile.data.pnts > 0)) {
_root.savefile.data.pnts--;
_root.savefile.data.def++;
redefine1();
}
}
Symbol 344 Button
on (rollOver) {
redefine2();
}
on (release) {
if ((_root.savefile.data.run < 3) and (_root.savefile.data.pnts > 0)) {
_root.savefile.data.pnts--;
_root.savefile.data.run++;
redefine2();
}
}
Symbol 347 Button
on (rollOver) {
redefine3();
}
on (release) {
if ((_root.savefile.data.jump < 3) and (_root.savefile.data.pnts > 0)) {
_root.savefile.data.pnts--;
_root.savefile.data.jump++;
redefine3();
}
}
Symbol 350 Button
on (rollOver) {
redefine4();
}
on (release) {
if ((_root.savefile.data.dodge < 3) and (_root.savefile.data.pnts > 0)) {
_root.savefile.data.pnts--;
_root.savefile.data.dodge++;
redefine4();
}
}
Symbol 384 MovieClip Frame 14
_root.gs.blackOut.gotoAndPlay(2);
Symbol 384 MovieClip Frame 85
setchar = false;
onEnterFrame = function () {
if ((this.light.hitTest(_root.hero) and (_root.hero.air == false)) and (!setchar)) {
_root.hero.onEnterFrame = function () {
this._x = this._x + _root.savefile.data.speed;
this.gotoAndStop("walk");
this._xscale = 100;
};
setchar = true;
setTimeout(function () {
_root.fadeToBlack.gotoAndPlay(2);
}, 600);
}
};
Symbol 384 MovieClip Frame 112
stop();
Symbol 391 MovieClip Frame 1
this.pX = this._x;
this.pY = this._y;
onEnterFrame = function () {
this._x = (this.pX + random(10)) - 5;
this._y = (this.pY + random(10)) - 5;
};
Symbol 403 Button
on (release) {
getURL ("http://beastgames.org/highscores.php?g=sl", "_blank");
}
Symbol 404 MovieClip Frame 3
stop();
if (_root.savefile.data.pname == undefined) {
resetr._visible = false;
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
} else {
sorc.gotoAndStop(2);
resetr._visible = true;
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gsong.stop();
_root.hero.rbrk = 0;
_root.beep1.start(0, 0);
if (_root.savefile.data.highlvl < 7) {
gotoAndPlay ("game");
setTimeout(function () {
_root.gsong.start(0, 1000000);
}, 400);
} else {
gotoAndPlay ("lvlSel");
}
}
if (Key.isDown(82)) {
_root.gsong.stop();
_root.beep1.start(0, 0);
gotoAndPlay ("resetyn");
}
};
}
Symbol 404 MovieClip Frame 4
onEnterFrame = null;
Symbol 404 MovieClip Frame 13
stop();
nameinput.onChanged = function () {
nameinput.text = nameinput.text.toUpperCase();
};
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.savefile.data.pname = nameinput.text;
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 14
onEnterFrame = null;
Symbol 404 MovieClip Frame 23
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 24
onEnterFrame = null;
Symbol 404 MovieClip Frame 33
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 34
onEnterFrame = null;
Symbol 404 MovieClip Frame 43
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 44
onEnterFrame = null;
Symbol 404 MovieClip Frame 53
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
_root.hero.rbrk = 0;
setTimeout(function () {
_root.gsong.start(0, 1000000);
}, 400);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 54
onEnterFrame = null;
Symbol 404 MovieClip Frame 61
onEnterFrame = null;
skill = "SKILL LEVEL: " + _root.savefile.data.lvl;
if (_root.savefile.data.lvl >= 12) {
skill = "SKILL LEVEL: MAX";
}
Symbol 404 MovieClip Frame 63
stop();
subject = "SUBJECT NAME: " + _root.savefile.data.pname;
_root.gamestart = true;
if (_root.level != "BOSS") {
_root.time = _root.startTime;
}
nextLvlUp = 20 + (_root.savefile.data.lvl * 24);
exp = (("EXPERIENCE: " + _root.savefile.data.exp) + "/") + nextLvlUp;
skill = "SKILL LEVEL: " + _root.savefile.data.lvl;
if (_root.savefile.data.lvl >= 12) {
skill = "SKILL LEVEL: MAX";
}
paus._visible = false;
onEnterFrame = function () {
if (!_root.dead) {
if (Key.isDown(32) and nosp) {
nosp = false;
if (_root.gpause) {
_root.gpause = false;
_root.beep1.start(0, 0);
} else {
_root.gpause = true;
_root.beep2.start(0, 0);
paus.gotoAndPlay(1);
}
trace(_root.gpause);
}
if (!Key.isDown(32)) {
nosp = true;
}
if (_root.gpause) {
paus._visible = true;
} else {
paus._visible = false;
}
} else {
_root.gpause = false;
}
};
Symbol 404 MovieClip Frame 70
function redefine1() {
switch (_root.savefile.data.def) {
case 1 :
_root.savefile.data.hp = 9;
ug_title = "HP+";
ug_text = "MY SKIN IS THICKER NOW, PROJECTILES SHOULD HURT LESS";
break;
case 2 :
_root.savefile.data.laser = true;
ug_title = "LASER PROOF?";
ug_text = "LASERS HURT LESS NOW, I STILL WOULDN'T WANT TO TOUCH ONE THOUGH";
break;
case 3 :
_root.savefile.data.hp = 12;
ug_title = "HP+++";
ug_text = "BULLETS FEEL KIND OF LIKE PIN PRICKS NOW, COOL.";
break;
default :
ug_title = "DEFENSE";
ug_text = "THIS STAT WILL INCREASE MY ABILITY TO TAKE DAMAGE";
}
}
function redefine2() {
switch (_root.savefile.data.run) {
case 1 :
_root.savefile.data.speed = 4.25;
ug_title = "SPEED+";
ug_text = "I FEEL A LITTLE FASTER, I BET I COULD DODGE THINGS BETTER NOW.";
break;
case 2 :
_root.savefile.data.fric = 0.8;
ug_title = "FRICTION BONUS";
ug_text = "EW... I STEPPED IN GUM. AT LEAST MY SHOES AREN'T SO SLIPPERY NOW.";
break;
case 3 :
_root.savefile.data.speed = 5;
ug_title = "SPEED++";
ug_text = "WOW! LOOK AT ME GO! I'M A REGULAR SPEED DEMON!";
break;
default :
ug_title = "RUNNING";
ug_text = "THIS STAT CAN UPGRADE MY SPEED AND CONTROL";
}
}
function redefine3() {
switch (_root.savefile.data.jump) {
case 1 :
_root.savefile.data.jumps = 2;
ug_title = "DOUBLE JUMP";
ug_text = "I BET IF I HIT JUMP WHILE I WAS IN THE AIR I COULD JUMP AGAIN.";
break;
case 2 :
_root.savefile.data.jheight = 10;
ug_title = "JUMP HEIGHT+";
ug_text = "WOW! I CAN JUMP SUPER HIGH NOW. MAYBE I'LL GET A SHOE DEAL...";
break;
case 3 :
_root.savefile.data.jumps = 3;
ug_title = "TRIPLE JUMP";
ug_text = "I MIGHT AS WELL BE FLYING, I CAN JUMP THREE TIMES BEFORE LANDING.";
break;
default :
ug_title = "JUMPING";
ug_text = "THIS STAT UPGRADES MY JUMPING ABILITIES";
}
}
function redefine4() {
switch (_root.savefile.data.dodge) {
case 1 :
_root.savefile.data.duck = true;
ug_title = "DUCK";
ug_text = "IF I HIT DOWN I BET I COULD DUCK AND BE LESS OF A TARGET.";
break;
case 2 :
_root.savefile.data.drop = true;
ug_title = "ROCK DROP";
ug_text = "HITTING DOWN IN MID-AIR COULD MAKE ME FALL FASTER";
break;
case 3 :
_root.savefile.data.roll = true;
ug_title = "EVASIVE ROLL";
ug_text = "HITTING LEFT OR RIGHT WHILE DUCKING COULD MAKE ME ROLL";
break;
default :
ug_title = "EVASION";
ug_text = "THIS STAT GIVES ME ABILITIES THAT MAKE ME MORE NIMBLE";
}
}
stop();
_root.gs.gotoAndStop(2);
_root.beep2.start(0, 0);
dodge_lvl = _root.savefile.data.dodge;
run_lvl = _root.savefile.data.run;
def_lvl = _root.savefile.data.def;
jump_lvl = _root.savefile.data.jump;
onEnterFrame = function () {
dodge_lvl = _root.savefile.data.dodge;
run_lvl = _root.savefile.data.run;
def_lvl = _root.savefile.data.def;
jump_lvl = _root.savefile.data.jump;
};
Symbol 404 MovieClip Frame 71
onEnterFrame = null;
Symbol 404 MovieClip Frame 79
stop();
restarting = false;
onEnterFrame = function () {
if (Key.isDown(89)) {
_root.gsong.stop();
restarting = true;
_root.hero.removeMovieClip();
gotoAndPlay(this._currentframe + 1);
}
if (Key.isDown(78)) {
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 80
onEnterFrame = null;
Symbol 404 MovieClip Frame 85
if (!restarting) {
gotoAndPlay ("title");
}
Symbol 404 MovieClip Frame 95
stop();
if (restarting) {
for (var g in _root) {
_root[g].removeMovieClip();
}
_root.savefile.data.pname = null;
_root.gotoAndStop("bgSplash");
}
Symbol 404 MovieClip Frame 105
score = _root.gscore;
stop();
if (_root.savefile.data.hscore == null) {
_root.savefile.data.hscore = 0;
}
if (_root.gscore > _root.savefile.data.hscore) {
_root.savefile.data.hscore = _root.gscore;
}
hscore = _root.savefile.data.hscore;
lreach = ((_root.level < 10) ? ("0" + _root.level) : (_root.level));
skilllvl = ((_root.savefile.data.lvl < 10) ? ("0" + _root.savefile.data.lvl) : (_root.savefile.data.lvl));
noSubmit = false;
onEnterFrame = function () {
if ((_root.restart < _root.time) or (_root.restart == null)) {
if (Key.isDown(89) and (!noSubmit)) {
noSubmit = true;
_root.beep1.start(0, 0);
_root.gotoAndStop(_root._currentframe + 1);
}
if (Key.isDown(78)) {
_root.beep1.start(0, 0);
_root.restart = _root.time + 20;
gotoAndStop(_currentframe + 1);
}
}
};
Symbol 404 MovieClip Frame 107
onEnterFrame = null;
Symbol 404 MovieClip Frame 113
_root.gpause = false;
stop();
Symbol 404 MovieClip Frame 116
stop();
Symbol 404 MovieClip Frame 125
stop();
Symbol 404 MovieClip Frame 126
onEnterFrame = null;
Symbol 404 MovieClip Frame 134
stop();
_root.gpause = false;
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 135
onEnterFrame = null;
Symbol 404 MovieClip Frame 143
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 144
onEnterFrame = null;
Symbol 404 MovieClip Frame 152
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 153
onEnterFrame = null;
Symbol 404 MovieClip Frame 161
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(this._currentframe + 1);
}
};
Symbol 404 MovieClip Frame 162
onEnterFrame = null;
Symbol 404 MovieClip Frame 170
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
_root.guns.attachMovie("boss", "boss", _root.dpth);
_root.guns.boss._x = 225;
_root.guns.boss._y = 120;
_root.dpth++;
gotoAndPlay ("game");
}
};
Symbol 404 MovieClip Frame 171
onEnterFrame = null;
Symbol 404 MovieClip Frame 180
stop();
lvlarray = new Array();
lvlarray.push(1);
if (_root.savefile.data.highlvl >= 7) {
lvlarray.push(7);
}
if (_root.savefile.data.highlvl >= 13) {
lvlarray.push(13);
}
if (_root.savefile.data.highlvl >= 19) {
lvlarray.push(19);
}
if (_root.savefile.data.bossReached) {
lvlarray.push("BOSS");
}
select = lvlarray.length - 1;
if (lvlarray[select] != "BOSS") {
lvlB = " ";
lvlP = "LEVEL " + lvlarray[select];
} else {
lvlP = " ";
lvlB = lvlarray[select];
}
onEnterFrame = function () {
if (Key.isDown(32)) {
setTimeout(function () {
_root.gsong.start(0, 1000000);
}, 400);
_root.beep1.start(0, 0);
if (lvlarray[select] != "BOSS") {
_root.startTime = 600 * (lvlarray[select] - 1);
} else {
_root.startTime = 15000;
}
_root.level = int(_root.startTime / 600) + 1;
gotoAndPlay ("game");
}
if (Key.isDown(38) and noUp) {
noUp = false;
if (select > 0) {
select--;
} else {
select = lvlarray.length - 1;
}
}
if (!Key.isDown(38)) {
noUp = true;
}
if (Key.isDown(40) and noDown) {
noDown = false;
if (select < (lvlarray.length - 1)) {
select++;
} else {
select = 0;
}
}
if (!Key.isDown(40)) {
noDown = true;
}
if (lvlarray[select] != "BOSS") {
lvlB = " ";
lvlP = "LEVEL " + lvlarray[select];
} else {
lvlP = " ";
lvlB = lvlarray[select];
}
};
Symbol 404 MovieClip Frame 181
onEnterFrame = null;
Symbol 404 MovieClip Frame 187
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.restart = _root.time + 20;
gotoAndStop(_currentframe + 1);
}
};
_root.myXML = new XML();
_root.myXML.ignoreWhite = true;
_root.scoresData = new Array();
_root.myXML.onLoad = function () {
var _local3 = this.firstChild.childNodes;
i = 0;
while (i < _local3.length) {
_root.scoresData.push(_local3[i].childNodes);
i++;
}
trace(_root.scoresData[1][0].firstChild.nodeValue);
_root.createList(20, 40, 10, _root.scoresData);
};
_root.myXML.load("http://beastgames.org/gamescores.php?g=sl&l=10");
_root.gs.gotoAndStop(5);
stop();
Symbol 404 MovieClip Frame 188
onEnterFrame = null;
_root.gs.gotoAndStop(4);
Symbol 412 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 56
stop();
_root.blsc.gotoAndPlay("bossTalk");
Symbol 417 MovieClip Frame 1
bars = _root.hero.hp;
for (var j in this) {
this[j].removeMovieClip();
}
i = bars;
while (i > 0) {
attachMovie("hbar", "hb" + i, i);
this["hb" + i]._x = 54 + (12 * (i - 1));
this["hb" + i]._y = -3;
i--;
}
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
_root.beep1.start(0, 0);
Symbol 419 MovieClip Frame 8
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 2
pts = _root.savefile.data.pnts;
onEnterFrame = function () {
pts = _root.savefile.data.pnts;
if (_root.savefile.data.pnts < 1) {
gotoAndStop(_currentframe + 1);
}
};
Symbol 423 MovieClip Frame 3
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
_root.blsc.gotoAndPlay("scorescreen");
gotoAndStop(_currentframe + 1);
}
};
Symbol 423 MovieClip Frame 4
onEnterFrame = null;
Symbol 423 MovieClip Frame 5
onEnterFrame = null;
Symbol 426 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 30
_root.attachMob("guy", 74.3, 24, 20);
Symbol 438 MovieClip Frame 81
stop();
Symbol 454 MovieClip Frame 1
stop();
gsongVol = 100;
Symbol 454 MovieClip Frame 25
onEnterFrame = function () {
_root.gsong.setVolume(gsongVol);
if (gsongVol > 0) {
gsongVol = gsongVol - 1.26582278481013;
} else {
gsongVol = 0;
}
};
Symbol 454 MovieClip Frame 105
onEnterFrame = null;
_root.gsong.stop();
_root.beep2.setVolume(100);
_root.beep2.start(0, 0);
Symbol 454 MovieClip Frame 175
_root.esong.setVolume(200);
_root.esong.start(0, 10000);
Symbol 454 MovieClip Frame 181
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.beep1.start(0, 0);
gotoAndPlay(_currentframe + 1);
}
};
Symbol 454 MovieClip Frame 182
onEnterFrame = null;
Symbol 454 MovieClip Frame 189
score = _root.gscore;
if (_root.savefile.data.hscore == null) {
_root.savefile.data.hscore = 0;
}
if (_root.gscore > _root.savefile.data.hscore) {
_root.savefile.data.hscore = _root.gscore;
}
hscore = _root.savefile.data.hscore;
skilllvl = ((_root.savefile.data.lvl < 10) ? ("0" + _root.savefile.data.lvl) : (_root.savefile.data.lvl));
Symbol 454 MovieClip Frame 192
score = _root.gscore;
stop();
if (_root.savefile.data.hscore == null) {
_root.savefile.data.hscore = 0;
}
if (_root.gscore > _root.savefile.data.hscore) {
_root.savefile.data.hscore = _root.gscore;
}
hscore = _root.savefile.data.hscore;
skilllvl = ((_root.savefile.data.lvl < 10) ? ("0" + _root.savefile.data.lvl) : (_root.savefile.data.lvl));
noSubmit = false;
onEnterFrame = function () {
if ((_root.restart < _root.time) or (_root.restart == null)) {
if (Key.isDown(89) and (!noSubmit)) {
noSubmit = true;
_root.beep1.start(0, 0);
_root.gotoAndStop(_root._currentframe + 1);
}
if (Key.isDown(78)) {
_root.beep1.start(0, 0);
_root.restart = _root.time + 20;
gotoAndStop(_currentframe + 1);
}
}
};
Symbol 454 MovieClip Frame 194
onEnterFrame = null;
_root.myXML = new XML();
_root.myXML.ignoreWhite = true;
_root.scoresData = new Array();
_root.myXML.onLoad = function () {
var _local3 = this.firstChild.childNodes;
i = 0;
while (i < _local3.length) {
_root.scoresData.push(_local3[i].childNodes);
i++;
}
trace(_root.scoresData[1][0].firstChild.nodeValue);
_root.createList2(20, 40, 10, _root.scoresData);
};
_root.myXML.load("http://beastgames.org/gamescores.php?g=sl&l=10");
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
esongFade = 100;
_root.beep2.start(0, 0);
setTimeout(function () {
_root.esong.stop();
_root.esong.setVolume(100);
_root.gotoAndStop("bgSplash");
}, 3000);
gotoAndStop(_currentframe + 1);
onEnterFrame = function () {
if (esongFade > 0) {
esongFade = esongFade - 1.53846153846154;
} else {
esongFade = 0;
}
_root.esong.setVolume(esongFade);
};
}
};