Frame 1
stopAllSounds();
myWorld.destroy();
myStage.fadeIn(100);
play();
Frame 2
function LagManager(framerate) {
this.framerate = framerate;
this.lagTimer = getTimer();
this.prevTimer = getTimer();
this.lagged = false;
_root.__LagManager.lag = this;
_root.__LagManager.onEnterFrame = function () {
this.lag.doLag();
if (_root.__FPS) {
this.lag.displayFPS();
}
};
}
function Point(x, y) {
this._x = x;
this._y = y;
}
function World(maxSprites, terrain) {
this._maxSprites = maxSprites;
this.sprite = new Array(maxSprites);
this._scroll = true;
this._firstscroll = true;
this._scrollSpeed = 0.2;
this._centerx = Math.round(Stage.width / 2);
this._centery = Math.round(Stage.height / 2);
this._maxSafeSpdX = 20;
this._maxSafeSpdY = 20;
this.setTerrain(terrain);
}
function KeyboardKey(idName) {
this._idName = idName;
this._keyCode = -1;
this._wasDown = false;
this._isDown = this._wasDown;
this._downDuration = 0;
this._newPress = false;
}
function KeyboardPlayer(numOfKeys) {
this._bufferwait = 0;
this.buffer = new Array(5);
this._numOfKeys = numOfKeys;
this._enabled = true;
this.keys = new Array(numOfKeys);
}
function KeyboardManager(numOfPlayers, keysPerPlayer, genericKeys) {
this._bufferDelay = 0;
this._numOfPlayers = numOfPlayers;
this.players = new Array(numOfPlayers);
var i;
i = 0;
while (i < numOfPlayers) {
this.players[i] = new KeyboardPlayer(keysPerPlayer);
this.players[i]._parent = this;
i++;
}
this.generic = new KeyboardPlayer(genericKeys);
this.generic._parent = this;
}
function StageManager(frameFlag, frameColour, width, height) {
_root.__StageFader._r = 0;
_root.__StageFader._g = 0;
_root.__StageFader._b = 0;
if (frameFlag) {
_root.__StageFrame.lineStyle();
if (frameColour == "white") {
_root.__StageFrame.beginFill(16777215, 100);
} else if (frameColour == "black") {
_root.__StageFrame.beginFill(0, 100);
} else if (frameColour == "grey") {
_root.__StageFrame.beginFill(8355711, 100);
} else if (frameColour == "gray") {
_root.__StageFrame.beginFill(8355711, 100);
} else {
_root.__StageFrame.beginFill(0, 100);
}
_root.__StageFrame.moveTo(-1500, -1500);
_root.__StageFrame.lineTo(-1500, height + 1500);
_root.__StageFrame.lineTo(0, height + 1500);
_root.__StageFrame.lineTo(0, -1500);
_root.__StageFrame.moveTo(width + 1500, -1500);
_root.__StageFrame.lineTo(width + 1500, height + 1500);
_root.__StageFrame.lineTo(width, height + 1500);
_root.__StageFrame.lineTo(width, -1500);
_root.__StageFrame.moveTo(0, -1500);
_root.__StageFrame.lineTo(width, -1500);
_root.__StageFrame.lineTo(width, 0);
_root.__StageFrame.lineTo(0, 0);
_root.__StageFrame.moveTo(0, height);
_root.__StageFrame.lineTo(width, height);
_root.__StageFrame.lineTo(width, height + 1500);
_root.__StageFrame.lineTo(0, height + 1500);
_root.__StageFrame.endFill();
}
}
function SoundManager(channels, replaceOldest) {
this._replaceOldest = replaceOldest == true;
if (this._replaceOldest) {
currChannel = 0;
}
this._volume = 100;
this._channels = channels;
this.sound = new Array(channels);
var i;
i = 0;
while (i < this._channels) {
this.sound[i] = new Sound(_root.__SoundManager);
this.sound[i]._playing = false;
i++;
}
}
function MusicManager() {
this._fadeSpeed = 1;
this._playing = false;
this._volume = 100;
this.BGM = new Sound(_root.__MusicManager);
_root.__MusicManager.mm = this;
}
function TextManager(maxTextBoxes) {
this.textboxes = new Array(maxTextBoxes);
_root.__TextManager._punct = ".!?;:~";
}
function writeText(box, txt) {
_root.myKeyboard.update();
_root.myText.setTextbox(0, box);
_root.myText.setText(0, txt);
_root.myText.autoType(0, 1, 1, 12);
}
function pressedEnter() {
return((_root.myKeyboard.generic.getKey("space").isNew() || (_root.myKeyboard.generic.getKey("enter").isNew())) || (_root.myKeyboard.generic.getKey("jump").isNew()));
}
function pressedCancel() {
return(_root.myKeyboard.generic.getKey("attack").isNew());
}
function pressedAnyKey() {
return(((_root.myKeyboard.generic.getKey("space").isNew() || (_root.myKeyboard.generic.getKey("enter").isNew())) || (_root.myKeyboard.generic.getKey("attack").isNew())) || (_root.myKeyboard.generic.getKey("jump").isNew()));
}
function waitForText(t) {
_root.myKeyboard.enableAll();
_root.myKeyboard.update();
if (_root.pressedAnyKey()) {
_root.myText.instantType();
} else if (_root.myText.isTyping()) {
t.gotoAndPlay(t._currentframe - 1);
}
}
function pressAnyKey(t) {
_root.myKeyboard.update();
if (!_root.pressedAnyKey()) {
t.elipsis.play();
t.gotoAndPlay(t._currentframe - 1);
} else {
t.elipsis.gotoAndStop(1);
}
}
function isGroundIdle(sprite) {
return((!sprite._airborne) && (((sprite._state == "idle") || (sprite._state == "run")) || (sprite._state == "dash")));
}
function doZeroChargeBuster(sprite, mirror) {
if (mirror == null) {
mirror = 1;
} else {
mirror = -1;
}
if (sprite.charge2._twocharge) {
_root.mySound.playSound("shoot2");
if (sprite.facingLeft()) {
sprite.createProjectile("bullet2", sprite.runbuster._x, sprite.runbuster._y, (-bulletspeed) * mirror, 0);
} else {
sprite.createProjectile("bullet2", sprite.runbuster._x, sprite.runbuster._y, bulletspeed * mirror, 0);
}
} else {
_root.mySound.playSound("shoot1");
if (sprite.facingLeft()) {
sprite.createProjectile("bullet1", sprite.runbuster._x, sprite.runbuster._y, (-bulletspeed) * mirror, 0);
} else {
sprite.createProjectile("bullet1", sprite.runbuster._x, sprite.runbuster._y, bulletspeed * mirror, 0);
}
}
}
function doZeroBuster(sprite, mirror, run) {
if (mirror == null) {
mirror = 1;
} else {
mirror = -1;
}
if (run == null) {
run = "bullet";
} else {
run = "runbullet";
}
_root.mySound.playSound("shoot");
if (sprite.facingLeft()) {
sprite.createProjectile(run, sprite.runbuster._x, sprite.runbuster._y, (-bulletspeed) * mirror, 0);
} else {
sprite.createProjectile(run, sprite.runbuster._x, sprite.runbuster._y, bulletspeed * mirror, 0);
}
}
function doGunfire(sprite, pos, xspd, yspd) {
if (sprite.facingLeft()) {
sprite.createProjectile("enemybullet", pos._x, pos._y, xspd, yspd);
} else {
sprite.createProjectile("enemybullet", pos._x, pos._y, -xspd, yspd);
}
}
function doDartfire(sprite, pos, xspd, yspd) {
if (sprite.facingLeft()) {
sprite.createProjectile("enemydart", pos._x, pos._y, xspd, yspd);
} else {
sprite.createProjectile("enemydart", pos._x, pos._y, -xspd, yspd);
}
}
function pause() {
if (_root.myWorld.sprite[0]._hp > 0) {
_root.gotoAndPlay("pause");
_root.mySound.playSound("pause");
_root.myWorld.sprite[0].runsaber.stop();
_root.myWorld.mainframe.gotoAndStop("pause");
if (_root.myMusic._volume > 0) {
_root.myMusic.setVolume(30);
}
var i;
i = 0;
while (i < _root.myWorld._maxSprites) {
var s = _root.myWorld.sprite[i];
if (s && (!s._powerup)) {
s.stop();
}
i++;
}
}
}
function unpause() {
_root.gotoAndPlay("unpause");
if (_root.myWorld.sprite[0].runsaber._currentframe > 1) {
_root.myWorld.sprite[0].runsaber.play();
}
_root.myWorld.mainframe.gotoAndStop("unpause");
if (_root.myMusic._volume > 0) {
_root.myMusic.setVolume(100);
}
var i;
i = 0;
while (i < _root.myWorld._maxSprites) {
var s = _root.myWorld.sprite[i];
if (s && (!s._powerup)) {
s.play();
}
i++;
}
}
function isNear(sprite, s) {
return((Math.abs(sprite._x - s._x) < ((_stagewidth / 2) + 10)) && (Math.abs(sprite._y - s._y) < ((_stageheight / 2) + 10)));
}
function generateSaberID(sprite) {
sprite._saberID = Math.random();
}
function setEnemy(id, e) {
myWorld.setSprite(id, e);
initEnemy(myWorld.sprite[id]);
myWorld.sprite[id]._x = eval ("myWorld.terrain.bg.enemy" + id)._x - myWorld.terrain.bg._x;
myWorld.sprite[id]._y = eval ("myWorld.terrain.bg.enemy" + id)._y - myWorld.terrain.bg._y;
}
function initEnemy(e) {
e._boss = false;
if (e._id == "missile") {
e._collides = false;
e._gravity = 0;
e._invertHorizontal = true;
e._hpmax = 3;
} else if (e._id == "wheel") {
e._collides = true;
e._gravity = 1;
e._hpmax = 7;
} else if (e._id == "rat") {
e._invertHorizontal = true;
e._collides = true;
e._gravity = 1;
e._hpmax = 4;
} else if (e._id == "fan") {
e._collides = false;
e._gravity = 0;
e._invertHorizontal = true;
e._hpmax = 8;
} else if (e._id == "omega") {
e._collides = false;
e._gravity = 0;
e._hpmax = 64;
e._boss = true;
e._invertHorizontal = true;
} else if (e._id == "maha") {
e._collides = true;
e._gravity = 2;
e._hpmax = 96;
e._boss = true;
e._invertHorizontal = true;
} else if (e._id == "arach") {
e.setProjectiles(5);
e._collides = false;
e._gravity = 0;
e._hpmax = 64;
} else if (e._id == "copter") {
e.setProjectiles(2);
e._collides = false;
e._gravity = 0;
e._invertHorizontal = true;
e._hpmax = 8;
} else if (e._id == "shield") {
e.setProjectiles(2);
e._collides = false;
e._gravity = 0;
e._hpmax = 4;
} else if (e._id == "camera") {
e.setProjectiles(2);
e._collides = false;
e._gravity = 0;
e._invertHorizontal = true;
e._hpmax = 4;
} else if (e._id == "spike") {
e._collides = false;
e._gravity = 0;
e._hpmax = 2000;
}
e._hp = e._hpmax;
if (e._boss) {
_root.myWorld.mainframe.enemy_hp._visible = true;
e._hpmax = 128;
}
}
function resumeGame() {
_root.myWorld.setMainFrame("mainframe");
if (myWorld.sprite[0]._state == "stand") {
myWorld.sprite[0].setState("idle");
}
_root.gotoAndPlay("unpause");
}
function resetMission() {
_root._bossintroed = 0;
_root.gametime = 0;
_root.retries = 0;
_root.damage = 0;
_root.enemies = 0;
_root.saber = 0;
_root.buster = 0;
_root.elfs = 0;
}
function KeyToString(key) {
if (key == 8) {
return("Backspace");
}
if (key == 20) {
return("Caps Lock");
}
if (key == 17) {
return("Control");
}
if (key == 46) {
return("Delete");
}
if (key == 40) {
return("Down Arrow");
}
if (key == 35) {
return("End");
}
if (key == 13) {
return("Enter");
}
if (key == 27) {
return("Escape");
}
if (key == 36) {
return("Home");
}
if (key == 45) {
return("Insert");
}
if (key == 39) {
return("Right Arrow");
}
if (key == 34) {
return("Page Down");
}
if (key == 33) {
return("Page Up");
}
if (key == 39) {
return("Right Arrow");
}
if (key == 37) {
return("Left Arrow");
}
if (key == 16) {
return("Shift");
}
if (key == 32) {
return("Spacebar");
}
if (key == 9) {
return("Tab");
}
if (key == 38) {
return("Up Arrow");
}
if (key == 18) {
return("Alt");
}
if (key == 106) {
return("Numpad *");
}
if (key == 107) {
return("Numpad +");
}
if (key == 108) {
return("Numpad Enter");
}
if (key == 109) {
return("Numpad -");
}
if (key == 110) {
return("Numpad .");
}
if (key == 111) {
return("Numpad /");
}
if (key == 144) {
return("NumLock");
}
if (key == 186) {
return(": or ;");
}
if (key == 187) {
return("= or +");
}
if (key == 189) {
return("- or _");
}
if (key == 192) {
return("` or ~");
}
if (key == 219) {
return("[ or {");
}
if (key == 220) {
return("\\or |");
}
if (key == 221) {
return("] or }");
}
if (key == 222) {
return("\" or '");
}
if ((key > 95) && (key < 106)) {
return("Numpad " + String(key - 96));
}
if ((key > 111) && (key < 127)) {
return("F" + String(key - 111));
}
return(String.fromCharCode(key));
}
if (!_root.__LagManager) {
_root.createEmptyMovieClip("__LagManager", 581304);
}
LagManager.prototype.displayFPS = function () {
var delay = (getTimer() - this.prevTimer);
var FPS = Math.round(1000 / delay);
this.prevTimer = getTimer();
if (!_root.__FPS) {
_root.createTextField("__FPS", 581305, 0, 0, 40, 16);
_root.__FPS.selectable = false;
_root.__FPS.background = true;
var format = new TextFormat();
format.size = 8;
format.font = "FFF Neostandard Trial";
_root.__FPS.setTextFormat(0, format);
}
_root.__FPS.text = (FPS + "/") + this.framerate;
if (this.lagged) {
_root.__FPS.text = _root.__FPS.text + "*";
}
};
LagManager.prototype.doLag = function () {
this.lagged = false;
var delay = (getTimer() - this.lagTimer);
this.FPS = 1000 / delay;
while (this.FPS > (this.framerate + 2)) {
var delay = (getTimer() - this.lagTimer);
this.FPS = 1000 / delay;
this.lagged = true;
}
this.lagTimer = getTimer();
};
World.prototype.setTerrain = function (terrain) {
if (_root.__Terrain) {
_root.__Terrain.removeThisMovieClip();
}
_root.attachMovie(terrain, "__Terrain", 58001);
this.terrain = _root.__Terrain;
this.terrain.opaque._x = this.terrain.opaque._x - this.terrain.bg._x;
this.terrain.opaque._y = this.terrain.opaque._y - this.terrain.bg._y;
this.terrain.opaque2._x = this.terrain.opaque2._x - this.terrain.bg._x;
this.terrain.opaque2._y = this.terrain.opaque2._y - this.terrain.bg._y;
if (this.terrain.fg != undefined) {
this.terrain.fg._x = this.terrain.fg._x - this.terrain.bg._x;
this.terrain.fg._y = this.terrain.fg._y - this.terrain.bg._y;
}
this.terrain.bg._x = 0;
this.terrain.bg._y = 0;
};
World.prototype.setMainFrame = function (mainframe) {
if (_root.__MainFrame) {
_root.__MainFrame.removeThisMovieClip();
}
_root.attachMovie(mainframe, "__MainFrame", 59001);
this.mainframe = _root.__MainFrame;
this.mainframe._x = 0;
this.mainframe._y = 0;
};
World.prototype.destroy = function () {
this.terrain.removeMovieClip();
this.mainframe.removeMovieClip();
var i;
var j;
i = 0;
while (i < this._maxSprites) {
var s = this.sprite[i];
if (s) {
s.removeMovieClip();
if (s._maxProjectiles != null) {
j = 0;
while (j < s._maxProjectiles) {
s.projectile[j].removeThisMovieClip();
j++;
}
}
}
i++;
}
};
World.prototype.setSprite = function (index, spriteID) {
if (eval ("this.terrain.spriteLayer.__Sprite" + index)) {
eval ("this.terrain.spriteLayer.__Sprite" + index).removeThisMovieClip();
}
this.terrain.spriteLayer.attachMovie(spriteID, "__Sprite" + index, 58099 - index);
var sprite = eval ("this.terrain.spriteLayer.__Sprite" + index);
this.sprite[index] = sprite;
sprite._index = index;
sprite._id = spriteID;
sprite.init = function () {
this._collides = true;
this._pointCollision = false;
this._gravity = 2;
this._invertHorizontal = false;
this._running = false;
this._airborne = false;
this._hitWall = false;
this._invincible = false;
this._state = "idle";
this._xspd = 0;
this._yspd = 0;
this._xaccel = 0;
this._yaccel = 0;
this._maxXspd = 16;
this._maxYspd = 16;
this._hp = 1;
this._hpmax = 1;
};
sprite.setPosition = function (x, y) {
this._realx = x;
this._realy = y;
};
sprite.setState = function (state) {
this._state = state;
this.gotoAndPlay(state);
};
sprite.facingLeft = function () {
if (this._invertHorizontal) {
return(this._xscale > 0);
}
return(this._xscale < 0);
};
sprite.facingRight = function () {
return(!this.facingLeft());
};
sprite.faceLeft = function () {
if (!this.facingLeft()) {
this._xscale = this._xscale * -1;
}
};
sprite.faceRight = function () {
if (this.facingLeft()) {
this._xscale = this._xscale * -1;
}
};
sprite.setProjectiles = function (maxProjectiles) {
this._maxProjectiles = maxProjectiles;
this.projectile = new Array(maxProjectiles);
};
sprite.canProjectile = function () {
var nextIndex = 0;
while (nextIndex < this._maxProjectiles) {
if (eval ((("this.terrain.spriteLayer.__Projectile" + this._index) + "_") + nextIndex) == null) {
break;
}
nextIndex++;
}
return(nextIndex < this._maxProjectiles);
};
sprite.noProjectiles = function () {
var nextIndex = 0;
while (nextIndex < this._maxProjectiles) {
if (eval ((("this.terrain.spriteLayer.__Projectile" + this._index) + "_") + nextIndex) != null) {
return(false);
}
nextIndex++;
}
return(true);
};
sprite.createProjectile = function (projectileID, x, y, xspd, yspd) {
var nextIndex = 0;
while (nextIndex < this._maxProjectiles) {
if (eval ((("this._parent.__Projectile" + this._index) + "_") + nextIndex) == null) {
break;
}
nextIndex++;
}
if (nextIndex >= this._maxProjectiles) {
return(undefined);
}
this._parent.attachMovie(projectileID, (("__Projectile" + this._index) + "_") + nextIndex, (58102 + nextIndex) + (this._index * 100));
var projectile = eval ((("this._parent.__Projectile" + this._index) + "_") + nextIndex);
this.projectile[nextIndex] = projectile;
projectile._id = projectileID;
projectile._x = this._x + x;
projectile._y = this._y + y;
projectile._xspd = xspd;
projectile._yspd = yspd;
if (xspd < 0) {
projectile._xscale = projectile._xscale * -1;
}
if (this._xscale < 0) {
projectile._x = this._x - x;
}
};
sprite.init();
};
World.prototype.update = function () {
var i;
var j;
i = 0;
while (i < this._maxSprites) {
var s = this.sprite[i];
if (s) {
if ((s._simpleAI != null) && (s._state != "damage")) {
if ((s._simpleAI == "jump") && (!s._airborne)) {
s._xspd = 0;
if (s._state == "fall") {
s.setState("land");
} else if (s._state == "idle") {
s.setState("jump");
s._airborne = true;
s._yspd = -s._maxYspd;
}
} else if ((s._simpleAI == "jump") && (s._yspd > 0)) {
s._xspd = 0;
if (s._state != "fall") {
s.setState("fall");
}
}
if ((s._simpleAI == "backforth") && (s._hitWall)) {
if (s.facingLeft()) {
s.faceRight();
} else {
s.faceLeft();
}
}
if (((s._simpleAI == "forwardjump") && (s._hitWall)) && (!s._airborne)) {
if (s._state == "fall") {
s.setState("land");
} else if (s._state == "run") {
s.setState("jump");
s._airborne = true;
s._yspd = -s._maxYspd;
s._oldx = s._x - this.terrain.bg._x;
}
} else if ((s._simpleAI == "forwardjump") && (s._yspd > 0)) {
if (s._state != "fall") {
s.setState("fall");
}
if (s._oldx == (s._x - this.terrain.bg._x)) {
if (s.facingLeft()) {
s.faceRight();
} else {
s.faceLeft();
}
}
}
if (((s._simpleAI == "forward") || (s._simpleAI == "backforth")) || (s._simpleAI == "forwardjump")) {
if ((s._state != "run") && (!s._airborne)) {
s.setState("run");
}
if (s.facingLeft()) {
s._xspd = -s._maxXspd;
} else {
s._xspd = s._maxXspd;
}
}
}
s._yspd = s._yspd + s._gravity;
s._xspd = s._xspd + s._xaccel;
s._yspd = s._yspd + s._yaccel;
if (s._xspd > s._maxXspd) {
s._xspd = s._maxXspd;
} else if (s._xspd < (-s._maxXspd)) {
s._xspd = -s._maxXspd;
}
if (s._yspd > s._maxYspd) {
s._yspd = s._maxYspd;
} else if (s._yspd < (-s._maxYspd)) {
s._yspd = -s._maxYspd;
}
if (s._collides) {
this.collision(s);
}
s._x = s._x + s._xspd;
s._y = s._y + s._yspd;
j = 0;
while (j < s._maxProjectiles) {
var p = s.projectile[j];
if ((p != null) && (!p._dissolving)) {
p._x = p._x + p._xspd;
p._y = p._y + p._yspd;
}
j++;
}
}
i++;
}
if (this._scroll && (this.sprite[0])) {
var xchg = (this._centerx - this.sprite[0]._x);
var ychg = (this._centery - this.sprite[0]._y);
if (!this._firstscroll) {
xchg = Math.round(xchg * this._scrollSpeed);
ychg = Math.round(ychg * this._scrollSpeed);
} else {
this._firstscroll = false;
}
this.terrain.bg._x = this.terrain.bg._x + xchg;
this.terrain.bg._y = this.terrain.bg._y + ychg;
var bound;
bound = this.terrain.bg.boundLeft;
if (bound) {
var oldx = this.terrain.bg._x;
var oldy = this.terrain.bg._y;
if (((-this.terrain.bg._x) - bound._x) < 0) {
this.terrain.bg._x = -bound._x;
}
bound = this.terrain.bg.boundRight;
if (((-this.terrain.bg._x) - bound._x) > 0) {
this.terrain.bg._x = -bound._x;
}
bound = this.terrain.bg.boundTop;
if (((-this.terrain.bg._y) - bound._y) < 0) {
this.terrain.bg._y = -bound._y;
}
bound = this.terrain.bg.boundBottom;
if (((-this.terrain.bg._y) - bound._y) > 0) {
this.terrain.bg._y = -bound._y;
}
xchg = xchg + (this.terrain.bg._x - oldx);
ychg = ychg + (this.terrain.bg._y - oldy);
}
this.terrain.fg._x = this.terrain.fg._x + xchg;
this.terrain.fg._y = this.terrain.fg._y + ychg;
var i;
var j;
i = 0;
while (i < this._maxSprites) {
var s = this.sprite[i];
if (s) {
s._x = s._x + xchg;
s._y = s._y + ychg;
j = 0;
while (j < s._maxProjectiles) {
var p = s.projectile[j];
if (p) {
p._x = p._x + xchg;
p._y = p._y + ychg;
var xb = this.terrain.bg._x;
var yb = this.terrain.bg._y;
var b1 = this.terrain.bg.boundRight;
var b4 = this.terrain.bg.boundBottom;
if (_root.__Terrain.opaque2.test(p._x, p._y, true) && (!p._dissolving)) {
p._dissolving = true;
p.gotoAndPlay("dissolve");
} else if (((((p._x > b1._width) || (p._x < 0)) || (p._y > b4._height)) || (p._y < 0)) || (p._dissolved)) {
p.removeMovieClip();
}
}
j++;
}
}
i++;
}
}
};
MovieClip.prototype.test = function (x, y, shapeflag, sprite, dir) {
return(this.hitTest(x - this._parent.bg._x, y - this._parent.bg._y, true));
};
World.prototype.toTerrainY = function (y) {
return(y + this.terrain.bg._y);
};
World.prototype.toTerrainX = function (x) {
return(x + this.terrain.bg._x);
};
World.prototype.specialCollision = function (sprite) {
var i = 1;
var platform = this.terrain.bg.platform1;
var retval = false;
while (platform != undefined) {
var xchg = (this.toTerrainX(platform.getBounds().xMin + platform._x) - this.toTerrainX(platform._oldx));
var ychg = (this.toTerrainY(platform.getBounds().yMin + platform._y) - this.toTerrainY(platform._oldy));
if (((ychg > 0) && (!sprite._airborne)) && (sprite._yspd >= 0)) {
if (platform.hitTest(sprite._x + sprite._xspd, (sprite._y + ychg) + 2, false)) {
sprite._y = Math.floor(this.toTerrainY(platform.getBounds().yMin + platform._y) - 1);
sprite._x = sprite._x + xchg;
sprite._yspd = 0;
retval = true;
}
}
if (platform.hitTest(sprite._x + sprite._xspd, sprite._y + sprite._yspd, false)) {
if (sprite._y <= this.toTerrainY(platform._oldy)) {
sprite._y = Math.floor(this.toTerrainY(platform.getBounds().yMin + platform._y) - 1);
sprite._x = sprite._x + xchg;
sprite._yspd = 0;
sprite._airborne = false;
sprite._hitWall = false;
retval = true;
} else if (sprite._y >= (this.toTerrainY(platform._oldy) + platform._height)) {
sprite._y = Math.ceil(this.toTerrainY(platform.getBounds().yMax + platform._y) + 1);
if (sprite._yspd < 0) {
sprite._yspd = 0;
}
sprite._airborne = true;
sprite._hitWall = false;
retval = true;
} else if (sprite._x <= this.toTerrainX(platform._oldx)) {
sprite._x = Math.ceil(this.toTerrainX(platform.getBounds().xMin + platform._x) - 1);
sprite._xspd = 0;
sprite._airborne = true;
sprite._hitWall = true;
retval = true;
} else if (sprite._x >= (this.toTerrainX(platform._oldx) + platform._width)) {
sprite._x = Math.ceil(this.toTerrainX(platform.getBounds().xMax + platform._x) + 1);
sprite._xspd = 0;
sprite._airborne = true;
sprite._hitWall = true;
retval = true;
}
}
platform._oldx = platform.getBounds().xMin + platform._x;
platform._oldy = platform.getBounds().yMin + platform._y;
i++;
platform = eval ("this.terrain.bg.platform" + i);
}
return(retval);
};
World.prototype.nearWallLeft = function (sprite, proximity) {
return(this.terrain.opaque.test(sprite._x - proximity, sprite._y, true));
};
World.prototype.nearWallRight = function (sprite, proximity) {
return(this.terrain.opaque.test(sprite._x + proximity, sprite._y, true));
};
World.prototype.nearWall = function (sprite, proximity) {
return(this.nearWallLeft(sprite, proximity) || (this.nearWallRight(sprite, proximity)));
};
World.prototype.collision = function (sprite) {
sprite._hitWall = false;
var lazyStop = true;
var ychg = 1;
var xchg = 1;
var opaque = _root.__Terrain.opaque;
if (sprite._pointCollision) {
opaque = _root.__Terrain.opaque2;
}
if (opaque.test(sprite._x, sprite._y, true)) {
this._crazy = true;
}
if (this.specialCollision(sprite)) {
return(undefined);
}
if (sprite._yspd > 0) {
ychg = 1;
if (opaque.test(sprite._x, sprite._y + 1, true, sprite, "top")) {
sprite._yspd = 0;
sprite._airborne = false;
} else {
sprite._airborne = true;
lazyStop = false;
}
} else {
sprite._airborne = true;
ychg = -1;
lazyStop = false;
}
if (sprite._xspd > 0) {
xchg = 1;
if (opaque.test(sprite._x + 1, sprite._y, true)) {
sprite._xspd = 0;
sprite._hitWall = !sprite.facingLeft();
sprite._hitWall = sprite._hitWall | (sprite._state == "damage");
} else {
lazyStop = false;
}
} else if (sprite._xspd < 0) {
xchg = -1;
if (opaque.test(sprite._x - 1, sprite._y, true)) {
sprite._xspd = 0;
sprite._hitWall = sprite.facingLeft();
sprite._hitWall = sprite._hitWall | (sprite._state == "damage");
} else {
lazyStop = false;
}
}
if (!opaque.test(sprite._x + sprite._xspd, sprite._y + sprite._yspd, true)) {
if (opaque.test(sprite._x + 1, sprite._y, true)) {
sprite._hitWall = !sprite.facingLeft();
} else if (opaque.test(sprite._x - 1, sprite._y, true, sprite)) {
sprite._hitWall = sprite.facingLeft();
}
return(undefined);
}
if (lazyStop) {
return(undefined);
}
if (opaque.test(sprite._x + sprite._xspd, sprite._y, true)) {
sprite._xspd = sprite._xspd - (xchg * 2);
while (opaque.test(sprite._x + sprite._xspd, sprite._y, true)) {
sprite._xspd = sprite._xspd - (xchg * 2);
}
if (!opaque.test((sprite._x + sprite._xspd) + xchg, sprite._y, true)) {
sprite._xspd = sprite._xspd + xchg;
}
}
if (opaque.test(sprite._x + sprite._xspd, sprite._y + sprite._yspd, true)) {
sprite._yspd = sprite._yspd - (ychg * 2);
if (ychg > 0) {
sprite._airborne = false;
}
while (opaque.test(sprite._x + sprite._xspd, sprite._y + sprite._yspd, true)) {
sprite._yspd = sprite._yspd - (ychg * 2);
}
if (!opaque.test(sprite._x + sprite._xspd, (sprite._y + sprite._yspd) + ychg, true)) {
sprite._yspd = sprite._yspd + ychg;
}
} else {
sprite._airborne = true;
}
};
KeyboardKey.prototype.getKeyCode = function () {
return(this._keyCode);
};
KeyboardKey.prototype.setKeyCode = function (keyCode) {
this._keyCode = keyCode;
};
KeyboardKey.prototype.update = function () {
this._wasDown = this._isDown;
this._isDown = Key.isDown(this._keyCode);
this._newPress = (!this._wasDown) && (this._isDown);
if (this._newPress) {
this._parent.bufferKey(this._idName);
}
if (this._wasDown && (this._isDown)) {
this._downDuration++;
} else if (!this._isDown) {
this._downDuration = 0;
}
};
KeyboardKey.prototype.isDown = function () {
return(this._isDown && (this._parent._enabled));
};
KeyboardKey.prototype.downDuration = function () {
if (!this._parent._enabled) {
return(0);
}
return(this._downDuration);
};
KeyboardKey.prototype.isNew = function () {
return(this._newPress && (this._parent._enabled));
};
KeyboardPlayer.prototype.bufferKey = function (newIDName) {
var i;
i = 3;
while (i >= 0) {
this.buffer[i + 1] = this.buffer[i];
i--;
}
this.buffer[0] = newIDName;
this._bufferwait = 0;
};
KeyboardPlayer.prototype.clearBuffer = function () {
var i;
i = 0;
while (i < 5) {
this.buffer[i] = null;
i++;
}
this._bufferwait = 0;
};
KeyboardPlayer.prototype.isEnabled = function () {
return(this._enabled);
};
KeyboardPlayer.prototype.enable = function (flag) {
this._enabled = flag;
};
KeyboardPlayer.prototype.update = function () {
var i;
var idle = true;
i = 0;
while (i < this._numOfKeys) {
if (this.keys[i]) {
this.keys[i].update();
if (this.keys[i].isNew()) {
idle = false;
}
}
i++;
}
if (this._parent._bufferDelay > 0) {
if (idle && (this._bufferwait >= this._parent._bufferDelay)) {
this.bufferKey(null);
this._bufferwait = 0;
}
this._bufferwait++;
}
};
KeyboardPlayer.prototype.getKey = function (idName) {
var i;
i = 0;
while (i < this._numOfKeys) {
if (!this.keys[i]) {
this.keys[i] = new KeyboardKey(idName);
this.keys[i]._parent = this;
}
if (this.keys[i]._idName == idName) {
return(this.keys[i]);
}
i++;
}
trace("No such key ID: " + idName);
return(null);
};
KeyboardPlayer.prototype.setKey = function (idName, keyCode) {
this.getKey(idName).setKeyCode(keyCode);
};
KeyboardPlayer.prototype.combo2 = function (key0, key1) {
var success = ((this.buffer[0] == key1) && (this.buffer[1] == key0));
if (success) {
this.clearBuffer();
}
return(success);
};
KeyboardPlayer.prototype.combo3 = function (key0, key1, key2) {
var success = (((this.buffer[0] == key2) && (this.buffer[1] == key1)) && (this.buffer[2] == key0));
if (success) {
this.clearBuffer();
}
return(success);
};
KeyboardPlayer.prototype.combo4 = function (key0, key1, key2, key3) {
var success = ((((this.buffer[0] == key3) && (this.buffer[1] == key2)) && (this.buffer[2] == key1)) && (this.buffer[3] == key0));
if (success) {
this.clearBuffer();
}
return(success);
};
KeyboardPlayer.prototype.combo4 = function (key0, key1, key2, key3, key4) {
var success = (((((this.buffer[0] == key4) && (this.buffer[1] == key3)) && (this.buffer[2] == key2)) && (this.buffer[3] == key1)) && (this.buffer[4] == key0));
if (success) {
this.clearBuffer();
}
return(success);
};
KeyboardManager.prototype.setDelay = function (delay) {
this._bufferDelay = delay;
};
KeyboardManager.prototype.update = function () {
var i;
i = 0;
while (i < this._numOfPlayers) {
this.players[i].update();
i++;
}
this.generic.update();
};
KeyboardManager.prototype.enablePlayer = function (playerIndex) {
if (playerNum == -1) {
this.generic.enable(true);
} else {
this.players[playerIndex].enable(true);
}
};
KeyboardManager.prototype.disablePlayer = function (playerIndex) {
if (playerNum == -1) {
this.generic.enable(false);
} else {
this.players[playerIndex].enable(false);
}
};
KeyboardManager.prototype.enableAll = function () {
var i;
i = 0;
while (i < this._numOfPlayers) {
this.players[i].enable(true);
i++;
}
this.generic.enable(true);
};
KeyboardManager.prototype.disableAll = function () {
var i;
i = 0;
while (i < this._numOfPlayers) {
this.player[i].enable(false);
i++;
}
this.generic.enable(false);
};
if (!_root.__StageFrame) {
_root.createEmptyMovieClip("__StageFrame", 5818000);
}
if (!_root.__StageFader) {
_root.createEmptyMovieClip("__StageFader", 5818002);
}
if (!_root.__StageQuake) {
_root.createEmptyMovieClip("__StageQuake", 5818003);
}
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100 - amount));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
this.setTransform(trans);
};
StageManager.prototype.fadeIn = function (fadeSpeed) {
var clr = new Color(_root);
_root.__StageFader._fadeSpeed = fadeSpeed;
_root.__StageFader._alpha = 100;
_root.__StageFader.onEnterFrame = function () {
var clr = new Color(_root);
_root.__StageFader._alpha = _root.__StageFader._alpha - _root.__StageFader._fadeSpeed;
if (_root.__StageFader._alpha <= 0) {
_root.__StageFader._alpha = 0;
_root.__StageFader.onEnterFrame = null;
}
clr.setTint(_root.__StageFader._r, _root.__StageFader._g, _root.__StageFader._b, _root.__StageFader._alpha);
};
};
StageManager.prototype.fadeOut = function (r, g, b, fadeSpeed) {
var clr = new Color(_root);
_root.__StageFader._fadeSpeed = fadeSpeed;
_root.__StageFader._r = r;
_root.__StageFader._g = g;
_root.__StageFader._b = b;
_root.__StageFader._alpha = 0;
_root.__StageFader.onEnterFrame = function () {
var clr = new Color(_root);
_root.__StageFader._alpha = _root.__StageFader._alpha + _root.__StageFader._fadeSpeed;
if (_root.__StageFader._alpha >= 100) {
_root.__StageFader._alpha = 100;
_root.__StageFader.onEnterFrame = null;
}
clr.setTint(_root.__StageFader._r, _root.__StageFader._g, _root.__StageFader._b, _root.__StageFader._alpha);
};
};
StageManager.prototype.instantFade = function () {
_root.__StageFader._fadeSpeed = 100;
};
StageManager.prototype.isFading = function () {
return(_root.__StageFader.onEnterFrame != null);
};
StageManager.prototype.getSize = function () {
return(_root._xscale);
};
StageManager.prototype.setSize100 = function () {
_root._xscale = 100;
_root._yscale = 100;
_root._x = 0;
_root._y = 0;
};
StageManager.prototype.setSize50 = function () {
_root._xscale = 50;
_root._yscale = 50;
_root._x = Stage.width / 4;
_root._y = Stage.height / 4;
};
StageManager.prototype.setSize75 = function () {
_root._xscale = 75;
_root._yscale = 75;
_root._x = Stage.width / 8;
_root._y = Stage.height / 8;
};
StageManager.prototype.startQuake = function () {
_root.__StageQuake._startY = _root._y;
_root.__StageQuake._startX = _root._x;
_root.__StageQuake.onEnterFrame = function () {
_root._y = (_root.__StageQuake._startY + Math.round(Math.random() * 10)) - 5;
_root._x = (_root.__StageQuake._startX + Math.round(Math.random() * 10)) - 5;
};
};
StageManager.prototype.endQuake = function () {
_root.__StageQuake.onEnterFrame = null;
_root._y = _root.__StageQuake._startY;
_root._x = _root.__StageQuake._startX;
};
if (!_root.__SoundManager) {
_root.createEmptyMovieClip("__SoundManager", 5813002);
}
SoundManager.prototype.getVolume = function () {
return(this._volume);
};
SoundManager.prototype.setVolume = function (volume) {
this._volume = volume;
};
SoundManager.prototype.stopAllSounds = function () {
var i;
i = 0;
while (i < this._channels) {
if (this.sound[i]) {
this.sound[i].stop();
this.sound[i]._playing = false;
}
i++;
}
};
SoundManager.prototype.getFreeChannel = function () {
if (this._replaceOldest) {
currChannel = (currChannel + 1) % this._channels;
if (this.sound[i]._playing) {
this.sound[i].stop();
this.sound[i]._playing = false;
}
return(currChannel);
}
var i;
i = 0;
while (i < this._channels) {
if (!this.sound[i]._playing) {
return(i);
}
i++;
}
return(-1);
};
SoundManager.prototype.loadSound = function (soundExportID) {
var channel = this.getFreeChannel();
if (channel != -1) {
this.sound[channel].attachSound(soundExportID);
}
return(channel);
};
SoundManager.prototype.playSound = function (soundExportID) {
var channel = this.loadSound(soundExportID);
if (channel == -1) {
} else {
this.sound[channel].setVolume(this._volume);
this.sound[channel].start();
this.sound[channel]._playing = true;
this.sound[channel].onSoundComplete = function () {
this._playing = false;
};
return(this.sound[channel]);
}
};
if (!_root.__MusicManager) {
_root.createEmptyMovieClip("__MusicManager", 5813001);
}
MusicManager.prototype.isPlaying = function () {
return(this._playing);
};
MusicManager.prototype.getVolume = function () {
return(this._volume);
};
MusicManager.prototype.setVolume = function (volume) {
this._volume = volume;
if (this.BGM) {
this.BGM.setVolume(this._volume);
}
};
MusicManager.prototype.stop = function () {
if (this.BGM) {
this._playing = false;
this.BGM.stop();
this.BGM.setVolume(0);
_root.__MusicManager.onEnterFrame = null;
}
};
MusicManager.prototype.play = function () {
if (this.BGM) {
this._playing = true;
this.BGM.stop();
this.BGM.start();
this.BGM.setVolume(this._volume);
_root.__MusicManager.onEnterFrame = null;
}
};
MusicManager.prototype.fadeIn = function (speed) {
if (this.BGM) {
this._fadeSpeed = speed;
_root.__MusicManager.onEnterFrame = function () {
this.mm.BGM.setVolume(this.mm.BGM.getVolume() + this.mm._fadeSpeed);
if (this.mm.BGM.getVolume() >= this.mm.getVolume()) {
this.mm.BGM.setVolume(this.mm.getVolume());
_root.__MusicManager.onEnterFrame = null;
}
};
this.BGM.stop();
this.BGM.setVolume(0);
this.BGM.start();
this._playing = true;
}
};
MusicManager.prototype.fadeOut = function (speed) {
if (this.BGM) {
this._fadeSpeed = speed;
_root.__MusicManager.onEnterFrame = function () {
this.mm.BGM.setVolume(this.mm.BGM.getVolume() - this.mm._fadeSpeed);
if (this.mm.BGM.getVolume() <= 0) {
_root.__MusicManager.onEnterFrame = null;
this.mm.BGM.stop();
this.mm._playing = false;
}
};
}
};
MusicManager.prototype.blastIn = function (speed) {
if (this.BGM) {
this._fadeSpeed = speed;
_root.__MusicManager.onEnterFrame = function () {
this.mm.BGM.setVolume(this.mm.BGM.getVolume() - this.mm._fadeSpeed);
if (this.mm.BGM.getVolume() <= 100) {
this.mm.BGM.setVolume(100);
_root.__MusicManager.onEnterFrame = null;
}
};
this.BGM.stop();
this.BGM.start();
this._playing = true;
}
};
MusicManager.prototype.load = function (musicExportID, loopFlag) {
if (this.BGM) {
this.stop();
}
this.BGM._id = musicExportID;
this.BGM.attachSound(musicExportID);
this.BGM.setVolume(this._volume);
if (loopFlag) {
this.BGM.onSoundComplete = function () {
this.start();
};
} else {
this.BGM.onSoundComplete = function () {
_parent._playing = false;
};
}
};
if (!_root.__TextManager) {
_root.createEmptyMovieClip("__TextManager", 581303);
}
TextManager.prototype.setTextbox = function (id, box) {
this.textboxes[id] = box;
box._text = text;
box.text = "";
box.multiline = true;
box.wordWrap = true;
};
TextManager.prototype.setText = function (id, text) {
this.textboxes[id]._text = text;
};
TextManager.prototype.nextChar = function (id) {
var box = this.textboxes[id];
box.text = box._text.substring(0, box.text.length + 1);
_root.__TextManager.onEnterFrame = null;
};
TextManager.prototype.setDelays = function (delay, commaDelay, punctDelay) {
_root.__TextManager._delay = delay;
_root.__TextManager._commaDelay = commaDelay;
_root.__TextManager._punctDelay = punctDelay;
};
TextManager.prototype.instantType = function () {
_root.__TextManager.box.text = _root.__TextManager.box._text;
_root.__TextManager.onEnterFrame = null;
};
TextManager.prototype.autoType = function (id, delay, commaDelay, punctDelay) {
var box = this.textboxes[id];
_root.__TextManager.box = box;
this.setDelays(delay, commaDelay, punctDelay);
_root.__TextManager._wait = delay;
_root.__TextManager.onEnterFrame = function () {
this._wait--;
if ((this._wait <= 0) || (this._delay < 0)) {
this._wait = this._delay;
var nextChar = this.box._text.charAt(this.box.text.length);
var nextNextChar = this.box._text.charAt(this.box.text.length + 1);
if (this._delay < 0) {
} else if ((this._punct.indexOf(nextChar) != -1) && (this._punct.indexOf(nextNextChar) == -1)) {
this._wait = this._punctDelay;
} else if (nextChar == ",") {
this._wait = this._commaDelay;
}
var numChars = 1;
if (this._wait < 0) {
numChars = numChars - this._wait;
}
this.box.text = this.box._text.substring(0, this.box.text.length + numChars);
if (this.box.text.length == this.box._text.length) {
_root.__TextManager.onEnterFrame = null;
}
}
};
};
TextManager.prototype.isTyping = function () {
return(_root.__TextManager.onEnterFrame != null);
};
_stagewidth = 360;
_stageheight = 240;
_rememberhp = 16;
_continues = 2;
_ecrystals = 0;
_subtanks = 0;
_subtank1 = 0;
_subtank2 = 0;
_subtank3 = 0;
_subtank4 = 0;
_mission0complete = false;
_mission1complete = false;
_mission2complete = false;
_mission3complete = false;
_mission4complete = false;
_mission5complete = false;
_playtime = 0;
_difficulty = "Normal";
_dmgmod = 1;
max_bullets = 4;
_busterpower = 1;
_dashbusterpower = 1.5;
_chargedbusterpower = 3;
_doublechargedbusterpower = 6;
_saberpower = 4;
_runsaberpower = 3;
_dashsaberpower = 5;
_chargedsaberpower = 8;
fanstrength = 2;
charge_threshold1 = 15;
charge_threshold2 = 72;
walldashable = 0;
walldashable_duration = 15;
bulletspeed = 10;
MINX_WALL = 20;
MAXX_WALL = _stagewidth - MINX_WALL;
_secondaryWeapon = true;
_attackmode = "C";
myStage = new StageManager(true, "black", _stagewidth, _stageheight);
myKeyboard = new KeyboardManager(0, 0, 21);
myKeyboard.generic.setKey("enter", 13);
myKeyboard.generic.setKey("space", 32);
myKeyboard.generic.setKey("p", 80);
myKeyboard.generic.setKey("q", 81);
myKeyboard.generic.setKey("left", 65);
myKeyboard.generic.setKey("right", 68);
myKeyboard.generic.setKey("up", 87);
myKeyboard.generic.setKey("down", 83);
myKeyboard.generic.setKey("jump", 71);
myKeyboard.generic.setKey("attack", 70);
myKeyboard.generic.setKey("dash", 82);
myKeyboard.generic.setKey("secondary", 84);
myKeyboard.setDelay(8);
mySound = new SoundManager(20);
myMusic = new MusicManager();
myText = new TextManager(1);
myLag = new LagManager(30);
fscommand ("fullscreen", false);
fscommand ("trapallkeys", true);
play();
_quality = "HIGH";
hardunlocked = false;
myLocal_so = sharedobject.getLocal("zero");
if (myLocal_so.data.hardunlocked) {
_root.hardunlocked = myLocal_so.data.hardunlocked;
}
Frame 5
_quality = "LOW";
gotoAndPlay (79);
Frame 599
_root.attachMovie("flashportalbar", "__permanent", 59405);
__permanent._x = 0;
__permanent._y = 0;
s2._visible = mySound._volume == 0;
m2._visible = myMusic._volume == 0;
s1._visible = !s2._visible;
m1._visible = !m2._visible;
Frame 601
this.gotoAndPlay(this._currentframe - 1);
Frame 602
hard._visible = hardunlocked;
_busterpower = 1;
_dashbusterpower = 1.5;
_chargedbusterpower = 3;
_doublechargedbusterpower = 6;
_saberpower = 4;
_runsaberpower = 3;
_dashsaberpower = 5;
_chargedsaberpower = 8;
charge_threshold1 = 15;
charge_threshold2 = 72;
Frame 604
this.gotoAndPlay(this._currentframe - 1);
Frame 605
_gettingNewKey = false;
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "left";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "right";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "up";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "down";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "attack";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "jump";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "dash";
}
Instance of Symbol 1086 MovieClip in Frame 605
onClipEvent (load) {
keyName = "secondary";
}
Frame 607
this.gotoAndPlay(this._currentframe - 1);
Frame 608
terrain = undefined;
myMusic.stop();
Frame 609
mySound.playSound("slash");
Frame 612
mySound.playSound("break");
Frame 630
mySound.playSound("slash");
Frame 633
mySound.playSound("break");
Frame 643
mySound.playSound("dash");
Frame 647
mySound.playSound("damage");
Frame 664
terrain = undefined;
myMusic.load("impossible", true);
myMusic.play();
Frame 720
var txt = "Damn.\nThere's too many of them...";
_root.writeText(this.box, txt);
Frame 722
_root.waitForText(this);
Frame 724
_root.pressAnyKey(this);
Frame 725
var txt = "Mother Elf is losing energy.\nHer barrier won't hold much\nlonger and I'm--";
_root.writeText(this.box, txt);
Frame 727
_root.waitForText(this);
Frame 729
_root.pressAnyKey(this);
Frame 760
var txt = "Zero!!";
_root.writeText(this.box, txt);
Frame 762
_root.waitForText(this);
Frame 764
_root.pressAnyKey(this);
Frame 765
var txt = "Mother Elf, please help me.";
_root.writeText(this.box, txt);
Frame 767
_root.waitForText(this);
Frame 769
_root.pressAnyKey(this);
Frame 770
var txt = "Lend me your power!";
_root.writeText(this.box, txt);
Frame 772
_root.waitForText(this);
Frame 774
_root.pressAnyKey(this);
Frame 974
myMusic.load("revolution");
myMusic.play();
Frame 1135
var txt = "Thank you, guardians, for\nhelping me keep Neo Arcadia\nsafe. You are all dismissed.";
_root.writeText(this.box, txt);
Frame 1137
_root.waitForText(this);
Frame 1139
_root.pressAnyKey(this);
Frame 1141
var txt = "Yes, Master X.";
_root.writeText(this.box, txt);
Frame 1143
_root.waitForText(this);
Frame 1145
_root.pressAnyKey(this);
Frame 1151
_root.mySound.playSound("warpout");
Frame 1171
var txt = "Master X. Dr Weil wishes to\nspeak with you.";
_root.writeText(this.box, txt);
Frame 1173
_root.waitForText(this);
Frame 1175
_root.pressAnyKey(this);
Frame 1177
var txt = "...\nI'm aware of it.\nI will speak with him alone.";
_root.writeText(this.box, txt);
Frame 1179
_root.waitForText(this);
Frame 1181
_root.pressAnyKey(this);
Frame 1192
var txt = "Understood.";
_root.writeText(this.box, txt);
Frame 1194
_root.waitForText(this);
Frame 1196
_root.pressAnyKey(this);
Frame 1197
_root.mySound.playSound("warpout");
Frame 1210
myMusic.load("screen");
myMusic.play();
_root.mySound.playSound("warpin");
Frame 1223
var txt = "What is it, Dr Weil?";
_root.writeText(this.box, txt);
Frame 1225
_root.waitForText(this);
Frame 1227
_root.pressAnyKey(this);
Frame 1229
var txt = "Master X, I'm requesting\nfor consent to continue\nProject Elpis again.";
_root.writeText(this.box, txt);
Frame 1231
_root.waitForText(this);
Frame 1233
_root.pressAnyKey(this);
Frame 1235
var txt = "We've discussed this before.\nIt is no longer necessary\nto continue the research.";
_root.writeText(this.box, txt);
Frame 1237
_root.waitForText(this);
Frame 1239
_root.pressAnyKey(this);
Frame 1240
var txt = "The Maverick War is coming\nto its end. It has already\nserved its purpose.";
_root.writeText(this.box, txt);
Frame 1242
_root.waitForText(this);
Frame 1244
_root.pressAnyKey(this);
Frame 1246
var txt = "But Master X! Imagine the\npossibilities! We can attain\nlimitless power!";
_root.writeText(this.box, txt);
Frame 1248
_root.waitForText(this);
Frame 1250
_root.pressAnyKey(this);
Frame 1252
var txt = "Dr Aile has told me about your\nstudies. It is impossible to\nstabilize its reaction.";
_root.writeText(this.box, txt);
Frame 1254
_root.waitForText(this);
Frame 1256
_root.pressAnyKey(this);
Frame 1257
var txt = "Your consent has been denied.\nWhy don't you help Dr Aile with\nher energy research instead?";
_root.writeText(this.box, txt);
Frame 1259
_root.waitForText(this);
Frame 1261
_root.pressAnyKey(this);
Frame 1263
var txt = "But...\n...\nAs you wish, Master X.";
_root.writeText(this.box, txt);
Frame 1265
_root.waitForText(this);
Frame 1267
_root.pressAnyKey(this);
Frame 1269
_root.mySound.playSound("warpout");
_root.myMusic.load("prismatic");
_root.myMusic.play();
Frame 1327
var txt = "Hmph. Looks like not all\nhumans are grateful for Neo\nArcadia's 'greatest hero'.";
_root.writeText(this.box, txt);
Frame 1329
_root.waitForText(this);
Frame 1331
_root.pressAnyKey(this);
Frame 1332
var txt = "Grown tired of managing the\ncentral council yet, X?";
_root.writeText(this.box, txt);
Frame 1334
_root.waitForText(this);
Frame 1336
_root.pressAnyKey(this);
Frame 1338
var txt = "I'm just glad humans can finally\nfind some peace here in Neo\nArcadia.";
_root.writeText(this.box, txt);
Frame 1340
_root.waitForText(this);
Frame 1342
_root.pressAnyKey(this);
Frame 1343
var txt = "Oh, Zero. I heard that the\nrepairs on your original body\nare almost complete.";
_root.writeText(this.box, txt);
Frame 1345
_root.waitForText(this);
Frame 1347
_root.pressAnyKey(this);
Frame 1349
var txt = "It's about time they finished.\nI've been stuck in this imitation\nfor five months already.";
_root.writeText(this.box, txt);
Frame 1351
_root.waitForText(this);
Frame 1353
_root.pressAnyKey(this);
Frame 1354
var txt = "And to think it was merely a\nchild who built this body...";
_root.writeText(this.box, txt);
Frame 1356
_root.waitForText(this);
Frame 1358
_root.pressAnyKey(this);
Frame 1400
var txt = "Zero...";
_root.writeText(this.box, txt);
Frame 1402
_root.waitForText(this);
Frame 1404
_root.pressAnyKey(this);
Frame 1465
door.play();
Frame 1523
var txt = "...\nYou're the only one working\non the repairs?";
_root.writeText(this.box, txt);
Frame 1525
_root.waitForText(this);
Frame 1527
_root.pressAnyKey(this);
Frame 1538
var txt = "Oh, Zero! Actually, everyone\njust went for a short break.";
_root.writeText(this.box, txt);
Frame 1540
_root.waitForText(this);
Frame 1542
_root.pressAnyKey(this);
Frame 1543
var txt = "I'm almost finish... I just need to\nrecalibrate the kinesis system.\nHehe..";
_root.writeText(this.box, txt);
Frame 1545
_root.waitForText(this);
Frame 1547
_root.pressAnyKey(this);
Frame 1548
var txt = "...";
_root.writeText(this.box, txt);
Frame 1550
_root.waitForText(this);
Frame 1552
_root.pressAnyKey(this);
Frame 1553
_root.myStage.startQuake();
_root.myMusic.load("quake", true);
_root.myMusic.play();
Frame 1579
var txt = "...?";
_root.writeText(this.box, txt);
Frame 1581
_root.waitForText(this);
Frame 1583
_root.pressAnyKey(this);
Frame 1584
_root.myStage.endQuake();
_root.myMusic.stop();
_root.mySound.playSound("powerout");
Frame 1610
_root.mySound.playSound("warpin");
Frame 1617
_root.mySound.playSound("warpout");
Frame 1618
var txt = "Gyah!! What's going on?!";
_root.writeText(this.box, txt);
Frame 1620
_root.waitForText(this);
Frame 1622
_root.pressAnyKey(this);
Frame 1657
var txt = "My body! It's gone!";
_root.writeText(this.box, txt);
Frame 1659
_root.waitForText(this);
Frame 1661
_root.pressAnyKey(this);
Frame 1662
var txt = "Huh? Oh no! Where'd it go?!";
_root.writeText(this.box, txt);
Frame 1664
_root.waitForText(this);
Frame 1666
_root.pressAnyKey(this);
Frame 1667
_root.mySound.playSound("siren");
Frame 1688
_root.mySound.playSound("siren");
Frame 1713
_root.mySound.playSound("siren");
Frame 1714
_root.myMusic.load("caravan", true);
_root.myMusic.play();
Frame 1715
var txt = "VOICE:\nI-It's Mother Elf! She is--\nShe's attacking the reploids!";
_root.writeText(this.box, txt);
Frame 1717
_root.waitForText(this);
Frame 1719
_root.pressAnyKey(this);
Frame 1720
var txt = "What...? Mother Elf?";
_root.writeText(this.box, txt);
Frame 1722
_root.waitForText(this);
Frame 1724
_root.pressAnyKey(this);
Frame 1726
door.play();
Frame 1745
zero.gotoAndPlay("run");
Frame 1844
reploid.gotoAndPlay("damage");
_root.mySound.playSound("hurt3");
Frame 1853
zero.gotoAndPlay("dash");
Frame 1863
zero.gotoAndPlay("dash");
Frame 1883
var txt = "He's... blacked out.";
_root.writeText(this.box, txt);
Frame 1885
_root.waitForText(this);
Frame 1887
_root.pressAnyKey(this);
Frame 1888
var txt = "What's happened to Mother\nElf?";
_root.writeText(this.box, txt);
Frame 1890
_root.waitForText(this);
Frame 1892
_root.pressAnyKey(this);
Frame 1903
var txt = "Mother Elf has escaped\nto the roof!";
_root.writeText(this.box, txt);
Frame 1905
_root.waitForText(this);
Frame 1907
_root.pressAnyKey(this);
Frame 1918
var txt = "...\nI should follow her.\n(Press UP to enter doors)";
_root.writeText(this.box, txt);
Frame 1920
_root.waitForText(this);
Frame 1922
_root.pressAnyKey(this);
Frame 1939
_miniboss = false;
if (terrain == undefined) {
_root.resetMission();
codename = "[ Warrior ]";
terrain = "neo-03";
_mission = 0;
_missionstart = true;
_bossintroed = false;
level = "F";
_root.avgsum = 0;
_root.avgnum = 0;
_elf1a = 0;
_elf2a = 0;
_elf3a = 0;
_elf4a = 0;
_elf1b = 0;
_elf2b = 0;
_elf3b = 0;
_elf4b = 0;
_elf1c = 0;
_elf2c = 0;
_elf3c = 0;
_elf4c = 0;
} else if (((terrain == "throne") || (terrain == "neo-01")) && (myMusic.BGM._id != "prismatic")) {
myMusic.load("prismatic", true);
myMusic.play();
if (_results) {
_results = false;
if (_mission == 0) {
text = "text-mission0-end";
} else if (_mission == 1) {
text = "text-mission1-end";
} else if (_mission == 2) {
text = "text-mission2-end";
} else if (_mission == 3) {
text = "text-mission3-end";
} else if (_mission == 4) {
text = "text-mission4-end";
} else if (_mission == 5) {
text = "text-mission5-end";
}
textout = "unpause";
gotoAndPlay (1954);
}
} else if ((terrain == "rooftops-01") && (myMusic.BGM._id != "caravan")) {
if (_mission0complete) {
_escapable = true;
}
myMusic.load("caravan", true);
myMusic.play();
} else if (terrain == "factory-01") {
myMusic.load("factory", true);
myMusic.play();
} else if (terrain == "factory-03") {
_miniboss = true;
myMusic.load("crash", true);
myMusic.play();
} else if (!myMusic.isPlaying()) {
myMusic.play();
}
myWorld = new World(23, terrain);
myWorld.setMainFrame("mainframe");
if (_missionstart) {
_missionstart = false;
myWorld.mainframe.mission.gotoAndPlay("start");
}
myWorld._centerx = _stagewidth / 2;
myWorld._centery = _stageheight / 2;
myWorld.setSprite(0, "zero");
myWorld.setSprite(21, "zero");
myWorld.sprite[21]._shadow = true;
myWorld.sprite[21]._visible = false;
myWorld.sprite[21]._collides = false;
myWorld.sprite[21]._gravity = 0;
myWorld.sprite[21]._maxXspd = 8;
myWorld.sprite[21]._maxYspd = 11;
var clr = new Color(myWorld.sprite[21]);
clr.setTint(152, 16, 64, 70);
myWorld.setSprite(22, "zero");
myWorld.sprite[22]._shadow = true;
myWorld.sprite[22]._visible = false;
myWorld.sprite[22]._collides = false;
myWorld.sprite[22]._gravity = 0;
myWorld.sprite[22]._maxXspd = 8;
myWorld.sprite[22]._maxYspd = 11;
clr = new Color(myWorld.sprite[22]);
clr.setTint(152, 16, 64, 70);
myWorld.sprite[0]._invincible = 0;
var contpoint = eval ("myWorld.terrain.bg." + prevterrain);
if (contpoint == undefined) {
contpoint = myWorld.terrain.bg.startPoint;
}
myWorld.sprite[0]._x = contpoint._x - myWorld.terrain.bg._x;
myWorld.sprite[0]._y = contpoint._y - myWorld.terrain.bg._y;
myWorld.sprite[0].setProjectiles(max_bullets);
myWorld.sprite[0]._gravity = 1;
myWorld.sprite[0]._wallspd = 2;
myWorld.sprite[0]._wallkickspd = 3;
myWorld.sprite[0]._dashslashspd = 4;
myWorld.sprite[0]._runspd = 4;
myWorld.sprite[0]._dashspd = 8;
myWorld.sprite[0]._maxXspd = 8;
myWorld.sprite[0]._maxYspd = 11;
myWorld.sprite[0]._hpmax = 16;
myWorld.sprite[0]._hp = _rememberhp;
myWorld.sprite[0].charge1._visible = false;
myWorld.sprite[0].charge2._visible = false;
myWorld.sprite[0].charge1.gotoAndStop(1);
myWorld.sprite[0].charge2.gotoAndStop(1);
switch (terrain) {
case "rooftops-01" :
setEnemy(1, "copter");
setEnemy(2, "missile");
setEnemy(3, "fan");
setEnemy(4, "fan");
setEnemy(5, "missile");
setEnemy(6, "copter");
setEnemy(7, "missile");
if (!myMusic.isPlaying()) {
myMusic.play();
}
break;
case "rooftops-02" :
setEnemy(1, "copter");
setEnemy(2, "missile");
setEnemy(3, "missile");
setEnemy(4, "wheel");
setEnemy(5, "wheel");
setEnemy(6, "copter");
if (!myMusic.isPlaying()) {
myMusic.play();
}
break;
case "rooftops-03" :
setEnemy(1, "copter");
setEnemy(2, "missile");
setEnemy(3, "missile");
setEnemy(4, "rat");
setEnemy(5, "rat");
setEnemy(6, "copter");
setEnemy(7, "fan");
myWorld.sprite[7]._xscale = myWorld.sprite[7]._xscale * (-1);
setEnemy(8, "rat");
setEnemy(9, "rat");
setEnemy(10, "copter");
setEnemy(11, "rat");
setEnemy(12, "rat");
setEnemy(13, "item_HP2");
setEnemy(14, "item_Z");
if (!myMusic.isPlaying()) {
myMusic.play();
}
break;
case "rooftops-boss" :
myMusic.load("guarder", true);
myMusic.play();
if (_mission0complete) {
myMusic.stop();
myWorld.sprite[0].setState("teleport");
}
break;
case "factory-boss" :
myMusic.load("guarder", true);
myMusic.play();
if (_mission2complete) {
myMusic.stop();
myWorld.sprite[0].setState("teleport");
}
break;
case "rooftops-boss2" :
setEnemy(1, "omega");
myMusic.stop();
myMusic.load("boss", true);
myKeyboard.disableAll();
break;
case "factory-boss2" :
setEnemy(1, "maha");
myMusic.stop();
myMusic.load("boss", true);
myKeyboard.disableAll();
break;
case "factory-01" :
setEnemy(1, "camera");
setEnemy(2, "camera");
setEnemy(3, "camera");
setEnemy(4, "shield");
setEnemy(5, "camera");
setEnemy(6, "item_EC2");
setEnemy(7, "item_EC2");
break;
case "factory-02" :
setEnemy(1, "spike");
setEnemy(2, "spike");
myWorld.sprite[2]._rotation = -90;
setEnemy(3, "camera");
setEnemy(4, "camera");
setEnemy(5, "shield");
setEnemy(6, "shield");
setEnemy(7, "shield");
setEnemy(8, "shield");
setEnemy(9, "shield");
setEnemy(10, "shield");
setEnemy(11, "spike");
setEnemy(12, "item_EC2");
setEnemy(13, "item_EC2");
break;
case "factory-03" :
setEnemy(1, "arach");
setEnemy(2, "spike");
myWorld.sprite[2]._rotation = -90;
setEnemy(3, "spike");
break;
case "factory-04" :
setEnemy(1, "copter");
setEnemy(2, "spike");
myWorld.sprite[2]._rotation = -90;
setEnemy(3, "shield");
setEnemy(4, "shield");
setEnemy(5, "camera");
setEnemy(6, "item_EC2");
setEnemy(7, "item_HP2");
break;
case "factory-05" :
setEnemy(1, "shield");
setEnemy(2, "shield");
setEnemy(3, "spike");
setEnemy(4, "camera");
setEnemy(5, "spike");
setEnemy(6, "spike");
setEnemy(7, "spike");
setEnemy(8, "camera");
setEnemy(9, "camera");
setEnemy(10, "camera");
setEnemy(11, "item_Z");
}
if ((terrain == "throne") && (prevterrain != "neo-02")) {
_escapable = false;
myWorld.sprite[0]._hp = myWorld.sprite[0]._hpmax;
trace(myWorld.sprite[0]._hp);
myWorld.sprite[0].setState("appear");
}
prevterrain = terrain;
lastpoint = contpoint;
restDelay = 0;
myWorld.update();
if (myWorld.sprite[0]._state == "teleport") {
terrain = "throne";
gotoAndPlay (1960);
}
Frame 1940
x22 = x22b;
y22 = y22b;
x22b = x21;
y22b = y21;
x21 = x21b;
y21 = y21b;
x21b = sprite._x - myWorld.terrain.bg._x;
y21b = sprite._y - myWorld.terrain.bg._y;
myKeyboard.update();
var upnew = myKeyboard.generic.getKey("up").isNew();
var updown = myKeyboard.generic.getKey("up").isDown();
var rightnew = myKeyboard.generic.getKey("right").isNew();
var rightdown = myKeyboard.generic.getKey("right").isDown();
var leftnew = myKeyboard.generic.getKey("left").isNew();
var leftdown = myKeyboard.generic.getKey("left").isDown();
var jumpnew = myKeyboard.generic.getKey("jump").isNew();
var jumpdown = myKeyboard.generic.getKey("jump").isDown();
var dashnew = myKeyboard.generic.getKey("dash").isNew();
var dashdown = myKeyboard.generic.getKey("dash").isDown();
var attacknew = myKeyboard.generic.getKey("attack").isNew();
var attackdown = myKeyboard.generic.getKey("attack").isDown();
var attackhold = myKeyboard.generic.getKey("attack").downDuration();
var secondarynew = myKeyboard.generic.getKey("secondary").isNew();
var secondarydown = myKeyboard.generic.getKey("secondary").isDown();
var secondaryhold = myKeyboard.generic.getKey("secondary").downDuration();
var sprite = myWorld.sprite[0];
if (sprite._hp <= 0) {
sprite = null;
}
if (sprite._airborne && (myKeyboard.generic.combo2("left", "left") || (myKeyboard.generic.combo2("right", "right")))) {
walldashable = walldashable_duration;
} else if (walldashable > 0) {
walldashable--;
}
if (_attackmode == "C") {
if (secondarynew) {
_secondaryWeapon = !_secondaryWeapon;
_root.mySound.playSound("switch");
}
secondarynew = attacknew && (_secondaryWeapon);
secondaryhold = attackhold;
attacknew = attacknew && (!_secondaryWeapon);
secondarydown = attackdown || (!_secondaryWeapon);
attackdown = attackdown || (_secondaryWeapon);
}
if (!sprite.charge1._visible) {
if (attackhold > charge_threshold1) {
sprite.charge1._visible = true;
sprite.charge1.gotoAndPlay("charge1");
} else {
sprite.charge1._visible = false;
sprite.charge1.gotoAndStop(1);
}
} else if ((attackhold >= charge_threshold2) && (!sprite.charge1._twocharge)) {
sprite.charge1._visible = true;
sprite.charge1.gotoAndPlay("charge2");
sprite.charge1._twocharge = true;
}
if (!sprite.charge2._visible) {
if (secondaryhold > charge_threshold1) {
sprite.charge2._visible = true;
sprite.charge2.gotoAndPlay("charge1");
} else {
sprite.charge2._visible = false;
sprite.charge2.gotoAndStop(1);
}
} else if ((secondaryhold >= charge_threshold2) && (!sprite.charge2._twocharge)) {
sprite.charge2._visible = true;
sprite.charge2.gotoAndPlay("charge2");
sprite.charge2._twocharge = true;
}
if ((sprite.chargeSound._charge < 1) && (sprite.charge1._visible || (sprite.charge2._visible))) {
sprite.chargeSound._charge = 1;
sprite.chargeSound.gotoAndPlay("charge1");
} else if ((sprite.chargeSound._charge < 2) && (sprite.charge1._twocharge || (sprite.charge2._twocharge))) {
sprite.chargeSound._charge = 2;
sprite.chargeSound.gotoAndPlay("charge2");
}
attacknew = attacknew || ((sprite.charge1._visible && (!sprite.charge1._twocharge)) && (!attackdown));
var i;
i = 1;
while (i < 21) {
var s = myWorld.sprite[i];
if (s) {
if (s._hp > 0) {
if (s._bossstart) {
s._bossstart = false;
myMusic.play();
myKeyboard.enableAll();
}
if (s._hp > 1000) {
s._hp = 2000;
}
switch (s._id) {
case "omega" :
if (s._ai == undefined) {
s._state = "growl";
s._ai = 1;
}
if (s._state == "idle") {
var rnd = Math.ceil(Math.random() * 3);
while (rnd == s._ai) {
rnd = Math.ceil(Math.random() * 3);
}
s._ai = rnd;
if (rnd <= 1) {
s.setState("claw");
} else if (rnd <= 2) {
s.setState("shoot");
} else {
s.setState("ring");
}
}
break;
case "maha" :
if (s._ai == undefined) {
s._state = "intro";
s._ai = 25;
}
if (s._ai > 0) {
s._ai--;
}
if (s._state == "idle") {
s._xspd = 0;
}
if (s._state == "walk") {
if (s.facingLeft()) {
s._xspd = -2;
} else {
s._xspd = 2;
}
if (s._ai == 0) {
s.setState("idle");
s._ai = 30;
}
}
if (s._state == "handing") {
if (s.facingLeft()) {
s._xspd = -1;
} else {
s._xspd = 1;
}
if (s._ai == 0) {
s.setState("idle");
s._ai = 30;
}
}
if (s._state == "rolling") {
if (s.facingLeft()) {
if (s._xspd > -9) {
s._xspd--;
}
} else if (s._xspd < 9) {
s._xspd++;
}
if (s._hitwall) {
s._ai = 40;
if (Math.random() < 0.5) {
s.setState("rollout");
s._yspd = -22;
if (s.facingLeft()) {
s._xspd = 6;
} else {
s._xspd = -6;
}
} else {
s.setState("rolling");
s._yspd = -22;
s._xspd = 0;
if (sprite._x > s._x) {
if (s.facingLeft()) {
s._x = s._x + 15;
}
s.faceRight();
} else {
if (!s.facingLeft()) {
s._x = s._x - 15;
}
s.faceLeft();
}
}
}
}
if ((s._state == "idle") && (s._ai == 0)) {
var rnd = Math.ceil(Math.random() * 3);
s._ai = rnd;
if (sprite._x > s._x) {
if (s.facingLeft()) {
s._x = s._x + 15;
}
s.faceRight();
} else {
if (!s.facingLeft()) {
s._x = s._x - 15;
}
s.faceLeft();
}
if (rnd <= 1) {
s.setState("walk");
s._ai = 70;
} else if (rnd <= 2) {
s._yspd = -10;
s.setState("roll");
} else {
s.setState("hand");
s._ai = 60;
}
}
break;
case "arach" :
if (s._state == "fire") {
s._state = "shoot";
doGunfire(s, s.gun1, 0, 4);
doGunfire(s, s.gun1, 1, 3);
doGunfire(s, s.gun1, 3, 1);
doGunfire(s, s.gun1, 4, 0);
}
break;
case "rat" :
if (s._ai == undefined) {
s._ai = "wait";
s._xspd = 0;
s._flag = false;
}
if (s._ai == "wait") {
if (isNear(sprite, s)) {
s._ai = "run";
s._num = 10 + Math.round(Math.random() * 20);
if (sprite._x < s._x) {
s.faceLeft();
s._xspd = -5;
} else {
s.faceRight();
s._xspd = 5;
}
}
} else {
if (s._ai == "run") {
if (s.facingLeft()) {
s._xspd = -5;
} else {
s._xspd = 5;
}
}
s._num--;
if (!s._airborne) {
if (s._flag) {
s._flag = false;
s.gotoAndPlay("run");
}
if (s._num <= 0) {
if (Math.random() < 0.5) {
s.gotoAndPlay("run");
s._ai = "run";
s._num = 10 + Math.round(Math.random() * 20);
if (sprite._x < s._x) {
s.faceLeft();
s._xspd = -5;
} else {
s.faceRight();
s._xspd = 5;
}
} else {
s._ai = "idle";
s.gotoAndPlay("idle");
s._num = 5 + Math.round(Math.random() * 10);
s._xspd = 0;
}
} else if ((s._ai == "run") && (Math.random() < 0.05)) {
s.gotoAndPlay("jump");
s._yspd = -10;
}
} else if (s._yspd >= 0) {
s.gotoAndPlay("fall");
s._flag = true;
}
}
break;
case "wheel" :
if (s._ai == undefined) {
s._ai = "wait";
s._xspd = 0;
}
if (s._ai == "wait") {
if (Math.abs(s._x - sprite._x) < (_stagewidth + 10)) {
s._ai = "forward";
mySound.playSound("tire");
if (sprite._x < s._x) {
s.faceLeft();
s._xspd = -6;
} else {
s.faceRight();
s._xspd = 6;
}
}
} else if (s._ai == "forward") {
if (((s.facingLeft() && (sprite._x > s._x)) || ((!s.facingLeft()) && (sprite._x < s._x))) && (!s._airborne)) {
if (s.facingLeft()) {
s._ai = "turnright";
} else {
s._ai = "turnleft";
}
s.gotoAndPlay("turn");
}
if (s.facingLeft()) {
if (s._xspd > -6) {
s._xspd = s._xspd - 0.25;
}
} else if (s._xspd < 6) {
s._xspd = s._xspd + 0.25;
}
} else if (s._ai == "turnright") {
if (s._xspd < 0) {
s._xspd = s._xspd + 0.25;
} else if (s._xspd < 6) {
s._xspd = s._xspd + 0.5;
} else {
s._ai = "forward";
}
} else if (s._ai == "turnleft") {
if (s._xspd > 0) {
s._xspd = s._xspd - 0.25;
} else if (s._xspd > -6) {
s._xspd = s._xspd - 0.5;
} else {
s._ai = "forward";
}
}
if (s._xspd > 0) {
if (s.facingLeft()) {
s.gotoAndPlay("run");
}
s.faceRight();
} else if (s._xspd < 0) {
if (!s.facingLeft()) {
s.gotoAndPlay("run");
}
s.faceLeft();
}
if (!s._airborne) {
if ((s._ai != "turnleft") && (s._ai != "turnright")) {
if (s.facingLeft() && (__Terrain.opaque.test(s._x - s.jump._x, s.jump._y + s._y, true))) {
s._yspd = -12;
} else if ((!s.facingLeft()) && (__Terrain.opaque.test(s.jump._x + s._x, s.jump._y + s._y, true))) {
s._yspd = -12;
}
} else if (s._hitwall) {
s._yspd = -12;
}
}
break;
case "missile" :
if (s._ai == undefined) {
s._ai = "wait";
}
if (s._ai == "wait") {
if (Math.abs(s._x - sprite._x) < (_stagewidth / 2)) {
s._ai = "down";
}
} else if (s._ai == "down") {
if (s._y < sprite._y) {
s._y = s._y + 4;
if (s._y < sprite._y) {
s._y = s._y + 4;
}
} else {
s._ai = "forward";
}
if (sprite._x < s._x) {
s.faceLeft();
} else {
s.faceRight();
}
}
if (s._ai == "forward") {
if (s.facingLeft()) {
s._x = s._x - 6;
} else {
s._x = s._x + 6;
}
}
break;
case "fan" :
if (sprite.area.hitTest(s.effect)) {
if (s.facingLeft()) {
sprite._forcexspd = sprite._forcexspd - fanstrength;
} else {
sprite._forcexspd = sprite._forcexspd + fanstrength;
}
}
break;
case "copter" :
if (s._ai == undefined) {
s._ai = "down";
s._num = 50;
s._wait = Math.round(Math.random() * 60);
s._num2 = 0;
}
if (sprite._x < s._x) {
s.faceLeft();
} else {
s.faceRight();
}
if ((s._wait <= 0) && (s.noProjectiles())) {
s.setState("fire");
s._wait = 60 + Math.round(Math.random() * 90);
doGunfire(s, s.gun1, -3, -2);
doGunfire(s, s.gun2, -3, 2);
s._num2 = 20;
}
if (s._num2 > 0) {
s._num2--;
} else {
if (isNear(sprite, s)) {
s._wait--;
}
if (s._ai == "down") {
if (s._num > 0) {
s._y++;
s._num--;
} else {
s._ai = "lowwait";
s._num = 10;
}
} else if (s._ai == "up") {
if (s._num > 0) {
s._y--;
s._num--;
} else {
s._ai = "highwait";
s._num = 10;
}
} else if (s._ai == "lowwait") {
if (s._num > 0) {
s._num--;
} else {
s._ai = "up";
s._num = 50;
}
} else if (s._ai == "highwait") {
if (s._num > 0) {
s._num--;
} else {
s._ai = "down";
s._num = 50;
}
}
}
break;
case "shield" :
s._xspd = 0;
if (s._state == "idle") {
if (s.facingLeft()) {
s._xspd = -3;
} else {
s._xspd = 3;
}
} else if (s._state == "slow") {
if (s.facingLeft()) {
s._xspd = -1;
} else {
s._xspd = 1;
}
} else if (s._state == "fire") {
s._state = "shoot";
doDartfire(s, s.gun1, -5, 0);
}
break;
case "camera" :
if ((sprite.area.hitTest(s.scout) && (s._state == "idle")) && (s.noProjectiles())) {
s.setState("shoot");
}
if (s._state == "fire") {
s._state = "shoot";
doGunfire(s, s.gun1, -5, 2);
doGunfire(s, s.gun2, -4, 4);
}
break;
case "spike" :
if (s._ai == undefined) {
s._ai = "right";
if (s._rotation != 0) {
s._ai = "up";
}
}
if (s._rotation != 0) {
if (((!myWorld.terrain.opaque2.test(s._x - 10, s._y, true)) || (myWorld.terrain.opaque2.test(s._x, s._y + 10, true))) || (myWorld.terrain.opaque2.test(s._x, s._y - 10, true))) {
if (s._ai == "up") {
s._ai = "down";
} else {
s._ai = "up";
}
}
if (s._ai == "up") {
s._yspd = -4;
} else {
s._yspd = 4;
}
} else {
if (((!myWorld.terrain.opaque2.test(s._x, s._y + 10, true)) || (myWorld.terrain.opaque2.test(s._x + 10, s._y, true))) || (myWorld.terrain.opaque2.test(s._x - 10, s._y, true))) {
if (s._ai == "left") {
s._ai = "right";
} else {
s._ai = "left";
}
}
if (s._ai == "left") {
s._xspd = -4;
} else {
s._xspd = 4;
}
}
}
}
}
i++;
}
if (_miniboss && (myWorld.sprite[1]._state == "die")) {
if (myWorld.sprite[2]) {
myWorld.sprite[2].removeMovieClip();
myWorld.sprite[3].removeMovieClip();
}
}
if (_miniboss && (myWorld.sprite[1]._state == "dead")) {
_miniboss = false;
if (terrain == "factory-03") {
myMusic.load("factory", true);
myMusic.play();
}
}
if (sprite._state == "damage") {
} else if (sprite._state == "facewall") {
} else if ((((myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false) || (myWorld.terrain.bg.exit2.hitTest(sprite._x, sprite._y, false))) && (sprite._hitwall)) && (((((sprite._state == "idle") || (sprite._state == "jump")) || (sprite._state == "fall")) || (sprite._state == "run")) || (sprite._state == "dash"))) && (!_miniboss)) {
if ((terrain == "sci-lab") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "neo-03";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "energy-rm") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "neo-03";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "throne") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "neo-02";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-01") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "factory-02";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-02") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "factory-03";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-03") && (myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false))) {
myWorld.terrain.bg.door.play();
terrain = "factory-04";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-04") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.door.play();
terrain = "factory-05";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-05") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.door.play();
terrain = "factory-boss";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "factory-boss") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.door.play();
terrain = "factory-boss2";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "rooftops-01") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
terrain = "rooftops-02";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "rooftops-02") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
terrain = "rooftops-03";
_root.gotoAndPlay("fadeout");
} else if ((terrain == "rooftops-03") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
terrain = "rooftops-boss";
myWorld.terrain.bg.door.play();
_root.gotoAndPlay("fadeout");
} else if ((terrain == "rooftops-boss") && myWorld.terrain.bg.exit1.hitTest(sprite._x, sprite._y, false)) {
terrain = "rooftops-boss2";
myWorld.terrain.bg.door.play();
_root.gotoAndPlay("fadeout");
}
} else if ((isGroundIdle(sprite) && (upnew)) && (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false) || (myWorld.terrain.bg.npc2.hitTest(sprite._x, sprite._y, false)))) {
sprite.setState("stand");
if (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false)) {
if (myWorld.terrain.bg.npc1.isFacingLeft()) {
sprite.faceLeft();
} else {
sprite.faceRight();
}
} else if (myWorld.terrain.bg.npc2.hitTest(sprite._x, sprite._y, false)) {
if (myWorld.terrain.bg.npc2.isFacingLeft()) {
sprite.faceLeft();
} else {
sprite.faceRight();
}
}
} else if ((isGroundIdle(sprite) && (upnew)) && (((myWorld.terrain.bg.door1.hitTest(sprite._x, sprite._y, false) || (myWorld.terrain.bg.door2.hitTest(sprite._x, sprite._y, false))) || (myWorld.terrain.bg.door3.hitTest(sprite._x, sprite._y, false))) || (myWorld.terrain.bg.door4.hitTest(sprite._x, sprite._y, false)))) {
if ((!_mission0complete) && (!myWorld.terrain.bg.door4.hitTest(sprite._x, sprite._y, false))) {
sprite.setState("idle");
text = "text-gotoroof";
textout = "unpause";
_root.gotoAndPlay("text");
} else {
sprite._comboDone = false;
sprite.setState("facewall");
}
} else if ((isGroundIdle(sprite) || ((((sprite._hitWall || (myWorld.nearWall(sprite, 5))) && (sprite._state != "wallkick")) && (sprite._x > MINX_WALL)) && (sprite._x < MAXX_WALL))) && (jumpnew)) {
sprite._yspd = -sprite._maxYspd;
if (!sprite._airborne) {
if (sprite._state == "dash") {
sprite._dashair = true;
sprite._state = "jump";
sprite.gotoAndPlay("dashjump");
sprite._airborne = true;
} else {
sprite.setState("jump");
sprite._airborne = true;
}
} else {
if (dashdown || (walldashable > 0)) {
sprite._state = "wallkick";
sprite.gotoAndPlay("dashwallkick");
sprite._dashair = true;
} else {
sprite.setState("wallkick");
sprite._dashair = false;
}
if (sprite._hitWall) {
} else if (sprite.facingLeft() && (!myWorld.nearWallLeft(sprite, 5))) {
sprite.faceRight();
} else if ((!sprite.facingLeft()) && (!myWorld.nearWallRight(sprite, 5))) {
sprite.faceLeft();
}
}
} else if ((((sprite._state == "jumpslash") || (sprite._state == "chargedjumpslash")) && (sprite._yspd < 0)) && (!jumpdown)) {
sprite._yspd = 0;
} else if ((((sprite._state == "jump") || (sprite._state == "wallkick")) && (sprite._yspd < 0)) && (!jumpdown)) {
sprite._yspd = 0;
if (sprite._dashair) {
sprite._state = "fall";
sprite.gotoAndPlay("dashfall");
} else {
sprite.setState("fall");
}
} else if ((((((sprite._state == "fall") || (sprite._state == "jumpslash")) && (sprite._hitWall)) && (sprite._x > MINX_WALL)) && (sprite._x < MAXX_WALL)) && (leftdown || rightdown)) {
sprite._yspd = 1;
sprite.setState("wallslide");
sprite._dashair = false;
} else if ((sprite._state == "wallbuster") && sprite._hitWall) {
sprite._yspd = sprite._wallspd;
} else if ((sprite._state == "chargedwallslash") && sprite._hitWall) {
sprite._yspd = sprite._wallspd;
} else if ((sprite._state == "wallslash") && sprite._hitWall) {
sprite._yspd = sprite._wallspd;
} else if (((sprite._state == "wallslide") && sprite._hitWall) && (leftdown || rightdown)) {
sprite._yspd = sprite._wallspd;
} else if ((sprite._state == "wallslide") || (sprite._state == "wallslash")) {
sprite.setState("fall");
if (sprite._wallslideloop) {
if (sprite.facingLeft()) {
sprite.faceRight();
} else {
sprite.faceLeft();
}
}
}
if (sprite._state == "wallkick") {
if (sprite.facingLeft()) {
sprite._xspd = sprite._wallkickspd;
} else {
sprite._xspd = -sprite._wallkickspd;
}
if (sprite._dashair) {
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
}
}
if (sprite._state == "damage") {
} else if (sprite.charge1._twocharge && (!attackdown)) {
if (((((sprite._state == "idle") || (sprite._state == "jump")) || (sprite._state == "run")) || (sprite._state == "dash")) && (!sprite._airborne)) {
if (sprite._state == "jump") {
sprite.setState("chargedjumpslash");
generateSaberID(sprite);
} else {
sprite.setState("chargedslash");
generateSaberID(sprite);
}
} else if ((((sprite._state == "jump") || (sprite._state == "fall")) || (sprite._state == "wallkick")) && (sprite._airborne)) {
sprite.setState("chargedjumpslash");
generateSaberID(sprite);
} else if ((sprite._state == "wallslide") && (sprite._airborne)) {
sprite.setState("chargedwallslash");
generateSaberID(sprite);
}
} else if ((((!secondarydown) && (sprite.charge2._visible)) && (sprite.canProjectile())) && (sprite._state == "wallslide")) {
sprite.gotoAndPlay("wallbuster");
doZeroChargeBuster(sprite, true);
sprite._yspd = sprite._wallspd;
sprite._dashair = false;
} else if ((secondarynew && (sprite.canProjectile())) && (sprite._state == "wallslide")) {
sprite.gotoAndPlay("wallbuster");
doZeroBuster(sprite, true);
sprite._yspd = sprite._wallspd;
sprite._dashair = false;
} else if (attacknew && (sprite._state == "wallslide")) {
sprite.setState("wallslash");
generateSaberID(sprite);
sprite._yspd = sprite._wallspd;
sprite._dashair = false;
} else if (((((!secondarydown) && (sprite.charge2._visible)) && (sprite.canProjectile())) && (((sprite._state == "jump") || (sprite._state == "fall")) || (sprite._state == "wallkick"))) && (sprite._airborne)) {
sprite.gotoAndPlay("jumpbuster");
doZeroChargeBuster(sprite);
} else if (((secondarynew && (sprite.canProjectile())) && (((sprite._state == "jump") || (sprite._state == "fall")) || (sprite._state == "wallkick"))) && (sprite._airborne)) {
sprite.gotoAndPlay("jumpbuster");
doZeroBuster(sprite);
} else if ((attacknew && (((sprite._state == "jump") || (sprite._state == "fall")) || (sprite._state == "wallkick"))) && (sprite._airborne)) {
sprite.setState("jumpslash");
generateSaberID(sprite);
} else if ((((((!secondarydown) && (sprite.charge2._visible)) && (sprite.canProjectile())) && (leftdown || rightdown)) && ((sprite._state == "run") || (sprite._state == "idle"))) && (!sprite._airborne)) {
if (sprite._state == "idle") {
sprite.setState("run");
}
sprite.runbuster.gotoAndPlay(2);
doZeroChargeBuster(sprite);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._runspd;
} else {
sprite._xspd = sprite._runspd;
}
} else if ((((secondarynew && sprite.canProjectile()) && (leftdown || rightdown)) && ((sprite._state == "run") || (sprite._state == "idle"))) && (!sprite._airborne)) {
if (sprite._state == "idle") {
sprite.setState("run");
}
sprite.runbuster.gotoAndPlay(2);
doZeroBuster(sprite);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._runspd;
} else {
sprite._xspd = sprite._runspd;
}
} else if ((((attacknew && (leftdown || rightdown)) && ((sprite._state == "run") || (sprite._state == "idle"))) && (sprite.runsaber._currentframe == 1)) && (!sprite._airborne)) {
if (sprite._state == "idle") {
sprite.setState("run");
}
sprite.runsaber.play();
generateSaberID(sprite);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._runspd;
} else {
sprite._xspd = sprite._runspd;
}
} else if (sprite._state == "dashbuster") {
if (!sprite._airborne) {
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else {
sprite._xspd = 0;
sprite.setState("fall");
}
} else if (sprite._state == "dashslash") {
if (!sprite._airborne) {
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashslashspd;
} else {
sprite._xspd = sprite._dashslashspd;
}
} else {
sprite._xspd = 0;
sprite.setState("fall");
}
} else if (((((!secondarydown) && sprite.charge2._visible) && sprite.canProjectile()) && (sprite._state == "dash")) && (!sprite._airborne)) {
sprite.gotoAndPlay("dashbuster");
doZeroChargeBuster(sprite);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else if (((secondarynew && sprite.canProjectile()) && (sprite._state == "dash")) && (!sprite._airborne)) {
sprite.gotoAndPlay("dashbuster");
doZeroBuster(sprite, null, true);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else if ((attacknew && (sprite._state == "dash")) && (!sprite._airborne)) {
sprite.setState("dashslash");
generateSaberID(sprite);
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else if ((((sprite.charge2._visible && (!secondarydown)) && sprite.canProjectile()) && ((sprite._state == "idle") || (((!leftdown) && (!rightdown)) && (sprite._state == "run")))) && (!sprite._airborne)) {
sprite.gotoAndPlay("buster");
sprite._xspd = 0;
doZeroChargeBuster(sprite);
} else if (((secondarynew && sprite.canProjectile()) && ((sprite._state == "idle") || (((!leftdown) && (!rightdown)) && (sprite._state == "run")))) && (!sprite._airborne)) {
sprite.gotoAndPlay("buster");
doZeroBuster(sprite);
sprite._xspd = 0;
} else if ((attacknew && ((sprite._state == "idle") || (((!leftdown) && (!rightdown)) && (sprite._state == "run")))) && (!sprite._airborne)) {
sprite.setState("slash1");
generateSaberID(sprite);
sprite._comboDone = false;
sprite._xspd = 0;
} else if ((((attacknew && (sprite._state == "slash1")) && (!sprite._airborne)) && sprite._comboDone) && (_difficulty != "Hard")) {
sprite.setState("slash2");
generateSaberID(sprite);
sprite._comboDone = false;
} else if (((attacknew && (sprite._state == "slash2")) && (!sprite._airborne)) && sprite._comboDone) {
sprite.setState("slash3");
generateSaberID(sprite);
sprite._comboDone = false;
} else if (((dashnew || myKeyboard.generic.combo2("left", "left")) || myKeyboard.generic.combo2("right", "right")) && ((sprite._state == "idle") || (sprite._state == "run"))) {
if (dashnew) {
sprite._dashHold = "dash";
} else if (sprite.facingLeft()) {
sprite._dashHold = "left";
walldashable = walldashable_duration;
} else {
sprite._dashHold = "right";
walldashable = walldashable_duration;
}
sprite.setState("dash");
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else if ((sprite._state == "dash") && eval (sprite._dashHold + "down")) {
if (sprite.facingLeft()) {
sprite._xspd = -sprite._dashspd;
} else {
sprite._xspd = sprite._dashspd;
}
} else if ((leftdown && (isGroundIdle(sprite) || sprite._airborne)) && ((sprite._state != "wallkick") || ((!sprite.facingLeft()) && (!sprite._dashair)))) {
if (((sprite._state == "wallslide") || (sprite._state == "wallslash")) && (!sprite.facingLeft())) {
sprite.setState("fall");
} else if ((sprite._state == "wallkick") && (!sprite._dashair)) {
sprite.setState("jump");
}
sprite.faceLeft();
sprite._xspd = -sprite._runspd;
if (sprite._dashair) {
sprite._xspd = -sprite._dashspd;
}
if ((!sprite._airborne) && (sprite._state != "jump")) {
if (sprite._state != "run") {
sprite.setState("run");
}
}
} else if ((rightdown && (isGroundIdle(sprite) || sprite._airborne)) && ((sprite._state != "wallkick") || (sprite.facingLeft() && (!sprite._dashair)))) {
if (((sprite._state == "wallslide") || (sprite._state == "wallslash")) && sprite.facingLeft()) {
sprite.setState("fall");
} else if ((sprite._state == "wallkick") && (!sprite._dashair)) {
sprite.setState("jump");
}
sprite.faceRight();
sprite._xspd = sprite._runspd;
if (sprite._dashair) {
sprite._xspd = sprite._dashspd;
}
if ((!sprite._airborne) && (sprite._state != "jump")) {
if (sprite._state != "run") {
sprite.setState("run");
}
}
} else if (sprite._state != "wallkick") {
sprite._xspd = 0;
if (isGroundIdle(sprite) && (sprite._state != "idle")) {
sprite.setState("idle");
}
}
if (myWorld.terrain.bg.convey.hitTest(sprite._x, sprite._y, true) && (!sprite._airborne)) {
sprite._forcexspd = sprite._forcexspd - 2;
}
sprite._xspd = sprite._xspd + sprite._forcexspd;
myWorld.update();
sprite._forcexspd = 0;
var i;
i = 1;
while (i < 21) {
var s = myWorld.sprite[i];
if (s) {
var clr = new Color(s);
if (s._invincible > 0) {
if ((s._invincible % 2) != 0) {
clr.setTint(255, 255, 255, 100);
} else {
clr.setTint(255, 255, 255, 0);
}
s._invincible--;
} else if (s._tint <= 0) {
clr.setTint(255, 255, 255, 0);
} else {
s._tint--;
}
if (s._powerup) {
if ((s.area._currentframe != s.area._totalframes) && (s.area.hitTest(sprite.area))) {
if (s.item == "ec +4") {
s.area.gotoAndStop("taken");
mySound.playSound("taken2");
_ecrystals = _ecrystals + 4;
} else if (s.item == "ec +16") {
s._visible = false;
s.area.gotoAndStop("taken");
mySound.playSound("taken2");
_ecrystals = _ecrystals + 16;
} else if (s.item == "hp +4") {
s.area.gotoAndStop("taken");
if (sprite._hp < sprite._hpmax) {
mySound.playSound("taken");
}
sprite._hp = sprite._hp + 4;
} else if (s.item == "hp +8") {
s._visible = false;
s.area.gotoAndStop("taken");
if (sprite._hp < sprite._hpmax) {
mySound.playSound("taken");
}
sprite._hp = sprite._hp + 8;
} else if (s.item == "extra") {
s._visible = false;
s.area.gotoAndStop("taken");
mySound.playSound("extra");
if (_continues < 9) {
_continues++;
}
} else if (s.item == "subtank") {
s._visible = false;
s.area.gotoAndStop("taken");
mySound.playSound("extra");
}
if (sprite._hp > sprite._hpmax) {
sprite._hp = sprite._hpmax;
}
}
} else if (((((s.area.hitTest(sprite.area) || (s.dmg.hitTest(sprite.area))) || (s.dmg2.hitTest(sprite.area))) || (s.dmg3.hitTest(sprite.area))) && (sprite._state != "damage")) && (sprite._invincible == 0)) {
sprite.setState("damage");
sprite._dashair = false;
if (!s.facingLeft()) {
sprite._xspd = 2;
} else {
sprite._xspd = -2;
}
sprite._yspd = 0;
if ((!s.dmg.hitTest(sprite.area)) && (s._id == "omega")) {
sprite._hp = sprite._hp - (3 * _dmgmod);
} else {
sprite._hp = sprite._hp - (2 * _dmgmod);
}
}
if ((s.projectile[0].area.hitTest(sprite.area) || (s.projectile[1].area.hitTest(sprite.area))) || (_miniboss && (s.projectile[2].area.hitTest(sprite.area) || (s.projectile[3].area.hitTest(sprite.area))))) {
if ((sprite._state != "damage") && (sprite._invincible == 0)) {
sprite.setState("damage");
sprite._dashair = false;
if (!s.facingLeft()) {
sprite._xspd = 2;
} else {
sprite._xspd = -2;
}
sprite._yspd = 0;
sprite._hp = sprite._hp - (2 * _dmgmod);
}
if (s.projectile[0].area.hitTest(sprite.area)) {
s.projectile[0].gotoAndPlay("dissolve");
}
if (s.projectile[1].area.hitTest(sprite.area)) {
s.projectile[1].gotoAndPlay("dissolve");
}
if (_miniboss) {
if (s.projectile[2].area.hitTest(sprite.area)) {
s.projectile[2].gotoAndPlay("dissolve");
}
if (s.projectile[3].area.hitTest(sprite.area)) {
s.projectile[3].gotoAndPlay("dissolve");
}
}
}
if ((s.projectile[0]._id == "enemydart") && (sprite.dmg.hitTest(s.projectile[0].area))) {
s.projectile[0].gotoAndPlay("dissolve");
}
if ((s.projectile[0]._id == "enemydart") && (sprite.dmg.hitTest(s.projectile[1].area))) {
s.projectile[1].gotoAndPlay("dissolve");
}
if (!s._powerup) {
if (((sprite.dmg.hitTest(s.area) || (sprite.runsaber.hitTest(s.area))) && (((s._state != "damage") || (sprite._state == "slash2")) || (sprite._state == "slash3"))) && (s._invincible == 0)) {
if (sprite._state == "slash1") {
s._comboed = 1;
} else if (sprite._state == "slash2") {
if (s._comboed >= 2) {
}
s._comboed = 2;
} else if (sprite._state == "slash3") {
if (s._comboed >= 3) {
}
s._comboed = 3;
}
if ((s._id == "omega") && (!sprite._airborne)) {
} else if (s.shield && ((s.facingLeft() && (sprite._x < s._x)) || ((!s.facingLeft()) && (sprite._x > s._x)))) {
if (s._saberID != sprite._saberID) {
_root.mySound.playSound("clang");
s._saberID = sprite._saberID;
}
} else if (s._saberID != sprite._saberID) {
if (sprite._state == "slash1") {
s._hp = s._hp - _saberpower;
} else if (sprite._state == "slash2") {
s._hp = s._hp - _saberpower;
} else if (sprite._state == "slash3") {
s._hp = s._hp - _saberpower;
} else if (sprite._state == "jumpslash") {
s._hp = s._hp - _saberpower;
} else if (sprite._state == "wallslash") {
s._hp = s._hp - _saberpower;
} else if (sprite._state == "dashslash") {
s._hp = s._hp - _dashsaberpower;
} else if (sprite._state == "chargedslash") {
s._hp = s._hp - _chargedsaberpower;
} else if (sprite._state == "chargedjumpslash") {
s._hp = s._hp - _chargedsaberpower;
} else if (sprite._state == "chargedwallslash") {
s._hp = s._hp - _chargedsaberpower;
} else {
s._hp = s._hp - _runsaberpower;
}
s._saberID = sprite._saberID;
var clr = new Color(s);
clr.setTint(255, 255, 255, 100);
s._tint = 3;
if (s._boss) {
s._invincible = 50;
}
mySound.playSound("clink");
if (s._hp <= 0) {
if (!s._boss) {
s.setState("die");
s._invincible = -1;
_root.enemies++;
_root.saber++;
}
}
}
} else {
var didhit = false;
var h;
h = 0;
while (h < 4) {
var proj = sprite.projectile[h];
if (proj.area.hitTest(s.area)) {
if ((s._state != "damage") && (s._invincible == 0)) {
if (proj.area.hitTest(s.shield)) {
_root.mySound.playSound("clang");
} else if (proj._id == "bullet") {
s._hp = s._hp - _busterpower;
didhit = true;
} else if (proj._id == "runbullet") {
s._hp = s._hp - _dashbusterpower;
didhit = true;
} else if (proj._id == "bullet1") {
s._hp = s._hp - _chargedbusterpower;
didhit = true;
} else if (proj._id == "bullet2") {
s._hp = s._hp - _doublechargedbusterpower;
didhit = true;
}
}
if ((((s._hp > 0) || (proj._id == "bullet")) || (proj._id == "runbullet")) || (s._boss)) {
proj.gotoAndPlay("dissolve");
}
}
h++;
}
if (didhit) {
if (s._boss) {
s._invincible = 50;
}
var clr = new Color(s);
clr.setTint(255, 255, 255, 100);
mySound.playSound("clink");
if ((s._hp <= 0) && (!s._boss)) {
s.setState("die");
s._invincible = -1;
_root.enemies++;
_root.buster++;
}
}
}
}
}
i++;
}
if (sprite == null) {
} else if (((myWorld.terrain.bg.fatal.hitTest(sprite._x, sprite._y, true) || (myWorld.terrain.bg._y < -2000)) && (sprite._state != "damage")) && (sprite._invincible == 0)) {
sprite.setState("damage");
sprite._dashair = false;
if (!s.facingLeft()) {
sprite._xspd = 2;
} else {
sprite._xspd = -2;
}
sprite._yspd = 0;
sprite._hp = sprite._hp - 6;
}
if (sprite == null) {
} else if ((sprite._hp <= 0) || (sprite._y > _stageheight)) {
myMusic.fadeOut(2);
myWorld.terrain.fg._visible = false;
sprite.setState("die");
sprite._invincible = 0;
sprite._visible = true;
var clr = new Color(sprite);
clr.setTint(255, 255, 255, 0);
sprite.charge1.gotoAndStop(1);
sprite.charge2.gotoAndStop(1);
sprite.chargeSound.gotoAndPlay("charge0");
_root.retries++;
_root.lives--;
sprite._hp = 0;
sprite._xspd = 0;
sprite._yspd = 0;
sprite._xaccel = 0;
sprite._yaccel = 0;
sprite._collides = false;
sprite._gravity = 0;
sprite._dashair = false;
sprite._hp = 0;
_missionstart = true;
}
if (sprite) {
if (sprite._hp < 0) {
sprite._hp = 0;
}
if (myWorld.sprite[1]._hp < 0) {
myWorld.sprite[1]._hp = 0;
}
myWorld.mainframe.zero_hp.hp.gotoAndStop((sprite._hpmax - sprite._hp) + 1);
myWorld.mainframe.enemy_hp.hp.gotoAndStop((myWorld.sprite[1]._hpmax - myWorld.sprite[1]._hp) + 1);
if (sprite._hp <= 0) {
sprite = null;
}
}
if (((myWorld.sprite[1]._boss && (myWorld.sprite[1]._hp <= 0)) && (sprite._hp > 0)) && (myWorld.sprite[1]._state != "die")) {
myWorld.sprite[1].setState("die");
myWorld.sprite[1]._invincible = -1;
myWorld.sprite[1]._xspd = 0;
myWorld.sprite[1]._yspd = 0;
var clr = new Color(myWorld.sprite[1]);
clr.setTint(255, 255, 255, 0);
sprite._invincible = -1;
sprite._visible = true;
var clr = new Color(sprite);
clr.setTint(255, 255, 255, 0);
if (terrain == "rooftops-boss2") {
myMusic.stop();
terrain = "results";
text = "text-omega-defeated";
textout = "fadeout";
myKeyboard.disableAll();
restDelay = 60;
} else if (terrain == "factory-boss2") {
myMusic.stop();
terrain = "results";
text = "text-maha-defeated";
textout = "fadeout";
myKeyboard.disableAll();
restDelay = 60;
}
}
if (!sprite._airborne) {
if (((((sprite._state == "fall") || (sprite._state == "jump")) || (sprite._state == "jumpslash")) || (sprite._state == "wallslide")) || (sprite._state == "wallslash")) {
sprite.setState("land");
sprite._dashair = false;
}
} else if ((sprite._state == "wallkick") && (sprite._yspd == 0)) {
sprite.setState("fall");
} else if (sprite._yspd > 0) {
if ((((sprite._state == "idle") || (sprite._state == "run")) || (sprite._state == "jump")) || (sprite._state == "dash")) {
if (sprite._dashair || (sprite._state == "dash")) {
sprite._state = "fall";
sprite._dashair = true;
sprite.gotoAndPlay("dashfall");
} else {
sprite.setState("fall");
}
}
}
if (sprite._invincible > 0) {
sprite._invincible--;
var clr = new Color(sprite);
if ((sprite._invincible % 2) != 0) {
clr.setTint(255, 255, 255, 100);
} else {
clr.setTint(255, 255, 255, 0);
}
}
if ((sprite != null) && (_root._rememberhp > sprite._hp)) {
_root.damage = _root.damage - (sprite._hp - _root._rememberhp);
}
_root._rememberhp = sprite._hp;
if (sprite.charge1._visible) {
if (!attackdown) {
sprite.charge1._visible = false;
sprite.charge1.gotoAndStop(1);
sprite.charge1._twocharge = false;
if (_attackmode == "C") {
sprite.charge2._visible = false;
sprite.charge2.gotoAndStop(1);
sprite.charge2._twocharge = false;
}
if (!sprite.charge2._visible) {
sprite.chargeSound._charge = 0;
sprite.chargeSound.gotoAndPlay("charge0");
} else if (!sprite.charge2._twocharge) {
sprite.chargeSound._charge = 1;
sprite.chargeSound.gotoAndPlay("charge1");
}
}
}
if (sprite.charge2._visible) {
if (!secondarydown) {
sprite.charge2._visible = false;
sprite.charge2.gotoAndStop(1);
sprite.charge2._twocharge = false;
if (_attackmode == "C") {
sprite.charge1._visible = false;
sprite.charge1.gotoAndStop(1);
sprite.charge1._twocharge = false;
}
if (!sprite.charge1._visible) {
sprite.chargeSound._charge = 0;
sprite.chargeSound.gotoAndPlay("charge0");
} else if (!sprite.charge1._twocharge) {
sprite.chargeSound._charge = 1;
sprite.chargeSound.gotoAndPlay("charge1");
}
}
}
if ((sprite._state == "facewall") && (sprite._comboDone)) {
if (terrain == "neo-02") {
if (myWorld.terrain.bg.door1.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d1.play();
terrain = "neo-03";
_root.gotoAndPlay("fadeout");
} else if (myWorld.terrain.bg.door2.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d2.play();
terrain = "throne";
_root.gotoAndPlay("fadeout");
} else if (myWorld.terrain.bg.door3.hitTest(sprite._x, sprite._y, false)) {
sprite.setState("idle");
text = "text-nofirst";
textout = "unpause";
_root.gotoAndPlay("text");
}
} else if (terrain == "neo-03") {
if (myWorld.terrain.bg.door1.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d1.play();
terrain = "neo-02";
_root.gotoAndPlay("fadeout");
} else if (myWorld.terrain.bg.door2.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d2.play();
terrain = "sci-lab";
_root.gotoAndPlay("fadeout");
} else if (myWorld.terrain.bg.door3.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d3.play();
terrain = "energy-rm";
_root.gotoAndPlay("fadeout");
} else if (myWorld.terrain.bg.door4.hitTest(sprite._x, sprite._y, false)) {
myWorld.terrain.bg.d4.play();
terrain = "rooftops-01";
_root.gotoAndPlay("fadeout");
}
}
} else if (sprite._state == "stand") {
if (terrain == "throne") {
if ((_elf1a < 1) && (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false))) {
text = "text-x-0";
textout = "unpause";
_root.gotoAndPlay("text");
} else if (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false)) {
text = "text-x-1";
textout = "unpause";
_root.gotoAndPlay("text");
}
} else if (terrain == "sci-lab") {
if (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false)) {
if (_root._elf1a < 1) {
text = "text-ciel-elf";
} else {
text = "text-ciel-0";
}
textout = "unpause";
_root.gotoAndPlay("text");
}
} else if (terrain == "energy-rm") {
if (myWorld.terrain.bg.npc1.hitTest(sprite._x, sprite._y, false)) {
text = "text-npc-0";
textout = "unpause";
_root.gotoAndPlay("text");
}
}
}
myWorld.sprite[22]._xscale = sprite._xscale;
myWorld.sprite[22].gotoAndStop(sprite._currentframe);
myWorld.sprite[21]._xscale = sprite._xscale;
myWorld.sprite[21].gotoAndStop(sprite._currentframe);
if ((((((sprite._dashair || (sprite._state == "dash")) || (sprite._state == "dashslash")) || (sprite._state == "dashbuster")) || (sprite._state == "dashjump")) || (sprite._state == "dashfall")) || (sprite._state == "dashwalljump")) {
myWorld.sprite[21]._visible = true;
myWorld.sprite[22]._visible = true;
myWorld.sprite[21]._visible2 = false;
myWorld.sprite[22]._visible2 = false;
} else if (myWorld.sprite[21]._visible) {
if (!myWorld.sprite[21]._visible2) {
myWorld.sprite[21]._visible2 = true;
} else {
myWorld.sprite[21]._visible = false;
}
} else if (!myWorld.sprite[22]._visible2) {
myWorld.sprite[22]._visible2 = true;
} else {
myWorld.sprite[22]._visible = false;
}
myWorld.sprite[22]._x = x22 + myWorld.terrain.bg._x;
myWorld.sprite[22]._y = y22 + myWorld.terrain.bg._y;
myWorld.sprite[21]._x = x21 + myWorld.terrain.bg._x;
myWorld.sprite[21]._y = y21 + myWorld.terrain.bg._y;
if (myWorld.sprite[0]._state == "dead") {
if (_continues > 0) {
_continues--;
if (terrain.indexOf("boss") != -1) {
terrain = terrain.substring(0, terrain.length - 1);
}
} else {
gameover = terrain;
terrain = "gameover";
}
myWorld.sprite[0]._hp = myWorld.sprite[0]._hpmax;
_root.gotoAndPlay("fadeout");
}
if (((terrain == "rooftops-boss2") && (!sprite._airborne)) && (myWorld.sprite[1]._currentframe == 1)) {
text = "text-omega-intro";
if (_bossintroed) {
gotoAndPlay (1948);
} else {
_bossintroed = true;
textout = "warning";
gotoAndPlay (1954);
}
} else if ((terrain == "factory-boss2") && (myWorld.sprite[1]._currentframe == 1)) {
text = "text-maha-intro";
if (_bossintroed) {
gotoAndPlay (1948);
} else {
_bossintroed = true;
textout = "warning";
gotoAndPlay (1954);
}
}
if (restDelay > 0) {
restDelay--;
if (restDelay == 0) {
gotoAndPlay (1954);
}
}
if ((sprite != null) && (_root._rememberhp > sprite._hp)) {
_root.damage = _root.damage - (sprite._hp - _root.lasthp);
}
_root.lasthp = sprite._hp;
_root.gametime++;
_root._playtime++;
if (myWorld.sprite[1]._boss) {
myWorld.mainframe.enemy_hp._visible = true;
} else {
myWorld.mainframe.enemy_hp._visible = false;
}
Frame 1941
if ((sprite._hp > 0) && (myKeyboard.generic.getKey("p").isNew() || (myKeyboard.generic.getKey("enter").isNew()))) {
_root.pause();
} else {
_root.gotoAndPlay(_root._currentframe - 1);
}
Frame 1942
var time = Math.floor(_root._playtime / 30);
var hrs = Math.floor(time / 360);
var min = (Math.floor(time / 60) % 60);
var sec = (time % 60);
if (hrs < 10) {
hrs = "0" + hrs;
}
if (min < 10) {
min = "0" + min;
}
if (sec < 10) {
sec = "0" + sec;
}
_root.playtime = ((((("[ " + hrs) + " : ") + min) + "' ") + sec) + " ]";
myKeyboard.update();
if (myKeyboard.getKey("p").isNew() || (myKeyboard.getKey("enter").isNew())) {
_root.pause();
}
Frame 1943
_root.gotoAndPlay(_root._currentframe - 1);
Frame 1948
myWorld.setMainFrame("warning");
Frame 1950
if (myWorld.mainframe._currentframe < myWorld.mainframe._totalframes) {
_root.gotoAndPlay(_root._currentframe - 1);
} else {
text = "";
myWorld.sprite[1].gotoAndPlay(2);
myKeyboard.enableAll();
myWorld.setMainFrame("mainframe");
gotoAndPlay (1940);
}
Frame 1954
myWorld.setMainFrame(text);
myWorld.sprite[22]._visible = false;
myWorld.sprite[21]._visible = false;
Frame 1956
if (myWorld.mainframe._currentframe < myWorld.mainframe._totalframes) {
_root.gotoAndPlay(_root._currentframe - 1);
} else if (textout == "ending") {
_root.mySound.stopAllSounds();
_root.myWorld.destroy();
_root.gotoAndPlay("ending");
} else if (textout == "warning") {
_root.gotoAndPlay("warning");
} else if (textout == "fadeout") {
_root.gotoAndPlay("fadeout");
} else if (textout == "unpause") {
if (_root.myWorld.sprite[0]._state == "stand") {
_root.myWorld.sprite[0].setState("idle");
}
myWorld.setMainFrame("mainframe");
_root.gotoAndPlay("unpause");
}
Frame 1960
myWorld.mainframe.removeMovieClip();
myStage.fadeOut(0, 0, 0, 5);
myWorld.sprite[22]._visible = false;
myWorld.sprite[21]._visible = false;
Frame 1962
if (myStage.isFading()) {
_root.gotoAndPlay(_root._currentframe - 1);
} else {
_root._rememberhp = myWorld.sprite[0]._hp;
if ((terrain == "results") || (terrain == "gameover")) {
_root._rememberhp = myWorld.sprite[0]._hpmax;
}
myStage.fadeIn(10);
mySound.stopAllSounds();
myWorld.destroy();
if (terrain == "results") {
gotoAndPlay (1967);
} else if (terrain == "gameover") {
gotoAndPlay (1977);
} else {
gotoAndPlay (1939);
}
}
Frame 1967
myMusic.load("screen", true);
myMusic.play();
_root.gametime = Math.floor(_root.gametime / 30);
_root.gamemin = Math.floor(_root.gametime / 60);
_root.gamesec = _root.gametime % 60;
if (_root.gamesec < 10) {
_root.gamesec = "0" + _root.gamesec;
}
_root.cleartime = (_root.gamemin + "'") + _root.gamesec;
_root.timepts = Math.round((1 - ((_root.gametime - 150) / 250)) * 20);
if (_root.timepts > 20) {
_root.timepts = 20;
} else if (_root.timepts < 0) {
_root.timepts = 0;
}
_root.damage = Math.round(damage);
_root.damagepts = 15 - Math.round(((_root.damage - 5) / 72) * 15);
if (_root.damagepts > 15) {
_root.damagepts = 15;
} else if (_root.damagepts < 0) {
_root.damagepts = 0;
}
_root.enemiespts = Math.round(_root.enemies / 1.5);
if (_root.enemiespts > 15) {
_root.enemiespts = 15;
} else if (_root.enemiespts < 0) {
_root.enemiespts = 0;
}
_root.retriespts = 15 - Math.round(_root.retries * 4);
if (_root.retriespts > 15) {
_root.retriespts = 15;
} else if (_root.retriespts < 0) {
_root.retriespts = 0;
}
_root.elfpts = 15 - _root.elfs;
_root.total = ((((timepts + retriespts) + enemiespts) + damagepts) + elfpts) + 20;
_root.timepts = _root.timepts + "p";
_root.damagepts = _root.damagepts + "p";
_root.enemiespts = _root.enemiespts + "p";
_root.retriespts = _root.retriespts + "p";
_root.elfpts = _root.elfpts + "p";
if (_root.total > 94) {
_root.level = "S";
} else if (_root.total > 79) {
_root.level = "A";
} else if (_root.total > 69) {
_root.level = "B";
} else if (_root.total > 59) {
_root.level = "C";
} else if (_root.total > 49) {
_root.level = "D";
} else if (_root.total > 39) {
_root.level = "E";
} else {
_root.level = "F";
}
_root.code1 = "";
if (_root.damage < 10) {
_root.code1 = "Flawless";
} else if (_root.damage < 25) {
_root.code1 = "Perfect";
} else if (_root.damage < 40) {
_root.code1 = "Supreme";
} else if (_root.retries >= 2) {
_root.code1 = "Wounded";
}
if (_root.gametime > 480) {
_root.code1 = "Sluggish";
} else if (_root.gametime < 110) {
_root.code1 = "Godspeed";
} else if (_root.gametime < 170) {
_root.code1 = "Lightning";
}
if ((_root.saber / _root.enemies) > 0.7) {
_root.code2 = "Edge";
} else if ((_root.buster / _root.enemies) > 0.7) {
_root.code2 = "Gunman";
} else {
_root.code2 = "Warrior";
}
_root.codename = (_root.code1 + " ") + _root.code2;
if (_root.level == "S") {
_root.codename = "Hero";
}
myKeyboard.enableAll();
if (_dmgmod == 1) {
_root.dif = "Normal";
} else if (_dmgmod > 1) {
_root.dif = "Hard";
} else {
_root.dif = "Easy";
}
_root.avgsum = _root.avgsum + _root.total;
_root.avgnum++;
_root.total = _root.total + "p";
_root.average = Math.floor(_root.avgsum / _root.avgnum) + "p";
Frame 1969
pressAnyKey(this);
Frame 1970
myMusic.fadeOut(2);
myStage.fadeOut(0, 0, 0, 5);
Frame 1972
if (myStage.isFading()) {
_root.gotoAndPlay(_root._currentframe - 1);
} else {
_results = true;
if (_mission == 0) {
_mission0complete = true;
} else if (_mission == 1) {
_mission1complete = true;
} else if (_mission == 2) {
_mission2complete = true;
} else if (_mission == 3) {
_mission3complete = true;
} else if (_mission == 4) {
_mission4complete = true;
} else if (_mission == 5) {
_mission5complete = true;
}
terrain = "throne";
myStage.fadeIn(10);
_root.codename = ("[ " + _root.codename) + " ]";
gotoAndPlay (1939);
}
Frame 1977
_root.myMusic.load("guarder", true);
_root.myMusic.play();
Frame 1979
_root.gotoAndPlay(_root._currentframe - 1);
Frame 1980
_root.myMusic.load("guarder", true);
_root.myMusic.play();
if (_root._difficulty == "Normal") {
_root.hardunlocked = true;
myLocal_so.data.hardunlocked = _root.hardunlocked;
_root.myLocal_so.flush();
}
Frame 2504
_root.gotoAndPlay(_root._currentframe - 1);
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
_root.mySound.playSound("access");
Symbol 26 MovieClip Frame 8
_root.mySound.playSound("door2");
Symbol 26 MovieClip Frame 15
stop();
Symbol 28 MovieClip Frame 1
this._visible = false;
Instance of Symbol 30 MovieClip "startPoint" in Symbol 31 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "neo-02" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 62 MovieClip Frame 4
_root.mySound.playSound("door");
Symbol 62 MovieClip Frame 15
stop();
Instance of Symbol 30 MovieClip "startPoint" in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 81 MovieClip Frame 3
if (Math.random() > 0.02) {
gotoAndPlay (1);
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 111 MovieClip Frame 1
this._visible = false;
Instance of Symbol 30 MovieClip "startPoint" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 125 MovieClip Frame 1
this._visible = false;
Instance of Symbol 30 MovieClip "startPoint" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 149 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 192 MovieClip Frame 1
this._visible = false;
Instance of Symbol 30 MovieClip "startPoint" in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
_root.mySound.playSound("door");
Symbol 227 MovieClip Frame 7
stop();
Instance of Symbol 30 MovieClip "startPoint" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "neo-03" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "neo-01" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "throne" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 20
this.gotoAndPlay(2);
Symbol 268 MovieClip [text-mission1-end] Frame 31
var txt = "Welcome back, Zero.";
_root.writeText(this.box, txt);
Symbol 268 MovieClip [text-mission1-end] Frame 33
_root.waitForText(this);
Symbol 268 MovieClip [text-mission1-end] Frame 35
_root.pressAnyKey(this);
Symbol 268 MovieClip [text-mission1-end] Frame 36
var txt = "The war has already begun...\nDr Weil's army is engaging\nour own...";
_root.writeText(this.box, txt);
Symbol 268 MovieClip [text-mission1-end] Frame 38
_root.waitForText(this);
Symbol 268 MovieClip [text-mission1-end] Frame 40
_root.pressAnyKey(this);
Symbol 268 MovieClip [text-mission1-end] Frame 41
var txt = "I begin to wonder if peace\nbetween humans and reploids\nis just a hopeful dream...";
_root.writeText(this.box, txt);
Symbol 268 MovieClip [text-mission1-end] Frame 43
_root.waitForText(this);
Symbol 268 MovieClip [text-mission1-end] Frame 45
_root.pressAnyKey(this);
Symbol 268 MovieClip [text-mission1-end] Frame 53
var txt = "X...";
_root.writeText(this.box, txt);
Symbol 268 MovieClip [text-mission1-end] Frame 55
_root.waitForText(this);
Symbol 268 MovieClip [text-mission1-end] Frame 57
_root.pressAnyKey(this);
Symbol 268 MovieClip [text-mission1-end] Frame 58
_root.textout = "ending";
this.stop();
Instance of Symbol 30 MovieClip "sci-lab" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "neo-02" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "energy-rm" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "neo-04" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 30 MovieClip "startPoint" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 293 Button
on (release) {
_root.play();
}
Symbol 294 MovieClip Frame 1
count = 0;
stopAllSounds();
_root.stop();
Symbol 294 MovieClip Frame 3
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
percentLoaded = Math.floor((lBytes / tBytes) * 100);
bar._xscale = percentLoaded;
percent.text = ((percentLoaded + "% of ") + Math.floor(tBytes / 1024)) + "K loaded.";
if (lBytes < tBytes) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Symbol 294 MovieClip Frame 4
stop();
Symbol 351 MovieClip Frame 9
stop();
Symbol 364 MovieClip Frame 19
stop();
Symbol 372 MovieClip Frame 15
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 382 MovieClip [item_EC2] Frame 1
this._powerup = true;
this.item = "ec +16";
Instance of Symbol 377 MovieClip "area" in Symbol 382 MovieClip [item_EC2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 390 MovieClip [item_HP2] Frame 1
this._powerup = true;
this.item = "hp +8";
Instance of Symbol 377 MovieClip "area" in Symbol 390 MovieClip [item_HP2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 391 MovieClip Frame 1
this._parent._yspd = -5;
this._parent._gravity = 1;
this._parent._collides = true;
this._parent._pointCollision = true;
this._parent._xspd = 0;
while (_root.__Terrain.opaque2.test(this._parent._x, this._parent._y, true)) {
this._parent._y = this._parent._y - 10;
}
this.gotoAndStop(1 + Math.ceil(Math.random() * 35));
Symbol 391 MovieClip Frame 24
this._parent.item = "ec +4";
Instance of Symbol 343 MovieClip "area" in Symbol 391 MovieClip Frame 24
onClipEvent (load) {
this._visible = false;
}
Symbol 391 MovieClip Frame 25
this._parent.item = "ec +4";
Symbol 391 MovieClip Frame 26
this._parent.item = "ec +4";
Symbol 391 MovieClip Frame 27
this._parent.item = "ec +4";
Symbol 391 MovieClip Frame 28
this._parent.item = "ec +4";
Symbol 391 MovieClip Frame 29
this._parent.item = "ec +16";
Symbol 391 MovieClip Frame 30
this._parent.item = "hp +4";
Symbol 391 MovieClip Frame 31
this._parent.item = "hp +4";
Symbol 391 MovieClip Frame 32
this._parent.item = "hp +4";
Symbol 391 MovieClip Frame 33
this._parent.item = "hp +4";
Symbol 391 MovieClip Frame 34
this._parent.item = "hp +4";
Symbol 391 MovieClip Frame 35
this._parent.item = "hp +8";
Instance of Symbol 343 MovieClip "area" in Symbol 392 MovieClip [wheel] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "jump" in Symbol 392 MovieClip [wheel] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 392 MovieClip [wheel] Frame 5
gotoAndPlay (1);
Symbol 392 MovieClip [wheel] Frame 16
_root.mySound.playSound("tire");
Symbol 392 MovieClip [wheel] Frame 34
gotoAndPlay (30);
Symbol 392 MovieClip [wheel] Frame 54
gotoAndPlay (1);
Symbol 392 MovieClip [wheel] Frame 55
_root.mySound.playSound("break");
Symbol 392 MovieClip [wheel] Frame 64
this._powerup = true;
this.stop();
Symbol 392 MovieClip [wheel] Frame 65
this.gotoAndStop(this._currentframe - 1);
Symbol 399 MovieClip Frame 1
stop();
Symbol 407 MovieClip [shield] Frame 1
this._state = "slow";
Instance of Symbol 343 MovieClip "area" in Symbol 407 MovieClip [shield] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "shield" in Symbol 407 MovieClip [shield] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 407 MovieClip [shield] Frame 10
this._state = "idle";
Symbol 407 MovieClip [shield] Frame 44
this._state = "slow";
Symbol 407 MovieClip [shield] Frame 54
this._state = "shoot";
gotoAndPlay (55);
Symbol 407 MovieClip [shield] Frame 60
if (Math.random() < 0.9) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 407 MovieClip [shield] Frame 61
this._state = "fire";
_root.mySound.playSound("shot");
Symbol 407 MovieClip [shield] Frame 72
this._state = "turn";
gotoAndPlay (74);
Symbol 407 MovieClip [shield] Frame 76
this._xscale = this._xscale * -1;
Symbol 407 MovieClip [shield] Frame 80
this._state = "slow";
gotoAndPlay (1);
Symbol 407 MovieClip [shield] Frame 82
_root.mySound.playSound("break");
Symbol 407 MovieClip [shield] Frame 91
this._powerup = true;
this.stop();
Symbol 407 MovieClip [shield] Frame 92
this.gotoAndStop(this._currentframe - 1);
Instance of Symbol 343 MovieClip "area" in Symbol 411 MovieClip [spike] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 411 MovieClip [spike] Frame 7
gotoAndPlay (1);
Instance of Symbol 343 MovieClip "area" in Symbol 417 MovieClip [missile] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 417 MovieClip [missile] Frame 7
gotoAndPlay (1);
Symbol 417 MovieClip [missile] Frame 11
_root.mySound.playSound("break");
Symbol 417 MovieClip [missile] Frame 20
this._powerup = true;
this.stop();
Symbol 417 MovieClip [missile] Frame 21
this.gotoAndStop(this._currentframe - 1);
Instance of Symbol 343 MovieClip "area" in Symbol 431 MovieClip [copter] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 431 MovieClip [copter] Frame 2
gotoAndPlay (1);
Symbol 431 MovieClip [copter] Frame 6
_root.mySound.playSound("shot");
Symbol 431 MovieClip [copter] Frame 13
gotoAndPlay (1);
Symbol 431 MovieClip [copter] Frame 19
gotoAndPlay (1);
Symbol 431 MovieClip [copter] Frame 23
_root.mySound.playSound("break");
Symbol 431 MovieClip [copter] Frame 32
this._powerup = true;
this.stop();
Symbol 431 MovieClip [copter] Frame 33
this.gotoAndStop(this._currentframe - 1);
Instance of Symbol 343 MovieClip "area" in Symbol 449 MovieClip [rat] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 449 MovieClip [rat] Frame 7
gotoAndPlay (1);
Symbol 449 MovieClip [rat] Frame 16
gotoAndPlay (10);
Symbol 449 MovieClip [rat] Frame 30
gotoAndPlay (24);
Symbol 449 MovieClip [rat] Frame 38
gotoAndPlay (32);
Symbol 449 MovieClip [rat] Frame 41
_root.mySound.playSound("break");
Symbol 449 MovieClip [rat] Frame 50
this._powerup = true;
this.stop();
Symbol 449 MovieClip [rat] Frame 51
this.gotoAndStop(this._currentframe - 1);
Instance of Symbol 343 MovieClip "area" in Symbol 454 MovieClip [camera] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 454 MovieClip [camera] Frame 4
this._xscale = this._xscale * -1;
Symbol 454 MovieClip [camera] Frame 10
this._state = "idle";
Instance of Symbol 343 MovieClip "scout" in Symbol 454 MovieClip [camera] Frame 10
onClipEvent (load) {
this._visible = false;
}
Symbol 454 MovieClip [camera] Frame 41
this._state = "turn";
gotoAndPlay (1);
Symbol 454 MovieClip [camera] Frame 42
_root.mySound.playSound("beep");
Symbol 454 MovieClip [camera] Frame 50
this._state = "fire";
_root.mySound.playSound("shot");
Symbol 454 MovieClip [camera] Frame 81
this._state = "idle";
gotoAndPlay (10);
Symbol 454 MovieClip [camera] Frame 85
_root.mySound.playSound("break");
Symbol 454 MovieClip [camera] Frame 94
this._powerup = true;
this.stop();
Symbol 454 MovieClip [camera] Frame 95
this.gotoAndStop(this._currentframe - 1);
Instance of Symbol 343 MovieClip "area" in Symbol 478 MovieClip [arach] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 478 MovieClip [arach] Frame 55
this._state = "fire";
_root.mySound.playSound("shot");
Symbol 478 MovieClip [arach] Frame 56
_root.mySound.playSound("shot");
Symbol 478 MovieClip [arach] Frame 91
_root.mySound.playSound("omega-shot");
Instance of Symbol 343 MovieClip "dmg" in Symbol 478 MovieClip [arach] Frame 94
onClipEvent (load) {
this._visible = false;
}
Symbol 478 MovieClip [arach] Frame 213
gotoAndPlay (1);
Symbol 478 MovieClip [arach] Frame 214
_root.mySound.playSound("explode-large");
Symbol 478 MovieClip [arach] Frame 277
this._powerup = true;
this._state = "dead";
this.stop();
Symbol 478 MovieClip [arach] Frame 278
this.gotoAndStop(this._currentframe - 1);
Symbol 523 MovieClip [maha] Frame 1
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 523 MovieClip [maha] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 523 MovieClip [maha] Frame 2
this._bossstart = true;
Symbol 523 MovieClip [maha] Frame 36
this._state = "idle";
Symbol 523 MovieClip [maha] Frame 44
gotoAndPlay (36);
Instance of Symbol 343 MovieClip "dmg" in Symbol 523 MovieClip [maha] Frame 55
onClipEvent (load) {
this._visible = false;
}
Symbol 523 MovieClip [maha] Frame 62
this._state = "handing";
_root.mySound.playSound("slash");
Symbol 523 MovieClip [maha] Frame 68
gotoAndPlay (62);
Symbol 523 MovieClip [maha] Frame 80
_root.mySound.playSound("hitground");
Symbol 523 MovieClip [maha] Frame 92
_root.mySound.playSound("hitground");
Symbol 523 MovieClip [maha] Frame 95
gotoAndPlay (71);
Instance of Symbol 343 MovieClip "dmg" in Symbol 523 MovieClip [maha] Frame 100
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "shield" in Symbol 523 MovieClip [maha] Frame 100
onClipEvent (load) {
this._visible = false;
}
Symbol 523 MovieClip [maha] Frame 109
_root.mySound.playSound("dash");
Symbol 523 MovieClip [maha] Frame 114
_root.mySound.playSound("tire");
Symbol 523 MovieClip [maha] Frame 119
_root.mySound.playSound("omega-shot");
Symbol 523 MovieClip [maha] Frame 120
this._state = "rolling";
Symbol 523 MovieClip [maha] Frame 126
gotoAndPlay (120);
Symbol 523 MovieClip [maha] Frame 127
_root.mySound.playSound("hitground");
Symbol 523 MovieClip [maha] Frame 141
gotoAndPlay (36);
Symbol 523 MovieClip [maha] Frame 147
_root.mySound.playSound("break");
Symbol 523 MovieClip [maha] Frame 160
this._powerup = true;
this.stop();
Symbol 523 MovieClip [maha] Frame 161
this.gotoAndStop(this._currentframe - 1);
Symbol 523 MovieClip [maha] Frame 169
_root.mySound.playSound("explode-large");
Symbol 523 MovieClip [maha] Frame 247
this._powerup = true;
this.stop();
Symbol 523 MovieClip [maha] Frame 248
this.gotoAndStop(this._currentframe - 1);
Symbol 558 MovieClip Frame 13
gotoAndPlay (9);
Symbol 578 MovieClip Frame 27
gotoAndPlay (11);
Symbol 582 MovieClip [omega] Frame 1
stop();
Instance of Symbol 343 MovieClip "dmg" in Symbol 582 MovieClip [omega] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "area" in Symbol 582 MovieClip [omega] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 2
_root.mySound.playSound("growl");
Symbol 582 MovieClip [omega] Frame 37
this._bossstart = true;
Symbol 582 MovieClip [omega] Frame 78
this._state = "idle";
Symbol 582 MovieClip [omega] Frame 79
this.gotoAndPlay(this._currentframe - 1);
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 92
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 103
_root.mySound.playSound("break");
Instance of Symbol 343 MovieClip "dmg3" in Symbol 582 MovieClip [omega] Frame 115
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 216
gotoAndPlay (38);
Symbol 582 MovieClip [omega] Frame 247
_root.mySound.playSound("omega-shot");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 247
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 269
_root.mySound.playSound("omega-shot");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 269
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 291
_root.mySound.playSound("omega-shot");
Instance of Symbol 343 MovieClip "dmg3" in Symbol 582 MovieClip [omega] Frame 291
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 315
_root.mySound.playSound("omega-shot");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 315
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 382
gotoAndPlay (38);
Instance of Symbol 343 MovieClip "dmg3" in Symbol 582 MovieClip [omega] Frame 420
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 422
_root.mySound.playSound("omega-ring");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 422
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 469
_root.mySound.playSound("omega-ring");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 469
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 501
_root.mySound.playSound("omega-ring");
Instance of Symbol 343 MovieClip "dmg3" in Symbol 582 MovieClip [omega] Frame 501
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 527
_root.mySound.playSound("omega-ring");
Instance of Symbol 343 MovieClip "dmg2" in Symbol 582 MovieClip [omega] Frame 527
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 552
_root.mySound.playSound("omega-ring");
Instance of Symbol 343 MovieClip "dmg3" in Symbol 582 MovieClip [omega] Frame 552
onClipEvent (load) {
this._visible = false;
}
Symbol 582 MovieClip [omega] Frame 606
gotoAndPlay (38);
Symbol 582 MovieClip [omega] Frame 622
_root.mySound.playSound("break");
Symbol 582 MovieClip [omega] Frame 650
this._powerup = true;
stop();
Symbol 582 MovieClip [omega] Frame 651
this.gotoAndStop(this._currentframe - 1);
Symbol 582 MovieClip [omega] Frame 659
_root.mySound.playSound("warpout");
Symbol 582 MovieClip [omega] Frame 682
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 589 MovieClip [fan] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "effect" in Symbol 589 MovieClip [fan] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 589 MovieClip [fan] Frame 7
gotoAndPlay (1);
Symbol 589 MovieClip [fan] Frame 11
_root.mySound.playSound("break");
_root.mySound.playSound("shot");
Symbol 589 MovieClip [fan] Frame 20
this._powerup = true;
this.stop();
Symbol 589 MovieClip [fan] Frame 21
this.gotoAndStop(this._currentframe - 1);
Symbol 593 MovieClip [warning] Frame 2
_root.mySound.playSound("siren");
_root.myMusic.stop();
Symbol 593 MovieClip [warning] Frame 33
_root.mySound.playSound("siren");
Symbol 593 MovieClip [warning] Frame 65
_root.mySound.playSound("siren");
Symbol 593 MovieClip [warning] Frame 92
stop();
Symbol 599 MovieClip [death] Frame 60
stop();
Symbol 607 MovieClip Frame 1
this.stop();
Symbol 607 MovieClip Frame 2
_root.mySound.playSound("slash");
Instance of Symbol 343 MovieClip "dmg" in Symbol 607 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 612 MovieClip Frame 1
this.stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 61
gotoAndPlay (2);
Symbol 617 MovieClip Frame 140
gotoAndPlay (81);
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 20
gotoAndPlay (2);
Symbol 621 MovieClip Frame 48
gotoAndPlay (30);
Symbol 622 MovieClip Frame 2
gotoAndPlay (1);
Symbol 622 MovieClip Frame 13
_root.mySound.playSound("charge1");
Symbol 622 MovieClip Frame 14
gotoAndPlay (8);
Symbol 622 MovieClip Frame 20
_root.mySound.playSound("charge2");
Symbol 622 MovieClip Frame 21
gotoAndPlay (15);
Instance of Symbol 343 MovieClip "area" in Symbol 863 MovieClip [zero] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 28
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 35
this._comboDone = true;
stop();
Symbol 863 MovieClip [zero] Frame 36
this.gotoAndStop(this._currentframe - 1);
Symbol 863 MovieClip [zero] Frame 56
this._comboDone = true;
stop();
Symbol 863 MovieClip [zero] Frame 57
this.gotoAndStop(this._currentframe - 1);
Symbol 863 MovieClip [zero] Frame 63
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 70
this._state = "jump";
this.gotoAndPlay("jump-loop");
Symbol 863 MovieClip [zero] Frame 77
this._state = "wallslide";
this.gotoAndPlay("wallslide-loop");
Symbol 863 MovieClip [zero] Frame 84
this._state = "dash";
this.gotoAndPlay(this._dashcheck);
Symbol 863 MovieClip [zero] Frame 110
if (!this._shadow) {
_root.mySound.playSound("chargedslash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 110
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 121
this._state = "jump";
this.gotoAndPlay("jump-loop");
Symbol 863 MovieClip [zero] Frame 123
if (!this._shadow) {
_root.mySound.playSound("slash");
}
this.jumpsaber.play();
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 123
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 133
this._state = "jump";
this.gotoAndPlay("jump-loop");
Symbol 863 MovieClip [zero] Frame 146
this.gotoAndPlay("jump-loop");
Symbol 863 MovieClip [zero] Frame 159
this.gotoAndPlay("dashjump-loop");
Symbol 863 MovieClip [zero] Frame 173
this.gotoAndPlay("fall-loop");
Symbol 863 MovieClip [zero] Frame 186
this.gotoAndPlay("dashfall-loop");
Symbol 863 MovieClip [zero] Frame 187
this._state = "idle";
Symbol 863 MovieClip [zero] Frame 191
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 199
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 200
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 201
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 202
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 203
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 204
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 205
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 206
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 207
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 208
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 209
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 210
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 211
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 212
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 213
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 214
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 215
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 216
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 217
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 218
slash._visible = (runsaber._currentframe >= 2) && (runsaber._currentframe <= 4);
buster._visible = runbuster._currentframe >= 2;
norm._visible = (!slash._visible) && (!buster._visible);
Symbol 863 MovieClip [zero] Frame 219
this.gotoAndPlay("run-loop");
Symbol 863 MovieClip [zero] Frame 227
this._state = "jump";
this.gotoAndPlay("jump-loop");
Symbol 863 MovieClip [zero] Frame 231
this._xscale = this._xscale * -1;
Symbol 863 MovieClip [zero] Frame 235
this._state = "jump";
this.gotoAndPlay("dashjump-loop");
Symbol 863 MovieClip [zero] Frame 239
if (!this._shadow) {
_root.mySound.playSound("chargedslash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 239
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 246
this._state = "wallslide";
this.gotoAndPlay("wallslide-loop");
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 255
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 256
if (!this._shadow) {
_root.mySound.playSound("slash");
}
Symbol 863 MovieClip [zero] Frame 264
this._state = "wallslide";
this.gotoAndPlay("wallslide-loop");
Symbol 863 MovieClip [zero] Frame 271
this._wallslideloop = false;
Symbol 863 MovieClip [zero] Frame 275
this._wallslideloop = true;
Symbol 863 MovieClip [zero] Frame 277
if (!this._shadow) {
_root.mySound.playSound("slide");
}
Symbol 863 MovieClip [zero] Frame 283
this.gotoAndPlay("wallslide-loop");
Symbol 863 MovieClip [zero] Frame 291
if (!this._shadow) {
_root.mySound.playSound("die");
}
Symbol 863 MovieClip [zero] Frame 352
this._state = "dead";
stop();
Symbol 863 MovieClip [zero] Frame 353
this.gotoAndStop(this._currentframe - 1);
Symbol 863 MovieClip [zero] Frame 356
if (!this._shadow) {
_root.mySound.playSound("dash");
}
this._dashcheck = "dash1";
Symbol 863 MovieClip [zero] Frame 358
this._dashcheck = "dash2";
Symbol 863 MovieClip [zero] Frame 360
this._dashcheck = "dash3";
Symbol 863 MovieClip [zero] Frame 362
this._dashcheck = "dash4";
Symbol 863 MovieClip [zero] Frame 364
this._dashcheck = "dashend";
Symbol 863 MovieClip [zero] Frame 366
this._state = "idle";
Symbol 863 MovieClip [zero] Frame 370
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 373
if (!this._shadow) {
_root.mySound.playSound("slash");
}
runsaber.gotoAndStop(1);
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 373
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 375
this._comboDone = true;
Symbol 863 MovieClip [zero] Frame 383
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 385
if (!this._shadow) {
_root.mySound.playSound("slash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 385
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 387
this._comboDone = true;
Symbol 863 MovieClip [zero] Frame 395
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 401
if (!this._shadow) {
_root.mySound.playSound("slash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 401
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 415
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 418
if (!this._shadow) {
_root.mySound.playSound("chargedslash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 420
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 430
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 435
if (!this._shadow) {
_root.mySound.playSound("slash");
}
Instance of Symbol 343 MovieClip "dmg" in Symbol 863 MovieClip [zero] Frame 435
onClipEvent (load) {
this._visible = false;
}
Symbol 863 MovieClip [zero] Frame 443
this.gotoAndPlay("dashend");
Symbol 863 MovieClip [zero] Frame 446
if (!this._shadow) {
_root.mySound.playSound("damage");
}
Symbol 863 MovieClip [zero] Frame 456
this._state = "idle";
this._invincible = 40;
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 462
_root.myWorld.sprite[0].charge1._visible = false;
_root.myWorld.sprite[0].charge2._visible = false;
_root.myWorld.sprite[0].chargeSound.gotoAndPlay("charge0");
Symbol 863 MovieClip [zero] Frame 467
if (!this._shadow) {
_root.mySound.playSound("zero-warp");
}
Symbol 863 MovieClip [zero] Frame 479
stop();
Symbol 863 MovieClip [zero] Frame 480
this.gotoAndStop(this._currentframe - 1);
Symbol 863 MovieClip [zero] Frame 485
if (!this._shadow) {
_root.mySound.playSound("zero-warp");
}
Symbol 863 MovieClip [zero] Frame 501
this._state = "idle";
this.gotoAndPlay("idle");
Symbol 863 MovieClip [zero] Frame 523
this.gotoAndPlay("hurt");
Instance of Symbol 343 MovieClip "area" in Symbol 868 MovieClip [bullet] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 868 MovieClip [bullet] Frame 5
gotoAndPlay (1);
Symbol 868 MovieClip [bullet] Frame 10
this._dissolving = true;
Symbol 868 MovieClip [bullet] Frame 13
this._dissolved = true;
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 870 MovieClip [enemydart] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 870 MovieClip [enemydart] Frame 9
gotoAndPlay (1);
Symbol 870 MovieClip [enemydart] Frame 10
this._dissolving = true;
Symbol 870 MovieClip [enemydart] Frame 13
this._dissolved = true;
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 875 MovieClip [enemybullet] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 875 MovieClip [enemybullet] Frame 9
gotoAndPlay (1);
Symbol 875 MovieClip [enemybullet] Frame 10
this._dissolving = true;
Symbol 875 MovieClip [enemybullet] Frame 13
this._dissolved = true;
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 883 MovieClip [bullet1] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 883 MovieClip [bullet1] Frame 15
gotoAndPlay (7);
Symbol 883 MovieClip [bullet1] Frame 18
this._dissolving = true;
Symbol 883 MovieClip [bullet1] Frame 21
this._dissolved = true;
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 884 MovieClip [runbullet] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 884 MovieClip [runbullet] Frame 5
gotoAndPlay (1);
Symbol 884 MovieClip [runbullet] Frame 10
this._dissolving = true;
Symbol 884 MovieClip [runbullet] Frame 13
this._dissolved = true;
stop();
Instance of Symbol 343 MovieClip "area" in Symbol 893 MovieClip [bullet2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 893 MovieClip [bullet2] Frame 17
gotoAndPlay (9);
Symbol 893 MovieClip [bullet2] Frame 18
this._dissolving = true;
Symbol 893 MovieClip [bullet2] Frame 21
this._dissolved = true;
stop();
Symbol 898 MovieClip [item_Z] Frame 1
this._powerup = true;
this.item = "extra";
Instance of Symbol 377 MovieClip "area" in Symbol 898 MovieClip [item_Z] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 911 MovieClip [subtank] Frame 1
this._powerup = true;
this.item = "subtank";
stop();
Instance of Symbol 377 MovieClip "area" in Symbol 911 MovieClip [subtank] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 916 MovieClip Frame 1
this.stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 935 MovieClip Frame 1
this.stop();
Instance of Symbol 949 MovieClip "multi" in Symbol 950 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndPlay(_root._continues + 1);
}
Symbol 962 MovieClip Frame 1
stop();
Symbol 962 MovieClip Frame 2
_root._missionstart = false;
play();
Symbol 962 MovieClip Frame 56
stop();
Symbol 967 Button
on (release) {
_root.pause();
}
Symbol 971 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 2
play();
Symbol 971 MovieClip Frame 12
stop();
Symbol 976 MovieClip Frame 1
this.stop();
Symbol 976 MovieClip Frame 3
_root.mySound.playSound("ching");
Symbol 976 MovieClip Frame 13
stop();
Symbol 983 Button
on (release) {
if (_root._escapable) {
_root.terrain = "throne";
if (_root.myMusic._volume > 0) {
_root.myMusic.setVolume(100);
}
_root.myWorld.sprite[0].gotoAndPlay("teleport");
_root.gotoAndPlay("fadeout");
} else {
_root.mySound.playSound("beep");
}
}
Symbol 998 Button
on (release) {
_parent.gotoAndPlay("controls");
}
Symbol 1009 MovieClip Frame 7
stop();
Symbol 1014 Button
on (release) {
if (feed._visible && (_root._ecrystals >= 100)) {
_root._elf1a = 2;
use._visible = true;
feed._visible = false;
_root.mySound.playSound("start");
_root._ecrystals = _root._ecrystals - 100;
} else if (feed._visible) {
_root.mySound.playSound("beep");
}
}
Symbol 1017 Button
on (release) {
if (use._visible && (_root.myWorld.sprite[0]._hp > 0)) {
_root._elf1a = 1;
_root.myWorld.sprite[0]._hp = _root.myWorld.sprite[0]._hpmax;
use._visible = false;
feed._visible = true;
_root.mySound.playSound("start");
_root.elfs++;
}
}
Symbol 1018 MovieClip Frame 1
stop();
Symbol 1018 MovieClip Frame 2
feed._visible = _root._elf1a == 1;
use._visible = !feed._visible;
Symbol 1026 Button
on (press) {
elfscreen.gotoAndStop(2);
}
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 1
stop();
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1040 MovieClip Frame 1
stop();
Symbol 1042 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 1
stop();
Symbol 1047 MovieClip Frame 1
stop();
Symbol 1049 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 1
heal2._visible = _root._elf1a > 0;
Instance of Symbol 949 MovieClip "multi" in Symbol 1058 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndPlay(_root._continues + 1);
}
Symbol 1062 Button
on (release) {
_root.unpause();
}
Symbol 1073 MovieClip Frame 11
stop();
Symbol 1077 Button
on (release) {
if (!_root._gettingNewKey) {
gotoAndStop (3);
}
}
Symbol 1080 Button
on (release) {
if (!_root._gettingNewKey) {
_root.myKeyboard.generic.setKey("left", 65);
_root.myKeyboard.generic.setKey("right", 68);
_root.myKeyboard.generic.setKey("up", 87);
_root.myKeyboard.generic.setKey("down", 83);
_root.myKeyboard.generic.setKey("jump", 71);
_root.myKeyboard.generic.setKey("attack", 70);
_root.myKeyboard.generic.setKey("dash", 82);
_root.myKeyboard.generic.setKey("secondary", 84);
}
}
Symbol 1082 Button
on (release) {
if (!_root._gettingNewKey) {
_root.myKeyboard.generic.setKey("left", 65);
_root.myKeyboard.generic.setKey("right", 68);
_root.myKeyboard.generic.setKey("up", 87);
_root.myKeyboard.generic.setKey("down", 83);
_root.myKeyboard.generic.setKey("attack", 78);
_root.myKeyboard.generic.setKey("jump", 77);
_root.myKeyboard.generic.setKey("dash", 72);
_root.myKeyboard.generic.setKey("secondary", 74);
}
}
Symbol 1084 Button
on (release) {
if (!_root._gettingNewKey) {
kstring = "<PRESS KEY>";
_root._gettingNewKey = true;
gotoAndPlay (3);
}
}
Symbol 1086 MovieClip Frame 1
kstring = _root.keyToString(_root.myKeyboard.generic.getKey(keyName)._keyCode);
Symbol 1086 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1086 MovieClip Frame 3
this._focusrect = false;
this.focusEnabled = true;
Selection.setFocus(this);
this.onKeyDown = function () {
newkey = Key.getCode();
_root._gettingNewKey = false;
_root.myKeyboard.generic.getKey(keyName)._keyCode = newkey;
this.onKeyDown = null;
gotoAndPlay (1);
};
Symbol 1086 MovieClip Frame 4
gotoAndPlay (3);
Symbol 1093 Button
on (release) {
if (!_root._gettingNewKey) {
_root.myKeyboard.generic.setKey("left", 37);
_root.myKeyboard.generic.setKey("right", 39);
_root.myKeyboard.generic.setKey("up", 38);
_root.myKeyboard.generic.setKey("down", 40);
_root.myKeyboard.generic.setKey("attack", 67);
_root.myKeyboard.generic.setKey("jump", 88);
_root.myKeyboard.generic.setKey("dash", 90);
_root.myKeyboard.generic.setKey("secondary", 65);
}
}
Symbol 1095 Button
on (release) {
if (!_root._gettingNewKey) {
_root.myKeyboard.generic.setKey("left", 37);
_root.myKeyboard.generic.setKey("right", 39);
_root.myKeyboard.generic.setKey("up", 38);
_root.myKeyboard.generic.setKey("down", 40);
_root.myKeyboard.generic.setKey("attack", 97);
_root.myKeyboard.generic.setKey("jump", 98);
_root.myKeyboard.generic.setKey("dash", 100);
_root.myKeyboard.generic.setKey("secondary", 101);
}
}
Symbol 1096 MovieClip [mainframe] Frame 1
if (_root.level == "E") {
zero_hp.level.gotoAndStop(2);
} else if (_root.level == "D") {
zero_hp.level.gotoAndStop(3);
} else if (_root.level == "C") {
zero_hp.level.gotoAndStop(4);
} else if (_root.level == "B") {
zero_hp.level.gotoAndStop(5);
} else if (_root.level == "A") {
zero_hp.level.gotoAndStop(6);
} else if (_root.level == "S") {
zero_hp.level.gotoAndStop(7);
}
stop();
Symbol 1096 MovieClip [mainframe] Frame 5
_gettingNewKey = false;
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "left";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "right";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "up";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "down";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "attack";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "jump";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "dash";
}
Instance of Symbol 1086 MovieClip in Symbol 1096 MovieClip [mainframe] Frame 5
onClipEvent (load) {
keyName = "secondary";
}
Symbol 1096 MovieClip [mainframe] Frame 7
this.gotoAndPlay(this._currentframe - 1);
Symbol 1103 MovieClip [text-ciel-0] Frame 1
var txt = "I'm so sorry, Zero.\nIt's my fault your body\nis gone...";
_root.writeText(this.box, txt);
Symbol 1103 MovieClip [text-ciel-0] Frame 3
_root.waitForText(this);
Symbol 1103 MovieClip [text-ciel-0] Frame 5
_root.pressAnyKey(this);
Symbol 1103 MovieClip [text-ciel-0] Frame 11
stop();
Symbol 1114 MovieClip [text-ciel-elf] Frame 1
var txt = "Oh Zero, you've come to pick\nup the cyber-elves?";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 3
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 5
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 6
var txt = "Most aren't ready yet, but\nyou can hold this one.";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 8
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 10
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 13
_root.mySound.playSound("taken");
_root._elf1a = 1;
Symbol 1114 MovieClip [text-ciel-elf] Frame 49
var txt = "The cyber-elves are capable\nof rebirth.";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 51
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 53
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 54
var txt = "Even after you've used them,\nthey will revert to their\nprevious form.";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 56
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 58
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 59
var txt = "But you'll have to feed them\nagain. Oh, you do remember\nthey feed on E-Crystals?";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 61
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 63
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 64
var txt = "If you want to use or\nfeed an elf, just open the\npause menu!";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 66
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 68
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 69
var txt = "I'm still sorry for losing your\noriginal body.. I'll do my\nbest to help!";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 71
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 73
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 74
var txt = "Oh, I think X wanted to talk\nto you. He's waiting in the\nthrone.";
_root.writeText(this.box, txt);
Symbol 1114 MovieClip [text-ciel-elf] Frame 76
_root.waitForText(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 78
_root.pressAnyKey(this);
Symbol 1114 MovieClip [text-ciel-elf] Frame 84
stop();
Symbol 1119 MovieClip [text-maha-defeated] Frame 1
var txt = "Augh...\nWh-- What am I doing here..?";
_root.writeText(this.box, txt);
Symbol 1119 MovieClip [text-maha-defeated] Frame 3
_root.waitForText(this);
Symbol 1119 MovieClip [text-maha-defeated] Frame 5
_root.pressAnyKey(this);
Symbol 1119 MovieClip [text-maha-defeated] Frame 11
_root.myWorld.sprite[1].gotoAndPlay("explode");
Symbol 1119 MovieClip [text-maha-defeated] Frame 40
_root.myWorld.sprite[0].gotoAndPlay("teleport");
Symbol 1119 MovieClip [text-maha-defeated] Frame 41
_root.myWorld.sprite[0].gotoAndPlay("teleport");
Symbol 1119 MovieClip [text-maha-defeated] Frame 60
stop();
Symbol 1122 MovieClip [text-maha-intro] Frame 1
var txt = "You dare disrupt Lord Weil's\nplan?!";
_root.writeText(this.box, txt);
Symbol 1122 MovieClip [text-maha-intro] Frame 3
_root.waitForText(this);
Symbol 1122 MovieClip [text-maha-intro] Frame 5
_root.pressAnyKey(this);
Symbol 1122 MovieClip [text-maha-intro] Frame 6
var txt = "Suffer the consequences\nof defying Lord Weil!";
_root.writeText(this.box, txt);
Symbol 1122 MovieClip [text-maha-intro] Frame 8
_root.waitForText(this);
Symbol 1122 MovieClip [text-maha-intro] Frame 10
_root.pressAnyKey(this);
Symbol 1122 MovieClip [text-maha-intro] Frame 18
stop();
Symbol 1136 MovieClip [text-mission0-end] Frame 31
var txt = "Welcome back, Zero.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 33
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 35
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 41
var txt = "I couldn't reach Mother Elf\nin time...";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 43
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 45
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 46
var txt = "X... That reploid I was fighting,\nOmega. Have you heard of it?";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 48
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 50
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 56
var txt = "Omega? I remember Dr Weil\nworked on an 'ultimate'\nNeo Arcadian guardian...";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 58
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 60
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 61
var txt = "I thought he had abandoned\nthe work months ago...";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 63
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 65
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 72
var txt = "...\nDo you know what Dr Weil did\nto Mother Elf?";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 74
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 76
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 82
var txt = "... He intended to re-engineer\nMother Elf into a 'compliable'\nform for duplication.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 84
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 86
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 92
var txt = "Duplication?";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 94
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 96
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 102
var txt = "Yes. He plans to clone her.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 104
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 106
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 107
var txt = "This 'curse' he placed on\nMother Elf is unstable as it is.\nShe can't control her powers.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 109
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 111
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 112
var txt = "He's endangering the lives of\nall humans and reploids!";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 114
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 116
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 117
var txt = "I need time to locate Dr Weil.\nIn the meantime, drop by the\nSci-Lab on the third floor.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 119
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 121
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 122
var txt = "You should try out the new\ncyber-elves they've been\nworking on.";
_root.writeText(this.box, txt);
Symbol 1136 MovieClip [text-mission0-end] Frame 124
_root.waitForText(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 126
_root.pressAnyKey(this);
Symbol 1136 MovieClip [text-mission0-end] Frame 135
stop();
Symbol 1140 MovieClip [text-npc-0] Frame 1
var txt = "Hey, Zero. You know Ciel?\nShe's a child prodigy! You just\nknow great things await her!";
_root.writeText(this.box, txt);
Symbol 1140 MovieClip [text-npc-0] Frame 3
_root.waitForText(this);
Symbol 1140 MovieClip [text-npc-0] Frame 5
_root.pressAnyKey(this);
Symbol 1140 MovieClip [text-npc-0] Frame 11
stop();
Symbol 1149 MovieClip [text-omega-defeated] Frame 1
var txt = "Grrr...";
_root.writeText(this.box, txt);
_root.mySound.playSound("growl");
Symbol 1149 MovieClip [text-omega-defeated] Frame 3
_root.waitForText(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 5
_root.pressAnyKey(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 11
var txt = "Omega, that will be enough.\nMother Elf is safely in our\nhands now.";
_root.writeText(this.box, txt);
Symbol 1149 MovieClip [text-omega-defeated] Frame 13
_root.waitForText(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 15
_root.pressAnyKey(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 21
_root.myWorld.sprite[1].gotoAndPlay("teleport");
Symbol 1149 MovieClip [text-omega-defeated] Frame 31
var txt = "That voice...\n...Dr Weil!";
_root.writeText(this.box, txt);
Symbol 1149 MovieClip [text-omega-defeated] Frame 33
_root.waitForText(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 35
_root.pressAnyKey(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 41
var txt = "Wait till X hears about this...";
_root.writeText(this.box, txt);
Symbol 1149 MovieClip [text-omega-defeated] Frame 43
_root.waitForText(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 45
_root.pressAnyKey(this);
Symbol 1149 MovieClip [text-omega-defeated] Frame 51
_root.myWorld.sprite[0].gotoAndPlay("teleport");
Symbol 1149 MovieClip [text-omega-defeated] Frame 52
_root.myWorld.sprite[0].gotoAndPlay("teleport");
Symbol 1149 MovieClip [text-omega-defeated] Frame 67
stop();
Symbol 1151 MovieClip [text-x-0] Frame 1
var txt = "Have you visited Sci-Lab yet?";
_root.writeText(this.box, txt);
Symbol 1151 MovieClip [text-x-0] Frame 3
_root.waitForText(this);
Symbol 1151 MovieClip [text-x-0] Frame 5
_root.pressAnyKey(this);
Symbol 1151 MovieClip [text-x-0] Frame 11
stop();
Symbol 1163 MovieClip [text-x-1] Frame 1
var txt = "Zero... this isn't good.";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 3
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 5
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 6
var txt = "It seems like Dr Weil is\nplanning to recruit a large\narmy of reploids by force...";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 8
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 10
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 11
var txt = "Using the power of the Elf,\nhe's taken control of countless\nNeo Arcadian reploids...";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 13
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 15
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 16
var txt = "I've already requested the\nhelp of the Guardians, but...";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 18
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 20
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 21
var txt = "Dr Weil has also taken hold of\nan arms factory. We can't let\nhim strengthen his force!";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 23
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 25
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 26
var txt = "We must destroy the factory.";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 28
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 30
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 31
var txt = "Send me there.";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 33
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 35
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 39
var txt = "Of course.\nPrepare for transfer...";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 41
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 43
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 50
_root.myWorld.sprite[0].gotoAndPlay("teleport");
Symbol 1163 MovieClip [text-x-1] Frame 70
var txt = "Good luck.";
_root.writeText(this.box, txt);
Symbol 1163 MovieClip [text-x-1] Frame 72
_root.waitForText(this);
Symbol 1163 MovieClip [text-x-1] Frame 74
_root.pressAnyKey(this);
Symbol 1163 MovieClip [text-x-1] Frame 80
_root.terrain = "factory-01";
_root._mission = 1;
_root._missionstart = true;
_root.resetMission();
this.stop();
_root.gotoAndPlay("fadeout");
Symbol 1165 MovieClip [text-nofirst] Frame 1
var txt = "Door under maintenance?\n...";
_root.writeText(this.box, txt);
_root.myWorld.sprite[0].setState("idle");
Symbol 1165 MovieClip [text-nofirst] Frame 3
_root.waitForText(this);
Symbol 1165 MovieClip [text-nofirst] Frame 5
_root.pressAnyKey(this);
Symbol 1165 MovieClip [text-nofirst] Frame 11
stop();
Symbol 1169 MovieClip [text-omega-intro] Frame 1
var txt = "...!";
_root.writeText(this.box, txt);
Symbol 1169 MovieClip [text-omega-intro] Frame 3
_root.waitForText(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 5
_root.pressAnyKey(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 6
var txt = "You are responsible for this?!";
_root.writeText(this.box, txt);
Symbol 1169 MovieClip [text-omega-intro] Frame 8
_root.waitForText(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 10
_root.pressAnyKey(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 16
var txt = "Grrr...";
_root.writeText(this.box, txt);
_root.mySound.playSound("growl");
Symbol 1169 MovieClip [text-omega-intro] Frame 18
_root.waitForText(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 20
_root.pressAnyKey(this);
Symbol 1169 MovieClip [text-omega-intro] Frame 26
stop();
Symbol 1171 MovieClip [text-gotoroof] Frame 1
var txt = "No, I have no time for that.\nI must head to the roof and\nfind Mother Elf.";
_root.writeText(this.box, txt);
_root.myWorld.sprite[0].setState("idle");
Symbol 1171 MovieClip [text-gotoroof] Frame 3
_root.waitForText(this);
Symbol 1171 MovieClip [text-gotoroof] Frame 5
_root.pressAnyKey(this);
Symbol 1171 MovieClip [text-gotoroof] Frame 11
stop();
Symbol 1197 MovieClip Frame 14
stop();
Symbol 1269 Button
on (release) {
getURL ("http://www.flashportal.com/", "_blank", "POST");
}
Instance of Symbol 1303 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(160);
}
Instance of Symbol 1303 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(120);
}
Instance of Symbol 1303 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(40);
}
Instance of Symbol 1303 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(0);
}
Symbol 1332 Button
on (release) {
_root.mySound.playSound("start");
gotoAndPlay (602);
}
Symbol 1335 Button
on (release) {
s1._visible = false;
s2._visible = true;
_root.mySound.setVolume(0);
}
Symbol 1338 Button
on (release) {
m1._visible = false;
m2._visible = true;
_root.myMusic.setVolume(0);
}
Symbol 1341 Button
on (release) {
s1._visible = true;
s2._visible = false;
_root.mySound.setVolume(100);
}
Symbol 1344 Button
on (release) {
m1._visible = true;
m2._visible = false;
_root.myMusic.setVolume(100);
}
Symbol 1347 Button
on (release) {
_root._difficulty = "Normal";
_root._dmgmod = 1;
_root.mySound.playSound("start");
gotoAndPlay (605);
}
Symbol 1350 Button
on (release) {
_root._difficulty = "Easy";
_root._dmgmod = 0.5;
_root._busterpower = _root._busterpower / _root._dmgmod;
_root._dashbusterpower = _root._dashbusterpower / _root._dmgmod;
_root._chargedbusterpower = _root._chargedbusterpower / _root._dmgmod;
_root._doublechargedbusterpower = _root._doublechargedbusterpower / _root._dmgmod;
_root._saberpower = _root._saberpower / _root._dmgmod;
_root._runsaberpower = _root._runsaberpower / _root._dmgmod;
_root._dashsaberpower = _root._dashsaberpower / _root._dmgmod;
_root._chargedsaberpower = _root._chargedsaberpower / _root._dmgmod;
_root.mySound.playSound("start");
gotoAndPlay (605);
}
Symbol 1353 Button
on (release) {
_root._difficulty = "Hard";
_root._dmgmod = 2;
_root.charge_threshold1 = 90000 /* 0x015F90 */;
_root.charge_threshold2 = 90000 /* 0x015F90 */;
_root.mySound.playSound("start");
gotoAndPlay (605);
}
Symbol 1357 Button
on (release) {
if (!_root._gettingNewKey) {
_root.mySound.playSound("start");
gotoAndPlay (608);
}
}
Symbol 1362 Button
on (release) {
_root.myMusic.load("caravan", true);
_root.myMusic.play();
gotoAndPlay (1779);
}
Symbol 1429 MovieClip Frame 9
_root.mySound.playSound("hitground");
Symbol 1429 MovieClip Frame 24
stop();
Symbol 1435 MovieClip Frame 8
_root.mySound.playSound("charge1");
Symbol 1449 MovieClip Frame 2
_root.mySound.playSound("charge1");
Symbol 1449 MovieClip Frame 10
_root.mySound.playSound("charge1");
Symbol 1449 MovieClip Frame 18
_root.mySound.playSound("charge1");
Symbol 1449 MovieClip Frame 26
_root.mySound.playSound("charge1");
Symbol 1449 MovieClip Frame 32
_root.mySound.playSound("charge2");
Symbol 1449 MovieClip Frame 40
_root.mySound.playSound("charge2");
Symbol 1449 MovieClip Frame 48
_root.mySound.playSound("charge2");
Symbol 1449 MovieClip Frame 56
_root.mySound.playSound("charge2");
Symbol 1449 MovieClip Frame 65
_root.mySound.playSound("explode-large");
Symbol 1543 MovieClip Frame 17
gotoAndPlay (1);
Symbol 1543 MovieClip Frame 45
_root.mySound.playSound("hitground");
Symbol 1543 MovieClip Frame 61
stop();
Symbol 1595 Button
on (release) {
_root._continues = 2;
if (_root.gameover.indexOf("factory") != -1) {
_root.terrain = "factory-01";
} else if (_root.gameover.indexOf("rooftops") != -1) {
_root.terrain = "rooftops-01";
}
_root._missionstart = true;
_root.resetMission();
gotoAndPlay (1939);
}
Symbol 1598 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1615 Button
on (release) {
getURL ("http://www.flashportal.com/", "_blank", "POST");
}
Symbol 1618 Button
on (release) {
gotoAndPlay (1);
}