Frame 1
Object.FLEM = function () {
this._listener_array = [];
};
Object.FLEM.prototype.addFLEMListener = function (obj) {
var a = this._listener_array;
var found = false;
var i = a.length;
while (i--) {
if (a[i] == obj) {
found = true;
break;
}
}
if (found) {
return(false);
}
a.unshift(obj);
if (this.sendFLEMEvent == undefined) {
this.sendFLEMEvent = this._sendFLEMEvent;
}
return(true);
};
Object.FLEM.prototype.removeFLEMListener = function (obj) {
var a = this._listener_array;
var i = a.length;
while (i--) {
if (a[i] == obj) {
a.splice(i, 1);
break;
}
}
if (a.length == 0) {
this.sendFLEMEvent = undefined;
}
};
Object.FLEM.prototype._sendFLEMEvent = function (func_str, argObj) {
var a = this._listener_array;
var i = a.length;
while (i--) {
if (a[i] != undefined) {
a[i][func_str](argObj);
} else {
a.splice(i, 1);
}
}
};
Object.addStaticFLEM = function (obj) {
if (obj._listener_array == undefined) {
obj._listener_array = [];
obj._sendFLEMEvent = Object.FLEM.prototype._sendFLEMEvent;
obj.addFLEMListener = Object.FLEM.prototype.addFLEMListener;
obj.removeFLEMListener = Object.FLEM.prototype.removeFLEMListener;
}
};
Object.removeStaticFLEM = function (obj) {
delete obj._listener_array;
delete obj._sendFLEMEvent;
delete obj.addFLEMListener;
delete obj.removeFLEMListener;
};
Object.prototype.registerFLEM = function (objects, reg) {
if (objects.__proto__ == Array.prototype) {
var n = objects.length;
var i = 0;
while (i < n) {
if (reg == false) {
objects[i].removeFLEMListener(this);
} else {
objects[i].addFLEMListener(this);
}
i++;
}
}
};
ASSetPropFlags(Object.prototype, ["registerFLEM"], 1);
Object.addStaticFLEM(MovieClip);
Object.addStaticFLEM(Mouse);
Object.addStaticFLEM(Key);
if (_level0.flemEngine == undefined) {
_level0.attachMovie("flemEngine", "flemEngine", 8888);
if (_level0.flemEngine == undefined) {
trace("Cannot attach flemEngine! Make sure it is in the library.");
}
}
stop();
Loader = function (bar_mc) {
this.bar_mc = bar_mc;
MovieClip.addFLEMListener(this);
this.barMax = 147;
};
Loader.prototype.onEnterFrame = function () {
var ld = _parent._parent.getBytesLoaded();
var total = _parent._parent.getBytesTotal();
var percent = (ld / total);
this.bar_mc._width = percent * this.barMax;
if (percent == 1) {
_parent._parent.wipe_mc.gotoAndPlay(2);
this.remove();
}
};
Loader.prototype.remove = function () {
MovieClip.removeFLEMListener(this);
};
var loaderObj = new Loader(load_mc.bar_mc);
Frame 2
function initSounds() {
bg_snd = new Sound();
bg_snd.attachSound("bg_music");
punch1_snd = new Sound();
punch1_snd.attachSound("punch_1");
punch2_snd = new Sound();
punch2_snd.attachSound("punch_2");
punch3_snd = new Sound();
punch3_snd.attachSound("punch_3");
bell_snd = new Sound();
bell_snd.attachSound("bell_snd");
block_snd = new Sound();
block_snd.attachSound("block");
knockdown_snd = new Sound();
knockdown_snd.attachSound("knockdown");
swing_snd = new Sound();
swing_snd.attachSound("swing");
swing2_snd = new Sound();
swing2_snd.attachSound("swing2");
yell_left_snd = new Sound();
yell_left_snd.attachSound("wade_yell_left");
yell_right_snd = new Sound();
yell_right_snd.attachSound("wade_yell_right");
}
if (instructions == 1) {
wipe_mc.gotoAndPlay("instructions");
}
if (replay == 1) {
screen_mc.gotoAndStop("vs");
} else {
initSounds();
bg_snd.start(0, 999);
}
delete loaderObj;
stop();
Frame 4
delete keyCapObj;
delete tribalCtrlObj;
delete hudCtrlObj;
delete wadeCtrlOb;
stop();
fighterMover = function (wade_mc, tribal_mc, hud_mc, fight_mc) {
this.wade_mc = wade_mc;
this.hud_mc = hud_mc;
this.tribal_mc = tribal_mc;
this.fight_mc = fight_mc;
MovieClip.addFLEMListener(this);
this.state = 1;
};
fighterMover.prototype.onEnterFrame = function () {
if (this.state == 1) {
if (this.wade_mc._x < 8) {
this.wade_mc._x = this.wade_mc._x + 10;
this.tribal_mc._x = this.tribal_mc._x - 10;
} else {
this.fight_mc._y = -64;
this.hud_mc.wade_health_mc.gotoAndStop(4);
this.hud_mc.tribal_health_mc.gotoAndStop(4);
this.state++;
}
}
if (this.state == 2) {
if (this.hud_mc._y < 4) {
this.hud_mc._y = this.hud_mc._y + 4;
} else {
this.count = 0;
this.state++;
}
}
if (this.state == 3) {
if (this.count >= 31) {
this.fight_mc._y = 500;
this.state++;
_parent._parent.gotoAndStop("fight");
} else {
this.count++;
}
}
};
var moveObj = new fighterMover(wade_mc, tribal_mc, hud_mc, wipe_mc.fight_txt_mc);
Frame 5
delete moveObj;
stop();
KeyCap = function (length) {
this.base = Object.FLEM;
this.base();
delete this.base;
Key.addFLEMListener(this);
};
KeyCap.prototype.__proto__ = Object.FLEM.prototype;
KeyCap.prototype.onKeyDown = function () {
var k = Key.getCode();
if (!this.keyLock) {
if ((this.wadeDown != 1) && (this.tribalDown != 1)) {
switch (k) {
case 37 :
this.sendFLEMEvent("padleft");
break;
case :
this.sendFLEMEvent("padRight");
break;
case :
this.sendFLEMEvent("padUp");
break;
case :
this.sendFLEMEvent("padDown");
break;
case :
this.sendFLEMEvent("lBtn");
break;
case :
this.sendFLEMEvent("rBtn");
break;
case :
this.sendFLEMEvent("bBtn");
break;
case :
this.sendFLEMEvent("aBtn");
}
} else {
this.sendFLEMEvent("buildHealth", k);
}
}
};
KeyCap.prototype.onKeyUp = function () {
this.sendFLEMEvent("resetKeyUp", this.wadeDown);
};
KeyCap.prototype.removeLstner = function () {
Key.removeFLEMListener(this);
};
WadeCtrl = function (key, mc, opp_mc, hud_obj) {
this.key = key;
this.key.addFLEMListener(this);
this.mc = mc;
this.mc.status = 0;
this.opp_mc = opp_mc;
this.hud_obj = hud_obj;
};
WadeCtrl.prototype.resetKeyUp = function (wadeDown) {
if (wadeDown != 1) {
this.keyLock = 0;
if (this.upLock == 1) {
this.upLock = 0;
if (!this.hiHitLock) {
this.mc.gotoAndStop(1);
}
}
if (this.hiHitLock == 1) {
this.hiHitLock = 0;
}
if (this.downLock == 1) {
this.downLock = 0;
this.mc.gotoAndStop(1);
}
} else {
this.mc.wade_fallen_lock = 0;
}
};
WadeCtrl.prototype.turnOnKeyLock = function () {
this.keyLock = 1;
};
WadeCtrl.prototype.padLeft = function () {
if ((this.mc._currentframe == 1) && (!this.keyLock)) {
this.mc.status = 4;
this.turnOnKeyLock();
this.mc.gotoAndStop("left_dodge");
this.hud_obj.moveBG(1, 1);
}
};
WadeCtrl.prototype.padRight = function () {
if ((this.mc._currentframe == 1) && (!this.keyLock)) {
this.mc.status = 5;
this.turnOnKeyLock();
this.mc.gotoAndStop("right_dodge");
this.hud_obj.moveBG(-1, 1);
}
};
WadeCtrl.prototype.padUp = function () {
this.upLock = 1;
if (this.mc._currentframe == 1) {
this.mc.status = 2;
this.mc.gotoAndStop("block_high");
}
};
WadeCtrl.prototype.padDown = function () {
this.downLock = 1;
if (this.mc._currentframe == 1) {
this.mc.status = 3;
this.mc.gotoAndStop("block_low");
}
};
WadeCtrl.prototype.bBtn = function () {
if (!this.keyLock) {
this.turnOnKeyLock();
if (this.upLock) {
this.hiHitLock = 1;
this.mc.gotoAndStop("high_jab_left");
} else if (this.mc._currentframe == 1) {
this.mc.gotoAndStop("low_jab_left2");
}
}
};
WadeCtrl.prototype.aBtn = function () {
if (!this.keyLock) {
this.turnOnKeyLock();
if (this.upLock) {
this.hiHitLock = 1;
this.mc.gotoAndStop("high_jab_right");
} else if (this.mc._currentframe == 1) {
this.mc.gotoAndStop("low_jab_right2");
}
}
};
WadeCtrl.prototype.lBtn = function () {
if ((this.mc._currentframe == 1) && (!this.keyLock)) {
this.turnOnKeyLock();
this.mc.gotoAndStop("hook");
}
};
WadeCtrl.prototype.rBtn = function () {
if ((this.mc._currentframe == 1) && (!this.keyLock)) {
this.turnOnKeyLock();
this.mc.gotoAndStop("uppercut");
}
};
WadeCtrl.prototype.hitWade = function (direction) {
switch (direction) {
case 1 :
if (this.mc.status != 5) {
if (this.mc.status == 2) {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("high_block_impact");
} else {
this.hud_obj.moveBG(1);
this.mc.gotoAndStop("hit_reaction_high_left");
this.hud_obj.hitWade(20, 1);
}
} else {
this.swing();
}
return;
case :
if (this.mc.status != 4) {
if (this.mc.status == 2) {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("high_block_impact");
} else {
this.hud_obj.moveBG(-1);
this.mc.gotoAndStop("hit_reaction_high_right");
this.hud_obj.hitWade(20, 1);
}
} else {
this.swing();
}
return;
case :
if (this.mc.status != 5) {
if (this.mc.status == 3) {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("low_block_impact");
} else {
this.hud_obj.moveBG(1);
this.mc.gotoAndStop("hit_reaction_low");
this.hud_obj.hitWade(15, -1);
}
} else {
this.swing("lo");
}
}
};
WadeCtrl.prototype.swing = function (lohi) {
if (lohi == "lo") {
_parent._parent.swing_snd.start();
} else {
_parent._parent.swing2_snd.start();
}
};
WadeCtrl.prototype.buildHealth = function (k) {
this.hud_obj.buildHealth(k);
};
TribalCtrl = function (mc) {
this.mc = mc;
MovieClip.addFLEMListener(this);
this.mc.openLimit = 62;
this.mc.openTimer = 0;
this.timerInit();
this.apeShitLimit = 155;
};
TribalCtrl.prototype.timerInit = function () {
this.mc.status = 0;
this.timer = 0;
if (this.apeShit != 1) {
this.timeLimit = ((random(2) * 12) + 1) + 31;
} else {
this.timeLimit = 0;
}
};
TribalCtrl.prototype.onEnterFrame = function () {
if ((this.idle != 1) && (this.mc.status != 3)) {
if ((this.mc._currentFrame == 1) && (this.mc.status != 0)) {
this.timerInit();
}
if (this.mc.status == 0) {
this.timer++;
if (this.timer >= this.timeLimit) {
this.attack();
}
}
if (this.mc.status == 4) {
if (this.mc.openTimer < this.mc.openLimit) {
this.mc.openTimer++;
} else {
this.mc.openTimer = 0;
this.mc.gotoAndStop(1);
this.mc.status = 1;
}
}
}
if (this.apeshit == 1) {
if (this.apeShitCount < this.apeShitLimit) {
this.apeShitCount++;
} else {
this.apeshit = 0;
}
}
};
TribalCtrl.prototype.attack = function () {
this.mc.status = 1;
var r = (random(6) + 2);
this.mc.gotoAndStop(r);
};
TribalCtrl.prototype.block = function () {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("high_block");
};
TribalCtrl.prototype.hitTribal = function (direction) {
if ((this.mc.status == 0) || (this.mc.status == 4)) {
if (direction == 0) {
var r = random(4);
if ((r == 0) || (this.mc.status == 4)) {
_parent._parent.hudCtrlObj.hitTribal(6, 1);
if (this.mc.status != 4) {
this.mc.status = 3;
}
this.mc.gotoAndStop("hit_reaction_high_left");
} else {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("high_block");
}
}
if ((direction == 1) || (direction == 4)) {
var r = random(4);
if ((r == 0) || (this.mc.status == 4)) {
if ((direction == 4) && (this.mc.status == 4)) {
this.mc.status = 3;
}
_parent._parent.hudCtrlObj.hitTribal(6, 2);
if (this.mc.status != 4) {
this.mc.status = 3;
}
this.mc.gotoAndStop("hit_reaction_high_right");
} else {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("high_block");
}
}
if (direction == 2) {
var r = random(4);
if ((r == 0) || (this.mc.status == 4)) {
_parent._parent.hudCtrlObj.hitTribal(4, 3);
if (this.mc.status != 4) {
this.mc.status = 3;
}
this.mc.gotoAndStop("hit_reaction_low");
} else {
_parent._parent.block_snd.start();
this.mc.gotoAndStop("low_block");
}
}
}
};
TribalCtrl.prototype.stand = function () {
this.idle = 1;
this.mc.gotoAndStop("standing");
};
TribalCtrl.prototype.onMat = function (hilo) {
this.idle = 1;
_parent._parent.knockdown_snd.start();
if ((hilo == 1) || (hilo == 2)) {
this.mc.gotoAndStop("fall_high");
} else {
this.mc.gotoAndStop("fall_low");
}
this.startTimer();
};
TribalCtrl.prototype.startTimer = function () {
this.tribal_timer = 0;
switch (this.tribal_ko) {
case 1 :
this.tribal_timeLimit = 93 + random(155);
return;
case :
this.tribal_timeLimit = 124 + random(155);
return;
case :
this.tribal_timeLimit = 0;
}
};
HudCtrl = function (ring_mc, bg_mc, wade_health_mc, tribal_health_mc, wade_mc, tribal_obj, keyCap_obj, ref_mc, wipe_mc, hud_mc) {
this.ring_mc = ring_mc;
this.bg_mc = bg_mc;
MovieClip.addFLEMListener(this);
this.bgPosition = 0;
this.bgMove = 0;
this.health_mc_width_max = 184;
this.wade_health = 100;
this.tribal_health = 100;
this.wade_health_mc = wade_health_mc;
this.tribal_health_mc = tribal_health_mc;
this.wade_health_mc.gotoAndStop(4);
this.tribal_health_mc.gotoAndStop(4);
this.fallCount = 0;
this.wade_mc = wade_mc;
this.tribal_obj = tribal_obj;
this.keyCap_obj = keyCap_obj;
this.ref_mc = ref_mc;
this.wade_ko = 0;
this.tribal_obj.tribal_ko = 0;
this.wipe_mc = wipe_mc;
this.timer = 90;
this.timerPause = 0;
this.timeCount = 0;
this.frameRate = 31;
this.hud_mc = hud_mc;
};
HudCtrl.prototype.onEnterFrame = function () {
if (this.bgMove == 1) {
if (0 < this.bgMoveCount) {
this.bgMoveCount--;
this.bg_mc._x = this.bg_mc._x + (this.bgMoveDirection * 5.6);
this.ring_mc._x = this.ring_mc._x + (this.bgMoveDirection * 13);
} else if (this.bgHoldTime) {
this.bgHoldTime--;
} else if (this.snapBack) {
this.bgPosition = this.bgPosition + this.bgMoveDirection;
this.bgMoveCount = 5;
this.bgMoveDirection = -this.bgMoveDirection;
this.snapBack = 0;
} else {
this.bgPosition = this.bgPosition + this.bgMoveDirection;
this.bgMove = 0;
}
}
if (this.wade_health_move != 0) {
this.health_meter_update(this.wade_health_mc, this.wade_health, "wade", this.wade_health_move);
}
if (this.tribal_health_move != 0) {
this.health_meter_update(this.tribal_health_mc, this.tribal_health, "tribal", this.tribal_health_move);
}
if (0 < this.fallCount) {
this.fallCount--;
this.bg_mc._y = this.bg_mc._y - 16;
this.ring_mc._y = this.ring_mc._y - 32;
this.tribal_obj.mc._y = this.tribal_obj.mc._y - 28;
if (this.keyCap_obj.tribalDown == 1) {
this.wade_mc._y = this.wade_mc._y - 32;
}
}
if (0 < this.riseCount) {
this.riseCount--;
this.bg_mc._y = this.bg_mc._y + 16;
this.ring_mc._y = this.ring_mc._y + 32;
this.tribal_obj.mc._y = this.tribal_obj.mc._y + 28;
if (this.keyCap_obj.tribalDown == 1) {
this.wade_mc._y = this.wade_mc._y + 32;
}
if ((this.keyCap_obj.tribalDown != 1) && (this.fightOver == 1)) {
this.wade_mc._y = this.wade_mc._y + 35;
}
if ((this.riseCount == 0) && (this.fightOver != 1)) {
if (this.keyCap_obj.tribalDown != 1) {
this.resetFight();
} else {
this.tribal_obj.mc.gotoAndStop("getup");
this.tribal_getup_wait = 15;
}
}
}
if (0 < this.tribal_getup_wait) {
this.tribal_getup_wait--;
if (this.tribal_getup_wait == 0) {
this.resetFight();
}
}
if (0 < this.wade_fall_wait) {
this.wade_fall_wait--;
if (this.wade_fall_wait == 0) {
this.wade_fallDown(this.wade_hilo);
}
}
if (0 < this.tribal_fall_wait) {
this.tribal_fall_wait--;
if (this.tribal_fall_wait == 0) {
this.tribal_fallDown(this.tribal_hilo);
}
}
if (0 < this.tribal_obj.tribal_timeLimit) {
this.tribal_obj.tribal_timer++;
if (this.tribal_obj.tribal_timer >= this.tribal_obj.tribal_timeLimit) {
this.tribal_obj.tribal_timeLimit = 0;
this.tribal_getUp();
}
}
if (0 < this.tribal_hiCount) {
this.tribal_hiCount--;
if (this.tribal_hiCount == 0) {
this.fallCount = 10;
}
}
if (this.timerPause != 1) {
this.timeCount++;
if (this.timeCount >= this.frameRate) {
this.timeCount = 0;
this.timer--;
this.hud_mc.timer = this.timer;
if (this.timer == 0) {
this.timerPause = 1;
this.timeUp();
}
}
}
if (0 < this.endGameCount) {
this.endGameCount--;
if (this.wade_health < this.tribal_health) {
this.wade_mc._y = this.wade_mc._y + 40;
}
if (this.endGameCount == 0) {
if (this.wade_health >= this.tribal_health) {
this.wipe_mc.gotoAndPlay("wade");
} else {
this.wipe_mc.gotoAndPlay("tribal");
}
}
}
};
HudCtrl.prototype.timeUp = function () {
_parent._parent.knockdown_snd.start();
this.tribal_obj.idle = 1;
if (this.wade_health >= this.tribal_health) {
this.tribal_obj.mc.gotoAndStop("fall_low");
this.wade_mc.gotoAndStop("victory");
this.keyCap_obj.tribalDown = 1;
this.ref_mc.gotoAndPlay("win");
} else {
this.tribal_obj.mc.gotoAndStop("victory");
this.wade_mc.gotoAndStop("fall_low");
this.keyCap_obj.wadeDown = 1;
this.ref_mc.gotoAndPlay("lose");
}
this.endGameCount = 40;
};
HudCtrl.prototype.moveBG = function (direction, snapBack) {
if (this.bgMove == 0) {
this.bgMoveCount = 5;
this.bgMoveDirection = direction;
if (this.bgPosition != (this.bgMoveDirection * 5)) {
this.bgMove = 1;
}
this.snapBack = snapBack;
if (this.snapBack) {
this.bgHoldTime = 2;
}
}
};
HudCtrl.prototype.hitWade = function (amount, hilo) {
this.wade_health_move = -1;
this.wade_health = this.wade_health - amount;
if (0 >= this.wade_health) {
this.wade_health = 0;
this.wade_fall_wait = 10;
this.wade_hilo = hilo;
}
var r = (random(2) + 1);
_parent._parent[("punch" + r) + "_snd"].start();
if (r == 1) {
_parent._parent.yell_left_snd.start();
} else {
_parent._parent.yell_right_snd.start();
}
};
HudCtrl.prototype.hitTribal = function (amount, hilo) {
this.tribal_obj.apeShit = 1;
this.tribal_obj.apeShitCount = 0;
this.tribal_health_move = -1;
this.tribal_health = this.tribal_health - amount;
if (0 >= this.tribal_health) {
this.tribal_health = 0;
this.tribal_fall_wait = 10;
this.tribal_hilo = hilo;
}
var r = (random(2) + 1);
_parent._parent[("punch" + r) + "_snd"].start();
};
HudCtrl.prototype.wade_fallDown = function (hilo) {
this.timerPause = 1;
this.wade_ko++;
_parent._parent.knockdown_snd.start();
if (hilo == 1) {
this.wade_mc.gotoAndStop("fall_high");
} else {
this.wade_mc.gotoAndStop("fall_low");
}
this.ref_mc.count = "";
this.ref_mc.gotoAndPlay(2);
this.fallCount = 10;
this.keyCap_obj.wadeDown = 1;
this.tribal_obj.stand();
};
HudCtrl.prototype.tribal_fallDown = function (hilo) {
this.timerPause = 1;
this.tribal_obj.tribal_ko++;
this.tribal_obj.onMat(hilo);
this.ref_mc.count = "";
this.ref_mc.gotoAndPlay(2);
if ((hilo == 1) || (hilo == 2)) {
this.tribal_hiCount = 10;
} else {
this.fallCount = 10;
}
this.keyCap_obj.tribalDown = 1;
this.wade_mc.gotoAndStop("standing");
};
HudCtrl.prototype.wade_getUp = function () {
this.timerPause = 0;
this.wade_mc.gotoAndStop("getup");
this.ref_mc.gotoAndStop(1);
this.riseCount = 10;
};
HudCtrl.prototype.tribal_getUp = function () {
this.timerPause = 0;
this.tribal_health_move = 1;
this.tribal_health = 85;
this.ref_mc.gotoAndStop(1);
this.riseCount = 10;
};
HudCtrl.prototype.buildHealth = function (key) {
if (this.wade_mc.wade_fallen_lock != 1) {
this.wade_mc.wade_fallen_lock = 1;
var max_health = 85;
if (this.wade_health < max_health) {
switch (this.wade_ko) {
case 1 :
var delta = 2;
break;
case :
var delta = 1;
break;
default :
var delta = 0.8;
}
if ((((((((key == 88) || (key == 65)) || (key == 83)) || (key == 90)) || (key == 37)) || (key == 38)) || (key == 39)) || (key == 40)) {
this.wade_health_move = 1;
if (this.wade_health < 100) {
this.wade_health = this.wade_health + delta;
} else {
this.wade_health = 100;
}
if (this.wade_health >= max_health) {
this.wade_getUp();
}
}
}
}
};
HudCtrl.prototype.resetFight = function () {
this.tribal_obj.apeShit = 1;
this.keyCap_obj.wadeDown = 0;
this.keyCap_obj.tribalDown = 0;
this.tribal_obj.idle = 0;
this.tribal_obj.mc.gotoAndStop(1);
this.tribal_obj.mc.status = 0;
this.wade_mc.gotoAndStop(1);
};
HudCtrl.prototype.endFight = function () {
if (this.keyCap_obj.tribalDown == 1) {
this.wade_mc.gotoAndStop("victory");
this.wade_mc._alpha = 100;
this.wipe_mc.gotoAndPlay("wade");
} else {
this.tribal_obj.mc.gotoAndStop("victory");
this.wipe_mc.gotoAndPlay("tribal");
}
this.fightOver = 1;
this.riseCount = 10;
};
HudCtrl.prototype.health_meter_update = function (health_mc, health, char, dir) {
var per_a = Math.round((health_mc._width / this.health_mc_width_max) * 100);
var per_b = Math.round(health);
if ((char == "wade") && (dir == 1)) {
var delta = 2;
} else {
var delta = 6;
}
if ((delta < Math.abs(per_a - per_b)) || (health == 0)) {
if (per_b < per_a) {
var delta = (-delta);
}
health_mc.gotoAndStop(Math.ceil(health / 25));
if ((dir == -1) && (health_mc._width == 0)) {
} else {
health_mc._width = health_mc._width + delta;
}
if (0 >= health_mc._width) {
if (char == "wade") {
this.wade_health_move = 0;
} else {
this.tribal_health_move = 0;
}
}
} else if (char == "wade") {
this.wade_health_move = 0;
} else {
this.tribal_health_move = 0;
}
if ((Math.abs(delta) >= health_mc._width) && (delta < 0)) {
health_mc._width = 0;
}
};
var keyCapObj = new KeyCap();
var tribalCtrlObj = new TribalCtrl(tribal_mc);
var hudCtrlObj = new HudCtrl(ring_mc, bg_mc, hud_mc.wade_health_mc, hud_mc.tribal_health_mc, wade_mc, tribalCtrlObj, keyCapObj, ref_mc, wipe_mc, hud_mc);
var wadeCtrlObj = new WadeCtrl(keyCapObj, wade_mc, tribal_mc, hudCtrlObj);
Frame 6
if (replay == 1) {
gotoAndStop ("intro");
}
if (instructions == 1) {
gotoAndStop ("intro");
}
Instance of Symbol 12 MovieClip [flemEngineClip] in Symbol 13 MovieClip [flemEngine] Frame 1
onClipEvent (load) {
MovieClip.sendFLEMEvent("onLoad");
}
onClipEvent (enterFrame) {
MovieClip.sendFLEMEvent("onEnterFrame");
}
onClipEvent (mouseDown) {
Mouse.sendFLEMEvent("onMouseDown");
}
onClipEvent (mouseUp) {
Mouse.sendFLEMEvent("onMouseUp");
}
onClipEvent (keyDown) {
Key.sendFLEMEvent("onKeyDown");
}
onClipEvent (keyUp) {
Key.sendFLEMEvent("onKeyUp");
}
Instance of Symbol 23 MovieClip "bar_mc" in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
if (_parent.replay == 1) {
gotoAndPlay ("fight");
}
Symbol 38 MovieClip Frame 12
_parent.gotoAndStop("intro");
Symbol 38 MovieClip Frame 17
_parent.screen_mc.gotoAndStop("intro");
Symbol 38 MovieClip Frame 39
stop();
Symbol 38 MovieClip Frame 65
if (instructions == 1) {
instructions = 0;
_parent.screen_mc.gotoAndStop("instr");
gotoAndPlay ("instructions");
} else {
_parent.screen_mc.gotoAndStop("vs");
gotoAndStop ("begin");
}
Symbol 38 MovieClip Frame 66
_parent.gotoAndStop("beginFight");
Symbol 38 MovieClip Frame 80
stop();
Symbol 38 MovieClip Frame 90
stop();
Symbol 38 MovieClip Frame 110
_parent.screen_mc.gotoAndStop("vs");
gotoAndStop ("begin");
Symbol 38 MovieClip Frame 192
gotoAndPlay ("end");
Symbol 38 MovieClip Frame 254
gotoAndPlay ("end");
Symbol 38 MovieClip Frame 255
_parent.screen_mc.gotoAndStop("ending");
Symbol 38 MovieClip Frame 276
stop();
Symbol 38 MovieClip Frame 294
_parent.screen_mc.gotoAndStop("hide");
_parent.gotoAndStop("reset");
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 18
gotoAndPlay (2);
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 19
gotoAndPlay (2);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 18
gotoAndPlay (2);
Symbol 57 Button
on (rollOver) {
_parent.start_btn_mc.gotoAndPlay(2);
}
on (rollOut) {
_parent.start_btn_mc.gotoAndStop(1);
}
on (press) {
_parent.btn_mc._y = 500;
_parent._parent._parent.bell_snd.start();
_parent._parent._parent.wipe_mc.gotoAndPlay("begin_fade");
}
Symbol 58 Button
on (rollOver) {
_parent.instr_btn_mc.gotoAndPlay(2);
}
on (rollOut) {
_parent.instr_btn_mc.gotoAndStop(1);
}
on (press) {
_parent.btn_mc._y = 500;
_parent._parent._parent.wipe_mc.instructions = 1;
_parent._parent._parent.wipe_mc.gotoAndPlay("begin_fade");
}
Symbol 59 Button
on (rollOver) {
_parent.site_btn_mc.gotoAndPlay(2);
}
on (rollOut) {
_parent.site_btn_mc.gotoAndStop(1);
}
on (press) {
getURL ("http://www.wadehixton.com", "_blank");
}
Symbol 61 MovieClip Frame 27
stop();
Symbol 72 MovieClip Frame 37
_parent._parent.punch1_snd.start();
Symbol 72 MovieClip Frame 58
_parent._parent.punch2_snd.start();
Symbol 72 MovieClip Frame 77
_parent._parent.punch3_snd.start();
Symbol 72 MovieClip Frame 89
_parent._parent.gotoAndStop("girl");
Symbol 72 MovieClip Frame 92
_parent.gotoAndStop("ringGirl");
stop();
Symbol 88 MovieClip Frame 100
_parent._parent.gotoAndStop("beginFight");
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 18
gotoAndPlay (2);
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 20
gotoAndPlay (2);
Symbol 99 Button
on (rollOver) {
_parent.play_mc.gotoAndPlay(2);
}
on (rollOut) {
_parent.play_mc.gotoAndStop(1);
}
on (press) {
_parent.btn_mc._y = 500;
_parent._parent._parent.bell_snd.start();
_parent._parent._parent.replay = 1;
_parent._parent._parent.instructions = 0;
_parent._parent._parent.wipe_mc.gotoAndPlay("end_leave");
}
Symbol 100 Button
on (rollOver) {
_parent.site_btn_mc2.gotoAndPlay(2);
}
on (rollOut) {
_parent.site_btn_mc2.gotoAndStop(1);
}
on (press) {
getURL ("http://www.amazon.com/exec/obidos/tg/detail/-/B00005BX87/qid=1081802554/sr=8-2/ref=sr_8_xs_ap_i2_xgl63/102-6846480-3078539?v=glance&s=videogames&n=507846", "_blank");
}
Symbol 105 Button
on (rollOver) {
start_btn_mc.gotoAndPlay(2);
}
on (rollOut) {
start_btn_mc.gotoAndStop(1);
}
on (press) {
_parent._parent.bell_snd.start();
_parent._parent.wipe_mc.gotoAndPlay("instructions_fade");
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 5
_parent.disclaimer._visible = false;
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 36
stop();
Symbol 134 MovieClip Frame 56
stop();
Symbol 134 MovieClip Frame 79
stop();
Symbol 134 MovieClip Frame 95
stop();
Symbol 134 MovieClip Frame 119
stop();
Symbol 134 MovieClip Frame 139
stop();
Symbol 134 MovieClip Frame 158
stop();
Symbol 134 MovieClip Frame 177
stop();
Symbol 134 MovieClip Frame 210
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 18
if (this.count == "") {
this.count = 1;
} else {
this.count++;
}
sound_mc.gotoAndPlay(this.count * 20);
Symbol 149 MovieClip Frame 54
if (this.count != 9) {
gotoAndPlay (10);
} else {
_parent.keyCapObj.keyLock = 1;
}
Symbol 149 MovieClip Frame 91
_parent.bell_snd.start();
Symbol 149 MovieClip Frame 92
if (_parent.keyCapObj.tribalDown == 1) {
this.gotoAndPlay("win");
} else {
this.gotoAndPlay("lose");
}
_parent.hudCtrlObj.endFight();
Symbol 149 MovieClip Frame 107
stop();
Symbol 149 MovieClip Frame 122
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 15
_parent._parent.wadeCtrlObj.hitWade(2);
Symbol 191 MovieClip Frame 17
_parent.status = 4;
_parent.openTimer = 0;
Symbol 191 MovieClip Frame 40
_parent.gotoAndStop(1);
Symbol 197 MovieClip Frame 16
_parent._parent.wadeCtrlObj.hitWade(1);
_parent.status = 4;
_parent.openTimer = 0;
Symbol 197 MovieClip Frame 38
_parent.gotoAndStop(1);
Symbol 203 MovieClip Frame 15
_parent._parent.wadeCtrlObj.hitWade(1);
Symbol 203 MovieClip Frame 16
_parent.status = 4;
_parent.openTimer = 0;
Symbol 203 MovieClip Frame 38
_parent.gotoAndStop(1);
Symbol 210 MovieClip Frame 17
_parent._parent.wadeCtrlObj.hitWade(3);
_parent.status = 4;
_parent.openTimer = 0;
Symbol 210 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 216 MovieClip Frame 15
_parent._parent.wadeCtrlObj.hitWade(1);
Symbol 216 MovieClip Frame 17
_parent.status = 4;
_parent.openTimer = 0;
Symbol 216 MovieClip Frame 42
_parent.gotoAndStop(1);
Symbol 224 MovieClip Frame 11
stop();
Symbol 226 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 230 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 232 MovieClip Frame 3
stop();
Symbol 240 MovieClip Frame 21
gotoAndPlay (3);
Symbol 241 MovieClip Frame 55
stop();
Symbol 249 MovieClip Frame 10
stop();
Symbol 257 MovieClip Frame 1
if (_parent.status == 4) {
stars_mc._alpha = 100;
}
Symbol 257 MovieClip Frame 7
if (_parent.status == 4) {
_parent.gotoAndStop("stun_low");
}
Symbol 257 MovieClip Frame 15
_parent.status = 1;
_parent.gotoAndStop(1);
Symbol 261 MovieClip Frame 1
if (_parent.status == 4) {
stars_mc._alpha = 100;
}
Symbol 261 MovieClip Frame 10
if (_parent.status == 4) {
_parent.gotoAndStop("stun_high");
}
Symbol 261 MovieClip Frame 15
_parent.status = 1;
_parent.gotoAndStop(1);
Symbol 265 MovieClip Frame 1
if (_parent.status == 4) {
stars_mc._alpha = 100;
}
Symbol 265 MovieClip Frame 8
if (_parent.status == 4) {
_parent.gotoAndStop("stun_high");
}
Symbol 265 MovieClip Frame 15
_parent.status = 1;
_parent.gotoAndStop(1);
Symbol 274 MovieClip Frame 10
stop();
Symbol 281 MovieClip Frame 9
stop();
Symbol 287 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 289 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 291 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 309 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 314 MovieClip Frame 13
_parent._parent.tribalCtrlObj.hitTribal(4);
Symbol 314 MovieClip Frame 24
_parent.gotoAndStop(1);
Symbol 319 MovieClip Frame 8
_parent._parent.tribalCtrlObj.hitTribal(2);
Symbol 319 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 323 MovieClip Frame 4
_parent._parent.tribalCtrlObj.hitTribal(2);
Symbol 323 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 328 MovieClip Frame 5
_parent._parent.tribalCtrlObj.hitTribal(1);
Symbol 328 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 332 MovieClip Frame 7
stop();
Symbol 337 MovieClip Frame 5
_parent._parent.tribalCtrlObj.hitTribal(0);
Symbol 337 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 339 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 24
_parent.gotoAndStop(1);
Symbol 350 MovieClip Frame 24
_parent.gotoAndStop(1);
Symbol 354 MovieClip Frame 6
_parent._parent.tribalCtrlObj.hitTribal(4);
Symbol 354 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 358 MovieClip Frame 24
_parent.gotoAndStop(1);
Symbol 360 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 362 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 368 MovieClip Frame 11
stop();
Symbol 372 MovieClip Frame 4
stop();
Symbol 378 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 380 MovieClip Frame 2
stop();
Symbol 386 MovieClip Frame 18
stop();
Symbol 387 MovieClip Frame 1
this.status = 0;
stop();
Symbol 393 Button
on (press) {
getURL ("http://www.gamestop.com/product.asp?product%5Fid=160451", "_blank");
}
Symbol 394 MovieClip Frame 30
stop();