Frame 1
fscommand ("fullscreen", true);
fscommand ("allowscale", false);
perc = int((getBytesLoaded() / getBytesTotal()) * 100);
if (getBytesLoaded() == getBytesTotal()) {
gotoAndStop (3);
}
Instance of Symbol 285 MovieClip "loadingSH" in Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.perc);
}
Frame 2
gotoAndPlay (1);
Frame 3
gotoAndPlay ("menuStart");
Frame 56
stop();
Frame 74
stop();
Instance of Symbol 208 MovieClip [FScrollPaneSymbol] "scoreHolder" in Frame 81
//component parameters
onClipEvent (initialize) {
scrollContent = "scoresLoader";
hScroll = "false";
vScroll = "true";
dragContent = false;
}
Frame 84
stop();
Frame 94
stop();
Frame 103
stop();
Frame 112
gotoAndPlay ("gameStart");
Frame 113
EnemyBase = function (rot) {
this.exD = 3;
_global.radarNum++;
this.blip = _root.radar.attachMovie(this.blipName, "blip" + _global.radarNum, _global.radarNum);
if (!rot) {
rot = 180 - random(360);
}
this.rotSwap(rot);
this._visible = 0;
};
EnemyBase.prototype = new MovieClip();
EnemyBase.prototype.rotSwap = function (rot) {
this._rotation = (this.rot = rot);
delete this.mR;
this.mR = Math.trigXY(this.rot, this.speed);
};
EnemyBase.prototype.move = function () {
this.x = this.x + this.mR[0];
this.y = this.y + this.mR[1];
this.update();
};
EnemyBase.prototype.update = function () {
this.xOff = (ship._x - _root.gFx) - this.x;
this.yOff = (ship._y - _root.gFy) - this.y;
this.upDateBlip();
};
EnemyBase.prototype.upDateBlip = function () {
this.blip._x = (-this.xOff) / 50;
this.blip._y = (-this.yOff) / 50;
};
EnemyBase.prototype.makeOff = function () {
this.blip.removeMovieClip();
this.removeMovieClip();
};
EnemyBase.prototype.makeExplode = function (i) {
var _local3 = 20 + random(45);
this.damage = this.damage - _local3;
trace("Damage Inflicted: " + _local3);
if (this.damage <= 0) {
if (!this.killAdd) {
this.killAdd = true;
_root.enemyKills++;
}
this.gotoAndPlay("sink");
_root.score = _root.score + this.scoreAdd;
this.blip.removeMovieClip();
this.onEnterFrame = null;
this._parent.dS.removeMovieClip();
} else {
this.damageClip._alpha = 120 - this.damage;
this["dam" + random(3)].gotoAndStop(2);
this._parent.attachMovie("damageShow", "dS", 2000, {percent:this.damage, _xscale:50, _yscale:50, _x:this._x, _y:this._y - 50, follow:this});
this.attachMovie("explodeSmall", "explodeSmall", this.exD++);
}
_root.removeRocket(i);
};
EnemyBase.prototype.showMe = function () {
if (Math.abs((ship._x - _root.gFx) - this.x) < ((_root.mask._width / 2) + this._width)) {
if (Math.abs((ship._y - _root.gFy) - this.y) < ((_root.mask._height / 2) + this._height)) {
if (_global.targetOn & (this.noTarget != true)) {
if (this.hitTest(_root.target)) {
_root.target.followMe(this.xOff, this.yOff, this);
}
}
if (this.rockHit) {
var _local4;
_local4 = 0;
while (_local4 < rocketList.length) {
if (this.hitTest(rocketList[_local4]._x + _root.gFx, rocketList[_local4]._y + _root.gFy, true)) {
this.makeExplode(_local4);
}
_local4++;
}
}
if (!this.onScreen) {
shipsOnScreen[this._name] = true;
this.onScreen = true;
this._visible = 1;
}
this._x = this.x;
this._y = this.y;
} else if (this._visible == 1) {
delete shipsOnScreen[this._name];
this.onScreen = false;
this._visible = 0;
}
} else if (this._visible == 1) {
delete shipsOnScreen[this._name];
this.onScreen = false;
this._visible = 0;
}
};
function enemyCopter() {
this.createEmptyMovieClip("sound1", 10);
this.shipFire = new Sound(this.sound1);
this.shipFire.attachSound("shipFire");
this.shipFire.setVolume(70);
this.scoreAdd = 100;
this.rockHit = false;
this.x = 1000 - random(2000);
this.y = 1000 - random(2000);
this.damage = 100;
this.noTarget = true;
this.Xdist = (ship._x - _root.gFx) - this._x;
this.Ydist = (148 - _root.gFy) - this._y;
this.rot = 90 + Math.findRot(this.xDist, this.yDist);
this.active = false;
this.blipName = "blip4";
this.speed = 0;
super(this.rot);
}
enemyCopter.prototype = new EnemyBase();
enemyCopter.prototype.onEnterFrame = function () {
super.showMe();
super.upDateBlip();
if (this.onScreen && (this.active == false)) {
coptersOn.push(this);
this.active = true;
this.speed = 6;
}
if (this.active) {
if (random(30) < 1) {
this.shoot();
}
this.tXdist = ((ship._x - _root.gFx) - this._x) + random(10);
this.tYdist = ((148 - _root.gFy) - this._y) + random(10);
if ((Math.abs(this.tXdist) > 20) && (Math.abs(this.tYdist) > 20)) {
super.move();
}
this.xDist = this.xDist + ((this.tXdist - this.xDist) / 5);
this.yDist = this.yDist + ((this.tYdist - this.yDist) / 5);
this.rot = 90 + Math.findRot(this.xDist, this.yDist);
super.rotSwap(this.rot);
} else {
this.xOff = (ship._x - _root.gFx) - this.x;
this.yOff = (ship._y - _root.gFy) - this.y;
this.blip._x = (-this.xOff) / 50;
this.blip._y = (-this.yOff) / 50;
}
};
enemyCopter.prototype.shoot = function () {
var _local3 = (-this.tXdist) / 3;
if (_local3 > 100) {
_local3 = 100;
} else if (_local3 < -100) {
_local3 = -100;
}
this.shipFire.setPan(_local3);
this.shipFire.start();
_global.gNum++;
this._parent.attachMovie("warShipFire", "warShipFire" + _global.gNum, _global.gNum, {_x:this._x, _y:this._y, dir:this.rot, speed:10});
};
Object.registerClass("enemyCopter", enemyCopter);
function WarShip() {
this.damNum = 1;
this.createEmptyMovieClip("sound1", 10);
this.shipFire = new Sound(this.sound1);
this.shipFire.attachSound("shipFire");
this.shipFire.setVolume(50);
this.title = "TARGET LOCKED";
this.scoreAdd = 80;
this.damage = 100;
this.rockHit = true;
this.x = 1000 - random(2000);
this.y = 1000 - random(2000);
this.blipName = "blip2";
this.speed = 2;
super();
this.finalRot = this.rot;
}
function warShipFire() {
this.c = 0;
if (!dir) {
var _local4 = (ship._x - _root.gFx) - this._x;
var _local3 = (ship._y - _root.gFy) - this._y;
this.dir = 90 + Math.findRot(_local4, _local3);
}
this._rotation = this.dir;
this.rTo = Math.trigXY(this.dir, this.speed);
}
WarShip.prototype = new EnemyBase();
WarShip.prototype.onEnterFrame = function () {
for (a in shipsOnScreen) {
if (((a != this._name) && (a.charAt(2) != "l")) && (a.charAt(0) != "e")) {
if (this.hitTest(_root.gF[a])) {
if (this.onScreen) {
this.x = this.x - this.mR[0];
this.y = this.y - this.mR[1];
} else {
this.x = this.x - (this.mR[0] * 3);
this.y = this.y - (this.mR[1] * 3);
}
}
}
}
super.move();
if (random(20) < 1) {
this.chaseShip();
}
super.showMe();
if (this.onScreen) {
if (random(20) < 1) {
this.shoot();
}
}
if (this.rot > (this.finalRot + 2)) {
super.rotSwap(this.rot - 1);
} else if (this.rot < (this.finalRot - 2)) {
super.rotSwap(this.rot + 1);
}
};
Warship.prototype.chaseShip = function () {
var _local4 = (ship._x - _root.gFx) - this.x;
var _local3 = (ship._y - _root.gFy) - this.y;
this.xDist = _local4 - this.xDist;
this.yDist = _local3 - this.yDist;
this.finalRot = 90 + Math.findRot(_local4, _local3);
};
WarShip.prototype.shoot = function () {
var _local4 = (-((ship._x - _root.gFx) - this.x)) / 3;
if (_local4 > 100) {
_local4 = 100;
} else if (_local4 < -100) {
_local4 = -100;
}
this.shipFire.setPan(_local4);
trace(_local4);
this.shipFire.start();
_global.gNum++;
this._parent.attachMovie("warShipFire", "warShipFire" + _global.gNum, _global.gNum, {_x:this._x, _y:this._y, speed:8});
};
Object.registerClass("WarShip", WarShip);
warShipFire.prototype = new MovieClip();
warShipFire.prototype.onEnterFrame = function () {
this.c++;
this._x = this._x + this.rTo[0];
this._y = this._y + this.rTo[1];
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (_root.ship.hitTest(this._x + _root.gFx, this._y + _root.gFy, true)) {
_root.shipHit(this.rTo[0], this.rTo[1]);
this.removeMovieClip();
}
if (this.c > 24) {
this.removeMovieClip();
}
};
Object.registerClass("warShipFire", warShipFire);
function SoldierControl() {
this.title = "RELEASE TO RESCUE SOLDIER";
this.scoreAdd = 125;
this.rockHit = false;
this.x = 1000 - random(2000);
this.y = 1000 - random(2000);
this.blipName = "blip3";
this.soldier = true;
super();
}
SoldierControl.prototype = new EnemyBase();
SoldierControl.prototype.onEnterFrame = function () {
super.showMe();
super.update();
};
Object.registerClass("soldier", SoldierControl);
function HomeShip() {
this.createEmptyMovieClip("sound1", 10);
this.shipFire = new Sound(this.sound1);
this.shipFire.attachSound("shipFire");
this.shipFire.setVolume(45);
this.title = "RELEASE TO LAND";
this.rockHit = true;
this.rockAt = true;
this.Sdamage = _root.sDamage;
this.watch("Sdamage", this.damread);
this.Sdamage = this.Sdamage + 600;
this.home = true;
this.blipName = "homeBlip";
this._x = (this._parent.HomeShipWake._x = (this.x = 260));
this._y = (this._parent.HomeShipWake._y = (this.y = 120));
shipsOnScreen[this._name] = true;
super(1);
this._visible = 1;
this.onScreen = true;
}
function homeShipFire() {
this.c = 0;
var _local3 = this.target._x - this._x;
var _local2 = this.target._y - this._y;
this.dir = 90 + Math.findRot(_local3, _local2);
this._rotation = this.dir;
this.rTo = Math.trigXY(this.dir, this.speed);
}
HomeShip.prototype = new EnemyBase();
HomeShip.prototype.makeOff = function () {
};
HomeShip.prototype.makeExplode = function (i) {
attachMovie("textShow", "textShow", 5000, {myText:"YOU ARE SHOOTING YOUR OWN SHIP"});
this.Sdamage = this.Sdamage - 20;
_global.gNum++;
this._parent.attachMovie("explode", "explode", _global.gNum, {_x:rocketList[i]._x, _y:rocketList[i]._y});
rocketList[i].removeMovieClip();
_root.removeRocket(i, true);
};
HomeShip.prototype.onEnterFrame = function () {
this.showMe();
this.xOff = (ship._x - _root.gFx) - this.x;
this.yOff = (ship._y - _root.gFy) - this.y;
this.blip._x = (-this.xOff) / 50;
this.blip._y = (-this.yOff) / 50;
if (this.onScreen) {
if (coptersOn.length >= 1) {
if (random(20) < 1) {
this.shoot(coptersOn[0], 0);
}
}
}
};
HomeShip.prototype.showMe = function () {
if (Math.abs((ship._x - _root.gFx) - this.x) < ((_root.mask._width / 2) + this._width)) {
if (Math.abs((ship._y - _root.gFy) - this.y) < ((_root.mask._height / 2) + this._height)) {
this.onScreen = true;
if (_global.targetOn & (this.noTarget != true)) {
if (this.hitAreaClip.hitTest(_root.target)) {
_root.target.followMe(this.xOff, this.yOff - 150, this);
}
}
if (this.rockHit) {
var _local4;
_local4 = 0;
while (_local4 < rocketList.length) {
if (this.hitTest(rocketList[_local4]._x + _root.gFx, rocketList[_local4]._y + _root.gFy, true)) {
this.makeExplode(_local4);
}
_local4++;
}
}
} else {
this.onScreen = false;
}
} else {
this.onScreen = false;
}
};
HomeShip.prototype.damread = function (a, b, c) {
if (c <= 0) {
c = 0;
trace("gameOver");
_root.homeEndGame();
}
if (c > 1000) {
c = 1000;
}
_root.sDamage = c;
bMeter._yscale = c / 14;
bMeter.play();
sDamage = c;
return(c);
};
HomeShip.prototype.shoot = function (cop, copNum) {
this.shipFire.start();
_global.gNum++;
_root.gF.attachMovie("homeShipFire", "homeShipFire" + _global.gNum, _global.gNum, {_x:this._x, _y:this._y, speed:8, target:cop, targetNum:copNum});
};
Object.registerClass("HomeShip", HomeShip);
homeShipFire.prototype = new MovieClip();
homeShipFire.prototype.onEnterFrame = function () {
this.c++;
this._x = this._x + this.rTo[0];
this._y = this._y + this.rTo[1];
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
if (_root.ship.hitTest(this._x + _root.gFx, this._y + _root.gFy, true)) {
_root.ship.attachMovie("explodeBullet", "bF", 1);
_root.shipHit(this.rTo[0], this.rTo[1]);
this.removeMovieClip();
}
var _local3 = 0;
while (_local3 < coptersOn.length) {
if (_root.coptersOn[_local3].hitTest(this._x + _root.gFx, this._y + _root.gFy, true)) {
_root.coptersOn[_local3].damage = _root.coptersOn[_local3].damage - (25 + random(25));
if ((_root.coptersOn[_local3].damage <= 0) && (coptersOn[_local3].down != true)) {
_root.coptersOn[_local3].onEnterFrame = null;
_root.coptersOn[_local3].gotoAndPlay("sink");
_root.coptersOn[_local3].blip.removeMovieClip();
_root.coptersOn[_local3].down = true;
this._parent.dS.removeMovieClip();
_root.coptersOn.deleteAt(_local3);
} else {
_root.coptersOn[_local3]["dam" + random(3)].gotoAndStop(2);
this._parent.attachMovie("damageShow", "dS", 2000, {percent:_root.coptersOn[_local3].damage, _xscale:50, _yscale:50, _x:_root.coptersOn[_local3]._x, _y:_root.coptersOn[_local3]._y - 50, follow:_root.coptersOn[_local3]});
_root.coptersOn[_local3].attachMovie("explodeBullet", "bF", 1);
}
this.removeMovieClip();
}
_local3++;
}
if (this.c > 38) {
this.removeMovieClip();
}
};
Object.registerClass("homeShipFire", homeShipFire);
function SubControl() {
this.title = "TARGET LOCKED";
this.scoreAdd = 45;
this.rockHit = true;
this.damage = 40;
this.blipName = "blip";
this.speed = 2;
var _local4 = 180 - random(360);
this.tX = 260;
this.tY = 180;
var _local3 = Math.trigXY(_local4, 500 + random(3000));
this.x = this.tX + _local3[0];
this.y = this.tY + _local3[1];
var _local6 = this.tX - this.x;
var _local5 = this.tY - this.y;
var _local7 = 90 + Math.findRot(_local6, _local5);
super(_local7);
}
function torpedo() {
this.c = 0;
this.target = this._parent.homeShip;
var _local3 = 260 - this._x;
var _local2 = 180 - this._y;
this.dir = 90 + Math.findRot(_local3, _local2);
this._rotation = this.dir;
this.rTo = Math.trigXY(this.dir, this.speed);
}
SubControl.prototype = new EnemyBase();
SubControl.prototype.onEnterFrame = function () {
if ((Math.abs(this.x - this.tX) > 90) && (Math.abs(this.y - this.tY) > 90)) {
super.move();
} else {
var _local4 = this.tX - this.x;
var _local3 = (this.tY = 180 - this.y);
var _local5 = 90 + Math.findRot(_local4, _local3);
super.rotSwap(_local5);
super.update();
if (random(100) < 1) {
if ((this.x != 0) && (this.y != 0)) {
this.shootT();
} else {
trace(((("sub: " + this._name) + " tried an illegal shot") + " with a _vis of ") + this._visible);
}
}
}
super.showMe();
};
SubControl.prototype.shootT = function () {
_global.gNum++;
_root.gF.attachMovie("torpedo", "torpedo" + _global.gNum, _global.gNum, {_x:this.x, _y:this.y, speed:8, name:this._name});
};
Object.registerClass("sub", SubControl);
torpedo.prototype = new MovieClip();
torpedo.prototype.makeOff = function () {
this.removeMovieClip();
};
torpedo.prototype.onEnterFrame = function () {
this.c++;
this._x = this._x + this.rTo[0];
this._y = this._y + this.rTo[1];
if (this.hitTest(this.target)) {
this.targetHit++;
if (this.targetHit >= 3) {
this.target.Sdamage = this.target.Sdamage - 50;
if (this.target.onScreen) {
this.target.awayHit = 0;
_global.gNum++;
this._parent.attachMovie("explode", "explode", _global.gNum, {_x:this._x, _y:this._y});
} else if ((this.target.awayHit++) > 2) {
attachMovie("textShow", "textShow", 5000, {myText:"YOUR SHIP IS UNDER ATTACK"});
}
this.removeMovieClip();
}
}
if (this.c > 60) {
this.removeMovieClip();
}
};
Object.registerClass("torpedo", torpedo);
Math.trigXY = function (a, h) {
a = (a * Math.PI) / 180;
return([Math.round(h * Math.cos(a)), Math.round(h * Math.sin(a))]);
};
Math.speedControl = function (s, a, c) {
var _local1 = Math.abs(s);
if (_local1 < a) {
return(0);
}
var _local2 = s / _local1;
if (_local1 > c) {
return(c * _local2);
}
return((_local1 - a) * _local2);
};
Math.findRot = function (xDist, yDist) {
return(((-Math.atan2(xDist, yDist)) * Number(180)) / Math.PI);
};
Array.prototype.swap = function (x, y) {
var _local2 = this[x];
this[x] = this[y];
this[y] = _local2;
return(this);
};
Array.prototype.deleteAt = function (i) {
if (i == (this.length - 1)) {
this.pop();
} else if (i == 0) {
this.shift();
} else {
var _local4 = this.slice(0, i);
var _local3 = this.slice(i + 1, this.length);
tmpAry3 = _local4.concat(_local3);
this.splice(0, this.length, tmpAry3);
}
};
function keyPresses() {
var _local3 = true;
if (Key.isDown(37)) {
_local3 = false;
shipDir = shipDir - rot;
} else if (Key.isDown(39)) {
_local3 = false;
shipDir = shipDir + rot;
}
if (Key.isDown(38)) {
_local3 = false;
shipSpeed = shipSpeed + speed;
} else if (Key.isDown(40)) {
_local3 = false;
shipSpeed = shipSpeed - speed;
}
if (_local3) {
_root.oceanHolder.oC = true;
} else {
_root.oceanHolder.oC = false;
}
if (!_global.targetOn) {
if (Key.isDown(32)) {
makeTarget();
}
} else {
if ((getTimer() - lastFire) > 1000) {
shipLoaded = true;
}
if (!Key.isDown(32)) {
trace("running rocket sequence");
_global.targetOn = false;
if (target.currentShip.soldier) {
pickUpSoldier(target.currentShip);
} else if (target.currentShip.home) {
landShip();
} else if ((torp > 0) && (shipLoaded)) {
torp--;
torpShow.gotoAndStop(torp + 1);
fireRockets();
} else {
removeTarget();
}
}
}
shipSpeed = Math.speedControl(shipSpeed, drag, cap);
moveShip();
}
function moveShip() {
var _local3 = shipDir;
this.ship._rotation = shipDir;
this.shipMoveDir = this.shipMoveDir + ((shipDir - this.shipMoveDir) / 5);
mTo = Math.trigXY(this.shipMoveDir, shipSpeed);
ship.x = ship.x - Math.round(mTo[0] / 5);
ship.y = ship.y - Math.round(mTo[1] / 5);
if (ship.x > smaxX) {
ship.x = smaxX;
} else if (ship.x < sminX) {
ship.x = sminX;
}
if (ship.y > smaxY) {
ship.y = smaxY;
} else if (ship.y < sminY) {
ship.y = sminY;
}
gFx = gFx + mTo[0];
gFy = gFy + mTo[1];
ship._x = ship.x;
gF._x = gFx;
ship._y = ship.y;
gF._y = gFy;
if (_global.targetOn) {
target.tX = target.tX + mTo[0];
target.tY = target.tY + mTo[1];
}
workOutgPos();
}
function landShip() {
removeTarget();
_root.onEnterFrame = function () {
var _local6 = this.gF.homeShip._x + gFx;
var _local5 = (this.gF.homeShip._y + gFy) + 160;
var _local3 = this.ship.x - _local6;
var _local2 = this.ship.y - _local5;
var _local4 = 40 + Math.abs((_local3 + _local2) / 40);
if (_local4 < 50) {
ship._xscale = (ship._yscale = _local4);
}
shipMoveDir = (shipDir = 90 + Math.findRot(_local3, _local2));
shipSpeed = 5;
moveShip();
if ((Math.abs(_local3) < 10) && (Math.abs(_local2) < 10)) {
this.onEnterFrame = null;
if (soldierNum <= 0) {
shipLeave();
} else {
shipLand();
}
}
};
}
function shipLeave() {
counter = 0;
this.onEnterFrame = function () {
counter++;
ship._y = ship._y - (counter / 7);
gF.HomeShip._y = gF.HomeShip._y - (counter / 7);
gF.HomeShipWake._y = gF.HomeShipWake._y - (counter / 7);
if (counter > 40) {
level++;
gotoAndStop ("levelOff");
}
};
}
function pickUpSoldier(cS) {
this.cS = cS;
removeTarget();
this.onEnterFrame = function () {
var _local6 = this.cS._x + this.gFx;
var _local5 = this.cS._y + this.gFy;
var _local4 = this.ship._x - _local6;
var _local3 = this.ship._y - _local5;
if ((Math.abs(_local4) < 5) && (Math.abs(_local3) < 5)) {
this.counter++;
if (counter < 20) {
ship._xscale--;
ship._yscale--;
} else {
ship._xscale = ship._xscale + 3;
ship._yscale = ship._yscale + 3;
if (this.counter > 24) {
ship._xscale = (ship._yscale = 50);
delete this.counter;
_root.soldierNum--;
if (_root.soldierNum <= 0) {
levelOffCheck();
}
this.cS.makeOff();
this.onEnterFrame = keyPresses;
}
}
} else {
shipMoveDir = (shipDir = 90 + Math.findRot(_local4, _local3));
shipSpeed = 3;
moveShip();
}
};
}
function shipLand() {
trace("shiplanded");
counter = 0;
this.onEnterFrame = function () {
if (ship._xscale > 30) {
ship._xscale--;
ship._yscale--;
}
counter++;
trace(counter);
if (torp < maxtorp) {
torp++;
torpShow.gotoAndStop(torp + 1);
}
if (_root.damage < 500) {
_root.damage = _root.damage + 5;
}
if (counter > 40) {
delete counter;
this.onEnterFrame = shipTakeOff;
}
};
}
function shipTakeOff() {
ship._xscale++;
ship._yscale++;
if (ship._xscale >= 50) {
ship._xscale = (ship._yscale = 50);
this.onEnterFrame = keyPresses;
}
}
function levelOffCheck() {
attachMovie("textShow", "textShow", 5000, {myText:"ALL PERSONEL RESCUED \rRETURN TO YOUR SHIP"});
}
function initSG() {
gMov = [addG(mask._x, mask._y), addG(mask._x, mask._y - gHeight), addG(mask._x - gWidth, mask._y - gHeight), addG(mask._x - gWidth, mask._y)];
}
function workOutgPos() {
if ((gFx + gMov[2]._x) > gameDim[0]) {
gMov[1]._x = gMov[1]._x - (gWidth * 2);
gMov = gMov.swap(2, 1);
gMov[0]._x = gMov[0]._x - (gWidth * 2);
gMov = gMov.swap(3, 0);
} else if ((gFx + (gMov[1]._x + gWidth)) < gameDim[1]) {
gMov[2]._x = gMov[2]._x + (gWidth * 2);
gMov = gMov.swap(1, 2);
gMov[3]._x = gMov[3]._x + (gWidth * 2);
gMov = gMov.swap(0, 3);
}
if ((gFy + gMov[2]._y) > gameDim[2]) {
gMov[3]._y = gMov[3]._y - (gHeight * 2);
gMov = gMov.swap(2, 3);
gMov[0]._y = gMov[0]._y - (gHeight * 2);
gMov = gMov.swap(1, 0);
} else if ((gFy + (gMov[3]._y + gHeight)) < gameDim[3]) {
gMov[2]._y = gMov[2]._y + (gHeight * 2);
gMov = gMov.swap(3, 2);
gMov[1]._y = gMov[1]._y + (gHeight * 2);
gMov = gMov.swap(0, 1);
}
}
function addG(x, y) {
_global.gNum++;
return(gF.attachMovie("ground", "g" + _global.gNum, _global.gNum, {_x:x, _y:y}));
}
ship.makeOff = function () {
_root.gotoAndStop("gameOver");
};
function oceanDisp(i, o, n) {
if (i != n) {
if (!n) {
i = 0;
while (i <= 3) {
gMov[i].ocean.stop();
i++;
}
} else {
i = 0;
while (i <= 3) {
gMov[i].ocean.play();
i++;
}
}
return(n);
}
}
function initGame() {
shipExplode = false;
oceanHolder = {};
showTitle = true;
oceanHolder.watch("oC", oceanDisp);
score = 0;
sDamage = 1000;
gameOn = true;
damage = 500;
level = 1;
}
function initVars() {
feedback = "";
_global.gNum = 1;
damage = 500;
levelTime = getTimer();
torpsFired = 0;
torpsMIssed = 0;
enemyKills = 0;
if (level > 2) {
showTitle = false;
}
shipsOnScreen = {};
rocketList = [];
maxTorp = 16;
torp = maxTorp;
torpShow.gotoAndStop(torp + 1);
coptersOn = [];
sM = 0;
ship.sx = (ship.x = ship._x);
ship.sy = (ship.y = ship._y);
sminX = ship.x - sM;
smaxX = ship.x + sM;
sminY = ship._y - sM;
smaxY = ship._y + sM;
_root.watch("damage", dUpdate);
_global.radarNum = 1;
gFx = 0;
gFy = 0;
gWidth = 400;
gHeight = 300;
gameDim = [];
var _local4 = mask._width / 2;
var _local3 = mask._height / 2;
gameDim[0] = mask._x - _local4;
gameDim[1] = mask._x + _local4;
gameDim[2] = mask._y - _local3;
gameDim[3] = mask._y + _local3;
speed = 1;
drag = 0.4;
cap = 9;
rot = 8;
shipSpeed = 5;
shipDir = (shipMoveDir = 90);
}
function dUpdate(i, o, n) {
if (n <= 0) {
n = 0;
if (!shipExplode) {
shipExplode = true;
ship.attachMovie("explode", "explode1", 1, {_xscale:100, _yscale:100, _y:-30});
ship.attachMovie("explode", "explode2", 2, {_xscale:200, _yscale:200});
ship.attachMovie("explode", "explode3", 3, {_xscale:100, _yscale:100, _y:30});
ship.gotoAndPlay("sink");
}
}
_root.dMeter._yscale = n / 7;
_root.dMeter.play();
return(n);
}
function shipHit(x, y) {
gNum++;
this.createEmptyMovieClip("shipMove" + gNum, gNum);
ship.attachMovie("explodeBullet", "bF", 1);
var _local3 = this["shipMove" + gNum];
_local3.x = x;
_local3.y = y;
_local3.a = 3;
_local3.onEnterFrame = function () {
this.a = this.a - 1;
if (this.a > 1) {
_root.gFx = _root.gFx - (this.x / this.a);
_root.gFy = _root.gFy - (this.y / this.a);
} else {
this.removeMovieClip();
}
};
shipDir = shipDir + (50 - random(100));
damage = damage - random(50);
}
function fireRockets() {
lastFire = getTimer();
shipLoaded = false;
trace("attempting to fire rocket");
_global.gNum++;
if (_global.gNum > 900) {
_global.gNum = 300;
}
var _local3 = gF.createEmptyMovieClip("rocket" + _global.gNum, _global.gNum);
_local3.attachMovie("rocket", "rocket", 2);
torpsFired++;
_local3._x = ship._x - _root.gFx;
_local3._y = ship._y - _root.gFy;
var _local7 = target._x - ship._x;
var _local6 = target._y - ship._y;
var _local9 = _local3._x + _local7;
var _local8 = _local3._y + _local6;
var _local5 = Math.findRot(_local7, _local6);
var _local4 = Math.trigXY(90 + _local5, 8);
_local3._rotation = _local5;
_local3.c = 0;
_local3.dX = _local4[0];
_local3.dY = _local4[1];
removeTarget();
_local3.num = rocketList.push(_local3) - 1;
_local3.onEnterFrame = rocketFire;
}
function removeRocket(num, r) {
if (!r) {
rocketList[num].removeMovieClip();
}
rocketList.deleteAt(num);
var _local1;
_local1 = 0;
while (_local1 < rocketList.length) {
rocketList[_local1].num = _local1;
_local1++;
}
}
function rocketFire() {
this.c++;
if (this.c > 100) {
_root.torpsMissed++;
_root.removeRocket(this.num);
}
this._x = this._x + this.dX;
this._y = this._y + this.dY;
}
function homeEndGame() {
if (_root.gameOn) {
_root.gameOn = false;
gF.HomeShip.gotoAndPlay("sink");
}
}
function removeTarget() {
target.removeMovieClip();
delete target;
_global.targetOn = false;
}
function makeTarget() {
_global.targetOn = true;
target = this.attachMovie("target", "target" + _global.gNum, _global.gNum);
var _local3 = Math.trigXY(shipDir, -40);
target._x = (target.tX = ship._x + _local3[0]);
target._y = (target.tY = ship._y + _local3[1]);
target.followMe = followMe;
target._alpha = 50;
target.onEnterFrame = chaseShip;
}
function followMe(xOff, yOff, sN) {
this.currentShip = sN;
this.tX = _root.ship._x - xOff;
this.tY = _root.ship._y - yOff;
var _local4 = this.tX - this._x;
var _local3 = this.tY - this._y;
this._alpha = 100;
_root.lockOn = true;
this.gotoAndStop(2);
if (_root.showTitle && (shipLoaded)) {
this.title = this.currentShip.title;
}
this._x = this._x + (_local4 / 4);
this._y = this._y + (_local3 / 4);
}
function chaseShip() {
if (!_root.lockOn) {
this.gotoAndStop(1);
}
if (_root.showTitle) {
if (shipLoaded) {
if (_root.torp > 0) {
this.title = "RELEASE TO FIRE";
} else {
this.title = "TORPEDOS FINISHED";
}
} else {
this.title = "LOADING TORPEDO";
}
}
_root.lockOn = false;
this._alpha = 50;
this.currentShip = null;
var _local3 = Math.trigXY(_root.shipDir, -40);
this.tX = _root.ship._x + _local3[0];
this.tY = _root.ship._y + _local3[1];
this._x = this._x + ((this.tX - this._x) / 3);
this._y = this._y + ((this.tY - this._y) / 3);
}
initGame();
function makeEnemies(sN, wN, cN, pN) {
addHomeShip();
enemiesOn = 0;
var _local2 = 1;
while (_local2 <= sN) {
addSub();
enemiesOn++;
_local2++;
}
_local2 = 1;
while (_local2 <= wN) {
addWarShip();
enemiesOn++;
_local2++;
}
_local2 = 1;
while (_local2 <= pN) {
addSoldier();
_local2++;
}
_root.soldierNum = pN;
_local2 = 1;
while (_local2 <= cN) {
addCopter();
enemiesOn++;
_local2++;
}
}
function addSub() {
_global.gNum++;
return(gF.attachMovie("sub", "sub" + _global.gNum, _global.gNum));
}
function addWarship() {
_global.gNum++;
gF.attachMovie("warShip", "warShip" + _global.gNum, _global.gNum);
}
function addHomeship() {
_global.gNum++;
gF.attachMovie("HomeShipWake", "HomeShipWake", _global.gNum);
_global.gNum++;
gF.attachMovie("HomeShip", "HomeShip", _global.gNum);
}
function addCopter() {
_global.gNum++;
gF.attachMovie("enemyCopter", "enemyCopter" + _global.gNum, _global.gNum);
}
function addSoldier() {
_global.gNum++;
gF.attachMovie("soldier", "soldier" + _global.gNum, _global.gNum);
}
levelArray = [];
levelArray.push("level0");
levelArray.push([4, 0, 0, 2]);
levelArray.push([4, 2, 0, 2]);
levelArray.push([4, 3, 1, 2]);
levelArray.push([6, 1, 2, 5]);
levelArray.push([3, 3, 3, 3]);
levelArray.push([4, 2, 1, 4]);
levelArray.push([5, 3, 2, 5]);
levelArray.push([6, 4, 3, 6]);
levelArray.push([6, 6, 4, 8]);
Frame 114
stop();
initVars();
initSG();
ship.gotoAndStop(1);
if (level >= levelArray.length) {
levelGet = levelArray.length - 1;
} else {
levelGet = level;
}
makeEnemies(levelArray[levelGet][0], levelArray[levelGet][1], levelArray[levelGet][2], levelArray[levelGet][3]);
attachMovie("textShow", "textShow", 5000, {myText:"LEVEL " + level});
ship.swapDepths(1000);
this.onEnterFrame = keyPresses;
Frame 125
stop();
this.onEnterFrame = null;
ship.removeMovieClip();
counter = 0;
bonusScore = 0;
levelTime = Math.round((getTimer() - levelTime) / 1000);
levelBonus = Math.floor((40 + (20 * level)) - levelTime) * 50;
if (levelBonus > 1000) {
levelBonus = 1000;
} else if (levelBonus < 0) {
levelBonus = 0;
}
levelTime = levelTime + " SECONDS";
hitRatio = 100 - Math.round((torpsMissed / torpsFired) * 100);
if (hitRatio <= 0) {
hitRatio = 0;
}
showHitRatio = hitRatio + "%";
hitRatioBonus = hitRatio * 5;
killRatio = Math.round((enemyKills / enemiesOn) * 100);
if (killRatio <= 0) {
hitRatio = 0;
}
killRatioBonus = killRatio * 5;
killRatio = killRatio + "%";
kickStart = function () {
trace("kickStart ran");
clearInterval(kS);
_root.onEnterFrame = scoreAdd;
};
levelShowOff = function () {
counter++;
if (counter > 60) {
delete counter;
gotoAndStop ("nFrame");
}
};
scoreAdd = function () {
_root[scoreChange[scoreGet]] = _root[scoreChange[scoreGet]] - 33;
bonusScore = bonusScore + 33;
score = score + 33;
if (_root[scoreChange[scoreGet]] < 33) {
bonusScore = bonusScore + _root[scoreChange[scoreGet]];
score = score + _root[scoreChange[scoreGet]];
_root[scoreChange[scoreGet]] = 0;
scoreGet++;
if (scoreGet >= 3) {
_root.onEnterFrame = levelShowOff;
}
}
};
scoreGet = 0;
scoreChange = ["levelBonus", "hitRatioBonus", "killRatioBonus"];
kS = setInterval(kickStart, 2000);
trace(kS);
Frame 139
ship.removeMovieClip();
Frame 150
ship.removeMovieClip();
Instance of Symbol 511 MovieClip in Frame 150
onClipEvent (load) {
if (_root.contactFurther == 1) {
gotoAndStop (114);
} else {
stop();
}
}
Frame 160
ship.removeMovieClip();
Frame 173
ship.removeMovieClip();
Symbol 3 MovieClip [scoresLoader] Frame 1
scoreHolder.onData = function () {
trace("loaded");
offs = 0;
with (eval (scoreHolder)) {
i = 1;
while (eval ("score" add i) ne "") {
attachMovie("scorePane", "scorePane" add i, i);
eval ("scorePane" add i).score = eval ("score" add i);
eval ("scorePane" add i).nickname = eval ("nickname" add i);
eval ("scorePane" add i)._y = offs - 1;
offs = offs + eval ("scorePane" add i)._height;
offs--;
i++;
}
_parent._parent.refreshPane();
}
};
Instance of Symbol 2 MovieClip "scoreHolder" in Symbol 3 MovieClip [scoresLoader] Frame 1
onClipEvent (load) {
trace("panel holder loaded");
loadVariables ("highscores/show.asp?noCache=" add Math.random(), this);
stop();
}
Symbol 4 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 36 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 37 MovieClip [UpArrow] Frame 1
stop();
Symbol 37 MovieClip [UpArrow] Frame 2
stop();
Symbol 37 MovieClip [UpArrow] Frame 3
stop();
Symbol 44 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 57 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 65 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 81 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip [DownArrow] Frame 1
stop();
Symbol 82 MovieClip [DownArrow] Frame 2
stop();
Symbol 82 MovieClip [DownArrow] Frame 3
stop();
Symbol 105 MovieClip [target] Frame 1
stop();
Symbol 114 MovieClip [explodeBullet] Frame 4
this.removeMovieClip();
Symbol 120 MovieClip [explodeSmall] Frame 6
this.removeMovieClip();
Symbol 124 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 10
stop();
Symbol 127 MovieClip [rocket] Frame 1
stop();
Symbol 127 MovieClip [rocket] Frame 26
this.removeMovieClip();
stop();
Symbol 168 MovieClip [HomeShip] Frame 1
stop();
Instance of Symbol 133 MovieClip "hitAreaClip" in Symbol 168 MovieClip [HomeShip] Frame 1
/* no clip actions */
Symbol 168 MovieClip [HomeShip] Frame 70
stop();
_root.gotoAndStop("gameOver");
Symbol 171 MovieClip [torpedo] Frame 1
stop();
Symbol 171 MovieClip [torpedo] Frame 3
stop();
Symbol 177 MovieClip [textShow] Frame 7
function fin() {
this.play();
}
stop();
setInterval(this, "fin", 1500);
Symbol 177 MovieClip [textShow] Frame 16
this.removeMovieClip();
Symbol 184 MovieClip [damageShow] Frame 1
damageScale._xscale = percent;
this.onEnterFrame = function () {
this._x = follow._x;
this._y = follow._y - 50;
this.counter++;
if (this.counter > 40) {
this.play();
}
};
Symbol 184 MovieClip [damageShow] Frame 5
stop();
Symbol 184 MovieClip [damageShow] Frame 15
this.removeMovieClip();
Symbol 200 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 201 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local2 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxhscroll));
} else {
var _local2 = this.textField.scroll;
var _local3 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local3, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 204 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 204 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 208 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local3 = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var _local2 = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var _local3 = this.content_mc.getBounds(this);
this.offset.x = -_local3.xMin;
this.offset.y = -_local3.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = component.getScrollPosition();
var _local4 = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-_local2) + this.offset.x;
} else {
this.content_mc._y = (-_local2) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local3 = this.hScrollBar_mc.getScrollPosition();
var _local2 = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
this.setScrollPosition(_local3 + 3, _local2);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(_local3, _local2 + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(_local3, _local2 - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 201 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 208 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 205 MovieClip "loadContent" in Symbol 208 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 216 MovieClip Frame 1
gotoAndStop (3);
Symbol 216 MovieClip Frame 3
stop();
Symbol 217 MovieClip [explode] Frame 27
stop();
Symbol 220 MovieClip [sub] Frame 1
stop();
Symbol 220 MovieClip [sub] Frame 18
stop();
this.makeOff();
Symbol 228 MovieClip [WarShip] Frame 1
stop();
Symbol 228 MovieClip [WarShip] Frame 67
stop();
this.makeOff();
Symbol 241 MovieClip [enemyCopter] Frame 1
stop();
Symbol 241 MovieClip [enemyCopter] Frame 62
stop();
this.makeOff();
Symbol 347 MovieClip Frame 15
stop();
Symbol 350 MovieClip Frame 6
stop();
Symbol 353 MovieClip Frame 6
stop();
Symbol 356 MovieClip Frame 6
stop();
Symbol 359 MovieClip Frame 6
stop();
Symbol 362 MovieClip Frame 6
stop();
Symbol 366 MovieClip Frame 6
stop();
Symbol 369 Button
on (release) {
_root.gotoAndPlay("playGame");
}
Symbol 371 MovieClip Frame 6
stop();
Symbol 372 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 374 MovieClip Frame 6
stop();
Symbol 375 Button
on (release) {
gotoAndPlay ("hiscores");
}
Symbol 377 MovieClip Frame 6
stop();
Symbol 378 Button
on (release) {
gotoAndPlay ("information");
}
Symbol 382 MovieClip Frame 6
stop();
Symbol 383 Button
on (release) {
fscommand ("quit");
}
Symbol 384 Button
on (release) {
_root.gotoAndPlay("instructions");
}
Symbol 396 MovieClip Frame 6
stop();
Symbol 398 Button
on (release) {
gotoAndPlay ("return");
}
Symbol 408 Button
on (rollOver) {
if ((((yname eq "") || (ymail eq "")) || (tname eq "")) || (tmail eq "")) {
inputPrompt = "Please fill in all fields before clicking Submit";
allowSubmit = false;
} else {
allowSubmit = true;
inputPrompt = "";
}
}
on (rollOut) {
allowSubmit = false;
inputPrompt = "";
}
on (release) {
if (allowSubmit) {
loadVariables ((((((("highscores/email.asp?yname=" add yname) add "&ymail=") add ymail) add "&tname=") add tname) add "&tmail=") add tmail, this);
mailsent = "no";
gotoAndPlay ("mailSendingLoop");
}
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
if (mailsent == "yuh") {
gotoAndStop ("mailSent");
} else {
play();
}
Symbol 417 MovieClip Frame 3
gotoAndPlay ("mailSendingLoop");
Symbol 417 MovieClip Frame 4
stop();
mailSent = "no";
Symbol 421 Button
on (release) {
nextFrame();
}
Symbol 424 Button
on (release) {
prevFrame();
}
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 430 MovieClip Frame 3
stop();
Symbol 440 MovieClip Frame 1
stop();
this.makeOff = function () {
_root.gotoAndStop("gameOver");
};
Symbol 440 MovieClip Frame 12
_root.gotoAndStop("gameOver");
Symbol 466 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 491 Button
on (release) {
gotoAndPlay (6);
}
Symbol 494 Button
on (release) {
initGame();
gotoAndStop (114);
}
Symbol 497 Button
on (release) {
gotoAndStop ("submitScore");
}
Symbol 499 Button
on (release) {
submitScore = new LoadVars();
submitScore.realname = realname;
submitScore.contactFurther = contactFurther;
submitScore.email = email;
submitScore.nickname = nickname;
submitScore.score = score;
submitScore.sendAndLoad("highscores/insert.asp", submitScore, "POST");
gotoAndStop ("submitScoreWait");
submitScore.onLoad = function (success) {
if (success) {
feedback = submitScore.msgText;
if (((submitScore.msg == "newDone") || (submitScore.msg == "higher")) || (submitScore.msg == "lower")) {
gotoAndStop ("submitScoreDone");
} else {
gotoAndStop ("submitScore");
}
} else {
feedback = "We have been unable to contact the server, please try again.";
gotoAndStop ("submitScore");
}
};
}
Symbol 508 Button
on (release) {
nextFrame();
}
Symbol 510 Button
on (release) {
prevFrame();
}
Symbol 511 MovieClip Frame 1
_root.contactFurther = 0;
Symbol 511 MovieClip Frame 2
_root.contactFurther = 1;