Combined Code
movieClip 2 Selectable {
}
frame 1 {
function aienemytank() {
if (_root.aimoney >= 50) {
_root.aimoney -= 50;
duplicateMovieClip(_root.enemytank, 'enemytank' + _root.enemytanknum, _root.enemytank.getDepth() + _root.enemytanknum + 1200);
_root['enemytank' + _root.enemytanknum]._x = _root.enemybase._x - 40;
_root['enemytank' + _root.enemytanknum]._y = 110 - random(20) + _root.spacer;
++_root.enemytanknum;
if (_root.spacer == 40) {
_root.spacer = 0;
} else {
if (_root.spacer == 0) {
_root.spacer = 20;
} else {
_root.spacer = 40;
}
}
}
}
function aienemytroop() {
if (_root.aimoney >= 20) {
_root.aimoney -= 20;
duplicateMovieClip(_root.enemy, 'enemy' + _root.enemynum, _root.enemy.getDepth() + _root.enemynum + 1100);
_root['enemy' + _root.enemynum]._x = _root.enemybase._x - 40;
_root['enemy' + _root.enemynum]._y = 150 - random(50);
++_root.enemynum;
}
}
function aienemyair() {
if (_root.aimoney >= 80 && _root.roundtime > 800) {
_root.aimoney -= 80;
duplicateMovieClip(_root.enemyair, 'enemyair' + _root.enemyairnum, _root.enemyair.getDepth() + _root.enemyairnum + 1300);
_root['enemyair' + _root.enemyairnum]._x = _root.enemybase._x - 40;
_root['enemyair' + _root.enemyairnum]._y = 15 + random(30);
++_root.enemyairnum;
}
}
function aienemysniper() {
if (_root.aimoney >= 50) {
_root.aimoney -= 40;
duplicateMovieClip(_root.enemyspecial, 'enemy' + _root.enemynum, _root.enemy.getDepth() + _root.enemynum + 1100);
_root['enemy' + _root.enemynum]._x = _root.enemybase._x - 40;
_root['enemy' + _root.enemynum]._y = 150 - random(50);
++_root.enemynum;
}
}
}
movieClip 7 {
}
instance Bar of movieClip 7 {
onClipEvent (enterFrame) {
eval(_this)._width = 112.2 * (_root.getBytesLoaded() / _root.getBytesTotal());
}
}
button 17 {
on (release) {
getURL('http://www.mofunzone.com/', '_blank');
}
}
frame 2 {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
play();
} else {
gotoAndPlay(1);
}
}
frame 3 {
stop();
stage.scaleMode = 'exactFit';
heronumber = 0;
heroselected = '';
forcehero = [0, 0, 0, 0, 0];
enemyhero = [0, 0, 0, 0, 0];
fscommand('showmenu', 'false');
user = SharedObject.getLocal('user_profile');
}
frame 3 {
function AI5() {
if (_root.roundtime >= 300) {
if (_root.roundtime >= _root.timerneed) {
_root.aimoney += random(10);
_root.timerneed += random(75) + 60;
_root.AIrandom = random(6);
if (_root.AIrandom <= 1) {
_root.aienemytank();
_root.aienemyair();
_root.aienemysniper();
} else {
if (_root.AIrandom == 2) {
_root.aienemytroop();
_root.aienemytank();
_root.aienemytroop();
} else {
if (_root.AIrandom == 3) {
_root.aienemytank();
_root.aienemysniper();
_root.aienemysniper();
} else {
_root.AIrandom = 4;
if (4) {
_root.aienemyair();
_root.aienemytank();
_root.aienemyair();
} else {
_root.AIrandom = 5;
if (5) {
_root.aienemytroop();
_root.aienemytroop();
_root.aienemysniper();
} else {
if (_root.AIrandom > 5) {
duplicateMovieClip(_root.enemymissleup, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemybase._x;
_root['bombshell' + _root.bombnum]._y = _root.enemybase._y - 20;
++_root.bombnum;
}
}
}
}
}
}
}
}
if (_root.roundtime > 780 && _root.roundtime < 2301) {
if (_root.roundtime == 2300) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime <= 2) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime == 1600) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime == 800) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
if (_root.roundtime < 601) {
if (_root.roundtime == 250) {
_root.aiincome += 5;
tellTarget ('_root.enemybuilding1') {
gotoAndStop('business');
}
tellTarget ('_root.enemybuilding0') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 350) {
tellTarget ('_root.enemybuilding2') {
gotoAndStop('airbase');
}
}
if (_root.roundtime == 600) {
_root.enemybuildingname[3] = 'defence';
tellTarget ('_root.enemybuilding3') {
gotoAndStop('defence');
}
}
}
}
}
frame 3 {
function AI4() {
if (_root.roundtime >= 300) {
if (_root.roundtime >= _root.timerneed) {
_root.aimoney += random(10);
_root.timerneed += random(70) + 75;
_root.AIrandom = random(7);
if (_root.AIrandom <= 1) {
_root.aienemyair();
_root.aienemysniper();
} else {
if (_root.AIrandom == 2) {
_root.aienemytroop();
_root.aienemytank();
} else {
if (_root.AIrandom == 3) {
_root.aienemytank();
_root.aienemysniper();
} else {
_root.AIrandom = 4;
if (4) {
_root.aienemyair();
_root.aienemytank();
} else {
if (_root.AIrandom > 5) {
_root.aienemytroop();
_root.aienemytroop();
_root.aienemysniper();
}
}
}
}
}
}
}
if (_root.roundtime > 780 && _root.roundtime < 2301) {
if (_root.roundtime == 2300) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime <= 2) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime == 1600) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime == 800) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
if (_root.roundtime < 601) {
if (_root.roundtime == 250) {
_root.aiincome += 5;
tellTarget ('_root.enemybuilding1') {
gotoAndStop('business');
}
tellTarget ('_root.enemybuilding0') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 350) {
tellTarget ('_root.enemybuilding2') {
gotoAndStop('airbase');
}
}
if (_root.roundtime == 600) {
_root.enemybuildingname[3] = 'defence';
tellTarget ('_root.enemybuilding3') {
gotoAndStop('defence');
}
}
}
}
}
frame 3 {
function AI3() {
if (_root.roundtime >= 290) {
if (_root.roundtime >= _root.timerneed) {
_root.timerneed += random(80) + 75;
_root.AIrandom = random(4);
if (_root.AIrandom <= 1) {
_root.aienemytroop();
_root.aienemytroop();
} else {
if (_root.AIrandom == 2) {
_root.aienemytroop();
_root.aienemytank();
} else {
if (_root.AIrandom >= 3) {
_root.aienemytank();
_root.aienemytank();
}
}
}
}
}
if (_root.roundtime > 780 && _root.roundtime < 1601) {
if (_root.roundtime == 1600) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
if (_root.roundtime == 800) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
if (_root.roundtime < 601) {
if (_root.roundtime == 250) {
_root.aiincome += 5;
tellTarget ('_root.enemybuilding1') {
gotoAndStop('business');
}
tellTarget ('_root.enemybuilding0') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 350) {
tellTarget ('_root.enemybuilding2') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 600) {
_root.enemybuildingname[3] = 'defence';
tellTarget ('_root.enemybuilding3') {
gotoAndStop('defence');
}
}
}
}
}
frame 3 {
function AI2() {
if (_root.roundtime >= 300) {
if (_root.roundtime >= _root.timerneed) {
_root.timerneed += random(80) + 100;
_root.AIrandom = random(3);
if (_root.AIrandom <= 1) {
_root.aienemyair();
_root.aienemytroop();
} else {
if (_root.AIrandom == 2) {
_root.aienemytroop();
_root.aienemytank();
} else {
if (_root.AIrandom >= 3) {
_root.aienemytroop();
_root.aienemysniper();
}
}
}
}
}
if (_root.roundtime < 601) {
if (_root.roundtime == 250) {
tellTarget ('_root.enemybuilding1') {
gotoAndStop('airbase');
}
tellTarget ('_root.enemybuilding0') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 350) {
tellTarget ('_root.enemybuilding2') {
gotoAndStop('airbase');
}
}
if (_root.roundtime == 600) {
tellTarget ('_root.enemybuilding3') {
gotoAndStop('airbase');
}
}
}
}
}
frame 3 {
function AI1() {
if (_root.roundtime >= 270) {
if (_root.roundtime >= _root.timerneed) {
_root.timerneed += random(80) + 120;
_root.AIrandom = random(3);
if (_root.AIrandom <= 1) {
_root.aienemytroop();
_root.aienemysniper();
} else {
if (_root.AIrandom == 2) {
_root.aienemytank();
} else {
if (_root.AIrandom >= 3) {
_root.aienemytroop();
_root.aienemytroop();
}
}
}
}
}
if (_root.roundtime > 780 && _root.roundtime < 1601) {
if (_root.roundtime == 1600) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
if (_root.roundtime < 601) {
if (_root.roundtime == 250) {
_root.aiincome += 5;
tellTarget ('_root.enemybuilding1') {
gotoAndStop('business');
}
tellTarget ('_root.enemybuilding0') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 350) {
tellTarget ('_root.enemybuilding2') {
gotoAndStop('barracks');
}
}
if (_root.roundtime == 600) {
_root.enemybuildingname[3] = 'defence';
tellTarget ('_root.enemybuilding3') {
gotoAndStop('defence');
}
}
}
}
}
frame 3 {
function herothing(number) {
if (_root.forcehero[number] == 'thing') {
} else {
if (_root.forcehero[number] == 'business') {
_root.income += 5;
} else {
if (_root.forcehero[number] == 'troopcaptain') {
++_root.forcedmg[0];
} else {
if (_root.forcehero[number] == 'snipercaptain') {
++_root.forcedmg[1];
} else {
if (_root.forcehero[number] == 'tankcaptain') {
++_root.forcedmg[2];
} else {
if (_root.forcehero[number] == 'cannonhero') {
_root.forcecannonrate -= 5;
}
}
}
}
}
}
}
function playSound(name) {
if (soundOn == true) {
soundfx.gotoAndPlay(name);
}
}
function dieSound(name) {
if (soundOn == true) {
tellTarget ('name') {
play();
}
}
}
Stage.showMenu = false;
soundOn = true;
stop();
}
button 27 {
on (release) {
gotoAndPlay(5);
}
}
movieClip 56 {
frame 26 {
stop();
}
}
movieClip 58 {
}
movieClip 73 {
frame 51 {
stop();
}
}
frame 120 {
function AddDialogue(Char, Numbertag, Text) {
Mission.Characters[Mission.Characters.length] = Char;
Mission.Characters2[Mission.Characters2.length] = Numbertag;
Mission.Speech[Mission.Speech.length] = Text;
}
Mouse.show();
if (_root.soundOn == true) {
menumuse = new Sound();
menumuse.attachSound('menuloop');
menumuse.start();
menumuse.onSoundComplete = function () {
_root.menumuse.start();
};
}
DialogueNum = 0;
Mission = new Object();
Mission.Characters = new Array();
Mission.Characters2 = new Array();
Mission.Speech = new Array();
AddDialogue('General Kostyuk', 'p2', 'Hello?... Hello, is anybody recieving? Respond... .... .... Hello?!');
AddDialogue('Colonel Russell', 'p1', 'General! This is Colonel Russell, transmitting from the Pacific Front. We have lost contact for the past three days.');
AddDialogue('General Kostyuk', 'p2', 'Colonel, what is the situation there?');
AddDialogue('Colonel Russell', 'p1', 'We were defeated, the Confedrates passed through our defensive grounds, very few survivors, our presence is unknown to the enemy, requesting immediate help and medical support.');
AddDialogue('Sergeant', 'p3', 'Sir! Nearby enemy camps detected our signals, small groups of soldiers and tanks are headed this way.');
AddDialogue('Colonel Russell', 'p1', 'God Damnit! Lousy, cheap-shit transmitters! Arm the men who can still fight, take the rest down south to the port.');
AddDialogue('General Kostyuk', 'p2', 'Colonel, the enemy has advanced further into our defences. As you know, my men are currently executing a heavy assault against the enemy front');
AddDialogue('General Kostyuk', 'p2', 'The confederates\' allies have begun to construct an airbase on the outskirts of our country. If this base is ever completed, our lands will fall. My men won\'t have a home to return to.');
AddDialogue('Colonel Russell', 'p1', 'Don\'t worry General, their planes will never leave the ground, I\'ll make sure of it.');
AddDialogue('Tank Captain', 'p3', 'Colonel, the Confedracy has been our enemy since the start of the war, my tanks are at your command! We must move out immediately!');
AddDialogue('Sniper Elite', 'p2', 'Colonel, our forces have discovered a massive weapon storage facility located up north. We must eradicate this threat before they unleash destruction upon us. ts defences are too great for my forces alone, we request your aid in this operation.');
AddDialogue('Colonel Russell', 'p1', 'Affirmative Captain, we\'re on our way.');
AddDialogue('Sniper Elite', 'p2', 'Very well sir, I shall join your ranks and increase the strength and preformance of your snipers. We must take action immediately.');
AddDialogue('Business Man', 'p3', 'The Confedracy has held the financial world back under its grasp, with high taxes and other shit. I will provide you with supporting funds.');
AddDialogue('Sniper Elite', 'p2', 'Our work here is done, we are ready for the next strike against the enemy, sir. Any word from the General?');
AddDialogue('Colonel Russell', 'p1', 'No. I haven\'t heard from him for quite awhile, his absence is concerning, almost disturbing... We may be out of communication range...');
AddDialogue('Wounded Soldier', 'p3', 'We are under heavy fire! They have us surrounded! Does anybody read me!? Please help us!');
AddDialogue('Lost Signal', 'p3', '');
AddDialogue('General Kostyuk', 'p3', 'Colonel... Captain... ');
AddDialogue('Colonel Russell', 'p1', 'We were informed of your situation sir! We will go in to help you immediately!');
AddDialogue('General Kostyuk', 'p3', 'No. ');
AddDialogue('General Kostyuk', 'p3', 'The enemy is attacking us with the bulk of its army. They would\'ve expected you and the captain to come here, and smite you as they are doing us now.');
AddDialogue('General Kostyuk', 'p3', 'The heart of the Confedracy is left vulnerable, this is our chance to bring down the darkness that has consumed this world.');
AddDialogue('Colonel Russell', 'p1', 'General, we can intervene the assault and get you out of there!');
AddDialogue('General Kostyuk', 'p3', 'No.');
AddDialogue('Sniper Elite', 'p2', 'Don\'t worry, we can get you out of there!');
AddDialogue('General Kostyuk', 'p3', 'NO! Listen to me! You must gather what forces you have and wipe out our enemy while their powers are concentrated on us! That is my last order. Do not try to help me, or my people. Our fate is inevitable. But the rest of the world can be freed from this menace. ');
AddDialogue('General Kostyuk', 'p3', 'The enemy main base is located on an artificial island. Destroy it. Don\'t let us die for nothing.');
AddDialogue('Lost Signal', 'p3', '');
AddDialogue('Colonel Russell', 'p1', '...Well...let\'s move.');
}
movieClip 95 {
}
movieClip 98 {
}
movieClip 102 {
}
movieClip 111 {
}
button 113 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
gotoAndStop(137);
}
}
button 114 {
on (release) {
gotoAndStop(135);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 115 {
on (release) {
gotoAndStop(600);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 116 {
on (release) {
gotoAndStop(136);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 118 {
on (release) {
gotoAndStop(138);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 124 {
on (release, keyPress '<Enter>') {
_root.endgame = true;
removeMovieClip('Selectable');
stopAllSounds();
gotoAndPlay(120);
}
}
movieClip 125 {
frame 4 {
_root.endgame = false;
_root.endtime = false;
_root.enemyendtime = false;
stop();
}
}
movieClip 139 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 4 {
gotoAndStop(1);
}
frame 6 {
gotoAndStop(1);
}
frame 8 {
gotoAndStop(1);
}
frame 10 {
gotoAndStop(1);
}
frame 13 {
gotoAndStop(1);
}
frame 15 {
gotoAndStop(1);
}
frame 17 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 21 {
gotoAndStop(1);
}
frame 23 {
gotoAndStop(1);
}
frame 25 {
gotoAndStop(1);
}
frame 27 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 31 {
gotoAndStop(1);
}
frame 33 {
gotoAndStop(1);
}
}
frame 134 {
stop();
}
button 143 {
on (release) {
_root.forcehero = [0, 0, 0, 0, 0];
_root.briefpic = [3, 2, 1, 1];
_root.textthing = 'Coastal Evac';
_root.setx = 216;
_root.sety = 145;
_root.DialogueNum = 0;
_root.objective = '-Destroy Enemy Encampment';
gotoAndPlay(139);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 144 {
on (release) {
if (user.data.a == undefinned) {
_root.playSound('no');
} else {
_root.briefpic = [0, 0, 0, 0];
_root.forcehero = [0, 0, 0, 0, 0];
_root.textthing = user.data.a;
_root.setx = user.data.b;
_root.sety = user.data.c;
_root.DialogueNum = user.data.d;
++_root.DialogueNum;
_root.briefpic[0] = user.data.e1;
_root.briefpic[1] = user.data.e2;
_root.briefpic[2] = user.data.e3;
_root.briefpic[3] = user.data.e4;
_root.objective = user.data.f;
_root.forcehero[0] = user.data.g1;
_root.forcehero[1] = user.data.g2;
_root.forcehero[2] = user.data.g3;
_root.playSound('yes');
gotoAndStop(547);
}
}
on (rollOver) {
_root.playSound('select');
}
}
button 145 {
on (release) {
gotoAndStop(134);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 151 {
on (release) {
_root.playSound('musicmenu');
_root.soundOn = _root.soundOn ? false : true;
if (_root.soundOn == true) {
menumuse = new Sound();
menumuse.attachSound('menuloop');
menumuse.start();
menumuse.onSoundComplete = function () {
_root.menumuse.start();
};
}
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
movieClip 155 {
}
instance soundthing of movieClip 155 {
onClipEvent (enterFrame) {
if (_root.SoundOn == true) {
with (this) {
gotoAndStop(1);
}
} else {
with (this) {
gotoAndStop(2);
stopAllSounds();
}
}
}
}
button 158 {
on (release) {
_quality = 'HIGH';
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 159 {
on (release) {
_quality = 'MEDIUM';
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 160 {
on (release) {
_quality = 'LOW';
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
frame 137 {
colorforce = 26265;
}
movieClip 174 {
}
movieClip 177 {
}
movieClip 180 {
}
movieClip 183 {
}
movieClip 186 {
}
movieClip 189 {
}
movieClip 192 {
}
movieClip 194 {
frame 1 {
stop();
}
instance of movieClip 174 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 177 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 180 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 183 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 186 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 189 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 192 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
}
movieClip 196 {
}
movieClip 197 {
frame 1 {
stop();
}
instance of movieClip 194 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
frame 2 {
if (_root.forcecannonbuilt == true) {
tellTarget ('_root.forcecannon') {
gotoAndPlay('dead');
}
}
_root.playSound('boom1');
}
frame 5 {
if (_root.forcelife <= 0) {
play();
} else {
gotoAndStop(1);
}
}
frame 6 {
_root.playSound('endboom');
_root.forcelife = 0;
}
frame 14 {
_root.endtime = true;
_root.endgame = true;
stop();
}
frame 16 {
_root.forcecannonbuilt2 = false;
}
instance of movieClip 194 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
frame 23 {
if (_root.forcelife < _root.forcelifemax) {
++_root.forcelife;
gotoAndPlay(16);
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
} else {
gotoAndStop(1);
}
}
}
button 212 {
on (release) {
gotoAndStop(134);
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
movieClip 216 {
}
button 218 {
on (release, keyPress '<Space>') {
_root.playSound('select');
roundthing._x = this.b5._x;
roundthing._y = this.b5._y;
}
}
button 219 {
on (release, keyPress 'e') {
_root.playSound('select');
roundthing._x = this.b1._x;
roundthing._y = this.b1._y;
}
}
button 220 {
on (release, keyPress 's') {
_root.playSound('select');
roundthing._x = this.b2._x;
roundthing._y = this.b2._y;
}
}
button 221 {
on (release, keyPress 'f') {
_root.playSound('select');
roundthing._x = this.b4._x;
roundthing._y = this.b4._y;
}
}
button 222 {
on (release, keyPress 'd') {
_root.playSound('select');
roundthing._x = this.b3._x;
roundthing._y = this.b3._y;
}
}
button 243 {
on (release) {
getURL('http://www.ntnd.net', '_blank');
}
}
frame 139 {
if (user.data.a == undefinned) {
}
}
frame 139 {
stop();
}
movieClip 283 {
}
movieClip 284 {
frame 508 {
_root.play();
}
}
button 286 {
on (release, keyPress 'k') {
gotoAndStop(547);
}
}
movieClip 292 {
}
movieClip 323 {
frame 43 {
gotoAndPlay(36);
}
}
movieClip 328 {
}
movieClip 336 {
frame 5 {
stop();
}
}
movieClip 337 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemyaircount;
}
frame 12 {
stop();
}
}
movieClip 341 {
}
movieClip 344 {
}
frame 546 {
stop();
}
button 351 {
on (release) {
gotoAndStop(547);
}
}
frame 547 {
stop();
buttonshit._x = _root.setx;
buttonshit._y = _root.sety;
Mouse.hide();
}
movieClip 354 {
}
instance of movieClip 354 {
onClipEvent (load) {
this._x = _root.setx;
this._y = _root.sety;
}
}
movieClip 359 {
frame 11 {
stop();
text2 = _root.textthing;
}
}
button 360 {
on (release) {
Mouse.show();
play();
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
movieClip 363 {
}
instance of movieClip 363 {
onClipEvent (enterFrame) {
this._y = _root._ymouse;
}
}
instance of movieClip 363 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
}
}
button 364 {
on (release, keyPress '<Enter>') {
_root.endgame = true;
removeMovieClip('Selectable');
stopAllSounds();
gotoAndPlay(120);
Mouse.show();
}
}
frame 548 {
menumuse.onSoundComplete = function () {
_root.menumuse.start();
};
stop();
Speaker = Mission.Characters[DialogueNum];
Speaker2 = Mission.Characters2[DialogueNum];
Bulk = Mission.Speech[DialogueNum];
attachMovie('Selectable', 'Selectable', 100000);
_root.Selectable._x = _root[Speaker2]._x;
_root.Selectable._y = _root[Speaker2]._y;
}
movieClip 370 {
}
movieClip 381 {
}
movieClip 402 {
frame 1 {
stop();
}
}
instance p1 of movieClip 402 {
onClipEvent (load) {
with (this) {
gotoAndPlay(_root.briefpic[0]);
}
}
}
instance p2 of movieClip 402 {
onClipEvent (load) {
with (this) {
gotoAndPlay(_root.briefpic[1]);
}
}
}
instance p3 of movieClip 402 {
onClipEvent (load) {
with (this) {
gotoAndPlay(_root.briefpic[2]);
}
}
}
instance p4 of movieClip 402 {
onClipEvent (load) {
with (this) {
gotoAndPlay(_root.briefpic[3]);
}
}
}
button 412 {
on (press) {
tellTarget ('_root.lines') {
gotoAndPlay('big');
}
removeMovieClip('Selectable');
if (_root.DialogueNum == 27) {
tellTarget ('_root.p3') {
gotoAndStop(1);
}
}
if (_root.DialogueNum == 17) {
tellTarget ('_root.p3') {
gotoAndStop(2);
}
}
if (_root.DialogueNum == 16) {
tellTarget ('_root.p3') {
gotoAndStop(1);
}
}
if (_root.DialogueNum == 15) {
tellTarget ('_root.p3') {
gotoAndStop(7);
}
}
if (_root.DialogueNum == 8) {
tellTarget ('_root.p3') {
gotoAndStop(6);
}
}
if (_root.DialogueNum == 3) {
tellTarget ('_root.p3') {
gotoAndStop(4);
}
}
if (_root.DialogueNum == 5) {
_root.objective = '-Destroy enemy airbase';
_root.briefpic = [3, 2, 1, 1];
_root.textthing = 'Threat Dawns';
_root.setx = 494;
_root.sety = 125;
_root.stagebg = 'grass';
_root.skybg = 'day';
forcecolorvar = 'blue';
colorforce = 26265;
enemycolorvar = 'red';
colorenemy = 13369344;
stopAllSounds();
gotoAndPlay(553);
} else {
if (_root.DialogueNum == 9) {
_root.forcehero[0] = 'tankcaptain';
_root.objective = '-Destroy enemy defences (Sniper preformance increased, Money income increased)';
_root.briefpic = [3, 5, 8, 1];
_root.textthing = 'Hidden Storm';
_root.setx = 281;
_root.sety = 70;
_root.stagebg = 'city';
_root.skybg = 'day';
forcecolorvar = 'blue';
colorforce = 26265;
enemycolorvar = 'teal';
colorenemy = 52377;
stopAllSounds();
gotoAndPlay(549);
} else {
if (_root.DialogueNum == 13) {
_root.forcehero[1] = 'snipercaptain';
_root.forcehero[2] = 'business';
_root.objective = '-Destroy enemy base';
_root.briefpic = [3, 5, 1, 1];
_root.textthing = 'Darkness Falls';
_root.setx = 272;
_root.sety = 181;
_root.stagebg = 'snow';
_root.skybg = 'night';
forcecolorvar = 'blue';
colorforce = 26265;
enemycolorvar = 'red';
colorenemy = 13369344;
stopAllSounds();
gotoAndPlay(549);
} else {
if (_root.DialogueNum == 29) {
_root.stagebg = 'dirt';
_root.skybg = 'night';
forcecolorvar = 'blue';
colorforce = 26265;
enemycolorvar = 'red';
colorenemy = 13369344;
stopAllSounds();
gotoAndPlay(549);
} else {
++_root.DialogueNum;
_root.Speaker = _root.Mission.Characters[DialogueNum];
_root.Speaker2 = _root.Mission.Characters2[DialogueNum];
_root.Bulk = _root.Mission.Speech[DialogueNum];
removeMovieClip('Selectable');
attachMovie('Selectable', 'Selectable', 1000);
_root.Selectable._x = _root[Speaker2]._x;
_root.Selectable._y = _root[Speaker2]._y;
}
}
}
}
}
}
movieClip 419 {
frame 26 {
gotoAndPlay(1);
}
}
frame 549 {
_root.endgame = false;
_root.endtime = false;
_root.enemyendtime = false;
enemycount = 0;
forcecount = 0;
forcenum = 0;
enemynum = 0;
enemytanknum = 0;
enemytankcount = 0;
forcetanknum = 0;
forcetankcount = 0;
enemyaircount = 0;
forceaircount = 0;
forceairnum = 0;
enemyairnum = 0;
forcehold = 0;
enemyhold = 0;
speed = 0.8;
airspeed = speed * 3;
forcedmg = [0, 0, 0, 0];
forceup = [0, 0, 0, 0];
enemydmg = [0, 0, 0, 0];
bombnum = 1;
bombstock = 'none';
research = [false, false];
forcecannonbuilt2 = false;
forcecannonbuilt = false;
enemycannonbuilt = false;
misslestock = 0;
forcecannonlevel = 0;
forcecannonrate = 135;
enemycannonrate = forcecannonrate;
tobuild = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0]];
buildingcurrent = 0;
enemybuildingname = [];
buildingname = [];
buildingarray = ['barracks', 'airbase', 'business', 'science', 'defence', 'weapons'];
aido = false;
aimoney = 1000;
spacer = 40;
money = 1000;
income = 25;
forcelifemax = 100;
enemylifemax = 100;
forcelife = forcelifemax;
enemylife = enemylifemax;
shocktime = 0;
timerneed = 0;
timermoneyneed = 50;
roundtime = 0;
_root.herothing(0);
_root.herothing(1);
_root.herothing(2);
_root.herothing(3);
_root.herothing(4);
}
frame 549 {
duplicateMovieClip(this['forcetank' + forcecolorvar], 'forcetank', 1000);
duplicateMovieClip(this['forcespecial' + forcecolorvar], 'forcespecial', 1001);
duplicateMovieClip(this['forceair' + forcecolorvar], 'forceair', 1002);
duplicateMovieClip(this['forcebomber' + forcecolorvar], 'forcebomber', 1003);
duplicateMovieClip(forcez, 'force', 1004);
duplicateMovieClip(this['forcedrill' + forcecolorvar], 'forcebomber', 1015);
duplicateMovieClip(this['enemyair' + enemycolorvar], 'enemyair', 1007);
duplicateMovieClip(this['enemytank' + enemycolorvar], 'enemytank', 1010);
duplicateMovieClip(this['enemyspecial' + enemycolorvar], 'enemyspecial', 1011);
duplicateMovieClip(this['enemybomber' + enemycolorvar], 'enemybomber', 1012);
duplicateMovieClip(this['enemydrill' + forcecolorvar], 'enemydrill', 1014);
duplicateMovieClip(enemyz, 'enemy', 1013);
}
movieClip 426 {
}
instance of movieClip 426 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.skybg);
}
}
}
movieClip 434 {
}
instance of movieClip 434 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.stagebg);
}
}
}
instance forcebase of movieClip 197 {
onClipEvent (load) {
this.swapDepth(-999999);
}
}
movieClip 436 {
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.forcelife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.forcelife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance basehitter2 of movieClip 58 {
onClipEvent (load) {
gotoAndStop(Math.random(1) + 1);
}
}
movieClip 443 {
frame 1 {
stop();
}
instance of movieClip 174 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 177 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 180 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 183 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 186 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 189 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance of movieClip 192 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
}
movieClip 444 {
frame 1 {
stop();
}
instance of movieClip 443 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
frame 2 {
if (_root.enemycannonbuilt == true) {
tellTarget ('_root.enemycannon') {
gotoAndPlay('dead');
}
}
_root.playSound('boom1');
}
frame 5 {
if (_root.enemylife <= 0) {
play();
} else {
gotoAndPlay(1);
}
}
frame 6 {
_root.playSound('endboom');
_root.enemylife = 0;
}
instance of movieClip 194 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
frame 22 {
_root.enemyendtime = true;
_root.endgame = true;
stop();
}
instance of movieClip 194 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
frame 31 {
if (_root.enemylife < _root.enemylifemax) {
++_root.enemylife;
gotoAndPlay(24);
_root.bar._width = (_root.enemylife / _root.enemylifemax) * 140;
} else {
gotoAndStop(1);
}
}
}
instance enemybase of movieClip 444 {
onClipEvent (load) {
this.swapDepth(-999998);
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.enemylife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.enemylife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
movieClip 478 {
frame 1 {
stop();
}
}
button 483 {
on (rollOver) {
text = 'War Industry';
price = '$100';
explain = 'Builds soldiers and tanks';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root.money >= 100) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
_root.playSound('yes');
_root.money -= 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 180;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebarracks');
}
}
}
}
}
button 484 {
on (rollOver) {
text = 'Airbase';
price = '$150';
if (_root.buildingname[0] == 'barracks' || _root.buildingname[1] == 'barracks' || _root.buildingname[2] == 'barracks' || _root.buildingname[3] == 'barracks') {
explain = 'Builds Fighters and Bombers';
} else {
requires = 'Requires War Industry';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '3') {
if (_root.money >= 150) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.buildingname[0] == 'barracks' || _root.buildingname[1] == 'barracks' || _root.buildingname[2] == 'barracks' || _root.buildingname[3] == 'barracks') {
_root.playSound('yes');
_root.money -= 150;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 240;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeairbase');
}
}
}
}
}
}
button 485 {
on (release) {
_root.playSound('yes');
}
on (rollOver) {
text = 'Business Center';
price = '$120';
explain = 'Earn more money / Improve income';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '2') {
if (_root.money >= 120) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
_root.playSound('yes');
_root.money -= 120;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 300;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebusiness');
}
}
}
}
}
button 486 {
on (rollOver) {
text = 'Defence Network';
price = '$200';
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
explain = 'Builds defences against attacks';
} else {
requires = 'Requires Business Center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '4') {
if (_root.money >= 200) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
_root.playSound('yes');
_root.money -= 200;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 400;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makedefence');
}
}
}
}
}
}
button 487 {
on (rollOver) {
text = 'Research Facility';
price = '$200';
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
explain = 'Researches weapons and upgrades';
} else {
requires = 'Requires Business Center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '5') {
if (_root.money >= 200) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
_root.playSound('yes');
_root.money -= 200;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 400;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makescience');
}
}
}
}
}
}
button 488 {
on (rollOver) {
text = 'Weapon Terminal';
price = '$200';
if (_root.buildingname[0] == 'science' || _root.buildingname[1] == 'science' || _root.buildingname[2] == 'science' || _root.buildingname[3] == 'science') {
explain = 'Launch Deadly Weapons';
} else {
requires = 'Requires Research Center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '6') {
if (_root.money >= 200) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.buildingname[0] == 'science' || _root.buildingname[1] == 'science' || _root.buildingname[2] == 'science' || _root.buildingname[3] == 'science') {
_root.playSound('yes');
_root.money -= 200;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 500;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeweapons');
}
}
}
}
}
}
button 497 {
on (rollOver) {
text = 'Infantry';
price = '$25';
explain = 'Light assult unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 25) {
_root.playSound('yes');
_root.money -= 25;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 30;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 150 - random(50);
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeman');
}
}
}
}
}
button 498 {
on (rollOver) {
text = 'Tank';
price = '$50';
explain = 'Heavy Assult Unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '2') {
if (_root.money >= 50) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
_root.playSound('yes');
_root['nodelay' + _root.buildingcurrent] = false;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 55;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 110 - random(20) + _root.spacer;
_root['nodelay' + _root.buildingcurrent] = false;
_root.money -= 50;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('maketank');
}
if (_root.spacer == 40) {
_root.spacer = 0;
} else {
if (_root.spacer == 0) {
_root.spacer = 20;
} else {
_root.spacer = 40;
}
}
}
}
}
}
button 499 {
on (rollOver) {
text = 'Elite Sniper';
price = '$50';
explain = 'Long Range Support Unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 50) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 150 - random(50);
_root.money -= 50;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makesniper');
}
}
}
}
}
movieClip 505 {
frame 1 {
bombstock2 = _root.bombstock;
}
}
button 506 {
on (rollOver) {
text = 'Fighter';
price = '$80';
explain = 'Air assult and bombardment unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 80) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 60;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 15 + random(30);
_root['nodelay' + _root.buildingcurrent] = false;
_root.money -= 80;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makefighter');
}
}
}
}
}
button 507 {
on (rollOver) {
text = 'Bomber';
price = '$50';
if (_root.bombstock == 'loaded') {
explain = 'Heavy Bombardment Unit';
} else {
requires = 'Requires bombs';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money >= 50 && _root.bombstock == 'loaded') {
_root.playSound('yes');
_root.money -= 50;
_root.bombstock = 'none';
_root['nodelay' + _root.buildingcurrent] = false;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 15 + random(30);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebomber');
}
}
}
}
button 508 {
on (rollOver) {
text = 'Manufacture Bombs';
price = '$100';
explain = 'Creates bomb shells';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.bombstock == 'none') {
if (_root.money >= 100) {
_root.playSound('yes');
_root.money -= 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 180;
_root['nodelay' + _root.buildingcurrent] = false;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebomb');
}
}
}
}
}
button 518 {
on (rollOver) {
text = 'Improve Income';
price = '$' + (businessprice + 100);
explain = 'Permenantly Increase income by +5';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money >= businessprice + 100) {
_root.playSound('yes');
_root.money -= businessprice + 100;
businessprice += 50;
price = businessprice + 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeincome');
}
}
}
}
button 521 {
on (rollOver) {
text = 'Soldier Upgrade';
price = '$' + (100 + _root.forceup[0]);
if (_root.forceup[0] < 300) {
explain = 'Increase soldier damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[0] && _root.forceup[0] < 300) {
_root.playSound('yes');
_root.money -= 100 + _root.forceup[0];
_root.forceup[0] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemanup');
}
}
}
}
button 522 {
on (rollOver) {
text = 'Sniper Upgrade';
price = '$' + (100 + _root.forceup[1]);
if (_root.forceup[1] <= 300) {
explain = 'Increase sniper damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[1] && _root.forceup[1] <= 300) {
_root.playSound('yes');
_root.money -= 100 + _root.forceup[1];
_root.forceup[1] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makesniperup');
}
}
}
}
button 523 {
on (rollOver) {
text = 'Tank Upgrade';
price = '$' + (100 + _root.forceup[2]);
if (_root.forceup[2] <= 300) {
explain = 'Increase tank damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[2] && _root.forceup[2] <= 300) {
_root.playSound('yes');
_root.money -= 100 + _root.forceup[2];
_root.forceup[2] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('maketankup');
}
}
}
}
button 524 {
on (rollOver) {
text = 'Fighter upgrade';
price = '$' + (100 + _root.forceup[3]);
if (_root.forceup[3] <= 300) {
explain = 'Increase fighter damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '4') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[3] && _root.forceup[3] <= 300) {
_root.playSound('yes');
_root.money -= 100 + _root.forceup[3];
_root.forceup[3] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makefighterup');
}
}
}
}
movieClip 534 {
frame 1 {
lvl0 = _root.forcedmg[0];
lvl1 = _root.forcedmg[1];
lvl2 = _root.forcedmg[2];
lvl3 = _root.forcedmg[3];
}
}
button 541 {
on (rollOver) {
text = 'Research Hack';
price = '$200';
}
on (rollOut, dragOut) {
text = '';
price = '';
}
on (release, keyPress '6') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 200) {
_root.playSound('yes');
_root.research[1] = 'thing';
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 700;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 200;
_root['nodelay' + _root.buildingcurrent] = false;
this.hack._visible = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makehackre');
}
}
}
}
}
button 543 {
on (rollOver) {
text = 'Research E.M.P.';
price = '$200';
}
on (rollOut, dragOut) {
text = '';
price = '';
}
on (release, keyPress '5') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 200) {
_root.playSound('yes');
_root.research[0] = 'thing';
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 700;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 200;
_root['nodelay' + _root.buildingcurrent] = false;
this.elec._visible = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeempre');
}
}
}
}
}
button 547 {
on (rollOver) {
text = 'Defence Cannon';
price = '$120';
if (_root.forcecannonbuilt2 == false) {
explain = 'Fires at enemy units';
} else {
requires = 'Only one cannon allowed at a time';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '1') {
if (_root.forcecannonbuilt2 == false) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 120) {
_root.playSound('yes');
_root.forcecannonbuilt2 = true;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 200;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 120;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makecannon');
}
}
}
}
}
}
button 548 {
on (rollOver) {
text = 'Upgrade Cannon';
price = '$100';
if (_root.forcecannonlevel < 2) {
explain = 'Upgrade cannon fire speed';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '2') {
if (_root.forcecannonlevel < 2) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 100) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 240;
++_root.forcecannonlevel;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 100;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makecannonrate');
}
}
}
}
}
}
movieClip 552 {
frame 1 {
forcecannonthing = _root.forcecannonlevel;
}
}
button 553 {
on (rollOver) {
text = 'Shockwave';
price = '$200';
explain = 'Slows ground units';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 200) {
_root.playSound('yes');
shocktime = 600;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 140;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 200;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeshock');
}
}
}
}
}
button 557 {
on (rollOver) {
text = 'Fire missile';
price = '$50';
if (_root.misslestock > 0) {
explain = 'Fires a missile at enemy units';
} else {
requires = 'Requires one or more missiles';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 50 && _root.misslestock > 0) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 50;
--_root.misslestock;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemissle');
}
}
}
}
}
button 558 {
on (rollOver) {
text = 'Make missile';
price = '$125';
explain = 'Prepares a missile';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 125) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 160;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 125;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemisslestock');
}
}
}
}
}
movieClip 562 {
frame 1 {
misslething = _root.misslestock;
}
}
button 563 {
on (rollOver) {
text = 'E.M.P.';
price = '$120';
if (_root.research[0] == true) {
explain = 'Destroys mechanical units';
} else {
requires = 'Research at research center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.research[0] == true) {
if (_root.money >= 120) {
_root.playSound('yes');
shocktime = 480;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 80;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 120;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeemp');
}
}
}
}
}
button 564 {
on (rollOver) {
text = 'Hack';
price = '$250';
if (_root.research[1] == true) {
explain = 'Enemy owes dept of -$100';
} else {
requires = 'Research at research center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '4') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.research[1] == true) {
if (_root.money >= 250) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 240;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 250;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makehack');
}
}
}
}
}
movieClip 567 {
instance hero1 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[0]);
}
}
}
instance hero2 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[1]);
}
}
}
instance hero3 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[2]);
}
}
}
instance hero4 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[3]);
}
}
}
instance hero5 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[4]);
}
}
}
frame 2 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
stop();
income2 = _root.income;
dmg0 = _root.forcedmg[0] + 2;
dmg1 = _root.forcedmg[1] + 1;
dmg2 = _root.forcedmg[2] + 10;
dmg3 = _root.forcedmg[3] + 5;
}
frame 3 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 174 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 180 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 186 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 189 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 183 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 192 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.buildingname[0] == 'barracks' || _root.buildingname[1] == 'barracks' || _root.buildingname[2] == 'barracks' || _root.buildingname[3] == 'barracks') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.buildingname[0] == 'barracks' || _root.buildingname[1] == 'barracks' || _root.buildingname[2] == 'barracks' || _root.buildingname[3] == 'barracks') {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.buildingname[0] == 'business' || _root.buildingname[1] == 'business' || _root.buildingname[2] == 'business' || _root.buildingname[3] == 'business') {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.buildingname[0] == 'science' || _root.buildingname[1] == 'science' || _root.buildingname[2] == 'science' || _root.buildingname[3] == 'science') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.buildingname[0] == 'science' || _root.buildingname[1] == 'science' || _root.buildingname[2] == 'science' || _root.buildingname[3] == 'science') {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 4 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
frame 5 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.bombstock == 'loaded') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.bombstock == 'loaded') {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 6 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
frame 7 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
if (_root.research[0] == 'thing' || _root.research[0] == true) {
elec._visible = false;
}
if (_root.research[1] == true || _root.research[1] == 'thing') {
hack._visible = false;
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[0] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[0] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[1] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[1] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[2] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[2] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[3] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[3] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 8 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forcecannonbuilt2 == false) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forcecannonbuilt2 == false) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forcecannonlevel < 2) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forcecannonlevel < 2) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 9 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.misslestock > 0) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.misslestock > 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.research[0] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.research[0] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.research[1] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.research[1] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 10 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
}
instance menu of movieClip 567 {
onClipEvent (load) {
businessprice = 0;
}
}
instance enemybar of movieClip 58 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance bar of movieClip 58 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
button 574 {
on (release) {
duplicateMovieClip(_root.enemybomber, 'enemyair' + _root.enemyairnum, _root.enemybomber.getDepth() + _root.enemyairnum + 530000);
_root['enemyair' + _root.enemyairnum]._x = _root.enemybase._x - 40;
_root['enemyair' + _root.enemyairnum]._y = 15 + random(30);
++_root.enemyairnum;
}
}
button 576 {
on (release) {
duplicateMovieClip(_root.enemy, 'enemy' + _root.enemynum, _root.enemy.getDepth() + _root.enemynum + 110000);
_root['enemy' + _root.enemynum]._x = _root.enemybase._x - 40;
_root['enemy' + _root.enemynum]._y = 150 - random(50);
++_root.enemynum;
}
}
button 577 {
on (release) {
duplicateMovieClip(_root.enemytank, 'enemytank' + _root.enemytanknum, _root.enemytank.getDepth() + _root.enemytanknum + 80000);
_root['enemytank' + _root.enemytanknum]._x = _root.enemybase._x - 40;
_root['enemytank' + _root.enemytanknum]._y = 150 - random(50);
++_root.enemytanknum;
}
}
button 578 {
on (release) {
duplicateMovieClip(_root.enemyspecial, 'enemy' + _root.enemynum, _root.enemy.getDepth() + _root.enemynum + 110000);
_root['enemy' + _root.enemynum]._x = _root.enemybase._x - 40;
_root['enemy' + _root.enemynum]._y = 150 - random(50);
++_root.enemynum;
}
}
button 579 {
on (release) {
duplicateMovieClip(_root.enemyair, 'enemyair' + _root.enemyairnum, _root.enemyair.getDepth() + _root.enemyairnum + 530000);
_root['enemyair' + _root.enemyairnum]._x = _root.enemybase._x - 40;
_root['enemyair' + _root.enemyairnum]._y = 15 + random(30);
++_root.enemyairnum;
}
}
movieClip 585 {
}
button 586 {
on (release, keyPress 'w') {
_root.playSound('select');
if (_root.buildingname[3] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[3]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[3]);
}
}
_root.highlighter._x = _root.delayer3._x;
_root.highlighter._y = _root.delayer3._y;
roundthing._x = _root.building3._x;
roundthing._y = _root.building3._y - 20;
_root.buildingcurrent = 3;
}
}
button 587 {
on (release, keyPress 'a') {
_root.playSound('select');
if (_root.buildingname[2] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[2]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[2]);
}
}
roundthing._x = _root.building2._x;
roundthing._y = _root.building2._y - 20;
_root.highlighter._x = _root.delayer2._x;
_root.highlighter._y = _root.delayer2._y;
_root.buildingcurrent = 2;
}
}
button 588 {
on (release, keyPress '<Space>') {
_root.playSound('select');
_root.buildingcurrent = undefinned;
tellTarget ('_root.buildingpic') {
gotoAndStop('base');
}
tellTarget ('_root.menu') {
gotoAndStop('basestats');
}
_root.highlighter._x = -100;
_root.highlighter._y - 100;
roundthing._x = _root.forcebase._x;
roundthing._y = _root.forcebase._y - 20;
}
}
button 592 {
on (release) {
_root.money += 50;
tellTarget ('_root.buildingpic') {
gotoAndPlay('new');
}
_root.buildingname[_root.buildingcurrent] = undefinned;
tellTarget ('_root.menu') {
gotoAndStop('build');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('build');
}
}
on (release) {
_root['nodelay' + _root.buildingcurrent] = true;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndStop(1);
}
}
}
button 596 {
on (release) {
_root.income -= 5;
_root.money += 50;
tellTarget ('_root.buildingpic') {
gotoAndPlay('new');
}
_root.buildingname[_root.buildingcurrent] = undefinned;
tellTarget ('_root.menu') {
gotoAndStop('build');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('build');
}
}
on (release) {
_root['nodelay' + _root.buildingcurrent] = true;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndStop(1);
}
}
}
movieClip 602 {
frame 1 {
stop();
}
instance of movieClip 58 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 177 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 174 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 180 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 183 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 186 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 189 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 192 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
}
instance buildingpic of movieClip 602 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
button 603 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix1._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
button 604 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix2._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
button 605 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix3._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
movieClip 609 {
frame 1 {
stop();
}
frame 2 {
bar._width = ((_root.roundtime - _root.tobuild[4][1]) / (_root.tobuild[4][0] - _root.tobuild[4][1])) * 100;
}
frame 3 {
if (_root.roundtime == _root.tobuild[4][0]) {
bar._width = ((_root.roundtime - _root.tobuild[4][1]) / (_root.tobuild[4][0] - _root.tobuild[4][1])) * 100;
tellTarget ('_root.forcebase') {
gotoAndPlay('fix');
}
gotoAndStop(1);
} else {
gotoAndPlay(2);
}
}
}
movieClip 612 {
frame 1 {
stop();
}
frame 3 {
if (_root.roundtime == _root.cannontime) {
_root.cannontime += _root.forcecannonrate;
if (_root.enemynum - _root.enemycount > 0) {
_root.playSound('towerfire');
duplicateMovieClip(_root.cannonshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcecannon._x;
_root['bombshell' + _root.bombnum]._y = _root.forcecannon._y;
++_root.bombnum;
} else {
if (_root.enemytanknum - _root.enemytankcount > 0) {
_root.playSound('towerfire');
duplicateMovieClip(_root.cannonshelltank, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcecannon._x;
_root['bombshell' + _root.bombnum]._y = _root.forcecannon._y;
++_root.bombnum;
}
}
if (_root.enemyairnum - _root.enemyaircount > 0) {
duplicateMovieClip(_root.cannonshellair, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcecannon._x;
_root['bombshell' + _root.bombnum]._y = _root.forcecannon._y;
++_root.bombnum;
_root.playSound('towerfire');
}
}
gotoAndPlay(2);
}
frame 4 {
_root.forcecannonbuilt = false;
_root.forcecannonbuilt2 = false;
}
}
movieClip 614 {
frame 1 {
stop();
}
frame 3 {
if (_root.roundtime == _root.enemycannontime) {
_root.enemycannontime += _root.enemycannonrate;
if (_root.forcenum - _root.forcecount > 0) {
_root.playSound('towerfire');
duplicateMovieClip(_root.enemycannonshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemycannon._x;
_root['bombshell' + _root.bombnum]._y = _root.enemycannon._y;
++_root.bombnum;
} else {
if (_root.forcetanknum - _root.forcetankcount > 0) {
_root.playSound('towerfire');
duplicateMovieClip(_root.enemycannonshelltank, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemycannon._x;
_root['bombshell' + _root.bombnum]._y = _root.enemycannon._y;
++_root.bombnum;
}
}
if (_root.forceairnum - _root.forceaircount > 0) {
_root.playSound('towerfire');
duplicateMovieClip(_root.enemycannonshellair, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemycannon._x;
_root['bombshell' + _root.bombnum]._y = _root.enemycannon._y;
++_root.bombnum;
}
}
gotoAndPlay(2);
}
frame 4 {
_root.enemycannonbuilt = false;
}
}
button 615 {
on (release) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
movieClip 626 {
frame 1 {
stop();
}
frame 8 {
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
}
frame 16 {
gotoAndStop(1);
}
}
movieClip 627 {
frame 1 {
stop();
}
frame 8 {
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
}
frame 16 {
gotoAndStop(1);
}
}
movieClip 631 {
frame 1 {
stop();
}
frame 8 {
stop();
}
frame 15 {
stop();
}
frame 22 {
stop();
}
}
button 632 {
on (release, keyPress 'd') {
_root.playSound('select');
if (_root.buildingname[0] == undefinned) {
tellTarget ('_root.menu') {
gotoAndStop('build');
}
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[0]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[0]);
}
}
roundthing._x = _root.building0._x;
roundthing._y = _root.building0._y - 20;
_root.highlighter._x = _root.delayer0._x;
_root.highlighter._y = _root.delayer0._y;
_root.buildingcurrent = 0;
}
}
button 633 {
on (release, keyPress 's') {
_root.playSound('select');
if (_root.buildingname[1] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[1]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[1]);
}
}
_root.highlighter._x = _root.delayer1._x;
_root.highlighter._y = _root.delayer1._y;
roundthing._x = _root.building1._x;
roundthing._y = _root.building1._y - 20;
_root.buildingcurrent = 1;
}
}
instance roundthing of movieClip 216 {
onClipEvent (load) {
this._x = _root.forcebase._x;
this._y = _root.forcebase._y - 20;
}
}
movieClip 637 {
frame 1 {
if (numberthing == _root.buildingcurrent) {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[this.numberthing]);
}
}
_root['nodelay' + numberthing] = true;
stop();
}
frame 3 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 3 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
duplicateMovieClip(_root.force, 'force' + _root.forcenum, _root.force.getDepth() + _root.forcenum + 100);
_root['force' + _root.forcenum]._x = _root.tobuild[numberthing][1];
_root['force' + _root.forcenum]._y = _root.tobuild[numberthing][2];
++_root.forcenum;
gotoAndStop(1);
} else {
gotoAndPlay(2);
}
}
frame 5 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 5 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.buildingname[numberthing] = _root.buildingarray[0];
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('barracks');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('barracks');
}
gotoAndStop(1);
} else {
gotoAndPlay(4);
}
}
frame 7 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 7 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.buildingname[numberthing] = _root.buildingarray[1];
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('airbase');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('airbase');
}
gotoAndStop(1);
} else {
gotoAndPlay(6);
}
}
frame 9 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 9 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.income += 5;
_root.buildingname[numberthing] = _root.buildingarray[2];
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('business');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('business');
}
gotoAndStop(1);
} else {
gotoAndPlay(8);
}
}
frame 11 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 11 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
duplicateMovieClip(_root.forcetank, 'forcetank' + _root.forcetanknum, _root.forcetank.getDepth() + _root.forcetanknum + 200);
_root['forcetank' + _root.forcetanknum]._x = _root.tobuild[numberthing][1];
_root['forcetank' + _root.forcetanknum]._y = _root.tobuild[numberthing][2];
++_root.forcetanknum;
gotoAndStop(1);
} else {
gotoAndPlay(10);
}
}
frame 13 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 13 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
duplicateMovieClip(_root.forcespecial, 'force' + _root.forcenum, _root.force.getDepth() + _root.forcenum + 100);
_root['force' + _root.forcenum]._x = _root.tobuild[numberthing][1];
_root['force' + _root.forcenum]._y = _root.tobuild[numberthing][2];
++_root.forcenum;
gotoAndStop(1);
} else {
gotoAndPlay(12);
}
}
frame 15 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 15 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
duplicateMovieClip(_root.forceair, 'forceair' + _root.forceairnum, _root.forceair.getDepth() + _root.forceairnum + 300);
_root['forceair' + _root.forceairnum]._x = _root.tobuild[numberthing][1];
_root['forceair' + _root.forceairnum]._y = _root.tobuild[numberthing][2];
++_root.forceairnum;
gotoAndStop(1);
} else {
gotoAndPlay(14);
}
}
frame 17 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 17 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.bombstock = 'loaded';
gotoAndStop(1);
} else {
gotoAndPlay(16);
}
}
frame 19 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 19 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
duplicateMovieClip(_root.forcebomber, 'forceair' + _root.forceairnum, _root.forceair.getDepth() + _root.forceairnum + 300);
_root['forceair' + _root.forceairnum]._x = _root.tobuild[numberthing][1];
_root['forceair' + _root.forceairnum]._y = _root.tobuild[numberthing][2];
++_root.forceairnum;
gotoAndStop(1);
} else {
gotoAndPlay(18);
}
}
frame 21 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 21 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.income += 5;
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
gotoAndStop(1);
} else {
gotoAndPlay(20);
}
}
frame 23 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 23 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.buildingname[numberthing] = _root.buildingarray[4];
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('defence');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('defence');
}
gotoAndStop(1);
} else {
gotoAndPlay(22);
}
}
frame 25 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 25 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.buildingname[numberthing] = _root.buildingarray[3];
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('science');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('science');
}
gotoAndStop(1);
} else {
gotoAndPlay(24);
}
}
frame 27 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 27 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.cannontime = _root.roundtime + 10;
tellTarget ('_root.forcecannon') {
gotoAndPlay('cannonready');
_root.forcecannonbuilt = true;
}
gotoAndStop(1);
} else {
gotoAndPlay(26);
}
}
frame 29 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 29 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
++_root.forcedmg[0];
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
gotoAndStop(1);
} else {
gotoAndPlay(28);
}
}
frame 31 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 31 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
++_root.forcedmg[1];
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
gotoAndStop(1);
} else {
gotoAndPlay(30);
}
}
frame 33 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 33 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
++_root.forcedmg[2];
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
gotoAndStop(1);
} else {
gotoAndPlay(32);
}
}
frame 35 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 35 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
++_root.forcedmg[3];
if (_root.buildingcurrent == undefinned) {
tellTarget ('_root.menu') {
gotoAndPlay(1);
}
}
gotoAndStop(1);
} else {
gotoAndPlay(34);
}
}
frame 37 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 37 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.buildingname[numberthing] = _root.buildingarray[5];
if (_root.buildingcurrent == numberthing) {
tellTarget ('_root.menu') {
gotoAndStop('weapons');
}
}
tellTarget ('_root['building' + numberthing]') {
gotoAndStop('weapons');
}
gotoAndStop(1);
} else {
gotoAndPlay(36);
}
}
frame 39 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 39 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.forcecannonrate -= 15;
gotoAndStop(1);
} else {
gotoAndPlay(38);
}
}
frame 41 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 41 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
++_root.misslestock;
gotoAndStop(1);
} else {
gotoAndPlay(40);
}
}
frame 43 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 43 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
duplicateMovieClip(_root.missleup, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root['building' + numberthing]._x;
_root['bombshell' + _root.bombnum]._y = _root['building' + numberthing]._y - 20;
++_root.bombnum;
gotoAndStop(1);
} else {
gotoAndPlay(42);
}
}
frame 45 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 45 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.speed = 0.3;
_root.shocktime = 100;
duplicateMovieClip(_root.shock, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = 350;
_root['bombshell' + _root.bombnum]._y = 125;
++_root.bombnum;
gotoAndStop(1);
} else {
gotoAndPlay(44);
}
}
frame 47 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 47 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.playSound('emp');
duplicateMovieClip(_root.emp, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = 350;
_root['bombshell' + _root.bombnum]._y = 125;
++_root.bombnum;
gotoAndStop(1);
} else {
gotoAndPlay(46);
}
}
frame 49 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 49 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
if (_root.enemybuildingname[0] == 'defence' || _root.enemybuildingname[1] == 'defence' || _root.enemybuildingname[2] == 'defence' || _root.enemybuildingname[3] == 'defence') {
tellTarget ('_root.enemyhackpic') {
gotoAndPlay('anti');
}
} else {
_root.aimoney = -100;
tellTarget ('_root.enemyhackpic') {
play();
}
}
gotoAndStop(1);
} else {
gotoAndPlay(48);
}
}
frame 51 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 51 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.research[0] = true;
gotoAndStop(1);
} else {
gotoAndPlay(50);
}
}
frame 53 {
bar._width = ((_root.roundtime - _root.tobuild[numberthing][3]) / (_root.tobuild[numberthing][0] - _root.tobuild[numberthing][3])) * 100;
}
frame 53 {
if (_root.roundtime == _root.tobuild[numberthing][0]) {
_root.research[1] = true;
gotoAndStop(1);
} else {
gotoAndPlay(52);
}
}
}
instance delayer1 of movieClip 637 {
onClipEvent (load) {
numberthing = 1;
}
}
instance delayer2 of movieClip 637 {
onClipEvent (load) {
numberthing = 2;
}
}
instance delayer3 of movieClip 637 {
onClipEvent (load) {
numberthing = 3;
}
}
instance delayer0 of movieClip 637 {
onClipEvent (load) {
numberthing = 0;
}
}
button 638 {
on (release) {
if (_root.buildingname[0] == 'defence' || _root.buildingname[1] == 'defence' || _root.buildingname[2] == 'defence' || _root.buildingname[3] == 'defence') {
tellTarget ('_root.forcehackpic') {
gotoAndPlay('anti');
}
} else {
_root.money = -100;
tellTarget ('_root.forcehackpic') {
play();
}
}
}
}
button 639 {
on (release) {
duplicateMovieClip(_root.enemymissleup, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemybase._x;
_root['bombshell' + _root.bombnum]._y = _root.enemybase._y - 20;
++_root.bombnum;
}
}
movieClip 641 {
frame 15 {
if (_root.soundOn == true) {
play();
} else {
gotoAndStop(1);
}
}
frame 17 {
stop();
}
}
button 642 {
on (keyPress '=') {
_root.enemyendtime = true;
}
}
movieClip 647 {
}
movieClip 648 {
}
movieClip 660 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('troopfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forcecount;
}
frame 17 {
stop();
}
}
instance forcez of movieClip 660 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcex) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[0], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[0], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 2 + _root.forcedmg[0];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
movieClip 670 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('troopfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemycount;
}
frame 17 {
stop();
}
}
instance enemyz of movieClip 670 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._y > _root.forcey && _root.forcey != undefinned && this._y > 0 && this._x == _root.enemyx && this._y < 145) {
this._y += 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._y > 0 && this._y > 100 && this._x == _root.enemyx) {
this._y -= 1;
}
}
if (this.hitTest(_root.forcetankx + _root.enemydmg[0], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[0], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 2 + _root.enemydmg[0];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
movieClip 673 {
frame 11 {
gotoAndPlay(7);
}
}
movieClip 678 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forcetankcount;
}
frame 12 {
stop();
}
}
instance forcetankblue of movieClip 678 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
movieClip 685 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemytankcount;
}
frame 12 {
stop();
}
}
instance enemytankblue of movieClip 685 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
movieClip 689 {
}
movieClip 690 {
frame 42 {
gotoAndPlay(40);
}
}
movieClip 704 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.forcecount;
}
frame 19 {
stop();
}
}
instance forcespecialblue of movieClip 704 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
movieClip 716 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.enemycount;
}
frame 19 {
stop();
}
}
instance enemyspecialblue of movieClip 716 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
movieClip 718 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forceaircount;
}
frame 12 {
stop();
}
}
instance forceairblue of movieClip 718 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairblue of movieClip 337 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
movieClip 722 {
frame 1 {
stop();
}
frame 2 {
++_root.forceaircount;
}
frame 8 {
stop();
}
}
instance forcebomber of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4)) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= _root.speed * 2;
}
this._x += _root.speed * 3;
}
}
}
if (this.hitTest(_root.enemytankx, this._y) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
}
}
}
instance forcebomberblue of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 724 {
frame 1 {
stop();
}
frame 2 {
++_root.enemyaircount;
}
frame 8 {
stop();
}
}
instance enemybomberblue of movieClip 724 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 730 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forcetankcount;
}
frame 12 {
stop();
}
}
instance forcetankyellow of movieClip 730 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
movieClip 736 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemytankcount;
}
frame 12 {
stop();
}
}
instance enemytankyellow of movieClip 736 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
movieClip 740 {
}
movieClip 752 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.forcecount;
}
frame 19 {
stop();
}
}
instance forcespecialyellow of movieClip 752 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
movieClip 764 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.enemycount;
}
frame 19 {
stop();
}
}
instance enemyspecialyellow of movieClip 764 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
movieClip 767 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forceaircount;
}
frame 12 {
stop();
}
}
instance forceairyellow of movieClip 767 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
movieClip 768 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemyaircount;
}
frame 12 {
stop();
}
}
instance enemyairyellow of movieClip 768 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
movieClip 770 {
frame 1 {
stop();
}
frame 2 {
++_root.forceaircount;
}
frame 8 {
stop();
}
}
instance forcebomberyellow of movieClip 770 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 771 {
frame 1 {
stop();
}
frame 2 {
++_root.enemyaircount;
}
frame 8 {
stop();
}
}
instance enemybomberyellow of movieClip 771 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 777 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forcetankcount;
}
frame 12 {
stop();
}
}
instance forcetankteal of movieClip 777 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
movieClip 783 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemytankcount;
}
frame 12 {
stop();
}
}
instance enemytankteal of movieClip 783 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
movieClip 787 {
}
movieClip 799 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.forcecount;
}
frame 19 {
stop();
}
}
instance forcespecialteal of movieClip 799 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
movieClip 811 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.enemycount;
}
frame 19 {
stop();
}
}
instance enemyspecialteal of movieClip 811 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
movieClip 814 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forceaircount;
}
frame 12 {
stop();
}
}
instance forceairteal of movieClip 814 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
movieClip 815 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemyaircount;
}
frame 12 {
stop();
}
}
instance enemyairteal of movieClip 815 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
movieClip 817 {
frame 1 {
stop();
}
frame 2 {
++_root.forceaircount;
}
frame 8 {
stop();
}
}
instance forcebomberteal of movieClip 817 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 818 {
frame 1 {
stop();
}
frame 2 {
++_root.enemyaircount;
}
frame 8 {
stop();
}
}
instance enemybomberteal of movieClip 818 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 824 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forcetankcount;
}
frame 12 {
stop();
}
}
instance forcetankred of movieClip 824 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
movieClip 830 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('tankfire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemytankcount;
}
frame 12 {
stop();
}
}
instance enemytankred of movieClip 830 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
movieClip 834 {
}
movieClip 846 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.forcecount;
}
frame 19 {
stop();
}
}
instance forcespecialred of movieClip 846 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
movieClip 858 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('sniperfire');
}
frame 6 {
gotoAndPlay(1);
}
frame 8 {
++_root.enemycount;
}
frame 19 {
stop();
}
}
instance enemyspecialred of movieClip 858 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
movieClip 861 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.forceaircount;
}
frame 12 {
stop();
}
}
instance forceairred of movieClip 861 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
movieClip 863 {
frame 1 {
stop();
}
frame 2 {
_root.playSound('planefire');
}
frame 4 {
gotoAndPlay(1);
}
frame 6 {
++_root.enemyaircount;
}
frame 12 {
stop();
}
}
instance enemyairred of movieClip 863 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
movieClip 865 {
frame 1 {
stop();
}
frame 2 {
++_root.forceaircount;
}
frame 8 {
stop();
}
}
instance forcebomberred of movieClip 865 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 866 {
frame 1 {
stop();
}
frame 2 {
++_root.enemyaircount;
}
frame 8 {
stop();
}
}
instance enemybomberred of movieClip 866 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
movieClip 868 {
}
instance of movieClip 868 {
onClipEvent (load) {
if (_root.skybg == 'day') {
this._visible = false;
}
}
}
button 871 {
on (release) {
getURL('http://www.mofunzone.com/', '_blank');
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
frame 550 {
forcetankx = this['forcetank' + forcetankcount]._x;
enemytankx = this['enemytank' + enemytankcount]._x;
forcetanky = this['forcetank' + forcetankcount]._y;
enemytanky = this['enemytank' + enemytankcount]._y;
enemyairy = this['enemyair' + enemyaircount]._y;
forceairy = this['forceair' + forceaircount]._y;
enemyairx = this['enemyair' + enemyaircount]._x;
forceairx = this['forceair' + forceaircount]._x;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
enemyy = this['enemy' + enemycount]._y;
forcey = this['force' + forcecount]._y;
if (_root.shooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['enemy' + enemycount]') {
gotoAndPlay('dead');
_root.shooting = false;
}
}
if (_root.tankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['enemytank' + enemytankcount]') {
gotoAndPlay('dead');
_root.tankshooting = false;
}
}
if (_root.enemyshooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['force' + forcecount]') {
gotoAndPlay('dead');
_root.enemyshooting = false;
}
}
if (_root.enemytankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['forcetank' + forcetankcount]') {
gotoAndPlay('dead');
_root.enemytankshooting = false;
}
}
if (_root.airshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['enemyair' + enemyaircount]') {
gotoAndPlay('dead');
_root.airshooting = false;
}
}
if (_root.enemyairshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['forceair' + forceaircount]') {
gotoAndPlay('dead');
_root.enemyairshooting = false;
}
}
if (_root.roundtime >= _root.timermoneyneed) {
timermoneyneed += 50;
_root.money += _root.income;
_root.aimoney += _root.income + 20;
}
if (_root.DialogueNum == 9) {
_root.AI2();
} else {
if (_root.DialogueNum == 13) {
_root.AI3();
} else {
_root.AI4();
}
}
}
movieClip 872 {
frame 13 {
stop();
_parent.removeMovieClip();
removeMovieClip(this);
removeMovieClip(_parent);
}
}
instance boom of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (load) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
movieClip 874 {
}
instance bombshell of movieClip 874 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y += 5;
if (this._y > 120) {
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
if (this.hitTest(_root.enemybase)) {
_root.enemylife -= 5 + _root.forcedmg[3];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.forcebase)) {
_root.forcelife -= 5 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
}
}
}
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
}
}
instance bombershell of movieClip 874 {
onClipEvent (enterFrame) {
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 7;
if (this._y > 120) {
_root.playSound('boom1');
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
}
}
}
movieClip 878 {
}
instance cannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyx) {
this._x += 3;
} else {
if (this._x > _root.enemyx) {
this._x -= 3;
}
}
if (this._y < _root.enemyy) {
this._y += 1;
} else {
if (this._y > _root.enemyy) {
this._y -= 1;
}
}
if (this.hitTest(_root.enemyx, _root.enemyy)) {
_root.shooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyairx) {
this._x += 3;
} else {
if (this._x > _root.enemyairx) {
this._x -= 3;
}
}
if (this._y < _root.enemyairy) {
this._y += 2;
} else {
if (this._y > _root.enemyairy) {
this._y -= 2;
}
}
if (this.hittest(_root.enemyairx, _root.enemyairy)) {
_root.airshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcex == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcex) {
this._x += 3;
} else {
if (this._x > _root.forcex) {
this._x -= 3;
}
}
if (this._y < _root.forcey) {
this._y += 1;
} else {
if (this._y > _root.forcey) {
this._y -= 1;
}
}
if (this.hittest(_root.forcex, _root.forcey)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forceairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forceairx) {
this._x += 3;
} else {
if (this._x > _root.forceairx) {
this._x -= 3;
}
}
if (this._y < _root.forceairy) {
this._y += 2;
} else {
if (this._y > _root.forceairy) {
this._y -= 2;
}
}
if (this.hittest(_root.forceairx, _root.forceairy)) {
_root.enemyairshooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemytankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemytankx) {
this._x += 3;
} else {
if (this._x > _root.enemytankx) {
this._x -= 3;
}
}
if (this._y < _root.enemytanky) {
this._y += 1;
} else {
if (this._y > _root.enemytanky) {
this._y -= 1;
}
}
if (this.hittest(_root.enemytankx, _root.enemytanky)) {
_root.tankshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcetankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcetankx) {
this._x += 3;
} else {
if (this._x > _root.forcetankx) {
this._x -= 3;
}
}
if (this._y < _root.forcetanky) {
this._y += 1;
} else {
if (this._y > _root.forcetanky) {
this._y -= 1;
}
}
if (this.hittest(_root.forcetankx, _root.forcetanky)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
}
}
}
instance missledown of movieClip 341 {
onClipEvent (enterFrame) {
if (_root.endgame == true) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 10;
if (this._y > 120) {
duplicateMovieClip(_root.boom2, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
_root.playSound('boom1');
}
}
}
}
instance missleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.enemyx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemyx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.enemytankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemytankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
instance boom2 of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
}
}
}
}
movieClip 880 {
frame 52 {
_parent.removeMovieClip();
removeMovieClip(this);
removeMovieClip(_parent);
}
}
instance emp of movieClip 880 {
onClipEvent (load) {
if (this._y > 400) {
stopAllSounds();
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyairx, this._y)) {
_root.airshooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forceairx, this._y)) {
_root.enemyairshooting = true;
}
}
}
}
movieClip 882 {
}
movieClip 883 {
frame 2 {
if (_root.shocktime <= 0) {
_root.speed = 0.8;
_parent.removeMovieClip();
removeMovieClip(this);
removeMovieClip(_parent);
} else {
--_root.shocktime;
}
}
}
instance shock of movieClip 883 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
}
movieClip 884 {
frame 1 {
stop();
}
}
movieClip 885 {
frame 1 {
stop();
}
}
instance enemymissleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.forcex != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcex;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.forcetankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcetankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
frame 551 {
++roundtime;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
++_root.timermoney;
if (endtime == true) {
gotoAndPlay(578);
_root.endgame = true;
} else {
if (enemyendtime == true) {
_root.endgame = true;
gotoAndPlay(556);
} else {
gotoAndPlay(550);
}
}
}
frame 553 {
_root.endgame = false;
_root.endtime = false;
_root.enemyendtime = false;
enemycount = 0;
forcecount = 0;
forcenum = 0;
enemynum = 0;
enemytanknum = 0;
enemytankcount = 0;
forcetanknum = 0;
forcetankcount = 0;
enemyaircount = 0;
forceaircount = 0;
forceairnum = 0;
enemyairnum = 0;
forcehold = 0;
enemyhold = 0;
speed = 0.8;
airspeed = speed * 3;
forcedmg = [0, 0, 0, 0];
forceup = [0, 0, 0, 0];
enemydmg = [0, 0, 0, 0];
bombnum = 1;
bombstock = 'none';
research = [false, false];
forcecannonbuilt2 = false;
forcecannonbuilt = false;
enemycannonbuilt = false;
misslestock = 0;
forcecannonlevel = 0;
forcecannonrate = 135;
enemycannonrate = 160;
tobuild = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0]];
buildingcurrent = 0;
enemybuildingname = [];
buildingname = [];
buildingarray = ['barracks', 'airbase', 'business', 'science', 'defence', 'weapons'];
aido = false;
aimoney = 1000;
spacer = 40;
money = 1000;
income = 25;
forcelifemax = 50;
enemylifemax = 30;
forcelife = forcelifemax;
enemylife = enemylifemax;
shocktime = 0;
timerneed = 300;
timermoneyneed = 50;
roundtime = 0;
_root.herothing(0);
_root.herothing(1);
_root.herothing(2);
_root.herothing(3);
_root.herothing(4);
}
frame 553 {
duplicateMovieClip(this['forcetank' + forcecolorvar], 'forcetank', 1000);
duplicateMovieClip(this['forcespecial' + forcecolorvar], 'forcespecial', 1001);
duplicateMovieClip(this['forceair' + forcecolorvar], 'forceair', 1002);
duplicateMovieClip(this['forcebomber' + forcecolorvar], 'forcebomber', 1003);
duplicateMovieClip(forcez, 'force', 1004);
duplicateMovieClip(this['forcedrill' + forcecolorvar], 'forcebomber', 1015);
duplicateMovieClip(this['enemyair' + enemycolorvar], 'enemyair', 1007);
duplicateMovieClip(this['enemytank' + enemycolorvar], 'enemytank', 1010);
duplicateMovieClip(this['enemyspecial' + enemycolorvar], 'enemyspecial', 1011);
duplicateMovieClip(this['enemybomber' + enemycolorvar], 'enemybomber', 1012);
duplicateMovieClip(this['enemydrill' + forcecolorvar], 'enemydrill', 1014);
duplicateMovieClip(enemyz, 'enemy', 1013);
}
button 900 {
on (rollOver) {
text = 'War Industry';
price = '$100';
explain = 'Builds soldiers and tanks';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root.money >= 100) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
_root.playSound('yes');
_root.money -= 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 180;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebarracks');
}
}
}
}
}
button 901 {
on (rollOver) {
text = 'Business Center';
price = '$120';
explain = 'Earn more money / Improve income';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '2') {
if (_root.money >= 120) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
_root.playSound('yes');
_root.money -= 120;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 300;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
_root.buildingname[_root.buildingcurrent] = 'building';
tellTarget ('_root.buildingpic') {
gotoAndStop('building');
}
tellTarget ('_root['building' + _root.buildingcurrent]') {
gotoAndStop('building');
}
gotoAndStop(10);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebusiness');
}
}
}
}
}
button 903 {
on (rollOver) {
text = 'Infantry';
price = '$25';
explain = 'Light assult unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 25) {
_root.playSound('yes');
_root.money -= 25;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 30;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 150 - random(50);
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeman');
}
}
}
}
}
button 904 {
on (rollOver) {
text = 'Elite Sniper';
price = '$50';
explain = 'Long Range Support Unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 50) {
_root.playSound('yes');
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 150 - random(50);
_root.money -= 50;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makesniper');
}
}
}
}
}
button 906 {
on (rollOver) {
text = 'Fighter';
price = '$80';
explain = 'Air assult and bombardment unit';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 80) {
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 60;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 15 + random(30);
_root['nodelay' + _root.buildingcurrent] = false;
_root.money -= 80;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makefighter');
}
}
}
}
}
button 907 {
on (rollOver) {
text = 'Bomber';
price = '$50';
if (_root.bombstock == 'loaded') {
explain = 'Heavy Bombardment Unit';
} else {
requires = 'Requires bombs';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money >= 50 && _root.bombstock == 'loaded') {
_root.money -= 50;
_root.bombstock = 'none';
_root['nodelay' + _root.buildingcurrent] = false;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.tobuild[_root.buildingcurrent][1] = _root.forcebase._x + 40;
_root.tobuild[_root.buildingcurrent][2] = 15 + random(30);
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebomber');
}
}
}
}
button 908 {
on (rollOver) {
text = 'Manufacture Bombs';
price = '$100';
explain = 'Creates bomb shells';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.bombstock == 'none') {
if (_root.money >= 100) {
_root.money -= 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 180;
_root['nodelay' + _root.buildingcurrent] = false;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makebomb');
}
}
}
}
}
button 910 {
on (rollOver) {
text = 'Improve Income';
price = '$' + (businessprice + 100);
explain = 'Permenantly Increase income by +5';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > businessprice + 100) {
_root.money -= businessprice + 100;
businessprice += 50;
price = businessprice + 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeincome');
}
}
}
}
button 912 {
on (rollOver) {
text = 'Soldier Upgrade';
price = '$' + (100 + _root.forceup[0]);
if (_root.forceup[0] < 300) {
explain = 'Increase soldier damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
requires = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[0] && _root.forceup[0] < 300) {
_root.money -= 100 + _root.forceup[0];
_root.forceup[0] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemanup');
}
}
}
}
button 913 {
on (rollOver) {
text = 'Sniper Upgrade';
price = '$' + (100 + _root.forceup[1]);
if (_root.forceup[1] <= 300) {
explain = 'Increase sniper damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[1] && _root.forceup[1] <= 300) {
_root.money -= 100 + _root.forceup[1];
_root.forceup[1] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makesniperup');
}
}
}
}
button 914 {
on (rollOver) {
text = 'Tank Upgrade';
price = '$' + (100 + _root.forceup[2]);
if (_root.forceup[2] <= 300) {
explain = 'Increase tank damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[2] && _root.forceup[2] <= 300) {
_root.money -= 100 + _root.forceup[2];
_root.forceup[2] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('maketankup');
}
}
}
}
button 915 {
on (rollOver) {
text = 'Fighter upgrade';
price = '$' + (100 + _root.forceup[3]);
if (_root.forceup[3] <= 300) {
explain = 'Increase fighter damage by 1';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
requires = '';
explain = '';
price = '';
}
on (release, keyPress '4') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.money > 100 + _root.forceup[3] && _root.forceup[3] <= 300) {
_root.money -= 100 + _root.forceup[3];
_root.forceup[3] += 100;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 800;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makefighterup');
}
}
}
}
button 916 {
on (rollOver) {
text = 'Research Hack';
price = '$200';
}
on (rollOut, dragOut) {
text = '';
price = '';
}
on (release, keyPress '6') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 200) {
_root.research[1] = 'thing';
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 700;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 200;
_root['nodelay' + _root.buildingcurrent] = false;
this.hack._visible = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makehackre');
}
}
}
}
}
button 917 {
on (rollOver) {
text = 'Research E.M.P.';
price = '$200';
}
on (rollOut, dragOut) {
text = '';
price = '';
}
on (release, keyPress '5') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 200) {
_root.research[0] = 'thing';
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 700;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 200;
_root['nodelay' + _root.buildingcurrent] = false;
this.elec._visible = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeempre');
}
}
}
}
}
button 919 {
on (rollOver) {
text = 'Defence Cannon';
price = '$120';
if (_root.forcecannonbuilt2 == false) {
explain = 'Fires at enemy units';
} else {
requires = 'Only one cannon allowed at a time';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '1') {
if (_root.forcecannonbuilt2 == false) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 120) {
_root.forcecannonbuilt2 = true;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 200;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 120;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makecannon');
}
}
}
}
}
}
button 920 {
on (rollOver) {
text = 'Upgrade Cannon';
price = '$100';
if (_root.forcecannonlevel < 2) {
explain = 'Upgrade cannon fire speed';
} else {
requires = 'Upgrade Maxed';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '2') {
if (_root.forcecannonlevel < 2) {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 100) {
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 240;
++_root.forcecannonlevel;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 100;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makecannonrate');
}
}
}
}
}
}
button 921 {
on (rollOver) {
text = 'Shockwave';
price = '$250';
explain = 'Slows ground units';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 250) {
shocktime = 580;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 190;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 250;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeshock');
}
}
}
}
}
button 923 {
on (rollOver) {
text = 'Fire missle';
price = '$50';
if (_root.misslestock > 0) {
explain = 'Fires missle at enemy units';
} else {
requires = 'Requires one or more missles';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '2') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 50 && _root.misslestock > 0) {
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 50;
++_root.forcecannonlevel;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 50;
--_root.misslestock;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemissle');
}
}
}
}
}
button 924 {
on (rollOver) {
text = 'Make missle';
price = '$125';
explain = 'Prepares a missle';
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
}
on (release, keyPress '1') {
if (_root['nodelay' + _root.buildingcurrent] == true) {
if (_root.money >= 125) {
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 160;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 125;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makemisslestock');
}
}
}
}
}
button 925 {
on (rollOver) {
text = 'E.M.P.';
price = '$120';
if (_root.research[0] == true) {
explain = 'Destroys mechanical units';
} else {
requires = 'Research at research center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '3') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.research[0] == true) {
if (_root.money >= 120) {
shocktime = 480;
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 80;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 120;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makeemp');
}
}
}
}
}
button 926 {
on (rollOver) {
text = 'Hack';
price = '$250';
if (_root.research[1] == true) {
explain = 'Enemy owes dept of -$100';
} else {
requires = 'Research at research center';
}
}
on (rollOut, dragOut) {
text = '';
explain = '';
price = '';
requires = '';
}
on (release, keyPress '4') {
if (_root['nodelay' + _root.buildingcurrent] == true && _root.research[1] == true) {
if (_root.money >= 250) {
_root.tobuild[_root.buildingcurrent][0] = _root.roundtime + 240;
_root.tobuild[_root.buildingcurrent][3] = _root.roundtime;
_root.money -= 250;
_root['nodelay' + _root.buildingcurrent] = false;
tellTarget ('_root['delayer' + _root.buildingcurrent]') {
gotoAndPlay('makehack');
}
}
}
}
}
movieClip 927 {
frame 2 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
stop();
income2 = _root.income;
dmg0 = _root.forcedmg[0] + 2;
dmg1 = _root.forcedmg[1] + 1;
dmg2 = _root.forcedmg[2] + 10;
dmg3 = _root.forcedmg[3] + 5;
}
frame 3 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 174 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance of movieClip 186 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
frame 4 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
frame 5 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.bombstock == 'loaded') {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.bombstock == 'loaded') {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 6 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
frame 7 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
if (_root.research[0] == 'thing' || _root.research[0] == true) {
elec._visible = false;
}
if (_root.research[1] == true || _root.research[1] == 'thing') {
hack._visible = false;
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[0] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[0] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[1] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[1] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[2] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[2] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forceup[3] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forceup[3] < 300) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 8 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forcecannonbuilt2 == false) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forcecannonbuilt2 == false) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.forcecannonlevel < 2) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.forcecannonlevel < 2) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 9 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.misslestock >= 0) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.misslestock >= 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.research[0] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.research[0] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
if (_root.research[1] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.research[1] == true) {
this._visible = false;
} else {
this._visible = true;
}
}
}
frame 10 {
text = '';
explain = '';
requires = '';
price = '';
passive = '';
}
}
instance menu of movieClip 927 {
onClipEvent (load) {
businessprice = 0;
}
}
instance enemybar of movieClip 58 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance bar of movieClip 58 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
button 931 {
on (release, keyPress '<Space>') {
_root.playSound('yes');
_root.buildingcurrent = undefinned;
tellTarget ('_root.buildingpic') {
gotoAndStop('base');
}
tellTarget ('_root.menu') {
gotoAndStop('basestats');
}
_root.highlighter._x = -100;
_root.highlighter._y - 100;
roundthing._x = _root.forcebase._x;
roundthing._y = _root.forcebase._y - 20;
}
}
instance buildingpic of movieClip 602 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
button 932 {
on (release, keyPress 'd') {
_root.playSound('yes');
if (_root.buildingname[0] == undefinned) {
tellTarget ('_root.menu') {
gotoAndStop('build');
}
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[0]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[0]);
}
}
roundthing._x = _root.building0._x;
roundthing._y = _root.building0._y - 20;
_root.highlighter._x = _root.delayer0._x;
_root.highlighter._y = _root.delayer0._y;
_root.buildingcurrent = 0;
}
}
button 933 {
on (release, keyPress 's') {
_root.playSound('yes');
if (_root.buildingname[1] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[1]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[1]);
}
}
_root.highlighter._x = _root.delayer1._x;
_root.highlighter._y = _root.delayer1._y;
roundthing._x = _root.building1._x;
roundthing._y = _root.building1._y - 20;
_root.buildingcurrent = 1;
}
}
instance roundthing of movieClip 216 {
onClipEvent (load) {
this._x = _root.forcebase._x;
this._y = _root.forcebase._y - 20;
}
}
instance delayer1 of movieClip 637 {
onClipEvent (load) {
numberthing = 1;
}
}
instance delayer0 of movieClip 637 {
onClipEvent (load) {
numberthing = 0;
}
}
instance forcez of movieClip 660 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcex) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[0], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[0], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 2 + _root.forcedmg[0];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyz of movieClip 670 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._y > _root.forcey && _root.forcey != undefinned && this._y > 0 && this._x == _root.enemyx && this._y < 145) {
this._y += 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._y > 0 && this._y > 100 && this._x == _root.enemyx) {
this._y -= 1;
}
}
if (this.hitTest(_root.forcetankx + _root.enemydmg[0], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[0], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 2 + _root.enemydmg[0];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forcetankblue of movieClip 678 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankblue of movieClip 685 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialblue of movieClip 704 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialblue of movieClip 716 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairblue of movieClip 718 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairblue of movieClip 337 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomber of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4)) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= _root.speed * 2;
}
this._x += _root.speed * 3;
}
}
}
if (this.hitTest(_root.enemytankx, this._y) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
}
}
}
instance forcebomberblue of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberblue of movieClip 724 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankyellow of movieClip 730 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankyellow of movieClip 736 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialyellow of movieClip 752 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialyellow of movieClip 764 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairyellow of movieClip 767 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairyellow of movieClip 768 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberyellow of movieClip 770 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberyellow of movieClip 771 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankteal of movieClip 777 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankteal of movieClip 783 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialteal of movieClip 799 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialteal of movieClip 811 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairteal of movieClip 814 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairteal of movieClip 815 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberteal of movieClip 817 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberteal of movieClip 818 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankred of movieClip 824 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankred of movieClip 830 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 10 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialred of movieClip 846 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialred of movieClip 858 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
_root.forcelife -= 1 + _root.enemydmg[2];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairred of movieClip 861 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairred of movieClip 863 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberred of movieClip 865 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberred of movieClip 866 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
frame 554 {
forcetankx = this['forcetank' + forcetankcount]._x;
enemytankx = this['enemytank' + enemytankcount]._x;
forcetanky = this['forcetank' + forcetankcount]._y;
enemytanky = this['enemytank' + enemytankcount]._y;
enemyairy = this['enemyair' + enemyaircount]._y;
forceairy = this['forceair' + forceaircount]._y;
enemyairx = this['enemyair' + enemyaircount]._x;
forceairx = this['forceair' + forceaircount]._x;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
enemyy = this['enemy' + enemycount]._y;
forcey = this['force' + forcecount]._y;
if (_root.shooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['enemy' + enemycount]') {
gotoAndPlay('dead');
_root.shooting = false;
}
}
if (_root.tankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['enemytank' + enemytankcount]') {
gotoAndPlay('dead');
_root.tankshooting = false;
}
}
if (_root.enemyshooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['force' + forcecount]') {
gotoAndPlay('dead');
_root.enemyshooting = false;
}
}
if (_root.enemytankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['forcetank' + forcetankcount]') {
gotoAndPlay('dead');
_root.enemytankshooting = false;
}
}
if (_root.airshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['enemyair' + enemyaircount]') {
gotoAndPlay('dead');
_root.airshooting = false;
}
}
if (_root.enemyairshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['forceair' + forceaircount]') {
gotoAndPlay('dead');
_root.enemyairshooting = false;
}
}
if (_root.roundtime >= _root.timermoneyneed) {
timermoneyneed += 50;
_root.money += _root.income;
_root.aimoney += _root.income + 20;
}
_root.AI1();
}
instance boom of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (load) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
instance bombshell of movieClip 874 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y += 5;
if (this._y > 120) {
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
if (this.hitTest(_root.enemybase)) {
_root.enemylife -= 5 + _root.forcedmg[3];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.forcebase)) {
_root.forcelife -= 5 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
}
}
}
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
}
}
instance bombershell of movieClip 874 {
onClipEvent (enterFrame) {
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 7;
if (this._y > 120) {
_root.playSound('boom1');
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
}
}
}
instance cannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyx) {
this._x += 3;
} else {
if (this._x > _root.enemyx) {
this._x -= 3;
}
}
if (this._y < _root.enemyy) {
this._y += 1;
} else {
if (this._y > _root.enemyy) {
this._y -= 1;
}
}
if (this.hitTest(_root.enemyx, _root.enemyy)) {
_root.shooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyairx) {
this._x += 3;
} else {
if (this._x > _root.enemyairx) {
this._x -= 3;
}
}
if (this._y < _root.enemyairy) {
this._y += 2;
} else {
if (this._y > _root.enemyairy) {
this._y -= 2;
}
}
if (this.hittest(_root.enemyairx, _root.enemyairy)) {
_root.airshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcex == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcex) {
this._x += 3;
} else {
if (this._x > _root.forcex) {
this._x -= 3;
}
}
if (this._y < _root.forcey) {
this._y += 1;
} else {
if (this._y > _root.forcey) {
this._y -= 1;
}
}
if (this.hittest(_root.forcex, _root.forcey)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forceairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forceairx) {
this._x += 3;
} else {
if (this._x > _root.forceairx) {
this._x -= 3;
}
}
if (this._y < _root.forceairy) {
this._y += 2;
} else {
if (this._y > _root.forceairy) {
this._y -= 2;
}
}
if (this.hittest(_root.forceairx, _root.forceairy)) {
_root.enemyairshooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemytankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemytankx) {
this._x += 3;
} else {
if (this._x > _root.enemytankx) {
this._x -= 3;
}
}
if (this._y < _root.enemytanky) {
this._y += 1;
} else {
if (this._y > _root.enemytanky) {
this._y -= 1;
}
}
if (this.hittest(_root.enemytankx, _root.enemytanky)) {
_root.tankshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcetankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcetankx) {
this._x += 3;
} else {
if (this._x > _root.forcetankx) {
this._x -= 3;
}
}
if (this._y < _root.forcetanky) {
this._y += 1;
} else {
if (this._y > _root.forcetanky) {
this._y -= 1;
}
}
if (this.hittest(_root.forcetankx, _root.forcetanky)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
}
}
}
instance missledown of movieClip 341 {
onClipEvent (enterFrame) {
if (_root.endgame == true) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 10;
if (this._y > 120) {
duplicateMovieClip(_root.boom2, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
_root.playSound('boom1');
}
}
}
}
instance missleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.enemyx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemyx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.enemytankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemytankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
instance boom2 of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
}
}
}
}
instance emp of movieClip 880 {
onClipEvent (load) {
if (this._y > 400) {
stopAllSounds();
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyairx, this._y)) {
_root.airshooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forceairx, this._y)) {
_root.enemyairshooting = true;
}
}
}
}
instance shock of movieClip 883 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
}
instance enemymissleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.forcex != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcex;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.forcetankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcetankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
frame 555 {
++roundtime;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
++_root.timermoney;
if (endtime == true) {
_root.endgame = true;
gotoAndPlay(578);
} else {
if (enemyendtime == true) {
_root.endgame = true;
gotoAndPlay(556);
} else {
gotoAndPlay(554);
}
}
}
frame 556 {
if (_root.DialogueNum == 29) {
stopAllSounds();
gotoAndPlay(652);
}
}
movieClip 937 {
}
frame 577 {
stopAllSounds();
}
frame 577 {
stop();
}
button 942 {
on (release) {
++_root.DialogueNum;
if (_root.soundOn == true) {
menumuse = new Sound();
menumuse.attachSound('menuloop');
menumuse.start();
menumuse.onSoundComplete = function () {
_root.menumuse.start();
};
}
gotoAndStop(547);
}
}
button 943 {
on (release) {
_root.playSound('select');
}
on (release) {
user.data.a = textthing;
user.data.b = setx;
user.data.c = sety;
user.data.d = dialoguenum;
user.data.e1 = briefpic[0];
user.data.e2 = briefpic[1];
user.data.e3 = briefpic[2];
user.data.e4 = briefpic[3];
user.data.f = objective;
user.data.g1 = _root.forcehero[0];
user.data.g2 = _root.forcehero[1];
user.data.g3 = _root.forcehero[2];
user.flush();
tellTarget ('indicator') {
play();
}
}
}
button 944 {
on (release) {
gotoAndPlay(120);
}
}
movieClip 946 {
}
movieClip 947 {
}
movieClip 948 {
frame 1 {
stop();
}
}
movieClip 952 {
}
frame 599 {
stopAllSounds();
}
frame 599 {
stop();
}
button 955 {
on (release) {
if (_root.DialogueNum < 9) {
gotoAndPlay(553);
} else {
gotoAndPlay(549);
}
}
}
frame 600 {
stop();
forcehero = [0, 0, 0, 0, 0];
}
button 961 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
gotoAndStop(601);
}
}
button 962 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
if (user.data.z == undefinned) {
_root.playSound('no');
} else {
_root.forcelifemax = user.data.aa;
_root.forcelife = user.data.ab;
_root.credits = user.data.ac;
_root.forcecolorvar = user.data.z;
_root.colorforce = user.data.x;
_root.forcehero[0] = user.data.v1;
_root.forcehero[1] = user.data.v2;
_root.forcehero[2] = user.data.v3;
_root.forcehero[3] = user.data.v4;
_root.forcehero[4] = user.data.v5;
_root.skybg = user.data.q;
_root.teamname = user.data.w;
gotoAndStop(602);
}
}
}
frame 601 {
_root.heronumber = 0;
}
frame 601 {
_root.credits = 0;
forcecolorvar = 'blue';
colorforce = 26265;
_root.forcelifemax = 100;
_root.forcelife = _root.forcelifemax;
_root.skybg = 'day';
}
instance of movieClip 177 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
onClipEvent (enterFrame) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
button 976 {
on (release) {
forcecolorvar = 'blue';
colorforce = 26265;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 980 {
on (release) {
forcecolorvar = 'yellow';
colorforce = 16763904;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 984 {
on (release) {
forcecolorvar = 'teal';
colorforce = 52377;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 988 {
on (release) {
forcecolorvar = 'red';
colorforce = 13369344;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('troopcaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('tankcaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('snipercaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('business');
}
}
}
button 990 {
on (rollOver) {
_root.heroselected = 'troopcaptain';
}
on (release) {
_root.forcehero[0] = _root.heroselected;
roundthing._x = this.b1._x;
roundthing._y = this.b1._y;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 991 {
on (rollOver) {
_root.heroselected = 'tankcaptain';
}
on (release) {
_root.forcehero[0] = _root.heroselected;
roundthing._x = this.b2._x;
roundthing._y = this.b2._y;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 992 {
on (rollOver) {
_root.heroselected = 'snipercaptain';
}
on (release) {
_root.forcehero[0] = _root.heroselected;
roundthing._x = this.b3._x;
roundthing._y = this.b3._y;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 993 {
on (rollOver) {
_root.heroselected = 'business';
}
on (release) {
_root.forcehero[0] = _root.heroselected;
roundthing._x = this.b4._x;
roundthing._y = this.b4._y;
}
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
}
button 1001 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
_root.teamname = _root.subteamname;
gotoAndStop(602);
}
}
frame 602 {
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
}
instance of movieClip 177 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
colorchoosenforce = new Color(_root.teamtag);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance bar of movieClip 58 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
button 1009 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
if (_root.credits >= 500) {
_root.credits -= 500;
_root.forcelife = _root.forcelifemax;
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
}
}
}
button 1010 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
if (_root.credits >= 2000) {
_root.credits -= 2000;
_root.forcelife += 5;
_root.forcelifemax += 5;
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
}
}
}
button 1012 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
user.data.ac = _root.credits;
user.data.z = _root.forcecolorvar;
user.data.x = _root.colorforce;
user.data.v1 = _root.forcehero[0];
user.data.v2 = _root.forcehero[1];
user.data.v3 = _root.forcehero[2];
user.data.v4 = _root.forcehero[3];
user.data.v5 = _root.forcehero[4];
user.data.q = _root.skybg;
user.data.w = _root.teamname;
user.data.aa = _root.forcelifemax;
user.data.ab = _root.forcelife;
user.flush();
tellTarget ('indicator') {
play();
}
}
}
instance hero1 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[0]);
}
}
}
instance hero2 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[1]);
}
}
}
instance hero3 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[2]);
}
}
}
instance hero4 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[3]);
}
}
}
instance hero5 of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.forcehero[4]);
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('troopcaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('tankcaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('snipercaptain');
}
}
}
instance of movieClip 478 {
onClipEvent (load) {
with (this) {
gotoAndStop('business');
}
}
}
button 1018 {
on (rollOver) {
_root.heroselected = 'troopcaptain';
}
on (release) {
if (_root.credits >= 8000) {
_root.credits -= 8000;
inumber = 0;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 1;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 2;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 3;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 4;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
_root.playSound('no');
_root.credits += 8000;
}
}
}
}
}
} else {
_root.playSound('no');
}
}
}
button 1019 {
on (rollOver) {
_root.heroselected = 'tankcaptain';
}
on (release) {
if (_root.credits >= 3000) {
_root.credits -= 3000;
inumber = 0;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 1;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 2;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 3;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 4;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
_root.playSound('no');
_root.credits += 3000;
}
}
}
}
}
} else {
_root.playSound('no');
}
}
}
button 1020 {
on (rollOver) {
_root.heroselected = 'snipercaptain';
}
on (release) {
if (_root.credits >= 9000) {
_root.credits -= 9000;
inumber = 0;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 1;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 2;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 3;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 4;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
_root.playSound('no');
_root.credits += 9000;
}
}
}
}
}
} else {
_root.playSound('no');
}
}
}
button 1021 {
on (rollOver) {
_root.heroselected = 'business';
}
on (release) {
if (_root.credits >= 4000) {
_root.credits -= 4000;
inumber = 0;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 1;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 2;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 3;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
inumber = 4;
if (_root.forcehero[inumber] == 0) {
_root.forcehero[inumber] = _root.heroselected;
tellTarget ('_root['hero' + (inumber + 1)]') {
gotoAndStop(_root.heroselected);
}
} else {
_root.playSound('no');
_root.credits += 4000;
}
}
}
}
}
} else {
_root.playSound('no');
}
}
}
button 1022 {
on (release) {
_root.forcehero[0] = 0;
tellTarget ('_root.hero1') {
gotoAndStop('0');
}
}
}
button 1023 {
on (release) {
_root.forcehero[1] = 0;
tellTarget ('_root.hero2') {
gotoAndStop('0');
}
}
}
button 1024 {
on (release) {
_root.forcehero[2] = 0;
tellTarget ('_root.hero3') {
gotoAndStop('0');
}
}
}
button 1025 {
on (release) {
_root.forcehero[3] = 0;
tellTarget ('_root.hero4') {
gotoAndStop('0');
}
}
}
button 1026 {
on (release) {
_root.forcehero[4] = 0;
tellTarget ('_root.hero5') {
gotoAndStop('0');
}
}
}
movieClip 1034 {
}
button 1038 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
gotoAndStop(603);
}
}
frame 603 {
stop();
Mouse.hide();
}
instance of movieClip 363 {
onClipEvent (enterFrame) {
this._y = _root._ymouse;
}
}
instance of movieClip 363 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
}
}
button 1041 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'grass';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 100;
_root.customai = 1;
_root.creditup = 1400;
_root.textthing = 'New Zealand';
}
}
button 1047 {
on (rollOver) {
_root.playSound('select');
}
on (release) {
_root.playSound('yes');
}
on (release) {
Mouse.show();
gotoAndStop(602);
}
}
button 1052 {
on (release) {
_root.stagebg = 'dirt';
}
}
button 1053 {
on (release) {
_root.stagebg = 'snow';
}
}
button 1054 {
on (release) {
_root.stagebg = 'grass';
}
}
button 1055 {
on (release) {
_root.stagebg = 'city';
}
}
button 1056 {
on (release) {
_root.skybg = 'night';
}
}
button 1057 {
on (release) {
_root.skybg = 'day';
}
}
button 1060 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'snow';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 140;
_root.customai = 1;
_root.creditup = 3000;
_root.textthing = 'Sweden';
}
}
button 1061 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'city';
enemycolorvar = 'red';
colorenemy = 10027008;
enemylifemax = 200;
_root.customai = 2;
_root.creditup = 6000;
_root.textthing = 'Asia';
}
}
button 1062 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'city';
enemycolorvar = 'red';
colorenemy = 10027008;
enemylifemax = 400;
_root.customai = 2;
_root.creditup = 7000;
_root.textthing = 'United States';
}
}
button 1063 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'grass';
enemycolorvar = 'teal';
colorenemy = 52377;
enemylifemax = 60;
_root.customai = 0;
_root.creditup = 900;
_root.textthing = 'Africa';
}
}
button 1064 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'city';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 100;
_root.customai = 1;
_root.creditup = 2000;
_root.textthing = 'Russia';
}
}
button 1065 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'snow';
enemycolorvar = 'teal';
colorenemy = 52377;
enemylifemax = 40;
_root.customai = 0;
_root.creditup = 600;
_root.textthing = 'Arctic Base';
}
}
button 1066 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'city';
enemycolorvar = 'red';
colorenemy = 10027008;
enemylifemax = 250;
_root.customai = 2;
_root.creditup = 6500;
_root.textthing = 'Japan';
}
}
button 1067 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'dirt';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 100;
_root.customai = 1;
_root.creditup = 3000;
_root.textthing = 'South America';
}
}
button 1068 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'dirt';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 100;
_root.customai = 1;
_root.creditup = 1500;
_root.textthing = 'Australia';
}
}
button 1069 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'dirt';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 120;
_root.CustomAI = 1;
_root.creditup = 2000;
_root.textthing = 'Egypt';
}
}
button 1070 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'grass';
enemycolorvar = 'red';
colorenemy = 10027008;
enemylifemax = 400;
_root.customai = 2;
_root.creditup = 6000;
_root.textthing = 'United Kingdom';
}
}
button 1071 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'grass';
enemycolorvar = 'yellow';
colorenemy = 16763904;
enemylifemax = 130;
_root.CustomAI = 1;
_root.creditup = 3500;
_root.textthing = 'Germany';
}
}
button 1072 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'dirt';
enemycolorvar = 'blue';
colorenemy = 26265;
enemylifemax = 500;
_root.customai = 3;
_root.creditup = 13000;
_root.textthing = 'Confederate Base';
}
}
button 1073 {
on (release) {
Mouse.show();
play();
_root.playSound('yes');
}
on (rollOver) {
_root.playSound('select');
}
on (rollOver) {
_root.stagebg = 'grass';
enemycolorvar = 'red';
colorenemy = 10027008;
enemylifemax = 300;
_root.customai = 2;
_root.creditup = 7000;
_root.textthing = 'Canada';
}
}
frame 604 {
gotoAndPlay(605);
_root.skybg = 'night';
if ('night') {
_root.skybg = 'day';
} else {
_root.skybg = 'night';
}
}
frame 605 {
_root.forcelifemax2 = _root.forcelifemax;
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
_root.endgame = false;
_root.endtime = false;
_root.enemyendtime = false;
enemycount = 0;
forcecount = 0;
forcenum = 0;
enemynum = 0;
enemytanknum = 0;
enemytankcount = 0;
forcetanknum = 0;
forcetankcount = 0;
enemyaircount = 0;
forceaircount = 0;
forceairnum = 0;
enemyairnum = 0;
forcehold = 0;
enemyhold = 0;
speed = 0.8;
airspeed = speed * 3;
forcedmg = [0, 0, 0, 0];
forceup = [0, 0, 0, 0];
enemydmg = [0, 0, 0, 0];
bombnum = 1;
bombstock = 'none';
research = [false, false];
forcecannonbuilt2 = false;
forcecannonbuilt = false;
enemycannonbuilt = false;
misslestock = 0;
forcecannonlevel = 0;
forcecannonrate = 135;
enemycannonrate = forcecannonrate;
tobuild = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0]];
buildingcurrent = 0;
enemybuildingname = [];
buildingname = [];
buildingarray = ['barracks', 'airbase', 'business', 'science', 'defence', 'weapons'];
aido = false;
aimoney = 1000;
spacer = 40;
money = 1000;
income = 25;
enemylife = enemylifemax;
shocktime = 0;
timerneed = 0;
timermoneyneed = 50;
roundtime = 0;
_root.herothing(0);
_root.herothing(1);
_root.herothing(2);
_root.herothing(3);
_root.herothing(4);
}
frame 605 {
duplicateMovieClip(this['forcetank' + forcecolorvar], 'forcetank', 1000);
duplicateMovieClip(this['forcespecial' + forcecolorvar], 'forcespecial', 1001);
duplicateMovieClip(this['forceair' + forcecolorvar], 'forceair', 1002);
duplicateMovieClip(this['forcebomber' + forcecolorvar], 'forcebomber', 1003);
duplicateMovieClip(forcez, 'force', 1004);
duplicateMovieClip(this['forcedrill' + forcecolorvar], 'forcebomber', 1015);
duplicateMovieClip(this['enemyair' + enemycolorvar], 'enemyair', 1007);
duplicateMovieClip(this['enemytank' + enemycolorvar], 'enemytank', 1010);
duplicateMovieClip(this['enemyspecial' + enemycolorvar], 'enemyspecial', 1011);
duplicateMovieClip(this['enemybomber' + enemycolorvar], 'enemybomber', 1012);
duplicateMovieClip(this['enemydrill' + forcecolorvar], 'enemydrill', 1014);
duplicateMovieClip(enemyz, 'enemy', 1013);
}
instance of movieClip 426 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.skybg);
}
}
}
instance of movieClip 434 {
onClipEvent (load) {
with (this) {
gotoAndStop(_root.stagebg);
}
}
}
instance forcebase of movieClip 197 {
onClipEvent (load) {
this.swapDepth(-999999);
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.forcelife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.forcelife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance basehitter2 of movieClip 58 {
onClipEvent (load) {
gotoAndStop(Math.random(1) + 1);
}
}
instance enemybase of movieClip 444 {
onClipEvent (load) {
this.swapDepth(-999998);
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.enemylife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 436 {
onClipEvent (enterFrame) {
if (_root.enemylife > 25) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance menu of movieClip 567 {
onClipEvent (load) {
businessprice = 0;
}
}
instance enemybar of movieClip 58 {
onClipEvent (load) {
colorchoosenenemy = new Color(this);
colorchoosenenemy.setRGB(_root.colorenemy);
}
}
instance bar of movieClip 58 {
onClipEvent (load) {
colorchoosenforce = new Color(this);
colorchoosenforce.setRGB(_root.colorforce);
}
}
instance buildingpic of movieClip 602 {
onClipEvent (load) {
with (this) {
gotoAndStop('base');
}
}
}
button 1080 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix1._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
button 1081 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix2._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
button 1082 {
on (release) {
_root.tobuild[4][0] = _root.roundtime + 50;
_root.tobuild[4][1] = _root.roundtime;
_root.fix3._visible = false;
tellTarget ('_root.delaybase') {
gotoAndPlay('fix');
}
}
}
button 1083 {
on (release) {
if (_root.enemycannonbuilt == false) {
_root.enemycannontime = _root.roundtime + 10;
_root.enemycannonbuilt = true;
tellTarget ('_root.enemycannon') {
gotoAndPlay('ready');
}
}
}
}
instance roundthing of movieClip 216 {
onClipEvent (load) {
this._x = _root.forcebase._x;
this._y = _root.forcebase._y - 20;
}
}
instance delayer1 of movieClip 637 {
onClipEvent (load) {
numberthing = 1;
}
}
instance delayer2 of movieClip 637 {
onClipEvent (load) {
numberthing = 2;
}
}
instance delayer3 of movieClip 637 {
onClipEvent (load) {
numberthing = 3;
}
}
instance delayer0 of movieClip 637 {
onClipEvent (load) {
numberthing = 0;
}
}
button 1084 {
on (release) {
if (_root.buildingname[0] == 'defence' || _root.buildingname[1] == 'defence' || _root.buildingname[2] == 'defence' || _root.buildingname[3] == 'defence') {
tellTarget ('_root.forcehackpic') {
gotoAndPlay('anti');
}
} else {
_root.money = -100;
tellTarget ('_root.forcehackpic') {
play();
}
}
}
}
button 1085 {
on (release, keyPress 'w') {
_root.playSound('select');
if (_root.buildingname[3] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[3]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[3]);
}
}
_root.highlighter._x = _root.delayer3._x;
_root.highlighter._y = _root.delayer3._y;
roundthing._x = _root.building3._x;
roundthing._y = _root.building3._y - 20;
_root.buildingcurrent = 3;
}
}
button 1086 {
on (release, keyPress 'a') {
_root.playSound('select');
if (_root.buildingname[2] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[2]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[2]);
}
}
roundthing._x = _root.building2._x;
roundthing._y = _root.building2._y - 20;
_root.highlighter._x = _root.delayer2._x;
_root.highlighter._y = _root.delayer2._y;
_root.buildingcurrent = 2;
}
}
button 1087 {
on (release, keyPress '<Space>') {
_root.playSound('select');
_root.buildingcurrent = undefinned;
tellTarget ('_root.buildingpic') {
gotoAndStop('base');
}
tellTarget ('_root.menu') {
gotoAndStop('basestats');
}
_root.highlighter._x = -100;
_root.highlighter._y - 100;
roundthing._x = _root.forcebase._x;
roundthing._y = _root.forcebase._y - 20;
}
}
button 1088 {
on (release, keyPress 'd') {
_root.playSound('select');
if (_root.buildingname[0] == undefinned) {
tellTarget ('_root.menu') {
gotoAndStop('build');
}
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[0]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[0]);
}
}
roundthing._x = _root.building0._x;
roundthing._y = _root.building0._y - 20;
_root.highlighter._x = _root.delayer0._x;
_root.highlighter._y = _root.delayer0._y;
_root.buildingcurrent = 0;
}
}
button 1089 {
on (release, keyPress 's') {
_root.playSound('select');
if (_root.buildingname[1] == undefinned) {
tellTarget ('_root.buildingpic') {
gotoAndStop('build');
}
tellTarget ('_root.menu') {
gotoAndStop('build');
}
} else {
tellTarget ('_root.buildingpic') {
gotoAndStop(_root.buildingname[1]);
}
tellTarget ('_root.menu') {
gotoAndStop(_root.buildingname[1]);
}
}
_root.highlighter._x = _root.delayer1._x;
_root.highlighter._y = _root.delayer1._y;
roundthing._x = _root.building1._x;
roundthing._y = _root.building1._y - 20;
_root.buildingcurrent = 1;
}
}
instance forcez of movieClip 660 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcex) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[0], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[0], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 2 + _root.forcedmg[0];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyz of movieClip 670 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._y > _root.forcey && _root.forcey != undefinned && this._y > 0 && this._x == _root.enemyx && this._y < 145) {
this._y += 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._y > 0 && this._y > 100 && this._x == _root.enemyx) {
this._y -= 1;
}
}
if (this.hitTest(_root.forcetankx + _root.enemydmg[0], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[0], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 2 + _root.enemydmg[0];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forcetankblue of movieClip 678 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankblue of movieClip 685 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 10 + _root.enemydmg[2];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialblue of movieClip 704 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialblue of movieClip 716 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 1 + _root.enemydmg[1];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairblue of movieClip 718 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairblue of movieClip 337 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomber of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4)) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= _root.speed * 2;
}
this._x += _root.speed * 3;
}
}
}
if (this.hitTest(_root.enemytankx, this._y) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
++_root.bombnum;
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
}
}
}
}
instance forcebomberblue of movieClip 722 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberblue of movieClip 724 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankyellow of movieClip 730 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankyellow of movieClip 736 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 10 + _root.enemydmg[2];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialyellow of movieClip 752 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialyellow of movieClip 764 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 1 + _root.enemydmg[1];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairyellow of movieClip 767 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairyellow of movieClip 768 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberyellow of movieClip 770 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberyellow of movieClip 771 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankteal of movieClip 777 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankteal of movieClip 783 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 10 + _root.enemydmg[2];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialteal of movieClip 799 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialteal of movieClip 811 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 1 + _root.enemydmg[1];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairteal of movieClip 814 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairteal of movieClip 815 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberteal of movieClip 817 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberteal of movieClip 818 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance forcetankred of movieClip 824 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this._x == _root.forcetankx) {
if (this._y < _root.enemyy && _root.enemyy != undefinned) {
this._y += 1;
} else {
if (this._y > _root.enemyy && _root.enemyy != undefinned) {
this._y -= 1;
}
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[2], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 10 + _root.forcedmg[2];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x >= 700) {
removeMovieClip(this);
} else {
this._x += _root.speed / 2;
}
}
}
if (this.hitTest(_root.enemytankx - _root.forcedmg[2], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
}
}
}
instance enemytankred of movieClip 830 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[2], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[2], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 10 + _root.enemydmg[2];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed / 2;
}
}
}
if (this._y > _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx && this._y < 140) {
this._y -= 1;
} else {
if (this._y < _root.forcey && _root.forcey != undefinned && this._x == _root.enemytankx) {
this._y += 1;
}
}
}
}
}
instance forcespecialred of movieClip 846 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx - _root.forcedmg[1], this._y)) {
_root.tankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.enemyx - _root.forcedmg[1], this._y)) {
_root.shooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter) && _root.endgame != true || _root.endgame == true) {
_root.enemylife -= 1 + _root.forcedmg[1];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x > 700) {
removeMovieClip(this);
} else {
this._x += _root.speed;
}
}
}
}
}
}
instance enemyspecialred of movieClip 858 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forcetankx + _root.enemydmg[1], this._y)) {
_root.enemytankshooting = true;
with (this) {
play();
}
}
if (this.hitTest(_root.forcex + _root.enemydmg[1], this._y)) {
_root.enemyshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.basehitter2) && _root.endgame != true || _root.endgame == true) {
if (this.hitTest(_root.basehitter2)) {
_root.forcelife -= 1 + _root.enemydmg[1];
}
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
this._x -= _root.speed;
}
}
}
}
}
}
instance forceairred of movieClip 861 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemyairx - _root.forcedmg[3], this._y) && this._y < 400) {
_root.airshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank4)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 515) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
}
}
}
}
}
instance enemyairred of movieClip 863 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.forceairx + _root.enemydmg[3], this._y) && _root.forceairx != undefinned) {
_root.enemyairshooting = true;
with (this) {
play();
}
} else {
if (this.hitTest(_root.blank2)) {
duplicateMovieClip(_root.bombshell, 'bombshell' + _root.bombnum, _root.bombnum + 560000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (_root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x <= 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
}
}
}
}
}
instance forcebomberred of movieClip 865 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank4) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x >= 850 && this._y < 400) {
removeMovieClip(this);
} else {
if (this._x > 525) {
this._y -= 1.6;
}
this._x += _root.airspeed;
}
}
if ((this.hitTest(_root.enemyx, this._y) || this.hitTest(_root.enemytankx, this._y)) && this._y < 400) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance enemybomberred of movieClip 866 {
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.blank2) || _root.endgame == true) {
this._x = -80;
this._y = -80;
with (this) {
gotoAndPlay('dead');
play();
}
} else {
if (this.hitTest(_root.blank) || this._x < 0) {
removeMovieClip(this);
} else {
if (this._x < 175) {
this._y -= 1.6;
}
this._x -= _root.airspeed;
}
}
if (this.hitTest(_root.forcex, this._y) || this.hitTest(_root.forcetankx, this._y)) {
duplicateMovieClip(_root.bombershell, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y + 5;
++_root.bombnum;
}
}
}
}
instance of movieClip 868 {
onClipEvent (load) {
if (_root.skybg == 'day') {
this._visible = false;
}
}
}
frame 606 {
forcetankx = this['forcetank' + forcetankcount]._x;
enemytankx = this['enemytank' + enemytankcount]._x;
forcetanky = this['forcetank' + forcetankcount]._y;
enemytanky = this['enemytank' + enemytankcount]._y;
enemyairy = this['enemyair' + enemyaircount]._y;
forceairy = this['forceair' + forceaircount]._y;
enemyairx = this['enemyair' + enemyaircount]._x;
forceairx = this['forceair' + forceaircount]._x;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
enemyy = this['enemy' + enemycount]._y;
forcey = this['force' + forcecount]._y;
if (_root.shooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['enemy' + enemycount]') {
gotoAndPlay('dead');
_root.shooting = false;
}
}
if (_root.tankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['enemytank' + enemytankcount]') {
gotoAndPlay('dead');
_root.tankshooting = false;
}
}
if (_root.enemyshooting == true) {
_root.dieSound('troopdie');
tellTarget ('this['force' + forcecount]') {
gotoAndPlay('dead');
_root.enemyshooting = false;
}
}
if (_root.enemytankshooting == true) {
_root.dieSound('tankdie');
tellTarget ('this['forcetank' + forcetankcount]') {
gotoAndPlay('dead');
_root.enemytankshooting = false;
}
}
if (_root.airshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['enemyair' + enemyaircount]') {
gotoAndPlay('dead');
_root.airshooting = false;
}
}
if (_root.enemyairshooting == true) {
_root.dieSound('airdie');
tellTarget ('this['forceair' + forceaircount]') {
gotoAndPlay('dead');
_root.enemyairshooting = false;
}
}
if (_root.roundtime >= _root.timermoneyneed) {
timermoneyneed += 50;
_root.money += _root.income;
_root.aimoney += _root.income + 20;
}
if (_root.customai == 0) {
_root.AI1();
} else {
if (_root.customai == 1) {
_root.AI2();
} else {
if (_root.customai == 2) {
_root.AI4();
} else {
if (_root.customai == 3) {
_root.AI5();
}
}
}
}
}
instance boom of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (load) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
instance bombshell of movieClip 874 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y += 5;
if (this._y > 120) {
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
if (this.hitTest(_root.enemybase)) {
_root.enemylife -= 5 + _root.forcedmg[3];
_root.enemybar._width = (_root.enemylife / _root.enemylifemax) * 140;
tellTarget ('_root.enemybase') {
gotoAndPlay('hit');
}
} else {
if (this.hitTest(_root.forcebase)) {
_root.forcelife -= 5 + _root.enemydmg[3];
_root.bar._width = (_root.forcelife / _root.forcelifemax) * 140;
tellTarget ('_root.forcebase') {
gotoAndPlay('hit');
}
}
}
}
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
}
}
instance bombershell of movieClip 874 {
onClipEvent (enterFrame) {
if (_root.endgame == true || this.hitTest(_root.forcebase) || this.hitTest(_root.enemybase)) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 7;
if (this._y > 120) {
_root.playSound('boom1');
duplicateMovieClip(_root.boom, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
}
}
}
}
instance cannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyx) {
this._x += 3;
} else {
if (this._x > _root.enemyx) {
this._x -= 3;
}
}
if (this._y < _root.enemyy) {
this._y += 1;
} else {
if (this._y > _root.enemyy) {
this._y -= 1;
}
}
if (this.hitTest(_root.enemyx, _root.enemyy)) {
_root.shooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemyairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemyairx) {
this._x += 3;
} else {
if (this._x > _root.enemyairx) {
this._x -= 3;
}
}
if (this._y < _root.enemyairy) {
this._y += 2;
} else {
if (this._y > _root.enemyairy) {
this._y -= 2;
}
}
if (this.hittest(_root.enemyairx, _root.enemyairy)) {
_root.airshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshell of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcex == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcex) {
this._x += 3;
} else {
if (this._x > _root.forcex) {
this._x -= 3;
}
}
if (this._y < _root.forcey) {
this._y += 1;
} else {
if (this._y > _root.forcey) {
this._y -= 1;
}
}
if (this.hittest(_root.forcex, _root.forcey)) {
_root.enemyshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshellair of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forceairx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forceairx) {
this._x += 3;
} else {
if (this._x > _root.forceairx) {
this._x -= 3;
}
}
if (this._y < _root.forceairy) {
this._y += 2;
} else {
if (this._y > _root.forceairy) {
this._y -= 2;
}
}
if (this.hittest(_root.forceairx, _root.forceairy)) {
_root.enemyairshooting = true;
removeMovieClip(this);
}
}
}
}
instance cannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.enemytankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.enemytankx) {
this._x += 3;
} else {
if (this._x > _root.enemytankx) {
this._x -= 3;
}
}
if (this._y < _root.enemytanky) {
this._y += 1;
} else {
if (this._y > _root.enemytanky) {
this._y -= 1;
}
}
if (this.hittest(_root.enemytankx, _root.enemytanky)) {
_root.tankshooting = true;
removeMovieClip(this);
}
}
}
}
instance enemycannonshelltank of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.endgame == true || _root.forcetankx == undefinned) {
removeMovieClip(this);
}
if (this._y < 400) {
if (this._x < _root.forcetankx) {
this._x += 3;
} else {
if (this._x > _root.forcetankx) {
this._x -= 3;
}
}
if (this._y < _root.forcetanky) {
this._y += 1;
} else {
if (this._y > _root.forcetanky) {
this._y -= 1;
}
}
if (this.hittest(_root.forcetankx, _root.forcetanky)) {
_root.enemytankshooting = true;
removeMovieClip(this);
}
}
}
}
instance missledown of movieClip 341 {
onClipEvent (enterFrame) {
if (_root.endgame == true) {
removeMovieClip(this);
}
if (this._y < 400) {
this._y += 10;
if (this._y > 120) {
duplicateMovieClip(_root.boom2, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = this._x;
_root['bombshell' + _root.bombnum]._y = this._y;
++_root.bombnum;
removeMovieClip(this);
_root.playSound('boom1');
}
}
}
}
instance missleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.enemyx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemyx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.enemytankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.enemytankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
instance boom2 of movieClip 872 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyx, this._y)) {
_root.shooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forcex, this._y)) {
_root.enemyshooting = true;
}
}
}
}
instance emp of movieClip 880 {
onClipEvent (load) {
if (this._y > 400) {
stopAllSounds();
with (this) {
stop();
}
}
}
onClipEvent (enterFrame) {
if (this._y < 400) {
if (this.hitTest(_root.enemytankx, this._y)) {
_root.tankshooting = true;
}
if (this.hitTest(_root.enemyairx, this._y)) {
_root.airshooting = true;
}
if (this.hitTest(_root.forcetankx, this._y)) {
_root.enemytankshooting = true;
}
if (this.hitTest(_root.forceairx, this._y)) {
_root.enemyairshooting = true;
}
}
}
}
instance shock of movieClip 883 {
onClipEvent (load) {
if (this._y > 400) {
with (this) {
stop();
}
}
}
}
instance enemymissleup of movieClip 341 {
onClipEvent (enterFrame) {
if (this._y < 400) {
this._y -= 10;
if (this._y < -100) {
if (_root.forcex != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcex;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
if (_root.forcetankx != undefinned) {
duplicateMovieClip(_root.missledown, 'bombshell' + _root.bombnum, _root.bombnum + 5000);
_root['bombshell' + _root.bombnum]._x = _root.forcetankx;
_root['bombshell' + _root.bombnum]._y = 0;
++_root.bombnum;
removeMovieClip(this);
this._y = 400;
} else {
removeMovieClip(this);
}
}
}
}
if (_root.endgame == true) {
removeMovieClip(this);
}
}
}
frame 607 {
++roundtime;
enemyx = this['enemy' + enemycount]._x;
forcex = this['force' + forcecount]._x;
++_root.timermoney;
if (endtime == true) {
gotoAndPlay(630);
_root.endgame = true;
} else {
if (enemyendtime == true) {
_root.endgame = true;
gotoAndPlay(608);
} else {
gotoAndPlay(606);
}
}
}
frame 608 {
enemycount = 0;
forcecount = 0;
forcenum = 0;
enemynum = 0;
}
frame 629 {
stopAllSounds();
_root.credits += _root.creditup;
}
frame 629 {
stop();
}
button 1095 {
on (release) {
if (_root.soundOn == true) {
menumuse = new Sound();
menumuse.attachSound('menuloop');
menumuse.start();
menumuse.onSoundComplete = function () {
_root.menumuse.start();
};
}
gotoAndStop(602);
}
}
frame 630 {
enemycount = 0;
forcecount = 0;
forcenum = 0;
enemynum = 0;
}
frame 651 {
stopAllSounds();
}
frame 651 {
stop();
}
button 1099 {
on (release) {
_root.forcelifemax = _root.forcelifemax2;
gotoAndPlay(605);
}
}
frame 652 {
if (_root.soundOn == false) {
gotoAndPlay(652);
}
}
movieClip 1102 {
}
movieClip 1103 {
}
movieClip 1108 {
}
movieClip 1110 {
}
movieClip 1116 {
frame 7 {
stop();
}
}
movieClip 1127 {
frame 18 {
_root.dieSound('troopdie');
}
frame 27 {
_root.dieSound('troopdie');
}
frame 35 {
_root.dieSound('troopdie');
}
frame 42 {
stop();
}
}
movieClip 1130 {
frame 13 {
stop();
}
}
movieClip 1131 {
frame 105 {
_root.playSound('sniperfire');
}
frame 114 {
_root.playSound('tankfire');
}
frame 124 {
_root.playSound('sniperfire');
}
frame 128 {
_root.playSound('sniperfire');
}
frame 133 {
_root.playSound('sniperfire');
}
instance die of movieClip 1127 {
onClipEvent (load) {
with (this) {
play();
}
}
}
}
movieClip 1135 {
frame 18 {
stop();
}
}
movieClip 1140 {
frame 20 {
_root.playSound('boom1');
}
frame 58 {
_root.playSound('boom1');
}
frame 89 {
_root.playSound('boom1');
}
frame 115 {
_root.playSound('boom1');
}
}
frame 683 {
_root.playSound('tankfire2');
}
frame 688 {
_root.playSound('tankfire2');
}
frame 691 {
_root.playSound('endboom');
}
frame 720 {
_root.playSound('sniperkfire2');
}
frame 728 {
_root.playSound('endboom');
}
frame 766 {
_root.playSound('tankfire2');
}
frame 788 {
_root.playSound('endboom');
}
frame 797 {
_root.playSound('sniperkfire2');
}
frame 830 {
_root.playSound('sniperkfire2');
}
frame 848 {
_root.playSound('tankfire2');
}
movieClip 1146 {
}
movieClip 1155 {
}
frame 1510 {
stop();
}
button 1162 {
on (release) {
getURL('http://www.mofunzone.com', _blank);
}
}