Frame 1
Stage.showMenu = false;
Frame 2
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
pfixEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
if ((domain != "") && (domain != "armorgames.com")) {
_root.stop();
} else {
_root.play();
}
Frame 93
function onEnterFrame() {
}
function engine() {
Stage.showMenu = false;
if (pau == false) {
if (coptergo == true) {
xvelocity = xvelocity * 0.67;
yvelocity = yvelocity * 0.67;
xvelocity = xvelocity + ((_root._xmouse - copter._x) / 4);
yvelocity = yvelocity + ((_root._ymouse - copter._y) / 4);
xacc = xvelocity / 4;
yacc = yvelocity / 4;
copter._x = copter._x + xacc;
copter._y = copter._y + yacc;
copter._rotation = xacc * 0.4;
if (copter._y < 42) {
copter._y = 42;
}
if (copter._x < 1) {
copter._x = 1;
}
if (copter._x > 700) {
copter._x = 700;
}
if (copter._y > 419) {
copter._y = 419;
}
onMouseDown = function () {
mousedown = true;
};
onMouseUp = function () {
mousedown = false;
};
if ((mousedown == true) && (roftimer == 0)) {
roftimer = rof;
newbullet = _root.attachMovie("copter_bullet", "copter_bullet" + bulletcount, bulletcount++);
newbullet._x = copter._x - 3;
newbullet._y = copter._y + 3;
_root.copter.gunflash.play();
}
if (roftimer > 0) {
roftimer--;
}
if (bulletcount > 515) {
bulletcount = 500;
}
if ((Key.isDown(32) && (bombout == false)) && (bomballowed == true)) {
bombout = true;
newb = _root.attachMovie("bomb", "bomb" + bombcount, bombcount++);
bombxv = xvelocity / 8;
bombyv = yvelocity / 8;
newb._x = copter._x;
newb._y = copter._y + 3;
}
if (bombcount > 603) {
bombcount = 600;
}
newb._x = newb._x + ((bombxv = bombxv * 0.98));
newb._y = newb._y + ((bombyv = bombyv * 0.98));
if ((Key.isDown(32) && (bombout == true)) && (newb._currentframe == 15)) {
newb.gotoAndPlay("explode");
}
combotimer++;
if (combotimer >= 5) {
combotimer = 0;
killscore--;
}
if (killscore < 1) {
killscore = 1;
}
i = 700;
while (i < 720) {
if (((_root.copter.hitbox.hitTest(_root["enemy_bat" + i].hitbox) || (_root.copter.hitbox.hitTest(_root["enemy_batb" + i].hitbox))) || (_root.copter.hitbox.hitTest(_root["enemy_face" + i].hitbox))) || (_root.copter.hitbox.hitTest(_root["transport_copter" + i].hitbox))) {
_root.copter.flasher.play();
}
i++;
}
}
levelCode();
bomballowed = true;
}
}
stop();
Stage.showMenu = false;
Mouse.show();
wipe = true;
var savefile = SharedObject.getLocal("batcountry");
_root.levels_unlocked = savefile.data.level;
_root.topscore1 = savefile.data.topscorelvl1;
_root.topscore2 = savefile.data.topscorelvl2;
_root.topscore3 = savefile.data.topscorelvl3;
_root.topscore4 = savefile.data.topscorelvl4;
if (savefile.data.level == undefined) {
_root.levels_unlocked = 0;
}
if (savefile.data.topscorelvl1 == undefined) {
_root.topscore1 = 0;
}
if (savefile.data.topscorelvl2 == undefined) {
_root.topscore2 = 0;
}
if (savefile.data.topscorelvl3 == undefined) {
_root.topscore3 = 0;
}
if (savefile.data.topscorelvl4 == undefined) {
_root.topscore4 = 0;
}
Frame 94
wipe = true;
musicon = true;
Mouse.show();
if (levels_unlocked <= 0) {
levels_unlocked = 0;
}
cloudheight = true;
function onEnterFrame() {
}
stop();
Stage.showMenu = false;
Frame 95
onlevel = 0;
stuffcount = 420;
talkbox.gotoAndStop(60);
cloudheight = true;
targetsdown = 0;
scrollspeed = 5;
coptergo = true;
xvelocity = 0;
yvelocity = 0;
et = 0;
killscore = 1;
score = 0;
bombcount = 600;
bulletspeed = 50;
bulletcount = 500;
stuffcount = 420;
rof = 3;
bulletdmg = 10;
roftimer = 0;
bombout = false;
bomb_xv = 0;
bomb_yv = 0;
copter._visible = true;
wipe = false;
function onEnterFrame() {
if ((Key.isDown(80) && (pkeydown == false)) && (pau == false)) {
pausemenu = attachMovie("pausemenu", "pausemenu", 2010);
pausemenu._x = 0;
pausemenu._y = 0;
pkeydown = true;
}
if ((Key.isDown(80) && (pkeydown == false)) && (pau == true)) {
pausemenu.swapDepths(9999);
pausemenu.removeMovieClip();
pau = false;
pkeydown = true;
}
if (!Key.isDown(80)) {
pkeydown = false;
}
engine();
if (musicon == false) {
music.gotoAndStop("mute");
}
if (musicon == true) {
music.gotoAndStop(1);
}
}
pau = false;
function levelCode() {
et++;
if (et == 50) {
talkbox.gotoAndStop(61);
}
if (et == 300) {
newenemy = _root.attachMovie("enemy_target", "enemy_target" + stuffcount, stuffcount++);
newenemy._x = 550;
newenemy._y = 90;
newenemy = _root.attachMovie("enemy_target", "enemy_target" + stuffcount, stuffcount++);
newenemy._x = 550;
newenemy._y = 290;
newenemy = _root.attachMovie("enemy_target", "enemy_target" + stuffcount, stuffcount++);
newenemy._x = 550;
newenemy._y = 190;
}
if ((targetsdown == 3) && (talkbox._currentframe == 62)) {
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 160;
newenemy._y = 130;
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 550;
newenemy._y = 150;
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 310;
newenemy._y = 300;
talkbox.nextFrame();
}
if ((targetsdown == 6) && (talkbox._currentframe == 63)) {
newenemy = _root.attachMovie("forbidden_area", "forbidden_area300", 300);
newenemy._x = 360;
newenemy._y = 20;
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 450;
newenemy._y = 80;
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 620;
newenemy._y = 150;
newenemy = _root.attachMovie("enemy_targetb", "enemy_targetb" + stuffcount, stuffcount++);
newenemy._x = 520;
newenemy._y = 300;
talkbox.nextFrame();
}
if ((targetsdown == 9) && (talkbox._currentframe == 64)) {
talkbox.nextFrame();
}
if (targetsdown == 10) {
if (levels_unlocked <= 1) {
levels_unlocked = 1;
}
stopAllSounds();
gotoAndStop ("lvlselect");
}
if (stuffcount > 430) {
stuffcount = 420;
}
}
Instance of Symbol 284 MovieClip in Frame 95
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Instance of Symbol 625 MovieClip "talkbox" in Frame 95
onClipEvent (enterFrame) {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Frame 96
onlevel = 1;
singlebat = 0;
difficulty = 160;
cloudheight = true;
talkbox.gotoAndStop(1);
scrollspeed = 5;
coptergo = true;
xvelocity = 0;
yvelocity = 0;
et = 0;
killscore = 1;
score = 0;
bombcount = 600;
bulletspeed = 50;
bulletcount = 500;
stuffcount = 420;
batcount = 700;
coincount = 800;
rof = 3;
bulletdmg = 10;
roftimer = 0;
bombout = false;
bomb_xv = 0;
bomb_yv = 0;
copter._visible = true;
wipe = false;
function onEnterFrame() {
if ((Key.isDown(80) && (pkeydown == false)) && (pau == false)) {
pausemenu = attachMovie("pausemenu", "pausemenu", 2010);
pausemenu._x = 0;
pausemenu._y = 0;
pkeydown = true;
}
if ((Key.isDown(80) && (pkeydown == false)) && (pau == true)) {
pausemenu.swapDepths(9999);
pausemenu.removeMovieClip();
pau = false;
pkeydown = true;
}
if (!Key.isDown(80)) {
pkeydown = false;
}
engine();
if (musicon == false) {
music.gotoAndStop("mute");
}
if (musicon == true) {
music.gotoAndStop(1);
}
}
pau = false;
function levelCode() {
singlebat++;
et++;
bt = random(difficulty);
if (et == 80) {
talkbox.nextFrame();
}
if (et == 1500) {
talkbox.nextFrame();
}
if ((et > 1450) && (et < 1700)) {
difficulty = 100;
}
if (et == 1970) {
talkbox.nextFrame();
}
if (et == 3700) {
talkbox.nextFrame();
}
if (et == 4900) {
talkbox.nextFrame();
}
if (et == 650) {
newin = _root.attachMovie("levelintro", "levelintro" + batcount, batcount++);
newin._x = 350;
newin._y = 225;
}
if (et == 5550) {
if (levels_unlocked <= 2) {
levels_unlocked = 2;
}
stopAllSounds();
gotoAndStop ("lvlend");
}
if ((et == 60) && (et < 5400)) {
newenemy = _root.attachMovie("enemy_bat", "enemy_bat" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = 200;
}
if ((bt == 1) && (et < 5400)) {
newenemy = _root.attachMovie("enemy_bat", "enemy_bat" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
}
if ((singlebat > 120) && (et < 5400)) {
newenemy = _root.attachMovie("enemy_bat", "enemy_bat" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
singlebat = 0;
}
difficulty = 140;
if (talkbox._visible == true) {
difficulty = 230;
}
if ((et > 5200) && (et < 5400)) {
difficulty = 300;
if (random(20) == 10) {
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 730;
newenemy._y = random(360) + 40;
}
}
if (((bt == 2) && (et > 2000)) && (et < 5400)) {
newenemy = _root.attachMovie("enemy_batb", "enemy_batb" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(380) + 50;
}
if ((et > 2900) && (et < 3500)) {
difficulty = 140;
}
if ((et == 2900) || (et == 3400)) {
newenemy = _root.attachMovie("enemy_face", "enemy_face" + batcount, batcount++);
newenemy._x = 750;
newenemy._y = random(380) + 50;
}
if ((et == 2000) || (et == 3800)) {
newenemy = _root.attachMovie("life", "life" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = 250;
}
if (et == 4400) {
newenemy = _root.attachMovie("transport_copter", "transport_copter" + batcount, batcount++);
newenemy._x = 900;
newenemy._y = 135;
}
if (et == 4600) {
newenemy = _root.attachMovie("transport_copter", "transport_copter" + batcount, batcount++);
newenemy._x = 900;
newenemy._y = 300;
}
if (et == 4700) {
newenemy = _root.attachMovie("transport_copter", "transport_copter" + batcount, batcount++);
newenemy._x = 900;
newenemy._y = 200;
}
if (((et == 1000) || (et == 2400)) || (et == 4200)) {
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 835;
newenemy._y = 45;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 755;
newenemy._y = 95;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 891;
newenemy._y = 60;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 924;
newenemy._y = 95;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 936;
newenemy._y = 144;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 924;
newenemy._y = 192;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 891;
newenemy._y = 226;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 836;
newenemy._y = 241;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 787;
newenemy._y = 226;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 752;
newenemy._y = 192;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 740;
newenemy._y = 144;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 752;
newenemy._y = 193;
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 789;
newenemy._y = 60;
}
i = 700;
while (i < 720) {
if (_root.copter.hitbox.hitTest(_root["transport_copter" + i].hitbox)) {
_root.copter.flasher.play();
}
i++;
}
if (batcount > 720) {
batcount = 700;
}
if (coincount > 815) {
coincount = 800;
}
}
Frame 97
onlevel = 2;
cloudheight = false;
_root.music.gotoAndPlay(2);
singlebat = 0;
talkbox.gotoAndStop(17);
boatcount = 440;
scrollspeed = 5;
coptergo = true;
batcount = 700;
coincount = 800;
xvelocity = 0;
yvelocity = 0;
et = 0;
killscore = 1;
score = 0;
bombcount = 600;
bulletspeed = 50;
bulletcount = 500;
stuffcount = 420;
rof = 3;
bulletdmg = 10;
roftimer = 0;
bombout = false;
bomb_xv = 0;
bomb_yv = 0;
copter._visible = true;
wipe = false;
function onEnterFrame() {
if ((Key.isDown(80) && (pkeydown == false)) && (pau == false)) {
pausemenu = attachMovie("pausemenu", "pausemenu", 2010);
pausemenu._x = 0;
pausemenu._y = 0;
pkeydown = true;
}
if ((Key.isDown(80) && (pkeydown == false)) && (pau == true)) {
pausemenu.swapDepths(9999);
pausemenu.removeMovieClip();
pau = false;
pkeydown = true;
}
if (!Key.isDown(80)) {
pkeydown = false;
}
engine();
if (musicon == false) {
music.gotoAndStop("mute");
}
if (musicon == true) {
music.gotoAndStop(3);
}
}
pau = false;
function levelCode() {
singlebat++;
et++;
bt = random(difficulty);
difficulty = 190;
if (talkbox._visible == true) {
difficulty = 230;
}
if (copter._y > 380) {
copter._y = 380;
}
if (et < 100) {
_root.rain._alpha++;
}
if (et == 5) {
talkbox.nextFrame();
}
if (et == 400) {
talkbox.nextFrame();
}
if (et == 1650) {
talkbox.nextFrame();
}
if (et == 4000) {
talkbox.nextFrame();
}
if (et == 5080) {
talkbox.nextFrame();
}
if ((et > 60) && (_root.cloudgen._y > -120)) {
_root.cloudgen._y--;
}
if ((et > 60) && (_root.sea._y > 340)) {
_root.sea._y--;
}
if (et == 190) {
newin = _root.attachMovie("levelintro2", "levelintro2" + batcount, batcount++);
newin._x = 350;
newin._y = 225;
}
if (_root.coptergo == true) {
i = 440;
while (i < 445) {
if (((_root.copter.hitbox.hitTest(_root["brokenboat" + i].hitbox) || (_root.copter.hitbox.hitTest(_root["brokenboat" + i].hitbox1))) || (_root.copter.hitbox.hitTest(_root["brokenboat" + i].hitbox2))) || (_root.copter.hitbox.hitTest(_root["brokenboat" + i].hitbox3))) {
_root.copter.flasher.play();
}
i++;
}
i = 700;
while (i < 720) {
if (_root.copter.hitbox.hitTest(_root["lightning" + i].hitbox)) {
_root.copter.flasher.play();
}
i++;
}
}
if ((singlebat > 120) && (et < 1800)) {
newenemy = _root.attachMovie("enemy_batb", "enemy_batb" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(350) + 50;
singlebat = 0;
}
if ((bt == 1) && (et < 5000)) {
newenemy = _root.attachMovie("enemy_bat", "enemy_bat" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(350) + 50;
}
if (((bt == 2) && (et < 2000)) && (et < 5000)) {
newenemy = _root.attachMovie("enemy_batb", "enemy_batb" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(350) + 50;
}
if (((et == 600) || (et == 1050)) || (et == 1400)) {
newenemy = _root.attachMovie("enemy_face", "enemy_face" + batcount, batcount++);
newenemy._x = 750;
newenemy._y = random(350) + 50;
}
if (((et == 500) || (et == 800)) || (et == 1200)) {
newenemy = _root.attachMovie("brokenboat", "brokenboat" + boatcount, boatcount++);
newenemy._x = 800;
newenemy._y = 410;
}
timerr++;
if ((((random(4) == 1) && (timerr == 70)) && (et > 2000)) && (et < 5100)) {
newenemy = _root.attachMovie("brokenboat", "brokenboat" + boatcount, boatcount++);
newenemy._x = 800;
newenemy._y = 410;
}
if (timerr > 80) {
timerr = 0;
}
if ((et > 2000) && (et < 3000)) {
difficulty = 190;
}
if (et > 3000) {
difficulty = 150;
}
if (et == 1800) {
newenemy = _root.attachMovie("sharky", "sharky", 449);
newenemy._x = -13;
newenemy._y = 250;
}
if (et > 5000) {
_root.sharky._x = _root.sharky._x - 5;
}
if (et > 5500) {
_root.sharky.swapDepths(9999);
_root.sharky.removeMovieClip();
}
if (et == 5400) {
newenemy = _root.attachMovie("sharkendlvl", "sharkendlvl", 979);
newenemy._x = 332;
newenemy._y = 475;
}
if ((((((et == 1000) || (et == 1700)) || (et == 2500)) || (et == 3000)) || (et == 3500)) || (et == 4000)) {
newenemy = _root.attachMovie("life", "life" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = 250;
}
if (boatcount > 445) {
boatcount = 440;
}
if (batcount > 720) {
batcount = 700;
}
if (coincount > 815) {
coincount = 800;
}
timer++;
if (timer > 15) {
timer = 0;
}
if (((random(7) == 1) && (timer == 10)) && (et < 5000)) {
newli = _root.attachMovie("lightning", "lightning" + batcount, batcount++);
newli._x = random(570) + 70;
newli._y = 5;
}
if (et == 5500) {
if (levels_unlocked <= 3) {
levels_unlocked = 3;
}
stopAllSounds();
gotoAndStop ("lvlend");
}
}
_root.rain._alpha = 0;
timer = 0;
timerr = 0;
Frame 98
onlevel = 3;
_root.music.play();
singlebat = 0;
talkbox.gotoAndStop(31);
scrollspeed = 5;
coptergo = true;
batcount = 700;
coincount = 800;
xvelocity = 0;
yvelocity = 0;
et = 0;
killscore = 1;
score = 0;
bombcount = 600;
bulletspeed = 50;
bulletcount = 500;
stuffcount = 420;
rof = 3;
bulletdmg = 10;
roftimer = 0;
bombout = false;
bomb_xv = 0;
bomb_yv = 0;
copter._visible = true;
wipe = false;
function onEnterFrame() {
if ((Key.isDown(80) && (pkeydown == false)) && (pau == false)) {
pausemenu = attachMovie("pausemenu", "pausemenu", 2010);
pausemenu._x = 0;
pausemenu._y = 0;
pkeydown = true;
}
if ((Key.isDown(80) && (pkeydown == false)) && (pau == true)) {
pausemenu.swapDepths(9999);
pausemenu.removeMovieClip();
pau = false;
pkeydown = true;
}
if (!Key.isDown(80)) {
pkeydown = false;
}
engine();
if (musicon == false) {
music.gotoAndStop("mute");
}
if (musicon == true) {
music.gotoAndStop(5);
}
}
pau = false;
function levelCode() {
singlebat++;
et++;
bt = random(difficulty);
difficulty = 90;
if (talkbox._visible == true) {
difficulty = 230;
}
if (et == 200) {
talkbox.nextFrame();
}
if (et == 3040) {
talkbox.nextFrame();
}
if (et == 6100) {
talkbox.nextFrame();
}
if (et > 6500) {
_root.coptergo = false;
_root.copter._x = _root.copter._x + (_root.scrollspeed / 2);
_root.copter._rotation = 8;
}
if (_root.copter._x > 1000) {
_root.copter._x = 1000;
}
if (et == 50) {
newin = _root.attachMovie("levelintro3", "levelintro3" + batcount, batcount++);
newin._x = 350;
newin._y = 225;
}
if (et == 6600) {
if (levels_unlocked <= 4) {
levels_unlocked = 4;
}
stopAllSounds();
gotoAndStop ("lvlend");
}
if (et == 1300) {
talkbox.nextFrame();
}
if ((bt == 1) && (et < 6100)) {
newenemy = _root.attachMovie("enemy_bat", "enemy_bat" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
}
if ((singlebat > 120) && (et < 6100)) {
newenemy = _root.attachMovie("enemy_batb", "enemy_batb" + batcount, batcount++);
newenemy._x = -30;
newenemy._y = random(380) + 50;
singlebat = 0;
}
if ((et == 1550) && (et < 6100)) {
newenemy = _root.attachMovie("cave1", "cave1", 449);
newenemy._x = 750;
newenemy._y = -5;
}
if (et == 4900) {
newenemy = _root.attachMovie("cave2", "cave2", 449);
newenemy._x = 750;
newenemy._y = -5;
}
if (et > 4900) {
difficulty = 130;
}
if ((et > 3700) && (et < 4700)) {
difficulty = 120;
if (random(30) == 10) {
newenemy = _root.attachMovie("coin", "coin" + coincount, coincount++);
newenemy._x = 730;
newenemy._y = random(360) + 40;
}
}
if ((et == 3100) || (et == 4000)) {
newenemy = _root.attachMovie("life", "life" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = 200;
}
if ((((et == 3200) || (et == 3400)) || (et == 3500)) || (et == 3600)) {
newenemy = _root.attachMovie("enemy_face", "enemy_face" + batcount, batcount++);
newenemy._x = 750;
newenemy._y = random(380) + 50;
}
if (batcount > 720) {
batcount = 700;
}
if (coincount > 815) {
coincount = 800;
}
}
Frame 99
onlevel = 4;
_root.music.gotoAndStop(4);
singlebat = 0;
talkbox.gotoAndStop(42);
scrollspeed = 3.4;
coptergo = false;
bigcount = 420;
batcount = 700;
coincount = 800;
dudeshealth._visible = false;
darkness.swapDepths(9999);
darkness.removeMovieClip();
newin._x = 0;
newin._y = 0;
copter._x = -100;
copter._y = 195;
xvelocity = 0;
yvelocity = 0;
et = 0;
killscore = 1;
score = 0;
bombcount = 600;
bulletspeed = 50;
bulletcount = 500;
stuffcount = 420;
rof = 3;
bulletdmg = 10;
roftimer = 0;
bombout = false;
bomb_xv = 0;
bomb_yv = 0;
copter._visible = true;
wipe = false;
function onEnterFrame() {
if ((Key.isDown(80) && (pkeydown == false)) && (pau == false)) {
pausemenu = attachMovie("pausemenu", "pausemenu", 2010);
pausemenu._x = 0;
pausemenu._y = 0;
pkeydown = true;
}
if ((Key.isDown(80) && (pkeydown == false)) && (pau == true)) {
pausemenu.swapDepths(9999);
pausemenu.removeMovieClip();
pau = false;
pkeydown = true;
}
if (!Key.isDown(80)) {
pkeydown = false;
}
engine();
if (musicon == false) {
music.gotoAndStop("mute");
}
if ((musicon == true) && (et > 850)) {
music.gotoAndStop(3);
}
}
pau = false;
function levelCode() {
et++;
singlebat++;
bt = random(difficulty);
difficulty = 85;
if (coptergo == false) {
_root.copter._x = _root.copter._x + 4;
_root.copter._rotation = 8;
}
if (_root.copter._x > 195) {
_root.coptergo = true;
}
if (et == 20) {
dudes.gotoAndStop("waving");
}
if (et == 100) {
talkbox.nextFrame();
}
if (et == 300) {
dudes.gotoAndStop("idle");
}
if (et == 850) {
newin = attachMovie("levelintro4", "levelintro4" + batcount, batcount++);
newin._x = 350;
newin._y = 195;
dudeshealth._visible = true;
if (musicon == true) {
_root.music.gotoAndStop(3);
}
}
if (et == 940) {
dudes.gotoAndStop("working");
}
i = 700;
while (i < 720) {
if ((dudes.hitbox.hitTest(_root["enemy_batd" + i].hitbox) || (dudes.hitbox.hitTest(_root["enemy_batbd" + i].hitbox))) || (dudes.hitbox.hitTest(_root["enemy_faced" + i].hitbox))) {
dudes.flasher.play();
}
if ((_root.copter.hitbox.hitTest(_root["enemy_batd" + i].hitbox) || (_root.copter.hitbox.hitTest(_root["enemy_batbd" + i].hitbox))) || (_root.copter.hitbox.hitTest(_root["enemy_faced" + i].hitbox))) {
_root.copter.flasher.play();
}
i++;
}
if (((bt == 1) && (et > 1000)) && (et < 1500)) {
newenemy = _root.attachMovie("enemy_batd", "enemy_batd" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
}
if (((singlebat > 130) && (et > 1000)) && (et < 1500)) {
newenemy = _root.attachMovie("enemy_batd", "enemy_batd" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
singlebat = 0;
}
if (((bt == 2) && (et > 1000)) && (et < 1500)) {
newenemy = _root.attachMovie("enemy_batbd", "enemy_batbd" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(380) + 50;
}
if (batcount > 720) {
batcount = 700;
}
if (coincount > 815) {
coincount = 800;
}
if (et == 1550) {
talkbox.nextFrame();
}
if (et == 1600) {
newenemy = _root.attachMovie("coin_spawner", "coin_spawner" + batcount, batcount++);
newenemy._x = 340;
newenemy._y = 245;
}
if (((et == 1750) || (et == 1900)) || (et == 2100)) {
newenemy = _root.attachMovie("enemy_faced", "enemy_faced" + batcount, batcount++);
newenemy._x = 780;
newenemy._y = random(380) + 50;
}
if (et == 2150) {
newenemy = _root.attachMovie("enemy_spider", "enemy_spider" + bigcount, bigcount++);
newenemy._x = 810;
newenemy._y = 224;
}
if (((singlebat > 100) && (et > 1700)) && (et < 2750)) {
newenemy = _root.attachMovie("enemy_batbd", "enemy_batbd" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(380) + 50;
singlebat = 0;
}
if (et == 2800) {
talkbox.nextFrame();
}
if (((bt == 1) && (et > 2970)) && (et < 3700)) {
difficulty = 50;
newenemy = _root.attachMovie("enemy_batd", "enemy_batd" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
}
if (((bt == 2) && (et > 3000)) && (et < 3700)) {
newenemy = _root.attachMovie("enemy_batbd", "enemy_batbd" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(380) + 50;
}
if (et == 3600) {
newenemy = _root.attachMovie("coin_spawner", "coin_spawner" + batcount, batcount++);
newenemy._x = 340;
newenemy._y = 245;
}
if ((et == 3800) || (et == 5000)) {
newenemy = _root.attachMovie("lifed", "lifed" + batcount, batcount++);
newenemy._x = 340;
newenemy._y = -15;
}
if (et == 3785) {
talkbox.nextFrame();
}
if (et == 4000) {
newenemy = _root.attachMovie("enemy_worm", "enemy_worm" + bigcount, bigcount++);
newenemy._x = 600;
newenemy._y = 80;
}
if (et == 4300) {
talkbox.nextFrame();
}
if (((bt == 1) && (et > 4500)) && (et < 5400)) {
difficulty = 70;
newenemy = _root.attachMovie("enemy_batd", "enemy_batd" + batcount, batcount++);
newenemy._x = 730;
newenemy._y = random(380) + 50;
}
if ((et == 4500) || (et == 6250)) {
newenemy = _root.attachMovie("enemy_spider", "enemy_spider" + bigcount, bigcount++);
newenemy._x = 810;
newenemy._y = 224;
}
if (et == 5400) {
talkbox.nextFrame();
}
if (et == 6330) {
talkbox.nextFrame();
}
if (((et == 5100) || (et == 5800)) || (et == 6250)) {
newenemy = _root.attachMovie("enemy_spiderb", "enemy_spiderb" + bigcount, bigcount++);
newenemy._x = -80;
newenemy._y = 224;
}
if ((et == 5600) || (et == 6250)) {
newenemy = _root.attachMovie("enemy_worm", "enemy_worm" + bigcount, bigcount++);
newenemy._x = 600;
newenemy._y = 80;
}
if (((bt == 2) && (et > 5300)) && (et < 6300)) {
difficulty = 80;
newenemy = _root.attachMovie("enemy_batbd", "enemy_batbd" + batcount, batcount++);
newenemy._x = -40;
newenemy._y = random(380) + 50;
}
if (et == 6400) {
if (levels_unlocked <= 5) {
levels_unlocked = 5;
}
stopAllSounds();
nextFrame();
}
if (bigcount > 430) {
bigcount = 420;
}
}
Frame 100
stop();
cloudheight = true;
function onEnterFrame() {
}
Stage.showMenu = false;
Frame 101
function onEnterFrame() {
}
Mouse.show();
wipe = true;
Stage.showMenu = false;
Frame 102
function onEnterFrame() {
}
Mouse.show();
wipe = true;
Stage.showMenu = false;
savefile.data.level = _root.levels_unlocked;
savefile.flush();
_root.textscore.text = _root.score;
if (_root.onlevel == 1) {
if (_root.score > _root.topscore1) {
_root.topscore1 = _root.score;
}
_root.highscore.text = topscore1;
savefile.data.topscorelvl1 = _root.topscore1;
savefile.flush();
if (_root.score >= 40000) {
_root.rank.gotoAndStop(1);
}
if ((_root.score < 40000) && (_root.score >= 30000)) {
_root.rank.gotoAndStop(2);
}
if ((_root.score < 30000) && (_root.score >= 20000)) {
_root.rank.gotoAndStop(3);
}
if (_root.score < 20000) {
_root.rank.gotoAndStop(4);
}
}
if (_root.onlevel == 2) {
if (_root.score > _root.topscore2) {
_root.topscore2 = _root.score;
}
_root.highscore.text = topscore2;
savefile.data.topscorelvl2 = _root.topscore2;
savefile.flush();
if (_root.score >= 35000) {
_root.rank.gotoAndStop(1);
}
if ((_root.score < 35000) && (_root.score >= 30000)) {
_root.rank.gotoAndStop(2);
}
if ((_root.score < 30000) && (_root.score >= 20000)) {
_root.rank.gotoAndStop(3);
}
if (_root.score < 20000) {
_root.rank.gotoAndStop(4);
}
}
if (_root.onlevel == 3) {
if (_root.score > _root.topscore3) {
_root.topscore3 = _root.score;
}
_root.highscore.text = topscore3;
savefile.data.topscorelvl3 = _root.topscore3;
savefile.flush();
if (_root.score >= 35000) {
_root.rank.gotoAndStop(1);
}
if ((_root.score < 35000) && (_root.score >= 30000)) {
_root.rank.gotoAndStop(2);
}
if ((_root.score < 30000) && (_root.score >= 20000)) {
_root.rank.gotoAndStop(3);
}
if (_root.score < 20000) {
_root.rank.gotoAndStop(4);
}
}
if (_root.onlevel == 4) {
if (_root.score > _root.topscore4) {
_root.topscore4 = _root.score;
}
_root.highscore.text = topscore4;
savefile.data.topscorelvl4 = _root.topscore4;
savefile.flush();
if (_root.score >= 100000) {
_root.rank.gotoAndStop(1);
}
if ((_root.score < 100000) && (_root.score >= 90000)) {
_root.rank.gotoAndStop(2);
}
if ((_root.score < 90000) && (_root.score >= 70000)) {
_root.rank.gotoAndStop(3);
}
if (_root.score < 70000) {
_root.rank.gotoAndStop(4);
}
}
Symbol 3 MovieClip [copter_bullet] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + thisbulletspeed;
if (this._x > 760) {
this.swapDepths(9999)();
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
thisbulletspeed = _root.bulletspeed;
Symbol 15 MovieClip Frame 1
_visible = false;
Symbol 16 MovieClip [bomb] Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
_root.bombout = false;
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 16 MovieClip [bomb] Frame 15
stop();
Symbol 16 MovieClip [bomb] Frame 16
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
}
Symbol 16 MovieClip [bomb] Frame 27
_root.bombout = false;
this.swapDepths(9999);
this.removeMovieClip();
Symbol 25 MovieClip Frame 1
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
stop();
_visible = false;
Symbol 25 MovieClip Frame 2
colorObject = new Color(this._parent);
colorObject.setRGB(10027008);
_parent._x = _parent._x + 20;
Symbol 25 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
gotoAndStop (1);
Symbol 28 MovieClip Frame 1
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
stop();
_visible = false;
Symbol 28 MovieClip Frame 2
colorObject = new Color(this._parent);
colorObject.setRGB(16733525);
this._parent.health = this._parent.health - 20;
scr = _root.attachMovie("10score", "10score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
scr._x = (this._parent._x + random(10)) - 5;
scr._y = this._parent._y - (random(10) + 10);
Symbol 28 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
gotoAndStop (1);
Symbol 33 MovieClip Frame 7
stop();
Symbol 36 MovieClip [hit_blood] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer >= 150) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
timer = 0;
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [hit_blood] Frame 1
onClipEvent (load) {
size = 100 + random(50);
_xscale = size;
_yscale = size;
up = random(10) - 4;
grav = 0;
timer = 0;
startfade = random(60);
gravity = random(3) + 1;
fadetime = random(6) + 2;
speed = random(24) - 12;
minusspeed = random(10) + 1;
}
onClipEvent (enterFrame) {
if (_root.pau == false) {
this._y = this._y - up;
grav = grav + (gravity / 2);
_y = (_y + grav);
timer++;
if (timer > startfade) {
_alpha = (_alpha - fadetime);
}
_x = (_x + speed);
if ((speed > 0) && (!(speed === 0))) {
speed = speed - minusspeed;
}
if ((speed < 0) && (!(speed === 0))) {
speed = speed + minusspeed;
}
if (_alpha <= 0) {
this.swapDepths(99999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [hit_blood] Frame 1
onClipEvent (load) {
size = 100 + random(50);
_xscale = size;
_yscale = size;
up = random(10) - 4;
grav = 0;
timer = 0;
startfade = random(60);
gravity = random(3) + 1;
fadetime = random(6) + 2;
speed = random(24) - 12;
minusspeed = random(10) + 1;
}
onClipEvent (enterFrame) {
if (_root.pau == false) {
this._y = this._y - up;
grav = grav + (gravity / 2);
_y = (_y + grav);
timer++;
if (timer > startfade) {
_alpha = (_alpha - fadetime);
}
_x = (_x + speed);
if ((speed > 0) && (!(speed === 0))) {
speed = speed - minusspeed;
}
if ((speed < 0) && (!(speed === 0))) {
speed = speed + minusspeed;
}
if (_alpha <= 0) {
this.swapDepths(99999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [hit_blood] Frame 1
onClipEvent (load) {
size = 100 + random(50);
_xscale = size;
_yscale = size;
up = random(10) - 4;
grav = 0;
timer = 0;
startfade = random(60);
gravity = random(3) + 1;
fadetime = random(6) + 2;
speed = random(24) - 12;
minusspeed = random(10) + 1;
}
onClipEvent (enterFrame) {
if (_root.pau == false) {
this._y = this._y - up;
grav = grav + (gravity / 2);
_y = (_y + grav);
timer++;
if (timer > startfade) {
_alpha = (_alpha - fadetime);
}
_x = (_x + speed);
if ((speed > 0) && (!(speed === 0))) {
speed = speed - minusspeed;
}
if ((speed < 0) && (!(speed === 0))) {
speed = speed + minusspeed;
}
if (_alpha <= 0) {
this.swapDepths(99999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [hit_blood] Frame 1
onClipEvent (load) {
size = 100 + random(50);
_xscale = size;
_yscale = size;
up = random(10) - 4;
grav = 0;
timer = 0;
startfade = random(60);
gravity = random(3) + 1;
fadetime = random(6) + 2;
speed = random(24) - 12;
minusspeed = random(10) + 1;
}
onClipEvent (enterFrame) {
if (_root.pau == false) {
this._y = this._y - up;
grav = grav + (gravity / 2);
_y = (_y + grav);
timer++;
if (timer > startfade) {
_alpha = (_alpha - fadetime);
}
_x = (_x + speed);
if ((speed > 0) && (!(speed === 0))) {
speed = speed - minusspeed;
}
if ((speed < 0) && (!(speed === 0))) {
speed = speed + minusspeed;
}
if (_alpha <= 0) {
this.swapDepths(99999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [hit_blood] Frame 1
onClipEvent (load) {
size = 100 + random(50);
_xscale = size;
_yscale = size;
up = random(10) - 4;
grav = 0;
timer = 0;
startfade = random(60);
gravity = random(3) + 1;
fadetime = random(6) + 2;
speed = random(24) - 12;
minusspeed = random(10) + 1;
}
onClipEvent (enterFrame) {
if (_root.pau == false) {
this._y = this._y - up;
grav = grav + (gravity / 2);
_y = (_y + grav);
timer++;
if (timer > startfade) {
_alpha = (_alpha - fadetime);
}
_x = (_x + speed);
if ((speed > 0) && (!(speed === 0))) {
speed = speed - minusspeed;
}
if ((speed < 0) && (!(speed === 0))) {
speed = speed + minusspeed;
}
if (_alpha <= 0) {
this.swapDepths(99999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 40 MovieClip [1000score] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + velocityx;
this._y = this._y + velocityy;
velocityx = velocityx * 0.6;
velocityy = velocityy * 0.6;
_alpha = (_alpha - 7);
if (_alpha < 5) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
showscore = _root.killscore * 300;
_root.score = _root.score + (_root.killscore * 300);
_root.killscore++;
timer = 0;
velocityx = random(8) - 4;
velocityy = random(8) - 4;
Symbol 43 MovieClip [enemy_faced] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 515) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hitback.play();
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x - (_root.scrollspeed / 1.3);
}
verticalmove = true;
_rotation = 0;
if ((this._x > _root.dudes._x) && (verticalmove == true)) {
if (_root.dudes._y > this._y) {
_rotation = -5;
this._y = this._y + _root.scrollspeed;
} else if (_root.dudes._y < this._y) {
this._y = this._y - _root.scrollspeed;
_rotation = 5;
}
}
if (this._x < -80) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 120;
verticalmove = true;
Symbol 43 MovieClip [enemy_faced] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
verticalmove = false;
_rotation = 0;
Symbol 43 MovieClip [enemy_faced] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 44 MovieClip [enemy_face] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 515) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hitback.play();
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x - (_root.scrollspeed / 1.3);
}
verticalmove = true;
_rotation = 0;
if ((this._x > _root.copter._x) && (verticalmove == true)) {
if (_root.copter._y > this._y) {
_rotation = -5;
this._y = this._y + _root.scrollspeed;
} else if (_root.copter._y < this._y) {
this._y = this._y - _root.scrollspeed;
_rotation = 5;
}
}
if (this._x < -80) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 120;
verticalmove = true;
Symbol 44 MovieClip [enemy_face] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
verticalmove = false;
_rotation = 0;
Symbol 44 MovieClip [enemy_face] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 51 MovieClip Frame 1
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
stop();
_visible = false;
Symbol 51 MovieClip Frame 2
colorObject = new Color(this._parent);
colorObject.setRGB(16733525);
this._parent.health = this._parent.health - 20;
scr = _root.attachMovie("10score", "10score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
scr._x = (this._parent._x + random(10)) - 5;
scr._y = this._parent._y - (random(10) + 10);
Symbol 51 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
gotoAndStop (1);
Symbol 52 MovieClip Frame 1
stop();
_visible = false;
Symbol 52 MovieClip Frame 2
scr = _root.attachMovie("10score", "10score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
scr._x = (this._parent._x + random(10)) - 5;
scr._y = this._parent._y - (random(10) + 10);
Symbol 52 MovieClip Frame 3
gotoAndStop (1);
Symbol 55 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + velocityx;
this._y = this._y + velocityy;
velocityx = velocityx * 0.6;
velocityy = velocityy * 0.6;
_alpha = (_alpha - 7);
if (_alpha < 5) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
showscore = _root.killscore * 50;
_root.score = _root.score + (_root.killscore * 50);
_root.killscore++;
timer = 0;
velocityx = random(8) - 4;
velocityy = random(8) - 4;
Symbol 58 MovieClip [enemy_batbd] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 550) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
flasherb.play();
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x + (_root.scrollspeed / 1.6);
}
verticalmove = true;
i = 700;
while (i < 720) {
if (((((this != _root["enemy_bat" + i]) && (this._y < (_root["enemy_bat" + i]._y + 20))) && (this._y > (_root["enemy_bat" + i]._y - 20))) && (this._x < (_root["enemy_bat" + i]._x + 50))) && (this._x > (_root["enemy_bat" + i]._x - 50))) {
verticalmove = false;
}
i++;
}
if ((this._x < _root.copter._x) && (verticalmove == true)) {
if (_root.dudes._y > this._y) {
this._y = this._y + (_root.scrollspeed / 3);
} else if (_root.dudes._y < this._y) {
this._y = this._y - (_root.scrollspeed / 3);
}
}
if (this._x > 770) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 100;
verticalmove = true;
Symbol 58 MovieClip [enemy_batbd] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
Symbol 58 MovieClip [enemy_batbd] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 59 MovieClip [enemy_batb] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 550) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
flasherb.play();
}
i++;
}
i = 700;
while (i < 720) {
if (this.hitbox.hitTest(_root["lightning" + i].hitbox)) {
hurting = true;
health = health - 100;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x + (_root.scrollspeed / 1.6);
}
verticalmove = true;
i = 700;
while (i < 720) {
if (((((this != _root["enemy_bat" + i]) && (this._y < (_root["enemy_bat" + i]._y + 20))) && (this._y > (_root["enemy_bat" + i]._y - 20))) && (this._x < (_root["enemy_bat" + i]._x + 50))) && (this._x > (_root["enemy_bat" + i]._x - 50))) {
verticalmove = false;
}
i++;
}
if ((this._x < _root.copter._x) && (verticalmove == true)) {
if (_root.copter._y > this._y) {
this._y = this._y + (_root.scrollspeed / 3.5);
} else if (_root.copter._y < this._y) {
this._y = this._y - (_root.scrollspeed / 3.5);
}
}
if (this._x > 770) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 100;
verticalmove = true;
Symbol 59 MovieClip [enemy_batb] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
Symbol 59 MovieClip [enemy_batb] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 60 MovieClip [enemy_batd] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 515) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
flasherb.play();
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x - _root.scrollspeed;
}
verticalmove = true;
i = 730;
while (i < 750) {
if (((((this != _root["enemy_bat" + i]) && (this._y < (_root["enemy_bat" + i]._y + 20))) && (this._y > (_root["enemy_bat" + i]._y - 20))) && (this._x < (_root["enemy_bat" + i]._x + 50))) && (this._x > (_root["enemy_bat" + i]._x - 50))) {
verticalmove = false;
}
i++;
}
if ((this._x > _root.copter._x) && (verticalmove == true)) {
if (_root.dudes._y > this._y) {
this._y = this._y + (_root.scrollspeed / 3);
} else if (_root.dudes._y < this._y) {
this._y = this._y - (_root.scrollspeed / 3);
}
}
if (this._x < -70) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 100;
verticalmove = true;
Symbol 60 MovieClip [enemy_batd] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
Symbol 60 MovieClip [enemy_batd] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 61 MovieClip [enemy_bat] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
hurting = false;
i = 500;
while (i < 515) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
play();
Set(undefined, undefined);
}
i++;
}
i = 700;
while (i < 720) {
if (this.hitbox.hitTest(_root["lightning" + i].hitbox)) {
hurting = true;
health = health - 100;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = this._x - (random(10) - 5);
blood._y = this._y - (random(10) - 5);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.health > 0) {
this._x = this._x - _root.scrollspeed;
}
verticalmove = true;
i = 730;
while (i < 750) {
if (((((this != _root["enemy_bat" + i]) && (this._y < (_root["enemy_bat" + i]._y + 20))) && (this._y > (_root["enemy_bat" + i]._y - 20))) && (this._x < (_root["enemy_bat" + i]._x + 50))) && (this._x > (_root["enemy_bat" + i]._x - 50))) {
verticalmove = false;
}
i++;
}
if ((this._x > _root.copter._x) && (verticalmove == true)) {
if (_root.copter._y > this._y) {
this._y = this._y + (_root.scrollspeed / 3.5);
} else if (_root.copter._y < this._y) {
this._y = this._y - (_root.scrollspeed / 3.5);
}
}
if (this._x < -70) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
hurting = false;
health = 100;
verticalmove = true;
Symbol 61 MovieClip [enemy_bat] Frame 11
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
numbercoin = random(5);
if (numbercoin == 2) {
newenemy = _root.attachMovie("coin", "coin" + _root.coincount, _root.coincount++);
newenemy._x = this._x;
newenemy._y = this._y;
}
Symbol 61 MovieClip [enemy_bat] Frame 44
this.swapDepths(9999);
this.removeMovieClip();
Symbol 64 MovieClip [10score] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + velocityx;
this._y = this._y + velocityy;
velocityx = velocityx * 0.6;
velocityy = velocityy * 0.6;
_alpha = (_alpha - 15);
if (_alpha < 5) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
showscore = _root.killscore * 10;
_root.score = _root.score + (_root.killscore * 10);
_root.killscore++;
timer = 0;
velocityx = random(8) - 4;
velocityy = random(8) - 4;
Symbol 68 MovieClip [levelintro4] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.5);
if (_alpha < 1) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 70 MovieClip [levelintro3] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.5);
if (_alpha < 1) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 72 MovieClip [levelintro2] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.5);
if (_alpha < 1) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 74 MovieClip [levelintro] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.5);
if (_alpha < 1) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 80 MovieClip [lifed] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._y = this._y + (_root.scrollspeed / 1.8);
if (this.hitTest(_root.copter.hitbox)) {
gotoAndStop (2);
}
if (this.hitTest(_root.dudes.hitbox)) {
gotoAndStop (3);
}
if (this._y > 500) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
Symbol 80 MovieClip [lifed] Frame 2
function onEnterFrame() {
if (_root.pau == false) {
hp._alpha = hp._alpha - 2;
timer++;
if ((timer > 200) || (this._y > 500)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
_root.bars.health.prevFrame();
if (_root.bars.health._currentframe == 1) {
this.gotoAndStop(4);
}
Symbol 80 MovieClip [lifed] Frame 3
function onEnterFrame() {
if (_root.pau == false) {
hp._alpha = hp._alpha - 2;
timer++;
if ((timer > 200) || (this._y > 500)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
_root.dudeshealth.prevFrame();
if (_root.dudeshealth._currentframe == 1) {
this.gotoAndStop(4);
}
Symbol 81 MovieClip [life] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x - (_root.scrollspeed / 1.8);
if (this.hitTest(_root.copter.hitbox)) {
gotoAndStop (2);
}
if (this._x < -70) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
Symbol 81 MovieClip [life] Frame 2
function onEnterFrame() {
if (_root.pau == false) {
hp._alpha = hp._alpha - 2;
timer++;
if ((timer > 200) || (this._x < -100)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
_root.bars.health.prevFrame();
if (_root.bars.health._currentframe == 1) {
this.gotoAndStop(3);
}
Symbol 85 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + velocityx;
this._y = this._y + velocityy;
velocityx = velocityx * 0.6;
velocityy = velocityy * 0.6;
_alpha = (_alpha - 7);
if (_alpha < 1) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
_root.score = _root.score + 100;
timer = 0;
velocityx = _root.killscore - (_root.killscore / 2);
velocityy = _root.killscore - (_root.killscore / 2);
Symbol 87 MovieClip [coind] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
grav = grav + 0.8;
_x = (_x + sidemove);
_y = (_y - up);
_y = (_y + grav);
if (this.hitTest(_root.copter.hitbox)) {
play();
}
if (this._y > 500) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
grav = 0;
up = random(17) + 4;
sidemove = random(8) - 4;
Symbol 87 MovieClip [coind] Frame 2
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if ((timer > 200) || (this._y > 500)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
}
stop();
Symbol 88 MovieClip [coin] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x - (_root.scrollspeed / 1.8);
if (this.hitTest(_root.copter.hitbox)) {
play();
}
if (this._x < -70) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
Symbol 88 MovieClip [coin] Frame 2
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if ((timer > 200) || (this._x < -100)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
}
stop();
Symbol 96 MovieClip [transport_copter] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x - (_root.scrollspeed / 1.5);
if (this._x < -200) {
this.swapDepths(9999);
this.removeMovieClip();
}
i = 0;
while (i < 15) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 108 MovieClip [lightning] Frame 1
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 108 MovieClip [lightning] Frame 77
this.swapDepths(9999);
this.removeMovieClip();
Symbol 127 MovieClip [debris] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x - (_root.scrollspeed / 1.3);
if (this._x < (_parent._x - 100)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
this.gotoAndStop(random(6) + 1);
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 15
stop();
Symbol 142 MovieClip [brokenboat] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x - (_root.scrollspeed / 1.3);
i = 599;
while (i < 605) {
if (this.bombhitbox.hitTest(_root["bomb" + i].hitbox)) {
this.mast.gotoAndPlay(2);
this.gotoAndStop(2);
}
i++;
}
if (this.bombhitbox.hitTest(_root.sharky.bitebox)) {
this.mast.gotoAndPlay(2);
this.gotoAndStop(2);
}
if (this._x < -100) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
Symbol 157 MovieClip Frame 25
_parent.gotoAndStop("swim");
Symbol 158 MovieClip [sharky] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + (_root.scrollspeed / 6);
if (this.shark.hitTest(_root.copter._x - 30, _root.copter._y, true)) {
_root.copter.flasher.play();
}
if (this.shark.hitTest(_root.copter._x, _root.copter._y, true)) {
_root.copter.flasher.play();
}
if (this.bitebox.hitTest(_root.copter.hitbox)) {
this.gotoAndStop("bite");
}
if (_root.copter._x < (this._x - 150)) {
this._x = this._x - 4;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
this._x = this._x - 6;
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = (this._x - 194) - (random(20) - 10);
blood._y = (this._y + 72) - (random(20) - 10);
}
i++;
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
this.swapDepths(449);
Symbol 174 MovieClip [sharkendlvl] Frame 1
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
if (_root.pau == false) {
if (this.hitTest(_root.copter._x, _root.copter._y, true)) {
_root.coptergo = false;
_root.copter._visible = false;
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 174 MovieClip [sharkendlvl] Frame 27
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 174 MovieClip [sharkendlvl] Frame 35
stop();
this.swapDepths(9999);
this.removeMovieClip();
Symbol 176 MovieClip [cave2] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (this.hitTest(_root.copter._x - 30, _root.copter._y, true)) {
_root.copter.flasher.play();
}
if (this.hitTest(_root.copter._x, _root.copter._y, true)) {
_root.copter.flasher.play();
}
this._x = this._x - _root.scrollspeed;
if (this._x < -6500) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(449);
Symbol 178 MovieClip [cave1] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (this.hitTest(_root.copter._x - 30, _root.copter._y, true)) {
_root.copter.flasher.play();
}
if (this.hitTest(_root.copter._x, _root.copter._y, true)) {
_root.copter.flasher.play();
}
this._x = this._x - _root.scrollspeed;
if (this._x < -6500) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(449);
Symbol 182 MovieClip Frame 1
_visible = false;
Symbol 182 MovieClip Frame 2
stop();
Symbol 187 MovieClip [ghostface] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (this._x < -100) {
this.swapDepths(9999);
this.removeMovieClip();
}
if (this.hitTest(_root.copter.hitbox)) {
_root.copter.flasher.play();
}
if (this.hitTest(_root.dudes.hitbox)) {
_root.dudes.flasher.play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
stop();
_visible = false;
Symbol 210 MovieClip Frame 2
colorObject = new Color(this._parent);
colorObject.setRGB(10027008);
_parent._x = _parent._x + 6;
Symbol 210 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
gotoAndStop (1);
Symbol 212 MovieClip [enemy_worm] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
worm._alpha = worm._alpha + 5;
if (this._x > 625) {
this._x = 625;
}
i = 500;
while (i < 515) {
if (worm.head.hitTest(_root["copter_bullet" + i]) && (raging == false)) {
wormhitback.play();
health = health - 5;
newenem = _root.attachMovie("10score", "10score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newenem._x = (this._x + worm.head._x) + 30;
newenem._y = (this._y + worm.head._y) + 70;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
if (worm.head.hitTest(_root.dudes.hitbox)) {
wormgone = true;
newenemy = _root.attachMovie("ghostface", "ghostface850", 850);
newenemy._x = this._x + worm.head._x;
newenemy._y = 210;
worm.swapDepths(9999);
worm.removeMovieClip();
}
_root.ghostface850._x = _root.ghostface850._x - 10;
_root.ghostface851._x = _root.ghostface851._x - 10;
_root.ghostface852._x = _root.ghostface852._x - 10;
_root.ghostface852._y = _root.ghostface852._y - 4;
_root.ghostface852._rotation = 30;
_root.ghostface853._x = _root.ghostface853._x - 10;
_root.ghostface853._y = _root.ghostface853._y + 4;
_root.ghostface853._rotation = -20;
_root.ghostface854._x = _root.ghostface854._x - 10;
if ((health <= 0) && (wormgone == false)) {
raging = true;
worm.head.gotoAndStop("raging");
}
if (raging == true) {
ragetimer++;
}
if (ragetimer == 130) {
wormgone = true;
newenemy = _root.attachMovie("ghostface", "ghostface851", 851);
newenemy._x = this._x + worm.head._x;
newenemy._y = this._y + worm.head._y;
newenemy = _root.attachMovie("ghostface", "ghostface852", 852);
newenemy._x = this._x + worm.head._x;
newenemy._y = this._y + worm.head._y;
newenemy = _root.attachMovie("ghostface", "ghostface853", 853);
newenemy._x = this._x + worm.head._x;
newenemy._y = this._y + worm.head._y;
worm.swapDepths(9999);
worm.removeMovieClip();
}
i = 599;
while (i < 605) {
if (worm.head.hitTest(_root["bomb" + i].hitbox) && (raging == true)) {
wormgone = true;
raging = false;
enemyy = _root.attachMovie("ghostface", "ghostface854", 854);
enemyy._x = this._x + worm.head._x;
enemyy._y = this._y + worm.head._y;
newene = _root.attachMovie("1000score", "1000score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newene._x = (this._x + worm.head._x) + 30;
newene._y = (this._y + worm.head._y) + 70;
worm.swapDepths(9999);
worm.removeMovieClip();
}
i++;
}
if (this.health > 0) {
this._x = this._x - (_root.scrollspeed / 2.7);
}
if (wormgone == true) {
timerr++;
}
if (timerr > 240) {
this.swapDepths(9999);
this.removeMovieClip();
}
if (this.hitTest(_root.copter._x - 30, _root.copter._y, true)) {
_root.copter.flasher.play();
}
if (this.hitTest(_root.copter._x, _root.copter._y, true)) {
_root.copter.flasher.play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
raging = false;
hurting = false;
health = 250;
ragetimer = 0;
worm._alpha = 0;
wormgone = false;
timerr = 0;
Symbol 222 MovieClip Frame 1
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
stop();
_visible = false;
Symbol 222 MovieClip Frame 2
colorObject = new Color(this._parent);
colorObject.setRGB(3932160);
_parent.health = _parent.health - 20;
scr = _root.attachMovie("10score", "10score" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
scr._x = (_parent._x + _x) + (random(30) - 15);
scr._y = (_parent._y + _y) + (random(30) - 15);
Symbol 222 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
gotoAndStop (1);
Symbol 228 MovieClip Frame 20
_parent.gotoAndStop("idle");
Symbol 232 MovieClip Frame 18
gotoAndPlay (1);
Symbol 237 MovieClip Frame 1
_root.dudes.flasher.play();
Symbol 237 MovieClip Frame 5
_parent.gotoAndStop("idle");
Symbol 246 MovieClip Frame 23
function onEnterFrame() {
_alpha = (_alpha - 2);
if (_alpha < 5) {
_parent.swapDepths(9999);
_parent.removeMovieClip();
}
}
stop();
Symbol 247 MovieClip [enemy_spiderb] Frame 1
alive = true;
function onEnterFrame() {
if (_root.pau == false) {
if (_currentframe == 1) {
moving = true;
} else if (!(_currentframe === 1)) {
moving = false;
}
if (moving == true) {
_x = (_x + 1);
}
if (_x == 366) {
gotoAndStop ("climb");
_x = 397;
}
if (_currentframe == 16) {
timer++;
}
if ((_currentframe == 16) && (timer == 100)) {
gotoAndStop ("bite");
timer = 0;
}
hurting = false;
i = 500;
while (i < 515) {
if (hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = (_x + this.flasher._x) + (random(30) - 15);
blood._y = (_y + this.flasher._y) + (random(30) - 15);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.hitbox.hitTest(_root.copter.hitbox) && (alive == true)) {
_root.copter.flasher.play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
timer = 0;
health = 1300;
moving = true;
Symbol 247 MovieClip [enemy_spiderb] Frame 28
alive = false;
Symbol 248 MovieClip [enemy_spider] Frame 1
alive = true;
function onEnterFrame() {
if (_root.pau == false) {
if (_currentframe == 1) {
moving = true;
} else if (!(_currentframe === 1)) {
moving = false;
}
if (moving == true) {
_x = (_x - 1);
}
if (_x == 293) {
gotoAndStop ("climb");
_x = 292;
}
if (_currentframe == 16) {
timer++;
}
if ((_currentframe == 16) && (timer == 100)) {
gotoAndStop ("bite");
timer = 0;
}
hurting = false;
i = 500;
while (i < 515) {
if (hitbox.hitTest(_root["copter_bullet" + i])) {
hurting = true;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (hitbox.hitTest(_root["bomb" + i].hitbox)) {
hurting = true;
health = health - 10;
}
i++;
}
if (hurting == true) {
blood = _root.attachMovie("hit_blood", "hit_blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blood._x = (_x + this.flasher._x) + (random(30) - 15);
blood._y = (_y + this.flasher._y) + (random(30) - 15);
flasher.play();
}
if (health <= 0) {
gotoAndStop ("dead");
}
if (this.hitbox.hitTest(_root.copter.hitbox) && (alive == true)) {
_root.copter.flasher.play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
timer = 0;
health = 2000;
moving = true;
Symbol 248 MovieClip [enemy_spider] Frame 28
alive = false;
Symbol 249 MovieClip [coin_spawner] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
cointimer++;
if (cointimer == 6) {
newcoin = _root.attachMovie("coind", "coind" + _root.coincount, _root.coincount++);
newcoin._x = _x;
newcoin._y = _y;
cointimer = 0;
}
timer++;
if (timer > 150) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
cointimer = 0;
timer = 0;
Symbol 253 MovieClip [enemy_targetb] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
health = health - 4;
}
i++;
}
if (health <= 0) {
play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
health = 10;
Symbol 253 MovieClip [enemy_targetb] Frame 2
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 253 MovieClip [enemy_targetb] Frame 15
_root.targetsdown = _root.targetsdown + 1;
this.swapDepths(9999);
this.removeMovieClip();
Symbol 256 MovieClip [enemy_target] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
i = 500;
while (i < 515) {
if (this.hitbox.hitTest(_root["copter_bullet" + i])) {
health = 0;
_root["copter_bullet" + i].swapDepths(9999);
_root["copter_bullet" + i].removeMovieClip();
}
i++;
}
i = 599;
while (i < 605) {
if (this.hitbox.hitTest(_root["bomb" + i].hitbox)) {
health = health - 4;
}
i++;
}
if (health <= 0) {
play();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
health = 10;
Symbol 256 MovieClip [enemy_target] Frame 2
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 256 MovieClip [enemy_target] Frame 15
_root.targetsdown = _root.targetsdown + 1;
this.swapDepths(9999);
this.removeMovieClip();
Symbol 260 MovieClip [forbidden_area] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (this.hitTest(_root.copter.hitbox)) {
_root.bomballowed = false;
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Symbol 263 MovieClip Frame 1
function onEnterFrame() {
_x = _root.copter._x;
_y = _root.copter._y;
_rotation = _root.copter._rotation;
}
Symbol 268 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 278 Button
on (release) {
gotoAndStop (2);
_root.musicon = false;
}
Symbol 281 Button
on (release) {
_root.musicon = true;
gotoAndStop (1);
}
Symbol 282 MovieClip Frame 1
function onEnterFrame() {
if (_root.musicon == false) {
gotoAndStop (3);
}
if (_root.musicon == true) {
gotoAndStop (2);
}
}
stop();
Symbol 285 MovieClip [pausemenu] Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
_root.pau = true;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip [pausemenu] Frame 1
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Symbol 302 MovieClip [cloud] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_x = (_x - speed);
if (this._x < (_parent._x - 530)) {
this.swapDepths(9999);
this.removeMovieClip();
}
if (this._y < (_parent._y - 50)) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
gotoAndStop(random(7) + 2);
if (_root.cloudheight == true) {
speed = ((random(4) / 8) + ((this._y + 30) / 200)) + 0.4;
}
if (_root.cloudheight == false) {
speed = (random(4) / 8) + 3;
}
Symbol 347 MovieClip [ZattikkaHiScores] Frame 1
#initclip 20
Object.registerClass("ZattikkaHiScores", ZattikkaHiScores);
#endinitclip
Symbol 365 MovieClip [GamesChart-AS2] Frame 1
#initclip 21
Object.registerClass("GamesChart-AS2", GCComponent);
#endinitclip
stop();
Symbol 393 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 395 MovieClip Frame 1
stop();
part = 10;
function onEnterFrame() {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded > part) {
nextFrame();
}
}
_root.stop();
Symbol 395 MovieClip Frame 2
part = 20;
Symbol 395 MovieClip Frame 3
part = 30;
Symbol 395 MovieClip Frame 4
part = 40;
Symbol 395 MovieClip Frame 5
part = 50;
Symbol 395 MovieClip Frame 6
part = 60;
Symbol 395 MovieClip Frame 7
part = 70;
Symbol 395 MovieClip Frame 8
part = 80;
Symbol 395 MovieClip Frame 9
part = 90;
Symbol 395 MovieClip Frame 10
part = 99;
Symbol 395 MovieClip Frame 11
stop();
Symbol 303 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 304 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 305 MovieClip [__Packages.ZattikkaHiScores] Frame 0
class ZattikkaHiScores extends mx.core.UIComponent
{
var _visible, movEntryScreen, movInfoScreen, gameId, levelId, gameCode, gameKey, lowIsBest, score, msg1, msg2, g5UserExists, btnGFTP, fbUserExists, caller, getURL, g5User, fbUser, fbSessionKey;
function ZattikkaHiScores () {
super();
debug(("[ZattikkaHiScores VERSION " + VERSION_NUM) + "]");
_visible = false;
}
function setDetails(gameId, levelId, gameCode, gameKey, lowIsBest, score, msg1, msg2, testMode, redirectUrl) {
debug((((((((((((("[ZattikkaHiScores::setDetails], gameId = " + gameId) + ", levelId = ") + levelId) + ", gameCode = ") + gameCode) + ", lowIsBest = ") + lowIsBest) + ", score = ") + score) + ", testMode = ") + testMode) + ", redirectUrl = ") + redirectUrl);
initServerURL(testMode);
entryScreen = movEntryScreen;
infoScreen = movInfoScreen;
entryScreen._visible = false;
infoScreen._visible = false;
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.gameKey = gameKey;
this.lowIsBest = lowIsBest;
this.score = score;
this.msg1 = msg1;
this.msg2 = msg2;
this.redirectUrl = redirectUrl;
if (!userManuallySet) {
try {
grabG5User();
if (!g5UserExists) {
grabFacebookUser();
}
} catch(err:Error) {
}
}
var self = this;
btnGFTP.onRelease = function () {
self.btn_GFTP();
};
entryScreen.btnSubmit.onRelease = function () {
self.btn_submitScore();
};
entryScreen.btnTwitter.onRelease = function () {
self.btn_twitterTweet();
};
entryScreen.btnFacebook.onRelease = function () {
self.btn_facebookFeed();
};
infoScreen.btnView.onRelease = function () {
self.btn_viewScore();
};
infoScreen.btnBack.onRelease = function () {
self.btn_back();
};
if (fbUserExists) {
btn_submitScore();
} else {
showEntryScreen();
}
_visible = true;
}
function getHiScores(caller, gameId, levelId, numRows, lowIsBest, testMode) {
debug((((((((("[ZattikkaHiScores::getHiScores] gameId = " + gameId) + ", levelId = ") + levelId) + ", numRows = ") + numRows) + ", lowIsBest = ") + lowIsBest) + ", testMode = ") + testMode);
initServerURL(testMode);
this.caller = caller;
var _local2 = new LoadVars();
_local2.gameId = gameId;
_local2.levelId = levelId;
_local2.platformId = 0;
_local2.viewPlatformId = 0;
_local2.userId = "";
_local2.numRows = numRows;
_local2.lowIsBest = lowIsBest;
hitServer(HS_ACTION, EVENT_GET_HI_SCORES, _local2);
}
function viewHiScores(gameId, testMode) {
debug((("[ZattikkaHiScores::viewHiScores] gameId = " + gameId) + ", testMode = ") + testMode);
initServerURL(testMode);
var _local2 = (SERVER_URL + HS_ACTION) + EVENT_VIEW_HI_SCORES;
_local2 = _local2 + ("&gameId=" + gameId);
getURL(processURL(_local2), "_blank");
}
function initServerURL(testMode) {
if ((testMode != undefined) && (testMode)) {
SERVER_URL = TEST_SERVER_URL;
} else {
try {
if ((_root.svrUrl != null) && (_root.svrUrl.length > 0)) {
SERVER_URL = String(_root.svrUrl);
}
} catch(err:Error) {
}
}
debug("[ZattikkaHiScores::initServerURL] SERVER_URL = " + SERVER_URL);
}
function setG5User(userId, userName) {
g5User = new Array(userId, userName);
userManuallySet = true;
debug((("[ZattikkaHiScores::setG5User] userId = " + g5User[0]) + ", userName = ") + g5User[1]);
}
function setFacebookUser(userId, userName, sessionKey) {
fbUser = new Array(userId, userName);
fbSessionKey = sessionKey;
userManuallySet = true;
debug((("[ZattikkaHiScores::setFacebookUser] userId = " + fbUser[0]) + ", userName = ") + fbUser[1]);
}
function grabG5User() {
g5User = flash.external.ExternalInterface.call("getG5User");
g5UserExists = ((g5User == null) ? false : (!isNaN(g5User[0])));
debug("[ZattikkaHiScores::grabG5User] " + (g5UserExists ? ((("userId = " + g5User[0]) + ", userName = ") + g5User[1]) : "g5User is empty"));
}
function grabFacebookUser() {
fbUser = flash.external.ExternalInterface.call("getFBUser");
fbUserExists = ((fbUser == null) ? false : (!isNaN(fbUser[0])));
fbSessionKey = flash.external.ExternalInterface.call("getFBSessionKey");
debug("[ZattikkaHiScores::grabFacebookUser] " + (fbUserExists ? ((((("userId = " + fbUser[0]) + ", userName = ") + fbUser[1]) + ", sessionKey = ") + fbSessionKey) : "fbUser is empty"));
}
function showEntryScreen() {
entryScreen.txtMsgLine1.text = msg1;
entryScreen.txtMsgLine2.text = msg2;
entryScreen.movNameAuto._visible = g5UserExists || (fbUserExists);
entryScreen.movNameManual._visible = (!g5UserExists) && (!fbUserExists);
entryScreen.movNameAuto.txtName.text = (g5UserExists ? (g5User[1]) : ((fbUserExists ? (fbUser[1]) : "")));
entryScreen.movNameManual.txtName.text = "";
entryScreen._visible = true;
infoScreen._visible = false;
}
function showInfoMessage(msg, error) {
infoScreen.txtInfo.text = msg;
infoScreen.btnBack._visible = error;
infoScreen.btnView._visible = (!error) && (!fbUserExists);
infoScreen._visible = true;
entryScreen._visible = false;
}
function btn_GFTP() {
getURL(processURL(GFTP_URL), "_blank");
}
function btn_submitScore() {
if (((!g5UserExists) && (!fbUserExists)) && (entryScreen.movNameManual.txtName.text.length == 0)) {
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
submitScore();
}
}
function btn_twitterTweet() {
if (((!g5UserExists) && (!fbUserExists)) && (entryScreen.movNameManual.txtName.text.length == 0)) {
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
twitterTweet();
}
}
function btn_facebookFeed() {
if (fbUserExists) {
facebookFeed();
} else {
facebookFeedExternal();
}
}
function btn_viewScore() {
viewScore();
}
function btn_back() {
setDetails(gameId, levelId, gameCode, gameKey, lowIsBest, score, msg1, msg2);
}
function submitScore() {
showInfoMessage(MSG_SUBMITTING_DETAILS, false);
infoScreen._visible = true;
entryScreen._visible = false;
var _local9 = (fbUserExists ? (HS_PLATFORM_FACEBOOK) : (HS_PLATFORM_WEB));
var _local5 = "";
var _local7 = "";
if (fbUserExists) {
_local7 = fbUser[0];
_local5 = fbUser[1];
} else if (g5UserExists) {
_local7 = g5User[0];
_local5 = g5User[1];
} else {
_local5 = entryScreen.movNameManual.txtName.text;
}
var _local8 = String(new Date().getTime());
var _local10 = _local8.split("");
_local10.reverse();
var _local6 = xor(_local10.join(""), gameKey, false);
var _local2 = "";
_local2 = _local2 + (gameId + ",");
_local2 = _local2 + (levelId + ",");
_local2 = _local2 + (_local9 + ",");
_local2 = _local2 + (score + ",");
_local2 = _local2 + (_local7 + ",");
_local2 = _local2 + (replaceAll(_local5, ",", "") + ",");
_local2 = _local2 + ",";
_local2 = _local2 + String(lowIsBest);
var _local4 = xor(_local2, _local6, false);
debug((("key [" + _local6.length) + "] = ") + _local6);
debug((("plain [" + _local2.length) + "] = ") + _local2);
debug((("cipher [" + _local4.length) + "] = ") + _local4);
_local4 = (getRandomString(5) + _local4) + getRandomString(5);
var _local3 = new LoadVars();
_local3.gameId = gameId;
_local3.platformId = _local9;
_local3.time = _local8;
_local3.data = _local4;
_local3.returnMessage = true;
hitServer(HS_ACTION, EVENT_SUBMIT_HI_SCORE, _local3);
}
function twitterTweet() {
var _local2 = (SERVER_URL + TW_ACTION) + EVENT_POST_TWEET;
_local2 = _local2 + ("&gameId=" + gameId);
_local2 = _local2 + ("&levelId=" + levelId);
_local2 = _local2 + ("&score=" + score);
getURL(processURL(_local2), "_blank");
submitScore();
}
function facebookFeed() {
var _local2 = new LoadVars();
_local2.gameId = gameId;
_local2.levelId = levelId;
_local2.score = score;
_local2.sessionKey = fbSessionKey;
_local2.returnMessage = true;
hitServer(FB_ACTION, EVENT_PUBLISH_HI_SCORE_FEED, _local2);
}
function facebookFeedExternal() {
var _local2 = (SERVER_URL + FB_ACTION) + EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL;
_local2 = _local2 + ("&gameId=" + gameId);
_local2 = _local2 + ("&levelId=" + levelId);
_local2 = _local2 + ("&score=" + score);
getURL(processURL(_local2), "_blank");
}
function hitServer(stripesAction, stripesEvent, vars) {
debug((("[ZattikkaHiScores::hitServer] url = " + SERVER_URL) + stripesAction) + stripesEvent);
var self = this;
var _local2 = new XML();
vars.addRequestHeader(["Content-Type", "application/x-www-form-urlencoded; charset=utf-8"]);
vars.sendAndLoad((SERVER_URL + stripesAction) + stripesEvent, _local2, "POST");
_local2.onLoad = function (success) {
self.loadHandler(stripesEvent, success, this);
};
}
function viewScore() {
var _local2 = (SERVER_URL + HS_ACTION) + EVENT_VIEW_HI_SCORE;
_local2 = _local2 + ("&gameId=" + gameId);
_local2 = _local2 + ("&levelId=" + levelId);
_local2 = _local2 + ("&platformId=" + HS_PLATFORM_WEB);
_local2 = _local2 + ("&gameCode=" + gameCode);
if (g5UserExists) {
_local2 = _local2 + ("&userId=" + g5User[0]);
} else {
_local2 = _local2 + ("&name=" + entryScreen.movNameManual.txtName.text);
}
getURL(processURL(_local2), "_blank");
}
function loadHandler(stripesEvent, success, xml) {
debug((((("[ZattikkaHiScores::loadHandler] stripesEvent = " + stripesEvent) + ", success = ") + success) + ", xml = ") + xml.toString());
if (!success) {
if (stripesEvent == EVENT_GET_HI_SCORES) {
caller.getHiScores_Error();
} else {
showInfoMessage(MSG_SERVER_ERROR, true);
}
} else {
var _local3 = xml.firstChild;
var _local2 = _local3.attributes.code;
switch (stripesEvent) {
case EVENT_SUBMIT_HI_SCORE :
showInfoMessage(_local3.attributes.msg, _local2 == -1);
if (fbUserExists && ((_local2 == 1) || (_local2 == 2))) {
try {
flash.external.ExternalInterface.call("refreshFBHiScores", score, levelId);
flash.external.ExternalInterface.call("streamPublish_FBConnect", msg1, levelId);
} catch(err:Error) {
}
}
break;
case EVENT_PUBLISH_HI_SCORE_FEED :
submitScore();
break;
case EVENT_GET_HI_SCORES :
caller.getHiScores_Callback(xml);
}
}
}
function processURL(url) {
var _local2 = "";
if ((redirectUrl != null) && (redirectUrl.length > 0)) {
debug((("[ZattikkaHiScores::processURL] redirectUrl = " + redirectUrl) + ", escaping url = ") + url);
_local2 = redirectUrl + escape(url);
} else {
_local2 = url;
}
return(_local2);
}
function xor(plain, key, traceChar) {
var _local7 = "";
var _local4 = 0;
var _local2 = 0;
while (_local4 < plain.length) {
if (_local2 >= key.length) {
_local2 = 0;
}
var _local3 = (plain.charCodeAt(_local4) ^ key.charCodeAt(_local2)) + 1;
if (traceChar) {
debug((("charCode = " + _local3) + " = ") + String.fromCharCode(_local3));
}
_local7 = _local7 + String.fromCharCode(_local3);
_local4++;
_local2++;
}
return(_local7);
}
function getRandom(min, max) {
return(Math.floor(Math.random() * ((max - min) + 1)) + min);
}
function getRandomString(len) {
var _local3 = "";
var _local2 = 0;
while (_local2 < len) {
_local3 = _local3 + String.fromCharCode(getRandom(48, 122));
_local2++;
}
return(_local3);
}
function replaceAll(str, toReplace, replaceWith) {
var _local3 = "";
var _local1 = 0;
while (_local1 < str.length) {
if (str.charAt(_local1) == toReplace) {
_local3 = _local3 + replaceWith;
} else {
_local3 = _local3 + str.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function debug(msg) {
trace(msg);
com.hexagonstar.util.debug.Debug.trace(msg);
}
static var VERSION_NUM = "1.0.17 (AS2)";
static var LIVE_SERVER_URL = "http://api.zattikka.com";
static var TEST_SERVER_URL = "http://api.staging.zattikka.com";
static var SERVER_URL = LIVE_SERVER_URL;
static var GFTP_URL = "http://www.gamesfortheplanet.com";
static var HS_PLATFORM_WEB = 0;
static var HS_PLATFORM_FACEBOOK = 1;
static var HS_ACTION = "/HiScore.action?";
static var EVENT_SUBMIT_HI_SCORE = "SubmitHiScore=";
static var EVENT_VIEW_HI_SCORE = "ViewHiScore=";
static var EVENT_VIEW_HI_SCORES = "ViewHiScores=";
static var EVENT_GET_HI_SCORES = "GetHiScores=";
static var FB_ACTION = "/Facebook.action?";
static var EVENT_PUBLISH_HI_SCORE_FEED = "PublishHiScoreFeed=";
static var EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL = "PublishHiScoreFeedExternal=";
static var TW_ACTION = "/Twitter.action?";
static var EVENT_POST_TWEET = "PostTweet=";
static var MSG_PLEASE_ENTER_NICKNAME = "Please enter your nickname.";
static var MSG_SUBMITTING_DETAILS = "Submitting hi-score details to the server, please wait.";
static var MSG_SERVER_ERROR = "Could not contact server, please try again in a few minutes.";
var redirectUrl = "";
var entryScreen = null;
var infoScreen = null;
static var symbolName = "ZattikkaHiScores";
static var symbolOwner = ZattikkaHiScores;
var className = "ZattikkaHiScores";
var userManuallySet = false;
}
Symbol 348 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 349 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 350 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 351 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 352 MovieClip [__Packages.com.hexagonstar.util.debug.Debug] Frame 0
class com.hexagonstar.util.debug.Debug
{
static var _fpsMeter, _stage, _stopWatch, _connection;
function Debug () {
}
static function trace() {
var _local2 = ((arguments[1] != undefined) ? (arguments[1]) : 1);
if ((_local2 >= _filterLevel) && (_local2 < 7)) {
send("onData", arguments[0], _local2, 0);
}
}
static function traceObj(obj, depth, level) {
if (!depth) {
depth = 64;
}
if (!level) {
level = 1;
}
if ((level >= _filterLevel) && (level < 7)) {
send("onData", obj, level, depth);
}
}
static function inspect(obj) {
send("onInspect", obj, 1, -1);
}
static function hexDump(obj) {
send("onHexDump", obj, 0, 0);
}
static function clear() {
trace("[%CLR%]", 5);
}
static function delimiter() {
trace("[%DLT%]", 5);
}
static function pause() {
trace("[%PSE%]", 5);
}
static function time() {
trace("[%TME%]", 5);
}
static function monitor(stage, topFPS, pollInterval) {
if (_isPollingFPS) {
stop();
}
if (_isEnabled && (!_fpsMeter)) {
_isPollingFPS = true;
_topFPS = topFPS;
_stage = stage;
_fpsMeter = new com.hexagonstar.util.debug.FPSMeter(_stage, pollInterval);
_fpsMeter.start();
}
}
static function mark(color) {
if (!color) {
color = 16711935 /* 0xFF00FF */;
}
send("onMarker", color, 1, -1);
}
static function stop() {
if (_fpsMeter) {
_isPollingFPS = false;
_fpsMeter.stop();
_fpsMeter = null;
_stage = null;
}
}
static function timerStart(title) {
if (_isEnabled) {
if (!_stopWatch) {
_stopWatch = new com.hexagonstar.util.debug.StopWatch();
}
_stopWatch.start(title);
}
}
static function timerStop() {
if (_stopWatch) {
_stopWatch.stop();
}
}
static function timerReset() {
if (_stopWatch) {
_stopWatch.reset();
}
}
static function timerInMilliSeconds() {
if (_stopWatch) {
trace(_stopWatch.__get__timeInMilliSeconds() + "ms");
}
}
static function timerInSeconds() {
if (_stopWatch) {
trace(_stopWatch.__get__timeInSeconds() + "s");
}
}
static function timerToString() {
if (_stopWatch) {
trace(_stopWatch.toString());
}
}
static function timerStopToString(reset) {
if (_stopWatch) {
_stopWatch.stop();
trace(_stopWatch.toString());
if (reset) {
_stopWatch.reset();
}
}
}
static function get filterLevel() {
return(_filterLevel);
}
static function set filterLevel(v) {
if ((v >= 0) && (v < 5)) {
_filterLevel = v;
}
//return(filterLevel);
}
static function get enabled() {
return(_isEnabled);
}
static function set enabled(v) {
_isEnabled = v;
//return(enabled);
}
static function onFPSUpdate() {
send("onFPS", ((((_fpsMeter.__get__fps() + ",") + _topFPS) + ",") + _fpsMeter.__get__frt()) + ",0");
}
static function onStatus() {
}
static function send(m, d, l, r) {
if (_isEnabled) {
if (!_isConnected) {
_isConnected = true;
_connection = new LocalConnection();
}
if (r == undefined) {
r = 0;
}
var _local2 = 0;
if (typeof(d) == "string") {
_local2 = String(d).length;
} else if (typeof(d) == "object") {
}
if (_local2 > 39000) {
storeDataLSO(m, d);
m = "onLargeData";
d = null;
}
var _local4 = _connection.send("_alcon_lc", m, d, l, r, "");
if (!_local4) {
trace("[%ERR%]");
}
}
}
static function storeDataLSO(m, d) {
var _local1 = SharedObject.getLocal("alcon", "/");
_local1.data.alconMethod = m;
_local1.data.alconData = d;
try {
var _local2 = String(_local1.flush());
if (_local2 == "pending") {
return(undefined);
}
} catch(e:Error) {
}
}
static var LEVEL_DEBUG = 0;
static var LEVEL_INFO = 1;
static var LEVEL_WARN = 2;
static var LEVEL_ERROR = 3;
static var LEVEL_FATAL = 4;
static var _filterLevel = 0;
static var _isConnected = false;
static var _isPollingFPS = false;
static var _isEnabled = true;
static var _topFPS = 25;
}
Symbol 353 MovieClip [__Packages.com.hexagonstar.util.debug.FPSMeter] Frame 0
class com.hexagonstar.util.debug.FPSMeter
{
var _stage, _pollInterval, _isRunning, _intervalID, _fps, _frt, _ms;
function FPSMeter (stage, pollInterval) {
_stage = stage;
_pollInterval = ((!pollInterval) ? 500 : (pollInterval));
reset();
}
function start() {
if (!_isRunning) {
_isRunning = true;
var ref = this;
_intervalID = setInterval(function () {
com.hexagonstar.util.debug.Debug.onFPSUpdate();
}, _pollInterval);
_stage.onEnterFrame = function () {
var _local1 = getTimer();
ref._delay++;
if (ref._delay >= ref._delayMax) {
ref._delay = 0;
ref._fps = (1000 * ref._delayMax) / (_local1 - ref._prev);
ref._prev = _local1;
}
ref._frt = _local1 - ref._ms;
ref._ms = _local1;
};
}
}
function stop() {
if (_isRunning) {
clearInterval(_intervalID);
reset();
}
}
function reset() {
_fps = 0;
_frt = 0;
_ms = 0;
_isRunning = false;
}
function get fps() {
return(_fps);
}
function get frt() {
return(_frt);
}
var _delayMax = 10;
}
Symbol 354 MovieClip [__Packages.com.hexagonstar.util.debug.StopWatch] Frame 0
class com.hexagonstar.util.debug.StopWatch
{
var _title, _startTimeKeys, _stopTimeKeys;
function StopWatch () {
reset();
}
function start(title) {
if (!_started) {
_title = (title ? (title) : "");
_started = true;
_startTimeKeys.push(getTimer());
}
}
function stop() {
if (_started) {
var _local2 = getTimer();
_stopTimeKeys[_startTimeKeys.length - 1] = _local2;
_started = false;
}
}
function reset() {
_startTimeKeys = [];
_stopTimeKeys = [];
_started = false;
}
function toString() {
var _local5 = "\n ********************* [STOPWATCH] *********************";
if (_title != "") {
_local5 = _local5 + ("\n * " + _title);
}
var _local2 = 0;
_local2 = 0;
while (_local2 < _startTimeKeys.length) {
var _local4 = _startTimeKeys[_local2];
var _local3 = _stopTimeKeys[_local2];
_local5 = _local5 + (((((("\n * started [" + format(_local4)) + "ms] stopped [") + format(_local3)) + "ms] time [") + format(_local3 - _local4)) + "ms]");
_local2++;
}
if (_local2 == 0) {
_local5 = _local5 + "\n * never started.";
} else {
_local5 = _local5 + (("\n * total runnning time: " + timeInSeconds) + "s");
}
_local5 = _local5 + "\n *******************************************************";
return(_local5);
}
function get started() {
return(_started);
}
function get timeInMilliSeconds() {
if (_started) {
_stopTimeKeys[_startTimeKeys.length - 1] = getTimer();
}
var _local3 = 0;
var _local2 = 0;
while (_local2 < _startTimeKeys.length) {
_local3 = _local3 + (_stopTimeKeys[_local2] - _startTimeKeys[_local2]);
_local2++;
}
return(_local3);
}
function get timeInSeconds() {
return(timeInMilliSeconds / 1000);
}
function format(v) {
var _local2 = "";
var _local3 = v.toString().length;
var _local1 = 0;
while (_local1 < (5 - _local3)) {
_local2 = _local2 + "0";
_local1++;
}
return(_local2 + v);
}
var _started = false;
}
Symbol 355 MovieClip [__Packages.GCComponent] Frame 0
class GCComponent extends MovieClip
{
var _preview;
function GCComponent () {
super();
GCBrainInterface.apiType = "AS2-MXP";
gameKey = ("");
}
function set gameKey(k) {
_gameKey = k;
if (((_gameKey == undefined) || (_gameKey == null)) || (_gameKey == "")) {
_preview.txt.text = "You need to set your gameID for the API to work.";
} else if (_global.isLivePreview) {
_preview.txt.text = ("Your gameID has been set to '" + _gameKey) + "'. This message will be hidden when the game is run.";
} else {
GamesChart.setup(_gameKey);
_preview._visible = false;
}
//return(gameKey);
}
function get gameKey() {
return(_gameKey);
}
var _gameKey = "";
}
Symbol 366 MovieClip [__Packages.GamesChart] Frame 0
class GamesChart
{
static var _interface;
function GamesChart () {
}
static function setup(gameIDKey) {
if (_interface == null) {
if (((gameIDKey == undefined) || (gameIDKey == null)) || (gameIDKey == "")) {
trace(_errors.noGameIDHash);
return(undefined);
}
_interface = new GCBrainInterface();
_interface.begin(gameIDKey);
} else {
trace(_errors.alreadyDefinedInterface);
}
}
static function showTab(xPos, yPos) {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.SHOW_TAB, {xPos:xPos, yPos:yPos});
}
static function hideTab() {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.HIDE_TAB);
}
static function openCharts() {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.SHOW_CHART_LISTS);
}
static var VERSION = "0.2.0";
static var onGCEvent = null;
static var _errors = {noInterface:"[GC-API] ERROR! Please call gc.setup() first. See: http://wiki.gameschart.com/index.php/Static_Functions", alreadyDefinedInterface:"[GC-API] ERROR! Can only call setup once! See: http://wiki.gameschart.com/index.php/Static_Functions", noContainerMC:"[GC-API] ERROR! You must supply a container to hold GamesChart! See: http://wiki.gameschart.com/index.php/Static_Functions#Setup", noGameIDHash:"[GC-API] ERROR! You must supply the game ID key associated with this game! http://wiki.gameschart.com/index.php/Static_Functions#Setup"};
}
Symbol 367 MovieClip [__Packages.gc.utils.Events.IEventDispatcher] Frame 0
interface gc.utils.Events.IEventDispatcher
{
}
Symbol 368 MovieClip [__Packages.gc.utils.Events.Event] Frame 0
class gc.utils.Events.Event extends Object
{
var type, target, data;
function Event (target, type, data) {
super();
this.type = type;
this.target = target;
if (data != undefined) {
this.data = data;
}
}
static function get ADDED_TO_STAGE() {
return("addedToStage");
}
static function get ENTER_FRAME() {
return("enterFrame");
}
static function get UNLOAD() {
return("unload");
}
}
Symbol 369 MovieClip [__Packages.gc.utils.Events.EventDispatcher] Frame 0
class gc.utils.Events.EventDispatcher implements gc.utils.Events.IEventDispatcher
{
var registeredListeners, _parent;
function EventDispatcher (parent) {
registeredListeners = new Object();
_parent = parent;
}
function addEventListener(eventType, listenerObj, methodName) {
if (((eventType == undefined) || (listenerObj == undefined)) || (methodName == undefined)) {
throw new Error("All parameters must be defined.");
}
if (registeredListeners[eventType] == undefined) {
registeredListeners[eventType] = new Array();
}
registeredListeners[eventType].push({listenerObj:listenerObj, methodName:methodName});
}
function dispatchEvent(event, bubbles) {
((bubbles == undefined) ? (bubbles = true) : 0);
var _local7 = event.type;
var _local4 = null;
var _local5 = "";
if (hasEventListener(_local7)) {
var _local3 = registeredListeners[_local7];
var _local2 = 0;
while (_local2 < _local3.length) {
_local4 = _local3[_local2].listenerObj;
_local5 = _local3[_local2].methodName;
_local4[_local5](event);
_local2++;
}
} else if (bubbles && (_parent instanceof gc.utils.Events.EventDispatcher)) {
gc.utils.Events.EventDispatcher(_parent).dispatchEvent(event, bubbles);
}
}
function removeEventListener(eventType, listenerObj, methodName) {
if (hasEventListener(eventType)) {
var _local3 = registeredListeners[eventType];
var _local2 = _local3.length - 1;
while (_local2 >= 0) {
if ((_local3[_local2].listenerObj == listenerObj) && (_local3[_local2].methodName == methodName)) {
_local3.splice(_local2, 1);
if (_local3.length == 0) {
registeredListeners[eventType] = null;
}
break;
}
_local2--;
}
}
}
function hasEventListener(eventType) {
var _local2 = Array(registeredListeners[eventType]);
return((_local2 != null) && (_local2 != undefined));
}
}
Symbol 370 MovieClip [__Packages.gc.utils.GCDelegate] Frame 0
class gc.utils.GCDelegate
{
function GCDelegate () {
}
static function create(target, handler) {
var _local2 = function () {
var _local2 = arguments.callee;
var _local3 = arguments.concat(_local2.initArgs);
return(_local2.handler.apply(_local2.target, _local3));
};
_local2.target = target;
_local2.handler = handler;
_local2.initArgs = arguments.slice(2);
return(_local2);
}
}
Symbol 371 MovieClip [__Packages.gc.utils.GCSWFConnection] Frame 0
class gc.utils.GCSWFConnection extends gc.utils.Events.EventDispatcher
{
var _connected, _logName, _host, _queuedMessages, _close, _client, _version, _baseID, _traceLog, _lc, _myID, _extID, clientVersion, dispatchEvent;
function GCSWFConnection (connectionID, client, version, logName, traceTheLog) {
super();
_connected = false;
_logName = logName;
_host = true;
_queuedMessages = [];
_close = false;
_client = client;
_version = version;
_baseID = connectionID.split(":").join("");
_traceLog = traceTheLog;
}
function startConnection() {
_lc = new LocalConnection();
var _local2 = this;
_lc.allowDomain = function (s) {
return(true);
};
_lc.allowInsecureDomain = function (s) {
return(true);
};
_lc.GC_utils_GCSWFConnection_init = gc.utils.GCDelegate.create(this, GC_utils_GCSWFConnection_init);
_lc.GC_utils_GCSWFConnection_receive = gc.utils.GCDelegate.create(this, GC_utils_GCSWFConnection_receive);
_host = _lc.connect(_baseID + "_HOST");
_myID = _baseID + (_host ? "_HOST" : "_CLIENT");
_extID = _baseID + (_host ? "_CLIENT" : "_HOST");
if (!_host) {
_lc.connect(_myID);
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
report(("[" + _logName) + "] [GCSWFConnection] Connected as client..");
} else {
report(("[" + _logName) + "] [GCSWFConnection] Connected as host..");
}
}
function bridgeConnected() {
var _local2 = 0;
while (_local2 < _queuedMessages.length) {
var _local5 = _queuedMessages[_local2].methodName;
var _local4 = _queuedMessages[_local2].methodArgs;
var _local3 = [_local5];
if (_local4) {
_local3 = _local3.concat(_local4);
}
send.apply(null, _local3);
_local2++;
}
_queuedMessages = [];
if (_close) {
close();
}
}
function send() {
var _local3 = arguments.slice(0);
if (_connected) {
_local3.unshift("GC_utils_GCSWFConnection_receive");
_local3.unshift(_extID);
_lc.send.apply(_lc, _local3);
} else {
_queuedMessages.push(_local3);
}
}
function GC_utils_GCSWFConnection_receive() {
var _local3 = arguments.slice(0);
var _local4 = String(_local3.shift());
_client[_local4].apply(_client, _local3);
}
function GC_utils_GCSWFConnection_init(version) {
report(("[" + _logName) + "] [GCSWFConnection] Reccieved Init");
if (_host) {
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
}
clientVersion = version;
_connected = true;
bridgeConnected();
report(("[" + _logName) + "] Dispatching Connect Event");
dispatchEvent(new gc.utils.Events.Event(this, CONNECTED));
}
function close() {
report(("[" + _logName) + "] [GCSWFConnection] Connection Closing");
if (_queuedMessages.length != 0) {
_close = true;
return(undefined);
}
_lc.close();
_connected = false;
delete _client;
delete _lc;
}
function report(s) {
if (_traceLog) {
trace(s);
}
}
function get id() {
return(_baseID);
}
function get connected() {
return(_connected);
}
static var CONNECTED = "CONNECTED";
}
Symbol 372 MovieClip [__Packages.GCNotificationTypes] Frame 0
class GCNotificationTypes
{
function GCNotificationTypes () {
}
static var BEGIN_LOAD = "BEGIN_LOAD";
static var STARTUP = "STARTUP";
static var LOAD_SKIN_AND_STYLE = "LOAD_SKIN_AND_STYLE";
static var SKIN_AND_STYLE_LOADED = "SKIN_AND_STYLE_LOADED";
static var SHOW_TAB = "SHOW_TAB";
static var HIDE_TAB = "HIDE_TAB";
static var SHOW_CHART_LISTS = "SHOW_CHART_LISTS";
static var LAUNCH_GAME = "LAUNCH_GAME";
static var DISPATCH_DEVELOPER_API_EVENT = "DISPATCH_DEVELOPER_API_EVENT";
}
Symbol 373 MovieClip [__Packages.GCBrainInterface] Frame 0
class GCBrainInterface
{
var _container, _lcRand, _brainLoaded, _brainLoader, _notificationBuffer, _conn;
function GCBrainInterface () {
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
trace("[GC-API] Games Chart v." + GamesChart.VERSION);
_container = _root.createEmptyMovieClip("GC_API_MC", _root.getNextHighestDepth());
_container.onEnterFrame = gc.utils.GCDelegate.create(this, onEnterFrame);
_lcRand = int(Math.random() * 10000);
loadBrain();
startLC();
}
function onEnterFrame() {
var _local4 = _container.getDepth();
var _local3 = _root.getNextHighestDepth() - 1;
if (_local4 < _local3) {
_container.swapDepths(_local3 + 1);
}
}
function loadBrain() {
var _local2 = BRAIN_URL;
_brainLoaded = false;
_brainLoader = new MovieClipLoader();
_brainLoader.addListener({onLoadInit:gc.utils.GCDelegate.create(this, onFinishedLoading)});
_brainLoader.loadClip((_local2 + "?r=") + _lcRand, _container.createEmptyMovieClip("GCBrain_mc", _container.getNextHighestDepth()));
trace("[GC-API] Loading Brain.. ");
}
function onFinishedLoading(brainMC) {
_brainLoaded = true;
trace("[GC-API] Brain Loaded!");
}
function startLC() {
_notificationBuffer = [];
_conn = new gc.utils.GCSWFConnection("_GamesChartLC" + _lcRand, this, GamesChart.VERSION, "GC-API", true);
_conn.addEventListener(gc.utils.GCSWFConnection.CONNECTED, this, "onLCConnected");
_conn.startConnection();
}
function onLCConnected(e) {
trace("[GC-API] API Connected to Brain!");
while (_notificationBuffer.length > 0) {
var _local2 = _notificationBuffer.pop();
sendNotification(_local2.name, _local2.body, _local2.type);
}
}
function onGCEvent(type, data) {
if (GamesChart.onGCEvent != null) {
GamesChart.onGCEvent.apply(null, [type, data]);
}
}
function begin(gID) {
sendNotification(GCNotificationTypes.BEGIN_LOAD, {gameIDHash:gID, apiType:apiType, apiVersion:GamesChart.VERSION, swfURL:getRunningOnURL()}, "");
}
function sendNotification(n, body, type) {
if (_conn.__get__connected()) {
_conn.send("sendNotification", n, body, type);
} else {
_notificationBuffer.push({name:n, body:body, type:type});
}
}
function getRunningOnURL() {
var _local2 = String(flash.external.ExternalInterface.call("window.location.href.toString"));
if (_local2 == "null") {
return(_root._url);
}
return(_local2);
}
static var BRAIN_URL = "http://gameschart.com/flash_client/getBrain.php";
static var apiType = "AS2-API";
}
Symbol 400 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha+1);
}
_alpha = 0;
Symbol 413 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 416 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 416 MovieClip Frame 169
_root.play();
Symbol 428 Button
on (press) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 436 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop("lvlselect");
}
Symbol 445 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 448 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 454 Button
on (rollOver) {
gotoAndStop (4);
}
Symbol 460 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 461 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 462 Button
on (rollOver) {
gotoAndStop (3);
}
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 467 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 10);
}
_alpha = 0;
Symbol 468 MovieClip Frame 1
stop();
Symbol 473 Button
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 481 Button
on (release) {
getURL ("http://www.facebook.com/pages/Armor-Games/19522089061", "_blank");
}
Symbol 486 Button
on (release) {
getURL ("http://twitter.com/armorgames", "_blank");
}
Symbol 499 Button
on (release) {
_root.gotoAndStop("tutorial");
_root.wipe = false;
}
Symbol 515 Button
on (release) {
_root.gotoAndStop("lvl1");
}
Symbol 516 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 0) {
gotoAndStop (2);
}
if (_root.levels_unlocked == 0) {
gotoAndStop (1);
}
}
stop();
Symbol 522 Button
on (release) {
_root.gotoAndStop("lvl2");
}
Symbol 523 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 1) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 1) {
gotoAndStop (1);
}
}
stop();
Symbol 529 Button
on (release) {
_root.gotoAndStop("lvl3");
}
Symbol 530 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 2) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 2) {
gotoAndStop (1);
}
}
stop();
Symbol 536 Button
on (release) {
_root.gotoAndStop("lvl4");
}
Symbol 537 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 3) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 3) {
gotoAndStop (1);
}
}
stop();
Symbol 540 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 546 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.4);
}
}
stop();
_alpha = 100;
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 3
gotoAndStop (1);
Symbol 551 MovieClip Frame 1
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
stop();
_visible = false;
Symbol 551 MovieClip Frame 2
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
}
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
_root.bars.health.nextFrame();
Symbol 551 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 5
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 6
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 9
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 10
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 13
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 14
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 18
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 20
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 24
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 26
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 31
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 33
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 38
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 40
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 46
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 48
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 54
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 551 MovieClip Frame 56
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 551 MovieClip Frame 64
gotoAndStop (1);
Symbol 554 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(450);
Symbol 554 MovieClip Frame 3
gotoAndPlay (1);
Symbol 554 MovieClip Frame 4
function onEnterFrame() {
this.colorObject.clearRGB();
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
Symbol 554 MovieClip Frame 5
_root.coptergo = false;
Symbol 554 MovieClip Frame 56
stopAllSounds();
_root.gotoAndStop("gameover");
Symbol 557 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(2000);
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 2
stopAllSounds();
Symbol 563 MovieClip Frame 3
stop();
Symbol 563 MovieClip Frame 4
stopAllSounds();
Symbol 563 MovieClip Frame 5
stop();
Symbol 563 MovieClip Frame 6
stopAllSounds();
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 7
stop();
_root.copter.gotoAndPlay(4);
Symbol 570 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(1998);
Symbol 625 MovieClip Frame 1
this.swapDepths(2001);
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 2
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk1.text = talk1.text + someString.charAt(i);
}
if (i > 60) {
nextFrame();
}
}
}
stop();
_visible = true;
timer = 0;
i = 0;
someString = ".what the!?";
Symbol 625 MovieClip Frame 3
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk2.text = talk2.text + someString.charAt(i);
}
if (i > 90) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".looks like giant bats sir";
Symbol 625 MovieClip Frame 4
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk3.text = talk3.text + someString.charAt(i);
}
if (i > 120) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".whatever it is, our mission is simple. Get in, get our boys out and get paid!";
Symbol 625 MovieClip Frame 5
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk4.text = talk4.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".yes sir!";
Symbol 625 MovieClip Frame 6
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 7
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk5.text = talk5.text + someString.charAt(i);
}
if (i > 130) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Kill groups of them with bombs, for bigger scores!";
Symbol 625 MovieClip Frame 8
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 9
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk6.text = talk6.text + someString.charAt(i);
}
if (i > 60) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Look out behind!";
Symbol 625 MovieClip Frame 10
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk7.text = talk7.text + someString.charAt(i);
}
if (i > 140) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".The sky is swarming and we arent even at the rescue location yet?!!";
Symbol 625 MovieClip Frame 11
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 12
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk10.text = talk10.text + someString.charAt(i);
}
if (i > 90) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".im not sure if i could ..face.. anymore of those enemies";
Symbol 625 MovieClip Frame 13
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk11.text = talk11.text + someString.charAt(i);
}
if (i > 50) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".*sigh*";
Symbol 625 MovieClip Frame 14
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 15
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk8.text = talk8.text + someString.charAt(i);
}
if (i > 120) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".uhhh!? Bravo team are retreating..what the hell could be happening down there!?";
Symbol 625 MovieClip Frame 16
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk9.text = talk9.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".those cowards! I wont turn back without my men";
Symbol 625 MovieClip Frame 17
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 18
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk12.text = talk12.text + someString.charAt(i);
}
if (i > 60) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Heavy storm coming in, im taking us lower";
Symbol 625 MovieClip Frame 19
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 20
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk13.text = talk13.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".bomb through these boat masts!";
Symbol 625 MovieClip Frame 21
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 22
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk14.text = talk14.text + someString.charAt(i);
}
if (i > 110) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".erm... sir. I dont want to cause you alarm.. but there is a giant shark chasing us";
Symbol 625 MovieClip Frame 23
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk15.text = talk15.text + someString.charAt(i);
}
if (i > 60) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".were gonna need a bigger helicopter..";
Symbol 625 MovieClip Frame 24
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk16.text = talk16.text + someString.charAt(i);
}
if (i > 120) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".i suggest we bomb him straight in his bloody mouth!! that should keep him back a bit!";
Symbol 625 MovieClip Frame 25
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 26
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk17.text = talk17.text + someString.charAt(i);
}
if (i > 70) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".jeez this guy just wont quit!";
Symbol 625 MovieClip Frame 27
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk18.text = talk18.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".and neither will we thompson, keep pushing him back";
Symbol 625 MovieClip Frame 28
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 29
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk19.text = talk19.text + someString.charAt(i);
}
if (i > 100) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Looks like he's tasted enough napalm. That was a pretty big shark huh?";
Symbol 625 MovieClip Frame 30
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk20.text = talk20.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ". yeah. I dont think they come much bigger than that";
Symbol 625 MovieClip Frame 31
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 32
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk21.text = talk21.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
stop();
_visible = true;
timer = 0;
i = 0;
someString = ".I really didnt expect this..";
Symbol 625 MovieClip Frame 33
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk22.text = talk22.text + someString.charAt(i);
}
if (i > 70) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".Looks like there are enemies living inside this guy!";
Symbol 625 MovieClip Frame 34
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 35
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk23.text = talk23.text + someString.charAt(i);
}
if (i > 110) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Stay sharp, looks like some tough navigation ahead";
Symbol 625 MovieClip Frame 36
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 37
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk24.text = talk24.text + someString.charAt(i);
}
if (i > 80) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Nice flying sir!";
Symbol 625 MovieClip Frame 38
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 39
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk25.text = talk25.text + someString.charAt(i);
}
if (i > 100) {
nextFrame();
}
}
}
stop();
_visible = true;
timer = 0;
i = 0;
someString = ".heh.. this shark has a weird digestive system!";
Symbol 625 MovieClip Frame 40
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk26.text = talk26.text + someString.charAt(i);
}
if (i > 90) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Sir...what is that up ahead?";
Symbol 625 MovieClip Frame 41
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk27.text = talk27.text + someString.charAt(i);
}
if (i > 60) {
nextFrame();
}
}
}
stop();
timer = 0;
i = 0;
someString = ".It cant be!?!!";
Symbol 625 MovieClip Frame 42
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 43
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk28.text = talk28.text + someString.charAt(i);
}
if (i > 70) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Theres our missing troops!!";
Symbol 625 MovieClip Frame 44
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk29.text = talk29.text + someString.charAt(i);
}
if (i > 200) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Damn its good to see you guys! Listen, we managed to salvage some explosives from our wrecked transport. If you can keep us safe while we rig 'em, maybe we can get the hell outta here!";
Symbol 625 MovieClip Frame 45
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk30.text = talk30.text + someString.charAt(i);
}
if (i > 100) {
nextFrame();
}
}
}
stop();
_visible = true;
timer = 0;
i = 0;
someString = ".Straight to the point as always delta six... you can count on us. Lets do this.";
Symbol 625 MovieClip Frame 46
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 47
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk31.text = talk31.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Nice! Keep it up";
Symbol 625 MovieClip Frame 48
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 49
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk32.text = talk32.text + someString.charAt(i);
}
if (i > 50) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Man, i really hate spiders..";
Symbol 625 MovieClip Frame 50
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk33.text = talk33.text + someString.charAt(i);
}
if (i > 65) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".I heard they like to... surf the web";
Symbol 625 MovieClip Frame 51
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk34.text = talk34.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = "....";
Symbol 625 MovieClip Frame 52
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 53
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk35.text = talk35.text + someString.charAt(i);
}
if (i > 50) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".You can leave that for us if you want";
Symbol 625 MovieClip Frame 54
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 55
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk36.text = talk36.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Bomb its flashing head!";
Symbol 625 MovieClip Frame 56
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 57
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk36.text = talk36.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Almost there!";
Symbol 625 MovieClip Frame 58
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 59
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk37.text = talk37.text + someString.charAt(i);
}
if (i > 40) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".yes! Its set, lets go!";
Symbol 625 MovieClip Frame 60
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 625 MovieClip Frame 61
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk38.text = talk38.text + someString.charAt(i);
}
if (i > 100) {
nextFrame();
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Welcome to flight school! Use the Mouse to fly and shoot.";
Symbol 625 MovieClip Frame 62
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk39.text = talk39.text + someString.charAt(i);
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Try shooting these targets";
Symbol 625 MovieClip Frame 63
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk40.text = talk40.text + someString.charAt(i);
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Great! You can release a bomb by pressing the spacebar. Press the spacebar again to detonate it. Try bombing these targets.";
Symbol 625 MovieClip Frame 64
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk41.text = talk41.text + someString.charAt(i);
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Nice work! Bombs move with the speed of your copter. You can fling bombs by moving your copter and pressing spacebar. Destroy these targets, by flinging, then detonating your bomb.";
Symbol 625 MovieClip Frame 65
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 1) {
timer = 0;
i++;
talk42.text = talk42.text + someString.charAt(i);
}
if (i > 90) {
nextFrame();
_root.targetsdown = 10;
}
}
}
_visible = true;
stop();
timer = 0;
i = 0;
someString = ".Great job! Youre ready for the mission!";
Symbol 625 MovieClip Frame 66
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 627 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > (cloudtimer + 200)) {
timer = 0;
cloudtimer = random(50);
newcloud = attachMovie("cloud", "cloud" + cloud_count, cloud_count++);
newcloud._x = 1200;
newcloud._y = random(380) + 20;
}
if (cloudcount > 10) {
cloudcount = 0;
}
}
}
timer = 0;
cloudtimer = random(50);
cloud_count = 0;
Symbol 636 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (random(100) == 1) {
_alpha = 100;
}
if (_alpha > 1) {
_alpha = (_alpha - 5);
}
}
}
_alpha = 0;
Symbol 644 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
timer++;
if (timer > 20) {
timer = 0;
}
if (((random(8) == 1) && (timer == 10)) && (_root.et > 190)) {
newdeb = _root.attachMovie("debris", "debris" + debriscount, debriscount++);
newdeb._x = 790;
newdeb._y = (this._y + 20) + random(60);
}
if (debriscount > 410) {
debriscount = 400;
}
}
}
timer = 0;
debriscount = 400;
Symbol 736 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = _root.copter._x;
this._y = _root.copter._y;
this._rotation = _root.copter._rotation * 1.5;
}
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(1980);
this.setMask("light");
Symbol 739 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(900);
Symbol 740 MovieClip Frame 1
function onEnterFrame() {
this._parent.colorObject.clearRGB();
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
stop();
_visible = false;
Symbol 740 MovieClip Frame 2
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
}
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
_root.dudeshealth.nextFrame();
Symbol 740 MovieClip Frame 3
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 5
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 6
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 9
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 10
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 13
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 14
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 18
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 20
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 24
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 26
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 31
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 33
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 38
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 40
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 46
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 48
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 54
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 740 MovieClip Frame 56
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this._parent);
colorObject.clearRGB();
Symbol 740 MovieClip Frame 64
gotoAndStop (1);
Symbol 754 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 24
function onEnterFrame() {
function onEnterFrame() {
this.colorObject.clearRGB();
}
if (_root.pau == false) {
timer++;
if (timer > 40) {
stopAllSounds();
_root.gotoAndStop("gameover");
}
}
Color.prototype.clearRGB = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
};
colorObject = new Color(this);
colorObject.clearRGB();
}
timer = 0;
Symbol 755 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
swapDepths(2007);
Symbol 755 MovieClip Frame 6
stop();
_root.dudes.gotoAndStop("dead");
Symbol 765 MovieClip Frame 1
function onEnterFrame() {
gotoAndStop(frame);
_rotation = (_rotation + rotations);
grav = grav + 0.8;
_x = (_x + sidemove);
_y = (_y - up);
_y = (_y + grav);
if (this._y > 500) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
frame = random(3) + 1;
grav = 0;
up = random(14) + 4;
sidemove = random(8) - 4;
rotations = random(7) + 1;
Symbol 772 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 775 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 778 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 782 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 783 MovieClip Frame 1
function onEnterFrame() {
timer++;
if (timer > 250) {
nextFrame();
timer = 0;
}
}
stop();
timer = 0;
Symbol 783 MovieClip Frame 5
stopAllSounds();
_root.gotoAndStop("lvlend");
Symbol 786 MovieClip Frame 1
_root.wipe = true;
Symbol 786 MovieClip Frame 5
_root.wipe = false;
Symbol 786 MovieClip Frame 362
function onEnterFrame() {
if (Key.isDown(13)) {
stopAllSounds();
_root.gotoAndStop("lvlend");
}
}
stop();
Symbol 792 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 796 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 799 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (_root.onlevel == 1) {
stopAllSounds();
_root.gotoAndStop("lvl1");
}
if (_root.onlevel == 2) {
stopAllSounds();
_root.gotoAndStop("lvl2");
}
if (_root.onlevel == 3) {
stopAllSounds();
_root.gotoAndStop("lvl3");
}
if (_root.onlevel == 4) {
stopAllSounds();
_root.gotoAndStop("lvl4");
}
}
Symbol 800 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 801 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 802 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (_root.onlevel == 1) {
_root.gotoAndStop(4);
}
if (_root.onlevel == 2) {
_root.gotoAndStop(5);
}
if (_root.onlevel == 3) {
_root.gotoAndStop(6);
}
if (_root.onlevel == 4) {
_root.gotoAndStop(7);
}
}
Symbol 803 Button
on (rollOver) {
gotoAndStop (3);
}
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 804 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_root.gotoAndStop("menu");
}
Symbol 805 MovieClip Frame 1
stop();
Symbol 811 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (_root.onlevel == 1) {
stopAllSounds();
_root.gotoAndStop("lvl2");
}
if (_root.onlevel == 2) {
stopAllSounds();
_root.gotoAndStop("lvl3");
}
if (_root.onlevel == 3) {
stopAllSounds();
_root.gotoAndStop("lvl4");
}
}
Symbol 814 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_root.gotoAndStop("lvlselect");
}
Symbol 815 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (_root.onlevel == 1) {
_root.gotoAndStop("lvl2");
}
if (_root.onlevel == 2) {
_root.gotoAndStop("lvl3");
}
if (_root.onlevel == 3) {
_root.gotoAndStop("lvl4");
}
}
Symbol 816 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("lvlselect");
}
Symbol 818 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 819 MovieClip Frame 1
stop();
if (_root.onlevel == 4) {
gotoAndStop (3);
}
Symbol 826 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 104
function onEnterFrame() {
_alpha = (_alpha - 10);
}
stop();