Frame 1
ifFrameLoaded (22) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
shipx = getProperty("s", _x);
shipy = getProperty("s", _y);
setProperty("/c1", _visible , "0");
setProperty("/c2", _visible , "0");
setProperty("/e1", _visible , "0");
setProperty("/f1", _visible , "0");
setProperty("/f3a", _visible , "0");
setProperty("/f3b", _visible , "0");
setProperty("/alert", _visible , "0");
shield = "100";
sc = "100";
level = "0";
score = "0";
fireon = "0";
ball1 = "0";
ball2 = "0";
ball3 = "0";
ball4 = "2";
playerfire = "0";
Frame 5
if (c1 == "0") {
xpc1 = "1" + random("200");
setProperty("/c1", _x , xpc1);
ypc1 = -"10";
setProperty("/c1", _y , ypc1);
setProperty("c1", _visible , "1");
axc1 = "1" + random("5");
ayc1 = "1" + random("20");
c1 = "1";
}
if (("400" < ypc1) or ("330" < xpc1)) {
c1 = "0";
}
if (c2 == "0") {
xpc2 = "320" - random("200");
setProperty("/c2", _x , xpc2);
ypc2 = -"10";
setProperty("/c2", _y , ypc2);
setProperty("c2", _visible , "1");
axc2 = -random("6");
ayc2 = "1" + random("20");
c2 = "1";
}
if (("400" < ypc2) or (xpc2 < (-"10"))) {
c2 = "0";
}
xpc1 = xpc1 + axc1;
ypc1 = ypc1 + ayc1;
setProperty("/c1", _x , xpc1);
setProperty("/c1", _y , ypc1);
xpc2 = xpc2 + axc2;
ypc2 = ypc2 + ayc2;
setProperty("/c2", _x , xpc2);
setProperty("/c2", _y , ypc2);
a = "1";
while (level >= a) {
if (eval ("e" add a) == "0") {
Set("xpe" add a, "1" + random("300"));
setProperty("e" add a, _x , eval ("xpe" add a));
Set("ype" add a, (-"10") - random("300"));
setProperty("e" add a, _y , eval ("ype" add a));
setProperty("e" add a, _visible , "1");
direction = random("2");
if (direction == "1") {
Set("axe" add a, random("4"));
} else {
Set("axe" add a, -random("6"));
}
Set("aye" add a, "5" + random("10"));
Set("e" add a, "1");
}
if ((("400" < eval ("ype" add a)) or ("330" < eval ("xpe" add a))) or (eval ("xpe" add a) < "10")) {
Set("e" add a, "0");
}
Set("xpe" add a, eval ("xpe" add a) + eval ("axe" add a));
Set("ype" add a, eval ("ype" add a) + eval ("aye" add a));
setProperty("e" add a, _x , eval ("xpe" add a));
setProperty("e" add a, _y , eval ("ype" add a));
a = a + "1";
}
if (shipx < getProperty("s", _x)) {
tellTarget ("/s") {
gotoAndPlay (6);
};
}
if (getProperty("s", _x) < shipx) {
tellTarget ("/s") {
gotoAndPlay (3);
};
}
if (getProperty("s", _y) < shipy) {
tellTarget ("/s/flame") {
gotoAndPlay (2);
};
}
shipx = getProperty("s", _x);
shipy = getProperty("s", _y);
if ((((getProperty("s", _x) < (xpc1 + "20")) and ((xpc1 - "20") < getProperty("s", _x))) and (getProperty("s", _y) < (ypc1 + "25"))) and ((ypc1 - "10") < getProperty("s", _y))) {
c1 = "0";
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
}
if ((((getProperty("s", _x) < (xpc2 + "20")) and ((xpc2 - "20") < getProperty("s", _x))) and (getProperty("s", _y) < (ypc2 + "25"))) and ((ypc2 - "10") < getProperty("s", _y))) {
c2 = "0";
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
}
if ("25" < score) {
level = "1";
}
if ("150" < score) {
level = "2";
}
if ("400" < score) {
level = "3";
}
if ("20" >= shield) {
setProperty("/alert", _visible , "1");
}
if ("0" >= shield) {
gotoAndPlay (7);
}
if (platon == "0") {
ypp = -"800";
xpp = random("800") - random("400");
ypa = "2";
setProperty("/p1", _x , xpp);
platon = "1";
}
setProperty("/p1", _y , ypp);
ypp = ypp + ypa;
if (("700" + random("200")) < ypp) {
platon = "0";
}
if (platon2 == "0") {
ypp2 = -"300";
xpp2 = random("800") - random("300");
ypa2 = "0.8";
setProperty("/p2", _x , xpp2);
platon2 = "1";
}
setProperty("/p2", _y , ypp2);
ypp2 = ypp2 + ypa2;
if (("800" + random("200")) < ypp2) {
platon2 = "0";
}
if (level >= "1") {
if ((fireon == "0") and ("10" < ype1)) {
f1x = getProperty("e1", _x);
f1y = getProperty("e1", _y);
f1xa = axe1;
f1ya = aye1 + "10";
fireon = "1";
setProperty("/f1", _x , f1x);
setProperty("/f1", _y , f1y);
setProperty("/f1", _visible , "1");
tellTarget ("/f1") {
gotoAndPlay (2);
};
}
f1x = f1x + f1xa;
f1y = f1y + f1ya;
setProperty("/f1", _x , f1x);
setProperty("/f1", _y , f1y);
if ((((getProperty("s", _x) < (f1x + "25")) and ((f1x - "25") < getProperty("s", _x))) and (getProperty("s", _y) < (f1y + "20"))) and ((f1y - "20") < getProperty("s", _y))) {
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
fireon = "0";
}
}
if (level >= "2") {
if ((fireon2 == "0") and ("10" < ype2)) {
f2x = getProperty("e2", _x);
f2y = getProperty("e2", _y);
f2xa = (axe2 - random("20")) + random("20");
f2ya = aye2 + "20";
fireon2 = "1";
setProperty("/f2", _x , f2x);
setProperty("/f2", _y , f2y);
tellTarget ("/f2") {
gotoAndPlay (2);
};
}
f2x = f2x + f2xa;
f2y = f2y + f2ya;
setProperty("/f2", _x , f2x);
setProperty("/f2", _y , f2y);
if ((((getProperty("s", _x) < (f2x + "25")) and ((f2x - "25") < getProperty("s", _x))) and (getProperty("s", _y) < (f2y + "10"))) and ((f2y - "10") < getProperty("s", _y))) {
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
fireon2 = "0";
}
}
if (level >= "3") {
if ((fireon3a == "0") and ("10" < ype3)) {
f3ax = getProperty("e3", _x);
f3ay = getProperty("e3", _y);
f3axa = (axe1 + random("11")) - random("11");
f3aya = aye1 + "10";
fireon3a = "1";
setProperty("/f3a", _x , f3ax);
setProperty("/f3a", _y , f3ay);
setProperty("/f3a", _visible , "1");
tellTarget ("/f3a") {
gotoAndPlay (2);
};
}
f3ax = f3ax + f3axa;
f3ay = f3ay + f3aya;
setProperty("/f3a", _x , f3ax);
setProperty("/f3a", _y , f3ay);
if ((((getProperty("s", _x) < (f3ax + "25")) and ((f3ax - "25") < getProperty("s", _x))) and (getProperty("s", _y) < (f3ay + "10"))) and ((f3ay - "10") < getProperty("s", _y))) {
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
fireon3a = "0";
}
if ((fireon3b == "0") and ("10" < ype3)) {
f3bx = getProperty("e3", _x);
f3by = getProperty("e3", _y);
f3bxa = (axe1 + random("11")) - random("11");
f3bya = aye1 + "10";
fireon3b = "1";
setProperty("/f3b", _x , f3bx);
setProperty("/f3b", _y , f3by);
setProperty("/f3b", _visible , "1");
tellTarget ("/f3b") {
gotoAndPlay (2);
};
}
f3bx = f3bx + f3bxa;
f3by = f3by + f3bya;
setProperty("/f3b", _x , f3bx);
setProperty("/f3b", _y , f3by);
if ((((getProperty("s", _x) < (f3bx + "25")) and ((f3bx - "25") < getProperty("s", _x))) and (getProperty("s", _y) < (f3by + "10"))) and ((f3by - "10") < getProperty("s", _y))) {
tellTarget ("/s/shield") {
gotoAndPlay (2);
};
fireon3b = "0";
}
}
if ((playerfire == "1") and (ball2 == "0")) {
pf2x = getProperty("s", _x) - "10";
pf2y = getProperty("s", _y);
pf2ya = -"40";
pf2xa = "0";
ball2 = "1";
setProperty("/pf2", _x , pf2x);
setProperty("/pf2", _y , pf2y);
tellTarget ("/pf2") {
gotoAndPlay (2);
};
} else if ((playerfire == "1") and (ball1 == "0")) {
pf1x = getProperty("s", _x) + "10";
pf1y = getProperty("s", _y);
pf1ya = -"40";
pf1xa = "0";
ball1 = "1";
setProperty("/pf1", _x , pf1x);
setProperty("/pf1", _y , pf1y);
tellTarget ("/pf1") {
gotoAndPlay (2);
};
} else if ((playerfire == "1") and (ball3 == "0")) {
pf3x = getProperty("s", _x);
pf3y = getProperty("s", _y);
pf3ya = -"40";
ball3 = "1";
setProperty("/pf3", _x , pf3x);
setProperty("/pf3", _y , pf3y);
tellTarget ("/pf3") {
gotoAndPlay (2);
};
} else if ((playerfire == "1") and (ball4 == "0")) {
pf4x = getProperty("s", _x);
pf4y = getProperty("s", _y) - "40";
pf4ya = -"1";
ball4 = "1";
setProperty("/pf4", _x , pf4x);
setProperty("/pf4", _y , pf4y);
tellTarget ("/pf4") {
gotoAndPlay (2);
};
}
if (ball2 == "1") {
pf2y = pf2y + pf2ya;
setProperty("/pf2", _y , pf2y);
pf2x = pf2x + pf2xa;
setProperty("/pf2", _x , pf2x);
if (((((c1 == "1") and (getProperty("c1", _x) < (pf2x + "30"))) and ((pf2x - "30") < getProperty("c1", _x))) and (getProperty("c1", _y) < (pf2y + "30"))) and ((pf2y - "30") < getProperty("c1", _y))) {
ball2 = "0";
tellTarget ("/pf2") {
gotoAndStop (1);
};
tellTarget ("/c1") {
gotoAndPlay (2);
};
}
if (((((c2 == "1") and (getProperty("c2", _x) < (pf2x + "30"))) and ((pf2x - "30") < getProperty("c2", _x))) and (getProperty("c2", _y) < (pf2y + "30"))) and ((pf2y - "30") < getProperty("c2", _y))) {
ball2 = "0";
tellTarget ("/pf2") {
gotoAndStop (1);
};
tellTarget ("/c2") {
gotoAndPlay (2);
};
}
a = "1";
while (/:level >= a) {
if (((((eval ("e" add a) == "1") and (getProperty("e" add a, _x) < (pf2x + "30"))) and ((pf2x - "30") < getProperty("e" add a, _x))) and (getProperty("e" add a, _y) < (pf2y + "30"))) and ((pf2y - "30") < getProperty("e" add a, _y))) {
ball2 = "0";
tellTarget ("/e" add a) {
gotoAndPlay (2);
};
}
a = a + "1";
}
}
if (ball1 == "1") {
pf1y = pf1y + pf1ya;
setProperty("/pf1", _y , pf1y);
pf1x = pf1x + pf1xa;
setProperty("/pf1", _x , pf1x);
if (((((c1 == "1") and (getProperty("c1", _x) < (pf1x + "30"))) and ((pf1x - "30") < getProperty("c1", _x))) and (getProperty("c1", _y) < (pf1y + "30"))) and ((pf1y - "30") < getProperty("c1", _y))) {
ball1 = "0";
tellTarget ("/pf1") {
gotoAndStop (1);
};
tellTarget ("/c1") {
gotoAndPlay (2);
};
}
if (((((c2 == "1") and (getProperty("c2", _x) < (pf1x + "30"))) and ((pf1x - "30") < getProperty("c2", _x))) and (getProperty("c2", _y) < (pf1y + "30"))) and ((pf1y - "30") < getProperty("c2", _y))) {
ball1 = "0";
tellTarget ("/pf1") {
gotoAndStop (1);
};
tellTarget ("/c2") {
gotoAndPlay (2);
};
}
a = "1";
while (/:level >= a) {
if (((((eval ("e" add a) == "1") and (getProperty("e" add a, _x) < (pf1x + "30"))) and ((pf1x - "30") < getProperty("e" add a, _x))) and (getProperty("e" add a, _y) < (pf1y + "30"))) and ((pf1y - "30") < getProperty("e" add a, _y))) {
ball1 = "0";
tellTarget ("/e" add a) {
gotoAndPlay (2);
};
}
a = a + "1";
}
}
if (ball3 == "1") {
pf3y = pf3y + pf3ya;
setProperty("/pf3", _y , pf3y);
if (((((c1 == "1") and (getProperty("c1", _x) < (pf3x + "30"))) and ((pf3x - "30") < getProperty("c1", _x))) and (getProperty("c1", _y) < (pf3y + "30"))) and ((pf3y - "30") < getProperty("c1", _y))) {
ball3 = "0";
tellTarget ("/pf3") {
gotoAndStop (1);
};
tellTarget ("/c1") {
gotoAndPlay (2);
};
}
if (((((c2 == "1") and (getProperty("c2", _x) < (pf3x + "30"))) and ((pf3x - "30") < getProperty("c2", _x))) and (getProperty("c2", _y) < (pf3y + "30"))) and ((pf3y - "30") < getProperty("c2", _y))) {
ball3 = "0";
tellTarget ("/pf3") {
gotoAndStop (1);
};
tellTarget ("/c2") {
gotoAndPlay (2);
};
}
a = "1";
while (/:level >= a) {
if (((((eval ("e" add a) == "1") and (getProperty("e" add a, _x) < (pf3x + "30"))) and ((pf3x - "30") < getProperty("e" add a, _x))) and (getProperty("e" add a, _y) < (pf3y + "30"))) and ((pf3y - "30") < getProperty("e" add a, _y))) {
ball3 = "0";
tellTarget ("/e" add a) {
gotoAndPlay (2);
};
}
a = a + "1";
}
}
if (ball4 == "1") {
pf4y = pf4y + pf4ya;
setProperty("/pf4", _y , pf4y);
pf4ya = pf4ya - "3";
if (((((c1 == "1") and (getProperty("c1", _x) < (pf4x + "30"))) and ((pf4x - "30") < getProperty("c1", _x))) and (getProperty("c1", _y) < (pf4y + "30"))) and ((pf4y - "30") < getProperty("c1", _y))) {
ball4 = "0";
tellTarget ("/pf4") {
gotoAndStop (1);
};
tellTarget ("/c1") {
gotoAndPlay (2);
};
}
if (((((c2 == "1") and (getProperty("c2", _x) < (pf4x + "30"))) and ((pf4x - "30") < getProperty("c2", _x))) and (getProperty("c2", _y) < (pf4y + "30"))) and ((pf4y - "30") < getProperty("c2", _y))) {
ball4 = "0";
tellTarget ("/pf4") {
gotoAndStop (1);
};
tellTarget ("/c2") {
gotoAndPlay (2);
};
}
a = "1";
while (/:level >= a) {
if (((((eval ("e" add a) == "1") and (getProperty("e" add a, _x) < (pf4x + "35"))) and ((pf4x - "35") < getProperty("e" add a, _x))) and (getProperty("e" add a, _y) < (pf4y + "30"))) and ((pf4y - "30") < getProperty("e" add a, _y))) {
tellTarget ("/e" add a) {
hitcounter = hitcounter - "1";
gotoAndPlay (2);
};
ball4 = "0";
tellTarget ("/pf4") {
gotoAndStop (1);
};
}
a = a + "1";
}
}
Frame 6
gotoAndPlay (5);
Frame 24
stop();
Symbol 16 Button
on (release) {
gotoAndPlay (4);
}
Symbol 22 MovieClip Frame 7
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 7
tellTarget ("..") {
ball2 = "0";
};
gotoAndStop (1);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 7
tellTarget ("..") {
ball1 = "0";
};
gotoAndStop (1);
Symbol 31 Button
on (release) {
startDrag ("", true, "10", "100", "320", "350");
dragon = "1";
}
on (press) {
if (dragon == "1") {
Set("/:playerfire", "1");
}
}
on (release) {
Set("/:playerfire", "0");
}
Symbol 36 MovieClip Frame 1
gotoAndStop (1);
stop();
Symbol 36 MovieClip Frame 2
tellTarget ("/") {
shield = shield - "5";
sc = sc + "50";
setProperty("/sg", _yscale , sc);
setProperty("/sg", _y , getProperty("sg", _y) + "2.3");
}
Symbol 36 MovieClip Frame 5
gotoAndStop (1);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 6
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
gotoAndStop (1);
Symbol 46 MovieClip Frame 5
gotoAndStop (1);
Symbol 46 MovieClip Frame 8
gotoAndStop (1);
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
tellTarget ("..") {
c1 = "2";
score = score + "2";
}
Symbol 51 MovieClip Frame 4
tellTarget ("..") {
c1 = "0";
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
tellTarget ("..") {
score = score + "2";
c2 = "2";
}
Symbol 53 MovieClip Frame 4
tellTarget ("..") {
c2 = "0";
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 3
if (hitcounter < (-"1")) {
hitcounter = "0";
gotoAndPlay (4);
} else {
hitcounter = hitcounter - "1";
gotoAndStop (1);
}
Symbol 58 MovieClip Frame 4
tellTarget ("..") {
e1 = "2";
score = score + "5";
}
Symbol 58 MovieClip Frame 6
tellTarget ("..") {
e1 = "0";
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 3
if (hitcounter < (-"2")) {
hitcounter = "0";
gotoAndPlay (4);
} else {
hitcounter = hitcounter - "1";
gotoAndStop (1);
}
Symbol 62 MovieClip Frame 4
tellTarget ("..") {
e2 = "2";
score = score + "5";
}
Symbol 62 MovieClip Frame 6
tellTarget ("..") {
e2 = "0";
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 15
tellTarget ("..") {
fireon = "0";
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 11
tellTarget ("..") {
fireon2 = "0";
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 19
tellTarget ("..") {
fireon3a = "0";
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 19
tellTarget ("..") {
fireon3b = "0";
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 3
if (hitcounter < (-"3")) {
hitcounter = "0";
gotoAndPlay (4);
} else {
hitcounter = hitcounter - "1";
gotoAndStop (1);
}
Symbol 75 MovieClip Frame 4
tellTarget ("..") {
e3 = "2";
score = score + "5";
}
Symbol 75 MovieClip Frame 6
tellTarget ("..") {
e3 = "0";
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 7
tellTarget ("..") {
ball3 = "0";
};
gotoAndStop (1);
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 18
tellTarget ("..") {
ball4 = "0";
};
gotoAndStop (1);
Symbol 112 Button
on (release) {
gotoAndPlay (1);
}