Combined Code
movieClip 2 intro_smoke {
}
// unknown tag 88 length 52
// unknown tag 88 length 68
// unknown tag 88 length 70
// unknown tag 88 length 63
button 15 {
on (release) {
_parent.main();
this.swapDepths(1000);
this.removeMovieClip();
}
}
// unknown tag 88 length 27
movieClip 19 {
frame 30 {
stop();
}
}
movieClip 20 devnote {
}
movieClip 25 map.point24 {
frame 1 {
stop();
str = _name;
var partArray = str.split('_');
dlevel = partArray[1];
nlevel = int(dlevel) + 1;
if (_root.plevel < dlevel) {
_visible = false;
}
if (_root.plevel == int(dlevel) + 1) {
stop();
c = 0.01;
dx = _parent['p_' + nlevel]._x - _x;
dy = _parent['p_' + nlevel]._y - this._y;
onEnterFrame = function () {
if (c < 1) {
c += 0.05;
_parent.gax1._alpha = c * 100;
_parent.gax2._alpha = c * 150;
createEmptyMovieClip('la', 10.5);
this.lineStyle(3, 51711, 100, 100, 'none', 'none', 'none', 50);
this.lineTo(dx * c, dy * c);
} else {
_parent['p_' + nlevel].play();
p = _parent._parent.attachMovie('playbutton', 'pb', 10);
p._x = 550;
p._y = 450;
p.onRelease = function () {
stopAllSounds();
_root.loading = 1;
_root.gotoAndStop('game');
};
delete this.onEnterFrame;
}
};
} else {
if (_root.plevel > dlevel) {
stop();
c = 0.01;
dx = _parent['p_' + nlevel]._x - _x;
dy = _parent['p_' + nlevel]._y - this._y;
createEmptyMovieClip('la', 10.5);
this.lineStyle(3, 51711, 100, 100, 'none', 'none', 'none', 50);
this.lineTo(dx, dy);
} else {}
}
if (_root.plevel == dlevel) {
if (dlevel == 1) {
play();
p = _parent._parent.attachMovie('playbutton', 'pb', 10);
p._x = 550;
p._y = 450;
p.onRelease = function () {
stopAllSounds();
_root.loading = 1;
_root.gotoAndStop('game');
};
delete this.onEnterFrame;
}
gotoAndStop(2);
_parent._parent.dloc = _parent._parent.chapts[int(dlevel - 1)];
_parent._parent.missiondescription = _parent._parent.desc[int(dlevel - 1)];
_parent.dloc = _parent._parent.locs[int(dlevel - 1)];
if (dlevel < 10) {
_parent._parent.chaptnumb = '-0' + dlevel + '-';
} else {
_parent._parent.chaptnumb = '-' + dlevel + '-';
}
}
if (dlevel == 11) {
_visible = true;
_alpha = 100;
gotoAndStop(16);
}
}
frame 15 {
stop();
}
}
movieClip 32 clouds4 {
frame 1 {
gotoAndStop(random(3) + 1);
_rotation = random(360);
}
}
movieClip 34 {
frame 1 {
_yscale = random(50) + 100;
_xscale = _yscale;
}
frame 52 {
stop();
}
}
movieClip 36 {
}
movieClip 37 effect.explosion4 {
frame 1 {
st = -1;
mcd = 0;
string = 'heli';
trace(string.charAt(2));
onEnterFrame = function () {
--mcd;
if (mcd < 0) {
st += 1;
}
switch (st) {
case 0:
mcd = 7;
++st;
break;
case 1:
middle._xscale *= 1.15;
middle._yscale *= 1.15;
middle._alpha *= 1.2;
inner._xscale *= 1.4;
inner._yscale *= 1.4;
inner._alpha *= 1.3;
outer._xscale *= 1.1;
outer._yscale *= 1.1;
outer._alpha *= 1.1;
lightshell._xscale = random(200);
lightshell._yscale = random(200);
light._alpha = 0;
break;
case 2:
mcd = 5;
++st;
break;
case 3:
light._alpha = random(100);
light._width = random(300);
light._height = light._width;
lightshell._xscale = random(200);
lightshell._yscale = random(200);
inner._alpha *= 1.1;
inner._xscale *= 1.01;
inner._yscale *= 1.01;
middle._xscale *= 1.01;
middle._yscale *= 1.01;
middle._alpha *= 1.01;
outer._xscale *= 1.05;
outer._yscale *= 1.05;
outer._alpha *= 1.1;
break;
case 4:
mcd = 5;
++st;
break;
case 5:
light._alpha = random(100);
light._width = random(300);
light._height = light._width;
middle._xscale *= 1.01;
middle._yscale *= 1.01;
middle._alpha *= 0.98;
lightshell._xscale = random(200);
lightshell._yscale = random(200);
inner._alpha *= 0.96;
inner._xscale *= 1.01;
inner._yscale *= 1.01;
outer._xscale *= 1.005;
outer._yscale *= 1.005;
outer._alpha *= 1.01;
break;
case 6:
mcd = 6;
++st;
break;
case 7:
light._alpha = random(100);
light._width = random(200);
light._height = light._width;
middle._xscale *= 1.001;
middle._yscale *= 1.001;
middle._alpha *= 0.95;
lightshell._xscale = 0;
lightshell._yscale = 0;
inner._alpha *= 0.9300000000000001;
inner._xscale *= 1.01;
inner._yscale *= 1.01;
outer._alpha *= 0.96;
outer._xscale *= 1.005;
outer._yscale *= 1.005;
break;
case 8:
mcd = 120;
++st;
break;
case 9:
light._alpha *= 0.9;
middle._xscale *= 0.985;
middle._yscale *= 0.99;
middle._alpha *= 0.9300000000000001;
inner._alpha *= 0.91;
inner._xscale *= 0.985;
inner._yscale *= 0.99;
outer._alpha *= 0.91;
outer._xscale *= 1;
outer._yscale *= 1.005;
break;
case 10:
this.swapDepths(0);
this.removeMovieClip();
}
};
}
instance of movieClip 34 {
onClipEvent (load) {
_rotation = random(360);
}
}
instance lightshell of movieClip 36 {
onClipEvent (load) {
if (_root.gdetail == 3) {
} else {
_visible = false;
}
}
}
instance of movieClip 34 {
onClipEvent (load) {
_rotation = random(360);
}
}
instance of movieClip 34 {
onClipEvent (load) {
_rotation = random(360);
}
}
frame 7 {
stop();
}
instance of movieClip 34 {
onClipEvent (load) {
_rotation = random(360);
}
}
}
movieClip 41 {
}
movieClip 44 nova_nuclear_explosion4 {
frame 19 {
i = 0;
while (i < 8) {
++_root.miscC;
d = _root.game.attachMovie('debri_flaming', 'd' + i, _root.miscC);
d._x = this._x;
d._y = this._y;
++i;
}
}
frame 198 {
this.stop();
this.removeMovieClip();
}
}
movieClip 46 electricity {
frame 1 {
this.createEmptyMovieClip('node1', 1);
this.createEmptyMovieClip('node2', 2);
this.createEmptyMovieClip('node3', 3);
this.createEmptyMovieClip('node4', 4);
this.createEmptyMovieClip('node5', 5);
this.createEmptyMovieClip('node6', 6);
this.createEmptyMovieClip('node7', 7);
powerlevel = 50;
onEnterFrame = function () {
node2._x = 30 + random(5);
rand = random(2);
if (rand == 0) {
rand = -1;
}
node2._y = random(powerlevel) * rand;
node3._x = 90 + random(10);
node3._y = random(powerlevel) * rand;
node4._x = 120 + random(15);
node4._y = random(powerlevel) * rand;
node5._x = 150 + random(20);
node5._y = random(powerlevel) * rand;
node6._x = 190 + random(25);
node6._y = random(powerlevel) * rand;
node7._x = 260;
node1.createEmptyMovieClip('line_mc1', 8);
node1.line_mc1.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node1.line_mc1.lineTo(node2._x - node1._x, node2._y - node1._y);
node2.createEmptyMovieClip('line_mc2', 9);
node2.line_mc2.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node2.line_mc2.lineTo(node3._x - node2._x, node3._y - node2._y);
node3.createEmptyMovieClip('line_mc3', 10);
node3.line_mc3.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node3.line_mc3.lineTo(node4._x - node3._x, node4._y - node3._y);
node4.createEmptyMovieClip('line_mc4', 10);
node4.line_mc4.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node4.line_mc4.lineTo(node5._x - node4._x, node5._y - node4._y);
node5.createEmptyMovieClip('line_mc5', 10);
node5.line_mc5.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node5.line_mc5.lineTo(node6._x - node5._x, node6._y - node5._y);
node6.createEmptyMovieClip('line_mc6', 10);
node6.line_mc6.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50);
node6.line_mc6.lineTo(node7._x - node6._x, node7._y - node6._y);
};
}
}
frame 1 {
showedMaxShips = false;
loadBar.onEnterFrame = function () {
if (percent == 100) {
t5.gotoAndStop(2);
this._visible = false;
} else {
percent = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
this.bar._x = percent;
}
};
stop();
}
frame 1 {
function saveSettings() {
var v1 = SharedObject.getLocal('novasettings');
v1.data.gdetail = gdetail;
v1.data.aa = aa;
v1.data.qscale = qscale;
v1.data.scrolling = scrolling;
v1.data.invertpan = invertpan;
v1.data.musiclevel = musiclevel;
v1.flush();
false;
}
function checkSave() {
if (savefile.data.playername == undefined) {
return false;
} else {
return true;
}
}
function retrieveUpgrades(array, index) {
i = 0;
while (i < 4) {
array[i] = savefile.data['upgrades' + plevel][index][i];
++i;
}
}
function saveGame() {
var v2 = SharedObject.getLocal('nova');
v2.data.difficulty = difficulty;
v2.data['plevel' + plevel] = plevel;
v2.data['pru' + plevel] = pru;
v2.data['mpop' + plevel] = mpop;
v2.data['ships' + plevel] = new Array();
v2.data['ships' + plevel].splice(0);
shipsLoaded = new Array();
shipsLoaded.splice(0);
for (i in allyList) {
if (allyList[i].real == 1 && allyList[i].utype != 0 && allyList[i].controllable != 0 && allyList[i].asteroid != true) {
shipsLoaded.push(allyList[i].utype);
v2.data['ships' + plevel].push(allyList[i].utype);
}
}
v2.data['dataPoints' + plevel] = dataPoints;
v2.data['upgrades' + plevel] = new Array();
v2.data['upgrades' + plevel].push(upgrades20, upgrades21, upgrades22, upgrades30, upgrades31, upgrades32, upgrades40, upgrades41, upgrades42, upgrades50);
i = 1;
while (i <= 10) {
v2.data['t' + plevel + 't' + i] = _root['t' + i];
++i;
}
v2.data['fr' + plevel] = fr;
v2.data['far' + plevel] = far;
v2.data['fmh' + plevel] = fmh;
v2.data['fch' + plevel] = fch;
v2.data['feh' + plevel] = feh;
v2.data.playername = playername;
v2.data.firsrtofficer = firstofficer;
v2.data.secondofficer = secondofficer;
v2.flush();
trace('saved');
false;
}
function loadGame(wlevel) {
var v2 = SharedObject.getLocal('nova');
if (wlevel == undefined) {
i = 0;
while (i < 12) {
if (v2.data['dataPoints' + i] != undefined) {
wlevel = i;
}
++i;
}
}
trace(v2.data.saves.length);
difficulty = v2.data.difficulty;
loading = 1;
plevel = v2.data['plevel' + wlevel];
pru = v2.data['pru' + wlevel];
mpop = v2.data['mpop' + wlevel];
shipsLoaded = new Array();
shipsLoaded.splice(0);
for (i in v2.data['ships' + wlevel]) {
shipsLoaded.push(v2.data['ships' + wlevel][i]);
}
i = 1;
while (i <= 10) {
_root['t' + i] = v2.data['t' + plevel + 't' + i];
++i;
}
fr = v2.data['fr' + wlevel];
far = v2.data['far' + wlevel];
fmh = v2.data['fmh' + wlevel];
fch = v2.data['fch' + wlevel];
feh = v2.data['feh' + wlevel];
playername = v2.data.playername;
firstofficer = v2.data.firsrtofficer;
secondofficer = v2.data.secondofficer;
dataPoints = v2.data['dataPoints' + wlevel];
upgrades20 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades20, 0);
upgrades21 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades21, 1);
upgrades22 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades22, 2);
upgrades30 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades30, 3);
upgrades31 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades31, 4);
upgrades32 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades32, 5);
upgrades40 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades40, 6);
upgrades41 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades41, 7);
upgrades42 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades42, 8);
upgrades50 = new Array(0, 0, 0, 0);
retrieveUpgrades(upgrades50, 9);
false;
trace('loaded');
}
function Home() {
getURL('mailto:ryder.donahue@gmail.com', '');
}
function CopyRight() {
getURL('mailto:ryder.donahue@gmail.com', _blank);
}
function Contact() {
getURL('http://armorgames.com/', _blank);
}
function Flash() {
getURL('http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', '_blank');
}
var savefile = SharedObject.getLocal('nova');
var settingsfile = SharedObject.getLocal('novasettings');
if (settingsfile.data.gdetail == undefined) {
firstload = true;
trace('new settings file created');
gdetail = 2;
aa = 'high';
qscale = 60;
scrolling = false;
invertpan = false;
settingsfile.data.gdetail = 2;
settingsfile.data.aa = 'high';
settingsfile.data.qscale = 60;
settingsfile.data.scrolling = 0;
settingsfile.data.invertpan = 0;
settingsfile.data.musiclevel = 0.5;
musiclevel = 0.5;
_quality = 'high';
} else {
firstload = false;
trace('old settings file loaded');
gdetail = settingsfile.data.gdetail;
aa = settingsfile.data.aa;
qscale = settingsfile.data.qscale;
scrolling = settingsfile.data.scrolling;
invertpan = settingsfile.data.invertpan;
musiclevel = settingsfile.data.musiclevel;
}
settingsfile.flush();
delete settingsfile;
newskirmish = new Array();
map = 'Unknown Sector';
size = 1;
bg = 'none';
startLocations = new Array(200, 200, 600, 600);
asteroids = new Array(5, 3000, 200, 300);
punits = new Array(1, 300, 200);
eunits = new Array(1, 500, 600);
pstart = 2000;
estart = 2000;
newskirmish.push(map, size, bg, startLocations, asteroids, punits, eunits, pstart, estart);
distantearth = new Array();
map = 'Distant Earth';
size = 2;
bg = 'none';
startLocations = new Array(300, 300, 1300, 1300);
asteroids = new Array(10, 30000, 500, 350, 10, 30000, 1100, 1250, 10, 30000, 800, 800);
punits = new Array(1, 450, 400);
eunits = new Array(1, 1150, 1200);
pstart = 2000;
estart = 2000;
distantearth.push(map, size, bg, startLocations, asteroids, punits, eunits, pstart, estart);
twins = new Array();
map = 'Twins';
size = 2;
bg = 'none';
startLocations = new Array(300, 1300, 1300, 300);
asteroids = new Array(10, 30000, 400, 1150, 10, 30000, 1200, 450, 10, 30000, 700, 800, 10, 30000, 900, 800);
punits = new Array(1, 450, 1350);
eunits = new Array(1, 1100, 300);
pstart = 2000;
estart = 2000;
twins.push(map, size, bg, startLocations, asteroids, punits, eunits, pstart, estart);
tooclose = new Array();
map = 'Too Close';
size = 1;
bg = 'n1ne';
startLocations = new Array(200, 400, 600, 400);
asteroids = new Array(10, 30000, 350, 400, 10, 30000, 450, 400);
punits = new Array(1, 350, 500);
eunits = new Array(1, 450, 300);
pstart = 2000;
estart = 2000;
tooclose.push(map, size, bg, startLocations, asteroids, punits, eunits, pstart, estart);
standard = new Array();
map = 'Standard';
size = 3;
bg = 'n1ne';
startLocations = new Array(200, 200, 2200, 2200);
asteroids = new Array(10, 8000, 400, 400, 10, 8000, 2000, 2000, 10, 10000, 600, 300, 10, 10000, 1800, 2100, 10, 20000, 1200, 1200, 10, 9000, 300, 2300, 10, 9000, 2100, 100);
punits = new Array(1, 350, 350);
eunits = new Array(1, 2050, 2050);
pstart = 2000;
estart = 2000;
standard.push(map, size, bg, startLocations, asteroids, punits, eunits, pstart, estart);
var skirmishsave1 = SharedObject.getLocal('nova_skm1');
var savefile = SharedObject.getLocal('nova');
i = 0;
while (i < 12) {
if (savefile.data['dataPoints' + i] != undefined) {
plevel = i;
}
++i;
}
trace('current heighest level: ' + plevel);
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var Home = new ContextMenuItem('Contact Developer', Home);
var Copyright = new ContextMenuItem('Copyright 2012 Ryder Donahue', CopyRight);
var Flash = new ContextMenuItem('Get Flash 11', Flash);
myContextMenu.customItems.push(Home);
myContextMenu.customItems.push(Forum);
myContextMenu.customItems.push(Flash);
myContextMenu.customItems.push(Copyright);
this.menu = myContextMenu;
}
movieClip 55 {
}
movieClip 61 {
}
movieClip 64 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 225 {
_root.nextFrame();
}
}
movieClip 65 {
frame 1 {
stop();
}
}
movieClip 67 {
}
movieClip 68 {
}
frame 2 {
stop();
}
movieClip 73 gax3 {
}
movieClip 78 gax2 {
}
movieClip 81 {
}
movieClip 82 {
frame 1 {
t1 = 0;
t2 = 0;
t3 = 100;
onEnterFrame = function () {
if (gax1._alpha > t1) {
--gax1._alpha;
}
if (gax1._alpha < t1) {
++gax1._alpha;
}
if (gax2._alpha > t2) {
--gax2._alpha;
}
if (gax2._alpha < t2) {
++gax2._alpha;
}
if (gax3._alpha > t3) {
--gax3._alpha;
}
if (gax3._alpha < t3) {
++gax3._alpha;
}
};
}
}
movieClip 86 {
}
movieClip 87 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 101 {
}
movieClip 103 {
}
movieClip 105 {
}
movieClip 106 {
frame 1 {
stop();
switch (_parent._parent.dis) {
case 'Enter First Officers Name':
gotoAndStop(3);
break;
case 'Enter Second Officers Name':
stop();
break;
case 'Enter Admirals Name':
gotoAndStop(2);
break;
case 'h':
gotoAndStop(4);
break;
case 'r':
gotoAndStop(5);
break;
default:
_parent._visible = false;
}
}
}
movieClip 109 {
}
movieClip 110 {
frame 10 {
stop();
}
}
button 114 {
on (rollOut) {
tdis._alpha = 50;
}
on (rollOver, releaseOutside) {
tdis._alpha = 100;
}
on (release, keyPress '<Enter>') {
if (_parent.page == 'newgame') {
if (dis == 'Enter') {
if (_parent.inputbox.tdis.text != 'Input Name') {
_parent.removeitems();
_root.playername = _parent.inputbox.tdis.text;
_parent.newgame2();
}
}
}
if (_parent.page == 'newgame2') {
if (dis == 'Enter') {
if (_parent.inputbox.tdis.text != 'Input Name') {
_parent.removeitems();
_root.firstofficer = _parent.inputbox.tdis.text;
_parent.newgame3();
}
}
}
if (_parent.page == 'newgame3') {
if (dis == 'Enter') {
if (_parent.inputbox.tdis.text != 'Input Name') {
_parent.removeitems();
_root.secondofficer = _parent.inputbox.tdis.text;
_parent.newgame4();
}
}
}
}
on (release) {
if (dis == 'Options') {
_parent.removeitems();
_parent.options._visible = true;
}
if (dis == 'Skirmish') {
_parent.removeitems();
_root.loadgame(4);
if (_root.plevel > 3) {
_parent.skirmish();
} else {
_parent.advisory._visible = true;
}
}
if (dis == 'Play Skirmish Map') {
_parent.removeitems();
_parent.skirmishmaps._visible = true;
}
if (dis == 'Create a Map') {
_root.gmode = 'forge';
_parent.removeitems();
_parent.go = true;
_parent.trans = 3;
_parent.options._visible = true;
}
if (dis == 'Play More Games') {
getURL('http://armor.ag/MoreGames', _parent);
}
if (dis == 'Like Us') {
getURL('http://www.facebook.com/ArmorGames', _parent);
}
if (dis == 'Developer\'s Blog') {
getURL('http://lonewolfarchive.blogspot.com/', _parent);
}
if (dis == 'Campaign') {
_parent.removeitems();
_parent.campaign();
}
if (dis == 'Load Game') {
_root.loadGame();
_parent.removeitems();
_parent.go = true;
_parent.trans = 1;
_parent.options._visible = true;
}
if (dis == 'New Game') {
_root.plevel = 0;
_parent.trans = 3;
_root.gmode = 'ca1';
_parent.removeitems();
_parent.newgame();
}
if (dis == 'Main Menu' or dis == 'Cancel') {
_parent.removeitems();
_parent.main();
}
if (dis == 'Distant Earth') {
_parent.trans = 3;
_root.gmode = 's1';
_parent.removeitems();
_parent.difficulty();
}
if (dis == 'Easy') {
_parent.go = true;
_parent.removeitems();
_root.aiCycle = 60;
_root.difficulty = 0.7;
_parent.options._visible = true;
}
if (dis == 'Normal') {
_parent.go = true;
_parent.removeitems();
_root.aiCycle = 43;
_root.difficulty = 1;
_parent.options._visible = true;
}
if (dis == 'Hard') {
_parent.go = true;
_root.aiCycle = 26;
_root.difficulty = 1.5;
_parent.removeitems();
_parent.options._visible = true;
}
if (dis == 'Very Hard') {
_parent.go = true;
_root.aiCycle = 18;
_root.difficulty = 2;
_parent.removeitems();
_parent.options._visible = true;
}
}
}
movieClip 118 {
frame 1 {
onEnterFrame = function () {
i = 65;
while (i < 200) {
if (Key.isDown(i)) {
this.swapDepths(0);
}
this.removeMovieClip();
++i;
}
};
onMouseDown = function () {
this.swapDepths(0);
this.removeMovieClip();
};
}
}
movieClip 119 mainmenubutton {
frame 1 {
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = _alpha + 3;
}
rise = this._y - yt;
run = this._x - xt;
this._x -= run / 5;
this._y -= rise / 5;
if (_parent.remove == 1) {
this.removeMovieClip();
}
c = tdis.text.length;
l1._xscale = c * 10;
l2._x = l1._width / -2 + 1;
l3._x = l1._width / 2 - 1;
};
tdis._alpha = 50;
stop();
}
frame 2 {
onLoad = function () {
Selection.setFocus(tdis);
};
tdis._alpha = 100;
}
}
button 121 {
on (release) {
gotoAndStop(1);
}
}
button 122 {
on (release) {
gotoAndStop(2);
}
}
button 126 {
on (press) {
if (gact == 1) {
if (_root.gdetail == 1) {
_root.gdetail = 2;
gact = 0;
}
}
if (gact == 1) {
if (_root.gdetail == 2) {
_root.gdetail = 3;
gact = 0;
}
}
if (gact == 1) {
if (_root.gdetail == 3) {
_root.gdetail = 1;
gact = 0;
}
}
}
on (release, releaseOutside) {
gact = 1;
}
}
button 128 {
on (press) {
if (qact == 1) {
if (_root.aa == 'low') {
_quality = 'Medium';
_root.aa = 'medium';
qact = 0;
}
}
if (qact == 1) {
if (_root.aa == 'medium') {
_quality = 'High';
_root.aa = 'high';
qact = 0;
}
}
if (qact == 1) {
if (_root.aa == 'high') {
_quality = 'Low';
_root.aa = 'low';
qact = 0;
}
}
}
on (release, releaseOutside) {
qact = 1;
}
}
button 132 {
on (press) {
startDrag('scale', true, 0, 0, 100, 0);
}
on (release, releaseOutside) {
_root.qscale = scale._x;
stopDrag();
}
}
movieClip 133 {
frame 1 {
scale._x = _root.qscale;
}
}
button 134 {
on (press) {
_visible = false;
_root.saveSettings();
_parent.main();
}
}
button 137 {
on (press) {
if (scrolling == 'On') {
_root.scrolling = 0;
}
if (scrolling == 'Off') {
_root.scrolling = 1;
}
}
}
button 139 {
on (press) {
if (invert == 'On') {
_root.invertpan = 0;
}
if (invert == 'Off') {
_root.invertpan = 1;
}
}
}
button 141 {
on (press) {
_visible = false;
_root.saveSettings();
_parent.main();
}
}
movieClip 142 {
frame 1 {
stop();
}
frame 1 {
_alpha = 0;
onEnterFrame = function () {
if (_visible) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
} else {
_alpha = 0;
}
switch (_root.gdetail) {
case 1:
detail = 'Low';
break;
case 2:
detail = 'Medium';
break;
case 3:
detail = 'High';
}
switch (_root.aa) {
case 'low':
aa = 'x0';
break;
case 'medium':
aa = 'x1';
break;
case 'high':
aa = 'x4';
}
switch (_root.scrolling) {
case 0:
scrolling = 'Off';
break;
case 1:
scrolling = 'On';
}
switch (_root.invertpan) {
case 0:
invert = 'Off';
break;
case 1:
invert = 'On';
}
scalepercent = scale.scale._x + '%';
};
gact = 1;
qact = 1;
}
frame 2 {
stop();
}
}
button 143 {
on (release, releaseOutside) {
difficulty = 1;
_root.aiCycle = 60;
_root.difficulty = 0.7;
}
}
button 145 {
on (release) {
maplist = 1;
}
}
button 146 {
on (release) {
maplist = 2;
}
}
button 147 {
on (release) {
maplist = 3;
}
}
button 152 {
on (release, releaseOutside) {
_parent.trans = 3;
_parent.go = true;
_root.loadskirmish = new Array();
_root.loadskirmish = currentMap;
_root.gmode = 'skirmish';
}
}
button 155 {
on (release, releaseOutside) {
difficulty = 2;
_root.aiCycle = 43;
_root.difficulty = 1;
}
}
button 156 {
on (release, releaseOutside) {
difficulty = 3;
_root.aiCycle = 26;
_root.difficulty = 1.5;
}
}
button 160 {
on (press) {
_visible = false;
_parent.main();
}
}
movieClip 162 mappreview {
}
button 163 {
on (release) {
_parent.evalMap(_root.distantearth);
_parent.mapdescription = 'This maps low-yield resources creates a power struggle for the uneven deposits.';
}
}
button 164 {
on (release) {
_parent.evalMap(_root.twins);
_parent.mapdescription = 'Whoever gets custody of the twins, wins.\n(the writing in this game is so damn clever)';
}
}
button 165 {
on (release) {
_parent.evalMap(_root.tooclose);
_parent.mapdescription = 'Inproper Jump Coordinates have created an awkward & deadly situation.';
}
}
button 166 {
on (release) {
_parent.evalMap(_root.standard);
_parent.mapdescription = 'If this game had multiplayer tournaments, this would be the map we would play.';
}
}
button 167 {
on (release) {
_parent.evalMap(_root.skirmishrandommedium);
_parent.mapdescription = 'To make things interesting... ';
}
}
movieClip 174 {
}
button 177 {
on (release) {
savestr = 'nova_skirmishslot1';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
button 179 {
on (release) {
savestr = 'nova_skirmishslot2';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
button 181 {
on (release) {
savestr = 'nova_skirmishslot3';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
button 183 {
on (release) {
savestr = 'nova_skirmishslot4';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
button 185 {
on (release) {
savestr = 'nova_skirmishslot5';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
button 187 {
on (release) {
savestr = 'nova_skirmishslot6';
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
_root.skirmishmap = new Array();
_root.skirmishmap = skirmsave.data.skirmish;
_parent.evalMap(_root.skirmishmap);
}
}
}
movieClip 189 {
}
button 193 {
on (release) {
gen = new String(mapcode.text);
trace(gen);
step = 0;
cmap = new Array();
cmap[0] = '';
sstep = 0;
step5 = '';
step6 = '';
step7 = '';
step8 = '';
step9 = '';
step10 = '';
i = 0;
while (i < gen.length) {
if (gen.charAt(i) == '#') {
++step;
trace('step ' + step);
} else {
if (step == 2) {
cmap[0] += gen.charAt(i);
}
if (step == 3) {
cmap[1] = gen.charAt(i);
}
if (step == 5) {
step5 += gen.charAt(i);
}
if (step == 6) {
step6 += gen.charAt(i);
}
if (step == 7) {
step7 += gen.charAt(i);
}
if (step == 8) {
step8 += gen.charAt(i);
}
if (step == 9) {
step9 += gen.charAt(i);
}
if (step == 10) {
step10 += gen.charAt(i);
}
}
++i;
}
cmap[2] = 'none';
t = new Array();
t = splitstring(step5);
cmap[3] = t;
t = new Array();
t = splitstring(step6);
cmap[4] = t;
t = new Array();
t = splitstring(step7);
cmap[5] = t;
t = new Array();
t = splitstring(step8);
cmap[6] = t;
t = new Array();
t = splitstring(step9);
cmap[7] = t[0];
t = new Array();
t = splitstring(step10);
cmap[8] = t[0];
trace(cmap);
_parent.evalMap(cmap);
}
}
movieClip 196 {
frame 1 {
function splitstring(str) {
r = new Array();
k = '';
j = 0;
i = 0;
while (i < str.length) {
if (str.charAt(i) == ',') {
r.push(Number(k));
++j;
k = '';
} else {
k += str.charAt(i);
}
++i;
}
r.push(Number(k));
trace(r);
return r;
}
}
}
movieClip 197 {
frame 1 {
function evalMap(map, loaded) {
currentMap = new Array();
currentMap = map;
mapname = map[0];
msize = map[1];
bg = map[2];
pstartx = map[3][0];
pstarty = map[3][1];
estartx = map[3][2];
estarty = map[3][3];
pstart = map[7];
estart = map[8];
for (i in preview.objs) {
preview.objs[i].removeMovieClip();
}
preview.objC = 0;
preview.objs = new Array();
scaler = msize * 800 / 172;
switch (msize) {
case 1:
mapsize = 'Map Size: Small';
break;
case 2:
mapsize = 'Map Size: Medium';
break;
case 3:
mapsize = 'Map Size: Large';
}
trace(scaler);
i = 0;
while (i < map[4].length) {
++preview.objC;
a = preview.attachMovie('mappreview_icon', 'asteroid' + objC, preview.objC);
a.output = map[4][i];
a.yield = map[4][i + 1];
a._x = map[4][i + 2] / scaler;
a._y = map[4][i + 3] / scaler;
trace(map[4][i + 2]);
a.stop();
preview.objs.push(a);
i += 4;
}
i = 0;
while (i < map[5].length) {
++preview.objC;
u = preview.attachMovie('mappreview_icon', 'u' + objC, preview.objC);
u.utype = map[5][i];
u.side = 0;
u._x = map[5][i + 1] / scaler;
u._y = map[5][i + 2] / scaler;
u.gotoAndStop(4);
preview.objs.push(u);
i += 3;
}
i = 0;
while (i < map[6].length) {
++preview.objC;
u = preview.attachMovie('mappreview_icon', 'u' + objC, preview.objC);
u.utype = map[6][i];
u.side = 1;
u._x = map[6][i + 1] / scaler;
u._y = map[6][i + 2] / scaler;
u.gotoAndStop(5);
preview.objs.push(u);
i += 3;
}
++preview.objC;
p = preview.attachMovie('mappreview_icon', 'playerstart', preview.objC);
p._x = pstartx / scaler;
p._y = pstarty / scaler;
p.gotoAndStop(2);
preview.objs.push(p);
++preview.objC;
e = preview.attachMovie('mappreview_icon', 'enemystart', preview.objC);
e._x = estartx / scaler;
e._y = estarty / scaler;
e.gotoAndStop(3);
preview.objs.push(e);
}
stop();
evalMap(_root.distantearth);
}
frame 1 {
maplist = 1;
difficulty = 1;
_alpha = 0;
onEnterFrame = function () {
if (_visible) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
} else {
_alpha = 0;
}
switch (difficulty) {
case 1:
easy._alpha = 100;
medium._alpha = 50;
hard._alpha = 50;
break;
case 2:
easy._alpha = 50;
medium._alpha = 100;
hard._alpha = 50;
break;
case 3:
easy._alpha = 50;
medium._alpha = 50;
hard._alpha = 100;
}
switch (maplist) {
case 1:
playermaps._visible = false;
premademaps._visible = true;
mapcodes._visible = false;
codezonebtn._alpha = 100;
playerbtn._alpha = 100;
premadebtn._alpha = 30;
break;
case 2:
playermaps._visible = true;
premademaps._visible = false;
mapcodes._visible = false;
codezonebtn._alpha = 100;
playerbtn._alpha = 30;
premadebtn._alpha = 100;
break;
case 3:
playermaps._visible = false;
premademaps._visible = false;
mapcodes._visible = true;
codezonebtn._alpha = 30;
playerbtn._alpha = 100;
premadebtn._alpha = 100;
}
};
}
instance playermaps of movieClip 189 {
onClipEvent (data) {
i = 1;
while (i <= 6) {
savestr = 'nova_skirmishslot' + i;
var skirmsave = SharedObject.getLocal(savestr);
if (skirmsave.data.skirmish[0] != undefined) {
this['slot' + i + 'name'] = skirmsave.data.skirmish[0];
} else {
this['slot' + i + 'name'] = 'Empty ' + i;
}
skirmsave.flush();
++i;
}
Unknown action: 0xbf
Unknown action: 0x02
// An attempt to read a value from empty stack
(eval(undefined))..9. = false;
nova_skirmishslot..9. = false;
\b = false;
if (nova_skirmishslot. != undefined) {
= nova_skirmishslot.;
}
Unknown action: 0x02
try {
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
eval(undefined).undefined = undefined;
Unknown action: 0x5f
Unknown action: 0x72
Unknown action: 0x6f
Unknown action: 0x6f
Unknown action: 0x74
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x70
// An attempt to read a value from empty stack
Unknown action: 0x75
Unknown action: 0x73
// An attempt to read a value from empty stack
Unknown action: 0x6d
// An attempt to read a value from empty stack
undefined extends undefined >>> (undefined | undefined > undefined);
Unknown action: 0x6e
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x74
// An attempt to read a value from empty stack
undefined extends undefined >>> undefined;
Unknown action: 0x6d
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x5f
Unknown action: 0x70
// An attempt to read a value from empty stack
Unknown action: 0x72
// An attempt to read a value from empty stack
Unknown action: 0x6e
Unknown action: 0x74
// An attempt to read a value from empty stack
Unknown action: 0x6d
Unknown action: 0x6f
Unknown action: 0x75
Unknown action: 0x6e
Unknown action: 0x74
Unknown action: 0x6d
// An attempt to read a value from empty stack
undefined extends undefined | undefined >>> (undefined | undefined >>> undefined);
Unknown action: 0x6e
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
undefined extends undefined;
Unknown action: 0x6e
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x6c
Unknown action: 0x74
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x72
Unknown action: 0x5f
Unknown action: 0x78
// An attempt to read a value from empty stack
Unknown action: 0x6d
Unknown action: 0x70
Unknown action: 0x74
Unknown action: 0x79
// An attempt to read a value from empty stack
Unknown action: 0x73
Unknown action: 0x74
Unknown action: 0x73
// An attempt to read a value from empty stack
undefined extends undefined | undefined >>> (undefined | undefined ^ undefined gt (undefined | undefined >>> (undefined gt undefined > undefined)));
Unknown action: 0x7a
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x6f
Unknown action: 0x77
Unknown action: 0x6e
// An attempt to read a value from empty stack
Unknown action: 0x72
Unknown action: 0x73
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
undefined extends undefined gt undefined >>> (undefined >>> undefined);
Unknown action: 0x70
Unknown action: 0x73
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
undefined extends undefined;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x6f
Unknown action: 0x76
// An attempt to read a value from empty stack
Unknown action: 0x72
Unknown action: 0x6c
// An attempt to read a value from empty stack
Unknown action: 0x79
Unknown action: 0x75
Unknown action: 0x70
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x74
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x6e
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x74
// An attempt to read a value from empty stack
Unknown action: 0x78
Unknown action: 0x74
tellTarget ('undefined >>> (undefined >> (undefined >> (undefined | undefined ^ undefined >>> (undefined | undefined >> (undefined | undefined >>> (undefined >>> (undefined >> undefined)))))))') {
Unknown action: 0x72
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x73
Unknown action: 0x6f
Unknown action: 0x75
Unknown action: 0x72
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
Unknown action: 0x73