Frame 1
stop();
Instance of Symbol 114 MovieClip in Frame 1
on (release) {
getURL ("http://www.hiddenninjagames.com", _blank);
}
Frame 2
function security_ok() {
_root.gotoAndStop(2);
}
function security_fail() {
showErrorMessage();
}
stop();
function heroload(who) {
who.gravity = 8;
who.jump = false;
who.hitground = false;
if (_root.gotupscheck) {
who.vely = 25;
} else {
who.vely = 17;
}
who.runspd = 5;
who.spd = 5;
who.xscale = who._xscale;
who.jumpnum = 0;
who.upclicked = false;
who.combonum = 0;
who.combotimer = 0;
who.aclicked = true;
who.ukclicked = false;
who.ucomboa = false;
who.candomove = true;
who.lastkey = null;
who.keydown = false;
who.doinganim = false;
who.falling = false;
who.ablerun = true;
who.gothit = false;
who.cway = 10;
who.count = 0;
who.kumba = who.vely;
jsound = new Sound(this);
who.hitwall = false;
}
function herostuff(who) {
if (who.count < 50) {
who.gotoAndStop("fall");
who.count++;
} else {
who.count = 50;
}
if (who.count >= 50) {
if (who.hitTest(_root.bottom)) {
who._x = 100;
who._y = 200;
_root.youhealth4.health = _root.youhealth4.health - 10;
}
if (_root.ground.hitTest(who._x - (who._width / 4), who._y - 10, true)) {
if (who._xscale < 0) {
who.hitwall = true;
who._x = who._x - (who.runspd * 1.4);
} else {
who.hitwall = false;
}
}
if (_root.ground.hitTest(who._x + (who._width / 4), who._y - 10, true)) {
if (who._xscale > 0) {
who.hitwall = true;
who._x = who._x - (who.runspd * 1.4);
} else {
who.hitwall = false;
}
}
if (!_root.ground.hitTest(who._x, who._y, true)) {
if (!who.jump) {
if (!who.doinganim) {
who.gotoAndStop("fall");
}
who.falling = true;
}
if (who.vely < 8) {
if (who._currentframe != 9) {
if (!who.doinganim) {
who.gotoAndStop("fall");
}
}
who.falling = true;
}
who.hitground = false;
who._y = who._y + who.gravity;
who.gravity = 8;
}
if (_root.ground.hitTest(who._x, who._y, true) && (who.falling)) {
who.gotoAndStop("stand");
who.keydown = false;
who.falling = false;
who.hitground = true;
who.jump = false;
who.gravity = 0;
who.jumpnum = 0;
}
if (Key.isDown(68)) {
who.keydown = true;
who.lastkey = "d";
if (!who.gothit) {
if (!who.jump) {
who.gotoAndStop("block");
}
}
} else if (Key.isDown(83)) {
who.keydown = true;
who.lastkey = "s";
if (!who.jump) {
if (!Key.isDown(68)) {
if (!who.doinganim) {
if (!who.gothit) {
if (Key.isDown(40)) {
who.gotoAndStop("downhit");
} else if (Key.isDown(39) or Key.isDown(37)) {
who.gotoAndStop("hpunch");
} else {
who.gotoAndStop("shoot");
}
}
}
}
}
}
if (Key.isDown(65)) {
who.keydown = true;
who.lastkey = "a";
if (Key.isDown(37)) {
if (who.jump) {
who.runspd = -who.spd;
who._x = who._x + who.runspd;
} else {
who.ablerun = false;
}
} else if (Key.isDown(39)) {
if (who.jump) {
who.runspd = who.spd;
who._x = who._x + who.runspd;
} else {
who.ablerun = false;
}
}
if (!who.jump) {
if (who.aclicked) {
if (!who.doinganim) {
if (!who.gothit) {
if (who.combonum == 0) {
who.gotoAndStop("puncha");
who.aclicked = false;
}
if (who.combonum == 1) {
who.gotoAndStop("punchb");
who.aclicked = false;
}
if (who.combonum == 2) {
who.gotoAndStop("punchc");
who.aclicked = false;
}
}
}
}
}
} else if (Key.isDown(39)) {
who.cway = 15;
who.aclicked = true;
who.keydown = true;
who.lastkey = "right";
who._xscale = who.xscale;
if (who.jump) {
who.runspd = who.spd;
who._x = who._x + who.runspd;
} else if (!who.jump) {
if (!Key.isDown(68)) {
if (!Key.isDown(83)) {
if (who._currentframe != 15) {
if (who.ablerun) {
who.runspd = who.spd;
who._x = who._x + who.runspd;
who.gotoAndStop("run");
}
}
}
}
} else if (Key.isDown(68) and who.jump) {
who.runspd = who.spd;
who._x = who._x + who.runspd;
}
} else if (Key.isDown(37)) {
who.cway = -15;
who.aclicked = true;
who.keydown = true;
who.lastkey = "left";
who._xscale = -who.xscale;
if (who.jump) {
who.runspd = -who.spd;
who._x = who._x + who.runspd;
} else if (!who.jump) {
if (!Key.isDown(68)) {
if (!Key.isDown(83)) {
if (who._currentframe != 15) {
if (who.ablerun) {
who.runspd = -who.spd;
who._x = who._x + who.runspd;
who.gotoAndStop("run");
}
}
}
}
} else if (Key.isDown(68) and who.jump) {
who.runspd = -who.spd;
who._x = who._x + who.runspd;
}
} else {
who.keydown = false;
who.aclicked = true;
who.ablerun = true;
}
if ((who.lastkey == "right") or ((who.lastkey == "left") and (!who.jump))) {
if (who.doinganim == false) {
if (who.keydown == false) {
if (!who.falling) {
if (_root.ground.hitTest(who._x, who._y, true)) {
who.gotoAndStop("stand");
}
}
}
}
}
if (Key.isDown(65)) {
who.keydown = true;
if (who.jump) {
if (who.ukclicked) {
who.gotoAndStop("puncha");
who.ukclicked = false;
}
}
} else {
who.ukclicked = true;
who.keydown = false;
}
i = 1;
while (i <= 3) {
if (who.hitTest(_root["bad" + i])) {
if (who.point) {
if (who._x < _root["bad" + i]._x) {
_root["bad" + i]._x = _root["bad" + i]._x + 8;
} else {
_root["bad" + i]._x = _root["bad" + i]._x - 8;
}
if (_root["bad" + i]._currentframe != 13) {
_root["youhealth" + i].health = _root["youhealth" + i].health - this.damage;
_root.damagegiven = _root.damagegiven + this.damage;
_root["bad" + i].mode == "a";
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
}
}
}
i++;
}
if (Key.isDown(38)) {
who.lastkey = "up";
who.keydown = true;
if (!who.upclicked) {
if (who.jumpnum == 0) {
jsound.attachSound("jumpsound");
jsound.start(0, 1);
who._y = who._y - 10;
who.jump = true;
who.jumpnum = 1;
who.gotoAndStop("jump");
who.upclicked = true;
} else if (who.jumpnum == 1) {
if (!Key.isDown(65)) {
who.gotoAndStop("jumpb");
who.jump = true;
who.vely = 15;
who.jumpnum = 2;
who.upclicked = true;
}
}
}
} else {
who.upclicked = false;
who.keydown = false;
}
if (who.jump) {
if (who.vely >= -3) {
who.vely = who.vely - 0.4;
who._y = who._y - who.vely;
}
} else if (!who.jump) {
if (_root.gotupscheck) {
who.vely = 25;
} else {
who.vely = who.kumba;
}
}
}
}
function badload(who) {
who.gravity = 8;
who.jump = false;
who.hitground = false;
who.vely = 18;
who.runspd = 4;
who.spd = 4;
who.xscale = who._xscale;
who.jumpnum = 0;
who.upclicked = false;
who.combonum = 0;
who.combotimer = 0;
who.aclicked = true;
who.ukclicked = false;
who.ucomboa = false;
who.candomove = true;
who.lastkey = null;
who.keydown = false;
who.doinganim = false;
who.falling = false;
who.ablerun = true;
who.rdnum = 0;
who.rdcounter = 0;
who.mode = "a";
who.bor = 0;
who.borcounter = 0;
who.rdattack = 0;
who.danum = 0;
who.dacounter = 0;
who.point = false;
who.inital = true;
who.setthing = 50;
who.cway = 10;
who.targ = _root.char;
who.hhurt = 1;
who.count = 0;
who.shake = false;
who.shaket = 0;
who.campos = 0;
who.dead = false;
who.kumba = who.vely;
}
function badstuff(who) {
if (who.count < 50) {
who.gotoAndStop("fall");
who.count++;
} else {
who.count = 50;
}
if (who.count >= 50) {
if (!who.dead) {
if (who.hitTest(_root.bottom)) {
trace("d");
who._x = 100;
who._y = 200;
}
if (who.shake) {
who.shaket++;
if ((who.shaket <= 5) and (who.shaket > 0)) {
_root.cam._x = _root.cam._x + ((Math.random() * 4) - 2);
_root.cam._y = _root.cam._y + ((Math.random() * 4) - 2);
} else {
who.shaket = 0;
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
_root.cam._x = _root.char._x;
} else {
_root.cam._x = who.campos;
}
who.shake = false;
}
}
if (_root.side.hitTest(who._x, who._y, true)) {
who.targ = _root.youhealth1;
who.mode = "d";
}
if (_root.ground.side == 1) {
if (_root.ground.hitTest(who._x - (who._width / 2), who._y - 10, true)) {
who.jump = true;
who.mode = "f";
}
} else if (_root.ground.side == 2) {
if (_root.ground.hitTest(who._x + (who._width / 2), who._y - 10, true)) {
who.jump = true;
who.mode = "f";
}
}
if (who.mode == "f") {
if (who.hitTest(who.targ)) {
who.mode = "a";
}
}
if (who.dacounter < who.setthing) {
who.dacounter++;
} else {
who.danum = Math.random() * 10;
who.dacounter = 0;
}
if (who.danum <= 2) {
if (_root.typea != null) {
if (who != _root.bad1) {
who.targ = _root.bad1;
who.hhurt = 1;
}
}
}
if ((who.danum <= 4) and (who.danum > 2)) {
if (_root.typeb != null) {
if (who != _root.bad2) {
who.targ = _root.bad2;
who.hhurt = 2;
}
}
}
if ((who.danum <= 6) and (who.danum > 4)) {
if (_root.typec != null) {
if (who != _root.bad3) {
who.targ = _root.bad3;
who.hhurt = 3;
}
}
}
if (who.danum > 6) {
who.targ = _root.char;
who.hhurt = 4;
}
if (who.danum <= 8) {
who.mode = "a";
who.inital = true;
} else {
who.mode = "d";
}
if (!_root.ground.hitTest(who._x, who._y, true)) {
if (!who.jump) {
who.gotoAndStop("fall");
who.falling = true;
}
if (who.vely < 8) {
if (who._currentframe != 9) {
who.gotoAndStop("fall");
who.falling = true;
}
} else if (who.vely >= 8) {
who.gotoAndStop("jump");
}
who.hitground = false;
who._y = who._y + who.gravity;
who.gravity = 8;
}
if (_root.ground.hitTest(who._x, who._y, true) && (who.falling)) {
who.gotoAndStop("stand");
who.falling = false;
who.hitground = true;
who.jump = false;
who.gravity = 0;
who.jumpnum = 0;
}
if (who.mode == "a") {
if (who._x < who.targ._x) {
if (who.hitTest(who.targ)) {
who.setthing = 90;
who._xscale = who.xscale;
if (who.point) {
if (who.targ._currentframe != 13) {
_root["youhealth" + who.hhurt].health = _root["youhealth" + who.hhurt].health - ((this.damage * 2) * _root.difficulty);
who.targ.gotoAndStop("hit");
who.campos = _root.cam._x;
who.shake = true;
}
if (!who.targ.hitTest(_root.map.block)) {
who.targ._x = who.targ._x + 8;
}
}
if (!who.doinganim) {
who.rdattack = Math.round(Math.random() * 6);
if (who.rdattack == 0) {
who.gotoAndStop("puncha");
} else if (who.rdattack == 1) {
who.gotoAndStop("punchb");
} else if (who.rdattack == 2) {
who.gotoAndStop("punchc");
} else if (who.rdattack == 3) {
who.gotoAndStop("hpunch");
} else if (who.rdattack == 4) {
who.gotoAndStop("downhit");
} else if (who.rdattack == 5) {
who.gotoAndStop("block");
} else if (who.rdattack == 6) {
who.gotoAndStop("puncha");
}
}
} else if (!who.doinganim) {
who.cway = 15;
who.setthing = 40;
who._xscale = who.xscale;
who.runspd = who.spd;
who._x = who._x + who.runspd;
if (!who.jump) {
if (this._currentframe != 15) {
who.gotoAndStop("run");
}
}
}
} else if (who._x >= (who.targ._x + 4)) {
if (who.hitTest(who.targ)) {
who.setthing = 90;
who._xscale = -who.xscale;
if (who.point == true) {
if (who.targ._currentframe != 13) {
_root["youhealth" + who.hhurt].health = _root["youhealth" + who.hhurt].health - ((this.damage * 2) * _root.difficulty);
who.targ.gotoAndStop("hit");
who.shake = true;
who.campos = _root.cam._x;
}
if (!who.targ.hitTest(_root.map.block)) {
who.targ._x = who.targ._x - 8;
}
}
if (!who.doinganim) {
who.rdattack = Math.round(Math.random() * 6);
if (rwho.dattack == 0) {
who.gotoAndStop("puncha");
} else if (who.rdattack == 1) {
who.gotoAndStop("punchb");
} else if (who.rdattack == 2) {
who.gotoAndStop("punchc");
} else if (who.rdattack == 3) {
who.gotoAndStop("hpunch");
} else if (who.rdattack == 4) {
who.gotoAndStop("downhit");
} else if (who.rdattack == 5) {
who.gotoAndStop("block");
} else if (who.rdattack == 6) {
who.gotoAndStop("puncha");
}
}
} else if (!who.doinganim) {
who.setthing = 40;
who.cway = -15;
who._xscale = -who.xscale;
who.runspd = -who.spd;
who._x = who._x + who.runspd;
if (!who.jump) {
if (this._currentframe != 15) {
who.gotoAndStop("run");
}
}
}
}
}
if (who.mode == "d") {
if (who.inital) {
if (Math.round(Math.random() * 4) == 3) {
who.jump = true;
}
who.inital = false;
}
if (who.targ.hitTest(who)) {
who.bor = Math.random() * 10;
if (who.bor >= 5) {
who.mode = "a";
} else if (who.bor < 5) {
if (who.targ._x < (Stage.width / 2)) {
who.rdnum = 50;
} else {
who.rdnum = 20;
}
}
}
if (who.rdcounter < 40) {
who.rdcounter++;
} else {
who.rdnum = Math.random() * 60;
who.rdcounter = 0;
}
if ((who._x > 20) and (who._x < (Stage.width - 20))) {
if (who.rdnum <= 30) {
who.runspd = -who.spd;
} else if ((who.rdnum <= 60) and (who.rdnum > 30)) {
who.runspd = who.spd;
}
if (who.runspd < 0) {
who._xscale = -who.xscale;
} else {
who._xscale = who.xscale;
}
if (who.rdnum <= 60) {
if (this._currentframe != 15) {
who._x = who._x + who.runspd;
if (!who.jump) {
who.gotoAndStop("run");
}
}
}
} else if (who._xscale < 0) {
who.rdnum = 40;
who._x = who._x + 5;
} else if (who._xscale > 0) {
who.rdnum = 20;
who._x = who._x - 5;
}
}
if (who.jump) {
if (who.vely >= -3) {
who.vely = who.vely - 0.4;
who._y = who._y - who.vely;
}
} else if (!who.jump) {
who.vely = who.kumba;
}
}
} else {
who.gotoAndStop("dead");
}
}
var portalpoints = 0;
var gotups = false;
var giant = false;
var god = false;
gotupscheck = false;
giantcheck = false;
godcheck = false;
var damagegiven = 0;
var difficulty = 0.5;
_root.mute = false;
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);
}
MochiAd.showPreGameAd({id:"ad31a603e917bd39", res:"600x400", background:16777161, color:197121, outline:16711680, no_bg:true});
__com_mochibot__("8a2f9d7d", this, 10301, true);
Frame 3
var home = true;
stop();
_root.slevel = 1;
_root.levelselect = 0;
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 4
stopAllSounds();
var home = false;
stop();
_root.badamt = 3;
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 5
stop();
_root.badamt = 1;
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 6
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
stopAllSounds();
BGM = new Sound(this);
if (Math.round(Math.random() * 10) >= 4) {
BGM.attachSound("chaoz");
BGM.start(0, 99);
} else {
BGM.attachSound("menusong");
BGM.start(0, 99);
}
Frame 7
stop();
stopAllSounds();
BGM = new Sound(this);
if (Math.round(Math.random() * 10) >= 4) {
BGM.attachSound("chaoz");
BGM.start(0, 99);
} else {
BGM.attachSound("menusong");
BGM.start(0, 99);
}
_root.whovswho.you.gotoAndStop(_root.charnum);
_root.whovswho.him.gotoAndStop(_root.slevel);
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 8
function removeunneeded(who) {
who.swapDepths(_root.getNextHighestDepth());
who.removeMovieClip();
}
function removehealth(waka) {
waka.swapDepths(getNextHighestDepth());
waka.removeMovieClip();
}
function setframe(num, wakaa) {
wakaa.gotoAndStop(num);
}
function chooseframe(shoe, sock) {
if (_root.mode == "story") {
if (_root.slevel == shoe) {
_root.map.gotoAndStop(sock);
_root.ground.gotoAndStop(sock);
}
}
}
stop();
PO = new Sound(this);
_root.pacman._visible = false;
var blah = new Array();
var no_po_onstage = true;
var pocounter = 0;
var pocounterb = 0;
var pman = false;
_root.map.gotoAndStop(_root.levelselect);
_root.ground.gotoAndStop(_root.levelselect);
if (_root.typea != null) {
typea.duplicateMovieClip("bad1", 40);
_root.bad1._x = 100;
_root.bad1._y = 200;
setframe(2, _root.youhealth1);
} else {
removehealth(_root.youhealth1);
}
if (_root.typeb != null) {
typeb.duplicateMovieClip("bad2", 41);
_root.bad2._x = -8;
_root.bad2._y = 200;
setframe(3, _root.youhealth2);
} else {
removehealth(_root.youhealth2);
}
if (_root.typec != null) {
typec.duplicateMovieClip("bad3", 42);
_root.bad3._x = 526;
_root.bad3._y = 200;
setframe(4, _root.youhealth3);
} else {
removehealth(_root.youhealth3);
}
typed.duplicateMovieClip("char", 43);
char._x = 420;
char._y = 200;
if (_root.mode == "versus") {
if (_root.giantcheck) {
_root.char._height = _root.char._height * 2;
_root.char._width = _root.char._width * 2;
}
if (_root.godcheck) {
_root.youhealth4.health = 10000;
}
}
var myGlowFilter = (new flash.filters.GlowFilter(FFFFFF, 20, 1.3, 1.3, 30, 3, false, false));
_root.char.filters = [myGlowFilter];
_root.bad1.filters = [myGlowFilter];
_root.bad2.filters = [myGlowFilter];
_root.bad3.filters = [myGlowFilter];
removeunneeded(_root.ninja);
removeunneeded(_root.knight);
removeunneeded(_root.mindjolt);
removeunneeded(_root.monkey);
removeunneeded(_root.tank);
removeunneeded(_root.ant);
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
if (no_po_onstage) {
pocounter++;
}
if (pocounter >= 200) {
_root.map.powerup.gotoAndStop(Math.ceil((Math.random() * 4) + 1));
no_po_onstage = false;
pocounter = 0;
}
a = 1;
while (a <= 3) {
if (_root["bad" + a].hitTest(_root.map.powerup.pacman)) {
PO.attachSound("powerup");
PO.start(0, 1);
_root.pacman._visible = true;
_root.pacman._x = _root.pacman._x - 20;
blah[0] = _root["bad" + a];
pman = true;
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(1);
_root.text.play();
}
if (_root.char.hitTest(_root.map.powerup.pacman)) {
PO.attachSound("powerup");
PO.start(0, 1);
_root.pacman._visible = true;
_root.pacman._x = _root.pacman._x - 20;
blah[0] = _root.char;
pman = true;
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(1);
_root.text.play();
}
if (_root["bad" + a].hitTest(_root.map.powerup.arrow)) {
PO.attachSound("powerup");
PO.start(0, 1);
_root["bad" + a].kumba = 20;
_root["bad" + a].vely = 20;
_root.pman = false;
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(2);
_root.text.play();
}
if (_root.char.hitTest(_root.map.powerup.arrow)) {
PO.attachSound("powerup");
PO.start(0, 1);
_root.char.kumba = 20;
_root.char.vely = 20;
_root.pman = false;
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(2);
_root.text.play();
}
if (_root["bad" + a].hitTest(_root.map.powerup.cross)) {
PO.attachSound("powerup");
PO.start(0, 1);
blah[0] = _root["bad" + a];
_root["bad" + a].damage = _root["bad" + a].damage * 1.5;
_root.pman = false;
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(3);
_root.text.play();
}
if (_root.char.hitTest(_root.map.powerup.cross)) {
PO.attachSound("powerup");
PO.start(0, 1);
blah[0] = _root.char;
_root.char.damage = _root.char.damage * 1.5;
_root.pman = false;
pocounterb = 1000;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(3);
_root.text.play();
}
if (_root["bad" + a].hitTest(_root.map.powerup.sludge)) {
PO.attachSound("powerup");
PO.start(0, 1);
blah[0] = _root["bad" + a];
if (_root["bad" + a] != this) {
_root["bad" + a].runspd = 2;
_root["bad" + a].spd = 2;
_root.char.runspd = 2;
_root.char.spd = 2;
myColor = new Color(_root.char);
myColor.setTint(255, 0, 0, 50);
}
pocounterb = 300;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(4);
_root.text.play();
}
if (_root.char.hitTest(_root.map.powerup.sludge)) {
PO.attachSound("powerup");
PO.start(0, 1);
blah[0] = _root.char;
_root["bad" + a].runspd = 2;
_root["bad" + a].spd = 2;
myColor = new Color(_root["bad" + a]);
myColor.setTint(255, 0, 0, 50);
pocounterb = 1000;
_root.map.powerup.gotoAndPlay(9);
_root.text.thing.gotoAndStop(4);
_root.text.play();
}
if (pocounterb != 0) {
if ((_root.pman = true)) {
_root.pacman._x = _root.pacman._x - 5;
if (_root.pacman._visible) {
if (_root.pacman.hitTest(_root["bad" + a]) or _root.pacman.hitTest(_root.char)) {
if (blah[0] != _root.char) {
_root.char.gotoAndStop("hit");
}
if (blah[0] != _root["bad" + a]) {
_root["bad" + a].gotoAndStop("hit");
}
}
}
}
pocounterb--;
if (pocounterb == 1) {
_root["bad" + a].kumba = 17;
_root.char.kumba = 17;
blah[0].damage = blah[0].damage / 1.5;
_root.pman = false;
_root.pacman._x = 700;
_root.pacman._visible = false;
no_po_onstage = true;
_root["bad" + a].runspd = 4;
_root["bad" + a].spd = 4;
_root.char.runspd = 5;
_root.char.spd = 5;
delete myColor;
}
}
a++;
}
if (_root.mode == "versus") {
if (_root.badamt == 0) {
_root.gotoAndStop("win");
}
}
};
chooseframe(1, "armorgames");
chooseframe(2, "mindjolt");
chooseframe(3, "crazymonkeygames");
chooseframe(4, "hiddenninjagames");
chooseframe(5, "kongregate");
chooseframe(6, "newgrounds");
Instance of Symbol 728 MovieClip "cam" in Frame 8
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x;
}
var xdiff = (_root.char._x - _root.bad._x);
var ydiff = (_root.char._y - _root.bad._y);
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
if (dist >= 140) {
if (this._width < 600) {
this._width = this._width + 6;
} else {
this._height = 600;
}
if (this._height < 400) {
this._height = this._height + 4;
} else {
this._height = 400;
}
}
if (dist < 140) {
if (this._width > 529.6) {
this._width = this._width - 6;
}
if (this._height > 353.1) {
this._height = this._height - 4;
}
}
}
Instance of Symbol 736 MovieClip "youhealth1" in Frame 8
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x + 230;
}
}
Instance of Symbol 736 MovieClip "youhealth2" in Frame 8
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x + 80;
}
}
Instance of Symbol 736 MovieClip "youhealth3" in Frame 8
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x - 70;
}
}
Instance of Symbol 736 MovieClip "youhealth4" in Frame 8
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x - 220;
}
}
Instance of Symbol 202 MovieClip "ninja" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 267 MovieClip "mindjolt" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 326 MovieClip "monkey" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 393 MovieClip "knight" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 486 MovieClip "tank" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 103 MovieClip "ant" in Frame 8
onClipEvent (load) {
if (this == _root.char) {
_root.heroload(this);
} else {
_root.badload(this);
}
}
onClipEvent (enterFrame) {
if (this == _root.char) {
_root.herostuff(this);
} else {
_root.badstuff(this);
}
}
Instance of Symbol 743 MovieClip "ready" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
Frame 9
stop();
if (_root.mode == "story") {
_root.slevel = _root.slevel + 1;
}
i = 1;
while (i <= 4) {
_root["bad" + i].removeMovieClip();
i++;
}
_root.char.removeMovieClip();
if (_root.slevel == 7) {
_root.gotoAndStop("storywin");
}
_root.healthleft = _root.hl;
_root.dmggiven = _root.damagegiven;
_root.damagegiven = 0;
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 10
stop();
i = 1;
while (i <= 4) {
_root["bad" + i].removeMovieClip();
i++;
}
_root.char.removeMovieClip();
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 11
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Instance of Symbol 728 MovieClip "cam" in Frame 11
onClipEvent (enterFrame) {
if ((_root.char._x > 180) and (_root.char._x <= 420)) {
this._x = _root.char._x;
}
var xdiff = (_root.char._x - _root.bad._x);
var ydiff = (_root.char._y - _root.bad._y);
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
if (dist >= 140) {
if (this._width < 600) {
this._width = this._width + 6;
} else {
this._height = 600;
}
if (this._height < 400) {
this._height = this._height + 4;
} else {
this._height = 400;
}
}
if (dist < 140) {
if (this._width > 529.6) {
this._width = this._width - 6;
}
if (this._height > 353.1) {
this._height = this._height - 4;
}
}
}
Instance of Symbol 202 MovieClip "char" in Frame 11
onClipEvent (load) {
_root.heroload(this);
}
onClipEvent (enterFrame) {
_root.herostuff(this);
}
Frame 12
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 13
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
Frame 14
function muaha(one, two) {
if (_root.difficulty == one) {
_root.thing._y = two;
}
}
_root.portalpoints = _root.portalpoints + 1;
_root.onEnterFrame = function () {
if (_root.mute) {
stopAllSounds();
}
};
muaha(0.5, 175);
muaha(1, 200);
muaha(2, 230);
Instance of Symbol 856 MovieClip in Frame 14
onClipEvent (load) {
if (!_root.mute) {
this.gotoAndStop(1);
}
if (_root.mute) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.mute = true;
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
_root.mute = false;
}
};
}
Symbol 35 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.ablerun = true;
this._parent.gothit = false;
this._parent.aclicked = false;
Symbol 36 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 3
stop();
Symbol 53 MovieClip Frame 9
stop();
Symbol 60 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 60 MovieClip Frame 4
this._parent.point = true;
this._parent._parent.damage = 2;
Symbol 60 MovieClip Frame 5
this._parent.point = false;
Symbol 60 MovieClip Frame 12
this._parent.doinganim = false;
this._parent.combonum = 1;
Symbol 60 MovieClip Frame 14
this._parent.gotoAndStop("agstand");
Symbol 63 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 63 MovieClip Frame 8
this._parent.doinganim = true;
this._parent.point = false;
Symbol 63 MovieClip Frame 9
this._parent.point = true;
this._parent._parent.damage = 2;
Symbol 63 MovieClip Frame 11
this._parent.point = false;
Symbol 63 MovieClip Frame 15
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 63 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 67 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 67 MovieClip Frame 5
this._parent.point = true;
this._parent._parent.damage = 3;
Symbol 67 MovieClip Frame 6
this._parent.point = false;
Symbol 67 MovieClip Frame 15
this._parent.doinganim = false;
this._parent.combonum = 0;
this._parent.gotoAndStop("agstand");
Symbol 68 MovieClip Frame 1
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 68 MovieClip Frame 21
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 73 MovieClip Frame 1
this._parent.point = false;
Symbol 73 MovieClip Frame 3
this._parent.point = true;
Symbol 73 MovieClip Frame 4
this._parent.point = false;
Symbol 73 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 75 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 75 MovieClip Frame 16
var gg = _root.attachMovie("acid", "acid" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 40;
if (_root.char._xscale > 0) {
gg.spd = 40;
gg._xscale = 100;
} else {
gg.spd = -40;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._x = this._x + this.spd;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
this._parent.doinganim = false;
Symbol 75 MovieClip Frame 23
this._parent.gotoAndStop("agstand");
Symbol 82 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 82 MovieClip Frame 3
this._parent.point = true;
this._parent._parent.damage = 0.5;
Symbol 82 MovieClip Frame 7
this._parent.point = false;
Symbol 82 MovieClip Frame 10
this._parent.doinganim = false;
Symbol 82 MovieClip Frame 12
this._parent.gotoAndStop("agstand");
Symbol 83 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 83 MovieClip Frame 15
this._parent.doinganim = false;
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 83 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 92 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 92 MovieClip Frame 5
this._parent.point = true;
this._parent._parent.damage = 0.5;
Symbol 92 MovieClip Frame 9
this._parent.point = false;
Symbol 92 MovieClip Frame 12
this._parent.doinganim = false;
this._parent.gotoAndStop("agstand");
Symbol 100 MovieClip Frame 8
stop();
Symbol 101 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 101 MovieClip Frame 11
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 101 MovieClip Frame 12
this._parent.gotoAndStop("stand");
Symbol 102 MovieClip Frame 17
stop();
this._parent.removeMovieClip();
Symbol 103 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 135
_root.nextFrame();
Symbol 859 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {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, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = 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 _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {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, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
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 _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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;
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) {
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 _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
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);
}
}
Symbol 125 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.ablerun = true;
this._parent.gothit = false;
this._parent.aclicked = false;
Symbol 126 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 127 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 138 MovieClip Frame 11
stop();
Symbol 143 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 143 MovieClip Frame 5
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 143 MovieClip Frame 9
this._parent.point = false;
Symbol 143 MovieClip Frame 15
this._parent.doinganim = false;
this._parent.combonum = 1;
Symbol 143 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 158 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 158 MovieClip Frame 2
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 158 MovieClip Frame 3
this._parent.point = true;
Symbol 158 MovieClip Frame 4
this._parent.point = false;
Symbol 158 MovieClip Frame 6
this._parent.point = false;
Symbol 158 MovieClip Frame 18
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 158 MovieClip Frame 20
this._parent.point = false;
Symbol 158 MovieClip Frame 24
this._parent.doinganim = false;
this._parent.combonum = 0;
Symbol 158 MovieClip Frame 26
this._parent.gotoAndStop("agstand");
Symbol 163 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 163 MovieClip Frame 9
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 163 MovieClip Frame 11
this._parent.point = false;
Symbol 163 MovieClip Frame 14
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 163 MovieClip Frame 15
this._parent.point = false;
Symbol 163 MovieClip Frame 18
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 163 MovieClip Frame 20
this._parent.gotoAndStop("agstand");
Symbol 164 MovieClip Frame 1
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 164 MovieClip Frame 21
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 166 MovieClip Frame 1
this._parent.point = false;
Symbol 166 MovieClip Frame 3
this._parent.point = true;
Symbol 166 MovieClip Frame 4
this._parent.point = false;
Symbol 166 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 167 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 167 MovieClip Frame 16
var gg = _root.attachMovie("starz", "starz" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 25;
if (_root.char._xscale > 0) {
gg.spd = 30;
gg._xscale = 100;
} else {
gg.spd = -40;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._x = this._x + this.spd;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
this._parent.doinganim = false;
Symbol 167 MovieClip Frame 30
this._parent.gotoAndStop("agstand");
Symbol 183 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 183 MovieClip Frame 11
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 183 MovieClip Frame 14
this._parent.point = false;
Symbol 183 MovieClip Frame 20
this._parent.doinganim = false;
Symbol 183 MovieClip Frame 22
this._parent.gotoAndStop("agstand");
Symbol 184 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 184 MovieClip Frame 15
this._parent.doinganim = false;
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 184 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 193 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 193 MovieClip Frame 9
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 193 MovieClip Frame 14
this._parent.point = false;
Symbol 193 MovieClip Frame 29
this._parent.doinganim = false;
Symbol 193 MovieClip Frame 30
this._parent.gotoAndStop("agstand");
Symbol 200 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 200 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 200 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 201 MovieClip Frame 1
_root.doinganim = true;
Symbol 201 MovieClip Frame 17
this._parent.removeMovieClip();
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.ablerun = true;
this._parent.gothit = false;
this._parent.aclicked = false;
Symbol 211 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 212 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 9
stop();
Symbol 229 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 229 MovieClip Frame 4
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 229 MovieClip Frame 5
this._parent.point = false;
Symbol 229 MovieClip Frame 12
this._parent.doinganim = false;
this._parent.combonum = 1;
Symbol 229 MovieClip Frame 14
this._parent.gotoAndStop("agstand");
Symbol 236 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 236 MovieClip Frame 2
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 236 MovieClip Frame 3
this._parent.point = false;
Symbol 236 MovieClip Frame 10
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 236 MovieClip Frame 11
this._parent.point = false;
Symbol 236 MovieClip Frame 17
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 236 MovieClip Frame 19
this._parent.gotoAndStop("agstand");
Symbol 240 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 240 MovieClip Frame 5
this._parent._parent.damage = 3;
this._parent.point = true;
Symbol 240 MovieClip Frame 6
this._parent.point = false;
Symbol 240 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.combonum = 0;
Symbol 240 MovieClip Frame 15
this._parent.gotoAndStop("agstand");
Symbol 241 MovieClip Frame 1
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 241 MovieClip Frame 21
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 243 MovieClip Frame 1
this._parent.point = false;
Symbol 243 MovieClip Frame 3
this._parent.point = true;
Symbol 243 MovieClip Frame 4
this._parent.point = false;
Symbol 243 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 247 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 247 MovieClip Frame 16
var gg = _root.attachMovie("bolt", "bolt" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 10;
if (_root.char._xscale > 0) {
gg.spd = 30;
gg._xscale = 100;
} else {
gg.spd = -30;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._x = this._x + this.spd;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
this._parent.doinganim = false;
Symbol 247 MovieClip Frame 24
this._parent.gotoAndStop("agstand");
Symbol 254 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 254 MovieClip Frame 3
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 254 MovieClip Frame 7
this._parent.point = false;
Symbol 254 MovieClip Frame 10
this._parent.doinganim = false;
Symbol 254 MovieClip Frame 12
this._parent.gotoAndStop("agstand");
Symbol 255 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 255 MovieClip Frame 15
this._parent.doinganim = false;
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 255 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 264 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 264 MovieClip Frame 24
this._parent._parent.damage = 3;
this._parent.point = true;
Symbol 264 MovieClip Frame 25
this._parent.point = false;
Symbol 264 MovieClip Frame 32
this._parent.doinganim = false;
Symbol 264 MovieClip Frame 33
this._parent.gotoAndStop("agstand");
Symbol 265 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 265 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 265 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 266 MovieClip Frame 16
stop();
this._parent.removeMovieClip();
Symbol 267 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.ablerun = true;
this._parent.gothit = false;
this._parent.aclicked = false;
Symbol 279 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 280 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 5
stop();
Symbol 288 MovieClip Frame 13
stop();
Symbol 292 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 292 MovieClip Frame 6
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 292 MovieClip Frame 7
this._parent.point = false;
Symbol 292 MovieClip Frame 14
this._parent.doinganim = false;
this._parent.combonum = 1;
Symbol 292 MovieClip Frame 15
this._parent.gotoAndStop("agstand");
Symbol 297 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 297 MovieClip Frame 7
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 297 MovieClip Frame 8
this._parent.point = false;
Symbol 297 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 297 MovieClip Frame 14
this._parent.gotoAndStop("agstand");
Symbol 308 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 308 MovieClip Frame 3
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 308 MovieClip Frame 4
this._parent.point = false;
Symbol 308 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.combonum = 0;
Symbol 308 MovieClip Frame 15
this._parent.gotoAndStop("agstand");
Symbol 309 MovieClip Frame 3
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 309 MovieClip Frame 18
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 312 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 312 MovieClip Frame 26
var gg = _root.attachMovie("banana", "banana" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 30;
if (_root.char._xscale > 0) {
gg.spd = 20;
gg._xscale = 100;
} else {
gg.spd = -40;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._rotation = this._rotation + 20;
this._x = this._x + this.spd;
this._y = this._y + 1;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
Symbol 312 MovieClip Frame 39
this._parent.doinganim = false;
Symbol 312 MovieClip Frame 40
this._parent.gotoAndStop("agstand");
Symbol 313 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 313 MovieClip Frame 4
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 313 MovieClip Frame 5
this._parent.point = false;
Symbol 313 MovieClip Frame 17
this._parent.doinganim = false;
Symbol 313 MovieClip Frame 18
this._parent.gotoAndStop("agstand");
Symbol 314 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 314 MovieClip Frame 18
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 314 MovieClip Frame 21
this._parent.gotoAndStop("agstand");
Symbol 323 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 323 MovieClip Frame 10
this._parent._parent.damage = 5;
this._parent.point = true;
Symbol 323 MovieClip Frame 11
this._parent.point = false;
Symbol 323 MovieClip Frame 18
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 323 MovieClip Frame 20
this._parent.gotoAndStop("agstand");
Symbol 324 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 324 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 324 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 325 MovieClip Frame 17
stop();
this._parent.removeMovieClip();
Symbol 326 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.ablerun = true;
this._parent.gothit = false;
this._parent.aclicked = false;
Symbol 335 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 336 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 4
stop();
Symbol 343 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 343 MovieClip Frame 7
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 343 MovieClip Frame 8
this._parent.point = false;
Symbol 343 MovieClip Frame 12
this._parent.doinganim = false;
this._parent.combonum = 1;
this._parent.gotoAndStop("agstand");
Symbol 346 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 346 MovieClip Frame 7
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 346 MovieClip Frame 8
this._parent.point = false;
Symbol 346 MovieClip Frame 11
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 346 MovieClip Frame 13
this._parent.gotoAndStop("agstand");
Symbol 353 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 353 MovieClip Frame 6
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 353 MovieClip Frame 7
this._parent.point = false;
Symbol 353 MovieClip Frame 11
this._parent.doinganim = false;
this._parent.combonum = 0;
Symbol 353 MovieClip Frame 13
this._parent.gotoAndStop("agstand");
Symbol 354 MovieClip Frame 1
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 354 MovieClip Frame 21
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 358 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = true;
Symbol 358 MovieClip Frame 3
this._parent.point = true;
Symbol 358 MovieClip Frame 4
this._parent.point = false;
Symbol 358 MovieClip Frame 7
this._parent.doinganim = false;
Symbol 358 MovieClip Frame 8
this._parent.gotoAndStop("stand");
Symbol 360 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 360 MovieClip Frame 6
var gg = _root.attachMovie("beam", "beam" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 30;
if (_root.char._xscale > 0) {
gg.spd = 30;
gg._xscale = 100;
} else {
gg.spd = -30;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._x = this._x + this.spd;
this._y = this._y + 1;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
Symbol 360 MovieClip Frame 23
this._parent.doinganim = false;
if (Key.isDown(83)) {
gotoAndPlay (5);
}
Symbol 360 MovieClip Frame 24
this._parent.gotoAndStop("agstand");
Symbol 367 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
this._parent.point = false;
Symbol 367 MovieClip Frame 6
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 367 MovieClip Frame 10
this._parent.point = false;
Symbol 367 MovieClip Frame 23
this._parent.doinganim = false;
Symbol 367 MovieClip Frame 25
this._parent.gotoAndStop("agstand");
Symbol 375 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 375 MovieClip Frame 20
this._parent.doinganim = false;
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 375 MovieClip Frame 22
this._parent.gotoAndStop("agstand");
Symbol 390 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 390 MovieClip Frame 19
this._parent._parent.damage = 4;
this._parent.point = true;
Symbol 390 MovieClip Frame 20
this._parent.point = false;
Symbol 390 MovieClip Frame 32
this._parent.doinganim = false;
Symbol 390 MovieClip Frame 34
this._parent.gotoAndStop("agstand");
Symbol 391 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 391 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 391 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 392 MovieClip Frame 9
stop();
this._parent.removeMovieClip();
Symbol 393 MovieClip Frame 1
stop();
this._parent.hitted = false;
Symbol 393 MovieClip Frame 15
stop();
this._parent.hitted = true;
Symbol 393 MovieClip Frame 16
stop();
this._parent.hitted = false;
Symbol 399 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = false;
this._parent.jump = false;
this._parent.gothit = false;
Symbol 402 MovieClip Frame 1
this._parent.doinganim = false;
this._parent.point = false;
Symbol 415 MovieClip Frame 12
stop();
this.removeMovieClip();
Symbol 416 MovieClip Frame 15
stop();
Symbol 432 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 432 MovieClip Frame 4
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 432 MovieClip Frame 9
this._parent._parent.damage = 0.5;
this._parent.point = false;
Symbol 432 MovieClip Frame 13
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 432 MovieClip Frame 16
this._parent._parent.damage = 0.5;
this._parent.point = false;
Symbol 432 MovieClip Frame 19
this._parent._parent.damage = 0.5;
this._parent.point = true;
Symbol 432 MovieClip Frame 20
this._parent.point = false;
Symbol 432 MovieClip Frame 21
this._parent.doinganim = false;
this._parent.combonum = 2;
Symbol 432 MovieClip Frame 27
this._parent.gotoAndStop("agstand");
Symbol 442 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 442 MovieClip Frame 6
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 442 MovieClip Frame 7
this._parent.point = false;
Symbol 442 MovieClip Frame 12
this._parent.point = true;
Symbol 442 MovieClip Frame 13
this._parent.point = false;
Symbol 442 MovieClip Frame 15
this._parent.doinganim = false;
this._parent.combonum = 1;
Symbol 442 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 458 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 458 MovieClip Frame 9
this._parent._parent.damage = 2;
this._parent.point = true;
Symbol 458 MovieClip Frame 10
this._parent.point = false;
Symbol 458 MovieClip Frame 14
this._parent.doinganim = false;
this._parent.combonum = 0;
Symbol 458 MovieClip Frame 16
this._parent.gotoAndStop("agstand");
Symbol 459 MovieClip Frame 1
this._parent.combonum = 0;
this._parent.doinganim = false;
if (!_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
this.parent.gotoAndStop("fall");
}
Symbol 459 MovieClip Frame 13
this._parent.gotoAndStop("stand");
this._parent.doinganim = false;
Symbol 460 MovieClip Frame 1
this._parent.point = false;
this._parent.doinganim = true;
Symbol 460 MovieClip Frame 3
this._parent.point = true;
Symbol 460 MovieClip Frame 4
this._parent.point = false;
Symbol 460 MovieClip Frame 13
this._parent.doinganim = false;
Symbol 460 MovieClip Frame 15
this._parent.gotoAndStop("stand");
Symbol 462 MovieClip Frame 1
this._parent.doinganim = true;
var gg = _root.attachMovie("bomb", "bomb" + getNextHighestDepth(), getNextHighestDepth());
gg._x = _root.char._x;
gg._y = (_root.char._y - _root.char._height) + 10;
if (_root.char._xscale > 0) {
gg.spd = 40;
gg._xscale = 100;
} else {
gg.spd = -40;
gg._xscale = -100;
}
gg.onEnterFrame = function () {
this._x = this._x + this.spd;
this._y = this._y + 1;
if (this._x > _root.Stage.width) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= 3) {
if (this.hitTest(_root["bad" + i])) {
_root["bad" + i].gotoAndStop("hit");
_root["bad" + i].doinganim = true;
_root["youhealth" + i].health = _root["youhealth" + i].health - 0.2;
_root.char.damagegiven = _root.char.damagegiven + 0.2;
}
i++;
}
};
Symbol 462 MovieClip Frame 16
this._parent.doinganim = false;
Symbol 462 MovieClip Frame 18
this._parent.gotoAndStop("agstand");
Symbol 469 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.point = false;
Symbol 469 MovieClip Frame 9
this._parent._parent.damage = 1;
this._parent.point = true;
Symbol 469 MovieClip Frame 11
this._parent.point = false;
Symbol 469 MovieClip Frame 13
this._parent.doinganim = true;
Symbol 469 MovieClip Frame 15
this._parent.gotoAndStop("agstand");
Symbol 473 MovieClip Frame 1
this._parent.doinganim = true;
Symbol 473 MovieClip Frame 15
this._parent.doinganim = false;
if (Key.isDown(68)) {
gotoAndPlay (5);
}
Symbol 473 MovieClip Frame 17
this._parent.gotoAndStop("agstand");
Symbol 476 MovieClip Frame 4
this._parent._parent.damage = 0.1;
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + this._parent.cway;
}
this._parent.doinganim = true;
this._parent.point = true;
Symbol 476 MovieClip Frame 5
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + this._parent.cway;
}
this._parent.point = true;
Symbol 476 MovieClip Frame 6
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + this._parent.cway;
}
this._parent.point = true;
Symbol 476 MovieClip Frame 7
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + (this._parent.cway / 1.3);
}
this._parent.point = true;
Symbol 476 MovieClip Frame 8
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + (this._parent.cway / 2);
}
this._parent.point = true;
Symbol 476 MovieClip Frame 9
if (!this._parent._parent.hitwall) {
this._parent._x = this._parent._x + (this._parent.cway / 3);
}
this._parent.point = true;
Symbol 476 MovieClip Frame 10
this._parent.doinganim = false;
this._parent.point = false;
Symbol 476 MovieClip Frame 12
this._parent.gotoAndStop("agstand");
Symbol 479 MovieClip Frame 1
this._parent.doinganim = true;
this._parent.gothit = true;
this._parent.point = false;
Symbol 479 MovieClip Frame 13
this._parent.doinganim = false;
this._parent.gothit = false;
Symbol 479 MovieClip Frame 14
this._parent.gotoAndStop("stand");
Symbol 485 MovieClip Frame 19
stop();
this._parent.removeMovieClip();
Symbol 486 MovieClip Frame 1
stop();
Symbol 511 Button
on (release) {
_root.gotoAndStop("training");
}
Symbol 529 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 531 Button
on (release) {
_root.mode = "story";
_root.gotoAndStop("sselect");
}
Symbol 532 Button
on (release) {
_root.mode = "versus";
_root.gotoAndStop("vselect");
}
Symbol 533 Button
on (release) {
_root.gotoAndStop("extra");
}
Symbol 534 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 535 Button
on (release) {
getURL ("http://www.hiddenninjagames.com");
}
Symbol 536 MovieClip Frame 23
stop();
Symbol 537 Button
on (release) {
getURL ("http://www.hiddenninjagames.com", _blank);
}
Symbol 540 Button
on (release) {
getURL ("http://www.hiddenninjagames.com", _blank);
}
Symbol 546 Button
on (release) {
_root.hole.play();
}
Symbol 559 Button
on (release) {
nextFrame();
}
Symbol 563 Button
on (release) {
prevFrame();
}
Symbol 584 Button
on (release) {
nextFrame();
_root.badamt = _root.badamt - 1;
}
Symbol 586 Button
on (release) {
prevFrame();
_root.badamt = _root.badamt + 1;
}
Symbol 588 MovieClip Frame 1
stop();
_root.charnum = 4;
_root.sselect_mc.chardesc.gotoAndStop(1);
if (this == this._parent.a) {
_root.typea = _root.ninja;
}
if (this == this._parent.b) {
_root.typeb = _root.ninja;
}
if (this == this._parent.c) {
_root.typec = _root.ninja;
}
if (this == this._parent.you) {
_root.typed = _root.ninja;
}
Symbol 588 MovieClip Frame 2
_root.sselect_mc.chardesc.gotoAndStop(2);
_root.charnum = 1;
if (this == this._parent.a) {
_root.typea = _root.knight;
}
if (this == this._parent.b) {
_root.typeb = _root.knight;
}
if (this == this._parent.c) {
_root.typec = _root.knight;
}
if (this == this._parent.you) {
_root.typed = _root.knight;
}
Symbol 588 MovieClip Frame 3
_root.sselect_mc.chardesc.gotoAndStop(3);
_root.charnum = 2;
if (this == this._parent.a) {
_root.typea = _root.mindjolt;
}
if (this == this._parent.b) {
_root.typeb = _root.mindjolt;
}
if (this == this._parent.c) {
_root.typec = _root.mindjolt;
}
if (this == this._parent.you) {
_root.typed = _root.mindjolt;
}
Symbol 588 MovieClip Frame 4
_root.sselect_mc.chardesc.gotoAndStop(4);
_root.charnum = 3;
if (this == this._parent.a) {
_root.typea = _root.monkey;
}
if (this == this._parent.b) {
_root.typeb = _root.monkey;
}
if (this == this._parent.c) {
_root.typec = _root.monkey;
}
if (this == this._parent.you) {
_root.typed = _root.monkey;
}
Symbol 588 MovieClip Frame 5
_root.sselect_mc.chardesc.gotoAndStop(5);
_root.charnum = 6;
if (this == this._parent.a) {
_root.typea = _root.tank;
}
if (this == this._parent.b) {
_root.typeb = _root.tank;
}
if (this == this._parent.c) {
_root.typec = _root.tank;
}
if (this == this._parent.you) {
_root.typed = _root.tank;
}
Symbol 588 MovieClip Frame 6
_root.charnum = 5;
_root.sselect_mc.chardesc.gotoAndStop(6);
if (this == this._parent.you) {
up._x = 1000;
}
if (this == this._parent.a) {
_root.typea = _root.ant;
}
if (this == this._parent.b) {
_root.typeb = _root.ant;
}
if (this == this._parent.c) {
_root.typec = _root.ant;
}
if (this == this._parent.you) {
_root.typed = _root.ant;
}
Symbol 588 MovieClip Frame 7
if (this == this._parent.a) {
_root.typea = null;
}
if (this == this._parent.b) {
_root.typeb = null;
}
if (this == this._parent.c) {
_root.typec = null;
}
Symbol 590 MovieClip Frame 13
stop();
Symbol 590 MovieClip Frame 25
_root.gotoAndStop("lvlselect");
Symbol 592 Button
on (release) {
_root.sselect_mc.play();
}
Symbol 613 MovieClip Frame 1
stop();
Symbol 616 Button
on (release) {
getURL ("http://www.hiddenninjgames.com");
}
Symbol 617 MovieClip Frame 7
stop();
Symbol 617 MovieClip Frame 13
_root.gotoAndStop("whovswho");
Symbol 621 Button
on (release) {
_root.nextFrame();
_root.levelselect = 1;
}
Symbol 624 Button
on (release) {
_root.nextFrame();
_root.levelselect = 2;
}
Symbol 627 Button
on (release) {
_root.nextFrame();
_root.levelselect = 3;
}
Symbol 630 Button
on (release) {
_root.nextFrame();
_root.levelselect = 6;
}
Symbol 633 Button
on (release) {
_root.nextFrame();
_root.levelselect = 5;
}
Symbol 636 Button
on (release) {
_root.nextFrame();
_root.levelselect = 4;
}
Symbol 639 Button
on (release) {
_root.levelselect = 1;
_root.gotoAndStop("versus");
}
Symbol 640 Button
on (release) {
_root.levelselect = 2;
_root.gotoAndStop("versus");
}
Symbol 641 Button
on (release) {
_root.levelselect = 3;
_root.gotoAndStop("versus");
}
Symbol 642 Button
on (release) {
_root.levelselect = "hiddenninjagames";
_root.gotoAndStop("versus");
}
Symbol 643 Button
on (release) {
_root.levelselect = 5;
_root.gotoAndStop("versus");
}
Symbol 644 Button
on (release) {
_root.levelselect = 4;
_root.gotoAndStop("versus");
}
Symbol 645 MovieClip Frame 12
stop();
Symbol 654 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 1
stop();
_root.typea = _root.knight;
_root.typeb = null;
_root.typec = null;
Symbol 656 MovieClip Frame 2
_root.typea = _root.mindjolt;
_root.typeb = null;
_root.typec = null;
Symbol 656 MovieClip Frame 3
_root.typea = _root.monkey;
_root.typeb = null;
_root.typec = null;
Symbol 656 MovieClip Frame 4
_root.typea = _root.ninja;
_root.typeb = null;
_root.typec = null;
Symbol 656 MovieClip Frame 5
_root.typea = _root.ant;
_root.typeb = null;
_root.typec = null;
Symbol 656 MovieClip Frame 6
_root.typea = _root.tank;
_root.typeb = null;
_root.typec = null;
Symbol 663 Button
on (release) {
_root.gotoAndStop("versus");
}
Symbol 666 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 670 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 2
stop();
Symbol 697 MovieClip Frame 3
stop();
Symbol 697 MovieClip Frame 4
stop();
Symbol 697 MovieClip Frame 5
stop();
Symbol 697 MovieClip Frame 6
stop();
Symbol 697 MovieClip Frame 8
stop();
Symbol 697 MovieClip Frame 29
gotoAndStop (1);
Symbol 716 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
stop();
side = 1;
Symbol 724 MovieClip Frame 2
stop();
side = 1;
Symbol 724 MovieClip Frame 3
side = 1;
stop();
Symbol 724 MovieClip Frame 4
stop();
side = 2;
Symbol 724 MovieClip Frame 5
side = 1;
Symbol 724 MovieClip Frame 6
side = 1;
Symbol 724 MovieClip Frame 7
stop();
side = 1;
Symbol 728 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 736 MovieClip Frame 1
stop();
var health = 50;
Instance of Symbol 732 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
var maxWidth = 150;
var maxHealth = this._parent.health;
timer = 0;
boo = 0;
}
onClipEvent (enterFrame) {
_root.hl = this._parent.health;
var myPercentage = (this._parent.health / maxHealth);
this._width = Math.round(myPercentage * maxWidth);
if (this._parent.health <= 0) {
if (boo == 0) {
_root.char.gotoAndStop("die");
boo = 1;
}
timer++;
if (timer > 40) {
_root.gotoAndStop("lose");
i = 1;
while (i <= 4) {
_root["bad" + i].removeMovieClip();
i++;
}
}
}
}
Symbol 736 MovieClip Frame 2
var health = 50;
Instance of Symbol 732 MovieClip in Symbol 736 MovieClip Frame 2
onClipEvent (load) {
var maxWidth = 150;
var maxHealth = this._parent.health;
timer = 0;
boo = 0;
}
onClipEvent (enterFrame) {
if (_root.bad1.hitTest(_root.bottom)) {
this._parent.health = this._parent.health - 10;
}
var myPercentage = (this._parent.health / maxHealth);
this._width = Math.round(myPercentage * maxWidth);
if (this._parent.health <= 0) {
_root.bad1.dead = true;
if (boo == 0) {
_root.bad1.gotoAndStop("die");
boo = 1;
}
_root.typea = null;
if (_root.mode == "story") {
timer++;
if (timer > 40) {
_root.gotoAndStop("win");
}
} else {
if (timer == 0) {
_root.badamt = _root.badamt - 1;
}
timer = 1;
}
}
}
Symbol 736 MovieClip Frame 3
var health = 50;
Instance of Symbol 732 MovieClip in Symbol 736 MovieClip Frame 3
onClipEvent (load) {
var maxWidth = 150;
var maxHealth = this._parent.health;
timer = 0;
boo = 0;
}
onClipEvent (enterFrame) {
if (_root.bad2.hitTest(_root.bottom)) {
this._parent.health = this._parent.health - 10;
}
var myPercentage = (this._parent.health / maxHealth);
this._width = Math.round(myPercentage * maxWidth);
if (this._parent.health <= 0) {
_root.bad2.dead = true;
if (boo == 0) {
_root.bad2.gotoAndStop("die");
boo = 1;
}
_root.typeb = null;
if (_root.mode == "story") {
timer++;
if (timer > 40) {
_root.gotoAndStop("win");
}
} else {
if (timer == 0) {
_root.badamt = _root.badamt - 1;
}
timer = 1;
}
}
}
Symbol 736 MovieClip Frame 4
var health = 50;
Instance of Symbol 732 MovieClip in Symbol 736 MovieClip Frame 4
onClipEvent (load) {
var maxWidth = 150;
var maxHealth = this._parent.health;
timer = 0;
boo = 0;
}
onClipEvent (enterFrame) {
if (_root.bad3.hitTest(_root.bottom)) {
this._parent.health = this._parent.health - 10;
}
var myPercentage = (this._parent.health / maxHealth);
this._width = Math.round(myPercentage * maxWidth);
if (this._parent.health <= 0) {
_root.bad3.dead = true;
if (boo == 0) {
_root.bad3.gotoAndStop("die");
boo = 1;
}
_root.typec = null;
if (_root.mode == "story") {
timer++;
if (timer > 40) {
_root.gotoAndStop("win");
}
} else {
if (timer == 0) {
_root.badamt = _root.badamt - 1;
}
timer = 1;
}
}
}
Symbol 743 MovieClip Frame 50
stop();
this._parent.removeMovieClip();
Symbol 750 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 43
gotoAndStop (1);
Symbol 758 Button
on (release) {
if (_root.mode == "story") {
_root.gotoAndStop("whovswho");
} else {
_root.gotoAndStop("menu");
}
}
Symbol 816 MovieClip Frame 80
stop();
onEnterFrame = function () {
if (_root.char._currentframe == 5) {
play();
}
};
Symbol 816 MovieClip Frame 151
stop();
onEnterFrame = function () {
if (_root.char._currentframe == 7) {
play();
}
};
Symbol 816 MovieClip Frame 231
stop();
onEnterFrame = function () {
if (_root.char._currentframe == 12) {
play();
}
};
Symbol 816 MovieClip Frame 245
stop();
onEnterFrame = function () {
if (_root.char._currentframe == 14) {
play();
}
};
Symbol 816 MovieClip Frame 260
stop();
onEnterFrame = function () {
if (_root.char._currentframe == 11) {
play();
}
};
Symbol 816 MovieClip Frame 413
stop();
Symbol 825 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 829 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 7
stop();
points = _root.portalpoints;
Instance of Symbol 829 MovieClip "b1" in Symbol 830 MovieClip Frame 7
onClipEvent (load) {
if (_root.giant) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this.onRelease = function () {
if (!_root.giant) {
if (_root.portalpoints >= 1) {
_root.giant = true;
_root.portalpoints = _root.portalpoints - 1;
this._parent.points = this._parent.points - 1;
_root.giantcheck = true;
this.gotoAndStop(3);
}
} else if (this._currentframe == 2) {
_root.giantcheck = true;
this.gotoAndStop(3);
} else if (this._currentframe == 3) {
_root.giantcheck = false;
this.gotoAndStop(2);
}
};
}
Instance of Symbol 829 MovieClip "b1" in Symbol 830 MovieClip Frame 7
onClipEvent (load) {
if (_root.gotups) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this.onRelease = function () {
if (!_root.gotups) {
if (_root.portalpoints >= 1) {
_root.gotups = true;
_root.portalpoints = _root.portalpoints - 1;
this._parent.points = this._parent.points - 1;
_root.gotupscheck = true;
this.gotoAndStop(3);
}
} else if (this._currentframe == 2) {
_root.gotupscheck = true;
this.gotoAndStop(3);
} else if (this._currentframe == 3) {
_root.gotupscheck = false;
this.gotoAndStop(2);
}
};
}
Instance of Symbol 829 MovieClip "b1" in Symbol 830 MovieClip Frame 7
onClipEvent (load) {
if (_root.god) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this.onRelease = function () {
if (!_root.god) {
if (_root.portalpoints >= 1) {
_root.god = true;
_root.portalpoints = _root.portalpoints - 1;
this._parent.points = this._parent.points - 1;
_root.godcheck = true;
this.gotoAndStop(3);
}
} else if (this._currentframe == 2) {
_root.godcheck = true;
this.gotoAndStop(3);
} else if (this._currentframe == 3) {
_root.godcheck = false;
this.gotoAndStop(2);
}
};
}
Symbol 835 Button
on (release) {
stopAllSounds();
_root.portalpoints = _root.portalpoints + 1;
_root.gotoAndStop("menu");
}
Symbol 836 Button
on (release) {
if (_root.home) {
_root.gotoAndStop("menu");
} else {
_root.gotoAndStop("whovswho");
}
}
Symbol 843 Button
on (release) {
_root.difficulty = 0.5;
_root.thing._y = 175;
}
Symbol 847 Button
on (release) {
_root.difficulty = 1;
_root.thing._y = 200;
}
Symbol 851 Button
on (release) {
_root.difficulty = 2;
_root.thing._y = 230;
}
Symbol 856 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 2
stop();