Frame 2
ifFrameLoaded (20) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
Frame 9
fscommand ("allowscale", "false");
duplicateMovieClip ("frame", "frame1", "10000000");
canshot = "1";
exploding = "0";
score = "0";
ship = "3";
enemyout = "6";
stop();
Frame 11
call("clearscreen");
stop();
Frame 14
call("clearscreen");
stop();
Frame 18
stop();
Frame 23
i = "1";
while (i < "80") {
removeMovieClip("a" add ("29" + i));
removeMovieClip("b" add ("29" + i));
removeMovieClip("c" add ("29" + i));
removeMovieClip("m" add i);
i = i + "1";
}
Symbol 8 Button
on (release) {
gotoAndPlay (4);
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 10
stop();
Symbol 15 MovieClip Frame 20
stop();
Symbol 15 MovieClip Frame 30
stop();
Symbol 15 MovieClip Frame 40
stop();
Symbol 15 MovieClip Frame 50
stop();
Symbol 15 MovieClip Frame 60
stop();
Symbol 15 MovieClip Frame 70
stop();
Symbol 16 MovieClip Frame 1
wid = getProperty("pic", _height);
duplicateMovieClip ("pic", "pic2", "2");
setProperty("pic2", _y , getProperty("pic", _y) + wid);
speed = _name;
pos = "0";
Symbol 16 MovieClip Frame 2
pos = pos - speed;
if (pos < (-wid)) {
pos = wid + pos;
}
if ("0" < pos) {
pos = (-wid) + pos;
}
setProperty("../" add _name, _y , pos);
Symbol 16 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 19 MovieClip Frame 1
lev = /:level;
Symbol 20 MovieClip Frame 31
stop();
Symbol 21 MovieClip Frame 1
Set("/:level", "1");
totallevels = "8";
level1 = "100";
level2 = "200";
level3 = "300";
level4 = "400";
level5 = "500";
level6 = "600";
level7 = "700";
level8 = "800";
Set("/:bgspeed1", -"5");
Set("/:bgspeed2", -"8");
Set("/:bgspeed3", -"3");
Set("/:bgspeed4", -"6");
Set("/:bgspeed5", -"8");
Set("/:bgspeed6", -"4");
Set("/:bgspeed7", -"10");
Set("/:bgspeed8", -"14");
Symbol 21 MovieClip Frame 2
i = "1";
if (/:score >= eval ("level" add totallevels)) {
tellTarget ("/") {
gotoAndStop ("finish");
};
} else {
while (totallevels >= i) {
if ((/:score >= eval ("level" add i)) and (/:score < eval ("level" add (i + "1")))) {
if (/:level <> (i + "1")) {
Set("/:level", i + "1");
Set("/:enemyout", /:enemyout + "4");
tellTarget ("lev") {
gotoAndPlay (1);
};
tellTarget ("/-5/pic") {
gotoAndPlay(_currentframe + "1");
};
tellTarget ("/-5/pic2") {
gotoAndPlay(_currentframe + "1");
};
tellTarget ("/-5") {
speed = eval ("/:bgspeed" add /:level);
};
}
}
i = i + "1";
}
}
Symbol 21 MovieClip Frame 3
gotoAndPlay (2);
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 2
newpos = _x + ../:xspeed;
ynewpos = _y + ../:yspeed;
if (../:xspeed < (-"2")) {
tellTarget ("ship") {
gotoAndStop ("left");
};
} else if ("2" < ../:xspeed) {
tellTarget ("ship") {
gotoAndStop ("right");
};
} else {
tellTarget ("ship") {
gotoAndStop ("mid");
};
}
if (newpos < "10") {
newpos = "10";
} else if ("240" < newpos) {
newpos = "240";
}
if (ynewpos < "15") {
ynewpos = "15";
} else if ("370" < ynewpos) {
ynewpos = "370";
}
_x = newpos;
_y = ynewpos;
Symbol 26 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 26 MovieClip Frame 4
tellTarget ("../boom1") {
gotoAndPlay (2);
};
Set("/:canshot", "0");
Symbol 26 MovieClip Frame 25
if (/:ship < "1") {
tellTarget ("/") {
gotoAndPlay ("end");
};
} else {
delay = "100";
Set("/:canshot", "1");
}
Symbol 26 MovieClip Frame 45
newpos = _x + ../:xspeed;
ynewpos = _y + ../:yspeed;
if (../:xspeed < (-"2")) {
tellTarget ("ship") {
gotoAndStop ("left");
};
} else if ("2" < ../:xspeed) {
tellTarget ("ship") {
gotoAndStop ("right");
};
} else {
tellTarget ("ship") {
gotoAndStop ("mid");
};
}
if (newpos < "10") {
newpos = "10";
} else if ("240" < newpos) {
newpos = "240";
}
if (ynewpos < "15") {
ynewpos = "15";
} else if ("370" < ynewpos) {
ynewpos = "370";
}
_x = newpos;
_y = ynewpos;
Symbol 26 MovieClip Frame 46
if ("0" < delay) {
delay = delay - "1";
gotoAndPlay(_currentframe - "1");
} else {
Set("/:exploding", "0");
gotoAndPlay (2);
}
Symbol 27 Button
on (release) {
if (/:canshot == "1") {
tellTarget ("../shot") {
gotoAndPlay (2);
};
duplicateMovieClip ("../missile", "m" add i, i);
i = i + "1";
if ("30" < i) {
i = "1";
}
}
}
Symbol 28 MovieClip Frame 1
startDrag ("", true, "-50", "-50", "750", "450");
i = "1";
Symbol 28 MovieClip Frame 2
Set("../:x", _x);
Set("../:y", _y);
Set("../:xspeed", (_x - getProperty("../ship", _x)) / "8");
Set("../:yspeed", (_y - getProperty("../ship", _y)) / "8");
Symbol 28 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 30 MovieClip Frame 1
if (_name eq "missile") {
stop();
} else {
_x = getProperty("../ship", _x);
_y = (getProperty("../ship", _y) - "20");
speed = "5";
}
Symbol 30 MovieClip Frame 2
newpos = _y - speed;
speed = speed * "1.02";
if ((-"30") < newpos) {
_y = newpos;
} else {
removeMovieClip("");
stop();
}
Symbol 30 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 33 MovieClip Frame 40
gotoAndPlay (1);
Symbol 33 MovieClip Frame 49
removeMovieClip("");
stop();
Symbol 34 MovieClip Frame 1
if ((substring(_name, "2", "1")) == "0") {
stop();
} else {
_x = ("5" + random("235"));
_y = (-"20");
speed = "5";
hitpoint = "10";
}
Symbol 34 MovieClip Frame 2
newpos = _y + speed;
if (newpos < "420") {
_y = newpos;
left = _x - (_width / "2");
right = _x + (_width / "2");
top = _y - _height;
bottom = _y + _height;
hit = "0";
f = "1";
while (f < "30") {
xpos = getProperty("../m" add f, _x);
ypos = getProperty("../m" add f, _y);
if ((((xpos >= left) and (right >= xpos)) and (ypos >= top)) and (bottom >= ypos)) {
hit = "1";
removeMovieClip("../m" add f);
}
f = f + "1";
}
if (hit == "1") {
tellTarget ("../boom2") {
gotoAndPlay (2);
};
tellTarget ("object") {
gotoAndPlay ("hit");
};
Set("/:score", /:score + hitpoint);
stop();
}
shipleft = getProperty("../ship", _x) + (getProperty("../ship", _width) / "2");
shipright = getProperty("../ship", _x) - (getProperty("../ship", _width) / "2");
shiptop = getProperty("../ship", _y) + (getProperty("../ship", _height) / "2");
shipbottom = getProperty("../ship", _y);
if ((((shipleft >= left) and (right >= shipright)) and (shiptop >= top)) and (bottom >= shipbottom)) {
if (/:exploding == "0") {
Set("/:ship", /:ship - "1");
Set("/:exploding", "1");
tellTarget ("../ship") {
gotoAndPlay ("explode");
};
tellTarget ("object") {
gotoAndPlay ("hit");
};
stop();
}
}
} else {
removeMovieClip("");
stop();
}
Symbol 34 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 9
stop();
Symbol 38 MovieClip Frame 81
removeMovieClip("../");
stop();
Symbol 39 MovieClip Frame 1
hitpoint = "10";
_x = ("20" + random("170"));
_y = (-"20");
Symbol 39 MovieClip Frame 2
ypos = _y + getProperty("object/e", _y);
xpos = _x + getProperty("object/e", _x);
fire = random("50");
if (fire == "25") {
duplicateMovieClip ("../bullet", "b" add ../:d, ../:d);
setProperty("../b" add ../:d, _x , xpos);
setProperty("../b" add ../:d, _y , ypos);
Set("../:d", ../:d + "1");
}
left = xpos - (_width / "2");
right = xpos + (_width / "2");
top = ypos - _height;
bottom = ypos + _height;
hit = "0";
f = "1";
while (f < "30") {
xp = getProperty("../m" add f, _x);
yp = getProperty("../m" add f, _y);
if ((((xp >= left) and (right >= xp)) and (yp >= top)) and (bottom >= yp)) {
hit = "1";
removeMovieClip("../m" add f);
}
f = f + "1";
}
if (hit == "1") {
tellTarget ("../boom2") {
gotoAndPlay (2);
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
Set("/:score", /:score + hitpoint);
stop();
}
shipleft = getProperty("../ship", _x) + (getProperty("../ship", _width) / "2");
shipright = getProperty("../ship", _x) - (getProperty("../ship", _width) / "2");
shiptop = getProperty("../ship", _y) + (getProperty("../ship", _height) / "2");
shipbottom = getProperty("../ship", _y);
if ((((shipleft >= left) and (right >= shipright)) and (shiptop >= top)) and (bottom >= shipbottom)) {
if (/:exploding == "0") {
Set("/:ship", /:ship - "1");
Set("/:exploding", "1");
tellTarget ("../ship") {
gotoAndPlay ("explode");
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
stop();
}
}
Symbol 39 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 9
stop();
Symbol 43 MovieClip Frame 81
removeMovieClip("../");
stop();
Symbol 44 MovieClip Frame 1
hitpoint = "10";
_x = ("10" + random("170"));
_y = (-"20");
Symbol 44 MovieClip Frame 2
ypos = _y + getProperty("object/e", _y);
xpos = _x + getProperty("object/e", _x);
fire = random("50");
if (fire == "25") {
duplicateMovieClip ("../bullet2", "b" add ../:d, ../:d);
setProperty("../b" add ../:d, _x , xpos);
setProperty("../b" add ../:d, _y , ypos);
Set("../:d", ../:d + "1");
}
left = xpos - (_width / "2");
right = xpos + (_width / "2");
top = ypos - _height;
bottom = ypos + _height;
hit = "0";
f = "1";
while (f < "30") {
xp = getProperty("../m" add f, _x);
yp = getProperty("../m" add f, _y);
if ((((xp >= left) and (right >= xp)) and (yp >= top)) and (bottom >= yp)) {
hit = "1";
removeMovieClip("../m" add f);
}
f = f + "1";
}
if (hit == "1") {
tellTarget ("../boom1") {
gotoAndPlay (2);
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
Set("/:score", /:score + hitpoint);
stop();
}
shipleft = getProperty("../ship", _x) + (getProperty("../ship", _width) / "2");
shipright = getProperty("../ship", _x) - (getProperty("../ship", _width) / "2");
shiptop = getProperty("../ship", _y) + (getProperty("../ship", _height) / "2");
shipbottom = getProperty("../ship", _y);
if ((((shipleft >= left) and (right >= shipright)) and (shiptop >= top)) and (bottom >= shipbottom)) {
if (/:exploding == "0") {
Set("/:ship", /:ship - "1");
Set("/:exploding", "1");
tellTarget ("../ship") {
gotoAndPlay ("explode");
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
stop();
}
}
Symbol 44 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 6
stop();
Symbol 48 MovieClip Frame 51
removeMovieClip("../");
stop();
Symbol 49 MovieClip Frame 2
ypos = _y + getProperty("object/e", _y);
xpos = _x + getProperty("object/e", _x);
left = xpos - (_width / "2");
right = xpos + (_width / "2");
top = ypos - _height;
bottom = ypos + _height;
shipleft = getProperty("../ship", _x) + (getProperty("../ship", _width) / "2");
shipright = getProperty("../ship", _x) - (getProperty("../ship", _width) / "2");
shiptop = getProperty("../ship", _y) + (getProperty("../ship", _height) / "2");
shipbottom = getProperty("../ship", _y);
if ((((shipleft >= left) and (right >= shipright)) and (shiptop >= top)) and (bottom >= shipbottom)) {
if (/:exploding == "0") {
Set("/:ship", /:ship - "1");
Set("/:exploding", "1");
tellTarget ("../ship") {
gotoAndPlay ("explode");
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
stop();
}
}
Symbol 49 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 6
stop();
Symbol 52 MovieClip Frame 51
removeMovieClip("../");
stop();
Symbol 53 MovieClip Frame 2
ypos = _y + getProperty("object/e", _y);
xpos = _x + getProperty("object/e", _x);
left = xpos - (_width / "2");
right = xpos + (_width / "2");
top = ypos - _height;
bottom = ypos + _height;
shipleft = getProperty("../ship", _x) + (getProperty("../ship", _width) / "2");
shipright = getProperty("../ship", _x) - (getProperty("../ship", _width) / "2");
shiptop = getProperty("../ship", _y) + (getProperty("../ship", _height) / "2");
shipbottom = getProperty("../ship", _y);
if ((((shipleft >= left) and (right >= shipright)) and (shiptop >= top)) and (bottom >= shipbottom)) {
if (/:exploding == "0") {
Set("/:ship", /:ship - "1");
Set("/:exploding", "1");
tellTarget ("../ship") {
gotoAndPlay ("explode");
};
tellTarget ("object/e") {
gotoAndPlay ("hit");
};
stop();
}
}
Symbol 53 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 59 MovieClip Frame 1
targetname = "abbbbccc";
Set("../:d", "30");
Symbol 59 MovieClip Frame 2
ran = random(length(targetname));
duplicateMovieClip (("../" add (substring(targetname, ran, "1"))) add "0", (substring(targetname, ran, "1")) add ../:d, ../:d);
Set("../:d", ../:d + "1");
if ("70" < ../:d) {
Set("../:d", "30");
}
gotoAndPlay(_currentframe + /:enemyout);
Symbol 59 MovieClip Frame 49
gotoAndPlay (2);
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 3
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 3
stop();
Symbol 70 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("start");
}
}
Symbol 71 Button
on (release) {
tellTarget ("/") {
gotoAndStop ("nope");
}
}
Symbol 72 MovieClip Frame 1
scor = /:score;
Symbol 73 MovieClip Frame 30
stop();
Symbol 76 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("start");
}
}
Symbol 77 Button
on (release) {
tellTarget ("/") {
gotoAndStop ("nope");
}
}
Symbol 78 MovieClip Frame 1
scor = /:score;
Symbol 79 MovieClip Frame 30
stop();
Symbol 84 MovieClip Frame 30
stop();