Frame 1
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
if ((domain == "70.84.129.52") || (domain == "www.ultimatearcade.com")) {
url = "yes";
} else {
url = "no";
}
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
stop();
Frame 10
stop();
Instance of Symbol 24 MovieClip in Frame 10
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = ("Loaded " + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndStop("welcome");
} else {
stop();
}
}
Frame 17
stop();
howtoplay = new Sound();
howtoplay.attachSound("howtoplay");
Instance of Symbol 163 MovieClip "rules" in Frame 17
onClipEvent (load) {
this._visible = false;
}
Frame 26
_root.currentlyExploding = "no";
_root.heroDirection = "right";
_root.bombCount = 0;
_root.stats.level = 1;
_root.thePlanet.gotoAndStop(1);
_root.stats.kills = 0;
_root.gameOver = "no";
_root.win = "no";
stats.score = 0;
_root.finalScore = 0;
stats.points = 0;
heartbeat = new Sound();
heartbeat.attachSound("heartbeat");
squish = new Sound();
squish.attachSound("squish");
boom = new Sound();
boom.attachSound("boom");
health = new Sound();
health.attachSound("health");
pain = new Sound();
pain.attachSound("pain");
bgLoop = new Sound();
bgLoop.attachSound("bgLoop");
bgLoop.start(1, 999);
this.framesElapsed = 0;
this.frameCounterTime = getTimer();
this.onEnterFrame = function () {
this.framesElapsed++;
if ((this.frameCounterTime + 1000) < getTimer()) {
this.fps_txt.text = this.framesElapsed;
this.frameCounterTime = this.frameCounterTime + 1000;
this.framesElapsed = 0;
}
};
this.stop();
Instance of Symbol 260 MovieClip "thePlanet" in Frame 26
onClipEvent (load) {
this._y = 25;
this.Alien1Timer = 0;
this.Alien2Timer = 0;
this.Alien3Timer = 0;
this.Alien4Timer = 0;
this.Alien5Timer = 0;
this.Alien6Timer = 0;
this.Alien7Timer = 0;
this.Alien8Timer = 0;
this.Alien9Timer = 0;
}
onClipEvent (enterFrame) {
if ((_root.win != "yes") and (_root.gameOver != "yes")) {
if ((this.Alien1.AlienAlive == "no") and (this.Alien1.AlienReady == "yes")) {
this.Alien1.gotoAndStop(1);
}
if (this.Alien1._currentframe == 1) {
this.Alien1Timer++;
if (this.Alien1Timer > this.Alien1.RandomTime) {
this.Alien1.AlienAlive = "yes";
this.Alien1.AlienReady = "no";
this.Alien1._x = 700;
this.Alien1Timer = 0;
}
}
if ((this.Alien2.AlienAlive == "no") and (this.Alien2.AlienReady == "yes")) {
this.Alien2.gotoAndStop(1);
}
if (this.Alien2._currentframe == 1) {
this.Alien2Timer++;
if (this.Alien2Timer > this.Alien2.RandomTime) {
this.Alien2.AlienAlive = "yes";
this.Alien2.AlienReady = "no";
this.Alien2._x = -50;
this.Alien2Timer = 0;
}
}
if ((this.Alien3.AlienAlive == "no") and (this.Alien3.AlienReady == "yes")) {
this.Alien3.gotoAndStop(1);
}
if (this.Alien3._currentframe == 1) {
this.Alien3Timer++;
if (this.Alien3Timer > this.Alien3.RandomTime) {
this.Alien3.AlienAlive = "yes";
this.Alien3.AlienReady = "no";
this.Alien3._x = 700;
this.Alien3Timer = 0;
}
}
if ((this.Alien4.AlienAlive == "no") and (this.Alien4.AlienReady == "yes")) {
this.Alien4.gotoAndStop(1);
}
if (this.Alien4._currentframe == 1) {
this.Alien4Timer++;
if (this.Alien4Timer > this.Alien4.RandomTime) {
this.Alien4.AlienAlive = "yes";
this.Alien4.AlienReady = "no";
this.Alien4._x = -50;
this.Alien4Timer = 0;
}
}
if ((this.Alien5.AlienAlive == "no") and (this.Alien5.AlienReady == "yes")) {
this.Alien5.gotoAndStop(1);
}
if (this.Alien5._currentframe == 1) {
this.Alien5Timer++;
if (this.Alien5Timer > this.Alien5.RandomTime) {
this.Alien5.AlienAlive = "yes";
this.Alien5.AlienReady = "no";
this.Alien5._x = 700;
this.Alien5Timer = 0;
}
}
if ((this.Alien6.AlienAlive == "no") and (this.Alien6.AlienReady == "yes")) {
this.Alien6.gotoAndStop(1);
}
if (this.Alien6._currentframe == 1) {
this.Alien6Timer++;
if (this.Alien6Timer > this.Alien6.RandomTime) {
this.Alien6.AlienAlive = "yes";
this.Alien6.AlienReady = "no";
this.Alien6._x = -50;
this.Alien6Timer = 0;
}
}
if ((this.Alien7.AlienAlive == "no") and (this.Alien7.AlienReady == "yes")) {
this.Alien7.gotoAndStop(1);
}
if (this.Alien7._currentframe == 1) {
this.Alien7Timer++;
if (this.Alien7Timer > this.Alien7.RandomTime) {
this.Alien7.AlienAlive = "yes";
this.Alien7.AlienReady = "no";
this.Alien7._x = 700;
this.Alien7Timer = 0;
}
}
if ((this.Alien8.AlienAlive == "no") and (this.Alien8.AlienReady == "yes")) {
this.Alien8.gotoAndStop(1);
}
if (this.Alien8._currentframe == 1) {
this.Alien8Timer++;
if (this.Alien8Timer > this.Alien8.RandomTime) {
this.Alien8.AlienAlive = "yes";
this.Alien8.AlienReady = "no";
this.Alien8._x = -50;
this.Alien8Timer = 0;
}
}
} else {
this.Alien1.gotoAndStop("dieLeft");
this.Alien1.AlienAlive = "no";
this.Alien2.gotoAndStop("dieLeft");
this.Alien2.AlienAlive = "no";
this.Alien3.gotoAndStop("dieLeft");
this.Alien3.AlienAlive = "no";
this.Alien4.gotoAndStop("dieLeft");
this.Alien4.AlienAlive = "no";
this.Alien5.gotoAndStop("dieLeft");
this.Alien5.AlienAlive = "no";
this.Alien6.gotoAndStop("dieLeft");
this.Alien6.AlienAlive = "no";
this.Alien7.gotoAndStop("dieLeft");
this.Alien7.AlienAlive = "no";
this.Alien8.gotoAndStop("dieLeft");
this.Alien8.AlienAlive = "no";
}
}
Instance of Symbol 295 MovieClip "hero" in Frame 26
onClipEvent (enterFrame) {
if (this._x > 700) {
this._x = -50;
}
if (this._x < -50) {
this._x = 700;
}
if (_root.currentlyJumping == "yes") {
this.jumpTimer++;
if (Key.isDown(39)) {
this._x = this._x + 15;
}
if (Key.isDown(37)) {
this._x = this._x - 15;
}
}
if ((_root.gameOver == "no") and (_root.currentlyJumping == "no")) {
if (Key.isDown(38)) {
this.gotoAndStop("jump");
} else if (Key.isDown(32) and (_root.currentlyExploding == "no")) {
if (_root.heroDirection == "right") {
this.gotoAndStop("attackRight");
}
if (_root.heroDirection == "left") {
this.gotoAndStop("attackLeft");
}
} else if (Key.isDown(40) and (_root.currentlyExploding == "no")) {
this.gotoAndStop("sit");
} else if (Key.isDown(39) and (_root.currentlyExploding == "no")) {
_root.heroDirection = "right";
this.gotoAndStop("walkRight");
this._x = this._x + 10;
} else if (Key.isDown(37) and (_root.currentlyExploding == "no")) {
_root.heroDirection = "left";
this.gotoAndStop("walkLeft");
this._x = this._x - 10;
} else if (_root.currentlyExploding == "no") {
this.gotoAndStop("wait");
}
}
}
Instance of Symbol 318 MovieClip in Frame 26
onClipEvent (enterFrame) {
if ((_root.hero._x > 325) and (_root.currentlyShooting == "no")) {
this.gotoAndStop("right");
}
if ((_root.hero._x < 325) and (_root.currentlyShooting == "no")) {
this.gotoAndStop("left");
}
}
Instance of Symbol 340 MovieClip "stats" in Frame 26
onClipEvent (enterFrame) {
if (this.score < 0) {
this.score = 0;
this.points = 0;
}
if (this.points < this.score) {
this.points = this.points + 10;
}
if (this.points > this.score) {
this.points = this.points - 10;
}
}
Instance of Symbol 399 MovieClip in Frame 26
onClipEvent (load) {
_root.timeForLevel = 60000;
maxTime = _root.timeForLevel;
timeStart = getTimer();
this.stopTimer = "no";
}
onClipEvent (enterFrame) {
if ((this.stopTimer == "no") and (_root.gameOver == "no")) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeSeconds = String("0" + timeSeconds);
}
_root.stats.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.stats.timer = "00";
_root.gotoAndStop("Level2");
this.stopTimer = "yes";
}
}
}
Frame 35
stop();
_root.stats.level = 2;
_root.thePlanet.gotoAndStop(2);
Instance of Symbol 399 MovieClip in Frame 35
onClipEvent (load) {
_root.timeForLevel = 60000;
maxTime = _root.timeForLevel;
timeStart = getTimer();
this.stopTimer = "no";
}
onClipEvent (enterFrame) {
if ((this.stopTimer == "no") and (_root.gameOver == "no")) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeSeconds = String("0" + timeSeconds);
}
_root.stats.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.stats.timer = "00";
_root.gotoAndStop("Level3");
this.stopTimer = "yes";
}
}
}
Frame 45
stop();
_root.stats.level = 3;
_root.thePlanet.gotoAndStop(3);
Instance of Symbol 399 MovieClip in Frame 45
onClipEvent (load) {
_root.timeForLevel = 60000;
maxTime = _root.timeForLevel;
timeStart = getTimer();
this.stopTimer = "no";
}
onClipEvent (enterFrame) {
if ((this.stopTimer == "no") and (_root.gameOver == "no")) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeSeconds = String("0" + timeSeconds);
}
_root.stats.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.stats.timer = "00";
_root.gotoAndStop("Level4");
this.stopTimer = "yes";
}
}
}
Frame 55
stop();
_root.stats.level = 4;
_root.thePlanet.gotoAndStop(4);
Instance of Symbol 399 MovieClip in Frame 55
onClipEvent (load) {
_root.timeForLevel = 60000;
maxTime = _root.timeForLevel;
timeStart = getTimer();
this.stopTimer = "no";
}
onClipEvent (enterFrame) {
if ((this.stopTimer == "no") and (_root.gameOver == "no")) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeSeconds = String("0" + timeSeconds);
}
_root.stats.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.stats.timer = "00";
_root.gotoAndStop("Level5");
this.stopTimer = "yes";
}
}
}
Frame 65
stop();
_root.stats.level = 5;
_root.thePlanet.gotoAndStop(5);
Instance of Symbol 399 MovieClip in Frame 65
onClipEvent (load) {
_root.timeForLevel = 60000;
maxTime = _root.timeForLevel;
timeStart = getTimer();
this.stopTimer = "no";
}
onClipEvent (enterFrame) {
if ((this.stopTimer == "no") and (_root.gameOver == "no")) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeSeconds = String("0" + timeSeconds);
}
_root.stats.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.stats.timer = "00";
_root.gotoAndStop("win");
this.stopTimer = "yes";
}
}
}
Frame 75
_root.heartbeat.stop();
_root.bgLoop.stop();
_root.gameOver = "yes";
_root.win = "yes";
_root.hero.gotoAndStop(1);
_root.currentlyJumping = "no";
stop();
Symbol 11 MovieClip Frame 11
stop();
Symbol 17 MovieClip Frame 100
_root.gotoAndStop("loading");
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 1
_root.boom.start();
Instance of Symbol 93 MovieClip "shape" in Symbol 94 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.shape)) {
_root.stats.health.nextFrame();
_root.currentlyExploding = "yes";
if (_root.currentlyJumping != "yes") {
_root.hero.gotoAndStop("jump");
}
}
if (this.hitTest(_root.thePlanet.Alien1.shape)) {
_root.thePlanet.Alien1.AlienAlive = "no";
_root.thePlanet.Alien1.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien2.shape)) {
_root.thePlanet.Alien2.AlienAlive = "no";
_root.thePlanet.Alien2.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien3.shape)) {
_root.thePlanet.Alien3.AlienAlive = "no";
_root.thePlanet.Alien3.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien4.shape)) {
_root.thePlanet.Alien4.AlienAlive = "no";
_root.thePlanet.Alien4.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien5.shape)) {
_root.thePlanet.Alien5.AlienAlive = "no";
_root.thePlanet.Alien5.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien6.shape)) {
_root.thePlanet.Alien6.AlienAlive = "no";
_root.thePlanet.Alien6.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien7.shape)) {
_root.thePlanet.Alien7.AlienAlive = "no";
_root.thePlanet.Alien7.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien8.shape)) {
_root.thePlanet.Alien8.AlienAlive = "no";
_root.thePlanet.Alien8.gotoAndStop("dieRight");
}
if (this.hitTest(_root.thePlanet.Alien9.shape)) {
_root.thePlanet.Alien9.AlienAlive = "no";
_root.thePlanet.Alien9.gotoAndStop("dieRight");
}
}
Symbol 94 MovieClip Frame 15
_root.thePlanet.bomb.gotoAndStop(1);
stop();
Symbol 96 MovieClip Frame 1
stop();
Instance of Symbol 71 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.hero.wackShape)) {
_root.bombCount++;
_parent.gotoAndStop(2);
}
}
Symbol 96 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 3
stop();
Instance of Symbol 71 MovieClip in Symbol 96 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.hero.wackShape)) {
_root.bombCount++;
_parent.gotoAndStop(2);
}
}
Symbol 101 Button
on (release) {
play();
}
Symbol 104 Button
on (release) {
_root.howtoplay.start();
_root.rules._visible = true;
}
Symbol 107 Button
on (release) {
loadMovieNum ("http://www.ultimatearcade.com/00games/arcade/set2/aliendiscipline/tell.swf", 4);
}
Symbol 110 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 114 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 134 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 149 Button
on (release) {
gotoAndStop (2);
}
Symbol 155 Button
on (release) {
gotoAndStop (1);
_root.rules._visible = false;
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
stop();
Symbol 174 MovieClip Frame 23
stop();
Symbol 182 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 186 MovieClip Frame 1
stop();
_root.thePlanet.healthBox._x = Math.round(Math.random() * 600);
Symbol 186 MovieClip Frame 10
stop();
Instance of Symbol 161 MovieClip in Symbol 186 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.shapeCollide) and (_root.gameOver != "yes")) {
_root.heartbeat.stop();
_root.bgLoop.start(1, 999);
_root.health.start();
_root.stats.health.gotoAndStop(10);
_parent.play();
}
}
Symbol 186 MovieClip Frame 22
gotoAndStop (1);
Instance of Symbol 197 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 100));
}
Symbol 216 MovieClip Frame 4
if (_root.biteSound._currentframe == 1) {
_root.stats.score = _root.stats.score - 10;
_root.biteSound.gotoAndPlay(2);
}
Symbol 216 MovieClip Frame 7
_root.stats.health.nextFrame();
Symbol 216 MovieClip Frame 20
if (_root.biteSound._currentframe == 1) {
_root.stats.score = _root.stats.score - 10;
_root.biteSound.gotoAndPlay(2);
}
Symbol 216 MovieClip Frame 23
_root.stats.health.nextFrame();
Symbol 220 MovieClip Frame 15
stop();
Symbol 230 MovieClip Frame 1
_root.splat.gotoAndPlay(2);
Symbol 230 MovieClip Frame 17
stop();
_parent.AlienReady = "yes";
if (_root.gameOver != "yes") {
_root.stats.kills++;
_root.stats.score = _root.stats.score + 100;
}
Symbol 231 MovieClip Frame 1
stop();
AlienReady = "no";
RandomTime = Math.round(Math.random() * 500);
Symbol 231 MovieClip Frame 2
stop();
Instance of Symbol 187 MovieClip "shape" in Symbol 231 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 202 MovieClip in Symbol 231 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 25));
}
Symbol 231 MovieClip Frame 10
stop();
Symbol 231 MovieClip Frame 21
stop();
Instance of Symbol 202 MovieClip in Symbol 231 MovieClip Frame 21
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 25));
}
Symbol 231 MovieClip Frame 29
stop();
Symbol 231 MovieClip Frame 39
stop();
Symbol 231 MovieClip Frame 48
stop();
Instance of Symbol 96 MovieClip "bomb" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
this.bombTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.thePlanet.bomb._currentframe != 1) {
this.bombTimer++;
if ((this.bombTimer > 100) and (this._currentframe != 2)) {
this.gotoAndStop(2);
}
if (((this.bombTimer > 80) and (this._currentframe != 2)) and (this._currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
play();
Symbol 234 MovieClip Frame 15
stop();
Symbol 234 MovieClip Frame 16
play();
Symbol 234 MovieClip Frame 29
stop();
Symbol 234 MovieClip Frame 30
play();
Symbol 234 MovieClip Frame 43
stop();
Symbol 234 MovieClip Frame 44
play();
Symbol 234 MovieClip Frame 57
stop();
Symbol 234 MovieClip Frame 58
play();
Symbol 234 MovieClip Frame 71
stop();
Symbol 234 MovieClip Frame 72
play();
Symbol 234 MovieClip Frame 85
stop();
Symbol 241 MovieClip Frame 22
stop();
Symbol 247 MovieClip Frame 22
stop();
Symbol 253 MovieClip Frame 22
stop();
Symbol 259 MovieClip Frame 22
stop();
Symbol 260 MovieClip Frame 1
stop();
Instance of Symbol 231 MovieClip "Alien1" in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien2" in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien4" in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien3" in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 234 MovieClip "bomb" in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this._currentframe == 1) and (_root.win != "yes")) and (_root.gameOver != "yes")) {
this.bombNumber = Math.round(Math.random() * 6);
if (this.bombNumber == 1) {
this.gotoAndPlay("one");
}
if (this.bombNumber == 2) {
this.gotoAndPlay("two");
}
if (this.bombNumber == 3) {
this.gotoAndPlay("three");
}
if (this.bombNumber == 4) {
this.gotoAndPlay("four");
}
if (this.bombNumber == 5) {
this.gotoAndPlay("five");
}
if (this.bombNumber == 6) {
this.gotoAndPlay("six");
}
}
}
Instance of Symbol 231 MovieClip "Alien6" in Symbol 260 MovieClip Frame 2
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien5" in Symbol 260 MovieClip Frame 2
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien8" in Symbol 260 MovieClip Frame 3
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Instance of Symbol 231 MovieClip "Alien7" in Symbol 260 MovieClip Frame 3
onClipEvent (load) {
this.AlienReady = "no";
this.AlienAlive = "no";
this.AlienSpeed = 2 + Math.round(Math.random() * 4);
}
onClipEvent (enterFrame) {
if (this.shape.hitTest(_root.hero.hero.wackShape)) {
this.AlienAlive = "no";
if (this._x > _root.hero._x) {
this.gotoAndStop("dieLeft");
} else {
this.gotoAndStop("dieRight");
}
}
if (this.hitTest(_root.hero.shapeCollide)) {
if (this._x > _root.hero._x) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
}
if (this.shape.hitTest(_root.hero.shape)) {
this.AlienNextToHero = "yes";
if (this._x > _root.hero._x) {
this.gotoAndStop("eatLeft");
} else {
this.gotoAndStop("eatRight");
}
} else {
this.AlienNextToHero = "no";
}
if (((this.AlienAlive == "yes") and (this.AlienNextToHero != "yes")) and (_root.win == "no")) {
if (this._x > _root.hero._x) {
this.gotoAndStop("left");
this._x = this._x - this.AlienSpeed;
}
if (this._x < _root.hero._x) {
this.gotoAndStop("right");
this._x = this._x + this.AlienSpeed;
}
}
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 1
_root.currentlyJumping = "none";
Symbol 283 MovieClip Frame 3
_root.thePlanet._y = 20;
Symbol 283 MovieClip Frame 4
_root.thePlanet._y = 25;
_root.currentlyJumping = "yes";
_parent.shape.gotoAndStop(2);
Symbol 283 MovieClip Frame 5
_root.thePlanet._y = 30;
Symbol 283 MovieClip Frame 6
_root.thePlanet._y = 35;
Symbol 283 MovieClip Frame 7
_root.thePlanet._y = 40;
Symbol 283 MovieClip Frame 11
_root.thePlanet._y = 35;
Symbol 283 MovieClip Frame 13
_root.thePlanet._y = 30;
Symbol 283 MovieClip Frame 15
_root.thePlanet._y = 25;
_root.currentlyExploding = "no";
_parent.shape.gotoAndStop(1);
_root.hero.gotoAndStop(1);
Symbol 290 MovieClip Frame 1
_root.currentlyJumping = "none";
Symbol 290 MovieClip Frame 7
_root.thePlanet._y = 35;
Instance of Symbol 288 MovieClip "wackShape" in Symbol 290 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
Symbol 290 MovieClip Frame 8
_root.thePlanet._y = 40;
Symbol 290 MovieClip Frame 10
_root.thePlanet._y = 35;
Symbol 290 MovieClip Frame 11
_root.thePlanet._y = 30;
Symbol 290 MovieClip Frame 12
_root.thePlanet._y = 25;
Symbol 290 MovieClip Frame 16
_root.hero.gotoAndStop(1);
Symbol 294 MovieClip Frame 13
stop();
Symbol 295 MovieClip Frame 1
stop();
_root.currentlyJumping = "no";
Instance of Symbol 261 MovieClip "shapeCollide" in Symbol 295 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 261 MovieClip "shape" in Symbol 295 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 69 MovieClip "igor" in Symbol 295 MovieClip Frame 1
onClipEvent (load) {
if (_root.heroDirection == "left") {
this.head.gotoAndStop(1);
}
if (_root.heroDirection == "right") {
this.head.gotoAndStop(2);
}
}
Symbol 295 MovieClip Frame 10
stop();
Symbol 295 MovieClip Frame 20
stop();
Symbol 295 MovieClip Frame 30
stop();
Instance of Symbol 272 MovieClip in Symbol 295 MovieClip Frame 30
onClipEvent (load) {
if (_root.heroDirection == "left") {
this.head.gotoAndStop(1);
}
if (_root.heroDirection == "right") {
this.head.gotoAndStop(2);
}
}
Symbol 295 MovieClip Frame 37
stop();
Instance of Symbol 283 MovieClip "jump" in Symbol 295 MovieClip Frame 37
onClipEvent (load) {
if (_root.heroDirection == "left") {
this.head.gotoAndStop(1);
}
if (_root.heroDirection == "right") {
this.head.gotoAndStop(2);
}
if (_root.currentlyExploding == "yes") {
_root.pain.start();
this.gotoAndPlay(4);
}
}
Symbol 295 MovieClip Frame 45
stop();
Symbol 295 MovieClip Frame 55
stop();
Symbol 295 MovieClip Frame 65
stop();
Instance of Symbol 261 MovieClip "shapeCollide" in Symbol 295 MovieClip Frame 65
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 308 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.shape)) {
_root.stats.health.nextFrame();
_root.currentlyExploding = "yes";
if (_root.currentlyJumping != "yes") {
_root.hero.gotoAndStop("jump");
}
}
}
Symbol 316 MovieClip Frame 35
stop();
stop();
Symbol 317 MovieClip Frame 1
stop();
done = "no";
_root.currentlyShooting = "no";
Symbol 317 MovieClip Frame 2
_root.currentlyShooting = "yes";
Symbol 317 MovieClip Frame 178
gotoAndStop (1);
Symbol 318 MovieClip Frame 1
stop();
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.stats.level == 1) and (_root.stats.score > 1000)) {
if ((((_root.thePlanet.Alien1._currentframe == 1) and (_root.thePlanet.Alien2._currentframe == 1)) and (_root.thePlanet.Alien3._currentframe == 1)) and (_root.thePlanet.Alien4._currentframe == 1)) {
this.play();
}
}
if (_root.stats.level == 2) {
if ((((((_root.thePlanet.Alien1._currentframe == 1) and (_root.thePlanet.Alien2._currentframe == 1)) and (_root.thePlanet.Alien3._currentframe == 1)) and (_root.thePlanet.Alien4._currentframe == 1)) and (_root.thePlanet.Alien5._currentframe == 1)) and (_root.thePlanet.Alien6._currentframe == 1)) {
this.play();
}
}
if (_root.stats.level > 2) {
if ((((((((_root.thePlanet.Alien1._currentframe == 1) and (_root.thePlanet.Alien2._currentframe == 1)) and (_root.thePlanet.Alien3._currentframe == 1)) and (_root.thePlanet.Alien4._currentframe == 1)) and (_root.thePlanet.Alien5._currentframe == 1)) and (_root.thePlanet.Alien6._currentframe == 1)) and (_root.thePlanet.Alien7._currentframe == 1)) and (_root.thePlanet.Alien8._currentframe == 1)) {
this.play();
}
}
}
Symbol 318 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 1
stop();
_root.healthGive = "sure";
Symbol 330 MovieClip Frame 14
_root.bgLoop.stop();
_root.heartbeat.start(1, 999);
Symbol 330 MovieClip Frame 15
if (_root.stats.level < 5) {
_root.stats.score = _root.stats.score - 500;
_root.thePlanet.healthBox.gotoAndPlay(2);
}
Symbol 330 MovieClip Frame 16
_root.heartbeat.stop();
_root.bgLoop.stop();
_root.gameOver = "yes";
_root.hero.gotoAndStop("dead");
_root.currentlyJumping = "no";
stop();
this.gameOverTimer = 0;
this.onEnterFrame = function () {
this.gameOverTimer++;
if (this.gameOverTimer > 25) {
_root.gameOverScreen.gotoAndStop(2);
}
};
Symbol 351 Button
on (release) {
_root.gotoAndStop("welcome");
}
Symbol 354 Button
on (release) {
loadMovieNum ("http://www.ultimatearcade.com/00games/arcade/set2/aliendiscipline/tell.swf", 4);
}
Symbol 357 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 377 Button
on (release) {
if (_root.url != "yes") {
getURL ("http://www.ultimatearcade.com/arcade/games/chomper.html", "_top");
} else {
_root.view_scores = 2;
loadMovieNum ("scores.xml", 25);
gotoAndStop (2);
}
}
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
healthPoints = (16 - _root.stats.health._currentframe) * 100;
_root.finalScore = ((_root.stats.score + _root.bombCount) + _root.stats.kills) + healthPoints;
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
play();
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
play();
Symbol 397 MovieClip Frame 15
gotoAndStop (1);
Symbol 408 Button
on (release) {
if (_root.url != "yes") {
getURL ("http://www.ultimatearcade.com/arcade/games/aliendiscipline.html", "_top");
} else {
_root.view_scores = 2;
loadMovieNum ("scores.xml", 25);
gotoAndStop (2);
}
}
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 44
healthPoints = (16 - _root.stats.health._currentframe) * 100;
_root.finalScore = ((_root.stats.score + _root.bombCount) + _root.stats.kills) + healthPoints;
stop();
Instance of Symbol 409 MovieClip in Symbol 419 MovieClip Frame 44
onClipEvent (load) {
if (_root.finalScore > 500) {
stop();
} else {
this.gotoAndStop(2);
}
}