Frame 1
_root.NewgroundsAPI_id = 3118;
stop();
fscommand ("showmenu", "false");
fscommand ("fullscreen", "false");
Mouse.show();
Frame 2
stop();
Instance of Symbol 396 MovieClip "seraph" in Frame 2
onClipEvent (enterFrame) {
swapDepths(5000);
}
Instance of Symbol 505 MovieClip "menu_rot" in Frame 2
onClipEvent (load) {
x = this._x;
arate = 1.4;
}
onClipEvent (enterFrame) {
setProperty(this, _x , x + ((getProperty(this, _x) - x) / arate));
}
Instance of Symbol 511 MovieClip "howToPlay" in Frame 2
onClipEvent (load) {
x = this._x;
arate = 1.4;
}
onClipEvent (enterFrame) {
setProperty(this, _x , x + ((getProperty(this, _x) - x) / arate));
}
Frame 3
function addScore(points) {
score = score + points;
if (score < 100) {
zeroScore = "" + score;
} else if (score < 1000) {
zeroScore = "" + score;
} else if (score < 10000) {
zeroScore = "" + score;
} else if (score < 100000) {
zeroScore = "" + score;
} else if (score < 1000000) {
zeroScore = "" + score;
}
}
function wave(waveNum, type, hitPt, shtPwr, points, pathNum, ypathNum, offsetx, offsety, offsetz, delay, action) {
this.waveNum = waveNum;
this.e = new Array();
this.addEnemy(type, hitPt, shtPwr, points, pathNum, ypathNum, offsetx, offsety, offsetz, delay, action);
}
function addEnemy(type, hitPt, shtPwr, points, pathNum, ypathNum, offsetx, offsety, offsetz, delay, action) {
var elen = this.e.length;
this.e.push(new Object());
this.e[elen].num = elen;
this.e[elen].type = type;
this.e[elen].hitPt = hitPt;
this.e[elen].shtPwr = shtPwr;
this.e[elen].points = points;
this.e[elen].pathNum = pathNum;
this.e[elen].ypathNum = ypathNum;
this.e[elen].offsetx = offsetx;
this.e[elen].offsety = offsety;
this.e[elen].offsetz = offsetz;
this.e[elen].delay = delay;
this.e[elen].action = action;
}
function initWave() {
var i = 0;
while (i < this.e.length) {
_root.init(this.e[i].num, this.e[i].type, this.e[i].hitPt, this.e[i].shtPwr, this.e[i].points, this.e[i].pathNum, this.e[i].ypathNum, this.e[i].offsetx, this.e[i].offsety, this.e[i].offsetz, this.e[i].delay, this.e[i].action, this.e[i].actionFrame);
i++;
}
_root.mview.target.c = 1;
_root.mview.target.xoff = 0;
_root.mview.target.yoff = 0;
_root.mview.target.gotoAndStop(1);
_root.waveCount = this.waveNum;
_root.shotCount = 0;
_root.lockedTarget.missleLock.gotoAndStop(1);
_root.lockedTarget = null;
_root.cockpit.sd.gotoAndStop(1);
_root.fuel = _root.fuel - 5;
_root.cockpit.fuelCounter.gotoAndStop(Math.ceil(_root.fuel / 14));
}
function removeWave() {
var i = 0;
while (i < _root.b.length) {
_root.b[i].removeMovieClip();
_root.bm[i].removeMovieClip();
i++;
}
var j = 0;
while (j < s.length) {
s[j].removeMovieClip();
j++;
}
_root.b.splice(0);
_root.bm.splice(0);
_root.s.splice(0);
_root.mview.target.xoff = 0;
_root.mview.target.yoff = 0;
_root.mview.target.v = 0;
_root.mview.target.c = 1;
_root.score = 0;
}
function reorgWave() {
var i = 0;
while (i < this.e.length) {
this.e[i].num = i;
i++;
}
}
function actionObj(type, frame, speed) {
this.type = type;
this.frame = frame;
this.speed = speed;
}
function init(num, type, hitPt, shtPwr, points, pathNum, ypathNum, offsetx, offsety, offsetz, delay, action) {
var i = num;
_root.mview.view.attachMovie(type, "b" + i, _root.totalcount + 1);
_root.totalcount++;
_root.cockpit.map.attachMovie("ballmark", "bm" + i, _root.totalcount + 1);
_root.totalcount++;
b.push(_root.mview.view["b" + i]);
bm.push(_root.cockpit.map["bm" + i]);
b[i].type = type;
b[i].myv = random(20000) / 5000;
b[i].depth = i;
b[i].f = [-7000, 900, 700, 500, -8000];
b[i].sc = 1;
b[i].myv = random(20000) / 5000;
b[i].ppx = new Array();
b[i].ppy = new Array();
b[i].ppz = new Array();
_root.pathlib.gotoAndStop(pathNum);
_root.ypathlib.gotoAndStop(ypathNum);
var k = 1;
while (201 >= k) {
_root.pathlib.path.gotoAndStop(k);
_root.ypathlib.ypath.gotoAndStop(k);
b[i].ppx[k] = (4 * _root.pathlib.path.pm._x) + offsetx;
b[i].ppy[k] = (4 * _root.ypathlib.ypath.pm._y) + offsety;
b[i].ppz[k] = (-4 * _root.pathlib.path.pm._y) - offsetz;
k++;
}
b[i].x = (b[i].ppx[0] = b[i].ppx[1]);
b[i].y = (b[i].ppy[0] = b[i].ppy[1]);
b[i].z = (b[i].ppz[0] = b[i].ppz[1]);
var delayx = new Array();
var delayy = new Array();
var delayz = new Array();
var n = 0;
while (n < delay) {
delayx[n] = b[i].x;
delayy[n] = b[i].y;
delayz[n] = b[i].z;
n++;
}
b[i].px = delayx.concat(b[i].ppx);
b[i].py = delayy.concat(b[i].ppy);
b[i].pz = delayz.concat(b[i].ppz);
b[i].action = action;
b[i].actionNum = 0;
b[i].rotSpeed = 0;
b[i].trot = 0;
b[i].sv = -10;
b[i].hitPt = (b[i].health = hitPt);
b[i].shtPwr = shtPwr;
b[i].points = points;
bm[i]._x = b[i].x / 25;
bm[i]._y = (-b[i].z) / 25;
bm[i].num = i;
b[i].translate();
b[i].flyby = false;
_root.blenStart = _root.b.length;
}
function translate() {
var d = 200;
if (z < 0) {
_visible = false;
} else {
if ((flyby == false) && (z < 250)) {
if ((type == "stealth") || (type == "aggressor")) {
_root.flyby2Snd.setPan(x / 10);
_root.flyby2Snd.start(0, 1);
}
if (type == "asteroid") {
} else {
_root.flybySnd.setPan(x / 10);
_root.flybySnd.start(0, 1);
}
flyby = true;
}
pers = d / z;
var sx = (x * pers);
var sy = (y * pers);
if ((sx < -250) || (250 < sx)) {
_visible = false;
} else {
_visible = true;
_x = sx;
_y = sy;
_yscale = (pers * 100);
_xscale = (pers * 100);
this.swapDepths(10000 - z);
if (z < f[sc]) {
}
}
}
}
function stranslate() {
var d = 200;
pers = d / z;
var sx = (x * pers);
var sy = (y * pers);
_visible = true;
_x = sx;
_y = sy;
_yscale = (pers * 100);
_xscale = (pers * 100);
this.swapDepths(10000 - z);
}
function Evade(mx, my, mz, c) {
var i = 0;
while (i < b.length) {
b[i].x = mx + b[i].px[c];
b[i].y = my + b[i].py[c];
b[i].z = mz + b[i].pz[c];
b[i].translate();
b[i].gotoAndStop(int(b[i]._y / 20) + 5);
b[i].horz.gotoAndStop(int(b[i]._x / 30) + 3);
if (b[i].rot) {
b[i].trot = b[i].trot + b[i].rotSpeed;
b[i].horz._rotation = b[i].trot;
}
if (b[i].action[b[i].actionNum].frame == c) {
var ta = b[i].action[b[i].actionNum];
if (ta.type == "traceShot") {
b[i].traceShot(c);
} else if (ta.type == "straightShot") {
b[i].straightShot(c);
} else if (ta.type == "slowMissle") {
_root.emissleSnd.start(0, 1);
_root.cockpit.readout.gotoAndPlay("misslealert");
var j = _root.s.length;
b[i].slowMissle(c);
s[j].tmx = mx;
s[j].tmy = my;
} else if (ta.type == "rotRight") {
b[i].rot = true;
b[i].rotSpeed = 1;
} else if (ta.type == "rotLeft") {
b[i].rot = true;
b[i].rotSpeed = -1;
} else if (ta.type == "rotationStop") {
b[i].rot = false;
} else if (ta.type == "bomb") {
b[i].bomb(c);
} else if (ta.type == "cloak") {
b[i]._alpha = 0;
} else if (ta.type == "uncloak") {
b[i]._alpha = 100;
} else if (ta.type == "resetCounter") {
trace("HEY");
trace("actionNUM1" + b[i].actionNum);
_root.mview.target.c = 50;
b[i].actionNum = 4;
trace("actionNUM2" + b[i].actionNum);
} else if (ta.type == "c1shot") {
if (0 < b[i].healthc1) {
var j = _root.s.length;
b[i].ctraceShot(c, b[i].c1xoff, b[i].c1yoff);
}
} else if (ta.type == "c2shot") {
if (0 < b[i].healthc2) {
_root.emissleSnd.start(0, 1);
_root.cockpit.readout.gotoAndPlay("misslealert");
var j = _root.s.length;
b[i].slowMissle(c);
s[j].tmx = mx;
s[j].tmy = my;
s[j].tx = s[j].tx + b[i].c2xoff;
s[j].ty = s[j].ty + b[i].c2yoff;
}
} else if (ta.type == "c3shot") {
if (0 < b[i].healthc3) {
var j = _root.s.length;
b[i].bomb(c);
s[j].tx = s[j].tx + b[i].c3xoff;
s[j].ty = s[j].ty + b[i].c3yoff;
}
} else if (ta.type == "c4shot") {
if (0 < b[i].healthc4) {
var j = _root.s.length;
b[i].ctraceShot(c, b[i].c4xoff, b[i].c4yoff);
}
}
b[i].actionNum++;
}
if (b[i].px[c] != null) {
if ((((((b[i].z < 20) && (-50 < b[i].x)) && (b[i].x < 50)) && (-50 < b[i].y)) && (b[i].y < 50)) && (inv == false)) {
if (b[i].type == "mslpwr") {
_root.attachMovie("aprWave", "aprWave1", 100001);
_root.aprWave1.curWave = "missles replenished";
_root.aprWave1._x = 275;
_root.aprWave1._y = 200;
} else if (b[i].type == "shldpwr") {
_root.attachMovie("aprWave", "aprWave1", 100001);
_root.aprWave1.curWave = "shields recharged";
_root.aprWave1._x = 275;
_root.aprWave1._y = 200;
} else {
_root.cockpit.attachMovie("shake", "shake", 90);
bm[i].removeMovieClip();
b[i].removeMovieClip();
bm.splice(i, 1);
b.splice(i, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
if (100 < shieldPts) {
_root.shieldSnd.start(0, 1);
_root.cockpit.shieldMesh.play();
} else {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
_root.cockpit.attachMovie("shake", "shake", 90);
}
shieldPts = shieldPts - 30;
_root.shields.gotoAndStop(21 - (shieldPts / 10));
if (_root.b.length == 0) {
_root.waveDelay.play();
}
}
}
} else {
if (_root.b.length == 1) {
_root.waveDelay.play();
}
var depth = b[i].depth;
b[i].removeMovieClip();
b.splice(depth, 1);
bm[depth].removeMovieClip();
bm.splice(depth, 1);
i = 0;
while (b.length >= i) {
b[i].depth = i;
bm[i].depth = i;
i++;
}
}
bm[i]._x = b[i].x / 25;
bm[i]._y = (-b[i].z) / 25;
i++;
}
var sl = s.length;
if (0 < sl) {
for (j in s) {
if (s[j].type == "sm") {
s[j].tx = 0.74 * ((mx - s[j].tmx) + s[j].tx);
s[j].ty = 0.74 * ((my - s[j].tmy) + s[j].ty);
s[j].x = s[j].tx;
s[j].y = s[j].ty;
s[j].tmx = mx;
s[j].tmy = my;
} else {
s[j].tx = s[j].tx + s[j].vx;
s[j].ty = s[j].ty + s[j].vy;
s[j].x = mx + s[j].tx;
s[j].y = my + s[j].ty;
}
if (s[j].type == "bmb") {
if (((((((s[j].z != null) && (s[j].z < 20)) && (-200 < s[j].x)) && (s[j].x < 200)) && (-200 < s[j].y)) && (s[j].y < 200)) && (inv == false)) {
s[j].removeMovieClip();
s.splice(j, 1);
if (100 < shieldPts) {
_root.shieldSnd.start(0, 1);
_root.cockpit.shieldMesh.play();
} else {
_root.explodeSnd.start(0, 1);
_root.cockpit.attachMovie("shake", "shake", 90);
}
shieldPts = shieldPts - 30;
_root.shields.gotoAndStop(21 - (shieldPts / 10));
}
}
s[j].z = s[j].z + s[j].myv;
s[j].stranslate();
if (((((((s[j].z != null) && (s[j].z < 20)) && (-50 < s[j].x)) && (s[j].x < 50)) && (-50 < s[j].y)) && (s[j].y < 50)) && (inv == false)) {
trace("shieldPts" + shieldPts);
if (s[j].type == "sm") {
shieldPts = shieldPts - 20;
} else {
shieldPts = shieldPts - 10;
}
_root.shields.gotoAndStop(21 - (shieldPts / 10));
s[j].removeMovieClip();
s.splice(j, 1);
trace("shieldPts" + shieldPts);
if (100 < shieldPts) {
_root.shieldSnd.start(0, 1);
_root.cockpit.shieldMesh.play();
} else {
_root.explodeSnd.start(0, 1);
_root.cockpit.attachMovie("shake", "shake", 90);
}
continue;
}
if (s[j].z < -10) {
s[j].removeMovieClip();
s.splice(j, 1);
var i = 0;
while (i < _root.s.length) {
_root.s[i].num = i;
i++;
}
_root.missed = _root.missed + 1;
}
}
}
}
function explode() {
_parent.attachMovie("explode", "explode", 9900);
_parent.explode._x = _x;
_parent.explode._y = _y;
_parent.explode._xscale = (_parent.explode._yscale = _xscale);
}
function explode2(ex, ey) {
_parent.attachMovie("explode", "explode", 9900);
_parent.explode._x = ex;
_parent.explode._y = ey;
}
function straightShot(c) {
_parent.attachMovie("starburst", "starburst" + _root.shotCount, 3000 + _root.shotCount);
var sl = _root.s.length;
_root.s.push(_parent["starburst" + _root.shotCount]);
_root.s[sl].tx = px[c];
_root.s[sl].ty = py[c];
_root.s[sl].x = x;
_root.s[sl].y = y;
_root.s[sl].z = z;
_root.s[sl].vx = 0;
_root.s[sl].vy = 0;
_root.s[sl].myv = -50;
_root.s[sl].num = sl;
_root.s[sl].hitPt = 1;
_root.enemyLaserSnd.setPan(x / 20);
_root.enemyLaserSnd.start(0, 1);
sc++;
_root.shotCount++;
}
function traceShot(c) {
_parent.attachMovie("starburst", "starburst" + _root.shotCount, 3000 + _root.shotCount);
var sl = _root.s.length;
_root.s.push(_parent["starburst" + _root.shotCount]);
_root.s[sl].tx = px[c];
_root.s[sl].ty = py[c];
_root.s[sl].x = x;
_root.s[sl].y = y;
_root.s[sl].z = z;
_root.s[sl].vx = (-50 * x) / (x + z);
_root.s[sl].vy = (-50 * y) / (y + z);
_root.s[sl].myv = -50;
_root.s[sl].num = sl;
_root.s[sl].hitPt = 1;
_root.s[sl].shtPwr = shtPwr;
_root.enemyLaserSnd.start(0, 1);
sc++;
_root.shotCount++;
}
function ctraceShot(c, xff, yff) {
_parent.attachMovie("starburst", "starburst" + _root.shotCount, 3000 + _root.shotCount);
var sl = _root.s.length;
_root.s.push(_parent["starburst" + _root.shotCount]);
_root.s[sl].tx = px[c] + xff;
_root.s[sl].ty = py[c] + yff;
_root.s[sl].x = x;
_root.s[sl].y = y;
_root.s[sl].z = z;
var xxff = (x + xff);
var yyff = (y + yff);
_root.s[sl].vx = (-50 * xxff) / (xxff + z);
_root.s[sl].vy = (-50 * yyff) / (yyff + z);
_root.s[sl].myv = -50;
_root.s[sl].num = sl;
_root.s[sl].hitPt = 1;
_root.s[sl].shtPwr = shtPwr;
_root.enemyLaserSnd.start(0, 1);
sc++;
_root.shotCount++;
}
function slowMissle(c) {
_parent.attachMovie("starburst2", "starburst" + _root.shotCount, 3000 + _root.shotCount);
var sl = _root.s.length;
_root.s.push(_parent["starburst" + _root.shotCount]);
_root.s[sl].tx = px[c];
_root.s[sl].ty = py[c];
_root.s[sl].x = x;
_root.s[sl].y = y;
_root.s[sl].z = z;
_root.s[sl].vx = (-10 * x) / (x + z);
_root.s[sl].vy = (-10 * y) / (y + z);
_root.s[sl].myv = -15;
_root.s[sl].hitPt = 2;
_root.s[sl].num = sl;
_root.s[sl].type = "sm";
_root.s[sl].shtPwr = shtPwr;
_root.emissleSnd.start(0, 1);
sc++;
_root.shotCount++;
}
function bomb(c) {
_parent.attachMovie("starburst3", "starburst" + _root.shotCount, 3000 + _root.shotCount);
var sl = _root.s.length;
_root.s.push(_parent["starburst" + _root.shotCount]);
_root.s[sl].tx = px[c];
_root.s[sl].ty = py[c];
_root.s[sl].x = x;
_root.s[sl].y = y;
_root.s[sl].z = z;
_root.s[sl].vx = 0;
_root.s[sl].vy = 0;
_root.s[sl].myv = -5;
_root.s[sl].hitPt = 2;
_root.s[sl].num = sl;
_root.s[sl].type = "bmb";
_root.s[sl].shtPwr = shtPwr;
_root.enemyLaserSnd.start(0, 1);
sc++;
_root.shotCount++;
}
_root.menu_rot.x = -360;
fscommand ("allowscale", "false");
_quality = "MEDIUM";
lvl1Snd = new Sound(this.bkgmc);
lvl1Snd.attachSound("lvl1");
bs1Snd = new Sound(this.bkgmc);
bs1Snd.attachSound("bs1");
explodeSnd = new Sound(this.othersnds);
explodeSnd.attachSound("xpld");
explode2Snd = new Sound(this.othersnds);
explode2Snd.attachSound("xpld2");
shieldSnd = new Sound(this.othersnds);
shieldSnd.attachSound("shld");
laserSnd = new Sound(this.othersnds);
laserSnd.attachSound("lsr");
missleSnd = new Sound(this.othersnds);
missleSnd.attachSound("msl");
missle1Snd = new Sound(this.othersnds);
missle1Snd.attachSound("msl1");
emissleSnd = new Sound(this.othersnds);
emissleSnd.attachSound("emsl");
enemyLaserSnd = new Sound(this.othersnds);
enemyLaserSnd.attachSound("enlsr");
btnpressSnd = new Sound(this.othersnds);
btnpressSnd.attachSound("btnpress");
gear1 = new Sound(this.gears);
gear1.attachSound("gear1");
gear2 = new Sound(this.gears);
gear2.attachSound("gear2");
gear3 = new Sound(this.gears);
gear3.attachSound("gear3");
gear4 = new Sound(this.gears);
gear4.attachSound("gear4");
gear5 = new Sound(this.gears);
gear5.attachSound("gear5");
flybySnd = new Sound(this.flybys);
flybySnd.attachSound("flyby");
flyby2Snd = new Sound(this.flybys);
flyby2Snd.attachSound("flyby2");
missleLockSnd = new Sound(this.othersnds);
missleLockSnd.attachSound("missleLock");
alarmSnd = new Sound(this.othersnds);
alarmSnd.attachSound("missleAlarm");
noshieldsAlarmSnd = new Sound(this.othersnds);
noshieldsAlarmSnd.attachSound("noshieldsAlarm");
healthlowAlarmSnd = new Sound(this.othersnds);
healthlowAlarmSnd.attachSound("healthlowAlarm");
stop();
totalcount = 10;
_root.died = 0;
_root.missed = 0;
b = new Array();
bm = new Array();
s = new Array();
passed = 0;
blenStart = 0;
locked = 50;
shieldPts = 200;
score = 0;
zeroScore = "0";
_root.shotCount = 0;
lockedTarget = null;
fuel = 100;
missleCount = 0;
inv = false;
wave.prototype.addEnemy = addEnemy;
wave.prototype.initWave = initWave;
wave.prototype.removeWave = removeWave;
wave.prototype.reorgWave = reorgWave;
MovieClip.prototype.translate = translate;
MovieClip.prototype.stranslate = stranslate;
MovieClip.prototype.explode = explode;
MovieClip.prototype.explode2 = explode2;
MovieClip.prototype.straightShot = straightShot;
MovieClip.prototype.traceShot = traceShot;
MovieClip.prototype.ctraceShot = ctraceShot;
MovieClip.prototype.slowMissle = slowMissle;
MovieClip.prototype.bomb = bomb;
Instance of Symbol 513 MovieClip "ship" in Frame 3
onClipEvent (load) {
step = 0;
m_angle = 0;
}
onClipEvent (keyUp) {
if (Key.getCode(37)) {
k = 0;
}
if (Key.getCode(39)) {
kk = 0;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
m_angle = m_angle + 3;
k = 1;
}
if (Key.isDown(39)) {
m_angle = m_angle - 3;
kk = 1;
}
if (-12 >= m_angle) {
m_angle = -12;
}
if (12 < m_angle) {
m_angle = 12;
}
sum = k + kk;
if (sum == 0) {
if (0 < m_angle) {
m_angle = m_angle - 2;
}
if (m_angle < 0) {
m_angle = m_angle + 2;
}
}
_root.main._rotation = m_angle;
_root.seraph._rotation = -m_angle;
_root.seraph.cockpit.screen.horizon._rotation = m_angle;
}
Frame 4
stop();
unloadMovieNum (1);
removeMovieClip("seraph");
Symbol 15 MovieClip [shake] Frame 1
sx = _parent._x;
sy = _parent._y;
mx = [0, 2, 0, -2];
my = [0, 2, 0, -2];
_parent._x = _parent._x + mx[_currentframe];
_parent._y = _parent._y + my[_currentframe];
Symbol 15 MovieClip [shake] Frame 2
_parent._x = _parent._x + mx[_currentframe];
_parent._y = _parent._y + my[_currentframe];
Symbol 15 MovieClip [shake] Frame 3
_parent._x = _parent._x + mx[_currentframe];
_parent._y = _parent._y + my[_currentframe];
Symbol 15 MovieClip [shake] Frame 4
_parent._x = sx;
_parent._y = sy;
this.removeMovieClip();
Symbol 22 MovieClip [aprWave] Frame 15
this.removeMovieClip();
Instance of Symbol 25 MovieClip "missleshot" in Symbol 27 MovieClip [missle0] Frame 5
onClipEvent (load) {
ltarget = _root.lockedTarget;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (((ltarget._x + ltarget.cxoff) - _parent._x) / 3);
_parent._y = _parent._y + (((ltarget._y + ltarget.cyoff) - _parent._y) / 3);
}
Symbol 27 MovieClip [missle0] Frame 9
_root.missle1Snd.start(0, 1);
Symbol 27 MovieClip [missle0] Frame 19
ltarget = _root.lockedTarget;
if (missleshot.hitTest(ltarget.horz)) {
_root.lockedTarget = null;
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.setVolume(100 - (z / 20));
_root.explodeSnd.start(0, 1);
_root.addScore(ltarget.points);
_root.mview.target.gotoAndStop(1);
ltarget.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(ltarget.depth, 1);
_root.bm[ltarget.depth].removeMovieClip();
_root.bm.splice(ltarget.depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
ltarget.removeMovieClip();
_root.mview.target.gotoAndStop(1);
_parent.removeMovieClip();
}
if (missleshot.hitTest(ltarget.mlc)) {
if (ltarget.mlc._name == "c5") {
ltarget.health = ltarget.health - 5;
ltarget.hitBar.gotoAndStop(Math.ceil((11 * ltarget.health) / ltarget.hitPt));
trace("HEALTH" + ltarget.health);
trace("ltmlc" + ltarget["health" + ltarget.mlc._name]);
} else {
ltarget["health" + ltarget.mlc._name] = ltarget["health" + ltarget.mlc._name] - 5;
trace("MLCNAME after taking health" + ltarget.mlc._name);
}
ltarget.attachMovie("explode", "explode", 2000);
ltarget.explode._x = ltarget.mlc._x;
ltarget.explode._y = ltarget.mlc._y;
ltarget.explode._xscale = (ltarget.explode._yscale = 200);
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.setVolume(100);
_root.explodeSnd.start(0, 1);
if (0 >= ltarget["health" + ltarget.mlc._name]) {
_root.addScore(ltarget.points);
ltarget.explode._xscale = (ltarget.explode._yscale = 500);
ltarget.mlc._visible = false;
ltarget["hitBar" + ltarget.mlc._name]._visible = false;
ltarget["missleLock" + ltarget.mlc._name]._visible = false;
ltarget.mlc = ltarget.c5;
}
}
Instance of Symbol 25 MovieClip "missleshot" in Symbol 27 MovieClip [missle0] Frame 19
onClipEvent (enterFrame) {
_parent._x = _parent._x + (((ltarget._x + ltarget.cxoff) - _parent._x) / 3);
_parent._y = _parent._y + (((ltarget._y + ltarget.cyoff) - _parent._y) / 3);
}
Symbol 27 MovieClip [missle0] Frame 20
this.removeMovieClip();
Instance of Symbol 25 MovieClip "missleshot" in Symbol 28 MovieClip [missle1] Frame 5
onClipEvent (load) {
ltarget = _root.lockedTarget;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (((ltarget._x + ltarget.cxoff) - _parent._x) / 3);
_parent._y = _parent._y + (((ltarget._y + ltarget.cyoff) - _parent._y) / 3);
}
Symbol 28 MovieClip [missle1] Frame 9
_root.missle1Snd.start(0, 1);
Symbol 28 MovieClip [missle1] Frame 19
ltarget = _root.lockedTarget;
if (missleshot.hitTest(ltarget.horz)) {
_root.lockedTarget = null;
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.setVolume(100 - (z / 20));
_root.explodeSnd.start(0, 1);
_root.addScore(ltarget.points);
_root.mview.target.gotoAndStop(1);
ltarget.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(ltarget.depth, 1);
_root.bm[ltarget.depth].removeMovieClip();
_root.bm.splice(ltarget.depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
ltarget.removeMovieClip();
_root.mview.target.gotoAndStop(1);
_parent.removeMovieClip();
}
if (missleshot.hitTest(ltarget.mlc)) {
if (ltarget.mlc._name == "c5") {
ltarget.health = ltarget.health - 5;
ltarget.hitBar.gotoAndStop(Math.ceil((11 * ltarget.health) / ltarget.hitPt));
} else {
ltarget["health" + ltarget.mlc._name] = ltarget["health" + ltarget.mlc._name] - 5;
}
ltarget.attachMovie("explode", "explode", 2000);
ltarget.explode._x = ltarget.mlc._x;
ltarget.explode._y = ltarget.mlc._y;
ltarget.explode._xscale = (ltarget.explode._yscale = 200);
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.setVolume(100);
_root.explodeSnd.start(0, 1);
if (0 >= ltarget["health" + ltarget.mlc._name]) {
_root.addScore(ltarget.points);
ltarget.explode._xscale = (ltarget.explode._yscale = 500);
ltarget.mlc._visible = false;
ltarget["hitBar" + ltarget.mlc._name]._visible = false;
ltarget["missleLock" + ltarget.mlc._name]._visible = false;
ltarget.mlc = ltarget.c5;
}
}
Instance of Symbol 25 MovieClip "missleshot" in Symbol 28 MovieClip [missle1] Frame 19
onClipEvent (enterFrame) {
_parent._x = _parent._x + (((ltarget._x + ltarget.cxoff) - _parent._x) / 3);
_parent._y = _parent._y + (((ltarget._y + ltarget.cyoff) - _parent._y) / 3);
}
Symbol 28 MovieClip [missle1] Frame 20
this.removeMovieClip();
Symbol 30 MovieClip [ballmark] Frame 1
stop();
Symbol 30 MovieClip [ballmark] Frame 2
_root.b[this.num].x = this._x * 10;
_root.b[this.num].z = (-this._y) * 10;
_root.b[this.num].Translate();
Symbol 30 MovieClip [ballmark] Frame 3
gotoAndPlay (2);
Symbol 33 Button
on (rollOver) {
_parent._parent.target.gotoAndPlay(2);
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
}
on (press) {
play();
}
Symbol 35 MovieClip [starburst] Frame 1
stop();
Symbol 35 MovieClip [starburst] Frame 3
_parent._parent.target.gotoAndStop(1);
_root.s.splice(num, 1);
trace("s" + _root.s);
i = 0;
while (i < _root.s.length) {
_root.s[i].num = i;
i++;
}
_parent._parent.target.gotoAndStop(1);
this.removeMovieClip();
Symbol 36 MovieClip Frame 1
stop();
Symbol 38 Button
on (rollOver) {
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
this.missleLock.play();
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (0 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
} else {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.setVolume(100 - (z / 20));
_root.explodeSnd.start(0, 1);
}
health = health - 1;
if (0 >= health) {
_root.addScore(points);
_root.cockpit.sd.gotoAndStop(1);
_parent._parent.target.gotoAndStop(1);
this.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
} else {
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
}
}
Symbol 41 MovieClip Frame 1
lock = false;
stop();
Symbol 41 MovieClip Frame 6
lock = true;
_parent._parent._parent.target.z = _parent.z;
_root.lockedTarget = _parent;
_root.missleLockSnd.start(0, 1);
Symbol 44 MovieClip Frame 1
stop();
Symbol 45 MovieClip [interceptor] Frame 1
stop();
Symbol 45 MovieClip [interceptor] Frame 2
stop();
Symbol 45 MovieClip [interceptor] Frame 3
stop();
Symbol 45 MovieClip [interceptor] Frame 4
stop();
Symbol 45 MovieClip [interceptor] Frame 5
stop();
Symbol 45 MovieClip [interceptor] Frame 6
stop();
Symbol 45 MovieClip [interceptor] Frame 7
stop();
Symbol 45 MovieClip [interceptor] Frame 8
stop();
Symbol 45 MovieClip [interceptor] Frame 9
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
stop();
Symbol 47 MovieClip Frame 3
stop();
Symbol 47 MovieClip Frame 4
stop();
Symbol 47 MovieClip Frame 5
stop();
Symbol 48 Button
on (rollOver) {
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
this.missleLock.play();
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
health = health - 1;
if (0 >= health) {
_root.addScore(points);
_root.cockpit.sd.gotoAndStop(1);
_parent._parent.target.gotoAndStop(1);
this.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
} else {
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
}
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 3
stop();
Symbol 50 MovieClip Frame 4
stop();
Symbol 50 MovieClip Frame 5
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 3
stop();
Symbol 52 MovieClip Frame 4
stop();
Symbol 52 MovieClip Frame 5
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 54 MovieClip Frame 4
stop();
Symbol 54 MovieClip Frame 5
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 4
stop();
Symbol 56 MovieClip Frame 5
stop();
Symbol 57 MovieClip [probe] Frame 1
stop();
Symbol 57 MovieClip [probe] Frame 2
stop();
Symbol 57 MovieClip [probe] Frame 3
stop();
Symbol 57 MovieClip [probe] Frame 4
stop();
Symbol 57 MovieClip [probe] Frame 5
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 69 Button
on (rollOver) {
trace("mlcname" + mlc._name);
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
if (health < 40) {
if (0 < healthc3) {
if (mlc._name != c3) {
this["missleLock" + mlc._name].gotoAndStop(1);
}
mlc = c3;
this.missleLockc3.play();
}
} else {
this.missleLock.play();
}
cxoff = 27;
cyoff = -18;
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLockc3.lock == false) {
this.missleLockc3.gotoAndStop(1);
mlc = c3;
}
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (40 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
health = health - 1;
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
} else if (0 < healthc3) {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
healthc3 = healthc3 - 1;
hitBarc3.gotoAndStop(Math.ceil((11 * healthc3) / 10));
if (0 >= healthc3) {
this.attachMovie("explode", "explode", 2000);
explode._x = c3._x;
explode._y = c3._y;
explode._xscale = (explode._yscale = 300);
c3._visible = false;
hitBarc3._visible = false;
missleLockc3._visible = false;
}
}
_root.addScore(points);
}
Symbol 70 Button
on (rollOver) {
trace("MLC" + mlc);
trace("MLCNAME" + mlc._name);
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
if (health < 40) {
if (0 < healthc2) {
if (mlc._name != c2) {
this["missleLock" + mlc._name].gotoAndStop(1);
}
mlc = c2;
this.missleLockc2.play();
}
} else {
this.missleLock.play();
}
cxoff = -27;
cyoff = -18;
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (this.missleLockc2.lock == false) {
this.missleLockc2.gotoAndStop(1);
mlc = c2;
}
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (40 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
health = health - 1;
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
} else if (0 < healthc2) {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
healthc2 = healthc2 - 1;
hitBarc2.gotoAndStop(Math.ceil((11 * healthc2) / 10));
if (0 >= healthc2) {
this.attachMovie("explode", "explode", 2000);
explode._x = c2._x;
explode._y = c2._y;
explode._xscale = (explode._yscale = 300);
c2._visible = false;
hitBarc2._visible = false;
missleLockc2._visible = false;
}
}
_root.addScore(points);
}
Symbol 71 Button
on (rollOver) {
trace("mlcname" + mlc._name);
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
if (40 < health) {
this.missleLock.play();
} else {
missleLock.gotoAndStop(1);
if (mlc._name != c5) {
this["missleLock" + mlc._name].gotoAndStop(1);
}
mlc = c5;
this.missleLockc5.play();
}
cxoff = 0;
cxoff = -12;
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
if (missleLockc5.lock == false) {
this.missleLockc5.gotoAndStop(1);
mlc = c5;
}
}
on (press) {
if (40 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
} else {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
}
health = health - 1;
if (0 >= health) {
_root.addScore(points);
_root.cockpit.sd.gotoAndStop(1);
_parent._parent.target.gotoAndStop(1);
_parent.attachMovie("explode", "explode", 2000);
explode._x = this._x;
explode._y = this._y;
explode._xscale = (explode._yscale = 600);
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
} else {
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
}
}
Symbol 72 Button
on (rollOver) {
trace("mlcname" + mlc._name);
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.gotoAndStop(2);
if (health < 40) {
if (0 < healthc4) {
if (mlc._name != c4) {
this["missleLock" + mlc._name].gotoAndStop(1);
}
mlc = c4;
this.missleLockc4.play();
}
} else {
this.missleLock.play();
}
cxoff = 0;
cyoff = 0;
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (this.missleLockc4.lock == false) {
this.missleLockc4.gotoAndStop(1);
mlc = c4;
}
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (40 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
health = health - 1;
} else if (0 < healthc4) {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
healthc4 = healthc4 - 1;
hitBarc4.gotoAndStop(Math.ceil((11 * healthc4) / 10));
if (0 >= healthc4) {
this.attachMovie("explode", "explode", 2000);
explode._x = c4._x;
explode._y = c4._y;
explode._xscale = (explode._yscale = 300);
c4._visible = false;
hitBarc4._visible = false;
missleLockc4._visible = false;
}
}
_root.addScore(points);
}
Symbol 73 Button
on (rollOver) {
trace("mlcname" + mlc._name);
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
if (health < 40) {
if (0 < healthc1) {
if (mlc._name != c1) {
this["missleLock" + mlc._name].gotoAndStop(1);
}
mlc = c1;
this.missleLockc1.play();
}
} else {
this.missleLock.play();
}
cxoff = 0;
cyoff = -30;
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLockc1.lock == false) {
this.missleLockc1.gotoAndStop(1);
mlc = c1;
}
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (40 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
health = health - 1;
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
} else if (0 < healthc1) {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
healthc1 = healthc1 - 1;
hitBarc1.gotoAndStop(Math.ceil((11 * healthc1) / 10));
if (0 >= healthc1) {
this.attachMovie("explode", "explode", 2000);
explode._x = c1._x;
explode._y = c1._y;
explode._xscale = (explode._yscale = 300);
c1._visible = false;
hitBarc1._visible = false;
missleLockc1._visible = false;
}
}
_root.addScore(points);
}
Instance of Symbol 68 MovieClip "c1" in Symbol 74 MovieClip [boss1] Frame 1
onClipEvent (load) {
_parent.healthc1 = 10;
_parent.healthc2 = 10;
_parent.healthc3 = 10;
_parent.healthc4 = 10;
_parent.healthc5 = 40;
_parent.c1xoff = 0;
_parent.c1yoff = -80;
_parent.c2xoff = -140;
_parent.c2yoff = -60;
_parent.c3xoff = 140;
_parent.c3yoff = -60;
_parent.c4xoff = 0;
_parent.c4yoff = 0;
}
Symbol 76 Button
on (rollOver) {
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(4);
_parent._parent.target.di.gotoAndStop(Math.ceil(z / 100));
_parent._parent.target.gotoAndStop(2);
this.missleLock.play();
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
if (0 < health) {
shieldHit.play();
_root.explode2Snd.setPan(x / 20);
_root.explode2Snd.start(0, 1);
} else {
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
}
health = health - 1;
if (0 >= health) {
_root.addScore(points);
_root.cockpit.sd.gotoAndStop(1);
_root.score = _root.score + points;
_parent._parent.target.gotoAndStop(1);
this.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
} else {
hitBar.gotoAndStop(Math.ceil((11 * health) / hitPt));
}
}
Symbol 77 MovieClip [aggressor] Frame 1
stop();
Symbol 77 MovieClip [aggressor] Frame 2
stop();
Symbol 77 MovieClip [aggressor] Frame 3
stop();
Symbol 77 MovieClip [aggressor] Frame 4
stop();
Symbol 77 MovieClip [aggressor] Frame 5
stop();
Symbol 82 MovieClip [laser] Frame 4
stop();
Symbol 85 MovieClip [laser2] Frame 4
stop();
Symbol 86 Button
on (rollOver) {
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.gotoAndStop(2);
this.missleLock.play();
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
_root.attachMovie("aprWave", "aprWave1", 100001);
_root.aprWave1.curWave = "missles replenished";
_root.aprWave1._x = 275;
_root.aprWave1._y = 200;
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
_root.addScore(points);
_root.missleCount = 0;
_root.cockpit.missleDisplay.gotoAndStop(1);
_root.cockpit.sd.gotoAndStop(1);
_parent._parent.target.gotoAndStop(1);
this.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
}
Symbol 88 Button
on (rollOver) {
if (_root.lockedTarget != this) {
_root.lockedTarget.missleLock.gotoAndStop(1);
}
_root.cockpit.sd.gotoAndStop(this.type);
_parent._parent.target.gotoAndStop(2);
this.missleLock.play();
}
on (rollOut) {
_parent._parent.target.gotoAndStop(1);
if (missleLock.lock == false) {
this.missleLock.gotoAndStop(1);
}
}
on (press) {
_root.attachMovie("aprWave", "aprWave2", 100002);
_root.aprWave2.curWave = "shields recharged";
_root.aprWave2._x = 275;
_root.aprWave2._y = 200;
_root.explodeSnd.setPan(x / 20);
_root.explodeSnd.start(0, 1);
_root.addScore(points);
_root.shieldPts = 200;
_root.cockpit.shields.gotoAndStop(1);
_root.cockpit.sd.gotoAndStop(1);
_parent._parent.target.gotoAndStop(1);
this.explode();
if (_root.b.length == 1) {
_root.waveDelay.play();
}
_root.b.splice(depth, 1);
_root.bm[depth].removeMovieClip();
_root.bm.splice(depth, 1);
i = 0;
while (_root.b.length >= i) {
_root.b[i].depth = i;
_root.bm[i].depth = i;
i++;
}
this.removeMovieClip();
_parent._parent.target.gotoAndStop(1);
}
Symbol 141 MovieClip [explode] Frame 20
AAA = random(6) + 1;
_root.talksound.gotoAndStop(AAA);
Symbol 141 MovieClip [explode] Frame 39
this.removeMovieClip();
stop();
stopAllSounds();
_root.gotoAndPlay(1);
Symbol 155 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
while (/:amount_smoke >= i) {
duplicateMovieClip (smoke0, sc + i, i);
i++;
}
Instance of Symbol 155 MovieClip "smoke0" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
_alpha = (5 + (Math.random() * 50));
_xscale = 0;
}
onClipEvent (enterFrame) {
pym = this._parent.zooma._y + /:smoke_Y_offset;
pxm = this._parent.zooma._x;
_xscale = (_xscale + /:spread_rate_smoke);
_yscale = _xscale;
if (1 >= _xscale) {
_xscale = 0;
}
_y = (_y - ((1980 + ((-_yscale) * 1.83)) * (/:risespd_smoke / 100)));
_x = (_x + (xxx / 12));
_alpha = (_alpha - ((0.13 + /:disprate_smoke) + (Math.random() * 0.23)));
if (0 < rr) {
_rotation = (_rotation + /:rotation_rate_smoke);
} else if (rr < 0) {
_rotation = (_rotation - /:rotation_rate_smoke);
}
rscale = /:min_size_smoke + (Math.random() * /:max_size_smoke);
if (1 >= _alpha) {
xm = pxm - x;
x = pxm;
xxx = int(((xm / 14) - pxm) + x);
rr = -10 + random(20);
_alpha = (35 + (Math.random() * 65));
_y = pym;
_x = pxm;
_xscale = rscale;
_yscale = rscale;
_rotation = (-45 + (Math.random() * 90));
this.gotoAndStop(1 + random(6));
}
updateAfterEvent(enterFrame);
}
Symbol 157 MovieClip Frame 1
Set("/:amount_smoke", 9);
Set("/:smoke_Y_offset", -12);
Set("/:risespd_smoke", 0.09);
Set("/:rotation_rate_smoke", 2.13);
Set("/:disprate_smoke", 1.43);
Set("/:spread_rate_smoke", 2.87);
Set("/:min_size_smoke", 16);
Set("/:max_size_smoke", 32);
Symbol 159 MovieClip [myfly] Frame 141
stop();
_root.gotoAndStop(4);
Symbol 177 Button
on (release) {
_root.play();
}
Symbol 178 MovieClip Frame 1
_root.stop();
stop();
Symbol 178 MovieClip Frame 20
stop();
Symbol 183 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 186 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 188 MovieClip Frame 1
function load_ad() {
url = new XML();
url.onLoad = function (s) {
if (s) {
_root.NewgroundsAPI_Ad_Unit.start_ad(this.toString());
}
};
url.load(_root.NewgroundsAPI_params.ad_url);
}
function start_ad(url) {
trace("[Newgrounds Flash Ads] Your ad was loaded. Your version of flash may have trouble displaying the ad, however, the ad will load fine if you test in a browser!");
ng_ad.loadMovie(url);
}
_root.NewgroundsAPI_Ad_Unit = this;
if (_root.NewgroundsAPI_params.ad_url != undefined) {
_root.NewgroundsAPI_Ad_Unit.load_ad();
}
_root.NewgroundsAPI_onAdsApproved = function () {
_root.NewgroundsAPI_Ad_Unit.load_ad();
};
Instance of Symbol 178 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
x = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (x < 100) {
bar.gotoAndStop(x);
} else if (init != 1) {
init = 1;
play();
}
}
Symbol 198 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 203 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 206 Button
on (release) {
this._visible = false;
}
Symbol 208 MovieClip Frame 1
_visible = false;
_root.NewgroundsAPI = this;
STAT_MOVIE_VIEWS = 1;
STAT_AUTHOR_SITE = 2;
STAT_NEWGROUNDS = 3;
STAT_NEW_VERSION = 4;
STAT_CUSTOM_STATS = 50;
Symbol 208 MovieClip Frame 2
_root.NewgroundsAPI.POPUP_ERROR._visible = false;
_root.NewgroundsAPI.POPUP_VERSION._visible = false;
customStats = new Object();
i = 1;
while (i < _root.NewgroundsAPI_customLinks.length) {
customStats[_root.NewgroundsAPI_customLinks[i]] = i + STAT_CUSTOM_STATS;
i++;
}
i = 1;
while (i < _root.NewgroundsAPI_customEvents.length) {
customStats[_root.NewgroundsAPI_customEvents[i]] = i + STAT_CUSTOM_STATS;
i++;
}
_x = 0;
_y = 0;
configureMovie = function () {
if (_root.NewgroundsAPI_params.error != undefined) {
sendError(_root.NewgroundsAPI_params.error);
}
if (_root.NewgroundsAPI_params.settings_loaded == 1) {
sendMessage("You have successfully connected to the Newgrounds API gateway!");
sendMessage(("Movie Identified as '" + _root.NewgroundsAPI_params.movie_name) + "'");
}
if (_root.NewgroundsAPI_params.deny_host == 1) {
sendMessage(host + " is not approved to use this movie");
_root.NewgroundsAPI_onDenyHost(host, _root.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_root.NewgroundsAPI_params.movie_version == 1) {
sendMessage(("Version " + _root.NewgroundsAPI_params.movie_version) + " is now available!");
_root.NewgroundsAPI_onNewVersionAvailable(_root.NewgroundsAPI_params.movie_version, _root.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_root.NewgroundsAPI_params.ad_url != undefined) {
sendMessage("This movie has been approved to use Flash Ads");
_root.NewgroundsAPI_onAdsApproved(_root.NewgroundsAPI_params.ad_url);
}
};
sendError = function (error) {
trace("[NEWGROUNDS API ERROR] " + error);
};
sendMessage = function (message) {
trace("[NEWGROUNDS API] " + message);
};
sendStats = function (stat, new_window) {
if (script_url != undefined) {
query = "&stat=" + stat;
if (new_window == true) {
getURL (script_url + query, "_blank");
} else {
initInfo = new XML();
initInfo.onLoad = function () {
i = 0;
while (i < this.childNodes.length) {
if (this.childNodes[i].nodeName != null) {
j = 0;
while (j < this.childNodes[i].childNodes.length) {
if (this.childNodes[i].childNodes[j].nodeName != null) {
param_name = this.childNodes[i].childNodes[j].nodeName;
param_value = unescape(this.childNodes[i].childNodes[j].attributes.value);
_root.NewgroundsAPI_params[param_name] = param_value;
}
j++;
}
}
i++;
}
_root.NewgroundsAPI.configureMovie();
};
initInfo.load(script_url + query);
}
}
};
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
if (!_root.NewgroundsAPI_id) {
sendError("Missing required '_root.NewgroundsAPI_id' variable");
} else if (!tracker_id) {
tracker_id = _root.NewgroundsAPI_id;
script_url = (("http://www.ngads.com/gateway.php?id=" + tracker_id) + "&host=") + escape(host);
_root.NewgroundsAPI_params = new Object();
sendMessage("Connecting to API gateway...");
sendStats(STAT_MOVIE_VIEWS, false);
}
_root.NewgroundsAPI_loadMyMovie = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEW_VERSION, true);
};
_root.NewgroundsAPI_loadNewgrounds = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEWGROUNDS, true);
};
_root.NewgroundsAPI_loadMySite = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_AUTHOR_SITE, true);
};
_root.NewgroundsAPI_loadCustomLink = function (link) {
if (_root.NewgroundsAPI.customStats[link]) {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.customStats[link], true);
} else {
_root.NewgroundsAPI.sendError(("The custom link '" + link) + "' has not beed defined.");
}
};
_root.NewgroundsAPI_logCustomEvent = function (event) {
if (_root.NewgroundsAPI.customStats[event]) {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.customStats[event], false);
} else {
_root.NewgroundsAPI.sendError(("The custom event '" + event) + "' has not beed defined.");
}
};
if (typeof(_root.NewgroundsAPI_onDenyHost) != "function") {
_root.NewgroundsAPI_onDenyHost = function (ad_url) {
_root.NewgroundsAPI.swapDepths(99999);
_root.NewgroundsAPI._visible = true;
_root.NewgroundsAPI.POPUP_ERROR._visible = true;
};
}
if (typeof(_root.NewgroundsAPI_onNewVersionAvailable) != "function") {
_root.NewgroundsAPI_onNewVersionAvailable = function (ad_url) {
_root.NewgroundsAPI.swapDepths(99999);
_root.NewgroundsAPI._visible = true;
_root.NewgroundsAPI.POPUP_VERSION._visible = true;
};
}
stop();
Symbol 353 MovieClip Frame 1
function placeObject(object, expand) {
object._x = (radius * expand) * Math.cos(angle);
object._y = (radius * expand) * Math.sin(angle);
}
var x;
var y;
var angle;
var radius;
var big_alpha = 0;
Symbol 353 MovieClip Frame 2
radius = Math.sqrt((_x * _x) + (_y * _y));
angle = Math.atan(_y / _x);
if (_x < 0) {
angle = 3.14 + angle;
}
burst1._x = x;
burst2._y = y;
placeObject(burst2, 1);
placeObject(burst3, 0.5);
placeObject(burst4, 1.8);
placeObject(burst5, 0.6);
placeObject(burst6, 1.5);
placeObject(burst7, -0.4);
placeObject(burst8, 1.6);
placeObject(burst9, -0.2);
big_alpha = 100 - radius;
if (big_alpha < 0) {
big_alpha = 0;
}
bigburst._alpha = big_alpha;
Symbol 353 MovieClip Frame 3
prevFrame();
play();
Symbol 354 MovieClip Frame 2
flare._x = _root.seraph_x;
flare._y = _root.seraph_y + 200;
Symbol 354 MovieClip Frame 3
prevFrame();
play();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 7
stop();
Symbol 383 MovieClip Frame 10
stop();
Symbol 383 MovieClip Frame 13
stop();
Symbol 383 MovieClip Frame 16
stop();
Symbol 383 MovieClip Frame 19
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 4
stop();
Symbol 389 MovieClip Frame 5
stop();
Symbol 389 MovieClip Frame 6
stop();
Symbol 389 MovieClip Frame 7
stop();
Symbol 396 MovieClip Frame 1
stop();
Instance of Symbol 369 MovieClip in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
_root.xcenter = 275;
_root.ycenter = 200;
_root.fl = 170;
_root.gun = 1;
_root.seraph_xlimit1 = 50;
_root.seraph_xlimit2 = 500;
_root.seraph_ylimit1 = 250;
_root.seraph_ylimit2 = 330;
_root.seraph_x = 0;
_root.seraph_y = -30;
_root.seraph_z = 0;
_root.health = 100;
_root.shield = 0;
_root.xstep = 0;
_root.ystep = 0;
_root.dir_left = false;
_root.dir_right = false;
_root.dir_up = false;
_root.dir_down = false;
_root.speed = 8;
_root.key_left = 37;
_root.key_up = 38;
_root.key_right = 39;
_root.key_down = 40;
_root.key_left2 = 65;
_root.key_up2 = 87;
_root.key_right2 = 68;
_root.key_down2 = 83;
_root.accspeed = 2;
_root.decspeed = 1.5;
_root.speed_mod = 1;
_root.movelimit = 6;
}
onClipEvent (keyDown) {
if ((Key.getCode() == _root.key_left) || (Key.getCode() == _root.key_left2)) {
_root.dir_left = true;
}
if ((Key.getCode() == _root.key_right) || (Key.getCode() == _root.key_right2)) {
_root.dir_right = true;
}
if ((Key.getCode() == _root.key_up) || (Key.getCode() == _root.key_up2)) {
_root.dir_up = true;
_parent.seraph.cockpit.screen.altimetre.mouvement_y = 10;
}
if ((Key.getCode() == _root.key_down) || (Key.getCode() == _root.key_down2)) {
_root.dir_down = true;
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == _root.key_left) || (Key.getCode() == _root.key_left2)) {
_root.dir_left = false;
if (!_root.dir_right) {
}
}
if ((Key.getCode() == _root.key_right) || (Key.getCode() == _root.key_right2)) {
_root.dir_right = false;
if (!_root.dir_left) {
}
}
if ((Key.getCode() == _root.key_up) || (Key.getCode() == _root.key_up2)) {
_root.dir_up = false;
if (!_root.dir_down) {
}
}
if ((Key.getCode() == _root.key_down) || (Key.getCode() == _root.key_down2)) {
_root.dir_down = false;
if (!_root.dir_up) {
}
}
}
onClipEvent (enterFrame) {
if (_root.dir_right) {
if (_root.xstep < _root.movelimit) {
_root.xstep = _root.xstep + _root.accspeed;
}
}
if (_root.dir_left) {
if ((-_root.movelimit) < _root.xstep) {
_root.xstep = _root.xstep - _root.accspeed;
}
}
if ((!_root.dir_left) && (!_root.dir_right)) {
_root.xstep = _root.xstep / _root.decspeed;
if ((_root.xstep < 0.1) && (-0.1 < _root.xstep)) {
_root.xstep = 0;
}
}
if (_root.dir_down) {
if (_root.ystep < _root.movelimit) {
_root.ystep = _root.ystep + _root.accspeed;
}
}
if (_root.dir_up) {
if ((-_root.movelimit) < _root.ystep) {
_root.ystep = _root.ystep - _root.accspeed;
}
}
if ((!_root.dir_up) && (!_root.dir_down)) {
_root.ystep = _root.ystep / _root.decspeed;
if ((_root.ystep < 0.1) && (-0.1 < _root.ystep)) {
_root.ystep = 0;
}
}
if (((_root.seraph_xlimit1 < _parent._x) && (0 >= _root.xstep)) || ((_parent._x < _root.seraph_xlimit2) && (_root.xstep >= 0))) {
_parent._x = _parent._x + _root.xstep;
}
if (((_root.seraph_ylimit1 < _parent._y) && (0 >= _root.ystep)) || ((_parent._y < _root.seraph_ylimit2) && (_root.ystep >= 0))) {
_parent._y = _parent._y + _root.ystep;
}
yvar = _parent._y - 200;
xvar = _parent._x - 275;
_root.seraph_x = -xvar;
_root.seraph_y = -yvar;
_root.seraph_z = 0;
}
Symbol 396 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
c_grp = "skin";
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
c_grp = "skin";
stop();
Symbol 415 MovieClip Frame 1
c_grp = "skin";
stop();
Symbol 419 MovieClip Frame 1
c_grp = "eyes";
stop();
Symbol 422 MovieClip Frame 1
c_grp = "skin";
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
c_grp = "hair";
stop();
Symbol 428 MovieClip Frame 1
a_grp = "glasses";
type = "r";
Symbol 432 MovieClip Frame 1
a_grp = "glasses";
type = "l";
Symbol 436 MovieClip Frame 1
c_grp = "hair";
a_grp = "fhair";
type = "l";
stop();
Symbol 439 MovieClip Frame 1
c_grp = "hair";
a_grp = "hair";
type = "l";
stop();
Symbol 441 MovieClip Frame 1
a_grp = "hat";
type = "l";
stop();
Symbol 444 MovieClip Frame 1
c_grp = "hair";
a_grp = "fhair";
type = "r";
stop();
Symbol 447 MovieClip Frame 1
c_grp = "hair";
a_grp = "hair";
type = "r";
stop();
Symbol 449 MovieClip Frame 1
a_grp = "hat";
type = "r";
stop();
Symbol 461 MovieClip Frame 1
c_grp = "mouth";
stop();
Symbol 463 MovieClip Frame 1
a_grp = "mouth";
type = "f";
stop();
Symbol 464 MovieClip Frame 1
last_x = _parent._parent._xmouse;
last_y = _parent._parent._ymouse;
Symbol 464 MovieClip Frame 2
function update() {
last_x = _parent._parent._parent._xmouse;
last_y = _parent._parent._parent._ymouse;
}
if (this._parent._parent.is_Gazing) {
counter = 0;
this._parent._parent.getLookCount();
} else if ((5 < Math.abs(last_x - _parent._parent._parent._xmouse)) || (5 < Math.abs(last_y - _parent._parent._parent._ymouse))) {
counter = 0;
if (3 < initiated) {
if (_parent._parent.MouseMode) {
_parent._parent.setMouseFollow(true);
}
}
_parent._parent.mouseMoved();
update();
} else if ((40 < (counter++)) && (_parent._parent.MouseMode)) {
counter = 0;
_parent._parent.recenter();
update();
}
if (2 < (breath++)) {
breath = 0;
_parent._parent.breathe();
}
initiated++;
Symbol 464 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 466 MovieClip Frame 1
function R_Group(name, high, low, varName, saveStr, type) {
var aaa1 = this;
aaa1.name = name;
aaa1.high = high;
aaa1.low = low;
aaa1.varName = new String("" + varName);
aaa1.type = type;
aaa1.saveStr = saveStr;
}
function AGE_Group(name, high, _hp) {
var aaa1 = this;
var aaa2 = name;
aaa1.hostPath = _hp;
aaa1.base = R_Group;
aaa1.isEnabled = true;
aaa1.base(aaa2, high, 1, aaa2, aaa2);
delete aaa1.base;
aaa1.constructor.prototype.__proto__ = R_Group.prototype;
aaa1.ar = new Array();
}
function AL_Group(name) {
var aaa1 = this;
var aaa2 = name;
aaa1.base = R_Group;
aaa1.base(aaa2, 100, 0, "", aaa2);
delete aaa1.base;
aaa1.name = aaa2;
aaa1.constructor.prototype.__proto__ = R_Group.prototype;
aaa1.ar = new Array();
}
function C_Group(name) {
var aaa1 = this;
aaa1.name = name;
aaa1.saveStr = name;
aaa1.ar = new Array();
}
function initInterface() {
this.acsrLoadedNum = 0;
R_Group.prototype.getValue = function () {
if ((this.type == 1) || (this.type == 3)) {
return(eval (this.varName)._xscale);
}
if (this.type == 2) {
return(eval (this.varName)._yscale);
}
};
R_Group.prototype.setValue = function (value) {
if ((this.type == 1) || (this.type == 3)) {
eval (this.varName)._xscale = value;
}
if ((this.type == 2) || (this.type == 3)) {
eval (this.varName)._yscale = value;
}
if (this.name == "head height") {
eval (this.varName)._parent.backhair._yscale = value;
}
if (this.name == "head width") {
eval (this.varName)._parent.backhair._xscale = value;
}
};
this.r_grp = new GroupsList("range", this);
this.r_grp.configHandler = function (configObj) {
var aaa3 = this;
var aaa1 = 0;
while (aaa1 < aaa3.ar.length) {
var aaa2 = aaa3.ar[aaa1].saveStr;
var confVal = ((0 >= Number(configObj[aaa2])) ? 101 : (configObj[aaa2]));
aaa3.ar[aaa1].setValue(confVal);
aaa1++;
}
};
this.r_grp.travelHandler = function (obj) {
var aaa1 = this;
var aaa2 = obj;
if (aaa2.al_grp != null) {
grp_name = aaa2.al_grp;
if (aaa1[grp_name] == null) {
aaa1[grp_name] = new AL_Group(grp_name);
aaa1.ar.push(aaa1[grp_name]);
}
aaa1[grp_name].ar.push(aaa2);
}
if (aaa2.age_grp != null) {
grp_name = aaa2.age_grp;
if (aaa1[grp_name] == null) {
aaa1[grp_name] = new AGE_Group(grp_name, aaa2._totalframes, aaa1.hostPath);
aaa1.ar.push(aaa1[grp_name]);
}
aaa1[grp_name].ar.push(aaa2);
}
};
this.UI_Models.push(this.r_grp);
this.r_grp.ar.push(new R_Group("mouth", 150, 50, this.mouth, "mscale", 3));
this.r_grp.ar.push(new R_Group("nose", 150, 50, this.nose, "nscale", 3));
this.r_grp.ar.push(new R_Group("shoulders", 130, 50, this._parent.body, "bscale", 1));
this.r_grp.ar.push(new R_Group("head height", 125, 75, this, "hyscale", 2));
this.r_grp.ar.push(new R_Group("head width", 125, 75, this, "hxscale", 1));
AGE_Group.prototype.getValue = function () {
return(this.ar[0]._currentframe);
};
AGE_Group.prototype.setValue = function (value) {
var aaa1 = this;
var aaa2 = value;
if (aaa2 == 101) {
aaa2 = 1;
}
i = 0;
while (i < aaa1.ar.length) {
aaa1.ar[i].gotoAndStop(aaa2);
i++;
}
ftr = 0.3;
aaa1.hostPath.mouth.tt._yscale = aaa1.hostPath.ttyo - ((aaa2 * ftr) * 3);
aaa1.hostPath.mouth.lips._yscale = aaa1.hostPath.mouthyo - ((aaa2 * ftr) * 3);
};
AL_Group.prototype.getValue = function () {
return(this.ar[0]._alpha);
};
AL_Group.prototype.setValue = function (value) {
var aaa1 = this;
var aaa2 = value;
if (aaa2 == 101) {
return(undefined);
}
i = 0;
while (i < aaa1.ar.length) {
aaa1.ar[i]._alpha = aaa2;
i++;
}
};
this.mouthyo = this.mouth.lips._yscale;
this.ttyo = this.mouth.tt._yscale;
}
function onFrameChnage(obj, dep) {
var aaa1 = obj;
if ((aaa1.lastFrame != aaa1._currentframe) || (aaa1.counter == 2)) {
aaa1.counter++;
if (aaa1.counter == 2) {
aaa1.gotoAndStop(aaa1._currentframe);
} else {
this.a_grp[dep].setEnabled(aaa1[dep]);
}
}
aaa1.lastFrame = aaa1._currentframe;
aaa1.stop();
}
function loadingDone(_lobj) {
this.accessorieLoaded();
}
function accessorieLoaded() {
var aaa1 = this;
if ((++aaa1.acsrLoadedNum) == aaa1.acsrNum) {
aaa1.ConfigHost(aaa1.configObj);
}
}
function getHostVolume() {
return(this.hostVolume);
}
function setHostVolume(_hostVolume) {
_root.utils.debug = " HOST setHostVolume " + _hostVolume;
this.sound.setHostVolume(_hostVolume);
}
function freeze() {
var aaa1 = this;
aaa1.isFrozen = true;
aaa1.sound.freeze();
aaa1.stop();
aaa1.engine.mouseListener.stop();
}
function resume() {
var aaa1 = this;
aaa1.isFrozen = false;
aaa1.sound.resume();
aaa1.moveToTarget();
aaa1.engine.mouseListener.play();
}
function resumeLook() {
var aaa1 = this;
aaa1.lookAt(aaa1.last_posx, aaa1.last_posy);
}
function lookAt(posx, posy) {
var aaa1 = this;
if ((!aaa1.last_posx) || (!aaa1.last_posy)) {
return(undefined);
}
aaa1.last_posx = posx;
aaa1.last_posy = posy;
var aaa2 = new Object();
aaa2.x = aaa1.browl._x;
aaa2.y = aaa1.browr._y;
localToGlobal(aaa1.point);
aaa1.setLookTarget(posx - aaa2.x, posy - aaa2.y);
aaa1.newTarget = 1;
}
function look() {
var aaa1 = this;
aaa1.setLookTarget(aaa1.look_x, aaa1.look_y);
aaa1.moveToTarget();
}
function initColor() {
function C_Group(name) {
var aaa1 = this;
aaa1.name = name;
aaa1.saveStr = name;
aaa1.ar = new Array();
}
function mouthColor(name) {
super(name);
}
var aaa1 = this;
aaa1.c_grp = new GroupsList("color");
aaa1.c_grp.travelHandler = function (obj) {
var aaa1 = obj;
if (aaa1.c_grp != null) {
this.addGroupMember(aaa1, aaa1.c_grp);
}
};
aaa1.c_grp.addGroupMember = function (in_obj, in_name) {
var aaa1 = this;
grp_name = in_name;
if (aaa1[grp_name] == null) {
aaa1[grp_name] = new C_Group(grp_name);
aaa1.ar.push(aaa1[grp_name]);
}
aaa1[grp_name].ar.push(in_obj);
};
c_grp.configHandler = function (configObj) {
var aaa1 = 0;
while (aaa1 < this.ar.length) {
var aaa2 = this.ar[aaa1].name;
var tmp_bb = getColorVal(aaa2, "b", configObj);
var aaa3 = getColorVal(aaa2, "r", configObj);
var tmp_gb = getColorVal(aaa2, "g", configObj);
if (((tmp_bb == "") || (aaa3 == "")) || (tmp_gb == "")) {
} else {
tmpCT = {bb:tmp_bb, rb:aaa3, gb:tmp_gb};
this.ar[aaa1].setColor(tmpCT);
}
aaa1++;
}
};
aaa1.UI_Models.push(aaa1.c_grp);
C_Group.prototype.setColor = function (transObj) {
var aaa1 = transObj;
var aaa2 = this;
i = 0;
while (i < aaa2.ar.length) {
tmpClr = new Color(aaa2.ar[i]);
tmpClr.setTransform({rb:aaa1.rb, gb:aaa1.gb, bb:aaa1.bb});
i++;
}
};
C_Group.prototype.getColor = function () {
tmpColor = new Color(this.ar[0]);
return(tmpColor.getTransform());
};
mouthColor.prototype = new C_Group();
}
function C_Group(name) {
var aaa1 = this;
aaa1.name = name;
aaa1.saveStr = name;
aaa1.ar = new Array();
}
function mouthColor(name) {
super(name);
}
function A_Group(name) {
this.constructor.prototype.__proto__ = R_Group.prototype;
this.ar = new Object();
}
function doMain() {
function GroupsList(type, hostPath) {
var aaa1 = this;
aaa1.ar = new Array();
aaa1.type = type;
aaa1.hostPath = hostPath;
}
var aaa1 = this;
aaa1.neck = aaa1._parent.body.neck;
aaa1.backhair = aaa1._parent.backhair;
aaa1.hairback = aaa1._parent.hairback;
aaa1.g_mouseMode = false;
aaa1.is_Gazing = 0;
aaa1.xBound = 300;
aaa1.yBound = 100;
aaa1.eyeFactorX = 25;
aaa1.eyeFactorY = 13;
aaa1.crack = 0.5;
aaa1.speed = 8;
aaa1.breathspeed = 0.5;
aaa1.breathSign = 1;
aaa1.count = 10;
aaa1.checkcount = 1;
aaa1.eyes_scale = 100;
aaa1.nose_scale = 100;
aaa1.mouth_scale = 100;
aaa1.UI_Models = new Array();
aaa1.initColor();
aaa1.initAcc(aaa1);
aaa1.initInterface();
aaa1.initSpeechAPI();
aaa1.em = 0.67;
aaa1.diff = 1;
aaa1.faceLX = aaa1.facel._x;
aaa1.faceRX = aaa1.facer._x;
aaa1.faceLY = aaa1.facel._y;
aaa1.faceRY = aaa1.facer._y;
aaa1.maxX = 27;
aaa1.minX = 20;
aaa1.maxY = 6;
aaa1.minY = 0;
aaa1.eyeLX = aaa1.eyel._x;
aaa1.eyeRX = aaa1.eyer._x;
aaa1.eyebLX = aaa1.eyel.ball._x;
aaa1.eyeLY = aaa1.eyel._y;
aaa1.eyeRY = aaa1.eyer._y;
aaa1.eyebLY = aaa1.eyel.ball._y;
aaa1.eyeX = 0;
aaa1.eyeY = 0;
aaa1.eyeTX = 0;
aaa1.eyeTY = 0;
aaa1.eyeMaxX = 12;
aaa1.eyeMaxY = 3;
aaa1.browLX = aaa1.browl._x;
aaa1.browRX = aaa1.browr._x;
aaa1.noseX = aaa1.nose._x;
aaa1.mouthX = aaa1.mouth._x;
aaa1.browLY = aaa1.browl._y;
aaa1.browRY = aaa1.browr._y;
aaa1.noseY = aaa1.nose._y;
aaa1.mouthY = aaa1.mouth._y;
aaa1.hairLX = aaa1.hairl._x;
aaa1.hairRX = aaa1.hair_r._x;
aaa1.hairLY = aaa1.hairl._y;
aaa1.hairRY = aaa1.hair_r._y;
aaa1.hairBX = aaa1.backhair._x;
aaa1.neckH = aaa1.neck._yscale;
aaa1.hostCounter = 100;
aaa1.initiated = 0;
aaa1.gotoAndPlay(aaa1._currentframe + 1);
}
function GroupsList(type, hostPath) {
var aaa1 = this;
aaa1.ar = new Array();
aaa1.type = type;
aaa1.hostPath = hostPath;
}
function init() {
var aaa1 = this;
if (0 < aaa1._parent.conf_str.length) {
aaa1.configFromString(aaa1._parent.conf_str);
return(undefined);
}
var aaa2 = new Object();
aaa1.ConfigHost(aaa2);
}
function ConfigFromFile(id, ConfigURL) {
if ((0 < Number(id)) && (0 < eval ("host_" + id)._totalframes)) {
this.ConfigHost(eval ("host_" + id));
return(undefined);
}
this.config.loadVariables(unescape(ConfigURL));
}
function configFromString(_strin) {
_strin = unescape(_strin);
var aaa3 = _strin.split("&");
var aaa1 = 0;
while (aaa1 < aaa3.length) {
var aaa2 = aaa3[aaa1].split("=");
this.config[aaa2[0]] = aaa2[1];
aaa1++;
}
this.ConfigHost(this.config);
}
function ConfigHost(_configObj) {
var aaa1 = this;
aaa1.configObj = _configObj;
if (aaa1.configObj.age == undefined) {
aaa1.configObj.age = 1;
}
aaa1.a_grp.configHandler(aaa1.configObj);
aaa1.c_grp.configHandler(aaa1.configObj);
aaa1.r_grp.configHandler(aaa1.configObj);
if (0 < aaa1.configObj.voice.length) {
aaa1.recenter();
aaa1.say(aaa1.configObj.voice);
}
aaa1._parent._visible = 1;
aaa1._parent.configDone();
}
function travel(obj, level) {
for (var p in obj) {
if (((typeof(eval ((obj + ".") + p)) == "movieclip") && (p != "sound")) && (p != "engine")) {
this.travel(eval ((obj + ".") + p), level + 1);
}
}
if (obj != this) {
this.c_grp.travelHandler(obj);
this.a_grp.travelHandler(obj);
this.r_grp.travelHandler(obj);
}
}
function getColorVal(name, type, configObj) {
var aaa1 = name;
var aaa3 = configObj;
var aaa2 = (Number(aaa3[aaa1 + type.toUpperCase()]) ? (aaa3[aaa1 + type.toUpperCase()]) : (aaa3[(("c_" + aaa1) + "_") + type]));
return(aaa2);
}
function say(tt, _tin) {
this.sound.singleSound(tt, _tin);
this.g_mouseMode = false;
}
function saySilent(init_time) {
this.sound.startBlabbing(init_time);
}
function setMouthPath(in_path) {
this.mouth.acc_mouth = in_path;
}
function setMouseFollow(mode) {
var aaa1 = this;
if (mode && (aaa1.sound.busy)) {
return(0);
}
aaa1.g_mouseMode = mode;
return(aaa1.g_mouseMode);
}
function FollowCursor(_mode) {
this.setMouseMode(_mode);
}
function getFollowCursor() {
return(this.mouseMode);
}
function setMouseMode(_mode) {
this.mouseMode = _mode;
this.setMouseFollow(_mode);
}
function setGaze(_deg, _dur, _rad) {
var aaa1 = this;
aaa1.lookDur = parseInt(_dur);
if (_rad != null) {
aaa1.lookRad = _rad;
}
aaa1.lookDeg = parseInt(_deg);
aaa1.gazeHere();
}
function getGaze() {
return(this.is_Gazing);
}
function gazeHere() {
var aaa1 = this;
if (((!aaa1.sound.busy) && (0 < Math.floor(aaa1.lookDur))) && (Math.floor(aaa1.lookDeg) >= 0)) {
var aaa2 = ((((100 < parseInt(aaa1.lookRad)) || (aaa1.lookRad == "")) || (aaa1.lookRad == null)) ? (yBound) : (parseInt(aaa1.lookRad)));
if (aaa2 < 0) {
aaa2 = 0;
}
var aaa3 = (((parseInt(aaa1.lookDeg) + 270) % 360) * 0.01745329);
var _xpos = (Math.cos(aaa3) * (aaa2 * 3));
var _ypos = (Math.sin(aaa3) * aaa2);
aaa1.setLookTarget(_xpos, _ypos);
aaa1.lookEnd = getTimer() + (parseInt(aaa1.lookDur) * 1000);
aaa1.is_Gazing = 1;
aaa1.moveToTarget();
}
}
function getLookCount() {
var aaa1 = this;
if (aaa1.sound.busy) {
aaa1.is_Gazing = 0;
return(undefined);
}
if (aaa1.is_Gazing && (aaa1.lookEnd < getTimer())) {
aaa1.is_Gazing = 0;
}
}
function recenter() {
var aaa1 = this;
aaa1.g_mouseMode = 0;
if (!aaa1.sound.busy) {
aaa1.ddx = (aaa1.ddy = 0);
}
aaa1.is_recenter = 0;
aaa1.moveToTarget();
}
function setLookTarget(xpos, ypos) {
var aaa1 = this;
aaa1.ddx = Math.max(-aaa1.xBound, Math.min(aaa1.xBound, xpos * 2));
aaa1.ddy = Math.max(-aaa1.yBound, Math.min(aaa1.yBound, ypos * 2));
}
function moveToTarget() {
this.gotoAndPlay(4);
}
function mouseMoved() {
var aaa1 = this;
if ((aaa1.resting == 1) && (aaa1.g_mouseMode == 1)) {
aaa1.moveToTarget();
}
}
function thrustRandom() {
this.setLookTarget(random(yBound * 2) - yBound, random(yBound * 2) - yBound);
this.moveToTarget();
}
function loopback() {
if (this._currentframe == 6) {
this.moveToTarget();
}
}
function doAnim() {
var aaa1 = this;
aaa1.resting = 0;
if (aaa1.doThrust && (!aaa1.is_recenter)) {
aaa1.thrustRandom();
aaa1.doThrust = false;
} else if (aaa1.g_mouseMode && (!aaa1.is_Gazing)) {
aaa1.mousex = aaa1._xmouse;
aaa1.mousey = aaa1.eyer._ymouse;
aaa1.ddy = (((aaa1.yBound / 2) < Math.abs(aaa1.mousey)) ? (((0 < aaa1.mousey) ? (aaa1.yBound) : (-aaa1.yBound))) : (aaa1.mousey * 2));
aaa1.ddx = (((aaa1.xBound / 2) < Math.abs(aaa1.mousex)) ? (((0 < aaa1.mousex) ? (aaa1.xBound) : (-aaa1.xBound))) : (aaa1.mousex * 2));
}
aaa1.ty = aaa1.ddy / 10;
aaa1.tilt = (aaa1.ddy * aaa1.ddx) / 4000;
aaa1.tx = aaa1.ddx / 5;
aaa1.ttx = aaa1.tx + (aaa1.crack * ((random(10) < 3) ? (random(11) - 5) : 0));
aaa1.minX = (aaa1.ttx - aaa1.bx) / aaa1.speed;
aaa1.ty = Math.max(Math.min(aaa1.ty, 5), -3);
aaa1.minY = (aaa1.ty - aaa1.yb) / aaa1.speed;
aaa1.yb = aaa1.yb + aaa1.minY;
aaa1.y = aaa1.yb;
aaa1.ymult = ((aaa1.y < 0) ? -0.5 : -0.5);
aaa1.y = Math.min(Math.abs(aaa1.y), aaa1.maxY);
if ((Math.abs(aaa1.minX) < aaa1.diff) && (Math.abs(aaa1.minY) < (aaa1.diff / 4))) {
if (aaa1.is_Gazing) {
aaa1.gotoAndStop(9);
aaa1.resting = 1;
} else if (aaa1.g_mouseMode) {
aaa1.gotoAndStop(9);
aaa1.resting = 1;
} else if (aaa1.is_recenter) {
aaa1.is_recenter = 0;
aaa1.gotoAndStop(9);
aaa1.resting = 1;
} else if (aaa1.MouseMode) {
aaa1.is_recenter = 1;
aaa1.diff = 1;
aaa1.ddy = 0;
aaa1.ddx = 0;
}
}
aaa1.bx = aaa1.bx + aaa1.minX;
aaa1.xmult = ((aaa1.bx < 0) ? -1 : 1);
aaa1.x = Math.min(Math.abs(aaa1.bx), aaa1.maxX);
aaa1.xz = aaa1.maxX - (((aaa1.maxX - aaa1.x) * (aaa1.maxX - aaa1.x)) / aaa1.maxX);
if (aaa1.xmult >= 0) {
aaa1.xr = aaa1.xz * 0.8;
aaa1.xl = aaa1.xz;
} else {
aaa1.xl = (-aaa1.xz) * 0.8;
aaa1.xr = -aaa1.xz;
aaa1.xz = -aaa1.xz;
}
aaa1.facel._x = aaa1.xl + aaa1.faceLX;
aaa1.facer._x = aaa1.xr + aaa1.faceRX;
aaa1.hairl._x = aaa1.xl + aaa1.hairLX;
aaa1.hair_r._x = aaa1.xr + aaa1.hairRX;
aaa1.eyel._x = (aaa1.xl * aaa1.em) + aaa1.eyeLX;
aaa1.eyer._x = (aaa1.xr * aaa1.em) + aaa1.eyeRX;
aaa1.browl._x = (aaa1.xl * aaa1.em) + aaa1.browLX;
aaa1.browr._x = (aaa1.xr * aaa1.em) + aaa1.browRX;
aaa1.nose._x = (aaa1.xz * aaa1.em) + aaa1.noseX;
aaa1.mouth._x = (aaa1.xz * aaa1.em) + aaa1.mouthX;
aaa1.backhair._x = aaa1.hairbx - (aaa1.xl / 5);
aaa1.sl = 100 + ((aaa1.xl * 30) / aaa1.maxX);
aaa1.sr = 100 - ((aaa1.xr * 30) / aaa1.maxX);
aaa1.facel._xscale = (aaa1.hairl._xscale = aaa1.sl);
aaa1.hair_r._xscale = (aaa1.facer._xscale = aaa1.sr);
aaa1.hairback._xscale = (aaa1.sl + aaa1.sr) / 2;
aaa1.yz = aaa1.y * ((aaa1.y / aaa1.maxY) - 2);
aaa1.yl = aaa1.yz * aaa1.ymult;
aaa1.moveheady = aaa1.yb;
aaa1.eb = aaa1.yl * 0.35;
aaa1.eyel._y = aaa1.eyeLY - (aaa1.yl + (aaa1.eb * 2));
aaa1.eyer._y = aaa1.eyeRY - (aaa1.yl + (aaa1.eb * 2));
aaa1.browl._y = aaa1.browLY - (aaa1.yl + aaa1.eb);
aaa1.browr._y = aaa1.browRY - (aaa1.yl + aaa1.eb);
aaa1.nose._y = aaa1.noseY - (aaa1.yl + (aaa1.eb * 2));
aaa1.mouth._y = aaa1.mouthY - (aaa1.yl + (aaa1.eb * 2));
aaa1.jj = 100 - ((aaa1.yl * 8) / aaa1.maxY);
aaa1.facel._yscale = aaa1.jj;
aaa1.facer._yscale = aaa1.jj;
aaa1.hairl._yscale = aaa1.jj;
aaa1.hair_r._yscale = aaa1.jj;
aaa1.eyeheight = 100 - Math.abs(aaa1.yz);
aaa1.eyel._yscale = aaa1.eyeheight;
aaa1.eyer._yscale = aaa1.eyeheight;
aaa1._rotation = aaa1._rotation + ((aaa1.tilt - aaa1._rotation) / 4);
aaa1.backhair._rotation = aaa1._rotation / 1.5;
aaa1.hairback._rotation = aaa1._rotation;
if ((!aaa1.sound.busy) && (!aaa1.talkingFlag)) {
aaa1.eyeTX = aaa1.ddx / aaa1.eyeFactorX;
aaa1.eyeTY = aaa1.ddy / aaa1.eyeFactorY;
aaa1.eyeX = aaa1.eyeX + ((aaa1.eyeTX - aaa1.eyeX) / 3);
aaa1.eyeY = aaa1.eyeY + ((aaa1.eyeTY - aaa1.eyeY) / 3);
aaa1.eyeXl = aaa1.eyeX - (aaa1.xl / 7);
aaa1.eyeXr = aaa1.eyeX - (aaa1.xr / 7);
if (aaa1.eyeXl < (-aaa1.eyeMaxX)) {
aaa1.eyeXl = -aaa1.eyeMaxX;
}
if (aaa1.eyeMaxX < aaa1.eyeXl) {
aaa1.eyeXl = aaa1.eyeMaxX;
}
if (aaa1.eyeMaxX < aaa1.eyeXr) {
aaa1.eyeXr = aaa1.eyeMaxX;
}
if (aaa1.eyeXr < (-aaa1.eyeMaxX)) {
aaa1.eyeXr = -aaa1.eyeMaxX;
}
aaa1.eyeYY = aaa1.eyebLY + ((aaa1.eyeMaxY < Math.abs(aaa1.eyeY - aaa1.yl)) ? (((0 < (aaa1.eyeY - aaa1.yl)) ? (aaa1.eyeMaxY) : (-aaa1.eyeMaxY))) : (aaa1.eyeY - aaa1.yl));
aaa1.eyel.ball._x = (-aaa1.eyeXr) + aaa1.eyebLX;
aaa1.eyer.ball._x = aaa1.eyeXl + aaa1.eyebLX;
aaa1.eyer.ball._y = aaa1.eyeYY;
aaa1.eyel.ball._y = aaa1.eyeYY;
} else {
aaa1.eyel.ball._x = aaa1.xl / 7;
aaa1.eyer.ball._x = (-aaa1.xl) / 7;
aaa1.eyer.ball._y = (aaa1.eyel.ball._y = 0);
aaa1.eyeTX = 0;
aaa1.eyeX = 0;
aaa1.eyeTY = 0;
aaa1.eyeY = 0;
}
if (!aaa1.initiated) {
aaa1.initiated = 1;
aaa1.travel(aaa1, 0);
aaa1.breathe();
aaa1.MouseMode = true;
}
}
if (_global.oddcast == undefined) {
_global.oddcast = new Object();
}
if (_global.oddcast.engine == undefined) {
_global.oddcast.engine = new Object();
}
A_Group.prototype.getValue = function () {
return(this.ar[0]._currentframe);
};
A_Group.prototype.setValue = function (value, target) {
var aaa1 = this;
var aaa2 = value;
var aaa3 = target;
i = 0;
while (i < aaa1.ar.length) {
accH = aaa1.ar[i];
if (accH[aaa2] == undefined) {
aaa1.ar[i].acl.duplicateMovieClip(aaa2);
tmpItem = accH[aaa2];
tmpItem.listener = aaa3;
aaa3.counter++;
tmpItem.holder.loadMovie(((((aaa3.map.baseUrl + aaa1.name) + accH.type) + "/") + aaa2) + ".swf");
}
i++;
}
};
var tbrowframe = 5;
var browframe = 5;
eyes = this._parent.eyes;
eyes.setNextEye = function () {
var aaa1 = this;
if (aaa1.processingFR) {
aaa1.fr = makeFR();
aaa1.dif = fr - Math.round(fr / 3);
aaa1.br = fr + dif;
aaa1.processingFR = 0;
} else if (aaa1.br == null) {
aaa1.getFR();
return(undefined);
}
if ((!_parent.isFrozen) && (!_parent._parent.isFrozen)) {
if (aaa1._parent.eyer.sock._currentframe == 3) {
aaa1._parent.eyer.sock.gotoAndStop(1);
aaa1._parent.eyel.sock.gotoAndStop(1);
} else if ((aaa1.eyeCounter++) == aaa1.br) {
aaa1.eyeCounter = random(aaa1.dif);
aaa1._parent.eyer.sock.gotoAndStop(3);
aaa1._parent.eyel.sock.gotoAndStop(3);
}
return(undefined);
}
aaa1._parent.eyer.sock.gotoAndStop(1);
aaa1._parent.eyel.sock.gotoAndStop(1);
};
eyes.getFR = function () {
this.processingFR = 1;
this.ct = getTimer();
};
eyes.makeFR = function () {
var aaa1 = getTimer();
return(Math.round((this._parent.eyes._totalframes * 1000) / (aaa1 - ct)));
};
this._parent._parent.configDone = function () {
var aaa1 = this;
aaa1._parent.configDone(aaa1.host);
fscommand ("ConfigDone", 1);
};
this._visible = 0;
for (var f in this) {
if (typeof(eval (f)) == "function") {
_parent[f] = this[f];
}
}
_parent.notifyLoadDone(this);
stop();
Instance of Symbol 465 MovieClip "config" in Symbol 466 MovieClip Frame 1
onClipEvent (data) {
_parent._parent.ConfigHost(this);
}
Symbol 466 MovieClip Frame 2
_parent.look();
Symbol 466 MovieClip Frame 28
_parent.setMouseMode(_parent.mouseMode);
Instance of Symbol 401 MovieClip "config" in Symbol 467 MovieClip Frame 1
onClipEvent (data) {
_parent.ConfigHost(this);
}
Symbol 467 MovieClip Frame 3
doMain();
Symbol 467 MovieClip Frame 4
doAnim();
Symbol 467 MovieClip Frame 6
loopback();
Symbol 467 MovieClip Frame 7
loopback();
Symbol 467 MovieClip Frame 9
stop();
Symbol 467 MovieClip Frame 14
gotoAndPlay (4);
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
if (_root.menu_rot.w1_1.host.mouth.acc_mouth.lips._currentframe == 1) {
_root.menu_rot.w1_1.host.mouth.acc_mouth.lips.gotoAndPlay(2);
}
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 74
gotoAndPlay ("s2");
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();
Symbol 503 Button
on (rollOver, dragOver) {
w1.gotoAndPlay(2);
w1_1.gotoAndStop(2);
e1.gotoAndStop(2);
}
on (rollOut, dragOut) {
w1.gotoAndStop(1);
w1_1.gotoAndStop(1);
e1.gotoAndStop(1);
}
on (press) {
_root.gotoAndStop(3);
}
Symbol 504 Button
on (rollOver, dragOver) {
w2_2.gotoAndStop(2);
e2.gotoAndStop(2);
_root.menu_rot.w2_2.fl_shooting.gotoAndPlay("s1");
}
on (rollOut, dragOut) {
w2_2.gotoAndStop(1);
e2.gotoAndStop(1);
_root.menu_rot.w2_2.fl_shooting.gotoAndPlay("s3");
}
on (press) {
_root.menu_rot.x = -360;
_root.howToPlay.x = 180;
}
Symbol 505 MovieClip Frame 21
_root.menu_rot.x = 280;
stop();
_root.menu_rot.w1_1.host.mouth.acc_mouth.lips.gotoAndPlay(2);
Symbol 510 Button
on (press) {
_root.menu_rot.x = 280;
_root.howToPlay.x = 650;
}
Symbol 516 MovieClip Frame 100
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 3
stop();
Symbol 521 MovieClip Frame 1
Mouse.hide();
Symbol 522 MovieClip Frame 1
stop();
Instance of Symbol 519 MovieClip "target" in Symbol 522 MovieClip Frame 1
onClipEvent (load) {
function beamCollision() {
if (_root.inv == false) {
if (100 < _root.shieldPts) {
_root.shieldSnd.start(0, 1);
_root.cockpit.shieldMesh.play();
} else {
_root.explodeSnd.start(0, 1);
_root.cockpit.attachMovie("shake", "shake", 90);
}
_root.shieldPts = _root.shieldPts - 10;
_root.shields.gotoAndStop(21 - (_root.shieldPts / 10));
}
}
function tunnelCollision(spark, spx, spy) {
if (_root.inv == false) {
if (100 < _root.shieldPts) {
_root.shieldSnd.start(0, 1);
_root.cockpit.shieldMesh.play();
} else {
_root.explodeSnd.start(0, 1);
}
_root.shieldPts = _root.shieldPts - 10;
_root.shields.gotoAndStop(21 - (_root.shieldPts / 10));
_parent.stars.attachMovie(spark, spark, 200);
_parent.stars[spark]._x = spx;
_parent.stars[spark]._y = spy;
}
}
function initTunnel() {
var i = 0;
while (i < totalStars) {
f[i].removeMovieClip();
i++;
}
r = [];
totalRings = 5;
d = 200;
ix = 0;
iz = 0;
c = 0;
react = false;
var i = 0;
while (i < totalRings) {
_parent.stars.attachMovie("ring", "ring" + i, i + 100);
r[i] = _parent.stars["ring" + i];
r[i].sx = 0;
r[i].sy = 0;
r[i].sz = d + (1000 * i);
r[i].tb1.gotoAndStop(1);
r[i].tb2.gotoAndStop(1);
r[i].tb3.gotoAndStop(1);
r[i].gotoAndStop((i % 2) + 1);
r[i].snum = 0;
i++;
}
}
function moveTunnel() {
var i = 0;
while (i < totalRings) {
r[i].sx = r[i].sx - (_root.mview._xmouse * 0.1);
r[i].sy = r[i].sy - (_root.mview._ymouse * 0.1);
r[i].sz = r[i].sz - 75;
if (r[i].sx < -200) {
r[i].sx = -170;
if (r[i].sz < 500) {
tunnelCollision("lspark", 300, 0);
}
} else if (200 < r[i].sx) {
r[i].sx = 170;
if (r[i].sz < 500) {
tunnelCollision("rspark", -300, 0);
}
}
if (r[i].sy < -200) {
r[i].sy = -170;
if (r[i].sz < 500) {
tunnelCollision("tspark", 0, 200);
}
} else if (200 < r[i].sy) {
r[i].sy = 170;
if (r[i].sz < 500) {
tunnelCollision("dspark", 0, -200);
}
}
if (r[i].sz < 200) {
if (_root.inv == false) {
if ((r[i].tb1._currentFrame == 4) && (75 < r[i].sy)) {
beamCollision();
}
if ((r[i].tb1._currentFrame == 5) && (75 < r[i].sx)) {
beamCollision();
}
if (((r[i].tb2._currentFrame == 4) && (r[i].sy < 75)) && (-75 < r[i].sy)) {
beamCollision();
}
if (((r[i].tb2._currentFrame == 5) && (r[i].sx < 75)) && (-75 < r[i].sx)) {
beamCollision();
}
if ((r[i].tb3._currentFrame == 4) && (r[i].sy < -75)) {
beamCollision();
}
if ((r[i].tb3._currentFrame == 5) && (r[i].sx < -75)) {
beamCollision();
}
}
r[i].sz = r[i].sz + 5200;
var tbc1 = (random(5) + 1);
var tbc2 = (random(5) + 1);
var tbc3 = (random(5) + 1);
r[i].tb1.gotoAndStop(tbc1);
r[i].tb2.gotoAndStop(tbc2);
r[i].tb3.gotoAndStop(tbc3);
if (2000 < c) {
if (react) {
r[i]._visible = false;
} else {
r[i].tb1.gotoAndStop(1);
r[i].tb2.gotoAndStop(1);
r[i].tb3.gotoAndStop(1);
}
if (2100 < c) {
r[i].rhp = 3;
r[i].reactor.gotoAndStop(2);
react = true;
}
if (2300 < c) {
r[i].reactor.gotoAndStop(1);
c = 0;
var i = 0;
while (i < totalRings) {
r[i]._visible = true;
r[i].reactor.gotoAndStop(1);
react = false;
i++;
}
}
}
}
var pers = (d / r[i].sz);
r[i]._x = r[i].sx * pers;
r[i]._y = r[i].sy * pers;
r[i]._xscale = (r[i]._yscale = 100 * pers);
r[i].swapDepths(10000 - r[i].sz);
i++;
}
}
function drawLine(x1, y1, x2, y2) {
_x = x1;
_y = y1;
_xscale = (x2 - x1);
_yscale = (y2 - y1);
}
function rLaser() {
_root.laserSnd.setPan(25);
_root.laserSnd.start(0, 1);
_parent.attachMovie("laser", "rl", 10);
_parent.rl._x = _parent._xmouse;
_parent.rl._y = _parent._ymouse;
}
function lLaser() {
_root.laserSnd.setPan(-25);
_root.laserSnd.start(0, 1);
_parent.attachMovie("laser2", "ll", 11);
_parent.ll._x = _parent._xmouse;
_parent.ll._y = _parent._ymouse;
}
ms = true;
mt = false;
rl = true;
v = 0;
c = 1;
g = [0, 0.0001, 0.001, 0.03, 0.5, 0.1];
gear = 3;
accel = g[gear];
_root["gear" + gear].start(1, 999);
_root["gear" + gear].setVolume(66);
_root.cockpit.throttle.gotoAndStop(2);
edit = false;
p = 0;
speed = 0.05;
xoff = 0;
yoff = 0;
shotbar.gotoAndStop(100);
_root.lvl1Snd.start(1, 999);
_root.lvl1Snd.setVolume(100);
qual = ["HIGH", "BEST"];
qualNum = 1;
_root._quality = qual[qualNum];
this.swapDepths(1000);
Mouse.hide();
this.startDrag(true);
MovieClip.prototype.drawLine = drawLine;
a = new Array();
w = new Array();
a[0] = [new _root.actionObj("straightShot", 24, -10), new _root.actionObj("straightShot", 105, -10), new _root.actionObj("straightShot", 110, -10)];
a[1] = [new _root.actionObj("straightShot", 110, -10)];
a[2] = [new _root.actionObj("straightShot", 20, -10), new _root.actionObj("straightShot", 140, -10)];
a[3] = [new _root.actionObj("straightShot", 20, -10), new _root.actionObj("straightShot", 145, -10)];
w[0] = new _root.wave(0, "probe", 1, 10, 10, 8, 6, -50, -89.2, -4.6, 0, a[0]);
w[0].addEnemy("probe", 1, 10, 10, 8, 6, 75.4, 115.2, -2.8, 0, a[1]);
w[0].addEnemy("probe", 1, 10, 10, 9, 6, -71.4, 116.4, -14.8, 0, a[2]);
w[0].addEnemy("probe", 1, 10, 10, 9, 6, 98.6, -101.6, -5.4, 0, a[3]);
w.currentWave = 0;
w[0].initWave();
_root.waveCount = w[0].waveNum;
a[4] = [new _root.actionObj("straightShot", 20, -10), new _root.actionObj("straightShot", 60, -10), new _root.actionObj("straightShot", 120, -10)];
a[5] = [new _root.actionObj("straightShot", 10, -10), new _root.actionObj("straightShot", 130, -10), new _root.actionObj("straightShot", 135, -10)];
a[6] = [new _root.actionObj("straightShot", 135, -10)];
a[7] = [new _root.actionObj("straightShot", 135, -10)];
a[8] = [new _root.actionObj("straightShot", 135, -10)];
a[9] = [new _root.actionObj("straightShot", 40, -10), new _root.actionObj("straightShot", 90, -10), new _root.actionObj("rotRight", 150, -10)];
w[1] = new _root.wave(1, "probe", 1, 10, 10, 2, 3, 24.2, -56.4, -28.4, 0, a[4]);
w[1].addEnemy("probe", 1, 10, 10, 3, 2, 4, 0, -18.8, 0, a[5]);
w[1].addEnemy("probe", 1, 10, 10, 4, 3, -160.4, -37.6, 9.4, 0, a[6]);
w[1].addEnemy("probe", 1, 10, 10, 12, 7, 48, -94, 5, 0, a[7]);
w[1].addEnemy("probe", 1, 10, 10, 3, 3, 48, -37.6, 5, 20, a[8]);
w[1].addEnemy("probe", 1, 10, 10, 13, 7, 48, -131.6, 14.6, 20, a[9]);
a[10] = [new _root.actionObj("straightShot", 25, -10), new _root.actionObj("straightShot", 50, -10), new _root.actionObj("straightShot", 125, -10)];
a[11] = [new _root.actionObj("straightShot", 10, -10), new _root.actionObj("straightShot", 40, -10), new _root.actionObj("straightShot", 70, -10)];
a[12] = [new _root.actionObj("straightShot", 100, -10), new _root.actionObj("straightShot", 120, -10), new _root.actionObj("straightShot", 150, -10)];
w[2] = new _root.wave(2, "probe", 1, 10, 10, 7, 10, -139.2, 0, -3.2, 0, a[10]);
w[2].addEnemy("probe", 1, 10, 10, 7, 10, -70.2, 134.6, -15.6, 0, a[11]);
w[2].addEnemy("probe", 1, 10, 10, 7, 10, 58.4, -106.4, -9.4, 0, a[12]);
a[13] = [new _root.actionObj("traceShot", 40, -10), new _root.actionObj("traceShot", 90, -10), new _root.actionObj("rotRight", 140, -10)];
a[14] = [new _root.actionObj("traceShot", 40, -10), new _root.actionObj("traceShot", 45, -10)];
a[15] = [new _root.actionObj("straightShot", 20, -10)];
a[16] = [new _root.actionObj("straightShot", 20, -10), new _root.actionObj("traceShot", 40, -10)];
a[17] = [new _root.actionObj("straightShot", 50, -10), new _root.actionObj("straightShot", 55, -10)];
a[18] = [new _root.actionObj("traceShot", 30, -10), new _root.actionObj("traceShot", 35, -10)];
a[19] = [new _root.actionObj("straightShot", 30, -10), new _root.actionObj("straightShot", 35, -10)];
a[20] = [new _root.actionObj("straightShot", 10, -10), new _root.actionObj("straightShot", 70, -10), new _root.actionObj("straightShot", 75, -10)];
w[3] = new _root.wave(3, "probe", 1, 10, 10, 2, 2, -279.8, 0, -43, 0, a[13]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, -343.4, -117.4, -23.4, 0, a[14]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, -343.4, 82.4, -11.8, 0, a[15]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, -1.6, -194, -1.2, 0, a[16]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, -1.6, 294.8, -1.2, 0, a[17]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, 148.4, -78.2, -2.4, 0, a[18]);
w[3].addEnemy("probe", 1, 10, 10, 3, 2, 148.4, 130.2, -2.4, 0, a[19]);
w[3].addEnemy("probe", 1, 10, 10, 4, 2, -61.4, 8.6, -45.2, 0, a[20]);
a[21] = [new _root.actionObj("traceShot", 50, -10), new _root.actionObj("straightShot", 60, -10), new _root.actionObj("traceShot", 140, -10), new _root.actionObj("rotRight", 150, -10)];
a[22] = [new _root.actionObj("straightShot", 30, -10), new _root.actionObj("traceShot", 130, -10), new _root.actionObj("straightShot", 140, -10)];
a[23] = [new _root.actionObj("straightShot", 20, -10), new _root.actionObj("straightShot", 70, -10), new _root.actionObj("straightShot", 80, -10), new _root.actionObj("rotLeft", 120, -10)];
w[4] = new _root.wave(4, "interceptor", 2, 10, 20, 20, 11, 200, 14.2, 0, 0, a[21]);
w[4].addEnemy("interceptor", 2, 10, 20, 20, 11, -72, -109.8, -9.4, 0, a[22]);
w[4].addEnemy("interceptor", 2, 10, 20, 20, 11, -5.6, 68.2, 0, 0, a[23]);
a[24] = [new _root.actionObj("traceShot", 50, -10), new _root.actionObj("rotLeft", 60, -10), new _root.actionObj("traceShot", 100, -10), new _root.actionObj("rotRight", 140, -10)];
a[25] = [new _root.actionObj("rotRight", 30, -10), new _root.actionObj("traceShot", 70, -10), new _root.actionObj("traceShot", 120, -10), new _root.actionObj("rotLeft", 145, -10)];
a[26] = [new _root.actionObj("traceShot", 40, -10), new _root.actionObj("rotRight", 150, -10), new _root.actionObj("slowMissle", 165, -10)];
a[27] = [new _root.actionObj("traceShot", 75, -10), new _root.actionObj("traceShot", 75, -10), new _root.actionObj("traceShot", 125, -10)];
a[28] = [new _root.actionObj("traceShot", 20, -10), new _root.actionObj("traceShot", 25, -10)];
a[29] = [new _root.actionObj("traceShot", 15, -10), new _root.actionObj("traceShot", 155, -10)];
w[5] = new _root.wave(5, "interceptor", 2, 10, 20, 16, 10, 15, -192, -34.4, 0, a[24]);
w[5].addEnemy("interceptor", 2, 10, 20, 17, 10, -32.6, -203.8, -25, 0, a[25]);
w[5].addEnemy("interceptor", 2, 10, 20, 18, 10, -32.6, 119, -25, 0, a[26]);
w[5].addEnemy("probe", 1, 10, 10, 32, 10, -32.6, -144.2, -25, 0, a[27]);
w[5].addEnemy("probe", 1, 10, 10, 32, 10, 53, -25.2, -25, 0, a[28]);
w[5].addEnemy("interceptor", 2, 10, 10, 32, 10, 30.6, -196.8, 95.8, 0, a[29]);
a[30] = [new _root.actionObj("rotLeft", 10, -10), new _root.actionObj("straightShot", 130, -10), new _root.actionObj("straightShot", 135, -10), new _root.actionObj("straightShot", 140, -10), new _root.actionObj("straightShot", 145, -10)];
a[31] = [new _root.actionObj("rotRight", 10, -10)];
a[32] = [new _root.actionObj("rotRight", 10, -10)];
a[33] = [new _root.actionObj("rotLeft", 10, -10), new _root.actionObj("slowMissle", 60, -10)];
w[6] = new _root.wave(6, "aggressor", 6, 10, 30, 24, 6, -55, 52.4, 272, 30, a[30]);
w[6].addEnemy("aggressor", 3, 10, 30, 24, 6, -3.4, 163.2, 293.6, 50, a[31]);
w[6].addEnemy("aggressor", 3, 10, 30, 24, 6, -42.6, 163.2, 282.4, 80, a[33]);
a[34] = [new _root.actionObj("traceShot", 75, -10), new _root.actionObj("traceShot", 76, -10), new _root.actionObj("traceShot", 77, -10)];
a[35] = [new _root.actionObj("traceShot", 90, -10), new _root.actionObj("traceShot", 91, -10), new _root.actionObj("traceShot", 92, -10), new _root.actionObj("traceShot", 96, -10), new _root.actionObj("traceShot", 115, -10)];
a[36] = [new _root.actionObj("null", -100, -10)];
a[37] = [new _root.actionObj("traceShot", 120, -10), new _root.actionObj("traceShot", 121, -10), new _root.actionObj("traceShot", 122, -10)];
a[38] = [new _root.actionObj("slowMissle", 160, -10)];
w[7] = new _root.wave(7, "probe", 1, 10, 10, 47, 16, 194.6, 202.8, -29.4, 10, a[34]);
w[7].addEnemy("probe", 1, 10, 10, 47, 16, 125.4, 124.4, -39.2, 15, a[35]);
w[7].addEnemy("probe", 1, 10, 10, 47, 16, -75.8, -136.6, -39.4, 5, a[37]);
w[7].addEnemy("probe", 1, 10, 10, 47, 16, -116.6, -152.4, -34.4, 10, a[38]);
a[39] = [new _root.actionObj("straightShot", 10, -10), new _root.actionObj("slowMissle", 11, -10), new _root.actionObj("straightShot", 132, -10), new _root.actionObj("straightShot", 133, -10)];
a[40] = [new _root.actionObj("null", 10, -10)];
a[41] = [new _root.actionObj("null", 10, -10)];
w[8] = new _root.wave(8, "aggressor", 3, 10, 30, 7, 14, -217, 0, -88.6, 0, a[39]);
w[8].addEnemy("aggressor", 3, 10, 30, 7, 14, -53.6, 62.4, -138.4, 0, a[40]);
w[8].addEnemy("aggressor", 3, 10, 30, 7, 14, -119.2, -70.2, -56.6, 0, a[41]);
a[42] = [new _root.actionObj("rotRight", 10, -10), new _root.actionObj("traceShot", 20, -10), new _root.actionObj("traceShot", 21, -10), new _root.actionObj("traceShot", 22, -10), new _root.actionObj("traceShot", 30, -10), new _root.actionObj("traceShot", 31, -10), new _root.actionObj("traceShot", 32, -10), new _root.actionObj("traceShot", 40, -10), new _root.actionObj("traceShot", 41, -10), new _root.actionObj("traceShot", 50, -10), new _root.actionObj("traceShot", 51, -10), new _root.actionObj("traceShot", 52, -10), new _root.actionObj("traceShot", 60, -10), new _root.actionObj("traceShot", 61, -10), new _root.actionObj("traceShot", 62, -10), new _root.actionObj("traceShot", 70, -10), new _root.actionObj("traceShot", 71, -10), new _root.actionObj("traceShot", 72, -10), new _root.actionObj("traceShot", 80, -10), new _root.actionObj("traceShot", 81, -10), new _root.actionObj("traceShot", 82, -10), new _root.actionObj("traceShot", 90, -10), new _root.actionObj("traceShot", 91, -10), new _root.actionObj("traceShot", 92, -10)];
w[9] = new _root.wave(9, "aggressor", 3, 10, 30, 3, 14, -217, 0, -88.6, 0, a[42]);
a[43] = [new _root.actionObj("rotLeft", 20, -10)];
a[44] = [new _root.actionObj("rotRight", 20, -10)];
a[45] = [new _root.actionObj("rotLeft", 20, -10)];
a[46] = [new _root.actionObj("rotRight", 20, -10)];
a[47] = [new _root.actionObj("rotLeft", 20, -10)];
a[48] = [new _root.actionObj("rotRight", 20, -10)];
a[49] = [new _root.actionObj("null", 20, -10)];
a[50] = [new _root.actionObj("rotRight", 20, -10)];
a[51] = [new _root.actionObj("rotLeft", 20, -10)];
a[52] = [new _root.actionObj("rotRight", 20, -10)];
a[53] = [new _root.actionObj("rotLeft", 20, -10)];
a[54] = [new _root.actionObj("rotRight", 20, -10)];
a[55] = [new _root.actionObj("rotLeft", 20, -10)];
a[56] = [new _root.actionObj("rotRight", 20, -10)];
w[10] = new _root.wave(10, "asteroid", 8, 10, 10, 3, 14, 99.4, 0, 111.6, 0, a[43]);
w[10].addEnemy("asteroid", 8, 10, 10, 4, 14, 73.8, 265.2, 131.4, 0, a[44]);
w[10].addEnemy("asteroid", 8, 10, 10, 3, 14, 257.2, 0, 94, 0, a[45]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, -222.6, -85.8, 115.6, 0, a[46]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, -276.2, 337.8, 111.2, 0, a[47]);
w[10].addEnemy("asteroid", 8, 10, 10, 3, 14, 396.6, -115.2, 87.4, 0, a[48]);
w[10].addEnemy("shldpwr", 8, 10, 10, 2, 14, 64.6, 98.6, 141.4, 0, a[49]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, -125.2, -177.2, 160.2, 0, a[50]);
w[10].addEnemy("asteroid", 8, 10, 10, 4, 14, 102.4, 98.6, 206, 0, a[51]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, 326.2, 98.6, 165.8, 0, a[52]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, -17.6, 439.8, 183.4, 0, a[53]);
w[10].addEnemy("asteroid", 8, 10, 10, 4, 14, -283.4, 98.6, 138.2, 0, a[54]);
w[10].addEnemy("asteroid", 8, 10, 10, 2, 14, -23.6, 98.6, 56.6, 0, a[55]);
w[10].addEnemy("asteroid", 8, 10, 10, 4, 14, 39.4, -434.8, 147.2, 0, a[56]);
a[57] = [new _root.actionObj("c1Shot", 20, -10), new _root.actionObj("c1", 25, -10), new _root.actionObj("c4shot", 30, -10), new _root.actionObj("c2shot", 40, -10), new _root.actionObj("c3shot", 60, -10), new _root.actionObj("c1shot", 65, -10), new _root.actionObj("c4shot", 70, -10), new _root.actionObj("c4shot", 125, -10), new _root.actionObj("c3shot", 150, -10), new _root.actionObj("c2shot", 175, -10), new _root.actionObj("c1shot", 180, -10), new _root.actionObj("c1shot", 185, -10), new _root.actionObj("c1shot", 190, -10), new _root.actionObj("c1shot", 195, -10), new _root.actionObj("resetCounter", 200, -10)];
w[11] = new _root.wave(11, "boss1", 60, 10, 10, 50, 2, 39.4, -6.8, -47.2, 0, a[57]);
}
onClipEvent (enterFrame) {
if (p == 0) {
v = v - accel;
xmou = _root.mview._xmouse;
ymou = _root.mview._ymouse;
if (100 < xmou) {
xoff = xoff - (xmou * speed);
} else if (xmou < -100) {
xoff = xoff - (xmou * speed);
}
if (100 < ymou) {
yoff = yoff - (ymou * speed);
} else if (ymou < -100) {
yoff = yoff - (ymou * speed);
}
_root.Evade(xoff, yoff, v, c);
_root.mview.view._rotation = (-(_root._xmouse - _parent._x)) * speed;
if (ms) {
moveStars();
} else if (mt) {
moveTunnel();
}
c++;
}
}
onClipEvent (mouseDown) {
if ((!edit) && (p == 0)) {
if (20 < shotbar._currentFrame) {
if (rl) {
rLaser();
rl = false;
shotbar.gotoAndPlay(shotbar._currentFrame - 5);
} else {
lLaser();
rl = true;
shotbar.gotoAndPlay(shotbar._currentFrame - 5);
}
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if ((_root.missleCount < 18) && (_root.lockedTarget != null)) {
if (0 < _root.lockedTarget.x) {
missleNum = "missle0";
_root.missleSnd.setPan(-50);
} else {
missleNum = "missle1";
_root.missleSnd.setPan(50);
}
_root.mview.attachMovie(missleNum, "missle" + _root.missleCount, 5000 + _root.missleCount);
trace("lt" + _root.lockedTarget);
trace("cxoff" + _root.lockedTarget.cxoff);
_root.mview["missle" + _root.missleCount]._x = _root.lockedTarget._x + _root.lockedTarget.cxoff;
_root.mview["missle" + _root.missleCount]._y = _root.lockedTarget._y + _root.lockedTarget.cyoff;
_root.missleSnd.start(0, 1);
_root.missleSnd1.start(0, 1);
_root.missleCount++;
_root.seraph.missleDisplay.gotoAndStop(_root.missleCount + 1);
}
} else if (Key.isDown(65)) {
_root.bs1Snd.stop();
_level0.gotoAndPlay("blank");
_level1.unloadMovie();
} else if (Key.isDown(81)) {
qualNum--;
if (qualNum < 0) {
qualNum = 3;
}
}
}
Symbol 522 MovieClip Frame 2
stop();
removeMovieClip("probe");
removeMovieClip("interceptor");
removeMovieClip("aggressor");
Symbol 523 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 14
_root.alarmSnd.start(0, 1);
Symbol 529 MovieClip Frame 69
gotoAndStop (1);
Symbol 529 MovieClip Frame 110
gotoAndStop (1);
Symbol 529 MovieClip Frame 150
gotoAndStop (1);
Symbol 529 MovieClip Frame 182
_root.bs1Snd.stop();
Symbol 529 MovieClip Frame 232
_root.seraph.gotoAndStop(2);
_root.mview.gotoAndStop(2);
_root.gotoAndStop(3);
_root.stopAllSounds();
_root.mview.target.gotoAndStop(3);
Symbol 529 MovieClip Frame 241
removeMovieClip("probe");
removeMovieClip("interceptor");
removeMovieClip("aggressor");
_root.attachMovie("myfly", "myfly", getNextHighestDepth(), {_x:275, _y:200});
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 3
stop();
Symbol 536 MovieClip Frame 4
stop();
Symbol 536 MovieClip Frame 5
stop();
Symbol 536 MovieClip Frame 6
stop();
Symbol 538 Button
on (press) {
this.startDrag(false);
_parent.dragPath = true;
}
on (release, releaseOutside) {
this.stopDrag();
_parent.dragPath = false;
_root.mview.target.w[_parent._parent.waveNum].e[_parent._parent.enemyNum].offsetx = _parent._parent.offsetx;
_root.mview.target.w[_parent._parent.waveNum].e[_parent._parent.enemyNum].offsetz = _parent._parent.offsetz;
}
Symbol 634 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 2
stop();
Symbol 636 MovieClip Frame 3
stop();
Symbol 636 MovieClip Frame 4
stop();
Symbol 636 MovieClip Frame 5
stop();
Symbol 636 MovieClip Frame 6
stop();
Symbol 638 Button
on (press) {
this.startDrag(false);
_parent.ydragPath = true;
}
on (release, releaseOutside) {
this.stopDrag();
_parent.ydragPath = false;
_root.mview.target.w[_parent._parent.waveNum].e[_parent._parent.enemyNum].offsetx = _parent._parent.offsetx;
_root.mview.target.w[_parent._parent.waveNum].e[_parent._parent.enemyNum].offsety = _parent._parent.offsety;
}
Symbol 677 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 25
if ((_root.s.length < 1) || (300 < _root.mview.target.c)) {
var wv = _root.mview.target.w;
trace("WV" + wv.currentWave);
if (wv.currentWave < 12) {
_root.attachMovie("aprWave", "aprWave", 100000);
_root.aprWave.curWave = "approaching wave " + Number(wv.currentWave + 2);
_root.aprWave._x = 275;
_root.aprWave._y = 200;
}
}
Symbol 678 MovieClip Frame 30
if ((_root.s.length < 1) || (300 < _root.mview.target.c)) {
var wv = _root.mview.target.w;
wv.currentWave++;
if (wv.currentWave == 11) {
_root.lvl1Snd.stop();
_root.bs1Snd.start(1, 999);
}
if (wv.currentWave >= 12) {
_root.bs1Snd.stop();
_level0.gotoAndPlay("blank");
_level1.unloadMovie();
}
wv[wv.currentWave].initWave();
} else {
gotoAndPlay (2);
}
Symbol 691 MovieClip Frame 1
this.healthshow = [_root.shieldPts];
stop();
Symbol 691 MovieClip Frame 2
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 3
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 4
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 5
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 6
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 7
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("shieldlow");
_root.noshieldsAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 8
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("shieldlow");
_root.noshieldsAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 9
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("shieldlow");
_root.noshieldsAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 10
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("shieldlow");
_root.noshieldsAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 11
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 12
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 13
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 14
this.healthshow = [_root.shieldPts];
Symbol 691 MovieClip Frame 15
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("healthlow");
_root.healthlowAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 16
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("healthlow");
_root.healthlowAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 17
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("healthlow");
_root.healthlowAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 18
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("healthlow");
_root.healthlowAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 19
this.healthshow = [_root.shieldPts];
_root.cockpit.readout.gotoAndPlay("healthlow");
_root.healthlowAlarmSnd.start(0, 1);
Symbol 691 MovieClip Frame 20
_root.mview.target.p = 1;
_root.cockpit.readout.gotoAndPlay("gameover");
Symbol 691 MovieClip Frame 21
_root.mview.target.p = 1;
_root.cockpit.readout.gotoAndPlay("gameover");
Symbol 691 MovieClip Frame 22
_root.mview.target.p = 1;
_root.cockpit.readout.gotoAndPlay("gameover");
Symbol 691 MovieClip Frame 23
_root.mview.target.p = 1;
_root.cockpit.readout.gotoAndPlay("gameover");
Symbol 691 MovieClip Frame 24
_root.mview.target.p = 1;
_root.cockpit.readout.gotoAndPlay("gameover");
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 2
stop();
Symbol 695 MovieClip Frame 3
stop();
Symbol 695 MovieClip Frame 4
stop();
Symbol 695 MovieClip Frame 5
stop();
Symbol 695 MovieClip Frame 6
stop();