Frame 1
function createStattooz(thisSkin, thisDomain) {
_root.Stattooz = new stattooz(myGameName, myDeveloper, myGenre, myGameType, thisSkin, myPlayer, myThreshold, thisDomain);
_root.Stattooz.reportEvent("load");
}
function createBranditz() {
_root.Branditz = new branditz(myGameName, myGameType, createStattooz);
}
function initialize() {
var _local1 = new expressinstall();
if (!_local1.init()) {
createBranditz();
}
}
stop();
var myGameName = "hollywood_bash";
var myDeveloper = "3rdsense";
var myGenre = 7;
var myGameType = 2;
var myThreshold = 100;
_root.score = 0;
_root.loadComplete = function () {
_root.gotoAndStop("intro");
};
_root.introComplete = function () {
_root.gotoAndPlay("begin");
};
_root.playAgain = function () {
_root.gotoAndStop("menu");
};
System.security.allowDomain("*");
_root.pirateSwitch = function () {
var _local2 = false;
if ((((_root.Stattooz.pPlayer != "External") && (_root.Stattooz.pPlayer != "nopirate")) || (System.capabilities.playerType != "External")) && (myGameType != 1)) {
if (((((((!((_url.indexOf("file://") == 0) && (_url.indexOf("development") != -1))) && (_url.indexOf("", 0) != 0)) && (_url.indexOf("", 0) != 0)) && (_url.indexOf("", 0) != 0)) && (_url.indexOf("", 0) != 0)) && (_url.indexOf("", 0) != 0)) && (_url.indexOf("", 0) != 0)) {
}
}
return(_local2);
};
_root.checkPirate = function () {
if (_root.pirateSwitch()) {
_root.reportEvent("pirate");
_root.gotoAndStop("pirate");
} else {
_root.introComplete();
}
};
initialize();
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 7
stop();
Frame 14
stop();
Frame 19
stop();
Frame 48
_root.scoreboard.theRound = 0;
stop();
function begincolouring(whichcolor, whichobject) {
if (whichcolor == 1) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"90", gb:"0", ba:"75", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 2) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"105", gb:"0", ba:"75", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 3) {
charColorTransform = new Object();
charColorTransform = {ra:"58", rb:"0", ga:"34", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 4) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"155", gb:"0", ba:"155", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 5) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"85", gb:"0", ba:"105", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 6) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 7) {
charColorTransform = new Object();
charColorTransform = {ra:"60", rb:"00", ga:"70", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 8) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 9) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"65", gb:"0", ba:"15", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 10) {
charColorTransform = new Object();
charColorTransform = {ra:"155", rb:"0", ga:"105", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 11) {
charColorTransform = new Object();
charColorTransform = {ra:"110", rb:"0", ga:"75", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 12) {
charColorTransform = new Object();
charColorTransform = {ra:"128", rb:"0", ga:"64", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 13) {
charColorTransform = new Object();
charColorTransform = {ra:"160", rb:"00", ga:"00", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 14) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 15) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"85", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 16) {
charColorTransform = new Object();
charColorTransform = {ra:"55", rb:"0", ga:"0", gb:"0", ba:"35", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 17) {
charColorTransform = new Object();
charColorTransform = {ra:"55", rb:"0", ga:"0", gb:"0", ba:"55", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 18) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"255", gb:"0", ba:"255", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 19) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 20) {
charColorTransform = new Object();
charColorTransform = {ra:"80", rb:"0", ga:"80", gb:"0", ba:"80", bb:"00", aa:"100", ab:"0"};
}
if (whichcolor == 21) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
charColor = new Color(whichobject);
charColor.setTransform(charColorTransform);
}
Instance of Symbol 102 MovieClip "scoreboard" in Frame 48
onClipEvent (load) {
b2_jscore = 0;
b2_pthrown = 0;
b2_planded = 0;
b2_pblocked = 0;
b1_jscore = 0;
b1_pthrown = 0;
b1_planded = 0;
b1_pblocked = 0;
roundScore = 0;
knockOutBonus = 1;
totalScore = 0;
theTime = Math.round(getTimer() / 1000);
tmpTime = theTime;
b2_healthLevel = 280;
b1_healthLevel = 280;
roundEnd = false;
knockedOut = false;
_root.boxingIsRunning = false;
}
onClipEvent (enterFrame) {
if (_root.boxingIsRunning) {
trace("gameOn");
roundTime = 40 - (theTime - tmpTime);
theTime = Math.round(getTimer() / 1000);
b2_jscore = Math.round(b2_planded / 3);
b1_jscore = Math.round(b1_planded / 3);
if ((theTime - tmpTime) == 40) {
_root.final.final_b1_jscore = b1_jscore;
_root.final.final_b2_jscore = b2_jscore;
_root.final.final_b1_pthrown = b1_pthrown;
_root.final.final_b2_pthrown = b2_pthrown;
_root.final.final_b1_planded = b1_planded;
_root.final.final_b2_planded = b2_planded;
_root.final.final_b1_pblocked = b1_pblocked;
_root.final.final_b2_pblocked = b2_pblocked;
_root.final.whichRound = 1;
_root.gotoAndStop("roundOver");
if (!roundEnd) {
roundScore = ((((b1_pthrown * 4) + (b1_planded * 10)) + (b1_pblocked * 2)) + knockOutBonus) * theRound;
_root.total.totalScore = _root.total.totalScore + roundScore;
roundEnd = true;
}
}
}
}
Instance of Symbol 102 MovieClip "total" in Frame 48
onClipEvent (load) {
totalScore = 0;
}
Instance of Symbol 102 MovieClip "damage" in Frame 48
onClipEvent (load) {
CPUdamage = 10;
}
Frame 60
_root.scoreboard.theRound = _root.scoreboard.theRound + 1;
stop();
Instance of Symbol 161 MovieClip "boxer2" in Frame 60
onClipEvent (load) {
_root.begincolouring(_root.playerCPU.hairstyle, this.hair);
_root.begincolouring(_root.playerCPU.bodystyle, this.body);
_root.begincolouring(_root.playerCPU.bodystyle, this.nose);
_root.begincolouring(_root.playerCPU.bodystyle, this.legs);
_root.begincolouring(_root.playerCPU.bodystyle, this.face);
_root.begincolouring(_root.playerCPU.bodystyle, this.arm_left);
_root.begincolouring(_root.playerCPU.bodystyle, this.arm_right);
_root.begincolouring(_root.playerCPU.dressstyle, this.dress);
}
Instance of Symbol 161 MovieClip "boxer1" in Frame 60
onClipEvent (load) {
_root.begincolouring(_root.player.hairstyle, this.hair);
_root.begincolouring(_root.player.bodystyle, this.body);
_root.begincolouring(_root.player.bodystyle, this.nose);
_root.begincolouring(_root.player.bodystyle, this.legs);
_root.begincolouring(_root.player.bodystyle, this.face);
_root.begincolouring(_root.player.bodystyle, this.arm_left);
_root.begincolouring(_root.player.bodystyle, this.arm_right);
_root.begincolouring(_root.player.dressstyle, this.dress);
}
Frame 70
stop();
Instance of Symbol 208 MovieClip "boxer1" in Frame 70
onClipEvent (load) {
_root.begincolouring(_root.player.hairstyle, _root.boxer1.hair);
_root.begincolouring(_root.player.bodystyle, _root.boxer1.body);
_root.begincolouring(_root.player.bodystyle, _root.boxer1.nose);
_root.begincolouring(_root.player.bodystyle, _root.boxer1.face);
_root.begincolouring(_root.player.bodystyle, _root.boxer1.arm_left);
_root.begincolouring(_root.player.bodystyle, _root.boxer1.arm_right);
_root.begincolouring(_root.player.dressstyle, _root.boxer1.dress);
block = 0;
isBlocking = 0;
isPunchingRight = 0;
isPunchingLeft = 0;
moveSpeed = 2;
xPos = 0;
yPos = 0;
fatigueLevel = 140;
tooTired = false;
tiredLevel = 0;
blocking = 0;
healthLevel = 280;
stunned = 0;
stunTimer = 0;
}
onClipEvent (enterFrame) {
if (stunned == 1) {
stunTimer = stunTimer + 1;
if ((stuntimer = 60)) {
stunTimer = 0;
stunned = 0;
}
}
_root.b1_health._width = healthLevel / 2;
_root.b1_fatigue._width = fatigueLevel;
if ((fatigueLevel < 140) && (tooTired == false)) {
fatigueLevel = fatigueLevel + 0.09;
}
if (tooTired == true) {
tiredLevel = tiredLevel + 1;
if (tiredLevel == 60) {
tiredLevel = 0;
fatigueLevel = 30;
moveSpeed = 3;
tooTired = false;
}
}
if (fatigueLevel <= 0) {
fatigueLevel = 0;
_root.b1_fatigue._width = 0;
moveSpeed = 1;
tooTired = true;
}
if ((((isPunchingRight == 0) && (isPunchingLeft == 0)) && (fatigueLevel > 0)) && (stunned == 0)) {
if (Key.isDown(83)) {
block = 1;
if ((block == 1) && (isBlocking == 0)) {
_root.boxer1.arm_right.gotoAndPlay("block");
_root.boxer1.arm_left.gotoAndPlay("block");
isBlocking = 1;
} else {
block = 0;
isBlocking = 2;
if (isBlocking == 2) {
_root.boxer1.arm_left.gotoAndPlay("blockend");
_root.boxer1.arm_right.gotoAndPlay("blockend");
}
}
}
}
if ((((isPunchingRight == 0) && (isBlocking == 0)) && (fatigueLevel > 0)) && (stunned == 0)) {
if (Key.isDown(68)) {
if (isPunchingRight == 0) {
if (fatigueLevel > 0) {
fatigueLevel = fatigueLevel - 10;
}
}
isPunchingRight = 1;
_root.boxer1.arm_right.gotoAndPlay("punch");
_root.scoreboard.b1_pthrown = _root.scoreboard.b1_pthrown + 1;
}
}
if ((((isPunchingLeft == 0) && (isBlocking == 0)) && (fatigueLevel > 0)) && (stunned == 0)) {
if (Key.isDown(65)) {
if (isPunchingLeft == 0) {
if (fatigueLevel > 0) {
fatigueLevel = fatigueLevel - 10;
}
}
isPunchingLeft = 1;
_root.boxer1.arm_left.gotoAndPlay("punch");
_root.scoreboard.b1_pthrown = _root.scoreboard.b1_pthrown + 1;
}
}
if (this._y < 69) {
this._y = 69;
} else if (this._y > 330) {
this._y = 330;
} else if (this._x < 154) {
this._x = 154;
} else if (this._x > 403) {
this._x = 403;
}
if (Key.isDown(38)) {
if (_y > 69) {
_y = (_y - moveSpeed);
}
}
if (Key.isDown(40)) {
if (_y < 330) {
_y = (_y + moveSpeed);
}
}
if (Key.isDown(37)) {
if (_x > 154) {
_x = (_x - moveSpeed);
}
}
if (Key.isDown(39)) {
if (_x < 403) {
_x = (_x + moveSpeed);
}
}
myRadians = Math.atan2(_root.boxer2._y - this._y, _root.boxer2._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
}
Instance of Symbol 102 MovieClip "b1_col" in Frame 70
onClipEvent (enterFrame) {
if (hitTest(_root.b2_col) == true) {
if ((this._x - _root.boxer2._x) < 0) {
_root.boxer1._x = _root.boxer1._x - 2;
} else {
_root.boxer1._x = _root.boxer1._x + 2;
}
if ((this._y - _root.boxer2._y) < 0) {
_root.boxer1._y = _root.boxer1._y - 2;
} else {
_root.boxer1._y = _root.boxer1._y + 2;
}
}
this._x = _root.boxer1._x;
this._y = _root.boxer1._y;
}
Instance of Symbol 102 MovieClip "b1_col_punch" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.boxer1._x;
this._y = _root.boxer1._y;
}
Instance of Symbol 233 MovieClip "boxer2" in Frame 70
onClipEvent (load) {
_root.begincolouring(_root.playerCPU.hairstyle, _root.boxer2.hair);
_root.begincolouring(_root.playerCPU.bodystyle, _root.boxer2.body);
_root.begincolouring(_root.playerCPU.bodystyle, _root.boxer2.nose);
_root.begincolouring(_root.playerCPU.bodystyle, _root.boxer2.face);
_root.begincolouring(_root.playerCPU.bodystyle, _root.boxer2.arm_left);
_root.begincolouring(_root.playerCPU.bodystyle, _root.boxer2.arm_right);
_root.begincolouring(_root.playerCPU.dressstyle, _root.boxer2.dress);
reflexLevel = 0;
reflex = 0.5;
timeTmp = 0;
relfexTime = 0;
hitCheck = 0;
tmpXpos = 400;
tmpYpos = 300;
fatigueLevel = 140;
moveSpeed = 2;
aggression = 10;
attackDis = 0;
blocking = 0;
isPunchingRight = 0;
isPunchingLeft = 0;
isPunching = 0;
moveX = 0;
moveY = 0;
rndmFight = random(10) + 10;
tooTired = false;
blockScore = 0;
tiredLevel = 0;
healthLevel = 280;
attackStance = 0;
aggTime = 0;
active = 0;
punchMoving = 0;
}
onClipEvent (enterFrame) {
function fatigue() {
if ((fatigueLevel < 140) && (tooTired == false)) {
fatigueLevel = fatigueLevel + 0.09;
}
if (tooTired == true) {
tiredLevel = tiredLevel + 1;
if (tiredLevel == 60) {
tiredLevel = 0;
fatigueLevel = 30;
moveSpeed = 2;
tooTired = false;
active = 0;
}
}
if (fatigueLevel <= 0) {
if (blocking == 1) {
_root.boxer2.arm_right.gotoAndStop(1);
_root.boxer2.arm_left.gotoAndStop(1);
blocking = 0;
}
fatigueLevel = 0;
_root.b1_fatigue._width = 0;
moveSpeed = 1;
if (hypLength <= 85) {
retreatMove();
}
tooTired = true;
}
}
function reflexMod() {
if (((_root.scoreboard.theTime - relfexTime) >= 4) && (reflexLevel != 0)) {
relfexTime = _root.scoreboard.theTime;
reflexLevel = reflexLevel - 1;
}
if (reflexLevel == 3) {
reflex = 0;
} else if (reflexLevel == 4) {
reflex = 1;
} else if (reflexLevel == 5) {
reflex = 2;
}
}
function situationAwarness() {
if ((_root.scoreboard.theTime - timeTmp) >= reflex) {
timeTmp = _root.scoreboard.theTime;
if ((((_root.scoreboard.b1_planded - hitCheck) > 3) && (blocking != 1)) && (isPunching == 0)) {
active = 1;
blocking = 1;
_root.boxer2.arm_right.gotoAndStop("blockend");
_root.boxer2.arm_left.gotoAndStop("blockend");
hitCheck = _root.scoreboard.b1_planded;
blockEndTime = _root.scoreboard.theTime;
} else if ((((_root.scoreboard.b1_planded - hitCheck) > 0) && (blocking != 1)) && (isPunching == 0)) {
active = 1;
blocking = 1;
_root.boxer2.arm_right.gotoAndStop("blockend");
_root.boxer2.arm_left.gotoAndStop("blockend");
hitCheck = _root.scoreboard.b1_planded;
blockEndTime = _root.scoreboard.theTime;
}
}
}
function retreatMove() {
active = 1;
moving = 1;
moveX = random(249) + 154;
moveY = random(261) + 69;
moveToPlace();
}
function moveToPlace() {
situationAwarness();
if ((this._x <= moveX) && (active == 1)) {
this._x = this._x + moveSpeed;
if (this._x >= moveX) {
active = 2;
}
} else if ((this._x > moveX) && (active == 1)) {
this._x = this._x - moveSpeed;
if (this._x <= moveX) {
active = 2;
}
}
if ((this._y <= moveY) && (active == 2)) {
this._y = this._y + moveSpeed;
if (this._y >= moveY) {
active = 0;
moving = 0;
}
} else if ((this._y > moveY) && (active == 2)) {
this._y = this._y - moveSpeed;
if (this._y <= moveY) {
active = 0;
moving = 0;
}
}
}
function attack() {
active = 1;
if (hypLength > 85) {
attackDis = hypLength / 2;
aggXmove = aggXdiff / attackDis;
aggYmove = aggYdiff / attackDis;
this._x = this._x + aggXmove;
this._y = this._y + aggYmove;
}
if (hypLength <= 85) {
if (((isPunchingRight == 0) && (isPunching == 0)) && (fatigueLevel > 10)) {
_root.boxer2.arm_right.gotoAndPlay("punch");
_root.scoreboard.b2_pthrown = _root.scoreboard.b2_pthrown + 1;
if (fatigueLevel > 0) {
fatigueLevel = fatigueLevel - 5;
}
}
if ((isPunchingLeft == 0) && (isPunching == 1)) {
_root.boxer2.arm_left.gotoAndPlay("punch");
_root.scoreboard.b2_pthrown = _root.scoreboard.b2_pthrown + 1;
if (fatigueLevel > 0) {
fatigueLevel = fatigueLevel - 5;
}
}
}
punchMoving = 1;
if (blockScore >= 4) {
blockScore = 0;
punchMoving = 0;
active = 0;
}
}
if (this._y < 69) {
this._y = 69;
} else if (this._y > 330) {
this._y = 330;
} else if (this._x < 154) {
this._x = 154;
} else if (this._x > 403) {
this._x = 403;
}
myRadians = Math.atan2(_root.boxer1._y - this._y, _root.boxer1._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
aggXdiff = _root.boxer1._x - this._x;
aggYdiff = _root.boxer1._y - this._y;
hypLength = Math.round(Math.sqrt(Math.pow(aggXdiff, 2) + Math.pow(aggYdiff, 2)));
_root.b2_health._width = healthLevel / 2;
_root.b2_fatigue._width = fatigueLevel;
if (_root.boxer2.aggression < 20) {
if ((_root.scoreboard.theTime - aggTime) > 2) {
aggTime = _root.scoreboard.theTime;
aggression = aggression + 3;
}
} else if (_root.boxer2.aggression > 20) {
aggression = 20;
}
if (_root.boxer1.fatigueLevel <= 0) {
aggression = 20;
}
fatigue();
reflexMod();
if (((fatigueLevel > 0) && (blocking == 0)) && (moving == 0)) {
attack();
}
if ((active == 0) && (punchMoving == 0)) {
retreatMove();
} else if ((active != 0) && (moving == 1)) {
moveToPlace();
}
if (((_root.scoreboard.theTime - blockEndTime) >= 4) && (blocking == 1)) {
_root.boxer2.arm_right.gotoAndStop(1);
_root.boxer2.arm_left.gotoAndStop(1);
blocking = 0;
}
}
Instance of Symbol 243 MovieClip "b2_blood" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.boxer2._x;
this._y = _root.boxer2._y;
this._rotation = _root.boxer2._rotation;
}
Instance of Symbol 243 MovieClip "b1_blood" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.boxer1._x;
this._y = _root.boxer1._y;
this._rotation = _root.boxer1._rotation;
}
Instance of Symbol 102 MovieClip "b2_col" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.boxer2._x;
this._y = _root.boxer2._y;
}
Instance of Symbol 102 MovieClip "b2_col_punch" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.boxer2._x;
this._y = _root.boxer2._y;
}
Instance of Symbol 251 MovieClip in Frame 70
onClipEvent (load) {
this.gotoAndStop(_root.playerCPU.faceframe);
}
Instance of Symbol 102 MovieClip "final" in Frame 70
onClipEvent (load) {
final_b2_jscore = 0;
final_b2_pthrown = 0;
final_b2_planded = 0;
final_b2_pblocked = 0;
final_b1_jscore = 0;
final_b1_pthrown = 0;
final_b1_planded = 0;
final_b1_pblocked = 0;
whichRound = 0;
knockout = 0;
b2_healthLevel = _root.b2_health._width * 2;
b1_healthLevel = _root.b1_health._width * 2;
}
onClipEvent (enterFrame) {
if (_root.boxer2.healthLevel <= 0) {
_root.scoreboard.knockOutBonus = 40 - (_root.scoreboard.theTime - _root.scoreboard.tmpTime);
if (_root.scoreboard.knockOutBonus < 1) {
_root.scoreboard.knockOutBonus = 1;
}
_root.scoreboard.roundScore = ((((_root.scoreboard.b1_pthrown * 4) + (_root.scoreboard.b1_planded * 10)) + (_root.scoreboard.b1_pblocked * 2)) + _root.scoreboard.knockOutBonus) * _root.scoreboard.theRound;
_root.total.totalScore = _root.total.totalScore + _root.scoreboard.roundScore;
_root.scoreboard.knockedOut = true;
_root.gotoAndStop("roundOver");
}
if (_root.boxer1.healthLevel <= 0) {
_root.scoreboard.roundScore = ((((_root.scoreboard.b1_pthrown * 4) + (_root.scoreboard.b1_planded * 10)) + (_root.scoreboard.b1_pblocked * 2)) + _root.scoreboard.knockOutBonus) * _root.scoreboard.theRound;
_root.total.totalScore = _root.total.totalScore + _root.scoreboard.roundScore;
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 251 MovieClip in Frame 70
onClipEvent (load) {
this.gotoAndStop(_root.player.faceframe);
}
Frame 85
stop();
stop();
Instance of Symbol 102 MovieClip "final" in Frame 85
onClipEvent (load) {
final_b2_jscore = 0;
final_b2_pthrown = 0;
final_b2_planded = 0;
final_b2_pblocked = 0;
final_b1_jscore = 0;
final_b1_pthrown = 0;
final_b1_planded = 0;
final_b1_pblocked = 0;
whichRound = 0;
knockout = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 161 MovieClip "boxer2" in Frame 85
onClipEvent (load) {
_root.begincolouring(_root.playerCPU.hairstyle, this.hair);
_root.begincolouring(_root.playerCPU.bodystyle, this.body);
_root.begincolouring(_root.playerCPU.bodystyle, this.nose);
_root.begincolouring(_root.playerCPU.bodystyle, this.legs);
_root.begincolouring(_root.playerCPU.bodystyle, this.face);
_root.begincolouring(_root.playerCPU.bodystyle, this.arm_left);
_root.begincolouring(_root.playerCPU.bodystyle, this.arm_right);
_root.begincolouring(_root.playerCPU.dressstyle, this.dress);
}
Instance of Symbol 161 MovieClip "boxer1" in Frame 85
onClipEvent (load) {
_root.begincolouring(_root.player.hairstyle, this.hair);
_root.begincolouring(_root.player.bodystyle, this.body);
_root.begincolouring(_root.player.bodystyle, this.nose);
_root.begincolouring(_root.player.bodystyle, this.legs);
_root.begincolouring(_root.player.bodystyle, this.face);
_root.begincolouring(_root.player.bodystyle, this.arm_left);
_root.begincolouring(_root.player.bodystyle, this.arm_right);
_root.begincolouring(_root.player.dressstyle, this.dress);
}
Frame 99
_root.boxingIsRunning = false;
_root.score = _root.total.totalScore;
stop();
Frame 120
stop();
function begincolouring(whichcolor, whichobject) {
if (whichcolor == 1) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"90", gb:"0", ba:"75", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 2) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"105", gb:"0", ba:"75", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 3) {
charColorTransform = new Object();
charColorTransform = {ra:"58", rb:"0", ga:"34", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 4) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"155", gb:"0", ba:"155", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 5) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"85", gb:"0", ba:"105", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 6) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 7) {
charColorTransform = new Object();
charColorTransform = {ra:"60", rb:"00", ga:"70", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 8) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 9) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"65", gb:"0", ba:"15", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 10) {
charColorTransform = new Object();
charColorTransform = {ra:"155", rb:"0", ga:"105", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 11) {
charColorTransform = new Object();
charColorTransform = {ra:"110", rb:"0", ga:"75", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 12) {
charColorTransform = new Object();
charColorTransform = {ra:"128", rb:"0", ga:"64", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 13) {
charColorTransform = new Object();
charColorTransform = {ra:"160", rb:"00", ga:"00", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 14) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 15) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"85", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 16) {
charColorTransform = new Object();
charColorTransform = {ra:"55", rb:"0", ga:"0", gb:"0", ba:"35", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 17) {
charColorTransform = new Object();
charColorTransform = {ra:"55", rb:"0", ga:"0", gb:"0", ba:"55", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 18) {
charColorTransform = new Object();
charColorTransform = {ra:"255", rb:"0", ga:"255", gb:"0", ba:"255", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 19) {
charColorTransform = new Object();
charColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
if (whichcolor == 20) {
charColorTransform = new Object();
charColorTransform = {ra:"80", rb:"0", ga:"80", gb:"0", ba:"80", bb:"00", aa:"100", ab:"0"};
}
if (whichcolor == 21) {
charColorTransform = new Object();
charColorTransform = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
}
charColor = new Color(whichobject);
charColor.setTransform(charColorTransform);
}
Instance of Symbol 102 MovieClip "total" in Frame 120
onClipEvent (load) {
totalScore = 0;
}
Frame 135
stop();
Symbol 357 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 354 MovieClip [__Packages.branditz] Frame 0
class branditz
{
var pVersion, pGameName, pGameType, pStartFunction, pLoadedList, pLoaded, pLoadWhenCached, pCacheKiller, pBreak, pBreakID, pDomain, pRequestAddress, pElements, pPreLoadingHolder, pSkinPath;
function branditz (thisGameName, thisGameType, thisStartFunction) {
_root.mySandbox.text = "Sandbox = " + System.security.sandboxType;
pVersion = 2;
pGameName = thisGameName;
pGameType = thisGameType;
pStartFunction = thisStartFunction;
System.security.allowDomain("*");
pLoadedList = [];
pLoaded = false;
pLoadWhenCached = false;
pCacheKiller = "";
pBreak = false;
pBreakID = setInterval(this, "serverTimer", 17000);
pDomain = getDomain(_root._url);
if ((Number(pGameType) == 1) || (pDomain == "")) {
pRequestAddress = "";
} else if (pDomain != "default") {
pRequestAddress = pDomain + "branditz/";
} else {
pRequestAddress = "";
}
if (_root._url.slice(0, 4) != "file") {
pCacheKiller = "?cache=" + Math.random();
}
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
var _local5 = function (obj, item) {
(this.pDomain + "play/") + this.pGameName;
};
if (Number(thisGameType) == 1) {
var _local4 = new ContextMenuItem("Play the full version of this game!", _local5);
_local3.customItems.push(_local4);
}
_root.menu = _local3;
getRemotePaths();
}
function getRemotePaths() {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pController = this;
var _local5 = pRequestAddress;
_root.myFeedback.text = _root.myFeedback.text + (("OPENING: " + pRequestAddress) + newline);
_local4.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
this.pController.pSkinPath = this.skinurl;
this.pController.pElements = this.elements.split(",");
_root.myFeedback.text = _root.myFeedback.text + ((" LOADED " + this) + newline);
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
if (((this.pController.pSkinPath == undefined) || (this.pController.pSkinPath == "noskin")) || (this.pController.pElements.length < 1)) {
_root.gotoAndStop("preloader");
} else {
this.pController.preloadElements();
}
} else {
_root.myFeedback.text = _root.myFeedback.text + " ERROR - \r";
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
_root.pStattooz.reportEvent("patherror");
_root.gotoAndStop("preloader");
}
trace("my request location = " + this.pController.pRequestAddress);
};
_local4.onHTTPStatus = function (_arg4) {
_root.myFeedback.text = _root.myFeedback.text + "?\r";
var _local3 = this.pController.reportHttpStatus(_arg4);
_root.myFeedback.text = _root.myFeedback.text + (((("STATUS = " + _arg4) + " ") + _local3) + newline);
};
_local3.version = pVersion;
_local3.url = _root._url;
_local3.gamename = pGameName;
_local3.gametype = pGameType;
_local3.sendAndLoad(_local5, _local4, "POST");
}
function preloadElements() {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = (pPreLoadingHolder = _root.createEmptyMovieClip("myBrandingLoader", _root.getNextHighestDepth()));
_local3._xscale = 1;
_local3._yscale = 1;
_local3._x = -1000;
_local3._y = -1000;
_local3._alpha = 0;
preloadNext(pPreLoadingHolder);
} else {
pLoaded = true;
_root.gotoAndStop("preloader");
}
}
function preloadElement(thisElement, thisContainer) {
_root.myLoadingText.text = "LOADING:" + thisElement;
var _local5 = thisContainer.createEmptyMovieClip(thisElement + "Holder", thisContainer.getNextHighestDepth());
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.myContainer = thisContainer;
_local3.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
_root.myLoadingText.text = "LOADING:" + thisElement;
if (this.myController.pBreak) {
this.myController.preloadNext(this.myContainer);
}
};
_local3.onLoadInit = function (thisClip) {
trace("Branding Element Preloaded: " + thisClip);
this.myController.addToLoaded(this.myElement);
this.myController.preloadNext(this.myContainer);
};
_local3.onLoadError = function (thisClip) {
this.myController.preloadNext(this.myContainer);
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, _local5);
}
function preloadNext(thisContainer) {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = pElements.splice(0, 1)[0];
preloadElement(_local3, pPreLoadingHolder);
} else {
pPreLoadingHolder.removeMovieClip();
pLoaded = true;
_root.gotoAndStop("preloader");
}
}
function reportHttpStatus(thisStatusNumber) {
var _local1;
if (thisStatusNumber < 100) {
_local1 = "flashError";
} else if (thisStatusNumber < 200) {
_local1 = "informational";
} else if (thisStatusNumber < 300) {
_local1 = "successful";
} else if (thisStatusNumber < 400) {
_local1 = "redirection";
} else if (thisStatusNumber < 500) {
_local1 = "clientError";
} else if (thisStatusNumber < 600) {
_local1 = "serverError";
} else if (thisStatusNumber == undefined) {
_local1 = "File Not found";
}
return(_local1);
}
function addToLoaded(thisElement) {
pLoadedList.push(thisElement);
}
function serverTimer() {
trace("Timer Finished");
if (!pLoaded) {
trace("Not Loaded");
pBreak = true;
}
clearInterval(pBreakID);
}
function activateElement(thisElement, thisHolder, thisForce) {
trace("Loading this element: " + thisElement);
if (isInArray(thisElement, pLoadedList) || (thisForce)) {
trace("Item Cleared for loading: " + thisElement);
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.onLoadInit = function (thisClip) {
_root.myFeedback.text = "Load success - " + this.myElement;
thisClip.myX = this.X;
thisClip.myY = this.Y;
thisClip.gotoAndStop("show");
};
var _local5 = new MovieClipLoader();
_local5.addListener(_local3);
trace((("my clip = " + pSkinPath) + thisElement) + ".swf");
_local5.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, thisHolder);
}
}
function isInArray(thisItem, thisArray) {
var _local2 = false;
for (var _local3 in thisArray) {
if (thisArray[_local3] == thisItem) {
_local2 = true;
break;
}
}
return(_local2);
}
function getDomain(thisUrl) {
var _local2;
var _local3 = thisUrl.split(":")[0];
switch (_local3) {
case "http" :
case "" :
var _local1 = thisUrl.split("/");
_local2 = ((((_local1[0] + "/") + _local1[1]) + "/") + _local1[2]) + "/";
break;
default :
_local2 = "default";
}
return(_local2);
}
}
Symbol 355 MovieClip [__Packages.expressinstall] Frame 0
class expressinstall
{
var needsUpdate, updater, hold;
function expressinstall () {
needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
}
function init() {
if (needsUpdate) {
loadUpdater();
return(true);
}
return(false);
}
function loadUpdater() {
System.security.allowDomain("fpdownload.macromedia.com");
updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
updater.installStatus = _self.onInstallStatus;
hold = updater.createEmptyMovieClip("hold", 1);
updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
hold.loadMovie("" + _local3);
}
function initUpdater() {
hold.redirectURL = _root.MMredirectURL;
hold.MMplayerType = _root.MMplayerType;
hold.MMdoctitle = _root.MMdoctitle;
hold.startUpdate();
}
function onInstallStatus(msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
}
}
}
Symbol 356 MovieClip [__Packages.stattooz] Frame 0
class stattooz
{
var pGameName, pDeveloper, pGenre, pGameType, pGameSkin, pThreshold, pDomain, pPlayer, pGameUrl, pStatsPath;
function stattooz (thisGameName, thisDeveloper, thisGenre, thisGameType, thisGameSkin, thisPlayer, thisThreshold, thisDomain) {
pGameName = thisGameName;
pDeveloper = thisDeveloper;
pGenre = thisGenre;
pGameType = thisGameType;
pGameSkin = thisGameSkin;
pThreshold = thisThreshold;
pDomain = thisDomain;
if (pGameSkin == undefined) {
pGameSkin = "noskin";
}
pPlayer = thisPlayer;
if ((thisPlayer != "activate") && (thisPlayer != "nopirate")) {
pPlayer = System.capabilities.playerType;
}
pGameUrl = _root._url;
pStatsPath = "";
}
function reportEvent(thisEventName) {
if (pPlayer != "External") {
var _local2 = getEventId(thisEventName);
sendStat(_local2);
}
}
function sendStat(thisEventID) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pEvent = thisEventID;
_local4.pController = this;
_local4.onLoad = function (success) {
var _local3;
if (success) {
if (this.done == "true") {
_local3 = (("SUCCESS - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
}
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Log file not located: ") + this.pStatsPath;
}
trace(_local3);
_root.myFeedback.text = _root.myFeedback.text + (_local3 + newline);
};
_local4.onHTTPStatus = function (_arg2) {
this.pController.reportHttpStatus(_arg2);
};
_local3.skin = pGameSkin;
_local3.gamename = pGameName;
_local3.genre = pGenre;
_local3.developer = pDeveloper;
_local3.url = pGameUrl;
_local3.event = thisEventID;
_local3.type = pGameType;
_local3.sendAndLoad(pStatsPath, _local4, "POST");
}
function getEventId(thisEventName) {
var _local1;
if (!isNaN(Number(thisEventName))) {
_local1 = thisEventName;
} else {
switch (thisEventName) {
case "load" :
_local1 = 1;
break;
case "play" :
_local1 = 2;
break;
case "endpass" :
_local1 = 3;
break;
case "endfail" :
_local1 = 4;
break;
case "submit" :
_local1 = 5;
break;
case "moregames" :
_local1 = 6;
break;
case "creditsview" :
_local1 = 7;
break;
case "creditsthrough" :
_local1 = 8;
break;
case "pirate" :
_local1 = 9;
break;
case "patherror" :
_local1 = 10;
break;
case "skinerror" :
_local1 = 11;
break;
default :
_local1 = 0;
}
}
return(_local1);
}
function submitScore() {
_root.Stattooz.reportEvent("submit");
var _local3 = new LoadVars();
_local3.developer = pDeveloper;
_local3.score = _root.score;
_local3.game_name = pGameName;
_local3.send(pDomain + "comp_entry.php", "_parent", "GET");
}
}
Symbol 13 MovieClip Frame 1
_root.Branditz.activateElement("preloader", this);
Symbol 13 MovieClip Frame 2
function loadFinished() {
pStattooz.reportEvent("skinerror");
_root.loadComplete();
}
this._alpha = 100;
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded / iBytesTotal) * 100;
if (iBytes < 100) {
this.preloader.gotoAndStop(Math.ceil(iBytes));
this.preloader.percent.text = Math.ceil(iBytes) + "%";
iLastBytes = iBytes;
} else {
gotoAndStop ("loaded");
this._currentframe == this._totalframes;
this.loadFinished();
}
_root.myFeedback.text = "loading conmmenced";
Symbol 13 MovieClip Frame 3
this.gotoAndPlay("loadloop");
Symbol 13 MovieClip Frame 4
stop();
Symbol 21 MovieClip Frame 1
if (Number(_root.Stattooz.pGameType) == 4) {
_root.Branditz.activateElement("intro_demo", this);
} else {
_root.Branditz.activateElement("intro", this);
}
Symbol 21 MovieClip Frame 11
this.onRelease = function () {
};
Symbol 21 MovieClip Frame 130
_root.checkPirate();
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 1
_root.Branditz.activateElement("pirate", this);
stop();
Instance of Symbol 30 MovieClip in Symbol 43 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.3rdsense.com");
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}
Symbol 54 Button
on (release) {
_root.boxingIsRunning = true;
_root.player.hairstyle = 14;
_root.player.bodystyle = 2;
_root.player.dressstyle = 21;
_root.player.faceframe = 1;
_root.playerCPU.hairstyle = 10;
_root.playerCPU.bodystyle = 1;
_root.playerCPU.dressstyle = 5;
_root.playerCPU.faceframe = 2;
_root.total.totalScore = 0;
_root.Stattooz.reportEvent("play");
_root.gotoAndPlay("gamebegin");
}
Symbol 60 Button
on (release) {
_root.boxingIsRunning = true;
_root.playerCPU.hairstyle = 14;
_root.playerCPU.bodystyle = 2;
_root.playerCPU.dressstyle = 21;
_root.playerCPU.faceframe = 1;
_root.player.hairstyle = 10;
_root.player.bodystyle = 1;
_root.player.dressstyle = 5;
_root.player.faceframe = 2;
_root.total.totalScore = 0;
_root.Stattooz.reportEvent("play");
_root.gotoAndPlay("gamebegin");
}
Symbol 65 Button
on (release) {
gotoAndPlay ("help");
}
Symbol 66 Button
on (release) {
gotoAndPlay ("credits");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 1
_root.Branditz.activateElement("moregames", this);
Instance of Symbol 88 MovieClip "myButton" in Symbol 89 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.Stattooz.reportEvent("moregames");
getURL ("http://www.3rdsense.com/moregames/index.php");
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Symbol 108 Button
on (release) {
cpuspeed.nextFrame();
}
Symbol 113 MovieClip Frame 1
_quality = "MEDIUM";
_global.quality = "medium";
stop();
Symbol 113 MovieClip Frame 2
_quality = "HIGH";
_global.quality = "high";
stop();
Symbol 113 MovieClip Frame 3
_quality = "LOW";
_global.quality = "low";
stop();
Symbol 113 MovieClip Frame 4
_quality = "MEDIUM";
_global.quality = "medium";
gotoAndStop (1);
Symbol 114 Button
on (release) {
_global.sounds = false;
this.gotoAndStop(3);
}
Symbol 117 Button
on (release) {
_global.sounds = true;
gotoAndPlay (1);
}
Symbol 118 Button
on (release) {
_global.sounds = true;
this.gotoAndStop(1);
}
Symbol 120 MovieClip Frame 1
if (_global.sounds == false) {
gotoAndPlay (3);
}
var tempSound = new Sound();
tempSound.setVolume(100);
Symbol 120 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 3
if (_global.sounds == true) {
gotoAndPlay (1);
}
var tempSound = new Sound();
tempSound.setVolume(0);
Symbol 120 MovieClip Frame 4
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 40
_root.scoreboard.tmpTime = _root.scoreboard.theTime;
_root.scoreboard.b2_jscore = 0;
_root.scoreboard.b2_pthrown = 0;
_root.scoreboard.b2_planded = 0;
_root.scoreboard.b2_pblocked = 0;
_root.scoreboard.b1_jscore = 0;
_root.scoreboard.b1_pthrown = 0;
_root.scoreboard.b1_planded = 0;
_root.scoreboard.b1_pblocked = 0;
_root.scoreboard.roundEnd = false;
_root.scoreboard.roundScore = 0;
_root.damage.CPUdamage = _root.damage.CPUdamage + 5;
Symbol 170 MovieClip Frame 91
stop();
_root.gotoAndPlay("game");
Symbol 193 MovieClip Frame 1
_root.boxer1.isPunchingLeft = 0;
_root.boxer1.isBlocking = 0;
_root.boxer1.blocking = 0;
stop();
Symbol 193 MovieClip Frame 21
_root.boxer1.blocking = 1;
stop();
Symbol 193 MovieClip Frame 22
_root.boxer1.blocking = 1;
Symbol 193 MovieClip Frame 26
gotoAndPlay (1);
Symbol 193 MovieClip Frame 51
if ((_root.boxer2.blocking == 1) && (_root.b1_col_punch.hitTest(_root.b2_col_punch))) {
_root.scoreboard.b2_pblocked = _root.scoreboard.b2_pblocked + 1;
_root.boxer2.healthLevel = _root.boxer2.healthLevel - 2;
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 2;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 4;
if (_root.boxer2.aggression < 20) {
_root.boxer2.aggression = _root.boxer2.aggression + 2;
}
gotoAndPlay ("punchend");
}
Instance of Symbol 102 MovieClip "r_hit" in Symbol 193 MovieClip Frame 59
onClipEvent (load) {
hitPlayer = 0;
}
Symbol 193 MovieClip Frame 60
if (_root.boxer1.arm_left.r_hit.hitTest(_root.boxer2.faceHit) == true) {
if (_root.boxer1.arm_left.r_hit.hitPlayer == 0) {
_root.scoreboard.b1_planded = _root.scoreboard.b1_planded + 1;
_root.scoreboard.score = _root.scoreboard.score + 1;
_root.boxer1.arm_left.r_hit.hitPlayer = 1;
_root.boxer2.reflexLevel = _root.boxer2.reflexLevel + 1;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 4;
_root.boxer2.healthLevel = _root.boxer2.healthLevel - 30;
_root.boxer2.attackCount = 0;
if (_root.boxer2.aggression > 0) {
_root.boxer2.aggression = _root.boxer2.aggression - 2;
}
_root.boxer2.gotoAndPlay("onHit");
_root.boxer2.active = 0;
_root.boxer2.moving = 0;
}
if (_root.boxer2.healthLevel < 100) {
_root.b2_blood.gotoAndPlay(30);
} else if (_root.boxer2.healthLevel < 200) {
_root.b2_blood.gotoAndPlay(2);
}
if (_root.boxer2.healthLevel < 56) {
_root.b2_bruise.gotoAndStop(5);
} else if (_root.boxer2.healthLevel < 112) {
_root.b2_bruise.gotoAndStop(10);
} else if (_root.boxer2.healthLevel < 168) {
_root.b2_bruise.gotoAndStop(15);
} else if (_root.boxer2.healthLevel < 224) {
_root.b2_bruise.gotoAndStop(20);
}
}
Symbol 193 MovieClip Frame 64
if (_root.boxer1.arm_left.r_hit.hitPlayer == 1) {
xDis = _root.boxer1._x - _root.boxer2._x;
yDis = _root.boxer1._y - _root.boxer2._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer2._x = _root.boxer2._x - xDis;
_root.boxer2._y = _root.boxer2._y - yDis;
_root.boxer1.arm_left.r_hit.hitPlayer = 0;
}
Symbol 193 MovieClip Frame 79
gotoAndPlay (1);
Symbol 207 MovieClip Frame 1
_root.boxer1.isPunchingRight = 0;
_root.boxer1.isBlocking = 0;
_root.boxer1.blocking = 0;
stop();
Symbol 207 MovieClip Frame 26
_root.boxer1.blocking = 1;
stop();
Symbol 207 MovieClip Frame 27
_root.boxer1.blocking = 1;
Symbol 207 MovieClip Frame 31
gotoAndPlay (1);
Symbol 207 MovieClip Frame 50
Symbol 207 MovieClip Frame 56
if ((_root.boxer2.blocking == 1) && (_root.b1_col_punch.hitTest(_root.b2_col_punch))) {
_root.scoreboard.b2_pblocked = _root.scoreboard.b2_pblocked + 1;
_root.boxer2.healthLevel = _root.boxer2.healthLevel - 2;
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 4;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 5;
if (_root.boxer2.aggression < 20) {
_root.boxer2.aggression = _root.boxer2.aggression + 2;
}
gotoAndPlay ("punchend");
}
Instance of Symbol 102 MovieClip "r_hit" in Symbol 207 MovieClip Frame 64
onClipEvent (load) {
hitPlayer = 0;
}
Symbol 207 MovieClip Frame 66
if (_root.boxer1.arm_right.r_hit.hitTest(_root.boxer2.faceHit) == true) {
if (_root.boxer1.arm_right.r_hit.hitPlayer == 0) {
_root.scoreboard.score = _root.scoreboard.score + 1;
_root.scoreboard.b1_planded = _root.scoreboard.b1_planded + 1;
_root.boxer1.arm_right.r_hit.hitPlayer = 1;
_root.boxer2.reflexLevel = _root.boxer2.reflexLevel + 1;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 4;
_root.boxer2.healthLevel = _root.boxer2.healthLevel - 30;
_root.boxer2.attackCount = 0;
if (_root.boxer2.aggression > 0) {
_root.boxer2.aggression = _root.boxer2.aggression - 2;
}
_root.boxer2.gotoAndPlay("onHit");
_root.boxer2.active = 0;
_root.boxer2.moving = 0;
}
if (_root.boxer2.healthLevel < 100) {
_root.b2_blood.gotoAndPlay(30);
} else if (_root.boxer2.healthLevel < 200) {
_root.b2_blood.gotoAndPlay(2);
}
if (_root.boxer2.healthLevel < 56) {
_root.b2_bruise.gotoAndStop(5);
} else if (_root.boxer2.healthLevel < 112) {
_root.b2_bruise.gotoAndStop(10);
} else if (_root.boxer2.healthLevel < 168) {
_root.b2_bruise.gotoAndStop(15);
} else if (_root.boxer2.healthLevel < 224) {
_root.b2_bruise.gotoAndStop(20);
}
}
Symbol 207 MovieClip Frame 72
if (_root.boxer1.arm_right.r_hit.hitPlayer == 1) {
xDis = _root.boxer1._x - _root.boxer2._x;
yDis = _root.boxer1._y - _root.boxer2._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer2._x = _root.boxer2._x - xDis;
_root.boxer2._y = _root.boxer2._y - yDis;
_root.boxer1.arm_right.r_hit.hitPlayer = 0;
}
Symbol 207 MovieClip Frame 84
gotoAndPlay (1);
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 15
gotoAndStop (1);
Symbol 222 MovieClip Frame 1
_root.boxer2.isPunchingLeft = 0;
_root.boxer2.isPunching = 0;
stop();
Symbol 222 MovieClip Frame 10
stop();
Symbol 222 MovieClip Frame 24
_root.boxer2.isPunchingLeft = 1;
Symbol 222 MovieClip Frame 30
if ((_root.boxer1.blocking == 1) && (_root.b2_col_punch.hitTest(_root.b1_col_punch))) {
_root.scoreboard.b1_pblocked = _root.scoreboard.b1_pblocked + 1;
_root.boxer1.healthLevel = _root.boxer1.healthLevel - 2;
xDis = _root.boxer1._x - _root.boxer2._x;
yDis = _root.boxer1._y - _root.boxer2._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer2._x = _root.boxer2._x - xDis;
_root.boxer2._y = _root.boxer2._y - yDis;
if (_root.boxer2.aggression > 0) {
_root.boxer2.aggression = _root.boxer2.aggression - 1;
}
_root.boxer1.stunned = 1;
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer2.isPunching = 0;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 5;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 5;
if (_root.boxer2.aggression > 10) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 0.5;
} else if (_root.boxer2.aggression > 6) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 1;
}
if (_root.boxer2.aggression > 4) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 2;
}
gotoAndPlay ("punchend");
}
Instance of Symbol 102 MovieClip "r_hit" in Symbol 222 MovieClip Frame 39
onClipEvent (load) {
hitPlayer = 0;
}
Symbol 222 MovieClip Frame 40
if (_root.boxer2.arm_left.r_hit.hitTest(_root.boxer1.faceHit) == true) {
if (_root.boxer2.arm_left.r_hit.hitPlayer == 0) {
_root.scoreboard.score = _root.scoreboard.score + 1;
_root.boxer2.arm_left.r_hit.hitPlayer = 1;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 5;
if (_root.boxer1.healthLevel > 0) {
_root.boxer1.healthLevel = _root.boxer1.healthLevel - _root.damage.CPUdamage;
} else {
_root.boxer1.healthLevel = 0;
}
_root.boxer1.gotoAndPlay("onHit");
if (_root.boxer2.aggression < 20) {
_root.boxer2.aggression = _root.boxer2.aggression + 4;
}
_root.scoreboard.b2_planded = _root.scoreboard.b2_planded + 1;
}
if (_root.boxer1.healthLevel < 100) {
_root.b1_blood.gotoAndPlay(30);
} else if (_root.boxer1.healthLevel < 200) {
_root.b1_blood.gotoAndPlay(2);
}
if (_root.boxer1.healthLevel < 56) {
_root.b1_bruise.gotoAndStop(5);
} else if (_root.boxer1.healthLevel < 112) {
_root.b1_bruise.gotoAndStop(10);
} else if (_root.boxer1.healthLevel < 168) {
_root.b1_bruise.gotoAndStop(15);
} else if (_root.boxer1.healthLevel < 224) {
_root.b1_bruise.gotoAndStop(20);
}
}
Symbol 222 MovieClip Frame 43
_root.boxer2.isPunching = 0;
Symbol 222 MovieClip Frame 44
if (_root.boxer2.arm_left.r_hit.hitPlayer == 1) {
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer2.arm_left.r_hit.hitPlayer = 0;
}
Symbol 222 MovieClip Frame 59
_root.boxer2.isPunching = 0;
gotoAndPlay (1);
Symbol 232 MovieClip Frame 1
_root.boxer2.isPunchingRight = 0;
_root.boxer2.isPunching = 0;
stop();
Symbol 232 MovieClip Frame 10
stop();
Symbol 232 MovieClip Frame 24
_root.boxer2.isPunchingRight = 1;
Symbol 232 MovieClip Frame 30
if ((_root.boxer1.blocking == 1) && (_root.b2_col_punch.hitTest(_root.b1_col_punch))) {
_root.scoreboard.b1_pblocked = _root.scoreboard.b1_pblocked + 1;
_root.boxer1.healthLevel = _root.boxer1.healthLevel - 2;
xDis = _root.boxer1._x - _root.boxer2._x;
yDis = _root.boxer1._y - _root.boxer2._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer2._x = _root.boxer2._x - xDis;
_root.boxer2._y = _root.boxer2._y - yDis;
if (_root.boxer2.aggression > 0) {
_root.boxer2.aggression = _root.boxer2.aggression - 1;
}
_root.boxer1.stunned = 1;
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer2.isPunching = 0;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 5;
_root.boxer2.fatigueLevel = _root.boxer2.fatigueLevel - 5;
if (_root.boxer2.aggression > 10) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 0.5;
} else if (_root.boxer2.aggression > 6) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 1;
}
if (_root.boxer2.aggression > 4) {
_root.boxer2.blockScore = _root.boxer2.blockScore + 2;
}
gotoAndPlay ("punchend");
}
Instance of Symbol 102 MovieClip "r_hit" in Symbol 232 MovieClip Frame 39
onClipEvent (load) {
hitPlayer = 0;
}
Symbol 232 MovieClip Frame 41
if (_root.boxer2.arm_right.r_hit.hitTest(_root.boxer1.faceHit) == true) {
if (_root.boxer2.arm_right.r_hit.hitPlayer == 0) {
_root.scoreboard.score = _root.scoreboard.score + 1;
_root.boxer2.arm_right.r_hit.hitPlayer = 1;
_root.boxer1.fatigueLevel = _root.boxer1.fatigueLevel - 5;
if (_root.boxer1.healthLevel > 0) {
_root.boxer1.healthLevel = _root.boxer1.healthLevel - _root.damage.CPUdamage;
} else {
_root.boxer1.healthLevel = 0;
}
if (_root.boxer2.aggression < 20) {
_root.boxer2.aggression = _root.boxer2.aggression + 4;
}
_root.boxer1.gotoAndPlay("onHit");
_root.scoreboard.b2_planded = _root.scoreboard.b2_planded + 1;
}
if (_root.boxer1.healthLevel < 100) {
_root.b1_blood.gotoAndPlay(30);
} else if (_root.boxer1.healthLevel < 200) {
_root.b1_blood.gotoAndPlay(2);
}
if (_root.boxer1.healthLevel < 56) {
_root.b1_bruise.gotoAndStop(5);
} else if (_root.boxer1.healthLevel < 112) {
_root.b1_bruise.gotoAndStop(10);
} else if (_root.boxer1.healthLevel < 168) {
_root.b1_bruise.gotoAndStop(15);
} else if (_root.boxer1.healthLevel < 224) {
_root.b1_bruise.gotoAndStop(20);
}
}
Symbol 232 MovieClip Frame 44
_root.boxer2.isPunching = 1;
Symbol 232 MovieClip Frame 46
if (_root.boxer2.arm_right.r_hit.hitPlayer == 1) {
xDis = _root.boxer2._x - _root.boxer1._x;
yDis = _root.boxer2._y - _root.boxer1._y;
xDis = Math.round(xDis / 8);
yDis = Math.round(yDis / 8);
_root.boxer1._x = _root.boxer1._x - xDis;
_root.boxer1._y = _root.boxer1._y - yDis;
_root.boxer2.arm_right.r_hit.hitPlayer = 0;
}
Instance of Symbol 102 MovieClip "r_hit" in Symbol 232 MovieClip Frame 46
onClipEvent (load) {
hitPlayer = 0;
}
Symbol 232 MovieClip Frame 59
gotoAndPlay (1);
Symbol 233 MovieClip Frame 1
_root.boxer2.isPunchingRight = 0;
_root.boxer2.isPunchingLeft = 0;
_root.boxer2.isPunching = 0;
stop();
Symbol 233 MovieClip Frame 5
play();
Symbol 233 MovieClip Frame 15
this.gotoAndStop(1);
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 17
gotoAndStop (1);
Symbol 243 MovieClip Frame 38
gotoAndStop (1);
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 65
_root.scoreboard.knockedOut = false;
this._parent._parent.gotoAndPlay(2);
Symbol 261 MovieClip Frame 35
stop();
Instance of Symbol 251 MovieClip in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.playerCPU.faceframe);
}
Instance of Symbol 251 MovieClip in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.player.faceframe);
}
Symbol 294 Button
on (release) {
_root.gotoAndPlay("gamebegin");
}
on (keyPress "<Space>") {
_root.gotoAndPlay("gamebegin");
}
Symbol 295 MovieClip Frame 1
if (!_root.scoreboard.knockedOut) {
this.gotoAndPlay(2);
} else {
stop();
}
Symbol 295 MovieClip Frame 35
stop();
Symbol 305 MovieClip Frame 70
stop();
Symbol 312 MovieClip Frame 95
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
play();
Symbol 316 MovieClip Frame 7
stop();
Symbol 319 MovieClip Frame 1
_root.Branditz.activateElement("moregames", this);
Instance of Symbol 88 MovieClip "myButton" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.Stattooz.reportEvent("moregames");
getURL ("http://www.3rdsense.com/moregames/index.php");
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Symbol 320 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.playAgain();
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Instance of Symbol 316 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
stopAllSounds();
_root.score = _root.total.totalScore;
_global.ipbSend(_root.total.totalScore);
stop();
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Symbol 320 MovieClip Frame 2
stop();
Symbol 326 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.playAgain();
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Instance of Symbol 316 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
stopAllSounds();
_root.score = _root.total.totalScore;
_global.ipbSend(_root.total.totalScore);
stop();
};
this.onRollOver = function () {
gotoAndPlay (2);
};
}
Symbol 326 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 1
_root.Branditz.activateElement("gameover", this);
if ((Number(_root.Stattooz.pGameType) == 2) || (Number(_root.Stattooz.pGameType) == 3)) {
gotoAndStop (2);
} else {
if (_root.score > _root.Stattooz.pThreshold) {
_root.Stattooz.reportEvent("endfail");
} else {
_root.Stattooz.reportEvent("endpass");
}
if (Number(_root.Stattooz.pGameType) == 1) {
myButtons.gotoAndStop(2);
}
stop();
}
Symbol 329 MovieClip Frame 2
if (_root.score > _root.Stattooz.pThreshold) {
myButtons.gotoAndStop("fail");
_root.Stattooz.reportEvent("endfail");
gameover_title.text = "You'll need to try harder then that!";
gameover_text.text = ("you need to score at least " + _root.pStattooz.pThreshold) + " to enter your high score";
} else {
_root.Stattooz.reportEvent("endpass");
}
stop();
Symbol 338 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 353 MovieClip Frame 1
_root.Stattooz.reportEvent("creditsview");
_root.Branditz.activateElement("credits", this);
Instance of Symbol 42 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}
Instance of Symbol 42 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.Stattooz.reportEvent("creditsthrough");
getURL ("http://www.3rdsense.com", "_blank");
};
}