Frame 1
stop();
Frame 6
Frame 8
qualityArray = new Array("LOW", "MEDIUM", "HIGH");
myquality = qualityArray[1];
_quality = myquality;
highscoring = 1;
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 38 MovieClip "twinkle0" in Frame 19
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 20
functions.createtwinkle();
music.duplicateMovieClip("music1", 25);
music1.launch = 1;
Frame 22
if (_framesloaded < 61) {
gotoAndPlay(_currentframe - 1);
}
Frame 23
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 24
functions.killtextfx();
((jump == "soft") ? ((difficulty = 0)) : ((difficulty = 1)));
Instance of Symbol 71 MovieClip "base1" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 76 MovieClip "base2" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 81 MovieClip "base3" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 86 MovieClip "base4" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 91 MovieClip "base5" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Instance of Symbol 96 MovieClip "base6" in Frame 24
onClipEvent (load) {
_root.basearray.push(this);
}
Frame 39
fadeArray = [0, 0, 1, 0];
fadeSpeed = 2;
Instance of Symbol 98 MovieClip "basehit1" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 100 MovieClip "basehit2" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 102 MovieClip "basehit3" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 102 MovieClip "basehit4" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 100 MovieClip "basehit5" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Instance of Symbol 98 MovieClip "basehit6" in Frame 39
onClipEvent (load) {
_root.basehitarray.push(this);
}
Frame 50
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 51
copyright.gotoAndPlay("hide");
functions.killtextfx();
Frame 60
gotoAndPlay(jump);
Frame 61
fadeArray = [0, 1, 0, 0];
fadeSpeed = 2;
functions.createtextfx(420, 286, 125, "back", true, "", true);
stop();
Frame 62
functions.killtextfx();
gotoAndPlay ("m01");
Frame 63
fadeArray = [0, 1, 0, 0];
fadeSpeed = 2;
functions.createtextfx(420, 80, 125, "next", true, "", true);
stop();
Frame 64
functions.killtextfx();
functions.createtextfx(420, 290, 125, "next", true, "", true);
stop();
Frame 65
functions.killtextfx();
functions.createtextfx(40, 60, 125, "next", true, "", true);
stop();
Frame 66
functions.killtextfx();
functions.createtextfx(420, 290, 125, "back", true, "", true);
stop();
Frame 67
functions.killtextfx();
gotoAndPlay ("m01");
Frame 68
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;
Frame 70
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 71
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 73
if (getTimer() < (t + 2000)) {
gotoAndPlay(_currentframe - 1);
} else {
functions.killtextfx();
t = 1;
}
Frame 75
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 77
if (msarray.length) {
gotoAndPlay(_currentframe - 1);
} else {
cursor1.gotoAndStop(2);
}
Frame 79
stop();
Frame 80
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 83
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 ("m01");
}
}
Frame 100
stop();
Instance of Symbol 308 MovieClip in Frame 100
onClipEvent (load) {
scoreLocation = "_root.score";
gamename = "lunarcommand";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
}
Frame 101
functions.killtextfx();
gotoAndPlay ("m01");
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 33 MovieClip Frame 99
_root.play();
stop();
Symbol 36 MovieClip Frame 1
if (launch) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 36 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 35 MovieClip in Symbol 36 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 36 MovieClip Frame 4
snd1.setVolume(sndVol1);
snd2.setVolume(sndVol2);
snd3.setVolume(sndVol3);
snd4.setVolume(sndVol4);
gotoAndPlay(_currentframe - 1);
Symbol 38 MovieClip Frame 1
if (launch) {
play();
} else {
stop();
}
Symbol 38 MovieClip Frame 2
myrnd = 255 - (math.random() * 150);
myColorTransform.rb = (myColorTransform.gb = (myColorTransform.bb = myrnd));
mystarcolor.setTransform(myColorTransform);
Symbol 38 MovieClip Frame 4
gotoAndPlay (2);
Symbol 41 MovieClip Frame 8
stop();
Symbol 42 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 48 MovieClip Frame 38
if (_parent.playme == true) {
gotoAndPlay (1);
} else {
stop();
}
Symbol 50 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 52 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 52 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 52 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 52 MovieClip Frame 4
myalpha = 100;
if (isbutt) {
_root.cursor1.gotoAndStop(2);
}
Symbol 52 MovieClip Frame 6
myalpha = myalpha - 10;
if (0 >= myalpha) {
this.removeMovieClip();
} else {
_alpha = myalpha;
gotoAndPlay(_currentframe - 1);
}
Symbol 57 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 63 MovieClip Frame 20
stop();
Symbol 67 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 67 MovieClip Frame 18
stop();
this.removeMovieClip();
Symbol 70 MovieClip Frame 13
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
_root.functions.shieldcrash(1);
stop();
Symbol 71 MovieClip Frame 3
_root.functions.baseboom(1, 44, 21, 16, 6, 50);
Symbol 71 MovieClip Frame 15
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
_root.functions.shieldcrash(2);
stop();
Symbol 76 MovieClip Frame 3
_root.functions.baseboom(2, 30, 20, 13, 5, 40);
Symbol 76 MovieClip Frame 15
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
_root.functions.shieldcrash(3);
stop();
Symbol 81 MovieClip Frame 3
_root.functions.baseboom(3, 25, 25, 15, 5, 30);
Symbol 81 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
_root.functions.shieldcrash(4);
stop();
Symbol 86 MovieClip Frame 3
_root.functions.baseboom(4, 25, 20, 11, 3, 30);
Symbol 86 MovieClip Frame 15
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
_root.functions.shieldcrash(5);
stop();
Symbol 91 MovieClip Frame 3
_root.functions.baseboom(5, 34, 21, 12, 5, 40);
Symbol 91 MovieClip Frame 15
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
_root.functions.shieldcrash(6);
stop();
Symbol 96 MovieClip Frame 3
_root.functions.baseboom(6, 40, 25, 14, 7, 50);
Symbol 96 MovieClip Frame 15
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 105 Button
on (press) {
gq.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 109 MovieClip Frame 1
var i = 0;
while (i < 3) {
if (_root.myquality == _root.qualityArray[i]) {
gotoAndStop(i + 2);
break;
}
i++;
}
Symbol 109 MovieClip Frame 2
_root.myquality = (_root._quality = "LOW");
Symbol 109 MovieClip Frame 3
_root.myquality = (_root._quality = "MEDIUM");
Symbol 109 MovieClip Frame 4
_root.myquality = (_root._quality = "HIGH");
Symbol 109 MovieClip Frame 5
gotoAndStop (2);
Symbol 111 Button
on (press) {
hs.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 114 MovieClip Frame 1
if (_root.highscoring) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 114 MovieClip Frame 2
_root.highscoring = 1;
Symbol 114 MovieClip Frame 3
_root.highscoring = 0;
Symbol 114 MovieClip Frame 4
gotoAndStop (2);
Symbol 116 Button
on (press) {
bm.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 117 MovieClip Frame 1
if (_root.bgmusic) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 117 MovieClip Frame 2
if (_root.bgmusic == 0) {
_root.music.duplicateMovieClip("music1", 25);
_root.music1.launch = 1;
}
_root.bgmusic = 1;
Symbol 117 MovieClip Frame 3
_root.bgmusic = 0;
stopAllSounds();
_root.music1.removeMovieClip();
Symbol 117 MovieClip Frame 4
gotoAndStop (2);
Symbol 119 Button
on (press) {
sc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 120 MovieClip Frame 1
if (_root.mydisplay) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 120 MovieClip Frame 2
_root.mydisplay = 0;
Symbol 120 MovieClip Frame 3
_root.mydisplay = 1;
Symbol 120 MovieClip Frame 4
gotoAndStop (2);
Symbol 122 Button
on (press) {
cc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 123 MovieClip Frame 1
if (_root.custcursor) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 123 MovieClip Frame 2
_root.custcursor = 1;
Mouse.hide();
_root.attachMovie("mcCursor", "cursor1", 9999);
Symbol 123 MovieClip Frame 3
_root.custcursor = 0;
Mouse.show();
_root.cursor1.removeMovieClip();
Symbol 123 MovieClip Frame 4
gotoAndStop (2);
Symbol 125 Button
on (press) {
ts.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 126 MovieClip Frame 1
if (_root.twinkle) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 126 MovieClip Frame 2
_root.twinkle = 1;
_root.functions.createtwinkle();
Symbol 126 MovieClip Frame 3
_root.twinkle = 0;
var i = 1;
while (i < 8) {
_root["twinkle" + i].removeMovieClip();
i++;
}
Symbol 126 MovieClip Frame 4
gotoAndStop (2);
Symbol 128 Button
on (press) {
dc.nextFrame();
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 131 MovieClip Frame 1
if (_root.difficulty) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 131 MovieClip Frame 2
_root.difficulty = 0;
Symbol 131 MovieClip Frame 3
_root.difficulty = 1;
Symbol 131 MovieClip Frame 4
gotoAndStop (2);
Symbol 159 Button
on (press) {
if (Key.isDown(32)) {
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 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 1
if (_parent._parent.cansplit) {
gotoAndPlay (3);
}
Symbol 162 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 4
stop();
Instance of Symbol 162 MovieClip "line_gr" in Symbol 163 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 164 MovieClip Frame 1
if (launch) {
_root.msarray.push(this);
bang = false;
p2._x = startx;
p2._y = starty;
} else {
stop();
}
Symbol 164 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 164 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 164 MovieClip Frame 4
p2.play();
Symbol 164 MovieClip Frame 22
_root.msarray.shift();
this.removeMovieClip();
Symbol 169 MovieClip Frame 18
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 2
stop();
Instance of Symbol 171 MovieClip "line_gr" in Symbol 172 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 173 MovieClip Frame 18
stop();
Symbol 174 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 174 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 174 MovieClip Frame 4
if (reached != 1) {
gotoAndPlay(_currentframe - 1);
}
Symbol 174 MovieClip Frame 5
p2.play();
mysound.attachSound("deton");
mysound.start();
Symbol 174 MovieClip Frame 28
_root.scudarray.shift();
this.removeMovieClip();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
("c" < (b >= undefined)) || (0(false));
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 179 MovieClip Frame 2
stop();
Symbol 179 MovieClip Frame 4
stop();
Symbol 179 MovieClip Frame 6
stop();
Instance of Symbol 179 MovieClip "line1" in Symbol 180 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 179 MovieClip "line2" in Symbol 180 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 179 MovieClip "line3" in Symbol 180 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 181 MovieClip Frame 6
("c" < (b >= undefined)) || (0(false));
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 181 MovieClip Frame 11
stop();
Symbol 182 MovieClip Frame 40
gotoAndPlay (1);
Symbol 183 MovieClip Frame 1
("c" < (b >= undefined)) || (0(false));
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 183 MovieClip Frame 3
delay--;
if (0 < delay) {
gotoAndPlay(_currentframe - 1);
}
Symbol 183 MovieClip Frame 4
("c" < (b >= undefined)) || (0(false));
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 183 MovieClip Frame 6
("c" < (b >= undefined)) || (0(false));
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 183 MovieClip Frame 7
("c" < (b >= undefined)) || (0(false));
if (bang == false) {
mysound.attachSound("drdisappear");
mysound.start();
}
disappear = true;
Symbol 183 MovieClip Frame 13
("c" < (b >= undefined)) || (0(false));
_root.scspeed = oldscspeed;
_root.scscale = oldscscale;
this.removeMovieClip();
Symbol 193 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 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 199 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 199 MovieClip Frame 2
stop();
Symbol 199 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 209 MovieClip Frame 1
gotoAndStop(_parent.display + 2);
Symbol 209 MovieClip Frame 2
stop();
Symbol 209 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 1
if (_visible == false) {
stop();
} else {
gotoAndStop(display + 2);
}
Symbol 210 MovieClip Frame 2
stop();
Instance of Symbol 193 MovieClip "mylevel" in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.level", 2);
}
Instance of Symbol 196 MovieClip "myscore" in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.score", 6);
}
Instance of Symbol 199 MovieClip "myrepair" in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Instance of Symbol 204 MovieClip "myscudsleft" in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.scudsleft", 3);
}
Instance of Symbol 209 MovieClip "mymscudsleft" in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.mscudsleft", 3);
}
Symbol 210 MovieClip Frame 3
stop();
Symbol 264 Button
on (press) {
if (bdestroyed == 6) {
gameover = true;
}
gotoAndPlay ("norepair");
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 265 Button
on (press) {
_root.functions.baserepair(1);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 267 Button
on (press) {
_root.functions.baserepair(2);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 269 Button
on (press) {
_root.functions.baserepair(3);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 271 Button
on (press) {
_root.functions.baserepair(4);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 273 Button
on (press) {
_root.functions.baserepair(5);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 275 Button
on (press) {
_root.functions.baserepair(6);
}
on (rollOver) {
_root.cursor1.gotoAndStop(1);
}
on (rollOut) {
_root.cursor1.gotoAndStop(2);
}
Symbol 277 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 277 MovieClip Frame 5
function showrow() {
mysound.attachSound("showlist");
mysound.start();
time = getTimer();
}
mysound = new Sound(this);
mysound.setVolume(_root.volsfx);
time = getTimer();
Symbol 277 MovieClip Frame 7
if (getTimer() < (time + 250)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 8
showrow();
Symbol 277 MovieClip Frame 10
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 11
showrow();
Instance of Symbol 218 MovieClip "tpscuds" in Symbol 277 MovieClip Frame 11
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpscuds", 4);
}
Instance of Symbol 220 MovieClip "myscudsleft" in Symbol 277 MovieClip Frame 11
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.scudsleft", 3);
}
Symbol 277 MovieClip Frame 13
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 14
showrow();
Instance of Symbol 224 MovieClip "mymscudsleft" in Symbol 277 MovieClip Frame 14
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.mscudsleft", 3);
}
Instance of Symbol 226 MovieClip "tpmscuds" in Symbol 277 MovieClip Frame 14
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmscuds", 4);
}
Symbol 277 MovieClip Frame 16
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 17
showrow();
Instance of Symbol 230 MovieClip "bdamaged" in Symbol 277 MovieClip Frame 17
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.bdamaged", 3);
}
Instance of Symbol 232 MovieClip "tpbdamaged" in Symbol 277 MovieClip Frame 17
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpbdamaged", 4);
}
Symbol 277 MovieClip Frame 19
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 20
showrow();
Instance of Symbol 236 MovieClip "bintact" in Symbol 277 MovieClip Frame 20
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.bintact", 3);
}
Instance of Symbol 238 MovieClip "tpbintact" in Symbol 277 MovieClip Frame 20
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpbintact", 4);
}
Symbol 277 MovieClip Frame 22
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 23
showrow();
Instance of Symbol 242 MovieClip "totalbonus" in Symbol 277 MovieClip Frame 23
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.bonus.totalbonus", 4);
}
Symbol 277 MovieClip Frame 25
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 26
showrow();
Symbol 277 MovieClip Frame 28
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 29
_root.repair = _root.repair + tprepair;
showrow();
Instance of Symbol 247 MovieClip "tprepair" in Symbol 277 MovieClip Frame 29
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tprepair", 3);
}
Symbol 277 MovieClip Frame 31
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 32
_root.mscudsleft = _root.mscudsleft + tpmega;
showrow();
Instance of Symbol 249 MovieClip "tpmega" in Symbol 277 MovieClip Frame 32
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmega", 3);
}
Symbol 277 MovieClip Frame 34
if (getTimer() < (time + 2000)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 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 277 MovieClip Frame 44
time = getTimer();
if ((_root.level % 5) != 0) {
gotoAndPlay ("noextra");
}
Symbol 277 MovieClip Frame 46
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 47
showrow();
Symbol 277 MovieClip Frame 49
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 50
tprepair = _root.level * 10;
_root.repair = _root.repair + tprepair;
showrow();
Instance of Symbol 247 MovieClip "tprepair" in Symbol 277 MovieClip Frame 50
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tprepair", 3);
}
Symbol 277 MovieClip Frame 52
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 53
tpmega = Math.floor(_root.level / 2);
_root.mscudsleft = _root.mscudsleft + tpmega;
showrow();
Instance of Symbol 249 MovieClip "tpmega" in Symbol 277 MovieClip Frame 53
onClipEvent (load) {
_root.functions.setdigits(_target, _name, "_root.bonus.tpmega", 3);
}
Symbol 277 MovieClip Frame 55
if (getTimer() < (time + 1500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 60
time = getTimer();
Symbol 277 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 ("happyend");
} else {
checkrepair();
if (canrepair == false) {
gotoAndPlay ("norepair");
} else {
mysound.attachSound("repairmode");
mysound.start();
_root.fadeSpeed = 3;
_root.fadeArray = [1, 0, 0, 0];
gotoAndPlay ("repair");
}
}
Symbol 277 MovieClip Frame 63
time = getTimer();
totalbonus = _root.repair * 10;
Symbol 277 MovieClip Frame 65
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 66
showrow();
Symbol 277 MovieClip Frame 68
if (getTimer() < (time + 500)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 69
showrow();
Instance of Symbol 256 MovieClip "myrepair" in Symbol 277 MovieClip Frame 69
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Instance of Symbol 242 MovieClip "totalbonus" in Symbol 277 MovieClip Frame 69
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.bonus.totalbonus", 5);
}
Symbol 277 MovieClip Frame 71
if (getTimer() < (time + 6000)) {
gotoAndPlay(_currentframe - 1);
}
Symbol 277 MovieClip Frame 73
countdown();
Symbol 277 MovieClip Frame 76
gotoAndPlay ("norepair");
Symbol 277 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 256 MovieClip "myrepair" in Symbol 277 MovieClip Frame 77
onClipEvent (enterFrame) {
_root.functions.setdigits(_target, _name, "_root.repair", 4);
}
Symbol 277 MovieClip Frame 78
stop();
Symbol 277 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();
Symbol 287 MovieClip Frame 1
this._visible = false;
Symbol 302 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 287 MovieClip "mcHighscores" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 308 MovieClip Frame 2
if (((_url.slice(0, 23) != "http://www.miniclip.com") and (_url.slice(0, 19) != "http://miniclip.com")) and (_url.slice(0, 20) != "http://66.132.254.49")) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 308 MovieClip Frame 3
stop();
Symbol 311 Button
on (release) {
gotoAndPlay ("m01");
}