[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (2.59 KiB) ●
function gomusic(obj, id) {
obj.stop();
obj.attachSound(id);
obj.start();
}
function gosound(id) {
game_sound.attachSound(id);
game_sound.start();
}
function goloop(id) {
_root.currloop = id;
loop_sound.attachSound(id);
loop_sound.start();
}
function startintro() {
gomusic(game_music, "music0");
this.attachMovie("intro", "intro", this.getNextHighestDepth());
}
function startstory() {
gomusic(game_music, "music0");
game_music.setVolume(75);
this.attachMovie("story_mode", "story", this.getNextHighestDepth());
}
function startgame() {
gomusic(game_music, "music3");
game_music.setVolume(35);
_root.attachMovie("everything", "everything", _root.getNextHighestDepth());
_root.attachMovie("ui", "ui", _root.getNextHighestDepth());
}
function charselect() {
_root.attachMovie("charselect", "charselect", _root.getNextHighestDepth());
}
Stage.scaleMode = "noscale";
Stage.align = "TL";
_quality = "BEST";
_root.showdepth = false;
swidth = Stage.width;
sheight = Stage.height;
enemyoverride = 0;
itemoverride = 0;
falthmode = false;
gravity = 1;
ground = 300;
power = 17;
maxspeed = 15;
accel = 0.8;
tvel = 20;
friction = 8;
yscalemod = 0.35;
gravity = 0.7;
ground = 300;
power = 12;
maxspeed = 2;
accel = 0.8;
tvel = 20;
friction = 8;
nmespeedmax = 3;
ospawnspeed = (spawnspeed = 30);
itemspawnspeed = 300;
nukecost = 250;
stats = new Object();
stats.level = 1;
stats.exp = 0;
stats.gold = 0;
xpval = 50;
combocount = 0;
combox = 1;
kills = (flees = (texts = 0));
this.onEnterFrame = function () {
gbl = _root.getBytesLoaded();
gbt = _root.getBytesTotal();
if (((gbl / gbt) * 100) > 99) {
delete onEnterFrame;
if (char) {
intro.swapDepths(99);
intro.removeMovieClip();
startgame();
} else {
startstory();
}
}
};
var game_sound = new Sound();
var game_music = new Sound();
var loop_sound = new Sound();
var player_sound = new Sound();
var nme_sound = new Sound();
loop_sound.onSoundComplete = function () {
loop_sound.start();
};
game_music.onSoundComplete = function () {
game_music.start();
};
_global.levelval = function (lvl) {
var _local2;
if (lvl < 11) {
_local2 = (40 * Math.pow(lvl, 2)) + (360 * lvl);
} else if (lvl <= 27) {
_local2 = ((-0.4 * Math.pow(lvl, 3)) + (40.4 * Math.pow(lvl, 2))) + (396 * lvl);
} else {
_local2 = (((65 * Math.pow(lvl, 2)) - (165 * lvl)) - 6750) * 0.82;
}
return(Math.round(_local2));
};
_global.randrange = function (min, max) {
min = ((!min) ? 0 : (min));
var _local2 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local2);
};
Symbol 33 MovieClip [bomb_trail] Frame 32 (8 B)
stop();
Symbol 36 MovieClip [lvlanim] Frame 114 (33 B)
stop();
this.removeMovieClip();
Symbol 45 MovieClip Frame 1 (12.96 KiB) ● ●
function gold(amt) {
amt = amt * _root.combox;
_root.stats.gold = _root.stats.gold + amt;
gettext(amt, "f6fc09", _root.combox);
_root.gosound("snd_gold");
}
function getxp() {
_root.stats.exp = _root.stats.exp + _root.xpval;
if (_root.texts < 10) {
gettext(_root.xpval, "e000ce");
}
}
function comboup() {
_root.combocount++;
if ((_root.combocount % 100) == 0) {
_root.combox = _root.combox + 0.5;
}
}
function gettext(val, color, size) {
size = size || 1;
_root.texts++;
newtxt = _parent.attachMovie("getval", "getval" + randrange(1, 1000), _parent.getNextHighestDepth());
newtxt.txt.txtval.text = "+" + val;
newtxt.txt.txtval.autoSize = "center";
if (color) {
newtxt.txt.txtval.textColor = "0x" + color;
}
newtxt._x = this._x;
newtxt._y = (this._y + this.anim._y) - this.anim._height;
newtxt._xscale = (newtxt._yscale = 100 + (size * 10));
}
function createswoosh(depth, varx, vary, delay, chargeoffset) {
chargeoffset = chargeoffset || 0;
chargeoffset = (100 - chargeoffset) / 100;
newswoosh = _parent.attachMovie("swoosh", "swoosh" + randrange(1, 999), _parent.player.getDepth() + depth);
newswoosh._xscale = (newswoosh._yscale = _xscale);
newswoosh.attacktype = chargetype;
newswoosh.chargetimer = chargetimer * chargeoffset;
newswoosh._xscale = newswoosh._xscale * dir;
newswoosh._x = varx;
newswoosh._y = vary;
newswoosh.vdelay = delay;
return(newswoosh);
}
uptype = "ddragon";
_root.player = this;
debug = _root.debug.debug;
yscalemod = _root.yscalemod;
if (uptype == "ddragon") {
ddragon = true;
}
if (ddragon) {
walktrack = _parent.walktrack;
}
yinertia = (yspeed = (xinertia = (idlespeed = 0)));
falling = true;
dashing = (charge_shoot = false);
tjump = (dbljump = 1);
dash = (chargeattack = false);
dir = 1;
dashtimer = 10;
dtimer = 0;
attacktimer = 20;
atimer = 0;
chargetimer = (charging = 0);
maxcharge = 240;
atkcombo = (_root.bulletcount = (testvar = 0));
maxatkcombo = 3;
atkcombo_timer = 10;
slash_duration = [20, 20, 30];
if (_root.falthmode) {
dash = (chargeattack = true);
_root.stats.gold = 50000;
}
_root.bulletmax = 2;
oxscale = 100;
var depth;
var lastcode;
dp._visible = _root.showdepth;
char_attributes = {r:["bullet", "charge_beam", "ghost"], dk:["slash", "slam", "arthas"], wd:["bomb", "bounce", "horrify"]};
attacktype = char_attributes[_root.char][0];
chargetype = char_attributes[_root.char][1];
crashtype = char_attributes[_root.char][2];
this.attachMovie(_root.char + "_anim", "anim", this.getNextHighestDepth());
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local3 = Key.getCode();
if (_local3 == 36) {
_root.debug._alpha = ((_root.debug._alpha < 1) ? 100 : 0);
}
if ((_local3 == 32) && (!nuking)) {
chargetimer = (charging = false);
attacking = false;
if ((dbljump > 0) && (!jumplock)) {
_root.gosound("snd_jump");
if (dbljump != tjump) {
anim.gotoAndStop("jump");
} else {
anim.gotoAndStop("jump");
}
dbljump--;
yspeed = _root.power + (Math.abs(xinertia) / 4);
jumping = true;
jumplock = true;
_rotation = 0;
anim._y = anim._y - yspeed;
}
if ((((!jumping) && (!jumplock)) && (yspeed >= 0)) && (dbljump == 0)) {
jumplock = true;
anim.gotoAndStop("dbljump");
yspeed = yspeed + (_root.power + (Math.abs(xinertia) / 4));
jumping = true;
_rotation = 0;
anim._y = anim._y - yspeed;
}
}
if (((_local3 == 90) && (!atklock)) && (!nuking)) {
atklock = true;
if (Key.isDown(16)) {
anim.gotoAndStop("flyingkick");
} else {
if ((attacktype == "bullet") || (attacktype == "bomb")) {
atimer = attacktimer;
}
if ((attacktype == "bullet") && (_root.bulletcount < _root.bulletmax)) {
_root.gosound("snd_raynor_atk");
newswoosh = _parent.attachMovie("swoosh", "swoosh" + randrange(1, 999), _parent.player.getDepth() - 1);
newswoosh._x = _x + (dir * 14);
newswoosh._y = (_y + (anim._y * (_xscale / 100))) - (82 * (_xscale / 100));
newswoosh.xinertia = xinertia;
newswoosh._xscale = (newswoosh._yscale = _xscale);
newswoosh.attacktype = attacktype;
newswoosh._xscale = newswoosh._xscale * dir;
}
if ((attacktype == "slash") && (atkcombo < maxatkcombo)) {
attacking = true;
xinertia = xinertia - (dir * 10);
slash_timer = slash_duration[(++atkcombo) - 1];
anim.gotoAndStop("atk" + atkcombo);
newswoosh = _parent.attachMovie("swoosh", "swoosh" + randrange(1, 999), _parent.player.getDepth() + 10);
newswoosh._x = _x + (dir * 14);
newswoosh._y = (_y + (anim._y * (_xscale / 100))) - (82 * (_xscale / 100));
newswoosh.xinertia = xinertia;
newswoosh._xscale = (newswoosh._yscale = _xscale);
newswoosh.attacktype = attacktype;
newswoosh._xscale = newswoosh._xscale * dir;
}
if ((attacktype == "bomb") && (_root.bulletcount < _root.bulletmax)) {
_root.gosound("snd_wd_shot" + randrange(1, 3));
newswoosh = _parent.attachMovie("swoosh", "swoosh" + randrange(1, 999), _parent.player.getDepth() + 10);
newswoosh._x = _x + (dir * -24);
newswoosh._y = (_y + (anim._y * (_xscale / 100))) - (102 * (_xscale / 100));
newswoosh.xinertia = xinertia;
newswoosh._xscale = (newswoosh._yscale = _xscale);
newswoosh.attacktype = attacktype;
newswoosh._xscale = newswoosh._xscale * dir;
newswoosh.detonateheight = _y;
}
if (!jumping) {
} else {
anim.gotoAndStop("jump_shoot");
}
}
}
if (((_local3 == 88) && (chargeattack)) && (!attacking)) {
attacking = true;
anim.gotoAndStop("charge");
charging = true;
}
if (((_local3 == 67) && (_root.stats.gold >= _root.nukecost)) && (!nuking)) {
attacking = true;
nuking = true;
_parent.attachMovie("nuke", "nuke", _parent.getNextHighestDepth() + 9999);
_root.stats.gold = _root.stats.gold - _root.nukecost;
}
if ((((_local3 == 37) || (_local3 == 39)) && (dash)) && (xinertia < 10)) {
if ((lastcode == _local3) && (dtimer > 0)) {
anim.gotoAndStop("dash");
dashing = true;
_root.gosound("snd_dash_" + randrange(1, 3));
xinertia = 30 * (-dir);
if (!jumping) {
newdash = _parent.attachMovie("dash_fx", "dash_fx" + randrange(1, 999), _parent.player.getDepth() + 1);
newdash._x = _x - 9.7;
newdash._y = _y + 3.8;
newdash._xscale = (newdash._yscale = _xscale * 1.5);
newdash._xscale = newdash._xscale * dir;
} else {
yspeed = 2;
}
attacking = false;
chargetimer = (charging = false);
trace("dbltap");
}
}
};
keyListener.onKeyUp = function () {
if (nuking) {
return(undefined);
}
keycode = Key.getCode();
if (keycode == 32) {
jumplock = false;
}
if (keycode == 90) {
atklock = false;
}
if (((keycode == 37) || (keycode == 39)) && (dash)) {
dtimer = dashtimer;
lastcode = keycode;
_root.maxspeed = 2;
}
if ((keycode == 88) && (chargeattack)) {
if (chargetimer > 0) {
anim.gotoAndStop("charge_shot");
chargepct = chargetimer / maxcharge;
if (chargetype == "charge_beam") {
chargex = _x - (dir * 55);
chargey = (_y + (anim._y * (_xscale / 100))) - (82 * (_xscale / 100));
var _local2 = createswoosh(-50, chargex, chargey);
_local2.xinertia = xinertia;
}
if (chargetype == "slam") {
if (chargepct > 250) {
chargepct = 250;
}
var _local2 = createswoosh(50, _x, _y + 10);
if ((chargepct * 100) > 50) {
_local2 = createswoosh(30, _x - (30 * chargepct), _y, 10, 10);
_local2 = createswoosh(31, _x + (30 * chargepct), _y, 10, 10);
}
if ((chargepct * 100) > 80) {
_local2 = createswoosh(-6, _x - (60 * chargepct), _y - 10, 20, 30);
_local2 = createswoosh(-5, _x + (60 * chargepct), _y - 10, 20, 30);
_local2 = createswoosh(-11, _x - (70 * chargepct), _y - 15, 30, 40);
_local2 = createswoosh(-10, _x + (70 * chargepct), _y - 15, 30, 40);
}
}
if (chargetype == "bounce") {
var _local2 = createswoosh(-50, _x + (dir * -24), (_y + (anim._y * (_xscale / 100))) - (102 * (_xscale / 100)));
_local2.xinertia = xinertia;
_local2.detonateheight = _y;
attacking = false;
}
} else {
attacking = false;
}
charging = false;
chargetimer = -40;
}
};
Key.addListener(keyListener);
onEnterFrame = function () {
if (nuking) {
return(undefined);
}
if (dtimer) {
dtimer--;
}
if (atimer) {
atimer--;
}
if (atkcombo) {
if ((--slash_timer) < 0) {
atkcombo = 0;
attacking = false;
}
}
if (charging) {
chargetimer = chargetimer + 3;
if (chargetimer > maxcharge) {
}
} else {
_root.loop_sound.stop(_root.currloop);
}
dir = ((anim._xscale > 0) ? -1 : 1);
if (dashing && (Math.abs(xinertia) < 5)) {
dashing = false;
}
if (ddragon) {
yoffset = Math.abs((((_y - walktrack._y) / walktrack._height) * 100) - 100) - 0.6;
if (yoffset < 0) {
yoffset = 1;
}
_yscale = (100 - (yscalemod * yoffset));
_xscale = (100 - (yscalemod * yoffset));
depth = Math.round((Math.abs(yoffset - 100) * 100) + randrange(0, 10));
this.swapDepths(depth);
dp.text = depth;
}
xtarg = (_x + xinertia) + idlespeed;
if (ddragon && (walktrack.hitTest(xtarg, _y, true))) {
_x = xtarg;
} else {
x = xtarg;
}
xinertia = xinertia - (xinertia / _root.friction);
if ((xinertia < 0.2) && (xinertia > -0.2)) {
xinertia = 0;
}
ytarg = (_y + yinertia) + idlespeed;
if (walktrack.hitTest(_x, ytarg, true)) {
_y = ytarg;
}
if ((!dashing) || (dashing && (Math.abs(xinertia) < 5))) {
yinertia = yinertia - ((yinertia / _root.friction) * 1.5);
}
if ((yinertia < 0.2) && (yinertia > -0.2)) {
yinertia = 0;
}
if (falling) {
yspeed = yspeed - _root.gravity;
idlespeed = 0;
_rotation = 0;
}
b_btm = _y + (bbox._height / 2);
b_top = _y - (bbox._height / 2);
b_rgt = _x + (bbox._width / 2);
b_lft = _x - (bbox._width / 2);
if (vbump) {
vbump = ((yspeed >= 0) ? true : false);
}
if (!vbump) {
anim._y = anim._y - yspeed;
}
falling = true;
if (!maxex) {
maxex = 0;
}
if (anim._y > maxex) {
anim._y = 0;
yspeed = 0;
dbljump = tjump;
jumping = false;
if (((!attacking) && (!dashing)) && ((Math.abs(xinertia) + Math.abs(yinertia)) < 1)) {
var _local3 = (atimer ? "idle_shoot" : "idle");
anim.gotoAndStop(_local3);
}
}
if (ddragon && (!attacking)) {
if (Key.isDown(38)) {
if (yinertia > ((-_root.maxspeed) * 0.75)) {
yinertia = yinertia - _root.accel;
}
if ((!dashing) && (!jumping)) {
var _local3 = (atimer ? "walkshoot" : "walkright");
anim.gotoAndStop(_local3);
}
} else if (Key.isDown(40)) {
if (yinertia < (_root.maxspeed * 0.75)) {
yinertia = yinertia + _root.accel;
}
if ((!dashing) && (!jumping)) {
var _local3 = (atimer ? "walkshoot" : "walkright");
anim.gotoAndStop(_local3);
}
}
}
if (Key.isDown(40) && (!ddragon)) {
attacking = false;
if (!jumping) {
anim.gotoAndStop("crouch");
}
} else if (Key.isDown(37) && (jumping || (!attacking))) {
if (xinertia > (-_root.maxspeed)) {
xinertia = xinertia - _root.accel;
}
if (ddragon) {
anim._xscale = -100;
} else {
anim._xscale = oxscale * -1;
}
if ((!jumping) && (!dashing)) {
var _local3 = (atimer ? "walkshoot" : "walkright");
anim.gotoAndStop(_local3);
}
} else if (Key.isDown(39) && (jumping || (!attacking))) {
if (xinertia < _root.maxspeed) {
xinertia = xinertia + _root.accel;
}
if (ddragon) {
anim._xscale = 100;
} else {
anim._xscale = oxscale;
}
if ((!jumping) && (!dashing)) {
var _local3 = (atimer ? "walkshoot" : "walkright");
anim.gotoAndStop(_local3);
}
} else if (((((((Math.abs(yspeed) < 0.03) && (!jumping)) && (!charging)) && (!dashing)) && (!attacking)) && (!vbump)) && (Math.abs(yinertia) < 1)) {
var _local3 = (atimer ? "idle_shoot" : "idle");
anim.gotoAndStop(_local3);
idle = true;
}
if (jumping && (atimer)) {
var _local3 = (atimer ? "jump_shoot" : "jump");
anim.gotoAndStop(_local3);
}
if ((((yspeed < -2) && (!attacking)) && (!dashing)) && (_currentframe != 47)) {
var _local3 = (atimer ? "fall_shoot" : "fall");
anim.gotoAndStop(_local3);
attacking = false;
}
if (Key.isDown(38)) {
}
debug.text = (((((((((("atkcombo: " + atkcombo) + "\nbulletcount: ") + _root.bulletcount) + "\nattacking: ") + attacking) + "\ncharge: ") + ((chargetimer / maxcharge) * 100)) + "\nnmecount: ") + _root.nmecount.length) + "\ngetvals: ") + _root.texts;
(((("\nCode: " + Key.getCode()) + "\tACSII: ") + Key.getAscii()) + "\tKey: ") + chr(Key.getAscii());
debug.autoSize = true;
};
Symbol 46 MovieClip [everything] Frame 1 (2.45 KiB) ●
function spawnnme(boss) {
if (_root.enemyoverride && (!boss)) {
return(undefined);
}
newdude = this.attachMovie("nme", "nme" + (++nmenum), this.getNextHighestDepth());
newdude._x = -60;
newdude._y = randrange(walktrack._y, walktrack._y + walktrack._height);
if (boss) {
newdude._x = -200;
newdude._y = walktrack._y + (walktrack._height / 2);
newdude._xscale = (newdude._yscale = 300);
newdude.boss = true;
}
}
function spawnitem() {
if (itemoverride) {
return(undefined);
}
newitem = this.attachMovie("item_obj", "item" + (++itemnum), this.getNextHighestDepth());
newitem._x = randrange(walktrack._width - (walktrack._width / 3), walktrack._width - 40);
newitem._y = randrange(walktrack._y, walktrack._y + walktrack._height);
newitem.type = items[randrange(0, items.length - 1)];
}
if (!init) {
init = true;
_root.focus = player;
oscreenscale = (screenscale = 1);
otrackspeed = (trackspeed = 17);
nmenum = (itemnum = 0);
timer = (otimer = _root.spawnspeed);
itemspawnspeed = _root.itemspawnspeed;
ox = this._x;
oy = this._y;
init = true;
_root.debug._alpha = 0;
_root.debug.swapDepths(_root.getNextHighestDepth());
items = ["gold_s", "gold_s", "gold_s", "gold_s", "gold_s", "gold_l", "gold_l"];
pool = this;
}
onEnterFrame = function () {
_root.nmecount = [];
_root.bulletcount = 0;
for (var _local3 in pool) {
if (typeof(pool[_local3]) == "movieclip") {
if (pool[_local3]._name.indexOf("swoosh") > -1) {
_root.bulletcount++;
}
if (pool[_local3]._name.indexOf("nme") > -1) {
_root.nmecount.push(pool[_local3]);
}
}
}
if (shake > 1) {
_x = (ox + random(--shake));
_y = (oy + random(shake));
}
if (_root.camtrack) {
if (screenscale != oscreenscale) {
trackspeed = screenscale;
}
targx = (Stage.width / 2) - (_root.focus._x * screenscale);
targy = (Stage.height / 2) - (_root.focus._y * screenscale);
this._x = this._x + ((targx - this._x) / (trackspeed / screenscale));
this._y = this._y + ((targy - this._y) / (trackspeed / screenscale));
trackspeed = otrackspeed;
oscreenscale = screenscale;
}
_yscale = (screenscale * 100);
_xscale = (screenscale * 100);
if (((--timer) < 0) && (_root.nmecount.length < 28)) {
timer = _root.spawnspeed;
spawnnme();
}
if ((--itemspawnspeed) < 0) {
itemspawnspeed = randrange(_root.itemspawnspeed / 1.5, _root.itemspawnspeed * 2);
spawnitem();
}
};
Symbol 59 MovieClip Frame 1 (282 B)
if (!init) {
timer = (otimer = 7 - _parent._parent.lopespeed);
init = true;
onEnterFrame = function () {
if ((--timer) <= 0) {
timer = otimer;
if (_currentframe != _totalframes) {
nextFrame();
} else {
gotoAndStop (1);
}
}
};
stop();
}
Symbol 65 MovieClip Frame 51 (24 B)
_parent._parent.bury();
Symbol 66 MovieClip Frame 1 (8 B)
stop();
Symbol 66 MovieClip Frame 2 (51 B)
_root.gosound("snd_murloc_die" + randrange(1, 3));
Symbol 68 MovieClip [nme] Frame 1 (1.99 KiB) ●
function die(cause) {
if (boss && (hp > 0)) {
trace(hp);
var _local4;
if (cause.attacktype == "bullet") {
_local4 = 1032410 /* 0x0FC0DA */;
}
if (cause.attacktype == "slash") {
_local4 = 3024310 /* 0x2E25B6 */;
} else {
_local4 = 2025710 /* 0x1EE8EE */;
}
hp = hp - _local4;
_x = (_x - 4);
roff = 255;
if ((cause.attacktype == "bullet") || (cause.attacktype == "bomb")) {
cause.removeMovieClip();
} else {
cause.neuter = true;
}
return(undefined);
}
_root.focus.getxp();
_root.focus.comboup();
this.onEnterFrame = function () {
_alpha = (_alpha ? 0 : 100);
};
_root.kills++;
this._name = "deadloc" + this._name.split("nme")[1];
anim.gotoAndStop("die");
}
function bury() {
this.removeMovieClip();
}
var depth;
roff = 0;
dp._visible = _root.showdepth;
yscalemod = _root.yscalemod;
walktrack = _parent.walktrack;
lopespeed = randrange(1, _root.nmespeedmax);
stimer = (ostimer = 30);
if (boss) {
_root.bossman = this;
ohp = (hp = 297254110);
lopespeed = 0.75;
trace("BOOOSSSSS");
}
this.onEnterFrame = function () {
if (_root.focus.nuking) {
return(undefined);
}
this._x = this._x + lopespeed;
if (roff > 0) {
roff = roff - 20;
if (roff < 0) {
roff = 0;
}
var _local3 = new flash.geom.Transform(this);
var _local4 = _local3.colorTransform;
_local4.redOffset = roff;
_local3.colorTransform = _local4;
}
yoffset = Math.abs((((_y - walktrack._y) / walktrack._height) * 100) - 100) - 0.6;
if (yoffset < 0) {
yoffset = 1;
}
if (!boss) {
_yscale = (100 - (yscalemod * yoffset));
_xscale = (100 - (yscalemod * yoffset));
} else if ((--stimer) < 0) {
stimer = ostimer;
_root.everything.shake = 10;
}
depth = Math.round((Math.abs(yoffset - 100) * 100) + randrange(0, 10));
this.swapDepths(depth);
dp.text = depth;
if (_x > (_root.swidth + 50)) {
_root.combocount = 0;
_root.combox = 1;
_root.flees++;
this.removeMovieClip();
}
};
Symbol 124 MovieClip [wd_anim] Frame 1 (8 B)
stop();
Symbol 131 MovieClip Frame 16 (8 B)
stop();
Symbol 136 MovieClip Frame 20 (8 B)
stop();
Symbol 162 MovieClip Frame 1 (136 B)
mch.onEnterFrame = (mch2.onEnterFrame = function () {
this._height = _root.sheight * 3;
this._alpha = (this._alpha ? 0 : 100);
});
Symbol 167 MovieClip [dk_anim] Frame 1 (8 B)
stop();
Symbol 167 MovieClip [dk_anim] Frame 2 (30 B)
_root.gosound("snd_dk_atk1");
Symbol 167 MovieClip [dk_anim] Frame 3 (30 B)
_root.gosound("snd_dk_atk2");
Symbol 167 MovieClip [dk_anim] Frame 4 (30 B)
_root.gosound("snd_dk_atk3");
Symbol 167 MovieClip [dk_anim] Frame 11 (31 B)
_root.goloop("snd_dk_charge");
Symbol 167 MovieClip [dk_anim] Frame 12 (36 B)
_root.gosound("snd_dk_chargeshot");
Symbol 212 MovieClip Frame 10 (8 B)
stop();
Symbol 220 MovieClip Frame 1 (383 B)
function spawndot() {
ndot = holder.attachMovie("r_charge_fx", "rcharge" + randrange(1, 999), holder.getNextHighestDepth());
ndot._rotation = randrange(-70, 70);
ndot._xscale = (ndot._yscale = randrange(100, 500));
}
stimer = (ostimer = 10);
spawndot();
this.onEnterFrame = function () {
if ((--stimer) < 0) {
stimer = randrange(5, ostimer);
spawndot();
}
};
Symbol 226 MovieClip [r_anim] Frame 1 (8 B)
stop();
Symbol 226 MovieClip [r_anim] Frame 9 (35 B)
_root.goloop("snd_raynor_charge");
Symbol 226 MovieClip [r_anim] Frame 10 (40 B)
_root.gosound("snd_raynor_chargeshot");
Symbol 227 MovieClip [swoosh] Frame 1 (3.97 KiB) ●
function die() {
this.swapDepths(0);
this.removeMovieClip();
}
mch._visible = false;
attacktype = attacktype || "slash";
if (attacktype == "bounce") {
nbounceheight = (_y - detonateheight) / 10;
attacktype = "bomb";
bounce = true;
trace(attacktype);
}
chargetimer = chargetimer || 0;
vdelay = vdelay || 0;
xinertia = (xinertia * 2) || 0;
yinertia = 0;
if (attacktype == "bullet") {
xinertia = 10;
if (_xscale > 0) {
xinertia = xinertia * -1;
}
}
if (attacktype == "bomb") {
yinertia = bounceheight || -10;
xinertia = Math.abs(xinertia) + 5;
if (_xscale > 0) {
xinertia = xinertia * -1;
}
}
pool = _root.nmecount;
newatk = this.attachMovie(attacktype + "_type", "graphic", this.getNextHighestDepth());
maxcharge = _root.focus.maxcharge;
var chargepct = ((chargetimer / maxcharge) * 100);
if (attacktype == "charge_beam") {
if (chargetimer > maxcharge) {
chargetimer = maxcharge;
}
chargepct = ((chargetimer + 1) / (maxcharge + 1)) * 100;
this._yscale = chargepct;
}
if (attacktype == "slam") {
_yscale = 0;
_xscale = 0;
}
onEnterFrame = function () {
if ((--vdelay) < 0) {
if (attacktype == "charge_beam") {
chargetimer = chargetimer - 3;
if (chargetimer <= 0) {
_yscale = (_yscale - 3);
}
if (_yscale <= 0) {
_root.game_sound.stop("snd_raynor_chargeshot");
_root.focus.attacking = false;
this.die();
}
}
if (attacktype == "slam") {
if ((_yscale <= (chargepct - 10)) && (!descending)) {
_yscale = (_yscale - ((_yscale - chargepct) / 7));
_xscale = (_yscale - ((_yscale - chargepct) / 7));
} else {
descending = true;
_alpha = (_alpha - 4);
if (_xscale > 0) {
_xscale = (_xscale - 4);
}
if (_alpha < 0) {
_root.focus.attacking = false;
die();
}
}
}
_x = (_x + xinertia);
_y = (_y + yinertia);
if (attacktype == "bomb") {
yinertia = yinertia + 0.8;
}
for (var _local4 in pool) {
if ((pool[_local4]._name.indexOf("nme") > -1) && ((attacktype != "bomb") || (pool[_local4].boss))) {
xtest = false;
if ((!chargetimer) && (Math.abs(pool[_local4]._x - this._x) < 15)) {
xtest = true;
}
if (chargetimer && (this.hitTest(pool[_local4]))) {
xtest = true;
}
if ((attacktype == "explosion") && (Math.abs(pool[_local4]._x - this._x) < 50)) {
xtest = true;
}
if (attacktype == "slam") {
ytest = Math.abs(pool[_local4]._y - this._y) < ((30 * chargepct) / 100);
} else if (attacktype == "explosion") {
ytest = Math.abs(pool[_local4]._y - this._y) < 30;
} else {
ytest = Math.abs((pool[_local4]._y - this._y) - (82 * (Math.abs(_xscale) / 100))) < 15;
}
if (pool[_local4].boss) {
ytest = this.hitTest(pool[_local4]);
xtest = Math.abs(pool[_local4]._x - this._x) < 45;
}
if (xtest && (ytest)) {
if (pool[_local4].boss && (this.neuter)) {
return(undefined);
}
pool[_local4].die(this);
if ((_xscale < 0) && (!pool[_local4].boss)) {
pool[_local4]._xscale = pool[_local4]._xscale * -1;
}
if (attacktype == "bullet") {
die();
}
}
}
}
if ((_x < -40) || (_x > (_root.swidth + 40))) {
die();
}
if ((attacktype == "bomb") && (_y >= detonateheight)) {
_root.gosound("snd_wd_expl" + randrange(1, 3));
newswoosh = _parent.attachMovie("swoosh", "expl_" + randrange(1, 9999), this.getDepth() + 10);
newswoosh._x = _x;
newswoosh._y = detonateheight;
newswoosh._xscale = (newswoosh._yscale = _yscale * 2);
newswoosh.attacktype = "explosion";
if (bounce) {
newswoosh = _root.focus.createswoosh(this.getDepth() + 10, this._x + 20, this._y - 20);
newswoosh.detonateheight = detonateheight;
newswoosh.bounceheight = nbounceheight;
newswoosh.attacktype = "bomb";
}
die();
}
}
};
Symbol 248 MovieClip Frame 1 (363 B)
function togglesound() {
if (off) {
off = false;
this.gotoAndStop(1);
_root.game_sound.setVolume(100);
_root.game_music.setVolume(40);
} else {
off = true;
this.gotoAndStop(2);
_root.game_sound.setVolume(0);
_root.game_music.setVolume(0);
}
}
if (!init) {
init = true;
off = false;
this.onRelease = togglesound;
stop();
}
Symbol 253 MovieClip [ui] Frame 1 (6.01 KiB) ● ●
function levelup() {
_root.xpval = Math.round(_root.xpval * 1.5);
_root.stats.exp = ((_root.stats.exp > nextlevel) ? (_root.stats.exp - nextlevel) : 0);
_root.stats.level++;
updspeeds();
_root.player.attachMovie("lvlanim", "lvl", _root.player.getNextHighestDepth());
if (((_root.stats.level % 10) == 0) && ((_root.focus.attacktype == "bullet") || (_root.focus.attacktype == "bomb"))) {
_root.bulletmax++;
_root.focus.gettext("1 shots!");
}
if (((_root.stats.level % 1) == 0) && (_root.stats.level < 25)) {
spawncrowd("cr_rand" + randrange(1, 8), randrange(136, 775), randrange(299, 308));
}
if (_root.stats.level == 3) {
_root.focus.dash = true;
abltext("Dash UNLOCKED (<< or >>)");
}
if (_root.stats.level == 5) {
_root.focus.chargeattack = true;
abltext("Charge Attack UNLOCKED ('X')");
}
if (_root.stats.level == 10) {
spawncrowd("cr_black", 414, 310);
abltext("Double JUMP UNLOCKED");
_root.focus.tjump = (_root.focus.dbljump = 2);
}
if (_root.stats.level == 20) {
spawncrowd("cr_olaf", 496, 307);
}
if (_root.stats.level == 30) {
spawncrowd("cr_arthas", 454, 314);
}
if (_root.stats.level >= 26) {
if (levelflufftxt[_root.stats.level - 35]) {
abltext(levelflufftxt[_root.stats.level - 35]);
}
}
if (_root.stats.level == 100) {
_root.bosstime = true;
}
}
function spawncrowd(type, xl, yl) {
newcr = _parent.everything.bg.attachMovie(type, (("cr_" + _root.stats.level) + "_") + randrange(1, 9), _parent.everything.bg.getNextHighestDepth());
newcr._x = xl;
newcr._y = yl;
newcr.swapDepths((newcr._y * 100) + randrange(1, 99));
return(newcr);
}
function abltext(str) {
abltxt.codetxt.text = str;
abltxt.going = true;
abltxt.codetxt.autoSize = "center";
abltxt._y = 421;
abltxt.timer = 120;
abltxt._alpha = 100;
abltxt.onEnterFrame = function () {
this._y = this._y - ((this._y - 399) / 7);
if ((--this.timer) < 0) {
this._alpha--;
if (this._alpha < 0) {
abltxt.going = false;
delete this.onEnterFrame;
}
}
};
}
function updspeeds() {
_root.xpval = Math.round(_root.stats.level * 16);
_root.nmespeedmax = (_root.stats.level * 0.1) + 3;
_root.spawnspeed = (_root.ospawnspeed - (_root.stats.level * 0.75)) + 3;
}
levelflufftxt = ["Unlocked Alternate Costume " + randrange(1, 100), "Unlocked Alternate Costume " + randrange(1, 100), "Unlocked Alternate Costume " + randrange(1, 100), "Unlocked Alternate Costume " + randrange(1, 100), "Unlocked Alternate Costume " + randrange(1, 100), "Stealth Camo Unlocked", "Challenge Room Unlocked", "Nightmare Mode Unlocked", "Multiplayer Unlocked", "Single Player Unlocked", "Player Housing Unlocked", "Gift Shop Unlocked", "Wine Vineyard Unlocked", "Dating Sim Unlocked", "Marriage Mode Unlocked", "Unlocking Sim Unlocked", "Locking Sim Unlocked", "Loch Modan Unloched", "Pop'n'Lock Mode Unlocked", "Pandering Mode UNLOCKED", "You're Great!", "Excellent Work!", "I like what you did there.", "Wow!", "Jeepers!", "This puts my score to shame.", "Let's go steady!", "Oh boy!", "Hot Dog!", "You're the best around!", "You're the king of cool!", "That's the highest score EVER!", "I'm mailing you a trophy.", "Would you sign my ball cap?", "Can I be your side-kick?", "Great Odin's Raven!", "The leaderboards just exploded!", "No one's ever made it this far!", "Oh Em Gee!", "You make me so proud.", "You should go pro!", "They'll tell tales of this day.", "Your biography will make a great movie!", "That's more points than I've ever seen!", "You should burn the rope?!", "Is this too easy, or what?", "You make it look easy.", "Your class is balanced. Everyone else is OP.", "By Metzen's Beard!", "WELL BAM, there it is!", "I like your style, amigo.", "You're almost there!", "We've been through a lot, you and me.", "That's a lot of dead murlocs.", "You getting this, camera-guy?!", "Alligator BONUS!", "Primate Escape!", "I sent a screenshot to the president.", "Almost there, champ!", "That's world class awesome, partner.", "Cheese and crackers!", "Mr. Fiddlepants BONUS!", "Soooo close...", "I'm getting all misty.", "The air's all tingly.", "Sounds like a boss monster's coming.", "You should save your game, ok?", "Insert diskette 13 of 14.", "You're really going after this, huh?", "Ok, I'm going to step out for a snack."];
updspeeds();
xpbar._x = bgbar._x;
xpbar._y = bgbar._y;
timer = 60;
bosswaittimer = 150;
bosshp._xscale = 1;
bosshp._visible = false;
onEnterFrame = function () {
if (_root.bosstime && (!bossinit)) {
_root.enemyoverride = true;
bosshp._visible = true;
bosshp._alpha = 100;
bosshp._xscale = bosshp._xscale + ((100 - bosshp._xscale) / 7);
if (bosshp._xscale > 99) {
bosshp._xscale = 100;
if ((--bosswaittimer) < 0) {
bossinit = true;
_root.everything.spawnnme(true);
}
}
}
if (_root.bosstime && (bossinit)) {
bosshp.hbar._xscale = (_root.bossman.hp / _root.bossman.ohp) * 100;
if (_root.bossman.hp <= 0) {
bosshp._alpha = bosshp._alpha - 8;
if (bosshp._alpha < 0) {
bosshp._visible = false;
_root.enemyoverride = false;
_root.bosstime = false;
}
}
}
if (_root.falthmode && (((--timer) <= 0) && (Key.isDown(27)))) {
levelup();
timer = 8;
}
if (((_root.stats.gold > _root.nukecost) && (!abltxt.going)) && (!nuketext)) {
nuketext = true;
abltext("Nuke Available! ('C')");
}
nextlevel = levelval(_root.stats.level);
leveltxt.text = "level " + _root.stats.level;
xp.text = (_root.stats.exp + "/") + nextlevel;
goldtxt.text = _root.stats.gold + "G";
combotxt.text = ((("combo: " + _root.combocount) + " (") + _root.combox) + "x)";
bulletstxt.text = "shots: " + _root.bulletmax;
killtxt.text = _root.kills;
fleetxt.text = _root.flees;
bulletstxt.autoSize = (goldtxt.autoSize = true);
xp.autoSize = "center";
leveltxt.autoSize = (combotxt.autoSize = "right");
xpbar._width = (bgbar._width * _root.stats.exp) / nextlevel;
if (_root.stats.exp >= nextlevel) {
levelup();
}
};
Symbol 256 MovieClip [slash_type] Frame 1 (112 B)
this.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
_parent.die();
}
};
Symbol 264 MovieClip [bullet_type] Frame 1 (76 B)
bfx.cacheAsBitmap = true;
bmask.cacheAsBitmap = true;
bfx.setMask(bmask);
Symbol 281 MovieClip [dash_fx] Frame 1 (121 B)
this.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
this.removeMovieClip();
}
};
Symbol 287 MovieClip Frame 1 (36 B)
stop();
gotoAndStop(_parent.type);
Symbol 289 MovieClip [item_obj] Frame 1 (1.33 KiB) ●
if (!init) {
init = true;
yscalemod = _root.yscalemod;
walktrack = _parent.walktrack;
life = 300;
ostimer = 20;
stimer = (scount = 0);
type = type || "gold_s";
loot = {gold_s:10, gold_l:50};
this.die = function () {
this.removeMovieClip();
};
this.onEnterFrame = function () {
yoffset = Math.abs((((_y - walktrack._y) / walktrack._height) * 100) - 100) - 0.6;
if (yoffset < 0) {
yoffset = 1;
}
_yscale = (100 - (yscalemod * yoffset));
_xscale = (100 - (yscalemod * yoffset));
depth = Math.round((Math.abs(yoffset - 100) * 100) + randrange(0, 10));
this.swapDepths(depth);
if ((--life) < 0) {
_alpha = (_alpha ? 0 : 100);
if (life < -50) {
die();
}
}
if ((Math.abs(_root.focus._x - this._x) < 15) && (Math.abs(_root.focus._y - this._y) < 15)) {
if (type.indexOf("gold") > -1) {
_root.focus.gold(loot[type]);
}
die();
}
if ((--stimer) < 0) {
stimer = ostimer;
newspark = this.attachMovie("sparkle", "spark" + (++scount), this.getNextHighestDepth());
newspark._x = randrange(0, this._width / 4);
newspark._x = newspark._x * (randrange(0, 1) ? 1 : -1);
newspark.size = randrange(1, 3);
newspark._xscale = (newspark._yscale = 50 + (newspark.size * 10));
newspark.yspeed = newspark.size / 3;
}
};
}
Symbol 293 MovieClip [sparkle] Frame 1 (270 B)
var rot = randrange(1, 3);
yspeed = _xscale / 100;
this.onEnterFrame = function () {
_rotation = (_rotation + rot);
this._y = this._y - this.yspeed;
if (this._y < -70) {
this._alpha--;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
};
Symbol 297 MovieClip [getval] Frame 1 (147 B)
onEnterFrame = function () {
_y = (_y-1);
_alpha = (_alpha - 3);
if (_alpha < 0) {
_root.texts--;
this.removeMovieClip();
}
};
Symbol 330 MovieClip Frame 79 (8 B)
stop();
Symbol 350 MovieClip Frame 1 (430 B)
targy = _y - 30;
targalpha = 100;
_alpha = 0;
btntxt.text = txt;
this.onRelease = function () {
_root.gosound("snd_select");
btnfunction();
};
onRollOver = function () {
sarrow._alpha = 100;
_root.gosound("snd_blip");
};
onRollOut = (onReleaseOutside = function () {
sarrow._alpha = 0;
});
onEnterFrame = function () {
_alpha = (_alpha + ((targalpha - _alpha) / 7));
_y = (_y + ((targy - _y) / 7));
};
Symbol 351 MovieClip [intro] Frame 1 (1.24 KiB) ●
function codetext(string) {
combo = [];
_root.gosound("snd_select");
code._alpha = 100;
code.codetxt.text = string;
code.timer = 120;
code.onEnterFrame = function () {
if ((--this.timer) < 0) {
this._alpha = this._alpha - 0.5;
}
};
}
combo = [];
combotimer = (ocombotimer = 30);
var keyListenercode = new Object();
keyListenercode.onKeyDown = function () {
combotimer = ocombotimer;
var _local1 = Key.getCode();
combo.push(_local1);
if (_local1 == 32) {
trace("combo:" + combo);
}
};
Key.addListener(keyListenercode);
this.onEnterFrame = function () {
if ((--combotimer) < 0) {
combotimer = ocombotimer;
combo = [];
}
combostring = combo.join(",");
if (combostring == "38,38,40,40,37,39,37,39,66,65") {
codetext("30 Lives UNLOCKED!");
}
if (combostring == "73,68,68,81,68") {
codetext("God Mode UNLOCKED!");
}
if (combostring == "73,68,75,70,65") {
codetext("All Ammo UNLOCKED!");
}
if (combostring == "77,85,83,84,65,67,72,69") {
codetext("MUSTACHE MODE Enabled!");
}
if (combostring == "66,76,65,67,75,83,72,69,69,80,87,65,76,76") {
codetext("Fog of War LIFTED!");
}
if (combostring == "70,65,76,84,72,32") {
codetext("That's Rad!");
_root.falthmode = true;
}
};
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip [intro] Frame 57 (205 B)
onClipEvent (load) {
txt = "Start!!";
btnfunction = function () {
Key.removeListener(_parent.keyListenercode);
_root.charselect();
_root.intro.swapDepths(99);
_root.intro.removeMovieClip();
};
}
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip [intro] Frame 62 (148 B)
onClipEvent (load) {
txt = "Instructions";
btnfunction = function () {
_parent.attachMovie("tips", "tips", _parent.getNextHighestDepth());
};
}
Symbol 351 MovieClip [intro] Frame 75 (8 B)
stop();
Symbol 356 MovieClip Frame 1 (41 B)
if (!init) {
init = true;
stop();
}
Symbol 357 MovieClip Frame 1 (399 B)
chara = this.attachMovie(char + "_anim", "char", this.getNextHighestDepth());
chara._y = chara._height / 2;
this.onRollOver = function () {
bg.play();
_root.gosound("snd_blip");
};
this.onRollOut = (onReleaseOutside = function () {
bg.gotoAndStop(1);
});
onRelease = function () {
_root.gosound("snd_select");
_root.char = char;
_root.startgame();
_parent.removeMovieClip();
};
Instance of Symbol 357 MovieClip in Symbol 359 MovieClip [charselect] Frame 5 (40 B)
onClipEvent (load) {
this.char = "r";
}
Instance of Symbol 357 MovieClip in Symbol 359 MovieClip [charselect] Frame 7 (41 B)
onClipEvent (load) {
this.char = "dk";
}
Instance of Symbol 357 MovieClip in Symbol 359 MovieClip [charselect] Frame 9 (41 B)
onClipEvent (load) {
this.char = "wd";
}
Symbol 359 MovieClip [charselect] Frame 24 (8 B)
stop();
Symbol 365 MovieClip [bomb_type] Frame 1 (1.02 KiB) ●
dir = ((_parent.xinertia < 0) ? 1 : -1);
this.xinertia = randrange(2, 7);
this.yinertia = randrange(1, 2);
timer = (otimer = 1);
faderate = 2;
onEnterFrame = function () {
if ((--timer) < 0) {
timer = otimer;
ntrail = this._parent.attachMovie("bomb_trail", "bombtrail" + randrange(1, 999), this._parent.getNextHighestDepth());
ntrail._x = _x;
ntrail._y = _y;
scalemod = (randrange(0, 1) * 2) - (1 * randrange(0, 40));
ntrail._xscale = (ntrail._yscale = _root.focus._yscale - (scalemod * 3));
ntrail._xscale = ntrail._xscale * dir;
ntrail.yinertia = yinertia;
ntrail.xinertia = -_parent.xinertia;
ntrail.targ = _parent;
ntrail.faderate = faderate;
ntrail.onEnterFrame = function () {
this._alpha = this._alpha - 5;
this._x = this._x + (dir * this.xinertia);
this._y = this._y - (this.yinertia + this.targ.yinertia);
this._alpha = this._alpha - this.faderate;
this._rotation = this._rotation + 40;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
}
};
Symbol 391 MovieClip Frame 60 (74 B)
if (_parent._parent.attacktype) {
_parent._parent.removeMovieClip();
}
Symbol 397 MovieClip [tips] Frame 1 (1.53 KiB) ●
function gotip(dir) {
tiptxt.text = tips[(currtip = currtip + dir)];
}
currtip = -1;
tips = ["Kill the Failocs", "Use the arrow keys on your keyboard to move.\nPress the spacebar to jump.", "Press 'Z' to attack.\nEach hero has a unique attack.", "Press and hold 'X' to use your charge attack.", ("Press 'C' to use a nuke.\n*Costs " + _root.nukecost) + " gold", "Double tap left/right to dash.\n(Once you've acquired the ability)", "Use the typewriter to save.", "As your character levels, the enemy spawns quicker and can move faster.", "Use the codec to call for support.", "Build your combo by attacking the enemy without letting any escape. Build a high enough combo to earn a multiplier which increases the value of gold pick ups.", "Learn the enemy's pattern to defeat him.", "There is no pattern.", "There might be a cow level.", "No, there isn't. Sorry.", "Have fun.", "Write Poetry.", "Learn an instrument.", "Take up fly fishing.", "Write a book.", "Read your book aloud to strangers.", "Explore caves.", "Fight bears.", "Actually, don't fight bears.\nLeave that to Russian Wrestling Professionals.", "Become a Russian Wrestler.", "Meet interesting people.", "Join the Army, they said.", "See the World, they said.", "I'd rather be sailing.", "The Witchdoctor is not a licensed medical professional.\nFair warning."];
gotip(1);
onEnterFrame = function () {
if (currtip <= 0) {
pre._visible = false;
} else {
pre._visible = true;
}
if (currtip >= (tips.length - 1)) {
nxt._visible = false;
} else {
nxt._visible = true;
}
};
Instance of Symbol 394 MovieClip in Symbol 397 MovieClip [tips] Frame 1 (82 B)
onClipEvent (load) {
this.onRelease = function () {
};
useHandCursor = false;
}
Instance of Symbol 350 MovieClip "pre" in Symbol 397 MovieClip [tips] Frame 1 (91 B)
onClipEvent (load) {
txt = "Prev";
btnfunction = function () {
_parent.gotip(-1);
};
}
Instance of Symbol 350 MovieClip in Symbol 397 MovieClip [tips] Frame 1 (101 B)
onClipEvent (load) {
txt = "Ok, ok";
btnfunction = function () {
_parent.removeMovieClip();
};
}
Instance of Symbol 350 MovieClip "nxt" in Symbol 397 MovieClip [tips] Frame 1 (90 B)
onClipEvent (load) {
txt = "Next";
btnfunction = function () {
_parent.gotip(1);
};
}
Symbol 441 MovieClip Frame 32 (18 B)
gotoAndPlay (13);
Symbol 444 MovieClip [nuke] Frame 1 (27 B)
_root.gosound("snd_nuke");
Symbol 444 MovieClip [nuke] Frame 116 (223 B)
pool = this._parent;
for (var i in pool) {
if (typeof(pool[i]) == "movieclip") {
if (pool[i]._name.indexOf("nme") > -1) {
pool[i].die();
}
}
}
_root.focus.attacking = false;
_root.focus.nuking = false;
Symbol 444 MovieClip [nuke] Frame 134 (24 B)
this.removeMovieClip();
Symbol 505 MovieClip Frame 1 (141 B)
if (!init) {
timer = 220;
init = true;
this.onEnterFrame = function () {
if ((--timer) < 0) {
play();
}
};
stop();
}
Symbol 508 MovieClip Frame 190 (8 B)
stop();
Symbol 509 MovieClip [story_mode] Frame 1 (2.07 KiB) ●
function okenough() {
_root.startintro();
this.removeMovieClip();
}
story_text = ["Long ago, in the age of men, after the age of beasts and just before the age of All-You-Can-Eat buffets, an ancient and most terrible evil beset the land.", "With gnashing teeth and breath most foul, a plague of terrible creatures was loosed from the earth's quivering bowels to affront the villagers' placid lives.", "Some scholars say these beasts sprang from the villagers' dogged and eager hearts.", "Other wise men lay blame in the folly of careless watchmen whose tired gaze o'er looked the looming catastrophe.", "If you ask me, though, someone just forgot to flip a switch. I dunno, these things happen.", "In that time of turmoil, many honest lives were forfeit to the gurgling threat amid a wailing din lost in a sea of despair, but humanity persevered.", "Time now has passed, and the warbling danger once again rears its head and waves its apologetic flag.", "Three brave heroes must rise to take up the mantle of humanity's last great hope and prevent the impending...", "", "Failoc-alypse!!", "", "", "", "", "", "Oh, hey.", "You know that 8-bit game based on that action movie starring California's 38th governor where he goes to Mars and meets the guy with another guy in his stomach?", "Yeah, anyway: Did you know that in that game, if you sat through the long, tedious intro text crawl, you earned an extra life?", "It's true!", "So in honor of our green jump-suited forefather, I hereby grant you an extra life!", "Use it wisely.", "", "", "", "Look, I don't keep track of extra lives here, so you'd probably better write '+1 lives' on a post-it or something so you don't forget."];
st_txt.st_txt.text = story_text.join("\n\n");
st_txt.st_txt.autoSize = true;
st_txt._y = (st_mask._y + (st_mask._height / 2)) + 50;
onEnterFrame = function () {
st_txt._y = st_txt._y - 0.35;
if (st_txt._y < ((-st_txt._height) + 200)) {
this.fade._alpha = this.fade._alpha + 0.45;
trace(fade._alpha);
if (fade._alpha >= 100) {
okenough();
}
}
};
this.onRelease = function () {
okenough();
};