Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"13cc7b69e4001186", res:"700x450"});
Frame 2
Stage.showMenu = false;
Frame 173
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
GamesChart.showTab(x, y);
__com_mochibot__("2864729f", this, 10301, true);
__com_mochibot__("afec1c64", this, 10301, true);
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;
}
Instance of Symbol 374 MovieClip [GamesChart-AS2] in Frame 173
//component parameters
onClipEvent (construct) {
gameKey = "c1808d33cca59ccfcf840b77d09c55e0";
}
Frame 174
GamesChart.hideTab();
wipe = true;
musicon = true;
Mouse.show();
if (levels_unlocked <= 0) {
levels_unlocked = 0;
}
cloudheight = true;
function onEnterFrame() {
}
stop();
Stage.showMenu = false;
Frame 175
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 175
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Instance of Symbol 617 MovieClip "talkbox" in Frame 175
onClipEvent (enterFrame) {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
Frame 176
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 177
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 > 25) {
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 178
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 179
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 180
stop();
cloudheight = true;
function onEnterFrame() {
}
Stage.showMenu = false;
Frame 181
function onEnterFrame() {
}
Mouse.show();
wipe = true;
Stage.showMenu = false;
Frame 182
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);
}
}
hiScores.setDetails(626, _root.onlevel - 1, "bat-country", "3yYOGELWEOIKfzY", false, _root.score, _root.score, "points", false);
Instance of Symbol 356 MovieClip [ZattikkaHiScores] "hiScores" in Frame 182
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
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 114
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 30
_parent.gotoAndStop("swim");
Symbol 158 MovieClip [sharky] Frame 1
function onEnterFrame() {
if (_root.pau == false) {
this._x = this._x + (_root.scrollspeed / 7);
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 - 7;
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 287 Button
on (release) {
getURL ("http://www.badhed.com?ref=bat-country_SPLASH", "_blank");
}
Symbol 293 Button
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 294 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 294 MovieClip [pausemenu] Frame 1
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Symbol 311 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 356 MovieClip [ZattikkaHiScores] Frame 1
#initclip 26
Object.registerClass("ZattikkaHiScores", ZattikkaHiScores);
#endinitclip
Symbol 374 MovieClip [GamesChart-AS2] Frame 1
#initclip 27
Object.registerClass("GamesChart-AS2", GCComponent);
#endinitclip
stop();
Symbol 833 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 834 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 835 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.2 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 836 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 837 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 838 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 375 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 382 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 376 MovieClip [__Packages.gc.utils.Events.IEventDispatcher] Frame 0
interface gc.utils.Events.IEventDispatcher
{
}
Symbol 377 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 378 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 380 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 312 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 313 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 314 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 357 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 358 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 359 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 360 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 361 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 362 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 363 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 364 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 379 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 381 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 387 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha+1);
}
_alpha = 0;
Symbol 422 Button
on (press) {
getURL ("http://www.badhed.com?ref=bat-country_SPLASH", "_blank");
}
Symbol 433 Button
on (press) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 441 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop("lvlselect");
}
Symbol 450 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 453 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 459 Button
on (rollOver) {
gotoAndStop (4);
}
Symbol 465 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 466 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
getURL ("http://www.badhed.com?ref=bat-country_SPLASH", "_blank");
}
Symbol 467 Button
on (rollOver) {
gotoAndStop (3);
}
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 472 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 10);
}
_alpha = 0;
Symbol 473 MovieClip Frame 1
stop();
Symbol 486 Button
on (release) {
_root.gotoAndStop("tutorial");
_root.wipe = false;
}
Symbol 502 Button
on (release) {
_root.gotoAndStop("lvl1");
}
Symbol 503 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 0) {
gotoAndStop (2);
}
if (_root.levels_unlocked == 0) {
gotoAndStop (1);
}
}
stop();
Symbol 509 Button
on (release) {
_root.gotoAndStop("lvl2");
}
Symbol 510 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 1) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 1) {
gotoAndStop (1);
}
}
stop();
Symbol 516 Button
on (release) {
_root.gotoAndStop("lvl3");
}
Symbol 517 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 2) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 2) {
gotoAndStop (1);
}
}
stop();
Symbol 523 Button
on (release) {
_root.gotoAndStop("lvl4");
}
Symbol 524 MovieClip Frame 1
function onEnterFrame() {
if (_root.levels_unlocked > 3) {
gotoAndStop (2);
}
if (_root.levels_unlocked <= 3) {
gotoAndStop (1);
}
}
stop();
Symbol 527 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 530 Button
on (release) {
getURL ("http://www.badhed.com/hi-scores/bat-country", "_blank");
}
Symbol 538 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
_alpha = (_alpha - 0.4);
}
}
stop();
_alpha = 100;
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 3
gotoAndStop (1);
Symbol 543 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 543 MovieClip Frame 2
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
}
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
_root.bars.health.nextFrame();
Symbol 543 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 543 MovieClip Frame 5
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 9
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 13
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 18
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 24
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 31
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 38
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 46
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 54
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 543 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 543 MovieClip Frame 64
gotoAndStop (1);
Symbol 546 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(450);
Symbol 546 MovieClip Frame 3
gotoAndPlay (1);
Symbol 546 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 546 MovieClip Frame 5
_root.coptergo = false;
Symbol 546 MovieClip Frame 56
stopAllSounds();
_root.gotoAndStop("gameover");
Symbol 549 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(2000);
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stopAllSounds();
Symbol 555 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 4
stopAllSounds();
Symbol 555 MovieClip Frame 5
stop();
Symbol 555 MovieClip Frame 6
stopAllSounds();
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 9
stop();
_root.copter.gotoAndPlay(4);
Symbol 562 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(1998);
Symbol 617 MovieClip Frame 1
this.swapDepths(2001);
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 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 617 MovieClip Frame 6
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 8
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 11
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 14
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 17
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 19
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 21
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 MovieClip Frame 25
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 28
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 31
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 MovieClip Frame 34
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 36
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 38
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 MovieClip Frame 42
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 MovieClip Frame 46
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 48
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 MovieClip Frame 52
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 54
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 56
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 58
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 MovieClip Frame 60
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 617 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 617 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 617 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 617 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 617 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 617 MovieClip Frame 66
function onEnterFrame() {
i = 0;
}
_visible = false;
stop();
Symbol 619 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 628 MovieClip Frame 1
function onEnterFrame() {
if (_root.pau == false) {
if (random(100) == 1) {
_alpha = 100;
}
if (_alpha > 1) {
_alpha = (_alpha - 5);
}
}
}
_alpha = 0;
Symbol 636 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 728 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 731 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
this.swapDepths(900);
Symbol 732 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 732 MovieClip Frame 2
function onEnterFrame() {
play();
if (_root.pau == true) {
stop();
}
}
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
_root.dudeshealth.nextFrame();
Symbol 732 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 732 MovieClip Frame 5
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 9
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 13
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 18
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 24
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 31
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 38
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 46
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 54
colorObject = new Color(this._parent);
colorObject.setRGB(16777215);
Symbol 732 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 732 MovieClip Frame 64
gotoAndStop (1);
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 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 747 MovieClip Frame 1
function onEnterFrame() {
if (_root.wipe == true) {
this.swapDepths(9999);
this.removeMovieClip();
}
}
stop();
swapDepths(2007);
Symbol 747 MovieClip Frame 8
stop();
_root.dudes.gotoAndStop("dead");
Symbol 757 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 764 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 767 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 770 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 774 MovieClip Frame 1
function onEnterFrame() {
_alpha = (_alpha + 2);
}
_alpha = 0;
Symbol 775 MovieClip Frame 1
function onEnterFrame() {
timer++;
if (timer > 250) {
nextFrame();
timer = 0;
}
}
stop();
timer = 0;
Symbol 775 MovieClip Frame 5
stopAllSounds();
_root.gotoAndStop("lvlend");
Symbol 778 MovieClip Frame 1
_root.wipe = true;
Symbol 778 MovieClip Frame 5
_root.wipe = false;
Symbol 778 MovieClip Frame 362
function onEnterFrame() {
if (Key.isDown(13)) {
stopAllSounds();
_root.gotoAndStop("lvlend");
}
}
stop();
Symbol 784 Button
on (rollOver) {
gotoAndStop (4);
}
Symbol 785 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 789 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 792 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 793 Button
on (rollOver) {
gotoAndStop (3);
}
Symbol 794 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 795 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 796 Button
on (rollOver) {
gotoAndStop (3);
}
on (release) {
getURL ("http://www.greg-anims.com", "_blank");
}
Symbol 797 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_root.gotoAndStop("menu");
}
Symbol 798 Button
on (rollOver) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.badhed.com?ref=bat-country_SPLASH", "_blank");
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 805 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 808 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_root.gotoAndStop("lvlselect");
}
Symbol 809 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 810 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("lvlselect");
}
Symbol 812 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 813 MovieClip Frame 1
stop();
if (_root.onlevel == 4) {
gotoAndStop (3);
}
Symbol 820 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 104
function onEnterFrame() {
_alpha = (_alpha - 10);
}
stop();