Frame 1
bytes = _root.getBytesTotal() / 1000;
percent = bytes / 100;
names = "Player 1";
Frame 2
lbytes = _root.getBytesLoaded() / 1000;
perload = int(lbytes / percent);
setProperty("/indikate", _width , 5 * perload);
Frame 3
if (lbytes < bytes) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Frame 5
function loadini(name) {
setProperty(name, _x , random(/:slut * 2) - /:slut);
setProperty(name, _y , random(320) + 50);
name.xtemp = random(20) - 10;
name.ytemp = random(4) - 2;
Set("/:hit", /:hit++);
if (xtemp >= 0) {
setProperty(name, _xscale , 100);
} else {
setProperty(name, _xscale , -100);
}
}
function timego(timeholder) {
Set("/:time", int((getTimer() - timeholder) / 1000));
}
function mute() {
if ((/:sound = true)) {
stopAllSounds();
Set("/:sound", false);
} else {
Set("/:sound", true);
tellTarget ("/sounds/noise") {
play();
};
}
}
function inistart() {
enem = new Array();
enem = [enem1, _root.enem2, _root.enem3, _root.enem4, _root.mother1, _root.mother2, _root.mother3, _root.mother4, _root.tank, _root.tank2, _root.tank3, _root.tank4];
setProperty("/ship", _y , 200);
Set("/:alt", 0);
Set("/:wind", 5);
Set("/:starttime", getTimer());
Set("/:cif", 1);
Set("/:num", 31);
}
function shoot(name) {
Set("/:readis", (getTimer() - /:shtlimitis) / 1000);
if (/:readis >= /:shootrate) {
duplicateMovieClip ("enemsht", /:num, /:num);
setProperty(/:num, _y , getProperty(name, _y));
setProperty(/:num, _x , getProperty(name, _x));
tellTarget ("/sounds/enmsht") {
gotoAndPlay (2);
};
Set("/:shtlimitis", getTimer());
}
Set("/:num", /:num + 1);
if (50 < /:num) {
Set("/:num", 31);
}
}
function shootl(name) {
Set("/:readi", (getTimer() - /:shtlimiti) / 1000);
if (/:readi >= /:shootrate) {
duplicateMovieClip ("enemsht2", /:num, /:num);
setProperty(/:num, _y , getProperty(name, _y));
setProperty(/:num, _x , getProperty(name, _x));
tellTarget ("/sounds/enmsht") {
gotoAndPlay (2);
};
Set("/:shtlimiti", getTimer());
}
Set("/:num", /:num + 1);
if (50 < /:num) {
Set("/:num", 31);
}
}
function tnksht(name) {
Set("/:readys", (getTimer() - /:shtlimits) / 1000);
if (/:readys >= /:shootrate) {
if ((/:sound = true)) {
tellTarget ("/sounds/tnksht") {
gotoAndPlay (2);
};
}
Set("/:shtlimits", getTimer());
duplicateMovieClip ("tanksht", /:num, /:num);
setProperty(/:num, _y , getProperty(name, _y));
setProperty(/:num, _x , getProperty(name, _x));
Set("/:num", /:num + 1);
if (50 < /:num) {
Set("/:num", 31);
}
}
}
function bothtrig(name) {
Set("/:ready", (getTimer() - /:shtlimit) / 1000);
if ((/:dead == 2) and (/:ready >= /:shootrate)) {
if ((/:sound = true)) {
tellTarget ("/sounds/shot") {
gotoAndPlay (3);
};
}
Set("/:shtlimit", getTimer());
duplicateMovieClip ("/bullet", /:cif, /:cif);
setProperty(/:cif, _y , getProperty("/ship", _y));
Set("/:cif", /:cif + 1);
}
if (30 < /:cif) {
Set("/:cif", 1);
}
if ((/:dead == 2) and (/:ready >= shootrate)) {
Set("/:shtlimit", getTimer());
duplicateMovieClip ("/bomb", /:cif, /:cif);
setProperty(/:cif, _y , getProperty("/ship", _y));
Set("/:cif", /:cif + 1);
}
if (30 < /:cif) {
Set("/:cif", 1);
}
}
function hittester(name) {
if (name.hitTest(name._x, name._y, name)) {
tellTarget (_root.ship) {
gotoAndPlay ("dead");
};
name.gotoAndPlay("dead");
}
}
function trigger(name) {
Set("/:ready", (getTimer() - /:shtlimit) / 1000);
if ((/:dead == 2) and (/:ready >= /:shootrate)) {
if ((/:sound = true)) {
tellTarget ("/sounds/shot") {
gotoAndPlay (3);
};
}
Set("/:shtlimit", getTimer());
duplicateMovieClip ("/bullet", /:cif, /:cif);
setProperty(/:cif, _y , getProperty("/ship", _y));
Set("/:cif", /:cif + 1);
}
if (30 < /:cif) {
Set("/:cif", 1);
}
}
function bombtrig(name) {
Set("/:ready", (getTimer() - /:shtlimit) / 1000);
if ((/:dead == 2) and (/:ready >= shootrate)) {
Set("/:shtlimit", getTimer());
duplicateMovieClip ("/bomb", /:cif, /:cif);
setProperty(/:cif, _y , getProperty("/ship", _y));
Set("/:cif", /:cif + 1);
}
if (30 < /:cif) {
Set("/:cif", 1);
}
}
function op() {
if (((/:alt < 6) and (/:top == 1)) and (/:dead == 2)) {
Set("/:alt", alt + 1);
}
}
function ned() {
if (((-6 < /:alt) and (/:dead == 2)) and (/:bud == 1)) {
Set("/:alt", alt - 1);
}
}
function frem() {
if ((/:wind < 20) and (/:dead == 2)) {
Set("/:wind", wind + 1);
}
}
function bak() {
if ((-20 < /:wind) and (/:dead == 2)) {
Set("/:wind", wind - 1);
}
}
Set("/:score", -400);
Set("/:level", 1);
Set("/:enemcount", 4);
Set("/:shootrate", 0.4);
Set("/:text", "Destroy 4 alien ships - and return to base");
Set("/:deads", 9);
Set("/:hit", -/:enemcount);
Set("/:top", 1);
Set("/:bud", 1);
Set("/:dead", 2);
Set("/:loft", 35);
Set("/:bund", 380);
Set("/:start", -5000);
Set("/:slut", 5000);
Set("/:ready", 1);
Set("/:sound", true);
_root.ship.swapDepths(999);
inistart();
tellTarget ("/ship") {
gotoAndPlay (1);
};
stop();
Frame 6
Set("/:text", "Destroy 8 alien ships - and return to base");
Set("/:level", 2);
Set("/:hit", -8);
Set("/:shootrate", 0.3);
inistart();
Frame 7
Set("/:level", 3);
Set("/:text", "Destroy 12 alien ships - and return to base");
Set("/:hit", -12);
Set("/:shootrate", 0.2);
inistart();
Frame 8
Set("/:level", 4);
_root.ship.swapDepths(2000);
Set("/:text", "Survive for as long as you can!");
Set("/:hit", -12);
Set("/:shootrate", 0.2);
inistart();
Instance of Symbol 247 MovieClip "pointleft" in Frame 8
onClipEvent (load) {
this.swapDepths(3001);
}
Instance of Symbol 248 MovieClip "pointright" in Frame 8
onClipEvent (load) {
this.swapDepths(3000);
}
Symbol 17 Button
on (release, keyPress "<Enter>") {
tellTarget ("/scorelist") {
play();
};
}
Symbol 22 Button
on (release) {
Set("/:score", (/:score + (1000 - /:time)) + (/:hit * 100));
tellTarget ("/") {
gotoAndStop ("level2");
};
gotoAndStop (1);
}
Symbol 24 Button
on (release) {
Set("/:score", (/:score + (1000 - /:time)) + (/:hit * 100));
if (/:level == 2) {
tellTarget ("/") {
gotoAndStop ("level3");
};
}
if (/:level == 3) {
_root.ship.swapDepths(9999);
tellTarget ("/") {
gotoAndStop ("level4");
};
}
gotoAndStop (1);
}
Symbol 30 Button
on (release, keyPress "<Space>") {
file_path = "highscore.txt";
loadVariables ("create_file.php?" + random(9999), _root.menu, "POST");
stopAllSounds();
tellTarget ("/") {
gotoAndStop ("level1");
};
Set("/:level", 1);
Set("/:hit", 0);
Set("/:top", 1);
Set("/:dead", 2);
Set("/:wind", 5);
Set("/:alt", 0);
Set("/:starttime", getTimer());
Set("/:deads", 9);
Set("/:cif", 1);
Set("/:start", -5000);
Set("/:slut", 5000);
Set("/:num", 31);
Set("/:text", "");
if (/:level < 2) {
tellTarget (_root.nonam) {
gotoAndPlay (1);
};
tellTarget (_root.insertname) {
gotoAndStop (1);
};
}
gotoAndStop (1);
}
Symbol 31 Button
on (release, keyPress "<Enter>") {
file_path = "/data/highscore.txt";
loadVariables ("create_file.php?" + random(9999), _root.menu, "POST");
tellTarget ("/") {
gotoAndStop ("name");
};
}
Symbol 35 Button
on (release, keyPress "<Space>") {
stopAllSounds();
tellTarget ("/") {
gotoAndStop ("level1");
};
Set("/:level", 1);
Set("/:hit", 0);
Set("/:top", 1);
Set("/:dead", 2);
Set("/:wind", 5);
Set("/:alt", 0);
Set("/:starttime", getTimer());
Set("/:deads", 9);
Set("/:cif", 1);
Set("/:start", -5000);
Set("/:slut", 5000);
Set("/:num", 31);
Set("/:text", "");
if (/:level < 2) {
tellTarget (_root.nonam) {
gotoAndPlay (1);
};
tellTarget (_root.insertname) {
gotoAndStop (1);
};
}
gotoAndStop (1);
}
Symbol 36 Button
on (release, keyPress "<Enter>") {
tellTarget ("/") {
gotoAndStop ("name");
};
}
Symbol 69 MovieClip Frame 1
stop();
check = "not loaded";
Symbol 69 MovieClip Frame 4
file2load = "highscore.txt";
loadVariables ("load_file.php?file_path=" + file2load, this);
Symbol 69 MovieClip Frame 6
if (check == "OK") {
gotoAndPlay (7);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 69 MovieClip Frame 7
setProperty("spot1", _y , scra);
setProperty("spot2", _y , scrb);
setProperty("spot3", _y , scrc);
setProperty("spot4", _y , scrd);
setProperty("spot5", _y , scre);
setProperty("spot6", _y , scrf);
setProperty("spot7", _y , scrg);
setProperty("spot8", _y , scrh);
setProperty("spot9", _y , scri);
setProperty("spot10", _y , scrj);
Symbol 69 MovieClip Frame 8
scorea = int(getProperty("spot1", _y)) + 0;
scoreb = int(getProperty("spot2", _y)) + 0;
scorec = int(getProperty("spot3", _y)) + 0;
scored = int(getProperty("spot4", _y)) + 0;
scoree = int(getProperty("spot5", _y)) + 0;
scoref = int(getProperty("spot6", _y)) + 0;
scoreg = int(getProperty("spot7", _y)) + 0;
scoreh = int(getProperty("spot8", _y)) + 0;
scorei = int(getProperty("spot9", _y)) + 0;
scorej = int(getProperty("spot10", _y)) + 0;
names = /:names;
scores = /:score;
Symbol 69 MovieClip Frame 9
if (scores >= scorea) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scoree;
scoree = scored;
scored = scorec;
scorec = scoreb;
scoreb = scorea;
scorea = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = namee;
namee = named;
named = namec;
namec = nameb;
nameb = namea;
namea = names;
} else if (scores >= scoreb) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scoree;
scoree = scored;
scored = scorec;
scorec = scoreb;
scoreb = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = namee;
namee = named;
named = namec;
namec = nameb;
nameb = names;
} else if (scores >= scorec) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scoree;
scoree = scored;
scored = scorec;
scorec = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = namee;
namee = named;
named = namec;
namec = names;
} else if (scores >= scored) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scoree;
scoree = scored;
scored = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = namee;
namee = named;
named = names;
} else if (scores >= scoree) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scoree;
scoree = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = namee;
namee = names;
} else if (scores >= scoref) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scoref;
scoref = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = namef;
namef = names;
} else if (scores >= scoreg) {
scorej = scorei;
scorei = scoreh;
scoreh = scoreg;
scoreg = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = nameg;
nameg = names;
} else if (scores >= scoreh) {
scorej = scorei;
scorei = scoreh;
scoreh = scores;
scores = 0;
namej = namei;
namei = nameh;
nameh = names;
} else if (scores >= scorei) {
scorej = scorei;
scorei = scores;
scores = 0;
namej = namei;
namei = names;
} else if (scores >= scorej) {
scorej = scores;
namej = names;
scores = 0;
} else {
gotoAndStop (12);
}
scra = scorea;
scrb = scoreb;
scrc = scorec;
scrd = scored;
scre = scoree;
scrf = scoref;
scrg = scoreg;
scrh = scoreh;
scri = scorei;
scrj = scorej;
Symbol 69 MovieClip Frame 10
Symbol 69 MovieClip Frame 11
file_path = "highscore.txt";
loadVariables ("create_file.php?" + random(9999), _root.menu, "POST");
stop();
Symbol 71 Button
on (release, keyPress "<Enter>") {
stopAllSounds();
Set("/:names", names);
tellTarget ("/") {
play();
};
}
Symbol 75 MovieClip Frame 1
names = /:names;
stop();
Symbol 78 Button
on (release) {
gotoAndStop (1);
}
Symbol 83 Button
on (release) {
gotoAndStop (1);
}
Symbol 106 MovieClip Frame 1
stop();
check = "not loaded";
Symbol 106 MovieClip Frame 2
file2load = "highscore.txt";
loadVariables ("load_file.php?file_path=" + file2load, this);
Symbol 106 MovieClip Frame 4
if (check == "OK") {
gotoAndPlay (5);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 106 MovieClip Frame 5
setProperty("spot1", _y , scra);
setProperty("spot2", _y , scrb);
setProperty("spot3", _y , scrc);
setProperty("spot4", _y , scrd);
setProperty("spot5", _y , scre);
setProperty("spot6", _y , scrf);
setProperty("spot7", _y , scrg);
setProperty("spot8", _y , scrh);
setProperty("spot9", _y , scri);
setProperty("spot10", _y , scrj);
Symbol 106 MovieClip Frame 6
scorea = int(getProperty("spot1", _y)) + 0;
scoreb = int(getProperty("spot2", _y)) + 0;
scorec = int(getProperty("spot3", _y)) + 0;
scored = int(getProperty("spot4", _y)) + 0;
scoree = int(getProperty("spot5", _y)) + 0;
scoref = int(getProperty("spot6", _y)) + 0;
scoreg = int(getProperty("spot7", _y)) + 0;
scoreh = int(getProperty("spot8", _y)) + 0;
scorei = int(getProperty("spot9", _y)) + 0;
scorej = int(getProperty("spot10", _y)) + 0;
names = /:names;
scores = /:score;
Symbol 106 MovieClip Frame 7
_root.highscore = scorea;
stop();
Symbol 112 Button
on (release, keyPress "u") {
gotoAndPlay (3);
}
Symbol 127 MovieClip Frame 1
_root.timego(/:starttime);
_y = (_y - /:alt);
if (/:wind >= 0) {
setProperty("jet", _xscale , /:wind * 10);
_xscale = 100;
_rotation = (-(/:alt * 5));
} else {
setProperty("jet", _xscale , -(/:wind * 10));
_xscale = -100;
_rotation = (/:alt * 5);
}
if (/:bund < _y) {
if (/:alt < -3) {
gotoAndPlay (3);
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
} else {
_rotation = 0;
Set("/:alt", 0);
Set("/:bud", 2);
}
} else {
Set("/:bud", 1);
}
if (_y < /:loft) {
_rotation = 0;
Set("/:alt", 0);
Set("/:top", 2);
} else {
Set("/:top", 1);
}
_name = "ship";
Set("/:dead", 2);
Symbol 127 MovieClip Frame 2
gotoAndPlay (1);
Symbol 127 MovieClip Frame 3
_name = "nonam";
Set("/:dead", 1);
Set("/:alt", -2);
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
Symbol 127 MovieClip Frame 8
Set("/:deads", /:deads - 1);
if (/:deads < 1) {
Set("/:text", "Game over!");
if (/:level == 4) {
Set("/:score", /:score + (/:time * 100));
}
if ((/:highscore == 0) or (/:highscore < /:score)) {
Set("/:highscore", /:score);
}
if (/:score >= /menu:scorea) {
Set("/menu:scorea", /:score);
}
nextFrame();
loadVariables ("highscore.txt", _root.menu);
tellTarget ("_root.menu") {
gotoAndPlay ("restart");
};
}
Symbol 127 MovieClip Frame 9
tellTarget ("/sounds/spoing") {
play();
};
Symbol 127 MovieClip Frame 20
_y = "200";
_rotation = 0;
Set("/:alt", 0);
Symbol 129 Button
on (keyPress "<Right>") {
frem();
}
on (keyPress "<Left>") {
bak();
}
on (keyPress "<Up>") {
op();
}
on (keyPress "<Down>") {
ned();
}
on (press, keyPress "<Space>") {
trigger();
}
on (press, keyPress "b") {
bombtrig();
}
on (release, keyPress "l") {
gotoAndStop (6);
}
on (release, keyPress "s") {
mute();
}
Symbol 135 MovieClip Frame 1
if (_name eq "bullet") {
stop();
}
rotspeed = /:alt;
if (/:wind >= 0) {
_x = 300;
xtemp = 10;
} else {
xtemp = -10;
_x = 250;
}
_rotation = getProperty("/ship", _rotation);
_y = (_y - (4 * rotspeed));
Symbol 135 MovieClip Frame 2
_x = (_x + xtemp);
_y = (_y - rotspeed);
if ((700 < _x) or (_x < -150)) {
removeMovieClip("");
stop();
}
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, this)) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
}
i++;
}
Symbol 135 MovieClip Frame 3
_x = (_x + xtemp);
_y = (_y - rotspeed);
gotoAndPlay(_currentframe - 1);
Symbol 135 MovieClip Frame 7
removeMovieClip("");
Symbol 137 MovieClip Frame 1
_x = (random(10000) - 5000);
Symbol 137 MovieClip Frame 2
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
Symbol 137 MovieClip Frame 3
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Symbol 140 MovieClip Frame 1
_root.loadini(_name);
Set("/:score", /:score + 100);
_y = (random(335) + 20);
xtemp = random(20) - 10;
ytemp = random(4) - 2;
if (xtemp >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
Set("/:hit", /:hit + 1);
Symbol 140 MovieClip Frame 2
_x = ((_x - /:wind) - xtemp);
_y = (_y - ytemp);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (/:bund < _y) {
ytemp = ytemp - (ytemp * 2);
}
if (_y < /:loft) {
ytemp = ytemp - (ytemp * 2);
}
if (((0 < _x) and (_x < 550)) and (xtemp >= 0)) {
_root.shootl(_name);
}
if ((250 < _x) and (_x < 300)) {
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (1);
}
}
if (((0 < _x) and (_x < 550)) and (xtemp < 0)) {
_root.shoot(_name);
}
if ((550 < _x) and (_x < 750)) {
setProperty("/pointright", _y , _y);
tellTarget ("/sounds/talk1") {
play();
};
tellTarget ("/pointright") {
gotoAndPlay (1);
};
}
if ((-200 < _x) and (_x < 0)) {
setProperty("/pointleft", _y , _y);
tellTarget ("/sounds/talk2") {
play();
};
tellTarget ("/pointleft") {
gotoAndPlay (1);
};
}
Symbol 140 MovieClip Frame 3
_x = ((_x - /:wind) - xtemp);
_y = (_y - ytemp);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (/:bund < _y) {
ytemp = ytemp - (ytemp * 2);
}
if (_y < /:loft) {
ytemp = ytemp - (ytemp * 2);
}
gotoAndPlay(_currentframe - 1);
Symbol 142 MovieClip Frame 1
numb = 40;
limt = 0;
while (limit < numb) {
duplicateMovieClip ("/tree", numb, 1000 + numb);
numb = numb - 1;
tellTarget ("/sounds/start") {
play();
};
}
Symbol 144 MovieClip Frame 1
_x = (random(10000) - 5000);
Symbol 144 MovieClip Frame 2
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (_root.ship.hitTest(_x, _y, this)) {
if ((3 < /:hit) and (/:level == 1)) {
Set("/:text", "You made the first level");
tellTarget ("_root.menu") {
gotoAndStop (2);
};
}
if ((7 < /:hit) and (/:level == 2)) {
Set("/:text", "You made the second level");
tellTarget ("_root.menu") {
gotoAndStop (3);
};
}
if ((7 < /:hit) and (/:level == 3)) {
Set("/:text", "You made the third level");
tellTarget ("_root.menu") {
gotoAndStop (3);
};
}
setProperty(_root.ship, _y , "380");
Set("/:hold", 2);
Set("/:wind", 0);
Set("/:alt", 0);
}
Symbol 144 MovieClip Frame 3
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Symbol 149 MovieClip Frame 1
_x = (((_x + 20) + xtemp) - /:wind);
if (_root.ship.hitTest(_x, _y, this)) {
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (3);
}
if (((550 < _x) or (_x < 0)) or (30 < count)) {
removeMovieClip("");
stop();
}
Symbol 149 MovieClip Frame 2
_x = (((_x + 20) + xtemp) - /:wind);
if (_root.ship.hitTest(_x, _y, this)) {
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (3);
}
count = count + 1;
_alpha = (100 - (count * 3));
gotoAndPlay(_currentframe - 1);
Symbol 149 MovieClip Frame 6
removeMovieClip("");
Symbol 150 MovieClip Frame 1
_x = (((_x - 20) - xtemp) - /:wind);
if (_root.ship.hitTest(_x, _y, this)) {
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (3);
}
if (((550 < _x) or (_x < 0)) or (30 < count)) {
removeMovieClip("");
stop();
}
Symbol 150 MovieClip Frame 2
_x = (((_x - 20) - xtemp) - /:wind);
count = count + 1;
_alpha = (100 - (count * 3));
if (_root.ship.hitTest(_x, _y, this)) {
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
play();
};
}
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (3);
}
gotoAndPlay(_currentframe - 1);
Symbol 150 MovieClip Frame 6
removeMovieClip("");
Symbol 155 MovieClip Frame 1
if (_name eq "bomb") {
stop();
}
if (/:wind >= 0) {
xtemp = /:wind;
} else {
xtemp = /:wind;
}
ytemp = (/:alt / 4) - 4;
_x = 275;
_rotation = getProperty("/ship", _rotation);
Symbol 155 MovieClip Frame 2
_x = ((_x + xtemp) - /:wind);
_y = (_y - ytemp);
if (/:bund < _y) {
gotoAndPlay (4);
}
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, _root.enem[i])) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
}
i++;
}
Symbol 155 MovieClip Frame 3
_y = (_y - ytemp);
_x = ((_x + xtemp) - /:wind);
xtemp = xtemp * 0.95;
gotoAndPlay(_currentframe - 1);
Symbol 155 MovieClip Frame 4
if ((/:sound = true)) {
tellTarget ("/sounds/expl") {
gotoAndPlay (2);
};
}
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, _root.enem[i])) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
}
i++;
}
_y = (_y + ytemp);
Symbol 155 MovieClip Frame 5
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, _root.enem[i])) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
}
i++;
}
Symbol 155 MovieClip Frame 6
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, _root.enem[i])) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
}
i++;
}
Symbol 155 MovieClip Frame 7
var i = 0;
while (i < 12) {
if (_root.enem[i].hitTest(_x, _y, _root.enem[i])) {
_root.enem[i].gotoAndPlay(1);
gotoAndPlay (4);
}
i++;
}
Symbol 155 MovieClip Frame 8
removeMovieClip("");
stop();
Symbol 161 MovieClip Frame 11
stop();
Instance of Symbol 164 MovieClip "ship" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
setProperty("ship", _y , getProperty("/ship", _y) / 20);
}
Symbol 169 MovieClip Frame 2
setProperty("ship", _y , getProperty(_root.ship, _y) / 20);
setProperty("enem1", _y , getProperty(_root.enem1, _y) / 20);
setProperty("enem2", _y , getProperty(_root.enem2, _y) / 20);
setProperty("enem3", _y , getProperty(_root.enem3, _y) / 20);
setProperty("enem4", _y , getProperty(_root.enem4, _y) / 20);
setProperty("enem4", _x , getProperty(_root.enem4, _x) / 20);
setProperty("enem3", _x , getProperty(_root.enem3, _x) / 20);
setProperty("enem2", _x , getProperty(_root.enem2, _x) / 20);
setProperty("enem1", _x , getProperty(_root.enem1, _x) / 20);
setProperty("base", _x , getProperty(_root.base, _x) / 20);
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
stopAllSounds();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
if (/:sound == false) {
gotoAndStop (1);
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 204 Button
on (keyPress "<Right>") {
frem();
}
on (keyPress "<Left>") {
bak();
}
on (keyPress "<Up>") {
op();
}
on (keyPress "<Down>") {
ned();
}
on (press, keyPress "<Space>") {
trigger();
}
on (press, keyPress "b") {
bombtrig();
}
on (release, keyPress "l") {
gotoAndStop (7);
}
on (release, keyPress "s") {
mute();
}
Symbol 207 MovieClip Frame 1
gotoAndStop(random(2) + 2);
Symbol 208 MovieClip Frame 1
_x = (random(10000) - 5000);
Symbol 208 MovieClip Frame 2
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
Symbol 208 MovieClip Frame 3
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Symbol 211 MovieClip Frame 1
_root.loadini(_name);
Set("/:score", /:score + 750);
_y = (random(335) + 20);
xtemp = random(20) - 10;
ytemp = random(4) - 2;
if (xtemp >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
Set("/:hit", /:hit + 1);
Symbol 211 MovieClip Frame 2
_x = ((_x - /:wind) - xtemp);
_y = (_y - ytemp);
if ((250 < _x) and (_x < 300)) {
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (1);
}
}
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (/:loft < _y) {
ytemp = ytemp - (ytemp * 2);
}
if (_y < /:bund) {
ytemp = ytemp - (ytemp * 2);
}
if ((0 < _x) and (_x < 550)) {
_root.tnksht(_name);
}
if ((550 < _x) and (_x < 750)) {
setProperty("/pointright", _y , _y);
tellTarget ("/sounds/talk1") {
play();
};
tellTarget ("/pointright") {
gotoAndPlay (1);
};
}
if ((-200 < _x) and (_x < 0)) {
setProperty("/pointleft", _y , _y);
tellTarget ("/sounds/talk2") {
play();
};
tellTarget ("/pointleft") {
gotoAndPlay (1);
};
}
Symbol 211 MovieClip Frame 3
_x = ((_x - /:wind) - xtemp);
_y = (_y - ytemp);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (/:bund < _y) {
ytemp = ytemp - (ytemp * 2);
}
if (_y/:loft) {
ytemp = ytemp - (ytemp * 2);
}
gotoAndPlay(_currentframe - 1);
Symbol 215 MovieClip Frame 1
if (275 < _x) {
xtemp = random(22);
} else {
xtemp = random(22) - 22;
}
if (200 < _y) {
ytemp = random(22);
} else {
ytemp = random(22) - 22;
}
Symbol 215 MovieClip Frame 2
_x = ((_x - xtemp) - /:wind);
_y = (_y - ytemp);
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (4);
}
if (((550 < _x) or (_x < 0)) or (30 < count)) {
removeMovieClip("");
stop();
}
Symbol 215 MovieClip Frame 3
_x = ((_x - xtemp) - /:wind);
_y = (_y - ytemp);
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (4);
}
count = count + 1;
_alpha = (100 - (count * 3));
gotoAndPlay(_currentframe - 1);
Symbol 215 MovieClip Frame 7
removeMovieClip("");
Instance of Symbol 164 MovieClip "ship" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
setProperty("ship", _y , getProperty("/ship", _y) / 20);
}
Symbol 217 MovieClip Frame 2
setProperty("ship", _y , getProperty(_root.ship, _y) / 20);
setProperty("enem1", _y , getProperty(_root.enem1, _y) / 20);
setProperty("enem2", _y , getProperty(_root.enem2, _y) / 20);
setProperty("enem3", _y , getProperty(_root.enem3, _y) / 20);
setProperty("enem4", _y , getProperty(_root.enem4, _y) / 20);
setProperty("enem4", _x , getProperty(_root.enem4, _x) / 20);
setProperty("enem3", _x , getProperty(_root.enem3, _x) / 20);
setProperty("enem2", _x , getProperty(_root.enem2, _x) / 20);
setProperty("enem1", _x , getProperty(_root.enem1, _x) / 20);
setProperty("mother1", _y , getProperty(_root.mother1, _y) / 20);
setProperty("mother2", _y , getProperty(_root.mother2, _y) / 20);
setProperty("mother3", _y , getProperty(_root.mother3, _y) / 20);
setProperty("mother4", _y , getProperty(_root.mother4, _y) / 20);
setProperty("mother1", _x , getProperty(_root.mother1, _x) / 20);
setProperty("mother2", _x , getProperty(_root.mother2, _x) / 20);
setProperty("mother3", _x , getProperty(_root.mother3, _x) / 20);
setProperty("mother4", _x , getProperty(_root.mother4, _x) / 20);
setProperty("base", _x , getProperty(_root.base, _x) / 20);
Symbol 225 Button
on (keyPress "<Right>") {
frem();
}
on (keyPress "<Left>") {
bak();
}
on (keyPress "<Up>") {
op();
}
on (keyPress "<Down>") {
ned();
}
on (press, keyPress "<Space>") {
trigger();
}
on (press, keyPress "b") {
bombtrig();
}
on (release, keyPress "l") {
gotoAndStop (8);
}
on (release, keyPress "s") {
mute();
}
Symbol 228 MovieClip Frame 1
gotoAndStop(random(3) + 2);
Symbol 229 MovieClip Frame 1
_x = (random(10000) - 5000);
_y = (/:bund + 10);
Symbol 229 MovieClip Frame 2
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
Symbol 229 MovieClip Frame 3
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Symbol 231 MovieClip Frame 1
_x = (random(6000) - 3000);
Set("/:score", /:score + 500);
xtemp = random(20) - 10;
if (xtemp >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
Set("/:hit", /:hit + 1);
Symbol 231 MovieClip Frame 2
_x = ((_x - /:wind) - xtemp);
if ((250 < _x) and (_x < 300)) {
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (1);
}
}
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if ((0 < _x) and (_x < 550)) {
_root.tnksht(_name);
}
if ((550 < _x) and (_x < 750)) {
setProperty("/pointright", _y , _y);
tellTarget ("/sounds/talk1") {
play();
};
tellTarget ("/pointright") {
gotoAndPlay (1);
};
}
if ((-200 < _x) and (_x < 0)) {
setProperty("/pointleft", _y , _y);
tellTarget ("/sounds/talk2") {
play();
};
tellTarget ("/pointleft") {
gotoAndPlay (1);
};
}
Symbol 231 MovieClip Frame 3
_x = ((_x - /:wind) - xtemp);
_y = (_y - ytemp);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Instance of Symbol 164 MovieClip "ship" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
setProperty("ship", _y , getProperty("/ship", _y) / 20);
}
Symbol 233 MovieClip Frame 2
setProperty("ship", _y , getProperty(_root.ship, _y) / 20);
setProperty("enem1", _y , getProperty(_root.enem1, _y) / 20);
setProperty("enem2", _y , getProperty(_root.enem2, _y) / 20);
setProperty("enem3", _y , getProperty(_root.enem3, _y) / 20);
setProperty("enem4", _y , getProperty(_root.enem4, _y) / 20);
setProperty("enem4", _x , getProperty(_root.enem4, _x) / 20);
setProperty("enem3", _x , getProperty(_root.enem3, _x) / 20);
setProperty("enem2", _x , getProperty(_root.enem2, _x) / 20);
setProperty("enem1", _x , getProperty(_root.enem1, _x) / 20);
setProperty("tank", _x , getProperty(_root.tank, _x) / 20);
setProperty("tank2", _x , getProperty(_root.tank2, _x) / 20);
setProperty("tank3", _x , getProperty(_root.tank3, _x) / 20);
setProperty("tank4", _x , getProperty(_root.tank4, _x) / 20);
setProperty("mother1", _y , getProperty(_root.mother1, _y) / 20);
setProperty("mother2", _y , getProperty(_root.mother2, _y) / 20);
setProperty("mother3", _y , getProperty(_root.mother3, _y) / 20);
setProperty("mother4", _y , getProperty(_root.mother4, _y) / 20);
setProperty("mother1", _x , getProperty(_root.mother1, _x) / 20);
setProperty("mother2", _x , getProperty(_root.mother2, _x) / 20);
setProperty("mother3", _x , getProperty(_root.mother3, _x) / 20);
setProperty("mother4", _x , getProperty(_root.mother4, _x) / 20);
setProperty("base", _x , getProperty(_root.base, _x) / 20);
Symbol 241 Button
on (keyPress "<Right>") {
frem();
}
on (keyPress "<Left>") {
bak();
}
on (keyPress "<Up>") {
op();
}
on (keyPress "<Down>") {
ned();
}
on (press, keyPress "<Space>") {
bothtrig();
}
on (press, keyPress "b") {
bombtrig();
}
on (release, keyPress "l") {
gotoAndStop (8);
}
on (release, keyPress "s") {
mute();
}
Symbol 242 MovieClip Frame 1
numb = 20;
limt = 1;
while (limit < numb) {
duplicateMovieClip ("/tree", numb, 1000 + numb);
numb = numb - 1;
duplicateMovieClip ("/tree2", numb, 1000 + numb);
numb = numb - 1;
}
tellTarget ("/sounds/start") {
play();
};
Instance of Symbol 164 MovieClip "ship" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
setProperty("ship", _y , getProperty("/ship", _y) / 20);
}
Symbol 244 MovieClip Frame 2
setProperty("ship", _y , getProperty(_root.ship, _y) / 20);
setProperty("enem1", _y , getProperty(_root.enem1, _y) / 20);
setProperty("enem2", _y , getProperty(_root.enem2, _y) / 20);
setProperty("enem3", _y , getProperty(_root.enem3, _y) / 20);
setProperty("enem4", _y , getProperty(_root.enem4, _y) / 20);
setProperty("enem4", _x , getProperty(_root.enem4, _x) / 20);
setProperty("enem3", _x , getProperty(_root.enem3, _x) / 20);
setProperty("enem2", _x , getProperty(_root.enem2, _x) / 20);
setProperty("enem1", _x , getProperty(_root.enem1, _x) / 20);
setProperty("tank", _x , getProperty(_root.tank, _x) / 20);
setProperty("tank2", _x , getProperty(_root.tank2, _x) / 20);
setProperty("tank3", _x , getProperty(_root.tank3, _x) / 20);
setProperty("tank4", _x , getProperty(_root.tank4, _x) / 20);
setProperty("mother1", _y , getProperty(_root.mother1, _y) / 20);
setProperty("mother2", _y , getProperty(_root.mother2, _y) / 20);
setProperty("mother3", _y , getProperty(_root.mother3, _y) / 20);
setProperty("mother4", _y , getProperty(_root.mother4, _y) / 20);
setProperty("mother1", _x , getProperty(_root.mother1, _x) / 20);
setProperty("mother2", _x , getProperty(_root.mother2, _x) / 20);
setProperty("mother3", _x , getProperty(_root.mother3, _x) / 20);
setProperty("mother4", _x , getProperty(_root.mother4, _x) / 20);
Symbol 247 MovieClip Frame 11
stop();
Symbol 248 MovieClip Frame 11
stop();
Symbol 250 MovieClip Frame 1
_x = (random(2 * /:slut) - /:slut);
_xscale = (random(500) + 100);
_yscale = random(600);
Symbol 250 MovieClip Frame 2
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if (((/:dead == 2) and (100 < _x)) and (_x < 450)) {
if ((((getProperty("/ship", _x) < (_x + (_width / 2))) and ((_x - (_width / 2)) < getProperty("/ship", _x))) and (getProperty("/ship", _y) < (_y + (_height / 2)))) and ((_y - (_height / 2)) < getProperty("/ship", _y))) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
}
}
Symbol 250 MovieClip Frame 3
if (/:dead == 2) {
if ((((getProperty("/ship", _x) < (_x + (_width / 2))) and ((_x - (_width / 2)) < getProperty("/ship", _x))) and ((_y + _height) < getProperty("/ship", _y))) and (getProperty("/ship", _y) < _y)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
}
}
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);
Symbol 252 MovieClip Frame 1
_x = (random(2 * /:slut) - /:slut);
Set("/:hit", /:hit + 1);
Set("/:score", /:score + 250);
Symbol 252 MovieClip Frame 2
_x = (_x - /:wind);
if ((250 < _x) and (_x < 300)) {
if (_root.ship.hitTest(_x, _y, this)) {
tellTarget ("_root.ship") {
gotoAndPlay ("dead");
};
gotoAndPlay (1);
}
}
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
if ((0 < _x) and (_x < 550)) {
_root.tnksht(_name);
}
if ((550 < _x) and (_x < 750)) {
setProperty("/pointright", _y , _y);
tellTarget ("/sounds/talk1") {
play();
};
tellTarget ("/pointright") {
gotoAndPlay (1);
};
}
if ((-200 < _x) and (_x < 0)) {
setProperty("/pointleft", _y , _y);
tellTarget ("/sounds/talk2") {
play();
};
tellTarget ("/pointleft") {
gotoAndPlay (1);
};
}
this.swapDepths(10000);
Symbol 252 MovieClip Frame 3
_x = (_x - /:wind);
if (/:slut < _x) {
_x = /:start;
}
if (_x < /:start) {
_x = /:slut;
}
gotoAndPlay(_currentframe - 1);