Frame 1
thecopyright = "LunarCommand, its artwork and sourcecode are copyright © 2000-2002 Markus Eichler, juggernart@juggernart.com, http://www.juggernart.com. Every use of LunarCommand, its artwork or sourcecode, in complete or partially, without prior consent of Markus Eichler is strictly forbidden!";
Frame 3
qualityArray = new Array("LOW", "MEDIUM", "HIGH");
myquality = qualityArray[1];
_quality = myquality;
highscoring = 0;
bgmusic = 1;
mydisplay = 1;
custcursor = 0;
twinkle = 1;
volsfx = 100;
fadeArray = new Array(0, 0, 1, 0);
fadeSpeed = 2;
basearray = new Array();
basehitarray = new Array();
basestatearray = new Array(2, 2, 2, 2, 2, 2);
scudarray = new Array();
msarray = new Array();
tfxarray = new Array();
scscaleArray = new Array(83, 77);
scspeedArray = new Array(0.055, 0.0485);
scspeedplusArray = new Array(0.002, 0.00185);
msspeedArray = new Array(0.002125, 0.003);
msspeedplusArray = new Array(0.00014, 0.00016);
msspeedvarArray = new Array(5, 3);
dronespeedArray = new Array(0.0675, 0.08);
leveltoreachArray = new Array(20, 25);
Instance of Symbol 25 MovieClip "twinkle0" in Frame 14
onClipEvent (load) {
mystarcolor = new Color(this);
myColorTransform = new Object();
myColorTransform.ra = 0;
myColorTransform.ga = 0;
myColorTransform.ba = 0;
myColorTransform.aa = 100;
myColorTransform.ab = 100;
}
Frame 15
functions.createtwinkle();
music.duplicateMovieClip("music1", 25);
music1.launch = 1;
Frame 17
if (_framesloaded < 61) {
gotoAndPlay(_currentframe - 1);
}
Frame 18
functions.createtextfx(125, 125, 275, "choose!", false, "", false);
functions.createtextfx(300, 200, 200, "soft", true, "soft", true);
functions.createtextfx(300, 240, 200, "hard", true, "hard", true);
stop();
Frame 19
functions.killtextfx();
((jump == "soft") ? ((difficulty = 0)) : ((difficulty = 1)));
Instance of Symbol 55 MovieClip "base1" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 60 MovieClip "base2" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 66 MovieClip "base3" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 71 MovieClip "base4" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 76 MovieClip "base5" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 81 MovieClip "base6" in Frame 19
onClipEvent (load) {
_root.basearray.push(this);
}
Frame 34
fadeArray = [0, 0, 1, 0];
fadeSpeed = 2;
Instance of Symbol 83 MovieClip "basehit1" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 85 MovieClip "basehit2" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 87 MovieClip "basehit3" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 87 MovieClip "basehit4" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 85 MovieClip "basehit5" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 83 MovieClip "basehit6" in Frame 34
onClipEvent (load) {
_root.basehitarray.push(this);
}
Frame 45
copyright.gotoAndPlay("show");
functions.createtextfx(44, 286, 125, "Help", true, "help", false);
functions.createtextfx(426, 286, 125, "Options", true, "options", false);
functions.createtextfx(398, 58, 150, "Play", true, "playgame", true);
if (highscoring) {
functions.createtextfx(192, 286, 125, "Highscores", true, "getscores", false);
} else {
functions.createtextfx(192, 286, 125, "Highscores", false, "", false);
}
level = 0;
score = 0;
repair = 0;
droneshow = false;
gameover = false;
stop();
Frame 46
copyright.gotoAndPlay("hide");
functions.killtextfx();
Frame 55
gotoAndPlay(jump);
Frame 56
fadeArray = [0, 1, 0, 0];
fadeSpeed = 2;
functions.createtextfx(420, 286, 125, "back", true, "", true);
stop();
Frame 57
functions.killtextfx();
gotoAndPlay (34);
Frame 58
fadeArray = [0, 1, 0, 0];
fadeSpeed = 2;
functions.createtextfx(420, 80, 125, "next", true, "", true);
stop();
Frame 59
functions.killtextfx();
functions.createtextfx(420, 290, 125, "next", true, "", true);
stop();
Frame 60
functions.killtextfx();
functions.createtextfx(40, 60, 125, "next", true, "", true);
stop();
Frame 61
functions.killtextfx();
functions.createtextfx(420, 290, 125, "back", true, "", true);
stop();
Frame 62
functions.killtextfx();
gotoAndPlay (34);
Frame 63
scud._visible = false;
missile._visible = false;
drone0._visible = false;
display0._visible = false;
display0.duplicateMovieClip("display", 5000);
display.display = mydisplay;
fadeArray = [0, 0, 0, 1];
fadeSpeed = 2;
mscudsleft = 0;
scscale = scscaleArray[difficulty];
scspeed = scspeedArray[difficulty];
msmax = 8;
msspeed = msspeedArray[difficulty];
msdelaymin = 25;
msdelaymax = 25;
Instance of Symbol 163 MovieClip "scud" in Frame 63
onClipEvent (load) {
ratio = 0.1;
}
Frame 65
level++;
if ((level % 3) == 0) {
splitchance = 0.75;
droneshow = false;
} else {
splitchance = 0.25;
msdelaymin--;
if (msdelaymin < 15) {
msdelaymin = 15;
}
msdelaymax++;
if (35 < msdelaymax) {
msdelaymax = 35;
}
if (1 < level) {
droneshow = true;
drpointer._x = (Math.random() * 540) + 20;
drpointer._y = ((-Math.random()) * 50) - 50;
drpointer.gotoAndPlay(2);
drone0.duplicateMovieClip("drone", 1000);
drone._x = Math.random() * 560;
drone.launch = 1;
}
}
msdone = false;
mslaunched = 0;
msmax = msmax + 2;
scudsleft = msmax + 3;
scspeed = scspeed + scspeedplusArray[difficulty];
msspeed = msspeed + msspeedplusArray[difficulty];
if (0.0065 < msspeed) {
msspeed = 0.0065;
}
Frame 66
if (mydisplay == 0) {
tfxtext = "Level:" + display.mylevel.mylevel;
} else {
tfxtext = "Level:" + level;
}
functions.createtextfx(155, 125, 275, tfxtext, false, "", false);
if (difficulty) {
tfxtext = "hard";
} else {
tfxtext = "soft";
}
functions.createtextfx(150, 154, 200, tfxtext, false, "", false);
t = getTimer();
Frame 68
if (getTimer() < (t + 2000)) {
gotoAndPlay(_currentframe - 1);
} else {
functions.killtextfx();
t = 1;
}
Frame 70
t++;
if (((Math.random() * msdelaymax) + msdelaymin) < t) {
t = 1;
if (Math.random() < splitchance) {
mscansplit = 1;
} else {
mscansplit = 0;
}
functions.launchmissile(Math.random() * 560, 0, (Math.random() * 540) + 10, 420, msspeed, mscansplit);
}
if (msdone == false) {
gotoAndPlay(_currentframe - 1);
} else if (droneshow) {
drone.gotoAndPlay("fade");
}
Frame 72
if (msarray.length) {
gotoAndPlay(_currentframe - 1);
} else {
cursor1.gotoAndStop(2);
}
Frame 74
stop();
Frame 75
gameover = true;
cursor1.gotoAndStop(2);
functions.createtextfx(125, 125, 275, "Game over", false, "", false);
if (mydisplay == 0) {
tfxtext = "Score:" + display.myscore.myscore;
} else {
tfxtext = "Score:" + score;
}
functions.createtextfx(123, 185, 200, tfxtext, false, "", false);
_root.display.removeMovieClip();
t = getTimer();
Frame 78
if (getTimer() < (t + 3000)) {
gotoAndPlay(_currentframe - 1);
} else {
functions.killtextfx();
var i = 1;
while (i < 7) {
functions.baserepair(i);
functions.baserepair(i);
i++;
}
if (!highscoring) {
gotoAndPlay (34);
}
}
Frame 79
Frame 80
functions.killtextfx();
gotoAndPlay (34);
Symbol 19 MovieClip [mcCursor] Frame 1
stop();
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip [mcCursor] Frame 1
onClipEvent (load) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
updateAfterEvent();
}
onClipEvent (mouseMove) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
updateAfterEvent();
}
Symbol 23 MovieClip Frame 1
if (launch) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 23 MovieClip Frame 2
snd1 = new Sound(snd1);
snd2 = new Sound(snd2);
snd3 = new Sound(snd3);
snd4 = new Sound(snd4);
snd1.attachSound("loop1");
snd2.attachSound("loop2");
snd3.attachSound("loop3");
snd4.attachSound("loop4");
sndVol1 = 0;
sndVol2 = 0;
sndVol3 = 0;
sndVol4 = 0;
snd1.setVolume(sndVol1);
snd2.setVolume(sndVol2);
snd3.setVolume(sndVol3);
snd4.setVolume(sndVol4);
snd1.start(0, 9999);
snd2.start(0, 9999);
snd3.start(0, 9999);
snd4.start(0, 9999);
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 2
onClipEvent (enterFrame) {
var i;
i = 1;
while (i < 5) {
if (_root.fadeArray[i - 1]) {
_parent["sndVol" + i] = _parent["sndVol" + i] + _root.fadeSpeed;
if (100 < _parent["sndVol" + i]) {
_parent["sndVol" + i] = 100;
}
} else {
_parent["sndVol" + i] = _parent["sndVol" + i] - _root.fadeSpeed;
if (_parent["sndVol" + i] < 0) {
_parent["sndVol" + i] = 0;
}
}
i++;
}
}
Symbol 23 MovieClip Frame 4
snd1.setVolume(sndVol1);
snd2.setVolume(sndVol2);
snd3.setVolume(sndVol3);
snd4.setVolume(sndVol4);
gotoAndPlay(_currentframe - 1);
Symbol 25 MovieClip Frame 1
if (launch) {
play();
} else {
stop();
}
Symbol 25 MovieClip Frame 2
myrnd = 255 - (math.random() * 150);
myColorTransform.rb = (myColorTransform.gb = (myColorTransform.bb = myrnd));
mystarcolor.setTransform(myColorTransform);
Symbol 25 MovieClip Frame 4
gotoAndPlay (2);
Symbol 28 MovieClip Frame 8
stop();
Symbol 29 MovieClip Frame 1
function createtwinkle() {
var i;
i = 1;
while (i < 8) {
_root.twinkle0.duplicateMovieClip("twinkle" + i, i);
_root["twinkle" + i]._x = (Math.random() * 540) + 10;
_root["twinkle" + i]._y = (Math.random() * 320) + 10;
_root["twinkle" + i]._xscale = (Math.random() * 65) + 65;
_root["twinkle" + i]._yscale = (Math.random() * 65) + 65;
_root["twinkle" + i].launch = 1;
i++;
}
}
function createtextfx(xpos, ypos, scale, text, isbutt, jump, playme) {
tfx++;
if (10 < tfx) {
tfx = 1;
}
_root.textfx.duplicateMovieClip("textfx" + tfx, 4000 + tfx);
_root["textfx" + tfx]._x = xpos;
_root["textfx" + tfx]._y = ypos;
_root["textfx" + tfx].scale = scale;
_root["textfx" + tfx].text = text;
_root["textfx" + tfx].isbutt = isbutt;
_root["textfx" + tfx].jump = jump;
_root["textfx" + tfx].playme = playme;
_root["textfx" + tfx].launch = 1;
}
function killtextfx() {
var i = 0;
while (i < _root.tfxarray.length) {
_root.tfxarray[i].gotoAndPlay("hide");
i++;
}
_root.tfxarray = [];
}
function baserepair(base) {
if (_root.basestatearray[base - 1] != 2) {
if (_root.basestatearray[base - 1] == 0) {
_root.repair = _root.repair - 60;
_root["base" + base].gotoAndStop(2);
_root["basehit" + base].gotoAndStop(2);
_root.basearray.push(_root["base" + base]);
_root.basehitarray.push(_root["basehit" + base]);
} else {
_root.repair = _root.repair - 40;
_root["base" + base].gotoAndStop(1);
_root["basehit" + base].gotoAndStop(1);
_root.cursor1.gotoAndStop(2);
}
_root.basestatearray[base - 1]++;
if (_root.gameover == false) {
_root.bonus.checkbasestate();
_root.bonus.checkrepair();
if (_root.bonus.canrepair) {
_root.bonus.gotoAndPlay("repair");
} else {
_root.bonus.gotoAndPlay("norepair");
}
_root.bonus.mysound.setPan(Math.floor((_root["base" + base]._x - 280) / 4));
_root.bonus.mysound.attachSound("repair");
_root.bonus.mysound.start();
}
}
}
function launchscud(stopx, stopy, megascud) {
sc++;
if (50 < sc) {
sc = 1;
}
_root.scud.duplicateMovieClip("scud" + sc, 200 + sc);
_root["scud" + sc].endx = 561 - stopx;
_root["scud" + sc].endy = 682 - stopy;
_root["scud" + sc].stopx = stopx;
_root["scud" + sc].stopy = stopy;
_root["scud" + sc].megascud = megascud;
_root["scud" + sc].launch = true;
}
function baseboom(base, a, b, c, d, e) {
var i;
var scale;
_root["base" + base].boom0._visibility = false;
_root["base" + base].boom0.stop();
i = 1;
while (i < ((Math.random() * 2) + 4)) {
boom++;
if (50 < boom) {
boom = 1;
}
_root["base" + base].boom0.duplicateMovieClip("boom" + i, 100 + boom);
_root["base" + base]["boom" + i]._x = (Math.random() * a) + b;
_root["base" + base]["boom" + i]._y = -((Math.random() * c) + d);
scale = (Math.random() * 50) + e;
_root["base" + base]["boom" + i]._xscale = scale;
_root["base" + base]["boom" + i]._yscale = scale;
_root["base" + base]["boom" + i].delay = (Math.random() * 6) + ((i - 1) * 5);
i++;
}
i = 0;
while (i < _root.basearray.length) {
if (_root["base" + base] == _root.basearray[i]) {
_root.basearray.splice(i, 1);
_root.basehitarray.splice(i, 1);
break;
}
i++;
}
_root.basestatearray[base - 1] = 0;
}
function shieldcrash(base) {
if (_root.gameover == false) {
_root["basehit" + base].nextFrame();
_root.basestatearray[base - 1] = 1;
}
}
function launchmissile(startx, starty, stopx, stopy, msspeed, mscansplit) {
ms++;
if (50 < ms) {
ms = 1;
}
if (_root.mslaunched < _root.msmax) {
_root.mslaunched++;
_root.missile.duplicateMovieClip("missile" + ms, 50 + ms);
msspeednew = msspeed + (Math.random() * (msspeed / _root.msspeedvarArray[_root.difficulty]));
_root["missile" + ms].startx = startx;
_root["missile" + ms].starty = starty;
_root["missile" + ms].endx = (startx * 2) - stopx;
_root["missile" + ms].endy = (starty * 2) - stopy;
_root["missile" + ms].msspeed = msspeednew;
_root["missile" + ms].cansplit = mscansplit;
_root["missile" + ms].launch = true;
} else {
_root.msdone = true;
}
}
function setDigits(myTarget, myVariable, myValue, myDigits) {
var i;
var leading;
value = eval (myValue);
i = 1;
while (i < myDigits) {
if (value < Math.pow(10, i)) {
leading = "0" + leading;
}
i++;
}
Set((eval (myTarget) + ".") + myVariable, leading + value);
}
Symbol 35 MovieClip Frame 38
if (_parent.playme == true) {
gotoAndPlay (1);
} else {
stop();
}
Symbol 37 Button
on (release) {
_root.jump = _parent.jump;
with (_root) {
gotoAndPlay(_currentframe + 1);
}
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 39 MovieClip Frame 1
kerntable = new Array("0", 0, 14, "1", 0, 14, "2", 0, 14, "3", 0, 14, "4", 0, 14, "5", 0, 14, "6", 0, 14, "7", 0, 14, "8", 0, 14, "9", 0, 14, "F", 0, 14.5, "G", 0, 15, "H", 0, 15, "L", 0, 15, "M", 0, 16.5, "O", 0, 15, "P", 0, 15.5, "Q", 0, 15, "R", 0, 15.5, "S", 0, 14.5, "X", 0, 14.5, " ", 0, 14, "a", 0.5, 14, "b", 0, 14, "c", 0, 14, "e", 0, 14, "g", 1, 14, "h", 0, 14, "i", 3.5, 10.5, "k", 0, 14, "l", 3, 11, "m", -0.5, 16.5, "n", 0, 14, "o", 0, 14, "p", 0, 14, "r", 0, 14, "s", 0, 14, "t", 3, 12, "u", 0, 14, "v", 0.5, 14, "x", 0, 13.5, "y", 0.5, 14);
i = (x = 0);
char.stop();
char._visible = false;
if (launch) {
_root.tfxarray.push(this);
} else {
stop();
}
Symbol 39 MovieClip Frame 2
mycharacter = text.charAt(i);
j = 0;
while (j < kerntable.length) {
if (mycharacter == kerntable[j * 3]) {
mykerning1 = kerntable[(j * 3) + 1] * (scale / 100);
mykerning2 = kerntable[(j * 3) + 2] * (scale / 100);
break;
}
j++;
}
x = x - mykerning1;
char.duplicateMovieClip("char" + i, i + 100);
this["char" + i]._xscale = scale;
this["char" + i]._yscale = scale;
this["char" + i]._x = x;
if (isNaN(mycharacter)) {
this["char" + i].letter2._visible = false;
this["char" + i].letter.mycharacter = mycharacter;
} else {
this["char" + i].letter._visible = false;
this["char" + i].letter2.mycharacter = mycharacter;
}
x = x + mykerning2;
Symbol 39 MovieClip Frame 3
i++;
if (i < text.length) {
gotoAndPlay(_currentframe - 1);
} else {
if (isbutt == false) {
button._visible = false;
} else {
button._width = x;
button._height = button._height * (scale / 100);
}
stop();
}
Symbol 39 MovieClip Frame 4
myalpha = 100;
if (isbutt) {
_root.cursor1.gotoAndStop(2);
}
Symbol 39 MovieClip Frame 6
myalpha = myalpha - 10;
if (0 >= myalpha) {
this.removeMovieClip();
} else {
_alpha = myalpha;
gotoAndPlay(_currentframe - 1);
}
Symbol 47 MovieClip Frame 20
stop();
Symbol 51 MovieClip Frame 2
delay--;
if (0 < delay) {
gotoAndPlay (1);
} else {
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
mysound.setPan(Math.floor((_parent._x - 280) / 4));
mysound.attachSound("deton2");
mysound.start();
}
Symbol 51 MovieClip Frame 18
stop();
this.removeMovieClip();
Symbol 54 MovieClip Frame 13
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
_root.functions.shieldcrash(1);
stop();
Symbol 55 MovieClip Frame 3
_root.functions.baseboom(1, 44, 21, 16, 6, 50);
Symbol 55 MovieClip Frame 15
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
_root.functions.shieldcrash(2);
stop();
Symbol 60 MovieClip Frame 3
_root.functions.baseboom(2, 30, 20, 13, 5, 40);
Symbol 60 MovieClip Frame 15
stop();
Symbol 65 MovieClip Frame 13
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
_root.functions.shieldcrash(3);
stop();
Symbol 66 MovieClip Frame 3
_root.functions.baseboom(3, 25, 25, 15, 5, 30);
Symbol 66 MovieClip Frame 15
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
_root.functions.shieldcrash(4);
stop();
Symbol 71 MovieClip Frame 3
_root.functions.baseboom(4, 25, 20, 11, 3, 30);
Symbol 71 MovieClip Frame 15
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
_root.functions.shieldcrash(5);
stop();
Symbol 76 MovieClip Frame 3
_root.functions.baseboom(5, 34, 21, 12, 5, 40);
Symbol 76 MovieClip Frame 15
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
_root.functions.shieldcrash(6);
stop();
Symbol 81 MovieClip Frame 3
_root.functions.baseboom(6, 40, 25, 14, 7, 50);
Symbol 81 MovieClip Frame 15
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 92 Button
on (release) {
getURL ("http://www.juggernart.com", _blank);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 9
stop();
Symbol 95 Button
on (press) {
gq.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 99 MovieClip Frame 1
var i = 0;
while (i < 3) {
if (_root.myquality == _root.qualityArray[i]) {
gotoAndStop(i + 2);
break;
}
i++;
}
Symbol 99 MovieClip Frame 2
_root.myquality = (_root._quality = "LOW");
Symbol 99 MovieClip Frame 3
_root.myquality = (_root._quality = "MEDIUM");
Symbol 99 MovieClip Frame 4
_root.myquality = (_root._quality = "HIGH");
Symbol 99 MovieClip Frame 5
gotoAndStop (2);
Symbol 103 MovieClip Frame 1
if (_root.highscoring) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 103 MovieClip Frame 2
_root.highscoring = 1;
Symbol 103 MovieClip Frame 3
_root.highscoring = 0;
Symbol 103 MovieClip Frame 4
gotoAndStop (2);
Symbol 105 Button
on (press) {
bm.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 106 MovieClip Frame 1
if (_root.bgmusic) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 106 MovieClip Frame 2
if (_root.bgmusic == 0) {
_root.music.duplicateMovieClip("music1", 25);
_root.music1.launch = 1;
}
_root.bgmusic = 1;
Symbol 106 MovieClip Frame 3
_root.bgmusic = 0;
stopAllSounds();
_root.music1.removeMovieClip();
Symbol 106 MovieClip Frame 4
gotoAndStop (2);
Symbol 108 Button
on (press) {
sc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 109 MovieClip Frame 1
if (_root.mydisplay) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 109 MovieClip Frame 2
_root.mydisplay = 0;
Symbol 109 MovieClip Frame 3
_root.mydisplay = 1;
Symbol 109 MovieClip Frame 4
gotoAndStop (2);
Symbol 111 Button
on (press) {
cc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 112 MovieClip Frame 1
if (_root.custcursor) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 112 MovieClip Frame 2
_root.custcursor = 1;
Mouse.hide();
_root.attachMovie("mcCursor", "cursor1", 9999);
Symbol 112 MovieClip Frame 3
_root.custcursor = 0;
Mouse.show();
_root.cursor1.removeMovieClip();
Symbol 112 MovieClip Frame 4
gotoAndStop (2);
Symbol 114 Button
on (press) {
ts.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 115 MovieClip Frame 1
if (_root.twinkle) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 115 MovieClip Frame 2
_root.twinkle = 1;
_root.functions.createtwinkle();
Symbol 115 MovieClip Frame 3
_root.twinkle = 0;
var i = 1;
while (i < 8) {
_root["twinkle" + i].removeMovieClip();
i++;
}
Symbol 115 MovieClip Frame 4
gotoAndStop (2);
Symbol 117 Button
on (press) {
dc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 120 MovieClip Frame 1
if (_root.difficulty) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 120 MovieClip Frame 2
_root.difficulty = 0;
Symbol 120 MovieClip Frame 3
_root.difficulty = 1;
Symbol 120 MovieClip Frame 4
gotoAndStop (2);
Symbol 148 Button
on (press) {
if (Key.isDown(Key.SPACE)) {
megascud = true;
} else {
megascud = false;
}
if (megascud) {
if (0 < mscudsleft) {
noscud = false;
mscudsleft--;
functions.launchscud(_xmouse, _ymouse, megascud);
} else {
noscud = true;
}
} else if (0 < scudsleft) {
noscud = false;
scudsleft--;
functions.launchscud(_xmouse, _ymouse, megascud);
} else {
noscud = true;
}
if (noscud) {
mysound = new Sound(_root.functions);
mysound.setVolume(_root.volsfx);
mysound.setPan(0);
mysound.attachSound("noscud");
mysound.start();
}
}
on (rollOver) {
cursor1.gotoAndStop(1);
}
on (rollOut) {
cursor1.gotoAndStop(2);
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 1
if (_parent._parent.cansplit) {
gotoAndPlay (3);
}
Symbol 151 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 4
stop();
Instance of Symbol 151 MovieClip "line_gr" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._parent.startx;
_y = _parent._parent.starty;
_xscale = (_parent._parent.p2._x - _parent._parent.startx);
_yscale = (_parent._parent.p2._y - _parent._parent.starty);
}
Symbol 153 MovieClip Frame 1
if (launch) {
_root.msarray.push(this);
bang = false;
p2._x = startx;
p2._y = starty;
} else {
stop();
}
Symbol 153 MovieClip Frame 2
newx = p2._x - ((endx - p2._x) * msspeed);
newy = p2._y - ((endy - p2._y) * msspeed);
p2._x = newx;
p2._y = newy;
if (cansplit) {
if ((Math.random() * 999) < (5 + _root.level)) {
cansplit = 0;
if (_root.mslaunched < _root.msmax) {
line_cl.line_gr.gotoAndPlay(2);
}
if (_root.level < 10) {
splitsplit = 1;
} else {
splitsplit = 0;
}
_root.functions.launchmissile(newx, newy, (Math.random() * 540) + 10, 420, msspeed, splitsplit);
}
}
Symbol 153 MovieClip Frame 3
var i;
i = 0;
while (i < _root.scudarray.length) {
if (_root.scudarray[i].hitTest(newx, newy, true)) {
bang = true;
_root.score = _root.score + 25;
break;
}
i++;
}
i = 0;
while (i < _root.basearray.length) {
if (_root.basehitarray[i].hitTest(newx, newy, true)) {
_root.basearray[i].play();
bang = true;
break;
}
i++;
}
if (_root.lunarhit.hitTest(newx, newy, true) == true) {
bang = true;
_root.repair = _root.repair - 5;
if (_root.repair < 0) {
_root.repair = 0;
}
_root.score = _root.score - 5;
if (_root.score < 0) {
_root.score = 0;
}
}
if (bang == false) {
gotoAndPlay(_currentframe - 1);
}
Symbol 153 MovieClip Frame 4
p2.play();
Symbol 153 MovieClip Frame 22
_root.msarray.shift();
this.removeMovieClip();
Symbol 158 MovieClip Frame 18
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 160 MovieClip Frame 2
stop();
Instance of Symbol 160 MovieClip "line_gr" in Symbol 161 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = 280.5;
_y = 341;
_xscale = (_parent._parent._parent.p2._x - 280.5);
_yscale = (_parent._parent._parent.p2._y - 341);
}
Symbol 162 MovieClip Frame 18
stop();
Symbol 163 MovieClip Frame 2
if (launch) {
_root.scudarray.push(this);
p2._xscale = _root.scscale;
p2._yscale = _root.scscale;
scspeed = _root.scspeed;
if (megascud) {
scspeed = scspeed * 2;
p2._xscale = p2._xscale * 1.5;
p2._yscale = p2._yscale * 1.5;
}
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
mysound.attachSound("sclaunch");
mysound.start();
} else {
stop();
}
Symbol 163 MovieClip Frame 3
newx = p2._x - ((endx - p2._x) * scspeed);
newy = p2._y - ((endy - p2._y) * scspeed);
if (stopy >= newy) {
reached = 1;
newx = stopx;
newy = stopy;
}
p2._x = newx;
p2._y = newy;
mysound.setPan(Math.floor((newx - 280) / 4));
Symbol 163 MovieClip Frame 4
if (reached != 1) {
gotoAndPlay(_currentframe - 1);
}
Symbol 163 MovieClip Frame 5
p2.play();
mysound.attachSound("deton");
mysound.start();
Symbol 163 MovieClip Frame 28
_root.scudarray.shift();
this.removeMovieClip();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
("c" < (b >= undefined)) || (1());
if (_root.droneshow) {
if (_root.drone.hitTest(_x, _y, true)) {
if (_root.drone.disappear == false) {
mysound = new Sound(_root.drone);
mysound.setVolume(_root.volsfx);
mysound.setPan(Math.floor((_x - 280) / 4));
mysound.attachSound("drmove");
mysound.start();
}
_x = ((Math.random() * 540) + 20);
_y = ((Math.random() * 240) + 40);
}
}
Symbol 164 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 168 MovieClip Frame 2
stop();
Symbol 168 MovieClip Frame 4
stop();
Symbol 168 MovieClip Frame 6
stop();
Symbol 169 MovieClip Frame 2
stop();
Symbol 169 MovieClip Frame 4
stop();
Symbol 169 MovieClip Frame 6
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 4
stop();
Symbol 170 MovieClip Frame 6
stop();
Instance of Symbol 168 MovieClip "line1" in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._parent.p1._x;
_y = _parent._parent.p1._y;
_xscale = (_parent._parent.p2._x - _parent._parent.p1._x);
_yscale = (_parent._parent.p2._y - _parent._parent.p1._y);
}
Instance of Symbol 169 MovieClip "line2" in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._parent.p2._x;
_y = _parent._parent.p2._y;
_xscale = (_parent._parent.p3._x - _parent._parent.p2._x);
_yscale = (_parent._parent.p3._y - _parent._parent.p2._y);
}
Instance of Symbol 170 MovieClip "line3" in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._parent.p3._x;
_y = _parent._parent.p3._y;
_xscale = (_parent._parent.p1._x - _parent._parent.p3._x);
_yscale = (_parent._parent.p1._y - _parent._parent.p3._y);
}
Symbol 172 MovieClip Frame 6
("c" < (b >= undefined)) || (1());
if (_parent._parent.bang == false) {
gotoAndPlay (1);
} else {
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
mysound.setPan(Math.floor((_parent._parent._x - 280) / 4));
mysound.attachSound("drdead");
mysound.start();
}
Symbol 172 MovieClip Frame 11
stop();
Symbol 173 MovieClip Frame 40
gotoAndPlay (1);
Symbol 174 MovieClip Frame 1
("c" < (b >= undefined)) || (1());
if (launch) {
t = 1;
delay = ((Math.random() * 30) * _root.level) + (13 * _root.level);
bang = false;
disappear = false;
iam = Math.floor(Math.random() * 3);
} else {
stop();
}
Symbol 174 MovieClip Frame 3
delay--;
if (0 < delay) {
gotoAndPlay(_currentframe - 1);
}
Symbol 174 MovieClip Frame 4
("c" < (b >= undefined)) || (1());
var i;
i = 1;
while (i < 4) {
d3d.rotate.linemc["line" + i].gotoAndPlay((iam * 2) + 1);
i++;
}
oldscspeed = _root.scspeed;
oldscscale = _root.scscale;
oldscudsleft = _root.scudsleft;
if (iam == 0) {
_root.scspeed = _root.scspeed - (_root.scspeed * 0.3);
} else if (iam == 1) {
_root.scscale = _root.scscale - (_root.scscale * 0.2);
} else {
scudsrobbed = Math.floor(_root.scudsleft * 0.2);
_root.scudsleft = _root.scudsleft - scudsrobbed;
_root.msmax = _root.msmax + scudsrobbed;
}
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
mysound.setPan(Math.floor((_x - 280) / 4));
Symbol 174 MovieClip Frame 6
("c" < (b >= undefined)) || (1());
var i;
if (_root.droneshow) {
i = 0;
while (i < _root.scudarray.length) {
if (_root.scudarray[i].hitTest(_x, _y, true)) {
bang = true;
_root.droneshow = false;
_root.score = _root.score + 1000;
_root.repair = _root.repair + 20;
break;
}
i++;
}
}
if (bang == false) {
t++;
if (((Math.random() * (_root.msdelaymax * 2.5)) + (_root.msdelaymin * 2.5)) < t) {
t = 1;
_root.functions.launchmissile(_x, _y, (Math.random() * 540) + 10, 420, _root.msspeed, true);
}
_x = (_x + ((_root.drpointer._x - _x) * _root.dronespeedArray[_root.difficulty]));
_y = (_y + ((_root.drpointer._y - _y) * _root.dronespeedArray[_root.difficulty]));
mysound.setPan(Math.floor((_x - 280) / 4));
gotoAndPlay(_currentframe - 1);
} else {
_root.drpointer.gotoAndStop(1);
if (0 < scudsrobbed) {
_root.scudsleft = _root.scudsleft + scudsrobbed;
}
}
Symbol 174 MovieClip Frame 7
("c" < (b >= undefined)) || (1());
if (bang == false) {
mysound.attachSound("drdisappear");
mysound.start();
}
disappear = true;
Symbol 174 MovieClip Frame 13
("c" < (b >= undefined)) || (1());
_root.scspeed = oldscspeed;
_root.scscale = oldscscale;
this.removeMovieClip();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
("c" < (b >= undefined)) || (1());
if (_root.droneshow) {
if (_root.drone.hitTest(_x, _y, true)) {
if (_root.drone.disappear == false) {
mysound = new Sound(_root.drone);
mysound.setVolume(_root.volsfx);
mysound.setPan(Math.floor((_x - 280) / 4));
mysound.attachSound("drmove");
mysound.start();
}
_x = ((Math.random() * 540) + 20);
_y = ((Math.random() * 240) + 40);
}
}
Symbol 175 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 185 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 185 MovieClip Frame 2
stop();
Symbol 185 MovieClip Frame 3
stop();
Symbol 188 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 188 MovieClip Frame 2
stop();
Symbol 188 MovieClip Frame 3
stop();
Symbol 191 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 191 MovieClip Frame 2
stop();
Symbol 191 MovieClip Frame 3
stop();
Symbol 196 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 196 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 202 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 3
stop();
Symbol 203 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 203 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 3
stop();
Symbol 204 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 205 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 205 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 3
stop();
Symbol 206 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 207 MovieClip Frame 1
if (_visible == false) {
stop();
} else {
gotoAndStop(display + 2);
}
Symbol 207 MovieClip Frame 2
stop();
Instance of Symbol 185 MovieClip "mylevel" in Symbol 207 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.level", 2);
}
Instance of Symbol 188 MovieClip "myscore" in Symbol 207 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.score", 6);
}
Instance of Symbol 191 MovieClip "myrepair" in Symbol 207 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Instance of Symbol 196 MovieClip "myscudsleft" in Symbol 207 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.scudsleft", 3);
}
Instance of Symbol 201 MovieClip "mymscudsleft" in Symbol 207 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.mscudsleft", 3);
}
Symbol 207 MovieClip Frame 3
stop();
Symbol 262 Button
on (press) {
if (bdestroyed == 6) {
gameover = true;
}
gotoAndPlay (79);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 263 Button
on (press) {
_root.functions.baserepair(1);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 265 Button
on (press) {
_root.functions.baserepair(2);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 267 Button
on (press) {
_root.functions.baserepair(3);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 269 Button
on (press) {
_root.functions.baserepair(4);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 271 Button
on (press) {
_root.functions.baserepair(5);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 273 Button
on (press) {
_root.functions.baserepair(6);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 275 MovieClip Frame 1
function checkbasestate() {
var i;
bintact = (bdamaged = (bdestroyed = 0));
i = 0;
while (i < 6) {
if (_root.basestatearray[i] == 2) {
bintact++;
} else if (_root.basestatearray[i] == 1) {
bdamaged++;
} else {
bdestroyed++;
}
i++;
}
}
function checkrepair() {
if (bdestroyed == 0) {
if (bdamaged == 0) {
canrepair = false;
} else if (_root.repair >= 40) {
canrepair = true;
} else {
canrepair = false;
}
} else if (bdestroyed == 6) {
if (_root.repair >= 60) {
canrepair = true;
} else {
canrepair = false;
gameover = true;
}
} else if (bdamaged == 0) {
if (_root.repair >= 60) {
canrepair = true;
} else {
canrepair = false;
}
} else if (_root.repair >= 40) {
canrepair = true;
} else {
canrepair = false;
}
}
pscuds = "015";
pmscuds = "035";
pbdamaged = 250;
pbintact = 500;
prepair = 10;
pmega = 1;
gameover = false;
_root.fadeArray = [0, 1, 0, 0];
_root.fadeSpeed = 2;
checkbasestate();
tpscuds = _root.scudsleft * pscuds;
tpmscuds = _root.mscudsleft * pmscuds;
tpbdamaged = bdamaged * pbdamaged;
tpbintact = bintact * pbintact;
totalbonus = ((tpscuds + tpmscuds) + tpbdamaged) + tpbintact;
tprepair = bintact * prepair;
tpmega = bintact * pmega;
Symbol 275 MovieClip Frame 5
function showrow() {
mysound.attachSound("showlist");
mysound.start();
time = getTimer();
}
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
time = getTimer();
Symbol 275 MovieClip Frame 7
if (getTimer() < (time + 250)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 8
showrow();
Symbol 275 MovieClip Frame 10
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 11
showrow();
Instance of Symbol 215 MovieClip "tpscuds" in Symbol 275 MovieClip Frame 11
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpscuds", 4);
}
Instance of Symbol 217 MovieClip "myscudsleft" in Symbol 275 MovieClip Frame 11
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.scudsleft", 3);
}
Symbol 275 MovieClip Frame 13
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 14
showrow();
Instance of Symbol 221 MovieClip "mymscudsleft" in Symbol 275 MovieClip Frame 14
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.mscudsleft", 3);
}
Instance of Symbol 223 MovieClip "tpmscuds" in Symbol 275 MovieClip Frame 14
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmscuds", 4);
}
Symbol 275 MovieClip Frame 16
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 17
showrow();
Instance of Symbol 227 MovieClip "bdamaged" in Symbol 275 MovieClip Frame 17
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.bdamaged", 3);
}
Instance of Symbol 229 MovieClip "tpbdamaged" in Symbol 275 MovieClip Frame 17
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpbdamaged", 4);
}
Symbol 275 MovieClip Frame 19
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 20
showrow();
Instance of Symbol 233 MovieClip "bintact" in Symbol 275 MovieClip Frame 20
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.bintact", 3);
}
Instance of Symbol 235 MovieClip "tpbintact" in Symbol 275 MovieClip Frame 20
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpbintact", 4);
}
Symbol 275 MovieClip Frame 22
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 23
showrow();
Instance of Symbol 239 MovieClip "totalbonus" in Symbol 275 MovieClip Frame 23
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.bonus.totalbonus", 4);
}
Symbol 275 MovieClip Frame 25
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 26
showrow();
Symbol 275 MovieClip Frame 28
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 29
_root.repair = _root.repair + tprepair;
showrow();
Instance of Symbol 244 MovieClip "tprepair" in Symbol 275 MovieClip Frame 29
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tprepair", 3);
}
Symbol 275 MovieClip Frame 31
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 32
_root.mscudsleft = _root.mscudsleft + tpmega;
showrow();
Instance of Symbol 246 MovieClip "tpmega" in Symbol 275 MovieClip Frame 32
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmega", 3);
}
Symbol 275 MovieClip Frame 34
if (getTimer() < (time + 2000)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 36
function countdown() {
if (100 < totalbonus) {
totalbonus = totalbonus - 100;
_root.score = _root.score + 100;
playsccountsnd();
gotoAndPlay(_currentframe - 1);
} else {
if (0 < totalbonus) {
playsccountsnd();
}
_root.score = _root.score + totalbonus;
totalbonus = 0;
}
}
function playsccountsnd() {
mysound.attachSound("scorecount");
mysound.start();
}
countdown();
Symbol 275 MovieClip Frame 44
time = getTimer();
if ((_root.level % 5) != 0) {
gotoAndPlay (61);
}
Symbol 275 MovieClip Frame 46
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 47
showrow();
Symbol 275 MovieClip Frame 49
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 50
tprepair = _root.level * 10;
_root.repair = _root.repair + tprepair;
showrow();
Instance of Symbol 244 MovieClip "tprepair" in Symbol 275 MovieClip Frame 50
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tprepair", 3);
}
Symbol 275 MovieClip Frame 52
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 53
tpmega = Math.floor(_root.level / 2);
_root.mscudsleft = _root.mscudsleft + tpmega;
showrow();
Instance of Symbol 246 MovieClip "tpmega" in Symbol 275 MovieClip Frame 53
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmega", 3);
}
Symbol 275 MovieClip Frame 55
if (getTimer() < (time + 1500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 60
time = getTimer();
Symbol 275 MovieClip Frame 62
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
} else if (_root.level == _root.leveltoreachArray[_root.difficulty]) {
gameover = true;
mysound.attachSound("fanfare");
mysound.start();
gotoAndPlay (63);
} else {
checkrepair();
if (canrepair == false) {
gotoAndPlay (79);
} else {
mysound.attachSound("repairmode");
mysound.start();
_root.fadeSpeed = 3;
_root.fadeArray = [1, 0, 0, 0];
gotoAndPlay (77);
}
}
Symbol 275 MovieClip Frame 63
time = getTimer();
totalbonus = _root.repair * 10;
Symbol 275 MovieClip Frame 65
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 66
showrow();
Symbol 275 MovieClip Frame 68
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 69
showrow();
Instance of Symbol 253 MovieClip "myrepair" in Symbol 275 MovieClip Frame 69
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Instance of Symbol 254 MovieClip "totalbonus" in Symbol 275 MovieClip Frame 69
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.bonus.totalbonus", 5);
}
Symbol 275 MovieClip Frame 71
if (getTimer() < (time + 6000)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 73
countdown();
Symbol 275 MovieClip Frame 76
gotoAndPlay (79);
Symbol 275 MovieClip Frame 77
var i = 0;
while (i < 6) {
if (_root.basestatearray[i] == 2) {
this["repair" + i]._visible = false;
} else if (_root.basestatearray[i] == 1) {
if (_root.repair < 40) {
this["repair" + i]._visible = false;
}
} else if (_root.repair < 60) {
this["repair" + i]._visible = false;
}
i++;
}
Instance of Symbol 253 MovieClip "myrepair" in Symbol 275 MovieClip Frame 77
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Symbol 275 MovieClip Frame 78
stop();
Symbol 275 MovieClip Frame 83
_root.fadeSpeed = 1;
if (gameover) {
_root.fadeArray = [0, 0, 1, 0];
_root.gotoAndPlay("gameover");
} else {
_root.fadeArray = [0, 0, 0, 1];
_root.gotoAndPlay("dolevel");
}
stop();