Frame 1
stage.showMenu = false;
Mouse.show();
loadStatus = Math.round((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100);
loader._xscale = loadStatus;
loader._yscale = loadStatus;
if (loadStatus == 100) {
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
fscommand ("showmenu", "false");
Mouse.hide();
armorIcon._visible = 0;
target = 15;
powerup = 33;
life = 100;
enemyFire = 1;
score = 0;
bodyCount = 0;
shooting = 0;
invinc = 0;
varSoldier1a = 0;
duration = 0;
armor = 0;
levelUp = 1;
level = 1;
gotoAndPlay (8);
Instance of Symbol 87 MovieClip "crosshair" in Frame 4
onClipEvent (mouseDown) {
_root.crosshair.hit.play();
_root.ammo.nextFrame();
}
Frame 5
stop();
Frame 8
if (_root.armor == 1) {
_root.controller.armorOff();
}
Frame 23
gotoAndStop (5);
Frame 24
if (_root.armor == 1) {
_root.controller.armorOff();
}
_root.enemyFire = _root.enemyFire + _root.levelUp;
_root.level = _root.level + 1;
Frame 43
gotoAndStop (5);
Frame 44
if (_root.armor == 1) {
_root.controller.armorOff();
}
_root.enemyFire = _root.enemyFire + _root.levelUp;
_root.level = _root.level + 1;
Frame 63
gotoAndStop (5);
Frame 64
if (_root.armor == 1) {
_root.controller.armorOff();
}
_root.enemyFire = _root.enemyFire + _root.levelUp;
_root.level = _root.level + 1;
Frame 83
gotoAndStop (5);
Frame 84
if (_root.armor == 1) {
_root.controller.armorOff();
}
_root.enemyFire = _root.enemyFire + _root.levelUp;
_root.level = _root.level + 1;
Frame 103
gotoAndStop (5);
Frame 104
stop();
_root.gameover = 1;
Symbol 11 Button
on (release) {
gotoAndPlay (4);
}
Symbol 18 Button
on (press) {
_root.score = _root.score + 25;
play();
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 11
stop();
Symbol 27 Button
on (press) {
hitVar = random(2) + 1;
if (hitVar == 1) {
gotoAndPlay (14);
} else {
gotoAndPlay (56);
}
}
Symbol 31 MovieClip Frame 1
play();
Symbol 31 MovieClip Frame 2
_root.life = _root.life - _root.enemyFire;
Symbol 31 MovieClip Frame 4
_root.life = _root.life - _root.enemyFire;
Symbol 31 MovieClip Frame 6
_root.life = _root.life - _root.enemyFire;
Symbol 31 MovieClip Frame 7
gotoAndStop (1);
Symbol 48 MovieClip Frame 1
gambler = 0;
gotoAndPlay (54);
Symbol 48 MovieClip Frame 6
gambler = random(20);
if (gambler == 10) {
gotoAndPlay (9);
}
Symbol 48 MovieClip Frame 7
gotoAndPlay (6);
Symbol 48 MovieClip Frame 13
gotoAndPlay (6);
Symbol 48 MovieClip Frame 14
_root.score = _root.score + _root.target;
_root.bodyCount = _root.bodyCount + 1;
Symbol 48 MovieClip Frame 18
Symbol 48 MovieClip Frame 54
gambler = random(200);
if (gambler == 100) {
gotoAndPlay (2);
}
Symbol 48 MovieClip Frame 55
gotoAndPlay (54);
Symbol 48 MovieClip Frame 56
_root.score = _root.score + _root.target;
_root.bodyCount = _root.bodyCount + 1;
Symbol 48 MovieClip Frame 60
Symbol 48 MovieClip Frame 96
gambler = random(200);
if (gambler == 100) {
gotoAndPlay (2);
}
Symbol 48 MovieClip Frame 97
gotoAndPlay (96);
Symbol 52 Button
on (press) {
hitVar = random(2) + 1;
if (hitVar == 1) {
gotoAndPlay (14);
} else {
gotoAndPlay (21);
}
}
Symbol 66 MovieClip Frame 1
gambler = 0;
gotoAndPlay (19);
Symbol 66 MovieClip Frame 6
gambler = random(20);
if (gambler == 10) {
gotoAndPlay (9);
}
Symbol 66 MovieClip Frame 7
gotoAndPlay (6);
Symbol 66 MovieClip Frame 13
gotoAndPlay (6);
Symbol 66 MovieClip Frame 14
_root.score = _root.score + (_root.target * 2);
_root.bodyCount = _root.bodyCount + 1;
Symbol 66 MovieClip Frame 18
Symbol 66 MovieClip Frame 19
gambler = random(400);
if (gambler == 200) {
gotoAndPlay (2);
}
Symbol 66 MovieClip Frame 20
gotoAndPlay (19);
Symbol 66 MovieClip Frame 21
_root.score = _root.score + (_root.target * 2);
_root.bodyCount = _root.bodyCount + 1;
Symbol 66 MovieClip Frame 53
Symbol 66 MovieClip Frame 54
gambler = random(400);
if (gambler == 200) {
gotoAndPlay (2);
}
Symbol 66 MovieClip Frame 55
gotoAndPlay (54);
Symbol 70 Button
on (press) {
_root.score = _root.score + 20;
_root.life = _root.life + _root.powerup;
gotoAndPlay (122);
}
Symbol 71 Button
on (press) {
_root.score = _root.score + 10;
_root.life = _root.life + _root.powerup;
gotoAndPlay (122);
}
Symbol 72 Button
on (press) {
_root.life = _root.life + _root.powerup;
gotoAndPlay (122);
}
Symbol 73 MovieClip Frame 1
gambler = 1;
Symbol 73 MovieClip Frame 2
gambler = random(100);
if (gambler == 50) {
gotoAndPlay (4);
}
Symbol 73 MovieClip Frame 3
gotoAndPlay (2);
Symbol 73 MovieClip Frame 4
_root.medpak._x = random(200) + 300;
scale = random(25) + 75;
_root.medpak._xscale = scale;
_root.medpak._yscale = scale;
Symbol 73 MovieClip Frame 122
Symbol 75 Button
on (press) {
_root.score = _root.score + 30;
_root.enemyfire = _root.enemyfire * 0.25;
_root.armor = 1;
gotoAndPlay (122);
}
Symbol 76 Button
on (press) {
_root.score = _root.score + 15;
_root.enemyfire = _root.enemyfire * 0.25;
_root.armor = 1;
gotoAndPlay (122);
}
Symbol 77 Button
on (press) {
_root.enemyfire = _root.enemyfire * 0.25;
_root.armor = 1;
gotoAndPlay (122);
}
Symbol 78 MovieClip Frame 1
gambler = 1;
Symbol 78 MovieClip Frame 2
gambler = random(400);
if (gambler == 200) {
if (_root.armor != 1) {
gotoAndPlay (4);
}
}
Symbol 78 MovieClip Frame 3
gotoAndPlay (2);
Symbol 78 MovieClip Frame 4
_root.armorpak._x = random(200) + 300;
scale = random(25) + 75;
_root.armorpak._xscale = scale;
_root.armorpak._yscale = scale;
Symbol 78 MovieClip Frame 122
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 7
stop();
Symbol 85 MovieClip Frame 9
stop();
Symbol 85 MovieClip Frame 11
stop();
Symbol 85 MovieClip Frame 13
gotoAndStop (1);
Symbol 87 MovieClip Frame 1
hit._rotation = hit._rotation + 20;
Symbol 87 MovieClip Frame 2
gotoAndPlay (1);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 9
play();
Symbol 97 MovieClip Frame 12
if (_root.clips != 0) {
gotoAndStop (1);
}
Symbol 109 MovieClip Frame 1
function armorOff() {
_root.duration = 0;
_root.armor = 0;
_root.armorIcon._visible = 0;
_root.enemyfire = _root.enemyfire * 4;
}
function durationCount() {
_root.duration = _root.duration + 1;
if (_root.duration == 240) {
armorOff();
}
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.life >= 0) {
_root.lifebar.statusbar._xscale = _root.life;
}
if (_root.life >= 100) {
if (_root.invinc != 1) {
_root.life = 100;
}
}
if (_root.life < 1) {
Mouse.show();
_root.crosshair._visible = 0;
_root.gotoAndStop("gameOver");
stop();
}
_root.varSoldier1a = random(50);
if (_root.varSoldier1a == 25) {
_root.soldier1a.duplicateMovieClip(soldier1a, i);
}
if (_root.armor == 1) {
_root.armorIcon._visible = 1;
durationCount();
}
if (_root.bodyCount == 30) {
if (_root.level != 2) {
_root.gotoAndPlay("level2");
}
} else if (_root.bodyCount == 60) {
if (_root.level != 3) {
_root.gotoAndPlay("level3");
}
} else if (_root.bodyCount == 90) {
if (_root.level != 4) {
_root.gotoAndPlay("level4");
}
} else if (_root.bodyCount == 120) {
if (_root.level != 5) {
_root.gotoAndPlay("level5");
}
}
Symbol 109 MovieClip Frame 2
gotoAndPlay (1);
Symbol 110 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "enemyshooting";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}