Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("c9376d20", this, 10301, true);
function homepage() {
getURL ("http://voidsoft.nytka.org", _blank);
}
MENU.customItems.push(homepagefunc);
MENU = new ContextMenu();
MENU.builtInItems.zoom = false;
MENU.builtInItems.quality = true;
MENU.builtInItems.play = false;
MENU.builtInItems.loop = false;
MENU.builtInItems.rewind = false;
MENU.builtInItems.forward_back = false;
MENU.builtInItems.print = false;
homepagefunc = new ContextMenuItem("Visit the VoidSoft homepage!", homepage);
MENU.customItems.push(homepagefunc);
_root.menu = MENU;
Instance of Symbol 18 MovieClip "spout" in Frame 1
onClipEvent (enterFrame) {
_alpha = (_yscale - 5);
}
Instance of Symbol 26 MovieClip "bar" in Frame 1
onClipEvent (load) {
percent = 0;
_yscale = 0;
}
onClipEvent (enterFrame) {
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_yscale = (_yscale + ((percent - _yscale) / 8));
_root.spout._yscale = 100 - _yscale;
if ((_yscale >= 95) && (percent == 100)) {
_root.gotoAndPlay(3);
} else {
_root.stop();
}
}
Frame 3
trails = true;
glows = true;
nebulae = false;
starfield = true;
makestars = 500;
warningdisplayed = false;
instructionsread = false;
Instance of Symbol 40 MovieClip "bar" in Frame 3
onClipEvent (enterFrame) {
barinner._alpha = 0;
}
Frame 114
MochiAd.showTimedAd({id:"e83c98342f113de4", res:"750x500"});
Frame 502
stopAllSounds();
Mouse.show();
stop();
Instance of Symbol 83 MovieClip "curtain" in Frame 502
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha-1);
}
}
Instance of Symbol 93 MovieClip in Frame 502
onClipEvent (enterFrame) {
if (_root.warningdisplayed == true) {
_alpha = 0;
this.unloadMovie();
}
}
Instance of Symbol 106 MovieClip "playbutton" in Frame 502
onClipEvent (enterFrame) {
if (_root.instructionsread == true) {
gotoAndStop (503);
}
}
Frame 504
onEnterFrame = function () {
if (_root.trails == true) {
_root.enginetraillabel = "ON";
} else {
_root.enginetraillabel = "OFF";
}
if (_root.glows == true) {
_root.lineglowlabel = "ON";
} else {
_root.lineglowlabel = "OFF";
}
_root.imagequalitylabel = _root._quality;
if (_root.nebulae == true) {
_root.nebulaelabel = "ON";
} else {
_root.nebulaelabel = "OFF";
}
if (_root.makestars == 500) {
_root.stardetaillabel = "LOW";
} else if (_root.makestars == 1000) {
_root.stardetaillabel = "MED";
} else {
_root.stardetaillabel = "HIGH";
}
};
Frame 552
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function makestarfield() {
i = 0;
while (i < makestars) {
attachMovie("star", "star" + stars, _root.getNextHighestDepth());
s = eval ("star" + stars);
s._alpha = random(100);
s._xscale = (s._yscale = random(100));
s._x = random(stagewidth);
s._y = random(stageheight);
if (nebulae == true) {
if (random(100) > 90) {
s._xscale = (s._yscale = random(100) + 100);
s.filters = new Array(starglow, starblur);
}
}
stars++;
i++;
}
if (i >= makestars) {
play();
}
}
__com_mochibot__("f4957a47", this, 10301, true);
stars = 0;
stagewidth = 750;
stageheight = 500;
colors = new Array();
colors[0] = 16711680 /* 0xFF0000 */;
colors[1] = 255;
colors[2] = 65280;
colors[3] = 65535;
colors[4] = 10027263 /* 0x9900FF */;
colors[5] = 16776960 /* 0xFFFF00 */;
glowcolor = colors[random(colors.length)];
var color = glowcolor;
var alpha = 1;
var blurX = 16;
var blurY = 16;
var strength = 128;
var quality = 1;
var inner = false;
var knockout = false;
var starglow = (new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout));
var blurX = 64;
var blurY = 64;
var quality = 3;
var starblur = (new flash.filters.BlurFilter(blurX, blurY, quality));
onEnterFrame = function () {
stop();
detail();
makestarfield();
};
Frame 553
function homepage() {
getURL ("http://voidsoft.nytka.org", _blank);
}
function dfclose() {
randommovement = 30;
trackspeed = 60;
orbittightness = 40;
}
function dfmid() {
randommovement = 80;
trackspeed = 50;
orbittightness = 35;
}
function dffar() {
randommovement = 30;
trackspeed = 20;
orbittightness = 40;
}
function nothing() {
}
MENU.customItems.push(homepagefunc);
MENU.customItems.push(nothing);
MENU.customItems.push(dfclose);
MENU.customItems.push(dfmid);
MENU.customItems.push(dffar);
MENU = new ContextMenu();
MENU.builtInItems.zoom = false;
MENU.builtInItems.quality = true;
MENU.builtInItems.play = false;
MENU.builtInItems.loop = false;
MENU.builtInItems.rewind = false;
MENU.builtInItems.forward_back = false;
MENU.builtInItems.print = false;
homepagefunc = new ContextMenuItem("Visit the VoidSoft homepage!", homepage);
split1 = (dflabel = new ContextMenuItem("DRONE ORBIT CONTROLS", nothing));
split2 = (dfclosefunc = new ContextMenuItem("Tight", dfclose));
dfmidfunc = new ContextMenuItem("Medium", dfmid);
dffarfunc = new ContextMenuItem("Loose", dffar);
MENU.customItems.push(homepagefunc);
MENU.customItems.push(dflabel);
MENU.customItems.push(dfclosefunc);
MENU.customItems.push(dfmidfunc);
MENU.customItems.push(dffarfunc);
split1.separatorBefore = true;
split2.separatorBefore = true;
split1.enabled = false;
_root.menu = MENU;
onLoad = function () {
dfmid();
};
gamepaused = false;
function scorekill() {
if (timer <= 0) {
score = score - (1 * wave);
timer = 100;
} else {
timer--;
}
}
function randomdrones() {
if (seed == false) {
timetoplace = random(200) + 100;
seed = true;
} else if (timetoplace <= 0) {
makedrones(1);
seed = false;
} else {
timetoplace--;
}
}
function gameloop() {
switch (loopmode) {
case 1 :
if (textupdated == false) {
wave++;
wavelabel = "WAVE " + wave;
wavetext.play();
textupdated = true;
timetonextwave = wave;
}
return;
case 2 :
if (enemiesmade == false) {
makeenemies(wave);
enemiesmade = true;
}
if (timetonextwave == 0) {
loopmode = 3;
}
firstdrone();
scorekill();
randomdrones();
return;
case 3 :
textupdated = false;
enemiesmade = false;
}
}
wave = 0;
textupdated = false;
loopmode = 1;
enemiesmade = false;
seed = false;
timetonextwave = 0;
timer = 100;
score = 0;
function makeenemies(number) {
i = 0;
while (i < number) {
duplicateMovieClip (enemy, "enemy" + enemycount, _root.getNextHighestDepth());
newenemy = eval ("enemy" + enemycount);
newenemy._x = random(stagewidth);
newenemy._y = random(stageheight);
enemies.push(enemycount);
enemycount++;
i++;
}
}
function makemissiles(xpos, ypos, dir) {
missiles++;
duplicateMovieClip (missile, "missile" + missiles, _root.getNextHighestDepth());
newmissile = eval ("missile" + missiles);
newmissile._rotation = dir;
newmissile._x = xpos;
newmissile._y = ypos;
}
function makeshockwave(xpos, ypos) {
shockwaves++;
duplicateMovieClip (shockwave, "shockwave" + shockwaves, _root.getNextHighestDepth());
newshockwave = eval ("shockwave" + shockwaves);
newshockwave._x = xpos;
newshockwave._y = ypos;
}
function makedrones(amount) {
i = 0;
while (i < amount) {
duplicateMovieClip (drone, "drone" + dronecount, _root.getNextHighestDepth());
t = eval ("drone" + dronecount);
t._x = random(stagewidth);
t._y = random(stageheight);
t.mood = 1;
t.dronenumber = dronecount;
dronecount++;
i++;
}
}
function drawlines() {
i = 0;
while (i < drones.length) {
if (drones[i] != -1) {
_root.targetdrone = eval ("drone" + drones[i]);
midpointx = (targetdrone._x + queenship._x) / 2;
midpointy = (targetdrone._y + queenship._y) / 2;
anchorx = midpointx + (random(20) - random(20));
anchory = midpointy + (random(20) - random(20));
line.curveTo(anchorx, anchory, targetdrone._x, targetdrone._y);
line.moveTo(queenship._x + (random(lscatter) - random(lscatter)), queenship._y + (random(lscatter) - random(lscatter)));
}
i++;
}
}
stop();
cleanup = false;
drones = new Array();
enemies = new Array();
dronesdrawn = false;
startDrag (realcursor, true);
Mouse.hide();
stagewidth = 750;
stageheight = 500;
lscatter = 10;
trackspeed = 0.2;
orbittightness = 5;
randomiser = true;
randommovement = 3;
dronecount = 0;
enemycount = 0;
firing = false;
bullets = 0;
missiles = 0;
shockwaves = 0;
timer = 100;
var color = 16777215;
var alpha = 0.7;
var blurX = 2;
var blurY = 2;
var strength = 2;
var quality = 3;
var inner = false;
var knockout = false;
var blueglow = (new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout));
onEnterFrame = function () {
if (gamepaused == false) {
enemy.bool_active = false;
gameloop();
createEmptyMovieClip("line", 2);
line.lineStyle(1, 3355647, 50);
if (glows == true) {
line.filters = new Array(blueglow);
}
line.moveTo(queenship._x + (random(lscatter) - random(lscatter)), queenship._y + (random(lscatter) - random(lscatter)));
drawlines();
}
};
onMouseDown = function () {
firing = true;
};
onMouseUp = function () {
firing = false;
};
Instance of Symbol 283 MovieClip "pausemenu" in Frame 553
onClipEvent (load) {
cooldown = 20;
}
onClipEvent (enterFrame) {
if (cooldown <= 0) {
if (Key.isDown(80)) {
if (_root.gamepaused == false) {
_root.gamepaused = true;
} else {
_root.gamepaused = false;
}
cooldown = 20;
}
} else if (cooldown > 0) {
cooldown--;
}
if (_root.gamepaused == true) {
_alpha = 80;
this.swapDepths(_root.getNextHighestDepth());
} else {
_alpha = 0;
}
}
Instance of Symbol 325 MovieClip in Frame 553
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
if (_root.loopmode == 3) {
_visible = true;
this.swapDepths(_root.getNextHighestDepth() + 2);
} else {
_visible = false;
}
}
}
Instance of Symbol 168 MovieClip "pointer" in Frame 553
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
_rotation = _root.queenship._rotation;
}
Instance of Symbol 171 MovieClip "dronetarget" in Frame 553
onClipEvent (load) {
_x = 0;
_y = 0;
ease = 5;
_y = 3000;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
_rotation = (((Math.atan2(_root.queenship._y - _y, _root.queenship._x - _x) * 180) / Math.PI) + 90);
this.swapDepths(_root.getNextHighestDepth());
a = _root.realcursor;
_x = (_x + ((a._x - _x) / ease));
_y = (_y + ((a._y - _y) / ease));
_root.pointer._x = _x;
_root.pointer._y = _y;
}
Instance of Symbol 340 MovieClip "Hud" in Frame 553
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
this.swapDepths(_root.getNextHighestDepth());
_root.dronetarget.swapDepths(_root.getNextHighestDepth);
}
}
Instance of Symbol 366 MovieClip "enemy" in Frame 553
onClipEvent (load) {
function rotateto(sourcerot, targetrot, ease) {
var _local2 = sourcerot - targetrot;
if (_local2 > 180) {
targetrot = targetrot + 360;
} else if (_local2 < -180) {
targetrot = targetrot - 360;
}
return((targetrot - sourcerot) / ease);
}
function changeposition() {
if (float_dist < 100) {
_rotation = (_rotation + rotateto(_rotation, -float_dirtoen, float_rotatespeed));
float_speed = 3;
} else {
_rotation = (_rotation + rotateto(_rotation, float_dirtoen, float_rotatespeed));
if (float_dist > 300) {
float_speed = 3;
} else {
if (int_cooldown <= 0) {
int_mood = 2;
} else {
int_cooldown--;
}
if (float_speed > 0) {
float_speed = float_speed / 2;
}
}
}
}
function fire() {
launchsound.start();
_root.makemissiles(_x, _y, _rotation);
int_cooldown = 50;
int_mood = 3;
}
function reposition() {
if (dirgenned == false) {
genrandom = random(360);
dirgenned = true;
float_speed = random(4);
}
if (int_loop > 0) {
_rotation = (_rotation + rotateto(_rotation, genrandom, float_rotatespeed));
int_loop--;
} else {
int_mood = 1;
int_loop = 60;
dirgenned = false;
}
}
function checklive() {
if (int_health <= 0) {
int_mood = 4;
}
}
function die() {
if (bool_died == false) {
diesound.start();
_root.timetonextwave--;
bool_died = true;
_root.score = _root.score + (25 * _root.wave);
}
play();
}
function mainloop() {
if (bool_active == true) {
flipsides();
switch (int_mood) {
case 1 :
changeposition();
return;
case 2 :
fire();
return;
case 3 :
reposition();
return;
case 4 :
die();
}
}
}
function updatevars() {
int_x1 = t._x;
int_y1 = t._y;
int_x2 = _x;
int_y2 = _y;
float_dist = Math.sqrt(((int_x1 - int_x2) * (int_x1 - int_x2)) + ((int_y1 - int_y2) * (int_y1 - int_y2)));
float_dirtoen = (Math.atan2(int_y1 - int_y2, int_x1 - int_x2) * 57.2957795130823) + 90;
}
function updatexy() {
float_xspeed = Math.cos(((_rotation - 90) * Math.PI) / 180) * float_speed;
float_yspeed = Math.sin(((_rotation - 90) * Math.PI) / 180) * float_speed;
_x = (_x + float_xspeed);
_y = (_y + float_yspeed);
}
function flipsides() {
if (_x > _root.stagewidth) {
_x = 0;
} else if (_x < 0) {
_x = _root.stagewidth;
}
if (_y > _root.stageheight) {
_y = 0;
} else if (_y < 0) {
_y = _root.stageheight;
}
}
launchsound = new Sound();
launchsound.attachSound("missilefire");
diesound = new Sound();
diesound.attachSound("explosion");
dirgenned = false;
_rotation = random(360);
bool_active = false;
newmissile = 0;
int_mood = 1;
float_xspeed = 0;
float_yspeed = 0;
float_speed = 0;
float_rotatespeed = 12;
float_dist = 1000;
float_dirtoen = 0;
int_x1 = 0;
int_y1 = 0;
int_x2 = 0;
int_y2 = 0;
int_cooldown = 50;
int_loop = 60;
int_health = 100;
bool_repositioned = false;
bool_died = false;
t = _root.queenship;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
updatevars();
checklive();
mainloop();
updatexy();
}
}
Instance of Symbol 367 MovieClip "shockwave" in Frame 553
onClipEvent (load) {
function killdrones() {
i = 0;
while (i < _root.drones.length) {
vd = eval ("_root.drone" + _root.drones[i]);
distance = Math.sqrt(((vd._x - _x) * (vd._x - _x)) + ((vd._y - _y) * (vd._y - _y)));
if ((distance < ((vd._width / 2) + (_width / 2))) && (damage > 0)) {
if (damage > 0) {
damage = damage - 1;
}
vd.health = vd.health - 5;
}
i++;
}
}
function killship() {
dist = Math.sqrt(((en._x - _x) * (en._x - _x)) + ((en._y - _y) * (en._y - _y)));
if ((dist < ((en._width / 2) + (_width / 2))) && (damage > 0)) {
en.health = en.health - 1;
damage = damage - 1;
}
}
function equalise() {
_alpha = ((damage / damagetotal) * 100);
if (damage < 0) {
damage = 0;
}
}
explode = new Sound();
explode.attachSound("missileimpact");
explode.start();
damage = 50;
damagetotal = damage;
_alpha = 100;
en = _root.queenship;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
killdrones();
killship();
equalise();
}
}
Instance of Symbol 380 MovieClip "missile" in Frame 553
onClipEvent (load) {
function dronelookup() {
i = 0;
while (i < _root.drones.length) {
td = eval ("_root.drone" + _root.drones[i]);
distance = Math.sqrt(((td._x - _x) * (td._x - _x)) + ((td._y - _y) * (td._y - _y)));
if (distance < ((td._width / 2) + 10)) {
hitobject = "_root.drone" + _root.drones[i];
return(true);
}
i++;
}
return(false);
}
function vars() {
disttomain = Math.sqrt(((t._x - _x) * (t._x - _x)) + ((t._y - _y) * (t._y - _y)));
}
function shockwave() {
mood = 3;
if (hit == false) {
_root.makeshockwave(_x, _y);
hit = true;
this.play();
}
}
function missile() {
if (speed < maxspeed) {
speed = speed * 1.5;
}
xspeed = Math.cos(((_rotation - 90) * Math.PI) / 180) * speed;
yspeed = Math.sin(((_rotation - 90) * Math.PI) / 180) * speed;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
function collisioncheck() {
if ((dronelookup() == true) || (disttomain < ((t._width / 2) + 25))) {
mood = 2;
}
}
function modeswitcher() {
switch (mood) {
case 1 :
missile();
collisioncheck();
return;
case 2 :
shockwave();
}
}
function cleanup() {
if ((((_x > _root.stagewidth) || (_x < 0)) || (_y > _root.stageheight)) || (_y < 0)) {
this.removeMovieClip();
}
}
xspeed = 0;
yspeed = 0;
speed = 1;
maxspeed = 20;
mood = 1;
hit = false;
t = _root.queenship;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
vars();
modeswitcher();
cleanup();
}
}
Instance of Symbol 383 MovieClip "bullet" in Frame 553
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
speed = 20;
_rotation = random(360);
hit = false;
impact = new Sound();
impact.attachSound("impact");
soundplaying = false;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
if (hit == false) {
xspeed = Math.cos(((dir - 90) * Math.PI) / 180) * speed;
yspeed = Math.sin(((dir - 90) * Math.PI) / 180) * speed;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
i = 0;
while (i < _root.enemies.length) {
ve = eval ("_root.enemy" + _root.enemies[i]);
if (ve.hitTest(_x, _y, true)) {
play();
hit = true;
if (soundplaying == false) {
impact.start();
soundplaying = true;
}
ve.int_health = ve.int_health - random(3);
}
i++;
}
if ((((_x > _root.stagewidth) || (_x < 0)) || (_y > _root.stageheight)) || (_y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 389 MovieClip "queenship" in Frame 553
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
live = true;
dronegrab = 75;
speed = 0;
rotate = 0;
acceleration = 5;
agility = 3;
braking = 3;
friction = 1;
topspeed = 4;
rotatefriction = 1;
maxspin = 4;
i = 0;
health = 100;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
if (live == true) {
if (Key.isDown(68)) {
rotate = rotate + (agility / 10);
}
if (Key.isDown(65)) {
rotate = rotate - (agility / 10);
}
if (Key.isDown(87)) {
speed = speed + (acceleration / 10);
} else if (Key.isDown(83)) {
speed = speed - (braking / 10);
}
}
speed = speed / ((friction + 100) / 100);
if (speed > topspeed) {
speed = topspeed;
} else if (speed < (-topspeed)) {
speed = -topspeed;
}
rotate = rotate / ((rotatefriction + 100) / 100);
if (rotate > maxspin) {
rotate = maxspin;
} else if (rotate < (-maxspin)) {
rotate = -maxspin;
}
xspeed = Math.cos(((_rotation - 90) * Math.PI) / 180) * speed;
yspeed = Math.sin(((_rotation - 90) * Math.PI) / 180) * speed;
if (_x > _root.stagewidth) {
_x = 0;
i = 0;
while (i < _root.drones.length) {
shift = eval ("_root.drone" + _root.drones[i]);
shift._x = -(shift._x - _root.stagewidth);
i++;
}
} else if (_x < 0) {
_x = _root.stagewidth;
i = 0;
while (i < _root.drones.length) {
shift = eval ("_root.drone" + _root.drones[i]);
shift._x = _root.stagewidth - shift._x;
i++;
}
}
if (_y > _root.stageheight) {
_y = 0;
i = 0;
while (i < _root.drones.length) {
shift = eval ("_root.drone" + _root.drones[i]);
shift._y = -(shift._y - _root.stageheight);
i++;
}
} else if (_y < 0) {
_y = _root.stageheight;
i = 0;
while (i < _root.drones.length) {
shift = eval ("_root.drone" + _root.drones[i]);
shift._y = _root.stageheight - shift._y;
i++;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + rotate);
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.trails == true) {
if (live == true) {
if (Key.isDown(87)) {
i++;
_root.glowL.duplicateMovieClip("glowL" + i, _root.getNextHighestDepth());
_root["glowL" + i]._visible = true;
i++;
_root.glowR.duplicateMovieClip("glowR" + i, _root.getNextHighestDepth());
_root["glowR" + i]._visible = true;
} else {
if (Key.isDown(68)) {
i++;
_root.glowL.duplicateMovieClip("glowL" + i, _root.getNextHighestDepth());
_root["glowL" + i]._visible = true;
}
if (Key.isDown(65)) {
i++;
_root.glowR.duplicateMovieClip("glowR" + i, _root.getNextHighestDepth());
_root[("glowR" + i) + 1]._visible = true;
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (health < 0) {
live = false;
play();
j = 0;
while (j < _root.drones.length) {
kill = eval ("_root.drone" + _root.drones[j]);
kill.mood = 3;
j++;
}
}
}
Instance of Symbol 400 MovieClip "drone" in Frame 553
onClipEvent (load) {
function healthcheck() {
if (health <= 0) {
mood = 3;
}
}
function freeroam() {
distance = Math.sqrt(((_x - targetmc._x) * (_x - targetmc._x)) + ((_y - targetmc._y) * (_y - targetmc._y)));
if (distance < targetmc.dronegrab) {
mood = 2;
}
}
function attached(num) {
if (attach == false) {
_root.drones.push(num);
arrayindex = _root.drones.length - 1;
attach = true;
}
if (xmove > orbittightness) {
xmove = orbittightness;
} else if (xmove < (-orbittightness)) {
xmove = -orbittightness;
}
if (ymove > orbittightness) {
ymove = orbittightness;
} else if (ymove < (-orbittightness)) {
ymove = -orbittightness;
}
if (randomiser == true) {
xmove = xmove + ((random(randommovement) - random(randommovement)) / (trackspeed * 10));
ymove = ymove + ((random(randommovement) - random(randommovement)) / (trackspeed * 10));
}
_y = (_y + ymove);
_x = (_x + xmove);
}
function cleanup(ai) {
_root.drones[arrayindex] = -1;
play();
}
targetmc = _root.queenship;
attach = false;
mood = 1;
xmove = 0;
ymove = 0;
arrayindex = 0;
randomiser = _root.randomiser;
health = 50;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
healthcheck();
switch (mood) {
case 1 :
freeroam();
break;
case 2 :
attached(dronenumber);
break;
case 3 :
cleanup(arrayindex);
}
trackspeed = (_root.trackspeed / 100) + 0.1;
orbittightness = _root.orbittightness / 5;
randommovement = _root.randommovement / 5;
if (_x > targetmc._x) {
xmove = xmove - trackspeed;
} else if (_x < targetmc._x) {
xmove = xmove + trackspeed;
}
if (_y > targetmc._y) {
ymove = ymove - trackspeed;
} else if (_y < targetmc._y) {
ymove = ymove + trackspeed;
}
}
}
Instance of Symbol 406 MovieClip "glowR" in Frame 553
onClipEvent (load) {
_alpha = 100;
_x = _root.queenship._x;
_y = _root.queenship._y;
xmove = random(2) - random(2);
ymove = random(2) - random(2);
_rotation = _root.queenship._rotation;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
if (_visible == true) {
if (_alpha > 0) {
_alpha = (_alpha / 1.2);
} else {
this.removeMovieClip();
}
}
xmove = xmove + 0.1;
ymove = ymove + 0.1;
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 407 MovieClip "glowL" in Frame 553
onClipEvent (load) {
_alpha = 100;
_x = _root.queenship._x;
_y = _root.queenship._y;
xmove = random(2) - random(2);
ymove = random(2) - random(2);
_rotation = _root.queenship._rotation;
}
onClipEvent (enterFrame) {
if (_root.cleanup == true) {
this.unloadMovie();
this.removeMovieClip();
}
if (_root.gamepaused == false) {
if (_visible == true) {
if (_alpha > 0) {
_alpha = (_alpha / 1.2);
} else {
this.removeMovieClip();
}
}
xmove = xmove + 0.1;
ymove = ymove + 0.1;
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Frame 554
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function homepage() {
getURL ("http://voidsoft.nytka.org", _blank);
}
__com_mochibot__("5a77b943", this, 10301, true);
onEnterFrame = function () {
i = 0;
while (i < 2000) {
s = eval ("star" + i);
s.removeMovieClip();
i++;
}
};
MENU.customItems.push(homepagefunc);
MENU = new ContextMenu();
MENU.builtInItems.zoom = false;
MENU.builtInItems.quality = true;
MENU.builtInItems.play = false;
MENU.builtInItems.loop = false;
MENU.builtInItems.rewind = false;
MENU.builtInItems.forward_back = false;
MENU.builtInItems.print = false;
homepagefunc = new ContextMenuItem("Visit the VoidSoft homepage!", homepage);
MENU.customItems.push(homepagefunc);
_root.menu = MENU;
stop();
Mouse.show();
Instance of Symbol 83 MovieClip "curtain" in Frame 554
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha-1);
}
}
Instance of Symbol 410 MovieClip in Frame 554
onClipEvent (enterFrame) {
if ((_alpha > 0) && (_root.curtain._alpha <= 0)) {
_alpha = (_alpha-1);
}
}
Symbol 4 Button
on (release) {
getURL ("http://voidsoft.nytka.org", _blank);
}
Symbol 431 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 70 MovieClip Frame 25
stop();
Symbol 89 Button
on (release) {
_root.warningdisplayed = true;
}
Symbol 105 Button
on (release) {
_root.gotoAndPlay(506);
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 109 Button
on (release) {
_root.gotoAndStop(505);
}
Symbol 112 Button
on (release) {
_root.gotoAndStop(504);
}
Symbol 115 Button
on (release) {
_root.gotoAndStop(503);
}
Symbol 119 Button
on (release) {
getURL ("http://voidsoft.nytka.org", _blank);
}
Symbol 126 Button
on (release) {
_root.gotoAndStop(502);
}
Symbol 132 Button
on (release) {
_root.instructions.gotoAndStop(_root.instructions._currentframe - 1);
}
Symbol 133 Button
on (release) {
_root.instructions.gotoAndStop(_root.instructions._currentframe + 1);
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
_parent._parent.stop();
} else {
_parent._parent.play();
}
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 210 Button
on (release) {
_root.gotoAndPlay(506);
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 213 MovieClip Frame 5
stop();
Symbol 213 MovieClip Frame 6
stop();
_root.instructionsread = true;
Symbol 222 Button
on (release) {
_root.makestars = 2000;
}
Symbol 225 Button
on (release) {
_root.makestars = 500;
}
Symbol 226 Button
on (release) {
_root.makestars = 1000;
}
Symbol 229 Button
on (release) {
_root.nebulae = true;
}
Symbol 230 Button
on (release) {
_root.nebulae = false;
}
Symbol 232 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 233 Button
on (release) {
_root._quality = "LOW";
}
Symbol 234 Button
on (release) {
_root._quality = "BEST";
}
Symbol 235 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 237 Button
on (release) {
_root.glows = true;
}
Symbol 238 Button
on (release) {
_root.trails = true;
}
Symbol 239 Button
on (release) {
_root.glows = false;
}
Symbol 240 Button
on (release) {
_root.trails = false;
}
Symbol 252 Button
on (release) {
getURL ("https://www.mochiads.com/r/edb3270b5b1a6f97", _blank);
}
Symbol 270 MovieClip Frame 100
stop();
Symbol 271 MovieClip Frame 1
var soundtrack = new Array(new Array(), new Array(), new Array(), new Array());
soundtrack[0][0] = new Sound();
soundtrack[0][0].attachSound("The Longing Inside");
soundtrack[0][1] = "The Longing Inside - BazookaZombie";
soundtrack[1][0] = new Sound();
soundtrack[1][0].attachSound("Road to Refuge");
soundtrack[1][1] = "Road to Refuge - Coldfire-3000";
soundtrack[2][0] = new Sound();
soundtrack[2][0].attachSound("Lost Soul");
soundtrack[2][1] = "Lost Soul - Rocker206";
tracks = soundtrack.length;
skiptrack = false;
i = -1;
started = false;
onEnterFrame = function () {
if (((soundtrack[i][0].position >= soundtrack[i][0].duration) || (started == false)) || (skiptrack == true)) {
if (started == false) {
started = true;
}
if (skiptrack == true) {
skiptrack = false;
}
if (soundtrack[i][0].position < soundtrack[i][0].duration) {
soundtrack[i][0].stop();
}
i++;
if (i >= tracks) {
i = -1;
}
soundtrack[i][0].start();
songname = soundtrack[i][1];
soundbar.gotoAndPlay(1);
}
if (delay > 0) {
delay--;
}
if (Key.isDown(13)) {
if (delay <= 0) {
skiptrack = true;
delay = 20;
}
}
};
Symbol 276 Button
on (release) {
_root.gamepaused = false;
_root.cleanup = true;
_root.gotoAndPlay(500);
i = 0;
while (i < 2000) {
s = eval ("_root.star" + i);
s.removeMovieClip();
i++;
}
_root.pausemenu.removeMovieClip();
}
Symbol 302 Button
on (release) {
_root.loopmode = 1;
}
Symbol 305 Button
on (release) {
cost = 250;
amount = 1;
max = 100;
if ((_root.queenship.topspeed - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.topspeed = _root.queenship.topspeed - amount;
}
}
Symbol 309 Button
on (release) {
cost = 250;
amount = 1;
max = 100;
if ((_root.score >= cost) && ((_root.queenship.topspeed + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.topspeed = _root.queenship.topspeed + amount;
}
}
Symbol 310 Button
on (release) {
cost = 10;
amount = 1;
max = 20;
if ((_root.queenship.rotatefriction - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.rotatefriction = _root.queenship.rotatefriction - amount;
}
}
Symbol 311 Button
on (release) {
cost = 10;
amount = 1;
max = 20;
if ((_root.score >= cost) && ((_root.queenship.rotatefriction + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.rotatefriction = _root.queenship.rotatefriction + amount;
}
}
Symbol 312 Button
on (release) {
cost = 20;
amount = 1;
max = 400;
if ((_root.queenship.dronegrab - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.dronegrab = _root.queenship.dronegrab - amount;
}
}
Symbol 313 Button
on (release) {
cost = 20;
amount = 1;
max = 400;
if ((_root.score >= cost) && ((_root.queenship.dronegrab + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.dronegrab = _root.queenship.dronegrab + amount;
}
}
Symbol 314 Button
on (release) {
cost = 500;
amount = 10;
max = 100;
if ((_root.queenship.health - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.health = _root.queenship.health - amount;
}
}
Symbol 315 Button
on (release) {
cost = 500;
amount = 10;
max = 100;
healthtotop = max - _root.queenship.health;
if ((_root.score >= cost) && ((_root.queenship.health + amount) <= max)) {
_root.score = _root.score - cost;
_root.queenship.health = _root.queenship.health + amount;
} else if (((_root.score >= ((cost / amount) * (amount - healthtotop))) && (_root.queenship.health < 100)) && ((_root.queenship.health + amount) > 100)) {
_root.queenship.health = _root.queenship.health + healthtotop;
_root.score = _root.score - ((cost / amount) * healthtotop);
}
}
Symbol 316 Button
on (release) {
cost = 10;
amount = 1;
max = 20;
if ((_root.queenship.friction - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.friction = _root.queenship.friction - amount;
}
}
Symbol 317 Button
on (release) {
cost = 10;
amount = 1;
max = 20;
if ((_root.score >= cost) && ((_root.queenship.friction + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.friction = _root.queenship.friction + amount;
}
}
Symbol 318 Button
on (release) {
cost = 250;
amount = 1;
max = 20;
if ((_root.queenship.maxspin - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.maxspin = _root.queenship.maxspin - amount;
}
}
Symbol 319 Button
on (release) {
cost = 250;
amount = 1;
max = 20;
if ((_root.score >= cost) && ((_root.queenship.maxspin + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.maxspin = _root.queenship.maxspin + amount;
}
}
Symbol 320 Button
on (release) {
cost = 150;
amount = 1;
max = 20;
if ((_root.queenship.agility - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.agility = _root.queenship.agility - amount;
}
}
Symbol 321 Button
on (release) {
cost = 150;
amount = 1;
max = 20;
if ((_root.score >= cost) && ((_root.queenship.agility + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.agility = _root.queenship.agility + amount;
}
}
Symbol 322 Button
on (release) {
cost = 150;
amount = 1;
max = 20;
if ((_root.queenship.acceleration - amount) > 0) {
_root.score = _root.score + cost;
_root.queenship.acceleration = _root.queenship.acceleration - amount;
}
}
Symbol 323 Button
on (release) {
cost = 150;
amount = 1;
max = 20;
if ((_root.score >= cost) && ((_root.queenship.acceleration + amount) < max)) {
_root.score = _root.score - cost;
_root.queenship.acceleration = _root.queenship.acceleration + amount;
}
}
Symbol 329 MovieClip Frame 66
stop();
_root.loopmode = 2;
Instance of Symbol 338 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
scale = _xscale;
if (_root.queenship.health > 0) {
targetscale = _root.queenship.health;
} else {
targetscale = 0;
}
_xscale = (_xscale + ((targetscale - scale) / 8));
}
Symbol 347 MovieClip Frame 56
stop();
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip Frame 56
onClipEvent (enterFrame) {
_parent._parent.removeMovieClip();
}
Symbol 366 MovieClip Frame 21
stop();
Instance of Symbol 365 MovieClip in Symbol 366 MovieClip Frame 21
onClipEvent (load) {
_parent.bool_active = true;
}
Symbol 366 MovieClip Frame 35
stop();
Instance of Symbol 365 MovieClip in Symbol 366 MovieClip Frame 35
onClipEvent (load) {
_parent.removeMovieClip();
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 15
stop();
Instance of Symbol 379 MovieClip in Symbol 380 MovieClip Frame 15
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 10
stop();
Instance of Symbol 382 MovieClip in Symbol 383 MovieClip Frame 10
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(87) || (Key.isDown(68))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(68) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(68)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(87) || (Key.isDown(65))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(65) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(65)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
Symbol 389 MovieClip Frame 1
stop();
Instance of Symbol 387 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (Key.isDown(87) || (Key.isDown(68))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(68) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(68)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
}
Instance of Symbol 387 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (Key.isDown(87) || (Key.isDown(65))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(65) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(65)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
}
Instance of Symbol 387 MovieClip in Symbol 389 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(87) || (Key.isDown(68))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(68) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(68)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
Instance of Symbol 387 MovieClip in Symbol 389 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(87) || (Key.isDown(65))) {
if (Key.isDown(87) && (_alpha < 50)) {
_alpha = (_alpha + 10);
}
if (Key.isDown(65) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if ((!Key.isDown(65)) && (_alpha > 50)) {
_alpha = (_alpha - 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha / 1.1);
}
}
Symbol 389 MovieClip Frame 50
stop();
_root.cleanup = true;
_root.play();
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 50
onClipEvent (enterFrame) {
_parent.unloadMovie();
}
Instance of Symbol 191 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
_rotation = (random(180) - random(180));
nerfer = 0;
firerate = random(10) + 15;
}
onClipEvent (enterFrame) {
x1 = _root.dronetarget._x;
y1 = _root.dronetarget._y;
x2 = _parent._x;
y2 = _parent._y;
if (_parent.attach == true) {
_rotation = ((Math.atan2(y2 - y1, x2 - x1) * 57.2957795130823) - 90);
if (_root.firing == true) {
if (nerfer >= firerate) {
_root.bullets++;
duplicateMovieClip (_root.bullet, "bullet" + _root.bullets, _root.getNextHighestDepth());
targetbullet = eval ("_root.bullet" + _root.bullets);
targetbullet.dir = _rotation;
targetbullet._x = _parent._x;
targetbullet._y = _parent._y;
nerfer = 0;
muzzleflash.play();
} else {
nerfer++;
}
}
}
}
Instance of Symbol 394 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_parent._parent._parent._parent.health * 2);
}
Symbol 396 MovieClip Frame 1
_parent.onRollOver = function () {
gotoAndPlay (1);
};
Symbol 396 MovieClip Frame 25
stop();
Instance of Symbol 191 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
_rotation = (random(180) - random(180));
nerfer = 0;
firerate = random(10) + 15;
}
onClipEvent (enterFrame) {
x1 = _root.dronetarget._x;
y1 = _root.dronetarget._y;
x2 = _parent._x;
y2 = _parent._y;
if (_parent.attach == true) {
_rotation = ((Math.atan2(y2 - y1, x2 - x1) * 57.2957795130823) - 90);
if (_root.firing == true) {
if (nerfer >= firerate) {
_root.bullets++;
duplicateMovieClip (_root.bullet, "bullet" + _root.bullets, _root.getNextHighestDepth());
targetbullet = eval ("_root.bullet" + _root.bullets);
targetbullet.dir = _rotation;
targetbullet._x = _parent._x;
targetbullet._y = _parent._y;
nerfer = 0;
muzzleflash.play();
} else {
nerfer++;
}
}
}
}
Symbol 400 MovieClip Frame 10
stop();
Instance of Symbol 191 MovieClip in Symbol 400 MovieClip Frame 10
onClipEvent (load) {
_rotation = (random(180) - random(180));
nerfer = 0;
firerate = random(10) + 15;
fire = new Array();
fire[0] = new Sound();
fire[0].attachSound("fire1");
fire[1] = new Sound();
fire[1].attachSound("fire2");
fire[2] = new Sound();
fire[2].attachSound("fire3");
fire[3] = new Sound();
fire[3].attachSound("fire4");
fire[4] = new Sound();
fire[4].attachSound("fire5");
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
x1 = _root.dronetarget._x;
y1 = _root.dronetarget._y;
x2 = _parent._x;
y2 = _parent._y;
if (_parent.attach == true) {
_rotation = ((Math.atan2(y2 - y1, x2 - x1) * 57.2957795130823) - 90);
if (_root.firing == true) {
if (nerfer >= firerate) {
fire[random(4)].start();
_root.bullets++;
duplicateMovieClip (_root.bullet, "bullet" + _root.bullets, _root.getNextHighestDepth());
targetbullet = eval ("_root.bullet" + _root.bullets);
targetbullet.dir = _rotation;
targetbullet._x = _parent._x;
targetbullet._y = _parent._y;
nerfer = 0;
muzzleflash.play();
} else {
nerfer++;
}
}
}
}
}
Symbol 400 MovieClip Frame 29
stop();
Instance of Symbol 399 MovieClip in Symbol 400 MovieClip Frame 29
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Instance of Symbol 405 MovieClip in Symbol 406 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 405 MovieClip in Symbol 407 MovieClip Frame 1
/* no clip actions */
Symbol 420 Button
on (release) {
_root.playername = _root.namefield.text;
_root.add_pass = "newswarmscore";
_root.stamp = (((_root.score * 42) * 11204) - 192) * _root.wave;
getURL ("http://voidsoft.nytka.org/index.php?page=flash&game=swarm&mode=newscore", _blank, "POST");
gotoAndPlay (502);
}
Symbol 428 Button
on (release) {
_root.gotoAndStop(502);
}