Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
}
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 3
Stage.showMenu = false;
stop();
Frame 4
stop();
Frame 5
baddybeamer = 1000;
projdepth = 50;
depthsaucer = 1;
depthroton = 11;
depthglobber = 21;
depthplane = 31;
depthalienarrow = 41;
depthalienorb = 71;
saucercount = 0;
saucercount2 = 0;
saucercount3 = 0;
globbercount = 0;
planecount = 0;
alienarrowcount = 0;
alienorbcount = 0;
lasertype = "laserbeam";
rocketx = 0;
rockety = 0;
rockettarget = "";
lives = 5;
score = 0;
level = 1;
_root.targetter.unloadMovie();
i = 0;
while (i <= 200) {
_root["globber" + i].unloadMovie();
_root["saucer" + i].unloadMovie();
_root["saucer" + i].unloadMovie();
_root["plane" + i].unloadMovie();
_root["alienarrow" + i].unloadMovie();
_root["alienorb" + i].unloadMovie();
i++;
}
gotoAndPlay (7);
Frame 8
starbasher.speed = 10;
stop();
Instance of Symbol 169 MovieClip "targetter" in Frame 8
onClipEvent (load) {
this.swapDepths(10000);
}
onClipEvent (enterFrame) {
this._x = _root[_root.rockettarget]._x;
this._y = _root[_root.rockettarget]._y;
}
Frame 9
gotoAndPlay (8);
Frame 10
starbasher.speed = 10;
stop();
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.saucercount < 2)) && ((((((_root.level == 1) || (_root.level == 3)) || (_root.level == 4)) || (_root.level == 7)) || (_root.level == 13)) || (_root.level == 15))) {
whichsaucer = random(2) + 1;
_root.attachMovie("saucer" + whichsaucer, "saucer" + _root.depthsaucer, _root.depthsaucer);
_root["saucer" + _root.depthsaucer]._x = random(600);
_root["saucer" + _root.depthsaucer]._y = -100;
_root.depthsaucer++;
_root.saucercount++;
if (_root.depthsaucer > 10) {
_root.depthsaucer = 0;
}
}
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.globbercount < 1)) && (((((((_root.level == 2) || (_root.level == 3)) || (_root.level == 5)) || (_root.level == 8)) || (_root.level == 12)) || (_root.level == 14)) || (_root.level == 15))) {
_root.attachMovie("globber", "globber" + _root.depthglobber, _root.depthglobber);
_root["globber" + _root.depthglobber]._x = random(600);
_root["globber" + _root.depthglobber]._y = -100;
_root.depthglobber++;
_root.globbercount++;
if (_root.depthglobber > 30) {
_root.depthglobber = 21;
}
}
}
Instance of Symbol 169 MovieClip "targetter" in Frame 10
onClipEvent (load) {
this.swapDepths(10000);
}
onClipEvent (enterFrame) {
this._x = _root[_root.rockettarget]._x;
this._y = _root[_root.rockettarget]._y;
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.saucercount2 < 2)) && ((((((((_root.level == 3) || (_root.level == 4)) || (_root.level == 6)) || (_root.level == 7)) || (_root.level == 8)) || (_root.level == 11)) || (_root.level == 13)) || (_root.level == 15))) {
whichsaucer = random(2) + 1;
_root.attachMovie("saucer" + whichsaucer, "saucer" + _root.depthsaucer, _root.depthsaucer);
_root["saucer" + _root.depthsaucer]._x = random(600);
_root["saucer" + _root.depthsaucer]._y = -100;
_root.depthsaucer++;
_root.saucercount2++;
if (_root.depthsaucer > 10) {
_root.depthsaucer = 0;
}
}
}
Instance of Symbol 224 MovieClip "maincontroller" in Frame 10
onClipEvent (enterFrame) {
if (_root.score < 1000) {
_root.level = 1;
} else if (_root.score < 2000) {
_root.level = 2;
} else if (_root.score < 3000) {
_root.level = 3;
} else if (_root.score < 4000) {
_root.level = 4;
} else if (_root.score < 5000) {
_root.level = 5;
} else if (_root.score < 6500) {
_root.level = 6;
} else if (_root.score < 8000) {
_root.level = 7;
} else if (_root.score < 10000) {
_root.level = 8;
} else if (_root.score < 12000) {
_root.level = 9;
} else if (_root.score < 14000) {
_root.level = 10;
} else if (_root.score < 16000) {
_root.level = 11;
} else if (_root.score < 18000) {
_root.level = 12;
} else if (_root.score < 20000) {
_root.level = 13;
} else if (_root.score < 22500) {
_root.level = 14;
} else if (_root.score < 25000) {
_root.level = 15;
}
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.saucercount3 < 2)) && ((((((_root.level == 1) || (_root.level == 4)) || (_root.level == 6)) || (_root.level == 7)) || (_root.level == 8)) || (_root.level == 11))) {
whichsaucer = random(2) + 1;
_root.attachMovie("saucer" + whichsaucer, "saucer" + _root.depthsaucer, _root.depthsaucer);
_root["saucer" + _root.depthsaucer]._x = random(600);
_root["saucer" + _root.depthsaucer]._y = -100;
_root.depthsaucer++;
_root.saucercount3++;
if (_root.depthsaucer > 10) {
_root.depthsaucer = 0;
}
}
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.planecount < 2)) && ((_root.level >= 5) && (_root.level <= 15))) {
_root.attachMovie("plane", "plane" + _root.depthplane, _root.depthplane);
_root["plane" + _root.depthplane]._x = random(600);
_root["plane" + _root.depthplane]._y = -100;
_root.depthplane++;
_root.planecount++;
if (_root.depthplane > 40) {
_root.depthplane = 31;
}
}
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.alienarrowcount < 6)) && ((((_root.level == 10) || (_root.level == 11)) || (_root.level == 12)) || (_root.level == 15))) {
_root.attachMovie("alienarrow", "alienarrow" + _root.depthalienarrow, _root.depthalienarrow);
_root["alienarrow" + _root.depthalienarrow]._x = random(600);
_root["alienarrow" + _root.depthalienarrow]._y = -100;
_root.depthalienarrow++;
_root.alienarrowcount++;
if (_root.depthalienarrow > 50) {
_root.depthalienarrow = 41;
}
}
}
Instance of Symbol 224 MovieClip in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
timer = 0;
}
if ((((timer % 50) == 0) && (_root.alienorbcount < 1)) && (((_root.level == 9) || (_root.level == 14)) || (_root.level == 15))) {
_root.attachMovie("alienorb", "alienorb" + _root.depthalienorb, _root.depthalienorb);
_root["alienorb" + _root.depthalienorb]._x = random(600);
_root["alienorb" + _root.depthalienorb]._y = -100;
_root.depthalienorb++;
_root.alienorbcount++;
if (_root.depthalienorb > 80) {
_root.depthalienorb = 71;
}
}
}
Instance of Symbol 236 MovieClip in Frame 10
onClipEvent (load) {
g = 1;
h = 2;
}
Symbol 12 Button
on (release) {
getURL ("http://yoarcade.net", "_blank");
}
Symbol 22 MovieClip Frame 5
stop();
Symbol 25 MovieClip Frame 5
stop();
Symbol 26 Button
on (release) {
_root.play();
}
Symbol 32 MovieClip Frame 84
_root.play();
Symbol 35 MovieClip Frame 1
_visible = false;
Symbol 39 MovieClip [laserbeam] Frame 1
power = 7;
i = 0;
stillgoing = 1;
stopat = 10;
myRadians = Math.atan2(suckay - this._y, suckax - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
xadder = 0;
yadder = 0;
speed = 3;
this.onEnterFrame = function () {
if (stillgoing) {
i++;
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
this._yscale = this._yscale + 20;
}
};
stop();
Symbol 39 MovieClip [laserbeam] Frame 2
stillgoing = 0;
Symbol 39 MovieClip [laserbeam] Frame 9
this.unloadMovie();
Symbol 42 MovieClip [plasmabeam] Frame 1
power = 13;
yyyyy = random(16) - 8;
i = 0;
stillgoing = 1;
stopat = 10;
myRadians = Math.atan2(suckay - this._y, suckax - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
xadder = 0;
yadder = 0;
speed = 3;
this.onEnterFrame = function () {
if (stillgoing) {
i++;
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
_rotation = (_rotation - yyyyy);
}
};
stop();
Symbol 42 MovieClip [plasmabeam] Frame 2
stillgoing = 0;
Symbol 42 MovieClip [plasmabeam] Frame 9
this.unloadMovie();
Symbol 45 MovieClip [slicerbeam] Frame 1
power = 5;
i = 0;
stillgoing = 1;
stopat = 10;
myRadians = Math.atan2(suckay - this._y, suckax - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
xadder = 0;
yadder = 0;
speed = 5;
this.onEnterFrame = function () {
if (stillgoing) {
i++;
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
this._yscale = this._yscale + 12;
this._xscale = this._xscale + 12;
}
};
stop();
Symbol 45 MovieClip [slicerbeam] Frame 2
stillgoing = 0;
Symbol 45 MovieClip [slicerbeam] Frame 9
this.unloadMovie();
Symbol 48 MovieClip [greenbeam] Frame 1
power = 11;
i = 0;
stillgoing = 1;
stopat = 10;
myRadians = Math.atan2(suckay - this._y, suckax - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
xadder = 0;
yadder = 0;
speed = 3;
this.onEnterFrame = function () {
if (stillgoing) {
i++;
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
}
};
stop();
Symbol 48 MovieClip [greenbeam] Frame 2
stillgoing = 0;
Symbol 48 MovieClip [greenbeam] Frame 9
this.unloadMovie();
Symbol 58 MovieClip Frame 1
stop();
Symbol 66 MovieClip [saucer1] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 50;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 100) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, 30);
}
if ((timer % 70) == 0) {
goingx = random(600);
goingy = random(450);
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 66 MovieClip [saucer1] Frame 23
_root.score = _root.score + 100;
_root.saucercount--;
this.unloadMovie();
Symbol 88 MovieClip [globber] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 100;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 200) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, 60);
}
if ((timer % 70) == 0) {
goingx = random(100) + 200;
goingy = random(40) + 180;
}
if ((timer % 130) == 0) {
_root.attachMovie("baddyshoot", "baddyshoot" + _root.baddybeamer, _root.baddybeamer);
_root["baddyshoot" + _root.baddybeamer]._x = _x;
_root["baddyshoot" + _root.baddybeamer]._y = _y;
_root["baddyshoot" + _root.baddybeamer].suckax = _root.starbasher._x;
_root["baddyshoot" + _root.baddybeamer].suckay = _root.starbasher._y;
_root.baddybeamer++;
if (_root.baddybeamer > 1200) {
_root.baddybeamer = 1000;
}
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 88 MovieClip [globber] Frame 23
_root.score = _root.score + 210;
_root.globbercount--;
this.unloadMovie();
Symbol 92 MovieClip [baddyshoot] Frame 1
power = 5;
i = 0;
stillgoing = 1;
stopat = 10;
myRadians = Math.atan2(suckay - this._y, suckax - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
xadder = 0;
yadder = 0;
speed = 9;
this.onEnterFrame = function () {
if (stillgoing) {
i++;
if (i > 60) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
this._yscale = this._yscale + 1;
}
};
stop();
Instance of Symbol 35 MovieClip "laserhead" in Symbol 92 MovieClip [baddyshoot] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.starbasher.dotdet) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
_parent.play();
}
}
Symbol 92 MovieClip [baddyshoot] Frame 2
stillgoing = 0;
Symbol 92 MovieClip [baddyshoot] Frame 9
this.unloadMovie();
Symbol 96 MovieClip [plane] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 145;
timer = 0;
myspeed = 60;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
myRadians = Math.atan2(_root.starbasher._y - this._y, _root.starbasher._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 100) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, myspeed);
}
if ((timer % 70) == 0) {
o = random(5);
if (o == 1) {
goingx = _root.starbasher;
goingy = _root.starbasher;
myspeed = 45;
} else {
goingx = random(600);
goingy = random(450);
myspeed = 60;
}
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 96 MovieClip [plane] Frame 23
_root.score = _root.score + 220;
_root.planecount--;
this.unloadMovie();
Symbol 118 MovieClip [alienarrow] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 25;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
myRadians = Math.atan2(_root.starbasher._y - this._y, _root.starbasher._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 100) {
timer = 0;
}
if (life > 0) {
moveto(_root.starbasher._x, _root.starbasher._y, 70);
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 118 MovieClip [alienarrow] Frame 23
_root.score = _root.score + 250;
_root.alienarrowcount--;
this.unloadMovie();
Symbol 142 MovieClip Frame 1
stop();
Symbol 144 MovieClip [alienorb] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 1000;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
myRadians = Math.atan2(_root.starbasher._y - this._y, _root.starbasher._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 200) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, 60);
}
if ((timer % 70) == 0) {
goingx = random(100) + 200;
goingy = random(40) + 180;
}
if ((timer % 130) == 0) {
shootit.play();
_root.attachMovie("baddyshoot", "baddyshoot" + _root.baddybeamer, _root.baddybeamer);
_root["baddyshoot" + _root.baddybeamer]._x = _x;
_root["baddyshoot" + _root.baddybeamer]._y = _y;
_root["baddyshoot" + _root.baddybeamer].suckax = _root.starbasher._x;
_root["baddyshoot" + _root.baddybeamer].suckay = _root.starbasher._y;
_root.baddybeamer++;
if (_root.baddybeamer > 1200) {
_root.baddybeamer = 1000;
}
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 144 MovieClip [alienorb] Frame 23
_root.score = _root.score + 2500;
_root.alienorbcount--;
this.unloadMovie();
Symbol 146 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 5);
};
Symbol 148 MovieClip [saucer2] Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 60;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
if (life <= 0) {
_root.rocketlauncher.targetted = 0;
this.play();
}
timer++;
if (timer > 100) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, 25);
}
if ((timer % 70) == 0) {
goingx = random(600);
goingy = random(450);
}
if (this.hitTest(_root.starbasher._x, _root.starbasher._y, true) && (_root.starbasher._alpha == 100)) {
_root.starbasher.play();
}
};
stop();
Symbol 148 MovieClip [saucer2] Frame 23
_root.score = _root.score + 110;
_root.saucercount--;
this.unloadMovie();
Symbol 150 MovieClip Frame 1
function moveto(xx, yy, speedos) {
this._x = this._x - ((this._x - xx) / speedos);
this._y = this._y - ((this._y - yy) / speedos);
}
life = 50;
timer = 0;
goingx = random(450) + 50;
goingy = random(350) + 50;
this.onEnterFrame = function () {
t = 50;
while (t <= 65) {
if (this.hitTest(_root["laserbeam" + t].laserhead)) {
life = life - _root["laserbeam" + t].power;
_root["laserbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["plasmabeam" + t].laserhead)) {
life = life - _root["plasmabeam" + t].power;
_root["plasmabeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["slicerbeam" + t].laserhead)) {
life = life - _root["slicerbeam" + t].power;
_root["slicerbeam" + t].play();
this.blinker.play();
} else if (this.hitTest(_root["greenbeam" + t].laserhead)) {
life = life - _root["greenbeam" + t].power;
_root["greenbeam" + t].play();
this.blinker.play();
}
t++;
}
if (this.hitTest(_root.rocketlauncher.laserhead)) {
this.blinker.play();
life = life - 40;
this._rotation = this._rotation + 20;
_root.rocketlauncher.gotoAndPlay("explode");
_root.rocketlauncher.attacking = 2;
}
if ((_root.rocketlauncher.attacking == 0) && (this.hitTest(_parent._xmouse, _parent._ymouse, true))) {
_root.rockettarget = this._name;
_root.rocketlauncher.targetted = 1;
}
timer++;
if (timer > 100) {
timer = 0;
}
if (life > 0) {
moveto(goingx, goingy, 30);
}
if ((timer % 70) == 0) {
goingx = random(600);
goingy = random(450);
}
};
stop();
Symbol 150 MovieClip Frame 23
_root.score = _root.score + 100;
_root.saucercount--;
this.unloadMovie();
Symbol 152 Button
on (press) {
if (_root.starbasher.lasers.oo) {
_root.starbasher.lasers.play();
_root.attachMovie(lasertype, lasertype + _root.projdepth, _root.projdepth);
_root[lasertype + _root.projdepth]._x = _root.starbasher._x;
_root[lasertype + _root.projdepth]._y = _root.starbasher._y;
_root[lasertype + _root.projdepth].suckax = _xmouse;
_root[lasertype + _root.projdepth].suckay = _ymouse;
_root.projdepth++;
if (_root.projdepth > 65) {
_root.projdepth = 50;
}
}
}
Symbol 158 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
}
};
Symbol 158 MovieClip Frame 12
r = random(2);
if (r == 1) {
gotoAndPlay (1);
}
Symbol 163 MovieClip Frame 1
oo = 1;
stop();
Symbol 163 MovieClip Frame 2
oo = 0;
Symbol 165 MovieClip Frame 1
xadder = 0;
yadder = 0;
destroyed = 0;
_alpha = 50;
this.onEnterFrame = function () {
if ((!this.hitTest(_root._xmouse, _root._ymouse, true)) && (!destroyed)) {
stopat = 10;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
if (Key.isDown(86)) {
this._x = this._x + xadder;
this._y = this._y + yadder;
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
}
};
Symbol 165 MovieClip Frame 90
destroyed = 0;
_alpha = 100;
stop();
Symbol 165 MovieClip Frame 91
destroyed = 1;
Symbol 165 MovieClip Frame 146
if (_root.lives == 0) {
_root.gogo.play();
this.unloadMovie();
} else {
_root.lives--;
_x = random(600);
_y = random(450);
}
Symbol 180 MovieClip Frame 1
attacking = 0;
stopat = 10;
xadder = 0;
yadder = 0;
speed = 30;
targetted = 0;
this.onEnterFrame = function () {
_root.rocketx = _root[_root.rockettarget]._x;
_root.rockety = _root[_root.rockettarget]._y;
if (attacking == 0) {
this._x = _root.starbasher._x;
this._y = _root.starbasher._y;
if ((Key.isDown(67) && (targetted == 1)) && (_root.starbasher.destroyed == 0)) {
attacking = 1;
this.play();
}
} else if (attacking == 1) {
if (isNaN(_root[_root.rockettarget]._x)) {
this.play();
}
speed = speed - 1;
if (speed < 3) {
speed = 3;
}
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
}
myRadians = Math.atan2(_root.rockety - this._y, _root.rocketx - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
if (this.hitTest(_root.targetter._x, _root.targetter._y, true)) {
this.play();
}
};
stop();
Symbol 180 MovieClip Frame 6
stop();
Symbol 180 MovieClip Frame 7
_root.rockettarget = "idler";
play();
Symbol 185 Button
on (release) {
_root.gotoAndStop("yay");
}
Symbol 186 Button
on (release) {
getURL ("http://www.phrozenflame.com/games/starbash/postscore.php", "_blank");
}
Symbol 187 Button
on (release) {
getURL ("http://tam.atspace.com", "_blank");
}
Symbol 188 Button
on (release) {
this.gotoAndStop("credits");
}
Symbol 191 Button
on (release) {
getURL ("mailto:josh_tamugaia@yahoo.com", "_blank");
}
Symbol 192 Button
on (release) {
getURL ("http://phrozenflame.com", "_blank");
}
Symbol 194 Button
on (release) {
this.gotoAndStop("nocredits");
}
Symbol 195 Button
on (release) {
getURL ("http://yoarcade.net", "_blank");
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 197 Button
on (release) {
_quality = "HIGH";
}
Symbol 198 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 199 Button
on (release) {
_quality = "LOW";
}
Symbol 207 MovieClip Frame 7
stop();
Instance of Symbol 207 MovieClip "blinkit" in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.play();
_parent.play();
}
}
Symbol 214 MovieClip Frame 5
_root.lasertype = "laserbeam";
stop();
Symbol 214 MovieClip Frame 11
_root.lasertype = "plasmabeam";
stop();
Symbol 214 MovieClip Frame 17
_root.lasertype = "slicerbeam";
stop();
Symbol 214 MovieClip Frame 23
_root.lasertype = "greenbeam";
stop();
Symbol 224 MovieClip Frame 1
_visible = false;
Symbol 227 MovieClip Frame 1
o = 1;
attacking = 0;
stopat = 10;
xadder = 0;
yadder = 0;
speed = 30;
targetted = 0;
this.onEnterFrame = function () {
_root.rocketx = _root[_root.rockettarget]._x;
_root.rockety = _root[_root.rockettarget]._y;
if (attacking == 0) {
this._x = _root.starbasher._x;
this._y = _root.starbasher._y;
if ((Key.isDown(67) && (targetted == 1)) && (_root.starbasher.destroyed == 0)) {
attacking = 1;
this.play();
}
} else if (attacking == 1) {
if (isNaN(_root[_root.rockettarget]._x)) {
this.play();
}
speed = speed - 1;
if (speed < 3) {
speed = 3;
}
if (i > 30) {
this.unloadMovie();
}
if (_rotation > 90) {
xadder = (180 - _rotation) / speed;
} else if (_rotation < -90) {
xadder = (-180 - _rotation) / speed;
} else {
xadder = _rotation / speed;
}
if (_rotation < 0) {
yadder = (-90 - _rotation) / speed;
} else {
yadder = (_rotation - 90) / speed;
}
this._x = this._x + xadder;
this._y = this._y + yadder;
}
myRadians = Math.atan2(_root.rockety - this._y, _root.rocketx - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
if (this.hitTest(_root.targetter.taik) && (o == 1)) {
this.gotoAndPlay("explode");
}
};
stop();
Symbol 227 MovieClip Frame 6
stop();
Symbol 227 MovieClip Frame 7
_root.rockettarget = "idler";
o = 0;
play();
Symbol 236 MovieClip Frame 1
this.onEnterFrame = function () {
g = _root.level;
if (g == h) {
play();
h++;
}
};
stop();
Symbol 238 Button
on (release) {
_root.gotoAndPlay("varloader");
}
Symbol 245 Button
on (release) {
var sendvars = new LoadVars();
sendvars.pname = _root.sbname;
sendvars.pscore = _root.score;
sendvars.send("http://www.phrozenflame.com/games/starbash/postscore.php", "_blank", "GET");
this.play();
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
i = 0;
while (i <= 200) {
_root["globber" + i].unloadMovie();
_root["saucer" + i].unloadMovie();
_root["saucer" + i].unloadMovie();
_root["plane" + i].unloadMovie();
_root["alienarrow" + i].unloadMovie();
_root["alienorb" + i].unloadMovie();
i++;
}
Symbol 248 MovieClip Frame 17
stop();
Symbol 248 MovieClip Frame 18
stop();
Symbol 250 Button
on (release) {
gotoAndStop (3);
}
Symbol 254 Button
on (release) {
gotoAndStop (2);
}
Symbol 255 MovieClip Frame 1
stopAllSounds();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stopAllSounds();
stop();