Combined Code
movieClip 6 launch {
}
movieClip 9 {
}
movieClip 14 {
frame 1 {
stop();
stopAllSounds();
_root.missiles_launched = true;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
_root.onEnterFrame = null;
_root.border.swapDepths(_root.getNextHighestDepth());
if (def2.blendMode == 'lighten') {
play();
}
}
frame 29 {
music = new Sound();
music.attachSound('msuci');
music.start(0, 99999);
_root.border.gotoAndPlay(2);
}
frame 33 {
this.attachMovie('launch', 'miss', this.getNextHighestDepth());
miss._y = 15;
miss.t = 0;
miss.onEnterFrame = function () {
++this.t;
if (this.t > 350) {
this.removeMovieClip();
}
};
}
frame 36 {
arr = [0, 0, 500, 550, -56.9, -62.6, 613.8, 675.2000000000001, -66, -72.59999999999999, 632, 695.2000000000001];
time = 0;
scale = 0;
scaler = 4;
onEnterFrame = function () {
time = time + 1 - Math.random() / 3;
var v1 = int(time % 3);
def1._xscale = arr[v1 * 4 + 2] / 5 + scale;
def1._yscale = arr[v1 * 4 + 3] / 5.5 + scale;
def2._alpha = 40 + Math.sin(time / 10) * 40;
def2._x = 250 + Math.sin(time / 13);
def2._y = 275 + Math.sin(time / 15);
def2._xscale = 100 + 5 * Math.sin(time / 32) + scale;
def2._yscale = 100 + 5 * Math.sin(time / 32) + scale;
def2._rotation = Math.sin(time / 101) * 5;
def1._rotation = Math.sin(time / 110) * 5;
scale += scaler;
if (Math.random() >= 0.8) {
if (scaler < 0 && scale < -25 || scaler > 0 && scale > 25) {
scaler = -scaler;
}
} else {
if (scaler < 0 && scale < -15 || scaler > 0 && scale > 15) {
scaler = -scaler;
}
}
if (Math.random() >= 0.9) {
scaler = -scaler;
}
};
stop();
}
}
movieClip 16 {
}