Frame 1
var myContextMenu = new ContextMenu();
myContextMenu.builtInItems.forward_back = false;
myContextMenu.builtInItems.play = false;
myContextMenu.builtInItems.loop = false;
myContextMenu.builtInItems.rewind = false;
myContextMenu.builtInItems.save = false;
var musicOn = true;
var firstTime = true;
var beenHere = false;
NewgroundsAPI.connectMovie(11349);
this.menu = myContextMenu;
stop();
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
pfixEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
bar.onEnterFrame = function () {
PercentLoaded = (getBytesLoaded() / getBytesTotal()) * 100;
if (PercentLoaded != 100) {
PercentLoaded = Math.round(PercentLoaded);
bartxt.text = PercentLoaded;
guy._y = (2 * PercentLoaded) + 40;
train._y = 480 - (PercentLoaded * 2);
} else {
_root.gotoAndStop(17);
}
};
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);
}
__com_mochibot__("cfd2a1e7", this, 10301, true);
mochi.as2.MochiServices.connect("8290ad494902582d");
Frame 2
function callGhost() {
if (ghostleft) {
hero._x = hero._x - movelimit;
} else {
hero._x = hero._x + movelimit;
}
}
function roundItstring(rnum) {
rnum = Math.round(rnum * 10) / 10;
var _local1 = rnum.toString();
if (_local1.length == 1) {
_local1 = _local1 + ".0";
}
_local1 = _local1 + "s";
return(_local1);
}
function heroDead() {
i = 0;
while (rails.length > i) {
rails[i].removeMovieClip();
i++;
}
k = 0;
while (enemies.length > k) {
enemies[k].removeMovieClip();
k++;
}
w = 0;
while (moneybags.length > w) {
moneybags[w][0].removeMovieClip();
w++;
}
r = 0;
while (walls.length > r) {
walls[r].removeMovieClip();
r++;
}
b = 0;
while (backgrounds.length > b) {
backgrounds[b].removeMovieClip();
b++;
}
bb = 0;
while (beams.length > bb) {
beams[bb].removeMovieClip();
bb++;
}
if (timefreeze) {
timefreeze = false;
timefreezeFunc(timefreeze);
}
clearInterval(deadID);
panel.removeMovieClip();
levelmc.removeMovieClip();
hero.removeMovieClip();
bgextra.removeMovieClip();
timefreeze_sfx.removeMovieClip();
overlay_mc.removeMovieClip();
a = 0;
while (a < 5) {
_root["alarm" + a].removeMovieClip();
a++;
}
delete sh_wall;
delete sh_enemy;
delete sh_money;
delete sh_rail;
delete sh_bg;
delete sh_bb;
gotoAndStop (25);
}
function createBG(index) {
num++;
backgrounds.push(_root.attachMovie("bg" + index, (("new" + index) + "BG") + num, 100 + bgcount));
if ((index == 2) && (bgextra == null)) {
bgextra = _root.attachMovie("bg2s", "newBGs" + num, 190);
bgextra._y = backgrounds[backgrounds.length - 2]._height - 10;
bgextra._x = -295.2;
bgactive = true;
}
if (backgrounds.length == 1) {
backgrounds[backgrounds.length - 1]._y = 0;
backgrounds[backgrounds.length - 1]._x = -39.5;
} else {
backgrounds[backgrounds.length - 1]._y = backgrounds[backgrounds.length - 2]._height - 10;
if (index == 1) {
backgrounds[backgrounds.length - 1]._x = -39.5;
}
if (index == 2) {
backgrounds[backgrounds.length - 1]._x = -10.7;
bb = 0;
while (bb < 4) {
beams.push(_root.attachMovie("bridge_beam", "bridgebeam" + bb, 95000 + num));
beams[beams.length - 1]._x = 10.1;
beams[beams.length - 1]._y = backgrounds[backgrounds.length - 1]._y + Math.abs((backgrounds[backgrounds.length - 1]._height * 0.2) * (bb + 1));
if (bb == 3) {
beams[beams.length - 1]._y = beams[beams.length - 1]._y - 40;
}
beams[beams.length - 1]._alpha = 80;
num++;
bb++;
}
}
if (index == 3) {
backgrounds[backgrounds.length - 1]._x = -30.6;
if (bgcycle[bgcount] != 4) {
backgrounds[backgrounds.length - 1].trans_town._visible = false;
}
}
if (index == 4) {
backgrounds[backgrounds.length - 1]._x = -22.6;
if ((bgcount + 1) != (bgcycle.length + 1)) {
backgrounds[backgrounds.length - 1].trans_canyon._visible = false;
}
}
}
backgrounds[backgrounds.length - 1].swapDepths(200 + bgcount);
bgcount++;
if (bgcount == (bgcycle.length + 1)) {
bgcount = 1;
}
}
function timefreezeFunc(freeze) {
if (freeze) {
restoretime = [speed, rangelimit, rangelimitb, enemyrange, wallrange, moneyrange, levelchange];
speed = 2;
enemyspeed = speed * 1.2;
rangelimit = 48;
rangelimitb = 64;
enemyrange = 160;
wallrange = 48;
moneyrange = 256;
levelchange = 800;
timefreeze_sfx._visible = true;
} else {
restoretime[0] = restoretime[0] + (((speed - 2) != 0) ? (speed - 2) : 0);
speed = restoretime[0];
enemyspeed = speed * 1.2;
restoretime[1] = restoretime[1] + (((rangelimit - 48) != 0) ? (rangelimit - 48) : 0);
rangelimit = restoretime[1];
restoretime[2] = restoretime[2] + (((rangelimitb - 64) != 0) ? (rangelimitb - 64) : 0);
rangelimitb = restoretime[2];
restoretime[3] = restoretime[3] + (((enemyrange - 160) != 0) ? (enemyrange - 160) : 0);
enemyrange = restoretime[3];
restoretime[4] = restoretime[4] + (((wallrange - 48) != 0) ? (wallrange - 48) : 0);
wallrange = restoretime[4];
restoretime[5] = restoretime[5] + (((moneyrange - 256) != 0) ? (moneyrange - 256) : 0);
moneyrange = restoretime[5];
restoretime[6] = restoretime[6] + (((levelchange - 800) != 0) ? (levelchange - 800) : 0);
levelchange = restoretime[6];
timefreeze_sfx._visible = false;
}
}
stopAllSounds();
tut_mc.swapDepths(99999);
var speed = 5;
var enemyspeed = (speed * 1.2);
var rails = new Array();
var enemies = new Array();
var moneybags = new Array();
var walls = new Array();
var beams = new Array();
var backgrounds = new Array();
var bgcycle = new Array(1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4);
var bgcount = 0;
var bgextra = null;
var bgspeed = 0;
var bgmove = false;
var bgactive = false;
var count1a = 0;
var count1b = 0;
var count2a = 0;
var count2b = 0;
var enemycount = 0;
var moneycount = 0;
var effectcount = 0;
var wallcount = 0;
var num = 0;
var leftPositions = new Array(0, 52, 117, 184, 250);
var rightPositions = new Array(0, 121, 189, 254, 321);
var enemyPositions = new Array(0, 45, 112, 178, 244, 310);
var randnum = 0;
var storenum1a = 0;
var storenum2a = 0;
var rangelimit = 30;
var rangelimitb = 40;
var enemyrange = 100;
var moneyrange = 160;
var wallrange = 30;
var range = 10;
var rangea = 10;
var rangeb = 10;
var rangec = 10;
var moveleft = false;
var moveright = false;
var movelimit = 66.3;
var movecount = 0;
var levelchange = 500;
var canjump = true;
var time = 0;
var level = 1;
var temp = 0;
var score = 0;
var dead = false;
var deadID = 0;
var sh_wall = new Object();
var sh_enemy = new Object();
var sh_rail = new Object();
var sh_money = new Object();
var sh_bg = new Object();
var sh_bb = new Object();
var originX = 0;
var multiplier = 1;
var m_toggled = false;
var armored = false;
var ghost = false;
var timefreeze = false;
var a_toggled = false;
var g_toggled = false;
var t_toggled = false;
var armored_time = 150;
var ghost_time = 150;
var timefreeze_time = 150;
var restoretime = new Array();
var ghostleft = false;
hero.gotoAndStop(1);
hero._x = 195.4;
hero._y = 62.9;
createBG(1);
createBG(1);
panel.swapDepths(16537);
panel.ghost_txt.text = "A";
panel.armored_txt.text = "S";
panel.timefreeze_txt.text = "D";
timefreeze_sfx._visible = false;
timefreeze_sfx.swapDepths(90000);
hero.swapDepths(67999);
levelmc.swapDepths(91000);
overlay_mc.swapDepths(199666);
if (musicOn == true) {
var themusic = new Sound();
themusic.attachSound("music");
themusic.start(0, 9999);
}
panel.quit_btn.onPress = function () {
dead = true;
heroDead();
};
panel.quit_btn.onRollOver = function () {
panel.quit_btn.gotoAndStop(2);
};
panel.quit_btn.onRollOut = function () {
panel.quit_btn.gotoAndStop(1);
};
panel.mute_btn.onPress = function () {
if (musicOn == false) {
themusic.start(0, 9999);
musicOn = true;
trace("started music");
} else {
stopAllSounds();
musicOn = false;
trace("stopped music");
}
};
panel.mute_btn.onRollOver = function () {
panel.mute_btn.gotoAndStop(2);
};
panel.mute_btn.onRollOut = function () {
panel.mute_btn.gotoAndStop(1);
};
hero.onEnterFrame = function () {
if (hero._y < 250) {
panel.scoremc.statustxt.text = "Playing it safe \n x1.0";
multiplier = 1;
} else if (hero._y < 450) {
panel.scoremc.statustxt.text = "Thrill seeker \n x1.5";
multiplier = 1.5;
} else if (hero._y < 700) {
panel.scoremc.statustxt.text = "CrAzY Man! \n x2.5";
multiplier = 2.5;
}
if (dead == false) {
score = score + Math.ceil(level * multiplier);
}
panel.scoremc.scoretxt.text = score;
if (dead == false) {
time++;
if (time >= levelchange) {
speed++;
if (speed > 10) {
speed = 10;
}
enemyspeed = speed * 1.2;
level++;
levelchange = levelchange + (level * 25);
levelmc.leveltxt.text = "Level " + level;
levelmc.play();
levelmc.swapDepths(91000 + num);
timefreeze_sfx.swapDepths(90000 + num);
hero.swapDepths(67999 + num);
rangelimit = rangelimit - (Math.ceil(10 / level) + 3);
rangelimitb = rangelimitb - (Math.ceil(10 / level) + 3);
moneyrange = moneyrange - 5;
wallrange = wallrange - 3;
if (wallrange < 15) {
wallrange = 15;
}
if (moneyrange < 100) {
moneyrange = 100;
}
if (rangelimit < 5) {
rangelimit = 5;
}
if (rangelimitb < 9) {
rangelimitb = 9;
}
enemyrange = enemyrange - (level * 5);
if (enemyrange < 20) {
enemyrange = 20;
}
time = 0;
}
count1a++;
if (count1a == range) {
num++;
rails.push(_root.attachMovie("rail", "rail" + num, 9000 + num));
rails[rails.length - 1]._rotation = 45;
randnum = Math.ceil(Math.random() * 4);
if (storenum1a != 0) {
while (randnum == storenum1a) {
randnum = Math.ceil(Math.random() * 4);
}
}
storenum1a = randnum;
rails[rails.length - 1]._x = rightPositions[randnum];
rails[rails.length - 1]._y = 715;
count1a = 0;
range = Math.ceil((Math.random() * rangelimit) + rangelimit);
}
count1b++;
if (count1b == rangea) {
num++;
rails.push(_root.attachMovie("rail", "rail" + num, 9000 + num));
rails[rails.length - 1]._rotation = 45;
randnum = Math.ceil(Math.random() * 4);
if (storenum1a != 0) {
while (randnum == storenum1a) {
randnum = Math.ceil(Math.random() * 4);
}
}
storenum1a = randnum;
rails[rails.length - 1]._x = rightPositions[randnum];
rails[rails.length - 1]._y = 715;
count1b = 0;
rangea = Math.ceil((Math.random() * rangelimitb) + rangelimitb);
}
count2a++;
if (count2a == rangeb) {
num++;
rails.push(_root.attachMovie("rail", "rail" + num, 9000 + num));
_root["rail" + num]._rotation = -45;
randnum = Math.ceil(Math.random() * 4);
if (storenum2a != 0) {
while (randnum == storenum2a) {
randnum = Math.ceil(Math.random() * 4);
}
}
storenum2a = randnum;
rails[rails.length - 1]._x = leftPositions[randnum];
rails[rails.length - 1]._y = 715;
count2a = 0;
rangeb = Math.ceil((Math.random() * rangelimit) + rangelimit);
}
count2b++;
if (count2b == rangec) {
num++;
rails.push(_root.attachMovie("rail", "rail" + num, 9000 + num));
rails[rails.length - 1]._rotation = -45;
randnum = Math.ceil(Math.random() * 4);
if (storenum2a != 0) {
while (randnum == storenum2a) {
randnum = Math.ceil(Math.random() * 4);
}
}
storenum2a = randnum;
rails[rails.length - 1]._x = leftPositions[randnum];
rails[rails.length - 1]._y = 715;
count2b = 0;
rangec = Math.ceil((Math.random() * rangelimitb) + rangelimitb);
}
enemycount++;
if (enemycount >= enemyrange) {
randnum = Math.ceil(Math.random() * 5);
enemies.push(_root.attachMovie("enemy", "enemy" + num, num + 69000));
enemies[enemies.length - 1]._y = 1150;
enemies[enemies.length - 1]._x = enemyPositions[randnum];
randnum--;
if (_root["alarm" + randnum]._visible == false) {
_root["alarm" + randnum]._visible = true;
_root["alarm" + randnum].swapDepths(80000 + randnum);
_root["alarm" + randnum].rflash.gotoAndPlay(1);
}
num++;
enemycount = 0;
}
moneycount++;
if (moneycount >= moneyrange) {
moneybags.push([_root.attachMovie("moneybag", "money" + num, num + 14000), Math.ceil((Math.random() * 500) + 250)]);
randnum = Math.ceil(Math.random() * 5);
moneybags[moneybags.length - 1][0]._y = 650;
moneybags[moneybags.length - 1][0]._x = enemyPositions[randnum];
num++;
moneycount = 0;
}
wallcount++;
if (wallcount >= wallrange) {
randnum = Math.ceil(Math.random() * 3);
walls.push(_root.attachMovie("wallholder", "wall" + num, num + 20000));
walls[walls.length - 1].gotoAndStop(randnum);
randnum = Math.ceil(Math.random() * 5);
walls[walls.length - 1]._y = 635;
walls[walls.length - 1]._x = enemyPositions[randnum];
wallcount = 0;
num++;
}
}
if (backgrounds.length > 0) {
b = 0;
while (backgrounds.length > b) {
if (backgrounds[b] != null) {
_root.backgrounds[b]._y = _root.backgrounds[b]._y - speed;
if (b > 0) {
var _local2 = _root.backgrounds[b]._y - (_root.backgrounds[b - 1]._y + _root.backgrounds[b - 1]._height);
_local2 = Math.round(_local2 * 10) / 10;
if (_local2 > -10) {
_root.backgrounds[b]._y = _root.backgrounds[b]._y - (((10 - Math.abs(_local2)) < 1) ? 1 : (10 - Math.abs(_local2)));
if (bgextra != null) {
bgextra._y = bgextra._y - (10 - Math.abs(_local2));
}
_local2 = 0;
}
}
if (_root.backgrounds[b]._y < (-_root.backgrounds[b]._height)) {
sh_bg = backgrounds[b];
backgrounds[b] = null;
backgrounds.shift();
sh_bg.removeMovieClip();
if (bgactive) {
bgmove = true;
} else {
if (bgextra != null) {
bgextra.removeMovieClip();
}
bgextra = null;
}
createBG(bgcycle[bgcount - 1]);
b--;
}
}
b++;
}
}
if (bgmove) {
var _local3 = _root.backgrounds[backgrounds.length - 1]._name;
if (((_local3.charAt(3) == 3) && (bgmove)) && (_root.backgrounds[backgrounds.length - 1]._y < 600)) {
bgmove = false;
bgactive = false;
}
bgspeed = speed / 1.47;
bgextra._y = bgextra._y - bgspeed;
} else {
bgextra._y = bgextra._y - speed;
}
if (beams.length > 0) {
bb = 0;
while (bb < beams.length) {
_root.beams[bb]._y = _root.beams[bb]._y - speed;
if (_root.beams[bb]._y < -100) {
sh_bb = beams[0];
beams[0] = null;
beams.shift();
sh_bb.removeMovieClip();
bb--;
}
bb++;
}
}
if (rails.length > 0) {
i = 0;
while (rails.length > i) {
if (rails[i] != null) {
_root.rails[i]._y = _root.rails[i]._y - speed;
if (_root.rails[i]._rotation == 0) {
rails[i].removeMovieClip();
}
if (_root.rails[i]._y < -100) {
sh_rail = rails[0];
rails[0] = null;
rails.shift();
sh_rail.removeMovieClip();
i--;
}
}
i++;
}
}
if (enemies.length > 0) {
k = 0;
while (enemies.length > k) {
_root.enemies[k]._y = _root.enemies[k]._y - enemyspeed;
if (((_root.enemies[k].hitter.hitTest(hero) && (dead == false)) && (armored == true)) && (_root.enemies[k]._currentframe == 1)) {
_root.enemies[k].gotoAndStop(2);
}
if ((_root.enemies[k].hitter.hitTest(hero.hitter) && (dead == false)) && (_root.enemies[k]._currentframe == 1)) {
dead = true;
hero.gotoAndStop(6);
deadID = setInterval(heroDead, 5000);
}
if (walls.length > 0) {
w = 0;
while (w < walls.length) {
if (_root.enemies[k].hitter.hitTest(_root.walls[w]) && (_root.walls[w]["obs" + _root.walls[w]._currentframe]._currentframe == 1)) {
_root.walls[w]["obs" + _root.walls[w]._currentframe].play();
}
w++;
}
}
if (_root.enemies[k]._y < -300) {
sh_enemy = enemies[0];
enemies[0] = null;
enemies.shift();
sh_enemy.removeMovieClip();
k--;
}
k++;
}
}
if (moneybags.length > 0) {
w = 0;
while (moneybags.length > w) {
if (_root.moneybags[w][0]._currentframe == 1) {
_root.moneybags[w][0]._y = _root.moneybags[w][0]._y - speed;
} else {
_root.moneybags[w][0]._y = _root.moneybags[w][0]._y + 7;
_root.moneybags[w][0].swapDepths(_root.getNextHighestDepth());
}
if (dead == false) {
if (_root.moneybags[w][0].hitTest(hero) && (_root.moneybags[w][0]._currentframe == 1)) {
_root.moneybags[w][0].gotoAndStop(2);
_root.moneybags[w][0].moneytxt.text = "+" + _root.moneybags[w][1];
score = score + _root.moneybags[w][1];
_root.moneybags[w][0].swapDepths(_root.getNextHighestDepth());
}
}
if ((_root.moneybags[w][0]._y > 700) || (_root.moneybags[w][0]._y < -200)) {
sh_money = moneybags.shift();
sh_money[0].removeMovieClip();
w--;
}
w++;
}
}
if (walls.length > 0) {
e = 0;
while (walls.length > e) {
if (walls[e] != null) {
_root.walls[e]._y = _root.walls[e]._y - speed;
if ((((_root.walls[e].hitTest(hero.hitter) && (hero._currentframe != 4)) && (dead == false)) && (armored == false)) && (_root.walls[e]["obs" + _root.walls[e]._currentframe]._currentframe == 1)) {
dead = true;
hero.gotoAndStop(5);
deadID = setInterval(heroDead, 5000);
} else if (_root.walls[e].hitTest(hero) && (armored)) {
if (_root.walls[e]._currentframe == 1) {
_root.walls[e].obs1.play();
}
if (_root.walls[e]._currentframe == 2) {
_root.walls[e].obs2.play();
}
if (_root.walls[e]._currentframe == 3) {
_root.walls[e].obs3.play();
}
}
if ((_root.walls[e]._y > 700) || (_root.walls[e]._y < -100)) {
sh_wall = walls[0];
walls[0] = null;
walls.shift();
sh_wall.removeMovieClip();
e--;
}
}
e++;
}
}
if (dead == false) {
if ((Key.isDown(40) && (moveleft == false)) && (moveright == false)) {
if (hero._y < 580) {
hero._y = hero._y + 2.9;
}
}
if ((Key.isDown(38) && (moveleft == false)) && (moveright == false)) {
if (hero._y > 20) {
hero._y = hero._y - 2.9;
}
}
if ((armored == false) && (ghost == false)) {
if (rails.length > 0) {
b = 0;
while (b < rails.length) {
if (hero.hitTest(_root.rails[b].hitter)) {
if (((((_root.rails[b]._rotation == 45) && (Key.isDown(37))) && (moveleft == false)) && (moveright == false)) && (hero._currentframe != 4)) {
moveleft = true;
originX = hero._x;
}
if (((((_root.rails[b]._rotation == -45) && (Key.isDown(39))) && (moveright == false)) && (moveleft == false)) && (hero._currentframe != 4)) {
moveright = true;
originX = hero._x;
}
}
b++;
}
}
if ((moveleft == true) && (moveright == false)) {
hero.gotoAndStop(2);
hero._x = hero._x - speed;
movecount = movecount + speed;
if (movecount >= movelimit) {
temp = Math.abs(originX - hero._x);
if (temp > movelimit) {
hero._x = hero._x + (temp - movelimit);
}
moveleft = false;
movecount = 0;
hero.gotoAndStop(1);
}
}
if ((moveright == true) && (moveleft == false)) {
hero.gotoAndStop(3);
hero._x = hero._x + speed;
movecount = movecount + speed;
if (movecount >= movelimit) {
temp = Math.abs(originX - hero._x);
if (temp > movelimit) {
hero._x = hero._x - (temp - movelimit);
}
moveright = false;
movecount = 0;
hero.gotoAndStop(1);
}
}
if ((moveleft == true) && (moveright == true)) {
moveleft = false;
moveright = false;
}
if ((((Key.isDown(32) && (hero._currentframe != 4)) && (moveright == false)) && (moveleft == false)) && (canjump)) {
hero.gotoAndStop(4);
canjump = false;
}
if ((Key.isDown(32) == false) && (hero._currentframe != 4)) {
canjump = true;
}
}
if (((Key.isDown(37) && (ghost)) && (hero.ghostmc._currentframe == 1)) && (hero._x > 100)) {
ghostleft = true;
hero.ghostmc.gotoAndStop(2);
} else if (((Key.isDown(39) && (ghost)) && (hero.ghostmc._currentframe == 1)) && (hero._x < 300)) {
ghostleft = false;
hero.ghostmc.gotoAndStop(2);
}
if ((moveleft == false) && (moveright == false)) {
if ((((Key.isDown(83) && (a_toggled == false)) && (ghost == false)) && (timefreeze == false)) && (armored_time > 0)) {
if (armored == false) {
armored = true;
hero.gotoAndStop(7);
} else {
armored = false;
hero.gotoAndStop(1);
}
a_toggled = true;
} else if (Key.isDown(83) == false) {
a_toggled = false;
}
if (armored) {
armored_time--;
panel.armored_txt.text = roundItstring(armored_time / 30);
panel.armored_bar._xscale = (armored_time / 150) * 100;
if (armored_time < 1) {
armored = false;
hero.gotoAndStop(1);
}
}
if ((((Key.isDown(65) && (g_toggled == false)) && (armored == false)) && (timefreeze == false)) && (ghost_time > 0)) {
if (ghost == false) {
ghost = true;
hero.gotoAndStop(8);
} else {
ghost = false;
hero.gotoAndStop(1);
}
g_toggled = true;
} else if (Key.isDown(65) == false) {
g_toggled = false;
}
if (ghost) {
ghost_time--;
panel.ghost_txt.text = roundItstring(ghost_time / 30);
panel.ghost_bar._xscale = (ghost_time / 150) * 100;
if (ghost_time < 1) {
ghost = false;
hero.gotoAndStop(1);
}
}
if ((((Key.isDown(68) && (t_toggled == false)) && (armored == false)) && (ghost == false)) && (timefreeze_time > 0)) {
if (timefreeze == false) {
timefreeze = true;
timefreezeFunc(timefreeze);
} else {
timefreeze = false;
timefreezeFunc(timefreeze);
}
t_toggled = true;
} else if (Key.isDown(68) == false) {
t_toggled = false;
}
if (timefreeze) {
timefreeze_time--;
panel.timefreeze_txt.text = roundItstring(timefreeze_time / 30);
panel.timefreeze_bar._xscale = (timefreeze_time / 150) * 100;
if (timefreeze_time < 1) {
timefreeze = false;
timefreezeFunc(timefreeze);
}
}
}
if (Key.isDown(27)) {
dead = true;
heroDead();
}
} else {
speed = 2;
hero._y = hero._y - speed;
if (timefreeze) {
timefreeze = false;
timefreezeFunc(timefreeze);
}
panel.quit_btn.enabled = false;
}
if (Key.isDown(77) && (m_toggled == false)) {
m_toggled = true;
if (musicOn) {
musicOn = false;
stopAllSounds();
} else {
musicOn = true;
themusic.start(0, 9999);
}
} else if (!Key.isDown(77)) {
m_toggled = false;
}
};
Frame 3
var menuMus = new Sound();
menuMus.attachSound("menumusic");
var space = false;
var m_toggled = true;
tut_q._visible = false;
tut_yes_btn.enabled = false;
tut_no_btn.enabled = false;
tut_yes_btn._visible = false;
tut_no_btn._visible = false;
mainmenu_mc.onEnterFrame = function () {
if (Key.isDown(32) && (space == false)) {
space = true;
_root.gotoAndStop(2);
}
if (Key.isDown(77) && (m_toggled == false)) {
m_toggled = true;
if (musicOn) {
musicOn = false;
stopAllSounds();
} else {
musicOn = true;
menuMus.start(0, 9999);
}
} else if (!Key.isDown(77)) {
m_toggled = false;
}
};
if (musicOn && (beenHere == false)) {
menuMus.start(0, 9999);
}
beenHere = true;
play_btn.onPress = function () {
if (firstTime) {
firstTime = false;
tut_q._visible = true;
tut_yes_btn.enabled = true;
tut_no_btn.enabled = true;
tut_yes_btn._visible = true;
tut_no_btn._visible = true;
play_btn.enabled = false;
instructions_btn.enabled = false;
credits_btn.enabled = false;
highscore_btn.enabled = false;
playmoregames_btn.enabled = false;
} else {
gotoAndStop (9);
}
};
tut_yes_btn.onPress = function () {
gotoAndStop (20);
};
tut_no_btn.onPress = function () {
gotoAndStop (9);
};
play_btn.onRollOver = function () {
play_btn.gotoAndStop(2);
};
play_btn.onRollOut = function () {
play_btn.gotoAndStop(1);
};
instructions_btn.onPress = function () {
gotoAndStop (6);
};
instructions_btn.onRollOver = function () {
instructions_btn.gotoAndStop(2);
};
instructions_btn.onRollOut = function () {
instructions_btn.gotoAndStop(1);
};
credits_btn.onPress = function () {
gotoAndStop (7);
};
credits_btn.onRollOver = function () {
credits_btn.gotoAndStop(2);
};
credits_btn.onRollOut = function () {
credits_btn.gotoAndStop(1);
};
highscore_btn.onPress = function () {
gotoAndStop (15);
};
highscore_btn.onRollOver = function () {
highscore_btn.gotoAndStop(2);
};
highscore_btn.onRollOut = function () {
highscore_btn.gotoAndStop(1);
};
playmoregames_btn.onPress = function () {
getURL ("http://www.newgrounds.com", _blank);
};
playmoregames_btn.onRollOver = function () {
playmoregames_btn.gotoAndStop(2);
};
playmoregames_btn.onRollOut = function () {
playmoregames_btn.gotoAndStop(1);
};
Frame 4
stopAllSounds();
gameovertxt.text = score;
beenHere = false;
var space = false;
var esc = true;
var m_toggled = true;
var gameoverMus = new Sound();
gameoverMus.attachSound("gameoverMusic");
if (musicOn) {
gameoverMus.start(0, 9999);
}
gameover_mc.onEnterFrame = function () {
if (Key.isDown(32) && (space == false)) {
space = true;
_root.gotoAndStop(2);
}
if (Key.isDown(27) && (esc == false)) {
_root.gotoAndStop(3);
stopAllSounds();
} else if (!Key.isDown(27)) {
esc = false;
}
if (Key.isDown(77) && (m_toggled == false)) {
m_toggled = true;
if (musicOn) {
musicOn = false;
stopAllSounds();
} else {
musicOn = true;
gameoverMus.start(0, 9999);
}
} else if (!Key.isDown(77)) {
m_toggled = false;
}
};
submit_btn.onPress = function () {
stopAllSounds();
_root.gotoAndStop(15);
};
Frame 5
Frame 6
var space = false;
var esc = true;
var m_toggled = true;
ins_mc.onEnterFrame = function () {
if (Key.isDown(32) && (space == false)) {
space = true;
_root.gotoAndStop(9);
}
if (Key.isDown(27) && (esc == false)) {
_root.gotoAndStop(3);
} else if (!Key.isDown(27)) {
esc = false;
}
if (Key.isDown(77) && (m_toggled == false)) {
m_toggled = true;
if (musicOn) {
musicOn = false;
stopAllSounds();
} else {
musicOn = true;
menuMus.start(0, 9999);
}
} else if (!Key.isDown(77)) {
m_toggled = false;
}
};
Frame 7
var space = false;
var esc = true;
_root.menu_mc.onEnterFrame = function () {
if (Key.isDown(32) && (space == false)) {
space = true;
_root.gotoAndStop(2);
}
if (Key.isDown(27) && (esc == false)) {
_root.gotoAndStop(3);
} else if (!Key.isDown(27)) {
esc = false;
}
};
Frame 9
stopAllSounds();
var space = true;
var hNum = 1;
var m_toggled = true;
var storyMus = new Sound();
storyMus.attachSound("storyMusic");
if (musicOn) {
storyMus.start(0, 999);
}
story_mc.onEnterFrame = function () {
if (Key.isDown(32) && (space == false)) {
space = true;
_root.gotoAndStop(2);
} else if (!Key.isDown(32)) {
space = false;
}
if (Key.isDown(77) && (m_toggled == false)) {
m_toggled = true;
if (musicOn) {
musicOn = false;
stopAllSounds();
} else {
musicOn = true;
storyMus.start(0, 9999);
}
} else if (!Key.isDown(77)) {
m_toggled = false;
}
};
next_btn.onPress = function () {
hNum++;
if (hNum == 8) {
_root.gotoAndStop(2);
} else {
story_mc.gotoAndStop(hNum);
}
};
Frame 15
var o = {n:[14, 15, 6, 5, 8, 7, 0, 10, 10, 15, 1, 3, 9, 7, 13, 5], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:score});
Frame 16
_root.gotoAndStop(3);
Frame 17
function enableContinue() {
clearInterval(con);
skipad_btn.enabled = true;
cb_overlay._visible = false;
}
skipad_btn.enabled = false;
cb_overlay._alpha = 80;
var con = setInterval(enableContinue, 4000);
skipad_btn.onPress = function () {
_root.gotoAndStop(8);
};
Frame 18
_root.gotoAndStop(8);
Frame 25
gotoAndStop (4);
Symbol 22 MovieClip [moneybag] Frame 1
stop();
Symbol 22 MovieClip [moneybag] Frame 2
stop();
Symbol 28 MovieClip [wall3] Frame 1
stop();
Symbol 28 MovieClip [wall3] Frame 10
stop();
Symbol 39 MovieClip [wall2] Frame 1
stop();
Symbol 39 MovieClip [wall2] Frame 15
stop();
Symbol 48 MovieClip [wall1] Frame 1
stop();
Symbol 48 MovieClip [wall1] Frame 16
stop();
Symbol 49 MovieClip [wallholder] Frame 1
stop();
Symbol 87 MovieClip Frame 20
stop();
Symbol 88 MovieClip [enemy] Frame 1
stop();
Symbol 131 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 160 MovieClip Frame 105
stop();
Symbol 164 MovieClip Frame 44
stop();
Symbol 217 MovieClip Frame 8
_root.callGhost();
_parent.gotoAndStop(3);
Symbol 220 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 221 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 4
stop();
Symbol 222 MovieClip Frame 7
stop();
Symbol 222 MovieClip Frame 8
stop();
Symbol 520 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 521 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 522 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.7 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 "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.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://x.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 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 servicesSync = new mochi.as2.MochiSync();
}
Symbol 523 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 524 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
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 trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, 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 startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
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 525 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("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_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 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 526 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 527 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 256 MovieClip Frame 52
stop();
_parent._visible = false;
Symbol 281 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 376 MovieClip Frame 188
_root.gotoAndStop(3);
Symbol 407 MovieClip Frame 1
stop();
Symbol 423 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 428 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 430 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 1071
_root.gotoAndStop(6);