Frame 1
fscommand ("showmenu", "false");
Stage.scaleMode = "exactFit";
up = 38;
down = 40;
left = 37;
right = 39;
select = 32;
volumemax = 50;
volume = 50;
lives = 5;
livesmax = 9;
lives_strt = 9;
cutshow = false;
qset = 2;
skills = ["Easy", "Normal", "Hard"];
skillset = 1;
skill = skills[skillset];
easy = 8;
normal = 5;
hard = 3;
stop();
Frame 2
stop();
sounds = new Sound(_root);
sounds.menu1 = new Sound(_root);
sounds.menu2 = new Sound(_root);
sounds.menutrack = new Sound(_root);
sounds.leveltrack = new Sound(_root);
sounds.bosstrack = new Sound(_root);
sounds.drumtrack = new Sound(_root);
sounds.menu1.attachSound("menu1");
sounds.menu2.attachSound("menu2");
sounds.menutrack.attachSound("menutrack");
sounds.leveltrack.attachSound("level1track");
sounds.bosstrack.attachSound("bosstrack");
sounds.drumtrack.attachSound("drumloop");
sounds.level.setvolume(_root.volume);
Frame 3
stop();
Frame 4
stop();
Frame 5
function scroll_fn() {
var _local1 = _root;
panreset1();
if (!_local1.pause) {
if (_local1.scroll) {
distance = distance + 1;
_local1.world.bg._x = _local1.world.bg._x - scroll_speed;
_local1.world.fg._x = _local1.world.fg._x - scroll_speed;
for (i in world) {
if ((substring(i, 1, 3)) == "bad") {
_local1.world[i]._x = _local1.world[i]._x - scroll_speed;
}
}
for (i in world) {
if ((substring(i, 1, 2)) == "fg") {
if (_local1.world[i]._x > 300) {
_local1.world[i]._x = _local1.world[i]._x - scroll_speed;
} else {
_local1.world[i]._x = _local1.world[i]._x - (scroll_speed + 1);
}
}
}
for (i in world) {
if ((substring(i, 1, 2)) == "it") {
_local1.world[i]._x = _local1.world[i]._x - scroll_speed;
}
}
}
}
}
function zoomworld() {
var _local1 = _root;
if (!zfn) {
panreset();
}
if (!_local1.pause) {
if (zoom > 100) {
zoomstep = (zoom - 100) / 5;
} else if (zoom < 100) {
zoomstep = (100 - zoom) / 20;
}
if (world._xscale < _local1.zoom) {
zfn = true;
if (world.guy._x > 85) {
panworld_l(l);
} else if (world.guy._x < -85) {
panworld_r(r);
}
world._xscale = world._xscale + zoomstep;
world._yscale = world._yscale + zoomstep;
} else if (world._xscale > _local1.zoom) {
zfn = false;
if (world.guy._x > 85) {
panworld_l(l);
} else if (world.guy._x < -85) {
panworld_r(r);
}
world._xscale = world._xscale - zoomstep;
world._yscale = world._yscale - zoomstep;
} else if (world._xscale == _local1.zoom) {
}
}
}
function panworld_l(side) {
if ((root.world._x < (world_x - 100)) && (zfn)) {
world._x = world._x - 20;
} else if ((root.world._x < world_x) && (!zfn)) {
world._x = world._x + 20;
}
}
function panworld_r(side) {
if ((world._x < (world_x + 100)) && (zfn)) {
world._x = world._x + 20;
} else if ((root.world._x < world_x) && (!zfn)) {
world._x = world._x - 20;
}
}
function panreset() {
if (world._x > (world_x + 10)) {
world._x = world._x - 2;
} else if (world._x < (world_x - 10)) {
world._x = world._x + 2;
}
}
stop();
_root.sounds.drumtrack.stop();
_root.sounds.leveltrack.start(0, 999);
up = 38;
down = 40;
left = 37;
right = 39;
select = 32;
super = 68;
attack = 83;
jump = 65;
pausekey = 32;
pause = false;
world_x = _root.world._x;
scroll_speed = 8;
zoom = 100;
distance = 1;
zooming = false;
scroll = true;
level = 1;
var i;
_root.cutshow = false;
_root.sb = true;
lives = _root.lives_strt;
wallet = 0;
kills = 0;
_root.world.guy.hp = 30;
Instance of Symbol 810 MovieClip "world" in Frame 5
onClipEvent (enterFrame) {
_parent.zoomworld();
}
Instance of Symbol 811 MovieClip in Frame 5
onClipEvent (load) {
_root.dmax = 30;
}
onClipEvent (enterFrame) {
_root.dhealth = _root.world.guy.hp;
this.gotoAndStop(_root.currentframe);
if (_root.dhealth > _root.dmax) {
_root.dhealth = _root.dmax;
} else if (_root.dhealth <= 0) {
_root.world.guy.gotoAndStop("die");
_root.dhealth = 0;
}
_root.dhp = Math.round(100 * (_root.dhealth / _root.dmax));
if (((this._xscale - 1) < _root.dhp) and ((this._xscale + 1) > _root.dhp)) {
setProperty(this, _xscale , _root.dhp);
}
if ((_root.currentframe > _root.dhp) and (_root.currentframe > 0)) {
if ((_root.currentframe - 2) > _root.dhp) {
_root.currentframe = _root.currentframe - 3;
} else {
_root.currentframe = _root.currentframe - 1;
}
} else if ((_root.currentframe < _root.dhp) and (_root.currentframe < 100)) {
if ((_root.currentframe + 2) < _root.dhp) {
_root.currentframe = _root.currentframe + 3;
} else {
_root.currentframe = _root.currentframe + 1;
}
}
}
onClipEvent (load) {
_root.currentframe = 100;
}
Instance of Symbol 828 MovieClip "meter" in Frame 5
onClipEvent (load) {
setProperty("mult", _visible , 0);
setProperty(this, _visible , 0);
}
onClipEvent (enterFrame) {
if (_parent.world.combo_act == false) {
setProperty("mult", _visible , 0);
setProperty(this, _visible , 0);
}
}
Instance of Symbol 832 MovieClip "sbar" in Frame 5
onClipEvent (load) {
this.gotoAndStop(100);
}
onClipEvent (enterFrame) {
if (_root.pause) {
stop();
} else if (_currentframe != 100) {
play();
}
}
Instance of Symbol 860 MovieClip "pausebox" in Frame 5
onClipEvent (load) {
function keyup_fn() {
if (!Key.isDown(_root.pausekey)) {
keyup = true;
}
}
}
onClipEvent (enterFrame) {
keyup_fn();
if ((Key.isDown(_root.pausekey) && (keyup)) && (!_root.cutshow)) {
keyup = false;
if (_root.pausemenu && (menu.close)) {
_root.pausemenu = false;
} else {
_root.pausemenu = true;
}
}
if (!_root.cutshow) {
if (_root.pausemenu) {
_root.pausebox.gotoAndStop(2);
_root.pause = true;
} else {
_root.pausebox.gotoAndStop(1);
_root.pause = false;
}
}
}
Instance of Symbol 909 MovieClip "cut" in Frame 5
onClipEvent (load) {
this.swapDepths(988);
}
Frame 9
gotoAndStop ("exit");
Frame 10
stop();
_root.sounds.drumtrack.stop();
_root.sounds.leveltrack.start(0, 999);
pause = false;
_root.cutshow = false;
world_x = _root.world._x;
scroll_speed = 8;
zoom = 100;
distance = 1;
zooming = false;
scroll = true;
level = 2;
var i;
_root.sb = true;
kills = 0;
_root.world.guy.hp = 30;
Instance of Symbol 921 MovieClip "world" in Frame 10
onClipEvent (enterFrame) {
_parent.zoomworld();
}
Frame 14
gotoAndStop ("exit");
Frame 16
unloadMovieNum (997);
funds_fn();
pausebox.removeMovieClip();
cut.removeMovieClip();
gotoAndStop ("logo");
Instance of Symbol 800 MovieClip "GameArea" in Frame 17
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 802 MovieClip "fg_m1" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 569);
}
Instance of Symbol 804 MovieClip "fg1" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 520);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t1" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 501);
}
Instance of Symbol 802 MovieClip "fg_m2" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 536);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t3" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 503);
}
Instance of Symbol 804 MovieClip "fg3" in Frame 17
onClipEvent (load) {
this.swapDepths(1099);
}
Instance of Symbol 14 MovieClip "combo" in Frame 17
onClipEvent (enterFrame) {
if (_parent.combo_act) {
_parent.combo_end();
}
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
_parent.combo_end();
}
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t2" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 502);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t4" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 504);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t5" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 505);
}
Instance of Symbol 804 MovieClip "fg8" in Frame 17
onClipEvent (load) {
this.swapDepths(4323);
}
Instance of Symbol 804 MovieClip "fg7" in Frame 17
onClipEvent (load) {
this.swapDepths(7639);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t6" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 506);
}
Instance of Symbol 804 MovieClip "fg9" in Frame 17
onClipEvent (load) {
this.swapDepths(1525);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t7" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 507);
}
Instance of Symbol 804 MovieClip "fg11" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 527);
}
Instance of Symbol 802 MovieClip "fg_m3" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 513);
}
Instance of Symbol 802 MovieClip "fg_m4" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 514);
}
Instance of Symbol 802 MovieClip "fg_m5" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 515);
}
Instance of Symbol 804 MovieClip "fg10" in Frame 17
onClipEvent (load) {
this.swapDepths(1583);
}
Instance of Symbol 802 MovieClip "fg_m6" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 516);
}
Instance of Symbol 802 MovieClip "fg_m7" in Frame 17
onClipEvent (load) {
this.swapDepths(this._y + 517);
}
Instance of Symbol 14 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.distance >= _parent.dist[0]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Frame 17
onClipEvent (load) {
_root.kills = 0;
this.swapDepths(997);
}
Instance of Symbol 537 MovieClip [officer01] "bad5" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
name = "Smith";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zomt" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 300;
_y = 320;
name = "Zefsf";
hp = 15;
}
Instance of Symbol 261 MovieClip [zom_b] "zomt" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 300;
_y = 320;
name = "Zefsf";
hp = 15;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "right";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "right";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "right";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "left";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "left";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 381 MovieClip [officer02] "bad2" in Frame 18
onClipEvent (enterFrame) {
name = "Joe";
this.swapDepths(this._y);
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 537 MovieClip [officer01] "bad5" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
name = "Smith";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "left";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 473 MovieClip [officer03] in Frame 18
onClipEvent (enterFrame) {
name = "Sam";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
hp = 50;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 422 MovieClip [bear] in Frame 18
onClipEvent (load) {
xpos = "right";
this.swapDepths(this._y + 200);
}
onClipEvent (load) {
_x = 350;
_y = 300;
name = "Oscar";
hp = 100;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "left";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 236 MovieClip [dog] in Frame 18
onClipEvent (load) {
xpos = "left";
}
onClipEvent (load) {
_x = -150;
_y = 400;
name = "Henry";
hp = 10;
}
Instance of Symbol 261 MovieClip [zom_b] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 287 MovieClip [zom_c] "zom" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
onClipEvent (load) {
_x = 80;
_y = 300;
name = "Zeff";
hp = 10;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Instance of Symbol 624 MovieClip [bot1] "bot1" in Frame 18
onClipEvent (enterFrame) {
name = "Jeff";
}
onClipEvent (load) {
hp = 100;
}
Symbol 2 MovieClip Frame 35
removeMovieClip(_parent);
Symbol 3 MovieClip Frame 20
removeMovieClip(_parent);
Symbol 4 MovieClip Frame 31
removeMovieClip(_parent);
Symbol 5 MovieClip [bill] Frame 1
gotoAndStop(2 + random(3));
Symbol 5 MovieClip [bill] Frame 2
stop();
Symbol 5 MovieClip [bill] Frame 3
stop();
Symbol 5 MovieClip [bill] Frame 4
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 3
stop();
Symbol 10 MovieClip [spark] Frame 1
spark.gotoandstop(1 + random(3));
Symbol 10 MovieClip [spark] Frame 5
removeMovieClip(this);
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 5
stop();
Symbol 76 MovieClip Frame 6
stop();
Symbol 76 MovieClip Frame 7
stop();
Symbol 76 MovieClip Frame 8
stop();
Symbol 76 MovieClip Frame 9
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 76 MovieClip Frame 11
stop();
Symbol 76 MovieClip Frame 12
stop();
Symbol 76 MovieClip Frame 13
stop();
Symbol 76 MovieClip Frame 14
stop();
Symbol 76 MovieClip Frame 15
stop();
Symbol 76 MovieClip Frame 16
stop();
Symbol 76 MovieClip Frame 17
stop();
Symbol 76 MovieClip Frame 18
stop();
Symbol 76 MovieClip Frame 19
stop();
Symbol 76 MovieClip Frame 20
stop();
Symbol 76 MovieClip Frame 21
stop();
Symbol 76 MovieClip Frame 22
stop();
Symbol 76 MovieClip Frame 23
stop();
Symbol 76 MovieClip Frame 24
stop();
Symbol 76 MovieClip Frame 25
stop();
Symbol 76 MovieClip Frame 26
stop();
Symbol 76 MovieClip Frame 27
stop();
Symbol 76 MovieClip Frame 28
stop();
Symbol 76 MovieClip Frame 29
stop();
Symbol 76 MovieClip Frame 30
stop();
Symbol 76 MovieClip Frame 31
stop();
Symbol 76 MovieClip Frame 32
stop();
Symbol 76 MovieClip Frame 33
stop();
Symbol 76 MovieClip Frame 34
stop();
Symbol 76 MovieClip Frame 35
stop();
Symbol 76 MovieClip Frame 36
stop();
Symbol 76 MovieClip Frame 37
stop();
Symbol 76 MovieClip Frame 38
stop();
Symbol 76 MovieClip Frame 39
stop();
Symbol 76 MovieClip Frame 40
stop();
Symbol 76 MovieClip Frame 41
stop();
Symbol 76 MovieClip Frame 42
stop();
Symbol 76 MovieClip Frame 43
stop();
Symbol 76 MovieClip Frame 44
stop();
Symbol 76 MovieClip Frame 45
stop();
Symbol 76 MovieClip Frame 46
stop();
Symbol 76 MovieClip Frame 47
stop();
Symbol 76 MovieClip Frame 48
stop();
Symbol 76 MovieClip Frame 49
stop();
Symbol 76 MovieClip Frame 50
stop();
Symbol 76 MovieClip Frame 51
stop();
Symbol 76 MovieClip Frame 52
stop();
Symbol 76 MovieClip Frame 53
stop();
Symbol 76 MovieClip Frame 54
stop();
Symbol 76 MovieClip Frame 55
stop();
Symbol 76 MovieClip Frame 56
stop();
Symbol 76 MovieClip Frame 57
stop();
Symbol 76 MovieClip Frame 58
stop();
Symbol 76 MovieClip Frame 59
stop();
Symbol 76 MovieClip Frame 60
stop();
Symbol 78 MovieClip [hbar] Frame 1
stop();
Instance of Symbol 14 MovieClip in Symbol 78 MovieClip [hbar] Frame 1
onClipEvent (load) {
_parent.label.gotoandstop(_parent.name);
_parent.label2.gotoandstop(_parent.name);
hpcurrentframe = 100;
hpmax = _parent._parent["bad_" + _parent.name].hp;
trace("name" + _parent.name);
}
onClipEvent (enterFrame) {
_parent._x = _parent._parent["bad_" + _parent.name]._x - 40;
_parent._y = _parent._parent["bad_" + _parent.name]._y + 10;
health = _parent._parent["bad_" + _parent.name].hp;
_parent.gotoandstop(hpcurrentframe);
if (health > hpmax) {
health = hpmax;
} else if (health <= 0) {
removeMovieClip(_parent);
_parent._parent["bad_" + _parent.name].gotoandstop("dead");
health = 0;
}
hp = math.round(100 * (health / hpmax));
if ((hpcurrentframe > hp) and (hpcurrentframe > 0)) {
if ((hpcurrentframe - 2) > hp) {
hpcurrentframe = hpcurrentframe - 3;
} else {
hpcurrentframe = hpcurrentframe - 1;
}
} else if ((hpcurrentframe < hp) and (hpcurrentframe < 100)) {
if ((hpcurrentframe + 2) < hp) {
hpcurrentframe = hpcurrentframe + 3;
} else {
hpcurrentframe = hpcurrentframe + 1;
}
}
}
Instance of Symbol 14 MovieClip in Symbol 78 MovieClip [hbar] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 1);
}
Symbol 78 MovieClip [hbar] Frame 100
stop();
Symbol 86 MovieClip Frame 20
_parent.gotoandstop("stand");
Symbol 93 MovieClip Frame 1
_parent.jump_st = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 94 MovieClip Frame 7
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 94 MovieClip Frame 14
_parent.gotoAndStop("stand");
Instance of Symbol 89 MovieClip "hit" in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 97 MovieClip Frame 4
_parent.attack_st = "1";
Symbol 97 MovieClip Frame 7
_parent.attack_st = "0";
_parent.gotoAndStop("stand");
Instance of Symbol 89 MovieClip "hit" in Symbol 99 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 99 MovieClip Frame 5
_parent.attack_st = "2";
Symbol 99 MovieClip Frame 8
_parent.attack_st = "0";
_parent.gotoAndStop("stand");
Symbol 101 MovieClip Frame 19
_parent.jump_st = false;
_parent.gotoAndStop("stand");
Instance of Symbol 89 MovieClip "hit" in Symbol 103 MovieClip Frame 12
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 103 MovieClip Frame 19
_parent.jump_st = false;
_parent.gotoAndStop("stand");
Symbol 107 MovieClip Frame 1
_root.zooming = true;
_parent.attack_st = "5";
_root.zoom = 120;
Instance of Symbol 89 MovieClip "hit" in Symbol 107 MovieClip Frame 9
onClipEvent (load) {
_parent._parent.a_fn(10);
}
Symbol 107 MovieClip Frame 22
_root.zoom = 100;
_root.zooming = false;
_parent.gotoAndStop("stand");
Symbol 110 MovieClip Frame 5
_parent.gotoAndStop("stand");
Symbol 115 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 115 MovieClip Frame 5
_parent.fall = false;
_parent.gotoAndStop("stand");
Symbol 122 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 122 MovieClip Frame 16
_parent.fall = false;
Symbol 122 MovieClip Frame 32
_parent.gotoAndStop("stand");
Symbol 125 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.slowmo();
Symbol 125 MovieClip Frame 19
_parent.fall = false;
Symbol 125 MovieClip Frame 49
if (_root.lives > 0) {
_root.world.guy.hp = 30;
_root.lives = _root.lives - 1;
_parent.gotoAndStop("spawn");
} else {
_root.cutshow = true;
_root.cut.gotoAndStop("game over");
stop();
}
stop();
Symbol 126 MovieClip [guy] Frame 1
function hurtthat() {
if (hurt > 0) {
hp = hp - hurt;
if ((hurt >= 3) or jump_st) {
this.gotoAndStop("fall");
} else {
this.gotoAndStop("hurt");
}
hurt = 0;
}
}
function pause_fn() {
if (_root.pause) {
guy.stop();
sha.stop();
} else {
guy.play();
sha.play();
}
}
function a_fn(attack) {
d = attack;
}
function a_fn1(damage) {
var _local1 = _parent;
var _local2 = damage;
var _local3 = this;
i = 0;
while (i < 6) {
if (_local3.guy.hit.hitTest(("_parent.bad" + i) + ".hit")) {
_local1.bad[i].hurt = _local1.bad[i].hurt - _local2;
_local1.points = _local1.points + _local2;
_local1.combo_act = true;
}
i++;
}
}
function a_fn2(damage) {
var _local1 = _parent;
var _local2 = damage;
var _local3 = this;
i = 1;
while (i < 6) {
if (_local3.guy.hit.hitTest(("_parent.bad" + i) + ".hit")) {
Set(("_parent.bad" + i) + ".hurt", _local2);
_local1.points = _local1.points + _local2;
_local1.combo_act = true;
}
i++;
}
}
function keyup_fn() {
var _local1 = _root;
if (((!Key.isDown(_local1.attack)) && (!Key.isDown(_local1.super))) && (!Key.isDown(_local1.jump))) {
keyup = true;
}
}
function jumpdir_fn() {
if (Key.isDown(39)) {
jumpdir = "right";
} else if (Key.isDown(37)) {
jumpdir = "left";
} else if (((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(32))) {
jumpdir = "stand";
}
}
function move() {
if (!_root.pause) {
if (!jump_st) {
if (Key.isDown(38)) {
move_up();
} else if (Key.isDown(40)) {
move_dn();
}
}
if (Key.isDown(39)) {
move_rt();
} else if (Key.isDown(37)) {
move_lt();
}
if (((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(32))) {
this.gotoAndStop("stand");
}
}
}
function move_rt() {
var _local1 = _parent;
if (_root.scroll) {
if (!jump_st) {
this.gotoAndStop("run");
}
if (_x >= (_local1.getBoundLeft() + 200)) {
_root.scroll_fn();
}
if (_x <= (_local1.getBoundRight() - 220)) {
_x = (_x + walk_speed);
_xscale = scale;
} else if (_x > (_local1.getBoundRight() - 210)) {
_x = (_x - (walk_speed / 2));
_xscale = scale;
}
} else if (_x < _local1.getBoundRight()) {
_x = (_x + walk_speed);
_xscale = scale;
if (!jump_st) {
this.gotoAndStop("run");
}
}
}
function move_lt() {
if (_x > _parent.getBoundLeft()) {
_x = (_x - walk_speed);
if (Key.isDown(37)) {
}
_xscale = (-scale);
if (!jump_st) {
this.gotoAndStop("run");
}
}
}
function move_up() {
if (_y > _parent.getBoundUp()) {
_y = (_y - walk_speed);
this.gotoAndStop("run");
}
}
function move_dn() {
if (_y < _parent.getBoundDown()) {
_y = (_y + walk_speed);
this.gotoAndStop("run");
}
}
function attack() {
var _local1 = this;
var _local2 = _root;
if (!_local2.pause) {
if (Key.isDown(_local2.super) && (_local2.sb)) {
if ((!jump_st) && (keyup)) {
if (attack_st == "0") {
_local1.gotoAndStop("super");
keyup = false;
_local2.sbar.gotoAndPlay(1);
} else if (attack_st == "1") {
_local1.gotoAndStop("shot");
keyup = false;
}
}
}
if (Key.isDown(_local2.attack)) {
if (jump_st) {
_local1.gotoAndStop("jumpkick");
keyup = false;
} else if ((attack_st == "0") && (keyup)) {
_local1.gotoAndStop("shoot");
keyup = false;
} else if ((attack_st == "1") && (keyup)) {
_local1.gotoAndStop("shot");
keyup = false;
}
}
}
}
function jump() {
if (!_root.pause) {
if (Key.isDown(_root.jump)) {
if ((!jump_st) && (keyup)) {
this.gotoAndStop("jump");
keyup = false;
jump_mov();
}
}
}
}
function jump_mov() {
var _local1 = _root;
if (!jump_st) {
up = true;
jumpstart = _y;
jumptop = jumpstart - 100;
jump_st = true;
} else if (jump_st) {
if (up) {
_y = (_y - (10 + jump_vspeed));
_local1.shadow._xscale = _local1.shadow._xscale - 5;
_local1.shadow._yscale = _local1.shadow._yscale - 5;
if (_y <= jumptop) {
up = false;
}
} else {
_y = (_y + (jump_vspeed + 10));
_local1.shadow._xscale = _local1.shadow._xscale + 5;
_local1.shadow._yscale = _local1.shadow._yscale + 5;
if (_y >= jumpstart) {
jump_st = false;
this.gotoAndStop("stand");
}
}
}
}
function jump_side() {
var _local1 = _parent;
var _local2 = _root;
if (!_local2.pause) {
if (jumpdir == "right") {
if (_x < _local1.getBoundRight()) {
if (_local2.scroll) {
if (_x >= (_local1.getBoundLeft() + 200)) {
_local2.scroll_fn();
} else {
_x = (_x + 10);
}
} else {
_x = (_x + 10);
}
}
} else if (jumpdir == "left") {
if (_x > _local1.getBoundLeft()) {
_x = (_x - 10);
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
stop();
walk_speed = 10;
d = 0;
hp = 30;
keyup = true;
attack_st = "0";
jump_vspeed = 0.5;
scale = _xscale;
hurt = 0;
if (Key.isDown(backward)) {
this.gotoAndStop((actual_position + "_") + direction_left);
movment_left();
} else if (Key.isDown(forward)) {
this.gotoAndStop((actual_position + "_") + direction_right);
movment_right();
}
Instance of Symbol 14 MovieClip in Symbol 126 MovieClip [guy] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 200);
}
Symbol 126 MovieClip [guy] Frame 6
stop();
Symbol 126 MovieClip [guy] Frame 12
stop();
Instance of Symbol 89 MovieClip "hit" in Symbol 126 MovieClip [guy] Frame 12
onClipEvent (enterFrame) {
_parent.hurtthat();
}
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 12
onClipEvent (load) {
_parent.stand_load();
_parent.attack_st = "0";
}
onClipEvent (enterFrame) {
_parent.pause_fn();
_parent.change_xscale();
_parent.move();
_parent.jumpdir_fn();
_parent.keyup_fn();
}
onClipEvent (keyDown) {
_parent.jump();
_parent.attack();
}
onClipEvent (keyUp) {
_parent.stand_keyUp();
}
Symbol 126 MovieClip [guy] Frame 19
stop();
Symbol 126 MovieClip [guy] Frame 23
stop();
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 23
onClipEvent (enterFrame) {
_parent.pause_fn();
_parent.attack();
_parent.attack_hittest();
_parent.keyup_fn();
}
onClipEvent (keyUp) {
}
Symbol 126 MovieClip [guy] Frame 30
stop();
Symbol 126 MovieClip [guy] Frame 37
stop();
_parent.keyup_fn();
Instance of Symbol 89 MovieClip "hit" in Symbol 126 MovieClip [guy] Frame 37
onClipEvent (enterFrame) {
_parent.hurtthat();
}
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 37
onClipEvent (enterFrame) {
_parent.pause_fn();
_parent.jump_side();
_parent.jumpframe = _parent.guy._currentframe;
_parent.attack_hittest();
}
onClipEvent (keyDown) {
_parent.attack();
}
onClipEvent (load) {
_parent.attack_st = "0";
}
Symbol 126 MovieClip [guy] Frame 44
stop();
Instance of Symbol 103 MovieClip "guy" in Symbol 126 MovieClip [guy] Frame 44
onClipEvent (load) {
this.gotoAndPlay(_parent.jumpframe);
}
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 44
onClipEvent (enterFrame) {
_parent.pause_fn();
_parent.attack_hittest();
_parent.jump_side();
_parent.keyup_fn();
}
Symbol 126 MovieClip [guy] Frame 52
stop();
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 52
onClipEvent (enterFrame) {
_parent.pause_fn();
_parent.attack();
_parent.attack_hittest();
_parent.keyup_fn();
}
onClipEvent (keyUp) {
}
Symbol 126 MovieClip [guy] Frame 66
stop();
Symbol 126 MovieClip [guy] Frame 74
stop();
Instance of Symbol 115 MovieClip "guy" in Symbol 126 MovieClip [guy] Frame 74
onClipEvent (load) {
this.guy.gotoandstop(1 + random(3));
}
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 74
onClipEvent (enterFrame) {
_parent.fall_fn(2);
}
Symbol 126 MovieClip [guy] Frame 81
stop();
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 81
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Symbol 126 MovieClip [guy] Frame 87
stop();
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip [guy] Frame 87
onClipEvent (enterFrame) {
_parent.fall_fn(5);
_parent.pause_fn();
}
Symbol 128 MovieClip [burger] Frame 1
this.swapDepths(this._y + 200);
Symbol 128 MovieClip [burger] Frame 10
power = 12;
play();
if ((this.hitTest(_parent.guy.hit) && (Key.isDown(_root.attack))) && (!_parent.guy.jump_st)) {
_parent.guy.gotoAndStop("pickup");
gotoAndPlay ("poof");
_parent.guy.hp = _parent.guy.hp + power;
if (_parent.guy.hp > _root.dmax) {
_parent.guy.hp = _root.dmax;
}
}
Symbol 128 MovieClip [burger] Frame 11
if (this._x < 500) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -300) {
removeMovieClip(this);
}
prevFrame();
Symbol 128 MovieClip [burger] Frame 12
play();
trace("box " + _parent.getdepth());
Symbol 128 MovieClip [burger] Frame 15
this.removeMovieClip();
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 3
stop();
Symbol 140 MovieClip Frame 4
stop();
Symbol 140 MovieClip Frame 5
stop();
Instance of Symbol 14 MovieClip in Symbol 141 MovieClip [bossbar] Frame 1
onClipEvent (load) {
_parent.label1.gotoandstop(_parent.name);
_parent.label2.gotoandstop(_parent.name);
hpcurrentframe = 100;
hpmax = _parent._parent.world["bad_" + _parent.name].hp;
trace("name" + _parent.name);
_parent._x = 275;
_parent._y = 360;
}
onClipEvent (enterFrame) {
health = _parent._parent.world["bad_" + _parent.name].hp;
_parent.gotoandstop(hpcurrentframe);
if (health > hpmax) {
health = hpmax;
} else if (health <= 0) {
removeMovieClip(_parent);
_parent._parent.world["bad_" + _parent.name].gotoandstop("dead");
health = 0;
}
hp = math.round(100 * (health / hpmax));
if ((hpcurrentframe > hp) and (hpcurrentframe > 0)) {
if ((hpcurrentframe - 2) > hp) {
hpcurrentframe = hpcurrentframe - 3;
} else {
hpcurrentframe = hpcurrentframe - 1;
}
} else if ((hpcurrentframe < hp) and (hpcurrentframe < 100)) {
if ((hpcurrentframe + 2) < hp) {
hpcurrentframe = hpcurrentframe + 3;
} else {
hpcurrentframe = hpcurrentframe + 1;
}
}
}
Symbol 143 MovieClip [slowmo] Frame 1
_root.cutshow = true;
_root.pause = true;
trace("slowwwww");
Symbol 143 MovieClip [slowmo] Frame 10
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 12
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 19
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 21
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 27
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 29
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 33
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 34
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 37
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 38
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 40
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 41
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 43
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 44
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 46
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 47
_root.pause = true;
Symbol 143 MovieClip [slowmo] Frame 49
_root.pause = false;
Symbol 143 MovieClip [slowmo] Frame 50
_root.cutshow = false;
this.removeMovieClip;
stop();
Symbol 145 MovieClip Frame 20
_parent.nextFrame();
Symbol 153 MovieClip [cabin] Frame 1
stop();
Symbol 153 MovieClip [cabin] Frame 2
stop();
Symbol 153 MovieClip [cabin] Frame 12
gotoAndStop (2);
Symbol 153 MovieClip [cabin] Frame 23
gotoAndStop (2);
Symbol 173 MovieClip Frame 1
stop();
Symbol 181 Button
on (release) {
getURL ("http://www.sokay.net", "_blank");
}
Symbol 199 Button
on (press) {
_parent.nextframe();
}
Symbol 200 MovieClip Frame 1
function load() {
loaded = math.round(100 * (_root.getbytesloaded() / _root.getbytestotal()));
ball.gotoandstop(loaded);
if ((loaded >= 100) && (itisdone == false)) {
play();
itisdone = true;
}
}
stop();
itisdone = false;
ball.onEnterFrame = function () {
load();
};
Symbol 200 MovieClip Frame 15
stop();
Symbol 218 MovieClip Frame 1
_quality = "LOW";
Instance of Symbol 204 MovieClip in Symbol 218 MovieClip Frame 1
on (release) {
getURL ("http://www.sokay.net/", "_top");
}
Symbol 218 MovieClip Frame 100
_root.volume = 0;
_root.sounds.menutrack.start(0, 999);
_root.sounds.menutrack.setvolume(_root.volume);
if (_root.qset == 1) {
_quality = "LOW";
} else if (_root.qset == 2) {
_quality = "MEDIUM";
} else {
_quality = "HIGH";
}
Instance of Symbol 184 MovieClip in Symbol 218 MovieClip Frame 100
onClipEvent (enterFrame) {
_root.sounds.menutrack.setvolume(_root.volume);
if ((_root.volume < _root.volumemax) && (_root.volume < 100)) {
_root.volume = _root.volume + 5;
}
}
Symbol 218 MovieClip Frame 165
_parent.nextframe();
Symbol 223 MovieClip Frame 20
_parent.gotoAndStop("walk");
Instance of Symbol 89 MovieClip "hit" in Symbol 227 MovieClip Frame 8
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Instance of Symbol 89 MovieClip "hit" in Symbol 227 MovieClip Frame 14
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 227 MovieClip Frame 21
_parent.gotoAndStop("walk");
Symbol 234 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 234 MovieClip Frame 20
_parent.fall = false;
Symbol 234 MovieClip Frame 36
_parent.gotoAndStop("walk");
Symbol 235 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 4, -_parent._xscale);
Symbol 235 MovieClip Frame 30
_parent.fall = false;
Symbol 235 MovieClip Frame 95
_parent.removemovieclip();
this.removemovieclip();
stop();
trace("nope!" + _parent.name);
Symbol 236 MovieClip [dog] Frame 1
function attack() {
if ((distance < 200) && (!attacking)) {
gotoAndStop ("attack");
}
}
function move() {
var _local1 = _parent;
x_diff = _local1.guy._x - this._x;
distance = math.round(Math.sqrt(x_diff * x_diff));
if (xpos == "right") {
_x = (_x - speed);
if (_x > _local1.guy._x) {
move_y();
attack();
}
} else {
_x = (_x + speed);
if (_x < _local1.guy._x) {
move_y();
attack();
}
}
if (_x < (_local1.getboundleft() - 250)) {
xpos = "left";
} else if (_x > (_local1.getboundright() + 250)) {
xpos = "right";
}
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
}
function move_y() {
if (!attacking) {
if (_y < (_parent.guy._y - 10)) {
_y = (_y + (speed / 3));
} else if (_y > (_parent.guy._y + 10)) {
_y = (_y - (speed / 3));
}
this.swapDepths(_y + 200);
}
}
function fall_fn(speed) {
var _local1 = _parent;
var _local2 = speed;
var _local3 = this;
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _local1.guy._x) {
if (_x < _local1.getBoundRight()) {
_local3._x = _local3._x + _local2;
}
} else if (_x > _local1.getBoundLeft()) {
_local3._x = _local3._x - _local2;
}
} else if (_x < _local1.guy._x) {
if (_x > _local1.getBoundLeft()) {
_local3._x = _local3._x - _local2;
}
} else if (_x < _local1.getBoundRight()) {
_local3._x = _local3._x + _local2;
}
}
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hurt = _local1.guy.d;
_local2.gotoAndStop("hurt");
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hurt > 0) {
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _root;
if (!_local1.pause) {
_parent.points = _parent.points + 3;
_parent.combo_fn();
_local1.kills = _local1.kills + 1;
trace(_local1.kills + " kills");
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
speed = 12;
hurt = 0;
hit_1 = 0;
attacking = false;
hit_time = false;
this.swapDepths(_y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
stop();
attacking = false;
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 236 MovieClip [dog] Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 236 MovieClip [dog] Frame 7
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 236 MovieClip [dog] Frame 7
onClipEvent (enterFrame) {
_parent.hurtthat();
}
Instance of Symbol 224 MovieClip "move" in Symbol 236 MovieClip [dog] Frame 7
onClipEvent (enterFrame) {
if (!_root.pause) {
_parent.move();
}
}
Symbol 236 MovieClip [dog] Frame 13
stop();
attacking = true;
Symbol 236 MovieClip [dog] Frame 20
stop();
Instance of Symbol 224 MovieClip in Symbol 236 MovieClip [dog] Frame 20
onClipEvent (enterFrame) {
if (!_root.pause) {
_parent.fall_fn(8);
}
}
Symbol 236 MovieClip [dog] Frame 26
stop();
Symbol 244 MovieClip Frame 40
_parent.gotoAndStop("walk");
Symbol 246 MovieClip Frame 1
if (_parent._x < _parent._parent.guy._x) {
_parent.target_x = (_parent._parent.guy._x - 100) + _parent.rand;
} else {
_parent.target_x = (_parent._parent.guy._x + 100) + _parent.rand;
}
if (_parent._y < _parent._parent.guy._y) {
_parent.target_y = _parent._parent.guy._y + _parent.rand;
} else {
_parent.target_y = _parent._parent.guy._y + _parent.rand;
}
_parent.rand = -30 + random(60);
Symbol 246 MovieClip Frame 20
if (_parent._x < _parent._parent.guy._x) {
_parent.target_x = (_parent._parent.guy._x - 100) + _parent.rand;
} else {
_parent.target_x = (_parent._parent.guy._x + 100) + _parent.rand;
}
Symbol 251 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 251 MovieClip Frame 10
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 251 MovieClip Frame 25
_parent.gotoAndStop("walk");
Symbol 258 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 258 MovieClip Frame 8
_parent.fall = false;
_parent.gotoAndStop("walk");
Symbol 260 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 4, -_parent._xscale);
Symbol 260 MovieClip Frame 29
_parent.fall = false;
Symbol 260 MovieClip Frame 104
_parent.removemovieclip();
this.removemovieclip();
stop();
trace("nope!" + _parent.name);
Symbol 261 MovieClip [zom_b] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function move() {
if (_x < (target_x - 10)) {
_x = (_x + (2 + zom_speed));
} else if (_x > (target_x + 10)) {
_x = (_x - (2 + zom_speed));
}
if (_y < (target_y - 10)) {
_y = (_y + (2 + zom_speed));
} else if (_y > (target_y + 10)) {
_y = (_y - (2 + zom_speed));
}
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if (distance < 150) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 10;
} else {
this._x = this._x + 10;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hurt = _local1.guy.d;
_local2.gotoAndStop("hurt");
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hurt > 0) {
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _root;
if (!_local1.pause) {
_parent.points = _parent.points + 3;
_parent.combo_fn();
_local1.kills = _local1.kills + 1;
trace(_local1.kills + " kills");
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
hurt = 0;
hit_1 = 0;
zom_speed = random(4);
attacking = false;
hit_time = false;
hitrate = 10 + random(10);
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit"];
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 261 MovieClip [zom_b] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 200);
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 261 MovieClip [zom_b] Frame 7
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 261 MovieClip [zom_b] Frame 7
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 261 MovieClip [zom_b] Frame 7
onClipEvent (enterFrame) {
_parent.move();
_parent.change_xscale();
}
Instance of Symbol 246 MovieClip in Symbol 261 MovieClip [zom_b] Frame 7
onClipEvent (enterFrame) {
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 261 MovieClip [zom_b] Frame 13
stop();
Symbol 261 MovieClip [zom_b] Frame 18
stop();
Instance of Symbol 258 MovieClip "guy" in Symbol 261 MovieClip [zom_b] Frame 18
onClipEvent (load) {
this.guy.gotoandstop(1 + random(2));
}
Instance of Symbol 224 MovieClip in Symbol 261 MovieClip [zom_b] Frame 18
onClipEvent (enterFrame) {
_parent.fall_fn(6);
}
Symbol 261 MovieClip [zom_b] Frame 23
stop();
Instance of Symbol 224 MovieClip in Symbol 261 MovieClip [zom_b] Frame 23
onClipEvent (enterFrame) {
_parent.fall_fn(6);
}
Symbol 269 MovieClip Frame 40
_parent.gotoAndStop("walk");
Symbol 276 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 276 MovieClip Frame 10
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 276 MovieClip Frame 25
_parent.gotoAndStop("walk");
Symbol 283 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 283 MovieClip Frame 8
_parent.fall = false;
_parent.gotoAndStop("walk");
Symbol 286 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 4, -_parent._xscale);
Symbol 286 MovieClip Frame 29
_parent.fall = false;
Symbol 286 MovieClip Frame 104
_parent.removemovieclip();
this.removemovieclip();
stop();
trace("nope!" + _parent.name);
Symbol 287 MovieClip [zom_c] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function move() {
if (_x < (target_x - 10)) {
_x = (_x + (2 + zom_speed));
} else if (_x > (target_x + 10)) {
_x = (_x - (2 + zom_speed));
}
if (_y < (target_y - 10)) {
_y = (_y + (2 + zom_speed));
} else if (_y > (target_y + 10)) {
_y = (_y - (2 + zom_speed));
}
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if (distance < 150) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 10;
} else {
this._x = this._x + 10;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hurt = _local1.guy.d;
_local2.gotoAndStop("hurt");
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hurt > 0) {
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _root;
if (!_local1.pause) {
_parent.points = _parent.points + 3;
_parent.combo_fn();
_local1.kills = _local1.kills + 1;
trace(_local1.kills + " kills");
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
hurt = 0;
hit_1 = 0;
zom_speed = random(4);
attacking = false;
hit_time = false;
hitrate = 10 + random(10);
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit"];
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 287 MovieClip [zom_c] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 200);
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 287 MovieClip [zom_c] Frame 7
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 287 MovieClip [zom_c] Frame 7
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 287 MovieClip [zom_c] Frame 7
onClipEvent (enterFrame) {
_parent.move();
_parent.change_xscale();
}
Instance of Symbol 246 MovieClip in Symbol 287 MovieClip [zom_c] Frame 7
onClipEvent (enterFrame) {
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 287 MovieClip [zom_c] Frame 13
stop();
Symbol 287 MovieClip [zom_c] Frame 18
stop();
Instance of Symbol 283 MovieClip "guy" in Symbol 287 MovieClip [zom_c] Frame 18
onClipEvent (load) {
this.guy.gotoandstop(1 + random(2));
}
Instance of Symbol 224 MovieClip in Symbol 287 MovieClip [zom_c] Frame 18
onClipEvent (enterFrame) {
_parent.fall_fn(6);
}
Symbol 287 MovieClip [zom_c] Frame 23
stop();
Instance of Symbol 224 MovieClip in Symbol 287 MovieClip [zom_c] Frame 23
onClipEvent (enterFrame) {
_parent.fall_fn(6);
}
Symbol 293 MovieClip Frame 20
_parent.gotoAndStop("stand");
Symbol 294 MovieClip Frame 1
function mode_3() {
var _local1 = _parent;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = (_local1._parent.guy._x - 300) + (math.random() * 50);
} else {
_local1.target_x = (_local1._parent.guy._x + 300) - (math.random() * 50);
}
_local1.target_y = (_local1._parent.guy._y - 30) + (math.random() * 60);
if (_local1.target_y < _local1._parent.getboundup()) {
_local1.target_y = _local1._parent.getboundup();
}
if (_local1.target_y > _local1._parent.getbounddown()) {
_local1.target_y = _local1._parent.getbounddown();
}
if (_local1.target_x < _local1._parent.getboundleft()) {
_local1.target_x = _local1._parent.getboundleft() + random(50);
}
if (_local1.target_x > _local1._parent.getboundright()) {
_local1.target_x = _local1._parent.getboundright() - random(50);
}
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_2() {
var _local1 = _parent;
divs = 40;
time = 0;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 100;
} else {
_local1.target_x = _local1._parent.guy._x + 100;
}
_local1.target_y = (_local1._parent.guy._y - 20) + (math.random() * 40);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_1() {
var _local1 = _parent;
_local1.hitrate = 20;
divs = 30;
time = 3;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 90;
} else {
_local1.target_x = _local1._parent.guy._x + 90;
}
_local1.target_y = (_local1._parent.guy._y - 10) + (math.random() * 20);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
if (_local1.distance > 150) {
_local1.gotoandstop("walk");
} else {
_local1.gotoandstop("walkslow");
}
}
if ((_root.q1 == "none") or (_root.q1 == _parent.name)) {
_root.q1 = _parent.name;
mode = "1a";
} else if ((_root.q2 == "none") or (_root.q2 == _parent.name)) {
_root.q2 = _parent.name;
mode = "2a";
} else if (((_root.q1 != _parent.name) and (_root.q2 != _parent.name)) and (_root.q3 != _parent.name)) {
mode = "3a";
}
_parent.wait = random(time) + 1;
_parent.start = getTimer() / 100;
_parent.gotoandstop("stand");
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 294 MovieClip Frame 2
play();
Symbol 294 MovieClip Frame 3
if (_parent.wait <= ((getTimer() / 100) - _parent.start)) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 294 MovieClip Frame 4
if (mode == "3a") {
mode_3();
} else if (mode == "1a") {
mode_1();
} else if (mode == "2a") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
} else if (mode == "2b") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
}
Symbol 294 MovieClip Frame 5
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (mode == "1a") {
mode_1();
}
Symbol 294 MovieClip Frame 6
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (loops < divs) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 304 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 304 MovieClip Frame 5
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Instance of Symbol 89 MovieClip "hit" in Symbol 304 MovieClip Frame 10
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 304 MovieClip Frame 15
_parent.gotoAndStop("stand");
if (random(6) == 5) {
_parent.gotoAndStop("hit2");
} else {
_parent.gotoAndStop("stand");
}
Symbol 319 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 319 MovieClip Frame 5
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 319 MovieClip Frame 11
_parent.gotoAndStop("stand");
Symbol 335 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 335 MovieClip Frame 28
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 335 MovieClip Frame 34
_parent.gotoAndStop("stand");
if (random(6) == 5) {
_parent.gotoAndStop("hit2");
} else {
_parent.gotoAndStop("stand");
}
Symbol 342 MovieClip Frame 1
_parent.attacking = true;
Symbol 342 MovieClip Frame 10
_parent.jump = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 342 MovieClip Frame 19
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 342 MovieClip Frame 26
_parent.jump = false;
_parent.gotoAndStop("stand");
Symbol 357 MovieClip Frame 1
_parent.attacking = true;
Symbol 357 MovieClip Frame 5
_parent.jump = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 357 MovieClip Frame 10
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 357 MovieClip Frame 19
_parent.jump = false;
_parent.gotoAndStop("stand");
Symbol 361 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 361 MovieClip Frame 5
_parent.fall = false;
_parent.gotoAndStop("stand");
Symbol 371 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 371 MovieClip Frame 15
_parent.fall = false;
Symbol 371 MovieClip Frame 33
if (random(3) < 1) {
_parent.gotoAndStop("kick");
} else {
_parent.gotoAndStop("stand");
}
Symbol 374 MovieClip Frame 1
_parent._parent._parent.fall = true;
Symbol 374 MovieClip Frame 10
_parent._parent._parent.fall = false;
Symbol 374 MovieClip Frame 15
if (random(3) < 1) {
_parent._parent._parent.gotoAndStop("jhit");
} else {
_parent._parent._parent.gotoAndStop("stand");
}
Symbol 377 MovieClip Frame 1
_parent._parent._parent.fall = true;
Symbol 377 MovieClip Frame 10
_parent._parent._parent.fall = false;
Symbol 377 MovieClip Frame 15
if (random(3) < 1) {
_parent._parent._parent.gotoAndStop("hit2");
} else {
_parent._parent._parent.gotoAndStop("stand");
}
Symbol 380 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 380 MovieClip Frame 19
_parent.fall = false;
Symbol 380 MovieClip Frame 104
_parent.removemovieclip();
stop();
Symbol 381 MovieClip [officer02] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if ((distance < 280) && (distance > 130)) {
if (random(hitrate + 50) == 0) {
attack_fn(attacks[2 + random(2)]);
} else if (random(hitrate) == 2) {
attack_fn(attacks[4]);
}
}
if (distance < 110) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
} else if (random(hitrate) == 1) {
attack_fn(attacks[1]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 3) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hit_1 > 3) {
_local2.gotoAndStop("hurt2");
}
if (hurt > 0) {
if (hurt == 1) {
_local2.gotoAndStop("block");
} else if ((hurt > 1) && (hurt < 3)) {
_local2.gotoAndStop("hurt1");
} else {
_local2.gotoAndStop("hurt2");
}
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _parent;
if (!_root.pause) {
_local1.points = _local1.points + 3;
_local1.combo_fn();
_root.kills = _root.kills + 1;
if (boss) {
_local1.boss = false;
}
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
attacking = false;
hurt = 0;
hit_1 = 0;
hit_time = false;
hitrate = 20 + random(20);
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit", "hit2", "kick", "jhit", "blast"];
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 381 MovieClip [officer02] Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 381 MovieClip [officer02] Frame 2
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 381 MovieClip [officer02] Frame 2
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 292 MovieClip "guy" in Symbol 381 MovieClip [officer02] Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 294 MovieClip "controller" in Symbol 381 MovieClip [officer02] Frame 2
onClipEvent (load) {
time = 10;
divs = 50;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.swapDepths(_parent._y + 200);
}
Symbol 381 MovieClip [officer02] Frame 3
stop();
Symbol 381 MovieClip [officer02] Frame 4
stop();
Symbol 381 MovieClip [officer02] Frame 5
stop();
Symbol 381 MovieClip [officer02] Frame 6
stop();
Instance of Symbol 224 MovieClip in Symbol 381 MovieClip [officer02] Frame 6
onClipEvent (enterFrame) {
_parent.jumpkick_fn();
}
Symbol 381 MovieClip [officer02] Frame 7
stop();
Symbol 381 MovieClip [officer02] Frame 8
stop();
Instance of Symbol 224 MovieClip in Symbol 381 MovieClip [officer02] Frame 8
onClipEvent (enterFrame) {
_parent.jumpkick_fn();
}
Symbol 381 MovieClip [officer02] Frame 9
stop();
Symbol 381 MovieClip [officer02] Frame 10
stop();
Instance of Symbol 361 MovieClip "guy" in Symbol 381 MovieClip [officer02] Frame 10
onClipEvent (load) {
this.guy.gotoandstop(1 + random(3));
}
Instance of Symbol 224 MovieClip in Symbol 381 MovieClip [officer02] Frame 10
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Symbol 381 MovieClip [officer02] Frame 11
stop();
Instance of Symbol 224 MovieClip in Symbol 381 MovieClip [officer02] Frame 11
onClipEvent (enterFrame) {
_parent.fall_fn(10);
}
Symbol 381 MovieClip [officer02] Frame 12
stop();
Instance of Symbol 379 MovieClip "guy" in Symbol 381 MovieClip [officer02] Frame 12
onClipEvent (load) {
this.guy.gotoandstop(1 + random(2));
}
Symbol 381 MovieClip [officer02] Frame 13
stop();
Symbol 385 MovieClip Frame 20
_parent.gotoandstop("walk");
Symbol 386 MovieClip Frame 1
if (_parent._x < _parent._parent.guy._x) {
_parent.target_x = _parent._parent.guy._x - 100;
} else {
_parent.target_x = _parent._parent.guy._x + 100;
}
if (_parent._y < _parent._parent.guy._y) {
_parent.target_y = _parent._parent.guy._y + 5;
} else {
_parent.target_y = _parent._parent.guy._y + 5;
}
_parent.rand = -30 + random(60);
Symbol 386 MovieClip Frame 5
if (_parent._x < _parent._parent.guy._x) {
_parent.target_x = _parent._parent.guy._x - 100;
} else {
_parent.target_x = _parent._parent.guy._x + 100;
}
Symbol 393 MovieClip Frame 1
_parent.attacking = true;
_parent._parent.cabin.gotoandplay("happy");
Instance of Symbol 89 MovieClip "hit" in Symbol 393 MovieClip Frame 6
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 393 MovieClip Frame 11
_parent.gotoandstop("walk");
Symbol 399 MovieClip Frame 1
_parent.attacking = true;
_parent._parent.cabin.gotoandplay("happy");
Symbol 399 MovieClip Frame 5
_parent.jump = true;
Symbol 399 MovieClip Frame 14
_parent.jump = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 399 MovieClip Frame 18
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 399 MovieClip Frame 33
_parent.gotoandstop("walk");
Symbol 408 MovieClip Frame 30
_parent.gotoandstop("walk");
Symbol 412 MovieClip Frame 50
_parent.gotoandstop("walk");
Symbol 414 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.cabin.gotoandplay("sad");
Symbol 414 MovieClip Frame 7
_parent.gotoandstop("walk");
_parent.fall = false;
Symbol 415 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.cabin.gotoandplay("sad");
Symbol 415 MovieClip Frame 4
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 415 MovieClip Frame 10
_parent.fall = false;
Symbol 415 MovieClip Frame 49
_parent.hit_1 = 0;
_parent.gotoandstop("walk");
Symbol 416 MovieClip Frame 1
my_color = new Color(_parent.guy);
myColorTransform = new Object();
hit = {rb:"100", gb:"50"};
norm = {rb:"0", gb:"0"};
if (_parent.flash) {
my_color.setTransform(hit);
}
Symbol 416 MovieClip Frame 4
my_color.setTransform(norm);
_parent.flash = false;
_parent.pow = false;
Symbol 421 MovieClip Frame 1
_parent._parent.cabin.gotoandstop("sad");
_parent._parent.boss = false;
_parent.qremove();
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 421 MovieClip Frame 12
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 29
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 47
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 70
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 87
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 105
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill2", _parent.name, _parent._x, _parent._y - 2, -_parent._xscale);
Symbol 421 MovieClip Frame 113
gotoAndPlay ("loop");
Symbol 422 MovieClip [bear] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function move() {
if (_x < (target_x - 10)) {
_x = (_x + speed);
} else if (_x > (target_x + 10)) {
_x = (_x - speed);
}
if (_y < (target_y - 10)) {
_y = (_y + speed);
} else if (_y > (target_y + 10)) {
_y = (_y - speed);
}
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if (distance < 150) {
if (random(hitrate) == 1) {
attack_fn(attacks[1]);
}
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 10;
} else {
this._x = this._x + 10;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat1() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hurt = _local1.guy.d;
_local2.gotoAndStop("hurt");
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hurt > 0) {
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 3) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hit_1 > 3) {
_local2.gotoAndStop("fall");
}
if (hurt > 0) {
_local2.gotoAndStop("hurt");
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function fallhurt() {
var _local1 = _parent;
if (!_root.pause) {
if ((_local1.guy._y < (this._y + 30)) && (_local1.guy._y > (this._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 3) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hurt > 0) {
_local1.spawn_fn("spark", name, _x, _y - 1, _xscale);
_local1.spawn_fn("bill", name, _x, _y - 3, -_xscale);
_local1.spawn_fn("bill", name, _x, _y - 4, -_xscale);
flash = true;
_local1.bufferStart = getTimer();
if (!pow) {
hp = hp - hurt;
pow = true;
}
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _root;
if (!_local1.pause) {
_parent.points = _parent.points + 3;
_parent.combo_fn();
_local1.kills = _local1.kills + 1;
trace(_local1.kills + " kills");
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
hurt = 0;
hit_1 = 0;
speed = 3;
attacking = false;
hit_time = false;
hitrate = 20 + random(12);
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit", "jump"];
stop();
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 422 MovieClip [bear] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 200);
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 422 MovieClip [bear] Frame 7
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 422 MovieClip [bear] Frame 7
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 224 MovieClip in Symbol 422 MovieClip [bear] Frame 7
onClipEvent (enterFrame) {
_parent.move();
_parent.change_xscale();
}
Symbol 422 MovieClip [bear] Frame 13
stop();
Symbol 422 MovieClip [bear] Frame 18
stop();
Instance of Symbol 224 MovieClip in Symbol 422 MovieClip [bear] Frame 18
onClipEvent (enterFrame) {
_parent.jumpkick_fn();
}
Symbol 422 MovieClip [bear] Frame 23
stop();
Symbol 422 MovieClip [bear] Frame 27
stop();
Symbol 422 MovieClip [bear] Frame 32
stop();
Instance of Symbol 224 MovieClip in Symbol 422 MovieClip [bear] Frame 32
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Symbol 422 MovieClip [bear] Frame 37
stop();
Instance of Symbol 89 MovieClip "hit" in Symbol 422 MovieClip [bear] Frame 37
onClipEvent (enterFrame) {
_parent.fallhurt();
}
Instance of Symbol 224 MovieClip in Symbol 422 MovieClip [bear] Frame 37
onClipEvent (enterFrame) {
_parent.fall_fn(10);
}
Symbol 422 MovieClip [bear] Frame 42
stop();
Symbol 446 MovieClip Frame 65
stop();
Symbol 451 MovieClip Frame 1
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 6, -_parent._xscale);
Symbol 451 MovieClip Frame 20
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 6, -_parent._xscale);
Symbol 451 MovieClip Frame 40
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 6, -_parent._xscale);
Symbol 451 MovieClip Frame 120
_parent.death();
_parent.removemovieclip();
_parent.gotoandplay(1);
Symbol 452 MovieClip [eman] Frame 1
function dist() {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
return(distance);
}
function run() {
var _local1 = this;
var _local2 = _parent;
hurt();
_local1.swapDepths(_local1._y + 200);
if (!_root.pause) {
if (_local1._x > left) {
if ((dist() < 200) && (_local1._x < _local2.getboundright())) {
scream = true;
gotoAndPlay ("scream");
}
_local1._x = _local1._x - 5;
if (dist() < 300) {
if ((_local2.guy._y > _local1._y) && (_local1._y > (_local2.getboundup() + 10))) {
_local1._y = _local1._y - 4;
} else if ((_local2.guy._y < _local1._y) && (_local1._y < (_local2.getbounddown() - 10))) {
_local1._y = _local1._y + 4;
}
}
} else {
_local1.removeMovieClip();
}
}
}
function fast() {
var _local1 = this;
var _local2 = _parent;
hurt();
_local1.swapDepths(_local1._y + 200);
if (!_root.pause) {
if (_local1._x > left) {
_local1._x = _local1._x - 10;
if ((_local2.guy._y > _local1._y) && (_local1._y > (_local2.getboundup() + 10))) {
_local1._y = _local1._y - 6;
} else if ((_local2.guy._y < _local1._y) && (_local1._y < (_local2.getbounddown() - 10))) {
_local1._y = _local1._y + 6;
}
} else {
_local1.removeMovieClip();
}
}
}
function hurt() {
var _local1 = _parent;
if (!_root.pause) {
if ((_local1.guy._y < (this._y + 30)) && (_local1.guy._y > (this._y - 30))) {
if (hitTest(_local1.guy.guy.hit)) {
gotoAndStop ("die");
}
}
}
}
function death() {
if (!_root.pause) {
_parent.points = _parent.points + 6;
_parent.combo_fn();
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
this.swapDepths(_parent._y + 200);
scream = false;
left = _parent.getboundleft() - 75;
right = _parent.getboundright() + 75;
Instance of Symbol 224 MovieClip in Symbol 452 MovieClip [eman] Frame 1
onClipEvent (load) {
_parent._x = _parent.right;
}
onClipEvent (enterFrame) {
_parent.run();
}
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 452 MovieClip [eman] Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.guy.stop();
i = 1;
while (i < 5) {
_parent.guy["guy" + i].stop();
i++;
}
} else {
_parent.guy.play();
i = 1;
while (i < 5) {
_parent.guy["guy" + i].play();
i++;
}
}
}
Symbol 452 MovieClip [eman] Frame 2
stop();
Symbol 452 MovieClip [eman] Frame 6
play();
Symbol 452 MovieClip [eman] Frame 16
stop();
Instance of Symbol 224 MovieClip in Symbol 452 MovieClip [eman] Frame 16
onClipEvent (enterFrame) {
_parent.fast();
}
Symbol 452 MovieClip [eman] Frame 20
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
stop();
Symbol 460 MovieClip Frame 20
_parent.gotoAndStop("stand");
Symbol 462 MovieClip Frame 1
function mode_3() {
var _local1 = _parent;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = (_local1._parent.guy._x - 300) + (math.random() * 50);
} else {
_local1.target_x = (_local1._parent.guy._x + 300) - (math.random() * 50);
}
_local1.target_y = (_local1._parent.guy._y - 30) + (math.random() * 60);
if (_local1.target_y < _local1._parent.getboundup()) {
_local1.target_y = _local1._parent.getboundup();
}
if (_local1.target_y > _local1._parent.getbounddown()) {
_local1.target_y = _local1._parent.getbounddown();
}
if (_local1.target_x < _local1._parent.getboundleft()) {
_local1.target_x = _local1._parent.getboundleft() + random(50);
}
if (_local1.target_x > _local1._parent.getboundright()) {
_local1.target_x = _local1._parent.getboundright() - random(50);
}
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_2() {
var _local1 = _parent;
divs = 40;
time = 0;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 100;
} else {
_local1.target_x = _local1._parent.guy._x + 100;
}
_local1.target_y = (_local1._parent.guy._y - 20) + (math.random() * 40);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_1() {
var _local1 = _parent;
_local1.hitrate = 20;
divs = 30;
time = 3;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 90;
} else {
_local1.target_x = _local1._parent.guy._x + 90;
}
_local1.target_y = (_local1._parent.guy._y - 10) + (math.random() * 20);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
if (_local1.distance > 150) {
_local1.gotoandstop("walk");
} else {
_local1.gotoandstop("walkslow");
}
}
if ((_root.q1 == "none") or (_root.q1 == _parent.name)) {
_root.q1 = _parent.name;
mode = "1a";
} else if ((_root.q2 == "none") or (_root.q2 == _parent.name)) {
_root.q2 = _parent.name;
mode = "2a";
} else if (((_root.q1 != _parent.name) and (_root.q2 != _parent.name)) and (_root.q3 != _parent.name)) {
mode = "3a";
}
_parent.wait = random(time) + 1;
_parent.start = getTimer() / 100;
_parent.gotoandstop("stand");
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 462 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 462 MovieClip Frame 2
play();
Symbol 462 MovieClip Frame 3
if (_parent.wait <= ((getTimer() / 100) - _parent.start)) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 462 MovieClip Frame 4
if (mode == "3a") {
mode_3();
} else if (mode == "1a") {
mode_1();
} else if (mode == "2a") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
} else if (mode == "2b") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
}
Symbol 462 MovieClip Frame 5
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (mode == "1a") {
mode_1();
}
Symbol 462 MovieClip Frame 6
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (loops < divs) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 466 MovieClip Frame 1
_parent.attacking = true;
safe = false;
Symbol 466 MovieClip Frame 5
safe = true;
Symbol 466 MovieClip Frame 7
_parent.jump = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 466 MovieClip Frame 11
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 466 MovieClip Frame 16
_parent.jump = false;
Symbol 466 MovieClip Frame 18
_parent.gotoAndStop("stand");
Symbol 468 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 468 MovieClip Frame 7
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Instance of Symbol 89 MovieClip "hit" in Symbol 468 MovieClip Frame 12
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 468 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 469 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 469 MovieClip Frame 7
_parent.fall = false;
Symbol 469 MovieClip Frame 10
if (random(4) == 0) {
_parent.gotoAndStop("hit1");
} else {
_parent.gotoAndStop("stand");
}
Symbol 472 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 472 MovieClip Frame 37
_parent.fall = false;
Symbol 472 MovieClip Frame 105
_parent.removemovieclip();
stop();
Symbol 473 MovieClip [officer03] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if (distance < 250) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
} else if (random(hitrate) == 1) {
attack_fn(attacks[1]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 10;
} else {
this._x = this._x + 10;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 3) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hit_1 > 3) {
_local2.gotoAndStop("hurt2");
}
if (hurt > 0) {
_local2.gotoAndStop("hurt");
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= shieldhp) {
sbreak = true;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _parent;
if (!_root.pause) {
_local1.points = _local1.points + 3;
_local1.combo_fn();
_root.kills = _root.kills + 1;
if (boss) {
_local1.boss = false;
}
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
function scheck() {
if (sbreak) {
guy.shield.gotoAndStop(2);
}
}
stop();
sbreak = false;
scale = _xscale;
attacking = false;
hurt = 0;
hit_1 = 0;
hit_time = false;
hitrate = 10 + random(20);
shieldhp = hp / 2;
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit1", "hit2"];
stop();
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 473 MovieClip [officer03] Frame 1
onClipEvent (enterFrame) {
_parent.scheck();
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 473 MovieClip [officer03] Frame 7
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 473 MovieClip [officer03] Frame 7
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 462 MovieClip "controller" in Symbol 473 MovieClip [officer03] Frame 7
onClipEvent (load) {
time = 5;
divs = 100;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.swapDepths(_parent._y + 200);
}
Symbol 473 MovieClip [officer03] Frame 13
stop();
attacking = false;
Symbol 473 MovieClip [officer03] Frame 18
stop();
Instance of Symbol 89 MovieClip "hit" in Symbol 473 MovieClip [officer03] Frame 18
onClipEvent (enterFrame) {
if (!_parent.guy.safe) {
_parent.testhit();
_parent.hurtthat();
}
}
Instance of Symbol 224 MovieClip in Symbol 473 MovieClip [officer03] Frame 18
onClipEvent (enterFrame) {
_parent.jumpkick_fn();
}
Symbol 473 MovieClip [officer03] Frame 23
stop();
Instance of Symbol 89 MovieClip "hit" in Symbol 473 MovieClip [officer03] Frame 23
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Symbol 473 MovieClip [officer03] Frame 28
stop();
Instance of Symbol 224 MovieClip in Symbol 473 MovieClip [officer03] Frame 28
onClipEvent (enterFrame) {
_parent.fall_fn(10);
}
Symbol 473 MovieClip [officer03] Frame 33
stop();
Instance of Symbol 224 MovieClip in Symbol 473 MovieClip [officer03] Frame 33
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Symbol 481 MovieClip Frame 20
_parent.gotoAndStop("stand");
Symbol 482 MovieClip Frame 1
function mode_3() {
var _local1 = _parent;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = (_local1._parent.guy._x - 300) + (math.random() * 50);
} else {
_local1.target_x = (_local1._parent.guy._x + 300) - (math.random() * 50);
}
_local1.target_y = (_local1._parent.guy._y - 30) + (math.random() * 60);
if (_local1.target_y < _local1._parent.getboundup()) {
_local1.target_y = _local1._parent.getboundup();
}
if (_local1.target_y > _local1._parent.getbounddown()) {
_local1.target_y = _local1._parent.getbounddown();
}
if (_local1.target_x < _local1._parent.getboundleft()) {
_local1.target_x = _local1._parent.getboundleft() + random(50);
}
if (_local1.target_x > _local1._parent.getboundright()) {
_local1.target_x = _local1._parent.getboundright() - random(50);
}
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_2() {
var _local1 = _parent;
divs = 40;
time = 0;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 100;
} else {
_local1.target_x = _local1._parent.guy._x + 100;
}
_local1.target_y = (_local1._parent.guy._y - 20) + (math.random() * 40);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
_local1.gotoandstop("walk");
}
function mode_1() {
var _local1 = _parent;
_local1.hitrate = 20;
divs = 30;
time = 3;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 90;
} else {
_local1.target_x = _local1._parent.guy._x + 90;
}
_local1.target_y = (_local1._parent.guy._y - 10) + (math.random() * 20);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
if (_local1.distance > 150) {
_local1.gotoandstop("walk");
} else {
_local1.gotoandstop("walkslow");
}
}
if ((_root.q1 == "none") or (_root.q1 == _parent.name)) {
_root.q1 = _parent.name;
mode = "1a";
} else if ((_root.q2 == "none") or (_root.q2 == _parent.name)) {
_root.q2 = _parent.name;
mode = "2a";
} else if (((_root.q1 != _parent.name) and (_root.q2 != _parent.name)) and (_root.q3 != _parent.name)) {
mode = "3a";
}
_parent.wait = random(time) + 1;
_parent.start = getTimer() / 100;
_parent.gotoandstop("stand");
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 482 MovieClip Frame 2
play();
Symbol 482 MovieClip Frame 3
if (_parent.wait <= ((getTimer() / 100) - _parent.start)) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 482 MovieClip Frame 4
if (mode == "3a") {
mode_3();
} else if (mode == "1a") {
mode_1();
} else if (mode == "2a") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
} else if (mode == "2b") {
if ((_parent._x < _root.guy._x) and (_root.dir == "right")) {
mode_2();
} else if ((_parent._x > _root.guy._x) and (_root.dir == "left")) {
mode_2();
} else {
mode_3();
}
}
Symbol 482 MovieClip Frame 5
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (mode == "1a") {
mode_1();
}
Symbol 482 MovieClip Frame 6
loops++;
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
if (loops < divs) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 494 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 494 MovieClip Frame 10
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 494 MovieClip Frame 18
_parent.gotoAndStop("stand");
Symbol 501 MovieClip Frame 1
_parent.attacking = true;
Symbol 501 MovieClip Frame 5
_parent.jump = true;
Symbol 501 MovieClip Frame 11
_parent.jump = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 501 MovieClip Frame 11
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 501 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 511 MovieClip Frame 1
_parent.attacking = true;
Symbol 511 MovieClip Frame 13
_parent.jump = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 511 MovieClip Frame 20
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 511 MovieClip Frame 30
_parent.jump = false;
_parent.gotoAndStop("stand");
Symbol 520 MovieClip Frame 1
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 520 MovieClip Frame 5
_parent.fall = false;
_parent.gotoAndStop("stand");
Symbol 530 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 530 MovieClip Frame 15
_parent.fall = false;
Symbol 530 MovieClip Frame 51
_parent.gotoAndStop("stand");
Symbol 534 MovieClip Frame 1
_parent.fall = true;
Symbol 534 MovieClip Frame 10
_parent.fall = false;
Symbol 534 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 536 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent.death();
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 4, -_parent._xscale);
Symbol 536 MovieClip Frame 19
_parent.fall = false;
Symbol 536 MovieClip Frame 104
_parent.removemovieclip();
this.removemovieclip();
stop();
Symbol 537 MovieClip [officer01] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if ((distance < 280) && (distance > 130)) {
if (random(hitrate + 50) == 0) {
attack_fn(attacks[2]);
}
}
if (distance < 150) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
} else if (random(hitrate + 50) == 1) {
attack_fn(attacks[1]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 10;
} else {
this._x = this._x + 10;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 8) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hit_1 > 3) {
_local2.gotoAndStop("hurt2");
}
if (hurt > 0) {
if (hurt == 1) {
_local2.gotoAndStop("block");
} else if ((hurt > 1) && (hurt < 3)) {
_local2.gotoAndStop("hurt1");
} else {
_local2.gotoAndStop("hurt2");
}
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _root;
if (!_local1.pause) {
_parent.points = _parent.points + 3;
_parent.combo_fn();
_local1.kills = _local1.kills + 1;
trace(_local1.kills + " kills");
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
scale = _xscale;
hurt = 0;
hit_1 = 0;
attacking = false;
hit_time = false;
hitrate = 30 + random(20);
this.swapDepths(_parent._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["hit", "hit2", "kick", "special"];
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 537 MovieClip [officer01] Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 537 MovieClip [officer01] Frame 2
stop();
attacking = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 537 MovieClip [officer01] Frame 2
onClipEvent (enterFrame) {
_parent.testhit();
_parent.hurtthat();
}
Instance of Symbol 482 MovieClip "controller" in Symbol 537 MovieClip [officer01] Frame 2
onClipEvent (load) {
time = 10;
divs = 50;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.swapDepths(_parent._y + 200);
}
Symbol 537 MovieClip [officer01] Frame 3
stop();
Symbol 537 MovieClip [officer01] Frame 4
stop();
Symbol 537 MovieClip [officer01] Frame 5
stop();
Symbol 537 MovieClip [officer01] Frame 6
stop();
Instance of Symbol 224 MovieClip in Symbol 537 MovieClip [officer01] Frame 6
onClipEvent (enterFrame) {
_parent.jumpkick_fn();
}
Symbol 537 MovieClip [officer01] Frame 7
stop();
Symbol 537 MovieClip [officer01] Frame 8
stop();
Instance of Symbol 520 MovieClip "guy" in Symbol 537 MovieClip [officer01] Frame 8
onClipEvent (load) {
this.guy.gotoandstop(1 + random(3));
}
Instance of Symbol 224 MovieClip in Symbol 537 MovieClip [officer01] Frame 8
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Symbol 537 MovieClip [officer01] Frame 9
stop();
Instance of Symbol 224 MovieClip in Symbol 537 MovieClip [officer01] Frame 9
onClipEvent (enterFrame) {
_parent.fall_fn(10);
}
Symbol 537 MovieClip [officer01] Frame 10
stop();
Symbol 537 MovieClip [officer01] Frame 11
stop();
Symbol 550 MovieClip Frame 1
_parent.attacking = false;
Symbol 552 MovieClip Frame 41
_parent.gotoandstop("walk1");
Symbol 553 MovieClip Frame 1
function mode_1() {
var _local1 = _parent;
_local1.hitrate = 20;
divs = 30;
time = 3;
loops = 0;
if (_local1._x < _local1._parent.guy._x) {
_local1.target_x = _local1._parent.guy._x - 90;
} else {
_local1.target_x = _local1._parent.guy._x + 90;
}
_local1.target_y = (_local1._parent.guy._y - 10) + (math.random() * 20);
_local1.xdiv = (_local1.target_x - _local1._x) / divs;
_local1.ydiv = (_local1.target_y - _local1._y) / divs;
if (!_local1.attacking) {
if (_local1.hammer) {
_local1.gotoandstop("walk1");
} else {
_local1.gotoandstop("walk2");
}
}
}
mode = "1a";
_parent.wait = random(time) + 1;
_parent.start = getTimer() / 100;
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 553 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 553 MovieClip Frame 2
play();
Symbol 553 MovieClip Frame 3
if (_parent.wait <= ((getTimer() / 100) - _parent.start)) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 553 MovieClip Frame 4
mode_1();
Symbol 553 MovieClip Frame 5
loops++;
if (_parent.move) {
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
}
if (mode == "1a") {
mode_1();
}
Symbol 553 MovieClip Frame 6
loops++;
if (_parent.move) {
_parent._x = _parent._x + _parent.xdiv;
_parent._y = _parent._y + _parent.ydiv;
}
if (loops < divs) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 554 MovieClip Frame 1
my_color = new Color(_parent.guy);
myColorTransform = new Object();
hit = {rb:"100", gb:"50"};
norm = {rb:"0", gb:"0"};
if (_parent.flash) {
my_color.setTransform(hit);
}
Symbol 554 MovieClip Frame 4
my_color.setTransform(norm);
_parent.flash = false;
_parent.pow = false;
Symbol 558 MovieClip Frame 1
_parent.attacking = false;
Symbol 582 MovieClip Frame 1
_parent.attacking = true;
_parent.move = true;
Symbol 582 MovieClip Frame 65
_parent.move = false;
Instance of Symbol 89 MovieClip "hit" in Symbol 582 MovieClip Frame 75
onClipEvent (load) {
_parent._parent.a_fn(8);
}
Symbol 582 MovieClip Frame 160
_parent.attacking = false;
_parent.move = true;
_parent.gotoandstop("walk1");
Symbol 591 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 591 MovieClip Frame 13
onClipEvent (load) {
_parent._parent.a_fn(5);
}
Symbol 591 MovieClip Frame 22
_parent.attacking = false;
_parent.gotoandstop("walk1");
Symbol 603 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 603 MovieClip Frame 9
onClipEvent (load) {
_parent._parent.a_fn(4);
}
Symbol 603 MovieClip Frame 23
_parent.attacking = false;
_parent.gotoandstop("walk2");
Symbol 611 MovieClip Frame 1
_parent.attacking = true;
Instance of Symbol 89 MovieClip "hit" in Symbol 611 MovieClip Frame 25
onClipEvent (load) {
_parent._parent.a_fn(6);
}
Instance of Symbol 610 MovieClip in Symbol 611 MovieClip Frame 34
onClipEvent (load) {
_parent._parent.a_fn(6);
}
Instance of Symbol 610 MovieClip in Symbol 611 MovieClip Frame 45
onClipEvent (load) {
_parent._parent.a_fn(6);
}
Symbol 611 MovieClip Frame 58
_parent.attacking = false;
_parent.gotoandstop("walk2");
Symbol 620 MovieClip Frame 1
_parent.fall = true;
Symbol 620 MovieClip Frame 9
_parent.fall = false;
_parent.gotoandstop("punch");
Symbol 621 MovieClip Frame 18
_parent.hammer = false;
_parent._parent.badload_fn("officer02", 20, _parent._parent.names1[4], 0, "burger", 1, "right", 31);
_parent.gotoandstop("walk2");
Symbol 623 MovieClip Frame 1
_parent.qremove();
_parent.fall = true;
_parent.death();
Symbol 623 MovieClip Frame 15
_parent.fall = false;
Symbol 623 MovieClip Frame 100
_parent.removemovieclip();
this.removemovieclip();
gotoAndPlay (61);
stop();
Symbol 624 MovieClip [bot1] Frame 1
function attack_fn(actshun) {
this.gotoandstop(actshun);
}
function testhit() {
if (!_root.pause) {
x_diff = _parent.guy._x - this._x;
y_diff = _parent.guy._y - this._y;
distance = math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (!attacking) {
if (hammer == true) {
if (distance < 200) {
if (random(hitrate) == 0) {
attack_fn(attacks[0]);
trace("attack!");
} else if (random(hitrate + 30) == 1) {
attack_fn(attacks[1]);
}
}
} else if (distance < 350) {
if (random(hitrate) == 1) {
attack_fn(attacks[2]);
} else if (random(hitrate) == 2) {
attack_fn(attacks[3]);
}
}
}
}
}
function qremove() {
_root.q1 = "none";
_root.q2 = "none";
}
function jumpkick_fn() {
if (!_root.pause) {
if (jump) {
if (_xscale < 0) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
}
}
function fall_fn(speed) {
if (!_root.pause) {
if (fall) {
if (_xscale > 0) {
if (_x > _parent.getBoundLeft()) {
this._x = this._x - speed;
}
} else if (_x < _parent.getBoundRight()) {
this._x = this._x + speed;
}
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
function hurtthat() {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (hit.hitTest(_local1.guy.guy.hit)) {
hit_buff = getTimer();
if (random(_local1.guy.d * 3) != 0) {
hurt = _local1.guy.d;
} else {
hurt = 1;
}
hit_1 = hit_1 + 1;
_local1.points = _local1.points + (_local1.guy.d / 2);
_local1.combo_act = true;
_local1.combo_fn();
}
}
if (hit_time == false) {
hit_time = true;
}
if ((getTimer() - hit_buff) > 1000) {
hit_1 = 0;
hit_time = false;
}
if (hurt > 0) {
_local1.spawn_fn("spark", name, _x, _y - 1, _xscale);
_local1.spawn_fn("bill", name, _x, _y - 3, -_xscale);
_local1.spawn_fn("bill", name, _x, _y - 4, -_xscale);
if (hammer) {
flash = true;
} else if (!attacking) {
_local2.gotoAndStop("hurt1");
} else {
flash = true;
}
_local1.bufferStart = getTimer();
if (!pow) {
hp = hp - hurt;
pow = true;
}
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hammer && (hp <= (hpmax / 3))) {
gotoAndStop ("toss");
}
if (hp <= 0) {
gotoAndStop ("die");
}
}
}
function a_fn(damage) {
var _local1 = _parent;
var _local2 = this;
if (!_root.pause) {
if ((_local1.guy._y < (_local2._y + 30)) && (_local1.guy._y > (_local2._y - 30))) {
if (_local2.guy.hit.hitTest(_local1.guy.hit)) {
_local1.guy.hurt = damage;
}
}
}
}
function death() {
var _local1 = _parent;
if (!_root.pause) {
_local1.points = _local1.points + 20;
_local1.combo_fn();
_root.kills = _root.kills + 1;
if (boss) {
_local1.boss = false;
trace("I did it stupid!");
}
itemdrop_fn();
}
}
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
function follow1() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
stop();
hurt_color = new Color(guy);
scale = _xscale;
attacking = false;
hammer = true;
hpmax = hp;
move = true;
flash = false;
hurt = 0;
hit_1 = 0;
hit_time = false;
hitrate = 20 + random(20);
this.swapDepths(this._y + 200);
if (xpos == "right") {
_xscale = (-scale);
} else {
_xscale = scale;
}
attacks = ["swing", "throw", "punch", "fire", "blast"];
Instance of Symbol 224 MovieClip "pausecheck" in Symbol 624 MovieClip [bot1] Frame 1
onClipEvent (enterFrame) {
if (_root.pause) {
_parent.guy.stop();
} else {
_parent.guy.play();
}
}
Symbol 624 MovieClip [bot1] Frame 8
hurt_color.setRGB(10040166);
Instance of Symbol 89 MovieClip "hit" in Symbol 624 MovieClip [bot1] Frame 8
onClipEvent (enterFrame) {
if (!pow) {
_parent.hurtthat();
}
_parent.testhit();
}
Instance of Symbol 553 MovieClip "controller" in Symbol 624 MovieClip [bot1] Frame 8
onClipEvent (load) {
time = 10;
divs = 50;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.swapDepths(_parent._y + 200);
}
Instance of Symbol 582 MovieClip "guy" in Symbol 624 MovieClip [bot1] Frame 20
onClipEvent (enterFrame) {
follow();
}
Instance of Symbol 89 MovieClip "hit" in Symbol 624 MovieClip [bot1] Frame 27
onClipEvent (enterFrame) {
if (!pow) {
_parent.hurtthat();
}
}
Instance of Symbol 224 MovieClip in Symbol 624 MovieClip [bot1] Frame 46
onClipEvent (enterFrame) {
_parent.fall_fn(5);
}
Instance of Symbol 224 MovieClip in Symbol 624 MovieClip [bot1] Frame 56
onClipEvent (enterFrame) {
_parent.fall_fn(-5);
}
Symbol 625 MovieClip Frame 5
removeMovieClip("1");
removeMovieClip("2");
removeMovieClip("3");
removeMovieClip("4");
removeMovieClip("5");
removeMovieClip("6");
removeMovieClip("7");
removeMovieClip("8");
removeMovieClip("9");
this.removemovieclip();
stop();
Symbol 653 Button
on (release) {
getURL ("http://www.sokay.net/", "_blank");
}
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 2
stop();
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 2
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 2
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
Symbol 677 MovieClip Frame 1
stop();
Symbol 677 MovieClip Frame 2
stop();
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 2
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 2
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 2
stop();
Symbol 695 MovieClip Frame 3
stop();
Symbol 710 MovieClip Frame 1
_quality = "medium";
Symbol 710 MovieClip Frame 85
stop();
start_btn.onRelease = function () {
_root.sounds.menu2.start();
play();
};
Instance of Symbol 652 MovieClip "start_btn" in Symbol 710 MovieClip Frame 85
onClipEvent (enterFrame) {
if (Key.isDown(_root.select)) {
_root.sounds.menu2.start();
_parent.play();
}
}
Symbol 710 MovieClip Frame 120
function selectBtn() {
_root.sounds.menu2.start();
gotoAndStop(menu);
}
play();
begin_btn.onRelease = selectBtn;
begin_btn.onRollOver = function () {
selected = 0;
menu = "begin";
_root.sounds.menu1.start();
};
thugbox_btn.onRelease = selectBtn;
thugbox_btn.onRollOver = function () {
selected = 1;
menu = "thugbox";
_root.sounds.menu1.start();
};
options_btn.onRelease = selectBtn;
options_btn.onRollOver = function () {
selected = 2;
menu = "options";
_root.sounds.menu1.start();
};
credits_btn.onRelease = selectBtn;
credits_btn.onRollOver = function () {
selected = 3;
menu = "credits";
_root.sounds.menu1.start();
};
Instance of Symbol 664 MovieClip "begin_btn" in Symbol 710 MovieClip Frame 120
onClipEvent (enterFrame) {
if (_parent.menu == "begin") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 666 MovieClip "thugbox_btn" in Symbol 710 MovieClip Frame 120
onClipEvent (enterFrame) {
if (_parent.menu == "thugbox") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 669 MovieClip "options_btn" in Symbol 710 MovieClip Frame 120
onClipEvent (enterFrame) {
if (_parent.menu == "options") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 672 MovieClip "credits_btn" in Symbol 710 MovieClip Frame 120
onClipEvent (enterFrame) {
if (_parent.menu == "credits") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 184 MovieClip "control" in Symbol 710 MovieClip Frame 120
onClipEvent (load) {
_parent.selected = 0;
_parent.menu_main = ["begin", "thugbox", "options", "credits"];
_parent.menu_buttons = [begin, thugbox, options, credits];
_parent.menu = _parent.menu_main[selected];
keydown = true;
}
onClipEvent (enterFrame) {
_parent.menu = _parent.menu_main[_parent.selected];
if (!keydown) {
if (Key.isDown(38) && (_parent.selected >= 1)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected - 1;
} else if (Key.isDown(40) && (_parent.selected <= 2)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected + 1;
}
if (Key.isDown(32)) {
keydown = true;
_root.sounds.menu2.start();
_parent.gotoandstop(_parent.menu);
}
}
}
onClipEvent (keyUp) {
keydown = false;
}
Symbol 710 MovieClip Frame 125
stop();
control.keydown = false;
Symbol 710 MovieClip Frame 130
play();
Symbol 710 MovieClip Frame 142
_root.sounds.menutrack.stop();
_parent.gotoandstop("intro");
Symbol 710 MovieClip Frame 145
stop();
quality_btn.onRelease = function () {
};
exit_btn.onRelease = function () {
_root.sounds.menu2.start();
gotoAndStop ("menu");
};
skill_btn.onRollOver = function () {
selected = 0;
menu = "skill";
_root.sounds.menu1.start();
};
volume_btn.onRollOver = function () {
selected = 1;
menu = "volume";
_root.sounds.menu1.start();
};
quality_btn.onRollOver = function () {
selected = 2;
menu = "quality";
_root.sounds.menu1.start();
};
exit_btn.onRollOver = function () {
selected = 3;
menu = "exit";
_root.sounds.menu1.start();
};
Instance of Symbol 677 MovieClip "skill_btn" in Symbol 710 MovieClip Frame 145
onClipEvent (enterFrame) {
if (_parent.menu == "skill") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 680 MovieClip "volume_btn" in Symbol 710 MovieClip Frame 145
onClipEvent (load) {
_parent.volume_text = _root.volume + "%";
}
onClipEvent (enterFrame) {
_root.volumemax = _root.volume;
_parent.volume_text = _root.volume + "%";
if (_parent.menu == "volume") {
gotoAndStop (2);
if (!keydown) {
if (Key.isDown(_root.left)) {
if (_root.volume > 0) {
_root.sounds.menu1.start();
_root.volume = _root.volume - 10;
keydown = true;
}
}
if (Key.isDown(_root.right)) {
if (_root.volume < 100) {
_root.sounds.menu1.start();
_root.volume = _root.volume + 10;
keydown = true;
}
}
}
} else {
gotoAndStop (1);
}
}
onClipEvent (keyUp) {
keydown = false;
}
Instance of Symbol 683 MovieClip "exit_btn" in Symbol 710 MovieClip Frame 145
onClipEvent (enterFrame) {
if (_parent.menu == "exit") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 685 MovieClip "volbar" in Symbol 710 MovieClip Frame 145
onClipEvent (load) {
if (_root.volume == 0) {
this.gotoAndStop(2);
}
this.gotoAndStop(_root.volume);
}
onClipEvent (enterFrame) {
_root.frame = _currentframe;
_root.sounds.setvolume(_root.volume);
if (_currentframe < _root.volume) {
this.gotoAndStop(_currentframe + 2);
} else if ((_currentframe > _root.volume) && (_currentframe > 2)) {
this.gotoAndStop(_currentframe - 2);
}
}
Instance of Symbol 688 MovieClip "quality_btn" in Symbol 710 MovieClip Frame 145
onClipEvent (enterFrame) {
if (_parent.menu == "quality") {
gotoAndStop (2);
if (!keydown) {
if (Key.isDown(_root.left)) {
if (_root.qset > 1) {
_root.sounds.menu1.start();
_root.qset = _root.qset - 1;
keydown = true;
}
}
if (Key.isDown(_root.right)) {
if (_root.qset < 3) {
_root.sounds.menu1.start();
_root.qset = _root.qset + 1;
keydown = true;
}
}
}
} else {
gotoAndStop (1);
}
}
onClipEvent (keyUp) {
keydown = false;
}
Instance of Symbol 695 MovieClip "quality" in Symbol 710 MovieClip Frame 145
onClipEvent (load) {
if (_root.qset == 1) {
_quality = "LOW";
gotoAndStop (1);
} else if (_root.qset == 2) {
_quality = "MEDIUM";
gotoAndStop (2);
} else {
_quality = "HIGH";
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.qset == 1) {
_quality = "LOW";
gotoAndStop (1);
} else if (_root.qset == 2) {
_quality = "MEDIUM";
gotoAndStop (2);
} else {
_quality = "HIGH";
gotoAndStop (3);
}
}
Instance of Symbol 184 MovieClip in Symbol 710 MovieClip Frame 145
onClipEvent (load) {
_parent.selected = 0;
_parent.menu_options = ["skill", "volume", "quality", "exit"];
_parent.menu = _parent.menu_options[selected];
}
onClipEvent (enterFrame) {
_parent.menu = _parent.menu_options[_parent.selected];
if (!keydown) {
if (Key.isDown(38) && (_parent.selected >= 1)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected - 1;
} else if (Key.isDown(40) && (_parent.selected <= 2)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected + 1;
}
if (Key.isDown(32)) {
keydown = true;
if (_parent.menu == "exit") {
_root.sounds.menu2.start();
_parent.gotoandstop("menu");
}
}
}
}
onClipEvent (keyUp) {
keydown = false;
}
Symbol 710 MovieClip Frame 154
play();
exit_btn.onRelease = function () {
_root.sounds.menu2.start();
gotoAndStop ("menu");
};
Instance of Symbol 184 MovieClip "control" in Symbol 710 MovieClip Frame 154
onClipEvent (load) {
_parent.selected = 0;
_parent.menu_credits = ["exit"];
_parent.menu = _parent.menu_credits[selected];
keydown = true;
}
onClipEvent (enterFrame) {
_parent.menu = _parent.menu_credits[_parent.selected];
if (!keydown) {
if (Key.isDown(32)) {
_root.sounds.menu2.start();
keydown = true;
if (_parent.menu == "exit") {
_parent.gotoandstop("menu");
}
}
}
}
onClipEvent (keyUp) {
keydown = false;
}
Symbol 710 MovieClip Frame 159
control.keydown = false;
stop();
Symbol 716 Button
on (release) {
gotoAndPlay ("level one");
}
Symbol 789 MovieClip Frame 1
_parent.attacking = false;
Symbol 792 MovieClip Frame 1
_root.sounds.drumtrack.start(0, 999);
Instance of Symbol 184 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoandplay("level one");
}
}
Symbol 792 MovieClip Frame 860
_root.sounds.drumtrack.stop();
Symbol 792 MovieClip Frame 948
_root.gotoandstop("1a");
Symbol 798 MovieClip Frame 1
play();
Symbol 798 MovieClip Frame 2
if (!_root.zooming) {
gotoAndPlay (1);
} else {
play();
}
Symbol 802 MovieClip Frame 1
if (this._x < 500) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -500) {
removeMovieClip(this);
}
Symbol 804 MovieClip Frame 1
if (this._x < 500) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -500) {
removeMovieClip(this);
}
Symbol 807 MovieClip [fgtree] Frame 1
if (this._x < 600) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -600) {
removeMovieClip(this);
}
if (box.hittest(_parent.guy)) {
if (this._alpha > 50) {
this._alpha = this._alpha - 5;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
Symbol 809 MovieClip Frame 33
stop();
removeMovieClip(this);
Symbol 810 MovieClip Frame 1
stop();
function guy_load() {
this.attachMovie("guy", "guy", 300);
guy._xscale = 200;
guy._yscale = 200;
guy._y = 3;
}
function badload_fn(type, hp, name, level, item, rate, xpos, ypos) {
var _local1 = name;
var _local2 = this;
var _local3 = ypos;
guyname = "bad_" + _local1;
trace("loading..." + guyname);
_local2.attachMovie(type, guyname, _local3 + 600);
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].name = _local1;
_local2["bad_" + _local1].item = item;
_local2["bad_" + _local1]._y = _local3;
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].rate = rate;
_local2["bad_" + _local1].xpos = xpos;
if (xpos == "right") {
_local2["bad_" + _local1]._x = 150;
} else {
_local2["bad_" + _local1]._x = -150;
}
hbarname = "hbar_" + _local1;
_local2.attachMovie("hbar", "hbar_" + _local1, _local3 + 100);
_local2["hbar_" + _local1]._xscale = 50;
_local2["hbar_" + _local1]._yscale = 50;
_local2["hbar_" + _local1].name = _local1;
}
function bossload_fn(type, hp, name, level, item, rate, xpos, ypos) {
var _local1 = name;
var _local2 = this;
_root.sounds.leveltrack.stop();
_root.sounds.bosstrack.start(0, 999);
guyname = "bad_" + _local1;
trace("loading...boss..." + guyname);
_local2.attachMovie(type, guyname, ypos);
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].name = _local1;
_local2["bad_" + _local1].item = item;
_local2["bad_" + _local1]._y = ypos;
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].rate = rate;
_local2["bad_" + _local1].boss = true;
_local2["bad_" + _local1].xpos = xpos;
if (xpos == "right") {
_local2["bad_" + _local1]._x = 150;
} else {
_local2["bad_" + _local1]._x = -150;
}
hbarname = "hbar_" + _local1;
_parent.attachMovie("bossbar", "bossbar", 30);
_parent.bossbar.name = _local1;
}
function item_fn(item, name, xnum, ynum) {
var _local1 = name;
var _local2 = this;
boxname = "it_" + _local1;
_local2.attachMovie(item, boxname, ynum + 3);
_local2["it_" + _local1]._y = ynum;
_local2["it_" + _local1]._x = xnum;
}
function spawn_fn(effect, name, xnum, ynum, dir) {
var _local1 = effect;
var _local2 = name;
var _local3 = this;
if (dep == 1) {
dep = 2;
} else if (dep == 2) {
dep = 3;
} else if (dep == 3) {
dep = 4;
} else {
dep = 1;
}
boxname = (("sp_" + _local2) + _local1) + dep;
_local3.attachMovie(_local1, boxname, (ynum + 400) + dep);
_local3[(("sp_" + _local2) + _local1) + dep]._y = ynum - 125;
if (dir < 0) {
_local3[(("sp_" + _local2) + _local1) + dep]._x = xnum - 30;
} else {
_local3[(("sp_" + _local2) + _local1) + dep]._x = xnum + 30;
}
}
function combo_fn() {
if (combo_act) {
_parent.meter.gotoandplay(1);
if (!timer) {
timer = true;
bufferStart = getTimer();
}
score = points * mult;
setProperty("_parent.meter", _visible , 1);
if ((combo > 10) && (combo < 15)) {
setProperty("_parent.meter.mult", _visible , 1);
mult = 2;
} else if ((combo > 15) && (combo < 20)) {
mult = 3;
} else if ((combo > 21) && (combo < 23)) {
mult = 4;
}
}
}
function combo_end() {
if ((bufferStart + 1800) < getTimer()) {
combo_act = false;
setProperty("_parent.meter", _visible , 0);
setProperty("_parent.meter.mult", _visible , 0);
_parent.wallet = _parent.wallet + score;
timer = false;
combo = 0;
score = 0;
points = 0;
mult = 1;
}
}
function slowmo() {
this.attachMovie("slowmo", "slowmo", 663);
}
fg = [fg1, fg2, fg3, fg4, fg5, fg6, fg7];
dist = [100, 225, 350, 475, 550, 600, 650, 680, 780, 850, 851, 853, 855];
enemies = [bad1, bad2, bad3, bad4];
it = [it1, it_ash, it_sam, it_max];
names1 = ["sam", "tom", "ash", "jack", "harry", "joe", "bob", "zach", "jake", "marky", "gilbert", "shawn", "matt", "patrick", "goff", "bowd", "burk", "pigg", "grah", "ares", "chap", "hunt", "mcree", "melville", "karl", "hal", "vinny", "candy", "rusty", "captain"];
queue = "none";
_root.q1 = "none";
_root.q2 = "none";
_root.q3 = "none";
dep = 1;
combo_act = false;
combo = 0;
score = 0;
points = 0;
mult = 1;
guy_load();
function getBoundLeft() {
return(GameArea._x);
}
function getBoundRight() {
return(GameArea._x + GameArea._width);
}
function getBoundUp() {
return(GameArea._y);
}
function getBoundDown() {
return(GameArea._y + GameArea._height);
}
Instance of Symbol 800 MovieClip "GameArea" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 802 MovieClip "fg_m1" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 569);
}
Instance of Symbol 804 MovieClip "fg1" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 520);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t1" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 501);
}
Instance of Symbol 802 MovieClip "fg_m2" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 536);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t3" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 503);
}
Instance of Symbol 804 MovieClip "fg3" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1099);
}
Instance of Symbol 14 MovieClip "combo" in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.combo_act) {
_parent.combo_end();
}
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
_parent.combo_end();
}
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t2" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 502);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t4" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 504);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t5" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 505);
}
Instance of Symbol 804 MovieClip "fg8" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(4323);
}
Instance of Symbol 804 MovieClip "fg7" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(7639);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t6" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 506);
}
Instance of Symbol 804 MovieClip "fg9" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1525);
}
Instance of Symbol 807 MovieClip [fgtree] "fg_t7" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 507);
}
Instance of Symbol 804 MovieClip "fg11" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 527);
}
Instance of Symbol 802 MovieClip "fg_m3" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 513);
}
Instance of Symbol 802 MovieClip "fg_m4" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 514);
}
Instance of Symbol 802 MovieClip "fg_m5" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 515);
}
Instance of Symbol 804 MovieClip "fg10" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1583);
}
Instance of Symbol 802 MovieClip "fg_m6" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 516);
}
Instance of Symbol 802 MovieClip "fg_m7" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 517);
}
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.distance >= _parent.dist[0]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
_root.kills = 0;
this.swapDepths(997);
}
Symbol 810 MovieClip Frame 2
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.distance >= 25) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 3
badload_fn("officer01", 8, names1[0], 0, "burger", 1000, "right", 1);
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 3
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 1) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 4
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 4
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[1]) {
trace("toframe5");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 4
onClipEvent (load) {
_root.kills = 0;
this.swapDepths(9999);
}
Symbol 810 MovieClip Frame 5
stop();
badload_fn("officer01", 12, names1[1], 0, "burger", 1000, "right", 6);
badload_fn("officer01", 10, names1[2], 0, "burger", 1000, "left", -20);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 5
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 1) {
trace("toframe6");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 6
stop();
badload_fn("officer01", 8, names1[4], 0, "burger", 1000, "right", 19);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 6
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("toframe7");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 7
stop();
badload_fn("officer01", 12, names1[5], 0, "burger", 1000, "left", 20);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 7
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 4) {
trace("toframe8");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 8
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 8
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[2]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 8
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 9
stop();
badload_fn("officer01", 12, names1[6], 0, "burger", 1000, "left", 6);
badload_fn("officer01", 12, names1[7], 0, "burger", 1000, "right", 57);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 9
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 10
stop();
badload_fn("officer01", 14, names1[8], 0, "burger", 1000, "right", 8);
badload_fn("officer01", 16, names1[9], 0, "burger", 1, "left", 50);
badload_fn("officer01", 14, names1[10], 0, "burger", 1000, "right", 59);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 10
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 11
stop();
badload_fn("officer01", 12, names1[11], 0, "burger", 1000, "left", -7);
badload_fn("officer01", 13, names1[12], 0, "burger", 800, "left", 64);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 11
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 7) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 12
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 12
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[3]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 12
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 13
stop();
badload_fn("officer01", 18, names1[13], 0, "burger", 2000, "right", 2);
badload_fn("officer01", 13, names1[14], 0, "burger", 15, "left", 53);
badload_fn("officer01", 16, names1[15], 0, "burger", 1500, "right", 48);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 13
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 3) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 14
stop();
badload_fn("officer01", 16, names1[16], 0, "burger", 800, "left", -12);
badload_fn("officer01", 18, names1[17], 0, "burger", 1100, "right", 61);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 14
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 15
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 15
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[4]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 15
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 16
stop();
badload_fn("officer01", 30, names1[18], 0, "burger", 1000, "left", 1);
badload_fn("officer01", 40, names1[19], 0, "burger", 1, "left", 62);
bossload_fn("officer02", 70, names1[3], 0, "burger", 1000, "right", 46);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 16
onClipEvent (load) {
_root.scroll = false;
_parent.boss = true;
}
onClipEvent (enterFrame) {
if (!_parent.boss) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 17
trace("cut");
_root.sounds.bosstrack.stop();
_root.cutshow = true;
_root.cut.play();
stop();
Symbol 810 MovieClip Frame 18
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 3) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 19
_root.cutshow = false;
_root.sounds.leveltrack.start(0, 999);
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 19
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[5]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 19
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 20
stop();
badload_fn("officer01", 18, names1[20], 0, "burger", 2000, "right", -24);
badload_fn("officer01", 13, names1[21], 0, "burger", 1500, "left", -7);
badload_fn("officer02", 20, names1[22], 0, "burger", 1500, "right", 45);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 20
onClipEvent (load) {
_root.scroll = false;
_root.kills = 0;
}
onClipEvent (enterFrame) {
if (_root.kills >= 3) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 21
stop();
badload_fn("officer01", 16, names1[23], 0, "burger", 2000, "left", -2);
badload_fn("officer02", 18, names1[24], 0, "burger", 1, "right", 53);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 21
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 22
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 22
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[6]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 22
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 23
stop();
badload_fn("officer01", 18, names1[25], 0, "burger", 500, "right", -23);
badload_fn("officer01", 16, names1[26], 0, "burger", 500, "right", 3);
badload_fn("officer01", 15, names1[27], 0, "burger", 150, "left", -9);
badload_fn("officer02", 17, names1[28], 0, "burger", 1, "left", 45);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 23
onClipEvent (load) {
_root.scroll = false;
_root.kills = 0;
}
onClipEvent (enterFrame) {
if (_root.kills >= 4) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 24
stop();
badload_fn("officer01", 15, names1[2], 0, "burger", 2000, "right", 19);
badload_fn("officer02", 20, names1[18], 0, "burger", 3000, "right", 57);
badload_fn("officer01", 16, names1[11], 0, "burger", 10, "left", -16);
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 24
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 7) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 25
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 25
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[7]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 810 MovieClip Frame 25
onClipEvent (load) {
this.swapDepths(9999);
_root.kills = 0;
}
Symbol 810 MovieClip Frame 26
badload_fn("eman", 0, "eman", 0, "burger", 1, "right", 4);
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 26
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[8]) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 27
bossload_fn("bot1", 250, names1[29], 0, "burger", 1000, "left", 1);
badload_fn("officer01", 20, names1[5], 0, "burger", 1, "left", 20);
stop();
Instance of Symbol 14 MovieClip in Symbol 810 MovieClip Frame 27
onClipEvent (load) {
_root.scroll = false;
_parent.boss = true;
}
onClipEvent (enterFrame) {
if (!_parent.boss) {
trace("next");
_parent.nextFrame();
}
}
Symbol 810 MovieClip Frame 28
_root.sounds.bosstrack.stop();
trace("end that shiet");
play();
Symbol 810 MovieClip Frame 40
_root.cutshow = true;
_root.cut.gotoandstop("l2");
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 100
stop();
Symbol 828 MovieClip Frame 40
setProperty(this, _visible , 0);
gotoAndStop (1);
Symbol 832 MovieClip Frame 1
_root.sb = false;
play();
Symbol 832 MovieClip Frame 100
_root.sb = true;
stop();
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 2
stop();
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
stop();
Instance of Symbol 680 MovieClip "volume_btn" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
_parent.volume_text = _root.volume + "%";
}
onClipEvent (enterFrame) {
_root.volumemax = _root.volume;
_parent.volume_text = _root.volume + "%";
if (_parent.menu == "volume") {
gotoAndStop (2);
if (!keydown) {
if (Key.isDown(_root.left)) {
if (_root.volume > 0) {
_root.sounds.menu1.start();
_root.volume = _root.volume - 10;
keydown = true;
}
}
if (Key.isDown(_root.right)) {
if (_root.volume < 100) {
_root.sounds.menu1.start();
_root.volume = _root.volume + 10;
keydown = true;
}
}
}
} else {
gotoAndStop (1);
}
}
onClipEvent (keyUp) {
keydown = false;
}
Instance of Symbol 840 MovieClip "exit_btn" in Symbol 859 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.menu == "exit") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 685 MovieClip "volbar" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
if (_root.volume == 0) {
this.gotoAndStop(2);
}
this.gotoAndStop(_root.volume);
}
onClipEvent (enterFrame) {
_root.frame = _currentframe;
_root.sounds.setvolume(_root.volume);
if (_currentframe < _root.volume) {
this.gotoAndStop(_currentframe + 2);
} else if ((_currentframe > _root.volume) && (_currentframe > 2)) {
this.gotoAndStop(_currentframe - 2);
}
}
Instance of Symbol 688 MovieClip "quality_btn" in Symbol 859 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.menu == "quality") {
gotoAndStop (2);
if (!keydown) {
if (Key.isDown(_root.left)) {
if (_root.qset > 1) {
_root.sounds.menu1.start();
_root.qset = _root.qset - 1;
keydown = true;
}
}
if (Key.isDown(_root.right)) {
if (_root.qset < 3) {
_root.sounds.menu1.start();
_root.qset = _root.qset + 1;
keydown = true;
}
}
}
} else {
gotoAndStop (1);
}
}
onClipEvent (keyUp) {
keydown = false;
}
Instance of Symbol 695 MovieClip "quality" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
if (_root.qset == 1) {
_quality = "LOW";
gotoAndStop (1);
} else if (_root.qset == 2) {
_quality = "MEDIUM";
gotoAndStop (2);
} else {
_quality = "HIGH";
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.qset == 1) {
_quality = "LOW";
gotoAndStop (1);
} else if (_root.qset == 2) {
_quality = "MEDIUM";
gotoAndStop (2);
} else {
_quality = "HIGH";
gotoAndStop (3);
}
}
Instance of Symbol 845 MovieClip in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.level);
}
Instance of Symbol 845 MovieClip in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.level);
}
Instance of Symbol 184 MovieClip in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
_parent.selected = 0;
_parent.menu_options = ["volume", "quality", "exit"];
_parent.menu = _parent.menu_options[selected];
}
onClipEvent (enterFrame) {
_parent.menu = _parent.menu_options[_parent.selected];
if (_parent.selected < 2) {
_parent.close = true;
} else {
_parent.close = false;
}
if (!keydown) {
if (Key.isDown(38) && (_parent.selected >= 1)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected - 1;
} else if (Key.isDown(40) && (_parent.selected <= 1)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected + 1;
}
if (Key.isDown(32)) {
keydown = true;
if (_parent.menu == "exit") {
_root.sounds.menu2.start();
_parent.gotoandstop("confirm");
}
}
}
}
onClipEvent (keyUp) {
keydown = false;
}
Symbol 859 MovieClip Frame 15
stop();
exit_btn.onRelease = function () {
_root.sounds.menu2.start();
gotoAndStop ("confirm");
};
volume_btn.onRollOver = function () {
selected = 0;
menu = "volume";
_root.sounds.menu1.start();
};
quality_btn.onRollOver = function () {
selected = 1;
menu = "quality";
_root.sounds.menu1.start();
};
exit_btn.onRollOver = function () {
selected = 2;
menu = "exit";
_root.sounds.menu1.start();
};
Symbol 859 MovieClip Frame 16
stop();
yes_btn.onRelease = function () {
_root.sounds.menu2.start();
_root.nextframe();
};
no_btn.onRelease = function () {
_root.sounds.menu2.start();
gotoAndStop ("menu");
};
yes_btn.onRollOver = function () {
selected = 0;
menu = "yes";
_root.sounds.menu1.start();
};
no_btn.onRollOver = function () {
selected = 1;
menu = "no";
_root.sounds.menu1.start();
};
Instance of Symbol 184 MovieClip in Symbol 859 MovieClip Frame 16
onClipEvent (load) {
_parent.selected = 1;
_parent.menu_options = ["yes", "no"];
_parent.menu = _parent.menu_options[selected];
keydown = true;
}
onClipEvent (enterFrame) {
_parent.menu = _parent.menu_options[_parent.selected];
if (_parent.selected == 0) {
_parent.close = true;
} else {
_parent.close = false;
}
if (!keydown) {
if (Key.isDown(37) && (_parent.selected == 1)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected - 1;
} else if (Key.isDown(39) && (_parent.selected == 0)) {
keydown = true;
_root.sounds.menu1.start();
_parent.selected = _parent.selected + 1;
}
if (Key.isDown(32)) {
keydown = true;
if (_parent.menu == "yes") {
_root.sounds.menu2.start();
_root.nextframe();
} else {
_root.sounds.menu2.start();
_parent.gotoAndStop("menu");
}
}
}
}
onClipEvent (keyUp) {
keydown = false;
}
Instance of Symbol 854 MovieClip "yes_btn" in Symbol 859 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_parent.menu == "yes") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 858 MovieClip "no_btn" in Symbol 859 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_parent.menu == "no") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 860 MovieClip Frame 1
stop();
this.swapDepths(50);
Symbol 860 MovieClip Frame 2
stop();
Symbol 895 MovieClip Frame 1
_root.pause = true;
Symbol 895 MovieClip Frame 157
_root.pause = false;
_root.world.play();
_parent.play();
Symbol 900 MovieClip Frame 20
_root.sounds.drumtrack.start(0, 999);
Instance of Symbol 184 MovieClip in Symbol 900 MovieClip Frame 20
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoandplay("level two");
}
}
Symbol 900 MovieClip Frame 183
_root.sounds.drumtrack.stop();
Symbol 900 MovieClip Frame 271
_root.pause = false;
_parent.play();
_root.gotoandstop("2a");
Symbol 905 MovieClip Frame 1
_root.sounds.leveltrack.stop();
_root.sounds.bosstrack.stop();
Symbol 905 MovieClip Frame 140
_root.pause = false;
_root.gotoandstop("exit");
stop();
Symbol 908 MovieClip Frame 1
_root.sounds.leveltrack.stop();
_root.sounds.bosstrack.stop();
_root.sounds.menutrack.start(0, 999);
Symbol 908 MovieClip Frame 1058
_root.pause = false;
_root.sounds.menutrack.stop();
_root.gotoandstop("exit");
stop();
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 2
stop();
Symbol 909 MovieClip Frame 3
stop();
Symbol 909 MovieClip Frame 4
stop();
Symbol 909 MovieClip Frame 5
stop();
Symbol 909 MovieClip Frame 6
stop();
Symbol 909 MovieClip Frame 7
stop();
Symbol 909 MovieClip Frame 8
stop();
Symbol 909 MovieClip Frame 9
stop();
Symbol 910 MovieClip Frame 11
stop();
Symbol 911 MovieClip Frame 11
_root.gotoandplay("exit");
stop();
Symbol 916 MovieClip Frame 1
play();
Symbol 916 MovieClip Frame 2
if (!_root.zooming) {
gotoAndPlay (1);
} else {
play();
}
Symbol 918 MovieClip Frame 1
if (this._x < 600) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -600) {
removeMovieClip(this);
}
if (box.hittest(_parent.guy)) {
if (this._alpha > 50) {
this._alpha = this._alpha - 5;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
Symbol 920 MovieClip Frame 1
if (this._x < 600) {
this._visible = true;
} else {
this._visible = false;
}
if (this._x < -600) {
removeMovieClip(this);
}
Symbol 921 MovieClip Frame 1
stop();
function guy_load() {
this.attachMovie("guy", "guy", 202);
guy._xscale = 200;
guy._yscale = 200;
guy._y = 2;
}
function cabinman() {
this.attachMovie("cabin", "cabin", 119);
cabin._x = 110;
cabin._y = -75;
}
function badload_fn(type, hp, name, level, item, rate, xpos, ypos) {
var _local1 = name;
var _local2 = this;
var _local3 = ypos;
guyname = "bad_" + _local1;
trace("loading..." + guyname);
_local2.attachMovie(type, guyname, _local3 + 600);
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].name = _local1;
_local2["bad_" + _local1].item = item;
_local2["bad_" + _local1]._y = _local3;
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].rate = rate;
_local2["bad_" + _local1].xpos = xpos;
if (xpos == "right") {
_local2["bad_" + _local1]._x = 150;
} else {
_local2["bad_" + _local1]._x = -150;
}
hbarname = "hbar_" + _local1;
_local2.attachMovie("hbar", "hbar_" + _local1, _local3 + 100);
_local2["hbar_" + _local1]._xscale = 50;
_local2["hbar_" + _local1]._yscale = 50;
_local2["hbar_" + _local1].name = _local1;
}
function bossload_fn(type, hp, name, level, item, rate, xpos, ypos) {
var _local1 = name;
var _local2 = this;
_root.sounds.leveltrack.stop();
_root.sounds.bosstrack.start(0, 999);
guyname = "bad_" + _local1;
trace("loading...boss..." + guyname);
_local2.attachMovie(type, guyname, ypos);
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].name = _local1;
_local2["bad_" + _local1].item = item;
_local2["bad_" + _local1]._y = ypos;
_local2["bad_" + _local1].hp = hp;
_local2["bad_" + _local1].rate = rate;
_local2["bad_" + _local1].boss = true;
_local2["bad_" + _local1].xpos = xpos;
if (xpos == "right") {
_local2["bad_" + _local1]._x = 150;
} else {
_local2["bad_" + _local1]._x = -150;
}
hbarname = "hbar_" + _local1;
_parent.attachMovie("bossbar", "bossbar", 30);
_parent.bossbar.name = _local1;
}
function item_fn(item, name, xnum, ynum) {
var _local1 = name;
var _local2 = this;
boxname = "it_" + _local1;
_local2.attachMovie(item, boxname, ynum + 3);
_local2["it_" + _local1]._y = ynum;
_local2["it_" + _local1]._x = xnum;
}
function spawn_fn(effect, name, xnum, ynum, dir) {
var _local1 = effect;
var _local2 = name;
var _local3 = this;
if (dep == 1) {
dep = 2;
} else if (dep == 2) {
dep = 3;
} else if (dep == 3) {
dep = 4;
} else {
dep = 1;
}
boxname = (("sp_" + _local2) + _local1) + dep;
_local3.attachMovie(_local1, boxname, (ynum + 400) + dep);
_local3[(("sp_" + _local2) + _local1) + dep]._y = ynum - 125;
if (dir < 0) {
_local3[(("sp_" + _local2) + _local1) + dep]._x = xnum - 30;
} else {
_local3[(("sp_" + _local2) + _local1) + dep]._x = xnum + 30;
}
}
function combo_fn() {
if (combo_act) {
_parent.meter.gotoandplay(1);
if (!timer) {
timer = true;
bufferStart = getTimer();
}
score = points * mult;
setProperty("_parent.meter", _visible , 1);
if ((combo > 10) && (combo < 15)) {
setProperty("_parent.meter.mult", _visible , 1);
mult = 2;
} else if ((combo > 15) && (combo < 20)) {
mult = 3;
} else if ((combo > 21) && (combo < 23)) {
mult = 4;
}
}
}
function combo_end() {
if ((bufferStart + 1800) < getTimer()) {
combo_act = false;
setProperty("_parent.meter", _visible , 0);
setProperty("_parent.meter.mult", _visible , 0);
_parent.wallet = _parent.wallet + score;
timer = false;
combo = 0;
score = 0;
points = 0;
mult = 1;
}
}
function slowmo() {
this.attachMovie("slowmo", "slowmo", 663);
}
fg = [fg1, fg2, fg3, fg4, fg5, fg6, fg7];
dist = [60, 100, 150, 225, 350, 450, 525, 570, 715];
enemies = [bad1, bad2, bad3, bad4];
it = [it1, it_ash, it_sam, it_max];
names1 = ["sam", "tom", "ash", "jack", "harry", "joe", "bob", "zach", "jake", "marky", "gilbert", "shawn", "matt", "patrick", "goff", "bowd", "burk", "pigg", "grah", "ares", "chap", "hunt", "mcree", "melville", "karl", "hal", "vinny", "candy", "rusty", "captain", "spike", "mcgruff", "oliver", "killer", "slayer", "ruth", "grim", "vic", "way", "brut", "wal", "loke", "one", "tre", "pee", "dook", "loc", "ak48", "anferny", "lou", "samson", "benja", "magnum", "ghost", "mean", "slick", "redman", "snipes", "oscar"];
queue = "none";
_root.q1 = "none";
_root.q2 = "none";
_root.q3 = "none";
dep = 1;
combo_act = false;
combo = 0;
score = 0;
points = 0;
mult = 1;
guy_load();
function getBoundLeft() {
return(GameArea._x);
}
function getBoundRight() {
return(GameArea._x + GameArea._width);
}
function getBoundUp() {
return(GameArea._y);
}
function getBoundDown() {
return(GameArea._y + GameArea._height);
}
Instance of Symbol 800 MovieClip "GameArea" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 14 MovieClip "combo" in Symbol 921 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.combo_act) {
_parent.combo_end();
}
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
_parent.combo_end();
}
}
Instance of Symbol 918 MovieClip "fg2" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 502);
}
Instance of Symbol 920 MovieClip "fg1" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 501);
}
Instance of Symbol 918 MovieClip "fg3" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 503);
}
Instance of Symbol 918 MovieClip "fg4" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 504);
}
Instance of Symbol 918 MovieClip "fg5" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 505);
}
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.distance >= _parent.dist[0]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
_root.kills = 0;
this.swapDepths(997);
}
Symbol 921 MovieClip Frame 2
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.distance >= 25) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 3
badload_fn("officer01", 15, names1[10], 0, "burger", 1000, "right", 17);
badload_fn("officer01", 14, names1[11], 0, "burger", 1000, "left", -24);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 3
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 4
badload_fn("officer01", 13, names1[12], 0, "burger", 1000, "left", 14);
badload_fn("officer02", 18, names1[13], 0, "burger", 1000, "right", -3);
badload_fn("officer01", 14, names1[14], 0, "burger", 1000, "left", -29);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 4
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 5
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 5
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[1]) {
trace("toframe5");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 5
onClipEvent (load) {
_root.kills = 0;
this.swapDepths(999);
}
Symbol 921 MovieClip Frame 6
stop();
_root.kills = 0;
badload_fn("officer01", 16, names1[15], 0, "burger", 1000, "left", 13);
badload_fn("officer01", 14, names1[16], 0, "burger", 1000, "right", 23);
badload_fn("officer01", 17, names1[17], 0, "burger", 1000, "left", -32);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 6
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 3) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 7
stop();
badload_fn("dog", 8, names1[30], 0, "burger", 1, "right", 17);
badload_fn("officer01", 20, names1[18], 0, "burger", 1000, "left", 20);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 7
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 4) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 8
stop();
badload_fn("officer01", 20, names1[19], 0, "burger", 1000, "left", 20);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 8
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 6) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 9
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 9
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[2]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 9
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 10
stop();
_root.kills = 0;
badload_fn("officer01", 20, names1[20], 0, "burger", 1000, "left", 23);
badload_fn("dog", 10, names1[31], 0, "burger", 200, "right", 57);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 10
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 11
stop();
badload_fn("officer01", 18, names1[21], 0, "burger", 1000, "right", 19);
badload_fn("officer02", 21, names1[22], 0, "burger", 10, "left", -8);
badload_fn("officer01", 18, names1[23], 0, "burger", 1000, "right", -28);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 11
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 4) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 12
stop();
badload_fn("officer01", 20, names1[24], 0, "burger", 1, "right", 5);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 12
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 13
stop();
badload_fn("officer01", 20, names1[25], 0, "burger", 1000, "right", 5);
badload_fn("dog", 10, names1[32], 0, "burger", 200, "left", -15);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 13
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 8) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 14
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 14
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[3]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 14
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 15
stop();
_root.kills = 0;
badload_fn("officer01", 18, names1[26], 0, "burger", 2000, "right", -12);
badload_fn("officer01", 23, names1[27], 0, "burger", 1005, "left", 12);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 15
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 16
stop();
badload_fn("officer02", 28, names1[0], 0, "burger", 800, "left", -14);
badload_fn("officer01", 23, names1[1], 0, "burger", 1100, "right", 34);
badload_fn("dog", 10, names1[33], 0, "burger", 200, "right", -25);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 16
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 17
stop();
badload_fn("officer01", 24, names1[2], 0, "burger", 8, "left", 51);
badload_fn("dog", 10, names1[34], 0, "burger", 11, "left", 61);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 17
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 7) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 18
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 18
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[4]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 18
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 19
stop();
_root.kills = 0;
badload_fn("officer01", 23, names1[3], 0, "burger", 1, "left", 1);
bossload_fn("officer03", 64, names1[40], 0, "burger", 1, "right", 46);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 19
onClipEvent (load) {
_root.scroll = false;
_parent.boss = true;
}
onClipEvent (enterFrame) {
if (!_parent.boss) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 20
stop();
slowmo();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 20
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 21
_root.cutshow = false;
_root.sounds.bosstrack.stop();
_root.sounds.leveltrack.start(0, 999);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 21
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[5]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 21
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 22
stop();
badload_fn("zom_b", 16, names1[41], 0, "burger", 200, "right", -2);
badload_fn("zom_b", 13, names1[42], 0, "burger", 200, "left", 16);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 22
onClipEvent (load) {
_root.scroll = false;
_root.kills = 0;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 23
stop();
badload_fn("zom_c", 23, names1[43], 0, "burger", 200, "right", -2);
badload_fn("zom_c", 12, names1[44], 0, "burger", 1, "left", 40);
badload_fn("zom_c", 16, names1[45], 0, "burger", 1000, "left", -3);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 23
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 24
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 24
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[6]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 24
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 25
stop();
badload_fn("zom_b", 20, names1[46], 0, "burger", 200, "right", 18);
badload_fn("zom_b", 16, names1[47], 0, "burger", 1000, "left", -21);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 25
onClipEvent (load) {
_root.scroll = false;
_root.kills = 0;
}
onClipEvent (enterFrame) {
if (_root.kills >= 2) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 26
stop();
badload_fn("zom_c", 23, names1[48], 0, "burger", 2000, "right", 27);
badload_fn("zom_c", 15, names1[49], 0, "burger", 1000, "left", 6);
badload_fn("dog", 8, names1[35], 0, "burger", 1, "left", 9);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 26
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 5) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 27
stop();
badload_fn("zom_b", 23, names1[50], 0, "burger", 2000, "right", 7);
badload_fn("zom_b", 20, names1[51], 0, "burger", 1000, "left", 52);
badload_fn("zom_b", 18, names1[52], 0, "burger", 100, "left", -11);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 27
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 7) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 28
stop();
badload_fn("zom_c", 23, names1[53], 0, "burger", 2000, "rightt", 4);
badload_fn("zom_c", 20, names1[54], 0, "burger", 1000, "left", 54);
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 28
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 10) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 29
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 29
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[7]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 29
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 30
_root.kills = 0;
badload_fn("zom_b", 18, names1[56], 0, "burger", 2000, "left", 46);
badload_fn("zom_c", 24, names1[55], 0, "burger", 1000, "left", -6);
badload_fn("dog", 12, names1[36], 0, "burger", 100, "right", 14);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 30
onClipEvent (load) {
_root.scroll = false;
}
onClipEvent (enterFrame) {
if (_root.kills >= 3) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 31
badload_fn("zom_b", 23, names1[57], 0, "burger", 2000, "right", 46);
badload_fn("zom_b", 17, names1[46], 0, "burger", 2000, "right", -7);
badload_fn("zom_c", 24, names1[45], 0, "burger", 1000, "left", -6);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 31
onClipEvent (enterFrame) {
if (_root.kills >= 6) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 32
badload_fn("zom_b", 14, names1[42], 0, "burger", 2000, "left", -1);
badload_fn("zom_c", 23, names1[44], 0, "burger", 2000, "right", 49);
badload_fn("zom_c", 17, names1[43], 0, "burger", 1000, "right", -18);
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 32
onClipEvent (enterFrame) {
if (_root.kills >= 9) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 33
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 33
onClipEvent (load) {
_root.scroll = true;
}
onClipEvent (enterFrame) {
if (_root.distance == _parent.dist[8]) {
trace("next");
_parent.nextFrame();
}
}
Instance of Symbol 809 MovieClip "go" in Symbol 921 MovieClip Frame 33
onClipEvent (load) {
this.swapDepths(999);
_root.kills = 0;
}
Symbol 921 MovieClip Frame 34
bossload_fn("bear", 220, names1[58], 0, "burger", 1000, "right", 17);
cabinman();
stop();
Instance of Symbol 14 MovieClip in Symbol 921 MovieClip Frame 34
onClipEvent (load) {
_root.scroll = false;
_parent.boss = true;
}
onClipEvent (enterFrame) {
if (!_parent.boss) {
trace("next");
_parent.nextFrame();
}
}
Symbol 921 MovieClip Frame 35
play();
_root.sounds.bosstrack.stop();
Symbol 921 MovieClip Frame 51
_root.cutshow = true;
_root.cut.gotoandstop("end");
stop();
Symbol 927 MovieClip Frame 20
_parent.gotoAndStop("stand");
Instance of Symbol 89 MovieClip "hit" in Symbol 930 MovieClip Frame 8
onClipEvent (load) {
_parent._parent.a_fn(3);
}
Instance of Symbol 89 MovieClip "hit" in Symbol 930 MovieClip Frame 18
onClipEvent (load) {
_parent._parent.a_fn(2);
}
Symbol 930 MovieClip Frame 20
_parent.gotoAndStop("stand");
Symbol 931 MovieClip Frame 1
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 931 MovieClip Frame 5
_parent.gotoAndStop("stand");
Symbol 932 MovieClip Frame 1
fall = true;
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 932 MovieClip Frame 10
fall = false;
Symbol 932 MovieClip Frame 19
_parent.gotoAndStop("stand");
Symbol 933 MovieClip Frame 1
_parent._parent.spawn_fn("spark", _parent.name, _parent._x, _parent._y - 1, _parent._xscale);
_parent._parent.spawn_fn("bill", _parent.name, _parent._x, _parent._y - 3, -_parent._xscale);
Symbol 933 MovieClip Frame 16
_parent.qremove();
stop();
Symbol 934 MovieClip [guard1] Frame 1
function itemdrop_fn() {
if (random(rate) < 1) {
_parent.item_fn(item, name, this._x, this._y);
}
}
function hurtthat() {
var _local1 = _parent;
if (hit.hitTest(_local1.guy.guy.hit)) {
hurt = _local1.guy.d;
_local1.points = _local1.points + _local1.guy.d;
_local1.combo_act = true;
_local1.combo_fn();
}
if (hurt > 0) {
if (hurt < 3) {
this.gotoAndStop("hurt");
} else {
this.gotoAndStop("hurt2");
}
_local1.bufferStart = getTimer();
hp = hp - hurt;
hurt = 0;
_local1.combo = _local1.combo + 1;
}
if (hp <= 0) {
gotoAndStop ("dead");
}
}
function a_fn(damage) {
if (this.guy.hit.hitTest(_parent.guy.hit)) {
_parent.guy.hurt = damage;
}
}
function qremove() {
var _local1 = _parent;
_local1.points = _local1.points + 3;
_local1.combo_fn();
_root.kills = _root.kills + 1;
itemdrop_fn();
_local1.queue = "none";
this.removemovieclip();
}
function fall() {
if (guy.fall) {
if (rightside) {
if (_x > _parent.getBoundLeft()) {
_x = (_x - 10);
}
} else if (_x < (_parent.getBoundRight() - 10)) {
_x = (_x + 10);
}
}
}
function change_xscale() {
if (_parent.guy._x > this._x) {
_xscale = scale;
rightside = true;
} else {
_xscale = (-scale);
rightside = false;
}
}
function qcheck() {
var _local1 = this;
var _local2 = _parent;
if (_local1._x < 500) {
_local1._visible = true;
} else {
_local1._visible = false;
}
if (_local1._x < -250) {
removeMovieClip(_local1);
}
if (_local2.queue == "none") {
_local2.queue = name;
}
if (_local2.queue == name) {
mode = 1;
} else if (_local2.queue != name) {
mode = 2;
}
}
function modecheck() {
if (mode == 1) {
walk_speed = 5;
} else if (mode == 2) {
walk_speed = 5;
}
}
function mode_1() {
var _local1 = _parent;
var _local2 = this;
if (hit.hitTest(_local1.guy.hit)) {
_local2.gotoAndStop("shot");
}
if (!jump_st) {
if ((_local1.guy._x - attackdistance) > _local2._x) {
move_rt();
} else if ((_local1.guy._x + attackdistance) < _local2._x) {
move_lt();
}
}
if ((_local1.guy._y + (random(10) + 20)) < _local2._y) {
move_up();
} else if ((_local1.guy._y - (random(10) + 20)) > _local2._y) {
move_dn();
}
}
function mode_2() {
var _local1 = _parent;
var _local2 = this;
x_diff = _local1.guy._x - _local2._x;
y_diff = _local1.guy._y - _local2._y;
distance = Math.round(Math.sqrt((x_diff * x_diff) + (y_diff * y_diff)));
if (hit.hitTest(_local1.guy.hit)) {
_local2.gotoAndStop("shot");
}
if (_local1.guy._x > _local2._x) {
if (distance <= 200) {
move_lt(random(5) + 3);
} else if (distance > 150) {
move_rt();
}
} else if (_local1.guy._x < _local2._x) {
if (distance <= 200) {
move_rt(random(5) + 3);
} else if (distance > 150) {
move_lt();
}
if ((_local1.guy._y + (random(10) + 20)) < _local2._y) {
move_up();
} else if ((_local1.guy._y - (random(10) + 20)) > _local2._y) {
move_dn();
}
}
}
function move_rt(plus) {
if (_x < (_parent.getBoundRight() - 10)) {
_x = (_x + (walk_speed + plus));
if (!jump_st) {
this.gotoAndStop("run");
}
}
}
function move_lt(plus) {
if (_x > _parent.getBoundLeft()) {
_x = (_x - (walk_speed + plus));
if (!jump_st) {
this.gotoAndStop("run");
}
}
}
function move_up() {
if (_y > _parent.getBoundUp()) {
_y = (_y - walk_speed);
this.gotoAndStop("run");
}
}
function move_dn() {
if (_y < _parent.getBoundDown()) {
_y = (_y + walk_speed);
this.gotoAndStop("run");
}
}
function attack() {
if (attack_st == "0") {
this.gotoAndStop("shoot");
} else if (attack_st == "1") {
this.gotoAndStop("shot");
}
}
function jump() {
if (!jump_st) {
this.gotoAndStop("jump");
jump_mov();
}
}
function jump_mov() {
var _local1 = _root;
if (!jump_st) {
up = true;
jumpstart = _y;
jumptop = jumpstart - 100;
jump_st = true;
} else if (jump_st) {
if (up) {
_y = (_y - (10 + jump_vspeed));
_local1.shadow._xscale = _local1.shadow._xscale - 5;
_local1.shadow._yscale = _local1.shadow._yscale - 5;
if (_y <= jumptop) {
up = false;
}
} else {
_y = (_y + (jump_vspeed + 10));
_local1.shadow._xscale = _local1.shadow._xscale + 5;
_local1.shadow._yscale = _local1.shadow._yscale + 5;
if (_y >= jumpstart) {
jump_st = false;
this.gotoAndStop("stand");
}
}
}
}
function jump_side() {
if (jumpdir == "right") {
_x = (_x + 10);
} else if (jumpdir == "left") {
_x = (_x - 10);
}
}
stop();
hurt = 0;
item = "health";
attackdistance = random(10) + 70;
walk_speed = 5;
attack_st = "0";
jump_vspeed = 0.5;
scale = _xscale;
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 1
onClipEvent (load) {
_parent.change_xscale();
}
Instance of Symbol 14 MovieClip in Symbol 934 MovieClip [guard1] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y + 200);
}
Symbol 934 MovieClip [guard1] Frame 2
stop();
Instance of Symbol 89 MovieClip "hit" in Symbol 934 MovieClip [guard1] Frame 2
onClipEvent (enterFrame) {
_parent.hurtthat();
}
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 2
onClipEvent (load) {
_parent.stand_load();
_parent.attack_st = "0";
}
onClipEvent (enterFrame) {
if (_parent.mode == 2) {
_parent.gotoAndStop("retreat");
}
_parent.qcheck();
_parent.change_xscale();
_parent.mode_1();
_parent.modecheck();
}
Symbol 934 MovieClip [guard1] Frame 3
stop();
Symbol 934 MovieClip [guard1] Frame 4
stop();
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 4
onClipEvent (enterFrame) {
_parent.qcheck();
_parent.modecheck();
_parent.change_xscale();
_parent.mode_2();
}
onClipEvent (load) {
_parent.stand_load();
_parent.attack_st = "0";
}
Symbol 934 MovieClip [guard1] Frame 5
stop();
trace(this.getdepth());
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 5
onClipEvent (enterFrame) {
_parent.attack();
_parent.attack_hittest();
}
Symbol 934 MovieClip [guard1] Frame 6
stop();
Symbol 934 MovieClip [guard1] Frame 7
stop();
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 7
onClipEvent (enterFrame) {
_parent.jump_side();
}
onClipEvent (keyDown) {
}
onClipEvent (load) {
_parent.attack_st = "0";
}
Symbol 934 MovieClip [guard1] Frame 12
stop();
Instance of Symbol 95 MovieClip in Symbol 934 MovieClip [guard1] Frame 13
onClipEvent (enterFrame) {
_parent.fall();
}