Frame 1
stop();
_quality = "LOW";
counter = 0;
delay = 0;
var menu = new ContextMenu();
menu.builtInItems.play = false;
menu.builtInItems.loop = false;
menu.builtInItems.rewind = false;
menu.builtInItems.forward_back = false;
menu.builtInItems.print = false;
onEnterFrame = function () {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
percents = (loaded / total) * 100;
preloader.gotoAndStop(Math.ceil(percents));
if (loaded == total) {
gotoAndPlay (2);
}
};
Frame 2
onEnterFrame = function () {
counter++;
delay++;
if (counter == 100) {
counter = 0;
}
if (delay == 10) {
circles.attachMovie("circle_anim", "circle_anim" + counter, counter);
circles["circle_anim" + counter]._x = 0;
circles["circle_anim" + counter]._y = 0;
delay = 0;
}
if (Key.isDown(32)) {
if (spacepressed) {
if (Stage.scaleMode == "noScale") {
Stage.scaleMode = "showAll";
} else {
Stage.scaleMode = "noScale";
}
spacepressed = false;
}
} else {
spacepressed = true;
}
};
Frame 930
gotoAndPlay (3);
Symbol 3 MovieClip [circle_anim] Frame 100
this.removeMovieClip();
Symbol 7 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
x0 = Array();
y0 = Array();
tx = Array();
ty = Array();
i = 1;
while (i < 3) {
x0[i] = this["invader_side" + i]._x;
y0[i] = this["invader_side" + i]._y;
tx[i] = Math.random() * 10000;
ty[i] = Math.random() * 10000;
i++;
}
onEnterFrame = function () {
count = 1;
while (count < 3) {
this["invader_side" + count]._x = x0[count] + (Math.sin((tx[count] = tx[count] + 0.2)) * 7);
this["invader_side" + count]._y = y0[count] + (Math.sin((ty[count] = ty[count] + 0.2)) * 7);
count++;
}
};