Frame 1
function preloader() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(myInterval);
}
progBar._width = Math.round((getBytesLoaded() / getBytesTotal()) * 375);
}
stop();
myInterval = setInterval(preloader, 10);
Frame 10
function characterSelectScreen() {
hill_btn._alpha = (obama_btn._alpha = 0);
moveTitle();
}
function moveTitle() {
new mx.transitions.Tween(pletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 148.55, 10, false);
new mx.transitions.Tween(oletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 112.75, 11, false);
new mx.transitions.Tween(lletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 91.3, 12, false);
new mx.transitions.Tween(iletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 71.25, 13, false);
new mx.transitions.Tween(tletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 53.35, 14, false);
new mx.transitions.Tween(iletter_two, "_y", mx.transitions.easing.Bounce.easeOut, -100, 47.85, 15, false);
new mx.transitions.Tween(cletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 42.35, 16, false);
new mx.transitions.Tween(aletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 35.65, 17, false);
new mx.transitions.Tween(lletter_two, "_y", mx.transitions.easing.Bounce.easeOut, -100, 36.45, 18, false);
new mx.transitions.Tween(bletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 37.65, 19, false);
new mx.transitions.Tween(oletter_two, "_y", mx.transitions.easing.Bounce.easeOut, -100, 55.15, 20, false);
new mx.transitions.Tween(xletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 75.45, 21, false);
new mx.transitions.Tween(iletter_three, "_y", mx.transitions.easing.Bounce.easeOut, -100, 94.9, 22, false);
new mx.transitions.Tween(nletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 110.35, 23, false);
new mx.transitions.Tween(gletter, "_y", mx.transitions.easing.Bounce.easeOut, -100, 150.8, 24, false);
setTimeout(moveBlur, 700);
setTimeout(moveGlow, 1250);
setTimeout(moveChar, 2000);
setTimeout(Onover, 2200);
}
function Onover() {
rolloversOn = true;
}
function moveBlur() {
redblur._alpha = 70;
blueblur._alpha = 70;
new mx.transitions.Tween(redblur, "_x", mx.transitions.easing.Bounce.easeOut, -400, 5, 24, false);
new mx.transitions.Tween(blueblur, "_x", mx.transitions.easing.Bounce.easeOut, 900, 300, 24, false);
}
function moveGlow() {
new mx.transitions.Tween(glowline, "_alpha", mx.transitions.easing.Bounce.easeOut, 0, 100, 40, false);
}
function moveChar() {
new mx.transitions.Tween(hillhead, "_x", mx.transitions.easing.Strong.easeOut, -400, -20, 24, false);
new mx.transitions.Tween(obamahead, "_x", mx.transitions.easing.Strong.easeOut, 900, 400, 24, false);
new mx.transitions.Tween(start_btn, "_y", mx.transitions.easing.Elastic.easeOut, 600, 465, 24, false);
}
stop();
var rolloversOn = false;
var selectChar = 1;
var winner = 0;
var roundNum = 1;
var comWins = 0;
var playerWins = 0;
characterSelectScreen();
music_mc.gotoAndPlay(1);
clear();
hill_btn.onRollOver = function () {
if (rolloversOn) {
new mx.transitions.Tween(obama_btn, "_alpha", Normal.easeOut, 0, 45, 10, false);
new mx.transitions.Tween(hill_btn, "_alpha", Normal.easeOut, 45, 0, 10, false);
}
};
obama_btn.onRollOver = function () {
if (rolloversOn) {
new mx.transitions.Tween(hill_btn, "_alpha", Normal.easeOut, 0, 45, 10, false);
new mx.transitions.Tween(obama_btn, "_alpha", Normal.easeOut, 45, 0, 10, false);
}
};
obama_btn.onRollOver = function () {
if (rolloversOn) {
new mx.transitions.Tween(hill_btn, "_alpha", Normal.easeOut, 0, 45, 10, false);
new mx.transitions.Tween(obama_btn, "_alpha", Normal.easeOut, 45, 0, 10, false);
}
};
hill_btn.onRelease = function () {
if (rolloversOn) {
selectChar = 2;
this._root.gotoAndPlay("Instructions");
}
};
obama_btn.onRelease = function () {
if (rolloversOn) {
selectChar = 1;
this._root.gotoAndPlay("Instructions");
}
};
Frame 20
function practiceLoop() {
practicePosition();
bagMove();
punchBag();
}
function punchBag() {
if (player.playerPunch.hitTest(bag)) {
this.bagpunchSFX.gotoAndPlay(2);
vx = vx + bagPunchX;
vy = vy + bagPunchY;
}
}
function bagMove() {
var _local2 = (((Stage.width / 2) - 50) - bag._x) * spring;
var _local1 = (100 - bag._y) * spring;
bag._rotation = vx;
vx = vx + _local2;
vy = vy + _local1;
vy = vy + gravity;
vx = vx * friction;
vy = vy * friction;
bag._x = bag._x + vx;
bag._y = bag._y + vy;
var _local3 = Math.atan2(_local1, _local2);
bag._rotation = ((_local3 * 180) / Math.PI) + 90;
clear();
lineStyle(5, 0, 100);
moveTo(bag._x, bag._y);
lineTo((Stage.width / 2) - 50, 100);
}
function buildPracticeArea() {
com._x = (com._y = (comHealthBar._x = (comHealthBar._y = (playerHealthBar._x = (playerHealthBar._y = (playerName._x = (comName._x = -100)))))));
bag._x = (Stage.width / 2) - 50;
bag._y = 100;
}
function assignCharacters() {
if (selectChar == 1) {
smallPlayer.gotoAndStop(2);
playerHealthBar = attachMovie("Obama_name", "playerName", 106);
playerHealthBar = attachMovie("obamaHealth", "playerHealthBar", 105);
player = attachMovie("Obama_Player", "playerChar", 11);
comHealthBar = attachMovie("Hill_name", "comName", 107);
comHealthBar = attachMovie("hillHealth", "comHealthBar", 108);
com = attachMovie("Hillary_Com", "comChar", 10);
player._xscale = (player._yscale = 150);
player._xscale = player._xscale * -1;
player._x = (166 + (player._width / 2)) - 20;
player._y = (280 - (player._height / 2)) + 35;
} else {
smallCom.gotoAndStop(2);
playerHealthBar = attachMovie("Hill_name", "playerName", 105);
playerHealthBar = attachMovie("hillHealth", "playerHealthBar", 106);
player = attachMovie("Hillary_Player", "playerChar", 11);
comHealthBar = attachMovie("Obama_name", "comName", 107);
comHealthBar = attachMovie("obamaHealth", "comHealthBar", 108);
com = attachMovie("Obama_Com", "comChar", 10);
player._x = 166;
player._y = 280;
}
smallPlayer._x = player._x;
smallCom._x = com._x;
playerHealthBar.winMarker._visible = false;
comHealthBar.winMarker._visible = false;
playerHealthBar.winMarker2._visible = false;
comHealthBar.winMarker2._visible = false;
}
function moveRight() {
if ((playermove == true) && (player._x <= movelimitRight)) {
if (Key.isDown(39)) {
player._x = player._x + 6;
} else if (Key.isDown(37)) {
moveLeft();
}
}
}
function moveLeft() {
if ((playermove == true) && (player._x >= movelimitLeft)) {
if (Key.isDown(37)) {
player._x = player._x - 6;
} else if (Key.isDown(39)) {
moveRight();
}
}
}
function practicePosition() {
if (selectChar == 1) {
movelimitRight = bag._x - (bag._width / 2);
movelimitLeft = 225;
} else {
movelimitRight = (bag._x - (bag._width / 2)) - 60;
movelimitLeft = 175;
}
if (playermove && (goRight)) {
moveRight();
} else if (playermove && (player._x >= movelimitLeft)) {
moveLeft();
}
}
stop();
var spacePress = false;
var gameOver = false;
var recover = 0;
var practice = true;
var fight = false;
var playerHealthBar = new MovieClip();
var comHealthBar = new MovieClip();
var player = new MovieClip();
var com = new MovieClip();
var buttondown = false;
var buttonup = true;
var playermove = false;
var playerOn = true;
var movelimitRight;
var movelimitLeft = 50;
var keyListener = new Object();
var beingHit = false;
var playerDmg = 0;
var playerHealth = 0;
var goRight = true;
var playerIsBlocking = false;
var jabbed = false;
var jabCount = 0;
var t = 0;
var TT = 0;
var tDmg = 0;
var spring = 0.1;
var friction = 0.9;
var gravity = 5;
var bagPunchX = 0;
var bagPunchY = 0;
bag._x = 0;
bag._y = 0;
var vx = 0;
var vy = 0;
assignCharacters();
buildPracticeArea();
_root.player._visible = true;
onEnterFrame = function () {
smallPlayer._x = player._x;
smallCom._x = com._x;
trace(smallPlayer._x);
trace(player._x);
trace(smallCom._x);
trace(com._x);
smallPlayer.character.gotoAndStop(player._currentframe);
smallCom.character.gotoAndStop(com._currentframe);
if (practice) {
practiceLoop();
} else if (fight) {
fightLoop();
} else if (recover != 0) {
recoverLoop();
} else if (gameOver) {
}
};
keyListener.onKeyDown = function () {
if (Key.isDown(32)) {
spacePress = true;
}
if ((buttondown == false) && (recover == 0)) {
spacePress = false;
switch (Key.getCode()) {
case 65 :
playerIsBlocking = false;
playerSwing = true;
playermove = false;
buttondown = true;
buttonup = true;
player.gotoAndPlay("jab");
playerDmg = 1;
tDmg = 1;
jabbed = true;
if (practice) {
bagPunchX = 3;
bagPunchY = -0.2;
}
return;
case 83 :
playerIsBlocking = false;
playerSwing = true;
playermove = false;
buttondown = true;
buttonup = true;
player.gotoAndPlay("hook");
playerDmg = 2;
tDmg = 3;
jabbed = false;
if (practice) {
bagPunchX = 4;
bagPunchY = -2;
}
return;
case 68 :
playerIsBlocking = false;
playerSwing = true;
playermove = false;
buttondown = true;
buttonup = true;
player.gotoAndPlay("upercut");
playerDmg = 3;
tDmg = 5;
jabbed = false;
if (practice && (selectChar == 1)) {
bagPunchX = 5;
bagPunchY = 3;
} else if (practice) {
bagPunchX = 4.2;
bagPunchY = -4;
}
return;
case 38 :
if ((buttonup == true) || (playermove == true)) {
playerIsBlocking = true;
hillpose = true;
playermove = false;
buttonup = false;
player.gotoAndPlay("block");
return;
}
case 40 :
if ((buttonup == true) || (playermove == true)) {
playerIsBlocking = false;
hillpose = true;
playermove = false;
buttonup = false;
player.gotoAndPlay("duck");
} else if (buttonup == true) {
playerIsBlocking = false;
buttonup = false;
player.gotoAndPlay("walk");
goRight = true;
playermove = true;
} else {
if (buttonup != true) {
break;
}
playerIsBlocking = false;
buttonup = false;
player.gotoAndPlay("walk");
goRight = false;
playermove = true;
}
case 39 :
if (buttonup == true) {
playerIsBlocking = false;
buttonup = false;
player.gotoAndPlay("walk");
goRight = true;
playermove = true;
} else {
if (buttonup != true) {
break;
}
playerIsBlocking = false;
buttonup = false;
player.gotoAndPlay("walk");
goRight = false;
playermove = true;
}
case 37 :
if (buttonup != true) {
break;
}
playerIsBlocking = false;
buttonup = false;
player.gotoAndPlay("walk");
goRight = false;
playermove = true;
}
}
};
keyListener.onKeyUp = function () {
if (recover && (spacePress)) {
spacePress = false;
recoverMeter.reBar._y = recoverMeter.reBar._y - 15;
} else {
playerIsBlocking = false;
if ((buttonup == false) && (buttondown == false)) {
playermove = false;
buttonup = true;
player.gotoAndPlay("stand");
}
}
};
Key.addListener(keyListener);
play_btn.onRelease = function () {
practice = false;
gotoAndStop ("fight");
};
Frame 30
function startFight() {
if (roundNum == 1) {
comHealth = 0;
if (selectChar == 1) {
com._xscale = com._xscale * -1;
com._x = 555;
com._y = 280;
smallPlayer.gotoAndStop(2);
} else {
smallCom.gotoAndStop(2);
com._xscale = (com._yscale = 150);
com._x = (555 + (com._width / 2)) - 140;
com._y = (280 + (com._height / 2)) - 220;
playerHealthBar.hillFace._xscale = playerHealthBar.hillFace._xscale * -1;
playerHealthBar.hillFace._x = playerHealthBar.hillFace._x + playerHealthBar.hillFace._width;
}
createStage();
} else if (roundNum >= 2) {
roundChanger.gotoAndStop(roundNum);
}
}
function createStage() {
var _local2 = attachMovie("border", "border", 100);
playerHealthBar._xscale = playerHealthBar._xscale * -1;
playerHealthBar._y = 0;
playerHealthBar._x = 225;
playerName._x = 155;
playerName._y = 75;
comHealthBar._x = 500;
comHealthBar._y = 0;
comName._y = 75;
comName._x = Stage.width - 150;
movelimitRight = Stage.width - player._width;
movelimitLeft = player._width;
this.crowd_noise.gotoAndPlay(1);
setTimeout(lightsOn, 200);
instructionSmall.swapDepths(instructionHolder);
new mx.transitions.Tween(dark, "_alpha", mx.transitions.easing.Strong.easeOut, 85, 0, 10, false);
new mx.transitions.Tween(instructionSmall, "_y", mx.transitions.easing.Bounce.easeOut, 500, 455, 24, false);
new mx.transitions.Tween(instructionSmall, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 85, 45, false);
}
function lightsOn() {
new mx.transitions.Tween(light, "_alpha", mx.transitions.easing.Bounce.easeOut, 0, 100, 35, false);
}
function fightLoop() {
updateHealth();
updatePosition();
comAI();
punchCheck();
}
function updateHealth() {
if (Math.floor(playerHealthBar._currentframe / 5) < playerHealth) {
playerHealthBar.gotoAndStop(playerHealthBar._currentframe + 1);
}
if (Math.floor(comHealthBar._currentframe / 5) < comHealth) {
comHealthBar.gotoAndStop(comHealthBar._currentframe + 1);
}
}
function updatePosition() {
movelimitRight = (com._x - (com._width / 2)) + 40;
if (playermove && (goRight)) {
moveRight();
} else if (playermove) {
moveLeft();
}
if (player._x < player._width) {
player._x = player._width;
}
if (com._x > (Stage.width - (com._width / 2))) {
com._x = Stage.width - (com._width / 2);
}
}
function comAI() {
if (tCom > 0) {
tCom--;
}
t = tDmg + tCom;
TT = Math.floor(Math.random() * 6) + 1;
if ((comDestination == 0) && (Math.random() > 0.6)) {
comDestination = random((Stage.width - (com._width / 2)) - (((com._width / 2) + (player._width / 2)) - 120));
}
comDesc = random(6);
if ((comIsBlocking && (jabCount >= 2)) && (comDesc >= 3)) {
player.gotoAndPlay("stand");
comIsBlocking = false;
jabCount = 0;
jabReturn();
}
if ((!comIsBlocking) || (t < TT)) {
comIsBlocking = false;
if ((!comMoving) && (!beingHit)) {
if ((t > TT) && ((com._x - player._x) <= 200)) {
tDmg = 0;
avoid();
} else if (((com._x - player._x) > (((com._width / 2) + (player._width / 2)) - 95)) && (com._x < (Stage.width - (com._width / 2)))) {
com.gotoAndStop(167 + comCounter);
if (Math.abs(comDestination - com._x) <= 20) {
comDestination = 0;
} else if (comDestination < com._x) {
com._x = com._x - 6;
} else {
com._x = com._x + 6;
}
} else {
attack();
}
}
}
if (comCounter == 9) {
comCounter = 0;
} else {
comCounter++;
}
}
function jabReturn() {
comMoving = true;
com.gotoAndPlay("hookBonus");
comDmg = 2;
}
function avoid() {
var _local1 = random(6);
if (_local1 <= 1) {
tCom = Math.floor(Math.random() * 60) + 30;
comIsBlocking = true;
comBlockBonus = true;
com.gotoAndPlay("block");
} else if (_local1 == 2) {
tCom = Math.floor(Math.random() * 60) + 15;
comIsBlocking = true;
com.gotoAndPlay("duck");
} else if (_local1 <= 4) {
tCom = 0;
if (comBlockBonus) {
comBlockBonus = false;
com.gotoAndPlay("jabBonus");
} else {
com.gotoAndPlay("jab");
}
comDmg = 1;
}
}
function attack() {
if (comDesc == 1) {
comMoving = true;
if (comBlockBonus) {
comBlockBonus = false;
com.gotoAndPlay("jabBonus");
} else {
com.gotoAndPlay("jab");
}
comDmg = 1;
} else if (comDesc == 2) {
comMoving = true;
if (jabCount >= 2) {
jabCount = 0;
com.gotoAndPlay("hookBonus");
} else {
com.gotoAndPlay("hook");
}
comDmg = 2;
} else if (comDesc == 3) {
comMoving = true;
com.gotoAndPlay("upercut");
comDmg = 3;
} else {
com.gotoAndPlay("stand");
comDestination = 0;
}
}
function punchCheck() {
if (player.playerPunch.hitTest(com.playerHead) && (!beingHit)) {
if (jabbed) {
jabCount++;
}
if (comIsBlocking) {
player._x = player._x - 10;
} else {
if (tCom <= 60) {
tCom = tCom + 25;
}
comHealth = comHealth + playerDmg;
com.gotoAndPlay("hit");
}
} else if (com.playerPunch.hitTest(player.playerHead) && (!beingHit)) {
if (playerIsBlocking) {
com._x = com._x + 10;
} else {
beingHit = true;
player.gotoAndPlay("hit");
playerHealth = playerHealth + comDmg;
}
}
}
stop();
crowd_noise.gotoAndPlay(2);
var instrunctionHolder = createEmptyMovieClip("insructionHolder", "700");
var comMoving = false;
var comDesc = 0;
var comCounter = 0;
var comHitCount = 0;
var comHitLimit = 3;
var comDestination = 0;
var tCom = 0;
var comHealth;
var comIsBlocking = false;
var comBlockBonus = false;
var playerCountOut = false;
var comCountOut = false;
startFight();
_root.com._visible = true;
_root.playerName._visible = true;
_root.playerHealthBar._visible = true;
_root.comrName._visible = true;
_root.comHealthBar._visible = true;
Frame 39
function recoverCom() {
if (selectChar == 1) {
player._x = (166 + (player._width / 2)) - 20;
com._x = 555;
} else {
player._x = 166;
com._x = (555 + (com._width / 2)) - 140;
}
white.swapDepths(whiteTemp);
recoverMeter.swapDepths(reMTemp);
space.swapDepths(spaceTemp);
comHealthBar.gotoAndStop(20);
comHealth = 2;
roundNum++;
recover = 0;
gotoAndPlay ("fight");
}
stop();
recoverCom();
Frame 40
function startRecover() {
var _local3 = createEmptyMovieClip("whiteTemp", 400);
var _local1 = createEmptyMovieClip("reMTemp", 401);
var _local2 = createEmptyMovieClip("spaceTemp", 402);
white.swapDepths(_local3);
recoverMeter.swapDepths(_local1);
space.swapDepths(_local2);
}
function recoverLoop() {
recoverMeter.reBar._y = recoverMeter.reBar._y + 1.25;
if (selectChar == recover) {
if (recoverMeter.reBar._y <= 60) {
white.swapDepths(whiteTemp);
recoverMeter.swapDepths(reMTemp);
space.swapDepths(spaceTemp);
roundNum++;
recover = 0;
if (selectChar == 1) {
player._x = ((166 + (player._width / 2)) - 20) - 100;
com._x = 555;
} else {
player._x = 166;
com._x = (555 + (com._width / 2)) - 140;
}
playerHealthBar.gotoAndStop(20);
playerHealth = 2;
player.gotoAndPlay("stand");
gotoAndPlay ("fight");
} else if (recoverMeter.reBar._y >= 400) {
white.swapDepths(whiteTemp);
recoverMeter.swapDepths(reMTemp);
space.swapDepths(spaceTemp);
recover = 0;
gotoAndPlay ("gameOver");
}
}
}
stop();
fight = false;
startRecover();
Frame 50
function crowdroar() {
crowd_noise.gotoAndPlay(101);
crowd_noise2.gotoAndPlay(200);
crowd_noise3.gotoAndPlay(400);
}
stop();
var labelHolder = createEmptyMovieClip("lblHolder", 500);
music_mc.gotoAndPlay(75);
setTimeout(crowdroar, 30);
roundLabel.swapDepths(labelHolder);
border._visible = true;
fight = false;
recover = 0;
gameOver = true;
if (selectChar == winner) {
music_mc.gotoAndPlay(2);
com.gotoAndPlay("down");
roundLabel._y = roundLabel._y - 40;
roundLabel.gotoAndPlay("win");
player.gotoAndPlay("win");
} else {
roundLabel._y = roundLabel._y - 40;
player.gotoAndPlay("down");
roundLabel.gotoAndPlay("lose");
com.gotoAndPlay("win");
}
stop();
replay_btn.onRelease = function () {
roundLabel._y = roundLabel._y + 40;
roundLabel.swapDepths(labelHolder);
roundLabel.gotoAndStop("empty");
border._visible = false;
player._visible = false;
com._visible = false;
playerName._visible = false;
playerHealthBar._visible = false;
comName._visible = false;
comHealthBar._visible = false;
gotoAndPlay ("startScreen");
};
Symbol 23 MovieClip [hillHealth] Frame 1
stop();
Symbol 23 MovieClip [hillHealth] Frame 70
_root.fight = false;
trace("player =" + _root.playerWins);
trace("com =" + _root.comWins);
trace(_root.roundNum);
if (_root.selectChar == 2) {
_root.comWins++;
if (_root.comHealthBar.winMarker._visible == true) {
_root.comHealthBar.winMarker2._visible = true;
} else {
_root.comHealthBar.winMarker._visible = true;
}
} else {
_root.playerWins++;
if (_root.playerHealthBar.winMarker._visible == true) {
_root.playerHealthBar.winMarker2._visible = true;
} else {
_root.playerHealthBar.winMarker._visible = true;
}
}
if (((_root.roundNum == 5) || (_root.playerWins == 3)) || (_root.comWins == 3)) {
_root.winner = 1;
this._parent.gotoAndStop("gameOver");
} else {
_root.recover = 2;
if (_root.selectChar == _root.recover) {
this._parent.player.gotoAndPlay("down");
this._parent.gotoAndStop("recover");
} else {
this._parent.com.gotoAndPlay("down");
this._parent.gotoAndStop("comrecover");
}
}
Symbol 29 MovieClip [obamaHealth] Frame 1
stop();
Symbol 29 MovieClip [obamaHealth] Frame 70
_root.fight = false;
trace("player =" + _root.playerWins);
trace("com =" + _root.comWins);
trace(_root.roundNum);
if (_root.selectChar == 1) {
_root.comWins++;
if (_root.comHealthBar.winMarker._visible == true) {
_root.comHealthBar.winMarker2._visible = true;
} else {
_root.comHealthBar.winMarker._visible = true;
}
} else {
_root.playerWins++;
if (_root.playerHealthBar.winMarker._visible == true) {
_root.playerHealthBar.winMarker2._visible = true;
} else {
_root.playerHealthBar.winMarker._visible = true;
}
}
if (((_root.roundNum == 5) || (_root.playerWins == 3)) || (_root.comWins == 3)) {
_root.winner = 2;
this._parent.gotoAndStop("gameOver");
} else {
_root.recover = 1;
if (_root.selectChar == _root.recover) {
this._parent.player.gotoAndPlay("down");
this._parent.gotoAndStop("recover");
} else {
this._parent.com.gotoAndPlay("down");
this._parent.gotoAndStop("comrecover");
}
}
Symbol 97 MovieClip [Obama_Player] Frame 1
this._parent.buttondown = false;
Symbol 97 MovieClip [Obama_Player] Frame 30
stop();
this.gotoAndPlay("stand");
Symbol 97 MovieClip [Obama_Player] Frame 48
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 97 MovieClip [Obama_Player] Frame 80
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 97 MovieClip [Obama_Player] Frame 122
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 97 MovieClip [Obama_Player] Frame 139
stop();
Symbol 97 MovieClip [Obama_Player] Frame 153
stop();
Symbol 97 MovieClip [Obama_Player] Frame 176
this.gotoAndPlay("walk");
Symbol 97 MovieClip [Obama_Player] Frame 205
stop();
Symbol 97 MovieClip [Obama_Player] Frame 306
stop();
Symbol 97 MovieClip [Obama_Player] Frame 316
this._parent.buttondown = true;
Symbol 97 MovieClip [Obama_Player] Frame 319
this._x = this._x - 30;
_root.smallPlayer._x = _root.smallPlayer._x + 30;
Symbol 97 MovieClip [Obama_Player] Frame 324
stop();
this._parent.buttondown = false;
this.gotoAndPlay("stand");
Symbol 97 MovieClip [Obama_Player] Frame 374
stop();
Symbol 97 MovieClip [Obama_Player] Frame 384
stop();
Symbol 109 MovieClip [Obama_Com] Frame 1
_root.comMoving = false;
Symbol 109 MovieClip [Obama_Com] Frame 30
stop();
this.gotoAndPlay("stand");
Symbol 109 MovieClip [Obama_Com] Frame 35
_root.comMoving = true;
Symbol 109 MovieClip [Obama_Com] Frame 48
_root.comMoving = false;
_root.beingHit = false;
_root.tCom = 0;
_root.tDmg = 0;
this.gotoAndPlay("stand");
Symbol 109 MovieClip [Obama_Com] Frame 55
_root.comMoving = true;
Symbol 109 MovieClip [Obama_Com] Frame 80
_root.comMoving = false;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 109 MovieClip [Obama_Com] Frame 85
_root.comMoving = true;
Symbol 109 MovieClip [Obama_Com] Frame 122
_root.comMoving = false;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 109 MovieClip [Obama_Com] Frame 139
stop();
_root.comMoving = false;
Symbol 109 MovieClip [Obama_Com] Frame 153
stop();
_root.comMoving = false;
Symbol 109 MovieClip [Obama_Com] Frame 176
this.gotoAndPlay("walk");
Symbol 109 MovieClip [Obama_Com] Frame 205
stop();
Symbol 109 MovieClip [Obama_Com] Frame 306
stop();
Symbol 109 MovieClip [Obama_Com] Frame 316
this._parent.beingHit = true;
Symbol 109 MovieClip [Obama_Com] Frame 319
this._x = this._x + 40;
Symbol 109 MovieClip [Obama_Com] Frame 324
stop();
this.gotoAndPlay("stand");
Symbol 109 MovieClip [Obama_Com] Frame 374
stop();
Symbol 109 MovieClip [Obama_Com] Frame 379
stop();
Symbol 145 MovieClip Frame 30
this.gotoAndPlay(1);
Symbol 306 MovieClip Frame 95
this._root.gotoAndPlay("noRules");
this._root.Music;
Symbol 306 MovieClip Frame 213
stop();
Symbol 307 MovieClip Frame 61
this._root.obama_mc._visible = false;
this._root.obamaSmall_mc._visible = false;
this._root.obamaHealth.gotoAndPlay("dead");
Symbol 307 MovieClip Frame 121
this._root.stars_mc._visible = true;
Symbol 307 MovieClip Frame 146
stop();
Symbol 337 MovieClip [Hillary_Com] Frame 1
_root.comMoving = false;
Symbol 337 MovieClip [Hillary_Com] Frame 30
stop();
this.gotoAndPlay("stand");
Symbol 337 MovieClip [Hillary_Com] Frame 35
_root.comMoving = true;
Symbol 337 MovieClip [Hillary_Com] Frame 48
_root.comMoving = false;
_root.beingHit = false;
_root.tCom = 0;
_root.tDmg = 0;
this.gotoAndPlay("stand");
Symbol 337 MovieClip [Hillary_Com] Frame 55
_root.comMoving = true;
Symbol 337 MovieClip [Hillary_Com] Frame 80
_root.comMoving = false;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 337 MovieClip [Hillary_Com] Frame 85
_root.comMoving = true;
Symbol 337 MovieClip [Hillary_Com] Frame 122
_root.comMoving = false;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 337 MovieClip [Hillary_Com] Frame 139
stop();
_root.comMoving = false;
Symbol 337 MovieClip [Hillary_Com] Frame 153
stop();
_root.comMoving = false;
Symbol 337 MovieClip [Hillary_Com] Frame 176
this.gotoAndPlay("walk");
Symbol 337 MovieClip [Hillary_Com] Frame 205
stop();
Symbol 337 MovieClip [Hillary_Com] Frame 306
stop();
Symbol 337 MovieClip [Hillary_Com] Frame 316
this._parent.beingHit = true;
Symbol 337 MovieClip [Hillary_Com] Frame 319
this._x = this._x + 40;
Symbol 337 MovieClip [Hillary_Com] Frame 324
stop();
this.gotoAndPlay("stand");
Symbol 337 MovieClip [Hillary_Com] Frame 368
stop();
Symbol 337 MovieClip [Hillary_Com] Frame 371
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 1
this._parent.buttondown = false;
Symbol 384 MovieClip [Hillary_Player] Frame 30
stop();
this.gotoAndPlay("stand");
Symbol 384 MovieClip [Hillary_Player] Frame 48
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 384 MovieClip [Hillary_Player] Frame 80
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 384 MovieClip [Hillary_Player] Frame 122
this._parent.buttondown = false;
this._parent.buttonup = true;
_root.beingHit = false;
this.gotoAndPlay("stand");
Symbol 384 MovieClip [Hillary_Player] Frame 139
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 153
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 176
this.gotoAndPlay("walk");
Symbol 384 MovieClip [Hillary_Player] Frame 205
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 306
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 316
this._parent.buttondown = true;
Symbol 384 MovieClip [Hillary_Player] Frame 319
this._x = this._x - 30;
Symbol 384 MovieClip [Hillary_Player] Frame 324
stop();
this._parent.buttondown = false;
this.gotoAndPlay("stand");
Symbol 384 MovieClip [Hillary_Player] Frame 369
stop();
Symbol 384 MovieClip [Hillary_Player] Frame 375
stop();
Symbol 412 MovieClip [whiteback] Frame 30
stop();
Symbol 583 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 584 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 585 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 586 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 587 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 588 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 589 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 477 MovieClip Frame 445
stop();
Symbol 477 MovieClip Frame 446
this.gotoAndPlay(1);
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 16
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
_root.roundLabel.gotoAndPlay("round2");
Symbol 536 MovieClip Frame 3
stop();
_root.roundLabel.gotoAndPlay("round3");
Symbol 536 MovieClip Frame 4
stop();
_root.roundLabel.gotoAndPlay("round4");
Symbol 536 MovieClip Frame 5
stop();
_root.roundLabel.gotoAndPlay("round5");
Symbol 556 MovieClip Frame 152
stop();
_root.roundLabel.gotoAndPlay("round1");
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 50
stop();
_root.fight = true;
Symbol 575 MovieClip Frame 100
stop();
_root.fight = true;
Symbol 575 MovieClip Frame 150
stop();
_root.fight = true;
Symbol 575 MovieClip Frame 199
stop();
Symbol 575 MovieClip Frame 249
stop();
Symbol 575 MovieClip Frame 280
stop();
Symbol 575 MovieClip Frame 284
stop();
_root.fight = true;
Symbol 575 MovieClip Frame 334
stop();
_root.fight = true;
Symbol 575 MovieClip Frame 384
stop();
_root.fight = true;