Combined Code
movieClip 6 Empty {
}
// unknown tag 88 length 63
movieClip 13 {
}
button 14 {
on (release) {
getURL('http://www.newgrounds.com', 'blank');
}
}
movieClip 17 {
}
button 23 {
on (release) {
_root.play();
}
}
movieClip 24 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
frame 2 {
stop();
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 31 {
}
movieClip 32 {
frame 57 {
stop();
}
}
movieClip 33 {
frame 173 {
_root.nextFrame();
}
}
frame 3 {
nextFrame();
}
frame 4 {
stop();
}
button 37 {
on (release) {
gotoAndStop('Howto');
}
}
// unknown tag 88 length 63
button 43 {
on (release) {
getURL('http://jpproductions.awardspace.com/index.html', 'blank');
}
}
// unknown tag 88 length 68
button 50 {
on (release) {
gotoAndStop('high');
}
}
button 55 {
on (release) {
gotoAndStop('pick');
}
}
movieClip 58 {
}
movieClip 60 {
}
movieClip 62 {
}
movieClip 63 {
frame 37 {
stop();
}
}
frame 5 {
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = 'Mjk2OWolZSVhJW4lcw==';
rankz_t10_send.flashkey = 'b1J4b0F6d1E=';
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');
}
// unknown tag 88 length 63
button 100 {
on (release) {
getURL('http://rankz.armorbot.com/ZeldaInvader3/', '');
}
}
button 102 {
on (release) {
stopAllSounds();
play();
}
}
frame 6 {
stop();
}
button 109 {
on (release) {
nextFrame();
}
}
movieClip 113 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
frame 7 {
map = 0;
score = 0;
mapset = 0;
}
movieClip 115 {
}
button 120 {
on (release) {
_root.map = 3;
_root.mapset = 1;
stopAllSounds();
play();
}
}
button 125 {
on (release) {
_root.map = 2;
_root.mapset = 0;
stopAllSounds();
play();
}
}
button 130 {
on (release) {
_root.map = 1;
_root.mapset = 1;
stopAllSounds();
play();
}
}
button 135 {
on (release) {
_root.map = 0;
_root.mapset = 0;
stopAllSounds();
play();
}
}
frame 8 {
LaserFire._visible = false;
MagicMissle._visible = false;
BombI._visible = false;
AlienFire1._visible = false;
AlienFire2._visible = false;
AlienFire3._visible = false;
AlienFire4._visible = false;
Spaceship._visible = false;
Alien1._visible = false;
Alien2._visible = false;
Alien3._visible = false;
var i = 4;
while (i < 9) {
eval('Life' + i)._visible = false;
++i;
}
lives = 3;
score = 0;
shipScore = 50;
level = 0;
bombs = 3;
Magic = 100;
MMlife = 2;
}
movieClip 157 {
frame 5 {
stop();
}
}
movieClip 159 {
frame 1 {
stop();
}
frame 31 {
tellTarget ('_root.BombI') {
_visible = false;
}
stop();
}
}
movieClip 163 {
}
movieClip 168 {
}
movieClip 174 {
frame 15 {
stop();
}
}
movieClip 175 {
frame 1 {
_root.score += 10;
}
}
movieClip 177 {
frame 1 {
_root.magic += 100;
}
frame 15 {
stop();
}
}
movieClip 179 {
frame 1 {
_root.bombs += 1;
}
frame 15 {
stop();
}
}
movieClip 180 {
frame 1 {
_root.score += 20;
}
}
movieClip 182 {
frame 1 {
_root.bombs += 3;
}
frame 15 {
stop();
}
}
movieClip 183 {
frame 1 {
_root.score += 50;
}
}
movieClip 184 {
frame 1 {
gotoAndStop(random(16) + 1);
}
}
movieClip 186 {
frame 15 {
stop();
}
}
movieClip 188 {
frame 15 {
stop();
}
}
movieClip 190 {
frame 15 {
stop();
}
}
movieClip 192 {
frame 15 {
stop();
}
}
movieClip 194 {
frame 15 {
stop();
}
}
movieClip 196 {
frame 15 {
stop();
}
}
movieClip 197 {
frame 1 {
stop();
}
}
movieClip 200 {
}
movieClip 203 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
frame 2 {
stop();
}
}
movieClip 208 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
}
movieClip 209 {
frame 1 {
stop();
}
}
movieClip 214 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
}
movieClip 219 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
}
movieClip 220 {
frame 1 {
stop();
}
}
movieClip 225 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
}
movieClip 230 {
frame 1 {
if (_root.mapset == 1) {
this.nextFrame();
}
stop();
}
}
movieClip 231 {
frame 1 {
stop();
}
}
movieClip 234 {
}
movieClip 235 {
}
movieClip 236 {
}
movieClip 237 {
}
movieClip 243 {
frame 1 {
stop();
}
}
movieClip 246 {
}
movieClip 251 {
}
movieClip 252 {
frame 1 {
}
}
movieClip 264 {
}
movieClip 265 {
frame 28 {
stop();
}
}
movieClip 266 {
frame 1 {
stop();
}
}
movieClip 268 {
frame 1 {
if (_root.LaserBase._currentframe == 1) {
tellTarget ('_root.LaserBase') {
if (Key.isDown(39) && _x < 500) {
_x = _x + 6;
} else {
if (Key.isDown(37) && _x > 20) {
_x = _x - 6;
}
}
}
if (Key.isDown(32) && !_root.LaserFire._visible) {
_root.Sound.gotoAndPlay('Fire');
tellTarget ('_root.LaserFire') {
_x = _root.LaserBase._x;
_visible = true;
}
}
if (Key.isDown(16) && !_root.MagicMissle._visible) {
if (_root.Magic > 15) {
_root.Sound.gotoAndPlay('MMfire');
tellTarget ('_root.MagicMissle') {
_x = _root.LaserBase._x;
_visible = true;
_root.Magic -= 25;
}
}
}
if (Key.isDown(13) && !_root.BombI._visible) {
if (_root.bombs > 0) {
tellTarget ('_root.BombI') {
_x = _root.LaserBase._x;
_visible = true;
_root.bombs -= 1;
_root.BombI.gotoAndPlay(2);
}
}
}
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 272 {
frame 1 {
stop();
}
frame 26 {
if (_root.Spaceship._visible) {
gotoAndPlay(2);
}
}
}
movieClip 278 {
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 5 {
stop();
}
frame 7 {
stop();
}
frame 9 {
stop();
}
frame 11 {
stop();
}
frame 13 {
stop();
}
frame 15 {
stop();
}
frame 17 {
stop();
}
frame 19 {
stop();
}
frame 21 {
stop();
}
}
movieClip 281 {
}
movieClip 282 {
frame 1 {
stop();
}
}
movieClip 285 {
}
movieClip 288 {
}
movieClip 290 {
}
movieClip 291 {
frame 1 {
GreenBar._xscale = _root.Magic;
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 294 {
}
movieClip 309 {
frame 1 {
if (_root.map == 0) {
bgSound = new Sound(this);
}
bgSound.attachSound('lightworld');
bgSound.start(0, 99);
if (_root.map == 1) {
bgSound = new Sound(this);
bgSound.attachSound('darkworld');
bgSound.start(0, 99);
gotoAndStop('dun');
}
if (_root.map == 2) {
bgSound = new Sound(this);
bgSound.attachSound('lightworld');
bgSound.start(0, 99);
gotoAndStop('castle');
}
if (_root.map == 3) {
bgSound = new Sound(this);
bgSound.attachSound('darkworld');
bgSound.start(0, 99);
gotoAndStop('mt');
}
stop();
}
}
frame 9 {
if (level < 84) {
level += 14;
}
shifts = 1;
xMin = 400;
xMax = 0;
dir = 4;
alienHeight = 42 + level;
aliensDead = 0;
newLife = 0;
tonePos = 1;
i = 1;
while (i <= lives) {
eval('Life' + i)._visible = true;
++i;
}
i = 0;
while (i < 11) {
duplicateMovieClip('Alien1', 'Row1' + i, i);
duplicateMovieClip('Alien2', 'Row2' + i, i + 11);
duplicateMovieClip('Alien2', 'Row3' + i, i + 22);
duplicateMovieClip('Alien3', 'Row4' + i, i + 33);
duplicateMovieClip('Alien3', 'Row5' + i, i + 44);
j = 1;
while (j < 6) {
eval('Row' + j + i)._x = 102 + 32 * i;
eval('Row' + j + i)._y = alienHeight + 30 * j;
++j;
}
++i;
}
time = getTimer();
}
frame 17 {
tellTarget ('Spaceship') {
if (_visible) {
if (_root.SsSound._currentframe == 1 && _currentframe == 1) {
_root.SsSound.play();
}
if (_root.shipScore == 0 || _x < 0) {
_root.shipScore = 50;
_visible = false;
_x = 540;
gotoAndStop(1);
}
if (_root.shipScore >= 50) {
_x = _x - 4;
}
}
}
if (getTimer() - time > 800 - 3 * alienHeight - 5 * aliensDead) {
if (newLife == 1) {
tellTarget ('LaserBase') {
gotoAndStop(1);
_x = 95;
}
newLife = 0;
tonePos = 1;
} else {
if (newLife) {
--newLife;
} else {
Sound.gotoAndPlay('Tone' + tonePos);
++tonePos;
if (tonePos == 5) {
tonePos = 1;
}
tellTarget ('Spaceship') {
if (!_visible && random(40) < 1) {
_visible = true;
}
}
if (shipScore > 0 && shipScore < 50) {
shipScore -= 10;
}
allGone = true;
if (shifts == 1 && (xMax > 497 || xMin < 23)) {
shifts = 0;
dir *= -1;
alienHeight += 14;
}
xMin = 400;
xMax = 0;
var i = 0;
while (i < 11) {
var j = 1;
while (j < 6) {
thisAlien = eval('Row' + j + i);
if (thisAlien._visible) {
allGone = false;
tellTarget ('thisAlien') {
if (_root.shifts == 0) {
_y = _root.alienHeight + 30 * this.j;
} else {
_x = _x + _root.dir;
if (_currentframe == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
if (_y > 320) {
_root.lives = 0;
}
if (_x < _root.xMin) {
_root.xMin = _x;
}
if (_x > _root.xMax) {
_root.xMax = _x;
}
}
}
++j;
}
++i;
}
if (shifts == 0) {
xMin = 400;
xMax = 0;
shifts = 1;
}
if (allGone) {
Sound.gotoAndPlay('levelup');
Magic += random(50);
bombs += 2;
score += 1000;
if (lives < 9) {
++lives;
}
gotoAndPlay(9);
}
}
}
time = getTimer();
}
var i = 0;
while (i < 11) {
var j = 1;
while (j < 6) {
thisAlien = eval('Row' + j + i);
if (LaserFire.hitTest(thisAlien) or BombI.bigboom.hitTest(thisAlien)) {
Sound.gotoAndPlay('Kill');
++aliensDead;
LaserFire._y = -20;
Explode._x = thisAlien._x;
Explode._y = thisAlien._y;
Explode.gotoAndPlay(2);
removeMovieClip(thisAlien);
if (j == 5 || j == 4) {
score += 10;
} else {
if (j == 3 || j == 2) {
score += 20;
} else {
score += 40;
}
}
}
++j;
}
++i;
}
tellTarget ('LaserFire') {
if (_visible) {
_y = _y - 12;
if (_y > 280) {
var b = 10;
while (b < 50) {
block = eval('_root.Block' + b);
if (block._visible && hitTest(block)) {
_y = 0;
if (block._currentframe == 4) {
block._visible = false;
} else {
block.nextFrame();
}
}
++b;
}
}
if (_y < 40) {
_visible = false;
_y = 392;
}
}
}
if (LaserFire.hitTest(Spaceship) && Spaceship._currentframe == 1) {
Sound.gotoAndPlay('KillSS');
LaserFire._y = -20;
shipScore = random(6) + 1;
score += 50 * shipScore;
Spaceship.gotoAndStop(shipScore + 1);
SsSound.gotoAndStop(1);
shipScore = 40;
}
var fire = 4;
while (fire > 0) {
if (!AlienFire4._visible && random(20) > 1 && fire == 4) {
fire = 3;
}
alienFire = eval('AlienFire' + fire);
tellTarget ('alienFire') {
if (_visible) {
if (this.fire == 4) {
_y = _y + 12;
} else {
_y = _y + 8;
}
if (_y > 412) {
_visible = false;
}
} else {
if (!_root.newLife && random(170 - _root.alienHeight) < 1) {
var i = random(11);
var j = 5;
while (j > 0) {
firePos = eval('_root.Row' + j + i);
if (firePos._visible) {
_x = firePos._x;
_y = firePos._y + 16;
_visible = true;
j = 0;
}
--j;
}
}
}
if (_y > 290 && _visible) {
var b = 10;
while (b < 50) {
block = eval('_root.Block' + b);
if (block._visible && hitTest(block)) {
_visible = false;
if (block._currentframe == 4) {
block._visible = false;
} else {
block.nextFrame();
}
}
++b;
}
}
}
if (!newLife && alienFire._visible && alienFire.hitTest(LaserBase)) {
Sound.gotoAndPlay('Boom');
alienFire._visible = false;
eval('Life' + lives)._visible = false;
LaserBase.gotoAndStop(2);
newLife = 3;
--lives;
}
--fire;
}
if (lives == 0) {
LaserBase.gotoAndStop(2);
gotoAndPlay('Game Over');
}
if (Magic > 100) {
Magic = 100;
}
if (MMlife < 0) {
MagicMissle._y = -20;
MMlife = 2;
}
tellTarget ('MagicMissle') {
if (_visible) {
_y = _y - 12;
if (_y > 280) {
var b = 10;
while (b < 50) {
block = eval('_root.Block' + b);
if (block._visible && hitTest(block)) {
_y = 0;
if (block._currentframe == 4) {
block._visible = false;
} else {
block.nextFrame();
}
}
++b;
}
}
if (_y < 40) {
_visible = false;
_root.MMlife = 2;
_y = 392;
}
}
}
if (MagicMissle.hitTest(Spaceship) && Spaceship._currentframe == 1) {
Sound.gotoAndPlay('KillSS');
MMlife -= 1;
shipScore = random(6) + 1;
score += 50 * shipScore;
Spaceship.gotoAndStop(shipScore + 1);
SsSound.gotoAndStop(1);
shipScore = 40;
}
var i = 0;
while (i < 11) {
var j = 1;
while (j < 6) {
thisAlien = eval('Row' + j + i);
if (MagicMissle.hitTest(thisAlien)) {
Sound.gotoAndPlay('Kill');
++aliensDead;
MMlife -= 1;
Explode._x = thisAlien._X;
Explode._y = thisAlien._y;
Explode.gotoAndPlay(2);
removeMovieClip(thisAlien);
if (j == 5 || j == 4) {
score += 10;
} else {
if (j == 3 || j == 2) {
score += 20;
} else {
score += 40;
}
}
}
++j;
}
++i;
}
}
frame 18 {
gotoAndPlay('Loop');
}
frame 19 {
i = 0;
while (i < 11) {
j = 1;
while (j < 6) {
removeMovieClip('Row' + j + i);
++j;
}
++i;
}
}
frame 23 {
stopAllSounds();
stop();
}
movieClip 311 {
frame 49 {
stop();
_root.play();
}
}
frame 24 {
bgSound = new Sound(this);
bgSound.attachSound('gameover');
bgSound.start(0, 99);
stop();
}
button 317 {
on (release) {
nextFrame();
}
}
frame 25 {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + 'Z';
par227.c2NvcmUx = (par227.c2NvcmUx.split('0')).join('U');
par227.c2NvcmUx = (par227.c2NvcmUx.split('')).join('A');
par227.c2NvcmUx = (par227.c2NvcmUx.split('AU')).join('Y');
par227.c2NvcmUx = (par227.c2NvcmUx.split('A1')).join('B');
par227.c2NvcmUx = (par227.c2NvcmUx.split('.')).join('N');
par227.flashkey = (par227.flashkey.split('=')).join('');
par227.SU0249 = (par227.SU0249.split('=')).join('');
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad('http://rankz.armorbot.com/submit/as3_v0.php', par228, 'POST');
}
bXlnYW1lX25hbWVfdmFyaWFibGU = namevar;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
__rankz_send__('Mjk2OWolZSVhJW4lcw==', 'b1J4b0F6d1E=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = 'Mjk2OWolZSVhJW4lcw==';
rankz_t10_send.flashkey = 'b1J4b0F6d1E=';
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');
}