Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
music = new Sound();
music.attachSound("intro");
music.start(0, 20);
beep = new Sound();
beep.attachSound("pulse");
click = new Sound();
click.attachSound("clickity");
title._alpha = 95;
instructinos = false;
options = false;
aliens = {};
aliens.groundSpeed = 4;
aliens.one = {};
aliens.one.shootCounter = 32;
aliens.two = {};
aliens.two.changeDirectionCounter = 20;
aliens.two.shootCounter = 30;
aliens.three = {};
aliens.three.changeDirectionCounter = 13;
aliens.four = {};
aliens.four.changeDirectionCounter = 15;
aliens.four.shootCounter = 35;
aliens.five = {};
aliens.five.changeDirectionCounter = 20;
aliens.five.shootCounter = 25;
aliens.six = {};
aliens.six.shootCounter1 = 15;
aliens.six.shootCounter2 = 45;
aliens.six.changeDirectionCounter = 20;
aliens.seven = {};
aliens.seven.shootCounter = 40;
title.bh.playMe.onRelease = function () {
if ((!instructions) && (!options)) {
music.stop();
if (!soundMute) {
click.start();
}
gotoAndPlay (24);
}
};
title.bh.instructions.onRelease = function () {
if ((!instructions) && (!options)) {
instructions = true;
_root.attachMovie("instructionBox", "instruct", 8000);
instruct._x = 275;
instruct._y = 200;
if (!soundMute) {
click.start();
}
}
};
title.bh.options.onRelease = function () {
if ((!instructions) && (!options)) {
_root.attachMovie("option", "opt", 8000);
options = true;
opt._x = 278.8;
opt._y = 242.9;
if (!musicMute) {
opt.off.radiogroup.setState(true);
}
if (!soundMute) {
opt.off1.setState(true);
}
if (!soundMute) {
click.start();
}
trace(opt.off1.getEnabled());
}
};
musicMute = false;
soundMute = false;
title.bh.options.onRelease = function () {
if ((!instructions) && (!options)) {
_root.attachMovie("option", "opt", 8000);
options = true;
opt._x = 278.8;
opt._y = 242.9;
if (!soundMute) {
click.start();
}
}
};
Frame 23
gotoAndPlay (5);
Frame 24
function enem1(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 5;
path.speed = random(2);
path.speed++;
path.shootCounter = 0;
}
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((10 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (110 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
if (path._y > 400) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
path._y = path._y + (path.speed + tileMap.groundSpeed);
path.shootCounter++;
if (path.shootCounter == aliens.one.shootCounter) {
var depth = tileMap.enemyBulletDepth;
_root.attachMovie("enemyBullet", "eBullet" + depth, depth);
_root["eBullet" + depth]._x = path._x + 20;
_root["eBullet" + depth]._y = path._y + 45;
_root["eBullet" + depth].xSpeed = 0;
_root["eBullet" + depth].ySpeed = 17;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
}
function enem2(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 5;
path.speed = random(2);
path.speed++;
path.changeDirectionCounter = 10;
path.shootCounter = 0;
if (tileMap.level < 3) {
path.moveX = 1;
} else {
path.moveX = 2.5;
}
}
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((10 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (110 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
if (path._y > 400) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
path._y = path._y + (path.speed + tileMap.groundSpeed);
path._x = path._x + path.moveX;
path.shootCounter++;
if (path.changeDirectionCounter == aliens.two.changeDirectionCounter) {
var dir = random(2);
if (dir == 1) {
var mult = 1;
} else {
var mult = -1;
}
path.changeDirectionCounter = 0;
path.moveX = path.moveX * mult;
}
path.changeDirectionCounter++;
if (path.shootCounter == aliens.two.shootCounter) {
var depth = tileMap.enemyBulletDepth;
_root.attachMovie("enemyBullet", "eBullet" + depth, depth);
_root["eBullet" + depth]._x = path._x + 20;
_root["eBullet" + depth]._y = path._y + 45;
_root["eBullet" + depth].xSpeed = 0;
_root["eBullet" + depth].ySpeed = 17;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
if (((path._x + path._width) > 550) || (path._x < 103)) {
path.moveX = path.moveX * -1;
}
}
function enem3(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 5;
var variableSpeed = random(4);
path.speed = 5 + variableSpeed;
path.changeDirectionCounter = 5;
}
if (path.changeDirectionCounter == aliens.three.changeDirectionCounter) {
path.changeDirectionCounter = 0;
var xdiff = (airplane._x - path._x);
var ydiff = (airplane._y - path._y);
path._rotation = Math.atan2(ydiff, xdiff) * conv;
path.moveX = ((Math.sin((path._rotation - 90) * conv2) * path.speed) * -1) * 1.2;
path.moveY = (Math.cos((path._rotation - 90) * conv2) * path.speed) * 1.2;
}
path._x = path._x + path.moveX;
path._y = path._y + path.moveY;
path.changeDirectionCounter++;
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y - 25;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((10 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (100 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
if (path.hitTest(airplane)) {
if (airplane.typeOfPowerUp != "invincable") {
airplane.shieldDamage++;
if (airplane.shieldBuffer == airplane.shieldDamage) {
airplane.shields--;
airplane.shieldDamage = 0;
}
playerInfo.shields.gotoAndStop(_root.airplane.shields);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y - 25;
tileMap.enemyBulletDepth++;
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
if ((path._y + 10) > airplane._y) {
path.rotation = 180;
path.moveX = 0;
path.moveY = 7;
path.changeDirectionCounter = 20;
}
if (path._y > 410) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
}
function enem4(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 5;
var variableSpeed = random(3);
path.speed = 5 + variableSpeed;
path.changeDirectionCounter = 5;
path.shootCounter = 10;
}
if (path.changeDirectionCounter == aliens.four.changeDirectionCounter) {
path.changeDirectionCounter = 0;
var xdiff = (airplane._x - path._x);
var ydiff = (airplane._y - path._y);
path._rotation = Math.atan2(ydiff, xdiff) * conv;
path.moveX = (Math.sin((path._rotation - 90) * conv2) * path.speed) * -1;
path.moveY = Math.cos((path._rotation - 90) * conv2) * path.speed;
if (path.shootCounter >= aliens.four.shootCounter) {
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = path._x;
_root["eBullet" + tileMap.enemyBulletDepth]._y = path._y;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = path.moveX * 2;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = path.moveY * 2;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = path._rotation - 90;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
}
path._x = path._x + path.moveX;
path._y = path._y + path.moveY;
path.changeDirectionCounter++;
path.shootCounter++;
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y - 25;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((15 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (125 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
if (path.hitTest(airplane)) {
if (airplane.typeOfPowerUp != "invincable") {
airplane.shieldDamage++;
if (airplane.shieldBuffer == airplane.shieldDamage) {
airplane.shields--;
airplane.shieldDamage = 0;
}
playerInfo.shields.gotoAndStop(_root.airplane.shields);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y - 25;
tileMap.enemyBulletDepth++;
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
if ((path._y + 10) > airplane._y) {
path.rotation = 180;
path.moveX = 0;
path.moveY = 7;
path.changeDirectionCounter = 20;
}
if (path._y > 410) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
}
function enem5(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 5;
path.speed = random(3);
path.speed = path.speed + 4;
path.changeDirectionCounter = 7;
path.shootCounter = 10;
if (path._x < 105) {
path._x = path._x + 35;
}
}
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((15 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (125 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
if (path._y > 400) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
if ((path.changeDirectionCounter == aliens.five.changeDirectionCounter) && (path._y < (airplane._y - 25))) {
var dir = random(2);
if (dir == 1) {
var mult = 1;
} else {
var mult = -1;
}
path.changeDirectionCounter = 0;
path.moveX = 3 * mult;
var xdiff = (airplane._x - path._x);
var ydiff = (airplane._y - path._y);
path.turret._rotation = Math.atan2(ydiff, xdiff) * conv;
if (path.shootCounter >= aliens.five.shootCounter) {
var rot = path.turret._rotation;
path.moveA = (Math.sin((rot - 90) * conv2) * 6) * -1;
path.moveB = Math.cos((rot - 90) * conv2) * 6;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = path._x;
_root["eBullet" + tileMap.enemyBulletDepth]._y = path._y;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = path.moveA * 2;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = path.moveB * 2;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = path.turret._rotation - 90;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
}
path._y = path._y + path.speed;
path._x = path._x + path.moveX;
path.shootCounter++;
path.changeDirectionCounter++;
if (((path._x + 30) > 550) || ((path._x - 30) < 103)) {
path.moveX = path.moveX * -1;
}
}
function enem6(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 15;
path.speed = random(3);
path.speed = path.speed + 2;
path.changeDirectionCounter = 5;
path.shootCounter = 0;
path.prevLife = 15;
}
if (path.life < path.prevLife) {
bang.start();
path.prevLife = path.life;
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((20 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (150 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
}
if (path._y > 400) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
path._y = path._y + path.speed;
path._x = path._x + path.moveX;
path.shootCounter++;
if (path.changeDirectionCounter == aliens.six.changeDirectionCounter) {
var dir = random(2);
if (dir == 1) {
var mult = 1;
} else {
var mult = -1;
}
path.changeDirectionCounter = 0;
path.moveX = 2 * mult;
}
path.changeDirectionCounter++;
if (path.shootCounter == aliens.six.shootCounter1) {
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = path._x + (path._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = path._y + path._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = 0;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = 17;
tileMap.enemyBulletDepth++;
}
if (path.shootCounter == aliens.six.shootCounter2) {
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = (path._x + path._width) - 5;
_root["eBullet" + tileMap.enemyBulletDepth]._y = (path._y + path._height) - 20;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = 0;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = 17;
tileMap.enemyBulletDepth++;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = path._x + 5;
_root["eBullet" + tileMap.enemyBulletDepth]._y = (path._y + path._height) - 20;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = 0;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = 17;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
if (((path._x + path._width) > 550) || (path._x < 103)) {
path.moveX = path.moveX * -1;
}
}
function enem7(b) {
var path = _root["enemy" + b];
if (path.justCreated) {
path.justCreated = false;
path.life = 15;
path.speed = random(4);
path.speed = path.speed + 2;
path.changeDirectionCounter = 5;
path.shootCounter = 0;
path.prevLife = 15;
path.flyOver = 0;
path._x = random(450);
if ((path._x - 32) < 103) {
path._x = 150;
}
path._y = -30;
path.xStart = path._x;
var xbot = random(515);
if ((xbot - 32) < 103) {
xbot = 150;
}
path.xEnd = xbot;
var xdiff = (xbot - path._x);
var ydiff = (400 - path._y);
path._rotation = Math.atan2(ydiff, xdiff) * conv;
path.moveX = (Math.sin((path._rotation - 90) * conv2) * 8) * -1;
path.moveY = Math.cos((path._rotation - 90) * conv2) * 8;
}
if (path.life < path.prevLife) {
bang.start();
path.prevLife = path.life;
if (path.life <= 0) {
var dropDecision = random(20);
if (dropDecision == 15) {
objectDropped(path._x, path._y);
}
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["ex" + tileMap.enemyBulletDepth]._x = path._x;
_root["ex" + tileMap.enemyBulletDepth]._y = path._y;
tileMap.enemies[b] = 0;
tileMap.enemyBulletDepth++;
airplane.score = airplane.score + (((20 * path.scoreModifier) * airplane.scoreModifier) * path.scoreModifier1);
airplane.cash = airplane.cash + (150 * path.scoreModifier);
var sound = random(6);
if ((sound == 4) && (!soundMute)) {
die1.start();
}
path.removeMovieClip();
}
}
path._x = path._x + path.moveX;
path._y = path._y + path.moveY;
path.shootCounter++;
if ((path._y >= 400) && (path.flyOver < 2)) {
path._rotation = path._rotation - 180;
path.moveX = path.moveX * -1;
path.moveY = path.moveY * -1;
path._y = path._y - 35;
path.flyOver++;
}
if ((path._y < -50) && (path.flyOver < 2)) {
path._rotation = path._rotation - 180;
path.moveX = path.moveX * -1;
path.moveY = path.moveY * -1;
path.flyOver++;
}
if (path._y > 440) {
path.removeMovieClip();
tileMap.enemies[b] = 0;
}
if ((path.shootCounter >= aliens.seven.shootCounter) && (path._y < 320)) {
var xdiff = (airplane._x - path._x);
var ydiff = (airplane._y - path._y);
path.turret._rotation = Math.atan2(ydiff, xdiff) * conv;
var rot = path.turret._rotation;
path.turret._rotation = path.turret._rotation - path._rotation;
path.moveA = (Math.sin((rot - 90) * conv2) * 6) * -1;
path.moveB = Math.cos((rot - 90) * conv2) * 6;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = path._x;
_root["eBullet" + tileMap.enemyBulletDepth]._y = path._y;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = path.moveA * 2;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = path.moveB * 2;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rot - 90;
tileMap.enemyBulletDepth++;
path.shootCounter = 0;
}
}
function bossExplode(xOffset, yOffset) {
var k = 0;
while (k < 10) {
_root.attachMovie("explosion", "ex" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
var explX = random(50);
var explY = random(30);
var choice = random(2);
var choice2 = random(2);
if (choice == 0) {
explX = explX * -1;
}
if (choice2 == 0) {
explY = explY * -1;
}
_root["ex" + tileMap.enemyBulletDepth]._x = (boss._x + explX) + xOffset;
_root["ex" + tileMap.enemyBulletDepth]._y = (boss._y + explY) + yOffset;
tileMap.enemyBulletDepth++;
if (!soundMute) {
bang.start();
}
k++;
}
}
function boss1() {
if (boss.justCreated) {
boss._x = 200;
boss._y = -boss._height;
boss.life = 150;
boss.justCreated = false;
boss.xmov = 3;
boss.changeDirection = 0;
boss.shootCounter = 0;
_root.attachMovie("bossLifeHolder", "bLifeBar", 8000);
bLifeBar.life2._width = boss.life;
bLifeBar.life._width = boss.life;
bLifeBar._x = 110;
bLifeBar._y = 20;
if (!musicMute) {
music.start(0, 35);
music.setVolume(100);
}
}
if (boss.life <= 0) {
bossExplode(boss._width / 2, boss._height / 2);
airplane.score = airplane.score + 200;
airplane.cash = airplane.cash + 400;
tileMap.bossVisible = false;
tileMap.boss = false;
tileMap.currentRow = tileMap.map.length + 1;
bLifeBar.removeMovieClip();
boss.removeMovieClip();
music.stop();
}
if (boss._y < (10 - (boss._height / 2))) {
boss._y = boss._y + 2;
} else {
if (boss.changeDirection == 15) {
boss.changeDirection = 0;
var choice = random(2);
if (choice == 0) {
boss.xmov = boss.xmov * -1;
}
}
boss._x = boss._x + boss.xmov;
boss.changeDirection++;
boss.shootCounter++;
if ((boss._x < 105) || (((boss._x + boss._width) + 5) > 550)) {
boss.xmov = boss.xmov * -1;
}
if (boss.shootCounter == 25) {
boss.gotoAndPlay("shooting");
var rotation = 145;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 45;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = (boss._x + (boss._width / 2)) + 5;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 90;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
tileMap.enemyBulletDepth++;
if (!soundMute) {
lazer.start();
}
boss.shootCounter = 0;
}
}
}
function boss2() {
if (boss.justCreated) {
boss._x = 200;
boss._y = -boss._height;
boss.life = 280;
boss.justCreated = false;
boss.xmov = 3;
boss.changeDirection = 0;
boss.shootCounter = 0;
boss.side = boss.width / 2;
boss.chargeCounter = 0;
boss.charging = false;
boss.chargeState = "down";
boss.hitPlayer = false;
_root.attachMovie("bossLifeHolder", "bLifeBar", 8000);
bLifeBar.life2._width = boss.life;
bLifeBar.life._width = boss.life;
bLifeBar._x = 110;
bLifeBar._y = 20;
if (!musicMute) {
music.start(0, 35);
music.setVolume(100);
}
}
if (boss.life <= 0) {
bossExplode();
airplane.score = airplane.score + 300;
airplane.cash = airplane.cash + 500;
tileMap.bossVisible = false;
tileMap.boss = false;
tileMap.currentRow = tileMap.map.length + 1;
bLifeBar.removeMovieClip();
boss.removeMovieClip();
music.stop();
}
if (boss._y < 10) {
boss._y = boss._y + 2;
} else if (!boss.charging) {
if (boss.changeDirection == 15) {
boss.changeDirection = 0;
var choice = random(2);
if (choice == 0) {
boss.xmov = boss.xmov * -1;
}
}
boss._x = boss._x + boss.xmov;
boss.changeDirection++;
boss.shootCounter++;
boss.chargeCounter++;
if (((boss._x - boss.side) < 105) || ((boss._x + boss.side) > 550)) {
boss.xmov = boss.xmov * -1;
}
if (boss.shootCounter >= 18) {
var xdiff = (airplane._x - boss._x);
var ydiff = (airplane._y - boss._y);
boss._rotation = Math.atan2(ydiff, xdiff) * conv;
boss.moveX = (Math.sin((boss._rotation - 90) * conv2) * 8) * -1;
boss.moveY = Math.cos((boss._rotation - 90) * conv2) * 8;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX * 2;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY * 2;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = boss._rotation - 90;
tileMap.enemyBulletDepth++;
if (!soundMute) {
lazer.start();
}
boss.shootCounter = 0;
}
if (boss.chargeCounter >= 30) {
boss.charging = true;
}
} else if (boss.charging) {
boss.chargeCounter = 0;
if ((!boss.hitPlayer) && (boss.hitTest(airplane))) {
airplane.shields--;
airplane.hit = true;
airplane.gotoAndPlay("hit");
playerInfo.shields.gotoAndStop(_root.airplane.shields);
if (!soundMute) {
bang.start();
}
boss.hitPlayer = true;
}
if (boss.chargeState == "down") {
boss._y = boss._y + 15;
if (boss._y > 400) {
boss.chargeState = "up";
}
} else if (boss.chargeState == "up") {
boss._y = boss._y - 20;
if (boss._y < 10) {
boss.chargeState = "down";
boss.charging = false;
boss.hitPlayer = false;
}
}
}
}
function boss3() {
if (boss.justCreated) {
boss._x = 200;
boss._y = -boss._height;
boss.life = 230;
boss.justCreated = false;
boss.xmov = 3;
boss.changeDirection = 0;
boss.shootCounter = 0;
_root.attachMovie("bossLifeHolder", "bLifeBar", 8000);
bLifeBar.life2._width = boss.life;
bLifeBar.life._width = boss.life;
bLifeBar._x = 110;
bLifeBar._y = 20;
if (!musicMute) {
music.start(0, 35);
music.setVolume(100);
}
}
if (boss.life <= 0) {
bossExplode(boss._width / 2, boss._height / 2);
airplane.score = airplane.score + 400;
airplane.cash = airplane.cash + 600;
tileMap.bossVisible = false;
tileMap.boss = false;
tileMap.currentRow = tileMap.map.length + 1;
bLifeBar.removeMovieClip();
boss.removeMovieClip();
music.stop();
}
if (boss._y < 10) {
boss._y = boss._y + 2;
} else {
if (boss.changeDirection == 15) {
boss.changeDirection = 0;
var choice = random(2);
if (choice == 0) {
boss.xmov = boss.xmov * -1;
}
}
boss._x = boss._x + boss.xmov;
boss.changeDirection++;
boss.shootCounter++;
if ((boss._x < 105) || (((boss._x + boss._width) + 5) > 550)) {
boss.xmov = boss.xmov * -1;
}
if (boss.shootCounter == 25) {
boss.gotoAndPlay("shooting");
var rotation = 145;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 45;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = (boss._x + (boss._width / 2)) + 5;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 90;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
}
if (boss.shootCounter == 35) {
boss.gotoAndPlay("shooting");
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + 17;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + 90;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = 0;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = 17;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + 261;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + 90;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = 0;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = 17;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
boss.shootCounter = 0;
}
}
}
function boss4() {
if (boss.justCreated) {
boss._x = 200;
boss._y = -boss._height;
boss.life = 450;
boss.justCreated = false;
boss.xmov = 3;
boss.changeDirection = 0;
boss.shootCounter = 0;
boss.side = boss.width / 2;
boss.chargeCounter = 0;
boss.charging = false;
boss.chargeState = "down";
boss.hitPlayer = false;
_root.attachMovie("bossLifeHolder", "bLifeBar", 8000);
bLifeBar.life2._width = boss.life;
bLifeBar.life._width = boss.life;
bLifeBar._x = 110;
bLifeBar._y = 20;
if (!musicMute) {
music.start(0, 35);
music.setVolume(100);
}
}
if (boss.life <= 0) {
bossExplode(boss._width / 2, boss._height / 2);
airplane.score = airplane.score + 300;
airplane.cash = airplane.cash + 500;
tileMap.bossVisible = false;
tileMap.boss = false;
tileMap.currentRow = tileMap.map.length + 1;
bLifeBar.removeMovieClip();
boss.removeMovieClip();
music.stop();
}
if (boss._y < 10) {
boss._y = boss._y + 2;
} else if (!boss.charging) {
if (boss.changeDirection == 15) {
boss.changeDirection = 0;
var choice = random(2);
if (choice == 0) {
boss.xmov = boss.xmov * -1;
}
}
boss._x = boss._x + boss.xmov;
boss.changeDirection++;
boss.shootCounter++;
boss.chargeCounter++;
if ((boss._x < 105) || (((boss._x + boss._width) + 5) > 550)) {
boss.xmov = boss.xmov * -1;
}
if (boss.shootCounter == 25) {
var rotation = 145;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 45;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = (boss._x + (boss._width / 2)) + 5;
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
var rotation = 90;
boss.moveX = (Math.sin((rotation - 90) * conv2) * 17) * -1;
boss.moveY = Math.cos((rotation - 90) * conv2) * 17;
_root.attachMovie("enemyBullet", "eBullet" + tileMap.enemyBulletDepth, tileMap.enemyBulletDepth);
_root["eBullet" + tileMap.enemyBulletDepth]._x = boss._x + (boss._width / 2);
_root["eBullet" + tileMap.enemyBulletDepth]._y = boss._y + boss._height;
_root["eBullet" + tileMap.enemyBulletDepth].xSpeed = boss.moveX;
_root["eBullet" + tileMap.enemyBulletDepth].ySpeed = boss.moveY;
_root["eBullet" + tileMap.enemyBulletDepth]._rotation = rotation - 90;
if (!soundMute) {
lazer.start();
}
tileMap.enemyBulletDepth++;
boss.shootCounter = 0;
}
if (boss.chargeCounter >= 30) {
boss.charging = true;
boss.gotoAndPlay("ram");
}
} else if (boss.charging) {
boss.chargeCounter = 0;
if ((!boss.hitPlayer) && (boss.hitTest(airplane))) {
airplane.shields--;
airplane.hit = true;
airplane.gotoAndPlay("hit");
playerInfo.shields.gotoAndStop(_root.airplane.shields);
if (!soundMute) {
bang.start();
}
boss.hitPlayer = true;
}
if (boss.chargeState == "down") {
boss._y = boss._y + 15;
if (boss._y > 400) {
boss.chargeState = "up";
boss.gotoAndPlay("normal");
}
} else if (boss.chargeState == "up") {
boss._y = boss._y - 20;
if (boss._y < 10) {
boss.chargeState = "down";
boss.charging = false;
boss.hitPlayer = false;
}
}
}
}
function createEnemy(b) {
var depth = (3000 + b);
var kind = random(tileMap.map[0][1]);
kind = kind + 2;
_root.attachMovie("enem" + tileMap.map[0][kind], "enemy" + b, depth);
tileMap.enemies[b] = tileMap.map[0][kind];
_root["enemy" + b].justCreated = true;
_root["enemy" + b].scoreModifier = 1;
_root["enemy" + b].scoreModifier1 = 1;
var special = random(10);
if (special == 5) {
var myColor = new Color(_root["enemy" + b]);
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"70", gb:"50", ba:"70", bb:"50", aa:"15", ab:"70"};
myColor.setTransform(myColorTransform);
_root["enemy" + b].scoreModifier = 2;
}
_root["enemy" + b]._x = random(550);
if (_root["enemy" + b]._x < 101) {
_root["enemy" + b]._x = 102;
}
if ((_root["enemy" + b]._x + _root["enemy" + b]._width) > 550) {
_root["enemy" + b]._x = (550 - _root["enemy" + b]._width) - 5;
}
_root["enemy" + b]._y = -30;
}
function moveEnemies() {
var b = 1;
while (b <= tileMap.enemiesOnScreen) {
switch (tileMap.enemies[b]) {
case 0 :
if (!tileMap.bossVisible) {
createEnemy(b);
}
break;
case 1 :
enem1(b);
break;
case 2 :
enem2(b);
break;
case 3 :
enem3(b);
break;
case 4 :
enem4(b);
break;
case 5 :
enem5(b);
break;
case 6 :
enem6(b);
break;
case 7 :
enem7(b);
}
b++;
}
}
function moveBoss() {
switch (tileMap.bossType) {
case 1 :
boss1();
return;
case 2 :
boss2();
return;
case 3 :
boss3();
return;
case 4 :
boss4();
}
}
function objectDropped(x, y) {
var choice = random(5);
_root.attachMovie("droppedPowerUps", "d" + tileMap.pUpDepth, tileMap.pUpDepth);
_root["d" + tileMap.pUpDepth]._x = x;
_root["d" + tileMap.pUpDepth]._y = y;
switch (choice) {
case 0 :
_root["d" + tileMap.pUpDepth].typePUp = "score";
_root["d" + tileMap.pUpDepth].mod = 2;
_root["d" + tileMap.pUpDepth].clips = 2;
_root["d" + tileMap.pUpDepth].pUps.gotoAndStop(2);
_root["d" + tileMap.pUpDepth].eTime = 15000;
break;
case 1 :
_root["d" + tileMap.pUpDepth].typePUp = "score";
_root["d" + tileMap.pUpDepth].mod = 3;
_root["d" + tileMap.pUpDepth].clips = 3;
_root["d" + tileMap.pUpDepth].pUps.gotoAndStop(3);
_root["d" + tileMap.pUpDepth].eTime = 15000;
break;
case 2 :
_root["d" + tileMap.pUpDepth].typePUp = "score";
_root["d" + tileMap.pUpDepth].mod = 5;
_root["d" + tileMap.pUpDepth].clips = 4;
_root["d" + tileMap.pUpDepth].pUps.gotoAndStop(4);
_root["d" + tileMap.pUpDepth].eTime = 15000;
break;
case 3 :
_root["d" + tileMap.pUpDepth].typePUp = "gun";
_root["d" + tileMap.pUpDepth].clips = 5;
_root["d" + tileMap.pUpDepth].pUps.gotoAndStop(5);
_root["d" + tileMap.pUpDepth].eTime = 15000;
break;
case 4 :
_root["d" + tileMap.pUpDepth].typePUp = "invincable";
_root["d" + tileMap.pUpDepth].clips = 6;
_root["d" + tileMap.pUpDepth].pUps.gotoAndStop(6);
_root["d" + tileMap.pUpDepth].eTime = 15000;
}
tileMap.pUpDepth++;
if (tileMap.pUpDepth >= 4500) {
tileMap.pUpDepth = 4001;
}
}
function powerUpUpdate() {
var time = getTimer();
var timeLeft = Math.ceil((airplane.pUpEndTime - time) / 1000);
if (timeLeft > 9) {
timer.time.text = "00:" + timeLeft;
} else {
timer.time.text = "00:0" + timeLeft;
}
if (timeLeft == timerCountdown) {
timerCountdown--;
beep.start();
}
if (time >= airplane.pUpEndTime) {
timerCountdown = 3;
airplane.powerUp = false;
if (airplane.typeOfPowerUp == "score") {
airplane.scoreModifier = 1;
}
if (_root.airplane.typeOfPowerUp == "invincable") {
_root.airplane._alpha = 100;
}
airplane.typeOfPowerUp = 0;
timer.removeMovieClip();
playerInfo.pups.gotoAndStop(1);
}
}
function captureKeys() {
if (airplane._y < airplane.scrolly) {
airplane._y = airplane.scrolly - 8;
airPlane.slowDown = 50;
airplane.gotoAndPlay(15);
if (tileMap.groundSpeed <= 10) {
tileMap.groundSpeed = tileMap.groundSpeed + 0.1;
}
}
if (airplane._y > 380) {
airplane._y = 380;
}
if (airplane._x >= 530) {
airplane._x = 530;
}
if (airplane._x <= 125) {
airplane._x = 125;
}
if (Key.isDown(90)) {
if ((airplane.missiles > 0) && (airplane.shootCounter <= 0)) {
if (!soundMute) {
rocket.start();
}
airplane.shootCounter = airPlane.shootWait;
_root.attachMovie("missile", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x;
_root["bullet" + airplane.bulletDepth]._y = airplane._y - 5;
airplane.missiles--;
playerInfo.missiles.text = airplane.missiles;
airplane.bulletDepth++;
}
}
if (Key.isDown(88)) {
if ((airplane.bombs > 0) && (airplane.shootCounter <= 0)) {
if (!soundMute) {
rocket.start();
}
airplane.shootCounter = airPlane.shootWait;
_root.attachMovie("bomb", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x;
_root["bullet" + airplane.bulletDepth]._y = airplane._y - 5;
airplane.bombs--;
playerInfo.bombs.text = airplane.bombs;
airplane.bulletDepth++;
}
}
var xMove = (airplane._x - airplane.lastXMove);
if (xMove > 0) {
airplane.gotoAndStop(18);
} else if (xMove < 0) {
airplane.gotoAndStop(17);
} else if (tileMap.groundSpeed < 8) {
airplane.gotoAndPlay(1);
}
airplane.lastXMove = airplane._x;
}
conv = 57.2957795130823;
conv2 = (Math.PI/180);
tileMap = {};
tileMap.nameofTileMC = "tile";
tileMap.tileWidth = 50;
tileMap.tileHeight = 50;
tileMap.visibleTilesX = 8;
tileMap.visibleTilesY = 8;
tileMap.holderDepth = 500;
tileMap.tileDepth = 1000;
tileMap.groundSpeed = 4;
tileMap.baseGroundSpeed = 4;
build = function (name, xpos, ypos, depth) {
if (tileMap.currentRow >= tileMap.map.length) {
tileMap.currentRow = tileMap.rowRepeat;
tileMap.mapRepeated++;
if ((tileMap.mapRepeated > tileMap.mapRepeat) && (!tileMap.bossVisible)) {
if (tileMap.boss == true) {
_root.attachMovie("boss" + tileMap.bossType, "boss", 7000);
boss.justCreated = true;
tileMap.bossVisible = true;
} else {
gotoAndPlay (26);
}
}
}
var temp = this.createEmptyMovieClip(name, depth);
var y = 0;
temp._x = xpos;
temp._y = ypos;
var bEnd = ((tileMap.currentRow + tileMap.visibleTilesY) - 1);
b = tileMap.currentRow;
while (b <= bEnd) {
a = 0;
while (a <= tileMap.visibleTilesX) {
temp.attachMovie(tileMap.nameofTileMC, ("T" + b) + a, tileMap.tileDepth);
temp[("T" + b) + a]._x = a * tileMap.tileWidth;
temp[("T" + b) + a]._y = y;
temp[("T" + b) + a].gotoAndStop(tileMap.map[b][a]);
tileMap.tileDepth++;
a++;
}
y = y + tileMap.tileHeight;
tileMap.currentRow++;
b++;
}
if (tileMap.tileDepth > 1800) {
tileMap.tileDepth = 1000;
}
};
moveGround = function () {
tempHold1._y = tempHold1._y + tileMap.groundSpeed;
tempHold2._y = tempHold2._y + tileMap.groundSpeed;
if (tempHold1._y > 400) {
var y = (tempHold2._y - 400);
tempHold1.removeMovieClip;
build("tempHold1", 100, y, 500);
} else if (tempHold2._y > 400) {
var y = (tempHold1._y - 400);
tempHold2.removeMovieClip;
build("tempHold2", 100, y, 501);
}
if (airplane.slowDown > 0) {
tileMap.groundSpeed = airplane.slowDown / 5;
airplane.slowDown--;
if (tileMap.groundSpeed <= tileMap.baseGroundSpeed) {
tileMap.groundSpeed = tileMap.baseGroundSpeed;
airplane.slowDown = 0;
}
}
};
map1 = [[1, 3, 1, 2, 4, 0, 0, 0, 0, 3, 1, 0, 1], [1, 2, 3, 1, 1, 1, 2, 1, 1], [1, 37, 38, 1, 1, 1, 1, 1, 1], [1, 39, 40, 1, 9, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 9, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 9, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 3, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 9, 1], [1, 2, 1, 1, 2, 1, 1, 1, 1], [1, 3, 1, 1, 1, 1, 1, 1, 2], [1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1], [1, 1, 9, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 2, 1, 1, 3, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1]];
map2 = [[2, 2, 1, 2, 0, 0, 0, 0, 0, 3, 1], [1, 2, 3, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 9, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 9, 1, 1, 1, 1, 1, 2, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1], [6, 5, 5, 5, 6, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 6, 5, 5, 5, 6, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [4, 4, 4, 4, 4, 4, 4, 4, 4], [5, 5, 6, 5, 5, 5, 7, 5, 5], [5, 6, 6, 6, 5, 5, 5, 5, 5], [5, 11, 5, 16, 17, 11, 5, 5, 5], [5, 5, 7, 15, 12, 5, 6, 5, 5], [5, 11, 5, 5, 5, 5, 5, 5, 5], [5, 5, 11, 5, 5, 6, 5, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 11, 5, 7, 5], [5, 5, 5, 5, 11, 5, 5, 5, 5], [5, 6, 5, 5, 5, 6, 5, 5, 5], [11, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [8, 8, 8, 8, 8, 8, 8, 8, 8], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map3 = [[3, 3, 1, 2, 3, 0, 0, 0, 0, 3, 1, 1], [5, 5, 5, 5, 5, 5, 5, 5, 5], [17, 5, 5, 5, 5, 5, 5, 5, 5], [14, 11, 5, 5, 6, 5, 5, 5, 5], [14, 5, 5, 5, 5, 5, 5, 5, 5], [12, 5, 5, 5, 5, 5, 16, 18, 17], [5, 5, 5, 5, 5, 5, 19, 41, 14], [5, 5, 5, 6, 5, 11, 19, 20, 14], [5, 5, 5, 5, 5, 5, 15, 13, 12], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [18, 17, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 5, 5, 6, 5, 5], [41, 14, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 7, 5, 5, 5, 5], [13, 12, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 16, 18, 18, 17, 5, 5, 5], [5, 11, 19, 42, 20, 14, 5, 5, 5], [5, 10, 19, 20, 20, 14, 5, 5, 5], [5, 5, 19, 20, 20, 14, 11, 5, 5], [5, 5, 15, 13, 13, 12, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map4 = [[3, 3, 1, 2, 3, 0, 0, 0, 0, 3, 1, 0], [5, 5, 5, 5, 5, 5, 21, 5, 5], [7, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 6, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 6, 5, 21, 5, 5], [5, 7, 5, 5, 5, 6, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 10, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 6, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 5, 11, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 6, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 6, 5, 5, 5, 21, 10, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [7, 5, 5, 7, 5, 5, 21, 5, 6], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 11, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 7, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 6, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 7, 5, 5, 5, 10, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 11, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 7, 5, 21, 5, 5], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 10, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 6, 5, 21, 5, 5], [5, 5, 5, 7, 5, 5, 21, 5, 5], [5, 6, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5]];
map5 = [[2, 2, 2, 4, 0, 0, 0, 0, 0, 3, 1, 0], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 42, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 42, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 42, 20, 14, 5], [19, 20, 20, 20, 41, 20, 20, 14, 5], [19, 20, 20, 20, 20, 43, 20, 14, 5], [19, 20, 20, 41, 20, 20, 20, 14, 5], [19, 41, 20, 20, 20, 20, 20, 14, 5], [19, 20, 42, 41, 20, 20, 42, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 43, 20, 20, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 41, 20, 20, 42, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 41, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 41, 20, 14, 5], [19, 41, 20, 20, 20, 20, 20, 14, 5], [19, 20, 42, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 42, 20, 20, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 42, 20, 20, 20, 41, 20, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 41, 14, 5], [19, 20, 42, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 41, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 41, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 42, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 20, 14, 5], [19, 20, 20, 20, 20, 20, 41, 14, 5], [19, 20, 41, 20, 20, 20, 20, 14, 5], [19, 42, 20, 20, 20, 20, 20, 14, 5]];
map6 = [[3, 3, 2, 3, 4, 0, 0, 0, 0, 3, 9, 0], [16, 18, 18, 18, 18, 18, 18, 18, 17], [19, 20, 20, 20, 20, 20, 20, 20, 14], [19, 20, 20, 20, 43, 20, 20, 20, 14], [19, 20, 20, 41, 20, 20, 20, 20, 14], [19, 20, 20, 20, 20, 20, 20, 20, 14], [19, 20, 20, 20, 20, 20, 20, 42, 14], [19, 20, 20, 20, 20, 20, 20, 20, 14], [19, 20, 41, 20, 20, 20, 20, 20, 14], [5, 6, 5, 5, 6, 5, 5, 5, 5], [11, 5, 16, 18, 18, 18, 18, 18, 18], [5, 5, 19, 20, 20, 20, 20, 20, 20], [5, 5, 19, 20, 41, 20, 20, 42, 20], [5, 5, 19, 20, 20, 20, 20, 20, 20], [5, 5, 19, 20, 20, 41, 20, 20, 42], [5, 5, 15, 13, 13, 13, 13, 13, 13], [5, 5, 11, 5, 5, 5, 5, 11, 5], [5, 5, 6, 5, 5, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [18, 18, 18, 18, 18, 18, 17, 5, 5], [20, 20, 20, 20, 20, 42, 14, 5, 5], [20, 20, 41, 20, 20, 20, 14, 11, 6], [20, 20, 20, 20, 20, 41, 14, 5, 5], [13, 13, 13, 13, 13, 13, 12, 7, 5], [5, 11, 5, 5, 5, 5, 10, 5, 5], [5, 5, 11, 5, 5, 5, 5, 5, 10], [5, 11, 16, 18, 18, 18, 17, 5, 5], [5, 5, 19, 20, 42, 20, 14, 5, 6], [7, 5, 15, 13, 13, 13, 12, 5, 5], [18, 18, 17, 5, 5, 5, 10, 5, 5], [19, 20, 14, 5, 5, 7, 5, 5, 5], [13, 13, 12, 5, 5, 5, 5, 5, 5], [5, 7, 5, 6, 5, 5, 6, 11, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 11, 5, 5, 7, 5, 10, 5, 5], [6, 5, 5, 6, 6, 5, 5, 5, 7], [5, 6, 5, 5, 5, 11, 5, 5, 11], [5, 5, 7, 5, 5, 5, 5, 6, 5], [5, 5, 5, 5, 10, 5, 5, 5, 5], [5, 6, 5, 5, 7, 5, 5, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 7, 5, 5, 5, 6, 5, 5], [5, 5, 5, 11, 7, 5, 6, 5, 5], [6, 5, 16, 18, 17, 5, 5, 5, 7], [5, 6, 19, 42, 14, 11, 5, 5, 11], [5, 5, 15, 13, 12, 5, 5, 6, 5], [5, 5, 5, 5, 10, 5, 5, 5, 5], [5, 7, 5, 5, 6, 5, 5, 10, 5], [5, 11, 5, 5, 5, 5, 5, 5, 5]];
map7 = [[3, 3, 2, 3, 5, 0, 0, 0, 0, 3, 1, 2], [11, 5, 27, 30, 30, 28, 5, 5, 5], [5, 5, 25, 22, 22, 24, 5, 5, 5], [5, 5, 26, 29, 29, 23, 5, 11, 5], [5, 11, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 6, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 5], [30, 28, 5, 5, 5, 5, 5, 5, 5], [22, 24, 11, 5, 5, 5, 10, 5, 5], [29, 23, 5, 5, 6, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 27, 30, 30], [5, 5, 6, 5, 5, 5, 25, 22, 22], [5, 5, 5, 5, 5, 11, 25, 22, 22], [5, 10, 5, 5, 5, 5, 26, 29, 29], [5, 5, 5, 6, 5, 5, 5, 11, 5], [11, 27, 28, 5, 5, 5, 5, 5, 5], [5, 26, 23, 5, 5, 5, 6, 5, 5], [5, 10, 5, 5, 6, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 11, 5], [5, 5, 5, 5, 5, 27, 30, 28, 5], [6, 5, 5, 5, 5, 26, 29, 23, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 11, 5, 5, 10, 5, 5, 5, 5], [5, 6, 6, 5, 5, 5, 5, 6, 5], [7, 5, 5, 5, 11, 27, 30, 28, 5], [6, 5, 5, 5, 5, 25, 22, 24, 5], [5, 5, 6, 5, 11, 25, 22, 24, 10], [5, 5, 5, 5, 5, 25, 22, 24, 5], [10, 5, 5, 5, 5, 26, 29, 23, 5], [5, 5, 11, 5, 6, 5, 5, 5, 5], [6, 27, 30, 28, 5, 5, 5, 6, 5], [5, 26, 29, 23, 5, 6, 5, 5, 5], [5, 5, 11, 5, 5, 5, 5, 5, 5], [5, 5, 5, 6, 5, 5, 10, 27, 28], [30, 28, 5, 5, 5, 5, 5, 26, 23], [22, 24, 11, 5, 5, 6, 5, 5, 5], [29, 23, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 6, 5, 5, 11], [5, 27, 28, 5, 5, 5, 5, 5, 5], [5, 25, 24, 11, 5, 5, 6, 5, 27], [10, 25, 24, 5, 5, 5, 5, 5, 26], [5, 26, 23, 5, 6, 5, 5, 5, 5], [7, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 27, 30, 28, 5], [5, 6, 5, 5, 5, 26, 29, 23, 11], [5, 5, 5, 5, 10, 5, 5, 6, 5]];
map8 = [[3, 3, 4, 1, 5, 0, 0, 0, 0, 3, 1, 0], [11, 5, 27, 30, 30, 30, 28, 5, 5], [5, 5, 25, 22, 22, 22, 24, 5, 5], [5, 5, 25, 22, 22, 22, 24, 11, 5], [5, 11, 26, 29, 29, 29, 23, 5, 5], [5, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 6, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 5], [30, 30, 28, 5, 5, 5, 5, 5, 5], [22, 22, 24, 5, 5, 5, 10, 5, 5], [22, 22, 24, 5, 6, 5, 5, 5, 5], [29, 29, 23, 5, 5, 5, 27, 30, 30], [5, 5, 6, 5, 5, 5, 25, 22, 22], [5, 5, 5, 5, 5, 11, 26, 29, 29], [5, 10, 5, 5, 5, 5, 6, 10, 5], [5, 5, 5, 6, 5, 5, 5, 11, 5], [11, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 7, 5, 5, 5, 6, 5, 5], [5, 10, 5, 5, 6, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 11, 5], [5, 5, 5, 5, 5, 27, 30, 30, 30], [6, 5, 5, 5, 5, 26, 29, 29, 29], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 11, 5, 5, 10, 5, 5, 5, 5], [5, 6, 6, 5, 5, 5, 5, 6, 5], [7, 5, 5, 5, 11, 27, 30, 28, 5], [6, 5, 5, 5, 5, 25, 22, 24, 5], [5, 5, 6, 5, 11, 25, 22, 24, 10], [5, 5, 5, 5, 5, 25, 22, 24, 5], [10, 5, 5, 5, 5, 26, 29, 23, 5], [5, 5, 11, 5, 6, 5, 5, 5, 5], [6, 27, 30, 28, 5, 5, 5, 6, 5], [5, 26, 29, 23, 5, 6, 5, 5, 5], [5, 5, 11, 5, 5, 5, 5, 5, 5], [5, 5, 5, 6, 5, 5, 10, 27, 28], [30, 28, 5, 5, 5, 5, 5, 26, 23], [22, 24, 11, 5, 5, 6, 5, 5, 5], [29, 23, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 6, 5, 5, 11], [5, 27, 28, 5, 5, 5, 5, 5, 5], [5, 25, 24, 11, 5, 5, 6, 5, 27], [10, 25, 24, 5, 5, 5, 5, 5, 26], [5, 26, 23, 5, 6, 5, 5, 5, 5], [7, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 27, 30, 28, 5], [5, 6, 5, 5, 5, 26, 29, 23, 11], [5, 5, 5, 5, 10, 5, 5, 6, 5]];
map9 = [[3, 4, 6, 2, 5, 3, 0, 0, 0, 3, 1, 0], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 11, 5, 5, 6, 5, 5, 5, 5], [7, 5, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 6, 7, 5], [5, 5, 5, 5, 5, 5, 5, 5, 10], [5, 5, 5, 6, 5, 11, 5, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 6, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [6, 5, 11, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 11, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 7, 5, 5, 6, 5], [5, 7, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 5, 6, 5, 7, 5, 5, 5], [5, 5, 5, 11, 5, 5, 5, 5, 5], [5, 10, 5, 6, 7, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 11, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map10 = [[3, 3, 6, 2, 4, 0, 0, 0, 0, 3, 1, 0], [5, 5, 5, 5, 5, 5, 5, 5, 5], [17, 5, 5, 5, 5, 5, 5, 5, 5], [14, 11, 5, 5, 6, 5, 5, 5, 5], [14, 5, 5, 5, 5, 5, 5, 5, 5], [12, 5, 5, 5, 5, 5, 16, 18, 17], [5, 5, 5, 5, 5, 5, 19, 20, 14], [5, 5, 5, 6, 5, 11, 19, 20, 14], [5, 5, 5, 5, 5, 5, 15, 13, 12], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [18, 17, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 5, 5, 6, 5, 5], [41, 14, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 7, 5, 5, 5, 5], [13, 12, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 16, 18, 18, 17, 5, 5, 5], [5, 11, 19, 20, 41, 14, 5, 5, 5], [5, 10, 19, 42, 20, 14, 5, 5, 5], [5, 5, 19, 20, 20, 14, 11, 5, 5], [5, 5, 15, 13, 13, 12, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 16, 17, 5, 5, 5, 5], [5, 5, 5, 15, 12, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map11 = [[3, 4, 6, 2, 1, 7, 0, 0, 0, 3, 9, 3], [8, 8, 8, 8, 8, 8, 8, 8, 8], [5, 6, 6, 6, 5, 5, 5, 5, 5], [5, 11, 5, 5, 5, 11, 5, 5, 5], [5, 5, 7, 7, 5, 5, 6, 5, 5], [5, 11, 5, 5, 5, 5, 5, 5, 5], [5, 5, 11, 5, 5, 6, 5, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [1, 2, 35, 8, 36, 1, 2, 1, 1], [1, 1, 32, 6, 31, 1, 1, 1, 1], [1, 1, 34, 4, 33, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 35, 8, 8, 8], [1, 3, 1, 1, 2, 32, 5, 11, 5], [1, 1, 1, 1, 1, 34, 4, 4, 4], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 35, 36, 1, 1, 1, 1, 2, 1], [1, 34, 33, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 35, 8, 8, 36, 1, 3, 1], [2, 1, 34, 4, 4, 33, 1, 1, 1], [1, 1, 1, 1, 2, 1, 3, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 35, 8, 36, 1, 1, 1], [1, 1, 2, 32, 5, 31, 1, 3, 1], [1, 1, 1, 32, 5, 31, 1, 1, 1], [1, 1, 1, 32, 11, 31, 1, 1, 1], [1, 1, 1, 34, 4, 33, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 1, 2, 1], [8, 8, 36, 1, 1, 1, 1, 1, 1], [32, 10, 31, 1, 2, 1, 1, 2, 1], [32, 5, 31, 1, 1, 1, 1, 1, 1], [4, 4, 33, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 3, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 2, 3, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 35, 8, 8, 36, 1, 1, 2, 1], [1, 32, 5, 5, 31, 1, 2, 1, 1], [2, 32, 6, 5, 31, 1, 1, 1, 1], [1, 32, 5, 10, 31, 1, 3, 1, 1], [1, 34, 4, 4, 33, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1]];
map12 = [[3, 4, 6, 2, 1, 7, 0, 0, 0, 3, 1, 0], [1, 1, 1, 1, 1, 2, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 35, 8], [9, 1, 1, 1, 1, 1, 1, 32, 5], [1, 1, 1, 1, 2, 1, 1, 34, 4], [2, 1, 1, 1, 1, 1, 1, 1, 1], [1, 35, 36, 1, 1, 1, 1, 1, 1], [1, 34, 33, 3, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 2, 1, 1, 1], [1, 1, 1, 1, 3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 2, 1, 1, 1, 2], [1, 35, 36, 1, 1, 2, 1, 1, 1], [3, 34, 33, 1, 1, 1, 3, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 2, 1, 1], [2, 1, 9, 1, 1, 1, 1, 1, 3], [1, 2, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 2, 1], [2, 1, 1, 1, 1, 1, 3, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 3, 35, 8, 8], [1, 1, 1, 1, 1, 1, 32, 5, 31], [1, 2, 1, 1, 1, 2, 32, 5, 31], [1, 1, 1, 2, 1, 1, 32, 5, 31], [1, 2, 1, 1, 2, 1, 34, 4, 4], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 37, 38, 2, 1, 1, 1, 1], [1, 1, 39, 40, 1, 1, 1, 9, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 3, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [9, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 2], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 2, 1, 1, 2, 1, 9, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 35, 36, 1], [1, 1, 1, 1, 2, 1, 34, 33, 1], [2, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 3, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 9, 1, 1], [3, 1, 2, 1, 2, 1, 1, 1, 1], [8, 36, 1, 1, 1, 1, 2, 1, 1], [32, 31, 2, 1, 1, 1, 1, 1, 1], [32, 31, 1, 1, 1, 3, 1, 1, 2], [4, 33, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1]];
map13 = [[3, 4, 6, 2, 1, 7, 0, 0, 0, 3, 1, 0], [1, 1, 1, 1, 1, 2, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 2, 1], [9, 1, 1, 1, 1, 1, 1, 1, 3], [1, 1, 1, 1, 2, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 3, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 2, 1, 1, 1], [1, 1, 1, 1, 3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 2, 1, 1, 1, 2], [1, 1, 9, 1, 1, 2, 1, 1, 1], [3, 2, 1, 1, 1, 1, 3, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 2, 1, 1], [2, 1, 9, 1, 1, 1, 1, 1, 3], [1, 2, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 2, 1], [2, 1, 1, 1, 1, 1, 3, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 3, 1, 1, 2], [9, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 2, 3, 1, 1], [1, 1, 1, 2, 1, 1, 9, 1, 1], [1, 2, 9, 1, 2, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 3, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 9, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 3, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1], [9, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 2], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 2, 1, 1, 2, 1, 9, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 2, 1, 2, 3, 1], [2, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 3, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 9, 1, 1], [3, 1, 2, 1, 2, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 2, 1, 1], [2, 1, 2, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 3, 1, 1, 2], [1, 1, 1, 1, 9, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 9, 1, 1], [1, 1, 2, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 37, 38, 2, 1, 1], [1, 1, 1, 1, 39, 40, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1]];
map14 = [[3, 3, 6, 2, 5, 0, 0, 0, 0, 3, 9, 0], [4, 4, 4, 4, 4, 4, 4, 4, 4], [1, 2, 1, 1, 1, 1, 1, 2, 1], [9, 1, 1, 1, 1, 1, 1, 1, 3], [1, 1, 1, 1, 2, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 3, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 2, 1], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 11, 5, 5, 6, 5, 5, 5, 5], [7, 5, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 6, 7, 5], [5, 5, 5, 5, 5, 5, 5, 5, 10], [5, 5, 5, 6, 5, 11, 5, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 6, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [6, 5, 11, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 11, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 7, 5, 5, 6, 5], [5, 7, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 5, 6, 5, 7, 5, 5, 5], [5, 5, 5, 11, 5, 5, 5, 5, 5], [5, 10, 5, 6, 7, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 11, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 16, 17, 5, 5, 5, 5], [5, 6, 5, 15, 12, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map15 = [[3, 4, 6, 7, 2, 3, 0, 0, 0, 3, 1, 4], [5, 5, 5, 5, 5, 5, 5, 5, 5], [17, 5, 5, 5, 5, 5, 5, 5, 5], [14, 11, 5, 5, 6, 5, 5, 5, 5], [14, 5, 5, 5, 5, 5, 5, 5, 5], [12, 5, 5, 5, 5, 5, 16, 18, 17], [5, 5, 5, 5, 5, 5, 19, 41, 14], [5, 5, 5, 6, 5, 11, 19, 20, 14], [5, 5, 5, 5, 5, 5, 15, 13, 12], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [18, 17, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 5, 5, 6, 5, 5], [41, 14, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 7, 5, 5, 5, 5], [13, 12, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 16, 18, 18, 17, 5, 5, 5], [5, 11, 19, 42, 20, 14, 5, 5, 5], [5, 10, 19, 20, 20, 14, 5, 5, 5], [5, 5, 19, 20, 20, 14, 11, 5, 5], [5, 5, 15, 13, 13, 12, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 5], [5, 5, 16, 17, 5, 11, 5, 5, 5], [5, 6, 15, 12, 11, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 6, 5, 6, 5], [5, 11, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5]];
map16 = [[3, 4, 6, 7, 2, 3, 0, 0, 0, 3, 1, 0], [5, 5, 5, 5, 5, 5, 21, 5, 5], [7, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 6, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 6, 5, 21, 5, 5], [5, 7, 5, 5, 5, 6, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 10, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 6, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 5, 11, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 6, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 6, 5, 5, 5, 21, 10, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [7, 5, 5, 7, 5, 5, 21, 5, 6], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 11, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 6, 5, 5, 7, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 6, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 7, 5, 5, 5, 10, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [5, 5, 11, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 7, 5, 21, 5, 5], [5, 5, 5, 5, 5, 11, 21, 5, 5], [5, 10, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 6, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5], [6, 5, 5, 5, 6, 5, 21, 5, 5], [5, 5, 5, 7, 5, 5, 21, 5, 5], [5, 6, 5, 5, 5, 5, 21, 5, 5], [5, 5, 5, 5, 5, 5, 21, 11, 5], [5, 5, 5, 5, 5, 5, 21, 5, 5]];
map17 = [[4, 3, 6, 7, 4, 0, 0, 0, 0, 3, 1, 0], [5, 5, 5, 5, 5, 5, 5, 5, 5], [17, 5, 5, 5, 5, 5, 5, 5, 5], [14, 11, 5, 5, 6, 5, 5, 5, 5], [14, 5, 5, 5, 5, 5, 5, 5, 5], [12, 5, 5, 5, 5, 5, 16, 18, 17], [5, 5, 5, 5, 5, 5, 19, 20, 14], [5, 5, 5, 6, 5, 11, 19, 20, 14], [5, 5, 5, 5, 5, 5, 15, 13, 12], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [18, 17, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 5, 5, 6, 5, 5], [41, 14, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 7, 5, 5, 5, 5], [13, 12, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 16, 18, 18, 17, 5, 5, 5], [5, 11, 19, 20, 41, 14, 5, 5, 5], [5, 10, 19, 42, 20, 14, 5, 5, 5], [5, 5, 19, 20, 20, 14, 11, 5, 5], [5, 5, 15, 13, 13, 12, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 16, 17, 5, 5, 5, 5], [5, 5, 5, 15, 12, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5]];
map18 = [[4, 4, 6, 7, 4, 5, 0, 0, 0, 6, 1, 0], [5, 5, 5, 5, 5, 5, 5, 5, 5], [17, 5, 5, 5, 5, 5, 5, 5, 5], [14, 11, 5, 5, 6, 5, 5, 5, 5], [14, 5, 5, 5, 5, 5, 5, 5, 5], [12, 5, 5, 5, 5, 5, 16, 18, 17], [5, 5, 5, 5, 5, 5, 19, 41, 14], [5, 5, 5, 6, 5, 11, 19, 20, 14], [5, 5, 5, 5, 5, 5, 15, 13, 12], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 5, 5, 7, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5], [6, 5, 5, 10, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 6, 5, 5], [5, 5, 7, 5, 5, 5, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 5, 5], [18, 17, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 5, 5, 6, 5, 5], [41, 14, 11, 5, 5, 5, 5, 5, 5], [20, 14, 5, 5, 7, 5, 5, 5, 5], [13, 12, 5, 5, 5, 5, 5, 5, 5], [11, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 6], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 7, 5, 5, 5, 5], [5, 5, 16, 18, 18, 17, 5, 5, 5], [5, 11, 19, 42, 20, 14, 5, 5, 5], [5, 10, 19, 20, 20, 14, 5, 5, 5], [5, 5, 19, 20, 20, 14, 11, 5, 5], [5, 5, 15, 13, 13, 12, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 5, 6, 5, 5, 5, 5, 5, 7], [5, 5, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 5, 5, 11, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 5, 11, 5, 6, 5, 5, 5], [5, 5, 5, 7, 5, 5, 5, 5, 5], [5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 5, 5, 5, 6, 10, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 11, 5, 5, 5], [5, 6, 5, 5, 6, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 7, 5, 6, 5], [5, 10, 5, 6, 5, 5, 5, 5, 5], [5, 7, 5, 5, 5, 5, 5, 6, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 6, 5, 5, 5, 5], [5, 5, 16, 17, 5, 11, 5, 5, 5], [5, 6, 15, 12, 11, 5, 5, 7, 5], [5, 5, 5, 5, 5, 5, 7, 5, 5], [7, 5, 6, 5, 5, 6, 5, 6, 5], [5, 11, 5, 6, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 6, 5]];
levels = [0, map1, map2, map3, map4, map5, map6, map7, map8, map9, map10, map11, map12, map13, map14, map15, map16, map17, map18];
tileMap.level = 1;
tileMap.map = levels[tileMap.level];
tileMap.mapRepeat = tileMap.map[0][9];
tileMap.mapRepeated = 0;
tileMap.rowRepeat = tileMap.map[0][10];
tileMap.currentRow = 1;
tileMap.enemiesOnScreen = tileMap.map[0][0];
tileMap.enemies = [0, 0, 0, 0, 0];
tileMap.enemyBulletDepth = 3500;
tileMap.bossVisible = false;
tileMap.groundSpeed = aliens.groundSpeed;
tileMap.baseGroundSpeed = aliens.groundSpeed;
tileMap.pUpDepth = 4001;
if (tileMap.map[0][11] > 0) {
tileMap.boss = true;
tileMap.bossType = tileMap.map[0][11];
} else {
tileMap.boss = false;
}
build("tempHold1", 100, 0, 500);
build("tempHold2", 100, -400, 501);
_root.attachMovie("plane", "airplane", 2000);
airplane._xscale = 45;
airplane._yscale = 45;
airplane._x = 300;
airplane._y = 400 - airplane._height;
airplane.planeSpeed = 8;
airplane.scrolly = 275;
airplane.slowDown = 0;
airplane.bulletDepth = 2001;
airplane.shootCounter = 0;
airplane.shootWait = 23;
airplane.bulletDamage = 5;
airplane.shields = 7;
airplane.score = 0;
airplane.cash = 0;
airplane.hit = false;
airplane.missiles = 2;
airplane.missileDamage = 18;
airplane.moreGuns = true;
airplane.shieldBuffer = 1;
airplane.shieldDamage = 0;
airplane.scoreModifier = 1;
airplane.powerUp = false;
airplane.typeOfPowerUp = 0;
airplane.pUpStartTime = 0;
airplane.pUpEndTime = 0;
airplane.mousedown = false;
airplane.bombs = 0;
timerCountdown = 3;
paused = false;
keyListener = {};
keyListener.onKeyUp = function () {
if (Key.getCode() == 80) {
if (paused) {
airplane.startDrag();
paused = false;
} else {
airplane.stopDrag();
paused = true;
}
}
};
Key.addListener(keyListener);
bang = new Sound();
bang.attachSound("explosionSound");
rocket = new Sound();
rocket.attachSound("rocket");
gun = new Sound();
gun.attachSound("gun");
lazer = new Sound();
lazer.attachSound("lazer");
die1 = new Sound();
die1.attachSound("die");
pickedUp = new Sound();
pickedUp.attachSound("pickup");
alert = new Sound();
alert.attachSound("alert");
Frame 25
function mousePushed() {
airplane.mousedown = true;
if (airplane.shootCounter <= 0) {
if (!soundMute) {
gun.start();
}
if (airplane.typeOfPowerUp == "gun") {
airplane.shootCounter = airPlane.shootWait / 2;
} else {
airplane.shootCounter = airPlane.shootWait;
}
_root.attachMovie("bullet", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x - 10;
_root["bullet" + airplane.bulletDepth]._y = airplane._y;
airplane.bulletDepth++;
_root.attachMovie("bullet", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x + 10;
_root["bullet" + airplane.bulletDepth]._y = airplane._y;
airplane.bulletDepth++;
if (airplane.bulletDepth > 2500) {
airplane.bulletDepth = 2100;
}
if (airplane.moreGuns) {
_root.attachMovie("bullet", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x - 20;
_root["bullet" + airplane.bulletDepth]._y = airplane._y;
airplane.bulletDepth++;
_root.attachMovie("bullet", "bullet" + airplane.bulletDepth, airplane.bulletDepth);
_root["bullet" + airplane.bulletDepth]._x = airplane._x + 20;
_root["bullet" + airplane.bulletDepth]._y = airplane._y;
airplane.bulletDepth++;
}
}
}
playerInfo.shields.gotoAndStop(airplane.shields);
airplane.startDrag();
airplane.lastXMove = airplane._x;
playerInfo.missiles.text = airplane.missiles;
playerInfo.bombs.text = airplane.bombs;
mouseListener = new Object();
mouseListener.onMouseDown = function () {
mousePushed();
};
mouseListener.onMouseUp = function () {
airplane.mousedown = false;
};
Mouse.addListener(mouseListener);
mouse.hide();
_root.onEnterFrame = function () {
if (!paused) {
if (airplane.mousedown) {
mousePushed();
}
airplane.shootCounter--;
_root.moveGround();
_root.captureKeys();
_root.moveEnemies();
if (tileMap.bossVisible) {
_root.moveBoss();
}
if (airplane.powerUp) {
powerUpUpdate();
}
playerInfo.score.text = airplane.score;
playerInfo.cash.text = airplane.cash;
if (tileMap.enemyBulletDepth > 3900) {
tileMap.enemyBulletDepth = 3500;
}
if (airplane.shields < 1) {
b = 1;
while (b <= tileMap.enemiesOnScreen) {
tileMap.enemies[b] = 0;
_root["enemy" + b].removeMovieClip();
b++;
}
gotoAndStop (27);
}
}
};
stop();
Frame 26
Mouse.removeListener(mouseListener);
mouse.show();
timer.removeMovieClip();
airplane.shieldDamge = 0;
_root.attachMovie("storeInfo", "sInfo", 6519);
sInfo._x = 178.4;
sInfo._y = 54;
sInfo._visible = false;
sInfo.s1.gotoAndStop(airplane.shields);
sInfo.missiles.text = airplane.missiles;
sInfo.cash.text = airplane.cash;
_root.attachMovie("continue", "contin", 9518);
contin._x = 418.9;
contin._y = 15.9;
contin._alpha = 90;
contin.onRelease = function () {
if (!soundMute) {
click.start();
}
if (!musicMute) {
music.start(0, 3);
}
_root.attachMovie("newLevel", "NL", 6520);
_root.NL._x = 275;
_root.NL._y = 190;
tileMap.groundSpeed = 4;
tileMap.baseGroundSpeed = 4;
aliens.one.shootCounter = Math.ceil(aliens.one.shootCounter * 0.965);
aliens.two.changeDirectionCounter = Math.ceil(aliens.two.changeDirectionCounter * 0.965);
aliens.two.shootCounter = Math.ceil(aliens.two.shootCounter * 0.965);
aliens.three.changeDirectionCounter = Math.ceil(aliens.three.changeDirectionCounter * 0.965);
aliens.four.changeDirectionCounter = Math.ceil(aliens.four.changeDirectionCounter * 0.965);
aliens.four.shootCounter = Math.ceil(aliens.four.shootCounter * 0.965);
aliens.five.changeDirectionCounter = Math.ceil(aliens.five.changeDirectionCounter * 0.965);
aliens.five.shootCounter = Math.ceil(aliens.five.shootCounter * 0.965);
aliens.six.shootCounter1 = Math.ceil(aliens.six.shootCounter1 * 0.965);
aliens.six.shootCounter2 = Math.ceil(aliens.six.shootCounter2 * 0.965);
aliens.six.changeDirectionCounter = Math.ceil(aliens.six.changeDirectionCounter * 0.965);
aliens.seven.shootCounter = Math.ceil(aliens.seven.shootCounter * 0.965);
};
contin.onRollOver = function () {
contin._alpha = 100;
};
contin.onRollOut = function () {
contin._alpha = 90;
};
_root.contin._visible = false;
_root.airplane._visible = false;
_root.tempHold1.removeMovieClip();
_root.tempHold2.removeMovieClip();
b = 1;
while (b <= tileMap.enemiesOnScreen) {
_root["enemy" + b].removeMovieClip();
b++;
}
_root.attachMovie("levelComplete", "LC", 600);
_root.LC._x = 275;
_root.LC._y = 190;
if (tileMap.level == 1) {
if (!soundMute) {
alert.start(0, 10);
}
_root.attachMovie("warning", "warn", 601);
_root.warn._x = 275;
_root.warn._y = 190;
}
_root.onEnterFrame = function () {
if (clicked == true) {
_root.LC.removeMovieClip();
var x = 50;
var y = 95;
z = 1;
_root.attachMovie("options", "opt1", 8145);
opt1._xscale = 50;
opt1._yscale = 50;
opt1._x = 315.9;
opt1._y = 65;
opt1._alpha = 80;
opt1.onRelease = function () {
if (!options) {
_root.attachMovie("option", "opt", 9519);
options = true;
opt._x = 278.8;
opt._y = 242.9;
if (!soundMute) {
click.start();
}
}
};
var a = 0;
while (a <= 1) {
var b = 0;
while (b <= 2) {
_root.attachMovie("powerUps", "p" + z, 5900 + z);
_root["p" + z]._x = x;
_root["p" + z]._y = y;
_root["p" + z]._alpha = 70;
_root["p" + z].z = z;
_root["p" + z].gotoAndStop(z);
_root.attachMovie("powerUps2", ("p" + z) + 500, (5900 + z) + 500);
_root[("p" + z) + 500]._x = x;
_root[("p" + z) + 500]._y = y;
_root[("p" + z) + 500]._alpha = 70;
_root[("p" + z) + 500].gotoAndStop(z);
_root.attachMovie("powerUpDesc", "pu" + z, 6900 + z);
_root["pu" + z]._x = x + 80;
_root["pu" + z]._y = y;
_root["pu" + z].gotoAndStop(z);
if (((b == 0) && (a == 1)) && (airplane.moreGuns)) {
_root["pu" + z].gotoAndStop(7);
_root["pu" + z]._y = _root["pu" + z]._y + 20;
}
if (((b == 2) && (a == 0)) && (airplane.shootWait < 12)) {
_root["pu" + z].gotoAndStop(8);
_root["pu" + z]._y = _root["pu" + z]._y + 20;
}
if (((b == 2) && (a == 1)) && (airplane.sideSpeed > 9)) {
_root["pu" + z].gotoAndStop(8);
_root["pu" + z]._y = _root["pu" + z]._y + 20;
}
if (((b == 1) && (a == 0)) && (airplane.shieldBuffer == 2)) {
_root["pu" + z].gotoAndStop(7);
_root["pu" + z]._y = _root["pu" + z]._y + 20;
_root["pu" + z]._x = _root["pu" + z]._x - 5;
}
y = y + 95;
z++;
b++;
}
y = 95;
x = 285;
a++;
}
clicked = 50;
}
if (clicked == 50) {
sInfo._visible = true;
contin._visible = true;
_root.p1.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p1._alpha = 90;
_root.p1500._alpha = 90;
};
_root.p1.onRollOut = function () {
_root.p1._alpha = 50;
_root.p1500._alpha = 50;
};
_root.p2.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p2._alpha = 80;
_root.p2500._alpha = 80;
};
_root.p2.onRollOut = function () {
_root.p2._alpha = 50;
_root.p2500._alpha = 50;
};
_root.p3.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p3._alpha = 80;
_root.p3500._alpha = 80;
};
_root.p3.onRollOut = function () {
_root.p3._alpha = 50;
_root.p3500._alpha = 50;
};
_root.p4.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p4._alpha = 80;
_root.p4500._alpha = 80;
};
_root.p4.onRollOut = function () {
_root.p4._alpha = 50;
_root.p4500._alpha = 50;
};
_root.p5.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p5._alpha = 80;
_root.p5500._alpha = 80;
};
_root.p5.onRollOut = function () {
_root.p5._alpha = 50;
_root.p5500._alpha = 50;
};
_root.p6.onRollOver = function () {
if (!soundMute) {
beep.start();
}
_root.p6._alpha = 80;
_root.p6500._alpha = 80;
};
_root.p6.onRollOut = function () {
_root.p6._alpha = 50;
_root.p6500._alpha = 50;
};
_root.p1.onRelease = function () {
if (_root.p1.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((airplane.cash >= 1500) && (airplane.shields < 7)) {
if (!soundMute) {
click.start();
}
airplane.shields++;
airplane.cash = airplane.cash - 1500;
sInfo.s1.gotoAndStop(airplane.shields);
}
}
};
_root.p2.onRelease = function () {
if (_root.p2.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((airplane.cash >= 12500) && (airplane.shieldBuffer < 2)) {
if (!soundMute) {
click.start();
}
airplane.shieldBuffer = 2;
airplane.cash = airplane.cash - 12500;
}
}
};
_root.p3.onRelease = function () {
if (_root.p3.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((airplane.cash >= 5000) && (airplane.shootWait > 12)) {
if (!soundMute) {
click.start();
}
airplane.shootWait = airplane.shootWait / 1.5;
airplane.cash = airplane.cash - 5000;
}
}
};
_root.p4.onRelease = function () {
if (_root.p4.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((airplane.cash >= 15000) && (!airplane.moreGuns)) {
if (!soundMute) {
click.start();
}
airplane.moreGuns = true;
airplane.cash = airplane.cash - 15000;
}
}
};
_root.p5.onRelease = function () {
if (_root.p5.hitTest(_root._xmouse, _root._ymouse, true)) {
if (airplane.cash >= 1000) {
if (!soundMute) {
click.start();
}
airplane.missiles = airplane.missiles + 1;
airplane.cash = airplane.cash - 1000;
sInfo.missiles.text = airplane.missiles;
}
}
};
_root.p6.onRelease = function () {
if (_root.p6.hitTest(_root._xmouse, _root._ymouse, true)) {
if (airplane.cash >= 7000) {
if (!soundMute) {
click.start();
}
airplane.bombs++;
airplane.cash = airplane.cash - 7000;
}
}
};
sInfo.cash.text = airplane.cash;
}
if (clicked == 100) {
clicked = false;
NL.removeMovieClip();
airplane._visible = true;
build("tempHold1", 100, 0, 500);
build("tempHold2", 100, -400, 501);
gotoAndPlay (25);
}
};
stop();
Frame 27
score = airplane.score;
gcode = _level0.gcode;
_root.airplane.removeMovieClip();
_root.tempHold1.removeMovieClip();
_root.tempHold2.removeMovieClip();
_root.boss.removeMovieClip();
_root.bLifeBar.removeMovieClip();
_root.music.stop();
if (score == 0) {
score = 5;
}
getURL ("game.cfm", "_self", "POST");
Symbol 15 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 35 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 36 MovieClip [frb_states] Frame 1
stop();
Symbol 36 MovieClip [frb_states] Frame 2
stop();
Symbol 36 MovieClip [frb_states] Frame 3
stop();
Symbol 36 MovieClip [frb_states] Frame 4
stop();
Symbol 36 MovieClip [frb_states] Frame 5
stop();
Symbol 40 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 49 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 55 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 61 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 67 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 68 MovieClip [fpb_states] Frame 1
stop();
Symbol 68 MovieClip [fpb_states] Frame 2
stop();
Symbol 68 MovieClip [fpb_states] Frame 3
stop();
Symbol 68 MovieClip [fpb_states] Frame 4
stop();
Symbol 69 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 75 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 75 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 76 MovieClip [FPushButtonSymbol] Frame 1
#initclip 4
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 79 MovieClip [bullet] Frame 1
stop();
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip [bullet] Frame 1
onClipEvent (load) {
count = 1;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 15;
if ((_parent._y + 5) < 0) {
_parent.removeMovieClip();
}
if (count == 2) {
b = 1;
while (b <= _root.tileMap.enemiesOnScreen) {
var path = _root["enemy" + b];
if (_parent.hitTest(path)) {
path.life = path.life - _root.airplane.bulletDamage;
_parent.removeMovieClip();
}
b++;
}
if (_parent.hitTest(_root.boss)) {
_root.boss.life = _root.boss.life - 2;
_root.bLifeBar.life._width = _root.boss.life;
if (!_root.soundMute) {
_root.bang.start();
}
_parent.removeMovieClip();
}
count = 1;
} else {
count++;
}
}
Symbol 97 MovieClip [plane] Frame 9
gotoAndPlay (1);
Symbol 97 MovieClip [plane] Frame 16
gotoAndPlay (13);
Symbol 97 MovieClip [plane] Frame 17
stop();
Symbol 97 MovieClip [plane] Frame 18
stop();
Symbol 97 MovieClip [plane] Frame 19
Symbol 97 MovieClip [plane] Frame 23
_root.airplane.hit = false;
gotoAndPlay (1);
Symbol 97 MovieClip [plane] Frame 24
stop();
Symbol 174 MovieClip [tile] Frame 1
stop();
Symbol 174 MovieClip [tile] Frame 2
stop();
Symbol 174 MovieClip [tile] Frame 3
stop();
Symbol 174 MovieClip [tile] Frame 4
stop();
Symbol 174 MovieClip [tile] Frame 5
stop();
Symbol 174 MovieClip [tile] Frame 6
stop();
Symbol 174 MovieClip [tile] Frame 7
stop();
Symbol 174 MovieClip [tile] Frame 8
stop();
Symbol 174 MovieClip [tile] Frame 9
stop();
Symbol 174 MovieClip [tile] Frame 10
stop();
Symbol 174 MovieClip [tile] Frame 11
stop();
Symbol 174 MovieClip [tile] Frame 12
stop();
Symbol 174 MovieClip [tile] Frame 13
stop();
Symbol 174 MovieClip [tile] Frame 14
stop();
Symbol 174 MovieClip [tile] Frame 15
stop();
Symbol 174 MovieClip [tile] Frame 16
stop();
Symbol 174 MovieClip [tile] Frame 17
stop();
Symbol 174 MovieClip [tile] Frame 18
stop();
Symbol 174 MovieClip [tile] Frame 19
stop();
Symbol 174 MovieClip [tile] Frame 20
stop();
Symbol 174 MovieClip [tile] Frame 21
stop();
Symbol 174 MovieClip [tile] Frame 22
stop();
Symbol 174 MovieClip [tile] Frame 23
stop();
Symbol 174 MovieClip [tile] Frame 24
stop();
Symbol 174 MovieClip [tile] Frame 25
stop();
Symbol 174 MovieClip [tile] Frame 26
stop();
Symbol 174 MovieClip [tile] Frame 27
stop();
Symbol 174 MovieClip [tile] Frame 28
stop();
Symbol 174 MovieClip [tile] Frame 29
stop();
Symbol 174 MovieClip [tile] Frame 30
stop();
Symbol 174 MovieClip [tile] Frame 31
stop();
Symbol 174 MovieClip [tile] Frame 32
stop();
Symbol 174 MovieClip [tile] Frame 33
stop();
Symbol 174 MovieClip [tile] Frame 34
stop();
Symbol 174 MovieClip [tile] Frame 35
stop();
Symbol 174 MovieClip [tile] Frame 36
stop();
Symbol 174 MovieClip [tile] Frame 37
stop();
Symbol 174 MovieClip [tile] Frame 38
stop();
Symbol 174 MovieClip [tile] Frame 39
stop();
Symbol 174 MovieClip [tile] Frame 40
stop();
Symbol 174 MovieClip [tile] Frame 41
stop();
Symbol 174 MovieClip [tile] Frame 42
stop();
Symbol 174 MovieClip [tile] Frame 43
stop();
Symbol 178 MovieClip [boss1] Frame 1
stop();
Symbol 178 MovieClip [boss1] Frame 6
Instance of Symbol 180 MovieClip in Symbol 181 MovieClip [enemyBullet] Frame 1
onClipEvent (load) {
count = 1;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.xSpeed;
_parent._y = _parent._y + _parent.ySpeed;
if (_parent._y > 400) {
_parent.removeMovieClip();
}
if (count == 2) {
if (_parent.hitTest(_root.airplane)) {
if (_root.airplane.typeOfPowerUp != "invincable") {
_root.airplane.shieldDamage++;
if (_root.airplane.shieldBuffer == _root.airplane.shieldDamage) {
_root.airplane.shields--;
_root.airplane.shieldDamage = 0;
}
_root.airplane.gotoAndPlay("hit");
_root.playerInfo.shields.gotoAndStop(_root.airplane.shields);
}
_parent.removeMovieClip();
}
count = 1;
} else {
count++;
}
}
Symbol 188 MovieClip Frame 1
if (!_root.soundMute) {
_root.bang.start();
}
Symbol 188 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 202 MovieClip [newLevel] Frame 1
var a = 0;
while (a <= 6) {
_root["p" + a].removeMovieClip();
_root[("p" + a) + 500].removeMovieClip();
_root["pu" + a].removeMovieClip();
a++;
}
_root.opt1.removeMovieClip();
_root.sInfo.removeMovieClip();
_root.contin.removeMovieClip();
Symbol 202 MovieClip [newLevel] Frame 15
_root.tileMap.level++;
words.text = _root.tileMap.level;
go.onRelease = function () {
if (!_root.soundMute) {
_root.click.start();
}
_root.tileMap.map = _root.levels[_root.tileMap.level];
_root.tileMap.mapRepeat = _root.tileMap.map[0][9];
_root.tileMap.mapRepeated = 0;
_root.tileMap.rowRepeat = _root.tileMap.map[0][10];
_root.tileMap.currentRow = 1;
_root.tileMap.enemiesOnScreen = _root.tileMap.map[0][0];
_root.tileMap.enemies = [0, 0, 0, 0, 0];
_root.tileMap.enemyBulletDepth = 3500;
_root.tileMap.bossVisible = false;
if (_root.tileMap.map[0][11] > 0) {
_root.tileMap.boss = true;
_root.tileMap.bossType = _root.tileMap.map[0][11];
} else {
_root.tileMap.boss = false;
}
_root.clicked = 100;
};
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 3
stop();
Symbol 243 MovieClip Frame 4
stop();
Symbol 243 MovieClip Frame 5
stop();
Symbol 243 MovieClip Frame 6
stop();
Instance of Symbol 243 MovieClip "pUps" in Symbol 244 MovieClip [droppedPowerUps] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + (_root.tileMap.groundSpeed + 2);
if (_parent.hitTest(_root.airplane)) {
if (_root.airplane.powerUp) {
_root.timerCountdown = 3;
_root.timer.removeMovieClip();
if (_root.airplane.typeOfPowerUp == "score") {
_root.airplane.scoreModifier = 1;
}
if (_root.airplane.typeOfPowerUp == "invincable") {
_root.airplane._alpha = 100;
}
}
_root.airplane.powerUp = true;
_root.airplane.typeOfPowerUp = _parent.typePUp;
if (_root.airplane.typeOfPowerUp == "invincable") {
_root.airplane._alpha = 60;
}
if (_parent.typePUp == "score") {
_root.airplane.scoreModifier = _parent.mod;
}
var time = getTimer();
_root.airplane.pUpEndTime = time + _parent.eTime;
_root.playerInfo.pups.gotoAndStop(_parent.clips);
if (!_root.soundMute) {
_root.pickedUp.start();
}
_root.attachMovie("pText", "pText" + _root.tileMap.pUpDepth, _root.tileMap.pUpDepth);
_root["pText" + _root.tileMap.pUpDepth]._x = 315;
_root["pText" + _root.tileMap.pUpDepth]._y = 200;
_root["pText" + _root.tileMap.pUpDepth].pUp.gotoAndStop(_parent.clips - 1);
_root.tileMap.pUpDepth++;
if (_root.tileMap.pUpDepth >= 4500) {
_root.tileMap.pUpDepth = 4001;
}
_root.attachMovie("timer", "timer", 15000);
_root.timer._x = 45;
_root.timer._y = 275;
_root.timer._alpha = 80;
_parent.removeMovieClip();
}
if (_parent._y >= 400) {
_parent.removeMovieClip();
}
}
Symbol 246 MovieClip [instructionBox] Frame 15
back.onRelease = function () {
_root.click.start();
_root.instructions = false;
_root.instruct.removeMovieClip();
};
over.onRelease = function () {
_root.click.start();
nextFrame();
};
stop();
Symbol 246 MovieClip [instructionBox] Frame 16
back.onRelease = function () {
_root.click.start();
_root.instructions = false;
_root.instruct.removeMovieClip();
};
prev.onRelease = function () {
_root.click.start();
prevFrame();
};
stop();
myColor = new Color(alien);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"70", gb:"50", ba:"70", bb:"50", aa:"15", ab:"70"};
myColor.setTransform(myColorTransform);
Symbol 246 MovieClip [instructionBox] Frame 17
back.onRelease = function () {
_root.click.start();
_root.instructions = false;
_root.instruct.removeMovieClip();
};
Symbol 252 MovieClip [warning] Frame 15
textHolder.lc.text = _root.tileMap.level;
go.onRelease = function () {
_root.alert.stop();
if (!_root.soundMute) {
_root.click.start();
}
_root.airplane.moreGuns = false;
_root.warn.removeMovieClip();
};
Symbol 252 MovieClip [warning] Frame 34
gotoAndPlay (16);
Symbol 260 MovieClip [levelComplete] Frame 15
textHolder.lc.text = _root.tileMap.level;
go.onRelease = function () {
if (!_root.soundMute) {
_root.click.start();
}
_root.clicked = true;
};
stop();
Symbol 267 MovieClip [powerUps2] Frame 1
stop();
Symbol 267 MovieClip [powerUps2] Frame 2
stop();
Symbol 267 MovieClip [powerUps2] Frame 3
stop();
Symbol 267 MovieClip [powerUps2] Frame 4
stop();
Symbol 267 MovieClip [powerUps2] Frame 5
stop();
Symbol 267 MovieClip [powerUps2] Frame 6
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 1
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 2
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 3
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 4
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 5
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 6
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 7
stop();
Symbol 298 MovieClip [powerUpDesc] Frame 8
stop();
Symbol 311 MovieClip [shields] Frame 1
stop();
Symbol 311 MovieClip [shields] Frame 2
stop();
Symbol 311 MovieClip [shields] Frame 3
stop();
Symbol 311 MovieClip [shields] Frame 4
stop();
Symbol 311 MovieClip [shields] Frame 5
stop();
Symbol 311 MovieClip [shields] Frame 6
stop();
Symbol 311 MovieClip [shields] Frame 7
stop();
Symbol 323 MovieClip [bomb] Frame 1
stop();
Instance of Symbol 317 MovieClip in Symbol 323 MovieClip [bomb] Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 15;
if (_parent._y < 150) {
_parent.gotoAndPlay(2);
}
}
Symbol 323 MovieClip [bomb] Frame 2
exp._alpha = 60;
if (!_root.soundMute) {
_root.bang.start();
}
if (!_root.soundMute) {
_root.bang.start();
}
var b = 1;
while (b <= _root.tileMap.enemiesOnScreen) {
var path = _root["enemy" + b];
path.life = path.life - 40;
path.scoreModifier1 = 15;
b++;
}
if (_root.tileMap.bossVisible) {
_root.boss.life = _root.boss.life - 30;
_root.bLifeBar.life._width = _root.boss.life;
}
Symbol 323 MovieClip [bomb] Frame 6
if (!_root.soundMute) {
_root.bang.start();
}
Symbol 323 MovieClip [bomb] Frame 10
this.removeMovieClip();
gotoAndPlay (2);
Instance of Symbol 317 MovieClip in Symbol 324 MovieClip [missile] Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 15;
if ((_parent._y + 10) < 0) {
_parent.removeMovieClip();
}
b = 1;
while (b <= _root.tileMap.enemiesOnScreen) {
var path = _root["enemy" + b];
if (_parent.hitTest(path)) {
path.life = path.life - _root.airplane.missileDamage;
_parent.removeMovieClip();
}
b++;
}
if (_parent.hitTest(_root.boss)) {
_root.boss.life = _root.boss.life - _root.airplane.missileDamage;
_root.bLifeBar.life._width = _root.boss.life;
if (!_root.soundMute) {
_root.bang.start();
}
_parent.removeMovieClip();
}
}
Symbol 342 MovieClip [boss4] Frame 1
stop();
Symbol 342 MovieClip [boss4] Frame 10
stop();
Symbol 342 MovieClip [boss4] Frame 20
gotoAndStop (1);
Symbol 347 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.frb_hitArea_mc;
this.hitArea = hit;
if (this.frb_states_mc._width > w) {
hit._width = this.frb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = this.frb_states_mc._width;
var frame = this.frb_states_mc;
var label = this.fLabel_mc;
var w = (this.width - frame._width);
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.frb_states_mc._x = 0;
this.fLabel_mc._x = radioWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - radioWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.frb_hitArea_mc._y = vertCenter;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i] == this) {
delete this._parent[this.groupName].radioInstances[i];
}
i++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var i in this._parent) {
if ((this != this._parent[i]) && (this._parent[i].groupName == this.groupName)) {
this._parent[i].setState(false);
this._parent[i].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var enabTrue = this._parent[this.groupName].getEnabled();
var noneSelect = (this._parent[this.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var cgn = (this._parent[this.groupName].getEnabled() == undefined);
var cgnez = (this._parent[this.groupName].radioInstances[0].getEnabled() == false);
if (cgn && (cgnez)) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i].getEnabled() == true) {
this._parent[this.groupName].radioInstances[i].tabEnabled = true;
return(undefined);
}
i++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setEnabled(enableFlag);
i++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
i++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setChangeHandler(changeHandler, obj);
i++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
if ((this.radioInstances[i].data == "") || (this.radioInstances[i].data == undefined)) {
return(this.radioInstances[i].getLabel());
}
return(this.radioInstances[i].data);
}
i++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected) {
return(this.radioInstances[i].getData());
}
i++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
return(i);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].data == dataValue) {
this.radioInstances[i].setValue(true);
return(undefined);
}
i++;
}
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getLabel() == dataValue) {
this.radioInstances[i].setValue(true);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setSize(w);
i++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var widestRadio = 0;
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].width >= widestRadio) {
widestRadio = this.radioInstances[i].width;
}
i++;
}
return(widestRadio);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].groupName = groupName;
this.radioInstances[i].addToRadioGroup();
i++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setLabelPlacement(pos);
i++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setStyleProperty(propName, value, isGlobal);
i++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].addListener();
i++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].applyChanges();
i++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].removeListener(component);
i++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i < this._parent[this.groupName].radioInstances.length) {
var inc = (i + 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i >= 0) {
var inc = (i - 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 356 MovieClip [option] Frame 1
function onChange() {
_root.musicMute = false;
}
function onChange1() {
_root.music.stop();
_root.musicMute = true;
}
function onChange2() {
_root.soundMute = false;
}
function onChange3() {
_root.soundMute = true;
}
function onChange4() {
_root._quality = "low";
}
function onChange5() {
_root._quality = "medium";
}
function onChange6() {
_root._quality = "high";
}
back.onRelease = function () {
if (!_root.soundMute) {
_root.click.start();
}
_root.options = false;
_root.opt.removeMovieClip();
};
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "High";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "onChange6";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "Medium";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "onChange5";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "Low";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "onChange4";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] "off1" in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "Off";
initialState = false;
groupName = "radioGroup1";
data = "";
labelPlacement = "right";
changeHandler = "onChange3";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] "on1" in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "On";
initialState = false;
groupName = "radioGroup1";
data = "";
labelPlacement = "right";
changeHandler = "onChange2";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] "off" in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "Off";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "onChange1";
}
Instance of Symbol 347 MovieClip [FRadioButtonSymbol] "on" in Symbol 356 MovieClip [option] Frame 1
//component parameters
onClipEvent (initialize) {
label = "On";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "onChange";
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 5
stop();
Symbol 371 MovieClip [pText] Frame 20
this.removeMovieClip();
Symbol 393 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 18
gotoAndPlay (2);