Frame 5
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
gotoAndStop (13);
}
percentLoaded = int(loadedbytes / (totalbytes / 100));
loadProgress.gotoAndStop(percentLoaded);
if (percentLoaded < 100) {
frame = percentLoaded;
}
Frame 6
gotoAndPlay (5);
Frame 20
function mySound(soundName, volume) {
this.aSound = true;
this.myName = soundName;
this.thisSound = new Sound();
this.thisSound._obj = this;
this.thisSound.onSoundComplete = function () {
trace(this._obj.myName + " has ended! ");
this._obj.playing = false;
};
this.thisSound.attachSound(soundName);
this.thisSound.setVolume(volume);
this.currentVolume = volume;
this.playing = false;
}
function initIntro() {
introSlide = 1;
maxSlides = 7;
introMusic = new mySound("track06.aif", 50);
gameMusic = new mySound("track03.aif", 50);
hitAir = new mySound("hit01-air.aif", 50);
hitContact = new mySound("hit01-contact.aif", 50);
diginoise1 = new mySound("diginoise01.aif", 50);
diginoise2 = new mySound("diginoise02.aif", 50);
diginoise3 = new mySound("diginoise03.aif", 50);
diginoise4 = new mySound("diginoise04.aif", 50);
bloopblipbeep02 = new mySound("bloopblipbeep02.aif", 50);
ouch = new mySound("ouch.aif", 50);
soundOh = new mySound("oh.aif", 50);
introMusic.playSound(100, 40);
}
function nextSlide() {
introSlide++;
if (introSlide <= maxSlides) {
introText.gotoAndStop(introSlide);
introAnim.gotoAndStop(introSlide);
} else {
introSlide = 1;
introText.gotoAndStop(introSlide);
introAnim.gotoAndStop(introSlide);
}
}
mySound.prototype.playSound = function (loops, volume) {
trace((("playing: " + this.myName) + " :: ") + this.playing);
if (!this.playing) {
this.thisSound.start(0, loops);
this.currentVolume = volume;
this.thisSound.setVolume(this.currentVolume);
this.playing = true;
}
};
mySound.prototype.stopSound = function () {
trace((("stopping: " + this.myName) + " :: ") + this.playing);
if (this.playing) {
this.thisSound.stop();
this.playing = false;
}
};
mySound.prototype.fade = function (fadeTarget, rate) {
trace("fade called");
if (this.playing) {
this.fadeTarget = fadeTarget;
trace(this.currentVolume);
if (this.currentVolume > this.fadeTarget) {
trace("fading down");
this.fadeMotor = setInterval(this, "fadeOut", rate);
} else if (this.currentVolume < this.fadeTarget) {
trace("fading up");
this.fadeMotor = setInterval(this, "fadeIn", rate);
}
}
};
mySound.prototype.fadeOut = function () {
if (this.currentVolume > this.fadeTarget) {
this.currentVolume--;
this.thisSound.setVolume(this.currentVolume);
} else {
trace("fadeout complete");
clearInterval(this.fadeMotor);
}
};
mySound.prototype.fadeIn = function () {
if (this.currentVolume < this.fadeTarget) {
this.currentVolume++;
this.thisSound.setVolume(this.currentVolume);
} else {
trace("fadein complete");
clearInterval(this.fadeMotor);
}
};
initIntro();
Frame 30
removeMovieClip(gameOverDialog);
stop();
Frame 38
attachMovie("HUD", "HUD", 1000001);
stop();
Frame 43
function init() {
attachMovie("foregroundWrapper", "foregroundWrapper", 1000000);
foregroundWrapper._y = 16;
myPlayer = new Player(selectedPlayer, 30, 240, playBorderTop._y, playBorderBottom._y);
rootPlayer = this[selectedPlayer];
playBorderTop._visible = false;
playBorderBottom._visible = false;
playBorderLeft._visible = false;
playBorderRight._visible = false;
enemyID = 2;
activeEnemies = 0;
backgroundArray = new Array("suburbs", "suburbs", "suburbs", "suburbs", "suburbs", "suburbsForest", "forest", "forest", "forest", "forest", "forestTundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra", "tundra");
currentBackground = 0;
initBackground();
deployEnemySeed = 200;
typeToDeploy = 1;
maxEnemies = 2;
score = 0;
balking = false;
dikDikArray = new Array();
dikDikArray.push(500);
i = 1;
while (i <= 300) {
dikDikArray.push(i * 1000);
i++;
}
currentDikDikDepoy = 0;
removeEnemyX = -20;
introMusic.stopSound();
gameMusic.playSound(100, 40);
}
function removeAllObjects() {
trace("removeAllObjects running");
for (p in this) {
if (this[p].aSound) {
trace(("protecting sound: " + p) + " from erase");
} else {
trace("\tremoving: " + p.toString());
this[p] = null;
delete this[p];
removeMovieClip(this[p]);
}
}
}
function getActiveEnemies() {
activeEnemies = 0;
for (mc in this) {
if (typeof(this[mc]) == "movieclip") {
if ((this[mc].myApps.spriteType == "enemy") and this[mc].myApps.alive) {
activeEnemies++;
}
}
}
return(activeEnemies);
}
function allowContinue() {
myReturn = false;
for (mc in this) {
if (typeof(this[mc]) == "movieclip") {
if ((this[mc].myApps.spriteType == "enemy") and this[mc].myApps.alive) {
if (this[mc]._x < 20) {
myReturn = false;
break;
}
myReturn = true;
}
}
}
return(myReturn);
}
function gameOver() {
gotoAndStop (49);
}
function initBackground() {
foregroundWrapper.attachMovie("fg" + backgroundArray[currentBackground], "back" + currentBackground, currentBackground + 1);
backgroundWrapper.attachMovie("bg" + backgroundArray[currentBackground], "back" + currentBackground, currentBackground + 1);
}
function updateBackground() {
backgroundRightX = backgroundWrapper._x + backgroundWrapper._width;
if (backgroundWrapper._x < ((currentBackground * 500) * -1)) {
currentBackground++;
trace("adding new background");
bgSectionTitle = "back" + currentBackground;
backgroundWrapper.attachMovie("bg" + backgroundArray[currentBackground], bgSectionTitle, currentBackground + 1);
backgroundWrapper[bgSectionTitle]._x = currentBackground * 500;
foregroundWrapper.attachMovie("fg" + backgroundArray[currentBackground], bgSectionTitle, currentBackground + 1);
foregroundWrapper[bgSectionTitle]._x = (currentBackground * 500) * 1.25;
if (currentBackground > 1) {
backgroundWrapper["back" + (currentBackground - 2)].removeMovieClip();
foregroundWrapper["back" + (currentBackground - 2)].removeMovieClip();
}
}
}
function moveBackground(pixels) {
if (allowContinue()) {
if ((backgroundWrapper._x - pixels) < 0) {
backgroundWrapper._x = backgroundWrapper._x - pixels;
foregroundWrapper._x = foregroundWrapper._x - (pixels * 1.25);
for (mc in this) {
if ((this[mc].myApps.spriteType == "enemy") and (typeof(this[mc]) == "movieclip")) {
this[mc]._x = this[mc]._x - pixels;
}
}
updateBackground();
}
}
}
function deployEnemy(eType) {
ex = 540;
playingField = playBorderBottom._y - playBorderTop._y;
ey = random(playingField);
ey = ey + playBorderTop._y;
this["enemy" + enemyID] = new Enemy("enemy" + eType, enemyID, ex, ey, playBorderTop._y, playBorderBottom._y, myPlayer, eType);
enemyID++;
activeEnemies++;
}
function removeEnemy(targetEnemyObj, targetEnemyClip) {
targetEnemyClip.removeMovieClip();
targetEnemyObj = null;
}
function setSpriteDepth(name, y, spriteType) {
if (spriteType == "enemy") {
if (y != rootPlayer._y) {
name.swapDepths(y);
} else {
trace("levelY collide!!");
if (name.myApps.currentSpeedY < 0) {
newY = y - 1;
setSpriteDepth(name, newY, spriteType);
} else if (name.myApps.currentSpeedY > 0) {
newY = y + 1;
setSpriteDepth(name, newY, spriteType);
}
}
}
if (spriteType == "player") {
if (activeEnemies > 0) {
startEnemyCheck = enemyID - activeEnemies;
i = startEnemyCheck;
while (i <= enemyID) {
if (y != this["enemy" + enemyID]._y) {
name.swapDepths(y);
} else {
if (name.myApps.currentSpeedY < 0) {
newY = y - 1;
setSpriteDepth(name, newY, spriteType);
return;
}
if (name.myApps.currentSpeedY > 0) {
newY = y + 1;
setSpriteDepth(name, newY, spriteType);
return;
}
}
i++;
}
}
}
}
function addScore(points) {
score = score + points;
}
function checkCollision() {
if (activeEnemies > 0) {
startEnemyCheck = enemyID - activeEnemies;
for (mc in this) {
if ((this[mc].myApps.spriteType == "enemy") and (typeof(this[mc]) == "movieclip")) {
if (this[mc].hitTest(rootPlayer)) {
distanceBetweenSprites = rootPlayer._y - this[mc]._y;
if ((distanceBetweenSprites > -10) and (distanceBetweenSprites < 10)) {
if (rootPlayer.myApps.attacking) {
if (((rootPlayer.myApps.lastDir == "forward") and (rootPlayer._x < this[mc]._x)) or ((rootPlayer.myApps.lastDir == "backward") and (rootPlayer._x > this[mc]._x))) {
hitContact.playSound(1, 40);
trace("ENEMY HIT!");
if (this[mc].myApps.alive) {
if (rootPlayer._x < this[mc]._x) {
rootPlayer._x = rootPlayer._x - 5;
this[mc]._x = this[mc]._x + 5;
} else {
rootPlayer._x = rootPlayer._x + 5;
this[mc]._x = this[mc]._x - 5;
}
rootPlayer.playerStates.attachMovie("blam", "blam", 1);
rootPlayer.playerStates.blam._x = 20;
trace("health: " + this[mc].myApps.health);
this[mc].myApps.health--;
this[mc].myApps.displayHealth();
if (this[mc].myApps.health == 0) {
addScore(this[mc].myApps.points);
this[mc].myApps.killed();
}
if (this[mc].myApps.eType == "Dikdik") {
bloopblipbeep02.playSound(1, 40);
myPlayer.health = 100;
}
}
return(false);
}
if (this[mc].myApps.alive) {
balk = true;
myPlayer.health = myPlayer.health - 10;
if (myPlayer.health < 0) {
hud.healthMeter.gotoAndStop(1);
return(true);
}
if (rootPlayer._x < this[mc]._x) {
myPlayer.currentSpeedX = -5;
} else {
myPlayer.currentSpeedX = 5;
}
if (rootPlayer._y < 241) {
myPlayer.currentSpeedY = 5;
} else {
myPlayer.currentSpeedY = -5;
}
}
} else if (this[mc].myApps.alive) {
soundOh.playSound(1, 40);
balk = true;
myPlayer.health = myPlayer.health - 10;
if (myPlayer.health < 0) {
hud.healthMeter.gotoAndStop(1);
return(true);
}
if (rootPlayer._x < this[mc]._x) {
myPlayer.currentSpeedX = -5;
} else {
myPlayer.currentSpeedX = 5;
}
if (rootPlayer._y < 241) {
myPlayer.currentSpeedY = 5;
} else {
myPlayer.currentSpeedY = -5;
}
}
}
}
}
}
}
}
function Enemy(enemyName, enemyID, startX, startY, topBorder, botBorder, playerName, eType) {
trace("deploying enemy: " + enemyName);
this.enemyName = attachMovie(enemyName, "enemyClip" + enemyID, enemyID);
this.eType = eType;
this.spriteType = "enemy";
this.enemyName._x = startX;
this.enemyName._y = startY;
this.enemyName.myApps = this;
this.playerName = playerName;
if (this.eType == "Zombie") {
this.maxSpeed = 0.3;
this.points = 100;
this.originalHealth = 1;
} else if (this.eType == "Pirate") {
this.maxSpeed = 2;
this.points = 150;
this.originalHealth = 5;
} else if (this.eType == "Ninja") {
this.maxSpeed = 3;
this.points = 200;
this.originalHealth = 10;
} else if (this.eType == "Dikdik") {
this.maxSpeed = 6;
this.points = 250;
this.originalHealth = 1;
}
this.health = this.originalHealth;
this.displayHealth();
this.currentSpeedX = 0;
this.currentSpeedY = 0;
this.speedIncrement = 1;
this.topBorder = topBorder;
this.botBorder = botBorder;
this.alive = true;
this.currentDirection = "left";
}
function Player(playerName, startX, startY, topBorder, botBorder) {
this.playerName = attachMovie("player" + playerName, playerName, 1);
this.playerName._x = startX;
this.playerName._y = startY;
this.playerName.myApps = this;
this.maxSpeed = 6;
this.health = 100;
this.currentSpeedX = 0;
this.currentSpeedY = 0;
this.speedIncrement = 1;
this.topBorder = topBorder;
this.botBorder = botBorder;
this.startScrollLeft = 35;
this.startScrollRight = 300;
this.alive = true;
}
onenterframe = function () {
hud.healthMeter.gotoAndStop(myPlayer.health);
if (myPlayer.alive) {
if (currentBackground > 5) {
typeToDeploy = 2;
maxEnemies = 3;
}
if (currentBackground > 10) {
typeToDeploy = 3;
maxEnemies = 5;
}
if (getActiveEnemies() < maxEnemies) {
checkForDeploy = random(20);
if ((checkForDeploy == 0) or (getActiveEnemies() == 0)) {
r = random(typeToDeploy);
trace("number generated:" + r);
if (r == 0) {
trace("deploying: Zombie");
deployEnemy("Zombie");
}
if (r == 1) {
trace("deploying: Pirate");
deployEnemy("Pirate");
}
if (r == 2) {
trace("deploying: Ninja");
deployEnemy("Ninja");
}
}
}
if (score >= dikDikArray[currentDikDikDepoy]) {
deployEnemy("Dikdik");
currentDikDikDepoy++;
}
}
};
enemy.prototype.displayHealth = function () {
this.healthPercentage = int((100 / this.originalHealth) * this.health);
this.enemyName.walk.healthDisplay.gotoAndStop(this.healthPercentage);
};
enemy.prototype.moveEnemy = function () {
if (this.enemyName._x < playBorderLeft._x) {
this.currentDirection = "right";
} else if (this.enemyName._x > playBorderRight._x) {
this.currentDirection = "left";
}
if ((Math.abs(this.currentSpeedX) > 0) or (Math.abs(this.currentSpeedY) > 0)) {
if (this.enemyName.walk._currentframe == 1) {
this.enemyName.walk.gotoAndPlay("run");
}
} else {
this.enemyName.walk.gotoAndStop("still");
}
this.enemyName._x = this.enemyName._x + this.currentSpeedX;
this.oldEnemyY = this.enemyName._y;
if ((this.enemyName._y > this.topBorder) and (this.currentSpeedY < 0)) {
this.enemyName._y = this.enemyName._y + this.currentSpeedY;
} else if ((this.enemyName._y < this.botBorder) and (this.currentSpeedY > 0)) {
this.enemyName._y = this.enemyName._y + this.currentSpeedY;
}
if (this.currentSpeedX > 0) {
this.enemyName.gotoAndStop("forward");
} else if (this.currentSpeedX < 0) {
this.enemyName.gotoAndStop("backward");
}
if (this.oldEnemyY != this.enemyName._y) {
setSpriteDepth(this.enemyName, this.enemyName._y, "enemy");
}
};
enemy.prototype.killed = function () {
trace("enemy killed");
this.currentSpeedX = 0;
this.currentSpeedY = 0;
rs = random(4) + 1;
_root["diginoise" + rs].playSound(1, 40);
this.alive = false;
};
enemy.prototype.calculateSpeed = function (direction) {
if ((this.currentSpeedX > (this.maxSpeed * -1)) and (direction == "l")) {
this.currentSpeedX = this.currentSpeedX - this.speedIncrement;
} else if ((this.currentSpeedX < this.maxSpeed) and (direction == "r")) {
this.currentSpeedX = this.currentSpeedX + this.speedIncrement;
} else if (direction == "hUp") {
if (this.currentSpeedX < 0) {
this.currentSpeedX++;
} else if (this.currentSpeedX > 0) {
this.currentSpeedX--;
}
}
if ((this.currentSpeedY > (this.maxSpeed * -1)) and (direction == "u")) {
this.currentSpeedY = this.currentSpeedY - this.speedIncrement;
} else if ((this.currentSpeedY < this.maxSpeed) and (direction == "d")) {
this.currentSpeedY = this.currentSpeedY + this.speedIncrement;
} else if (direction == "vUp") {
if (this.currentSpeedY < 0) {
this.currentSpeedY++;
} else if (this.currentSpeedY > 0) {
this.currentSpeedY--;
}
}
};
player.prototype.movePlayer = function () {
if ((!balk) and (!balking)) {
if ((Math.abs(this.currentSpeedX) > 0) or (Math.abs(this.currentSpeedY) > 0)) {
if (this.playerName.playerStates._currentframe == 1) {
this.playerName.playerStates.gotoAndPlay("run");
}
} else if (!this.attacking) {
this.playerName.playerStates.gotoAndStop("still");
}
} else if (!balking) {
balking = true;
this.playerName.playerStates.gotoAndPlay("balk");
}
if ((this.playerName._x < this.startScrollRight) and (this.currentSpeedX > 0)) {
this.playerName._x = this.playerName._x + this.currentSpeedX;
} else if ((this.playerName._x > this.startScrollLeft) and (this.currentSpeedX < 0)) {
this.playerName._x = this.playerName._x + this.currentSpeedX;
} else if (this.currentSpeedX < 0) {
} else if (this.currentSpeedX > 0) {
_root.moveBackGround(this.currentSpeedX);
}
this.oldPlayerY = this.playerName._y;
if ((this.playerName._y > this.topBorder) and (this.currentSpeedY < 0)) {
this.playerName._y = this.playerName._y + this.currentSpeedY;
} else if ((this.playerName._y < this.botBorder) and (this.currentSpeedY > 0)) {
this.playerName._y = this.playerName._y + this.currentSpeedY;
}
if (!balk) {
if (this.currentSpeedX > 0) {
this.playerName.gotoAndStop("forward");
this.lastDir = "forward";
} else if (this.currentSpeedX < 0) {
this.playerName.gotoAndStop("backward");
this.lastDir = "backward";
}
}
if (this.oldPlayerY != this.playerName._y) {
setSpriteDepth(this.playerName, this.playerName._y, "player");
}
if (checkCollision()) {
this.alive = false;
this.playerName.gotoAndStop("dead");
gameOver();
}
};
player.prototype.attack = function (attackType) {
if (!balking) {
if (attackType == "off") {
trace("attackType: " + attackType);
this.allowAttack = true;
this.attacking = false;
}
if (this.allowAttack and (attackType != "off")) {
hitAir.playSound(1, 40);
trace("attackType: " + attackType);
this.playerName.playerStates.gotoAndPlay(attackType);
this.allowAttack = false;
this.attacking = true;
}
}
};
player.prototype.calculateSpeed = function (direction) {
if ((this.currentSpeedX > (this.maxSpeed * -1)) and (direction == "l")) {
this.currentSpeedX = this.currentSpeedX - this.speedIncrement;
} else if ((this.currentSpeedX < this.maxSpeed) and (direction == "r")) {
this.currentSpeedX = this.currentSpeedX + this.speedIncrement;
} else if (direction == "hUp") {
if (this.currentSpeedX < 0) {
this.currentSpeedX++;
} else if (this.currentSpeedX > 0) {
this.currentSpeedX--;
}
}
if ((this.currentSpeedY > (this.maxSpeed * -1)) and (direction == "u")) {
this.currentSpeedY = this.currentSpeedY - this.speedIncrement;
} else if ((this.currentSpeedY < this.maxSpeed) and (direction == "d")) {
this.currentSpeedY = this.currentSpeedY + this.speedIncrement;
} else if (direction == "vUp") {
if (this.currentSpeedY < 0) {
this.currentSpeedY++;
} else if (this.currentSpeedY > 0) {
this.currentSpeedY--;
}
}
};
init();
stop();
Frame 49
gameMusic.stopSound();
introMusic.playSound(100, 40);
ouch.playSound(1, 40);
attachMovie("gameOverDialog", "gameOverDialog", 1000002);
Symbol 24 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 24
gotoAndPlay (10);
Symbol 39 MovieClip Frame 14
stop();
Symbol 40 MovieClip [enemyNinja] Frame 1
onenterframe = function () {
if (myApps.alive) {
r = random(3);
if (r == 1) {
myApps.calculateSpeed("u");
} else if (r == 2) {
myApps.calculateSpeed("d");
}
if (myApps.currentDirection == "left") {
div = 9;
} else if (myApps.currentDirection == "right") {
div = 5;
}
r = random(14);
if (r < div) {
myApps.calculateSpeed("l");
} else if (myApps.enemyName._x < 400) {
myApps.calculateSpeed("r");
}
} else {
gotoAndStop (20);
}
myApps.moveEnemy();
if (myApps.enemyName._x < _root.removeEnemyX) {
_root.removeEnemy(myApps, this);
}
};
Symbol 40 MovieClip [enemyNinja] Frame 5
stop();
Symbol 40 MovieClip [enemyNinja] Frame 13
stop();
Symbol 44 Button
on (keyPress "A") {
myApps.attack("punch");
}
on (keyPress "a") {
myApps.attack("punch");
}
on (keyPress "S") {
myApps.attack("kick");
}
on (keyPress "s") {
myApps.attack("kick");
}
Symbol 55 MovieClip Frame 1
_parent.myApps.attack("off");
Symbol 55 MovieClip Frame 11
gotoAndPlay (7);
Symbol 55 MovieClip Frame 19
gotoAndStop (1);
Symbol 55 MovieClip Frame 28
gotoAndStop (1);
Symbol 55 MovieClip Frame 40
_root.balk = false;
_root.balking = false;
gotoAndStop (1);
Symbol 57 MovieClip Frame 14
stop();
Symbol 58 MovieClip [playerAdam] Frame 1
onenterframe = function () {
if (myApps.alive) {
if (Key.isDown(38)) {
myApps.calculateSpeed("u");
} else if (Key.isDown(40)) {
myApps.calculateSpeed("d");
} else {
myApps.calculateSpeed("vUp");
}
if (Key.isDown(39)) {
myApps.calculateSpeed("r");
} else if (Key.isDown(37)) {
myApps.calculateSpeed("l");
} else {
myApps.calculateSpeed("hUp");
}
myApps.movePlayer();
}
};
Symbol 58 MovieClip [playerAdam] Frame 5
stop();
Symbol 58 MovieClip [playerAdam] Frame 13
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 14
gotoAndPlay (10);
Symbol 81 MovieClip Frame 14
stop();
Symbol 82 MovieClip [enemyDikdik] Frame 1
onenterframe = function () {
if (myApps.alive) {
r = random(3);
if (r == 1) {
myApps.calculateSpeed("u");
} else if (r == 2) {
myApps.calculateSpeed("d");
}
r = random(14);
if (r < 8) {
myApps.calculateSpeed("l");
} else if (myApps.enemyName._x < 400) {
myApps.calculateSpeed("r");
}
} else {
gotoAndStop (20);
}
myApps.moveEnemy();
if (myApps.enemyName._x < -50) {
_root.removeEnemy(myApps, this);
}
};
Symbol 82 MovieClip [enemyDikdik] Frame 5
stop();
Symbol 82 MovieClip [enemyDikdik] Frame 13
stop();
Symbol 89 MovieClip Frame 14
gotoAndPlay (10);
Symbol 91 MovieClip Frame 14
stop();
Symbol 92 MovieClip [enemyZombie] Frame 1
onenterframe = function () {
if (myApps.alive) {
r = random(3);
if (r == 1) {
myApps.calculateSpeed("u");
} else if (r == 2) {
myApps.calculateSpeed("d");
}
if (myApps.currentDirection == "left") {
div = 9;
} else if (myApps.currentDirection == "right") {
div = 5;
}
r = random(14);
if (r < div) {
myApps.calculateSpeed("l");
} else if (myApps.enemyName._x < 400) {
myApps.calculateSpeed("r");
}
} else {
gotoAndStop (20);
}
myApps.moveEnemy();
if (myApps.enemyName._x < _root.removeEnemyX) {
_root.removeEnemy(myApps, this);
}
};
Symbol 92 MovieClip [enemyZombie] Frame 5
stop();
Symbol 92 MovieClip [enemyZombie] Frame 13
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 16
gotoAndPlay (10);
Symbol 101 MovieClip Frame 14
stop();
Symbol 102 MovieClip [enemyPirate] Frame 1
onenterframe = function () {
if (myApps.alive) {
r = random(3);
if (r == 1) {
myApps.calculateSpeed("u");
} else if (r == 2) {
myApps.calculateSpeed("d");
}
if (myApps.currentDirection == "left") {
div = 9;
} else if (myApps.currentDirection == "right") {
div = 5;
}
r = random(14);
if (r < div) {
myApps.calculateSpeed("l");
} else if (myApps.enemyName._x < 400) {
myApps.calculateSpeed("r");
}
} else {
gotoAndStop (20);
}
myApps.moveEnemy();
if (myApps.enemyName._x < _root.removeEnemyX) {
_root.removeEnemy(myApps, this);
}
};
Symbol 102 MovieClip [enemyPirate] Frame 5
stop();
Symbol 102 MovieClip [enemyPirate] Frame 13
stop();
Symbol 115 MovieClip Frame 1
_parent.myApps.attack("off");
Symbol 115 MovieClip Frame 11
gotoAndPlay (7);
Symbol 115 MovieClip Frame 19
gotoAndStop (1);
Symbol 115 MovieClip Frame 28
gotoAndStop (1);
Symbol 115 MovieClip Frame 39
_root.balk = false;
_root.balking = false;
gotoAndStop (1);
Symbol 117 MovieClip Frame 14
stop();
Symbol 118 MovieClip [playerMorgan] Frame 1
onenterframe = function () {
if (myApps.alive) {
if (Key.isDown(38)) {
myApps.calculateSpeed("u");
} else if (Key.isDown(40)) {
myApps.calculateSpeed("d");
} else {
myApps.calculateSpeed("vUp");
}
if (Key.isDown(39)) {
myApps.calculateSpeed("r");
} else if (Key.isDown(37)) {
myApps.calculateSpeed("l");
} else {
myApps.calculateSpeed("hUp");
}
myApps.movePlayer();
}
};
Symbol 118 MovieClip [playerMorgan] Frame 5
stop();
Symbol 118 MovieClip [playerMorgan] Frame 13
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 159 Button
on (release) {
_parent.gotoAndStop("startScreen");
_parent.removeAllObjects();
}
Symbol 164 Button
on (release) {
getURL ("http://www.orangedesign.com", _blank);
}
Symbol 165 MovieClip [gameOverDialog] Frame 30
if (_parent.score > 25000) {
finalText = "You're a l337 gamer. You r0X0rs our b0x0rs!!!!";
} else if (_parent.score > 20000) {
finalText = "You are almost a gaming god! Almost.";
} else if (_parent.score > 15000) {
finalText = "Not bad, but you could do better than that.";
} else if (_parent.score > 10000) {
finalText = "You didn't suck that badly, but you still sucked. Try again.";
} else if (_parent.score > -1) {
finalText = "You call yourself a gamer? Better get back to practicing.";
}
finalScore = "FINAL SCORE: " + _parent.score;
stop();
Symbol 169 MovieClip [blam] Frame 3
removeMovieClip(this);
Symbol 176 MovieClip Frame 1
stop();
Symbol 181 Button
on (release) {
gotoAndStop (20);
}
Symbol 227 MovieClip Frame 167
gotoAndPlay (67);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 7
_root.gotoAndStop("startScreen");
Symbol 241 MovieClip Frame 1
stop();
Symbol 244 Button
on (release) {
gotoAndStop (30);
}
Symbol 247 Button
on (release) {
nextSlide();
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 103
gotoAndPlay (8);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 101
gotoAndPlay (8);
Symbol 260 Button
on (rollOver) {
_root.morgansign.gotoAndStop("down");
_root.morganrun.gotoAndPlay("active");
}
on (rollOut) {
_root.morgansign.gotoAndStop("up");
_root.morganrun.gotoAndStop("still");
}
on (release) {
selectedPlayer = "Morgan";
gotoAndStop (38);
}
Symbol 261 Button
on (rollOver) {
_root.adamsign.gotoAndStop("down");
_root.adamrun.gotoAndPlay("active");
}
on (rollOut) {
_root.adamsign.gotoAndStop("up");
_root.adamrun.gotoAndStop("still");
}
on (release) {
selectedPlayer = "Adam";
gotoAndStop (38);
}
Symbol 264 Button
on (rollOver) {
_root.morgansign.gotoAndStop("down");
_root.morganrun.gotoAndPlay("active");
}
on (rollOut) {
_root.morgansign.gotoAndStop("up");
_root.morganrun.gotoAndStop("still");
}
on (release) {
selectedPlayer = "Morgan";
gotoAndStop (38);
}
Symbol 267 Button
on (rollOver) {
_root.adamsign.gotoAndStop("down");
_root.adamrun.gotoAndPlay("active");
}
on (rollOut) {
_root.adamsign.gotoAndStop("up");
_root.adamrun.gotoAndStop("still");
}
on (release) {
selectedPlayer = "Adam";
gotoAndStop (38);
}
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 7
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 7
stop();
Symbol 311 Button
on (release) {
gotoAndStop (43);
}