Frame 1
var allowed_sites = new Array("www.mindchamber.net", "www.mindchamber.com", "www.ungrounded.net", "www.glaielgames.com", "mindchamber.net", "mindchamber.com", "ungrounded.net", "glaielgames.com", "uploads.ungrounded.net", "www.uploads.ungrounded.net");
hosting_site = _root._url.split("/");
hosting_domain = hosting_site[2];
legal_site = false;
for (i in allowed_sites) {
if (hosting_domain == allowed_sites[i]) {
legal_site = true;
}
}
if (legal_site != true) {
pp == random(2);
((pp == 1) ? (getURL ("http://www.mindchamber.net", "_self")) : null);
((pp == 0) ? (getURL ("http://www.glaielgames.com", "_self")) : null);
}
Instance of Symbol 8 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
colorr = 16777215 /* 0xFFFFFF */;
}
Frame 2
stop();
Instance of Symbol 13 MovieClip in Frame 2
on (release) {
getURL ("http://www.mindchamber.net", "_blank");
}
Instance of Symbol 16 MovieClip in Frame 2
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Instance of Symbol 19 MovieClip in Frame 2
on (release) {
getURL ("http://www.glaielgames.com", "_blank");
}
Frame 3
function generate() {
tanknmbr = 0;
jetnmbr = 0;
helinmbr = 0;
soldnmbr = 0;
if ((lvl % 10) != 0) {
helinmbr = 5 + ((lvl - 1) * 2);
soldnmbr = 5 + ((lvl - 1) * 2);
if (lvl > 10) {
tanknmbr = Math.round(5 + ((lvl - 1) * 1.7));
helinmbr = Math.round(5 + ((lvl - 1) * 1.7));
soldnmbr = Math.round(5 + ((lvl - 1) * 1.7));
}
if (lvl >= 15) {
tanknmbr = Math.round(5 + ((lvl - 1) * 1.5));
jetnmbr = Math.round(5 + ((lvl - 1) * 1.5));
helinmbr = Math.round(5 + ((lvl - 1) * 1.5));
soldnmbr = Math.round(5 + ((lvl - 1) * 1.5));
}
freq = 130 - lvl;
((freq < 50) ? ((freq = 50)) : null);
bosslvl = false;
} else {
bosslvl = true;
mus2.fade = -1;
mus1.bossmusic.start(0, 65535);
mus1.bossmusic.setVolume(0);
mus1.fade = 1;
}
if (((lvl - 1) % 10) == 0) {
mus1.fade = -1;
mus2.mainmusic.start(0, 65535);
mus2.mainmusic.setVolume(0);
mus2.fade = 1;
}
}
power = 10;
spd = 1;
maxhspeed = 7;
lvl = 1;
weight = 1;
shieldv = 1;
life = 100;
maxlife = 100;
shieldspd = 5;
triple = false;
money = 0;
score = 0;
overshield = 0;
Stage.showMenu = false;
mus1.bossmusic = new Sound(mus1);
mus1.bossmusic.attachSound("hive");
mus2.mainmusic = new Sound(mus2);
mus2.mainmusic.attachSound("edgen");
mus2.mainmusic.start(0, 65535);
mus1.onEnterFrame = function () {
if (this.fade == undefined) {
this.fade = 0;
}
if (this.fade != 0) {
this.bossmusic.setVolume((this.fade * 2) + this.bossmusic.getVolume());
((this.bossmusic.getVolume() > 100) ? (this.bossmusic.setVolume(100)(this.fade = 0)) : null);
((this.bossmusic.getVolume() < 0) ? (this.bossmusic.setVolume(0)(this.fade = 0)this.bossmusic.stop()) : null);
}
};
mus2.onEnterFrame = function () {
if (this.fade == undefined) {
this.fade = 0;
}
if (this.fade != 0) {
this.mainmusic.setVolume((this.fade * 2) + this.mainmusic.getVolume());
((this.mainmusic.getVolume() > 100) ? (this.mainmusic.setVolume(100)(this.fade = 0)) : null);
((this.mainmusic.getVolume() < 0) ? (this.mainmusic.setVolume(0)(this.fade = 0)this.mainmusic.stop()) : null);
}
};
generate();
Instance of Symbol 35 MovieClip "mus2" in Frame 3
on (keyPress "q") {
q = _root._quality;
((q == "LOW") ? ((_root._quality = "HIGH")) : null);
((q == "MEDIUM") ? ((_root._quality = "LOW")) : null);
((q == "HIGH") ? ((_root._quality = "MEDIUM")) : null);
}
Frame 4
function beesting() {
if (_root.shield.hitTest(350, 300, true)) {
duplicateMovieClip (sprk, "spk" + i, i);
_root["spk" + i]._x = 350;
_root["spk" + i]._y = 300;
i++;
} else {
_root.life = _root.life - 5;
_root.turretbase.play();
}
}
function beecannon() {
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = -90;
_root["m2" + i]._x = boss._x - 95;
_root["m2" + i]._y = boss._y;
i++;
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = -90;
_root["m2" + i]._x = boss._x - 70;
_root["m2" + i]._y = boss._y + 50;
i++;
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = -90;
_root["m2" + i]._x = boss._x - 60;
_root["m2" + i]._y = boss._y + 100;
i++;
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = 90;
_root["m2" + i]._x = boss._x + 95;
_root["m2" + i]._y = boss._y;
i++;
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = 90;
_root["m2" + i]._x = boss._x + 70;
_root["m2" + i]._y = boss._y + 50;
i++;
duplicateMovieClip (mis2, "m2" + i, i);
_root["m2" + i]._rotation = 90;
_root["m2" + i]._x = boss._x + 60;
_root["m2" + i]._y = boss._y + 100;
i++;
}
function beefire() {
duplicateMovieClip (stinger, "m2" + i, i);
_root["m2" + i]._rotation = 180;
_root["m2" + i]._x = boss._x;
_root["m2" + i]._y = boss._y + 150;
i++;
}
function beeslime() {
duplicateMovieClip (slimeball, "m2" + i, i);
_root["m2" + i]._x = boss._x;
_root["m2" + i]._y = boss._y - 30;
i++;
}
var matrix = new Array();
matrix = matrix.concat([Math.random(), Math.random(), Math.random(), 0, 1]);
matrix = matrix.concat([Math.random(), Math.random(), Math.random(), 0, 1]);
matrix = matrix.concat([Math.random(), Math.random(), Math.random(), 0, 1]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
stop();
win = false;
bosstimer = 0;
(bosslvl ? (duplicateMovieClip (bee, "boss", 1)) : null);
_root.onEnterFrame = function () {
pp = random(100);
((pp == 0) ? ((wind = (Math.random() * 2) - 1)) : null);
if (helinmbr > 0) {
dp = random(freq);
((dp == 0) ? (duplicateMovieClip (mc.heli, "h" + i, i)undefinedhelinmbr--) : null);
i++;
}
if (tanknmbr > 0) {
dp = random(freq);
((dp == 0) ? (duplicateMovieClip (mc.tank, "t" + i, i)undefinedtanknmbr--) : null);
i++;
}
if (jetnmbr > 0) {
dp = random(freq);
((dp == 0) ? (duplicateMovieClip (mc.jet, "j" + i, i)undefinedjetnmbr--) : null);
i++;
}
if (soldnmbr > 0) {
dp = random(freq);
((dp == 0) ? (duplicateMovieClip (mc.sold, "p" + i, i)undefinedsoldnmbr--) : null);
i++;
}
if ((!bosslvl) && ((((helinmbr + tanknmbr) + jetnmbr) + soldnmbr) <= 0)) {
win = true;
for (omg in mc) {
if (((mc[omg].id == "t") || (mc[omg].id == "h")) && (mc[omg]._visible == true)) {
win = false;
break;
}
}
}
if (win || (bosstimer >= 150)) {
play();
delete _root.onEnterFrame;
}
if (life <= 0) {
gotoAndPlay ("over");
delete _root.onEnterFrame;
}
};
function fire() {
duplicateMovieClip (mc.mis, "m" + i, i);
mc["m" + i].xspeed = (force + 5) * Math.sin(tur._rotation * (Math.PI/180));
mc["m" + i].yspeed = (-(force + 5)) * Math.cos(tur._rotation * (Math.PI/180));
mc["m" + i]._x = tur._x + (180 * Math.sin(tur._rotation * (Math.PI/180)));
mc["m" + i]._y = tur._y - (180 * Math.cos(tur._rotation * (Math.PI/180)));
mc["m" + i]._rotation = tur._rotation;
i++;
if (triple) {
duplicateMovieClip (mc.mis, "m" + i, i);
mc["m" + i].xspeed = (force + 5) * Math.sin((tur._rotation - 10) * (Math.PI/180));
mc["m" + i].yspeed = (-(force + 5)) * Math.cos((tur._rotation - 10) * (Math.PI/180));
mc["m" + i]._x = tur._x + (180 * Math.sin((tur._rotation - 3) * (Math.PI/180)));
mc["m" + i]._y = tur._y - (180 * Math.cos((tur._rotation - 3) * (Math.PI/180)));
mc["m" + i]._rotation = tur._rotation - 10;
i++;
duplicateMovieClip (mc.mis, "m" + i, i);
mc["m" + i].xspeed = (force + 5) * Math.sin((tur._rotation + 10) * (Math.PI/180));
mc["m" + i].yspeed = (-(force + 5)) * Math.cos((tur._rotation + 10) * (Math.PI/180));
mc["m" + i]._x = tur._x + (180 * Math.sin((tur._rotation + 3) * (Math.PI/180)));
mc["m" + i]._y = tur._y - (180 * Math.cos((tur._rotation + 3) * (Math.PI/180)));
mc["m" + i]._rotation = tur._rotation + 10;
i++;
}
force = 0;
}
function homing(tgt) {
duplicateMovieClip (mis2, "m2" + i, i);
((tgt._xscale > 0) ? ((r = -90)) : ((r = 90)));
_root["m2" + i]._rotation = r;
_root["m2" + i]._x = tgt._x;
_root["m2" + i]._y = tgt._y;
i++;
}
function bomb(tgt) {
duplicateMovieClip (bom, "bm" + i, i);
_root["bm" + i]._x = tgt._x;
_root["bm" + i]._y = tgt._y + 40;
i++;
}
function scorebox(tgt, combo) {
duplicateMovieClip (sbb, "sb" + i, i);
_root["sb" + i]._x = tgt._x;
_root["sb" + i]._y = tgt._y;
_root["sb" + i].score = "$" + tgt.score;
if (combo) {
_root["sb" + i].score = "COMBO! +$" + tgt.score;
} else {
_root["sb" + i].score = "+$" + tgt.score;
}
money = money + tgt.score;
score = score + tgt.score;
i++;
}
function tankfire(tgt) {
duplicateMovieClip (mis3, "m3" + i, i);
if (tgt._xscale > 0) {
_root["m3" + i]._x = tgt._x - 95;
_root["m3" + i]._y = tgt._y - 40;
_root["m3" + i].xspeed = -8;
}
if (tgt._xscale < 0) {
_root["m3" + i]._x = tgt._x + 95;
_root["m3" + i]._y = tgt._y - 40;
_root["m3" + i]._xscale = _root["m3" + i]._xscale * -1;
_root["m3" + i].xspeed = 8;
}
i++;
}
function peoplefire(tgt) {
duplicateMovieClip (mis3, "m3" + i, i);
if (tgt._xscale > 0) {
_root["m3" + i]._x = tgt._x - 50;
_root["m3" + i]._y = tgt._y - 20;
_root["m3" + i].xspeed = -8;
}
if (tgt._xscale < 0) {
_root["m3" + i]._x = tgt._x + 50;
_root["m3" + i]._y = tgt._y - 20;
_root["m3" + i]._xscale = _root["m3" + i]._xscale * -1;
_root["m3" + i].xspeed = 8;
}
i++;
}
function drawtrail(x1, y1, x2, y2) {
tg = trail.getNextHighestDepth();
duplicateMovieClip (trail.cc, "l" + tg, tg);
trail["l" + tg]._x = x1;
trail["l" + tg]._y = y1;
trail["l" + tg]._height = Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))) + 0.1;
trail["l" + tg]._rotation = (Math.atan2(y1 - y2, x1 - x2) / (Math.PI/180)) - 90;
trail["l" + tg].onEnterFrame = function () {
this._alpha = this._alpha - 5;
this._xscale = this._xscale - 5;
((this._alpha <= 0) ? (removeMovieClip(this)) : null);
};
}
i = 10;
force = 0;
i2 = 10;
wind = (Math.random() * 2) - 1;
nmbr = 0;
createEmptyMovieClip("trail", 2);
trail.createEmptyMovieClip("cc", 4);
mc.swapDepths(3);
trail.cc.beginFill(16777215, 100);
trail.cc.moveTo(-5, -10);
trail.cc.lineTo(-4.5, 0);
trail.cc.lineTo(4.5, 0);
trail.cc.lineTo(5, -10);
trail.cc.lineTo(-5, -10);
trail.cc.endFill();
trail.cc._x = 1000;
function hit(tgt) {
if (tgt.id == "h") {
for (var _local3 in mc) {
if (((mc[_local3].bx.hitTest(tgt.bx) && (mc[_local3].id == "h")) && (mc[_local3]._currentframe == 2)) && (tgt._y > mc[_local3]._y)) {
tgt.life = 0;
tgt.score = mc[_local3].score * 2;
mc[_local3].score = mc[_local3].score * 2;
scorebox(tgt, true);
duplicateMovieClip (sprk, "spk" + i, i);
_root["spk" + i]._x = (mc[_local3]._x + tgt._x) / 2;
_root["spk" + i]._y = (mc[_local3]._y + tgt._y) / 2;
i++;
break;
}
if ((mc[_local3].bx.hitTest(tgt.bx) && (mc[_local3].id == "b")) && (mc[_local3]._currentframe == 1)) {
mc[_local3].gotoAndPlay(2);
tgt.life = tgt.life - power;
((tgt.life <= 0) ? (scorebox(tgt, false)) : null);
break;
}
}
}
if (tgt.id == "t") {
for (var _local3 in mc) {
if ((mc[_local3].bx.hitTest(tgt.bx) && (mc[_local3].id == "t")) && (mc[_local3]._currentframe == 2)) {
tgt.life = 0;
tgt.score = mc[_local3].score * 2;
mc[_local3].score = mc[_local3].score * 2;
scorebox(tgt, true);
break;
}
if ((mc[_local3].bx.hitTest(tgt.bx) && (mc[_local3].id == "h")) && (mc[_local3]._currentframe == 2)) {
tgt.life = 0;
tgt.score = mc[_local3].score * 2;
mc[_local3].score = mc[_local3].score * 2;
scorebox(tgt, true);
break;
}
if ((mc[_local3].bx.hitTest(tgt.bx) && (mc[_local3].id == "b")) && (mc[_local3]._currentframe == 1)) {
mc[_local3].gotoAndPlay(2);
tgt.life = tgt.life - power;
((tgt.life <= 0) ? (scorebox(tgt, false)) : null);
break;
}
}
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop(random(6) + 1);
}
Instance of Symbol 70 MovieClip in Frame 4
onClipEvent (load) {
cf = 1;
xs = _xscale;
}
onClipEvent (enterFrame) {
w = Math.floor(Math.abs(_root.wind * 6));
((_root.wind < 0) ? (_xscale = (-1 * xs)-1 * xs) : (_xscale = xs));
(((w == 0) && (cf != 6)) ? ((cf = 6)gotoAndStop ("s6")) : null);
(((w == 1) && (cf != 5)) ? ((cf = 5)gotoAndPlay ("s5")) : null);
(((w == 2) && (cf != 4)) ? ((cf = 4)gotoAndPlay ("s4")) : null);
(((w == 3) && (cf != 3)) ? ((cf = 3)gotoAndPlay ("s3")) : null);
(((w == 4) && (cf != 2)) ? ((cf = 2)gotoAndPlay ("s2")) : null);
(((w == 5) && (cf != 1)) ? ((cf = 1)gotoAndPlay ("s1")) : null);
}
Instance of Symbol 94 MovieClip "tur" in Frame 4
onClipEvent (load) {
md = false;
}
onClipEvent (enterFrame) {
((tc._currentframe == 1) ? (_rotation = ((Math.atan2(_y - _root._ymouse, _x - _root._xmouse) / (Math.PI/180)) - 90)(Math.atan2(_y - _root._ymouse, _x - _root._xmouse) / (Math.PI/180)) - 90) : null);
((_rotation > 65) ? (_rotation = 6565) : null);
((_rotation < -65) ? (_rotation = -65-65) : null);
if (md) {
_root.force = _root.force + _root.spd;
((_root.force > 40) ? ((_root.force = 40)) : null);
}
}
onClipEvent (mouseDown) {
if ((tc._currentframe == 1) || (tc._currentframe >= 5)) {
md = true;
}
}
onClipEvent (mouseUp) {
if (md) {
tc.gotoAndPlay(2);
md = false;
}
}
Instance of Symbol 239 MovieClip "mc" in Frame 4
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 260 MovieClip "smoke" in Frame 4
onClipEvent (load) {
if (_name == "smoke") {
stop();
}
}
Instance of Symbol 263 MovieClip "mis3" in Frame 4
onClipEvent (load) {
if (_name != "mis3") {
inter = 1;
yspeed = 0;
}
id = "x";
}
onClipEvent (enterFrame) {
if ((_name != "mis3") && (_currentframe == 1)) {
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + 0.2;
((_xscale > 0) ? (_rotation = (_rotation - 1)_rotation - 1) : (_rotation = (_rotation + 1)_rotation + 1));
if (((((400 - _y) * (400 - _y)) + ((350 - _x) * (350 - _x))) < 4900) && (!_root.shield.hitTest(_x, _y, true))) {
this.gotoAndPlay(2);
_root.life = _root.life - 2;
_root.turretbase.play();
_rotation = 0;
}
inter = inter - 1;
if (inter == 0) {
duplicateMovieClip (_root.smoke, "sss" + _root.i, _root.i);
_root["sss" + _root.i]._x = _x - (xspeed * 4);
_root["sss" + _root.i]._y = _y;
_root.i++;
inter = 5;
}
if (_root.shield.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
_rotation = 0;
}
}
}
Instance of Symbol 286 MovieClip "turretbase" in Frame 4
onClipEvent (enterFrame) {
if (_root.turretbasemask._currentframe != _currentframe) {
_root.turretbasemask.gotoAndStop(_currentframe);
}
}
Instance of Symbol 289 MovieClip "bom" in Frame 4
onClipEvent (load) {
if (_name != "bom") {
_rotation = 180;
yspeed = 0;
}
id = "x";
}
onClipEvent (enterFrame) {
if ((_name != "bom") && (_currentframe == 1)) {
_y = (_y + yspeed);
yspeed = yspeed + 1;
if (((((400 - _y) * (400 - _y)) + ((350 - _x) * (350 - _x))) < 4900) && (!_root.shield.hitTest(_x, _y, true))) {
this.gotoAndPlay(2);
_root.life = _root.life - 5;
_root.turretbase.play();
_rotation = 0;
}
if (_root.shield.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
_rotation = 0;
}
}
}
Instance of Symbol 291 MovieClip "mis2" in Frame 4
onClipEvent (load) {
if (_name != "mis2") {
speed = 0;
inter = 5;
time = 200;
}
id = "x";
}
onClipEvent (enterFrame) {
if ((_name != "mis2") && (_currentframe == 1)) {
((speed < _root.maxhspeed) ? ((speed = speed + 0.2)) : null);
xspeed = speed * Math.sin(_rotation * (Math.PI/180));
yspeed = (-speed) * Math.cos(_rotation * (Math.PI/180));
_x = (_x + xspeed);
_y = (_y + yspeed);
(((random(5) == 0) && (time < 150)) ? ((r = (Math.atan2(400 - _y, 350 - _x) / (Math.PI/180)) - 270)) : null);
(((time > 150) && (random(20) == 0)) ? ((r = random(360))) : null);
_root.mis2._rotation = r;
r = _root.mis2._rotation;
if (time < 150) {
if (_x < 350) {
((_rotation < (r - 5)) ? (_rotation = (_rotation - 5)_rotation - 5) : null);
((_rotation > (r + 5)) ? (_rotation = (_rotation - 5)_rotation - 5) : null);
} else {
((_rotation < (r - 5)) ? (_rotation = (_rotation + 5)_rotation + 5) : null);
((_rotation > (r + 5)) ? (_rotation = (_rotation + 5)_rotation + 5) : null);
}
}
if (time > 150) {
((_rotation < (r - 5)) ? (_rotation = (_rotation + 5)_rotation + 5) : null);
((_rotation > (r + 5)) ? (_rotation = (_rotation - 5)_rotation - 5) : null);
}
((time < 15) ? ((speed = speed * 0.9)) : null);
inter = inter - 1;
if (inter == 0) {
duplicateMovieClip (_root.smoke, "sss" + _root.i, _root.i);
_root["sss" + _root.i]._x = _x - (30 * Math.sin(_rotation * (Math.PI/180)));
_root["sss" + _root.i]._y = _y + (30 * Math.cos(_rotation * (Math.PI/180)));
_root.i++;
inter = 5;
}
time = time - 1;
(((time <= 0) || (_y > 400)) ? (play()undefined((_y > 400) ? (_rotation = 00_y = 400400) : null)) : null);
if (((((400 - _y) * (400 - _y)) + ((350 - _x) * (350 - _x))) < 4900) && (!_root.shield.hitTest(_x, _y, true))) {
this.gotoAndPlay(2);
_rotation = (_rotation + 180);
_root.life = _root.life - 2;
_root.turretbase.play();
}
if (_root.shield.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
_rotation = (_rotation + 180);
}
}
}
Instance of Symbol 330 MovieClip "slimeball" in Frame 4
onClipEvent (load) {
if (_name != "slimeball") {
speed = 0;
inter = 5;
time = 200;
xspeed = 0;
yspeed = 5;
grav = 1;
}
id = "x";
}
onClipEvent (enterFrame) {
if ((_name != "slimeball") && (_currentframe == 1)) {
if (_y > 395) {
_y = 370;
yspeed = yspeed * -0.9;
((_x < 350) ? ((xspeed = xspeed + 2)) : ((xspeed = xspeed - 2)));
}
_rotation = ((Math.atan2((_y - _y) + yspeed, (_x - _x) + xspeed) / (Math.PI/180)) - 90);
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (((((400 - _y) * (400 - _y)) + ((350 - _x) * (350 - _x))) < 4900) && (!_root.shield.hitTest(_x, _y, true))) {
this.gotoAndPlay(2);
_root.life = _root.life - 5;
_root.turretbase.play();
_rotation = 0;
}
if (_root.shield.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
_rotation = 0;
}
}
}
Instance of Symbol 442 MovieClip "bee" in Frame 4
onClipEvent (load) {
if (_name != "bee") {
_x = 350;
_y = -200;
stat = 0;
stop();
life = (((100 * _root.lvl) + (((_root.lvl - 10) * _root.lvl) * 10)) + ((_root.lvl - 10) * 100)) - 300;
score = ((life * _root.lvl) * 2) + 10000;
xspeed = 0;
time = 30;
pp = 0;
flashed = 0;
red = {ra:100, rb:100, ga:-100, gb:0, ba:100, bb:0};
norm = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
blah = new Color(this);
xs = _xscale;
timerrr = 0;
} else {
stop();
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "bee") {
switch (stat) {
case 0 :
_y = (_y + 2);
((_y > 150) ? ((stat = 1)) : null);
break;
case 1 :
time--;
((time < 0) ? ((stat = 2)) : null);
break;
case 2 :
if (_currentframe == 1) {
xspeed = 0;
if (((pp == 0) || (pp == 5)) || (pp == 6)) {
gotoAndStop (2);
xspeed = (Math.round(Math.random()) * 20) - 10;
((_x < 150) ? ((xspeed = 10)) : null);
((_x > 550) ? ((xspeed = -10)) : null);
((xspeed > 0) ? (_xscale = (-xs)-xs) : (_xscale = xs));
}
if (pp == 1) {
gotoAndStop (3);
}
if (pp == 2) {
gotoAndStop (4);
}
if ((((pp == 3) || (pp == 7)) && (_x < 400)) && (_x > 300)) {
stat = 3;
time = 10;
yspeed = 4;
}
if (pp == 4) {
gotoAndStop (6);
}
pp = random(140);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
break;
case 3 :
if ((_currentframe == 1) && (time < 0)) {
time = 10;
yspeed = -4;
stat = 4;
}
if (time == 0) {
gotoAndStop (5);
time--;
yspeed = 0;
} else {
time--;
}
_y = (_y + yspeed);
break;
case 4 :
if (time > 0) {
_y = (_y + yspeed);
time--;
} else {
yspeed = 0;
stat = 2;
}
break;
case 5 :
gotoAndStop (8);
timerrr = timerrr + 1;
}
for (var ii in _root.mc) {
if (_root.mc[ii]._currentframe == 1) {
if (_root.mc[ii].bx.hitTest(ani.bx) && (_root.mc[ii].id == "b")) {
_root.mc[ii].play();
life = life - _root.power;
flashed = 1;
if (((_currentframe == 1) && (random(2) == 0)) && (stat != 5)) {
gotoAndStop (7);
}
}
}
}
((((life <= 0) && (_currentframe == 1)) && (stat == 2)) ? ((stat = 5)_root.scorebox(this)) : null);
if (flashed == 3) {
blah.setTransform(norm);
flashed = 0;
}
if (flashed == 2) {
flashed = 3;
}
if (flashed == 1) {
blah.setTransform(red);
flashed = 2;
}
}
}
Instance of Symbol 453 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(999999);
mv = "$" + _root.money;
lv = (_root.life + "/") + _root.maxlife;
}
onClipEvent (enterFrame) {
mv = "$" + _root.money;
lv = (_root.life + "/") + _root.maxlife;
}
Instance of Symbol 457 MovieClip "sbb" in Frame 4
onClipEvent (load) {
if (_name == "sbb") {
stop();
_visible = false;
}
}
Instance of Symbol 474 MovieClip "shield" in Frame 4
onClipEvent (load) {
speed = _root.shieldspd;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
(Key.isDown(65) ? (_rotation = (_rotation - speed)_rotation - speed) : null);
(Key.isDown(68) ? (_rotation = (_rotation + speed)_rotation + speed) : null);
((_rotation > 75) ? (_rotation = 7575) : null);
((_rotation < -75) ? (_rotation = -75-75) : null);
((Key.isDown(32) && (_root.overshield > 0)) ? (play()undefined_rotation = 00) : null);
}
}
Instance of Symbol 286 MovieClip "turretbasemask" in Frame 4
onClipEvent (enterFrame) {
if (_root.turretbase._currentframe != _currentframe) {
gotoAndStop(_root.turretbase._currentframe);
}
}
Instance of Symbol 493 MovieClip in Frame 4
onClipEvent (load) {
_x = 0;
_y = 0;
w = random(12);
((w > 4) ? (_visible = falsefalse) : null);
nmbr = 0;
this.swapDepths(999998);
}
onClipEvent (enterFrame) {
if ((w == 1) || (w == 4)) {
duplicateMovieClip ("rd", "p" + nmbr, nmbr);
nmbr++;
}
if (w == 2) {
duplicateMovieClip ("sf", "p" + nmbr, nmbr);
nmbr++;
}
if (w == 4) {
pp = random(20);
if (pp == 0) {
duplicateMovieClip ("lg", "p" + nmbr, nmbr);
nmbr++;
tbx.play();
}
}
((nmbr > 10000) ? ((nmbr = 0)) : null);
}
Instance of Symbol 494 MovieClip "stinger" in Frame 4
onClipEvent (load) {
if (_name != "stinger") {
speed = 5;
inter = 1;
time = 150;
}
id = "x";
}
onClipEvent (enterFrame) {
if ((_name != "stinger") && (_currentframe == 1)) {
((speed < 20) ? ((speed = speed + 1)) : null);
xspeed = speed * Math.sin(_rotation * (Math.PI/180));
yspeed = (-speed) * Math.cos(_rotation * (Math.PI/180));
_x = (_x + xspeed);
_y = (_y + yspeed);
(((random(5) == 0) && (time < 150)) ? ((r = (Math.atan2(330 - _y, 350 - _x) / (Math.PI/180)) - 270)) : null);
(((time > 150) && (random(20) == 0)) ? ((r = random(360))) : null);
_root.mis2._rotation = r;
r = _root.mis2._rotation;
if (time < 150) {
if (_x < 350) {
((_rotation < (r - 12)) ? (_rotation = (_rotation - 12)_rotation - 12) : null);
((_rotation > (r + 12)) ? (_rotation = (_rotation - 12)_rotation - 12) : null);
} else {
((_rotation < (r - 12)) ? (_rotation = (_rotation + 12)_rotation + 12) : null);
((_rotation > (r + 12)) ? (_rotation = (_rotation + 12)_rotation + 12) : null);
}
}
if (time > 150) {
((_rotation < (r - 5)) ? (_rotation = (_rotation + 5)_rotation + 5) : null);
((_rotation > (r + 5)) ? (_rotation = (_rotation - 5)_rotation - 5) : null);
}
((time < 15) ? ((speed = speed * 0.9)) : null);
inter = inter - 1;
if (inter == 0) {
duplicateMovieClip (_root.smoke, "sss" + _root.i, _root.i);
_root["sss" + _root.i]._x = _x - (30 * Math.sin(_rotation * (Math.PI/180)));
_root["sss" + _root.i]._y = _y + (30 * Math.cos(_rotation * (Math.PI/180)));
_root.i++;
inter = 5;
}
time = time - 1;
(((time <= 0) || (_y > 400)) ? (play()undefined((_y > 400) ? (_rotation = 00_y = 400400) : null)) : null);
if (((((400 - _y) * (400 - _y)) + ((350 - _x) * (350 - _x))) < 4900) && (!_root.shield.hitTest(_x, _y, true))) {
this.gotoAndPlay(2);
_root.life = _root.life - 3;
_root.turretbase.play();
_rotation = 0;
}
if (_root.shield.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
_rotation = 0;
}
}
}
Frame 5
for (i in _root) {
removeMovieClip(_root[i]);
}
Frame 6
stop();
lvl++;
maxhspeed = maxhspeed + 0.2;
desc2 = ("Prepare for wave " + lvl) + ".";
desc = "";
ch = new Sound(this);
ch.attachSound("cash");
Instance of Symbol 509 MovieClip in Frame 6
onClipEvent (load) {
if (_root.overshield == 3) {
e = false;
} else {
((_root.overshield == 0) ? ((price = 100)) : null);
((_root.overshield == 1) ? ((price = 1000)) : null);
((_root.overshield == 2) ? ((price = 5000)) : null);
e = true;
}
this.gotoAndStop(_root.overshield + 1);
}
onClipEvent (enterFrame) {
if (_root.overshield == 3) {
e = false;
} else {
((_root.overshield == 0) ? ((price = 100)) : null);
((_root.overshield == 1) ? ((price = 1000)) : null);
((_root.overshield == 2) ? ((price = 5000)) : null);
e = true;
}
this.gotoAndStop(_root.overshield + 1);
}
on (rollOver) {
if (e) {
if (price == 100) {
_root.desc = ("Overshield. Cost: " + price) + ". A 1-time use shield, press space to use.";
}
if ((price == 1000) || (price == 5000)) {
_root.desc = ("Overshield Upgrade. Cost: " + price) + ". Increases Shield Time.";
}
} else {
_root.desc = "Overshield Maxed Out";
}
}
on (release) {
if (e) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Overshield Bought!";
_root.desc = "";
_root.ch.start();
_root.overshield = _root.overshield + 1;
((_root.overshield > 1) ? ((_root.desc2 = "Overshield Upgraded!")) : null);
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
}
Instance of Symbol 515 MovieClip in Frame 6
onClipEvent (load) {
if (_root.shieldv == 5) {
e = false;
gotoAndStop (2);
} else {
((_root.shieldv == 1) ? ((price = 5000)) : null);
((_root.shieldv == 2) ? ((price = 30000)) : null);
((_root.shieldv == 3) ? ((price = 150000)) : null);
((_root.shieldv == 4) ? ((price = 500000)) : null);
e = true;
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.shieldv == 5) {
e = false;
gotoAndStop (2);
} else {
((_root.shieldv == 1) ? ((price = 5000)) : null);
((_root.shieldv == 2) ? ((price = 30000)) : null);
((_root.shieldv == 3) ? ((price = 150000)) : null);
((_root.shieldv == 4) ? ((price = 500000)) : null);
e = true;
gotoAndStop (1);
}
}
on (rollOver) {
if (e) {
_root.desc = ("Shield Size-Up. Cost: " + price) + ".";
} else {
_root.desc = "Shield Size at Max";
}
}
on (release) {
if (e) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Shield Size Up!";
_root.desc = "";
_root.ch.start();
_root.shieldv = _root.shieldv + 1;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
}
Instance of Symbol 520 MovieClip in Frame 6
onClipEvent (load) {
if (_root.shieldspd == 17) {
e = false;
gotoAndStop (2);
} else {
((_root.shieldspd == 5) ? ((price = 5000)) : null);
((_root.shieldspd == 8) ? ((price = 25000)) : null);
((_root.shieldspd == 11) ? ((price = 75000)) : null);
((_root.shieldspd == 14) ? ((price = 250000)) : null);
e = true;
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.shieldspd == 17) {
e = false;
gotoAndStop (2);
} else {
((_root.shieldspd == 5) ? ((price = 5000)) : null);
((_root.shieldspd == 8) ? ((price = 25000)) : null);
((_root.shieldspd == 11) ? ((price = 75000)) : null);
((_root.shieldspd == 14) ? ((price = 250000)) : null);
e = true;
gotoAndStop (1);
}
}
on (rollOver) {
if (e) {
_root.desc = ("Shield Speed-Up. Cost: " + price) + ".";
} else {
_root.desc = "Shield Speed at Max";
}
}
on (release) {
if (e) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Shield Speed Up!";
_root.desc = "";
_root.ch.start();
_root.shieldspd = _root.shieldspd + 3;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
}
Instance of Symbol 524 MovieClip in Frame 6
onClipEvent (load) {
price = (10000 + ((_root.maxlife - 100) * 200)) + (((_root.maxlife > 1000) * 100) * _root.maxlife);
}
onClipEvent (enterFrame) {
price = (10000 + ((_root.maxlife - 100) * 200)) + (((_root.maxlife > 1000) * 100) * _root.maxlife);
}
on (rollOver) {
_root.desc = ("Base Max Life Up. Cost: " + price) + ". ";
}
on (release) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Base Max Life Increased!";
_root.desc = "";
_root.ch.start();
_root.life = _root.life + 100;
_root.maxlife = _root.maxlife + 100;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
Instance of Symbol 527 MovieClip in Frame 6
onClipEvent (load) {
if (_root.life == _root.maxlife) {
e = false;
gotoAndStop (2);
} else {
price = (_root.maxlife - _root.life) * 50;
((price > _root.money) ? ((price = _root.money)) : null);
e = true;
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.life == _root.maxlife) {
e = false;
gotoAndStop (2);
} else {
price = (_root.maxlife - _root.life) * 50;
((price > _root.money) ? ((price = _root.money)) : null);
e = true;
gotoAndStop (1);
}
}
on (rollOver) {
if (e) {
_root.desc = ((("Repair " + Math.round(price / 50)) + " life. Cost: ") + price) + ".";
} else {
_root.desc = "Life Full";
}
}
on (release) {
if (e) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Life Healed!";
_root.desc = "";
_root.ch.start();
_root.life = _root.life + Math.round(price / 50);
_root.money = _root.money - price;
((_root.life > _root.maxlife) ? ((_root.life = _root.maxlife)) : null);
} else {
_root.desc2 = "Not enough cash";
}
}
}
Instance of Symbol 532 MovieClip in Frame 6
onClipEvent (load) {
if (_root.triple) {
e = false;
gotoAndStop (2);
} else {
price = 500000 /* 0x07A120 */;
e = true;
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.triple) {
e = false;
gotoAndStop (2);
} else {
price = 500000 /* 0x07A120 */;
e = true;
gotoAndStop (1);
}
}
on (rollOver) {
if (e) {
_root.desc = ("Triple Bullets. Cost: " + price) + ". Permanant Upgrade. Shoot 3 bullets at once.";
} else {
_root.desc = "Already Bought";
}
}
on (release) {
if (e) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Shield Size Up!";
_root.desc = "";
_root.ch.start();
_root.triple = true;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
}
Instance of Symbol 535 MovieClip in Frame 6
onClipEvent (load) {
price = (5000 + ((_root.weight - 1) * 15000)) + (((_root.weight > 10) * 10000) * _root.weight);
}
onClipEvent (enterFrame) {
price = (5000 + ((_root.weight - 1) * 15000)) + (((_root.weight > 10) * 10000) * _root.weight);
}
on (rollOver) {
_root.desc = ("Bullet Weight Up. Cost: " + price) + ". (Decreases wind resistance)";
}
on (release) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Bullet Weight Up!";
_root.desc = "";
_root.ch.start();
_root.weight = _root.weight + 0.3;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
Instance of Symbol 538 MovieClip in Frame 6
onClipEvent (load) {
price = (5000 + (((_root.spd - 1) * 3) * 10000)) + (((_root.spd > 10) * 100000) * _root.spd);
}
onClipEvent (enterFrame) {
price = (5000 + (((_root.spd - 1) * 3) * 10000)) + (((_root.spd > 10) * 100000) * _root.spd);
}
on (rollOver) {
_root.desc = ("Bullet Speed Up. Cost: " + price) + ". (Decreases charge time)";
}
on (release) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Bullet Speed Up!";
_root.desc = "";
_root.ch.start();
_root.spd = _root.spd + 0.2;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
Instance of Symbol 541 MovieClip in Frame 6
onClipEvent (load) {
price = (5000 + ((_root.power - 10) * 5000)) + (((_root.power > 30) * 10000) * _root.power);
}
onClipEvent (enterFrame) {
price = (5000 + ((_root.power - 10) * 5000)) + (((_root.power > 30) * 10000) * _root.power);
}
on (rollOver) {
_root.desc = ("Bullet Power Up. Cost: " + price) + ".";
}
on (release) {
if ((_root.money >= price) && (_root.money > 0)) {
_root.desc2 = "Bullet Power Up!";
_root.desc = "";
_root.ch.start();
_root.power = _root.power + 5;
_root.money = _root.money - price;
} else {
_root.desc2 = "Not enough cash";
}
}
Instance of Symbol 548 MovieClip in Frame 6
onClipEvent (load) {
mv = "$" + _root.money;
lv = (_root.life + "/") + _root.maxlife;
}
onClipEvent (enterFrame) {
mv = "$" + _root.money;
lv = (_root.life + "/") + _root.maxlife;
}
Frame 7
stopAllSounds();
for (i in _root) {
removeMovieClip(_root[i]);
}
Frame 8
stop();
((nam == undefined) ? ((nam = "<Name>")) : null);
_global.sendMCScore = function (MCScoreName, MCScoreValue) {
MCScoreMod_gameid = 204;
MCScoreMod_verify = (MCScoreName + MCScoreValue) + MCScoreMod_gameid;
MCScoreMod_verify = MCScoreMod_verify.md5();
MCScoreMod_MCScoreName = MCScoreName;
MCScoreMod_MCScoreValue = MCScoreValue;
getURL ("http://www.mindchamber.net/scoreboard.php", "_self", "POST");
};
String.prototype.md5 = function () {
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function coreMD5(x) {
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return([_local4, _local3, _local2, _local1]);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 32)) {
_local3 = _local3 + _local4.charAt(((binarray[_local1 >> 5] << (_local1 % 32)) & 63) | ((binarray[_local1 >> 6] >> (32 - (_local1 % 32))) & 63));
_local1 = _local1 + 6;
}
return(_local3);
}
function str2binl(str) {
var _local4 = ((str.length + 8) >> 6) + 1;
var _local2 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 2] = _local2[_local1 >> 2] | ((str.charCodeAt(_local1) & 255) << ((_local1 % 4) * 8));
_local1++;
}
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (128 << ((_local1 % 4) * 8));
_local2[(_local4 * 16) - 2] = str.length * 8;
return(_local2);
}
function strw2binl(str) {
var _local4 = ((str.length + 4) >> 5) + 1;
var _local2 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 1] = _local2[_local1 >> 1] | (str.charCodeAt(_local1) << ((_local1 % 2) * 16));
_local1++;
}
_local2[_local1 >> 1] = _local2[_local1 >> 1] | (128 << ((_local1 % 2) * 16));
_local2[(_local4 * 16) - 2] = str.length * 16;
return(_local2);
}
function hexMD5(str) {
return(binl2hex(coreMD5(str2binl(str))));
}
function hexMD5w(str) {
return(binl2hex(coreMD5(strw2binl(str))));
}
function b64MD5(str) {
return(binl2b64(coreMD5(str2binl(str))));
}
function b64MD5w(str) {
return(binl2b64(coreMD5(strw2binl(str))));
}
function calcMD5(str) {
return(binl2hex(coreMD5(str2binl(str))));
}
return(calcMD5(this));
};
Symbol 8 MovieClip Frame 1
_root.createEmptyMovieClip("l1", 1);
_root.createEmptyMovieClip("l2", 2);
_root.createEmptyMovieClip("l3", 3);
_root.createEmptyMovieClip("l4", 4);
perc = "0%";
p1 = 0;
col = colorr;
aTF = new TextFormat();
aTF.color = col;
txtbox.setTextFormat(aTF);
_root.stop();
_x = 350;
_y = 200;
te.swapDepths(100);
removeMovieClip(te);
onEnterFrame = function () {
den = _root.getBytesTotal();
num = _root.getBytesLoaded();
p1 = (num / den) * 100;
p2 = Math.round(p1);
perc = ("" + p2) + "%";
txtbox.text = perc;
txtbox.setTextFormat(aTF);
_root.l1.clear();
_root.l1.moveTo(10, 200);
_root.l1.lineStyle(2, Number(col), 100);
_root.l1.lineTo(_root._xmouse, _root._ymouse);
_root.l2.clear();
_root.l2.moveTo(10, 200);
_root.l2.lineStyle(15, Number(col), 100);
xd = _root._xmouse - 10;
yd = _root._ymouse - 200;
x = ((xd * p1) / 100) + 10;
y = ((yd * p1) / 100) + 200;
_root.l2.lineTo(x, y);
_root.l3.clear();
_root.l3.moveTo(690, 200);
_root.l3.lineStyle(2, Number(col), 100);
_root.l3.lineTo(_root._xmouse, _root._ymouse);
_root.l4.clear();
_root.l4.moveTo(690, 200);
_root.l4.lineStyle(15, Number(col), 100);
xd = _root._xmouse - 690;
yd = _root._ymouse - 200;
x = ((xd * p1) / 100) + 690;
y = ((yd * p1) / 100) + 200;
_root.l4.lineTo(x, y);
if (p1 >= 100) {
removeMovieClip(_root.l1);
removeMovieClip(_root.l2);
removeMovieClip(_root.l3);
removeMovieClip(_root.l4);
_root.play();
}
};
Symbol 24 Button
on (release) {
play();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 3
gotoAndPlay ("s1");
Symbol 70 MovieClip Frame 10
gotoAndPlay ("s2");
Symbol 70 MovieClip Frame 15
gotoAndPlay ("s3");
Symbol 70 MovieClip Frame 20
gotoAndPlay ("s4");
Symbol 70 MovieClip Frame 25
gotoAndPlay ("s5");
Symbol 70 MovieClip Frame 32
gotoAndPlay ("s6");
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 4
_root.fire();
Symbol 97 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip "bx" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 114 MovieClip Frame 23
removeMovieClip(this);
Instance of Symbol 140 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
Symbol 156 MovieClip Frame 22
removeMovieClip(_parent);
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 116 MovieClip "bx" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 158 MovieClip Frame 2
stop();
Symbol 158 MovieClip Frame 3
stop();
Symbol 170 MovieClip Frame 7
_root.tankfire(_parent._parent);
Symbol 170 MovieClip Frame 35
_parent.gotoAndStop(1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Instance of Symbol 173 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
Symbol 180 MovieClip Frame 21
removeMovieClip(_parent);
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 116 MovieClip "bx" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 181 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 3
stop();
Instance of Symbol 194 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
Symbol 201 MovieClip Frame 22
removeMovieClip(_parent);
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 116 MovieClip "bx" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 203 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 4
_root.peoplefire(_parent._parent);
Symbol 222 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 21
removeMovieClip(_parent);
Symbol 238 MovieClip Frame 1
stop();
stop();
Instance of Symbol 116 MovieClip "bx" in Symbol 238 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 238 MovieClip Frame 3
stop();
stop();
Instance of Symbol 114 MovieClip "mis" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (_name != "mis") {
grav = 1;
}
id = "b";
}
onClipEvent (enterFrame) {
if ((_name != "mis") && (_currentframe == 1)) {
if (grav > 0) {
yspeed = yspeed + grav;
xs = xspeed;
xspeed = xspeed + (_root.wind / _root.weight);
_root.drawtrail(_x, _y, _x + xspeed, _y + yspeed);
_rotation = ((Math.atan2((_y - _y) + yspeed, (_x - _x) + xspeed) / (Math.PI/180)) - 270);
_x = (_x + xspeed);
_y = (_y + yspeed);
}
((_y > 390) ? (_y = 390390gotoAndPlay (2)undefined(xspeed = 0)(yspeed = 0)(grav = 0)_rotation = 00) : null);
}
}
Instance of Symbol 158 MovieClip "heli" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
if (_name != "heli") {
xs = _xscale;
side = random(2);
_y = (random(150) + 50);
((side == 0) ? (_x = -100-100) : (_x = 800800));
((side == 0) ? (_xscale = (-1 * xs)-1 * xs) : null);
xspeed = _xscale / (-13 + (Math.random() * 5));
life = 10 + (Math.floor(_root.lvl / 10) * 5);
yspeed = 0;
score = 100;
} else {
_visible = false;
}
id = "h";
}
onClipEvent (enterFrame) {
if (_name != "heli") {
((this._currentframe == 1) ? (_root.hit(this)) : null);
if (!((life <= 0) && (_currentframe == 1))) {
} else {
(this.gotoAndPlay(2));// not popped
}
((_currentframe != 3) ? (_x = (_x + xspeed)_x + xspeed) : null);
(((_x < -101) || (_x > 801)) ? (removeMovieClip(this)) : null);
if (this._currentframe == 2) {
_y = (_y + yspeed);
yspeed = yspeed + 1;
((_y > 370) ? (this.gotoAndStop(3)_y = 370370(this.filters = [])) : null);
}
pp = 9;
((this._currentframe == 1) ? ((pp = random(200))) : null);
((pp == 0) ? (_root.homing(this)) : null);
}
}
Instance of Symbol 181 MovieClip "tank" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
if (_name != "tank") {
xs = _xscale;
side = random(2);
_y = 355;
((side == 0) ? (_x = -100-100) : (_x = 800800));
((side == 0) ? (_xscale = (-1 * xs)-1 * xs) : null);
xspeed = _xscale / (-25 + (Math.random() * 2));
life = (10 + (Math.floor(_root.lvl / 10) * 5)) * 2;
yspeed = 0;
score = 100;
} else {
_visible = false;
}
id = "t";
}
onClipEvent (enterFrame) {
if (_name != "tank") {
if (((((_x > 525) && (_xscale > 0)) || ((_x < 175) && (_xscale < 0))) && (_x > 0)) && (_x < 700)) {
pp = random(50);
if (pp == 0) {
ani.gotoAndStop(2);
}
}
((this._currentframe == 1) ? (_root.hit(this)) : null);
if (!((life <= 0) && (_currentframe == 1))) {
} else {
(this.gotoAndPlay(2));// not popped
}
((_currentframe != 3) ? (_x = (_x + xspeed)_x + xspeed) : null);
(((_x < -101) || (_x > 801)) ? (removeMovieClip(this)) : null);
if (this._currentframe == 2) {
_y = (_y + yspeed);
yspeed = yspeed + 1;
((_y > 355) ? (this.gotoAndStop(3)_y = 370370(this.filters = [])) : null);
}
}
}
Instance of Symbol 203 MovieClip "jet" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
var matrix = _root.matrix;
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
if (_name != "jet") {
xs = _xscale;
side = random(2);
_y = (random(150) + 50);
((side == 0) ? (_x = -100-100) : (_x = 800800));
((side == 0) ? (_xscale = (-1 * xs)-1 * xs) : null);
xspeed = _xscale / (-6 + (Math.random() * 2));
life = 10 + (Math.floor(_root.lvl / 10) * 5);
yspeed = 0;
pp = 0;
score = 500;
} else {
_visible = false;
}
id = "h";
}
onClipEvent (enterFrame) {
if (_name != "jet") {
((this._currentframe == 1) ? (_root.hit(this)) : null);
if (!((life <= 0) && (_currentframe == 1))) {
} else {
(this.gotoAndPlay(2));// not popped
}
((_currentframe != 3) ? (_x = (_x + xspeed)_x + xspeed) : null);
(((_x < -101) || (_x > 801)) ? (removeMovieClip(this)) : null);
if (this._currentframe == 2) {
_y = (_y + yspeed);
yspeed = yspeed + 1;
((_xscale > 0) ? (_rotation = (_rotation - 3)_rotation - 3) : (_rotation = (_rotation + 3)_rotation + 3));
((_y > 380) ? (this.gotoAndStop(3)_y = 380380_rotation = 00(this.filters = [])) : null);
}
(((((pp == 0) && (_x < 370)) && (_x > 320)) && (this._currentframe == 1)) ? (_root.bomb(this)(pp = 1)) : null);
}
}
Instance of Symbol 238 MovieClip "sold" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (_name != "sold") {
xs = _xscale;
side = random(2);
((side == 0) ? (_x = -100-100) : (_x = 800800));
((side == 0) ? (_xscale = (-1 * xs)-1 * xs) : null);
xspeed = _xscale / (-30 - (Math.random() * 10));
life = 1;
yspeed = 0;
score = 50;
ppp = 0;
} else {
_visible = false;
}
id = "t";
}
onClipEvent (enterFrame) {
if (_name != "sold") {
if (((((_x > 450) && (_xscale > 0)) || ((_x < 250) && (_xscale < 0))) && (_x > 100)) && (_x < 600)) {
pp = random(80);
if (pp == 0) {
ani.gotoAndStop(2);
}
}
if (ppp != 1) {
} else {
(this.gotoAndStop(3));// not popped
}
((this._currentframe == 2) ? ((ppp = 1)) : null);
((this._currentframe == 1) ? (_root.hit(this)) : null);
if (!((life <= 0) && (this._currentframe == 1))) {
} else {
(this.gotoAndStop(2));// not popped
}
(((this._currentframe != 3) && (ani._currentframe == 1)) ? (_x = (_x + xspeed)_x + xspeed) : null);
(((_x < -101) || (_x > 801)) ? (removeMovieClip(this)) : null);
}
}
Symbol 260 MovieClip Frame 32
stop();
removeMovieClip(this);
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 23
removeMovieClip(this);
Symbol 286 MovieClip Frame 1
stop();
Instance of Symbol 274 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(Math.ceil((_root.life / _root.maxlife) * 10));
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.ceil((_root.life / _root.maxlife) * 10));
}
Instance of Symbol 285 MovieClip in Symbol 286 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(Math.ceil((_root.life / _root.maxlife) * 10));
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.ceil((_root.life / _root.maxlife) * 10));
}
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 23
removeMovieClip(this);
Symbol 291 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip "bx" in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 291 MovieClip Frame 23
removeMovieClip(this);
Symbol 310 MovieClip Frame 18
removeMovieClip(_parent);
removeMovieClip(_parent._parent);
Instance of Symbol 310 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
if (_parent._name == "sprk") {
stop();
}
}
Symbol 328 MovieClip Frame 12
removeMovieClip(_parent);
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Instance of Symbol 116 MovieClip "bx" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 116 MovieClip "bx" in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 351 MovieClip Frame 17
_parent._xscale = _parent.xs;
_parent.gotoAndStop(1);
Instance of Symbol 116 MovieClip "bx" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 362 MovieClip Frame 14
_root.beeslime();
Symbol 362 MovieClip Frame 22
_parent.gotoAndStop(1);
Instance of Symbol 116 MovieClip "bx" in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 363 MovieClip Frame 10
_root.beefire();
Symbol 363 MovieClip Frame 15
_parent.gotoAndStop(1);
Instance of Symbol 116 MovieClip "bx" in Symbol 364 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 364 MovieClip Frame 10
_root.beesting();
Symbol 364 MovieClip Frame 16
_parent.gotoAndStop(1);
Instance of Symbol 116 MovieClip "bx" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 372 MovieClip Frame 40
_root.beecannon();
Symbol 372 MovieClip Frame 67
_parent.gotoAndStop(1);
Instance of Symbol 116 MovieClip "bx" in Symbol 374 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 374 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 442 MovieClip Frame 1
stop();
Instance of Symbol 441 MovieClip "death" in Symbol 442 MovieClip Frame 8
onClipEvent (load) {
for (i in this) {
this[i].xspeed = (Math.random() * 20) - 10;
this[i].yspeed = Math.random() * -20;
}
}
onClipEvent (enterFrame) {
for (i in this) {
this[i]._x = this[i]._x + this[i].xspeed;
this[i]._y = this[i]._y + this[i].yspeed;
this[i].yspeed = this[i].yspeed + 1;
this[i]._rotation = this[i]._rotation + this[i].xspeed;
if (this[i]._y > (550 - (this[i]._height / 2))) {
this[i]._y = 550 - (this[i]._height / 2);
this[i].yspeed = this[i].yspeed * -0.8;
this[i].xspeed = this[i].xspeed * 0.8;
((Math.abs(this[i].yspeed) < 0.1) ? ((this[i].yspeed = (this[i].xspeed = 0))) : null);
}
}
_root.bosstimer = _root.bosstimer + 1;
}
Instance of Symbol 445 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_root.force * 2.5);
}
Instance of Symbol 446 MovieClip in Symbol 453 MovieClip Frame 1
/* no clip actions */
Symbol 457 MovieClip Frame 60
removeMovieClip(this);
Instance of Symbol 459 MovieClip in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 464 MovieClip in Symbol 467 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 464 MovieClip in Symbol 467 MovieClip Frame 4
/* no clip actions */
Symbol 474 MovieClip Frame 1
stop();
Instance of Symbol 467 MovieClip "sh" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.shieldv);
}
Symbol 474 MovieClip Frame 2
stop();
Instance of Symbol 473 MovieClip in Symbol 474 MovieClip Frame 2
onClipEvent (load) {
time = 150 * _root.overshield;
this.gotoAndStop(_root.overshield);
_root.turretbasemask._visible = false;
_root.overshield = 0;
}
onClipEvent (enterFrame) {
time = time - 1;
if (time < 0) {
_root.turretbasemask._visible = true;
_parent.play();
}
}
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 4
removeMovieClip(this);
Symbol 484 MovieClip Frame 1
function b(px, py, thi) {
var _local1 = thi - 1;
bolt.lineStyle(thi, 16777215, thi * diven);
var _local6 = px + random(50);
var _local3 = py + random(100);
bolt.moveTo(px, py);
bolt.lineTo(_local6, _local3);
var _local7 = px - random(50);
var _local4 = py + random(100);
bolt.moveTo(px, py);
bolt.lineTo(_local7, _local4);
((_local1 > 0) ? (b(_local6, _local3, _local1)) : null);
((_local1 > 0) ? (b(_local7, _local4, _local1)) : null);
}
createEmptyMovieClip("bolt", 1);
bolt._x = 0;
bolt._y = 0;
thick = 10;
(((siz % 2) != 0) ? ((siz = Math.round(siz))) : null);
((siz > 15) ? ((siz = 15)) : null);
((siz < 0) ? ((siz = 0)) : null);
diven = 100 / siz;
spa.swapDepths(100);
removeMovieClip(spa);
b(0, 0, siz);
Symbol 492 MovieClip Frame 1
stop();
Instance of Symbol 479 MovieClip "rd" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_name != "rd") {
_x = random(700);
_y = 0;
xspeed = 0;
yspeed = 0;
grav = 2;
_rotation = 0;
_alpha = 70;
}
}
onClipEvent (enterFrame) {
if (_name != "rd") {
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + grav;
xspeed = xspeed + _root.wind;
_rotation = (_rotation - _root.wind);
_yscale = (_yscale + 10);
((_x < -10) ? (_x = 710710) : null);
((_x > 710) ? (_x = -10-10) : null);
if (_y > 400) {
_y = 400;
gotoAndPlay (2);
yspeed = 0;
xspeed = 0;
grav = 0;
_yscale = 100;
_rotation = 0;
}
}
}
Instance of Symbol 482 MovieClip "sf" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_name != "sf") {
_x = random(700);
_y = -20;
xspeed = 0;
yspeed = 5;
grav = 2;
time = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "sf") {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed + ((_root.wind + Math.random()) - 0.5);
time = time + 1;
_x = (_x + (2 * Math.sin(time)));
((_x < -10) ? (_x = 710710) : null);
((_x > 710) ? (_x = -10-10) : null);
if (_y > 420) {
_y = 420;
removeMovieClip(this);
}
}
}
Instance of Symbol 484 MovieClip "lg" in Symbol 493 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
siz = 4;
}
onClipEvent (load) {
if (_name != "lg") {
_x = random(700);
_y = 0;
time = 0;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "lg") {
time = time + 1;
((time >= 3) ? (removeMovieClip(this)) : null);
}
}
Instance of Symbol 489 MovieClip "f1" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_parent.w == 3) {
_visible = true;
_x = (random(1400) * -1);
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_visible) {
_x = (_x + _root.wind);
((_x > 0) ? (_x = -1400-1400) : null);
((_x < -1400) ? (_x = 00) : null);
}
}
Instance of Symbol 489 MovieClip "f2" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_parent.w == 3) {
_visible = true;
_x = (random(1400) * -1);
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_visible) {
_x = (_x + (_root.wind * 2));
((_x > 0) ? (_x = -1400-1400) : null);
((_x < -1400) ? (_x = 00) : null);
}
}
Instance of Symbol 492 MovieClip "tbx" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_parent.w == 4) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 501 Button
on (release) {
_root.generate();
_root.gotoAndPlay("wave");
}
Symbol 553 Button
on (release) {
sendMCScore(_root.nam, _root.score);
}
Symbol 554 Button
on (release) {
_root.gotoAndPlay("title");
}