Frame 1
fscommand ("showmenu", false);
fscommand ("trapallkeys", true);
_root.best = 0;
_root.sunet = 1;
stop();
logo.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.play();
} else {
tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.progress.gotoAndStop(tgFrame);
}
};
Frame 2
stop();
_root.paused = 0;
but.onPress = function () {
_root.gotoAndStop(3);
};
if (_root.score > _root.best) {
_root.best = _root.score;
}
son = new Sound();
son.attachSound("shot");
son2 = new Sound();
son2.attachSound("shot2");
son3 = new Sound();
son3.attachSound("shot3");
son.setVolume(40);
son2.setVolume(40);
son3.setVolume(40);
Frame 3
stop();
_root.lifes = 3;
_root.score = 0;
rocket._visible = 1;
life1._visible = 1;
life2._visible = 1;
life3._visible = 1;
this.onEnterFrame = function () {
bestT.text = _root.best;
if (_root.score >= 46) {
this.play();
}
};
Frame 4
stop();
delete this.onEnterFrame;
Frame 5
stop();
this.onEnterFrame = function () {
if (_root.score >= 92) {
this.play();
}
};
Frame 6
stop();
Frame 7
stop();
this.onEnterFrame = function () {
if (_root.score >= 138) {
this.play();
}
};
Frame 8
stop();
Frame 9
stop();
this.onEnterFrame = function () {
if (_root.score >= 184) {
this.play();
}
};
Frame 10
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 36
stop();
Symbol 15 MovieClip Frame 155
_root.gotoAndStop(2);
Symbol 33 MovieClip Frame 1
stop();
freeBul = true;
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (_root.rocket._visible == 1) {
if (Key.isDown(37)) {
if (this._x >= 20) {
this._x = this._x - 10;
}
}
if (Key.isDown(39)) {
if (this._x <= 520) {
this._x = this._x + 10;
}
}
if (Key.isDown(32)) {
if (freeBul == true) {
if (_root.sunet == 1) {
_root.son2.start();
}
_root.bulet._x = _root.rocket._x;
_root.bulet.play();
freeBul = false;
}
}
}
}
};
Symbol 42 MovieClip Frame 1
stop();
_root.rocket.freeBul = true;
Symbol 43 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.rocket) && (this._visible == 1)) {
if (_root.sunet == 1) {
_root.son.start();
}
if (_root.lifes == 3) {
_root.lifes = 2;
_root.life3._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 2) {
_root.lifes = 1;
_root.life2._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 1) {
_root.lifes = 0;
_root.life1._visible = 0;
_root.rocket._x = 275;
} else {
_root.gameOver.play();
}
}
if (this.hittest(_root.bulet)) {
if (this._visible == 1) {
if (_root.sunet == 1) {
_root.son.start();
}
this._visible = 0;
_root.score++;
_root.scor.text = _root.score;
_root.bulet.gotoAndStop(1);
}
}
};
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.rocket) && (this._visible == 1)) {
if (_root.sunet == 1) {
_root.son.start();
}
if (_root.lifes == 3) {
_root.lifes = 2;
_root.life3._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 2) {
_root.lifes = 1;
_root.life2._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 1) {
_root.lifes = 0;
_root.life1._visible = 0;
_root.rocket._x = 275;
} else {
_root.gameOver.play();
}
}
if (this.hittest(_root.bulet)) {
if (this._visible == 1) {
if (_root.sunet == 1) {
_root.son.start();
}
_root.score++;
_root.scor.text = _root.score;
this._visible = 0;
_root.bulet.gotoAndStop(1);
}
}
};
Symbol 49 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.rocket) && (this._visible == 1)) {
if (_root.sunet == 1) {
_root.son.start();
}
if (_root.lifes == 3) {
_root.lifes = 2;
_root.life3._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 2) {
_root.lifes = 1;
_root.life2._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 1) {
_root.lifes = 0;
_root.life1._visible = 0;
_root.rocket._x = 275;
} else {
_root.gameOver.play();
}
}
if (this.hittest(_root.bulet)) {
if (this._visible == 1) {
if (_root.sunet == 1) {
_root.son.start();
}
this._visible = 0;
_root.score++;
_root.scor.text = _root.score;
_root.bulet.gotoAndStop(1);
}
}
};
Symbol 50 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hittest(_root.rocket) && (_parent._visible == 1)) {
if (_root.sunet == 1) {
_root.son.start();
}
if (_root.lifes == 3) {
_root.lifes = 2;
_root.life3._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 2) {
_root.lifes = 1;
_root.life2._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 1) {
_root.lifes = 0;
_root.life1._visible = 0;
_root.rocket._x = 275;
} else {
_root.gameOver.play();
}
this.gotoAndStop(1);
}
};
Symbol 53 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (this.targ.hittest(_root.rocket) && (this._visible == 1)) {
if (_root.sunet == 1) {
_root.son.start();
}
if (_root.lifes == 3) {
_root.lifes = 2;
_root.life3._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 2) {
_root.lifes = 1;
_root.life2._visible = 0;
_root.rocket._x = 275;
} else if (_root.lifes == 1) {
_root.lifes = 0;
_root.life1._visible = 0;
_root.rocket._x = 275;
} else {
_root.gameOver.play();
}
}
ran = random(30);
if (ran == 10) {
bul.play();
}
if (this.targ.hittest(_root.bulet)) {
if (this._visible == 1) {
if (_root.sunet == 1) {
_root.son.start();
}
_root.score++;
_root.scor.text = _root.score;
this._visible = 0;
_root.bulet.gotoAndStop(1);
}
}
}
};
Symbol 56 MovieClip Frame 1
speed = 26;
sign = 1;
count = 0;
movY = false;
this.onEnterFrame = function () {
if (_root.paused == 0) {
if ((count % speed) == 0) {
if (_root.sunet == 1) {
_root.son3.start();
}
if (movY == true) {
gal._y = gal._y + 25;
if (speed > 4) {
speed = speed - 2;
} else {
speed = 1;
}
}
gal._x = gal._x + (sign * 10);
}
movY = false;
if (gal._x <= 5) {
sign = 1;
if (movY == false) {
movY = true;
}
}
if (gal._x >= 125) {
sign = -1;
if (movY == false) {
movY = true;
}
}
count = count + 2;
}
};
Symbol 59 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
} else {
_root.sunet = 0;
}
}
Symbol 61 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 63 Button
on (release) {
if (_root.paused == 0) {
_root.paused = 1;
} else {
_root.paused = 0;
}
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
_root.rocket._visible = 0;
Symbol 67 MovieClip Frame 31
_root.gotoAndStop(2);
Symbol 72 Button
on (release) {
_root.play();
}
Symbol 77 MovieClip Frame 1
speed = 26;
sign = 1;
count = 0;
movY = false;
this.onEnterFrame = function () {
if ((count % speed) == 0) {
if (_root.sunet == 1) {
_root.son3.start();
}
if (movY == true) {
gal._y = gal._y + 25;
if (speed > 4) {
speed = speed - 2;
} else {
speed = 1;
}
}
gal._x = gal._x + (sign * 10);
}
movY = false;
if (gal._x <= 5) {
sign = 1;
if (movY == false) {
movY = true;
}
}
if (gal._x >= 125) {
sign = -1;
if (movY == false) {
movY = true;
}
}
count = count + 2;
};
Symbol 83 MovieClip Frame 1
speed = 26;
sign = 1;
count = 0;
movY = false;
this.onEnterFrame = function () {
if ((count % speed) == 0) {
if (_root.sunet == 1) {
_root.son3.start();
}
if (movY == true) {
gal._y = gal._y + 25;
if (speed > 4) {
speed = speed - 2;
} else {
speed = 1;
}
}
gal._x = gal._x + (sign * 10);
}
movY = false;
if (gal._x <= 5) {
sign = 1;
if (movY == false) {
movY = true;
}
}
if (gal._x >= 125) {
sign = -1;
if (movY == false) {
movY = true;
}
}
count = count + 2;
};
Symbol 89 MovieClip Frame 1
speed = 26;
sign = 1;
count = 0;
movY = false;
this.onEnterFrame = function () {
if ((count % speed) == 0) {
if (_root.sunet == 1) {
_root.son3.start();
}
if (movY == true) {
gal._y = gal._y + 25;
if (speed > 4) {
speed = speed - 2;
} else {
speed = 1;
}
}
gal._x = gal._x + (sign * 10);
}
movY = false;
if (gal._x <= 5) {
sign = 1;
if (movY == false) {
movY = true;
}
}
if (gal._x >= 125) {
sign = -1;
if (movY == false) {
movY = true;
}
}
count = count + 2;
};