Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.rekcah.se");
}
function itemHandler2(obj, item) {
getURL ("http://www.DABontv.com");
}
function itemHandler3(obj, item) {
_quality = "high";
}
function itemHandler4(obj, item) {
_quality = "medium";
}
function itemHandler5(obj, item) {
_quality = "low";
}
stop();
_global.menuon = 0;
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Rekcah.se", itemHandler1);
bbb_cmi = new ContextMenuItem("DABontv.com", itemHandler2);
ddd_cmi = new ContextMenuItem("High Quality", itemHandler3);
eee_cmi = new ContextMenuItem("Mid Quality", itemHandler4);
fff_cmi = new ContextMenuItem("Low Quality", itemHandler5);
ccc_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi, fff_cmi);
_root.menu = root_cm;
Instance of Symbol 1 MovieClip in Frame 1
onClipEvent (enterFrame) {
var p = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(1, 16777215, 100);
this.b.beginFill(0, 100);
this.b.moveTo(-2, -2);
this.b.lineTo(402, -2);
this.b.lineTo(402, 2);
this.b.lineTo(-2, 2);
this.b.lineTo(-2, -2);
this.createEmptyMovieClip("q", 1);
this.q.lineStyle(1, 16777215, 100);
this.q.moveTo(0, 0);
this.q.lineTo(p * 4, 0);
if (p == 100) {
_root.play();
}
}
Instance of Symbol 31 MovieClip "mu" in Frame 2
onClipEvent (load) {
function p1() {
s1.start();
p = "s1";
}
function st1() {
s1.stop();
}
function p2() {
s2.start();
p = "s2";
}
function st2() {
s2.stop();
}
function stmain() {
s2.stop();
s3.stop();
}
function p3() {
s3.start();
p = "s3";
}
function st3() {
s3.stop();
}
function pb1() {
bm1.start();
p = "bm1";
}
function sb1() {
bm1.stop();
}
function pb2() {
bm2.start();
p = "bm2";
}
function sb2() {
bm2.stop();
}
function pb3() {
bm3.start();
p = "bm3";
}
function sb3() {
bm3.stop();
}
function pb4() {
bm4.start();
p = "bm4";
}
function sb4() {
bm4.stop();
}
function pb5() {
bm5.start();
p = "bm5";
}
function sb5() {
bm5.stop();
}
function pb6() {
bm6.start();
p = "bm6";
}
function sb6() {
bm6.stop();
}
function pb7() {
bm7.start();
p = "bm7";
}
function sb7() {
bm7.stop();
}
function pb8() {
bm8.start();
p = "bm8";
}
function sb8() {
bm8.stop();
}
function pb9() {
bm9.start();
p = "bm9";
}
function sb9() {
bm9.stop();
}
function pb10() {
bm10.start();
p = "bm10";
}
function sb10() {
bm10.stop();
}
function pb11() {
bm11.start();
p = "bm11";
}
function sb11() {
bm11.stop();
}
function pb12() {
bm12.start();
p = "bm12";
}
function sb12() {
bm12.stop();
}
function pb13() {
bm13.start();
p = "bm13";
}
function sb13() {
bm13.stop();
}
function pb14() {
bm14.start();
p = "bm14";
}
function sb14() {
bm14.stop();
}
function pb15() {
bm15.start();
p = "bm15";
}
function sb15() {
bm15.stop();
}
function expl() {
if (vol == true) {
sf1.start();
}
}
function hit() {
if (vol == true) {
sf2.start();
}
}
function fire() {
if (vol == true) {
sf3.start();
}
}
function die() {
if (vol == true) {
sf4.start();
}
}
function win() {
if (vol == true) {
sf5.start();
}
}
function but() {
if (vol == true) {
sf6.start();
}
}
function bonus() {
if (vol == true) {
sf7.start();
}
}
function fadeout() {
fs = 1;
}
function end() {
this[p].stop();
}
function begin() {
this[p].start();
}
var vol = true;
var p = "";
var s1 = new Sound();
s1.attachSound("s1");
var s2 = new Sound();
s2.attachSound("s2");
var s3 = new Sound();
s3.attachSound("sm");
s3.setVolume(0);
s1.onSoundComplete = function () {
st1();
p2();
};
s2.onSoundComplete = function () {
st2();
p1();
};
s3.onSoundComplete = function () {
p3();
};
var bm1 = new Sound();
bm1.attachSound("b1");
var bm2 = new Sound();
bm2.attachSound("b2");
var bm3 = new Sound();
bm3.attachSound("b3");
var bm4 = new Sound();
bm4.attachSound("b4");
var bm5 = new Sound();
bm5.attachSound("b5");
var bm6 = new Sound();
bm6.attachSound("b6");
var bm7 = new Sound();
bm7.attachSound("b7");
var bm8 = new Sound();
bm8.attachSound("b8");
var bm9 = new Sound();
bm9.attachSound("b9");
var bm10 = new Sound();
bm10.attachSound("b10");
var bm11 = new Sound();
bm11.attachSound("b11");
var bm12 = new Sound();
bm12.attachSound("b12");
var bm13 = new Sound();
bm13.attachSound("b13");
var bm14 = new Sound();
bm14.attachSound("b14");
var bm15 = new Sound();
bm15.attachSound("b15");
bm1.onSoundComplete = function () {
pb1();
};
bm2.onSoundComplete = function () {
pb2();
};
bm3.onSoundComplete = function () {
pb3();
};
bm4.onSoundComplete = function () {
pb4();
};
bm5.onSoundComplete = function () {
pb5();
};
bm6.onSoundComplete = function () {
pb6();
};
bm7.onSoundComplete = function () {
pb7();
};
bm8.onSoundComplete = function () {
pb8();
};
bm9.onSoundComplete = function () {
pb9();
};
bm10.onSoundComplete = function () {
pb10();
};
bm11.onSoundComplete = function () {
pb11();
};
bm12.onSoundComplete = function () {
pb12();
};
bm13.onSoundComplete = function () {
pb13();
};
bm14.onSoundComplete = function () {
pb14();
};
bm15.onSoundComplete = function () {
pb15();
};
var sf1 = new Sound();
sf1.attachSound("exp");
var sf2 = new Sound();
sf2.attachSound("hit");
var sf3 = new Sound();
sf3.attachSound("fire");
var sf4 = new Sound();
sf4.attachSound("dead");
var sf5 = new Sound();
sf5.attachSound("win");
var sf6 = new Sound();
sf6.attachSound("button");
var sf7 = new Sound();
sf7.attachSound("bonus");
sf1.setVolume(75);
sf2.setVolume(75);
sf3.setVolume(75);
sf4.setVolume(75);
sf5.setVolume(75);
sf6.setVolume(100);
sf7.setVolume(75);
var v = 100;
var fs = 0;
}
onClipEvent (enterFrame) {
if (vol == true) {
if (fs == 1) {
if (v > 0) {
v = v - 5;
this[p].setVolume(v);
} else {
fs = 0;
v = 100;
}
}
} else {
this[p].setVolume(0);
}
}
Frame 4
stop();
Instance of Symbol 1 MovieClip in Frame 4
onClipEvent (load) {
function sa() {
this._alpha = a;
_root.ti1._alpha = a;
_root.ti2._alpha = a;
}
_root.mu.p3();
_global.menuon = 1;
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(1, 16777215, 100);
this.b.beginFill(0, 100);
this.b.moveTo(-2, -2);
this.b.lineTo(402, -2);
this.b.lineTo(402, 2);
this.b.lineTo(-2, 2);
this.b.lineTo(-2, -2);
this.createEmptyMovieClip("q", 1);
this.q.lineStyle(1, 16777215, 100);
this.q.moveTo(0, 0);
this.q.lineTo(401, 0);
var h = 0;
var w = 0;
var wb = 0;
var wbb = 0;
var t1 = 10;
var t2 = 6;
var t3 = 6;
var t4 = 6;
var tim = 100;
var a = 100;
}
onClipEvent (enterFrame) {
if (tim == 0) {
if (a > 0) {
a = a - 2;
sa();
} else {
_root.play();
}
} else {
tim--;
}
if (t1 == 0) {
if (h < 300) {
h = h - ((h - 300) / 4);
}
} else {
t1--;
}
if (Math.round(h) >= 298) {
if (t2 == 0) {
if (w <= 202) {
w = w - ((w - 202) / 4);
}
} else {
t2--;
}
}
if (w > 200) {
if (t3 == 0) {
if (wb <= 202) {
wb = wb - ((wb - 198.5) / 4);
}
} else {
t3--;
}
if (_root.ti1._alpha < 100) {
_root.ti1._alpha = _root.ti1._alpha + 5;
}
}
if (wb > 198) {
if (t4 == 0) {
if (wbb <= 202) {
wbb = wbb - ((wbb - 198.5) / 4);
}
} else {
t4--;
}
if (_root.ti2._alpha < 100) {
_root.ti2._alpha = _root.ti2._alpha + 5;
}
}
this.createEmptyMovieClip("w1", 2);
this.w1.lineStyle(1, 16777215, 100);
this.w1.moveTo(-2, -2);
this.w1.lineTo(-2, -2 - h);
this.createEmptyMovieClip("w2", 3);
this.w2.lineStyle(1, 16777215, 100);
this.w2.moveTo(402, -2);
this.w2.lineTo(402, -2 - h);
this.createEmptyMovieClip("w3", 4);
this.w3.lineStyle(1, 16777215, 100);
this.w3.moveTo(0, 0);
this.w3.lineTo(0, -h);
this.createEmptyMovieClip("w4", 5);
this.w4.lineStyle(1, 16777215, 100);
this.w4.moveTo(400, 0);
this.w4.lineTo(400, -h);
this.createEmptyMovieClip("w5", 6);
this.w5.lineStyle(1, 16777215, 100);
this.w5.moveTo(-2, -2 - h);
this.w5.lineTo(-2 + w, -2 - h);
this.createEmptyMovieClip("w6", 7);
this.w6.lineStyle(1, 16777215, 100);
this.w6.moveTo(402, -2 - h);
this.w6.lineTo(402 + (-w), -2 - h);
this.createEmptyMovieClip("w7", 8);
this.w7.lineStyle(1, 16777215, 100);
this.w7.moveTo(0, -h);
this.w7.lineTo(w - 2, -h);
this.createEmptyMovieClip("w8", 9);
this.w8.lineStyle(1, 16777215, 100);
this.w8.moveTo(400, -h);
this.w8.lineTo(400 + ((-w) + 2), -h);
this.createEmptyMovieClip("e1", 10);
this.e1.lineStyle(1, 16777215, 100);
this.e1.moveTo(399, (-h) + 50);
this.e1.lineTo(400 + ((-wb) - 1), (-h) + 50);
this.createEmptyMovieClip("e2", 11);
this.e2.lineStyle(1, 16777215, 100);
this.e2.moveTo(2, (-h) + 50);
this.e2.lineTo(wb + 2, (-h) + 50);
this.createEmptyMovieClip("e3", 12);
this.e3.lineStyle(1, 16777215, 100);
this.e3.moveTo(399, (-h) + 110);
this.e3.lineTo(400 + ((-wb) - 1), (-h) + 110);
this.createEmptyMovieClip("e4", 13);
this.e4.lineStyle(1, 16777215, 100);
this.e4.moveTo(2, (-h) + 110);
this.e4.lineTo(wb + 2, (-h) + 110);
this.createEmptyMovieClip("e5", 14);
this.e5.lineStyle(1, 16777215, 100);
this.e5.moveTo(399, (-h) + 195);
this.e5.lineTo(400 + ((-wbb) - 1), (-h) + 195);
this.createEmptyMovieClip("e6", 15);
this.e6.lineStyle(1, 16777215, 100);
this.e6.moveTo(2, (-h) + 195);
this.e6.lineTo(wbb + 2, (-h) + 195);
}
Instance of Symbol 33 MovieClip "ti1" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 35 MovieClip "ti2" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Frame 5
stop();
Instance of Symbol 45 MovieClip in Frame 5
on (release) {
getURL ("http://www.dabontv.com/", "_blank");
}
Frame 6
stop();
Instance of Symbol 52 MovieClip in Frame 6
onClipEvent (load) {
var t1 = 75;
var t2 = 100;
var myBlur = (new flash.filters.BlurFilter());
var myTempFilters = this.filters;
myTempFilters.push(myBlur);
myTempFilters[0].quality = 3;
var blur = 0;
var bp = 0;
}
onClipEvent (enterFrame) {
if (t1 == 0) {
bp = bp + 0.2;
blur = blur + bp;
} else {
t1--;
}
if (t2 == 0) {
_root.fade.play();
} else {
t2--;
}
myTempFilters[0].blurX = blur;
myTempFilters[0].blurY = 0;
this.filters = myTempFilters;
}
on (release) {
getURL ("http://rekcah.se", "_blank");
}
Frame 7
_root.mu[_root.mu.p].setVolume(100);
stop();
Instance of Symbol 1 MovieClip in Frame 7
onClipEvent (load) {
var c = 0;
while (c <= 15) {
var n = ("q" + c);
this.createEmptyMovieClip(n, this.getNextHighestDepth());
this[n].lineStyle(1, 16777215, 100);
this[n].moveTo(c * 5, 0);
this[n].lineTo(c * 5, 400);
c++;
}
}
Instance of Symbol 1 MovieClip in Frame 7
onClipEvent (load) {
var c = 0;
while (c <= 15) {
var n = ("q" + c);
this.createEmptyMovieClip(n, this.getNextHighestDepth());
this[n].lineStyle(1, 16777215, 100);
this[n].moveTo(-(c * 5), 0);
this[n].lineTo(-(c * 5), 400);
c++;
}
}
Instance of Symbol 35 MovieClip in Frame 7
onClipEvent (load) {
if (_global.menuon == 0) {
stopAllSounds();
_root.mu.p3();
}
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 54 MovieClip in Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 56 MovieClip in Frame 7
on (release) {
getURL ("http://rekcah.se/rm2/view.php", "_blank");
}
Instance of Symbol 63 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_currentframe < 25) {
play();
}
} else if (_currentframe > 1) {
gotoAndStop(_currentframe - 1);
}
}
on (press) {
this.s.gotoAndStop(2);
}
on (release) {
if (_root.fade._currentframe == 21) {
getURL ("http://www.dabontv.com/", "_blank");
_root.mu.but();
}
}
onClipEvent (mouseUp) {
this.s.gotoAndStop(1);
}
Instance of Symbol 65 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_currentframe < 25) {
play();
}
} else if (_currentframe > 1) {
gotoAndStop(_currentframe - 1);
}
}
on (press) {
this.s.gotoAndStop(2);
}
on (release) {
if (_root.fade._currentframe == 21) {
_root.fade.play();
_root.mu.but();
}
}
onClipEvent (mouseUp) {
this.s.gotoAndStop(1);
}
Frame 8
stop();
var plr = new Object();
Instance of Symbol 88 MovieClip in Frame 8
onClipEvent (load) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 65280, 100);
this.q.moveTo(5, 5);
this.q.lineTo(-5, 5);
this.q.lineTo(-5, -5);
this.q.lineTo(5, -5);
this.q.lineTo(5, 5);
this.q._x = -5;
}
onClipEvent (enterFrame) {
this.q._rotation = this.q._rotation + 2;
}
Instance of Symbol 90 MovieClip in Frame 8
onClipEvent (load) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 255, 100);
this.q.moveTo(5, 5);
this.q.lineTo(-5, 5);
this.q.lineTo(-5, -5);
this.q.lineTo(5, -5);
this.q.lineTo(5, 5);
this.q._x = -5;
}
onClipEvent (enterFrame) {
this.q._rotation = this.q._rotation + 2;
}
Instance of Symbol 92 MovieClip in Frame 8
onClipEvent (load) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 16711680, 100);
this.q.moveTo(5, 5);
this.q.lineTo(-5, 5);
this.q.lineTo(-5, -5);
this.q.lineTo(5, -5);
this.q.lineTo(5, 5);
this.q._x = -5;
}
onClipEvent (enterFrame) {
this.q._rotation = this.q._rotation + 2;
}
Instance of Symbol 94 MovieClip in Frame 8
onClipEvent (load) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 16711935, 100);
this.q.moveTo(5, 5);
this.q.lineTo(-5, 5);
this.q.lineTo(-5, -5);
this.q.lineTo(5, -5);
this.q.lineTo(5, 5);
this.q._x = -5;
}
onClipEvent (enterFrame) {
this.q._rotation = this.q._rotation + 2;
}
Frame 9
function idd(n, id) {
var _local3 = id;
while (_local3 < _root[n]) {
_root[n + _local3].id--;
_root[n + _local3]._name = n + _root[n + _local3].id;
_local3++;
}
this[n]--;
}
function dist(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
stop();
_quality = "LOW";
var s1 = 0;
var s1s = 0;
var s2 = 0;
var s2s = 0;
var sexc = 0;
var mexc = 0;
var lexc = 0;
var e1c = 0;
var lvl = 1;
var score = 0;
_global.score = 0;
var hp = 100;
var w = 1;
Instance of Symbol 96 MovieClip "bg" in Frame 9
onClipEvent (load) {
function lvlp() {
mvol = 0;
_root.mu["sb" + _root.lvl]();
_root.lvl++;
_root.mu["p" + (random(2) + 1)]();
s = 0;
bt = 1000 + (_root.lvl * 50);
t = 80;
bot = 100;
}
var t = 100;
var enemy = 1;
var s = 0;
var bt = 1000;
var bc = 0;
var boc = 0;
var mvol = 0;
var bot = 100;
}
onClipEvent (enterFrame) {
if (bt == 20) {
_root.mu.fadeout();
}
if (mvol < 100) {
mvol = mvol + 2;
}
_root.mu[_root.mu.p].setVolume(mvol);
if (s == 0) {
_root.bm.e = 0;
if (bot == 0) {
var boti = random(4);
_root["box" + boti].duplicateMovieClip("bonus" + boc, _root.getNextHighestDepth());
_root["bonus" + boc]._x = 100 + random(350);
_root["bonus" + boc]._y = -10;
boc++;
bot = 100 + random(100);
} else {
bot--;
}
if (bt != 0) {
if (t == 0) {
var n = (("en" + enemy) + _root[("e" + enemy) + "c"]);
_root["en" + enemy].duplicateMovieClip(n, _root.getNextHighestDepth());
_root[n]._y = -20;
_root[n]._x = 50 + random(450);
_root[("e" + enemy) + "c"]++;
t = 60 + random(60);
bc = 0;
} else {
t--;
}
bt--;
} else {
s = 1;
}
} else if (bc == 0) {
_root.mu.stmain();
mvol = 0;
_root.mu["pb" + _root.lvl]();
_root["boss" + _root.lvl].en = 1;
_root["boss" + _root.lvl]._x = 275;
_root["boss" + _root.lvl]._y = -50;
_root.bm.e = 1;
bc = 1;
}
}
Instance of Symbol 1 MovieClip "player" in Frame 9
onClipEvent (load) {
function paint(c) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, c, 100);
this.q.beginFill(0, 100);
c = 0;
while (c < _root.plr.dots) {
if (c == 0) {
this.q.moveTo(_root.plr["x" + c], _root.plr["y" + c]);
} else {
this.q.lineTo(_root.plr["x" + c], _root.plr["y" + c]);
}
c++;
}
this.q.endFill();
}
function hit(h) {
_root.hp = _root.hp - h;
}
function fire() {
if (_root.w == 1) {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r - 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r - 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
} else if (_root.hud.rt == 0) {
_root.mu.fire();
n = "s2" + _root.s2;
_root.shot2.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r - 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r - 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].id = _root.s2;
_root.s2++;
_root[n]._rotation = r;
_root[n].r = r;
_root.hud.rt = 15;
}
}
function h() {
_root.mu.hit();
paint("0xff0000");
ht = 5;
_root["s1" + c].del();
hit(_root.lvl / 2);
_root.hud.update();
}
paint("0xffffff");
var r = 0;
var xp = 0;
var yp = 0;
var ht = 0;
var dead = 0;
}
onClipEvent (enterFrame) {
if (ht == 0) {
paint("0xffffff");
}
if (ht > -2) {
ht--;
}
if (_root._ymouse < 350) {
yp = _root._ymouse;
}
xp = _root._xmouse;
r = ((Math.atan2(_y - yp, _x - xp) * 180) / Math.PI) - 90;
var txm = (Math.cos(((r - 90) / 180) * Math.PI) * 20);
_x = (_x + txm);
while (_root.bg.q1.hitTest(_x - (_width / 3), _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + (_width / 3), _y, true) == true) {
_x = (_x - 0.5);
}
_rotation = r;
_root.phit._x = _x;
_root.phit._y = _y;
_root.phit._rotation = _rotation;
var c = 0;
while (c < _root.s1) {
if (this.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
h();
} else if (_root.phit.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
h();
}
c++;
}
if (_root.hp <= 0) {
if (dead == 0) {
_root.mu.end();
_root.mu.die();
dead = 1;
_global.score = _root.score;
_root.fade.swapDepths(_root.getNextHighestDepth());
_root.fade.play();
}
}
}
onClipEvent (mouseDown) {
if (_root.son.hitTest(_root._xmouse, _root._ymouse, true) == false) {
fire();
}
}
Instance of Symbol 1 MovieClip "shot1" in Frame 9
onClipEvent (load) {
function del() {
dec();
var _local4 = 0;
while (_local4 < 5) {
var _local3 = "sex" + _root.sexc;
_root.sex.duplicateMovieClip(_local3, _root.getNextHighestDepth());
_root[_local3]._x = _x;
_root[_local3]._y = _y;
_root.sexc++;
_local4++;
}
this.removeMovieClip();
}
function dec() {
_root.idd("s1", id);
}
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 16777215, 100);
this.q.moveTo(0, 0);
this.q.lineTo(0, 5);
}
onClipEvent (enterFrame) {
if (_name != "shot1") {
_x = (_x + xm);
_y = (_y + ym);
if (_y < -20) {
dec();
this.removeMovieClip();
}
if (_y > 420) {
dec();
this.removeMovieClip();
}
if (_root.bg.hitTest(_x, _y, true)) {
del();
}
}
}
Instance of Symbol 1 MovieClip "en1" in Frame 9
onClipEvent (load) {
function d(c) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, c, 100);
this.q.beginFill(0, 100);
this.q.moveTo(0, -10);
this.q.lineTo(10, -10);
this.q.lineTo(0, 15);
this.q.lineTo(-10, -10);
this.q.lineTo(0, -10);
this.q.endFill();
}
function hit(m) {
_root.mu.hit();
t1 = 2;
hp = hp - m;
_root.score = _root.score + 50;
_root.hud.update();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((fr + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((fr + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 2;
_root[n].ym = _local3 / 2;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = fr;
}
this.createEmptyMovieClip("f", 1);
this.f.lineStyle(2, 16777215, 100);
this.f.moveTo(0, 0);
this.f.lineTo(0, 10);
d("0xffffff");
var type = random(2);
var rxp = (100 + random(350));
var trxp = rxp;
var fr = 0;
var afr = 0;
var rtimer = (20 + random(44));
var hp = (50 * _root.lvl);
var t1 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var ft = 20;
}
onClipEvent (enterFrame) {
if (_name != "en1") {
if (rtimer == 0) {
rxp = 100 + random(350);
rtimer = 20 + random(44);
} else {
rtimer--;
}
trxp = trxp - ((trxp - rxp) / 50);
if (ft == 0) {
fire();
ft = (30 + random(40)) - (_root.lvl * 2);
} else {
ft--;
}
if (t1 > 0) {
t1--;
d("0xff0000");
} else if (t1 == 0) {
d("0xffffff");
t--;
}
var c = 0;
while (c < _root.s1) {
if (this.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit(100);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit(150);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
if (_y < 350) {
if (type == 0) {
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
} else {
r = ((Math.atan2(_y - 400, _x - trxp) * 180) / Math.PI) + 90;
}
} else {
r = 0;
}
fr = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
if (type == 0) {
afr = 0;
} else {
afr = fr - r;
}
this.f._rotation = afr;
_rotation = r;
_x = (_x + (Math.cos(((r + 90) / 180) * Math.PI) * 2));
_y = (_y + (Math.sin(((r + 90) / 180) * Math.PI) * 2));
if ((hp <= 0) || (_y > 450)) {
_root.mu.expl();
var c = 0;
while (c < 10) {
var n = ("lex" + _root.lexc);
_root.lex.duplicateMovieClip(n, _root.getNextHighestDepth());
_root[n]._x = _x;
_root[n]._y = _y;
_root.lexc++;
c++;
}
this.removeMovieClip();
}
if (_root._currentframe != 9) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "sex" in Frame 9
onClipEvent (load) {
function d(c) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(1, 16777215, c);
var _local3 = Math.cos((r / 180) * Math.PI) * d1;
var _local2 = Math.sin((r / 180) * Math.PI) * d1;
this.q.moveTo(_local3, _local2);
_local3 = Math.cos((r / 180) * Math.PI) * d2;
_local2 = Math.sin((r / 180) * Math.PI) * d2;
this.q.lineTo(_local3, _local2);
}
var d1 = 0;
var d2 = 0;
var c = 100;
var r = random(360);
}
onClipEvent (enterFrame) {
if (_name != "sex") {
c = c - 10;
d1 = d1 + 3;
d2 = d2 + 6;
d(c);
if (c <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "boss1" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -15);
this.bo.lineTo(10, -15);
this.bo.lineTo(10, 5);
this.bo.lineTo(0, 20);
this.bo.lineTo(-10, 5);
this.bo.lineTo(-10, -15);
this.bo.lineTo(0, -15);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-10, -10);
this.lw.lineTo(-30, -10);
this.lw.lineTo(-10, 5);
this.lw.lineTo(-10, -10);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(10, -10);
this.rw.lineTo(30, -10);
this.rw.lineTo(10, 5);
this.rw.lineTo(10, -10);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 21;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 21;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 40;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 40;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(5);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(20);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(20);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(10);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(25);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(25);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "mex" in Frame 9
onClipEvent (load) {
function d(c) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(1, 16777215, c);
var _local3 = Math.cos((r / 180) * Math.PI) * d1;
var _local2 = Math.sin((r / 180) * Math.PI) * d1;
this.q.moveTo(_local3, _local2);
_local3 = Math.cos((r / 180) * Math.PI) * d2;
_local2 = Math.sin((r / 180) * Math.PI) * d2;
this.q.lineTo(_local3, _local2);
}
var d1 = 0;
var d2 = 0;
var c = 100;
var r = random(360);
}
onClipEvent (enterFrame) {
if (_name != "mex") {
c = c - 5;
d1 = d1 + 3;
d2 = d2 + 6;
d(c);
if (c <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "lex" in Frame 9
onClipEvent (load) {
function d(c) {
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(1, 16777215, c);
var _local3 = Math.cos((r / 180) * Math.PI) * d1;
var _local2 = Math.sin((r / 180) * Math.PI) * d1;
this.q.moveTo(_local3, _local2);
_local3 = Math.cos((r / 180) * Math.PI) * d2;
_local2 = Math.sin((r / 180) * Math.PI) * d2;
this.q.lineTo(_local3, _local2);
}
var d1 = 0;
var d2 = 0;
var c = 100;
var r = random(360);
}
onClipEvent (enterFrame) {
if (_name != "lex") {
c = c - 10;
d1 = d1 + 5;
d2 = d2 + 10;
d(c);
if (c <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "boss2" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -15);
this.bo.lineTo(10, -15);
this.bo.lineTo(15, -10);
this.bo.lineTo(15, 5);
this.bo.lineTo(-15, 5);
this.bo.lineTo(-15, -10);
this.bo.lineTo(-10, -15);
this.bo.lineTo(0, -15);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-15, 5);
this.lw.lineTo(-5, 5);
this.lw.lineTo(-5, 5);
this.lw.lineTo(-10, 25);
this.lw.lineTo(-15, 5);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(15, 5);
this.rw.lineTo(5, 5);
this.rw.lineTo(5, 5);
this.rw.lineTo(10, 25);
this.rw.lineTo(15, 5);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 40;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 40;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(5);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(19);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(19);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(9);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(23);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(23);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss3" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
c = 0;
while (c < 360) {
var _local4 = Math.cos((c / 180) * Math.PI) * 20;
var _local3 = Math.sin((c / 180) * Math.PI) * 20;
if (c == 0) {
this.bo.moveTo(_local4, _local3);
} else {
this.bo.lineTo(_local4, _local3);
}
c = c + 11.25;
}
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
c = 0;
while (c < 360) {
var _local4 = -30 + (Math.cos((c / 180) * Math.PI) * 10);
var _local3 = Math.sin((c / 180) * Math.PI) * 10;
if (c == 0) {
this.lw.moveTo(_local4, _local3);
} else {
this.lw.lineTo(_local4, _local3);
}
c = c + 11.25;
}
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
c = 0;
while (c < 360) {
var _local4 = 30 + (Math.cos((c / 180) * Math.PI) * 10);
var _local3 = Math.sin((c / 180) * Math.PI) * 10;
if (c == 0) {
this.rw.moveTo(_local4, _local3);
} else {
this.rw.lineTo(_local4, _local3);
}
c = c + 11.25;
}
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 25;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 25;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3.3;
_root[n].ym = _local3 / 3.3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 35;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 35;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(18);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(18);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(9);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(22);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(22);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss4" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(5, -5);
this.bo.lineTo(0, 5);
this.bo.lineTo(-5, -5);
this.bo.lineTo(5, -5);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-15, 0);
this.lw.lineTo(0, 10);
this.lw.lineTo(0, 15);
this.lw.lineTo(-15, 5);
this.lw.lineTo(-15, 0);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(15, 0);
this.rw.lineTo(0, 10);
this.rw.lineTo(0, 15);
this.rw.lineTo(15, 5);
this.rw.lineTo(15, 0);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 35;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 35;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(6);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(5);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(5);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(8);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(10);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(10);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss5" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -15);
this.bo.lineTo(10, -15);
this.bo.lineTo(0, 10);
this.bo.lineTo(-10, -15);
this.bo.lineTo(0, -15);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-15, -5);
this.lw.lineTo(-10, 5);
this.lw.lineTo(-20, 5);
this.lw.lineTo(-15, -5);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(15, -5);
this.rw.lineTo(10, 5);
this.rw.lineTo(20, 5);
this.rw.lineTo(15, -5);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 35;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 35;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(16);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(16);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(8);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(20);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(20);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss6" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -10);
this.bo.lineTo(20, -10);
this.bo.lineTo(20, 10);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 20);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-20, 10);
this.bo.lineTo(-20, -10);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
c = 0;
while (c <= 180) {
var _local4 = Math.cos(((c + 90) / 180) * Math.PI) * 10;
var _local3 = Math.sin(((c + 90) / 180) * Math.PI) * 10;
if (c == 0) {
this.lw.moveTo(_local4 - 20, _local3);
} else {
this.lw.lineTo(_local4 - 20, _local3);
}
c = c + 11.25;
}
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
c = 0;
while (c <= 180) {
var _local4 = Math.cos(((c - 90) / 180) * Math.PI) * 10;
var _local3 = Math.sin(((c - 90) / 180) * Math.PI) * 10;
if (c == 0) {
this.rw.moveTo(_local4 + 20, _local3);
} else {
this.rw.lineTo(_local4 + 20, _local3);
}
c = c + 11.25;
}
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 35;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 35;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(15);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(15);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(7);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(19);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(19);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss7" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -10);
this.bo.lineTo(20, -10);
this.bo.lineTo(20, 10);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 0);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-20, 10);
this.bo.lineTo(-20, -10);
this.bo.lineTo(0, -10);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-20, 0);
this.lw.lineTo(-30, 0);
this.lw.lineTo(-40, 10);
this.lw.lineTo(-30, 30);
this.lw.lineTo(-30, 20);
this.lw.lineTo(-20, 10);
this.lw.lineTo(-20, 0);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(20, 0);
this.rw.lineTo(30, 0);
this.rw.lineTo(40, 10);
this.rw.lineTo(30, 30);
this.rw.lineTo(30, 20);
this.rw.lineTo(20, 10);
this.rw.lineTo(20, 0);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 32;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 32;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(14);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(14);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(7);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(17);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(17);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss8" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -10);
this.bo.lineTo(20, -10);
this.bo.lineTo(30, 0);
this.bo.lineTo(20, 10);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 0);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-20, 10);
this.bo.lineTo(-30, 0);
this.bo.lineTo(-20, -10);
this.bo.lineTo(0, -10);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-40, 0);
this.lw.lineTo(-10, 30);
this.lw.lineTo(-10, 40);
this.lw.lineTo(-40, 10);
this.lw.lineTo(-40, 0);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(40, 0);
this.rw.lineTo(10, 30);
this.rw.lineTo(10, 40);
this.rw.lineTo(40, 10);
this.rw.lineTo(40, 0);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 32;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 32;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(14);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(14);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(6);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(16);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(16);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss9" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(30, -10);
this.bo.lineTo(30, 10);
this.bo.lineTo(20, 0);
this.bo.lineTo(0, 20);
this.bo.lineTo(-20, 0);
this.bo.lineTo(-30, 10);
this.bo.lineTo(-30, -10);
this.bo.lineTo(30, -10);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-20, 10);
this.lw.lineTo(-10, 20);
this.lw.lineTo(-20, 30);
this.lw.lineTo(-30, 20);
this.lw.lineTo(-20, 10);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(20, 10);
this.rw.lineTo(10, 20);
this.rw.lineTo(20, 30);
this.rw.lineTo(30, 20);
this.rw.lineTo(20, 10);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 25;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 25;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3.5;
_root[n].ym = _local3 / 3.5;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 30;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 30;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(14);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(14);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(6);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(15);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(15);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss10" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(30, -10);
this.bo.lineTo(30, 20);
this.bo.lineTo(20, 10);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 0);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-20, 10);
this.bo.lineTo(-30, 20);
this.bo.lineTo(-30, -10);
this.bo.lineTo(30, -10);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-10, 20);
this.lw.lineTo(-30, 40);
this.lw.lineTo(-40, 30);
this.lw.lineTo(-40, 20);
this.lw.lineTo(-30, 30);
this.lw.lineTo(-20, 20);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(10, 20);
this.rw.lineTo(30, 40);
this.rw.lineTo(40, 30);
this.rw.lineTo(40, 20);
this.rw.lineTo(30, 30);
this.rw.lineTo(20, 20);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 30;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 30;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(4);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(12);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(12);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(6);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(14);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(14);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss11" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(20, -10);
c = 0;
while (c <= 180) {
var _local4 = Math.cos(((c - 90) / 180) * Math.PI) * 10;
var _local3 = Math.sin(((c - 90) / 180) * Math.PI) * 10;
this.bo.lineTo(20 + _local4, _local3);
c = c + 11.25;
}
this.bo.lineTo(10, 20);
c = 180;
while (c >= 0) {
var _local4 = Math.cos(((c - 180) / 180) * Math.PI) * 10;
var _local3 = Math.sin(((c - 180) / 180) * Math.PI) * 10;
this.bo.lineTo(_local4, 20 + _local3);
c = c - 11.25;
}
this.bo.lineTo(-20, 10);
c = 0;
while (c <= 180) {
var _local4 = Math.cos(((c + 90) / 180) * Math.PI) * 10;
var _local3 = Math.sin(((c + 90) / 180) * Math.PI) * 10;
this.bo.lineTo(-20 + _local4, _local3);
c = c + 11.25;
}
c = 0;
while (c <= 180) {
var _local4 = Math.cos(((c - 180) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((c - 180) / 180) * Math.PI) * 20;
this.bo.lineTo(_local4, -10 + _local3);
c = c + 11.25;
}
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-20, 20);
c = 0;
while (c <= 360) {
var _local4 = Math.cos((c / 180) * Math.PI) * 10;
var _local3 = Math.sin((c / 180) * Math.PI) * 10;
this.lw.lineTo(-30 + _local4, 20 + _local3);
c = c + 22.5;
}
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(40, 20);
c = 0;
while (c <= 360) {
var _local4 = Math.cos((c / 180) * Math.PI) * 10;
var _local3 = Math.sin((c / 180) * Math.PI) * 10;
this.rw.lineTo(30 + _local4, 20 + _local3);
c = c + 22.5;
}
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 28;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 28;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(3);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(9);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(9);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(6);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(12);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(12);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss12" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(20, -40);
this.bo.lineTo(30, -30);
this.bo.lineTo(30, -20);
this.bo.lineTo(20, -10);
this.bo.lineTo(10, -10);
this.bo.lineTo(10, 0);
this.bo.lineTo(20, 10);
this.bo.lineTo(0, 30);
this.bo.lineTo(-20, 10);
this.bo.lineTo(-10, 0);
this.bo.lineTo(-10, -10);
this.bo.lineTo(-20, -10);
this.bo.lineTo(-30, -20);
this.bo.lineTo(-30, -30);
this.bo.lineTo(-20, -40);
this.bo.lineTo(20, -40);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-40, -10);
this.lw.lineTo(-30, 0);
this.lw.lineTo(-30, 10);
this.lw.lineTo(-10, 30);
this.lw.lineTo(-20, 30);
this.lw.lineTo(-40, 10);
this.lw.lineTo(-40, -10);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(40, -10);
this.rw.lineTo(30, 0);
this.rw.lineTo(30, 10);
this.rw.lineTo(10, 30);
this.rw.lineTo(20, 30);
this.rw.lineTo(40, 10);
this.rw.lineTo(40, -10);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 35;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 35;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 5;
_root[n].ym = _local3 / 5;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 28;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 28;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(2);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(5);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(5);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(5);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(10);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(10);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss13" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(10, -40);
this.bo.lineTo(20, -20);
this.bo.lineTo(20, -10);
this.bo.lineTo(10, 0);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 20);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-10, 0);
this.bo.lineTo(-20, -10);
this.bo.lineTo(-20, -20);
this.bo.lineTo(-10, -40);
this.bo.lineTo(-10, -20);
this.bo.lineTo(0, -10);
this.bo.lineTo(10, -20);
this.bo.lineTo(10, -40);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-20, 0);
this.lw.lineTo(-30, 10);
this.lw.lineTo(-10, 30);
this.lw.lineTo(-10, 20);
this.lw.lineTo(-20, 10);
this.lw.lineTo(-20, 0);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(20, 0);
this.rw.lineTo(30, 10);
this.rw.lineTo(10, 30);
this.rw.lineTo(10, 20);
this.rw.lineTo(20, 10);
this.rw.lineTo(20, 0);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 25;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 25;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(3);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(1);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(1);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(5);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(15);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(15);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss14" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
this.bo.moveTo(0, -30);
this.bo.lineTo(10, -10);
this.bo.lineTo(10, 10);
this.bo.lineTo(0, 30);
this.bo.lineTo(-10, 10);
this.bo.lineTo(-10, -10);
this.bo.lineTo(0, -30);
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-15, -10);
this.lw.lineTo(-15, 10);
this.lw.lineTo(-5, 30);
this.lw.lineTo(-5, 40);
this.lw.lineTo(-15, 30);
this.lw.lineTo(-25, 10);
this.lw.lineTo(-25, 0);
this.lw.lineTo(-15, -10);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(15, -10);
this.rw.lineTo(15, 10);
this.rw.lineTo(5, 30);
this.rw.lineTo(5, 40);
this.rw.lineTo(15, 30);
this.rw.lineTo(25, 10);
this.rw.lineTo(25, 0);
this.rw.lineTo(15, -10);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 40;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 40;
_root[n]._x = _x + _local2;
_root[n]._y = _y + _local3;
_root[n].xm = _local2 / 5;
_root[n].ym = _local3 / 5;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 23;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 23;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(0.7);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(2);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(2);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(10);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(3);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(3);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.bg.lvlp();
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "boss15" in Frame 9
onClipEvent (load) {
function b(c) {
this.createEmptyMovieClip("bo", 0);
this.bo.lineStyle(2, c, 100);
this.bo.beginFill(0, 100);
c = 0;
while (c < 360) {
var _local4 = Math.cos((c / 180) * Math.PI) * 10;
var _local3 = Math.sin((c / 180) * Math.PI) * 10;
if (c == 0) {
this.bo.moveTo(_local4, _local3);
} else {
this.bo.lineTo(_local4, _local3);
}
c = c + 11.25;
}
this.bo.endFill();
}
function w1(c) {
this.createEmptyMovieClip("lw", 1);
this.lw.lineStyle(2, c, 100);
this.lw.beginFill(0, 100);
this.lw.moveTo(-10, -10);
this.lw.lineTo(-20, 0);
this.lw.lineTo(-20, 10);
this.lw.lineTo(-10, 20);
this.lw.lineTo(-5, 35);
this.lw.lineTo(-20, 20);
this.lw.lineTo(-30, 20);
this.lw.lineTo(-20, 40);
this.lw.lineTo(-10, 50);
this.lw.lineTo(-20, 50);
this.lw.lineTo(-30, 40);
this.lw.lineTo(-40, 20);
this.lw.lineTo(-40, 10);
this.lw.lineTo(-20, -10);
this.lw.lineTo(-10, -10);
this.lw.endFill();
}
function w2(c) {
this.createEmptyMovieClip("rw", 2);
this.rw.lineStyle(2, c, 100);
this.rw.beginFill(0, 100);
this.rw.moveTo(10, -10);
this.rw.lineTo(20, 0);
this.rw.lineTo(20, 10);
this.rw.lineTo(10, 20);
this.rw.lineTo(5, 35);
this.rw.lineTo(20, 20);
this.rw.lineTo(30, 20);
this.rw.lineTo(20, 40);
this.rw.lineTo(10, 50);
this.rw.lineTo(20, 50);
this.rw.lineTo(30, 40);
this.rw.lineTo(40, 20);
this.rw.lineTo(40, 10);
this.rw.lineTo(20, -10);
this.rw.lineTo(10, -10);
this.rw.endFill();
}
function fire() {
_root.mu.fire();
n = "s1" + _root.s1;
_root.shot1.duplicateMovieClip(n, _root.getNextHighestDepth());
var _local2 = Math.cos(((r + 90) / 180) * Math.PI) * 20;
var _local3 = Math.sin(((r + 90) / 180) * Math.PI) * 20;
_root[n]._x = _x + (_local2 * 2);
_root[n]._y = _y + (_local3 * 2);
_root[n].xm = _local2 / 3;
_root[n].ym = _local3 / 3;
_root[n].id = _root.s1;
_root.s1++;
_root[n]._rotation = r;
}
function hit1(d) {
_root.mu.hit();
t1 = 2;
hp1 = hp1 - d;
_root.score = _root.score + 20;
ud();
}
function hit2(d) {
_root.mu.hit();
t2 = 2;
hp2 = hp2 - d;
_root.score = _root.score + 5;
ud();
}
function hit3(d) {
_root.mu.hit();
t3 = 2;
hp3 = hp3 - d;
_root.score = _root.score + 5;
ud();
}
function ud() {
_root.hud.update();
}
function explode(q, xp) {
_root.mu.expl();
var _local3 = 0;
while (_local3 < q) {
var _local2 = "lex" + _root.lexc;
_root.lex.duplicateMovieClip(_local2, _root.getNextHighestDepth());
_root[_local2]._x = (_x + xp) + ((random(100) - 50) / 100);
_root[_local2]._y = _y + ((random(100) - 50) / 100);
_root.lexc++;
_local3++;
}
}
b("0xffffff");
w1("0xffffff");
w2("0xffffff");
var hp1 = 100;
var hp2 = 100;
var hp3 = 100;
var t1 = 0;
var t2 = 0;
var t3 = 0;
var xm = 0;
var ym = 0;
var r = 0;
var en = 0;
var dt1 = 70;
var dt2 = 30;
var dt3 = 30;
var dtt = 0;
var fdtt = 0;
var ddt = 150;
var ft = 20;
}
onClipEvent (enterFrame) {
if (en == 1) {
if (_y < 50) {
_y = (_y + 0.5);
}
if (ft == 0) {
fire();
ft = 20;
} else {
ft--;
}
if (hp1 > 0) {
if (t1 > 0) {
t1--;
b("0xff0000");
} else if (t1 == 0) {
b("0xffffff");
t1--;
}
dt1 = 70;
} else {
bo.removeMovieClip();
hp2 = 0;
hp3 = 0;
if (dt1 > 0) {
if (dtt == 0) {
explode(8 + random(13), 0);
dtt = 5 + random(15);
} else {
dtt--;
}
dt1--;
}
}
if (hp2 > 0) {
if (t2 > 0) {
t2--;
w1("0xff0000");
} else if (t2 == 0) {
w1("0xffffff");
t2--;
}
dt2 = 30;
} else {
lw.removeMovieClip();
if (dt2 > 0) {
if (dtt == 0) {
explode(5 + random(10), -20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt2--;
}
}
if (hp3 > 0) {
if (t3 > 0) {
t3--;
w2("0xff0000");
} else if (t3 == 0) {
w2("0xffffff");
t3--;
}
dt1 = 30;
} else {
rw.removeMovieClip();
if (dt3 > 0) {
if (dtt == 0) {
explode(5 + random(10), 20);
dtt = 5 + random(15);
} else {
dtt--;
}
dt3--;
}
}
if (hp1 <= 0) {
if (hp2 <= 0) {
if (hp3 <= 0) {
if (fdtt == 0) {
explode(5 + random(20), 0);
fdtt = 2 + random(10);
} else {
fdtt--;
}
ddt--;
en = 0;
}
}
}
var c = 0;
while (c < _root.s1) {
if (this.bo.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit1(0.5);
}
if (this.lw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit2(1);
}
if (this.rw.hitTest(_root["s1" + c]._x, _root["s1" + c]._y, true)) {
_root["s1" + c].del();
hit3(1);
}
c++;
}
var c = 0;
while (c < _root.s2) {
if (this.bo.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit1(1);
}
if (this.lw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit2(2);
}
if (this.rw.hitTest(_root["s2" + c]._x, _root["s2" + c]._y, true)) {
_root["s2" + c].del();
hit3(2);
}
c++;
}
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
r = ((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) + 90;
_rotation = r;
var xm = (Math.cos(((r + 90) / 180) * Math.PI) * 5);
if (hp2 <= 0) {
if (xm <= 0) {
xm = 0;
}
}
if (hp3 <= 0) {
if (xm >= 0) {
xm = 0;
}
}
_x = (_x + xm);
if ((hp1 > 0) && (hp1 < 0.5)) {
_root.mu.fadeout();
}
if (hp1 <= 0) {
if (fdtt <= 0) {
_root.mu.win();
_root.fade.play();
_global.score = _root.score;
_root.bm.w(0);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1 MovieClip "shot2" in Frame 9
onClipEvent (load) {
function del() {
dec();
var _local4 = 0;
while (_local4 < 5) {
var _local3 = "sex" + _root.mexc;
_root.mex.duplicateMovieClip(_local3, _root.getNextHighestDepth());
_root[_local3]._x = _x;
_root[_local3]._y = _y;
_root.mexc++;
_local4++;
}
this.removeMovieClip();
}
function dec() {
_root.idd("s2", id);
}
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(2, 16777215, 100);
this.q.moveTo(0, 0);
this.q.lineTo(2, 10);
this.q.lineTo(-2, 10);
this.q.lineTo(0, 0);
var t = 100;
var a = 0;
}
onClipEvent (enterFrame) {
if (_name != "shot2") {
if (a == 0) {
var tr = (((Math.atan2(_y - _root._ymouse, _x - _root._xmouse) * 180) / Math.PI) - 90);
} else {
var tr = (((Math.atan2(_y - _root.player._y, _x - _root.player._x) * 180) / Math.PI) - 90);
}
r = tr;
var xm = (Math.cos(((r - 90) / 180) * Math.PI) * 5);
var ym = (Math.sin(((r - 90) / 180) * Math.PI) * 5);
_rotation = r;
_x = (_x + xm);
_y = (_y + ym);
if (_y < -20) {
dec();
this.removeMovieClip();
}
if (_y > 420) {
dec();
this.removeMovieClip();
}
if (_root.bg.hitTest(_x, _y, true)) {
del();
}
if (t == 0) {
_root.mu.expl();
del();
} else {
t--;
}
}
}
Instance of Symbol 1 MovieClip "box0" in Frame 9
onClipEvent (load) {
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(2, 65280);
this.b.moveTo(5, 5);
this.b.lineTo(-5, 5);
this.b.lineTo(-5, -5);
this.b.lineTo(5, -5);
this.b.lineTo(5, 5);
var r = (random(10) - 5);
}
onClipEvent (enterFrame) {
if (_name != "box0") {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
if (_root.player.hitTest(this)) {
_root.hp = _root.hp + (_root.lvl / 2);
if (_root.hp > 100) {
_root.hp = 100;
}
_root.hud.update();
_root.mu.bonus();
this.removeMovieClip();
}
_rotation = (_rotation + r);
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
_y = (_y + 2);
if (_y > 410) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "box1" in Frame 9
onClipEvent (load) {
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(2, 255);
this.b.moveTo(5, 5);
this.b.lineTo(-5, 5);
this.b.lineTo(-5, -5);
this.b.lineTo(5, -5);
this.b.lineTo(5, 5);
var r = (random(10) - 5);
}
onClipEvent (enterFrame) {
if (_name != "box1") {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
if (_root.player.hitTest(this)) {
_root.score = _root.score + 500;
_root.hud.update();
_root.mu.bonus();
this.removeMovieClip();
}
_rotation = (_rotation + r);
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
_y = (_y + 2);
if (_y > 410) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "box2" in Frame 9
onClipEvent (load) {
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(2, 16711680);
this.b.moveTo(5, 5);
this.b.lineTo(-5, 5);
this.b.lineTo(-5, -5);
this.b.lineTo(5, -5);
this.b.lineTo(5, 5);
var r = (random(10) - 5);
}
onClipEvent (enterFrame) {
if (_name != "box2") {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
if (_root.player.hitTest(this)) {
_root.w = 1;
_root.mu.bonus();
this.removeMovieClip();
}
_rotation = (_rotation + r);
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
_y = (_y + 2);
if (_y > 410) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1 MovieClip "box3" in Frame 9
onClipEvent (load) {
this.createEmptyMovieClip("b", 0);
this.b.lineStyle(2, 16711935);
this.b.moveTo(5, 5);
this.b.lineTo(-5, 5);
this.b.lineTo(-5, -5);
this.b.lineTo(5, -5);
this.b.lineTo(5, 5);
var r = (random(10) - 5);
}
onClipEvent (enterFrame) {
if (_name != "box3") {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
if (_root.player.hitTest(this)) {
_root.w = 2;
_root.mu.bonus();
this.removeMovieClip();
}
_rotation = (_rotation + r);
while (_root.bg.q1.hitTest(_x - 10, _y, true) == true) {
_x = (_x + 0.5);
}
while (_root.bg.q2.hitTest(_x + 10, _y, true) == true) {
_x = (_x - 0.5);
}
_y = (_y + 2);
if (_y > 410) {
this.removeMovieClip();
}
}
}
Instance of Symbol 114 MovieClip "hud" in Frame 9
onClipEvent (load) {
function write(na, str, yp, q) {
var _local3 = na;
this.field.duplicateMovieClip(_local3, q);
this[_local3]._x = 10;
this[_local3]._y = yp;
str = Math.round(str);
var _local6 = str.toString();
var _local7 = length(str);
var _local2 = 0;
while (_local2 < _local7) {
_local3 = (na + "") + _local2;
this[na].nr.duplicateMovieClip(_local3, _local2);
this[na][_local3]._x = _local2 * 10;
this[na][_local3]._y = 0;
q = parseInt(_local6.charAt(_local2)) + 1;
this[na][_local3].gotoAndStop(q);
_local2++;
}
}
function update() {
write("nr", _root.score, 10, 1);
write("hp", _root.hp, 30, 2);
}
update();
var rt = 0;
this.hpm.sk.attachBitmap(mb, 0);
var rtm = 0;
}
onClipEvent (enterFrame) {
if (rt != 0) {
rt--;
}
rtm = (rt / 15) * 50;
this.createEmptyMovieClip("rel1", 3);
this.rel1.lineStyle(1, 16777215, 100);
this.rel1.beginFill(0, 100);
this.rel1.moveTo(13, 118);
this.rel1.lineTo(66, 118);
this.rel1.lineTo(66, 131);
this.rel1.lineTo(13, 131);
this.rel1.lineTo(13, 118);
this.createEmptyMovieClip("rel2", 4);
this.rel2.lineStyle(2, 0, 0);
this.rel2.beginFill(16777215, 100);
this.rel2.moveTo(15, 120);
this.rel2.lineTo(15 + rtm, 120);
this.rel2.lineTo(15 + rtm, 130);
this.rel2.lineTo(15, 130);
this.rel2.lineTo(15, 120);
}
Instance of Symbol 1 MovieClip "bm" in Frame 9
onClipEvent (load) {
function w(h) {
this.createEmptyMovieClip("rel1", 3);
this.rel1.lineStyle(1, 16777215, 75);
this.rel1.beginFill(0, 75);
this.rel1.moveTo(-52, -2);
this.rel1.lineTo(51, -2);
this.rel1.lineTo(51, 11);
this.rel1.lineTo(-52, 11);
this.rel1.lineTo(-52, -2);
this.createEmptyMovieClip("rel2", 4);
this.rel2.lineStyle(2, 0, 0);
this.rel2.beginFill(16777215, 75);
this.rel2.moveTo(-50, 0);
this.rel2.lineTo(-50 + h, 0);
this.rel2.lineTo(-50 + h, 10);
this.rel2.lineTo(-50, 10);
this.rel2.lineTo(-50, 0);
}
var e = 0;
_x = 275;
}
onClipEvent (enterFrame) {
if (e == 0) {
_y = (_y - ((_y - -20) / 20));
} else {
_y = (_y - ((_y - 5) / 20));
w(_root["boss" + _root.lvl].hp1);
}
}
Instance of Symbol 119 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
play();
} else {
gotoAndStop (1);
}
}
on (release) {
_root.gotoAndStop(7);
}
Instance of Symbol 122 MovieClip "son" in Frame 9
onClipEvent (load) {
_global.menuon = 0;
_root.mu.st3();
_root.mu.p1();
}
on (release) {
_root.mu.but();
if (_root.mu.vol == true) {
_root.mu.vol = false;
gotoAndStop (2);
} else {
_root.mu.vol = true;
gotoAndStop (1);
}
}
Frame 10
stop();
_quality = "HIGH";
var c = 0;
while (c < _root.s1) {
_root["s1" + c].removeMovieClip();
c++;
}
Instance of Symbol 129 MovieClip in Frame 10
onClipEvent (load) {
var s = 0;
var t = 64;
var con = new LoadVars();
var rec = new LoadVars();
}
onClipEvent (mouseUp) {
if (s == 0) {
gotoAndStop (1);
}
}
on (press) {
if (s == 0) {
gotoAndStop (2);
}
}
on (release) {
if (s == 0) {
_root.na.textColor = "0x757575";
_root.na.selectable = false;
gotoAndStop (3);
s = 1;
con.n = _root.na.text;
con.s = _global.score;
con.send("http://rekcah.se/rm2/sub.php", "_blank", "POST");
}
}
onClipEvent (enterFrame) {
if (s == 1) {
if (t == 0) {
_root.gotoAndStop(7);
} else {
t--;
}
}
}
Instance of Symbol 56 MovieClip in Frame 10
on (release) {
getURL ("http://rekcah.se/rm2/view.php", "_blank");
}
Instance of Symbol 119 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
play();
} else {
gotoAndStop (1);
}
}
on (release) {
_root.gotoAndStop(7);
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
play();
} else {
gotoAndStop (1);
}
}
on (release) {
getURL ("http://www.DABontv.com", "_blank");
}
Instance of Symbol 112 MovieClip "field" in Frame 10
onClipEvent (load) {
var str = Math.round(_global.score);
var s = str.toString();
var l = length(str);
var c = 0;
while (c < l) {
var n = ("n" + c);
this.nr.duplicateMovieClip(n, c);
this[n]._x = c * 10;
this[n]._y = 35;
var q = (parseInt(s.charAt(c)) + 1);
this[n].gotoAndStop(q);
c++;
}
}
Instance of Symbol 1 MovieClip in Frame 10
onClipEvent (load) {
var l = (length(_global.score) * 20);
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(1, 16777215, 100);
this.q.beginFill(0, 100);
this.q.moveTo(-2, -2);
this.q.lineTo(l + 98, -2);
this.q.lineTo(l + 98, 2);
this.q.lineTo(-2, 2);
this.q.lineTo(-2, -2);
this.q.endFill();
this.createEmptyMovieClip("w", 1);
this.w.lineStyle(1, 16777215, 100);
this.w.moveTo(0, 0);
this.w.lineTo(l + 97, 0);
_root.st._x = (_x + l) + 5;
_root.st._y = _y - 5;
}
Symbol 31 MovieClip Frame 1
stopAllSounds();
Symbol 31 MovieClip Frame 2
stopAllSounds();
stop();
Symbol 44 MovieClip Frame 40
stop();
Symbol 45 MovieClip Frame 180
_root.fade.play();
stop();
Symbol 49 MovieClip Frame 21
stop();
Symbol 49 MovieClip Frame 50
_root.play();
Instance of Symbol 1 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
var d1 = (10 + random(30));
var d2 = (10 + random(30));
var d3 = (10 + random(30));
var d4 = (10 + random(30));
this.createEmptyMovieClip("q", 0);
this.q.lineStyle(1, 0, 0);
this.q.beginFill(0, 100);
var xm = (1 * d1);
var ym = (0 * d1);
this.q.moveTo(xm, ym);
var xm = (6.12303176911189E-17 * d2);
var ym = (1 * d2);
this.q.lineTo(xm, ym);
var xm = (-1 * d3);
var ym = (1.22460635382238E-16 * d3);
this.q.lineTo(xm, ym);
var xm = (-1.83690953073357E-16 * d4);
var ym = (-1 * d4);
this.q.lineTo(xm, ym);
var xm = (1 * d1);
var ym = (0 * d1);
this.q.lineTo(xm, ym);
this.q.endFill();
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 25
stop();
Symbol 65 MovieClip Frame 25
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var t1 = 0;
var y1 = random(400);
var ty1 = y1;
var r1 = random(360);
var c = 0;
while (c <= 20) {
this["p1x" + c] = random(20) - 10;
this["p1xm" + c] = 0;
c++;
}
}
onClipEvent (enterFrame) {
if (t1 == 0) {
y1 = random(400);
t1 = random(50);
} else {
t1--;
}
ty1 = ty1 - ((ty1 - y1) / 5);
var n = "l1";
_parent.createEmptyMovieClip(n, 0);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(100, 0);
_parent[n].lineTo(100, ty1 - 10);
var n = "l2";
_parent.createEmptyMovieClip(n, 1);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(90, 0);
_parent[n].lineTo(90, ty1 - 10);
var n = "l3";
_parent.createEmptyMovieClip(n, 2);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(100, 400);
_parent[n].lineTo(100, ty1 + 10);
var n = "l4";
_parent.createEmptyMovieClip(n, 3);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(90, 400);
_parent[n].lineTo(90, ty1 + 10);
var n = "l5";
_parent.createEmptyMovieClip(n, 4);
_parent[n].lineStyle(2, 16777215, 100);
r1 = r1 - 10;
var q = 0;
var c = r1;
while (c <= (r1 + 270)) {
var tx = (Math.cos((c / 180) * Math.PI) * q);
var ty = (Math.sin((c / 180) * Math.PI) * q);
if (c == r1) {
_parent[n].moveTo(30 + tx, 30 + ty);
} else {
_parent[n].lineTo(30 + tx, 30 + ty);
}
q++;
c = c + 11.25;
}
var n = "l6";
_parent.createEmptyMovieClip(n, 5);
_parent[n].lineStyle(2, 16777215, 100);
var q = 0;
var c = r1;
while (c <= (r1 + 270)) {
var tx = (Math.cos(((c + 90) / 180) * Math.PI) * q);
var ty = (Math.sin(((c + 90) / 180) * Math.PI) * q);
if (c == r1) {
_parent[n].moveTo(30 + tx, 30 + ty);
} else {
_parent[n].lineTo(30 + tx, 30 + ty);
}
q++;
c = c + 11.25;
}
var n = "l7";
_parent.createEmptyMovieClip(n, 6);
_parent[n].lineStyle(2, 16777215, 100);
var q = 0;
var c = r1;
while (c <= (r1 + 270)) {
var tx = (Math.cos(((c + 180) / 180) * Math.PI) * q);
var ty = (Math.sin(((c + 180) / 180) * Math.PI) * q);
if (c == r1) {
_parent[n].moveTo(30 + tx, 30 + ty);
} else {
_parent[n].lineTo(30 + tx, 30 + ty);
}
q++;
c = c + 11.25;
}
var n = "l8";
_parent.createEmptyMovieClip(n, 7);
_parent[n].lineStyle(2, 16777215, 100);
var q = 0;
var c = r1;
while (c <= (r1 + 270)) {
var tx = (Math.cos(((c + 270) / 180) * Math.PI) * q);
var ty = (Math.sin(((c + 270) / 180) * Math.PI) * q);
if (c == r1) {
_parent[n].moveTo(30 + tx, 30 + ty);
} else {
_parent[n].lineTo(30 + tx, 30 + ty);
}
q++;
c = c + 11.25;
}
var n = "l9";
_parent.createEmptyMovieClip(n, 8);
_parent[n].lineStyle(2, 16777215, 100);
var c = 0;
while (c <= 360) {
var tx = (Math.cos((c / 180) * Math.PI) * 25);
var ty = (Math.sin((c / 180) * Math.PI) * 25);
if (c == 0) {
_parent[n].moveTo(30 + tx, 30 + ty);
} else {
_parent[n].lineTo(30 + tx, 30 + ty);
}
c = c + 11.25;
}
var n = "l10";
_parent.createEmptyMovieClip(n, 9);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(70, 0);
_parent[n].lineTo(70, 100);
var c = 0;
while (c <= 20) {
if (this["p1x" + c] > 0) {
this["p1xm" + c] = this["p1xm" + c] - 0.5;
} else {
this["p1xm" + c] = this["p1xm" + c] + 0.5;
}
this["p1x" + c] = this["p1x" + c] + this["p1xm" + c];
c++;
}
var c = 0;
while (c <= 20) {
_parent[n].lineTo(70 + this["p1x" + c], 100 + (c * 10));
c++;
}
_parent[n].lineTo(70, 300);
_parent[n].lineTo(70, 350);
_parent[n].lineTo(0, 350);
var n = "l11";
_parent.createEmptyMovieClip(n, 10);
_parent[n].lineStyle(2, 16777215, 100);
_parent[n].moveTo(70, 75);
_parent[n].lineTo(40, 75);
_parent[n].lineTo(40, 100);
var c = 0;
while (c <= 20) {
_parent[n].lineTo(40 + (-this["p1x" + c]), 100 + (c * 10));
c++;
}
_parent[n].lineTo(40, 300);
_parent[n].lineTo(40, 350);
}
Symbol 85 MovieClip Frame 1
function hitbut() {
r = false;
if (!sb.hitTest(_parent._xmouse, _parent._ymouse, true)) {
if (!ab.hitTest(_parent._xmouse, _parent._ymouse, true)) {
if (!mb.hitTest(_parent._xmouse, _parent._ymouse, true)) {
if (!gb.hitTest(_parent._xmouse, _parent._ymouse, true)) {
if (!db.hitTest(_parent._xmouse, _parent._ymouse, true)) {
if (aoe.hitTest(_parent._xmouse, _parent._ymouse, true)) {
r = true;
}
}
}
}
}
}
return(r);
}
var dots = 0;
var tool = 0;
Instance of Symbol 68 MovieClip "sb" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
if (_root.fade._currentframe == 21) {
_root.snap = 0;
this.gotoAndStop(1);
}
}
on (release) {
_root.mu.but();
if (_root.snap == 0) {
this.gotoAndStop(2);
_root.snap = 1;
} else {
this.gotoAndStop(1);
_root.snap = 0;
}
}
Instance of Symbol 72 MovieClip "sd0" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
px = _parent._xmouse;
py = _parent._ymouse;
if (px < 0) {
px = 0;
} else if (px > 250) {
px = 250;
}
if (py < 0) {
py = 0;
} else if (py > 300) {
py = 300;
}
if (md == 1) {
if (_root.snap == 1) {
tpx = px / 25;
px = Math.round(tpx) * 25;
tpy = py / 25;
py = Math.round(tpy) * 25;
}
_x = px;
_y = py;
}
}
on (press) {
md = 1;
}
onClipEvent (mouseUp) {
md = 0;
}
Instance of Symbol 72 MovieClip "sd2" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
px = _parent._xmouse;
py = _parent._ymouse;
if (px < 0) {
px = 0;
} else if (px > 250) {
px = 250;
}
if (py < 0) {
py = 0;
} else if (py > 300) {
py = 300;
}
if (md == 1) {
if (_root.snap == 1) {
tpx = px / 25;
px = Math.round(tpx) * 25;
tpy = py / 25;
py = Math.round(tpy) * 25;
}
_x = px;
_y = py;
}
}
on (press) {
md = 1;
}
onClipEvent (mouseUp) {
md = 0;
}
Instance of Symbol 72 MovieClip "sd1" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
px = _parent._xmouse;
py = _parent._ymouse;
if (px < 0) {
px = 0;
} else if (px > 250) {
px = 250;
}
if (py < 0) {
py = 0;
} else if (py > 300) {
py = 300;
}
if (md == 1) {
if (_root.snap == 1) {
tpx = px / 25;
px = Math.round(tpx) * 25;
tpy = py / 25;
py = Math.round(tpy) * 25;
}
_x = px;
_y = py;
}
}
on (press) {
md = 1;
}
onClipEvent (mouseUp) {
md = 0;
}
Instance of Symbol 74 MovieClip "gb" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
var c = 0;
while (c < 400) {
var n = ("fx" + c);
_parent.fx.duplicateMovieClip(n, _parent.getNextHighestDepth());
_parent[n]._y = c - 75;
c = c + (20 + random(50));
}
}
onClipEvent (enterFrame) {
_parent.createEmptyMovieClip("con", 0);
_parent.con.lineStyle(5, 16777215, 100);
_parent.con.moveTo(_parent.sd0._x, _parent.sd0._y);
_parent.con.lineTo(_parent.sd1._x, _parent.sd1._y);
_parent.con.lineTo(_parent.sd2._x, _parent.sd2._y);
var c = 0;
while (c < _parent.dots) {
_parent.con.lineTo(_parent["d" + c]._x, _parent["d" + c]._y);
c++;
}
_parent.con.lineTo(_parent.sd0._x, _parent.sd0._y);
}
onClipEvent (mouseDown) {
if (_parent.tool == 1) {
if (_parent.hitbut() == true) {
var n = ("d" + _parent.dots);
_parent.dot.duplicateMovieClip(n, _parent.getNextHighestDepth());
_parent[n]._x = _parent._xmouse;
_parent[n]._y = _parent._ymouse;
_parent[n].id = _parent.dots;
_parent.dots++;
}
}
}
on (release) {
if (_root.fade._currentframe == 21) {
_root.mu.but();
_root.mu.fadeout();
var s = 8;
_root.plr.x0 = (_parent.sd0._x - 125) / s;
_root.plr.y0 = (_parent.sd0._y - 175) / s;
_root.plr.x1 = (_parent.sd1._x - 125) / s;
_root.plr.y1 = (_parent.sd1._y - 175) / s;
_root.plr.x2 = (_parent.sd2._x - 125) / s;
_root.plr.y2 = (_parent.sd2._y - 175) / s;
var c = 0;
while (c < _parent.dots) {
var q = (c + 3);
_root.plr["x" + q] = (_parent["d" + c]._x - 125) / s;
_root.plr["y" + q] = (_parent["d" + c]._y - 175) / s;
c++;
}
_root.plr["x" + (_parent.dots + 3)] = (_parent.sd0._x - 125) / s;
_root.plr["y" + (_parent.dots + 3)] = (_parent.sd0._y - 175) / s;
_root.plr.dots = _parent.dots + 4;
_root.fade.play();
}
}
Instance of Symbol 72 MovieClip "dot" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
if (_root.snap == 1) {
tpx = _x / 25;
_x = (Math.round(tpx) * 25);
tpy = _y / 25;
_y = (Math.round(tpy) * 25);
}
}
onClipEvent (enterFrame) {
if (_name != "dot") {
px = _parent._xmouse;
py = _parent._ymouse;
if (px < 0) {
px = 0;
} else if (px > 250) {
px = 250;
}
if (py < 0) {
py = 0;
} else if (py > 300) {
py = 300;
}
if (_root.snap == 1) {
tpx = px / 25;
px = Math.round(tpx) * 25;
tpy = py / 25;
py = Math.round(tpy) * 25;
}
if (md == 1) {
_x = px;
_y = py;
}
}
}
on (press) {
if (_parent.tool != 2) {
md = 1;
}
}
on (release) {
if (_parent.tool == 2) {
var c = (id + 1);
while (c < _parent.dots) {
_parent["d" + c].id--;
_parent["d" + c]._name = "d" + _parent["d" + c].id;
c++;
}
_parent.dots--;
this.removeMovieClip();
}
}
onClipEvent (mouseUp) {
md = 0;
}
Instance of Symbol 77 MovieClip "db" in Symbol 85 MovieClip Frame 1
on (release) {
if (_root.fade._currentframe == 21) {
_root.mu.but();
if (_parent.tool != 2) {
_parent.tool = 2;
} else {
_parent.tool = 0;
}
}
}
onClipEvent (enterFrame) {
if (_parent.tool == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 79 MovieClip "ab" in Symbol 85 MovieClip Frame 1
on (release) {
if (_root.fade._currentframe == 21) {
_root.mu.but();
if (_parent.tool != 1) {
_parent.tool = 1;
} else {
_parent.tool = 0;
}
}
}
onClipEvent (enterFrame) {
if (_parent.tool == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 81 MovieClip "mb" in Symbol 85 MovieClip Frame 1
on (release) {
if (_root.fade._currentframe == 21) {
_root.mu.but();
_parent.tool = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.tool == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 96 MovieClip Frame 1
function reset() {
var _local3 = "";
this.cor110.removeMovieClip();
this.cor210.removeMovieClip();
var _local2 = 10;
while (_local2 >= 0) {
_local3 = "cor1" + _local2;
this[_local3].id++;
_local3 = "cor2" + _local2;
this[_local3].id++;
_local2--;
}
_local2 = 10;
while (_local2 >= 0) {
_local3 = "cor1" + _local2;
this[_local3]._name = "cor1" + this[_local3].id;
_local3 = "cor2" + _local2;
this[_local3]._name = "cor2" + this[_local3].id;
_local2--;
}
_local3 = "cor11";
this.coord.duplicateMovieClip(_local3, this.getNextHighestDepth());
this[_local3]._x = 20 + random(130);
this[_local3]._y = -50;
this[_local3].id = 1;
_local3 = "cor21";
this.coord.duplicateMovieClip(_local3, this.getNextHighestDepth());
this[_local3]._x = 530 - random(130);
this[_local3]._y = -50;
this[_local3].id = 1;
}
Instance of Symbol 1 MovieClip "coord" in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "coord") {
_y = (_y + 1);
}
}
Instance of Symbol 83 MovieClip "script" in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
var c = 0;
while (c < 11) {
var n = ("cor1" + c);
_parent.coord.duplicateMovieClip(n, _parent.getNextHighestDepth());
_parent[n]._x = 20 + random(130);
_parent[n]._y = -100 + (c * 50);
_parent[n].id = c;
var n = ("cor2" + c);
_parent.coord.duplicateMovieClip(n, _parent.getNextHighestDepth());
_parent[n]._x = 530 - random(130);
_parent[n]._y = -100 + (c * 50);
_parent[n].id = c;
c++;
}
}
onClipEvent (enterFrame) {
_parent.createEmptyMovieClip("q1", 0);
_parent.q1.lineStyle(2, 16777215, 0);
_parent.q1.beginFill(16777215, 100);
_parent.q1.moveTo(-10, -10);
var c = 0;
while (c < 11) {
_parent.q1.lineTo(_parent["cor1" + c]._x, _parent["cor1" + c]._y);
c++;
}
_parent.q1.lineTo(_parent.cor110._x, 410);
_parent.q1.lineTo(0, 410);
_parent.q1.lineTo(-10, -10);
_parent.q1.endFill();
_parent.createEmptyMovieClip("q2", 1);
_parent.q2.lineStyle(2, 16777215, 0);
_parent.q2.beginFill(16777215, 100);
_parent.q2.moveTo(560, -10);
var c = 1;
while (c < 11) {
_parent.q2.lineTo(_parent["cor2" + c]._x, _parent["cor2" + c]._y);
c++;
}
_parent.q2.lineTo(_parent.cor210._x, 410);
_parent.q2.lineTo(560, 410);
_parent.q2.lineTo(560, -10);
_parent.q2.endFill();
if (_parent.cor18._y >= 350) {
_parent.reset();
}
}
Symbol 110 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip "hpm" in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
this.createEmptyMovieClip("q1", 0);
this.q1.lineStyle(2, 16777215, 100);
this.q1.beginFill(16777215, 50);
var s = 0;
var c = 0;
while (c <= 360) {
var xp = (Math.cos((c / 180) * Math.PI) * 25);
var yp = (Math.sin((c / 180) * Math.PI) * 25);
if (((yp + 25) * 2) < _root.hp) {
if (s == 0) {
this.q1.moveTo(30 + xp, 30 + yp);
s = 1;
} else {
this.q1.lineTo(30 + xp, 30 + yp);
}
}
c = c + 11.25;
}
this.q1.endFill();
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();