Frame 1
stop();
onMouseDown = function () {
nextFrame();
};
Mouse.show();
((score != undefined) ? ((info.text = _root.score)) : null);
Frame 2
addLaserball = function (lbps) {
i = 0;
while (i < lbps) {
_root.laserballs.attachMovie("laserball", "laserball" + _root.lbc, ++_root.lbc);
i++;
}
};
_global.SW = 416;
_global.SH = 416;
lbc = 0;
lbps = 1;
lbt = 24;
lbts = lbt;
laserballs = this.createEmptyMovieClip("laserballs", 2);
score = 0;
onEnterFrame = function () {
((lbts > 0) ? (--lbts) : ((lbts = 0)));
((lbts == 0) ? (addLaserball(lbps)(lbt = lbt - 0.25)((lbt <= 16) ? (++lbps(lbt = 24)) : null)(lbts = lbt)) : null);
info.text = score;
};
Frame 3
stop();
for (instance in _root) {
v = _root[instance];
v.removeMovieClip();
}
gotoAndStop (1);
Symbol 18 MovieClip [laserball] Frame 1
ys = 4;
xs = 4;
((Math.random() > 0.5) ? (_y = (Math.random() * SH)Math.random() * SH_x = (Math.round(Math.random()) * SW)Math.round(Math.random()) * SW) : (_x = (Math.random() * SW)Math.random() * SW_y = (Math.round(Math.random()) * SH)Math.round(Math.random()) * SH));
ang = (Math.atan2(_root.player._y - _y, _root.player._x - _x) * 180) / Math.PI;
onEnterFrame = function () {
if (!_root.player.hitTest(_x, _y, true)) {
} else {
(_root.gotoAndStop(3));// not popped
}
_x = (_x + (Math.cos(ang * (Math.PI/180)) * xs));
_y = (_y + (Math.sin(ang * (Math.PI/180)) * ys));
(((((_x < -20) || (_x > 420)) || (_y < -20)) || (_y > 420)) ? (++_root.scorethis.removeMovieClip()) : null);
};
Symbol 29 MovieClip Frame 1
this.swapDepths(1);
Mouse.hide();
onMouseDown = function () {
Mouse.hide();
};
startDrag (this, true);
onEnterFrame = function () {
if (!((((_x > 400) || (_x < 0)) || (_y < 0)) || (_y > 400))) {
} else {
(_root.gotoAndStop(3));// not popped
}
};