Frame 1
_root.depth = 1;
loadbar.onEnterFrame = function () {
amountLoaded = _root.getBytesLoaded();
totalLoaded = _root.getBytesTotal();
if (amountLoaded == totalLoaded) {
_root.gotoAndStop("splash");
} else if (_root._framesloaded >= 10) {
if (_root.checkedOneOnce != true) {
_root.gotoAndStop("loadP");
_root.checkedOneOnce = true;
}
}
ratio = amountLoaded / totalLoaded;
this.gotoAndStop(Math.floor(100 * ratio));
this.percentage = Math.floor(100 * ratio) + "%";
};
stop();
Frame 19
MovieClip.prototype.playReverse = function () {
if (this.playReverse.temp == null) {
this.createEmptyMovieClip("playReverse", this.depthCount + 1);
this.depthCount++;
}
this.playReverse.temp = true;
this.playReverse.onEnterFrame = function () {
if (this._parent._currentframe != 1) {
this._parent.prevFrame();
} else {
removeMovieClip(this);
}
};
};
MovieClip.prototype.flyTo = function (targetX, targetY, startSpeed, precision) {
if (this.moveProto.targetX == null) {
this.createEmptyMovieClip("moveProto", this.depthCount + 1);
this.depthCount++;
}
this.moveProto.targetX = targetX;
this.moveProto.targetY = targetY;
this.moveProto.startSpeed = startSpeed;
this.moveProto.precision = precision;
this.moveProto.onEnterFrame = function () {
if ((Math.abs(this._parent._x - targetX) < precision) && (Math.abs(this._parent._y - targetY) < precision)) {
this._parent._x = targetX;
this._parent._y = targetY;
removeMovieClip(this);
}
this._parent._x = this._parent._x - ((this._parent._x - targetX) / startSpeed);
this._parent._y = this._parent._y - ((this._parent._y - targetY) / startSpeed);
};
};
MovieClip.prototype.flyBy = function (targetX, targetY, startSpeed, precision) {
if (this.moveProto.targetX == null) {
this.createEmptyMovieClip("moveProto", this.depthCount + 1);
this.depthCount++;
}
this.moveProto.targetX = targetX;
this.moveProto.targetY = targetY;
this.moveProto.startSpeed = startSpeed;
this.moveProto.precision = precision;
this.moveProto.onEnterFrame = function () {
if (!this.finalX) {
this.finalX = this._parent._x + this.targetX;
this.finalY = this._parent._y + this.targetY;
}
if ((Math.abs(this._parent._x - this.finalX) < precision) && (Math.abs(this._parent._y - this.finalY) < precision)) {
this._parent._x = this.finalX;
this._parent._y = this.finalY;
removeMovieClip(this);
}
this._parent._x = this._parent._x - ((this._parent._x - this.finalX) / startSpeed);
this._parent._y = this._parent._y - ((this._parent._y - this.finalY) / startSpeed);
};
};
MovieClip.prototype.springTo = function (targetX, targetY, startSpeed, springiness, precision) {
if (this.springToProto.targetX == null) {
this.createEmptyMovieClip("springToProto", this.depthCount + 1);
this.depthCount++;
}
this.springToProto.targetX = targetX;
this.springToProto.targetY = targetY;
this.springToProto.startSpeed = startSpeed;
this.springToProto.springiness = springiness;
this.springToProto.precision = precision;
this.springToProto.springX = targetX + ((targetX - this._x) / springiness);
this.springToProto.springY = targetY + ((targetY - this._y) / springiness);
this.springToProto.onEnterFrame = function () {
if ((Math.abs(springX - targetX) < precision) && (Math.abs(springY - targetY) < precision)) {
this._parent._x = targetX;
this._parent._y = targetY;
removeMovieClip(this);
}
if ((Math.abs(this._parent._x - springX) < precision) && (Math.abs(this._parent._y - springY) < precision)) {
springX = targetX + ((targetX - this._parent._x) / springiness);
springY = targetY + ((targetY - this._parent._y) / springiness);
}
this._parent._x = this._parent._x - ((this._parent._x - springX) / startSpeed);
this._parent._y = this._parent._y - ((this._parent._y - springY) / startSpeed);
};
};
MovieClip.prototype.scaleTo = function (targetX, targetY, startSpeed, precision) {
if (this.scaleProto.targetX == null) {
this.createEmptyMovieClip("scaleProto", this.depthCount + 1);
this.depthCount++;
}
this.scaleProto.targetX = targetX;
this.scaleProto.targetY = targetY;
this.scaleProto.startSpeed = startSpeed;
this.scaleProto.precision = precision;
this.scaleProto.onEnterFrame = function () {
if ((Math.abs(this._parent._xscale - targetX) < precision) && (Math.abs(this._parent._yscale - targetY) < precision)) {
this._parent._xscale = targetX;
this._parent._yscale = targetY;
removeMovieClip(this);
}
this._parent._xscale = this._parent._xscale - ((this._parent._xscale - targetX) / startSpeed);
this._parent._yscale = this._parent._yscale - ((this._parent._yscale - targetY) / startSpeed);
};
};
MovieClip.prototype.scaleBy = function (targetX, targetY, startSpeed, precision) {
if (this.scaleProto.targetX == null) {
this.createEmptyMovieClip("scaleProto", this.depthCount + 1);
this.depthCount++;
}
this.scaleProto.targetX = targetX;
this.scaleProto.targetY = targetY;
this.scaleProto.startSpeed = startSpeed;
this.scaleProto.precision = precision;
this.scaleProto.onEnterFrame = function () {
if (!this.finalX) {
this.finalX = this._parent._xscale + this.targetX;
this.finalY = this._parent._yscale + this.targetY;
}
if ((Math.abs(this._parent._xscale - this.finalX) < precision) && (Math.abs(this._parent._yscale - this.finalY) < precision)) {
this._parent._xscale = this.finalX;
this._parent._yscale = this.finalY;
removeMovieClip(this);
}
this._parent._xscale = this._parent._xscale - ((this._parent._xscale - this.finalX) / startSpeed);
this._parent._yscale = this._parent._yscale - ((this._parent._yscale - this.finalY) / startSpeed);
};
};
MovieClip.prototype.fadeTo = function (targetA, startSpeed, precision) {
if (this.fadeProto.targetA == null) {
this.createEmptyMovieClip("fadeProto", this.depthCount + 1);
this.depthCount++;
}
this.fadeProto.targetA = targetA;
this.fadeProto.startSpeed = startSpeed;
this.fadeProto.precision = precision;
this.fadeProto.onEnterFrame = function () {
if (Math.abs(this._parent._alpha - targetA) < precision) {
this._parent._alpha = targetA;
removeMovieClip(this);
}
this._parent._alpha = this._parent._alpha - ((this._parent._alpha - targetA) / startSpeed);
};
};
MovieClip.prototype.rotateTo = function (targetR, startSpeed, precision) {
if (this.rotateToProto.targetR == null) {
this.createEmptyMovieClip("rotateToProto", this.depthCount + 1);
this.depthCount++;
}
this.rotateToProto.targetR = targetR;
this.rotateToProto.startSpeed = startSpeed;
this.rotateToProto.precision = precision;
this.rotateToProto.onEnterFrame = function () {
if (Math.abs(this._parent._rotation - targetR) < precision) {
this._parent._rotation = targetR;
removeMovieClip(this);
}
this._parent._rotation = this._parent._rotation - ((this._parent._rotation - targetR) / startSpeed);
};
};
MovieClip.prototype.rotateBy = function (targetR, startSpeed, precision) {
if (!this.rotateByProto) {
this.createEmptyMovieClip("rotateByProto", this.depthCount + 1);
this.depthCount++;
} else {
trace("Rotate proto already in place, exiting.");
}
this.rotateByProto.targetR = targetR;
this.rotateByProto.startSpeed = startSpeed;
this.rotateByProto.precision = precision;
this.rotateByProto.onEnterFrame = function () {
if (!this.finalR) {
this.finalR = targetR + this._parent._rotation;
}
if (Math.abs(this._parent._rotation - this.finalR) < precision) {
this._parent._rotation = this.finalR;
trace("this._parent._rotation = " + this._parent._rotation);
trace("this.finalR = " + this.finalR);
removeMovieClip(this);
trace("clip gone");
}
this._parent._rotation = this._parent._rotation - ((this._parent._rotation - this.finalR) / startSpeed);
};
};
MovieClip.prototype.tintTo = function (targetR, targetG, targetB, startSpeed, precision) {
if (this.tintToProto.targetR == null) {
this.createEmptyMovieClip("tintToProto", this.depthCount + 1);
this.depthCount++;
}
this.tintToProto.targetR = targetR;
this.tintToProto.targetG = targetG;
this.tintToProto.targetB = targetB;
this.tintToProto.startSpeed = startSpeed;
this.tintToProto.precision = precision;
this.tintToProto.onEnterFrame = function () {
if (!this.colorObj) {
colorObj = new Color(this._parent);
}
colorTrans = colorObj.getTransform();
rdifference = targetR - colorTrans.rb;
rrate = rdifference / startSpeed;
colorTrans.rb = colorTrans.rb + rrate;
gdifference = targetG - colorTrans.gb;
grate = gdifference / startSpeed;
colorTrans.gb = colorTrans.gb + grate;
bdifference = targetB - colorTrans.bb;
brate = bdifference / startSpeed;
colorTrans.bb = colorTrans.bb + brate;
colorObj.setTransform(colorTrans);
if (((Math.abs(rrate) < precision) && (Math.abs(grate) < precision)) && (Math.abs(brate) < precision)) {
colorTrans.rb = targetR;
colorTrans.gb = targetG;
colorTrans.bb = targetB;
this.removeMovieClip();
}
};
};
MovieClip.prototype.tintTo2 = function (targetR, targetG, targetB, startSpeed, precision) {
if (this.tintToProto.targetR == null) {
this.createEmptyMovieClip("tintToProto", this.depthCount + 1);
this.depthCount++;
}
this.tintToProto.targetR = targetR;
this.tintToProto.targetG = targetG;
this.tintToProto.targetB = targetB;
this.tintToProto.startSpeed = startSpeed;
this.tintToProto.precision = precision;
this.tintToProto.onEnterFrame = function () {
if (!this.colorObj) {
colorObj = new Color(this._parent);
}
colorTrans = colorObj.getRGB();
rdifference = targetR - colorTrans.rb;
rrate = rdifference / startSpeed;
colorTrans.rb = colorTrans.rb + rrate;
gdifference = targetG - colorTrans.gb;
grate = gdifference / startSpeed;
colorTrans.gb = colorTrans.gb + grate;
bdifference = targetB - colorTrans.bb;
brate = bdifference / startSpeed;
colorTrans.bb = colorTrans.bb + brate;
colorObj.setRGB(colorTrans.rb, colorTrans.gb, colorTrans.bb);
if (((Math.abs(rrate) < precision) && (Math.abs(grate) < precision)) && (Math.abs(brate) < precision)) {
colorTrans.rb = targetR;
colorTrans.gb = targetG;
colorTrans.bb = targetB;
this.removeMovieClip();
}
};
};
MovieClip.prototype.fadeBy = function (targetA, startSpeed, precision) {
if (this.fadeByProto.targetR == null) {
this.createEmptyMovieClip("fadeByProto", this.depthCount + 1);
this.depthCount++;
}
this.fadeByProto.targetA = targetA;
this.fadeByProto.startSpeed = startSpeed;
this.fadeByProto.precision = precision;
this.fadeByProto.onEnterFrame = function () {
if (!this.colorObj) {
colorObj = new Color(this._parent);
}
colorTrans = colorObj.getTransform();
trace("colorTrans.ab = " + colorTrans.ab);
this.finalA = colorTrans.ab + this.targetA;
colorTrans.ab = colorTrans.ab - ((colorTrans.ab - this.finalA) / startSpeed);
trace((((((colorTrans.ab + " -= (") + colorTrans.ab) + " - ") + this.finalA) + ")/") + startSpeed);
trace("answer: " + ((colorTrans.ab - this.finalA) / startSpeed));
colorObj.setTransform(colorTrans);
if (Math.abs(aRate) < precision) {
colorTrans.ab = targetA;
this.removeMovieClip();
}
};
};
MovieClip.prototype.scale = function (val) {
this._xscale = val;
this._yscale = val;
};
MovieClip.prototype.zSort = function () {
_root.sortDepth++;
this.swapDepths(_root.sortDepth);
};
Array.prototype.shuffle = function () {
var len = this.length;
var rand;
var temp;
var i;
i = 0;
while (i < len) {
rand = random(len);
temp = this[i];
this[i] = this[rand];
this[rand] = temp;
i++;
}
};
Math.randomBetween = function (a, b) {
return(a + Math.floor(Math.random() * ((b - a) + 1)));
};
MovieClip.prototype.customFade = function (desAlpha, startSpeed, precision) {
if (this.fadeProto.desAlpha == null) {
this.createEmptyMovieClip("fadeProto", this.depthCount + 1);
this.depthCount++;
}
this.fadeProto.desAlpha = desAlpha;
this.fadeProto.startSpeed = startSpeed;
this.fadeProto.precision = precision;
this.fadeProto.onEnterFrame = function () {
if (Math.abs(this._parent._alpha - desAlpha) < precision) {
this._parent._alpha = desAlpha;
removeMovieClip(this);
}
this._parent._alpha = this._parent._alpha - ((this._parent._alpha - desAlpha) / startSpeed);
};
};
Movieclip.prototype.openWin = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ((((((((((((((((((((((("javascript: var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url) + "','") + winName) + "','") + "width=") + w) + ",height=") + h) + ",toolbar=") + toolbar) + ",location=") + location) + ",directories=") + directories) + ",status=") + status) + ",menubar=") + menubar) + ",scrollbars=") + scrollbars) + ",resizable=") + resizable) + "')}else{myWin.focus();};void(0);");
};
Sound.prototype.atcPlay = function (id) {
this.attachSound(id);
this.start();
};
setEnterFrame = function (onEnterFrame_def) {
this._onEnterFrame = onEnterFrame_def;
};
getEnterFrame = function () {
this.onLoad();
delete this.onLoad;
return(this._onEnterFrame);
};
MovieClip.prototype.addProperty("onEnterFrame", getEnterFrame, setEnterFrame);
MovieClip.prototype.onEnterFrame = function () {
this.onLoad();
delete this.onLoad;
};
sol = function (f) {
if (__onLoadHandler__ == undefined) {
_global.__onLoadHandler__ = {};
}
__onLoadHandler__[this] = f;
};
gol = function () {
return(__onLoadHandler__[this]);
};
MovieClip.prototype.addProperty("onLoad", gol, sol);
Object.prototype.debug = function (exp) {
var tmp = _root._url.substr(0, 4);
if (tmp == "file") {
trace(exp);
} else {
getURL (("javascript:alert('" + exp) + "')");
}
};
Array.prototype.findByValue = function (prop, value) {
var i = 0;
while (i < this.length) {
if (this[i][prop] == value) {
return(this[i]);
}
i++;
}
};
_global.butSnd = new Sound(_root.butSndMC);
_global.voice = new Sound(_root.voiceMC);
_global.music = new Sound(_root.musicMC);
if (_global.musicOff != true) {
_global.music.attachSound("intro_loop");
_global.music.start(0, 999);
}
continueBTN.onRelease = function () {
gotoAndStop (29);
_global.butSnd.atcPlay("click");
};
sndMC._alpha = 50;
stop();
Frame 29
continueBTN.onRelease = function () {
gotoAndStop (45);
_global.butSnd.atcPlay("click");
};
backBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (19);
};
stop();
Frame 45
_global.gameMode = undefined;
playerOneBTN.onRelease = function () {
_global.gameMode = "onePlayer";
_global.butSnd.atcPlay("click");
gotoAndStop (61);
};
playerTwoBTN.onRelease = function () {
_global.gameMode = "twoPlayer";
_global.butSnd.atcPlay("click");
gotoAndStop (61);
};
backBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (29);
};
stop();
Instance of Symbol 120 MovieClip "playerOneMC" in Frame 45
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 132 MovieClip "playerTwoMC" in Frame 45
onClipEvent (load) {
_visible = false;
}
Frame 61
if (_root.initGameEngine != true) {
_root.initGameEngine = true;
myTrace = function (msg) {
_root.myTraceWin = (msg + newline) + _root.myTraceWin;
};
msgDelayArray = [];
callOut = function (msg) {
_root.myCallWin = msg;
_root.msgDelayArray.push(setInterval(_root.clearCall, 2500));
};
clearCall = function () {
_root.myCallWin = "";
clearInterval(_root.msgDelayArray.shift());
};
_root.depth = 1;
game = function () {
};
ASBroadcaster.initialize(game);
game.coinToss = function () {
toss = Math.randomBetween(1, 2);
switch (toss) {
case 1 :
playerOne.mode = "attack";
_root.bkArrow.gotoAndStop("playerOne");
_root.playerOneMode.gotoAndStop("attack");
_root.playerOneMode2.gotoAndStop("attack");
_root.playerOneFlinchMC.gotoAndStop("attack");
_root.playerOneChar.backMC.gotoAndStop("attack");
playerTwo.mode = "defend";
_root.playerTwoMode.gotoAndStop("defend");
_root.playerTwoMode2.gotoAndStop("defend");
_root.playerTwoFlinchMC.gotoAndStop("defend");
_root.playerTwoChar.backMC.gotoAndStop("defend");
return;
case 2 :
playerOne.mode = "defend";
_root.bkArrow.gotoAndStop("playerTwo");
_root.playerOneFlinchMC.gotoAndStop("defend");
_root.playerOneMode.gotoAndStop("defend");
_root.playerOneMode2.gotoAndStop("defend");
_root.playerOneChar.backMC.gotoAndStop("defend");
playerTwo.mode = "attack";
_root.playerTwoMode.gotoAndStop("attack");
_root.playerTwoMode2.gotoAndStop("attack");
_root.playerTwoFlinchMC.gotoAndStop("attack");
_root.playerTwoChar.backMC.gotoAndStop("attack");
}
};
game.swapPlayers = function () {
if (_root.playerOne.mode == "defend") {
_root.playerOne.mode = "attack";
_root.bkArrow.gotoAndStop("playerOne");
_root.playerOneFlinchMC.gotoAndStop("attack");
_root.playerTwo.mode = "defend";
_root.playerTwoFlinchMC.gotoAndStop("defend");
_root.playerOneChar.backMC.gotoAndStop("attack");
_root.playerOneMode.gotoAndStop("attack");
_root.playerTwoMode.gotoAndStop("defend");
_root.playerTwoChar.backMC.gotoAndStop("defend");
_root.playerOne.setFlinch("reset");
_root.playerTwo.setFlinch("reset");
} else {
_root.playerOne.mode = "defend";
_root.bkArrow.gotoAndStop("playerTwo");
_root.playerOneFlinchMC.gotoAndStop("defend");
_root.playerOneChar.backMC.gotoAndStop("defend");
_root.playerTwo.mode = "attack";
_root.playerTwoFlinchMC.gotoAndStop("attack");
_root.playerTwoChar.backMC.gotoAndStop("attack");
_root.playerOneMode.gotoAndStop("defend");
_root.playerTwoMode.gotoAndStop("attack");
_root.playerOne.setFlinch("reset");
_root.playerTwo.setFlinch("reset");
}
};
game.freeHitFnc = function (name) {
_root[name].disable = true;
_root.gameMsg.gotoAndPlay("freeHit");
_root.game.freeHit = true;
};
game.whatKey = new Object();
game.whatKey.onKeyDown = function () {
var keyIs = Key.getCode();
switch (keyIs) {
case 90 :
if (!_root.playerOne.disable) {
if (!_root.playerOne.lock) {
if (!this.zLock) {
this.zLock = true;
if (_root.playerOne.mode == "attack") {
_root.playerOne.powerMeter("start");
} else {
_root.playerOne.defend();
}
}
}
}
return;
case 88 :
if (!_root.playerOne.disable) {
if (!_root.playerOne.lock) {
if (!this.xLock) {
this.xLock = true;
if (_root.playerOne.mode == "attack") {
if (this.zLock) {
_root.playerOne.powerMeter("stop");
} else if (!_root.game.freeHit) {
_root.playerOne.taunt();
}
} else {
_root.playerOne.defend();
}
}
}
}
return;
case 79 :
if ((!_root.playerTwo.disable) && (_global.gameMode == "twoPlayer")) {
if (!_root.playerTwo.lock) {
if (!this.oLock) {
this.oLock = true;
if (_root.playerTwo.mode == "attack") {
if (this.pLock) {
_root.playerTwo.powerMeter("stop");
} else if (!_root.game.freeHit) {
_root.playerTwo.taunt();
}
} else {
_root.playerTwo.defend();
}
}
}
}
return;
case 80 :
if (!((!_root.playerTwo.disable) && (_global.gameMode == "twoPlayer"))) {
break;
}
if (_root.playerTwo.lock) {
break;
}
if (this.pLock) {
break;
}
this.pLock = true;
if (_root.playerTwo.mode == "attack") {
_root.playerTwo.powerMeter("start");
} else {
_root.playerTwo.defend();
}
}
};
game.whatKey.onKeyUp = function () {
var keyIs = Key.getCode();
switch (keyIs) {
case 90 :
this.zLock = false;
if (!_root.playerOne.disable) {
if (_root.playerOne.attackPressed) {
_root.playerOne.powerMeter("release");
}
}
return;
case 88 :
this.xLock = false;
return;
case 79 :
this.oLock = false;
return;
case 80 :
this.pLock = false;
if (!((!_root.playerTwo.disable) && (_global.gameMode == "twoPlayer"))) {
break;
}
if (!_root.playerTwo.attackPressed) {
break;
}
_root.playerTwo.powerMeter("release");
}
};
Key.addListener(game.whatKey);
player = function (name, otherPlayer, num, slapPower, slapSpeed) {
this.state = "idle";
this.mode = undefined;
this.name = name;
this.otherPlayer = otherPlayer;
this.num = num;
this.painLevel = 0;
this.flinchLevel = 0;
this.slapPower = slapPower;
this.slapSpeed = slapSpeed;
this.attackDelayArray = [];
this.defendCalled = false;
this.attackPressed = false;
this.lock = false;
this.attackPower = 0;
this.disable = false;
this.flinchMax = false;
};
player.prototype.powerMeter = function (action) {
switch (action) {
case "start" :
_global.butSnd.atcPlay("powerUp");
this.attackPressed = true;
this.powerMeterAni(this.name, "start");
return;
case "release" :
this.attackPressed = false;
this.powerMeterAni(this.name, "release");
_global.butSnd.stop();
return;
case "stop" :
this.attackPressed = false;
this.powerMeterAni(this.name, "stop");
_global.butSnd.stop();
}
};
player.prototype.powerMeterAni = function (myName, action) {
switch (action) {
case "start" :
_root.depth++;
_root.createEmptyMovieClip(myName + "powerMeterAni", _root.depth);
_root[myName + "powerMeterAni"].onEnterFrame = function () {
if (_root[myName + "Power"]._currentframe <= 99) {
var cFrame = (((_root[myName + "Power"]._currentframe + 4) >= 100) ? 100 : (_root[myName + "Power"]._currentframe + 4));
_root[myName + "Power"].gotoAndStop(cFrame);
}
};
return;
case "release" :
_root.myTrace("Slap power=" + _root[myName + "Power"]._currentframe);
this.setAttack(_root[myName + "Power"]._currentframe);
_root[myName + "powerMeterAni"].removeMovieClip();
_root[myName + "Power"].gotoAndStop(1);
if (_root.game.freeHit == true) {
_root.game.freeHit = false;
_root.gameMsg.gotoAndPlay("freehit");
}
return;
case "stop" :
_root[myName + "powerMeterAni"].removeMovieClip();
_root[myName + "Power"].gotoAndStop(1);
}
};
player.prototype.taunt = function () {
_root[this.name + "Hand"].gotoAndPlay("taunt" + Math.randomBetween(1, 4));
if (_global.gameMode == "onePlayer") {
_root[this.otherPlayer].tauntCalled();
}
};
player.prototype.setFlinch = function (action) {
switch (action) {
case "addFlinch" :
_root[this.otherPlayer].setFlinch("reset");
this.flinchLevel++;
if (this.flinchLevel <= 3) {
_root.myTrace((this.name + " flinchLevel=") + this.flinchLevel);
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
}
if (this.mode == "attack") {
if (this.flinchLevel == 3) {
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
_root.game.freeHitFnc(this.otherPlayer);
this.flinchMax = true;
}
} else if (this.mode == "defend") {
if (this.flinchLevel == 1) {
_root.gameMsg.gotoAndPlay("swap");
this.flinchMax = true;
}
}
return;
case "reset" :
this.flinchLevel = 0;
this.flinchMax = false;
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
}
};
player.prototype.setPain = function (newAmount) {
var painAmount = ((_root[this.name + "PainSetter"].painAmount == undefined) ? 0 : (_root[this.name + "PainSetter"].painAmount));
_root[this.name + "PainSetter"].removeMovieClip();
painAmount = painAmount + Math.round(newAmount);
if ((painAmount + _root[this.name + "Pain"]._currentframe) < 100) {
_root.depth++;
_root.createEmptyMovieClip(this.name + "PainSetter", _root.depth);
_root[this.name + "PainSetter"].painAmount = painAmount;
_root[this.name + "PainSetter"].name = this.name;
_root[this.name + "PainSetter"].onEnterFrame = function () {
if (painAmount > 0) {
_root[this.name + "Pain"].nextFrame();
painAmount--;
} else {
this.removeMovieClip();
}
};
} else if ((painAmount + _root[this.name + "Pain"]._currentframe) >= 100) {
_root.myTrace(this.name + " is DEAD");
_root.callOut("GAME OVER");
_root.gameMsg.gotoAndPlay("gameOver");
if (this.num == 1) {
if (_global.gameMode == "onePlayer") {
_root.winner = "CPU Wins";
} else {
_root.winner = "Player Two Wins";
}
_root.playerWin = "playerTwo";
} else if (this.num == 2) {
_root.winner = "Player One Wins";
_root.playerWin = "playerOne";
}
_root.depth++;
_root.createEmptyMovieClip(this.name + "PainSetter", _root.depth);
_root[this.name + "PainSetter"].name = this.name;
_root[this.name + "PainSetter"].onEnterFrame = function () {
if (_root[this.name + "Pain"]._currentframe < 100) {
_root[this.name + "Pain"].nextFrame();
} else {
this.removeMovieClip();
}
};
}
if ((painAmount + _root[this.name + "Pain"]._currentframe) > 50) {
_root[this.name + "Char"].home = "sad";
_root[this.name + "Char"].mc.gotoAndStop(_root[this.name + "Char"].home);
}
};
player.prototype.defend = function () {
if (_root[this.otherPlayer].state == "attack") {
_root[this.otherPlayer].defendCalled = true;
this.setFlinch("addFlinch");
} else {
_root[this.name + "Hand"].gotoAndPlay("defend");
_root[this.otherPlayer].setFlinch("addFlinch");
}
};
player.prototype.setAttack = function (speed) {
this.attackPower = speed / 10;
this.state = "attack";
var hand = Math.randomBetween(1, 2);
if (Math.round(this.attackPower) < 5) {
_root[this.name + "Hand"].gotoAndPlay("soft" + hand);
} else {
_root[this.name + "Hand"].gotoAndPlay("hard" + hand);
}
};
player.prototype.slap = function (hand, force) {
if (_root[this.otherPlayer].cpu) {
this.defendCalled = _root[this.otherPlayer].underAttack(force);
}
if (_root[this.name].defendCalled) {
_root[this.name + "Hand"].gotoAndPlay((force + "Miss") + hand);
_root[this.name].defendCalled = false;
_root.callOut("MISS");
} else {
_root[this.name + "Hand"].gotoAndPlay((force + "Hit") + hand);
_root.callOut("HIT");
_root[this.otherPlayer].setPain(this.attackPower);
this.setFlinch("reset");
_root[this.otherPlayer].setFlinch("reset");
}
this.state = "idle";
};
cpu = function (name, otherPlayer, num, slapPower, slapSpeed) {
this.state = "idle";
this.mode = undefined;
this.name = name;
this.otherPlayer = otherPlayer;
this.num = num;
this.painLevel = 0;
this.flinchLevel = 0;
this.slapPower = slapPower;
this.slapSpeed = slapSpeed;
this.attackDelayArray = [];
this.defendCalled = false;
this.attackPressed = false;
this.lock = false;
this.attackPower = 0;
this.disable = true;
this.flinchMax = false;
this.cheaterFlinch = 1;
this.cpu = true;
};
cpu.prototype.underAttack = function (strength) {
if ((_global.gameMode == "onePlayer") && (this.cpu)) {
if (strength == "soft") {
if (Math.randomBetween(1, 500) <= Math.randomBetween(200, 900)) {
this.defend(false);
return(false);
}
this.defend(true);
return(true);
}
if (strength == "hard") {
if (Math.randomBetween(1, 500) <= Math.randomBetween(100, 900)) {
this.defend(false);
return(false);
}
this.defend(true);
return(true);
}
}
};
cpu.prototype.tauntCalled = function () {
if (Math.randomBetween(1, 100) >= 86) {
if (this.cheaterFlinch <= 2) {
_root.myTrace("CPU - flinch");
this.defend(false);
this.cheaterFlinch++;
} else {
_root.myTrace("CPU cheaters flinch active");
}
}
};
cpu.prototype.defend = function (action) {
if (action) {
this.setFlinch("addFlinch");
} else {
_root[this.name + "Hand"].gotoAndPlay("defend");
_root[this.otherPlayer].setFlinch("addFlinch");
}
};
cpu.prototype.setFlinch = function (action) {
switch (action) {
case "addFlinch" :
_root[this.otherPlayer].setFlinch("reset");
this.flinchLevel++;
if (this.flinchLevel <= 3) {
_root.myTrace((this.name + " flinchLevel=") + this.flinchLevel);
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
}
if (this.mode == "attack") {
if (this.flinchLevel == 3) {
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
_root.game.freeHitFnc(this.otherPlayer);
this.flinchMax = true;
}
} else if (this.mode == "defend") {
if (this.flinchLevel == 1) {
_root.gameMsg.gotoAndPlay("swap");
this.flinchMax = true;
}
}
return;
case "reset" :
this.flinchLevel = 0;
this.flinchMax = false;
_root[this.name + "FlinchMC"].mc.gotoAndStop("flinch" + this.flinchLevel);
}
};
cpu.prototype.setPain = function (newAmount) {
this.cheaterFlinch = 1;
_root.myTrace("CPU cheaters flinch reset");
var painAmount = ((_root[this.name + "PainSetter"].painAmount == undefined) ? 0 : (_root[this.name + "PainSetter"].painAmount));
_root[this.name + "PainSetter"].removeMovieClip();
painAmount = painAmount + Math.round(newAmount);
if ((painAmount + _root[this.name + "Pain"]._currentframe) < 100) {
_root.depth++;
_root.createEmptyMovieClip(this.name + "PainSetter", _root.depth);
_root[this.name + "PainSetter"].painAmount = painAmount;
_root[this.name + "PainSetter"].name = this.name;
_root[this.name + "PainSetter"].onEnterFrame = function () {
if (painAmount > 0) {
_root[this.name + "Pain"].nextFrame();
painAmount--;
} else {
this.removeMovieClip();
}
};
} else if ((painAmount + _root[this.name + "Pain"]._currentframe) >= 100) {
_root.myTrace(this.name + " is DEAD");
_root.callOut("GAME OVER");
_root.gameMsg.gotoAndPlay("gameOver");
if (this.num == 1) {
_root.winner = "Player Two Wins";
_root.playerWin = "playerTwo";
} else if (this.num == 2) {
_root.winner = "Player One Wins";
_root.playerWin = "playerOne";
}
_root.depth++;
_root.createEmptyMovieClip(this.name + "PainSetter", _root.depth);
_root[this.name + "PainSetter"].name = this.name;
_root[this.name + "PainSetter"].onEnterFrame = function () {
if (_root[this.name + "Pain"]._currentframe < 100) {
_root[this.name + "Pain"].nextFrame();
} else {
this.removeMovieClip();
}
};
}
if ((painAmount + _root[this.name + "Pain"]._currentframe) > 50) {
_root[this.name + "Char"].home = "sad";
_root[this.name + "Char"].mc.gotoAndStop(_root[this.name + "Char"].home);
}
};
cpu.prototype.cpuAttack = function () {
if ((((!this.attackPressed) && (!this.lock)) && (!_root.playerOne.disable)) && (Math.randomBetween(1, 500) <= 450)) {
_root.myTrace("attack");
this.mode = "attack";
this.powerMeter("start");
hardSoft = Math.randomBetween(1, 100);
if (hardSoft <= 30) {
slapDelay = Math.randomBetween(550, 950);
} else {
slapDelay = Math.randomBetween(150, 350);
}
this.attackDelayArray.push(setInterval(this.cpuDoAttack, slapDelay, this.name));
} else if (_root.game.freeHit) {
_root.myTrace("attack");
this.mode = "attack";
this.powerMeter("start");
slapDelay = Math.randomBetween(250, 850);
this.attackDelayArray.push(setInterval(this.cpuDoAttack, slapDelay, this.name));
} else if (((!this.attackPressed) && (!_root.playerOne.disable)) && (!this.lock)) {
_root.myTrace("taunt");
this.taunt();
}
};
cpu.prototype.powerMeter = function (action) {
switch (action) {
case "start" :
_global.butSnd.atcPlay("powerUp");
this.attackPressed = true;
this.powerMeterAni(this.name, "start");
return;
case "release" :
this.attackPressed = false;
this.powerMeterAni(this.name, "release");
_global.butSnd.stop();
return;
case "stop" :
this.attackPressed = false;
this.powerMeterAni(this.name, "stop");
_global.butSnd.stop();
}
};
cpu.prototype.powerMeterAni = function (myName, action) {
switch (action) {
case "start" :
_root.depth++;
_root.createEmptyMovieClip(myName + "powerMeterAni", _root.depth);
_root[myName + "powerMeterAni"].onEnterFrame = function () {
if (_root[myName + "Power"]._currentframe <= 99) {
var cFrame = (((_root[myName + "Power"]._currentframe + 4) >= 100) ? 100 : (_root[myName + "Power"]._currentframe + 4));
_root[myName + "Power"].gotoAndStop(cFrame);
}
};
return;
case "release" :
_root.myTrace("Slap power=" + _root[myName + "Power"]._currentframe);
this.setAttack(_root[myName + "Power"]._currentframe);
_root[myName + "powerMeterAni"].removeMovieClip();
_root[myName + "Power"].gotoAndStop(1);
if (_root.game.freeHit == true) {
_root.game.freeHit = false;
_root.gameMsg.gotoAndPlay("freehit");
}
return;
case "stop" :
_root[myName + "powerMeterAni"].removeMovieClip();
_root[myName + "Power"].gotoAndStop(1);
}
};
cpu.prototype.setAttack = function (speed) {
this.attackPower = speed / 10;
this.state = "attack";
var hand = Math.randomBetween(1, 2);
if (Math.round(this.attackPower) < 5) {
_root[this.name + "Hand"].gotoAndPlay("soft" + hand);
} else {
_root[this.name + "Hand"].gotoAndPlay("hard" + hand);
}
};
cpu.prototype.slap = function (hand, force) {
if (_root[this.otherPlayer].cpu) {
this.defendCalled = _root[this.otherPlayer].underAttack(force);
}
if (_root[this.name].defendCalled) {
_root[this.name + "Hand"].gotoAndPlay((force + "Miss") + hand);
_root[this.name].defendCalled = false;
_root.callOut("MISS");
} else {
_root[this.name + "Hand"].gotoAndPlay((force + "Hit") + hand);
_root.callOut("HIT");
_root[this.otherPlayer].setPain(this.attackPower);
this.setFlinch("reset");
_root[this.otherPlayer].setFlinch("reset");
}
this.state = "idle";
};
cpu.prototype.cpuDoAttack = function (name) {
clearInterval(_root[name].attackDelayArray.shift());
_root.myTrace("delay cleared");
_root[name].powerMeter("release");
};
cpu.prototype.taunt = function () {
if (!this.attackPressed) {
_root[this.name + "Hand"].gotoAndPlay("taunt" + Math.randomBetween(1, 4));
}
};
}
continueBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (84);
};
backBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (45);
};
Frame 84
continueBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (113);
};
backBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (61);
};
stop();
Frame 95
continueBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop(_global.gameMode);
};
backBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
gotoAndStop (61);
};
stop();
Frame 113
_root.myTraceWin = "";
_root.playerOneChar.gotoAndStop(_global.playerOneCharName);
_global.playerTwoCharName = "char" + Math.randomBetween(1, 5);
_root.playerTwoChar.gotoAndStop(_global.playerTwoCharName);
playerOne = new player("playerOne", "playerTwo", 1, 5, 5);
playerTwo = new cpu("playerTwo", "playerOne", 2, 5, 5);
_root.playerOneFlinchMC.name = "playerOne";
_root.playerTwoFlinchMC.name = "playerTwo";
game.addListener(playerOne);
game.addListener(playerTwo);
_root.gameMsg.gotoAndStop("main");
_root.winner = "";
playerOneHand.otherPlayer = "playerTwo";
playerTwoHand.otherPlayer = "playerOne";
playerOneHand.myName = "playerOne";
playerTwoHand.myName = "playerTwo";
_root.game.coinToss();
_root.gameMsg.gotoAndPlay("ready");
_global.music.stop();
stop();
Instance of Symbol 472 MovieClip "cpuBot" in Frame 113
onClipEvent (load) {
this.name = "playerTwo";
this.otherPlayer = "playerOne";
this.doneAction = true;
this.myName = "cpuBot";
this.delayArray = [];
doAction = function (myName) {
clearInterval(_root[myName].delayArray.shift());
if (_root[_root[myName].name].disable) {
_root.myTrace("do nothing");
} else {
_root.playerTwo.cpuAttack();
}
_root[myName].doneAction = true;
};
}
onClipEvent (enterFrame) {
if (_root[this.name].mode == "attack") {
if (((this.doneAction && (!_root[this.name].lock)) && (!_root[name].disable)) && (_root[name].hands == "still")) {
this.doneAction = false;
actionDelay = Math.randomBetween(350, 1150);
this.delayArray.push(setInterval(this.doAction, actionDelay, this.myName));
}
}
}
Frame 125
_root.myTraceWin = "";
_root.playerOneChar.gotoAndStop(_global.playerOneCharName);
_root.playerTwoChar.gotoAndStop(_global.playerTwoCharName);
playerOne = new player("playerOne", "playerTwo", 1, 5, 5);
playerTwo = new player("playerTwo", "playerOne", 2, 5, 5);
_root.playerOneFlinchMC.name = "playerOne";
_root.playerTwoFlinchMC.name = "playerTwo";
game.addListener(playerOne);
game.addListener(playerTwo);
_root.gameMsg.gotoAndStop("main");
_root.winner = "";
playerOneHand.otherPlayer = "playerTwo";
playerTwoHand.otherPlayer = "playerOne";
playerOneHand.myName = "playerOne";
playerTwoHand.myName = "playerTwo";
_root.game.coinToss();
_root.gameMsg.gotoAndPlay("ready");
_global.music.stop();
stop();
Frame 137
continueBTN.onRelease = function () {
_global.butSnd.atcPlay("click");
_root.gotoAndStop("splash");
};
_global.music.stop();
if (_global.musicOff != true) {
_global.music.attachSound("intro_loop");
_global.music.start(0, 999);
}
if ((_global.gameMode == "onePlayer") && (_root.winner == "CPU Wins")) {
_global.voice.atcPlay("cpuWins");
} else if (_root.playerWin == "playerOne") {
_global.voice.atcPlay("playerOneWins");
} else if (_root.playerWin == "playerTwo") {
_global.voice.atcPlay("playerTwoWins");
}
stop();
Symbol 3 MovieClip [evilhand] Frame 1
this._x = random(550) + 50;
this._y = random(200) + 45;
Symbol 3 MovieClip [evilhand] Frame 8
gotoAndPlay(_currentframe - 1);
if (this.hitTest(_parent._parent.hand.htspot)) {
_parent._parent.hit++;
gotoAndPlay (14);
}
Symbol 3 MovieClip [evilhand] Frame 17
removeMovieClip(this);
Symbol 7 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 13
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 28 Button
on (rollOver) {
sndMC._alpha = 100;
}
on (rollOut) {
sndMC._alpha = 50;
}
on (release) {
if (_global.musicOff != true) {
_global.musicOff = true;
_global.music.stop();
_root.sndMC.gotoAndStop("sndOff");
} else {
_global.musicOff = false;
_global.music.attachSound("intro_loop");
_global.music.start(0, 999);
_root.sndMC.gotoAndStop("sndOn");
}
}
Symbol 93 MovieClip Frame 27
stop();
Symbol 97 MovieClip Frame 34
stop();
Symbol 107 MovieClip Frame 26
_parent.playerTwoMC._visible = true;
_parent.playerOneMC._visible = true;
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 17
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 11
stop();
Symbol 133 Button
on (rollOver) {
_root.playerOneMC.play();
}
on (rollOut, release, dragOut, releaseOutside) {
_root.playerOneMC.playReverse();
}
Symbol 134 Button
on (rollOver) {
_root.playerTwoMC.play();
}
on (rollOut, release, dragOut, releaseOutside) {
_root.playerTwoMC.playReverse();
}
Symbol 141 MovieClip Frame 6
stop();
Symbol 150 MovieClip Frame 26
r = random(30);
if (r > 10) {
gotoAndPlay (1);
} else if (r > 20) {
gotoAndPlay (27);
} else {
gotoAndPlay (37);
}
Symbol 150 MovieClip Frame 36
r = random(30);
if (r > 10) {
gotoAndPlay (1);
} else if (r > 20) {
gotoAndPlay (27);
} else {
gotoAndPlay (37);
}
Symbol 150 MovieClip Frame 46
r = random(30);
if (r > 10) {
gotoAndPlay (1);
} else if (r > 20) {
gotoAndPlay (27);
} else {
gotoAndPlay (37);
}
Symbol 189 Button
on (rollOver) {
shfitBox("char1");
}
on (release) {
_global.butSnd.atcPlay("playerSelect");
charSelected("char1");
}
Symbol 190 Button
on (rollOver) {
shfitBox("char2");
}
on (release) {
_global.butSnd.atcPlay("playerSelect");
charSelected("char2");
}
Symbol 191 Button
on (rollOver) {
shfitBox("char3");
}
on (release) {
_global.butSnd.atcPlay("playerSelect");
charSelected("char3");
}
Symbol 192 Button
on (rollOver) {
shfitBox("char4");
}
on (release) {
_global.butSnd.atcPlay("playerSelect");
charSelected("char4");
}
Symbol 193 Button
on (rollOver) {
shfitBox("char5");
}
on (release) {
_global.butSnd.atcPlay("playerSelect");
charSelected("char5");
}
Symbol 200 MovieClip Frame 20
stop();
Symbol 236 MovieClip Frame 1
playerOneSelected = false;
twoUp._visible = 0;
shfitBox = function (name) {
if (playerOneSelected == false) {
this.oneUp._x = this[name + "MC"]._x;
} else if ((_global.gameMode == "twoPlayer") && (playerOneSelected == true)) {
this.twoUp._x = this[name + "MC"]._x;
}
gotoAndStop(name);
};
charSelected = function (name) {
if ((_global.gameMode == "twoPlayer") && (playerOneSelected == true)) {
_global.playerTwoCharName = name;
_root.gotoAndStop("instructions2");
} else if (_global.gameMode == "onePlayer") {
_global.playerOneCharName = name;
_root.gotoAndStop("instructions");
}
if (playerOneSelected == false) {
_global.playerOneCharName = name;
playerOneSelected = true;
shfitBox(name);
this.twoUp._visible = 1;
}
};
stop();
Symbol 242 MovieClip Frame 12
stop();
Symbol 247 MovieClip Frame 12
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
dir = "fwd";
stop();
Symbol 260 MovieClip Frame 100
dir = "bkwd";
Symbol 263 MovieClip Frame 1
dir = "fwd";
stop();
Symbol 263 MovieClip Frame 100
dir = "bkwd";
Symbol 266 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 11
stop();
Symbol 284 MovieClip Frame 21
play();
Symbol 284 MovieClip Frame 45
this.gotoAndStop(_parent.home);
Symbol 284 MovieClip Frame 46
play();
Symbol 284 MovieClip Frame 63
this.gotoAndStop(_parent.home);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 11
stop();
Symbol 293 MovieClip Frame 21
play();
Symbol 293 MovieClip Frame 45
this.gotoAndStop(_parent.home);
Symbol 293 MovieClip Frame 46
play();
Symbol 293 MovieClip Frame 63
this.gotoAndStop(_parent.home);
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 11
stop();
Symbol 302 MovieClip Frame 21
play();
Symbol 302 MovieClip Frame 44
this.gotoAndStop(_parent.home);
Symbol 302 MovieClip Frame 45
play();
Symbol 302 MovieClip Frame 62
this.gotoAndStop(_parent.home);
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 11
stop();
Symbol 311 MovieClip Frame 21
play();
Symbol 311 MovieClip Frame 45
this.gotoAndStop(_parent.home);
Symbol 311 MovieClip Frame 46
play();
Symbol 311 MovieClip Frame 63
this.gotoAndStop(_parent.home);
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 11
stop();
Symbol 320 MovieClip Frame 21
play();
Symbol 320 MovieClip Frame 45
this.gotoAndStop(_parent.home);
Symbol 320 MovieClip Frame 46
play();
Symbol 320 MovieClip Frame 63
this.gotoAndStop(_parent.home);
Symbol 321 MovieClip Frame 1
this.home = "normal";
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 1
stop();
_root[myName].lock = false;
_root[this.otherPlayer].lock = false;
_root[myName].hands = "still";
Symbol 447 MovieClip Frame 8
gotoAndStop (1);
Symbol 447 MovieClip Frame 9
_root[myName].lock = true;
Symbol 447 MovieClip Frame 17
_root[myName].slap(1, "hard");
_root[this.otherPlayer].lock = true;
Symbol 447 MovieClip Frame 18
_root[this.otherPlayer + "Hand"]._visible = 0;
_global.butSnd.atcPlay("slapH");
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("ouch");
_root[this.myName + "Char"].mc.gotoAndPlay("happy");
Symbol 447 MovieClip Frame 26
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 27
_root[this.otherPlayer + "Hand"]._visible = 0;
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("happy");
_root[this.myName + "Char"].mc.gotoAndPlay("ouch");
_global.butSnd.atcPlay("miss");
Symbol 447 MovieClip Frame 36
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 37
_root[myName].lock = true;
Symbol 447 MovieClip Frame 45
_root[myName].slap(2, "hard");
_root[this.otherPlayer].lock = true;
Symbol 447 MovieClip Frame 46
_root[this.otherPlayer + "Hand"]._visible = 0;
_global.butSnd.atcPlay("slapH");
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("ouch");
_root[this.myName + "Char"].mc.gotoAndPlay("happy");
Symbol 447 MovieClip Frame 54
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 55
_root[this.otherPlayer + "Hand"]._visible = 0;
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("happy");
_root[this.myName + "Char"].mc.gotoAndPlay("ouch");
_global.butSnd.atcPlay("miss");
Symbol 447 MovieClip Frame 64
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 65
_root[myName].lock = true;
Symbol 447 MovieClip Frame 69
_root[myName].slap(1, "soft");
_root[this.otherPlayer].lock = true;
Symbol 447 MovieClip Frame 70
_root[this.otherPlayer + "Hand"]._visible = 0;
_global.butSnd.atcPlay("slapS");
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("ouch");
_root[this.myName + "Char"].mc.gotoAndPlay("happy");
Symbol 447 MovieClip Frame 76
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 77
_root[this.otherPlayer + "Hand"]._visible = 0;
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("happy");
_root[this.myName + "Char"].mc.gotoAndPlay("ouch");
_global.butSnd.atcPlay("miss");
Symbol 447 MovieClip Frame 84
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 85
_root[myName].lock = true;
Symbol 447 MovieClip Frame 89
_root[myName].slap(2, "soft");
_root[this.otherPlayer].lock = true;
Symbol 447 MovieClip Frame 90
_root[this.otherPlayer + "Hand"]._visible = 0;
_global.butSnd.atcPlay("slapS");
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("ouch");
_root[this.myName + "Char"].mc.gotoAndPlay("happy");
Symbol 447 MovieClip Frame 96
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 97
_root[this.otherPlayer + "Hand"]._visible = 0;
_root[this.otherPlayer + "Char"].mc.gotoAndPlay("happy");
_root[this.myName + "Char"].mc.gotoAndPlay("ouch");
_global.butSnd.atcPlay("miss");
Symbol 447 MovieClip Frame 105
gotoAndStop (1);
_root[this.otherPlayer + "Hand"]._visible = 1;
Symbol 447 MovieClip Frame 106
_root[myName].lock = true;
Symbol 447 MovieClip Frame 112
gotoAndStop (1);
if (_global.gameMode == "twoPlayer") {
_root[this.myName].attackPressed = false;
}
Symbol 447 MovieClip Frame 113
_root[myName].lock = true;
Symbol 447 MovieClip Frame 121
gotoAndStop (1);
if (_global.gameMode == "twoPlayer") {
_root[this.myName].attackPressed = false;
}
Symbol 447 MovieClip Frame 122
_root[myName].lock = true;
Symbol 447 MovieClip Frame 129
gotoAndStop (1);
if (_global.gameMode == "twoPlayer") {
_root[this.myName].attackPressed = false;
}
Symbol 447 MovieClip Frame 130
_root[myName].lock = true;
Symbol 447 MovieClip Frame 138
gotoAndStop (1);
if (_global.gameMode == "twoPlayer") {
_root[this.myName].attackPressed = false;
}
Symbol 447 MovieClip Frame 139
_root[myName].lock = true;
Symbol 447 MovieClip Frame 147
gotoAndStop (1);
Symbol 462 MovieClip Frame 1
_root.myCallWin = "";
_root.playerOne.disable = false;
_root.playerTwo.disable = false;
stop();
Symbol 462 MovieClip Frame 10
_global.voice.atcPlay("ready");
_root.playerOne.disable = true;
_root.playerTwo.disable = true;
_root.playerOne.powerMeter("stop");
_root.playerTwo.powerMeter("stop");
play();
Symbol 462 MovieClip Frame 41
_root.playerOne.disable = false;
_root.playerTwo.disable = false;
_global.voice.atcPlay("fight");
Symbol 462 MovieClip Frame 63
if (sndFirstTime != true) {
if (_global.musicOff != true) {
_global.music.attachSound("inGame_loop");
_global.music.start(0, 999);
}
sndFirstTime = true;
}
gotoAndStop (1);
Symbol 462 MovieClip Frame 68
_global.voice.atcPlay("freehit");
stop();
Symbol 462 MovieClip Frame 70
_root.playerOne.disable = true;
_root.playerTwo.disable = true;
Symbol 462 MovieClip Frame 99
gotoAndPlay (10);
Symbol 462 MovieClip Frame 101
_root.playerOne.disable = true;
_root.playerTwo.disable = true;
Symbol 462 MovieClip Frame 141
_global.voice.atcPlay("swapPlayers");
Symbol 462 MovieClip Frame 177
_root.game.swapPlayers();
gotoAndPlay (10);
Symbol 462 MovieClip Frame 180
_global.voice.atcPlay("gameOver");
_root.playerOne.disable = true;
_root.playerTwo.disable = true;
Symbol 462 MovieClip Frame 223
_root.gotoAndStop("winLose");
Symbol 468 MovieClip Frame 13
stop();
Symbol 469 Button
on (rollOver) {
sndMC._alpha = 100;
}
on (rollOut) {
sndMC._alpha = 50;
}
on (release) {
if (_global.musicOff != true) {
_global.musicOff = true;
_global.music.stop();
_root.sndMC.gotoAndStop("sndOff");
} else {
_global.musicOff = false;
_global.music.attachSound("inGame_loop");
_global.music.start(0, 999);
_root.sndMC.gotoAndStop("sndOn");
}
}
Symbol 516 MovieClip Frame 87
gotoAndPlay (59);
Symbol 540 MovieClip Frame 87
stop();
Symbol 542 MovieClip Frame 7
stop();
Symbol 544 MovieClip Frame 7
stop();
Symbol 545 MovieClip Frame 1
gotoAndStop(_root.playerWin);
stop();
Symbol 548 MovieClip Frame 7
stop();