Frame 1
MochiAd.showPreGameAd({id:"23e83773cdde6742", res:"550x400"});
mochi.MochiServices.connect("23e83773cdde6742");
Frame 2
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("5fb75fca", this, 10301, true);
Frame 122
stop();
Instance of Symbol 142 MovieClip in Frame 189
onClipEvent (enterFrame) {
this._xscale = _parent.hp / 4;
}
Frame 543
stop();
Frame 544
function weapon() {
_root.hero.gm.lt_arm.weapon.gotoAndStop(gun);
_root.hero.gm.head.hat.gotoAndStop(hat);
}
function moveHero() {
if (((((((Key.isDown(40) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!swinging_up)) && (!swinging)) && (!jumping)) && (!attacking)) && (!hit)) {
_root.hero.gm.gotoAndPlay("crouch");
if ((((_root.hero.block.hitTest(_root.down_ladder) || (_root.hero.block.hitTest(_root.down_ladder1))) || (_root.hero.block.hitTest(_root.down_ladder2))) || (_root.hero.block.hitTest(_root.down_ladder3))) || (_root.hero.block.hitTest(_root.down_ladder4))) {
_root.hero._y = _root.hero._y + 25;
}
}
if ((((Key.isDown(37) && (_root.hero._x > 5)) && (!swinging_up)) && (!swinging)) && (!whipping)) {
_root.hero._x = _root.hero._x - speed;
_root.hero._xscale = -100 * size;
if ((((!jumping) && (!attacking)) && (!hit)) && (!hitting)) {
_root.hero.gm.gotoAndStop("run");
}
}
if ((((Key.isDown(39) && (_root.hero._x < 530)) && (!swinging_up)) && (!swinging)) && (!whipping)) {
_root.hero._x = _root.hero._x + speed;
_root.hero._xscale = 100 * size;
if ((((!jumping) && (!attacking)) && (!hit)) && (!hitting)) {
_root.hero.gm.gotoAndStop("run");
}
}
}
function swing() {
if ((((((((_root.hero.gm.tail_end.hitTest(_root.knob3) || (_root.hero.gm.tail_end.hitTest(_root.knob4))) || (_root.hero.gm.tail_end.hitTest(_root.knob))) || (_root.hero.gm.tail_end.hitTest(_root.knob1))) || (_root.hero.gm.tail_end.hitTest(_root.knob2))) && (Key.isDown(83) || (Key.isDown(87)))) && (!swinging)) && (!swinging_up)) && (!attacking)) {
swinging = true;
jump = 12;
falling = false;
jumping = false;
attacking = false;
hero.gm.gotoAndPlay("swing");
}
}
function swing_up() {
if (((((Key.isDown(38) && (!swinging_up)) && (!hitting)) && (!hit)) && (!attacking)) && (((_root.hero.hitArea.hitTest(ladder.hitArea) || (_root.hero.hitArea.hitTest(ladder1.hitArea))) || (_root.hero.hitArea.hitTest(ladder2.hitArea))) || (_root.hero.hitArea.hitTest(ladder3.hitArea)))) {
swinging_up = true;
jump = 9;
falling = false;
jumping = false;
attacking = false;
hero.gm.gotoAndPlay("swing_up");
}
}
function fall() {
if (((((((((!_root.ground5.hitTest(hero.block)) && (!_root.ground4.hitTest(hero.block))) && (!_root.ground3.hitTest(hero.block))) && (!_root.ground.hitTest(hero.block))) && (!_root.ground2.hitTest(hero.block))) && (!_root.ground1.hitTest(hero.block))) && (!jumping)) && (!swinging)) && (!swinging_up)) {
hero._y = hero._y + 6;
if ((!attacking) && (!hitting)) {
hero.gm.gotoAndPlay("fall");
}
if (_root.hero.hitTest(_root.ground)) {
}
}
}
function hero_jump() {
if (((Key.isDown(38) && (!jumping)) && (!swinging_up)) && (!swinging)) {
jumping = true;
hitting = false;
}
if (jumping) {
if (!attacking) {
hero.gm.gotoAndStop("jump");
}
hero._y = hero._y - jump;
jump = jump - 0.8;
if (jump < 0) {
falling = true;
if (!attacking) {
hero.gm.gotoAndPlay("fall");
}
}
if (jump < -6) {
jump = -6;
}
}
if (_root.ground.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
if (_root.hero._y > 370) {
_root.hero._y = 384;
}
}
if (_root.ground1.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
}
if (_root.ground2.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
}
if (_root.ground3.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
}
if (_root.ground4.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
}
if (_root.ground5.hitTest(hero._x, hero._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
if (!attacking) {
hero.gm.gotoAndStop("normal");
}
}
if ((_root.hero.gm.tail_end.hitTest(knob) && (Key.isDown(83))) && (falling)) {
jump = 9;
jumping = false;
falling = false;
hero.gm.gotoAndStop("swing");
}
}
function whip() {
if ((((((((Key.isDown(83) || (Key.isDown(87))) && (!shooting)) && (!swinging_up)) && (!whipping)) && (!swinging)) && (!slamming)) && (!swinging_up)) && (!attacking)) {
whipping = true;
hit = false;
hero.gm.gotoAndPlay("whip");
} else if ((!(Key.isDown(83) || (Key.isDown(87)))) && (!Key.isDown(38))) {
whipping = false;
}
var _local2 = 1;
while (_local2 < MAXenemies2) {
var _local3 = _root["Enemy2" + _local2];
_local2++;
}
}
function gunPhase() {
_root.hero.gm.gun.gotoAndStop(gun_phase);
_root.hero.gm.run.gun.gotoAndStop(gun_phase);
_root.hero.gm.swing.gun.gotoAndStop(gun_phase);
_root.hero.gm.swing.gun.gotoAndStop(gun_phase);
_root.hero.gm.jump.gun.gotoAndStop(gun_phase);
_root.hero.gm.attack.gun.gotoAndStop(gun_phase);
}
function weaponChoice() {
if (Key.isDown(49) && (weapons > 0)) {
gun_phase = 1;
}
if (Key.isDown(50) && (weapons > 1)) {
gun_phase = 2;
}
if (Key.isDown(51) && (weapons > 2)) {
gun_phase = 3;
}
if (Key.isDown(52) && (weapons > 3)) {
gun_phase = 4;
}
if (Key.isDown(53) && (weapons > 4)) {
gun_phase = 5;
}
if (Key.isDown(54) && (weapons > 5)) {
gun_phase = 6;
}
if (Key.isDown(55) && (weapons > 6)) {
gun_phase = 7;
}
if (Key.isDown(56) && (weapons > 7)) {
gun_phase = 8;
}
if (Key.isDown(57) && (weapons > 8)) {
gun_phase = 9;
}
if (Key.isDown(48) && (weapons > 9)) {
gun_phase = 10;
}
}
function attack() {
if (Key.isDown(65) || ((Key.isDown(81) && (!swinging_up)) && (!swinging))) {
hit = false;
_root.hero.gm.gotoAndStop(gun_phase + "attack");
attacking = true;
swinging_up = false;
swinging = false;
}
}
function initEnemy() {
_root.killed = _root.killed + (MAXenemies - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies) {
attachMovie("enemy", "Enemy" + _local2, 90000 + _local2);
_root["Enemy" + _local2].hp = 10;
var _local3 = _root["Enemy" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 65;
_local3._y = badGuy_location;
}
if (bonus_round) {
_local3._x = (_local2 * 55) + 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy1() {
_root.killed = _root.killed + (MAXenemies - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies) {
attachMovie("enemy", "Enemy1" + _local2, 90100 + _local2);
_root["Enemy1" + _local2].hp = 10;
var _local3 = _root["Enemy1" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy1_location;
}
if (bonus_round) {
_local3._x = (_local2 * 55) + 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy2() {
_root.killed = _root.killed + (MAXenemies2 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies2) {
attachMovie("enemy2", "Enemy2" + _local2, 200 + _local2);
_root["Enemy2" + _local2].hp = 10;
var _local3 = _root["Enemy2" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy2_location;
}
if (bonus_round) {
_local3._x = _local2 * 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy3() {
_root.killed = _root.killed + (MAXenemies3 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies3) {
attachMovie("enemy3", "Enemy3" + _local2, 300 + _local2);
_root["Enemy3" + _local2].hp = 10;
var _local3 = _root["Enemy3" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy3_location;
}
if (bonus_round) {
_local3._x = (_local2 * 60) + 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy4() {
_root.killed = _root.killed + (MAXenemies4 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies4) {
attachMovie("enemy4", "Enemy4" + _local2, 400 + _local2);
_root["Enemy4" + _local2].hp = 10;
var _local3 = _root["Enemy4" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy4_location;
}
if (bonus_round) {
_local3._x = (_local2 * 105) + 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy5() {
_root.killed = _root.killed + (MAXenemies5 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies5) {
attachMovie("enemy5", "Enemy5" + _local2, 500 + _local2);
_root["Enemy5" + _local2].hp = 10;
var _local3 = _root["Enemy5" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy5_location;
}
if (bonus_round) {
_local3._x = _local2 * 400;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemy6() {
_root.killed = _root.killed + (MAXenemies6 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXenemies6) {
attachMovie("enemy6", "Enemy6" + _local2, 600 + _local2);
_root["Enemy6" + _local2].hp = 10;
var _local3 = _root["Enemy6" + _local2];
if (!bonus_round) {
_local3._x = _local2 * 55;
_local3._y = badGuy6_location;
}
if (bonus_round) {
_local3._x = _local2 * 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemyGuard() {
_root.killed = _root.killed + (MAXguards - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXguards) {
attachMovie("enemyGuard", "EnemyGuard" + _local2, 700 + _local2);
_root["EnemyGuard" + _local2].hp = 100;
var _local3 = _root["EnemyGuard" + _local2];
if (!bonus_round) {
_local3._x = (_local2 + 100) + 350;
_local3._y = badGuard_location;
}
if (bonus_round) {
badGuy6._x = _local2 * 300;
badGuy6._y = 295;
badGuy6._xscale = 100 * _root.size_enemy;
badGuy6._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initEnemyDaggers() {
_root.killed = _root.killed + (MAXdaggers - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXdaggers) {
attachMovie("enemyDaggers", "EnemyDaggers" + _local2, 750 + _local2);
_root["EnemyDaggers" + _local2].hp = 200;
var _local3 = _root["EnemyDaggers" + _local2];
if (!bonus_round) {
_local3._x = (_local2 + 100) + 350;
_local3._y = badDaggers_location;
}
if (bonus_round) {
badGuy6._x = _local2 * 300;
badGuy6._y = 295;
badGuy6._xscale = 100 * _root.size_enemy;
badGuy6._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initMage() {
_root.killed = _root.killed + (MAXmages - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXmages) {
attachMovie("mage", "mage" + _local2, 800 + _local2);
_root["mage" + _local2].hp = 10;
var _local3 = _root["mage" + _local2];
if (!bonus_round) {
_local3._x = mage_xlocation;
_local3._y = mage_ylocation;
}
if (bonus_round) {
_local3._x = _local2 * 300;
_local3._y = 295;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function initMage2() {
_root.killed = _root.killed + (MAXmages2 - 1);
if (!bossMode) {
var _local2 = 1;
while (_local2 < MAXmages2) {
attachMovie("mage2", "mage2" + _local2, 900 + _local2);
_root["mage2" + _local2].hp = 10;
var _local3 = _root["mage2" + _local2];
if (!bonus_round) {
_local3._x = mage2_xlocation;
_local3._y = mage2_ylocation;
}
if (bonus_round) {
_local3._x = _local2 * 300;
_local3._y = 100;
_local3._xscale = 100 * _root.size_enemy;
_local3._yscale = 100 * _root.size_enemy;
}
_local2++;
}
}
}
function hit_or_not() {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = _root["Enemy" + _local2];
if (!_root.hero.gm.hitTest(_local3)) {
_root.hit = false;
_root.hitting = false;
}
_local2++;
}
_local2 = 1;
while (_local2 < MAXenemies2) {
var _local7 = _root["Enemy2" + _local2];
if (!_root.hero.gm.hitTest(_local7)) {
_root.hit = false;
_root.hitting = false;
}
_local2++;
}
_local2 = 1;
while (_local2 < MAXenemies3) {
var _local6 = _root["Enemy3" + _local2];
if (!_root.hero.gm.hitTest(_local6)) {
_root.hit = false;
_root.hitting = false;
}
_local2++;
}
_local2 = 1;
while (_local2 < MAXenemies4) {
var _local5 = _root["Enemy4" + _local2];
if (!_root.hero.gm.hitTest(_local5)) {
_root.hit = false;
_root.hitting = false;
}
_local2++;
}
_local2 = 1;
while (_local2 < MAXenemies5) {
var _local4 = _root["Enemy5" + _local2];
if (!_root.hero.gm.hitTest(_local4)) {
_root.hit = false;
_root.hitting = false;
}
_local2++;
}
}
function bananaPeel() {
if (gun_phase == 5) {
if (((((((Key.isDown(65) || (Key.isDown(81))) && (!shooting)) && (!slamming)) && (!swinging)) && (_root.peels > 0)) && (!peeling)) && (!swinging_up)) {
_root.peels = _root.peels - 1;
peeling = true;
var _local16 = ++depth;
var _local17 = "peel" + _local16;
var _local15 = _root.attachMovie("peel", _local17, _local16);
_local15._x = hero._x + (hero._xscale / 4);
_local15._y = hero._y - 15;
_local15.xmov = (5 * hero._xscale) / 100;
_local15.onEnterFrame = function () {
if (!((((this.hitTest(_root.ground) || (this.hitTest(_root.ground1))) || (this.hitTest(_root.ground2))) || (this.hitTest(_root.ground3))) || (this.hitTest(_root.ground4)))) {
this._x = this._x + this.xmov;
this._y = this._y + 5;
}
if (Math.abs(hero._x - this._x) > 1000) {
this.removeMovieClip();
}
if ((((this.hitTest(_root.ground) || (this.hitTest(_root.ground1))) || (this.hitTest(_root.ground2))) || (this.hitTest(_root.ground3))) || (this.hitTest(_root.ground4))) {
var _local10 = 1;
while (_local10 < MAXenemies) {
var _local3 = _root["Enemy" + _local10];
if (this.hitTest(_local3)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 10000);
_local12._x = _local3._x;
_local12._y = _local3._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local3.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXenemies) {
var _local9 = _root["Enemy1" + _local10];
if (this.hitTest(_local9)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 10100);
_local12._x = _local9._x;
_local12._y = _local9._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local9.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXenemies2) {
var _local8 = _root["Enemy2" + _local10];
if (this.hitTest(_local8)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 20000);
_local12._x = _local8._x;
_local12._y = _local8._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local8.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXenemies3) {
var _local7 = _root["Enemy3" + _local10];
if (this.hitTest(_local7)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 30000);
_local12._x = _local7._x;
_local12._y = _local7._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local7.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXenemies4) {
var _local5 = _root["Enemy4" + _local10];
if (this.hitTest(_local5)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 40000);
_local12._x = _local5._x;
_local12._y = _local5._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local5.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXenemies6) {
var _local4 = _root["Enemy6" + _local10];
if (this.hitTest(_local4)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 60000);
_local12._x = _local4._x;
_local12._y = _local4._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local4.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXguards) {
var _local6 = _root["EnemyGuard" + _local10];
if (this.hitTest(_local6)) {
var _local11 = ++depthEx;
var _local14 = "death5" + _local11;
var _local12 = _root.attachMovie("death5", _local14, _local11 + 70000);
_local12._x = _local6._x;
_local12._y = _local6._y;
this.gotoAndStop(2);
_root.killed = _root.killed - 1;
_local6.removeMovieClip();
}
_local10++;
}
_local10 = 1;
while (_local10 < MAXdaggers) {
var _local13 = _root["EnemyDaggers" + _local10];
if (this.hitTest(_local13)) {
this.gotoAndStop(2);
}
_local10++;
}
}
};
} else if (!Key.isDown(65)) {
peeling = false;
}
}
}
function shoot() {
if ((gun_phase == 9) && (_root.bullets > 0)) {
if ((((((Key.isDown(65) || (Key.isDown(81))) && (!shooting)) && (!slamming)) && (!swinging)) && (!peeling)) && (!swinging_up)) {
_root.bullets = _root.bullets - 1;
shooting = true;
_root.shoot_count.gotoAndPlay(2);
var _local18 = ++depth;
var _local19 = "bullet" + _local18;
var _local17 = _root.attachMovie("bullet", _local19, _local18);
_local17._x = hero._x + (hero._xscale / 4);
_local17._y = hero._y - 15;
_local17.xmov = (15 * hero._xscale) / 100;
_local17._xscale = hero._xscale;
_local17._yscale = hero._yscale;
_local17.onEnterFrame = function () {
this._x = this._x + this.xmov;
if (Math.abs(hero._x - this._x) > 600) {
this.removeMovieClip();
}
var _local3 = 1;
while (_local3 < MAXenemies) {
var _local4 = _root["Enemy" + _local3];
if (this.hitTest(_local4)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 10000);
_local13._x = _local4._x;
_local13._y = _local4._y - 40;
this.removeMovieClip();
_local4.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXenemies) {
var _local11 = _root["Enemy1" + _local3];
if (this.hitTest(_local11)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 10100);
_local13._x = _local11._x;
_local13._y = _local11._y - 40;
this.removeMovieClip();
_local11.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXenemies2) {
var _local9 = _root["Enemy2" + _local3];
if (this.hitTest(_local9)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 20000);
_local13._x = _local9._x;
_local13._y = _local9._y - 40;
this.removeMovieClip();
_local9.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXenemies3) {
var _local8 = _root["Enemy3" + _local3];
if (this.hitTest(_local8)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 30000);
_local13._x = _local8._x;
_local13._y = _local8._y - 40;
this.removeMovieClip();
_local8.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXenemies4) {
var _local6 = _root["Enemy4" + _local3];
if (this.hitTest(_local6)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 40000);
_local13._x = _local6._x;
_local13._y = _local6._y - 40;
this.removeMovieClip();
_local6.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXenemies6) {
var _local5 = _root["Enemy6" + _local3];
if (this.hitTest(_local5)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 60000);
_local13._x = _local5._x;
_local13._y = _local5._y - 40;
this.removeMovieClip();
_local5.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXguards) {
var _local7 = _root["EnemyGuard" + _local3];
if (this.hitTest(_local7)) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 70000);
_local13._x = _local7._x;
_local13._y = _local7._y - 40;
this.removeMovieClip();
_local7.removeMovieClip();
_root.killed = _root.killed - 1;
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXdaggers) {
var _local10 = _root["EnemyDaggers" + _local3];
if (this.hitTest(_local10)) {
this.removeMovieClip();
_root["EnemyDaggers" + _local3].hp = _root["EnemyDaggers" + _local3].hp - 10;
if (_root["EnemyDaggers" + _local3].hp < 1) {
var _local12 = ++depthEx;
var _local15 = "death5" + _local12;
var _local13 = _root.attachMovie("death2", _local15, _local12 + 80000);
_local13._x = _local10._x;
_local13._y = _local10._y - 40;
_local10.removeMovieClip();
_root.killed = _root.killed - 1;
}
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXmages) {
var _local16 = _root["mage" + _local3];
if (this.hitTest(_local16.guts.normal)) {
this.removeMovieClip();
if ((!_root["mage" + _local3].hp) < 1) {
_root["mage" + _local3].guts.gotoAndStop("tail_hit");
_root["mage" + _local3].hp = _root["mage" + _local3].hp - 5;
_root["mage" + _local3].lightning_counter = 0;
}
if (_root["mage" + _local3].hp < 1) {
_root["mage" + _local3].dead = true;
_root["mage" + _local3].guts.gotoAndStop("death");
_root.killed = _root.killed - 1;
}
}
_local3++;
}
_local3 = 1;
while (_local3 < MAXmages2) {
var _local14 = _root["mage2" + _local3];
if (this.hitTest(_local14.guts.normal)) {
this.removeMovieClip();
if ((!_root["mage2" + _local3].hp) < 1) {
_root["mage2" + _local3].guts.gotoAndStop("tail_hit");
_root["mage2" + _local3].hp = _root["mage2" + _local3].hp - 5;
_root["mage2" + _local3].lightning_counter = 0;
}
if (_root["mage2" + _local3].hp < 1) {
_root["mage2" + _local3].dead = true;
_root["mage2" + _local3].guts.gotoAndStop("death");
_root.killed = _root.killed - 1;
}
}
_local3++;
}
};
}
}
}
function portals() {
if ((_root.killed < 1) && (_root.collect < 1)) {
_root.portal.gotoAndStop(2);
} else {
_root.portal.gotoAndStop(1);
}
}
function level_up() {
if (hero.hitArea.hitTest(_root.portal.guts)) {
_root.portal_close.removeMovieClip();
_root.oneton.gotoAndStop(1);
var _local2 = 1;
while (_local2 < MAXmages2) {
var _local3 = _root["mage2" + _local2];
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmages) {
var _local4 = _root["mage" + _local2];
_local4.removeMovieClip();
_local2++;
}
_root.nextFrame();
_root.portal_close.gotoAndPlay(1);
_root.level = _root.level + 1;
_root.level_display.gotoAndStop(2);
_root.hero._x = _root.portal_close._x;
_root.hero._y = _root.portal_close._y;
}
}
function game_over() {
if (_root.hits < 1) {
_root.lives = _root.lives - 1;
}
if ((_root.hits < 1) && (_root.lives < 1)) {
_root.gotoAndStop("lose");
} else if ((_root.hits < 1) && (_root.lives > 0)) {
_root.gotoAndStop("continue");
}
}
function BonusPoints() {
if ((_root.level > 17) && (_root.level < 21)) {
_root.bonus = _root.bonus - 1;
}
if (_root.score < 0) {
_root.score = 0;
}
}
stop();
attacking = false;
badGuy_location = 190;
badGuy1_location = 390;
badGuy2_location = 295;
badGuy3_location = 190;
badGuy4_location = 295;
badGuy5_location = 295;
badGuy6_location = 390;
batteries = 2;
bullets = 600;
mage_xlocation = 450;
mage_ylocation = 300;
bonus_round = false;
bossmode = false;
collect = 0;
depth = 11000;
enemySpeed = 2;
jump = 9;
jumping = false;
killed = 0;
paused = 1;
score = 0;
size = 1;
size_enemy = 1;
speed = 6;
fuel = 100;
laser_fuel = 100;
gun = 1;
gun_phase = 1;
hat = 2;
hit = false;
hitting = false;
level = 1;
weapons = 1;
MAXenemies = 6;
MAXenemies2 = 10;
MAXenemies3 = 10;
MAXenemies4 = 3;
MAXenemies5 = 2;
MAXenemies6 = 3;
MAXmages = 2;
peels = 15;
swinging = false;
swinging_up = false;
peeling = false;
initEnemy();
initEnemy1();
initEnemy4();
initMage();
whipping = false;
upgrade = true;
Stage.showMenu = false;
_root.onEnterFrame = function () {
bananaPeel();
moveHero();
swing();
swing_up();
fall();
hero_jump();
weapon();
whip();
gunPhase();
weaponChoice();
attack();
portals();
level_up();
shoot();
game_over();
BonusPoints();
};
Instance of Symbol 600 MovieClip "level_display" in Frame 544
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 544
onClipEvent (enterFrame) {
this.swapDepths(2000000);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "1" in Frame 544
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.peels = _root.peels + 5;
_root.weapons = _root.weapons + 1;
}
}
Instance of Symbol 635 MovieClip "health" in Frame 544
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.hits = 100;
}
}
Instance of Symbol 639 MovieClip in Frame 544
onClipEvent (enterFrame) {
if (_root.gun_phase == 5) {
this.gotoAndStop(2);
} else if (_root.gun_phase != 5) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
this.mines = _root.peels;
}
Instance of Symbol 641 MovieClip "fuel_gauge" in Frame 544
onClipEvent (enterFrame) {
if (_root.gun_phase != 8) {
_root.fuel_gauge.gotoAndStop(1);
}
if (_root.fuel < 100) {
_root.fuel = _root.fuel + 0.2;
}
}
onClipEvent (enterFrame) {
this.bar._xscale = _root.fuel;
}
Instance of Symbol 645 MovieClip "laser_fuel_gauge" in Frame 544
onClipEvent (enterFrame) {
if (_root.gun_phase != 10) {
_root.laser_fuel_gauge.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
this.batteries = _root.batteries;
}
Instance of Symbol 142 MovieClip "bar" in Frame 544
onClipEvent (enterFrame) {
this._xscale = _root.hits;
}
Instance of Symbol 654 MovieClip "bullet_gauge" in Frame 544
onClipEvent (enterFrame) {
if (_root.gun_phase != 9) {
_root.bullet_gauge.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
this.bullets = _root.bullets;
}
Instance of Symbol 1245 MovieClip "hero" in Frame 544
onClipEvent (enterFrame) {
this.swapDepths(30000000);
}
Instance of Symbol 1253 MovieClip in Frame 544
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lives);
}
Frame 545
stop();
killed = 0;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies3 = 6;
MAXenemies4 = 3;
initEnemy6();
initEnemy3();
initEnemy4();
Instance of Symbol 1298 MovieClip in Frame 545
onClipEvent (enterFrame) {
if (_root.killed < 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 545
onClipEvent (enterFrame) {
this.swapDepths(20000000);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "2" in Frame 545
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 546
stop();
killed = 0;
badGuard_location = 350;
enemySpeed = 1.5;
MAXguards = 3;
initEnemyGuard();
Instance of Symbol 630 MovieClip "portal_close" in Frame 546
onClipEvent (enterFrame) {
this.swapDepths(20000001);
}
Instance of Symbol 1317 MovieClip "gate" in Frame 546
onClipEvent (enterFrame) {
if (((_root.killed < 1) && (_root.collect < 1)) && (!this.open)) {
this.play();
}
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "3" in Frame 546
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 547
stop();
killed = 0;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies2 = 3;
MAXenemies3 = 6;
MAXenemies4 = 3;
MAXmages = 2;
MAXmages2 = 2;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initMage();
initMage2();
Instance of Symbol 630 MovieClip "portal_close" in Frame 547
onClipEvent (enterFrame) {
this.swapDepths(20000004);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "4" in Frame 547
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 548
stop();
killed = 0;
badGuard_location = 350;
enemySpeed = 2.5;
MAXenemies5 = 2;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 3;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy5();
initMage();
initMage2();
initEnemyGuard();
Instance of Symbol 1324 MovieClip "ground3" in Frame 548
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._y < 100) || (this._y > 300)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._y = _root.hero._y - this.moving;
}
this._y = this._y - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 548
onClipEvent (enterFrame) {
this.swapDepths(20000005);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "5" in Frame 548
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 549
stop();
Instance of Symbol 630 MovieClip "portal_close" in Frame 549
onClipEvent (enterFrame) {
this.swapDepths(20000006);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "6" in Frame 549
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 550
stop();
killed = 0;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies2 = 5;
MAXenemies3 = 6;
MAXenemies4 = 5;
MAXenemies5 = 2;
MAXmages = 2;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initEnemy5();
initMage();
Instance of Symbol 1324 MovieClip "ground3" in Frame 550
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._y < 100) || (this._y > 250)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._y = _root.hero._y - this.moving;
}
this._y = this._y - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 550
onClipEvent (enterFrame) {
this.swapDepths(20000007);
}
Instance of Symbol 635 MovieClip "health1" in Frame 550
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.hits = 100;
}
}
Frame 551
stop();
Instance of Symbol 229 MovieClip [ground] in Frame 551
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hits = _root.hits - 110;
}
}
Instance of Symbol 1324 MovieClip "ground3" in Frame 551
onClipEvent (load) {
this.moving = 1;
}
onClipEvent (enterFrame) {
if ((this._x < 220) || (this._x > 390)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._x = _root.hero._x - this.moving;
}
this._x = this._x - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 551
onClipEvent (enterFrame) {
this.swapDepths(20000008);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "8" in Frame 551
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 552
stop();
Instance of Symbol 1324 MovieClip "ground1" in Frame 552
onClipEvent (load) {
this.moving = 1;
}
onClipEvent (enterFrame) {
if ((this._x < 130) || (this._x > 345)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._x = _root.hero._x - this.moving;
}
this._x = this._x - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 552
onClipEvent (enterFrame) {
this.swapDepths(20000009);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "9" in Frame 552
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 553
stop();
killed = 0;
badGuard_location = 350;
enemySpeed = 4.5;
MAXenemies = 8;
MAXenemies2 = 9;
MAXenemies3 = 9;
MAXenemies4 = 8;
MAXenemies5 = 2;
MAXenemies6 = 6;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 3;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initEnemy5();
initMage2();
initEnemyGuard();
Instance of Symbol 630 MovieClip "portal_close" in Frame 553
onClipEvent (enterFrame) {
this.swapDepths(20000010);
}
Instance of Symbol 1317 MovieClip "gate1" in Frame 553
onClipEvent (enterFrame) {
if (((_root.killed < 1) && (_root.collect < 1)) && (!this.open)) {
this.play();
}
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "10" in Frame 553
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Instance of Symbol 1328 MovieClip in Frame 553
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.peels = _root.peels + 5;
}
}
Frame 554
stop();
killed = 0;
badGuard_location = 350;
enemySpeed = 4.5;
MAXenemies = 8;
MAXenemies2 = 9;
MAXenemies3 = 9;
MAXenemies4 = 8;
MAXenemies6 = 6;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 3;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initMage2();
initEnemyGuard();
Instance of Symbol 630 MovieClip "portal_close" in Frame 554
onClipEvent (enterFrame) {
this.swapDepths(20000008);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "11" in Frame 554
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Instance of Symbol 1335 MovieClip in Frame 554
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.lives = _root.lives + 1;
}
}
Frame 555
stop();
killed = 0;
badGuard_location = 350;
enemySpeed = 4.5;
MAXenemies = 8;
MAXenemies2 = 9;
MAXenemies3 = 9;
MAXenemies4 = 8;
MAXenemies5 = 2;
MAXenemies6 = 6;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 3;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initEnemy5();
initMage2();
initEnemyGuard();
Instance of Symbol 229 MovieClip [ground] in Frame 555
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.block)) {
_root.hits = _root.hits - 110;
}
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 555
onClipEvent (enterFrame) {
this.swapDepths(20000012);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "12" in Frame 555
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Instance of Symbol 1328 MovieClip in Frame 555
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.peels = _root.peels + 15;
}
}
Frame 556
stop();
killed = 0;
badDaggers_location = 350;
MAXdaggers = 2;
initEnemyDaggers();
Instance of Symbol 1324 MovieClip "ground2" in Frame 556
onClipEvent (load) {
this.moving = 1;
}
onClipEvent (enterFrame) {
if ((this._x < 50) || (this._x > 500)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._x = _root.hero._x - this.moving;
}
this._x = this._x - this.moving;
}
Instance of Symbol 1324 MovieClip "ground3" in Frame 556
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._y < 100) || (this._y > 300)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._y = _root.hero._y - this.moving;
}
this._y = this._y - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 556
onClipEvent (enterFrame) {
this.swapDepths(20000013);
}
Instance of Symbol 635 MovieClip "health1" in Frame 556
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.hits = 100;
}
}
Frame 557
stop();
killed = 0;
enemySpeed = 4.5;
MAXenemies = 8;
MAXenemies2 = 9;
MAXenemies3 = 9;
MAXenemies4 = 8;
MAXenemies6 = 6;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
Instance of Symbol 1324 MovieClip "ground2" in Frame 557
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._y < 100) || (this._y > 300)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._y = _root.hero._y - this.moving;
}
this._y = this._y - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 557
onClipEvent (enterFrame) {
this.swapDepths(20000014);
}
Instance of Symbol 227 MovieClip [weaponsUpgrade] "14" in Frame 557
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.weapons = _root.weapons + 1;
}
}
Frame 558
stop();
Instance of Symbol 229 MovieClip [ground] in Frame 558
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hits = _root.hits - 110;
}
}
Instance of Symbol 1324 MovieClip "ground3" in Frame 558
onClipEvent (load) {
this.moving = 3;
}
onClipEvent (enterFrame) {
if ((this._x < 150) || (this._x > 390)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._x = _root.hero._x - this.moving;
}
this._x = this._x - this.moving;
}
Instance of Symbol 1324 MovieClip "ground2" in Frame 558
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._x < 50) || (this._x > 225)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._x = _root.hero._x - this.moving;
}
this._x = this._x - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 558
onClipEvent (enterFrame) {
this.swapDepths(20000015);
}
Frame 559
stop();
killed = 0;
badDaggers_location = 350;
enemySpeed = 2.5;
MAXmages = 2;
MAXmages2 = 2;
MAXdaggers = 2;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initMage();
initMage2();
initEnemyDaggers();
Instance of Symbol 1324 MovieClip "ground3" in Frame 559
onClipEvent (load) {
this.moving = 2;
}
onClipEvent (enterFrame) {
if ((this._y < 100) || (this._y > 360)) {
this.moving = this.moving * -1;
}
if (this.hitTest(_root.hero.block)) {
_root.hero._y = _root.hero._y - this.moving;
}
this._y = this._y - this.moving;
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 559
onClipEvent (enterFrame) {
this.swapDepths(20000016);
}
Instance of Symbol 1348 MovieClip in Frame 559
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.batteries = _root.batteries + 2;
}
}
Instance of Symbol 1350 MovieClip in Frame 559
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.bullets = _root.bullets + 300;
}
}
Frame 560
stop();
killed = 0;
badDaggers_location = 350;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies2 = 5;
MAXenemies3 = 6;
MAXenemies4 = 5;
MAXenemies5 = 2;
MAXdaggers = 2;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initEnemy5();
initEnemyDaggers();
Instance of Symbol 630 MovieClip "portal_close" in Frame 560
onClipEvent (enterFrame) {
this.swapDepths(20000017);
}
Frame 561
stop();
killed = 0;
badGuard_location = 120;
badDaggers_location = 350;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies2 = 6;
MAXenemies3 = 6;
MAXenemies4 = 6;
MAXdaggers = 2;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 4;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initMage();
initMage2();
initEnemyDaggers();
initEnemyGuard();
Instance of Symbol 630 MovieClip "portal_close" in Frame 561
onClipEvent (enterFrame) {
this.swapDepths(20000018);
}
Frame 562
stop();
killed = 0;
badGuard_location = 120;
badDaggers_location = 350;
enemySpeed = 2.5;
MAXenemies = 6;
MAXenemies2 = 6;
MAXenemies3 = 6;
MAXenemies4 = 6;
MAXdaggers = 2;
MAXmages = 2;
MAXmages2 = 2;
MAXguards = 4;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initEnemy();
initEnemy2();
initEnemy6();
initEnemy3();
initEnemy4();
initMage();
initMage2();
initEnemyDaggers();
initEnemyGuard();
Instance of Symbol 630 MovieClip "portal_close" in Frame 562
onClipEvent (enterFrame) {
this.swapDepths(20000019);
}
Frame 563
stop();
killed = 0;
enemySpeed = 2.5;
MAXmages = 2;
MAXmages2 = 2;
mage_xlocation = 450;
mage_ylocation = 300;
mage2_xlocation = 450;
mage2_ylocation = 100;
initMage();
initMage2();
Instance of Symbol 229 MovieClip [ground] in Frame 563
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hits = _root.hits - 110;
}
}
Instance of Symbol 630 MovieClip "portal_close" in Frame 563
onClipEvent (enterFrame) {
this.swapDepths(20000020);
}
Frame 564
_root.hero.swapDepths(99999);
_root.hero.removeMovieClip();
_root.portal.swapDepths(99999);
_root.portal.removeMovieClip();
_root.score = _root.score + _root.bonus;
_root.gotoAndPlay("win");
Frame 565
stop();
_root.hero.swapDepths(99999);
_root.hero.removeMovieClip();
stop();
attacking = false;
bonus_round = false;
bossmode = false;
_root.collect = 0;
depth = 11000;
jump = 9;
jumping = false;
killed = 0;
score = _root.score;
size = 1;
size_enemy = 1;
speed = 6;
fuel = 100;
laser_fuel = 100;
hat = 2;
hit = false;
hits = 100;
hitting = false;
swinging = false;
swinging_up = false;
peeling = false;
whipping = false;
var i = 1;
while (i < MAXenemies) {
_root["Enemy" + i].hp = 10;
var badGuy = _root["Enemy" + i];
badGuy.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies) {
_root["Enemy1" + i].hp = 10;
var badGuy1 = _root["Enemy1" + i];
badGuy1.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies2) {
_root["Enemy2" + i].hp = 10;
var badGuy2 = _root["Enemy2" + i];
badGuy2.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies3) {
_root["Enemy3" + i].hp = 10;
var badGuy3 = _root["Enemy3" + i];
badGuy3.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies4) {
_root["Enemy4" + i].hp = 10;
var badGuy4 = _root["Enemy4" + i];
badGuy4.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies5) {
_root["Enemy5" + i].hp = 10;
var badGuy5 = _root["Enemy5" + i];
badGuy5.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies6) {
_root["Enemy6" + i].hp = 10;
var badGuy6 = _root["Enemy6" + i];
badGuy6.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXmages) {
_root["mage" + i].hp = 10;
var mageBoss = _root["mage" + i];
mageBoss.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXmages2) {
_root["mage2" + i].hp = 10;
var mageBoss2 = _root["mage2" + i];
mageBoss2.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXguards) {
_root["EnemyGuard" + i].hp = 100;
var badGuard = _root["EnemyGuard" + i];
badGuard.removeMovieClip();
i++;
}
Frame 570
stop();
_root.hero.swapDepths(99999);
_root.hero.removeMovieClip();
stop();
attacking = false;
bonus_round = false;
bossmode = false;
collect = 0;
depth = 11000;
enemySpeed = 2;
jump = 9;
jumping = false;
killed = 0;
score = _root.score;
size = 1;
size_enemy = 1;
speed = 6;
fuel = 100;
laser_fuel = 100;
gun = 1;
gun_phase = 1;
hat = 2;
hit = false;
hits = 100;
hitting = false;
weapons = 1;
peels = 15;
swinging = false;
swinging_up = false;
peeling = false;
whipping = false;
var i = 1;
while (i < MAXenemies) {
_root["Enemy" + i].hp = 10;
var badGuy = _root["Enemy" + i];
badGuy.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies) {
_root["Enemy1" + i].hp = 10;
var badGuy1 = _root["Enemy1" + i];
badGuy1.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies2) {
_root["Enemy2" + i].hp = 10;
var badGuy2 = _root["Enemy2" + i];
badGuy2.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies3) {
_root["Enemy3" + i].hp = 10;
var badGuy3 = _root["Enemy3" + i];
badGuy3.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies4) {
_root["Enemy4" + i].hp = 10;
var badGuy4 = _root["Enemy4" + i];
badGuy4.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies5) {
_root["Enemy5" + i].hp = 10;
var badGuy5 = _root["Enemy5" + i];
badGuy5.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXenemies6) {
_root["Enemy6" + i].hp = 10;
var badGuy6 = _root["Enemy6" + i];
badGuy6.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXmages) {
_root["mage" + i].hp = 10;
var mageBoss = _root["mage" + i];
mageBoss.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXmages2) {
_root["mage2" + i].hp = 10;
var mageBoss2 = _root["mage2" + i];
mageBoss2.removeMovieClip();
i++;
}
var i = 1;
while (i < MAXguards) {
_root["EnemyGuard" + i].hp = 100;
var badGuard = _root["EnemyGuard" + i];
badGuard.removeMovieClip();
i++;
}
Frame 576
stop();
score = _root.score;
Frame 582
mochi.MochiScores.showLeaderboard({boardID:"82efca7be2e3a77a", score:_root.score});
stop();
Symbol 13 Button
on (release) {
pname_result = validate_name(playername);
if (pname_result.length > 0) {
name_result = pname_result;
return(undefined);
}
name_result = "";
pemail = validate_mail(player_email);
if (pemail.length > 0) {
email_result = pemail;
return(undefined);
}
email_result = "";
myData = new LoadVars();
myData.game_id = 466;
myData.add_pass = "b3n885fu";
myData.name = playername;
myData.email = player_email;
myData.score = score;
returnData = new LoadVars();
myData.sendAndLoad("http://www.glowmonkeygames.com/highscores/add_game_score.php", returnData, "POST");
returnData.onLoad = function () {
for (var _local3 in this) {
trace([_local3, this[_local3]]);
}
if (returnData.output == "success") {
_root.scoreboard.gotoAndStop("months_scores");
} else {
_root.scoreboard.gotoAndStop("months_scores");
}
};
}
Symbol 42 MovieClip [HIghscoreBoard] Frame 1
stop();
function validate_mail(mail) {
primo = new String();
primo = mail.toLowerCase();
primo_array = new Array();
primo_array = primo.split("@");
if (primo_array.length == "2") {
trace("First test passed");
prefix = new String();
prefix = primo_array[0];
if (((prefix.length > 0) && (prefix.charAt(0) != ".")) && (prefix.charAt(prefix.length - 1) != ".")) {
trace("Second test passed");
suffix = new String();
suffix = primo_array[1];
suffix_array = new Array();
suffix_array = suffix.split(".");
if (suffix_array.length > 1) {
trace("Third test passed");
index_of_suffix_array = suffix_array.length - 1;
TLD = new String();
TLD = suffix_array[index_of_suffix_array];
trace((("TLD =" + TLD) + "// TLD.length =") + TLD.length);
if ((TLD.length > 1) && (TLD.length < 5)) {
trace("Fourth test passed");
suffix_particle = new String();
i = 0;
while (i <= (suffix_array.length - 1)) {
suffix_particle = suffix_array[i];
if (suffix_particle.length > 0) {
trace("Fifth test passed");
if (i == (suffix_array.length - 1)) {
char = new Array();
k = 0;
while (k <= (primo.length - 1)) {
char = primo.slice(k, k + 1);
trace(char);
if ((((((((((((((((((((((((((((((((((((((((char == "a") || (char == "b")) || (char == "c")) || (char == "d")) || (char == "e")) || (char == "f")) || (char == "g")) || (char == "h")) || (char == "i")) || (char == "j")) || (char == "k")) || (char == "l")) || (char == "m")) || (char == "n")) || (char == "o")) || (char == "p")) || (char == "q")) || (char == "r")) || (char == "s")) || (char == "t")) || (char == "u")) || (char == "v")) || (char == "w")) || (char == "x")) || (char == "y")) || (char == "z")) || (char == "0")) || (char == "1")) || (char == "2")) || (char == "3")) || (char == "4")) || (char == "5")) || (char == "6")) || (char == "7")) || (char == "8")) || (char == "9")) || (char == ".")) || (char == "@")) || (char == "_")) || (char == "-")) {
if (k == (primo.length - 1)) {
return("");
}
} else {
trace("Unauthorised character " + char);
return("Unauthorised character " + char);
}
k++;
}
}
} else {
trace("Error in delimiters (.)");
return("Error in delimiters (.)");
}
i++;
}
// unexpected jump
}
trace("Error in TLD");
return("Error in TLD");
} else {
trace("Error in the suffix");
return("Error in the suffix");
}
// unexpected jump
}
trace("Malformed Prefix or Missing Prefix");
return("Malformed Prefix or Missing Prefix");
}
trace("Mail must contain one @");
return("Mail must contain one @");
}
function validate_name(name) {
primo = new String();
primo = name.toLowerCase();
if (primo.length > 0) {
char = new Array();
k = 0;
while (k <= (primo.length - 1)) {
char = primo.slice(k, k + 1);
trace(char);
if ((((((((((((((((((((((((((((char == "a") || (char == "b")) || (char == "c")) || (char == "d")) || (char == "e")) || (char == "f")) || (char == "g")) || (char == "h")) || (char == "i")) || (char == "j")) || (char == "k")) || (char == "l")) || (char == "m")) || (char == "n")) || (char == "o")) || (char == "p")) || (char == "q")) || (char == "r")) || (char == "s")) || (char == "t")) || (char == "u")) || (char == "v")) || (char == "w")) || (char == "x")) || (char == "y")) || (char == "z")) || (char == " ")) || (char == "-")) {
if (k == (primo.length - 1)) {
return("");
}
} else {
trace("Unauthorised character " + char);
return("Unauthorised character " + char);
}
k++;
}
} else {
trace("Please enter a name.");
return("Please enter a name.");
}
}
Symbol 42 MovieClip [HIghscoreBoard] Frame 2
stop();
myData = new LoadVars();
myData.onLoad = function () {
placeTheDataIntoTheRightPlace();
};
myData.game_id = 466;
myData.add_pass = "b3n885fu";
myData.flash = 1;
if (score) {
myData.score = score;
}
myData.sendAndLoad("http://www.glowmonkeygames.com/highscores/get_game_scores.php", myData, "POST");
placeTheDataIntoTheRightPlace = function () {
name1 = myData.name1;
score1 = myData.score1;
name2 = myData.name2;
score2 = myData.score2;
name3 = myData.name3;
score3 = myData.score3;
name4 = myData.name4;
score4 = myData.score4;
name5 = myData.name5;
score5 = myData.score5;
name6 = myData.name6;
score6 = myData.score6;
name7 = myData.name7;
score7 = myData.score7;
name8 = myData.name8;
score8 = myData.score8;
name9 = myData.name9;
score9 = myData.score9;
name10 = myData.name10;
score10 = myData.score10;
name11 = myData.name11;
score11 = myData.score11;
name12 = myData.name12;
score12 = myData.score12;
_root.ranking = myData.ranking;
};
Symbol 44 MovieClip [pauseButton] Frame 1
stop();
_root.paused = 1;
Symbol 44 MovieClip [pauseButton] Frame 2
_root.paused = -1;
play();
Symbol 44 MovieClip [pauseButton] Frame 6
stop();
_root.paused = -1;
Symbol 44 MovieClip [pauseButton] Frame 7
_root.paused = 1;
play();
Symbol 44 MovieClip [pauseButton] Frame 11
stop();
_root.paused = 1;
Symbol 44 MovieClip [pauseButton] Frame 12
gotoAndPlay (2);
Symbol 48 MovieClip [explode] Frame 10
this.removeMovieClip();
Symbol 55 MovieClip Frame 6
_parent.removeMovieClip();
Symbol 59 MovieClip [peel] Frame 1
stop();
Instance of Symbol 54 MovieClip "guts" in Symbol 59 MovieClip [peel] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.level_display.levelScreen)) {
_parent.removeMovieClip();
}
}
Symbol 59 MovieClip [peel] Frame 2
stop();
Symbol 78 MovieClip [weapon] Frame 1
stop();
Symbol 78 MovieClip [weapon] Frame 2
stop();
Symbol 80 MovieClip Frame 1
play();
Symbol 80 MovieClip Frame 13
_parent.hitting = false;
Symbol 93 MovieClip Frame 1
_parent.tailHit = true;
Symbol 93 MovieClip Frame 40
_parent.tailHit = false;
_parent._parent.head.gotoAndStop(1);
_parent._parent.vest.gotoAndStop(1);
_parent.gotoAndStop("normal");
Symbol 100 MovieClip Frame 1
_parent.tailHit = true;
_root.score = _root.score + 100;
Symbol 100 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 103 MovieClip [death2] Frame 1
_parent.tailHit = true;
_root.score = _root.score + 100;
Symbol 103 MovieClip [death2] Frame 40
_parent._parent.removeMovieClip();
this.removeMovieClip();
Symbol 107 MovieClip Frame 1
_parent.tailHit = true;
Symbol 107 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 110 MovieClip Frame 1
_parent.tailHit = true;
Symbol 110 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 113 MovieClip [death5] Frame 1
_parent.tailHit = true;
Symbol 113 MovieClip [death5] Frame 40
this.removeMovieClip();
Symbol 116 MovieClip Frame 1
_parent.tailHit = true;
Symbol 116 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 1
_parent.tailHit = true;
Symbol 121 MovieClip Frame 21
_root.score = _root.score + 100;
Symbol 121 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 128 MovieClip Frame 1
_parent.tailHit = true;
Symbol 128 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 131 MovieClip Frame 1
_parent.tailHit = true;
Symbol 131 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 132 MovieClip Frame 1
stop();
tailHit = false;
Symbol 132 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 9
stop();
Symbol 132 MovieClip Frame 13
stop();
Symbol 132 MovieClip Frame 18
stop();
Symbol 132 MovieClip Frame 24
stop();
_parent.dead = true;
Symbol 132 MovieClip Frame 31
stop();
_parent.dead = true;
Symbol 132 MovieClip Frame 36
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 41
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 46
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 51
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 56
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 61
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 66
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 71
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 132 MovieClip Frame 77
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 133 MovieClip [enemy5] Frame 1
stop();
Instance of Symbol 132 MovieClip "guts" in Symbol 133 MovieClip [enemy5] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((this.hitTest(_root.hero.hitArea) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if (((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && ((_root.gun_phase == 6) || (_root.gun_phase == 10))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop(("death" + _root.gun_phase) + "a");
_parent._xscale = 100 * _root.size_enemy;
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if (((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && ((_root.gun_phase == 6) || (_root.gun_phase == 10))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop(("death" + _root.gun_phase) + "a");
_parent._xscale = 100 * _root.size_enemy;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
} else if (this.hitTest(_root.oneton.block)) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death4");
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
_parent.helmet.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.helmet.gotoAndStop(3);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 135 MovieClip [enemy6] Frame 1
stop();
Instance of Symbol 132 MovieClip "guts" in Symbol 135 MovieClip [enemy6] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.head.gotoAndStop(1);
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((this.hitTest(_root.hero.hitArea) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_parent.head.gotoAndStop(1);
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.head.gotoAndStop(1);
_parent.guts.gotoAndPlay("run");
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(2);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if ((((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 3)) && (_root.gun_phase != 9)) && (_root.gun_phase != 6)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.head.gotoAndStop(1);
_parent.guts.gotoAndPlay("run");
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(2);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if ((((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 3)) && (_root.gun_phase != 9)) && (_root.gun_phase != 6)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.head.gotoAndStop(1);
_parent.guts.gotoAndStop("normal");
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.helmet.gotoAndStop(2);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 139 MovieClip Frame 1
play();
Symbol 139 MovieClip Frame 13
_parent.hitting = false;
Symbol 140 MovieClip Frame 1
stop();
tailHit = false;
Symbol 140 MovieClip Frame 5
stop();
Symbol 140 MovieClip Frame 9
stop();
Symbol 140 MovieClip Frame 13
stop();
Symbol 140 MovieClip Frame 18
stop();
Symbol 140 MovieClip Frame 24
stop();
_parent.dead = true;
Symbol 140 MovieClip Frame 31
stop();
_parent.dead = true;
Symbol 140 MovieClip Frame 36
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 41
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 46
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 51
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 56
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 61
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 66
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 71
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 140 MovieClip Frame 77
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 143 MovieClip [enemyDaggers] Frame 1
stop();
Instance of Symbol 140 MovieClip "guts" in Symbol 143 MovieClip [enemyDaggers] Frame 1
onClipEvent (load) {
enemySpeed = 4;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((((!_root.hitting) && (this.hitTest(_root.hero.hitArea))) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
_parent.helmet.gotoAndStop(2);
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 5;
_root.score = _root.score - 5;
}
if ((((!_root.hitting) && ((_root.hero._x - _parent._x) < -10)) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.hp = _parent.hp - 5;
if (_parent.hp < 0) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
}
}
} else if ((((!_root.hitting) && ((_root.hero._x - _parent._x) > 10)) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.hp = _parent.hp - 5;
if (_parent.hp < 0) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
}
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
_parent.helmet.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.helmet.gotoAndStop(3);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Instance of Symbol 142 MovieClip in Symbol 143 MovieClip [enemyDaggers] Frame 1
onClipEvent (enterFrame) {
this._xscale = _parent.hp / 4;
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
play();
Symbol 149 MovieClip Frame 13
_parent.hitting = false;
Symbol 150 MovieClip Frame 1
stop();
tailHit = false;
Symbol 150 MovieClip Frame 5
stop();
Symbol 150 MovieClip Frame 9
stop();
Symbol 150 MovieClip Frame 13
stop();
Symbol 150 MovieClip Frame 18
stop();
Symbol 150 MovieClip Frame 24
stop();
_parent.dead = true;
Symbol 150 MovieClip Frame 31
stop();
_parent.dead = true;
Symbol 150 MovieClip Frame 36
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 41
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 46
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 51
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 56
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 61
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 66
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 71
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 150 MovieClip Frame 77
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 3
stop();
Symbol 154 MovieClip [enemyGuard] Frame 1
stop();
Instance of Symbol 150 MovieClip "guts" in Symbol 154 MovieClip [enemyGuard] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((((!_root.hitting) && (this.hitTest(_root.hero.hitArea))) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
_parent.helmet.gotoAndStop(2);
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 5;
_root.score = _root.score - 5;
}
if ((((!_root.hitting) && ((_root.hero._x - _parent._x) < -10)) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.hp = _parent.hp - 5;
if (_parent.hp < 0) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
}
}
} else if ((((!_root.hitting) && ((_root.hero._x - _parent._x) > 10)) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.hp = _parent.hp - 5;
if (_parent.hp < 0) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
}
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
_parent.helmet.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.helmet.gotoAndStop(3);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Instance of Symbol 142 MovieClip in Symbol 154 MovieClip [enemyGuard] Frame 1
onClipEvent (enterFrame) {
this._xscale = _parent.hp / 4;
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
stop();
Symbol 160 MovieClip Frame 3
stop();
Symbol 161 MovieClip [enemy4] Frame 1
stop();
Instance of Symbol 132 MovieClip "guts" in Symbol 161 MovieClip [enemy4] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((((!_root.hitting) && (this.hitTest(_root.hero.hitArea))) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 1)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.helmet.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 1)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.helmet.gotoAndStop(3);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
_parent.helmet.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.helmet.gotoAndStop(3);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
stop();
Instance of Symbol 132 MovieClip "guts" in Symbol 164 MovieClip [enemy3] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((this.hitTest(_root.hero.hitArea) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 2)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.head.gotoAndStop(3);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 2)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.head.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
_parent.head.gotoAndStop(2);
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 165 MovieClip Frame 1
stop();
tailHit = false;
Symbol 165 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 9
stop();
Symbol 165 MovieClip Frame 13
stop();
Symbol 165 MovieClip Frame 18
stop();
Symbol 165 MovieClip Frame 24
stop();
_parent.dead = true;
Symbol 165 MovieClip Frame 31
stop();
_parent.dead = true;
Symbol 165 MovieClip Frame 36
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 41
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 46
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 51
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 56
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 61
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 66
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 71
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Symbol 165 MovieClip Frame 77
stop();
_parent.dead = true;
_root.score = _root.score + 100;
Instance of Symbol 165 MovieClip "guts" in Symbol 166 MovieClip [boss] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
_parent.guts.helmet.gotoAndStop(1);
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((this.hitTest(_root.hero.hitArea) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
}
if ((_root.hero._x - _parent._x) < -10) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((_root.hero._x - _parent._x) > 10) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
}
}
}
Instance of Symbol 132 MovieClip "guts" in Symbol 167 MovieClip [enemy] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
_parent.dead = false;
}
onClipEvent (enterFrame) {
_parent.guts.helmet.gotoAndStop(1);
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((((!_root.hitting) && (this.hitTest(_root.hero.hitArea))) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if ((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
stop();
Instance of Symbol 132 MovieClip "guts" in Symbol 170 MovieClip [enemy2] Frame 1
onClipEvent (load) {
enemySpeed = (Math.random() * _root.enemySpeed) + 1;
}
onClipEvent (enterFrame) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
i++;
}
if ((((((!_root.ground5.hitTest(_parent.block)) && (!_root.ground4.hitTest(_parent.block))) && (!_root.ground3.hitTest(_parent.block))) && (!_root.ground.hitTest(_parent.block))) && (!_root.ground2.hitTest(_parent.block))) && (!_root.ground1.hitTest(_parent.block))) {
_parent._y = _parent._y + 6;
enemy_falling = true;
if ((!dead) && (!tailHit)) {
_parent.guts.gotoAndPlay("fall");
}
if (((((_root.ground5.hitTest(_parent.block) || (_root.ground4.hitTest(_parent.block))) || (_root.ground3.hitTest(_parent.block))) || (_root.ground.hitTest(_parent._block))) || (_root.ground2.hitTest(_parent.block))) || (_root.ground1.hitTest(_parent.block))) {
enemy_falling = false;
if (!dead) {
_parent.guts.gotoAndStop("normal");
}
}
}
if (!tailHit) {
if (((((this.hitTest(_root.hero.hitArea) && (!dead)) && (!this.hitTest(_root.hero.gm.tail))) && (!this.hitTest(_root.hero.gm.attack.gun))) && (!_root.jumping)) && (!_root.swinging_up)) {
_root.hit_clip.gotoAndPlay(2);
_parent.guts.gotoAndStop("hit");
_root.hero.gm.gotoAndStop("hit");
hitting = true;
_root.hitting = true;
_root.hits = _root.hits - 1;
_root.score = _root.score - 5;
}
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x - enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = 100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.vest.gotoAndStop(2);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 4)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.vest.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x + 30;
_parent.hp = _parent.hp - 5;
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
_parent._x = _parent._x + enemySpeed;
_parent.guts.gotoAndPlay("run");
_parent.helmet.gotoAndStop(2);
_parent._xscale = -100 * _root.size_enemy;
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.vest.gotoAndStop(2);
_parent.guts.gotoAndStop("tail_hit");
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 4)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) {
_parent.vest.gotoAndStop(2);
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death" + _root.gun_phase);
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
} else if (!hitting) {
_parent.guts.gotoAndStop("normal");
_parent.vest.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_parent.guts.hitTest(_root.oneton.block) && (!_parent.dead)) {
_parent.guts.gotoAndStop("death4");
tailHit = true;
_parent.dead = true;
_root.killed = _root.killed - 1;
_parent._x = _parent._x - 30;
_parent.hp = _parent.hp - 5;
}
}
Symbol 173 MovieClip Frame 10
this.removeMovieClip();
Symbol 184 MovieClip Frame 42
_root.shooting = false;
_parent.removeMovieClip();
Symbol 186 MovieClip [bullet] Frame 1
stop();
Symbol 186 MovieClip [bullet] Frame 2
stop();
Symbol 186 MovieClip [bullet] Frame 5
stop();
Symbol 197 MovieClip [mage_glow] Frame 1
stop();
Symbol 197 MovieClip [mage_glow] Frame 33
_parent._parent.lightning_counter = 0;
Symbol 200 MovieClip Frame 1
_parent.tailHit = true;
Symbol 200 MovieClip Frame 40
_parent._parent.home = _parent._parent.home * -1;
_parent.tailHit = false;
_parent.gotoAndStop("normal");
Symbol 201 MovieClip Frame 1
play();
Symbol 201 MovieClip Frame 30
_root.score = _root.score + 2500;
_parent._parent.removeMovieClip();
stop();
_parent.removeMovieClip();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 6
stop();
Symbol 202 MovieClip Frame 12
stop();
Instance of Symbol 202 MovieClip "guts" in Symbol 203 MovieClip [mage2] Frame 1
onClipEvent (load) {
_parent.hp = 14;
_parent.home = 1;
dead = false;
_parent.lightning_counter = 0;
}
onClipEvent (enterFrame) {
if (_parent.home == 1) {
_parent._x = 100;
_parent._y = 300;
}
if (_parent.home == -1) {
_parent._x = 450;
_parent._y = 100;
}
if (!tailHit) {
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_parent.guts.gotoAndStop("death");
_root.killed = _root.killed - 1;
}
}
if ((((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 2)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) && (!dead)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death");
}
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if ((((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 2)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) && (!dead)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.lightning_counter < 100) {
_parent.lightning_counter = _parent.lightning_counter + 1;
}
if (_parent.lightning_counter == 60) {
_root.attachMovie("mage_blast2", "mage_blast12", 1002);
_root.mage_blast12._x = _root.hero._x;
_root.mage_blast12._y = _root.hero._y;
_parent.guts.glow.gotoAndPlay(2);
}
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
_parent.tailHit = true;
Symbol 212 MovieClip Frame 40
_parent._parent.home = _parent._parent.home * -1;
_parent.tailHit = false;
_parent.gotoAndStop("normal");
Symbol 213 MovieClip Frame 1
play();
Symbol 213 MovieClip Frame 30
_root.score = _root.score + 2500;
_parent._parent.removeMovieClip();
stop();
_parent.removeMovieClip();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 12
stop();
Instance of Symbol 214 MovieClip "guts" in Symbol 215 MovieClip [mage] Frame 1
onClipEvent (load) {
_parent.hp = 14;
_parent.home = 1;
dead = false;
_parent.lightning_counter = 0;
}
onClipEvent (enterFrame) {
if (_parent.home == 1) {
_parent._x = 450;
_parent._y = 300;
}
if (_parent.home == -1) {
_parent._x = 100;
_parent._y = 100;
}
if (!tailHit) {
if ((((_root.hero._x - _parent._x) < -10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_parent.guts.gotoAndStop("death");
_root.killed = _root.killed - 1;
}
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) && (!dead)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death");
}
}
} else if ((((_root.hero._x - _parent._x) > 10) && ((_root.hero._y - _parent._y) < 90)) && ((_root.hero._y - _parent._y) > -90)) {
if (this.hitTest(_root.hero.gm.tail) && (!tailHit)) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (((((this.hitTest(_root.hero.gm.attack.gun) && (!tailHit)) && (_root.gun_phase != 9)) && (!((_root.gun_phase == 8) && (_root.fuel < 5)))) && (!((_root.gun_phase == 10) && (_root.laser_fuel < 9)))) && (!dead)) {
if ((!_parent.hp) < 1) {
_parent.guts.gotoAndStop("tail_hit");
_parent.hp = _parent.hp - 5;
_parent.lightning_counter = 0;
}
if (_parent.hp < 1) {
dead = true;
_root.killed = _root.killed - 1;
_parent.guts.gotoAndStop("death");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.lightning_counter < 100) {
_parent.lightning_counter = _parent.lightning_counter + 1;
}
if (_parent.lightning_counter == 90) {
_root.attachMovie("mage_blast", "mage_blast1", 1000);
_root.mage_blast1._x = _root.hero._x;
_root.mage_blast1._y = _root.hero._y;
_parent.guts.glow.gotoAndPlay(2);
}
}
Instance of Symbol 61 MovieClip "block" in Symbol 224 MovieClip [mage_blast2] Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!_root.hitting)) {
_root.hit_clip.gotoAndPlay(2);
_root.hitting = true;
_root.hero.gm.gotoAndStop("hit");
_root.hits = _root.hits - 10;
_root.score = _root.score - 5;
}
}
Symbol 224 MovieClip [mage_blast2] Frame 45
this.removeMovieClip();
Symbol 227 MovieClip [weaponsUpgrade] Frame 1
stop();
_root.collect = _root.collect + 1;
Symbol 227 MovieClip [weaponsUpgrade] Frame 2
stop();
_root.collect = _root.collect - 1;
Symbol 233 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
Symbol 277 MovieClip Frame 2
Symbol 277 MovieClip Frame 3
Symbol 277 MovieClip Frame 4
gotoAndPlay (1);
Symbol 278 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 31
stop();
Symbol 297 MovieClip [silencer] Frame 1
stop();
Symbol 297 MovieClip [silencer] Frame 2
stop();
Instance of Symbol 251 MovieClip in Symbol 297 MovieClip [silencer] Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(65) || (Key.isDown(81))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 262 MovieClip in Symbol 297 MovieClip [silencer] Frame 4
onClipEvent (enterFrame) {
if (_root.attacking) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 278 MovieClip in Symbol 297 MovieClip [silencer] Frame 8
onClipEvent (enterFrame) {
if ((Key.isDown(65) || (Key.isDown(81))) && (_root.fuel > 0)) {
_root.fuel = _root.fuel - 1;
}
if ((Key.isDown(65) || (Key.isDown(81))) && (_root.fuel > 10)) {
this.gotoAndStop(2);
} else if ((!(Key.isDown(65) || (Key.isDown(81)))) && (_root.fuel < 11)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 287 MovieClip in Symbol 297 MovieClip [silencer] Frame 10
onClipEvent (enterFrame) {
if (((Key.isDown(65) || (Key.isDown(81))) && (_root.batteries > 0)) && (!_root.onetoning)) {
_root.oneton.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if ((!(Key.isDown(65) || (Key.isDown(81)))) && (_root.laser_fuel < 11)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 61 MovieClip "block" in Symbol 305 MovieClip [mage_blast] Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!_root.hitting)) {
_root.hit_clip.gotoAndPlay(2);
_root.hitting = true;
_root.hero.gm.gotoAndStop("hit");
_root.hits = _root.hits - 10;
_root.score = _root.score - 5;
}
}
Symbol 305 MovieClip [mage_blast] Frame 45
this.removeMovieClip();
Symbol 1385 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
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 _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.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 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_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 _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_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 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();
}};
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_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 = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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) {
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
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);
}
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++;
}
}
return(_local4);
}
}
Symbol 1386 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function getVersion() {
return("1.2");
}
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";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_container == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_container != undefined) {
_container.removeMovieClip();
delete _container;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip.createEmptyMovieClip("__mochiservicesMC", clip.getNextHighestDepth());
} else {
_container = _root.createEmptyMovieClip("__mochiservicesMC", _root.getNextHighestDepth());
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
if (!isNetworkAvailable) {
return(undefined);
}
allowDomains(_gatewayURL);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
}
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.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.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];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
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 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._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 (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:_rcvChannel._nextcallbackID});
} else {
if ((_container == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 1387 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip.__mochiservicesMC != mochi.MochiServices.__get__clip()) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
if (mochi.MochiServices.__get__clip() == _root.__mochiservicesMC) {
mochi.MochiServices.__get__clip()._parent.play();
} else {
mochi.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.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 311 Button
on (release) {
getURL ("http://www.glowmonkey.com", "_blank");
}
Symbol 328 Button
on (release) {
getURL ("http://www.glowmonkey.com", "_blank");
}
Symbol 337 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 10
stop();
Symbol 350 Button
on (release) {
gotoAndPlay (123);
}
Symbol 352 Button
on (release) {
getURL ("http://www.glowmonkey.com", "_blank");
}
Symbol 356 Button
on (release) {
getURL ("http://www.glowmonkey.com", "_blank");
}
Symbol 365 Button
on (release) {
gotoAndStop ("off");
}
Symbol 369 Button
on (release) {
gotoAndPlay ("on");
}
Symbol 372 MovieClip Frame 2
gotoAndPlay (1);
Symbol 372 MovieClip Frame 5
stop();
stopAllSounds();
Symbol 380 MovieClip Frame 10
stop();
Symbol 381 Button
on (release) {
gotoAndStop (543);
}
Symbol 534 MovieClip Frame 9
_root.hero.gm.gotoAndStop("normal");
Symbol 543 Button
on (release) {
_root.lives = 3;
gotoAndStop (544);
}
Symbol 589 MovieClip Frame 10
stop();
Symbol 599 MovieClip Frame 1
_root.onetoning = true;
Symbol 599 MovieClip Frame 48
stop();
_root.onetoning = false;
_parent.gotoAndStop(1);
Symbol 600 MovieClip Frame 1
stop();
Instance of Symbol 599 MovieClip "levelScreen" in Symbol 600 MovieClip Frame 2
onClipEvent (enterFrame) {
this.level = _root.level;
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 15
_root.hit = false;
_root.hitting = false;
Symbol 605 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 5
_root.shooting = false;
Symbol 630 MovieClip Frame 40
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 2
stop();
Symbol 639 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 639 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun_phase == 8) {
_root.fuel_gauge.gotoAndStop(2);
}
if (_root.fuel < 100) {
_root.fuel = _root.fuel + 0.01;
}
}
onClipEvent (enterFrame) {
this._xscale = _root.fuel;
}
Symbol 639 MovieClip Frame 2
stop();
Symbol 641 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun_phase == 8) {
_root.fuel_gauge.gotoAndStop(2);
}
if (_root.fuel < 100) {
_root.fuel = _root.fuel + 0.01;
}
}
onClipEvent (enterFrame) {
this._xscale = _root.fuel;
}
Symbol 641 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 645 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun_phase == 10) {
_root.laser_fuel_gauge.gotoAndStop(2);
}
if (_root.laser_fuel < 100) {
_root.laser_fuel = _root.laser_fuel + 0.01;
}
}
onClipEvent (enterFrame) {
this._xscale = _root.laser_fuel;
}
Symbol 645 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun_phase == 9) {
_root.bullet_gauge.gotoAndStop(2);
}
}
Symbol 654 MovieClip Frame 2
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 2
stop();
Instance of Symbol 657 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 660 MovieClip "w1" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w2" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w3" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w4" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w5" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 4) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w6" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 5) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w7" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 6) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w8" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 7) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w9" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 8) {
this.gotoAndStop(2);
}
}
Instance of Symbol 660 MovieClip "w10" in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapons > 9) {
this.gotoAndStop(2);
}
}
Symbol 671 MovieClip Frame 132
gotoAndPlay ("bop");
Symbol 806 MovieClip Frame 1
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 806 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 806 MovieClip Frame 8
_root.hit = false;
_root.hitting = false;
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 913 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 913 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 913 MovieClip Frame 13
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 913 MovieClip Frame 23
play();
Symbol 913 MovieClip Frame 32
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 937 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 937 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 937 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 937 MovieClip Frame 37
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 937 MovieClip Frame 38
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 937 MovieClip Frame 39
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 937 MovieClip Frame 47
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1009 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1009 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 11
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1009 MovieClip Frame 13
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1009 MovieClip Frame 23
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 24
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 25
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 26
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1009 MovieClip Frame 32
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 32
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1009 MovieClip Frame 33
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1037 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1037 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1037 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(4);
}
Symbol 1037 MovieClip Frame 23
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1037 MovieClip Frame 24
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1037 MovieClip Frame 25
onClipEvent (enterFrame) {
this.gotoAndStop(4);
}
Symbol 1037 MovieClip Frame 33
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1070 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1070 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1070 MovieClip Frame 7
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1070 MovieClip Frame 9
play();
Symbol 1070 MovieClip Frame 18
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1126 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1126 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] in Symbol 1126 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Instance of Symbol 297 MovieClip [silencer] in Symbol 1126 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1126 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Symbol 1126 MovieClip Frame 13
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1126 MovieClip Frame 23
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1126 MovieClip Frame 23
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1126 MovieClip Frame 25
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1126 MovieClip Frame 26
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Symbol 1126 MovieClip Frame 32
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1126 MovieClip Frame 32
onClipEvent (enterFrame) {
this.gotoAndStop(6);
}
Symbol 1195 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1195 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 11
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1195 MovieClip Frame 13
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1195 MovieClip Frame 23
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 24
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 25
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 26
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1195 MovieClip Frame 32
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 32
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1195 MovieClip Frame 33
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1219 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1219 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1219 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1219 MovieClip Frame 37
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1219 MovieClip Frame 38
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1219 MovieClip Frame 39
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1219 MovieClip Frame 47
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1243 MovieClip Frame 1
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Symbol 1243 MovieClip Frame 2
if (_root.jumping) {
gotoAndPlay ("jumping");
}
play();
Instance of Symbol 297 MovieClip [silencer] "gun" in Symbol 1243 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun_phase);
}
Symbol 1243 MovieClip Frame 37
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1243 MovieClip Frame 38
play();
Symbol 1243 MovieClip Frame 47
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1244 MovieClip Frame 1
stop();
_root.hit = false;
_root.slamming = false;
_root.swinging = false;
_root.peeling = false;
_root.swinging_up = false;
Symbol 1244 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 12
stop();
Symbol 1244 MovieClip Frame 19
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 23
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 29
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 34
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 39
Symbol 1244 MovieClip Frame 40
Symbol 1244 MovieClip Frame 41
Symbol 1244 MovieClip Frame 42
_root.swinging = false;
_root.hero._x = _root.hero._x + ((120 * _root.hero._xscale) / 100);
_root.jumping = true;
Symbol 1244 MovieClip Frame 43
gotoAndPlay ("jump");
Symbol 1244 MovieClip Frame 58
_root.slamming = false;
Symbol 1244 MovieClip Frame 59
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 60
stop();
Symbol 1244 MovieClip Frame 67
_root.hit = false;
_root.hitting = false;
_root.attacking = false;
_root.hero.gm.gotoAndStop(1);
Symbol 1244 MovieClip Frame 72
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 78
gotoAndStop ("normal");
Symbol 1244 MovieClip Frame 79
play();
Symbol 1244 MovieClip Frame 80
play();
Symbol 1244 MovieClip Frame 81
_root.hero._y = _root.hero._y - 5;
Symbol 1244 MovieClip Frame 82
_root.hero._y = _root.hero._y - 5;
Symbol 1244 MovieClip Frame 83
_root.hero._y = _root.hero._y - 10;
Symbol 1244 MovieClip Frame 84
_root.hero._y = _root.hero._y - 10;
Symbol 1244 MovieClip Frame 85
_root.hero._y = _root.hero._y - 15;
Symbol 1244 MovieClip Frame 86
_root.swinging_up = false;
_root.hero._y = _root.hero._y - 15;
_root.jumping = true;
Symbol 1244 MovieClip Frame 87
gotoAndPlay ("jump");
Symbol 1244 MovieClip Frame 93
gotoAndStop ("normal");
Symbol 1245 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 2
stop();
Symbol 1253 MovieClip Frame 3
stop();
Symbol 1253 MovieClip Frame 4
stop();
Symbol 1282 MovieClip Frame 1
stop();
Symbol 1282 MovieClip Frame 2
_root.onetoning = true;
_root.batteries = _root.batteries - 1;
Symbol 1282 MovieClip Frame 74
_root.onetoning = false;
Symbol 1298 MovieClip Frame 1
stop();
Symbol 1298 MovieClip Frame 2
stop();
Symbol 1317 MovieClip Frame 1
stop();
Symbol 1317 MovieClip Frame 10
this.open = true;
_parent.open = true;
stop();
Symbol 1328 MovieClip Frame 1
stop();
_root.collect = _root.collect + 1;
Symbol 1328 MovieClip Frame 2
stop();
_root.collect = _root.collect - 1;
Symbol 1335 MovieClip Frame 1
stop();
_root.collect = _root.collect + 1;
Symbol 1335 MovieClip Frame 2
stop();
_root.collect = _root.collect - 1;
Symbol 1348 MovieClip Frame 1
stop();
Symbol 1348 MovieClip Frame 2
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 2
stop();
Symbol 1364 Button
on (release) {
if (_root.lives > 0) {
_root.hero._x = _root.portal_close._x;
_root.hero._y = _root.portal_close._y;
_root.jumping = false;
_root.falling = false;
_root.attacking = false;
_root.swinging = false;
_root.swinging_up = false;
_root.whipping = false;
gotoAndPlay(_root.level +543);
_root.hero._x = _root.portal_close._x;
_root.hero._y = _root.portal_close._y;
}
}
Symbol 1367 Button
on (release) {
_root.lives = 3;
gotoAndStop (122);
}
Symbol 1375 Button
on (release) {
_root.lives = 3;
gotoAndPlay (544);
}
Symbol 1378 Button
on (release) {
_root.gotoAndStop("highscores");
}