Frame 1
bar.gotoAndStop(1);
Frame 2
num = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (4);
}
texto = num + " %";
bar.gotoAndStop(num);
Frame 3
gotoAndPlay (2);
Frame 4
stopAllSounds();
intro = new Sound();
intro.attachSound("intro");
intro.start(0, 100000);
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
if (_root.startStage == 1) {
gotoAndPlay (8);
} else if (_root.startStage == 2) {
gotoAndPlay (18);
} else if (_root.startStage == 3) {
gotoAndPlay (28);
} else if (_root.startStage == 4) {
gotoAndPlay (73);
}
Frame 8
stopAllSounds();
stageSound = new Sound();
stageSound.attachSound("stageSound");
stageSound.start(0, 100000);
powerUp = new Sound();
powerUp.attachSound("powerUp");
punch = new Sound();
punch.attachSound("punch");
motion = new Sound();
motion.attachSound("nohit");
gonextSound = new Sound();
gonextSound.attachSound("gonext");
overSound = new Sound();
overSound.attachSound("over");
shoot = new Sound();
shoot.attachSound("shoot");
jump = new Sound();
jump.attachSound("jump");
enemyDies = new Sound();
enemyDies.attachSound("dieSound");
ow = new Sound();
ow.attachSound("ow");
maxX = 550;
minX = 0;
enemy0C = 1;
enemy0D = 100;
newE0 = 1;
actionEnemy0._visible = false;
enemy1C = 1;
enemy1D = 150;
newE1 = 0;
actionEnemy1._visible = false;
enemy2C = 1;
enemy2D = 200;
newE2 = 0;
actionEnemy2._visible = false;
hfs1 = 1;
currentStage = 1;
s1clear = 0;
lastEnemy = "";
activateBat = 0;
batPosX = 0;
batPosY = 0;
grabBat = 0;
grabChain = 0;
grabGun = 0;
score = 0;
enemyCounter = 0;
alive0 = 0;
alive1 = 0;
alive2 = 0;
itsOver = 0;
if (restart == 1) {
restart = 0;
health.gotoAndStop(1);
}
Instance of Symbol 164 MovieClip "bat" in Frame 8
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 249 MovieClip "actionBoy" in Frame 8
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (_root.walk == 2) {
this.gotoAndStop(1);
this._x = this._x + speed;
if (_root.maxX < this._x) {
this._x = _root.maxX;
}
} else if (_root.walk == 1) {
this.gotoAndStop(2);
this._x = this._x - speed;
if (this._x < _root.minX) {
this._x = _root.minX;
}
}
i = 0;
while (i < _root.enemy0C) {
if (this.fightStick.php.hitTest(_root["actionEnemy0" + i].enemy01.enemy01_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy0" + i].enemy01.enemy01_fight.enemy01_dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy0" + i].enemy01.enemy01_fight.gotoAndPlay("hit");
_root["actionEnemy0" + i].health._visible = true;
_root["actionEnemy0" + i].health.bar.nextFrame();
}
i++;
}
j = 0;
while (j < _root.enemy1C) {
if (this.fightStick.php.hitTest(_root["actionEnemy1" + j].enemy02.enemy02_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy1" + j].enemy02.enemy02_fight.dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy1" + j].enemy02.enemy02_fight.gotoAndPlay("hit");
_root["actionEnemy1" + j].health._visible = true;
_root["actionEnemy1" + j].health.bar.nextFrame();
}
j++;
}
z = 0;
while (z < _root.enemy2C) {
if (this.fightStick.php.hitTest(_root["actionEnemy2" + z].enemy03.enemy03_fight.hp) || (this.fightStick.php.hitTest(_root["actionEnemy1" + z].enemy03.enemy03_fight.hp))) {
_root.punch.start(0, 0);
_root["actionEnemy2" + z].enemy03.enemy03_fight.gotoAndPlay("hit");
_root["actionEnemy2" + z].health._visible = true;
_root["actionEnemy2" + z].health.bar.nextFrame();
}
z++;
}
}
Instance of Symbol 300 MovieClip "actionEnemy0" in Frame 8
onClipEvent (load) {
this.enemy01.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy0") {
_root.alive0 = 1;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy01.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(1);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(2);
speed = -5;
}
this.enemy01.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy01.enemy01_fight.enemy01_hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs1++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy01.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy01.removethis == 1) {
_root.alive0 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 337 MovieClip "actionEnemy2" in Frame 8
onClipEvent (load) {
this.enemy03.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy2") {
_root.alive2 = 1;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy03.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(1);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(2);
speed = -5;
}
this.enemy03.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy03.enemy03_fight.dhp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs1++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy03.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy03.removethis == 1) {
_root.alive2 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 382 MovieClip "actionEnemy1" in Frame 8
onClipEvent (load) {
this.enemy02.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy1") {
_root.alive1 = 1;
_root.batPosX = this._x;
_root.batPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy02.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(2);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(1);
speed = -5;
}
this.enemy02.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy02.enemy02_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs1++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy02.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy02.removethis == 1) {
_root.alive1 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 388 MovieClip "goNext" in Frame 8
onClipEvent (load) {
this._visible = false;
}
Frame 9
if (4 >= enemyCounter) {
if (newE0 == 1) {
newE0 = 0;
actionEnemy0.duplicateMovieClip("actionEnemy0" + enemy0C, enemy0D);
enemy0C++;
enemy0D++;
enemyCounter++;
lastEnemy = "E0";
}
if (newE1 == 1) {
newE1 = 0;
actionEnemy1.duplicateMovieClip("actionEnemy1" + enemy1C, enemy1D);
enemy1C++;
enemy1D++;
enemyCounter++;
lastEnemy = "E1";
}
if (newE2 == 1) {
newE2 = 0;
actionEnemy2.duplicateMovieClip("actionEnemy2" + enemy2C, enemy2D);
enemy2C++;
enemy2D++;
enemyCounter++;
lastEnemy = "E2";
}
}
posxS1 = actionBoy._x;
posyS1 = actionBoy._y;
if (s1clear == 1) {
goNext._visible = true;
gonextSound.start(0, 0);
maxX = 600;
}
if ((550 < posxS1) && (s1clear == 1)) {
gotoAndPlay (18);
}
if (select == 1) {
select = 0;
temp = random(3);
if ((temp == 0) && (lastEnemy != "E0")) {
newE0 = 1;
} else if ((temp == 1) && (lastEnemy != "E1")) {
newE1 = 1;
} else if ((temp == 2) && (lastEnemy != "E2")) {
newE2 = 1;
} else {
select = 1;
}
}
if (activateBat == 1) {
activateBat = 2;
bat._x = batPosX;
bat._y = batPosY + 20;
bat._visible = true;
}
if (health.died == 1) {
health.died = 2;
actionBoy.fightStick.gotoAndPlay("die");
}
if (itsOver == 1) {
stopAllSounds();
overSound.start(0, 0);
gotoAndPlay (11);
}
scoreText = score;
Frame 10
gotoAndPlay (9);
Frame 17
stop();
Frame 18
stopAllSounds();
stageSound.start(0, 100000);
setProperty(actionBoy, _y , _root.posyS1);
currentStage = 2;
maxX = 550;
minX = 0;
s2clear = 0;
hfs2 = _root.hfs1;
health.gotoAndStop(hfs2);
newE5 = 1;
enemy5C = 1;
enemy5D = 100;
actionEnemy4._visible = false;
grabChain = 0;
activateChain = 0;
chainPosX = 0;
chainPosY = 0;
alive4 = 0;
alive5 = 0;
activateSoda = 0;
itsOver = 0;
if (restart == 1) {
restart = 0;
hfs2 = 1;
health.gotoAndStop(1);
}
if (_root.grabBat == 1) {
_root.itemList.overBat._visible = false;
}
if (3 < hfs2) {
hamburger._x = 250;
hamburger._y = actionBoy._y + 40;
hamburger._visible = true;
} else {
hamburger._visible = false;
}
Instance of Symbol 388 MovieClip "goNext" in Frame 18
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 415 MovieClip "chain" in Frame 18
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "soda" in Frame 18
onClipEvent (load) {
this._visible = true;
}
Instance of Symbol 421 MovieClip "actionBoy" in Frame 18
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (_root.walk == 2) {
this.gotoAndStop(1);
this._x = this._x + speed;
if (_root.maxX < this._x) {
this._x = _root.maxX;
}
} else if (_root.walk == 1) {
this.gotoAndStop(2);
this._x = this._x - speed;
if (this._x < _root.minX) {
this._x = _root.minX;
}
}
z = 0;
while (z < _root.enemy5C) {
if (this.fightStick.php.hitTest(_root["actionEnemy4" + z].enemy05.enemy05_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy4" + z].enemy05.enemy05_fight.dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy4" + z].enemy05.enemy05_fight.gotoAndPlay("hit");
_root["actionEnemy4" + z].health._visible = true;
_root["actionEnemy4" + z].health.bar.nextFrame();
}
z++;
}
if (this.fightStick.php.hitTest(_root.actionEnemy3.enemy04.hp)) {
_root.punch.start(0, 0);
_root.actionEnemy3.enemy04.gotoAndPlay(3);
_root.actionEnemy3.health._visible = true;
_root.actionEnemy3.health.bar.nextFrame();
}
if (this.hitTest(_root.hamburger)) {
_root.powerUp.start(0, 0);
o = 0;
while (o < 6) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
o++;
}
_root.hamburger._visible = false;
_root.hamburger._x = 700;
}
if (this.hitTest(_root.soda)) {
_root.powerUp.start(0, 0);
p = 0;
while (p < 3) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
p++;
}
_root.soda._visible = false;
_root.soda._x = 700;
}
}
Instance of Symbol 457 MovieClip "actionEnemy3" in Frame 18
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if ((this.health.bar.dead == 0) && (_root.itsOver == 0)) {
_root.alive4 = 1;
if (_root.maxX < this._x) {
this._x = _root.maxX;
speed = speed * -1;
this.gotoAndStop(2);
}
if (this._x < _root.minX) {
this._x = _root.minX;
speed = speed * -1;
this.gotoAndStop(1);
}
this._x = this._x + speed;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if ((this._width + (_root.actionBoy._width / 2)) >= distance) {
this.enemy04.gotoAndStop(2);
} else {
this.enemy04.gotoAndStop(1);
}
} else if (this.health.bar.dead == 1) {
this.enemy04.gotoAndPlay("die");
_root.alive4 = 0;
this.health.bar.dead = 2;
}
}
Instance of Symbol 496 MovieClip "actionEnemy4" in Frame 18
onClipEvent (load) {
this.enemy05.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy4") {
_root.alive5 = 1;
_root.chainPosX = this._x;
_root.chainPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy05.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(2);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(1);
speed = -5;
}
this.enemy05.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy05.enemy05_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs2++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy05.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy05.removethis == 1) {
_root.alive5 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Frame 19
if (newE5 == 1) {
actionEnemy4.duplicateMovieClip("actionEnemy4" + enemy5C, enemy5D);
enemy5C++;
enemy5D++;
newE5 = 0;
}
posxS2 = actionBoy._x;
posyS2 = actionBoy._y;
if (s2clear == 1) {
maxX = 600;
goNext._visible = true;
gonextSound.start(0, 0);
}
if ((550 < posxS2) && (s2clear == 1)) {
gotoAndPlay (28);
}
if (health.died == 1) {
health.died = 2;
actionBoy.fightStick.gotoAndPlay("die");
}
if (activateChain == 1) {
activateChain = 2;
chain._x = chainPosX - 10;
chain._y = chainPosY + 40;
chain._visible = true;
}
if ((alive4 == 0) && (alive5 == 0)) {
s2clear = 1;
}
if (activateSoda == 1) {
activateSoda = 0;
soda._x = chainPosX + 50;
soda._y = chainPosY;
soda._visible = true;
}
if (itsOver == 1) {
stopAllSounds();
overSound.start(0, 0);
gotoAndPlay (21);
}
scoreText = _root.score;
Frame 20
gotoAndPlay (19);
Frame 27
stop();
Frame 28
stopAllSounds();
stageSound.start(0, 100000);
setProperty(actionBoy, _y , _root.posyS2);
currentStage = 3;
maxX = 550;
minX = 0;
hfs3 = _root.hfs2;
health.gotoAndStop(hfs3);
scoreText = _root.score;
if (5 < hfs3) {
soda._x = 300;
soda._y = 250;
soda._visible = true;
}
newE6 = 1;
enemy6C = 1;
enemy6D = 500;
actionEnemy5._visible = false;
newE5 = 0;
enemy5C = 1;
enemy5D = 550;
actionEnemy4._visible = false;
grabGun = 0;
activateGun = 0;
gun._visible = false;
gunPosX = 0;
gunPosY = 0;
gunShotPosX = 0;
gunShotPosY = 0;
dupBullet = 0;
shot._visible = false;
shotC = 1;
shotD = 700;
bulletSide = " ";
goIn = 0;
itsOver = 0;
if (restart == 1) {
restart = 0;
hfs3 = 1;
health.gotoAndStop(1);
}
if (_root.grabBat == 1) {
_root.itemList.overBat._visible = false;
}
if (_root.grabChain == 1) {
_root.itemList.overChain._visible = false;
}
Instance of Symbol 419 MovieClip "soda" in Frame 28
onClipEvent (load) {
this._visible = true;
}
Instance of Symbol 519 MovieClip "bullets" in Frame 28
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 521 MovieClip "actionBoy" in Frame 28
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (_root.walk == 2) {
_root.bulletSide = "right";
this.gotoAndStop(1);
this._x = this._x + speed;
if (_root.maxX < this._x) {
this._x = _root.maxX;
}
} else if (_root.walk == 1) {
_root.bulletSide = "left";
this.gotoAndStop(2);
this._x = this._x - speed;
if (this._x < _root.minX) {
this._x = _root.minX;
}
}
z = 0;
while (z < _root.enemy6C) {
if (this.fightStick.php.hitTest(_root["actionEnemy5" + z].enemy06.enemy06_fight.hp)) {
_root.punch.start(0, 0);
_root["actionEnemy5" + z].enemy06.enemy06_fight.gotoAndPlay("hit");
_root["actionEnemy5" + z].health._visible = true;
_root["actionEnemy5" + z].health.bar.nextFrame();
}
z++;
}
j = 0;
while (j < _root.enemy5C) {
if (this.fightStick.php.hitTest(_root["actionEnemy4" + j].enemy05.enemy05_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy4" + j].enemy05.enemy05_fight.dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy4" + j].enemy05.enemy05_fight.gotoAndPlay("hit");
_root["actionEnemy4" + j].health._visible = true;
_root["actionEnemy4" + j].health.bar.nextFrame();
}
j++;
}
if (this.hitTest(_root.hamburger)) {
_root.powerUp.start(0, 0);
o = 0;
while (o < 6) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
o++;
}
_root.hamburger._visible = false;
_root.hamburger._x = 700;
}
if (this.hitTest(_root.soda)) {
_root.powerUp.start(0, 0);
p = 0;
while (p < 3) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
p++;
}
_root.soda._visible = false;
_root.soda._x = 700;
}
if (Key.isDown(Key.UP)) {
if (this.hitTest(_root.ground)) {
if (_root.goIn == 1) {
_root.goIn = 2;
}
}
}
}
Instance of Symbol 524 MovieClip "shot" in Frame 28
onClipEvent (load) {
activate = 0;
}
onClipEvent (enterFrame) {
if (this._name != "shot") {
if (activate == 0) {
if (_root.bulletSide == "right") {
this.gotoAndStop(2);
speed = 65;
} else if (_root.bulletSide == "left") {
this.gotoAndStop(1);
speed = -65;
}
activate = 1;
}
this._x = this._x + speed;
if (600 < this._x) {
this._x = 600;
this.removeMovieClip();
} else if (this._x < -10) {
this._x = -10;
this.removeMovieClip();
}
z = 0;
while (z < _root.enemy6C) {
if (this.hitTest(_root["actionEnemy5" + z])) {
_root["actionEnemy5" + z].enemy06.enemy06_fight.gotoAndPlay("hit");
_root["actionEnemy5" + z].health._visible = true;
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health._visible = true;
this.removeMovieClip();
}
z++;
}
j = 0;
while (j < _root.enemy5C) {
if (this.hitTest(_root["actionEnemy4" + j])) {
_root["actionEnemy4" + j].enemy05.enemy05_fight.gotoAndPlay("hit");
_root["actionEnemy4" + j].health._visible = true;
_root["actionEnemy4" + j].health.bar.nextFrame();
_root["actionEnemy4" + j].health.bar.nextFrame();
_root["actionEnemy4" + j].health.bar.nextFrame();
_root["actionEnemy4" + j].health.bar.nextFrame();
_root["actionEnemy4" + j].health._visible = true;
this.removeMovieClip();
}
j++;
}
}
}
Instance of Symbol 560 MovieClip "actionEnemy5" in Frame 28
onClipEvent (load) {
this.enemy06.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy5") {
_root.alive6 = 1;
_root.gunPosX = this._x;
_root.gunPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy06.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(1);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(2);
speed = -5;
}
this.enemy06.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy06.enemy06_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs3++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy06.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy06.removethis == 1) {
_root.alive6 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 561 MovieClip "actionEnemy4" in Frame 28
onClipEvent (load) {
this.enemy05.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy4") {
_root.alive5 = 1;
_root.chainPosX = this._x;
_root.chainPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy05.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(2);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(1);
speed = -5;
}
this.enemy05.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy05.enemy05_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs3++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy05.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy05.removethis == 1) {
_root.alive5 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 567 MovieClip "getIn" in Frame 28
onClipEvent (load) {
this._visible = false;
}
Frame 29
if (newE6 == 1) {
newE6 = 0;
actionEnemy5.duplicateMovieClip("actionEnemy5" + enemy6C, enemy6D);
enemy6C++;
enemy6D++;
enemyCounter++;
lastEnemy = "E6";
}
if (newE5 == 1) {
actionEnemy4.duplicateMovieClip("actionEnemy4" + enemy5C, enemy5D);
enemy5C++;
enemy5D++;
newE5 = 0;
enemyCounter++;
lastEnemy = "E5";
}
if (select == 1) {
if (lastEnemy == "E6") {
newE5 = 1;
} else if (lastEnemy == "E5") {
newE6 = 1;
}
select = 0;
}
if (health.died == 1) {
health.died = 2;
actionBoy.fightStick.gotoAndPlay("die");
}
if (activateGun == 1) {
activateGun = 2;
gun._x = gunPosX;
gun._y = gunPosY;
gun._visible = true;
}
if (dupBullet == 1) {
dupBullet = 0;
shot.duplicateMovieClip("shot" + shotC, shotD);
if (bulletSide == "right") {
_root["shot" + shotC]._x = actionBoy._x + 20;
} else if (bulletSide == "left") {
_root["shot" + shotC]._x = actionBoy._x + 10;
}
_root["shot" + shotC]._y = actionBoy._y - 10;
shotC++;
shotD++;
}
if (noBullets == 1) {
noBullets = 2;
actionBoy.fightStick.gotoAndStop(1);
activateGun = 0;
}
if ((alive5 == 0) and (alive6 == 0)) {
gonextSound.start(0, 0);
getIn._visible = true;
goIn = 1;
}
if (goIn == 1) {
if (ground.hitTest(actionBoy)) {
stopAllSounds();
gotoAndPlay (31);
goIn = 0;
}
}
if (itsOver == 1) {
stopAllSounds();
overSound.start(0, 0);
gotoAndPlay (66);
}
posxS3 = actionBoy._x;
posyS3 = actionBoy._y;
scoreText = score;
Frame 30
gotoAndPlay (29);
Frame 65
gotoAndPlay (73);
Frame 72
stop();
Frame 73
stopAllSounds();
barSound = new Sound();
barSound.attachSound("barSound");
bossTheme = new Sound();
bossTheme.attachSound("bossTheme");
barSound.start(0, 100000);
setProperty(actionBoy, _y , _root.posyS3);
maxX = 550;
minX = 0;
enemy0C = 1;
enemy0D = 100;
newE0 = 0;
actionEnemy0._visible = false;
enemy1C = 1;
enemy1D = 150;
newE1 = 1;
actionEnemy1._visible = false;
enemy6C = 1;
enemy6D = 200;
actionEnemy5._visible = false;
currentStage = 4;
lastEnemy = "";
activateBat = 0;
batPosX = 0;
batPosY = 0;
gun._visible = false;
gunPosX = 0;
gunPosY = 0;
gunShotPosX = 0;
gunShotPosY = 0;
dupBullet = 0;
shot._visible = false;
shotC = 1;
shotD = 700;
bulletSide = " ";
enemyCounter = 0;
activateBoss = 0;
alive0 = 0;
alive1 = 0;
alive6 = 0;
hfs4 = _root.hfs3;
health.gotoAndStop(hfs4);
scoreText = _root.score;
itsOver = 0;
if (restart == 1) {
restart = 0;
health.gotoAndStop(1);
hfs4 = 1;
}
if (_root.grabBat == 1) {
_root.itemList.overBat._visible = false;
} else {
grabBat = 0;
}
if (_root.grabChain == 1) {
_root.itemList.overChain._visible = false;
} else {
grabChain = 0;
}
if (_root.grabGun == 1) {
_root.itemList.overGun._visible = false;
} else {
grabGun = 0;
}
gameClear = 0;
killBoss = 0;
if (5 < hfs4) {
hamburger._x = 300;
hamburger._y = 250;
hamburger._visible = true;
}
Instance of Symbol 164 MovieClip "bat" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 519 MovieClip "bullets" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 582 MovieClip "shot" in Frame 73
onClipEvent (load) {
activate = 0;
}
onClipEvent (enterFrame) {
if (this._name != "shot") {
if (activate == 0) {
if (_root.bulletSide == "right") {
this.gotoAndStop(2);
speed = 65;
} else if (_root.bulletSide == "left") {
this.gotoAndStop(1);
speed = -65;
}
activate = 1;
}
this._x = this._x + speed;
if (600 < this._x) {
this._x = 600;
this.removeMovieClip();
} else if (this._x < -10) {
this._x = -10;
this.removeMovieClip();
}
z = 0;
while (z < _root.enemy6C) {
if (this.hitTest(_root["actionEnemy5" + z])) {
_root["actionEnemy5" + z].enemy06.enemy06_fight.gotoAndPlay("hit");
_root["actionEnemy5" + z].health._visible = true;
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health.bar.nextFrame();
_root["actionEnemy5" + z].health._visible = true;
this.removeMovieClip();
}
z++;
}
j = 0;
while (j < _root.enemy1C) {
if (this.hitTest(_root["actionEnemy1" + j])) {
_root["actionEnemy1" + j].enemy01.enemy01_fight.gotoAndPlay("hit");
_root["actionEnemy1" + j].health._visible = true;
_root["actionEnemy1" + j].health.bar.nextFrame();
_root["actionEnemy1" + j].health.bar.nextFrame();
_root["actionEnemy1" + j].health.bar.nextFrame();
_root["actionEnemy1" + j].health.bar.nextFrame();
_root["actionEnemy1" + j].health._visible = true;
this.removeMovieClip();
}
j++;
}
f = 0;
while (f < _root.enemy0C) {
if (this.hitTest(_root["actionEnemy0" + f])) {
_root["actionEnemy0" + f].enemy01.enemy01_fight.gotoAndPlay("hit");
_root["actionEnemy0" + f].health._visible = true;
_root["actionEnemy0" + f].health.bar.nextFrame();
_root["actionEnemy0" + f].health.bar.nextFrame();
_root["actionEnemy0" + f].health.bar.nextFrame();
_root["actionEnemy0" + f].health.bar.nextFrame();
_root["actionEnemy0" + f].health._visible = true;
this.removeMovieClip();
}
f++;
}
}
}
Instance of Symbol 584 MovieClip "actionBoy" in Frame 73
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (_root.walk == 2) {
_root.bulletSide = "right";
this.gotoAndStop(1);
this._x = this._x + speed;
if (_root.maxX < this._x) {
this._x = _root.maxX;
}
} else if (_root.walk == 1) {
_root.bulletSide = "left";
this.gotoAndStop(2);
this._x = this._x - speed;
if (this._x < _root.minX) {
this._x = _root.minX;
}
}
z = 0;
while (z < _root.enemy6C) {
if (this.fightStick.php.hitTest(_root["actionEnemy5" + z].enemy06.enemy06_fight.hp)) {
_root.punch.start(0, 0);
_root["actionEnemy5" + z].enemy06.enemy06_fight.gotoAndPlay("hit");
_root["actionEnemy5" + z].health._visible = true;
_root["actionEnemy5" + z].health.bar.nextFrame();
}
z++;
}
i = 0;
while (i < _root.enemy0C) {
if (this.fightStick.php.hitTest(_root["actionEnemy0" + i].enemy01.enemy01_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy0" + i].enemy01.enemy01_fight.enemy01_dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy0" + i].enemy01.enemy01_fight.gotoAndPlay("hit");
_root["actionEnemy0" + i].health._visible = true;
_root["actionEnemy0" + i].health.bar.nextFrame();
}
i++;
}
j = 0;
while (j < _root.enemy1C) {
if (this.fightStick.php.hitTest(_root["actionEnemy1" + j].enemy02.enemy02_dhp) || (this.fightStick.php.hitTest(_root["actionEnemy1" + j].enemy02.enemy02_fight.dhp))) {
_root.punch.start(0, 0);
_root["actionEnemy1" + j].enemy02.enemy02_fight.gotoAndPlay("hit");
_root["actionEnemy1" + j].health._visible = true;
_root["actionEnemy1" + j].health.bar.nextFrame();
}
j++;
}
if (this.fightStick.php.hitTest(_root.actionBoss01.boss01.hp)) {
_root.punch.start(0, 0);
_root.actionBoss01.gotoAndPlay("hit");
_root.actionBoss01.health.bar.nextFrame();
_root.actionBoss01.health._visible = true;
}
if (this.fightStick.php.hitTest(_root.actionBoss01.boss01.killHp)) {
_root.actionBoss01.boss01.gotoAndPlay(6);
}
if (this.hitTest(_root.hamburger)) {
_root.powerUp.start(0, 0);
o = 0;
while (o < 6) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
o++;
}
_root.hamburger._visible = false;
_root.hamburger._x = 700;
}
if (this.hitTest(_root.soda)) {
_root.powerUp.start(0, 0);
p = 0;
while (p < 3) {
if (1 < _root.hfs2) {
_root.health.prevFrame();
_root.hfs2 = _root.hfs2 - 1;
}
p++;
}
_root.soda._visible = false;
_root.soda._x = 700;
}
}
Instance of Symbol 585 MovieClip "shot" in Frame 73
onClipEvent (load) {
activate = 0;
}
onClipEvent (enterFrame) {
if (this._name != "shot") {
if (activate == 0) {
if (_root.bulletSide == "right") {
this.gotoAndStop(2);
speed = 65;
} else if (_root.bulletSide == "left") {
this.gotoAndStop(1);
speed = -65;
}
activate = 1;
}
this._x = this._x + speed;
if (600 < this._x) {
this._x = 600;
this.removeMovieClip();
} else if (this._x < -10) {
this._x = -10;
this.removeMovieClip();
}
}
}
Instance of Symbol 642 MovieClip "actionBoss01" in Frame 73
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((_root.activateBoss == 1) && (this.health.bar.dead == 0)) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.boss01.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(2);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(1);
speed = -5;
}
this.boss01.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.boss01.boss01_fight.dhp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
u = 0;
while (u < 2) {
_root.health.nextFrame();
_root.hfs4++;
u++;
}
}
} else if (this.health.bar.dead == 1) {
this.health.bar.dead = 2;
this.boss01.gotoAndPlay(3);
}
}
Instance of Symbol 643 MovieClip "actionEnemy0" in Frame 73
onClipEvent (load) {
this.enemy01.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy0") {
_root.alive0 = 1;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy01.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(1);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(2);
speed = -5;
}
this.enemy01.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy01.enemy01_fight.enemy01_hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs4++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy01.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy01.removethis == 1) {
_root.alive0 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 644 MovieClip "actionEnemy5" in Frame 73
onClipEvent (load) {
this.enemy06.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy5") {
_root.alive6 = 1;
_root.gunPosX = this._x;
_root.gunPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy06.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(1);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(2);
speed = -5;
}
this.enemy06.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy06.enemy06_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs4++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy06.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy06.removethis == 1) {
_root.alive6 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 645 MovieClip "actionEnemy1" in Frame 73
onClipEvent (load) {
this.enemy02.removethis = 0;
}
onClipEvent (enterFrame) {
if (this._name != "actionEnemy1") {
_root.alive1 = 1;
_root.batPosX = this._x;
_root.batPosY = this._y;
if (this.health.bar.dead == 0) {
turn = this._x + this._width;
distance = Math.sqrt((this._x - _root.actionBoy._x) * (this._x - _root.actionBoy._x));
if (((_root.actionBoy._width / 2) + (this._width / 2)) >= distance) {
speed = 0;
this.enemy02.gotoAndStop(2);
} else {
if (_root.actionBoy._x >= turn) {
this.gotoAndStop(2);
speed = 5;
}
if (turn >= (_root.actionBoy._x + _root.actionBoy._width)) {
this.gotoAndStop(1);
speed = -5;
}
this.enemy02.gotoAndStop(1);
}
this._x = this._x + speed;
if (this.enemy02.enemy02_fight.hp.hitTest(_root.actionBoy.fightStick.hp)) {
_root.ow.start(0, 0);
_root.health.nextFrame();
_root.hfs4++;
_root.actionBoy.fightStick.gotoAndPlay("hit");
}
} else if (this.health.bar.dead == 1) {
this.enemy02.gotoAndPlay(3);
this.health.bar.dead = 2;
}
if (this.enemy02.removethis == 1) {
_root.alive1 = 0;
this.removeMovieClip();
} else if (_root.itsOver == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 650 MovieClip "bossSign" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 652 MovieClip "finishHim" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Frame 74
if (5 >= enemyCounter) {
if (newE0 == 1) {
newE0 = 0;
actionEnemy0.duplicateMovieClip("actionEnemy0" + enemy0C, enemy0D);
enemy0C++;
enemy0D++;
enemyCounter++;
lastEnemy = "E0";
}
if (newE1 == 1) {
newE1 = 0;
actionEnemy1.duplicateMovieClip("actionEnemy1" + enemy1C, enemy1D);
enemy1C++;
enemy1D++;
enemyCounter++;
lastEnemy = "E1";
}
if (newE6 == 1) {
newE6 = 0;
actionEnemy5.duplicateMovieClip("actionEnemy5" + enemy6C, enemy6D);
enemy6C++;
enemy6D++;
enemyCounter++;
lastEnemy = "E6";
}
}
if (select == 1) {
select = 0;
temp = random(3);
if ((temp == 0) && (lastEnemy != "E0")) {
newE0 = 1;
} else if ((temp == 1) && (lastEnemy != "E1")) {
newE1 = 1;
} else if ((temp == 2) && (lastEnemy != "E6")) {
newE6 = 1;
} else {
select = 1;
}
}
if (health.died == 1) {
health.died = 2;
actionBoy.fightStick.gotoAndPlay("die");
}
if (activateGun == 1) {
activateGun = 2;
gun._x = gunPosX;
gun._y = gunPosY;
gun._visible = true;
}
if (dupBullet == 1) {
dupBullet = 0;
shot.duplicateMovieClip("shot" + shotC, shotD);
if (bulletSide == "right") {
_root["shot" + shotC]._x = actionBoy._x + 20;
} else if (bulletSide == "left") {
_root["shot" + shotC]._x = actionBoy._x + 10;
}
_root["shot" + shotC]._y = actionBoy._y - 10;
shotC++;
shotD++;
}
if (noBullets == 1) {
noBullets = 2;
actionBoy.fightStick.gotoAndStop(1);
activateGun = 0;
}
if (activateBat == 1) {
activateBat = 2;
bat._x = batPosX;
bat._y = batPosY + 20;
bat._visible = true;
}
if ((((enemyCounter == 6) && (alive0 == 0)) && (alive1 == 0)) && (alive6 == 0)) {
activateBoss = 1;
bossSign._visible = true;
bossSign.gotoAndPlay(2);
enemyCounter = 8;
stopAllSounds();
bossTheme.start(0, 100000);
}
if (itsOver == 1) {
stopAllSounds();
overSound.start(0, 0);
gotoAndPlay (76);
}
if (gameClear == 1) {
gotoAndPlay (83);
}
scoreText = score;
Frame 75
gotoAndPlay (74);
Frame 82
stop();
Frame 102
stopAllSounds();
intro.start(0, 0);
stop();
Symbol 35 Button
on (release) {
gotoAndStop (6);
}
Symbol 37 Button
on (release) {
nextFrame();
}
Symbol 39 Button
on (release) {
gotoAndPlay (8);
}
Symbol 135 Button
on (release) {
prevFrame();
}
Symbol 149 Button
on (release) {
gotoAndStop (4);
}
Symbol 154 Button
on (release) {
if (_root.health.died == 0) {
if (_root.grabBat == 1) {
_root.grabBat = 0;
_root.itemList.overBat._visible = true;
_root.actionBoy.fightStick.gotoAndStop(59);
_root.item = "bat";
}
}
}
Symbol 156 Button
on (release) {
if (_root.health.died == 0) {
if (_root.grabChain == 1) {
_root.grabChain = 0;
_root.itemList.overChain._visible = true;
_root.actionBoy.fightStick.gotoAndStop(74);
_root.item = "chain";
}
}
}
Symbol 158 Button
on (release) {
if (_root.health.died == 0) {
if (_root.grabGun == 1) {
_root.grabGun = 0;
_root.itemList.overGun._visible = true;
_root.bullets.gotoAndStop(1);
_root.bullets._visible = true;
_root.actionBoy.fightStick.gotoAndStop(82);
_root.item = "gun";
}
}
}
Symbol 173 MovieClip Frame 1
died = 0;
stop();
Symbol 173 MovieClip Frame 40
died = 1;
stop();
Symbol 175 Button
on (keyPress "a") {
_root.motion.start(0, 0);
gotoAndPlay (2);
}
on (keyPress "s") {
_root.motion.start(0, 0);
gotoAndPlay (12);
}
on (keyPress "w") {
_root.jump.start(0, 0);
gotoAndPlay (18);
}
on (keyPress "d") {
_root.motion.start(0, 0);
gotoAndPlay (26);
_root.health.nextFrame();
_root["hfs" + _root.currentStage]++;
}
on (keyPress "x") {
gotoAndPlay (49);
if (_root.actionBoy.hitTest(_root.bat)) {
_root.itemList.overBat._visible = false;
_root.bat._x = 700;
_root.bat._visible = false;
_root.grabBat = 1;
} else if (_root.actionBoy.hitTest(_root.chain)) {
_root.itemList.overChain._visible = false;
_root.chain._x = 700;
_root.chain._visible = false;
_root.grabChain = 1;
} else if (_root.actionBoy.hitTest(_root.gun)) {
_root.itemList.overGun._visible = false;
_root.gun._x = 700;
_root.gun._visible = false;
_root.grabGun = 1;
}
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 11
gotoAndPlay (2);
Symbol 187 Button
on (keyPress "s") {
_root.motion.start(0, 0);
play();
}
Symbol 198 MovieClip Frame 11
gotoAndStop (1);
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 11
gotoAndStop (1);
Symbol 229 Button
on (keyPress "s") {
_root.shoot.start(0, 0);
play();
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 11
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 11
gotoAndStop (1);
Symbol 248 MovieClip Frame 1
_root.item = "none";
stop();
Instance of Symbol 178 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.nextFrame();
_root.walk = 2;
} else if (Key.isDown(Key.LEFT)) {
this.nextFrame();
_root.walk = 1;
} else {
gotoAndStop (1);
_root.walk = 0;
}
}
Instance of Symbol 180 MovieClip "bulletPos" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.gunShotPosX = this._x;
_root.gunShotPosY = this._y;
}
Symbol 248 MovieClip Frame 11
gotoAndStop (1);
Symbol 248 MovieClip Frame 17
gotoAndStop (1);
Symbol 248 MovieClip Frame 25
gotoAndStop (1);
Symbol 248 MovieClip Frame 48
gotoAndStop (1);
Symbol 248 MovieClip Frame 54
gotoAndStop (1);
Symbol 248 MovieClip Frame 58
if (_root.item == "bat") {
gotoAndStop (60);
} else if (_root.item == "gun") {
gotoAndStop (83);
} else if (_root.item == "chain") {
gotoAndStop (75);
} else {
gotoAndStop (1);
}
Symbol 248 MovieClip Frame 59
stop();
_root.batCounter = 0;
Instance of Symbol 198 MovieClip in Symbol 248 MovieClip Frame 59
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.nextFrame();
_root.walk = 2;
} else if (Key.isDown(Key.LEFT)) {
this.nextFrame();
_root.walk = 1;
} else {
gotoAndStop (1);
_root.walk = 0;
}
}
Symbol 248 MovieClip Frame 66
_root.batCounter++;
if (5 < _root.batCounter) {
_root.activateBat = 0;
gotoAndStop (1);
} else {
gotoAndStop (60);
}
Symbol 248 MovieClip Frame 67
_root.actionBoy.speed = 0;
Symbol 248 MovieClip Frame 73
_root.itsOver = 1;
stop();
Symbol 248 MovieClip Frame 74
chainCounter = 0;
stop();
Instance of Symbol 222 MovieClip in Symbol 248 MovieClip Frame 74
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.nextFrame();
_root.walk = 2;
} else if (Key.isDown(Key.LEFT)) {
this.nextFrame();
_root.walk = 1;
} else {
gotoAndStop (1);
_root.walk = 0;
}
}
Symbol 248 MovieClip Frame 81
chainCounter++;
if (5 < chainCounter) {
gotoAndStop (1);
} else {
gotoAndStop (75);
}
Symbol 248 MovieClip Frame 82
stop();
Instance of Symbol 240 MovieClip in Symbol 248 MovieClip Frame 82
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.nextFrame();
_root.walk = 2;
} else if (Key.isDown(Key.LEFT)) {
this.nextFrame();
_root.walk = 1;
} else {
gotoAndStop (1);
_root.walk = 0;
}
}
Instance of Symbol 242 MovieClip in Symbol 248 MovieClip Frame 83
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.nextFrame();
_root.walk = 2;
} else if (Key.isDown(Key.LEFT)) {
this.nextFrame();
_root.walk = 1;
} else {
gotoAndStop (1);
_root.walk = 0;
}
}
Symbol 248 MovieClip Frame 85
_root.dupBullet = 1;
Symbol 248 MovieClip Frame 89
_root.bullets.nextFrame();
gotoAndStop (83);
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 20
gotoAndPlay (1);
Symbol 284 MovieClip Frame 25
gotoAndPlay (1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 3
_root.score = _root.score + 2;
if (((_root.enemyCounter == 5) && (_root.alive2 == 0)) && (_root.alive1 == 0)) {
_root.s1clear = 1;
}
_root.enemyDies.start(0, 0);
Symbol 292 MovieClip Frame 14
removethis = 1;
Symbol 298 MovieClip Frame 1
dead = 0;
stop();
Symbol 298 MovieClip Frame 5
_root.select = 1;
Symbol 298 MovieClip Frame 10
dead = 1;
Symbol 299 MovieClip Frame 5
this._visible = false;
Symbol 300 MovieClip Frame 1
stop();
Instance of Symbol 299 MovieClip "health" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 300 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 7
gotoAndPlay (1);
Symbol 322 MovieClip Frame 11
gotoAndStop (1);
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 3
_root.score = _root.score + 5;
if (((_root.enemyCounter == 5) && (_root.alive0 == 0)) && (_root.alive1 == 0)) {
_root.s1clear = 1;
}
_root.enemyDies.start(0, 0);
Symbol 329 MovieClip Frame 13
removethis = 1;
Symbol 334 MovieClip Frame 1
dead = 0;
stop();
Symbol 334 MovieClip Frame 7
_root.select = 1;
Symbol 334 MovieClip Frame 13
dead = 1;
Symbol 335 MovieClip Frame 5
this._visible = false;
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
_root.score = _root.score + 5;
if (((_root.enemyCounter == 5) && (_root.alive0 == 0)) && (_root.alive1 == 0)) {
_root.s1clear = 1;
}
_root.enemyDies.start(0, 0);
Symbol 336 MovieClip Frame 13
removethis = 1;
Symbol 337 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip "health" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 337 MovieClip Frame 2
stop();
Symbol 369 MovieClip Frame 11
gotoAndPlay (1);
Symbol 369 MovieClip Frame 16
gotoAndPlay (1);
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
stop();
Symbol 376 MovieClip Frame 3
_root.score = _root.score + 3;
if (((_root.enemyCounter == 5) && (_root.alive0 == 0)) && (_root.alive2 == 0)) {
_root.s1clear = 1;
}
_root.enemyDies.start(0, 0);
Symbol 376 MovieClip Frame 7
if ((_root.grabBat == 0) && (_root.activateBat == 0)) {
_root.activateBat = 1;
}
Symbol 376 MovieClip Frame 15
removethis = 1;
Symbol 380 MovieClip Frame 1
dead = 0;
stop();
Symbol 380 MovieClip Frame 5
_root.select = 1;
Symbol 380 MovieClip Frame 10
dead = 1;
Symbol 381 MovieClip Frame 5
this._visible = false;
Symbol 382 MovieClip Frame 1
stop();
Instance of Symbol 381 MovieClip "health" in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 382 MovieClip Frame 2
stop();
Symbol 398 Button
on (release) {
_root.restart = 1;
_root.startStage = 1;
gotoAndStop (7);
}
Symbol 402 Button
on (release) {
_root.startStage = 0;
gotoAndPlay (4);
}
Symbol 406 Button
on (release) {
gotoAndPlay (6);
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 2
stop();
Instance of Symbol 437 MovieClip "flama" in Symbol 450 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.actionBoy)) {
_root.health.nextFrame();
_root.hfs2++;
}
}
Symbol 450 MovieClip Frame 6
gotoAndStop (1);
Symbol 450 MovieClip Frame 7
_root.score = _root.score + 7;
_root.enemyDies.start(0, 0);
Symbol 450 MovieClip Frame 21
stop();
Symbol 455 MovieClip Frame 1
dead = 0;
stop();
Symbol 455 MovieClip Frame 10
dead = 1;
Symbol 456 MovieClip Frame 5
this._visible = false;
Symbol 457 MovieClip Frame 1
stop();
Instance of Symbol 456 MovieClip "health" in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 457 MovieClip Frame 2
stop();
Symbol 483 MovieClip Frame 7
gotoAndPlay (1);
Symbol 483 MovieClip Frame 12
gotoAndPlay (1);
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 3
_root.score = _root.score + 6;
_root.enemyDies.start(0, 0);
Symbol 490 MovieClip Frame 7
if ((_root.grabChain == 0) && (_root.activateChain == 0)) {
_root.activateChain = 1;
}
_root.activateSoda = 1;
Symbol 490 MovieClip Frame 15
removethis = 1;
Symbol 494 MovieClip Frame 1
dead = 0;
stop();
Symbol 494 MovieClip Frame 10
dead = 1;
Symbol 495 MovieClip Frame 5
this._visible = false;
Symbol 496 MovieClip Frame 1
stop();
Instance of Symbol 495 MovieClip "health" in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 496 MovieClip Frame 2
stop();
Symbol 498 Button
on (release) {
_root.restart = 1;
_root.startStage = 2;
gotoAndStop (7);
}
Symbol 499 Button
on (release) {
_root.startStage = 0;
gotoAndPlay (4);
}
Symbol 519 MovieClip Frame 1
_root.noBullets = 0;
stop();
Symbol 519 MovieClip Frame 5
_root.noBullets = 1;
this._visible = false;
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 7
gotoAndPlay (1);
Symbol 546 MovieClip Frame 13
gotoAndPlay (1);
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 553 MovieClip Frame 3
_root.score = _root.score + 5;
if ((_root.activateGun == 0) && (_root.grabGun == 0)) {
_root.activateGun = 1;
}
_root.enemyDies.start(0, 0);
Symbol 553 MovieClip Frame 15
removethis = 1;
Symbol 557 MovieClip Frame 1
dead = 0;
stop();
Symbol 557 MovieClip Frame 5
_root.select = 1;
Symbol 557 MovieClip Frame 10
dead = 1;
Symbol 558 MovieClip Frame 5
this._visible = false;
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 2
stop();
Symbol 559 MovieClip Frame 3
_root.score = _root.score + 5;
if ((_root.activateGun == 0) && (_root.grabGun == 0)) {
_root.activateGun = 1;
}
_root.enemyDies.start(0, 0);
Symbol 559 MovieClip Frame 15
removethis = 1;
Symbol 560 MovieClip Frame 1
stop();
Instance of Symbol 558 MovieClip "health" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 560 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 1
stop();
Instance of Symbol 495 MovieClip "health" in Symbol 561 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 561 MovieClip Frame 2
stop();
Symbol 578 Button
on (release) {
_root.restart = 1;
_root.startStage = 3;
gotoAndStop (7);
}
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 2
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 13
gotoAndPlay (1);
Symbol 609 MovieClip Frame 17
gotoAndPlay (1);
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 5
_root.finishHim._visible = true;
_root.killBoss = 1;
stop();
Symbol 634 MovieClip Frame 6
_root.finishHim._visible = false;
Symbol 634 MovieClip Frame 12
_root.gameClear = 1;
stop();
Symbol 639 MovieClip Frame 1
dead = 0;
stop();
Symbol 639 MovieClip Frame 41
dead = 1;
Symbol 640 MovieClip Frame 7
this._visible = false;
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 2
stop();
Symbol 641 MovieClip Frame 5
_root.finishHim._visible = true;
_root.killBoss = 1;
stop();
Symbol 641 MovieClip Frame 6
_root.finishHim._visible = false;
Symbol 641 MovieClip Frame 12
_root.gameClear = 1;
stop();
Symbol 642 MovieClip Frame 1
stop();
Instance of Symbol 640 MovieClip "health" in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
this._visible = true;
}
Symbol 642 MovieClip Frame 2
stop();
Symbol 643 MovieClip Frame 1
stop();
Instance of Symbol 299 MovieClip "health" in Symbol 643 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 643 MovieClip Frame 2
stop();
Symbol 644 MovieClip Frame 1
stop();
Instance of Symbol 558 MovieClip "health" in Symbol 644 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 644 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 1
stop();
Instance of Symbol 381 MovieClip "health" in Symbol 645 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 645 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 49
this._visible = false;
Symbol 650 MovieClip Frame 50
stop();
Symbol 654 Button
on (release) {
_root.restart = 1;
_root.startStage = 4;
gotoAndStop (7);
}
Symbol 661 Button
on (release) {
gotoAndPlay (1);
}
Symbol 663 Button
on (release) {
gotoAndStop (78);
}