Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
_root.locatie = _url;
if (_root.locatie.indexOf("freeonlinegames", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 174
_root.locatie = _url;
if (_root.locatie.indexOf("freeonlinegames", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 175
function clearAll() {
trace("ClearAll();");
_root.hud.removeMovieClip();
_root._x = 0;
_root._y = 0;
_root.player.removeMovieClip();
_root.grenades.removeMovieClip();
_root.bullets.removeMovieClip();
i = 4000;
while (i <= 4100) {
_root["baddy" + i].removeMovieClip();
i++;
}
i = 5000;
while (i <= 5100) {
_root["pickup" + i].removeMovieClip();
i++;
}
}
function screenFlash() {
_root.createEmptyMovieClip("screenFlaseh", 98765);
_root.screenFlaseh.beginFill(16777215, 100);
_root.screenFlaseh.moveTo(-1, -1);
_root.screenFlaseh.lineTo(601, -1);
_root.screenFlaseh.lineTo(601, 451);
_root.screenFlaseh.lineTo(-1, 451);
_root.screenFlaseh.lineTo(-1, -1);
_root.screenFlaseh.onEnterFrame = function () {
this._alpha = this._alpha * 0.8;
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
}
MSpec = new Sound();
MSpec.setVolume(75);
Frame 177
stop();
clearAll();
screenFlash();
Instance of Symbol 926 MovieClip in Frame 177
//component parameters
onClipEvent (construct) {
wynume = "Nightmare";
wyculoare = 3092812 /* 0x2F314C */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 178
function makePickup(myX, myY, type) {
_root.attachMovie("pickup" + type, "pickup" + pickupCounter, pickupCounter);
_root["pickup" + pickupCounter]._x = myX;
_root["pickup" + pickupCounter]._y = myY;
if (pickupCounter < 5100) {
pickupCounter++;
} else {
pickupCounter = 5000;
}
}
function makeBullet(myX, myY, bulletType, ammount) {
j = 1;
while (j <= ammount) {
i = 0;
while (bulletsUsed[i] == true) {
i++;
}
bulletsUsed[i] = true;
_root.bullets.attachMovie("bullet" + bulletType, "bullet" + i, i);
_root.bullets["bullet" + i]._x = myX;
_root.bullets["bullet" + i]._y = myY;
_root.bullets["bullet" + i].myNumb = i;
if (bulletType == 2) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 6) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 7) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 8) {
_root.bullets["bullet" + i].strength = 2.5;
} else if (bulletType == 9) {
_root.bullets["bullet" + i].strength = 5;
} else if (bulletType == 10) {
_root.bullets["bullet" + i].strength = 9;
} else if (bulletType == 11) {
_root.bullets["bullet" + i].strength = 25;
} else if (bulletType == 81) {
_root.bullets["bullet" + i].strength = 0.8;
} else if (bulletType == 99) {
_root.bullets["bullet" + i].strength = 3;
} else {
_root.bullets["bullet" + i].strength = 1;
}
if (i > highestBullet) {
highestBullet = i;
}
j++;
}
}
function makeBaddy(myX, myY, numbah) {
_root.attachMovie("baddy" + numbah, "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = myX;
_root["baddy" + baddyCounter]._y = myY;
baddyCounter++;
if (baddyCounter > 4100) {
baddyCounter = 4000;
}
}
function makeGrenade(myX, myY) {
i = 0;
while (grenadesUsed[i] == true) {
i++;
}
grenadesUsed[i] = true;
_root.grenades.attachMovie("grenade", "grenade" + i, i);
_root.grenades["grenade" + i]._x = myX;
_root.grenades["grenade" + i]._y = myY;
_root.grenades["grenade" + i].myNumb = i;
if (i > highestGrenade) {
highestGrenade = i;
}
}
function makeBaddyBullet(myX, myY) {
_root.attachMovie("baddyBullet", "baddyBullet" + _root.particleCount, _root.particleCount);
_root["baddyBullet" + _root.particleCount]._x = myX;
_root["baddyBullet" + _root.particleCount]._y = myY;
_root.particleCount++;
}
Mouse.removeListener(_root.hud.mouseListener);
stop();
xp1 = 0;
xp2 = 0;
xp3 = 0;
xp4 = 0;
upKey = 87;
leftKey = 65;
downKey = 83;
rightKey = 68;
shieldKey = 32;
grenadeKey = 81;
actionKey = 69;
pauseKey = 80;
pickups = 0;
particleCount = 6000;
baddyCounter = 4000;
health = 100;
GUNZ = 1;
stop();
pause = false;
pickupCounter = 5000;
baddyCount = 10;
_root.createEmptyMovieClip("bullets", 200);
bulletsUsed = new Array();
highestBullet = 0;
onMouseDown = function () {
if (!pause) {
if (_root.player && (!_root.player.shield)) {
ammount = 1;
bulletType = 1;
if ((_root.player.currentGun == "pistol") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.pistolLevel == 1) {
bulletType = 1;
} else if (_root.player.pistolLevel == 2) {
bulletType = 1;
} else if (_root.player.pistolLevel == 3) {
bulletType = 2;
}
_root.player.gun.mcGun.gotoAndStop("fire");
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, 1);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, 1);
}
} else if (_root.player.currentGun == "autogun") {
_root.player.sprite.mcMC.head.gotoAndStop("fire");
_root.player.gun.mcGun.gotoAndStop("fire");
} else if ((_root.player.currentGun == "cluster") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.clusterLevel == 1) {
bulletType = 6;
ammount = 3;
} else if (_root.player.clusterLevel == 2) {
bulletType = 7;
ammount = 5;
} else if (_root.player.clusterLevel == 3) {
bulletType = 8;
ammount = 6;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, ammount);
}
} else if ((_root.player.currentGun == "missile") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
_root.attachMovie("missileParticle", "particle" + _root.particleCount, _root.particleCount);
if (_root.player.myDirection == "right") {
_root["particle" + _root.particleCount]._x = _root.player._x - 15;
} else {
_root["particle" + _root.particleCount]._x = _root.player._x + 15;
}
_root["particle" + _root.particleCount]._y = _root.player._y - 25;
_root.particleCount++;
if (_root.player.missileLevel == 1) {
bulletType = 9;
ammount = 1;
} else if (_root.player.missileLevel == 2) {
bulletType = 10;
ammount = 1;
} else if (_root.player.missileLevel == 3) {
bulletType = 11;
ammount = 1;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), ((_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30)) - 14, bulletType, ammount);
}
}
}
}
};
onEnterFrame = function () {
if (particleCount > 7000) {
particleCount = 6000;
}
if (Key.isDown(_root.pauseKey) && (ableToPause)) {
if (_root.pause) {
_root.pause = false;
} else {
_root.pause = true;
}
ableToPause = false;
} else if (!Key.isDown(_root.pauseKey)) {
ableToPause = true;
}
};
_root.createEmptyMovieClip("grenades", 201);
grenadesUsed = new Array();
highestGrenade = 0;
Frame 179
function makePickup(myX, myY, type) {
_root.attachMovie("pickup" + type, "pickup" + pickupCounter, pickupCounter);
_root["pickup" + pickupCounter]._x = myX;
_root["pickup" + pickupCounter]._y = myY;
if (pickupCounter < 5100) {
pickupCounter++;
} else {
pickupCounter = 5000;
}
}
function makeBullet(myX, myY, bulletType, ammount) {
j = 1;
while (j <= ammount) {
i = 0;
while (bulletsUsed[i] == true) {
i++;
}
bulletsUsed[i] = true;
_root.bullets.attachMovie("bullet" + bulletType, "bullet" + i, i);
_root.bullets["bullet" + i]._x = myX;
_root.bullets["bullet" + i]._y = myY;
_root.bullets["bullet" + i].myNumb = i;
if (bulletType == 2) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 6) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 7) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 8) {
_root.bullets["bullet" + i].strength = 2.5;
} else if (bulletType == 9) {
_root.bullets["bullet" + i].strength = 5;
} else if (bulletType == 10) {
_root.bullets["bullet" + i].strength = 9;
} else if (bulletType == 11) {
_root.bullets["bullet" + i].strength = 25;
} else if (bulletType == 81) {
_root.bullets["bullet" + i].strength = 0.8;
} else if (bulletType == 99) {
_root.bullets["bullet" + i].strength = 3;
} else {
_root.bullets["bullet" + i].strength = 1;
}
if (i > highestBullet) {
highestBullet = i;
}
j++;
}
}
function makeBaddy(myX, myY, numbah) {
_root.attachMovie("baddy" + numbah, "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = myX;
_root["baddy" + baddyCounter]._y = myY;
baddyCounter++;
if (baddyCounter > 4100) {
baddyCounter = 4000;
}
}
function makeGrenade(myX, myY) {
i = 0;
while (grenadesUsed[i] == true) {
i++;
}
grenadesUsed[i] = true;
_root.grenades.attachMovie("grenade", "grenade" + i, i);
_root.grenades["grenade" + i]._x = myX;
_root.grenades["grenade" + i]._y = myY;
_root.grenades["grenade" + i].myNumb = i;
if (i > highestGrenade) {
highestGrenade = i;
}
}
function makeBaddyBullet(myX, myY) {
_root.attachMovie("baddyBullet", "baddyBullet" + _root.particleCount, _root.particleCount);
_root["baddyBullet" + _root.particleCount]._x = myX;
_root["baddyBullet" + _root.particleCount]._y = myY;
_root.particleCount++;
}
Mouse.removeListener(_root.hud.mouseListener);
clearAll();
stop();
upKey = 87;
leftKey = 65;
downKey = 83;
rightKey = 68;
shieldKey = 32;
grenadeKey = 81;
actionKey = 69;
pauseKey = 80;
particleCount = 6000;
baddyCounter = 4000;
stop();
pause = false;
pickupCounter = 5000;
baddyCount = 10;
Mouse.removeListener(_root.hud.mouseListener);
_root.createEmptyMovieClip("bullets", 200);
bulletsUsed = new Array();
highestBullet = 0;
onMouseDown = function () {
if (!pause) {
if (_root.player && (!_root.player.shield)) {
ammount = 1;
bulletType = 1;
if ((_root.player.currentGun == "pistol") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.pistolLevel == 1) {
bulletType = 1;
} else if (_root.player.pistolLevel == 2) {
bulletType = 1;
} else if (_root.player.pistolLevel == 3) {
bulletType = 2;
}
_root.player.gun.mcGun.gotoAndStop("fire");
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, 1);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, 1);
}
} else if (_root.player.currentGun == "autogun") {
_root.player.sprite.mcMC.head.gotoAndStop("fire");
_root.player.gun.mcGun.gotoAndStop("fire");
} else if ((_root.player.currentGun == "cluster") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.clusterLevel == 1) {
bulletType = 6;
ammount = 3;
} else if (_root.player.clusterLevel == 2) {
bulletType = 7;
ammount = 5;
} else if (_root.player.clusterLevel == 3) {
bulletType = 8;
ammount = 6;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, ammount);
}
} else if ((_root.player.currentGun == "missile") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
_root.attachMovie("missileParticle", "particle" + _root.particleCount, _root.particleCount);
if (_root.player.myDirection == "right") {
_root["particle" + _root.particleCount]._x = _root.player._x - 15;
} else {
_root["particle" + _root.particleCount]._x = _root.player._x + 15;
}
_root["particle" + _root.particleCount]._y = _root.player._y - 25;
_root.particleCount++;
if (_root.player.missileLevel == 1) {
bulletType = 9;
ammount = 1;
} else if (_root.player.missileLevel == 2) {
bulletType = 10;
ammount = 1;
} else if (_root.player.missileLevel == 3) {
bulletType = 11;
ammount = 1;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), ((_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30)) - 14, bulletType, ammount);
}
}
}
}
};
onEnterFrame = function () {
if (particleCount > 7000) {
particleCount = 6000;
}
if (Key.isDown(_root.pauseKey) && (ableToPause)) {
if (_root.pause) {
_root.pause = false;
} else {
_root.pause = true;
}
ableToPause = false;
} else if (!Key.isDown(_root.pauseKey)) {
ableToPause = true;
}
};
_root.createEmptyMovieClip("grenades", 201);
grenadesUsed = new Array();
highestGrenade = 0;
Frame 180
function makePickup(myX, myY, type) {
_root.attachMovie("pickup" + type, "pickup" + pickupCounter, pickupCounter);
_root["pickup" + pickupCounter]._x = myX;
_root["pickup" + pickupCounter]._y = myY;
if (pickupCounter < 5100) {
pickupCounter++;
} else {
pickupCounter = 5000;
}
}
function makeBullet(myX, myY, bulletType, ammount) {
j = 1;
while (j <= ammount) {
i = 0;
while (bulletsUsed[i] == true) {
i++;
}
bulletsUsed[i] = true;
_root.bullets.attachMovie("bullet" + bulletType, "bullet" + i, i);
_root.bullets["bullet" + i]._x = myX;
_root.bullets["bullet" + i]._y = myY;
_root.bullets["bullet" + i].myNumb = i;
if (bulletType == 2) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 6) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 7) {
_root.bullets["bullet" + i].strength = 1.5;
} else if (bulletType == 8) {
_root.bullets["bullet" + i].strength = 2.5;
} else if (bulletType == 9) {
_root.bullets["bullet" + i].strength = 5;
} else if (bulletType == 10) {
_root.bullets["bullet" + i].strength = 9;
} else if (bulletType == 11) {
_root.bullets["bullet" + i].strength = 25;
} else if (bulletType == 81) {
_root.bullets["bullet" + i].strength = 0.8;
} else if (bulletType == 99) {
_root.bullets["bullet" + i].strength = 3;
} else {
_root.bullets["bullet" + i].strength = 1;
}
if (i > highestBullet) {
highestBullet = i;
}
j++;
}
}
function makeBaddy(myX, myY, numbah) {
_root.attachMovie("baddy" + numbah, "baddy" + baddyCounter, baddyCounter);
_root["baddy" + baddyCounter]._x = myX;
_root["baddy" + baddyCounter]._y = myY;
baddyCounter++;
if (baddyCounter > 4100) {
baddyCounter = 4000;
}
}
function makeGrenade(myX, myY) {
i = 0;
while (grenadesUsed[i] == true) {
i++;
}
grenadesUsed[i] = true;
_root.grenades.attachMovie("grenade", "grenade" + i, i);
_root.grenades["grenade" + i]._x = myX;
_root.grenades["grenade" + i]._y = myY;
_root.grenades["grenade" + i].myNumb = i;
if (i > highestGrenade) {
highestGrenade = i;
}
}
function makeBaddyBullet(myX, myY) {
_root.attachMovie("baddyBullet", "baddyBullet" + _root.particleCount, _root.particleCount);
_root["baddyBullet" + _root.particleCount]._x = myX;
_root["baddyBullet" + _root.particleCount]._y = myY;
_root.particleCount++;
}
Mouse.removeListener(_root.hud.mouseListener);
clearAll();
stop();
upKey = 87;
leftKey = 65;
downKey = 83;
rightKey = 68;
shieldKey = 32;
grenadeKey = 81;
actionKey = 69;
pauseKey = 80;
particleCount = 6000;
baddyCounter = 4000;
stop();
pause = false;
pickupCounter = 5000;
baddyCount = 10;
Mouse.removeListener(_root.hud.mouseListener);
_root.createEmptyMovieClip("bullets", 200);
bulletsUsed = new Array();
highestBullet = 0;
onMouseDown = function () {
if (!pause) {
if (_root.player && (!_root.player.shield)) {
ammount = 1;
bulletType = 1;
if ((_root.player.currentGun == "pistol") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.pistolLevel == 1) {
bulletType = 1;
} else if (_root.player.pistolLevel == 2) {
bulletType = 1;
} else if (_root.player.pistolLevel == 3) {
bulletType = 2;
}
_root.player.gun.mcGun.gotoAndStop("fire");
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, 1);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, 1);
}
} else if (_root.player.currentGun == "autogun") {
_root.player.sprite.mcMC.head.gotoAndStop("fire");
_root.player.gun.mcGun.gotoAndStop("fire");
} else if ((_root.player.currentGun == "cluster") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
if (_root.player.clusterLevel == 1) {
bulletType = 6;
ammount = 3;
} else if (_root.player.clusterLevel == 2) {
bulletType = 7;
ammount = 5;
} else if (_root.player.clusterLevel == 3) {
bulletType = 8;
ammount = 6;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30), bulletType, ammount);
}
} else if ((_root.player.currentGun == "missile") && (_root.player.gun.mcGun._currentframe == 1)) {
_root.player.gun.mcGun.gotoAndStop("fire");
_root.player.sprite.mcMC.head.gotoAndPlay("fire");
_root.attachMovie("missileParticle", "particle" + _root.particleCount, _root.particleCount);
if (_root.player.myDirection == "right") {
_root["particle" + _root.particleCount]._x = _root.player._x - 15;
} else {
_root["particle" + _root.particleCount]._x = _root.player._x + 15;
}
_root["particle" + _root.particleCount]._y = _root.player._y - 25;
_root.particleCount++;
if (_root.player.missileLevel == 1) {
bulletType = 9;
ammount = 1;
} else if (_root.player.missileLevel == 2) {
bulletType = 10;
ammount = 1;
} else if (_root.player.missileLevel == 3) {
bulletType = 11;
ammount = 1;
}
if (_root.player.myDirection == "right") {
makeBullet(_root.player._x + (Math.cos((player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((player.gun._rotation * Math.PI) / 180) * 30), bulletType, ammount);
} else {
makeBullet(_root.player._x + (Math.cos(((180 - player.gun._rotation) * Math.PI) / 180) * 30), ((_root.player._y + _root.player.gun._y) + (Math.sin(((180 - player.gun._rotation) * Math.PI) / 180) * 30)) - 14, bulletType, ammount);
}
}
}
}
};
onEnterFrame = function () {
if (particleCount > 7000) {
particleCount = 6000;
}
if (Key.isDown(_root.pauseKey) && (ableToPause)) {
if (_root.pause) {
_root.pause = false;
} else {
_root.pause = true;
}
ableToPause = false;
} else if (!Key.isDown(_root.pauseKey)) {
ableToPause = true;
}
};
_root.createEmptyMovieClip("grenades", 201);
grenadesUsed = new Array();
highestGrenade = 0;
Frame 181
clearAll();
stop();
Frame 183
clearAll();
stop();
Frame 184
stopAllSounds();
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 185
_root.menu.removeMovieClip();
_root.gameid = "Nightmare";
_root.best = (_root.pickups * 500) + random(10);
_root.pickups = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 187
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 195
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 199
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 200
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip [UpArrow] Frame 1
stop();
Symbol 33 MovieClip [UpArrow] Frame 2
stop();
Symbol 33 MovieClip [UpArrow] Frame 3
stop();
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 81 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 82 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 84 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?Nightmare", "_blank");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 50
stop();
_parent.play();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 148 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 148 MovieClip Frame 19
_parent._parent.action = "idle";
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 MovieClip [baddy1] Frame 1
function die() {
_root.baddyCount++;
i = 0;
while (i <= (1 + random(3))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
_root.attachMovie("deathParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root.particleCount++;
this.removeMovieClip();
}
action = "idle";
direction = "right";
walkSpeed = 2 + (random(30) * 0.1);
xSpeed = 0;
ySpeed = 0;
health = 8;
_root.baddyCount--;
i = 0;
while (i <= 400) {
if (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
} else {
break;
}
if (i == 400) {
this.removeMovieClip();
}
i++;
}
_root.attachMovie("spawnParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root.particleCount++;
onEnterFrame = function () {
if (!_root.pause) {
if (action == "idle") {
if (((Math.abs(_root.player._x - _x) < 300) && (Math.abs(_root.player._y - _y) < 200)) && (random(60) == 0)) {
action = "hop";
if (_root.player._x > _x) {
xSpeed = (random(40) * 0.1) + 3;
direction = "right";
} else {
xSpeed = -((random(40) * 0.1) + 3);
direction = "left";
}
if (_root.ground.hitTest(_x + (xSpeed * 30), _y - 10, true) || (!_root.ground.hitTest(_x, _y + 10, true))) {
action = "idle";
}
} else if (random(50) == 0) {
action = "hop";
if (random(2) == 0) {
xSpeed = (random(40) * 0.1) + 3;
direction = "right";
} else {
xSpeed = -((random(40) * 0.1) + 3);
direction = "left";
}
if (_root.ground.hitTest(_x + (xSpeed * 30), _y - 10, true) || (!_root.ground.hitTest(_x, _y + 10, true))) {
action = "idle";
}
}
}
if (action == "hop") {
_x = (_x + xSpeed);
}
i = 0;
while (i <= 10) {
if (!_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y+1);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y-1);
}
i++;
}
sprite.gotoAndStop(action);
if (direction == "right") {
sprite._xscale = 100;
} else {
sprite._xscale = -100;
}
if (((_root.player.invincible <= 0) && (!_root.player.vehicle)) && (_root.player.hitTest(this._x, this._y - 30, true))) {
_root.player.invincible = 60;
_root.hud.flashHurt.gotoAndPlay(1);
_root.player.action = "up";
_root.player.vSpeed = -10;
_root.player.hSpeed = _root.player.hSpeed * 1.2;
} else if (_root.player.vehicle && (_root.player.hitTest(this._x, this._y - 30, true))) {
if (_root.player._x > _x) {
xSpeed = -6;
} else {
xSpeed = 6;
}
health = health - ((Math.abs(_root.player.ySpeed) + Math.abs(_root.player.xSpeed)) * 0.1);
_root.player.xSpeed = _root.player.xSpeed * 0.8;
}
i = 0;
while (i <= _root.highestGrenade) {
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
health = 0;
}
if (this.hitTest(_root.grenades["explosion" + i])) {
health = health - 5;
}
if (this.hitTest((action != "up") && (_root.grenades["grenade" + i]))) {
_root.grenades["grenade" + i].removeMovieClip();
}
i++;
}
i = 0;
while (i <= _root.highestBullet) {
if (this.hitTest(_root.bullets["bullet" + i])) {
if ((this.action == "standing") || (this.action == "walking")) {
this.action = "walking";
if (_root.player._x < _x) {
xSpeed = -4;
} else {
xSpeed = 4;
}
}
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].onEnterFrame = null;
_root.bullets["bullet" + i].gotoAndStop(2);
}
i++;
}
bar._xscale = health * 10;
if (health <= 0) {
this.die();
}
}
};
Symbol 159 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 190 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 190 MovieClip Frame 45
_parent._parent.action = "idle";
Symbol 192 MovieClip [baddy2] Frame 1
function die() {
_root.baddyCount++;
i = 0;
while (i <= (3 + random(4))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
_root.attachMovie("deathParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root["particle" + _root.particleCount]._xscale = 150;
_root["particle" + _root.particleCount]._yscale = 200;
_root.particleCount++;
this.removeMovieClip();
}
action = "idle";
direction = "right";
walkSpeed = 2 + (random(30) * 0.1);
xSpeed = 0;
ySpeed = 0;
health = 20;
_root.baddyCount--;
i = 0;
while (i <= 400) {
if (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
} else {
break;
}
if (i == 400) {
this.removeMovieClip();
}
i++;
}
_root.attachMovie("spawnParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root.particleCount++;
onEnterFrame = function () {
if (!_root.pause) {
if (action == "idle") {
walktime = 30 + random(30);
if (((Math.abs(_root.player._x - _x) < 300) && (Math.abs(_root.player._y - _y) < 200)) && (random(60) == 0)) {
walktime = 30 + random(30);
action = "walk";
if (_root.player._x > _x) {
xSpeed = (random(20) * 0.1) + 2;
direction = "right";
} else {
xSpeed = -((random(20) * 0.1) + 2);
direction = "left";
}
tng1._x = xSpeed * 10;
tng1._y = 20;
tng2._x = xSpeed * 10;
tng2._y = -20;
if (_root.ground.hitTest(_x + (xSpeed * 10), y - 30, true)) {
action = "idle";
}
} else if (random(30) == 0) {
walktime = 30 + random(30);
action = "walk";
if (random(2) == 0) {
xSpeed = (random(20) * 0.1) + 2;
direction = "right";
} else {
xSpeed = -((random(20) * 0.1) + 2);
direction = "left";
}
}
if ((((!attacked) && (Math.abs(_root.player._x - _x) < 200)) && (Math.abs(_root.player._y - _y) < 100)) && (random(10) == 0)) {
if (_root.player._x > _x) {
direction = "right";
} else {
direction = "left";
}
action = "attack";
attacked = true;
}
}
if (action == "walk") {
attacked = false;
_x = (_x + xSpeed);
walktime--;
if ((walktime <= 0) || (_root.ground.hitTest(_x + (xSpeed * 5), _y - 20, true))) {
action = "idle";
}
}
if (action == "attack") {
if ((((!(_root.player.shield && (_root.player.sprite.arm.charge > 65))) && (_root.player.invincible <= 0)) && (!_root.player.vehicle)) && (this.hitTest(_root.player._x, _root.player._y - 20, true))) {
_root.player.invincible = 60;
_root.hud.flashHurt.gotoAndPlay(1);
_root.player.action = "up";
_root.player.vSpeed = -10;
_root.player.hSpeed = _root.player.hSpeed * 1.2;
}
}
i = 0;
while (i <= 10) {
if (!_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y+1);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y-1);
}
i++;
}
sprite.gotoAndStop(action);
if (direction == "right") {
sprite._xscale = 100;
} else {
sprite._xscale = -100;
}
if (((action != "attack") && (_root.player.shield)) && (_root.player.sprite.arm.shield.hitTest(this))) {
if (_root.player._x > _x) {
_x = (_x - 4);
} else {
_x = (_x + 4);
}
}
if (((_root.player.invincible <= 0) && (!_root.player.vehicle)) && (_root.player.hitTest(this._x, this._y - 30, true))) {
_root.player.invincible = 60;
_root.hud.flashHurt.gotoAndPlay(1);
_root.player.action = "up";
_root.player.vSpeed = -10;
_root.player.hSpeed = _root.player.hSpeed * 1.2;
} else if (_root.player.vehicle && (_root.player.hitTest(this._x, this._y - 30, true))) {
if (_root.player._x > _x) {
xSpeed = -6;
} else {
xSpeed = 6;
}
health = health - ((Math.abs(_root.player.ySpeed) + Math.abs(_root.player.xSpeed)) * 0.1);
_root.player.xSpeed = _root.player.xSpeed * 0.8;
}
i = 0;
while (i <= _root.highestGrenade) {
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
health = 0;
}
if (this.hitTest(_root.grenades["explosion" + i])) {
health = health - 0.6;
}
if (this.hitTest((action != "up") && (_root.grenades["grenade" + i]))) {
_root.grenades["grenade" + i].removeMovieClip();
}
i++;
}
i = 0;
while (i <= _root.highestBullet) {
if (this.hitTest(_root.bullets["bullet" + i])) {
if (action == "idle") {
walktime = 10 + random(10);
action = "walk";
if (_root.player._x > _x) {
xSpeed = (random(20) * 0.1) + 2;
direction = "right";
} else {
xSpeed = -((random(20) * 0.1) + 2);
direction = "left";
}
}
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].onEnterFrame = null;
_root.bullets["bullet" + i].gotoAndStop(2);
}
i++;
}
bar._xscale = health * 5;
if (health <= 0) {
this.die();
}
}
};
Symbol 196 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
if (_alpha <= 100) {
_alpha = (_alpha + 10);
}
};
Symbol 219 MovieClip Frame 44
_parent._parent.action = "down";
Symbol 221 MovieClip [baddy3] Frame 1
function die() {
_root.baddyCount++;
i = 0;
while (i <= (4 + random(4))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
_root.attachMovie("deathParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root.particleCount++;
this.removeMovieClip();
}
action = "down";
walkSpeed = 3 + (random(20) * 0.1);
xSpeed = 0;
ySpeed = 0;
health = 13;
_root.baddyCount--;
_root.attachMovie("spawnParticle", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root.particleCount++;
shotTimer = random(100);
onEnterFrame = function () {
if (!_root.pause) {
if ((Math.abs(_root.player._x - _x) < 300) && (Math.abs(_root.player._y - _y) < 225)) {
shotTimer--;
if (shotTimer <= 0) {
action = "firing";
if (xSpeed > 0) {
_root.makeBaddyBullet(_x + 30, _y - 80);
} else {
_root.makeBaddyBullet(_x - 30, _y - 80);
}
shotTimer = 70 + random(50);
}
}
if (action == "standing") {
if (((Math.abs(_root.player._x - _x) > 150) && (Math.abs(_root.player._x - _x) < 250)) && (Math.abs(_root.player._y - _y) < 200)) {
if ((_root.player._x > _x) && (!_root.ground.hitTest(_x + (_width / 2), _y - 50, true))) {
action = "walking";
} else if ((_root.player._x < _x) && (!_root.ground.hitTest(_x - (_width / 2), _y - 50, true))) {
action = "walking";
}
}
ySpeed = 3;
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 50, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 50, true)))) {
_x = (_x + xSpeed);
}
if (xSpeed > 0) {
xSpeed = xSpeed - 0.5;
} else if (xSpeed < 0) {
xSpeed = xSpeed + 0.5;
}
if (Math.abs(xSpeed) <= 0.5) {
xSpeed = 0;
}
} else if (action == "walking") {
ySpeed = 3;
if (Math.abs(_root.player._x - _x)) {
if (_root.player._x < (_x - 150)) {
if (xSpeed > (-walkSpeed)) {
xSpeed = xSpeed - 0.25;
}
} else if (xSpeed < 0) {
xSpeed = xSpeed + 0.25;
}
}
if (_root.player._x > (_x + 150)) {
if (xSpeed < walkSpeed) {
xSpeed = xSpeed + (random(200) * 0.01);
}
} else if (xSpeed > 0) {
xSpeed = xSpeed - (random(200) * 0.01);
}
if ((((random(3) == 0) && (_root.player._x < _x)) && (_root.ground.hitTest((_x + (xSpeed * 2)) - _width, _y - 5, true))) && (!_root.ground.hitTest((_x + (xSpeed * 2)) - _width, _y - 75, true))) {
action = "up";
ySpeed = -5 - (random(40) * 0.1);
xSpeed = xSpeed - 1;
} else if ((((random(3) == 0) && (_root.player._x > _x)) && (_root.ground.hitTest((_x + (xSpeed * 2)) + _width, _y - 5, true))) && (!_root.ground.hitTest((_x + (xSpeed * 2)) + _width, _y - 75, true))) {
action = "up";
ySpeed = -5 - (random(40) * 0.1);
xSpeed = xSpeed + 1;
}
if (!_root.ground.hitTest(_x + xSpeed, _y + 15, true)) {
action = "down";
}
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 50, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 50, true)))) {
_x = (_x + xSpeed);
} else {
action = "standing";
}
if (xSpeed == 0) {
action = "standing";
}
} else if (action == "up") {
ySpeed = ySpeed + 0.5;
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 50, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 50, true)))) {
_x = (_x + xSpeed);
}
if (ySpeed > 0) {
action = "down";
}
} else if (action == "firing") {
if (!_root.ground.hitTest(_x, _y + 15, true)) {
_y = (_y + 3);
}
} else if (action == "down") {
ySpeed = ySpeed + 0.5;
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 50, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 50, true)))) {
_x = (_x + xSpeed);
}
if (_root.ground.hitTest(this._x, this._y + ySpeed, true)) {
action = "standing";
}
}
_y = (_y + ySpeed);
if (((action == "standing") || (action == "up")) || (action == "down")) {
sprite.gotoAndStop("idle");
} else if (action == "walking") {
sprite.gotoAndStop("walk");
} else if (action == "firing") {
sprite.gotoAndStop("fire");
}
if (xSpeed > 0) {
sprite._xscale = 100;
} else {
sprite._xscale = -100;
}
i = 0;
while (i <= 100) {
if (_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y - 0.7);
} else {
break;
}
if (i == 100) {
if (!_root.ground.hitTest(this._x + 50, this._y, true)) {
_x = (_x + 50);
} else if (!_root.ground.hitTest(this._x - 50, this._y, true)) {
_x = (_x - 50);
}
}
i++;
}
if (_root.player.shield && (_root.player.sprite.arm.shield.hitTest(this))) {
if (_root.player._x > _x) {
xSpeed = xSpeed - 2;
} else {
xSpeed = xSpeed + 2;
}
}
if (((_root.player.invincible <= 0) && (!_root.player.vehicle)) && (_root.player.hitTest(this._x, this._y - 30, true))) {
_root.player.invincible = 60;
_root.hud.flashHurt.gotoAndPlay(1);
_root.player.action = "up";
_root.player.vSpeed = -10;
_root.player.hSpeed = _root.player.hSpeed * 1.2;
} else if (_root.player.vehicle && (_root.player.hitTest(this._x, this._y - 30, true))) {
action = "up";
if (_root.player._x > _x) {
xSpeed = -6;
} else {
xSpeed = 6;
}
ySpeed = -3;
health = health - ((Math.abs(_root.player.ySpeed) + Math.abs(_root.player.xSpeed)) * 0.1);
_root.player.xSpeed = _root.player.xSpeed * 0.8;
_root.player.ySpeed = _root.player.ySpeed * 0.8;
}
i = 0;
while (i <= _root.highestGrenade) {
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
health = 0;
}
if ((action != "up") && (this.hitTest(_root.grenades["explosion" + i]))) {
health = health - 5;
action = "up";
ySpeed = -5 - random(4);
xSpeed = random(10) - 5;
}
if (this.hitTest((action != "up") && (_root.grenades["grenade" + i]))) {
_root.grenades["grenade" + i].removeMovieClip();
}
i++;
}
i = 0;
while (i <= _root.highestBullet) {
if (this.hitTest(_root.bullets["bullet" + i])) {
if ((this.action == "standing") || (this.action == "walking")) {
this.action = "walking";
if (_root.player._x < _x) {
xSpeed = -4;
} else {
xSpeed = 4;
}
if ((random(10) == 0) && (_root.player._x < _x)) {
action = "up";
ySpeed = -5 - (random(40) * 0.1);
xSpeed = xSpeed - 1;
} else if ((random(10) == 0) && (_root.player._x > _x)) {
action = "up";
ySpeed = -5 - (random(40) * 0.1);
xSpeed = xSpeed + 1;
}
}
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].onEnterFrame = null;
_root.bullets["bullet" + i].gotoAndStop(2);
}
i++;
}
bar._xscale = health * 10;
if (health <= 0) {
this.die();
}
}
};
Symbol 227 MovieClip [baddyBullet] Frame 1
angle = Math.atan2((_root.player._y - 35) - _y, _root.player._x - _x);
angle = angle + (((random(15) - 7) * Math.PI) / 180);
_rotation = ((angle * 180) / Math.PI);
speed = 7;
onEnterFrame = function () {
if (!_root.pause) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (_root.player.shield && (_root.player.sprite.arm.shield.hitTest(this))) {
if (_root.player.sprite.arm.charge >= 90) {
_root.makeBullet(_x, _y, 99, 1);
}
this.removeMovieClip();
}
if ((((_root.player.invincible <= 0) && (!_root.player.vehicle)) && (_root.player.sprite.mcMC.hitTest(this))) && (Math.sqrt(((_root.player._x - _x) * (_root.player._x - _x)) + (((_root.player._y - 45) - _y) * ((_root.player._y - 45) - _y))) < 25)) {
_root.hud.flashHurt.gotoAndPlay(1);
_root.player.action = "up";
_root.player.invincible = 60;
_root.player.vSpeed = -6;
this.removeMovieClip();
}
}
};
Symbol 235 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 236 MovieClip [bullet1] Frame 1
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.001);
speed = 15;
speed = speed + ((random(30) - 20) * 0.1);
stop();
onEnterFrame = function () {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (!_root.pause) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 236 MovieClip [bullet1] Frame 2
this._name = "hit" + myNumb;
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
onEnterFrame = null;
Symbol 246 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 247 MovieClip [bullet2] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.001);
speed = 17;
speed = speed + ((random(30) - 20) * 0.1);
onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 247 MovieClip [bullet2] Frame 2
this._name = "hit" + myNumb;
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
onEnterFrame = null;
Symbol 249 MovieClip Frame 1
this.cacheAsBitmap = true;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 250 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 261 MovieClip Frame 14
stop();
_parent.removeMovieClip();
Symbol 262 MovieClip [bullet3] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.001);
speed = 17;
speed = speed + ((random(30) - 20) * 0.1);
onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 262 MovieClip [bullet3] Frame 2
_name = ("hit" + myNumb);
onEnterFrame = null;
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 263 MovieClip [bullet4] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.005);
speed = 17;
speed = speed + ((random(30) - 20) * 0.1);
onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 263 MovieClip [bullet4] Frame 2
_name = ("hit" + myNumb);
onEnterFrame = null;
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 266 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 267 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 279 MovieClip Frame 4
_parent._name = "hit" + _parent.myNumb;
Symbol 279 MovieClip Frame 14
_parent.removeMovieClip();
Symbol 280 MovieClip [bullet5] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.003);
speed = 12;
speed = speed + ((random(30) - 20) * 0.1);
onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 280 MovieClip [bullet5] Frame 2
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 285 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 292 MovieClip Frame 1
_parent._parent._name = "sppooople" + random(999);
_parent._parent.onEnterFrame = null;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 292 MovieClip Frame 8
_parent._parent.removeMovieClip();
Symbol 294 MovieClip [bullet6] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + (((random(40) - 20) * Math.PI) / 180);
speed = 18;
speed = speed + ((random(30) - 20) * 0.1);
timer = 9 + random(7);
onEnterFrame = function () {
if (!_root.pause) {
if ((timer > 0) && ((timer % 7) == 0)) {
_root.attachMovie("particle3", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root["particle" + _root.particleCount].ySpeed = 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this.play();
this.ySpeed = this.ySpeed + 0.5;
this._y = this._y + this.ySpeed;
} else {
this.stop();
}
};
_root.particleCount++;
}
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
if (timer > 0) {
bullet.gotoAndStop("idle");
timer--;
} else {
bullet.gotoAndStop("timeout");
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 294 MovieClip [bullet6] Frame 2
this.removeMovieClip();
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 299 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 305 MovieClip Frame 1
_parent._parent._name = "sppooople" + random(999);
_parent._parent.onEnterFrame = null;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 305 MovieClip Frame 7
_parent._parent.removeMovieClip();
Symbol 307 MovieClip [bullet7] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + (((random(60) - 30) * Math.PI) / 180);
speed = 20;
speed = speed + ((random(30) - 20) * 0.1);
timer = 22 + random(10);
onEnterFrame = function () {
if (!_root.pause) {
if ((timer > 0) && ((timer % 5) == 0)) {
_root.attachMovie("particle3", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root["particle" + _root.particleCount].ySpeed = 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this.play();
this.ySpeed = this.ySpeed + 0.5;
this._y = this._y + this.ySpeed;
} else {
this.stop();
}
};
_root.particleCount++;
}
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
if (timer > 0) {
bullet.gotoAndStop("idle");
timer--;
} else {
bullet.gotoAndStop("timeout");
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 307 MovieClip [bullet7] Frame 2
this.removeMovieClip();
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 312 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 318 MovieClip Frame 1
_parent._parent._name = "sppooople" + random(999);
_parent._parent.onEnterFrame = null;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 318 MovieClip Frame 7
_parent._parent.removeMovieClip();
Symbol 320 MovieClip [bullet8] Frame 1
stop();
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + (((random(60) - 30) * Math.PI) / 180);
speed = 22;
speed = speed + ((random(30) - 20) * 0.1);
timer = 25 + random(10);
onEnterFrame = function () {
if (!_root.pause) {
if ((timer > 0) && ((timer % 3) == 0)) {
_root.attachMovie("particle3", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root["particle" + _root.particleCount].ySpeed = 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this.play();
this.ySpeed = this.ySpeed + 0.5;
this._y = this._y + this.ySpeed;
} else {
this.stop();
}
};
_root.particleCount++;
}
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x + (Math.cos(angle) * speed), this._y + (Math.sin(angle) * speed), true)) {
this.gotoAndStop(2);
_root.makeBullet(this._x, this._y, 81, 3);
onEnterFrame = null;
}
if (timer > 0) {
bullet.gotoAndStop("idle");
timer--;
} else {
bullet.gotoAndStop("timeout");
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 320 MovieClip [bullet8] Frame 2
this.removeMovieClip();
mysound = new Sound();
mysound.attachSound("hit" + (random(2) + 1));
mysound.start(0, 1);
Symbol 327 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 328 MovieClip [bullet9] Frame 1
mysound = new Sound();
mysound.attachSound("missileSound");
mysound.start(0, 1);
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
speed = 1;
stop();
timer = 0;
onEnterFrame = function () {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (!_root.pause) {
if (speed <= 7) {
speed++;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
timer++;
if ((timer % 2) == 0) {
_root.attachMovie("pinkTrail", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
if ((Math.cos(angle) * speed) > 0) {
_root["particle" + _root.particleCount]._y = _y - 10;
} else {
_root["particle" + _root.particleCount]._y = _y + 5;
}
_root.particleCount++;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
_root.hud.flashWhite.gotoAndPlay(1);
_root._x = _root._x + (random(30) - 15);
_root._y = _root._y + (random(30) - 15);
i = 0;
while (_root.grenadesUsed[i] == true) {
i++;
}
_root.grenadesUsed[i] = true;
_root.grenades.attachMovie("explosion1", "explosion" + i, i);
_root.grenades["explosion" + i]._x = _x;
_root.grenades["explosion" + i]._y = _y;
_root.grenades["explosion" + i]._rotation = _rotation - 90;
_root.grenades["explosion" + i].myNumb = i;
if (i > _root.highestGrenade) {
_root.highestGrenade = i;
}
};
Symbol 328 MovieClip [bullet9] Frame 2
this._name = "hit" + myNumb;
mysound.attachSound("missileSound");
mysound.stop("missileSound");
this.removeMovieClip();
Symbol 338 MovieClip [bullet10] Frame 1
mysound = new Sound();
mysound.attachSound("missileSound");
mysound.start(0, 1);
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
speed = 5;
stop();
timer = 0;
onEnterFrame = function () {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (!_root.pause) {
if (speed <= 14) {
speed = speed + 1.5;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
timer++;
if ((timer % 2) == 0) {
_root.attachMovie("pinkTrail", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
if ((Math.cos(angle) * speed) > 0) {
_root["particle" + _root.particleCount]._y = _y - 10;
} else {
_root["particle" + _root.particleCount]._y = _y + 5;
}
_root.particleCount++;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
_root.hud.flashWhite.gotoAndPlay(1);
_root._x = _root._x + (random(30) - 15);
_root._y = _root._y + (random(30) - 15);
i = 0;
while (_root.grenadesUsed[i] == true) {
i++;
}
_root.grenadesUsed[i] = true;
_root.grenades.attachMovie("explosion1", "explosion" + i, i);
_root.grenades["explosion" + i]._x = _x;
_root.grenades["explosion" + i]._y = _y;
_root.grenades["explosion" + i]._rotation = _rotation - 90;
_root.grenades["explosion" + i].myNumb = i;
if (i > _root.highestGrenade) {
_root.highestGrenade = i;
}
};
Symbol 338 MovieClip [bullet10] Frame 2
this._name = "hit" + myNumb;
mysound.attachSound("missileSound");
mysound.stop("missileSound");
this.removeMovieClip();
Symbol 351 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 352 MovieClip [bullet11] Frame 1
mysound = new Sound();
mysound.attachSound("missileSound");
mysound.start(0, 1);
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
speed = 3;
stop();
timer = 0;
lastXmouse = _parent._xmouse;
lastYmouse = _parent._ymouse;
onEnterFrame = function () {
_root._x = _root._x + (((((-((_root.player._x + _x) + _x)) / 3) + 300) - _root._x) * 0.4);
_root._y = _root._y + (((((-((_root.player._y + _y) + _y)) / 3) + 225) - _root._y) * 0.4);
_root.hud._x = -_root._x;
_root.hud._y = -_root._y;
_root.player.playerCam = false;
if (Key.isDown(_root.actionKey)) {
this.removeMovieClip();
}
angle = (_root.player.gun._rotation * Math.PI) / 180;
_rotation = ((angle * 180) / Math.PI);
lastXmouse = _parent._xmouse;
lastYmouse = _parent._ymouse;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
angle = angle * -1;
angle = angle - Math.PI;
}
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (!_root.pause) {
if (speed <= 14) {
speed = speed + 1.5;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
timer++;
if ((timer % 2) == 0) {
_root.attachMovie("pinkTrail", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
if ((Math.cos(angle) * speed) > 0) {
_root["particle" + _root.particleCount]._y = _y - 10;
} else {
_root["particle" + _root.particleCount]._y = _y + 5;
}
_root.particleCount++;
}
}
};
onUnload = function () {
_root.player.playerCam = true;
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
_root.hud.flashWhite.gotoAndPlay(1);
_root._x = _root._x + (random(30) - 15);
_root._y = _root._y + (random(30) - 15);
i = 0;
while (_root.grenadesUsed[i] == true) {
i++;
}
_root.grenadesUsed[i] = true;
_root.grenades.attachMovie("explosion2", "explosion" + i, i);
_root.grenades["explosion" + i]._x = _x;
_root.grenades["explosion" + i]._y = _y;
_root.grenades["explosion" + i]._rotation = _rotation - 90;
_root.grenades["explosion" + i].myNumb = i;
if (i > _root.highestGrenade) {
_root.highestGrenade = i;
}
_root._xscale = 100;
_root._yscale = 100;
};
onMouseUp = function () {
_root.player.playerCam = true;
onEnterFrame = function () {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (!_root.pause) {
if (speed <= 14) {
speed = speed + 1.5;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
timer++;
if ((timer % 2) == 0) {
_root.attachMovie("pinkTrail", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
if ((Math.cos(angle) * speed) > 0) {
_root["particle" + _root.particleCount]._y = _y - 10;
} else {
_root["particle" + _root.particleCount]._y = _y + 5;
}
_root.particleCount++;
}
}
};
onMouseUp = null;
};
Symbol 352 MovieClip [bullet11] Frame 2
this._name = "hit" + myNumb;
mysound.attachSound("missileSound");
mysound.stop("missileSound");
this.removeMovieClip();
Symbol 353 MovieClip [bullet81] Frame 1
stop();
angle = random(500) * 0.01;
_rotation = ((angle * 180) / Math.PI);
speed = 6;
speed = speed + ((random(30) - 20) * 0.1);
timer = 25 + random(10);
onEnterFrame = function () {
if (!_root.pause) {
if ((timer > 0) && ((timer % 999) == 0)) {
_root.attachMovie("particle3", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = _x;
_root["particle" + _root.particleCount]._y = _y;
_root["particle" + _root.particleCount].ySpeed = 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this.play();
this.ySpeed = this.ySpeed + 0.5;
this._y = this._y + this.ySpeed;
} else {
this.stop();
}
};
_root.particleCount++;
}
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
if (timer > 0) {
bullet.gotoAndStop("idle");
timer--;
} else {
bullet.gotoAndStop("timeout");
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 353 MovieClip [bullet81] Frame 2
this.removeMovieClip();
Symbol 354 MovieClip [bullet99] Frame 1
stop();
angle = (Math.atan2(_root.player._y - _y, _root.player._x - _x) + Math.PI) + (((random(30) - 15) * Math.PI) / 180);
_rotation = ((angle * 180) / Math.PI);
speed = 12;
speed = speed + ((random(30) - 20) * 0.1);
onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
onEnterFrame = null;
}
}
};
onUnload = function () {
_root.bulletsUsed[myNumb] = false;
if (myNumb == _root.highestBullet) {
while ((_root.bulletsUsed[_root.highestBullet] != true) && (_root.highestBullet > 0)) {
_root.highestBullet--;
}
}
};
Symbol 354 MovieClip [bullet99] Frame 2
this._name = "hit" + myNumb;
this.removeMovieClip();
Symbol 365 MovieClip [bulletHit1] Frame 11
stop();
Symbol 371 MovieClip [deathParticle] Frame 1
mysound = new Sound();
mysound.attachSound("enemyHit");
mysound.start(0, 1);
Symbol 371 MovieClip [deathParticle] Frame 18
this.removeMovieClip();
Symbol 378 MovieClip Frame 8
stop();
Symbol 389 MovieClip [explosion] Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
explosion = true;
i = 0;
while (i <= (random(5) + 3)) {
_root.attachMovie("particle" + (random(2) + 1), "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = (_x + random(30)) - 15;
_root["particle" + _root.particleCount]._y = (_y - random(150)) + 20;
_root["particle" + _root.particleCount].xSpeed = random(10) - 5;
_root["particle" + _root.particleCount].ySpeed = (-random(2)) - 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this._rotation = this._rotation + (this.xSpeed * 4);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.1;
this.xSpeed = this.xSpeed * 0.95;
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
_root.particleCount++;
i++;
}
onUnload = function () {
_root.grenadesUsed[myNumb] = false;
if (myNumb == _root.highestGrenade) {
while ((_root.grenadesUsed[_root.highestGrenade] != true) && (_root.highestGrenade > 0)) {
_root.highestGrenade--;
}
}
};
Symbol 389 MovieClip [explosion] Frame 35
this.removeMovieClip();
Symbol 390 MovieClip [explosion1] Frame 1
mysound = new Sound();
mysound.attachSound("grenadeSound");
mysound.start(0, 1);
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
i = 0;
while (i <= (random(3) + 3)) {
_root.attachMovie("particle" + (random(2) + 1), "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = (_x + random(100)) - 50;
_root["particle" + _root.particleCount]._y = (_y + random(100)) - 50;
_root["particle" + _root.particleCount].xSpeed = random(10) - 5;
_root["particle" + _root.particleCount].ySpeed = (-random(2)) - 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this._rotation = this._rotation + (this.xSpeed * 4);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.1;
this.xSpeed = this.xSpeed * 0.95;
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
_root.particleCount++;
i++;
}
Symbol 390 MovieClip [explosion1] Frame 29
this.removeMovieClip();
Symbol 403 MovieClip [explosion2] Frame 1
nuke = true;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
if (random(5) == 0) {
_root.hud.flashWhite.gotoAndPlay(1);
_root._y = _root._y + (random(15) - 7);
_root._x = _root._x + (random(15) - 7);
i = 0;
while (i <= random(3)) {
_root.attachMovie("particle" + (random(2) + 1), "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = (_x + random(100)) - 50;
_root["particle" + _root.particleCount]._y = (_y - random(100)) - 50;
_root["particle" + _root.particleCount].xSpeed = random(10) - 5;
_root["particle" + _root.particleCount].ySpeed = (-random(2)) - 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this._rotation = this._rotation + (this.xSpeed * 4);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.1;
this.xSpeed = this.xSpeed * 0.95;
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
i++;
}
_root.particleCount++;
}
}
};
i = 0;
while (i <= (random(10) + 3)) {
_root.attachMovie("particle" + (random(2) + 1), "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._x = (_x + random(100)) - 50;
_root["particle" + _root.particleCount]._y = (_y + random(100)) - 50;
_root["particle" + _root.particleCount].xSpeed = random(10) - 5;
_root["particle" + _root.particleCount].ySpeed = (-random(2)) - 1;
_root["particle" + _root.particleCount].onEnterFrame = function () {
if (!_root.pause) {
this._rotation = this._rotation + (this.xSpeed * 4);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.1;
this.xSpeed = this.xSpeed * 0.95;
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
_root.particleCount++;
i++;
}
mysound = new Sound();
mysound.attachSound("grenadeSound");
mysound.start(0, 1);
Symbol 403 MovieClip [explosion2] Frame 29
this.removeMovieClip();
Symbol 410 MovieClip [flame] Frame 1
this.blendMode = "screen";
_xscale = (_xscale + random(50));
_yscale = _xscale;
_rotation = random(360);
ySpeed = 2;
if (_root.particleCount > 6500) {
_root.particleCount = 6000;
}
onEnterFrame = function () {
if (!_root.pause) {
_y = (_y + ySpeed);
ySpeed = ySpeed - 0.5;
this.play();
} else {
this.stop();
}
};
Symbol 410 MovieClip [flame] Frame 13
stop();
this.removeMovieClip();
Symbol 413 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 414 MovieClip [grenade] Frame 1
speed = 8;
angle = Math.atan2(this._parent._ymouse - this._y, this._parent._xmouse - this._x);
this.xSpeed = Math.cos(angle) * speed;
this.ySpeed = (Math.sin(angle) * speed) * 1.8;
bounces = 2;
this.onEnterFrame = function () {
if (!_root.pause) {
if (this.ySpeed < 7) {
this.ySpeed = this.ySpeed + 0.4;
}
if (_root.ground.hitTest(this._x + xSpeed, this._y - 10, true)) {
this.xSpeed = this.xSpeed * -1;
bounces--;
}
i = 0;
while (i <= this.ySpeed) {
if (_root.ground.hitTest(this._x, this._y + i, true)) {
this.ySpeed = this.ySpeed * -0.7;
xSpeed = xSpeed * 0.5;
if (Math.abs(ySpeed) < 1) {
ySpeed = 0;
}
bounces--;
break;
}
i = i + 2;
}
if ((ySpeed < 0) && (_root.ground.hitTest(this._x, this._y + ySpeed, true))) {
ySpeed = ySpeed * -1;
}
i = 0;
while (i <= 30) {
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
_y = (_y-1);
} else {
break;
}
if (i == 30) {
this.removeMovieClip();
}
i++;
}
if (Math.abs(xSpeed) < 1) {
xSpeed = 0;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
_rotation = (_rotation + xSpeed);
if (bounces <= 0) {
this.removeMovieClip();
}
}
};
onUnload = function () {
i = 0;
while (i <= 30) {
if (!_root.ground.hitTest(this._x, this._y, true)) {
this._y++;
} else {
break;
}
i++;
}
_root.hud.flashWhite.gotoAndPlay(1);
_root._x = _root._x + (random(30) - 15);
_root._y = _root._y + (random(30) - 15);
_root.tempXvar = _x;
_root.tempYvar = _y;
mysound = new Sound();
mysound.attachSound("grenadeSound");
mysound.start(0, 1);
_root.grenades.attachMovie("explosion", "explosion" + myNumb, myNumb);
_root.grenades["explosion" + myNumb]._x = _root.tempXvar;
_root.grenades["explosion" + myNumb]._y = _root.tempYvar;
_root.grenades["explosion" + myNumb].myNumb = myNumb;
};
Symbol 417 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else if (_currentframe != 8) {
this.play();
}
};
Symbol 417 MovieClip Frame 8
stop();
Symbol 419 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe != 8) {
this.play();
}
};
_root.health = _root.health - 10;
if (_root.health <= 0) {
Mouse.removeListener(_parent.mouseListener);
_root.gotoAndStop("dead");
}
Symbol 419 MovieClip Frame 8
stop();
Symbol 421 MovieClip Frame 1
_alpha = 0;
fadeout = false;
onEnterFrame = function () {
if (!fadeout) {
_alpha = (_alpha + 2);
if (_alpha > 200) {
fadeout = true;
}
} else if (fadeout && (_alpha > 0)) {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
_visible = false;
}
}
};
Symbol 428 MovieClip Frame 1
slider._x = _root.MSpec.getVolume() * 2;
onEnterFrame = function () {
_root.MSpec.setVolume(slider._x / 2);
};
Instance of Symbol 427 MovieClip "slider" in Symbol 428 MovieClip Frame 1
onClipEvent (load) {
_alpha = 50;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 50;
}
on (press) {
this.startDrag(true, 0, 0, 200, 0);
}
on (release) {
_alpha = 50;
this.stopDrag();
}
on (releaseOutside) {
_alpha = 50;
this.stopDrag();
}
Symbol 442 Button
on (release) {
_quality = "High";
}
Symbol 446 Button
on (release) {
_quality = "Medium";
}
Symbol 449 Button
on (release) {
_quality = "Low";
}
Symbol 450 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (!this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.onEnterFrame = function () {
prevFrame();
if (_currentframe == 1) {
this.onEnterFrame = 0;
}
};
}
};
Symbol 451 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
_visible = _root.pause;
};
Symbol 455 MovieClip Frame 1
onEnterFrame = function () {
_xscale = (_xscale + ((_root.health - _xscale) * 0.4));
};
Symbol 458 MovieClip Frame 1
onEnterFrame = function () {
rings = _root.pickups;
};
Symbol 461 MovieClip Frame 1
onEnterFrame = function () {
_xscale = _root.player.sprite.arm.charge;
if (_xscale < 0) {
_xscale = 0;
}
};
Symbol 463 MovieClip Frame 1
stop();
onEnterFrame = function () {
this.gotoAndStop(_root.GUNZ);
};
Symbol 468 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.hud.gun1level._yscale > 50) {
this.gotoAndStop(2);
if (_root.player.pistolLevel < 2) {
_root.player.pistolLevel = 2;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
if (_root.hud.gun1level._yscale == 100) {
this.gotoAndStop(3);
if (_root.player.pistolLevel < 3) {
_root.player.pistolLevel = 3;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
};
Symbol 472 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.hud.gun2level._yscale > 50) {
this.gotoAndStop(2);
if (_root.player.autogunLevel < 2) {
_root.player.autogunLevel = 2;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
if (_root.hud.gun2level._yscale == 100) {
this.gotoAndStop(3);
if (_root.player.autogunLevel < 3) {
_root.player.autogunLevel = 3;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
};
Symbol 488 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.hud.gun3level._yscale > 50) {
this.gotoAndStop(2);
if (_root.player.clusterLevel < 2) {
_root.player.clusterLevel = 2;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
if (_root.hud.gun3level._yscale == 100) {
this.gotoAndStop(3);
if (_root.player.clusterLevel < 3) {
_root.player.clusterLevel = 3;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
};
Symbol 492 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.hud.gun4level._yscale > 50) {
this.gotoAndStop(2);
if (_root.player.missileLevel < 2) {
_root.player.missileLevel = 2;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
if (_root.hud.gun4level._yscale == 100) {
this.gotoAndStop(3);
if (_root.player.missileLevel < 3) {
_root.player.missileLevel = 3;
_root.attachMovie("lvlUP", "particle" + _root.particleCount, _root.particleCount);
}
}
};
Symbol 496 MovieClip Frame 1
onEnterFrame = function () {
_root.player.currentGun = "pistol";
};
stop();
_root.player.sprite.mcMC.head.gotoAndStop("idle");
Symbol 496 MovieClip Frame 2
onEnterFrame = function () {
_root.player.currentGun = "autogun";
};
_root.player.sprite.mcMC.head.gotoAndStop("idle");
Symbol 496 MovieClip Frame 3
onEnterFrame = function () {
_root.player.currentGun = "cluster";
};
_root.player.sprite.mcMC.head.gotoAndStop("idle");
Symbol 496 MovieClip Frame 4
onEnterFrame = function () {
_root.player.currentGun = "missile";
};
_root.player.sprite.mcMC.head.gotoAndStop("idle");
Symbol 502 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 503 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 504 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 505 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 506 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 507 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 521 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 521 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 521 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 526 Button
on (press) {
_parent.play();
}
Symbol 529 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 529 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 529 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 529 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 529 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 529 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 529 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 529 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 529 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 529 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 547 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 548 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 549 MovieClip Frame 1
function pauseFunction() {
if (_root.pause) {
_root.pause = false;
} else {
_root.pause = true;
}
_root.ableToPause = false;
}
function soundFunction() {
if (_root.pause) {
_root.pause = false;
} else {
_root.pause = true;
}
_root.ableToPause = false;
}
function mainMenuFunction() {
Mouse.removeListener(_root.hud.mouseListener);
_root.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 549 MovieClip Frame 10
stop();
Symbol 550 MovieClip [HUD] Frame 1
_name = "hud";
mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if (!_root.pause) {
if (delta < 0) {
if (guns._currentframe == _root.GUNZ) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(1);
} else {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.nextFrame();
}
} else if (delta > 0) {
if (guns._currentframe == 1) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(_root.GUNZ);
} else {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.prevFrame();
}
}
}
};
onEnterFrame = function () {
if (!_root.pause) {
if (Key.isDown(49)) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(1);
}
if (Key.isDown(50) && (_root.GUNZ >= 2)) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(2);
}
if (Key.isDown(51) && (_root.GUNZ >= 3)) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(3);
}
if (Key.isDown(52) && (_root.GUNZ >= 4)) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
guns.gotoAndStop(4);
}
}
};
Mouse.addListener(mouseListener);
Instance of Symbol 417 MovieClip "flashWhite" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
gotoAndStop (8);
}
Instance of Symbol 419 MovieClip "flashHurt" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
gotoAndStop (8);
}
Instance of Symbol 498 MovieClip "gun1level" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
this._yscale = _root.xp1;
}
onClipEvent (enterFrame) {
_root.xp1 = this._yscale;
}
Instance of Symbol 498 MovieClip "gun2level" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
this._yscale = _root.xp2;
}
onClipEvent (enterFrame) {
_root.xp2 = this._yscale;
}
Instance of Symbol 498 MovieClip "gun3level" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
this._yscale = _root.xp3;
}
onClipEvent (enterFrame) {
_root.xp3 = this._yscale;
}
Instance of Symbol 498 MovieClip "gun4level" in Symbol 550 MovieClip [HUD] Frame 1
onClipEvent (load) {
this._yscale = _root.xp4;
}
onClipEvent (enterFrame) {
_root.xp4 = this._yscale;
}
Instance of Symbol 549 MovieClip in Symbol 550 MovieClip [HUD] Frame 1
//component parameters
onClipEvent (construct) {
wxnume = "Nightmare";
wxaliniere = "Stanga-Jos";
wxculoare = 7102560 /* 0x6C6060 */;
wxdownload = true;
wxpause = false;
wxsound = false;
}
Symbol 553 MovieClip [lvlUP] Frame 1
_root.particleCount++;
_x = _root.player._x;
_y = _root.player._y;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 553 MovieClip [lvlUP] Frame 50
this.removeMovieClip();
Symbol 555 MovieClip [missileParticle] Frame 1
ySpeed = 1;
if (_root.player.myDirection == "right") {
xSpeed = -5;
} else {
xSpeed = 5;
}
_rotation = _root.player.gun._rotation;
if (_root.player.myDirection == "left") {
_rotation = (_rotation * -1);
_rotation = (_rotation - 180);
}
onEnterFrame = function () {
ySpeed = ySpeed + 0.5;
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if ((ySpeed > 0) && (_root.ground.hitTest(this._x, this._y + ySpeed, true))) {
ySpeed = ySpeed * -0.7;
xSpeed = xSpeed * 0.7;
}
_rotation = (_rotation + xSpeed);
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 566 MovieClip [particle3] Frame 10
this.removeMovieClip();
Symbol 569 MovieClip [pickUP] Frame 1
_root.particleCount++;
_x = _root.player._x;
_y = _root.player._y;
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 569 MovieClip [pickUP] Frame 50
this.removeMovieClip();
Symbol 588 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Symbol 589 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
};
Instance of Symbol 588 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(18));
}
Symbol 595 MovieClip [pickup1] Frame 1
this.xSpeed = (random(500) * 0.01) - 2;
this.ySpeed = ((-random(50)) * 0.1) - 3;
timer = 300;
stop();
this.onEnterFrame = function () {
if (!_root.pause) {
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (this.ySpeed < 5) {
this.ySpeed = this.ySpeed + 0.4;
}
if (_root.ground.hitTest(this._x + xSpeed, this._y, true)) {
this.xSpeed = this.xSpeed * -1;
}
i = 0;
while (i <= this.ySpeed) {
if (_root.ground.hitTest(this._x, this._y + i, true)) {
this.ySpeed = this.ySpeed * -0.85;
xSpeed = xSpeed * 0.8;
if (Math.abs(ySpeed) < 1) {
ySpeed = 0;
}
break;
}
i = i + 0.5;
}
while (_root.ground.hitTest(this._x, this._y + 3, true)) {
_y = (_y-1);
}
if (Math.abs(xSpeed) < 1) {
xSpeed = 0;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
timer--;
if (timer < 0) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.player.sprite.mcMC.hitTest(this._x, this._y, true) || (_root.player.vehicle && (_root.player.hitTest(this._x, this._y, true)))) {
_root.pickups++;
if ((_root.hud[("gun" + _root.hud.guns._currentframe) + "level"]._yscale + 2) < 100) {
_root.hud[("gun" + _root.hud.guns._currentframe) + "level"]._yscale = _root.hud[("gun" + _root.hud.guns._currentframe) + "level"]._yscale + 2;
} else if (_root.hud[("gun" + _root.hud.guns._currentframe) + "level"]._yscale == 100) {
c = 1;
while (c <= _root.GUNZ) {
if (_root.hud[("gun" + c) + "level"]._yscale < 100) {
_root.hud[("gun" + c) + "level"]._yscale = _root.hud[("gun" + c) + "level"]._yscale + 2;
break;
}
c++;
}
} else {
_root.hud[("gun" + _root.hud.guns._currentframe) + "level"]._yscale = 100;
}
this.play();
this.onEnterFrame = null;
}
}
};
Symbol 595 MovieClip [pickup1] Frame 2
Pick = new Sound();
Pick.attachSound("pickupSound");
Pick.start(0, 1);
Symbol 595 MovieClip [pickup1] Frame 11
stop();
this.removeMovieClip();
Symbol 602 MovieClip [pinkTrail] Frame 1
this.blendMode = "screen";
_xscale = (_xscale + random(50));
_yscale = _xscale;
_rotation = random(360);
ySpeed = 2;
if (_root.particleCount > 6500) {
_root.particleCount = 6000;
}
onEnterFrame = function () {
if (!_root.pause) {
_y = (_y + ySpeed);
ySpeed = ySpeed - 0.5;
this.play();
} else {
this.stop();
}
};
Symbol 602 MovieClip [pinkTrail] Frame 13
stop();
this.removeMovieClip();
Symbol 614 MovieClip Frame 23
gotoAndPlay ("loop");
Symbol 634 MovieClip Frame 1
_name = "eyesMC";
Symbol 634 MovieClip Frame 9
if (random(10) < 7) {
gotoAndPlay ("loop");
}
Symbol 641 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 665 MovieClip Frame 10
gotoAndPlay (9);
Symbol 676 MovieClip Frame 8
_parent.gotoAndStop("idle");
Symbol 677 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 4
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 1, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 1, 1);
}
Symbol 685 MovieClip Frame 11
_parent.gotoAndStop("idle");
Symbol 686 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g1l3");
mysound.start(0, 1);
Symbol 694 MovieClip Frame 5
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 30), 2, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), 2, 1);
}
Symbol 694 MovieClip Frame 11
_parent.gotoAndStop("idle");
Symbol 695 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g2l1");
mysound.start(0, 1);
onMouseUp = function () {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop(1);
onMouseUp = null;
};
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
_root.player.sprite.mcMC.head.gotoAndStop("fire");
if (_root.player.shield) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop("idle");
}
};
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 3, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 3, 1);
}
Symbol 705 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 1
onMouseUp = function () {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop(1);
onMouseUp = null;
};
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
_root.player.sprite.mcMC.head.gotoAndStop("fire");
if (_root.player.shield) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop("idle");
}
};
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 4, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 4, 1);
}
mysound = new Sound();
mysound.attachSound("g2l1");
mysound.start(0, 1);
Symbol 718 MovieClip Frame 6
onMouseUp = function () {
_parent.gotoAndStop(1);
onMouseUp = null;
};
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 4, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 4, 1);
}
Symbol 718 MovieClip Frame 8
mysound = new Sound();
mysound.attachSound("g2l1");
mysound.start(0, 1);
Symbol 718 MovieClip Frame 11
onMouseUp = function () {
_parent.gotoAndStop(1);
onMouseUp = null;
};
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 4, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 4, 1);
}
Symbol 719 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 1
onMouseUp = function () {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop(1);
onMouseUp = null;
};
onEnterFrame = function () {
if (_root.pause) {
this.stop();
} else {
this.play();
}
_root.player.sprite.mcMC.head.gotoAndStop("fire");
if (_root.player.shield) {
_root.player.sprite.mcMC.head.gotoAndStop("idle");
_parent.gotoAndStop("idle");
}
};
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 5, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 5, 1);
}
mysound = new Sound();
mysound.attachSound("g2l3");
mysound.start(0, 1);
Symbol 742 MovieClip Frame 10
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 5, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 5, 1);
}
mysound = new Sound();
mysound.attachSound("g2l3");
mysound.start(0, 1);
Symbol 742 MovieClip Frame 20
if (_root.player.myDirection == "right") {
_root.makeBullet(_root.player._x + (Math.cos((_root.player.gun._rotation * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin((_root.player.gun._rotation * Math.PI) / 180) * 15), 5, 1);
} else {
_root.makeBullet(_root.player._x + (Math.cos(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 30), (_root.player._y + _root.player.gun._y) + (Math.sin(((180 - _root.player.gun._rotation) * Math.PI) / 180) * 15), 5, 1);
}
mysound = new Sound();
mysound.attachSound("g2l3");
mysound.start(0, 1);
Symbol 743 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g3");
mysound.start(0, 1);
Symbol 756 MovieClip Frame 7
_parent.gotoAndStop("idle");
Symbol 757 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g3");
mysound.start(0, 1);
Symbol 765 MovieClip Frame 7
_parent.gotoAndStop("idle");
Symbol 766 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g3");
mysound.start(0, 1);
Symbol 774 MovieClip Frame 7
_parent.gotoAndStop("idle");
Symbol 775 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g4");
mysound.start(0, 1);
Symbol 788 MovieClip Frame 39
_parent.gotoAndStop("idle");
Symbol 789 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g4");
mysound.start(0, 1);
Symbol 800 MovieClip Frame 31
_parent.gotoAndStop("idle");
Symbol 801 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 1
gotoAndPlay(random(3));
Symbol 819 MovieClip Frame 1
gotoAndPlay(random(14));
Symbol 834 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("g4");
mysound.start(0, 1);
Symbol 834 MovieClip Frame 58
_parent.gotoAndStop("idle");
_parent.gotoAndStop("idle");
Symbol 835 MovieClip Frame 1
stop();
Symbol 837 MovieClip [player] Frame 1
action = "standing";
myDirection = "right";
jump = 7;
walkSpeed = 4;
myWidth = 7;
myHeight = 50;
hSpeed = 0;
weapon = "gun";
pistolLevel = 1;
autogunLevel = 1;
clusterLevel = 1;
missileLevel = 1;
invincible = 0;
grenadeTimer = 0;
shield = false;
playerCam = true;
currentGun = "pistol";
this.onEnterFrame = function () {
if (!_root.pause) {
if (invincible > 0) {
invincible--;
}
if ((invincible == 0) or ((int(invincible / 4) % 2) == 0)) {
this._visible = true;
} else {
_visible = false;
}
sprite.mcMC.play();
sprite.mcMC.head.eyesMC.play();
sprite.arm.shield.shieldLevel.play();
if ((action == "standing") || (action == "walking")) {
vSpeed = 3;
fuel = 65;
if (Key.isDown(_root.leftKey)) {
if (hSpeed > (-walkSpeed)) {
hSpeed = hSpeed - 0.5;
} else {
hSpeed = hSpeed + 0.4;
}
action = "walking";
} else if (Key.isDown(_root.rightKey)) {
if (hSpeed < walkSpeed) {
hSpeed = hSpeed + 0.5;
} else {
hSpeed = hSpeed - 0.4;
}
action = "walking";
} else {
action = "standing";
if (Math.abs(hSpeed) < 0.5) {
hSpeed = 0;
} else {
hSpeed = hSpeed * 0.8;
}
}
if ((hSpeed > 0) && (!_root.ground.hitTest(this._x + myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else if ((hSpeed < 0) && (!_root.ground.hitTest(this._x - myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else {
hSpeed = 0;
}
if (Key.isDown(_root.upKey)) {
action = "up";
vSpeed = -jump;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (!_root.ground.hitTest(this._x, this._y + 4, true))) {
action = "down";
vSpeed = 0;
}
_y = (_y + vSpeed);
while ((vSpeed >= 0) && (_root.ground.hitTest(this._x, this._y - 0.1, true))) {
_y = (_y - 0.1);
}
} else if (action == "up") {
if (Key.isDown(_root.leftKey)) {
if (hSpeed > ((-walkSpeed) * 1.5)) {
hSpeed = hSpeed - 0.5;
}
} else if (Key.isDown(_root.rightKey)) {
if (hSpeed < (walkSpeed * 1.5)) {
hSpeed = hSpeed + 0.5;
}
}
if ((hSpeed > 0) && (!_root.ground.hitTest(this._x + myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else if ((hSpeed < 0) && (!_root.ground.hitTest(this._x - myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else {
hSpeed = 0;
}
vSpeed = vSpeed + 0.6;
if (Key.isDown(_root.upKey) && (fuel > 0)) {
fuel--;
if ((fuel % 5) == 0) {
mysound = new Sound();
mysound.attachSound("jetpackSound");
mysound.start(0, 1);
_root.attachMovie("flame", "particle" + _root.particleCount, _root.particleCount);
if (myDirection == "left") {
_root["particle" + _root.particleCount]._x = _x + 11;
} else {
_root["particle" + _root.particleCount]._x = _x - 11;
}
_root["particle" + _root.particleCount]._y = _y - 9;
_root.particleCount++;
}
vSpeed = vSpeed - 0.65;
} else if (Key.isDown(_root.downKey)) {
vSpeed = vSpeed + 0.3;
}
if (vSpeed > 0) {
action = "down";
}
if (!_root.ground.hitTest(this._x, this._y - myHeight, true)) {
_y = (_y + vSpeed);
} else {
vSpeed = 2;
}
} else if (action == "down") {
if (Key.isDown(_root.leftKey)) {
if (hSpeed > ((-walkSpeed) * 1.5)) {
hSpeed = hSpeed - 0.5;
}
} else if (Key.isDown(_root.rightKey)) {
if (hSpeed < (walkSpeed * 1.5)) {
hSpeed = hSpeed + 0.5;
}
}
if ((hSpeed > 0) && (!_root.ground.hitTest(this._x + myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else if ((hSpeed < 0) && (!_root.ground.hitTest(this._x - myWidth, this._y - (myHeight / 2), true))) {
_x = (_x + hSpeed);
} else {
hSpeed = 0;
}
if (vSpeed < 6) {
vSpeed = vSpeed + 0.6;
} else {
vSpeed = vSpeed + 0.1;
}
if (Key.isDown(_root.upKey) && (fuel > 0)) {
fuel--;
if ((fuel % 5) == 0) {
mysound = new Sound();
mysound.attachSound("jetpackSound");
mysound.start(0, 1);
_root.attachMovie("flame", "particle" + _root.particleCount, _root.particleCount);
if (myDirection == "left") {
_root["particle" + _root.particleCount]._x = _x + 11;
} else {
_root["particle" + _root.particleCount]._x = _x - 11;
}
_root["particle" + _root.particleCount]._y = _y - 9;
_root.particleCount++;
}
vSpeed = vSpeed - 0.85;
} else if (Key.isDown(_root.downKey)) {
if (vSpeed < 10) {
vSpeed = vSpeed + 0.3;
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (Key.isDown(_root.leftKey) || (Key.isDown(_root.rightKey))) {
action = "walking";
} else {
action = "standing";
}
}
_y = (_y+1);
_y = (_y + vSpeed);
while ((vSpeed >= 0) && (_root.ground.hitTest(this._x, this._y - 0.1, true))) {
_y = (_y - 0.1);
}
if ((vSpeed < 0) && (_root.ground.hitTest(this._x, this._y - myHeight, true))) {
vSpeed = 2;
}
}
if ((action == "walking") && ((Key.isDown(_root.leftKey) && (_parent._xmouse < _x)) || (Key.isDown(_root.rightKey) && (_parent._xmouse > _x)))) {
sprite.gotoAndStop("walk");
} else if ((action == "walking") && ((Key.isDown(_root.leftKey) && (_parent._xmouse > _x)) || (Key.isDown(_root.rightKey) && (_parent._xmouse < _x)))) {
sprite.gotoAndStop("walkback");
} else if (action == "up") {
sprite.gotoAndStop("jump");
} else if (action == "down") {
sprite.gotoAndStop("fall");
} else {
sprite.gotoAndStop("idle");
}
if (Key.isDown(_root.shieldKey)) {
sprite.mcMC.head._rotation = sprite.arm._rotation * 0.2;
} else {
sprite.mcMC.head._rotation = gun._rotation * 0.2;
}
if (_parent._xmouse < _x) {
myDirection = "left";
} else {
myDirection = "right";
}
if (myDirection == "left") {
_xscale = -100;
} else if (myDirection == "right") {
_xscale = 100;
}
if (playerCam) {
if (Math.abs(((-_x) + 300) - _root._x) > 1) {
_root._x = _root._x + (((((-_x) + 300) - (hSpeed * 8)) - _root._x) * 0.3);
_root.hud._x = -_root._x;
}
if ((action != "down") && (Math.abs(((-_y) + 270) - _root._y) > 1)) {
_root._y = _root._y + ((((-_y) + 270) - _root._y) * 0.2);
_root.hud._y = -_root._y;
}
if ((action == "down") && (Math.abs(((-_y) + 150) - _root._y) > 1)) {
_root._y = _root._y + ((((-_y) + 150) - _root._y) * 0.05);
_root.hud._y = -_root._y;
}
_root.bgPart._x = -_root._x;
_root.bgPart._y = -_root._y;
}
if (((Key.isDown(_root.grenadeKey) && (abletoGrenade)) && (grenadeTimer <= 0)) && (!shield)) {
sprite.arm._rotation = -90;
if (myDirection == "right") {
_root.makeGrenade(_x + 20, _y - 20);
} else {
_root.makeGrenade(_x - 20, _y - 20);
}
abletoGrenade = false;
grenadeTimer = 45;
} else if (!Key.isDown(_root.grenadeKey)) {
abletoGrenade = true;
}
if (abletoGrenade) {
grenadeTimer--;
}
} else if (_root.pause) {
sprite.mcMC.stop();
sprite.arm.shield.shieldLevel.stop();
sprite.mcMC.head.eyesMC.stop();
}
};
gun.onEnterFrame = function () {
this.gotoAndStop(this._parent.currentGun + this._parent[this._parent.currentGun + "Level"]);
if (!_root.pause) {
this._rotation = this._rotation + ((((Math.atan2(this._parent._ymouse - this._y, this._parent._xmouse - this._x) * 180) / Math.PI) - this._rotation) * 0.5);
if (!this._parent.shield) {
this.gotoAndStop(this._parent.weapon);
} else {
this._rotation = this._rotation + 45;
}
if (this._rotation < -100) {
this._rotation = -100;
}
if (this._rotation > 100) {
this._rotation = 100;
}
}
};
sprite.arm.shield._visible = false;
sprite.arm.onEnterFrame = function () {
if (!_root.pause) {
this.sprite.mcMC.play();
if (!this._parent._parent.shield) {
if (this.charge < 100) {
this.charge = this.charge + 1;
} else {
this.charge = 100;
}
if (Key.isDown(_root.shieldKey) && (this.charge >= 30)) {
this._parent._parent.shield = true;
}
this.shield._alpha = this.shield._alpha * 0.5;
this._rotation = this._rotation + ((90 - this._rotation) * 0.3);
} else if (this._parent._parent.shield) {
this._rotation = this._rotation + ((((Math.atan2(this._parent._ymouse - this._y, this._parent._xmouse - this._x) * 180) / Math.PI) - this._rotation) * 0.3);
this.charge = this.charge - 0.4;
if (this.charge > 90) {
this.shield.gotoAndStop("level3");
} else if (this.charge > 70) {
this.shield.gotoAndStop("level2");
} else {
this.shield.gotoAndStop("level1");
}
this.shield._alpha = this.shield._alpha + ((this.charge - this.shield._alpha) * 0.5);
if (this.charge <= 0) {
this.charge = this.charge - 50;
this._parent._parent.shield = false;
}
if (!Key.isDown(_root.shieldKey)) {
this._parent._parent.shield = false;
}
this.shield._visible = true;
}
}
};
Symbol 842 MovieClip [spawnParticle] Frame 20
this.removeMovieClip();
Symbol 856 MovieClip Frame 1
stop();
Symbol 887 Button
on (release) {
nextFrame();
}
Symbol 888 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 895 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 895 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 895 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 896 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 903 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 903 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 903 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 904 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 905 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 905 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 905 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 910 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 911 MovieClip Frame 1
stop();
Symbol 914 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 915 MovieClip Frame 1
stop();
Symbol 916 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 923 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 923 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 923 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 924 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 925 MovieClip Frame 1
stop();
Symbol 926 MovieClip Frame 1
function instructionsFunction() {
_root.gotoAndStop("howto");
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 926 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 926 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 926 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 926 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 926 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 929 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?Nightmare", "_blank");
}
Symbol 938 MovieClip Frame 1
this._visible = false;
Symbol 950 MovieClip Frame 6
_parent.gotoAndStop("idle");
Symbol 962 MovieClip Frame 30
stop();
Symbol 963 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("enemyHit");
health = 75;
Symbol 963 MovieClip Frame 2
stop();
onEnterFrame = function () {
while (this.hitTest(_root.player._x + 25, _root.player._y, true)) {
_root.player._x--;
}
i = 0;
while (i <= _root.highestBullet) {
if (this.hitTest(_root.bullets["bullet" + i]._x, _root.bullets["bullet" + i]._y, true)) {
flasher._alpha = 100;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].gotoAndStop(2);
this.gotoAndStop("hit");
}
i++;
}
i = 0;
while (i <= _root.highestGrenade) {
if (this.hitTest(_root.grenades["grenade" + i]._x, _root.grenades["grenade" + i]._y, true)) {
_root.grenades["grenade" + i].removeMovieClip();
}
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
flasher._alpha = 100;
health = health - 5;
this.gotoAndStop("hit");
}
if (this.hitTest(_root.grenades["explosion" + i])) {
flasher._alpha = 100;
health = health - 0.6;
this.gotoAndStop("hit");
}
i++;
}
if (health < 0) {
mysound.start(0, 1);
i = 0;
while (i <= (15 + random(4))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
this.gotoAndStop("explode");
}
};
Symbol 963 MovieClip Frame 19
onEnterFrame = null;
Symbol 973 MovieClip Frame 6
_parent.gotoAndStop("idle");
Symbol 975 MovieClip Frame 91
stop();
Symbol 984 MovieClip Frame 52
_parent.onEnterFrame = function () {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
Mouse.removeListener(_root.hud.mouseListener);
_root.nextFrame();
}
};
Symbol 984 MovieClip Frame 96
stop();
Symbol 985 MovieClip Frame 1
mysound = new Sound();
mysound.attachSound("enemyHit");
health = 25;
Symbol 985 MovieClip Frame 2
stop();
onEnterFrame = function () {
while (this.hitTest(_root.player._x + 25, _root.player._y, true)) {
_root.player._x--;
}
i = 0;
while (i <= _root.highestBullet) {
if (this.hitTest(_root.bullets["bullet" + i]._x, _root.bullets["bullet" + i]._y, true)) {
flasher._alpha = 100;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].gotoAndStop(2);
this.gotoAndStop("hit");
}
i++;
}
i = 0;
while (i <= _root.highestGrenade) {
if (this.hitTest(_root.grenades["grenade" + i]._x, _root.grenades["grenade" + i]._y, true)) {
_root.grenades["grenade" + i].removeMovieClip();
}
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
flasher._alpha = 100;
health = health - 5;
this.gotoAndStop("hit");
}
if (this.hitTest(_root.grenades["explosion" + i])) {
flasher._alpha = 100;
health = health - 0.6;
this.gotoAndStop("hit");
}
i++;
}
if (health < 0) {
mysound.start(0, 1);
i = 0;
while (i <= (15 + random(4))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
this.gotoAndStop("explode");
}
};
Symbol 985 MovieClip Frame 16
stop();
onEnterFrame = null;
Symbol 987 MovieClip Frame 1
_root._x = (-_x) + 300;
_root._y = (-_y) + 225;
_visible = false;
_root.attachMovie("player", "player", 100);
_root.attachMovie("HUD", "hud", 9999);
_root.hud._x = -_root._x;
_root.hud._y = -_root._y;
_root.player._x = _x;
_root.player._y = _y;
trace("makePlayer");
Symbol 1001 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1017 MovieClip Frame 75
stop();
Symbol 1018 MovieClip Frame 1
stop();
Symbol 1021 MovieClip Frame 1
timer = 20;
health = 50;
flasher._alpha = 0;
mysound = new Sound();
mysound.attachSound("enemyHit");
onEnterFrame = function () {
if (!_root.pause) {
flasher._alpha = flasher._alpha * 0.5;
if (health > 0) {
_alpha = (_alpha + ((((health * 2) + 15) - _alpha) * 0.5));
if ((timer <= 0) && (Math.abs(_root.player._x - _x) < 350)) {
if (_root.baddyCount > 0) {
_root.makeBaddy((_x + random(50)) - 25, _y - random(25), random(3) + 1);
}
timer = 100 + random(300);
} else {
timer--;
}
i = 0;
while (i <= _root.highestBullet) {
if ((Math.abs(_root.bullets["bullet" + i]._x - _x) < 20) && (Math.abs(_root.bullets["bullet" + i]._y - _y) < 20)) {
flasher._alpha = 100;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
_root.attachMovie("bulletHit1", "particle" + _root.particleCount, _root.particleCount);
_root["particle" + _root.particleCount]._rotation = (_root.bullets["bullet" + i]._rotation + random(90)) - 45;
_root["particle" + _root.particleCount]._x = _root.bullets["bullet" + i]._x + (Math.cos(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root["particle" + _root.particleCount]._y = _root.bullets["bullet" + i]._y + (Math.sin(_root.bullets["bullet" + i].angle) * _root.bullets["bullet" + i].speed);
_root.particleCount = _root.particleCount + 1;
health = health - _root.bullets["bullet" + i].strength;
_root.bullets["bullet" + i].gotoAndStop(2);
}
i++;
}
i = 0;
while (i <= _root.highestGrenade) {
if (this.hitTest(_root.grenades["grenade" + i]._x, _root.grenades["grenade" + i]._y, true)) {
_root.grenades["grenade" + i].removeMovieClip();
}
if (_root.grenades["explosion" + i].nuke && (this.hitTest(_root.grenades["explosion" + i]))) {
flasher._alpha = 100;
health = health - 5;
}
if (this.hitTest(_root.grenades["explosion" + i])) {
flasher._alpha = 100;
health = health - 0.6;
}
i++;
}
if (health < 0) {
mysound.start(0, 1);
i = 0;
while (i <= (15 + random(4))) {
_root.makePickup((this._x + random(50)) - 25, this._y - random(50), 1);
i++;
}
timer = random(100) + 700;
}
} else {
_alpha = (_alpha * 0.5);
timer--;
if (timer <= 0) {
health = 50;
}
}
}
};
Symbol 1023 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
_rotation = (_rotation + 4);
}
};
Symbol 1027 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (!_root.pause) {
this.gotoAndStop(_root.GUNZ);
if ((((_x > ((-_root._x) - _width)) && (_x < (((-_root._x) + 600) + _width))) && (_y > ((-_root._y) - _height))) && (_y < (((-_root._y) + 450) + _height))) {
_visible = true;
} else {
_visible = false;
}
if (_root.player.sprite.mcMC.hitTest(this._x, this._y, true) || (_root.player.vehicle && (_root.player.hitTest(this._x, this._y, true)))) {
_root.GUNZ++;
_root.attachMovie("pickUP", "particle" + _root.particleCount, _root.particleCount);
this.onEnterFrame = null;
this._visible = false;
}
}
};
Symbol 1040 Button
on (release) {
getURL ("http://www.freeonlinegames.com", "_self");
}
Symbol 1044 MovieClip Frame 1
this._visible = false;
Symbol 1055 MovieClip Frame 1
function onEnterFrame() {
if (up && (ra < -50)) {
ra = ra + 0.3;
} else if (ra > -200) {
up = false;
ra = ra + -0.3;
} else {
up = true;
}
bb = -ra;
myColorTransform = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb};
my_color.setTransform(myColorTransform);
my_color2.setTransform(myColorTransform);
}
my_color = new Color(mcBG);
my_color2 = new Color(mcBG2);
ra = -100;
rb = 255;
ga = -100;
gb = 255;
ba = -100;
bb = 255;
myColorTransform = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb};
my_color.setTransform(myColorTransform);
my_color2.setTransform(myColorTransform);
up = true;
Symbol 1057 MovieClip Frame 1
this._visible = false;
Symbol 1064 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1067 Button
on (release) {
trace("score: " + _root.pickups);
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Instance of Symbol 926 MovieClip in Symbol 1074 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
wynume = "Nightmare";
wyculoare = 7695260 /* 0x756B9C */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 1074 MovieClip Frame 233
stop();
Symbol 1080 Button
on (release) {
gotoAndStop ("title");
}
Instance of Symbol 926 MovieClip in Symbol 1098 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
wynume = "Nightmare";
wyculoare = 7695260 /* 0x756B9C */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 1098 MovieClip Frame 52
stop();
stopAllSounds();
Symbol 1103 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 1110 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1415 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 82 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 1415 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 1421 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1437 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 1443 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1447 MovieClip Frame 1
stop();
Symbol 1447 MovieClip Frame 9
stop();
Symbol 1447 MovieClip Frame 22
stop();
Symbol 1447 MovieClip Frame 34
var my_date:Date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 1447 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}