Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
diff = 1;
i = 0;
while (i <= 500) {
lineStyle(0, 4210752, 100);
moveTo(0, i);
lineTo(300, i);
i = i + 10;
}
j = 0;
while (j <= 300) {
moveTo(j, 0);
lineTo(j, 500);
j = j + 10;
}
Stage.showMenu = false;
__com_mochibot__("e6b74d0f", this, 10301, true);
MochiAd.showPreGameAd({id:"dd1a7eacac98c008", res:"300x500"});
Frame 2
stopAllSounds();
Frame 3
music = new Sound();
music.attachSound("music");
music.start(0, 9999);
Frame 4
function buttonize(ob, frame) {
ob.useHandCursor = false;
ob.onRelease = function () {
gotoAndStop(frame);
};
}
stop();
onEnterFrame = function () {
removestuff();
};
buttonize(start_btn, 11);
buttonize(creds_btn, 6);
buttonize(ins_btn, 5);
buttonize(scores_btn, 7);
Frame 5
buttonize(back_btn, 4);
Frame 6
buttonize(back_btn, 4);
Frame 7
buttonize(back_btn, 4);
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjQ3M2olZSVhJW4lcw==";
rankz_t10_send.flashkey = "a2ZoaW1ha00=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["rankz_n" + (i + 1)].text = tempv[0];
_root["rankz_v" + (i + 1)].text = tempv[1];
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Frame 8
function removestuff() {
i = 0;
while (i <= bullets.length) {
v = bullets[i];
removeMovieClip(v);
bullets.splice(i, 1);
i++;
}
i = 0;
while (i <= circles.length) {
v = circles[i];
removeMovieClip(v);
circles.splice(i, 1);
i++;
}
i = 0;
while (i <= aliens.length) {
v = aliens[i];
removeMovieClip(v);
aliens.splice(i, 1);
i++;
}
i = 0;
while (i <= powerups.length) {
v = powerups[i];
removeMovieClip(v);
powerups.splice(i, 1);
i++;
}
i = 0;
while (i <= ufos.length) {
v = ufos[i];
removeMovieClip(v);
ufos.splice(i, 1);
i++;
}
i = 0;
while (i <= messages.length) {
v = messages[i];
removeMovieClip(v);
messages.splice(i, 1);
i++;
}
}
function gmessage(x, y, text) {
d = _root.getNextHighestDepth();
t = attachMovie("message", "message" + d, d);
t._x = x;
t._y = y;
t.timer = 0;
t.mess = text;
messages.push(t);
}
function makeufo(x, y, speed) {
d = _root.getNextHighestDepth();
s = attachMovie("ufo", "ufo" + d, d);
s._x = x;
s._y = y;
s.xspeed = speed;
s.yspeed = 0;
s.active = true;
ufos.push(s);
}
function circle(x, y, xspeed, yspeed, col) {
d = _root.getNextHighestDepth();
c = attachMovie("circle", "circle" + d, d);
c._x = x;
c._y = y;
c.xspeed = xspeed;
c.yspeed = yspeed;
c.colour = new Color(c);
c.colour.setRGB(col);
circles.push(c);
}
function shoot(x, y, rot, speed, player) {
d = _root.getNextHighestDepth();
b = attachMovie("bullet", "bullet" + d, d);
b._x = x;
b._y = y;
if (player) {
b.gotoAndStop(1);
} else {
b.gotoAndStop(2);
}
b.xspeed = Math.sin(0.0174 * rot) * speed;
b.yspeed = Math.cos(0.0174 * rot) * speed;
b._rotation = (57.2957795130823 * Math.atan2(-b.yspeed, b.xspeed)) + 90;
b.player = player;
bullets.push(b);
}
function makealien(x, y, type, size, xspeed, yspeed, strength) {
d = _root.getNextHighestDepth();
a = attachMovie("alien" + type, ("alien" + type) + d, d);
a._x = x;
a._y = y;
a._xscale = (a._yscale = size);
a.type = type;
if (type == 1) {
a.yspeed = yspeed;
a.xspeed = xspeed;
}
if (type == 2) {
a.yspeed = yspeed;
a.rot = 0;
a.dis = Math.random() * 150;
a.xpos = x;
a.speed = Math.random() * 3;
a.xspeed = xspeed;
}
if (type == 3) {
a.xspeed = xspeed;
a.yspeed = yspeed;
}
a.strength = strength;
a.damage = 0;
aliens.push(a);
}
function makepowerup(x, type) {
d = _root.getNextHighestDepth();
p = attachMovie("powerup", "powerup" + d, d);
p._x = x;
p._y = 0;
p.yspeed = (Math.random() * 3) + 1;
p.gotoAndStop(type);
p.timer = 0;
p.type = type;
powerups.push(p);
}
function spawnalien(swave, chance, type, size, msize, xspeed, maxxspeed, yspeed, maxyspeed, strength) {
if (wave == swave) {
if (random(chance) == 0) {
makealien(Math.random() * 300, 0, type, (Math.random() * (msize - size)) + size, (Math.random() * (maxxspeed - xspeed)) + xspeed, (Math.random() * (maxyspeed - yspeed)) + yspeed, strength);
}
}
}
circles = new Array();
bullets = new Array();
aliens = new Array();
powerups = new Array();
ufos = new Array();
messages = new Array();
gamepaused = false;
gamepausedtimer = 0;
ufosoundactive = false;
muted = false;
mutedtimer = 0;
powerup1active = false;
powerup1bar = 0;
powerup2active = false;
powerup2bar = 0;
powerup5active = false;
powerup5bar = 0;
powerup6active = false;
powerup6bar = 0;
powerup6timer = 0;
powerup7active = false;
powerup7bar = 0;
score = 0;
oranges = new Array(15641361, 13959168, 12639565, 14869004, 11226435, 14582569);
blues = new Array(1507566, 2688608, 777716, 1999329, 2854553, 6591925);
time = 1;
bullspeed = 10;
coresize = 100;
reload = 0;
rtime = 10;
p1bar._xscale = 0;
p2bar._xscale = 0;
p3bar._xscale = 0;
multishot = false;
speedshot = false;
rapidfire = false;
lives = 3;
angle = 0;
fangle = 0;
speed = 5;
dis = 413;
speed = 0.2;
deathtime = 0;
wavelevel = 100;
pressed = false;
xpos = 0;
ypos = 0;
shot = new Sound();
shot.attachSound("shot");
aliendie = new Sound();
aliendie.attachSound("aliendie");
ufodie = new Sound();
ufodie.attachSound("ufodie");
explode = new Sound();
explode.attachSound("explode");
power = new Sound();
power.attachSound("power");
gover = new Sound();
gover.attachSound("gameo");
nwave = new Sound();
nwave.attachSound("nwave");
ufosound = new Sound();
ufosound.attachSound("ufosound");
core.gotoAndStop(Math.round(coresize));
wave = 1;
kills = new Array();
i = 5;
while (i <= 10000) {
kills.push(i);
i = i + 0.5;
}
gmessage(125, 215, "WAVE " + wave);
onEnterFrame = function () {
if (!gamepaused) {
if ((100 - wave) > 0) {
wavelevel = 100 - wave;
}
core.gotoAndStop(Math.round(coresize));
if (_currentframe == 8) {
if ((coresize < 20) || (lives == 0)) {
deathtime++;
ufosound.stop("ufosound");
z = 0;
while (z <= 20) {
circle(random(300), random(500), random(10) - 5, random(10) - 5, oranges[random(7) + 1]);
z++;
}
z = 0;
while (z <= 20) {
circle(core._x, core._y, random(10) - 5, random(10) - 5, blues[random(7) + 1]);
z++;
}
core._visible = false;
if (deathtime > 10) {
removestuff();
gover.start(0, 1);
gotoAndStop (9);
}
}
}
i = 0;
while (i < powerups.length) {
p = powerups[i];
p._y = p._y + p.yspeed;
if (wall.hitTest(p._x, p._y + 13, true)) {
if (p.timer < 48) {
p.yspeed = 0;
} else {
p.yspeed = 10;
}
p.timer++;
}
if (p._y > 720) {
removeMovieClip(p);
powerups.splice(i, 1);
}
if (player.hitTest(p)) {
z = 0;
while (z <= 50) {
circle(p._x, p._y, random(10) - 5, random(10) - 5, "0x" + random(999999));
z++;
}
power.start();
if (!powerup1active) {
if (p.type == 1) {
gmessage(p._x, p._y, "multishot");
score = score + (5 * diff);
powerup1active = true;
if (p1bar._xscale == 0) {
p1bar._xscale = 100;
powerup1bar = p1bar;
p1clip.gotoAndStop(1);
} else if (p2bar._xscale == 0) {
p2bar._xscale = 100;
powerup1bar = p2bar;
p2clip.gotoAndStop(1);
} else if (p3bar._xscale == 0) {
p3bar._xscale = 100;
powerup1bar = p3bar;
p3clip.gotoAndStop(1);
}
}
}
if (!powerup2active) {
if (p.type == 2) {
gmessage(p._x, p._y, "speedshot");
score = score + (5 * diff);
powerup2active = true;
if (p1bar._xscale == 0) {
p1bar._xscale = 100;
powerup2bar = p1bar;
p1clip.gotoAndStop(2);
} else if (p2bar._xscale == 0) {
p2bar._xscale = 100;
powerup2bar = p2bar;
p2clip.gotoAndStop(2);
} else if (p3bar._xscale == 0) {
p3bar._xscale = 100;
powerup2bar = p3bar;
p3clip.gotoAndStop(2);
}
}
}
if (p.type == 3) {
if (lives <= 9) {
gmessage(p._x, p._y, "extra life");
score = score + (5 * diff);
lives++;
}
}
if (p.type == 4) {
if (coresize < 150) {
gmessage(p._x, p._y, "repair");
score = score + (5 * diff);
coresize = coresize + (10 * diff);
}
}
if (!powerup5active) {
if (p.type == 5) {
gmessage(p._x, p._y, "hypermode");
score = score + (5 * diff);
powerup5active = true;
if (p1bar._xscale == 0) {
p1bar._xscale = 100;
powerup5bar = p1bar;
p1clip.gotoAndStop(5);
} else if (p2bar._xscale == 0) {
p2bar._xscale = 100;
powerup5bar = p2bar;
p2clip.gotoAndStop(5);
} else if (p3bar._xscale == 0) {
p3bar._xscale = 100;
powerup5bar = p3bar;
p3clip.gotoAndStop(5);
}
}
}
if (!powerup6active) {
if (p.type == 6) {
gmessage(p._x, p._y, "auto shot");
score = score + (5 * diff);
powerup6active = true;
if (p1bar._xscale == 0) {
p1bar._xscale = 100;
powerup6bar = p1bar;
p1clip.gotoAndStop(6);
} else if (p2bar._xscale == 0) {
p2bar._xscale = 100;
powerup6bar = p2bar;
p2clip.gotoAndStop(6);
} else if (p3bar._xscale == 0) {
p3bar._xscale = 100;
powerup6bar = p3bar;
p3clip.gotoAndStop(6);
}
}
}
if (!powerup7active) {
if (p.type == 7) {
gmessage(p._x, p._y, "speed x2");
score = score + (5 * diff);
powerup7active = true;
if (p1bar._xscale == 0) {
p1bar._xscale = 100;
powerup7bar = p1bar;
p1clip.gotoAndStop(7);
} else if (p2bar._xscale == 0) {
p2bar._xscale = 100;
powerup7bar = p2bar;
p2clip.gotoAndStop(7);
} else if (p3bar._xscale == 0) {
p3bar._xscale = 100;
powerup7bar = p3bar;
p3clip.gotoAndStop(7);
}
}
}
removeMovieClip(p);
powerups.splice(i, 1);
}
i++;
}
if (powerup1active) {
powerup1bar._xscale = powerup1bar._xscale - 0.3;
if (powerup1bar._xscale <= 0) {
powerup1bar._xscale = 0;
powerup1active = false;
}
}
if (powerup2active) {
bullspeed = 15;
powerup2bar._xscale = powerup2bar._xscale - 0.3;
if (powerup2bar._xscale <= 0) {
powerup2bar._xscale = 0;
powerup2active = false;
}
} else {
bullspeed = 10;
}
if (powerup5active) {
rtime = 3;
powerup5bar._xscale = powerup5bar._xscale - 0.3;
if (powerup5bar._xscale <= 0) {
powerup5bar._xscale = 0;
powerup5active = false;
}
} else {
rtime = 10;
}
if (powerup6active) {
powerup6timer++;
if (powerup6timer > 10) {
shoot(0, 150, 90, bullspeed, true);
powerup6timer = 0;
}
powerup6bar._xscale = powerup6bar._xscale - 0.3;
if (powerup6bar._xscale <= 0) {
powerup6bar._xscale = 0;
powerup6active = false;
}
}
if (powerup7active) {
time = 1.2;
powerup7bar._xscale = powerup7bar._xscale - 0.3;
if (powerup7bar._xscale <= 0) {
powerup7bar._xscale = 0;
powerup7active = false;
}
} else {
time = 1;
}
i = 0;
while (i < aliens.length) {
a = aliens[i];
if ((((a._x > 315) || (a._x < -15)) || (a._y > 515)) || (a._y < -15)) {
removeMovieClip(a);
aliens.splice(i, 1);
}
i++;
}
i = 0;
while (i < aliens.length) {
a = aliens[i];
if (a.type == 1) {
a._y = a._y + (a.yspeed * time);
a._x = a._x + (a.xspeed * time);
}
if (a.type == 2) {
a.rot = a.rot + (a.speed * time);
a._x = a.xpos + (Math.sin(0.0174 * a.rot) * a.dis);
a._y = a._y + (a.yspeed * time);
}
if (a.type == 3) {
a._x = a._x + (a.xspeed * time);
if ((a._x > 295) || (a._x < 5)) {
a.xspeed = a.xspeed * -1;
a._y = a._y + a.yspeed;
}
}
if (a.damage >= a.strength) {
z = 0;
while (z <= 20) {
circle(a._x, a._y, random(10) - 5, random(10) - 5, oranges[random(4) + 1]);
z++;
}
kills[wave]--;
aliendie.start();
score = score + ((a.type * 5) * diff);
removeMovieClip(a);
aliens.splice(i, 1);
}
if (player._currentframe == 1) {
if (player.hitTest(a._x, a._y, false)) {
z = 0;
while (z <= 50) {
circle(a._x, a._y, random(10) - 5, random(10) - 5, oranges[random(5) + 1]);
z++;
}
lives--;
player.gotoAndPlay(2);
gun.gotoAndPlay(2);
removeMovieClip(a);
aliens.splice(i, 1);
}
}
if (wall.hitTest(a._x, a._y, true)) {
z = 0;
while (z <= 30) {
circle(a._x, a._y, random(10) - 5, random(10) - 5, oranges[random(5) + 1]);
z++;
}
aliendie.start();
removeMovieClip(a);
aliens.splice(i, 1);
}
if (core.hitTest(a._x, a._y, true)) {
z = 0;
while (z <= 50) {
circle(a._x, a._y, random(10) - 5, random(10) - 5, oranges[random(5) + 1]);
z++;
}
z = 0;
while (z <= 50) {
circle(a._x, a._y, random(4) - 2, random(4) - 2, blues[random(5) + 1]);
z++;
}
aliendie.start();
coresize = coresize - ((a._xscale / 60) * diff);
removeMovieClip(a);
aliens.splice(i, 1);
}
if (random(150) == 0) {
shoot(a._x, a._y + 10, 180, 5, false);
}
j = 0;
while (j < bullets.length) {
b = bullets[j];
if (b.player) {
if (a.hitTest(b._x, b._y, false)) {
a.damage++;
z = 0;
while (z <= 10) {
circle(b._x, b._y, (Math.random() * 2) - 1, (Math.random() * 2) - 1, oranges[random(5) + 1]);
z++;
}
removeMovieClip(b);
bullets.splice(j, 1);
}
}
j++;
}
i++;
}
i = 0;
while (i < circles.length) {
c = circles[i];
c._x = c._x + (c.xspeed * time);
c._y = c._y + (c.yspeed * time);
c._alpha = c._alpha - (10 * time);
i++;
}
i = 0;
while (i < circles.length) {
c = circles[i];
if (c._alpha <= 0) {
removeMovieClip(c);
circles.splice(i, 1);
}
if (c._x > 300) {
removeMovieClip(c);
circles.splice(i, 1);
}
if (c._x < 0) {
removeMovieClip(c);
circles.splice(i, 1);
}
if (c._y > 500) {
removeMovieClip(c);
circles.splice(i, 1);
}
if (c._y < 0) {
removeMovieClip(c);
circles.splice(i, 1);
}
i++;
}
i = 0;
while (i < ufos.length) {
s = ufos[i];
s._x = s._x + (s.xspeed * time);
s._y = s._y + (s.yspeed * time);
s._rotation = 57.2957795130823 * Math.atan2(s.yspeed, s.xspeed);
if (s.active) {
if (!ufosoundactive) {
ufosound.start(0, 9999);
ufosoundactive = true;
}
if (random(20) == 0) {
shoot(s._x, s._y + 10, 180, 5, false);
}
} else {
ufosound.stop("ufosound");
ufosoundactive = false;
s.xspeed = s.xspeed * 0.98;
s.yspeed = s.yspeed + 0.5;
if (player._currentframe == 1) {
if (player.hitTest(s._x, s._y, false)) {
z = 0;
while (z <= 50) {
circle(s._x, s._y, random(10) - 5, random(10) - 5, oranges[random(5) + 1]);
z++;
}
lives--;
player.gotoAndPlay(2);
gun.gotoAndPlay(2);
removeMovieClip(s);
ufos.splice(i, 1);
}
}
}
if ((s._x > 320) || (s._x < -20)) {
removeMovieClip(s);
ufos.splice(i, 1);
ufosound.stop("ufosound");
ufosoundactive = false;
}
if (wall.hitTest(s._x, s._y, true)) {
z = 0;
while (z <= 50) {
circle(s._x, s._y, (Math.random() * 6) - 3, (Math.random() * 6) - 3, oranges[random(5) + 1]);
z++;
}
explode.start();
removeMovieClip(s);
ufos.splice(i, 1);
}
if (core.hitTest(s._x, s._y, true)) {
z = 0;
while (z <= 40) {
circle(s._x, s._y, (Math.random() * 6) - 3, (Math.random() * 6) - 3, oranges[random(5) + 1]);
z++;
}
z = 0;
while (z <= 30) {
circle(s._x, s._y, (Math.random() * 2) - 1, (Math.random() * 2) - 1, blues[random(5) + 1]);
z++;
}
coresize = coresize - (3 * diff);
explode.start();
removeMovieClip(s);
ufos.splice(i, 1);
}
j = 0;
while (j < bullets.length) {
b = bullets[j];
if (b.player) {
if (s.active) {
if (s.hitTest(b._x, b._y, false)) {
s.active = false;
score = score + (30 * diff);
kills[wave]--;
ufodie.start();
z = 0;
while (z <= 50) {
circle(s._x, s._y, (Math.random() * 6) - 3, (Math.random() * 6) - 3, oranges[random(5) + 1]);
z++;
}
removeMovieClip(b);
bullets.splice(j, 1);
}
}
}
j++;
}
i++;
}
i = 0;
while (i < bullets.length) {
b = bullets[i];
b._x = b._x + (b.xspeed * time);
b._y = b._y - (b.yspeed * time);
if (b.player) {
circle(b._x, b._y, 0, 0, 16777215);
if (wall.hitTest(b._x, b._y, true)) {
z = 0;
while (z <= 5) {
circle(b._x, b._y, random(10) - 5, random(10) - 5, 16777215);
z++;
}
removeMovieClip(b);
bullets.splice(i, 1);
}
} else {
circle(b._x, b._y, 0, 0, 365601);
if (core.hitTest(b._x, b._y, true)) {
coresize = coresize - (1 * diff);
z = 0;
while (z <= 5) {
circle(b._x, b._y, random(10) - 5, random(10) - 5, blues[random(4) + 1]);
z++;
}
removeMovieClip(b);
bullets.splice(i, 1);
}
if (wall.hitTest(b._x, b._y, true)) {
z = 0;
while (z <= 5) {
circle(b._x, b._y, random(10) - 5, random(10) - 5, 16777215);
z++;
}
removeMovieClip(b);
bullets.splice(i, 1);
}
if (player._currentframe == 1) {
if (player.hitTest(b._x, b._y, true)) {
z = 0;
while (z <= 50) {
circle(b._x, b._y, random(10) - 5, random(10) - 5, oranges[random(5) + 1]);
z++;
}
lives--;
removeMovieClip(b);
bullets.splice(i, 1);
player.gotoAndPlay(2);
gun.gotoAndPlay(2);
}
}
}
i++;
}
i = 0;
while (i < bullets.length) {
b = bullets[i];
if ((((b._x > 300) || (b._x < 0)) || (b._y > 500)) || (b._y < 0)) {
removeMovieClip(b);
bullets.splice(i, 1);
}
i++;
}
if (Key.isDown(39) || (Key.isDown(68))) {
angle = angle + (speed * time);
}
if (Key.isDown(37) || (Key.isDown(65))) {
angle = angle - (speed * time);
}
plives.gotoAndStop(lives);
core._xscale = core._xscale + ((coresize - core._xscale) / 5);
core._yscale = core._yscale + ((coresize - core._yscale) / 5);
player._rotation = -fangle;
fangle = fangle + angle;
angle = angle * 0.9;
if (fangle > 22) {
fangle = 22;
angle = 0;
}
if (fangle < -22) {
fangle = -22;
angle = 0;
}
xpos = 150 + (Math.sin((Math.PI/180) * (-player._rotation)) * dis);
ypos = Math.cos((Math.PI/180) * (-player._rotation)) * dis;
xdif = _xmouse - gun._x;
ydif = _ymouse - gun._y;
rot = (57.2957795130823 * Math.atan2(ydif, xdif)) + 90;
gun._rotation = rot;
gun._x = xpos;
gun._y = ypos;
reload = reload + (1 * time);
if (reload > rtime) {
if (pressed) {
shot.start();
if (!powerup1active) {
shoot(gun._x, gun._y, rot, bullspeed, true);
} else {
shoot(gun._x, gun._y, rot, bullspeed, true);
shoot(gun._x, gun._y, rot + 5, bullspeed, true);
shoot(gun._x, gun._y, rot - 5, bullspeed, true);
}
reload = 0;
}
}
i = 0;
while (i < messages.length) {
t = messages[i];
t._y--;
t.timer++;
if (t.timer > 36) {
removeMovieClip(t);
messages.splice(i, 1);
}
i++;
}
if (p1bar._xscale == 0) {
p1clip.gotoAndStop(8);
}
if (p2bar._xscale == 0) {
p2clip.gotoAndStop(8);
}
if (p3bar._xscale == 0) {
p3clip.gotoAndStop(8);
}
if (_currentframe == 8) {
if (kills[wave] >= 0) {
spawnalien(1, 35, 1, 90, 110, -1, 1, 1, 3, 1);
spawnalien(2, 35, 1, 90, 110, -1.5, 1.5, 1, 4, 1);
spawnalien(3, 30, 1, 120, 200, -2, 2, 1, 3, 1);
spawnalien(4, 15, 1, 70, 100, -0.5, 0.5, 1, 3, 1);
spawnalien(5, 55, 1, 200, 210, 0, 0, 1, 2, 3);
spawnalien(6, 35, 1, 60, 80, -1.8, 1.8, 1, 4, 1);
spawnalien(7, 45, 2, 100, 110, -1, 1, 1, 3, 1);
spawnalien(8, 50, 1, 200, 200, 0, 0, 1, 5, 1);
spawnalien(9, 30, 2, 90, 110, -1, 1, 1, 10, 1);
spawnalien(10, 40, 2, 90, 110, -1, 1, 1, 10, 1);
spawnalien(10, 40, 1, 90, 110, -1, 1, 1, 10, 1);
spawnalien(11, 90, 1, 300, 400, 0, 0, 1, 5, 6);
spawnalien(12, 90, 3, 120, 150, -3, 3, 10, 30, 1);
spawnalien(13, 80, 3, 110, 130, -5, 5, 10, 30, 1);
spawnalien(14, 50, 2, 200, 300, -2, 2, 1, 5, 3);
spawnalien(15, 40, 3, 120, 150, -3, 3, 10, 30, 1);
spawnalien(16, 60, 3, 200, 300, -6, 6, 20, 30, 2);
if (wave > 16) {
if (random(wavelevel) == 0) {
makealien(random(300), 0, 1, (Math.random() * 80) + 100, (Math.random() * 10) - 5, (Math.random() * 4) + 1, random(3) + 1);
}
if (random(50 + wavelevel) == 0) {
makealien(random(300), 0, 2, (Math.random() * 90) + 90, (Math.random() * 10) - 5, (Math.random() * 4) + 1, random(4) + 1);
}
if (random(100 + wavelevel) == 0) {
makealien(random(300), 0, 3, (Math.random() * 100) + 50, (Math.random() * 16) - 8, (Math.random() * 30) + 10, random(5) + 1);
}
}
} else {
wave++;
nwave.start();
gmessage(125, 215, "wave " + wave);
score = score + ((wave * 2) * diff);
}
if ((random(100 + wavelevel) / diff) == 0) {
makepowerup(random(300), random(7) + 1);
}
if (random(250 + wavelevel) == 0) {
makeufo(0, random(360), (Math.random() * 4) + 1);
}
}
}
if (_currentframe == 8) {
if (Key.isDown(66)) {
removeMovieClip(pmenu);
removestuff();
explode.start();
gotoAndStop (4);
}
gamepausedtimer++;
if (gamepausedtimer > 10) {
if (Key.isDown(80)) {
if (!gamepaused) {
gamepaused = true;
attachMovie("pmenu", "pmenu", _root.getNextHighestDepth());
pmenu._x = 150;
pmenu._y = 200;
} else {
gamepaused = false;
removeMovieClip(pmenu);
}
gamepausedtimer = 0;
}
}
mutedtimer++;
if (mutedtimer > 10) {
if (Key.isDown(77)) {
if (!muted) {
_root.music.stop();
muted = true;
} else {
_root.music.start(0, 9999);
muted = false;
}
mutedtimer = 0;
}
}
}
};
onMouseDown = function () {
if (!gamepaused) {
if (_currentframe == 8) {
i = 0;
while (i <= 8) {
circle(_xmouse, _ymouse, random(6) - 3, random(6) - 3, "0xF70000");
i++;
}
pressed = true;
}
}
};
onMouseUp = function () {
pressed = false;
};
Frame 9
onEnterFrame = function () {
removestuff();
};
buttonize(back_btn, 4);
buttonize(sscore_btn, 10);
scorepoints = score + " points";
Frame 10
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
scoreloader.gotoAndPlay(11);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
buttonize(back_btn, 4);
sscore_btn.useHandCursor = false;
sscore_btn.onRelease = function () {
scoreloader.gotoAndPlay(2);
sscore_btn._visible = false;
bXlnYW1lX25hbWVfdmFyaWFibGU = name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
__rankz_send__("MjQ3M2olZSVhJW4lcw==", "a2ZoaW1ha00=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
};
Frame 11
easy_btn.useHandCursor = false;
med_btn.useHandCursor = false;
hard_btn.useHandCursor = false;
easy_btn.onRelease = function () {
diff = 1;
gotoAndStop (8);
};
med_btn.onRelease = function () {
diff = 2;
gotoAndStop (8);
};
hard_btn.onRelease = function () {
diff = 3;
gotoAndStop (8);
};
buttonize(back_btn, 4);
Symbol 13 MovieClip [bullet] Frame 1
stop();
Symbol 38 MovieClip [powerup] Frame 1
stop();
Symbol 196 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 197 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 10
gotoAndPlay (2);
Symbol 176 MovieClip Frame 66
stop();