Combined Code
frame 1 {
stop();
}
// unknown tag 88 length 99
button 5 {
on (release) {
gotoAndPlay(2);
}
}
button 7 {
on (release) {
fscommand('quit');
}
}
button 9 {
on (release) {
getURL('http://www.nooooooooooooooo.com/', '');
}
}
frame 2 {
function updateTimer() {
if (timer > 1) {
timer -= 1;
trace(timer);
} else {
trace(timeStart + ' seconds has elapsed!!');
gotoAndPlay(3);
clearInterval(myInterval);
delete myInterval;
}
}
stop();
numHostiles = 25;
i = 2;
while (i <= numHostiles) {
_root.enemy1.duplicateMovieClip('enemy' + i, i + 100);
++i;
}
_root.counter = 0;
if (this.hitTest(_root.left)) {
this._x += moveSpeed;
}
if (this.hitTest(_root.right)) {
this._x -= moveSpeed;
}
if (this.hitTest(_root.top)) {
this._y += moveSpeed;
}
if (this.hitTest(_root.bottom)) {
this._y -= moveSpeed;
}
var ID = setInterval(goNextFrame, 30000);
var timeStart = 30;
var timer = timeStart;
myInterval = setInterval(updateTimer, 1000);
}
movieClip 11 {
}
movieClip 12 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance Control_mc of movieClip 12 {
onClipEvent (load) {
moveSpeed = 7;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x += moveSpeed;
5;
} else {
if (Key.isDown(37)) {
this._x -= moveSpeed;
-5;
}
}
if (Key.isDown(38)) {
this._y -= moveSpeed;
5;
} else {
if (Key.isDown(40)) {
this._y += moveSpeed;
-5;
}
}
}
onClipEvent (load) {
_root.Missile_mc._visible = false;
var missileRate = 15;
var tempRate = 10;
var missileCounter = 10;
}
onClipEvent (enterFrame) {
if (tempRate == 0) {
if (Key.isDown(32)) {
if (++missileCounter > 8) {
missileCounter = 2;
}
_root.Missile_mc.duplicateMovieClip('Missile_mc' + missileCounter, missileCounter);
_root['Missile_mc' + missileCounter]._visible = true;
tempRate = missileRate;
}
} else {
--tempRate;
}
}
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.numHostiles) {
if (this.hitTest(_root['Control_mc' + i])) {
_root.counter += 100;
_root['enemy1' + i].gotoAndPlay(2);
this.removeMovieClip();
}
++i;
}
}
}
movieClip 24 {
frame 11 {
stop();
}
}
instance enemy1 of movieClip 24 {
onClipEvent (load) {
function reset() {
this._x = 650;
this._y = Math.floor(Math.random() * 400 + 50);
hostileSpeed = Math.floor(Math.random() * 16 + 1) / 8;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.Control_mc.loopStart) {
this._x -= hostileSpeed + _root.Foreground_mc.groundSpeed;
} else {
this._x -= hostileSpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.Control_mc.Control_alive)) {
_root.Control_mc.gotoAndStop(2);
}
}
}
movieClip 29 {
}
instance Missile_mc of movieClip 29 {
onClipEvent (load) {
var missileMoveSpeed = 3;
this._x = _root.Control_mc._x;
this._y = _root.Control_mc._y;
}
onClipEvent (enterFrame) {
if (this._name != 'Missile_mc') {
this._x += missileMoveSpeed;
i = 1;
while (i <= _root.numHostiles) {
if (this.hitTest(_root['enemy' + i])) {
_root.counter += 100;
_root['enemy' + i].gotoAndPlay(2);
this.removeMovieClip();
}
++i;
}
if (this._x > 600) {
this.removeMovieClip();
}
}
}
}
button 32 {
on (release) {
gotoAndStop(2);
}
}
movieClip 34 {
}