Frame 1
stop();
Frame 2
total_bytes = this.getBytesTotal();
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 3
loaded = this.getBytesLoaded();
if (loaded >= total_bytes) {
gotoAndStop (19);
}
percent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
Frame 4
gotoAndPlay (3);
Frame 10
stop();
Frame 18
gotoAndStop (10);
Frame 19
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
if (((domain == "games.jetbar.com") || (domain == "216.55.181.4")) || (domain == "www.ultimatearcade.com")) {
gotoAndStop (18);
} else {
gotoAndStop (18);
}
Frame 20
stop();
Frame 26
_root.foreground.swapDepths(9999990);
stop();
score = 0;
Instance of Symbol 85 MovieClip "asteroid" in Frame 26
onClipEvent (load) {
function explode() {
_root.ship.big_ass.start();
_root.duplicator.x = this._x;
_root.duplicator.y = this._y;
_root.duplicator.Meteors();
removeMovieClip(_root["missile" + i]);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
if (_name != "asteroid") {
_x = (xmov + this._x);
_y = (ymov + this._y);
_rotation = (this._rotation + rot);
if (_root.ship.hitTest(this)) {
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.hit();
_root.ship.shield.start();
explode();
}
i = -1;
while (_root.max_missiles >= (++i)) {
if (_root["missile" + i].hitTest(this)) {
_root.score++;
explode();
}
}
if ((((this._x < (-1 * this._width)) || ((550 + this._width) < this._x)) || (this._y < (-1 * this._width))) || ((400 + this._width) < this._y)) {
removeMovieClip("");
}
}
}
Instance of Symbol 86 MovieClip "missile" in Frame 26
onClipEvent (enterFrame) {
if (_name != "missile") {
_x = (xmov + this._x);
_y = (ymov + this._y);
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
}
}
Instance of Symbol 89 MovieClip "duplicator" in Frame 26
onClipEvent (load) {
function nextLevel() {
val = new Array();
diff = 0;
while (difficulty >= diff) {
val[diff] = (diff * 2) * delta;
diff++;
}
trace(difficulty);
}
i = 0;
ii = 0;
delay = 0;
difficulty = 4;
delta = 100;
nextLevel();
num = 10;
max = 1000;
}
onClipEvent (enterFrame) {
function Meteors() {
ms = random(3) + 1;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = ms;
_root["meteor" + ii].ymov = ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = -ms;
_root["meteor" + ii].ymov = -ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = -ms;
_root["meteor" + ii].ymov = ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = ms;
_root["meteor" + ii].ymov = -ms;
ii = ++ii;
}
delay = ++delay;
k = -1;
while (num >= (++k)) {
if (val[k] == delay) {
side = random(4);
if (side == 0) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = random(250) + 125;
_root["asteroid" + i]._y = (-this._width) / 2;
_root["asteroid" + i].xmov = random(3) + 1;
_root["asteroid" + i].ymov = random(4) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else if (side == 1) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = random(250) + 125;
_root["asteroid" + i]._y = 400 + (this._width / 2);
_root["asteroid" + i].xmov = random(3) + 1;
_root["asteroid" + i].ymov = -1 * (random(4) + 1);
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else if (side == 2) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = (-this._width) / 2;
_root["asteroid" + i]._y = random(200) + 100;
_root["asteroid" + i].xmov = random(4) + 1;
_root["asteroid" + i].ymov = random(2) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = 550 + (this._width / 2);
_root["asteroid" + i]._y = random(200) + 100;
_root["asteroid" + i].xmov = -1 * (random(4) + 1);
_root["asteroid" + i].ymov = random(2) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
}
}
}
if (max < delay) {
delay = 0;
_root.statusGame.play();
num = num + 2;
difficulty = difficulty + 2;
delta = delta - 20;
nextLevel();
}
}
Instance of Symbol 95 MovieClip "meteor" in Frame 26
onClipEvent (load) {
rot = random(4) - random(4);
this.gotoAndStop(random(2) + 1);
}
onClipEvent (enterFrame) {
if (_name != "meteor") {
_x = (xmov + this._x);
_y = (ymov + this._y);
_rotation = (this._rotation + rot);
if (_root.ship.hitTest(this)) {
if (_currentframe == 1) {
_root.ship.hit();
_root.ship.little_ass.start();
_root.ship.shield.start();
_root.energy._xscale = _root.energy._xscale - 5;
} else {
_root.ship.diamond_collected.start();
_root.energy._xscale = _root.energy._xscale + 5;
_root.score = _root.score + 5;
}
removeMovieClip("");
}
i = -1;
while ((_root.max_missiles >= (++i)) && (_currentframe == 1)) {
if (_root["missile" + i].hitTest(this)) {
_root.ship.little_ass.start();
removeMovieClip("");
_root.score++;
}
}
}
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
}
Instance of Symbol 106 MovieClip "enemyFire" in Frame 26
onClipEvent (enterFrame) {
if (this._name != "enemyFire") {
this._x = this._x + xmov;
this._y = this._y + ymov;
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
if (this.hitTest(_root.ship)) {
_root.ship.play();
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.shield.start();
removeMovieClip(this);
}
}
}
Instance of Symbol 109 MovieClip "energy" in Frame 26
onClipEvent (enterFrame) {
if (0 >= this._xscale) {
this._xscale = 0;
_root.statusGame.gotoAndstop("gameOver");
_root.gotoAndStop("gameover");
_root.gameover = "yes";
}
if (this._xscale >= 100) {
this._xscale = 100;
}
}
Instance of Symbol 114 MovieClip "ship" in Frame 26
onClipEvent (load) {
function hit() {
gotoAndPlay (27);
}
laser = new sound();
shield = new sound();
big_ass = new sound();
little_ass = new sound();
diamond_collected = new sound();
laser.attachsound("laser");
diamond_collected.attachsound("diamond_collected");
shield.attachsound("shield");
little_ass.attachsound("little_ass");
big_ass.attachsound("big_ass");
movie_height = 400;
movie_width = 550;
xmov = 0;
ymov = 0;
accel = 0.2;
angle_accel = 4;
angle = 0;
speed = 0;
missile_speed = 15;
max_missiles = 10;
_root.max_missiles = max_missiles;
nose = 10;
i = 0;
go_space = "yes";
}
onClipEvent (enterFrame) {
if (_root.gameover != "yes") {
if (Key.isDown(38)) {
speed = Number(speed) + accel;
flame_left.gotoAndPlay(2);
flame_right.gotoAndPlay(2);
}
if (Key.isDown(40)) {
speed = Number(speed) - accel;
}
if (Key.isDown(39)) {
angle = Number(angle) + angle_accel;
_rotation = angle;
flame_left.gotoAndPlay(2);
}
if (Key.isDown(37)) {
angle = Number(angle) - angle_accel;
_rotation = angle;
flame_right.gotoAndPlay(2);
}
if (Key.isDown(32) && (go_space == "yes")) {
laser.start();
duplicateMovieClip ("_root.missile", "missile" + i, i);
_root["missile" + i].xmov = missile_speed * math.cos((math.pi / 180) * angle);
_root["missile" + i].ymov = missile_speed * math.sin((math.pi / 180) * angle);
setProperty(_root["missile" + i], _x , this._x + (nose * math.cos((math.pi / 180) * angle)));
setProperty(_root["missile" + i], _y , this._y + (nose * math.sin((math.pi / 180) * angle)));
setProperty(_root["missile" + i], _rotation , angle);
i = ++i;
if (max_missiles < i) {
i = 0;
}
go_space = "no";
} else if (Key.isDown(32) != true) {
go_space = "yes";
}
xmov = speed * math.cos((math.pi / 180) * angle);
ymov = speed * math.sin((math.pi / 180) * angle);
_x = (this._x + xmov);
_y = (this._y + ymov);
if (this._y < -10) {
_y = movie_height;
} else if ((movie_height + 10) < this._y) {
_y = 0;
} else if (this._x < -10) {
_x = movie_width;
} else if ((movie_width + 10) < this._x) {
_x = 0;
}
}
}
Instance of Symbol 60 MovieClip "enemy" in Frame 26
onClipEvent (load) {
function randomTime() {
subTime = _root.duplicator.max / (_root.duplicator.difficulty - 2);
amountTime = _root.duplicator.max + 1;
time = 0;
}
function nextTime() {
next = next + subTime;
}
function findAngle() {
adx = this._x - _root.ship._x;
ady = this._y - _root.ship._y;
check = Math.atan(ady / adx) * 57.2957795130823;
if ((_root.ship._x < this._x) && (this._y < _root.ship._y)) {
angle = check + 180;
} else if ((this._x < _root.ship._x) && (this._y < _root.ship._y)) {
angle = check;
} else if ((this._x < _root.ship._x) && (_root.ship._y < this._y)) {
angle = check;
} else {
angle = check - 180;
}
}
dup = 1;
friction = 0.98;
randomTime();
next = subTime;
livingTime = random(100) + 50;
livingStart = 0;
fire = 0;
missile_speed = 8;
nose = 10;
}
onClipEvent (enterFrame) {
time++;
if (this._name == "enemy") {
if (time >= next) {
dup++;
next = next + subTime;
duplicateMovieClip (this, "e" + dup, dup + 5000);
_root["e" + dup].gravx = random(20);
_root["e" + dup].gravy = random(20);
_root["e" + dup].target = "ship";
_root["e" + (dup - 1)].target = "farAway";
_root["e" + dup].newOne = 0;
_root["e" + (dup - 1)].newOne = 1;
side = random(4) + 1;
if (side == 0) {
_root["e" + dup]._x = random(550);
_root["e" + dup]._y = (-this._width) / 2;
} else if (side == 1) {
_root["e" + dup]._x = random(550);
_root["e" + dup]._y = 400 + (this._width / 2);
} else if (side == 2) {
_root["e" + dup]._x = (-this._width) / 2;
_root["e" + dup]._y = random(400);
} else {
_root["e" + dup]._x = 550 + (this._width / 2);
_root["e" + dup]._y = random(400);
}
if (amountTime < time) {
randomTime();
next = 0;
}
}
} else {
livingStart++;
trace("ship");
if ((livingTime < livingStart) || (newOne == 1)) {
target = "farAway";
} else {
target = "ship";
}
movex = this._x;
movey = this._y;
ex = _root[target]._x;
ey = _root[target]._y;
gravx = gravx + ((ex - movex) / 300);
gravy = gravy + ((ey - movey) / 300);
if (ex < movex) {
dirx = 1;
} else {
dirx = 0;
}
if (dirx == 1) {
if (movex < ex) {
gravx = gravx * -1;
}
} else if (ex < movex) {
gravx = gravx * -1;
}
if (ey < movey) {
diry = 1;
} else {
diry = 0;
}
if (diry == 1) {
if (movey < ey) {
gravy = gravy * -1;
}
} else if (ey < movey) {
gravy = gravy * -1;
}
this._x = this._x + gravx;
this._y = this._y + gravy;
gravx = gravx * friction;
gravy = gravy * friction;
if (this._x < -500) {
removeMovieClip(this);
}
if (this.hitTest(_root.ship)) {
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.hit();
_root.ship.shield.start();
removeMovieClip(this);
}
i = 0;
while (10 >= i) {
if (_root["missile" + i].hitTest(this)) {
_root.energy._xscale = _root.energy._xscale + 10;
_root.score = _root.score + 5;
removeMovieClip(this);
}
i++;
}
fire++;
if ((fire % 40) == 0) {
_root.ship.laser.start();
findAngle();
duplicateMovieClip ("_root.enemyFire", "ef" + fire, fire);
_root["ef" + fire].xmov = missile_speed * math.cos((math.pi / 180) * angle);
_root["ef" + fire].ymov = missile_speed * math.sin((math.pi / 180) * angle);
setProperty(_root["ef" + fire], _x , this._x + (nose * math.cos((math.pi / 180) * angle)));
setProperty(_root["ef" + fire], _y , this._y + (nose * math.sin((math.pi / 180) * angle)));
setProperty(_root["ef" + fire], _rotation , angle);
}
}
}
Frame 35
stop();
Frame 61
_root.gameover = "";
ak = 0;
score = 0;
gotoAndStop (26);
Symbol 29 MovieClip Frame 112
_root.gotoAndPlay(2);
Symbol 56 Button
on (release) {
gotoAndPlay (60);
}
Symbol 65 MovieClip Frame 6
stop();
Symbol 70 Button
on (release) {
getURL ("http://wwww.ultimatearcade.com/", "_blank");
}
Symbol 74 Button
on (release) {
getURL ("http://wwww.ultimatearcade.com/downloads", "_blank");
}
Symbol 78 Button
on (release) {
getURL ("http://wwww.ultimatearcade.com/maillist/signup.html", "_blank");
}
Symbol 82 MovieClip Frame 1
play();
Symbol 82 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 32
gotoAndStop (1);
Symbol 102 MovieClip Frame 33
_root.gotoAndStop("gameover");
Symbol 112 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 126 Button
on (release) {
_root.gotoAndStop("ready");
}
Symbol 127 MovieClip Frame 1
play();
Symbol 127 MovieClip Frame 115
stop();