Frame 1
stop();
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (load) {
target = "_root";
message = "Loading...";
unity = "percent";
display = "none";
}
Frame 2
stop();
Frame 46
if (gameover eq "yes") {
gotoAndPlay (48);
}
Instance of Symbol 44 MovieClip "s" in Frame 46
onClipEvent (enterFrame) {
_root.bullet._x = this._x;
_root.bullet._y = this._y;
if (shot == 1) {
shot = 0;
count = count + 1;
duplicateMovieClip (_root.bullet, "b" add count, 800 + count);
}
}
Instance of Symbol 46 MovieClip "ship" in Frame 46
onClipEvent (load) {
step = 0;
duplicateMovieClip (_root.s, "s1", 500);
_root.s1._x = 100;
_root.s1._y = 185;
m_angle = 0;
}
onClipEvent (keyUp) {
if (Key.getCode(Key.LEFT)) {
k = 0;
}
if (Key.getCode(Key.RIGHT)) {
kk = 0;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.s1.shot = 1;
}
if (Key.isDown(Key.LEFT)) {
m_angle = m_angle + 3;
k = 1;
}
if (Key.isDown(Key.RIGHT)) {
m_angle = m_angle - 3;
kk = 1;
}
if (-12 >= m_angle) {
m_angle = -12;
}
if (12 < m_angle) {
m_angle = 12;
}
sum = k + kk;
if (sum == 0) {
if (0 < m_angle) {
m_angle = m_angle - 2;
}
if (m_angle < 0) {
m_angle = m_angle + 2;
}
}
setProperty(_root.main, _rotation , m_angle);
setProperty(_root.s1, _rotation , -m_angle);
}
Instance of Symbol 48 MovieClip in Frame 46
onClipEvent (load) {
c = 100;
}
onClipEvent (enterFrame) {
setProperty(_root.block, _x , this._x);
setProperty(_root.block, _y , this._y);
setProperty(_root.block, _xscale , 1);
setProperty(_root.block, _yscale , 1);
count = count + 1;
if (count >= 5) {
count = 0;
}
if (count == 4) {
c = c - 1;
if (0 >= c) {
c = 100;
}
duplicateMovieClip (_root.block, "block" add c, 10 + c);
}
}
Instance of Symbol 51 MovieClip "block" in Frame 46
onClipEvent (load) {
x_step = random(15) + 1;
x_dir = random(2);
this._x = random(170) + 30;
}
onClipEvent (enterFrame) {
function rescale() {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 8;
this._rotation = _root.ship.m_angle;
}
if (this._yscale >= 300) {
removeMovieClip(this);
}
if (_root.gameover eq "yes") {
removeMovieClip(this);
}
if ((hitTest(_root.s1) and (220 < this._yscale)) and (this._yscale < 230)) {
tellTarget (_root.s1) {
gotoAndPlay ("boom");
};
}
}
onClipEvent (enterFrame) {
if (_root.ship.sum != 0) {
rescale();
if (0 < _root.ship.m_angle) {
this._x = this._x + 15;
}
if (_root.ship.m_angle < 0) {
this._x = this._x - 15;
}
x_dir = 3;
} else {
rescale();
if (x_dir == 0) {
this._x = this._x - x_step;
}
if (x_dir == 1) {
this._x = this._x + x_step;
}
this._y = this._y + 1;
}
}
Frame 47
gotoAndPlay (46);
Frame 48
_root.main._rotation = 0;
stop();
stopAllSounds();
Symbol 10 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
function percentLoaded(target) {
var movie = eval (target);
var percent = ((movie.getBytesLoaded() / movie.getBytesTotal()) * 100);
if (movie.getBytesLoaded() == movie.getBytesTotal()) {
movie.play();
}
return(percent);
}
function bytesLoaded(target) {
var movie = eval (target);
var bytesloaded = movie.getBytesLoaded();
if (movie.getBytesLoaded() == movie.getBytesTotal()) {
movie.play();
}
return(bytesloaded);
}
function bytesLeft(target) {
var movie = eval (target);
var bytesleft = (movie.getBytesTotal() - movie.getBytesLoaded());
if (movie.getBytesLoaded() == movie.getBytesTotal()) {
movie.play();
}
return(bytesleft);
}
stop();
displayMC.gotoAndStop(display);
gotoAndPlay(unity);
Symbol 12 MovieClip Frame 5
status = String(percentLoaded(target)).substr(0, 5) + "%";
if (display == "bar") {
displayMC.bar._xscale = percentLoaded(target);
}
if (display == "clock") {
displayMC.clock.gotoAndStop(Math.floor(percentLoaded(target)));
}
Symbol 12 MovieClip Frame 6
gotoAndPlay (5);
Symbol 12 MovieClip Frame 10
status = String(bytesLoaded(target)) + " Bytes";
if (display == "bar") {
displayMC.bar._xscale = percentLoaded(target);
}
if (display == "clock") {
displayMC.clock.gotoAndStop(Math.floor(percentLoaded(target)));
}
Symbol 12 MovieClip Frame 11
gotoAndPlay (1);
Symbol 12 MovieClip Frame 15
status = String(bytesLeft(target)) + " Bytes left";
if (display == "bar") {
displayMC.bar._xscale = percentLoaded(target);
}
if (display == "clock") {
displayMC.clock.gotoAndStop(Math.floor(percentLoaded(target)));
}
Symbol 12 MovieClip Frame 16
gotoAndPlay (15);
Symbol 25 Button
on (release) {
play();
}
Symbol 44 MovieClip Frame 5
gotoAndPlay (1);
Symbol 44 MovieClip Frame 25
_root.gameover = "yes";
_root.ship.m_angle = 0;
stop();
Symbol 57 Button
on (release) {
delete gameover;
gotoAndPlay (46);
}