Frame 2
function insertScores() {
var _local1 = _root;
_local1.scoreList.splice(_local1.insert, 0, _local1.pName, _local1.state, _local1.score);
}
function checkScores() {
var _local1 = _root;
if (_local1.myType == 1) {
_local1.state = "ap";
} else if (_local1.myType == 2) {
_local1.state = "ch";
} else if (_local1.myType == 3) {
_local1.state = "ta";
} else if (_local1.myType == 4) {
_local1.state = "wa";
} else if (_local1.myType == 5) {
_local1.state = "bl";
}
sc = 0;
scSlot = 1;
_local1.insert = _local1.scoreList.length;
_local1.insertSlot = _local1.scoreList.length / 3;
s = 0;
while (s < _local1.scoreList.length) {
sc = sc + 1;
tdata = _local1.scoreList[s];
trace(tdata);
if (sc == 1) {
} else if (sc == 2) {
} else if (sc == 3) {
trace("tdata=" + tdata);
if (_local1.score > int(tdata)) {
_local1.insert = s - 2;
_local1.insertSlot = scSlot;
return("done");
}
scSlot = scSlot + 1;
sc = 0;
}
s++;
}
return(undefined);
}
function setScores() {
sc = 0;
scSlot = 1;
s = 0;
while (s < _root.scoreList.length) {
sc = sc + 1;
tdata = _root.scoreList[s];
trace(tdata);
if (s == _root.insert) {
boldon = true;
}
if (sc == 1) {
eval ("_root.sr" + scSlot).myPlayer = tdata;
} else if (sc == 2) {
eval ("_root.sr" + scSlot).myState = tdata;
} else if (sc == 3) {
eval ("_root.sr" + scSlot).myScore = tdata;
eval ("_root.sr" + scSlot).Scnt = scSlot;
eval ("_root.sr" + scSlot).gotoAndPlay(2);
if (boldon == true) {
eval ("_root.sr" + scSlot).boldMe = true;
boldon = false;
}
scSlot = scSlot + 1;
sc = 0;
}
s++;
}
}
_quality = "best";
_root.scoreList = "";
_root.pName = "";
_root.state = "";
testing = false;
stop();
Frame 3
_root.state = "";
_root.errorText = "";
success = false;
if (testing == false) {
myLoadVars = new LoadVars();
myLoadVars.high_scores = "";
myLoadVars.load("get_high_scores.jsp");
}
Frame 5
if (testing == false) {
if (_root.myLoadVars.high_scores != "") {
cnt = 0;
_root.scoreList = _root.myLoadVars.high_scores;
_root.scoreList = _root.scoreList.split("|");
trace(_root.scoreList);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Frame 8
function removeChar(charNum) {
var _local1 = _root;
var _local2 = charNum;
i = 0;
while (i < _local1.charList.length) {
if (_local1.charList[i] == _local2) {
_local1.charList.splice(i, 1);
}
i++;
}
}
charList = [1, 2, 3, 4, 5];
char1Done = false;
char2Done = false;
char3Done = false;
char4Done = false;
char5Done = false;
state = "ap";
score = 0;
nextFight = false;
lost = false;
stop();
Frame 9
stop();
Frame 17
stop();
Instance of Symbol 400 MovieClip "char" in Frame 17
onClipEvent (load) {
if (_root.nextFight == true) {
gotoAndPlay ("startEn");
_root.nextFight = false;
}
}
Frame 18
stop();
Instance of Symbol 771 MovieClip "faceoffSc" in Frame 18
onClipEvent (load) {
if (_root._currentframe > 18) {
gotoAndStop ("display");
}
}
Frame 28
_root.pointsAwarded = 0;
Set(("_root.char" + _root.myType) + "Done", true);
Set(("_root.char" + _root.enType) + "Done", true);
thisround = 1;
Instance of Symbol 800 MovieClip "fader" in Frame 29
onClipEvent (load) {
gotoAndPlay ("on");
_root.winScore = 0;
_root.loseScore = 0;
_root.thisRound = 1;
this.swapDepths(2000);
}
Frame 30
_root.fgFire = false;
enemy.removeMovieClip();
player.removeMovieClip();
cherry_buddy.swapDepths(40);
cherry_buddy.removeMovieClip();
cherry_control.swapDepths(40);
cherry_control.removeMovieClip();
EnCherry_buddy.swapDepths(40);
EnCherry_buddy.removeMovieClip();
apple_control.swapDepths(40);
apple_control.removeMovieClip();
raspberry_control.swapDepths(40);
raspberry_control.removeMovieClip();
tangerine_control.swapDepths(40);
tangerine_control.removeMovieClip();
watermelon_control.swapDepths(40);
watermelon_control.removeMovieClip();
enNum = random(5) + 1;
Frame 31
controls = false;
_root.BDepth = 100;
if (_root.charList.length == 3) {
enAgression = 18 - _root.winScore;
enDefense = 10 - _root.winScore;
enSpeed = 80 - (_root.winScore * 4);
trace("Level 1 Opponent");
} else if (_root.charList.length == 2) {
enAgression = 12 - _root.winScore;
enDefense = 8 - _root.winScore;
enSpeed = 60 - (_root.winScore * 4);
trace("Level 2 Opponent");
} else if (_root.charList.length == 1) {
enAgression = 9 - _root.winScore;
enDefense = 6 - _root.winScore;
enSpeed = 50 - (_root.winScore * 4);
trace("Level 3 Opponent");
} else if (_root.charList.length == 0) {
enAgression = 7 - _root.winScore;
enDefense = 5 - _root.winScore;
enSpeed = 40 - (_root.winScore * 4);
trace("Level 4 Opponent");
}
hClip = 0;
trace("myType =" + _root.myType);
if (myType == 2) {
cherry._visible = true;
cherry.running = true;
cherry.swapDepths(50);
cherry._name = "player";
cherry_buddy.active = true;
cherry_buddy.swapDepths(30);
} else {
cherry.swapDepths(40);
cherry.removeMovieClip();
cherry_buddy.swapDepths(40);
cherry_buddy.removeMovieClip();
}
if (myType == 1) {
apple._visible = true;
apple.running = true;
apple.swapDepths(50);
apple._name = "player";
} else {
apple.swapDepths(40);
apple.removeMovieClip();
}
if (myType == 3) {
tangerine._visible = true;
tangerine.running = true;
tangerine.swapDepths(50);
tangerine._name = "player";
} else {
tangerine.swapDepths(40);
tangerine.removeMovieClip();
}
if (myType == 4) {
watermelon._visible = true;
watermelon.running = true;
watermelon.swapDepths(50);
watermelon._name = "player";
} else {
watermelon.swapDepths(40);
watermelon.removeMovieClip();
}
if (myType == 5) {
raspberry._visible = true;
raspberry.running = true;
raspberry.swapDepths(50);
raspberry._name = "player";
} else {
raspberry.swapDepths(40);
raspberry.removeMovieClip();
}
if (enType == 2) {
EnCherry._visible = true;
EnCherry.running = true;
EnCherry.swapDepths(40);
EnCherry._name = "enemy";
EnCherry_buddy.active = true;
EnCherry_buddy.swapDepths(31);
} else {
cherry_control.swapDepths(40);
cherry_control.removeMovieClip();
EnCherry.swapDepths(40);
EnCherry.removeMovieClip();
EnCherry_buddy.swapDepths(40);
EnCherry_buddy.removeMovieClip();
}
if (enType == 1) {
EnApple._visible = true;
EnApple.running = true;
EnApple.swapDepths(40);
EnApple._name = "enemy";
} else {
EnApple.swapDepths(40);
EnApple.removeMovieClip();
apple_control.swapDepths(40);
apple_control.removeMovieClip();
}
if (enType == 5) {
EnRasp._visible = true;
EnRasp.running = true;
EnRasp.swapDepths(40);
EnRasp._name = "enemy";
} else {
EnRasp.swapDepths(40);
EnRasp.removeMovieClip();
raspberry_control.swapDepths(40);
raspberry_control.removeMovieClip();
}
if (enType == 3) {
EnTangerine._visible = true;
EnTangerine.running = true;
EnTangerine.swapDepths(40);
EnTangerine._name = "enemy";
} else {
EnTangerine.swapDepths(40);
EnTangerine.removeMovieClip();
tangerine_control.swapDepths(40);
tangerine_control.removeMovieClip();
}
if (enType == 4) {
EnWater._visible = true;
EnWater.running = true;
EnWater.swapDepths(40);
EnWater._name = "enemy";
} else {
EnWater.swapDepths(40);
EnWater.removeMovieClip();
watermelon_control.swapDepths(40);
watermelon_control.removeMovieClip();
}
stop();
Instance of Symbol 874 MovieClip "BG" in Frame 31
onClipEvent (load) {
function executeMove() {
var _local1 = _parent;
_x = (_x + (_local1.bgMove * -1));
_local1.LLim._x = _local1.LLim._x + (_local1.bgMove * -1);
_local1.LLim2._x = _local1.LLim2._x + (_local1.bgMove * -1);
_local1.RLim._x = _local1.RLim._x + (_local1.bgMove * -1);
_local1.RLim2._x = _local1.RLim2._x + (_local1.bgMove * -1);
_local1.banners._x = _local1.banners._x + (_local1.bgMove * -1);
_local1.lower._x = _local1.lower._x + (_local1.bgMove * -0.6);
_local1.upper._x = _local1.upper._x + (_local1.bgMove * -0.47);
_local1.middle._x = _local1.middle._x + (_local1.bgMove * -0.45);
_local1.dome._x = _local1.dome._x + (_local1.bgMove * -0.44);
_local1.screen._x = _local1.screen._x + (_local1.bgMove * -0.43);
_local1.faceoffSC._x = _local1.faceoffSC._x + (_local1.bgMove * -0.43);
_local1.enemy._x = _local1.enemy._x + (_local1.bgMove * -1);
if (inPan == true) {
_local1.player._x = _local1.player._x + (_local1.bgMove * -1);
}
}
function shake(thisName) {
shaking = true;
firstHit = false;
sdirect = -1;
randShake = 15;
scnt = 0;
if (thisName == "player") {
dropTarg = _root.enemy;
} else {
dropTarg = _root.player;
}
}
function panTo(panName) {
thisPan = panName;
inPan = true;
}
_root.FloorShake = false;
_parent.bgMove = 0;
inPan = false;
thisPan = "";
thisMove = 0;
shaking = false;
orgY = _y;
scnt = 0;
bannersOrgY = _parent.banners._y;
faceoffOrgY = _parent.faceoffSC._y;
lowerOrgY = _parent.lower._y;
upperOrgY = _parent.upper._y;
middleOrgY = _parent.middle._y;
domeOrgY = _parent.dome._y;
screenOrgY = _parent.screen._y;
}
onClipEvent (enterFrame) {
if (inPan == true) {
tgX = eval ("_root." + thisPan)._x;
thisMove = (_root.center._x - tgX) * 0.2;
if (((_root.RLim._x + thisMove) > _root.Right._x) and ((_root.LLim._x + thisMove) < 80)) {
_root.bgMove = thisMove * -1;
executeMove();
} else {
_root.bgMove = 0;
thisMove = 0;
}
} else {
nextX = _x + (_parent.bgMove * -1);
executeMove();
}
if (shaking == true) {
sdirect = sdirect * -1;
scnt = scnt + 1;
if (scnt > 4) {
if (firstHit == false) {
if ((dropTarg.inJump != true) and ((dropTarg._x > 0) and (dropTarg._x < 600))) {
dropTarg.hit(dropTarg._x, dropTarg.floor + 40, 1, 25, 10);
firstHit = true;
if (dropTarg.action != "block") {
dropTarg.Ymove = -15;
}
}
}
}
_y = (_y + (randShake * sdirect));
_parent.banners._y = _parent.banners._y + ((randShake * -1) * sdirect);
_parent.lower._y = _parent.lower._y + ((randShake * -0.6) * sdirect);
_parent.upper._y = _parent.upper._y + ((randShake * -0.47) * sdirect);
_parent.middle._y = _parent.middle._y + ((randShake * 0.45) * sdirect);
_parent.dome._y = _parent.dome._y + ((randShake * -0.44) * sdirect);
_parent.screen._y = _parent.screen._y + ((randShake * 0.43) * sdirect);
_parent.faceoffSC._y = _parent.faceoffSC._y + ((randShake * 0.43) * sdirect);
if (randshake < 1) {
shaking = false;
_y = orgY;
_root.FloorShake = false;
_parent.banners._y = bannersOrgY;
_parent.lower._y = lowerOrgY;
_parent.upper._y = upperOrgY;
_parent.middle._y = middleOrgY;
_parent.dome._y = domeOrgY;
_parent.screen._y = screenOrgY;
_parent.faceoffSC._y = faceoffOrgY;
}
if (sdirect == -1) {
randShake = randShake * 0.7;
}
}
}
Instance of Symbol 894 MovieClip "LLim" in Frame 31
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 894 MovieClip "RLim" in Frame 31
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 894 MovieClip "Right" in Frame 31
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 894 MovieClip "Left" in Frame 31
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 894 MovieClip "Center" in Frame 31
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 898 MovieClip in Frame 31
onClipEvent (load) {
myGuy = _root.player;
shad._width = myGuy._width * 0.7;
shad._height = _height * 0.4;
_x = myGuy._x;
floorY = myGuy._y;
orgA = _alpha;
}
onClipEvent (enterFrame) {
_x = myGuy._x;
svar = (floorY - myGuy._y) * 0.2;
_alpha = (orgA - (svar * 0.4));
_xscale = (100 - svar);
_yscale = (100 - svar);
}
Instance of Symbol 898 MovieClip in Frame 31
onClipEvent (load) {
myGuy = _root.enemy;
shad._width = myGuy._width * 0.7;
shad._height = _height * 0.4;
_x = myGuy._x;
floorY = myGuy._y;
orgA = _alpha;
}
onClipEvent (enterFrame) {
_x = myGuy._x;
svar = (floorY - myGuy._y) * 0.2;
_alpha = (orgA - (svar * 0.4));
_xscale = (100 - svar);
_yscale = (100 - svar);
}
Instance of Symbol 902 MovieClip in Frame 31
onClipEvent (load) {
myControl = _root.player;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
if (Key.isDown(40)) {
myControl.DNKey = true;
} else {
myControl.DNKey = false;
}
if (Key.isDown(39)) {
myControl.RTKey = true;
} else {
myControl.RTKey = false;
}
if (Key.isDown(37)) {
myControl.LTKey = true;
} else {
myControl.LTKey = false;
}
if (Key.isDown(88)) {
myControl.XKey = true;
} else {
myControl.XKey = false;
}
if (Key.isDown(38)) {
myControl.UPKey = true;
} else {
myControl.UPKey = false;
}
if (Key.isDown(90)) {
myControl.ZKey = true;
} else {
myControl.ZKey = false;
}
} else {
myControl.DNKey = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.XKey = false;
myControl.UPKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 905 MovieClip "apple_control" in Frame 31
onClipEvent (load) {
function ConChange() {
if ((JumpAttack == false) and (CloseAttack == false)) {
if (inClose == true) {
dRand = random(30);
LongBlock = false;
if (((enLong == true) or (enJumpKick == true)) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
if (LongBlock == false) {
if (dRand > agression) {
jumpRand = random(100);
if (jumpRand > 80) {
JumpDir = random(3) + 1;
CloseAttack = false;
moveOut = false;
moveIn = false;
JumpAttack = true;
kickTime = random(5) + 1;
JCnt = 0;
} else {
CloseAttack = true;
}
} else {
dRand = random(30);
if (dRand > 19) {
CloseAttack = false;
idle = true;
idleTime = (random(3) * speed) + 15;
} else if (drand > 15) {
moveOut = true;
} else if (drand > 10) {
block = true;
blockCnt = 0;
} else {
hangTight = true;
}
}
} else {
block = true;
blockCnt = 0;
}
} else {
LongBlock = false;
if ((enLong == true) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
drand = random(30);
if (LongBlock == true) {
block = true;
blockCnt = 0;
} else if (drand > (agression * 1.5)) {
nrand = random(20);
if (nrand > (agression * 2)) {
CloseAttack = true;
FireLong = true;
} else {
moveIn = true;
moveOut = false;
getOnScreen = false;
moveTight = false;
}
} else {
idle = true;
idleTime = (random(5) * speed) + 15;
}
}
}
}
myControl = _root.enemy;
myEnemy = _root.player;
agression = _root.enAgression;
defense = _root.enDefense;
speed = _root.enSpeed;
handRange = 150;
defCnt = 0;
cnt = 0;
backOutNext = false;
inClose = false;
onScreen = true;
enLong = false;
CloseAttack = false;
JumpAttack = false;
block = false;
blockCnt = 0;
getOnScreen = false;
moveIn = false;
moveOut = false;
moveTight = false;
Dcnt = 0;
idle = true;
idleTime = 45;
idleCnt = 0;
JCnt = 0;
JumpDir = 0;
FireLong = false;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
EnX = myEnemy._x;
EnY = myEnemy._y;
myX = myControl._x;
myY = myControl._y;
EnBulletX = eval (myEnemy + "Bullet")._x;
EnBulletY = eval (myEnemy + "Bullet")._y;
myControl.LTKey = false;
myControl.RTKey = false;
EnAction = myEnemy.action;
myAction = myControl.action;
direct = myControl.direct;
if (((EnX > (myX - handRange)) and (EnX < (myX + handRange))) or ((_root.playerBullet._x > (myX - handRange)) and (_root.playerBullet._x < (myX + handRange)))) {
if (inClose == false) {
inClose = true;
ConChange();
}
} else if (inClose == true) {
inClose = false;
ConChange();
}
if ((myX > _root.Left._x) and (myX < _root.Right._x)) {
if (onScreen == false) {
ConChange();
onScreen = true;
}
} else if (onScreen == true) {
ConChange();
onScreen = false;
}
if (EnAction == "long") {
if (EnLong == false) {
ConChange();
EnLong = true;
}
} else if (EnLong == true) {
ConChange();
EnLong = false;
}
if (EnAction == "jump2") {
enJumpKick = true;
} else {
enJumpKick = false;
}
if (getOnScreen == true) {
if (onScreen == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
}
}
if (CloseAttack == true) {
if (myAction == "idle") {
firstAttack = true;
CloseAttack = false;
ConChange();
}
if (firstAttack != false) {
dRand = random(30);
firstAttack = false;
if (FireLong == true) {
myControl.checkLog("long");
FireLong = false;
} else if (dRand > 28) {
myControl.checkLog("special");
} else if (dRand > 25) {
myControl.checkLog("long");
} else if (dRand > 22) {
myControl.ZKey = true;
} else if (dRand < 13) {
myControl.XKey = true;
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
}
if (JumpAttack == true) {
JCnt = JCnt + 1;
if (JCnt < kickTime) {
myControl.UPKey = true;
if (direct == 1) {
myControl.RTKey = true;
myControl.LTKey = false;
} else {
myControl.LTKey = true;
myControl.RTKey = false;
}
} else if (JCnt > kickTime) {
myControl.ZKey = true;
if (myControl.inJump == false) {
JumpAttack = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.UPKey = false;
Jcnt = 0;
ConChange();
}
}
}
if (moveIn == true) {
if (inClose == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveIn = false;
ConChange();
}
}
if (moveTight == true) {
if ((myX < (enX - (myEnemy._width * 0.7))) and (myX > (enX + (myEnemy._width * 0.7)))) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveTight = false;
ConChange();
}
}
if (moveOut == true) {
if ((onScreen == true) and ((myX > _root.Left._x) and (myX < _root.Right._x))) {
if (direct == 1) {
myControl.LTKey = true;
} else {
myControl.RTKey = true;
}
} else {
moveOut = false;
ConChange();
}
}
if (idle == true) {
idleCnt = idleCnt + 1;
if (idleCnt > idleTime) {
idle = false;
ConChange();
}
}
if (FloorShake == false) {
if (_root.FloorShake == true) {
FloorShake = true;
ConChange();
}
} else if (_root.FloorShake == false) {
FloorShake = false;
ConChange();
}
if (myControl.hurt == true) {
defCnt = defCnt + 1;
if (defCnt > defense) {
backOutNext = false;
backoutRand = random(100);
if (backoutRand < agression) {
backOutNext = true;
}
block = true;
blockCnt = 0;
}
ConChange();
} else {
defCnt = 0;
}
if (block == true) {
blockCnt = blockCnt + 1;
if (blockCnt > agression) {
myControl.UPKey = false;
myControl.LTKey = false;
myControl.RTKey = false;
block = false;
if (backOutNext == true) {
moveOut = true;
backOutNext = false;
blockCnt = 0;
} else {
backOutNext = false;
blockCnt = 0;
ConChange();
}
} else {
myControl.LTKey = true;
myControl.RTKey = true;
}
}
if ((myAction == "idle") and (idle == false)) {
ConChange();
}
} else {
myControl.LTKey = false;
myControl.RTKey = false;
myControl.UPKey = false;
myControl.DNKey = false;
myControl.XKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 907 MovieClip "cherry_control" in Frame 31
onClipEvent (load) {
function ConChange() {
if ((JumpAttack == false) and (CloseAttack == false)) {
if (inClose == true) {
dRand = random(30);
LongBlock = false;
if (((enLong == true) or (enJumpKick == true)) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
if (LongBlock == false) {
if (dRand > agression) {
jumpRand = random(100);
if (jumpRand > 80) {
JumpDir = random(3) + 1;
CloseAttack = false;
moveOut = false;
moveIn = false;
JumpAttack = true;
kickTime = random(5) + 1;
JCnt = 0;
} else {
CloseAttack = true;
}
} else {
dRand = random(30);
if (dRand > 19) {
CloseAttack = false;
idle = true;
idleTime = (random(3) * speed) + 15;
} else if (drand > 15) {
moveOut = true;
} else if (drand > 10) {
block = true;
blockCnt = 0;
} else {
hangTight = true;
}
}
} else {
block = true;
blockCnt = 0;
}
} else {
LongBlock = false;
if ((enLong == true) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
drand = random(30);
if (LongBlock == true) {
block = true;
blockCnt = 0;
} else if (drand > (agression * 1.5)) {
nrand = random(20);
if (nrand > (agression * 2)) {
CloseAttack = true;
FireLong = true;
} else {
moveIn = true;
moveOut = false;
getOnScreen = false;
moveTight = false;
}
} else {
idle = true;
idleTime = (random(5) * speed) + 15;
}
}
}
}
myControl = _root.enemy;
myEnemy = _root.player;
agression = _root.enAgression;
defense = _root.enDefense;
speed = _root.enSpeed;
handRange = 150;
defCnt = 0;
cnt = 0;
backOutNext = false;
inClose = false;
onScreen = true;
enLong = false;
CloseAttack = false;
JumpAttack = false;
block = false;
blockCnt = 0;
getOnScreen = false;
moveIn = false;
moveOut = false;
moveTight = false;
Dcnt = 0;
idle = true;
idleTime = 45;
idleCnt = 0;
JCnt = 0;
JumpDir = 0;
FireLong = false;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
EnX = myEnemy._x;
EnY = myEnemy._y;
myX = myControl._x;
myY = myControl._y;
EnBulletX = eval (myEnemy + "Bullet")._x;
EnBulletY = eval (myEnemy + "Bullet")._y;
myControl.LTKey = false;
myControl.RTKey = false;
EnAction = myEnemy.action;
myAction = myControl.action;
direct = myControl.direct;
if (((EnX > (myX - handRange)) and (EnX < (myX + handRange))) or ((_root.playerBullet._x > (myX - handRange)) and (_root.playerBullet._x < (myX + handRange)))) {
if (inClose == false) {
inClose = true;
ConChange();
}
} else if (inClose == true) {
inClose = false;
ConChange();
}
if ((myX > _root.Left._x) and (myX < _root.Right._x)) {
if (onScreen == false) {
ConChange();
onScreen = true;
}
} else if (onScreen == true) {
ConChange();
onScreen = false;
}
if (EnAction == "long") {
if (EnLong == false) {
ConChange();
EnLong = true;
}
} else if (EnLong == true) {
ConChange();
EnLong = false;
}
if (EnAction == "jump2") {
enJumpKick = true;
} else {
enJumpKick = false;
}
if (getOnScreen == true) {
if (onScreen == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
}
}
if (CloseAttack == true) {
if (myAction == "idle") {
firstAttack = true;
CloseAttack = false;
ConChange();
}
if (firstAttack != false) {
dRand = random(30);
firstAttack = false;
if (FireLong == true) {
myControl.checkLog("long");
FireLong = false;
} else if (dRand > 28) {
myControl.checkLog("special");
} else if (dRand > 25) {
myControl.checkLog("long");
} else if (dRand > 22) {
myControl.ZKey = true;
} else if (dRand < 13) {
myControl.XKey = true;
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
}
if (JumpAttack == true) {
JCnt = JCnt + 1;
if (JCnt < kickTime) {
myControl.UPKey = true;
if (direct == 1) {
myControl.RTKey = true;
myControl.LTKey = false;
} else {
myControl.LTKey = true;
myControl.RTKey = false;
}
} else if (JCnt > kickTime) {
myControl.ZKey = true;
if (myControl.inJump == false) {
JumpAttack = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.UPKey = false;
Jcnt = 0;
ConChange();
}
}
}
if (moveIn == true) {
if (inClose == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveIn = false;
ConChange();
}
}
if (moveTight == true) {
if ((myX < (enX - (myEnemy._width * 0.7))) and (myX > (enX + (myEnemy._width * 0.7)))) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveTight = false;
ConChange();
}
}
if (moveOut == true) {
if ((onScreen == true) and ((myX > _root.Left._x) and (myX < _root.Right._x))) {
if (direct == 1) {
myControl.LTKey = true;
} else {
myControl.RTKey = true;
}
} else {
moveOut = false;
ConChange();
}
}
if (idle == true) {
idleCnt = idleCnt + 1;
if (idleCnt > idleTime) {
idle = false;
ConChange();
}
}
if (FloorShake == false) {
if (_root.FloorShake == true) {
FloorShake = true;
ConChange();
}
} else if (_root.FloorShake == false) {
FloorShake = false;
ConChange();
}
if (myControl.hurt == true) {
defCnt = defCnt + 1;
if (defCnt > defense) {
backOutNext = false;
backoutRand = random(100);
if (backoutRand < agression) {
backOutNext = true;
}
block = true;
blockCnt = 0;
}
ConChange();
} else {
defCnt = 0;
}
if (block == true) {
blockCnt = blockCnt + 1;
if (blockCnt > agression) {
myControl.UPKey = false;
myControl.LTKey = false;
myControl.RTKey = false;
block = false;
if (backOutNext == true) {
moveOut = true;
backOutNext = false;
blockCnt = 0;
} else {
backOutNext = false;
blockCnt = 0;
ConChange();
}
} else {
myControl.LTKey = true;
myControl.RTKey = true;
}
}
if ((myAction == "idle") and (idle == false)) {
ConChange();
}
} else {
myControl.LTKey = false;
myControl.RTKey = false;
myControl.UPKey = false;
myControl.DNKey = false;
myControl.XKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 909 MovieClip "watermelon_control" in Frame 31
onClipEvent (load) {
function ConChange() {
if ((JumpAttack == false) and (CloseAttack == false)) {
if (inClose == true) {
dRand = random(30);
LongBlock = false;
if (((enLong == true) or (enJumpKick == true)) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
if (LongBlock == false) {
if (dRand > agression) {
jumpRand = random(100);
if (jumpRand > 80) {
JumpDir = random(3) + 1;
CloseAttack = false;
moveOut = false;
moveIn = false;
JumpAttack = true;
kickTime = random(5) + 1;
JCnt = 0;
} else {
CloseAttack = true;
}
} else {
dRand = random(30);
if (dRand > 19) {
CloseAttack = false;
idle = true;
idleTime = (random(3) * speed) + 15;
} else if (drand > 15) {
moveOut = true;
} else if (drand > 10) {
block = true;
blockCnt = 0;
} else {
hangTight = true;
}
}
} else {
block = true;
blockCnt = 0;
}
} else {
LongBlock = false;
if ((enLong == true) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
drand = random(30);
if (LongBlock == true) {
block = true;
blockCnt = 0;
} else if (drand > (agression * 1.5)) {
nrand = random(20);
if (nrand > (agression * 2)) {
CloseAttack = true;
FireLong = true;
} else {
moveIn = true;
moveOut = false;
getOnScreen = false;
moveTight = false;
}
} else {
idle = true;
idleTime = (random(5) * speed) + 15;
}
}
}
}
myControl = _root.enemy;
myEnemy = _root.player;
agression = _root.enAgression;
defense = _root.enDefense;
speed = _root.enSpeed;
handRange = 150;
defCnt = 0;
cnt = 0;
backOutNext = false;
inClose = false;
onScreen = true;
enLong = false;
CloseAttack = false;
JumpAttack = false;
block = false;
blockCnt = 0;
getOnScreen = false;
moveIn = false;
moveOut = false;
moveTight = false;
Dcnt = 0;
idle = true;
idleTime = 45;
idleCnt = 0;
JCnt = 0;
JumpDir = 0;
FireLong = false;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
EnX = myEnemy._x;
EnY = myEnemy._y;
myX = myControl._x;
myY = myControl._y;
EnBulletX = eval (myEnemy + "Bullet")._x;
EnBulletY = eval (myEnemy + "Bullet")._y;
myControl.LTKey = false;
myControl.RTKey = false;
EnAction = myEnemy.action;
myAction = myControl.action;
direct = myControl.direct;
if (((EnX > (myX - handRange)) and (EnX < (myX + handRange))) or ((_root.playerBullet._x > (myX - handRange)) and (_root.playerBullet._x < (myX + handRange)))) {
if (inClose == false) {
inClose = true;
ConChange();
}
} else if (inClose == true) {
inClose = false;
ConChange();
}
if ((myX > _root.Left._x) and (myX < _root.Right._x)) {
if (onScreen == false) {
ConChange();
onScreen = true;
}
} else if (onScreen == true) {
ConChange();
onScreen = false;
}
if (EnAction == "long") {
if (EnLong == false) {
ConChange();
EnLong = true;
}
} else if (EnLong == true) {
ConChange();
EnLong = false;
}
if (EnAction == "jump2") {
enJumpKick = true;
} else {
enJumpKick = false;
}
if (getOnScreen == true) {
if (onScreen == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
}
}
if (CloseAttack == true) {
if (myAction == "idle") {
firstAttack = true;
CloseAttack = false;
ConChange();
}
if (firstAttack != false) {
dRand = random(30);
firstAttack = false;
if (FireLong == true) {
myControl.checkLog("long");
FireLong = false;
} else if (dRand > 28) {
myControl.checkLog("special");
} else if (dRand > 25) {
myControl.checkLog("long");
} else if (dRand > 22) {
myControl.ZKey = true;
} else if (dRand < 13) {
myControl.XKey = true;
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
}
if (JumpAttack == true) {
JCnt = JCnt + 1;
if (JCnt < kickTime) {
myControl.UPKey = true;
if (direct == 1) {
myControl.RTKey = true;
myControl.LTKey = false;
} else {
myControl.LTKey = true;
myControl.RTKey = false;
}
} else if (JCnt > kickTime) {
myControl.ZKey = true;
if (myControl.inJump == false) {
JumpAttack = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.UPKey = false;
Jcnt = 0;
ConChange();
}
}
}
if (moveIn == true) {
if (inClose == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveIn = false;
ConChange();
}
}
if (moveTight == true) {
if ((myX < (enX - (myEnemy._width * 0.7))) and (myX > (enX + (myEnemy._width * 0.7)))) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveTight = false;
ConChange();
}
}
if (moveOut == true) {
if ((onScreen == true) and ((myX > _root.Left._x) and (myX < _root.Right._x))) {
if (direct == 1) {
myControl.LTKey = true;
} else {
myControl.RTKey = true;
}
} else {
moveOut = false;
ConChange();
}
}
if (idle == true) {
idleCnt = idleCnt + 1;
if (idleCnt > idleTime) {
idle = false;
ConChange();
}
}
if (FloorShake == false) {
if (_root.FloorShake == true) {
FloorShake = true;
ConChange();
}
} else if (_root.FloorShake == false) {
FloorShake = false;
ConChange();
}
if (myControl.hurt == true) {
defCnt = defCnt + 1;
if (defCnt > defense) {
backOutNext = false;
backoutRand = random(100);
if (backoutRand < agression) {
backOutNext = true;
}
block = true;
blockCnt = 0;
}
ConChange();
} else {
defCnt = 0;
}
if (block == true) {
blockCnt = blockCnt + 1;
if (blockCnt > agression) {
myControl.UPKey = false;
myControl.LTKey = false;
myControl.RTKey = false;
block = false;
if (backOutNext == true) {
moveOut = true;
backOutNext = false;
blockCnt = 0;
} else {
backOutNext = false;
blockCnt = 0;
ConChange();
}
} else {
myControl.LTKey = true;
myControl.RTKey = true;
}
}
if ((myAction == "idle") and (idle == false)) {
ConChange();
}
} else {
myControl.LTKey = false;
myControl.RTKey = false;
myControl.UPKey = false;
myControl.DNKey = false;
myControl.XKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 911 MovieClip "tangerine_control" in Frame 31
onClipEvent (load) {
function ConChange() {
if ((JumpAttack == false) and (CloseAttack == false)) {
if (inClose == true) {
dRand = random(30);
LongBlock = false;
if (((enLong == true) or (enJumpKick == true)) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
if (LongBlock == false) {
if (dRand > agression) {
jumpRand = random(100);
if (jumpRand > 80) {
JumpDir = random(3) + 1;
CloseAttack = false;
moveOut = false;
moveIn = false;
JumpAttack = true;
kickTime = random(5) + 1;
JCnt = 0;
} else {
CloseAttack = true;
}
} else {
dRand = random(30);
if (dRand > 19) {
CloseAttack = false;
idle = true;
idleTime = (random(3) * speed) + 15;
} else if (drand > 15) {
moveOut = true;
} else if (drand > 10) {
block = true;
blockCnt = 0;
} else {
hangTight = true;
}
}
} else {
block = true;
blockCnt = 0;
}
} else {
LongBlock = false;
if ((enLong == true) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
drand = random(30);
if (LongBlock == true) {
block = true;
blockCnt = 0;
} else if (drand > (agression * 1.5)) {
nrand = random(20);
if (nrand > (agression * 2)) {
CloseAttack = true;
FireLong = true;
} else {
moveIn = true;
moveOut = false;
getOnScreen = false;
moveTight = false;
}
} else {
idle = true;
idleTime = (random(5) * speed) + 15;
}
}
}
}
myControl = _root.enemy;
myEnemy = _root.player;
agression = _root.enAgression;
defense = _root.enDefense;
speed = _root.enSpeed;
handRange = 150;
defCnt = 0;
cnt = 0;
backOutNext = false;
inClose = false;
onScreen = true;
enLong = false;
CloseAttack = false;
JumpAttack = false;
block = false;
blockCnt = 0;
getOnScreen = false;
moveIn = false;
moveOut = false;
moveTight = false;
Dcnt = 0;
idle = true;
idleTime = 45;
idleCnt = 0;
JCnt = 0;
JumpDir = 0;
FireLong = false;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
EnX = myEnemy._x;
EnY = myEnemy._y;
myX = myControl._x;
myY = myControl._y;
EnBulletX = eval (myEnemy + "Bullet")._x;
EnBulletY = eval (myEnemy + "Bullet")._y;
myControl.LTKey = false;
myControl.RTKey = false;
EnAction = myEnemy.action;
myAction = myControl.action;
direct = myControl.direct;
if (((EnX > (myX - handRange)) and (EnX < (myX + handRange))) or ((_root.playerBullet._x > (myX - handRange)) and (_root.playerBullet._x < (myX + handRange)))) {
if (inClose == false) {
inClose = true;
ConChange();
}
} else if (inClose == true) {
inClose = false;
ConChange();
}
if ((myX > _root.Left._x) and (myX < _root.Right._x)) {
if (onScreen == false) {
ConChange();
onScreen = true;
}
} else if (onScreen == true) {
ConChange();
onScreen = false;
}
if (EnAction == "long") {
if (EnLong == false) {
ConChange();
EnLong = true;
}
} else if (EnLong == true) {
ConChange();
EnLong = false;
}
if (EnAction == "jump2") {
enJumpKick = true;
} else {
enJumpKick = false;
}
if (getOnScreen == true) {
if (onScreen == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
}
}
if (CloseAttack == true) {
if (myAction == "idle") {
firstAttack = true;
CloseAttack = false;
ConChange();
}
if (firstAttack != false) {
dRand = random(30);
firstAttack = false;
if (FireLong == true) {
myControl.checkLog("long");
FireLong = false;
} else if (dRand > 28) {
myControl.checkLog("special");
} else if (dRand > 25) {
myControl.checkLog("long");
} else if (dRand > 22) {
myControl.ZKey = true;
} else if (dRand < 13) {
myControl.XKey = true;
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
}
if (JumpAttack == true) {
JCnt = JCnt + 1;
if (JCnt < kickTime) {
myControl.UPKey = true;
if (direct == 1) {
myControl.RTKey = true;
myControl.LTKey = false;
} else {
myControl.LTKey = true;
myControl.RTKey = false;
}
} else if (JCnt > kickTime) {
myControl.ZKey = true;
if (myControl.inJump == false) {
JumpAttack = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.UPKey = false;
Jcnt = 0;
ConChange();
}
}
}
if (moveIn == true) {
if (inClose == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveIn = false;
ConChange();
}
}
if (moveTight == true) {
if ((myX < (enX - (myEnemy._width * 0.7))) and (myX > (enX + (myEnemy._width * 0.7)))) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveTight = false;
ConChange();
}
}
if (moveOut == true) {
if ((onScreen == true) and ((myX > _root.Left._x) and (myX < _root.Right._x))) {
if (direct == 1) {
myControl.LTKey = true;
} else {
myControl.RTKey = true;
}
} else {
moveOut = false;
ConChange();
}
}
if (idle == true) {
idleCnt = idleCnt + 1;
if (idleCnt > idleTime) {
idle = false;
ConChange();
}
}
if (FloorShake == false) {
if (_root.FloorShake == true) {
FloorShake = true;
ConChange();
}
} else if (_root.FloorShake == false) {
FloorShake = false;
ConChange();
}
if (myControl.hurt == true) {
defCnt = defCnt + 1;
if (defCnt > defense) {
backOutNext = false;
backoutRand = random(100);
if (backoutRand < agression) {
backOutNext = true;
}
block = true;
blockCnt = 0;
}
ConChange();
} else {
defCnt = 0;
}
if (block == true) {
blockCnt = blockCnt + 1;
if (blockCnt > agression) {
myControl.UPKey = false;
myControl.LTKey = false;
myControl.RTKey = false;
block = false;
if (backOutNext == true) {
moveOut = true;
backOutNext = false;
blockCnt = 0;
} else {
backOutNext = false;
blockCnt = 0;
ConChange();
}
} else {
myControl.LTKey = true;
myControl.RTKey = true;
}
}
if ((myAction == "idle") and (idle == false)) {
ConChange();
}
} else {
myControl.LTKey = false;
myControl.RTKey = false;
myControl.UPKey = false;
myControl.DNKey = false;
myControl.XKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 913 MovieClip "raspberry_control" in Frame 31
onClipEvent (load) {
function ConChange() {
if ((JumpAttack == false) and (CloseAttack == false)) {
if (inClose == true) {
dRand = random(30);
LongBlock = false;
if (((enLong == true) or (enJumpKick == true)) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
if (LongBlock == false) {
if (dRand > agression) {
jumpRand = random(100);
if (jumpRand > 80) {
JumpDir = random(3) + 1;
CloseAttack = false;
moveOut = false;
moveIn = false;
JumpAttack = true;
kickTime = random(5) + 1;
JCnt = 0;
} else {
CloseAttack = true;
}
} else {
dRand = random(10);
if (dRand > 4) {
CloseAttack = false;
idle = true;
idleTime = (random(3) * speed) + 15;
} else {
hangTight == true;
}
}
} else {
block = true;
blockCnt = 0;
}
} else {
LongBlock = false;
if ((enLong == true) or (_root.FloorShake == true)) {
brand = random(20);
if (brand > defense) {
LongBlock = true;
} else {
LongBlock = false;
}
}
drand = random(30);
if (LongBlock == true) {
block = true;
blockCnt = 0;
} else if (drand > (agression * 1.5)) {
nrand = random(20);
if (nrand > (agression * 2)) {
lrand = random(30);
if (lrand > 20) {
myControl.checkLog("special");
} else {
CloseAttack = true;
FireLong = true;
}
} else {
moveIn = true;
moveOut = false;
getOnScreen = false;
moveTight = false;
}
} else {
idle = true;
idleTime = (random(5) * speed) + 15;
}
}
}
}
myControl = _root.enemy;
myEnemy = _root.player;
agression = _root.enAgression;
defense = _root.enDefense;
speed = _root.enSpeed;
handRange = 115;
defCnt = 0;
cnt = 0;
backOutNext = false;
inClose = false;
onScreen = true;
enLong = false;
CloseAttack = false;
JumpAttack = false;
block = false;
blockCnt = 0;
getOnScreen = false;
moveIn = false;
moveOut = false;
moveTight = false;
Dcnt = 0;
idle = true;
idleTime = 45;
idleCnt = 0;
JCnt = 0;
JumpDir = 0;
FireLong = false;
}
onClipEvent (enterFrame) {
if (_root.controls == true) {
EnX = myEnemy._x;
EnY = myEnemy._y;
myX = myControl._x;
myY = myControl._y;
EnBulletX = eval (myEnemy + "Bullet")._x;
EnBulletY = eval (myEnemy + "Bullet")._y;
myControl.LTKey = false;
myControl.RTKey = false;
EnAction = myEnemy.action;
myAction = myControl.action;
direct = myControl.direct;
if (((EnX > (myX - handRange)) and (EnX < (myX + handRange))) or ((_root.playerBullet._x > (myX - handRange)) and (_root.playerBullet._x < (myX + handRange)))) {
if (inClose == false) {
inClose = true;
ConChange();
}
} else if (inClose == true) {
inClose = false;
ConChange();
}
if ((myX > _root.Left._x) and (myX < _root.Right._x)) {
if (onScreen == false) {
ConChange();
onScreen = true;
}
} else if (onScreen == true) {
ConChange();
onScreen = false;
}
if (EnAction == "long") {
if (EnLong == false) {
ConChange();
EnLong = true;
}
} else if (EnLong == true) {
ConChange();
EnLong = false;
}
if (EnAction == "jump2") {
enJumpKick = true;
} else {
enJumpKick = false;
}
if (getOnScreen == true) {
if (onScreen == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
}
}
if (CloseAttack == true) {
if (myAction == "idle") {
firstAttack = true;
CloseAttack = false;
ConChange();
}
if (firstAttack != false) {
dRand = random(30);
firstAttack = false;
if (FireLong == true) {
myControl.checkLog("long");
FireLong = false;
} else if (dRand > 28) {
myControl.checkLog("special");
} else if (dRand > 25) {
myControl.checkLog("long");
} else if (dRand > 22) {
myControl.ZKey = true;
} else if (dRand < 13) {
myControl.XKey = true;
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
} else {
myControl.XKey = false;
myControl.ZKey = false;
}
}
if (JumpAttack == true) {
JCnt = JCnt + 1;
if (JCnt < kickTime) {
myControl.UPKey = true;
if (direct == 1) {
myControl.RTKey = true;
myControl.LTKey = false;
} else {
myControl.LTKey = true;
myControl.RTKey = false;
}
} else if (JCnt > kickTime) {
myControl.ZKey = true;
if (myControl.inJump == false) {
JumpAttack = false;
myControl.RTKey = false;
myControl.LTKey = false;
myControl.UPKey = false;
Jcnt = 0;
ConChange();
}
}
}
if (moveIn == true) {
if (inClose == false) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveIn = false;
ConChange();
}
}
if (moveTight == true) {
if ((myX < (enX - (myEnemy._width * 0.7))) and (myX > (enX + (myEnemy._width * 0.7)))) {
if (direct == 1) {
myControl.RTKey = true;
} else {
myControl.LTKey = true;
}
} else {
moveTight = false;
ConChange();
}
}
if (moveOut == true) {
if ((onScreen == true) and ((myX > _root.Left._x) and (myX < _root.Right._x))) {
if (direct == 1) {
myControl.LTKey = true;
} else {
myControl.RTKey = true;
}
} else {
moveOut = false;
ConChange();
}
}
if (idle == true) {
idleCnt = idleCnt + 1;
if (idleCnt > idleTime) {
idle = false;
ConChange();
}
}
if (FloorShake == false) {
if (_root.FloorShake == true) {
FloorShake = true;
ConChange();
}
} else if (_root.FloorShake == false) {
FloorShake = false;
ConChange();
}
if (myControl.hurt == true) {
defCnt = defCnt + 1;
if (defCnt > defense) {
backOutNext = false;
backoutRand = random(100);
if (backoutRand < agression) {
backOutNext = true;
}
block = true;
blockCnt = 0;
}
ConChange();
} else {
defCnt = 0;
}
if (block == true) {
blockCnt = blockCnt + 1;
if (blockCnt > agression) {
myControl.UPKey = false;
myControl.LTKey = false;
myControl.RTKey = false;
block = false;
if (backOutNext == true) {
moveOut = true;
backOutNext = false;
blockCnt = 0;
} else {
backOutNext = false;
blockCnt = 0;
ConChange();
}
} else {
myControl.LTKey = true;
myControl.RTKey = true;
}
}
if ((myAction == "idle") and (idle == false)) {
ConChange();
}
} else {
myControl.LTKey = false;
myControl.RTKey = false;
myControl.UPKey = false;
myControl.DNKey = false;
myControl.XKey = false;
myControl.ZKey = false;
}
}
Instance of Symbol 927 MovieClip "apple" in Frame 31
onClipEvent (load) {
function logKey(Lkey, Ltime) {
thisLog = [];
thisLog[0] = Lkey;
thisLog[1] = Ltime;
_root.logList.push(thisLog);
}
function checkLog() {
var _local1 = _root;
LL = _local1.logList.length;
Last3 = (_local1.logList[LL - 3][0] + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
Last4 = ((_local1.logList[LL - 4][0] + _local1.logList[LL - 3][0]) + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
if (direct == -1) {
if (last3 == "DLK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "RLP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
} else {
if (last3 == "DRK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
endLong = false;
longRange = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "LRP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if ((hitDown != true) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
hClip = _root.hClip;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
action = "hitS";
} else {
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
active = true;
winner = false;
myEnemy = _root.enemy;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
winCnt = 0;
direct = 1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -40;
Jcnt = 25;
speed = 10;
eLcnt = 0;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
special = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
_root.controls = false;
winCnt = winCnt + 1;
_root.BG.panTo(_name);
if (winCnt == 40) {
_root.sounds.gotoAndPlay("win");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
rmove = true;
} else {
if (rmove == true) {
logKey("R", _root.thisTime);
}
if (inJump == false) {
rmove = false;
}
}
if (LTKey == true) {
lmove = true;
} else {
if (lmove == true) {
logKey("L", _root.thisTime);
}
if (inJump == false) {
lmove = false;
}
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(10);
if (Prand > 5) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
} else if (winner == true) {
action = "win";
active = false;
}
if (UPKey == true) {
if (upmove == false) {
logKey("U", _root.thisTime);
}
upmove = true;
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
} else {
upmove = false;
}
if (ZKey == true) {
if (kickmove == false) {
logKey("K", _root.thisTime);
}
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
if (endLong == true) {
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
Ymove = -20;
} else if (eLcnt == 10) {
longRange = false;
inAction = false;
endLong = false;
punch = false;
kick = false;
eLcnt = 0;
} else {
Xmove = -10 * direct;
}
} else {
Xmove = 40 * direct;
}
action = "long";
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
if (block == false) {
action = "idle";
}
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
if (_root.controls == true) {
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (direct == 1) {
if ((nextX > LLim) and (nextX <= RLim)) {
if (nextX < Left) {
Xmove = 0;
_root.bgMove = nextX - Left;
_x = Left;
} else if (nextX > Center) {
if (Right >= (RLim - Xmove)) {
_root.bgMove = RLim - Right;
} else if (RLim != Right) {
_root.bgMove = nextX - Center;
if (_root.bgMove > 1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Left <= (LLim - Xmove)) {
_x = LLim;
_root.bgMove = LLim - Left;
}
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
rmove = false;
lmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if ((nextX < RLim) and (nextX >= LLim)) {
if (nextX > Right) {
Xmove = 0;
_root.bgMove = nextX - Right;
_x = Right;
} else if (nextX < Center) {
if (Left <= (LLim - Xmove)) {
_root.bgMove = LLim - Left;
} else if (LLim != Left) {
_root.bgMove = nextX - Center;
if (_root.bgMove < -1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Right >= (RLim - Xmove)) {
_x = RLim;
_root.bgMove = RLim - Right;
}
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if (_x < _root.LLim._x) {
_x = _root.LLim._x;
Xmove = 0;
} else if (_x > _root.RLim._x) {
_x = _root.RLim._x;
Xmove = 0;
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 953 MovieClip "cherry" in Frame 31
onClipEvent (load) {
function logKey(Lkey, Ltime) {
thisLog = [];
thisLog[0] = Lkey;
thisLog[1] = Ltime;
_root.logList.push(thisLog);
}
function checkLog() {
var _local1 = _root;
LL = _local1.logList.length;
Last3 = (_local1.logList[LL - 3][0] + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
Last4 = ((_local1.logList[LL - 4][0] + _local1.logList[LL - 3][0]) + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
if (direct == -1) {
if (last3 == "DLK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "RLP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
} else {
if (last3 == "DRK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
endLong = false;
longRange = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "LRP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if ((hitDown != true) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
hClip = _root.hClip;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
action = "hitS";
} else {
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
active = true;
winner = false;
myEnemy = _root.enemy;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
winCnt = 0;
direct = 1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -42;
Jcnt = 25;
speed = 15;
eLcnt = 0;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
endLong = false;
endLongFF = false;
special = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
_root.controls = false;
winCnt = winCnt + 1;
_root.BG.panTo(_name);
if (winCnt == 40) {
_root.sounds.gotoAndPlay("win");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
rmove = true;
} else {
if (rmove == true) {
logKey("R", _root.thisTime);
}
if (inJump == false) {
rmove = false;
}
}
if (LTKey == true) {
lmove = true;
} else {
if (lmove == true) {
logKey("L", _root.thisTime);
}
if (inJump == false) {
lmove = false;
}
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(10);
if (Prand > 5) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
} else if (winner == true) {
action = "win";
active = false;
}
if (UPKey == true) {
if (upmove == false) {
logKey("U", _root.thisTime);
}
upmove = true;
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
} else {
upmove = false;
}
if (ZKey == true) {
if (kickmove == false) {
logKey("K", _root.thisTime);
}
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
action = "long";
if (endLong == true) {
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
if (endLongFF == true) {
Xmove = -10 * direct;
Ymove = -30;
}
} else if (eLcnt > 10) {
action = "longOut";
} else if (endLongFF == true) {
Xmove = -10 * direct;
} else {
Xmove = 40 * direct;
}
} else {
Xmove = 40 * direct;
}
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
if (block == false) {
action = "idle";
}
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
if (endLong == false) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
}
if (longRange == true) {
if (endLong == false) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 25, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
if (myEnemy.block == true) {
endLongFF = true;
} else {
endLongFF = false;
}
}
endLong = true;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
if (longRange == false) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
if (_root.controls == true) {
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (direct == 1) {
if ((nextX > LLim) and (nextX <= RLim)) {
if (nextX < Left) {
_x = Left;
Xmove = 0;
_root.bgMove = nextX - Left;
} else if (nextX > Center) {
if (Right >= (RLim - Xmove)) {
_root.bgMove = RLim - Right;
} else if (RLim != Right) {
_root.bgMove = nextX - Center;
if (_root.bgMove > 1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Left <= (LLim - Xmove)) {
_x = LLim;
_root.bgMove = LLim - Left;
}
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
rmove = false;
lmove = true;
} else if (longRange == true) {
endLongFF = true;
endLong = true;
}
Xmove = 0;
}
} else if ((nextX < RLim) and (nextX >= LLim)) {
if (nextX > Right) {
_x = Right;
Xmove = 0;
_root.bgMove = nextX - Right;
} else if (nextX < Center) {
if (Left <= (LLim - Xmove)) {
_root.bgMove = LLim - Left;
} else if (LLim != Left) {
_root.bgMove = nextX - Center;
if (_root.bgMove < -1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Right >= (RLim - Xmove)) {
_x = RLim;
_root.bgMove = RLim - Right;
}
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else if (longRange == true) {
endLong = true;
endLongFF = true;
}
Xmove = 0;
}
} else if (_x < _root.LLim._x) {
_x = _root.LLim._x;
Xmove = 0;
} else if (_x > _root.RLim._x) {
_x = _root.RLim._x;
Xmove = 0;
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 959 MovieClip "cherry_buddy" in Frame 31
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
_y = 2000;
myBuddy = _root.player;
orgXScale = _xscale;
}
onClipEvent (enterFrame) {
if (active == true) {
direct = myBuddy.direct;
_xscale = (orgXScale * direct);
if (myBuddy.action == "long") {
_visible = true;
gotoAndStop (2);
_x = myBuddy._x;
_y = myBuddy._y;
} else {
gotoAndStop (1);
_visible = false;
_y = 2000;
}
}
}
Instance of Symbol 959 MovieClip "EnCherry_buddy" in Frame 31
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
_y = 2000;
myBuddy = _root.enemy;
orgXScale = _xscale;
}
onClipEvent (enterFrame) {
if (active == true) {
direct = myBuddy.direct;
_xscale = (orgXScale * direct);
if (myBuddy.action == "long") {
_visible = true;
gotoAndStop (2);
_x = myBuddy._x;
_y = myBuddy._y;
} else {
gotoAndStop (1);
_visible = false;
_y = 2000;
}
}
}
Instance of Symbol 974 MovieClip "tangerine" in Frame 31
onClipEvent (load) {
function logKey(Lkey, Ltime) {
thisLog = [];
thisLog[0] = Lkey;
thisLog[1] = Ltime;
_root.logList.push(thisLog);
}
function checkLog() {
var _local1 = _root;
LL = _local1.logList.length;
Last3 = (_local1.logList[LL - 3][0] + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
Last4 = ((_local1.logList[LL - 4][0] + _local1.logList[LL - 3][0]) + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
if (direct == -1) {
if (last3 == "DLK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "RLP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
} else {
if (last3 == "DRK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
endLong = false;
longRange = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "LRP") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if ((hitDown != true) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
hClip = _root.hClip;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
action = "hitS";
} else {
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
active = true;
winner = false;
myEnemy = _root.enemy;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
winCnt = 0;
direct = 1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -45;
Jcnt = 25;
speed = 20;
eLcnt = 0;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
special = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
_root.controls = false;
winCnt = winCnt + 1;
_root.BG.panTo(_name);
if (winCnt == 40) {
_root.sounds.gotoAndPlay("win");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
rmove = true;
} else {
if (rmove == true) {
logKey("R", _root.thisTime);
}
if (inJump == false) {
rmove = false;
}
}
if (LTKey == true) {
lmove = true;
} else {
if (lmove == true) {
logKey("L", _root.thisTime);
}
if (inJump == false) {
lmove = false;
}
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(10);
if (Prand > 5) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
} else if (winner == true) {
action = "win";
active = false;
}
if (UPKey == true) {
if (upmove == false) {
logKey("U", _root.thisTime);
}
upmove = true;
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
} else {
upmove = false;
}
if (ZKey == true) {
if (kickmove == false) {
logKey("K", _root.thisTime);
}
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
Xmove = speed * direct;
} else if (longRange == true) {
action = "long";
if (endLong == true) {
action = "longOut";
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
Ymove = -20;
} else if (eLcnt == 10) {
longRange = false;
inAction = false;
endLong = false;
punch = false;
kick = false;
eLcnt = 0;
} else {
Xmove = -10 * direct;
}
} else {
Xmove = 40 * direct;
}
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
if (block == false) {
action = "idle";
}
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
if (_root.controls == true) {
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (direct == 1) {
if ((nextX > LLim) and (nextX <= RLim)) {
if (nextX < Left) {
Xmove = 0;
_root.bgMove = nextX - Left;
_x = Left;
} else if (nextX > Center) {
if (Right >= (RLim - Xmove)) {
_root.bgMove = RLim - Right;
} else if (RLim != Right) {
_root.bgMove = nextX - Center;
if (_root.bgMove > 1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Left <= (LLim - Xmove)) {
_x = LLim;
_root.bgMove = LLim - Left;
}
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
rmove = false;
lmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if ((nextX < RLim) and (nextX >= LLim)) {
if (nextX > Right) {
Xmove = 0;
_root.bgMove = nextX - Right;
_x = Right;
} else if (nextX < Center) {
if (Left <= (LLim - Xmove)) {
_root.bgMove = LLim - Left;
} else if (LLim != Left) {
_root.bgMove = nextX - Center;
if (_root.bgMove < -1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Right >= (RLim - Xmove)) {
_x = RLim;
_root.bgMove = RLim - Right;
}
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if (_x < _root.LLim._x) {
_x = _root.LLim._x;
Xmove = 0;
} else if (_x > _root.RLim._x) {
_x = _root.RLim._x;
Xmove = 0;
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 987 MovieClip "watermelon" in Frame 31
onClipEvent (load) {
function logKey(Lkey, Ltime) {
thisLog = [];
thisLog[0] = Lkey;
thisLog[1] = Ltime;
_root.logList.push(thisLog);
}
function checkLog() {
var _local1 = _root;
LL = _local1.logList.length;
Last3 = (_local1.logList[LL - 3][0] + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
Last4 = ((_local1.logList[LL - 4][0] + _local1.logList[LL - 3][0]) + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
if (direct == -1) {
if (last3 == "DLK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "RLP") {
if (((special == false) and (longRange == false)) and (_local1.playerBullet._visible != true)) {
punch = false;
longRange = true;
lOcnt = 0;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
} else {
if (last3 == "DRK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
endLong = false;
longRange = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "LRP") {
if (((special == false) and (longRange == false)) and (_local1.playerBullet._visible != true)) {
punch = false;
longRange = true;
lOcnt = 0;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if ((hitDown != true) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
hClip = _root.hClip;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
action = "hitS";
} else {
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
lOcnt = 0;
active = true;
winner = false;
myEnemy = _root.enemy;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
winCnt = 0;
direct = 1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -35;
Jcnt = 25;
speed = 15;
eLcnt = 0;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
special = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
_root.controls = false;
winCnt = winCnt + 1;
_root.BG.panTo(_name);
if (winCnt == 40) {
_root.sounds.gotoAndPlay("win");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
rmove = true;
} else {
if (rmove == true) {
logKey("R", _root.thisTime);
}
if (inJump == false) {
rmove = false;
}
}
if (LTKey == true) {
lmove = true;
} else {
if (lmove == true) {
logKey("L", _root.thisTime);
}
if (inJump == false) {
lmove = false;
}
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(10);
if (Prand > 5) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
} else if (winner == true) {
action = "win";
active = false;
}
if (UPKey == true) {
if (upmove == false) {
logKey("U", _root.thisTime);
}
upmove = true;
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
} else {
upmove = false;
}
if (ZKey == true) {
if (kickmove == false) {
logKey("K", _root.thisTime);
}
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
Xmove = direct * (speed * 0.5);
} else if (longRange == true) {
lOcnt = lOcnt + 1;
if (lOcnt == 4) {
_root.water_bullet.fire(_x, _y + 30, direct, _name, 40);
}
action = "long";
} else if (kick == true) {
action = "kick";
Xmove = direct * (speed * 0.5);
} else if (punch == true) {
action = Paction;
Xmove = direct * (speed * 0.5);
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
if (block == false) {
action = "idle";
}
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
if (_root.controls == true) {
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (direct == 1) {
if ((nextX > LLim) and (nextX <= RLim)) {
if (nextX < Left) {
Xmove = 0;
_root.bgMove = nextX - Left;
_x = Left;
} else if (nextX > Center) {
if (Right >= (RLim - Xmove)) {
_root.bgMove = RLim - Right;
} else if (RLim != Right) {
_root.bgMove = nextX - Center;
if (_root.bgMove > 1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Left <= (LLim - Xmove)) {
_x = LLim;
_root.bgMove = LLim - Left;
}
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
rmove = false;
lmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if ((nextX < RLim) and (nextX >= LLim)) {
if (nextX > Right) {
Xmove = 0;
_root.bgMove = nextX - Right;
_x = Right;
} else if (nextX < Center) {
if (Left <= (LLim - Xmove)) {
_root.bgMove = LLim - Left;
} else if (LLim != Left) {
_root.bgMove = nextX - Center;
if (_root.bgMove < -1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Right >= (RLim - Xmove)) {
_x = RLim;
_root.bgMove = RLim - Right;
}
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if (_x < _root.LLim._x) {
_x = _root.LLim._x;
Xmove = 0;
} else if (_x > _root.RLim._x) {
_x = _root.RLim._x;
Xmove = 0;
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 1006 MovieClip "raspberry" in Frame 31
onClipEvent (load) {
function logKey(Lkey, Ltime) {
thisLog = [];
thisLog[0] = Lkey;
thisLog[1] = Ltime;
_root.logList.push(thisLog);
}
function checkLog() {
var _local1 = _root;
LL = _local1.logList.length;
Last3 = (_local1.logList[LL - 3][0] + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
Last4 = ((_local1.logList[LL - 4][0] + _local1.logList[LL - 3][0]) + _local1.logList[LL - 2][0]) + _local1.logList[LL - 1][0];
if (direct == -1) {
if (last3 == "DLK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "RLP") {
if (((special == false) and (longRange == false)) and (_local1.playerBullet._visible != true)) {
punch = false;
longRange = true;
lOcnt = 0;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
} else {
if (last3 == "DRK") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
endLong = false;
longRange = false;
inAction = true;
_local1.logList = [];
}
}
if (Last3 == "LRP") {
if (((special == false) and (longRange == false)) and (_local1.playerBullet._visible != true)) {
punch = false;
longRange = true;
lOcnt = 0;
endLong = false;
inAction = true;
_local1.logList = [];
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if ((hitDown != true) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
hClip = _root.hClip;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
action = "hitS";
} else {
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
lOcnt = 0;
active = true;
winner = false;
myEnemy = _root.enemy;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
winCnt = 0;
direct = 1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -34;
Jcnt = 25;
speed = 9;
eLcnt = 0;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
special = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
_root.controls = false;
winCnt = winCnt + 1;
_root.BG.panTo(_name);
if (winCnt == 40) {
_root.sounds.gotoAndPlay("win");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
rmove = true;
} else {
if (rmove == true) {
logKey("R", _root.thisTime);
}
if (inJump == false) {
rmove = false;
}
}
if (LTKey == true) {
lmove = true;
} else {
if (lmove == true) {
logKey("L", _root.thisTime);
}
if (inJump == false) {
lmove = false;
}
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(10);
if (Prand > 5) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
} else if (winner == true) {
action = "win";
active = false;
}
if (UPKey == true) {
if (upmove == false) {
logKey("U", _root.thisTime);
}
upmove = true;
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
} else {
upmove = false;
}
if (ZKey == true) {
if (kickmove == false) {
logKey("K", _root.thisTime);
}
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
lOcnt = lOcnt + 1;
if (lOcnt == 8) {
_root.rasp_bullet.fire(_x, _y, direct, _name, 40);
}
action = "long";
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
if (block == false) {
action = "idle";
}
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
if (_root.controls == true) {
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (direct == 1) {
if ((nextX > LLim) and (nextX <= RLim)) {
if (nextX < Left) {
Xmove = 0;
_root.bgMove = nextX - Left;
_x = Left;
} else if (nextX > Center) {
if (Right >= (RLim - Xmove)) {
_root.bgMove = RLim - Right;
} else if (RLim != Right) {
_root.bgMove = nextX - Center;
if (_root.bgMove > 1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Left <= (LLim - Xmove)) {
_x = LLim;
_root.bgMove = LLim - Left;
}
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
rmove = false;
lmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if ((nextX < RLim) and (nextX >= LLim)) {
if (nextX > Right) {
Xmove = 0;
_root.bgMove = nextX - Right;
_x = Right;
} else if (nextX < Center) {
if (Left <= (LLim - Xmove)) {
_root.bgMove = LLim - Left;
} else if (LLim != Left) {
_root.bgMove = nextX - Center;
if (_root.bgMove < -1) {
_root.bgMove = Math.ceil((nextX - Center) * (0.1 + (Math.abs(Xmove) * 0.015)));
Xmove = Xmove + (_root.bgMove * -1);
} else {
_x = Center;
_root.bgMove = nextX - Center;
Xmove = 0;
}
}
}
} else {
if (Right >= (RLim - Xmove)) {
_x = RLim;
_root.bgMove = RLim - Right;
}
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else if (longRange == true) {
endLong = true;
}
Xmove = 0;
}
} else if (_x < _root.LLim._x) {
_x = _root.LLim._x;
Xmove = 0;
} else if (_x > _root.RLim._x) {
_x = _root.RLim._x;
Xmove = 0;
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 927 MovieClip "EnApple" in Frame 31
onClipEvent (load) {
function checkLog(mString) {
var _local1 = mString;
if ((_y == floor) and (inAction == false)) {
if (direct == -1) {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
} else {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if (((hitDown != true) and (dead != true)) and (getUp != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
hClip = _root.hClip;
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
_root.pointsAwarded = _root.pointsAwarded + 50;
action = "hitS";
} else {
_root.pointsAwarded = _root.pointsAwarded + hitPower;
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
winCnt = 0;
active = true;
winner = false;
myEnemy = _root.player;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
direct = -1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -40;
Jcnt = 25;
speed = 10;
eLcnt = 0;
special = false;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
if (dead == false) {
winCnt = winCnt + 1;
_root.BG.panTo(_name);
_root.controls = false;
if (winCnt == 40) {
_root.sounds.gotoAndPlay("lose");
} else if (winCnt > 45) {
action = "win";
active = false;
active = false;
Xmove = 0;
} else {
action = "idle";
}
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
if (rmove == false) {
logKey("R", _root.thisTime);
}
rmove = true;
} else if (inJump == false) {
rmove = false;
}
if (LTKey == true) {
if (lmove == false) {
logKey("L", _root.thisTime);
}
lmove = true;
} else {
lmove = false;
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(4);
if (Prand > 2) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
}
if (UPKey == true) {
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
}
if (ZKey == true) {
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
if (endLong == true) {
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
Ymove = -20;
} else if (eLcnt == 10) {
longRange = false;
inAction = false;
endLong = false;
punch = false;
kick = false;
eLcnt = 0;
} else {
Xmove = -10 * direct;
}
} else {
Xmove = 40 * direct;
}
action = "long";
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (nextX >= RLim) {
_x = RLim;
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
lmove = true;
rmove = false;
} else {
Xmove = 0;
if ((longRange == true) and (direct == 1)) {
endLong = true;
}
}
} else if (nextX <= LLim) {
_x = LLim;
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else {
Xmove = 0;
if ((longRange == true) and (direct == -1)) {
endLong = true;
}
}
}
if (direct == 1) {
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 953 MovieClip "EnCherry" in Frame 31
onClipEvent (load) {
function checkLog(mString) {
var _local1 = mString;
if ((_y == floor) and (inAction == false)) {
if (direct == -1) {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
} else {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if (((hitDown != true) and (dead != true)) and (getUp != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
hClip = _root.hClip;
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
_root.pointsAwarded = _root.pointsAwarded + 50;
action = "hitS";
} else {
_root.pointsAwarded = _root.pointsAwarded + hitPower;
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
winCnt = 0;
active = true;
winner = false;
myEnemy = _root.player;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
direct = -1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -42;
Jcnt = 25;
speed = 15;
eLcnt = 0;
special = false;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
endLong = false;
endLongFF = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
if (dead == false) {
_root.BG.panTo(_name);
_root.controls = false;
winCnt = winCnt + 1;
if (winCnt == 40) {
_root.sounds.gotoAndPlay("lose");
} else if (winCnt > 45) {
action = "win";
} else {
action = "idle";
}
if (endLong == false) {
active = false;
}
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
if (rmove == false) {
logKey("R", _root.thisTime);
}
rmove = true;
} else if (inJump == false) {
rmove = false;
}
if (LTKey == true) {
if (lmove == false) {
logKey("L", _root.thisTime);
}
lmove = true;
} else {
lmove = false;
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(4);
if (Prand > 2) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
}
if (UPKey == true) {
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
}
if (ZKey == true) {
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
action = "long";
if (endLong == true) {
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
if (endLongFF == true) {
Xmove = -10 * direct;
Ymove = -30;
}
} else if (eLcnt > 10) {
action = "longOut";
} else if (endLongFF == true) {
Xmove = -10 * direct;
} else {
Xmove = 40 * direct;
}
} else {
Xmove = 40 * direct;
}
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
if (endLong == false) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
}
if (longRange == true) {
if (endLong == false) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 25, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
if (myEnemy.block == true) {
endLongFF = true;
} else {
endLongFF = false;
}
}
endLong = true;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
if (longRange == false) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (nextX >= RLim) {
_x = RLim;
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
lmove = true;
rmove = false;
} else {
Xmove = 0;
if ((longRange == true) and (direct == 1)) {
endLong = true;
endLongFF = true;
}
}
} else if (nextX <= LLim) {
_x = LLim;
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else {
Xmove = 0;
if ((longRange == true) and (direct == -1)) {
endLong = true;
endLongFF = true;
}
}
}
if (direct == 1) {
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 974 MovieClip "EnTangerine" in Frame 31
onClipEvent (load) {
function checkLog(mString) {
var _local1 = mString;
if ((_y == floor) and (inAction == false)) {
if (direct == -1) {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
} else {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if ((special == false) and (longRange == false)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if (((hitDown != true) and (dead != true)) and (getUp != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
hClip = _root.hClip;
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
_root.pointsAwarded = _root.pointsAwarded + 50;
action = "hitS";
} else {
_root.pointsAwarded = _root.pointsAwarded + hitPower;
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
winCnt = 0;
active = true;
winner = false;
myEnemy = _root.player;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
direct = -1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -45;
Jcnt = 25;
speed = 20;
eLcnt = 0;
special = false;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
if (dead == false) {
winCnt = winCnt + 1;
_root.BG.panTo(_name);
_root.controls = false;
if (winCnt == 40) {
_root.sounds.gotoAndPlay("lose");
} else if (winCnt > 45) {
action = "win";
active = false;
Xmove = 0;
} else {
action = "idle";
}
if (endLong == false) {
}
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
if (rmove == false) {
logKey("R", _root.thisTime);
}
rmove = true;
} else if (inJump == false) {
rmove = false;
}
if (LTKey == true) {
if (lmove == false) {
logKey("L", _root.thisTime);
}
lmove = true;
} else {
lmove = false;
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(4);
if (Prand > 2) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
}
if (UPKey == true) {
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
}
if (ZKey == true) {
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
Xmove = speed * direct;
} else if (longRange == true) {
action = "long";
if (endLong == true) {
action = "longOut";
eLcnt = eLcnt + 1;
if (eLcnt == 1) {
Ymove = -20;
} else if (eLcnt == 10) {
longRange = false;
inAction = false;
endLong = false;
punch = false;
kick = false;
eLcnt = 0;
} else {
Xmove = -10 * direct;
}
} else {
Xmove = 40 * direct;
}
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (nextX >= RLim) {
_x = RLim;
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
lmove = true;
rmove = false;
} else {
Xmove = 0;
if ((longRange == true) and (direct == 1)) {
endLong = true;
}
}
} else if (nextX <= LLim) {
_x = LLim;
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else {
Xmove = 0;
if ((longRange == true) and (direct == -1)) {
endLong = true;
}
}
}
if (direct == 1) {
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 987 MovieClip "EnWater" in Frame 31
onClipEvent (load) {
function checkLog(mString) {
var _local1 = mString;
if ((_y == floor) and (inAction == false)) {
if (direct == -1) {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if (((special == false) and (longRange == false)) and (_root.enemyBullet._visible != true)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
lOcnt = 0;
}
}
} else {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if (((special == false) and (longRange == false)) and (_root.enemyBullet._visible != true)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
lOcnt = 0;
}
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if (((hitDown != true) and (dead != true)) and (getUp != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
hClip = _root.hClip;
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
_root.pointsAwarded = _root.pointsAwarded + 50;
action = "hitS";
} else {
_root.pointsAwarded = _root.pointsAwarded + hitPower;
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
winCnt = 0;
active = true;
winner = false;
myEnemy = _root.player;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
direct = -1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -35;
Jcnt = 25;
speed = 15;
eLcnt = 0;
special = false;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
if (dead == false) {
winCnt = winCnt + 1;
_root.BG.panTo(_name);
_root.controls = false;
if (winCnt == 40) {
_root.sounds.gotoAndPlay("lose");
} else if (winCnt > 45) {
active = false;
Xmove = 0;
action = "win";
} else {
action = "idle";
}
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
if (rmove == false) {
logKey("R", _root.thisTime);
}
rmove = true;
} else if (inJump == false) {
rmove = false;
}
if (LTKey == true) {
if (lmove == false) {
logKey("L", _root.thisTime);
}
lmove = true;
} else {
lmove = false;
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(4);
if (Prand > 2) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
}
if (UPKey == true) {
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
}
if (ZKey == true) {
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
Xmove = direct * (speed * 0.5);
} else if (longRange == true) {
lOcnt = lOcnt + 1;
if (lOcnt == 4) {
_root.water_bullet.fire(_x, _y + 30, direct, _name, 40);
}
action = "long";
} else if (kick == true) {
action = "kick";
Xmove = direct * (speed * 0.5);
} else if (punch == true) {
action = Paction;
Xmove = direct * (speed * 0.5);
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (nextX >= RLim) {
_x = RLim;
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
lmove = true;
rmove = false;
} else {
Xmove = 0;
if ((longRange == true) and (direct == 1)) {
endLong = true;
}
}
} else if (nextX <= LLim) {
_x = LLim;
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else {
Xmove = 0;
if ((longRange == true) and (direct == -1)) {
endLong = true;
}
}
}
if (direct == 1) {
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 1006 MovieClip "EnRasp" in Frame 31
onClipEvent (load) {
function checkLog(mString) {
var _local1 = mString;
if ((_y == floor) and (inAction == false)) {
if (direct == -1) {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if (((special == false) and (longRange == false)) and (_root.enemyBullet._visible != true)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
lOcnt = 0;
}
}
} else {
if (_local1 == "special") {
if ((special == false) and (longRange == false)) {
punch = false;
special = true;
longRange = false;
endLong = false;
inAction = true;
Mdirect = direct;
}
}
if (_local1 == "long") {
if (((special == false) and (longRange == false)) and (_root.enemyBullet._visible != true)) {
punch = false;
longRange = true;
endLong = false;
inAction = true;
Mdirect = direct;
lOcnt = 0;
}
}
}
}
}
function hit(hX, hY, priority, power, Hnum) {
if (((hitDown != true) and (getUp != true)) and (dead != true)) {
Xoff = 0;
inAction = false;
punch = false;
kick = false;
special = false;
longRange = false;
endLong = false;
thurt = false;
_root.hClip = _root.hClip + 1;
if (_root.hClip > 9) {
_root.hClip = 1;
}
hClip = _root.hClip;
myEnemy.lastHitTime = _root.thisTime;
myEnemy.lastHit = Hnum;
_root.hitClip.duplicateMovieClip("hitClip" + hClip, 50 + hClip);
eval ("_root.hitClip" + hClip)._x = hX;
eval ("_root.hitClip" + hClip)._y = hY;
eval ("_root.hitClip" + hClip)._xscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip)._yscale = (power * 2) + 60;
eval ("_root.hitClip" + hClip).gotoAndPlay(2);
this.swapDepths(50);
myEnemy.swapDepths(60);
hurt = true;
if (myEnemy._x < _x) {
Hdirect = 1;
} else {
Hdirect = -1;
}
hitPower = power;
if (inJump == true) {
thurt = true;
hTime = 24;
Ymove = 5;
Xoff = 24 * Hdirect;
hitDown = true;
} else {
hTime = power;
Xoff = (power * 0.5) * Hdirect;
}
hCnt = 0;
if (block == false) {
if (hitPower < 20) {
_root.pointsAwarded = _root.pointsAwarded + 50;
action = "hitS";
} else {
_root.pointsAwarded = _root.pointsAwarded + hitPower;
hitDown = true;
action = "hitB";
}
life = life - hitPower;
} else {
hTime = power * 0.3;
life = life - (hitPower * 0.2);
}
if (life < 0) {
Xoff = 50 * Hdirect;
myEnemy.winner = true;
life = 0;
dead = true;
action = "hitB";
}
}
}
life = 150;
Xoff = 0;
winCnt = 0;
active = true;
winner = false;
myEnemy = _root.player;
leftZone = 100;
rightZone = 300;
rightEnd = 500;
action = "idle";
direct = -1;
floor = _y;
gravity = 3;
Ymove = 0;
inJump = false;
punch = false;
kick = false;
jumpPower = -34;
Jcnt = 25;
speed = 9;
eLcnt = 0;
special = false;
myW = lim._width * 0.5;
myH = lim._height * 0.5;
inAction = false;
lastHitTime = 0;
longRange = false;
hurt = false;
Hdirect = 1;
hClip = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (winner == true) {
if (dead == false) {
winCnt = winCnt + 1;
_root.BG.panTo(_name);
_root.controls = false;
if (winCnt == 40) {
_root.sounds.gotoAndPlay("lose");
} else if (winCnt > 45) {
active = false;
Xmove = 0;
action = "win";
} else {
action = "idle";
}
}
}
if (active == true) {
Jcnt = Jcnt + 1;
Xmove = 0;
if (hurt == false) {
action = "idle";
checkLog();
if (inAction == false) {
if (inJump == false) {
if (_x < myEnemy._x) {
if (direct == -1) {
_xscale = (_xscale * -1);
direct = 1;
}
} else if (direct == 1) {
_xscale = (_xscale * -1);
direct = -1;
}
if (DNKey == true) {
if (dmove == false) {
logKey("D", _root.thisTime);
}
dmove = true;
} else {
dmove = false;
}
if (RTKey == true) {
if (rmove == false) {
logKey("R", _root.thisTime);
}
rmove = true;
} else if (inJump == false) {
rmove = false;
}
if (LTKey == true) {
if (lmove == false) {
logKey("L", _root.thisTime);
}
lmove = true;
} else {
lmove = false;
}
if (XKey == true) {
if (punch == false) {
logKey("P", _root.thisTime);
if ((_root.thisTime - lastHitTime) < 12) {
if (lastHit == 2) {
Paction = "punch3";
} else if (lastHit == 1) {
Prand = random(4);
if (Prand > 2) {
Paction = "punch2";
} else {
Paction = "punch3";
}
} else {
Paction = "punch1";
}
} else {
Paction = "punch1";
}
punch = true;
inAction = true;
}
} else {
punch = false;
}
}
if (UPKey == true) {
if (((inJump == false) and (_y >= floor)) and (punch == false)) {
Jcnt = 0;
inJump = true;
Ymove = JumpPower;
punch = false;
kick = false;
}
}
if (ZKey == true) {
if (kick == false) {
if (kickmove == false) {
kick = true;
if (inJump == false) {
inAction = true;
}
}
}
kickmove = true;
} else {
kickmove = false;
if (inJump == false) {
kick = false;
}
}
if (rmove == true) {
if (direct == 1) {
action = "walkF";
} else {
action = "walkB";
}
Xmove = Xmove + speed;
Mdirect = 1;
}
if (lmove == true) {
if (direct == 1) {
action = "walkB";
} else {
action = "walkF";
}
Xmove = Xmove - speed;
Mdirect = -1;
}
if ((rmove == true) and (lmove == true)) {
if (inJump == false) {
block = true;
action = "block";
} else {
block = false;
}
} else {
block = false;
}
if (inJump == true) {
if (kick == false) {
if (Ymove < 0) {
action = "jump";
} else {
action = "jump3";
}
} else if (Jcnt > 3) {
Ymove = Ymove + 2;
action = "jump2";
}
if (myEnemy.lim.hitTest(_x, _y + (myH + Ymove), false)) {
Ymove = -30;
}
}
} else if (special == true) {
action = "special";
} else if (longRange == true) {
lOcnt = lOcnt + 1;
if (lOcnt == 8) {
_root.rasp_bullet.fire(_x, _y, direct, _name, 40);
}
action = "long";
} else if (kick == true) {
action = "kick";
} else if (punch == true) {
action = Paction;
}
} else {
hCnt = hCnt + 1;
Xmove = Xmove + Xoff;
Xoff = Xoff * 0.7;
if (hCnt > hTime) {
if (Ymove < 0) {
Ymove = 0;
}
if (dead != true) {
if (getUp != true) {
if (action == "hitB") {
getUp = true;
hurt = true;
action = "getUp";
} else {
hitDown = false;
getUp = false;
hurt = false;
}
} else {
action = "getUp";
}
}
}
}
}
Ymove = Ymove + gravity;
nextY = _y + Ymove;
Bdirect = Mdirect * -1;
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + Xmove), _y, false)) {
r = 0;
while (r < (Math.abs(Xmove) + 1)) {
if (myEnemy.lim.hitTest(_x + ((myW * Mdirect) + (Xmove - (r * Mdirect))), _y, false) == false) {
TnextX = _x + (Xmove - (r * Mdirect));
if ((TnextX >= _root.Right._x) or (TnextX <= _root.Left._x)) {
myEnemy._x = myEnemy._x + (Xmove - (r * Mdirect));
break;
}
_x = (_x + (Xmove - (r * Mdirect)));
break;
}
r++;
}
if (longRange == true) {
myEnemy.hit(_x + (myW * Mdirect), _y, 3, 20, 7);
endLong = true;
nextY = nextY - 30;
} else {
Xmove = 0;
}
} else if (myEnemy.lim.hitTest(_x + (myW * Bdirect), _y, false)) {
r = 0;
while (r < 40) {
if (myEnemy.lim.hitTest(_x + ((myW * Bdirect) - (r * Bdirect)), _y, false) == false) {
_x = (_x - (r * Bdirect));
Xmove = 0;
break;
}
r++;
}
}
nextX = _x + Xmove;
if (nextY >= floor) {
if (hurt == true) {
if (thurt == true) {
action = "hitB";
hCnt = 0;
hTime = 10;
thurt = false;
}
}
inJump = false;
nextY = floor;
}
_parent.bgMove = 0;
Left = _parent.Left._x;
Right = _parent.Right._x;
Center = _parent.Center._x;
RLim = _parent.RLim._x;
LLim = _parent.LLim._x;
if (nextX >= RLim) {
_x = RLim;
if (inJump == true) {
if (lmove == false) {
Xmove = Xmove * -1;
}
lmove = true;
rmove = false;
} else {
Xmove = 0;
if ((longRange == true) and (direct == 1)) {
endLong = true;
}
}
} else if (nextX <= LLim) {
_x = LLim;
if (inJump == true) {
if (rmove == false) {
Xmove = Xmove * -1;
}
lmove = false;
rmove = true;
} else {
Xmove = 0;
if ((longRange == true) and (direct == -1)) {
endLong = true;
}
}
}
if (direct == 1) {
}
_x = (_x + Xmove);
_y = nextY;
gotoAndStop(action);
}
Instance of Symbol 1008 MovieClip "water_bullet" in Frame 31
onClipEvent (load) {
function fire(xStart, yStart, direct, parent, speed) {
trace("fire");
this.duplicateMovieClip(parent + "Bullet", _root.BDepth);
eval (("_root." + parent) + "Bullet")._x = xStart;
eval (("_root." + parent) + "Bullet")._y = yStart;
eval (("_root." + parent) + "Bullet").direct = direct;
eval (("_root." + parent) + "Bullet").speed = speed;
eval (("_root." + parent) + "Bullet").active = true;
_root.BDepth = _root.BDepth + 1;
if (parent == "player") {
eval (("_root." + parent) + "Bullet").myEnemy = "enemy";
} else {
eval (("_root." + parent) + "Bullet").myEnemy = "player";
}
}
_visible = false;
trace("in" + _name);
fcnt = 0;
}
onClipEvent (enterFrame) {
myTarg = eval ("_root." + myEnemy);
if (active == true) {
fcnt = fcnt + 1;
if (fcnt > 3) {
_visible = true;
} else {
_visible = false;
}
_xscale = (100 * direct);
Xmove = speed * direct;
_x = (_x + Xmove);
if ((_x > (_root.Right._x + 100)) or (_x < (_root.Left._x - 100))) {
this.removeMovieClip();
}
if (this.hitTest(myTarg)) {
if (myTarg.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myTarg.hit(_x, _y, 1, 20, 0);
this.removeMovieClip();
}
}
}
Instance of Symbol 1011 MovieClip "rasp_bullet" in Frame 31
onClipEvent (load) {
function fire(xStart, yStart, direct, parent, speed) {
trace("fire");
this.duplicateMovieClip(parent + "Bullet", _root.BDepth);
eval (("_root." + parent) + "Bullet")._x = xStart;
eval (("_root." + parent) + "Bullet")._y = yStart;
eval (("_root." + parent) + "Bullet").direct = direct;
eval (("_root." + parent) + "Bullet").speed = speed;
eval (("_root." + parent) + "Bullet").active = true;
_root.BDepth = _root.BDepth + 1;
if (parent == "player") {
eval (("_root." + parent) + "Bullet").myEnemy = "enemy";
} else {
eval (("_root." + parent) + "Bullet").myEnemy = "player";
}
}
_visible = false;
trace("in" + _name);
fcnt = 0;
}
onClipEvent (enterFrame) {
myTarg = eval ("_root." + myEnemy);
if (active == true) {
fcnt = fcnt + 1;
if (fcnt > 2) {
_visible = true;
} else {
_visible = false;
}
_xscale = ((100 * direct) + (10 * direct));
_yscale = (_yscale + 10);
Xmove = speed * direct;
_x = (_x + Xmove);
if ((_x > (_root.Right._x + 100)) or (_x < (_root.Left._x - 100))) {
this.removeMovieClip();
}
if (this.hitTest(myTarg)) {
myTarg.hit(_x, _y, 1, 20, 0);
if (myTarg.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
this.removeMovieClip();
}
}
}
Instance of Symbol 1015 MovieClip "logger" in Frame 31
onClipEvent (load) {
_root.thisTime = 0;
_root.logList = [];
}
onClipEvent (enterFrame) {
_root.thisTime = _root.thisTime + 1;
i = 0;
while (i < _root.logList.length) {
if ((_root.thisTime - _root.logList[i][1]) > 18) {
_root.logList.splice(i, 1);
}
i++;
}
}
Frame 32
faceoffSc._visible = false;
enemy.removeMovieClip();
player.removeMovieClip();
cherry_buddy.swapDepths(40);
cherry_buddy.removeMovieClip();
cherry_control.swapDepths(40);
cherry_control.removeMovieClip();
EnCherry_buddy.swapDepths(40);
EnCherry_buddy.removeMovieClip();
apple_control.swapDepths(40);
apple_control.removeMovieClip();
raspberry_control.swapDepths(40);
raspberry_control.removeMovieClip();
tangerine_control.swapDepths(40);
tangerine_control.removeMovieClip();
watermelon_control.swapDepths(40);
watermelon_control.removeMovieClip();
enNum = random(5) + 1;
stop();
Frame 34
gotoAndPlay ("newRound");
Instance of Symbol 1125 MovieClip in Frame 35
onClipEvent (load) {
if (_root.scoreCheck == true) {
gotoAndStop (2);
_root.scoreCheck = false;
}
}
Frame 36
_root.setScores();
stop();
Symbol 9 MovieClip Frame 2
stop();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 2
onClipEvent (load) {
totalB = _root.getBytesTotal();
myW = _width;
mod = myW / totalB;
_width = 0;
}
onClipEvent (enterFrame) {
totalB = _root.getBytesTotal();
totalL = _root.getBytesLoaded();
_width = (totalL * mod);
if (totalB == totalL) {
_root.play();
}
}
Symbol 67 Button
on (release) {
_root.scoreCheck = true;
_root.gotoAndPlay("Scores");
}
Symbol 68 Button
on (release) {
_root.play();
}
Symbol 69 Button
on (release) {
gotoAndPlay ("instruct");
}
Symbol 72 MovieClip Frame 37
stop();
Symbol 72 MovieClip Frame 42
gotoAndPlay ("chSelect");
Symbol 72 MovieClip Frame 47
_parent.gotoAndStop("instruct");
Symbol 82 Button
on (release) {
play();
}
Symbol 83 MovieClip Frame 7
stop();
Symbol 83 MovieClip Frame 13
_root.play();
Symbol 111 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 111 MovieClip Frame 2
stop();
Instance of Symbol 101 MovieClip in Symbol 111 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 111 MovieClip Frame 3
stop();
Instance of Symbol 104 MovieClip in Symbol 111 MovieClip Frame 3
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 111 MovieClip Frame 4
stop();
Instance of Symbol 107 MovieClip in Symbol 111 MovieClip Frame 4
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 111 MovieClip Frame 5
stop();
Instance of Symbol 110 MovieClip in Symbol 111 MovieClip Frame 5
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 145 MovieClip Frame 16
stop();
Symbol 173 MovieClip Frame 21
stop();
Symbol 205 MovieClip Frame 21
stop();
Symbol 233 MovieClip Frame 24
stop();
Symbol 260 MovieClip Frame 8
stop();
Symbol 261 MovieClip Frame 2
if ((_parent.inTran == false) and (_parent.firstTime == false)) {
clip.gotoAndPlay(2);
} else {
clip.gotoAndStop(1);
}
stop();
Instance of Symbol 98 MovieClip in Symbol 261 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe - 1;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 261 MovieClip Frame 3
if (_parent.inTran == false) {
clip.gotoAndPlay(2);
} else {
clip.gotoAndStop(1);
}
stop();
Instance of Symbol 101 MovieClip in Symbol 261 MovieClip Frame 3
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe - 1;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 261 MovieClip Frame 4
if (_parent.inTran == false) {
clip.gotoAndPlay(2);
} else {
clip.gotoAndStop(1);
}
stop();
Instance of Symbol 104 MovieClip in Symbol 261 MovieClip Frame 4
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe - 1;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 261 MovieClip Frame 5
if (_parent.inTran == false) {
clip.gotoAndPlay(2);
} else {
clip.gotoAndStop(1);
}
stop();
Instance of Symbol 107 MovieClip in Symbol 261 MovieClip Frame 5
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe - 1;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 261 MovieClip Frame 6
if (_parent.inTran == false) {
clip.gotoAndPlay(2);
} else {
clip.gotoAndStop(1);
}
stop();
Instance of Symbol 110 MovieClip in Symbol 261 MovieClip Frame 6
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe - 1;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 282 MovieClip Frame 12
stop();
Symbol 304 MovieClip Frame 15
stop();
Symbol 314 MovieClip Frame 17
stop();
Symbol 324 MovieClip Frame 20
stop();
Symbol 336 MovieClip Frame 21
stop();
Symbol 338 MovieClip Frame 55
_parent.gotoAndStop("startFrame");
_parent.slot1.clip.gotoAndPlay(2);
Symbol 338 MovieClip Frame 57
_parent.stats.gotoAndPlay(2);
stop();
Symbol 338 MovieClip Frame 58
_parent.stats.gotoAndPlay(2);
stop();
Symbol 338 MovieClip Frame 59
_parent.stats.gotoAndPlay(2);
stop();
Symbol 338 MovieClip Frame 60
_parent.stats.gotoAndPlay(2);
stop();
Symbol 338 MovieClip Frame 61
_parent.stats.gotoAndPlay(2);
stop();
Symbol 338 MovieClip Frame 62
stop();
Symbol 339 Button
on (release) {
gotoAndPlay ("right");
}
Symbol 340 Button
on (release) {
gotoAndPlay ("left");
}
Symbol 341 Button
on (release) {
_root.myType = slot1Num;
_root.removeChar(_root.myType);
trace(_root.charList);
_root.enType = _root.charList[random(_root.charList.length)];
_root.removeChar(_root.enType);
trace(_root.charList);
gotoAndPlay ("enSelect");
inTran = true;
}
Instance of Symbol 98 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 384 MovieClip "stBar" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
targW = _width;
_width = 0;
cnt = 0;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 6) {
if (_width < targW) {
_width = (_width + ((targW - _width) * 0.2));
}
if (_width > targW) {
_width = (_width - ((_width - targW) * 0.2));
}
}
}
Instance of Symbol 384 MovieClip "stBar" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
targW = _width;
_width = 0;
cnt = 0;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 10) {
if (_width < targW) {
_width = (_width + ((targW - _width) * 0.2));
}
if (_width > targW) {
_width = (_width - ((_width - targW) * 0.2));
}
}
}
Instance of Symbol 384 MovieClip "stBar" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
targW = _width;
_width = 0;
cnt = 0;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 14) {
if (_width < targW) {
_width = (_width + ((targW - _width) * 0.2));
}
if (_width > targW) {
_width = (_width - ((_width - targW) * 0.2));
}
}
}
Instance of Symbol 101 MovieClip in Symbol 394 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 104 MovieClip in Symbol 394 MovieClip Frame 3
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 107 MovieClip in Symbol 394 MovieClip Frame 4
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 384 MovieClip "stBar" in Symbol 394 MovieClip Frame 4
onClipEvent (load) {
targW = _width;
_width = 0;
cnt = 0;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 8) {
if (_width < targW) {
_width = (_width + ((targW - _width) * 0.2));
}
if (_width > targW) {
_width = (_width - ((_width - targW) * 0.2));
}
}
}
Instance of Symbol 110 MovieClip in Symbol 394 MovieClip Frame 5
onClipEvent (load) {
if (_root._currentframe < 29) {
myNum = _parent._currentframe;
if (eval (("_root.char" + myNum) + "Done") == true) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 384 MovieClip "stBar" in Symbol 394 MovieClip Frame 5
onClipEvent (load) {
targW = _width;
_width = 0;
cnt = 0;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 6) {
if (_width < targW) {
_width = (_width + ((targW - _width) * 0.2));
}
if (_width > targW) {
_width = (_width - ((_width - targW) * 0.2));
}
}
}
Symbol 395 MovieClip Frame 1
stop();
Instance of Symbol 375 MovieClip in Symbol 395 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._parent.slot1Num);
}
Instance of Symbol 394 MovieClip in Symbol 395 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent._parent.slot1Num);
}
Symbol 395 MovieClip Frame 6
stop();
Symbol 400 MovieClip Frame 2
firstTime = true;
slot1Num = 1;
slot2Num = 2;
slot3Num = 3;
slot4Num = 4;
slot5Num = 5;
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 261 MovieClip "slot1" in Symbol 400 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent.slot1Num + 1);
}
Symbol 400 MovieClip Frame 6
stop();
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 6
onClipEvent (load) {
trace("slot2Num=" + _parent.slot3Num);
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 6
onClipEvent (load) {
trace("slot4Num=" + _parent.slot2Num);
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 338 MovieClip "chNames" in Symbol 400 MovieClip Frame 6
onClipEvent (load) {
if (_parent.firstTime == false) {
gotoAndStop(_parent.slot1Num + 56);
}
}
Symbol 400 MovieClip Frame 7
inTran = false;
stop();
Symbol 400 MovieClip Frame 8
firstTime = false;
inTran = true;
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 111 MovieClip "slot1" in Symbol 400 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent.slot1Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Symbol 400 MovieClip Frame 16
slot1Num = slot1Num - 1;
slot2Num = slot2Num - 1;
slot3Num = slot3Num - 1;
slot4Num = slot4Num - 1;
slot5Num = slot5Num - 1;
if (slot1Num < 1) {
slot1Num = 5;
}
if (slot2Num < 1) {
slot2Num = 5;
}
if (slot3Num < 1) {
slot3Num = 5;
}
if (slot4Num < 1) {
slot4Num = 5;
}
if (slot5Num < 1) {
slot5Num = 5;
}
gotoAndStop ("startFrame");
Symbol 400 MovieClip Frame 18
firstTime = false;
inTran = true;
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 18
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 22
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Symbol 400 MovieClip Frame 26
slot1Num = slot1Num + 1;
slot2Num = slot2Num + 1;
slot3Num = slot3Num + 1;
slot4Num = slot4Num + 1;
slot5Num = slot5Num + 1;
if (slot1Num > 5) {
slot1Num = 1;
}
if (slot2Num > 5) {
slot2Num = 1;
}
if (slot3Num > 5) {
slot3Num = 1;
}
if (slot4Num > 5) {
slot4Num = 1;
}
if (slot5Num > 5) {
slot5Num = 1;
}
gotoAndStop ("startFrame");
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 28
onClipEvent (load) {
trace("slot2Num=" + _parent.slot3Num);
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 28
onClipEvent (load) {
trace("slot4Num=" + _parent.slot2Num);
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 261 MovieClip "slot1" in Symbol 400 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(_parent.slot1Num + 1);
}
Instance of Symbol 261 MovieClip "slot1" in Symbol 400 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(_parent.slot1Num + 1);
}
Symbol 400 MovieClip Frame 38
endRounds = false;
Set(("_root.char" + _root.myType) + "Done", true);
slot1Num = 1;
slot2Num = 2;
slot3Num = 3;
slot4Num = 4;
slot5Num = 5;
round = 0;
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 39
onClipEvent (load) {
trace("slot2Num=" + _parent.slot3Num);
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 39
onClipEvent (load) {
trace("slot4Num=" + _parent.slot2Num);
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 39
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 39
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 261 MovieClip "slot1" in Symbol 400 MovieClip Frame 39
onClipEvent (load) {
gotoAndStop(_parent.slot1Num + 1);
}
Symbol 400 MovieClip Frame 51
if (startHold != true) {
if (endRounds == true) {
inTran = false;
_root.gotoAndStop("faceoff");
stop();
} else if (endRounds == false) {
inTran = true;
}
} else {
startHold = false;
stop();
}
Instance of Symbol 338 MovieClip "chNames" in Symbol 400 MovieClip Frame 51
onClipEvent (load) {
if (_parent.inTran == false) {
gotoAndStop(_parent.slot1Num + 56);
} else {
stop();
}
}
Symbol 400 MovieClip Frame 52
firstTime = false;
inTran = true;
Instance of Symbol 111 MovieClip "slot5" in Symbol 400 MovieClip Frame 52
onClipEvent (load) {
gotoAndStop(_parent.slot5Num);
}
Instance of Symbol 111 MovieClip "slot4" in Symbol 400 MovieClip Frame 52
onClipEvent (load) {
gotoAndStop(_parent.slot4Num);
}
Instance of Symbol 111 MovieClip "slot3" in Symbol 400 MovieClip Frame 52
onClipEvent (load) {
gotoAndStop(_parent.slot3Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 52
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Instance of Symbol 111 MovieClip "slot1" in Symbol 400 MovieClip Frame 52
onClipEvent (load) {
gotoAndStop(_parent.slot1Num);
}
Instance of Symbol 111 MovieClip "slot2" in Symbol 400 MovieClip Frame 55
onClipEvent (load) {
gotoAndStop(_parent.slot2Num);
}
Symbol 400 MovieClip Frame 57
round = round + 1;
trace("round=" + round);
slot1Num = slot1Num + 1;
slot2Num = slot2Num + 1;
slot3Num = slot3Num + 1;
slot4Num = slot4Num + 1;
slot5Num = slot5Num + 1;
if (slot1Num > 5) {
slot1Num = 1;
}
if (slot2Num > 5) {
slot2Num = 1;
}
if (slot3Num > 5) {
slot3Num = 1;
}
if (slot4Num > 5) {
slot4Num = 1;
}
if (slot5Num > 5) {
slot5Num = 1;
}
if (round > 5) {
if (slot1Num == _root.enType) {
endRounds = true;
inTran = false;
trace("endrounds");
}
}
gotoAndPlay ("startFrame2");
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
stop();
Symbol 430 MovieClip Frame 3
stop();
Symbol 430 MovieClip Frame 4
stop();
Symbol 430 MovieClip Frame 5
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 3
stop();
Symbol 455 MovieClip Frame 4
stop();
Symbol 455 MovieClip Frame 5
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
stop();
Symbol 468 MovieClip Frame 3
stop();
Symbol 468 MovieClip Frame 4
stop();
Symbol 468 MovieClip Frame 5
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
stop();
Symbol 471 MovieClip Frame 5
stop();
Instance of Symbol 430 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 455 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.enType);
}
Symbol 479 MovieClip Frame 1
play();
Symbol 479 MovieClip Frame 17
stop();
Symbol 481 MovieClip Frame 61
_root.fgFire = false;
_parent.gotoAndStop("skittles");
stop();
Symbol 487 MovieClip Frame 28
_root.fgFire = false;
_parent.gotoAndStop("skittles");
stop();
Symbol 494 MovieClip Frame 31
_parent.gotoAndStop("skittles");
Symbol 501 MovieClip Frame 32
_parent.gotoAndStop("skittles");
Symbol 509 MovieClip Frame 4
stop();
Instance of Symbol 514 MovieClip "c1" in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
myEnemy.hit(point.x, point.y, priority, power, hitNum);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 515 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
myEnemy.hit(point.x, point.y, priority, power, hitNum);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip "c3" in Symbol 515 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c5" in Symbol 515 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip "c4" in Symbol 515 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c7" in Symbol 515 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip "c6" in Symbol 515 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 524 MovieClip Frame 15
stop();
Symbol 526 MovieClip Frame 12
_parent.getUp = false;
Instance of Symbol 514 MovieClip in Symbol 528 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch1");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 528 MovieClip Frame 6
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 529 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 529 MovieClip Frame 4
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 533 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 6;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 533 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 6;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c3" in Symbol 533 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 6;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch6");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 533 MovieClip Frame 7
_parent.inAction = false;
Instance of Symbol 505 MovieClip "lim" in Symbol 534 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 534 MovieClip Frame 78
stop();
Instance of Symbol 514 MovieClip "c1" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
myEnemy.hit(point.x, point.y, priority, power, hitNum);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
myEnemy.hit(point.x, point.y, priority, power, hitNum);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Symbol 587 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 16
stop();
Symbol 603 MovieClip Frame 9
_parent.getUp = false;
stop();
Instance of Symbol 514 MovieClip in Symbol 623 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 623 MovieClip Frame 4
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 627 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 627 MovieClip Frame 4
_parent.inAction = false;
Instance of Symbol 514 MovieClip "c1" in Symbol 630 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(point.x, point.y, true)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 630 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(point.x, point.y, true)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c3" in Symbol 630 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(point.x, point.y, true)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c4" in Symbol 630 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(point.x, point.y, true)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 630 MovieClip Frame 8
_parent.inAction = false;
Instance of Symbol 505 MovieClip "lim" in Symbol 631 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 631 MovieClip Frame 78
stop();
Symbol 638 MovieClip Frame 8
stop();
Symbol 639 MovieClip Frame 4
stop();
Instance of Symbol 514 MovieClip in Symbol 639 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 10;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
myEnemy.hit(point.x, point.y, priority, power, hitNum);
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Symbol 640 MovieClip Frame 4
stop();
Symbol 650 MovieClip Frame 22
stop();
Symbol 652 MovieClip Frame 11
_parent.getUp = false;
Symbol 653 MovieClip Frame 2
gotoAndPlay (4);
Instance of Symbol 514 MovieClip in Symbol 653 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
priority = 1;
power = 10;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 653 MovieClip Frame 8
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 657 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 12;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 657 MovieClip Frame 6
_parent.inAction = false;
Instance of Symbol 514 MovieClip "c3" in Symbol 658 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 9;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 658 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
priority = 1;
power = 21;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 658 MovieClip Frame 10
_parent.inAction = false;
Instance of Symbol 505 MovieClip "lim" in Symbol 659 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 659 MovieClip Frame 78
stop();
Symbol 681 MovieClip Frame 4
stop();
Instance of Symbol 514 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Symbol 692 MovieClip Frame 4
stop();
Symbol 695 MovieClip Frame 9
stop();
Symbol 696 MovieClip Frame 2
_parent.getUp = false;
Instance of Symbol 514 MovieClip in Symbol 697 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 697 MovieClip Frame 4
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 698 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 698 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 698 MovieClip Frame 7
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 699 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 699 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 699 MovieClip Frame 13
_parent.inAction = false;
Instance of Symbol 505 MovieClip "lim" in Symbol 700 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 700 MovieClip Frame 78
stop();
Symbol 716 MovieClip Frame 6
stop();
Instance of Symbol 514 MovieClip in Symbol 717 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Instance of Symbol 514 MovieClip in Symbol 717 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
priority = 1;
power = 5;
hitNum = 5;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
_parent._parent.kick = false;
if (_parent._parent._x < _root.enemy._x) {
_parent._parent.rmove = false;
_parent._parent.lmove = true;
} else {
_parent._parent.rmove = true;
_parent._parent.lmove = false;
}
}
}
Symbol 719 MovieClip Frame 4
stop();
Symbol 726 MovieClip Frame 18
stop();
Symbol 729 MovieClip Frame 8
_parent.getUp = false;
Instance of Symbol 514 MovieClip in Symbol 730 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 730 MovieClip Frame 5
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 731 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 7;
hitNum = 2;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 731 MovieClip Frame 5
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 748 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 7;
hitNum = 3;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 748 MovieClip Frame 9
_parent.inAction = false;
Instance of Symbol 505 MovieClip "lim" in Symbol 749 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 749 MovieClip Frame 78
stop();
Symbol 761 MovieClip Frame 3
stop();
Symbol 761 MovieClip Frame 5
stop();
Symbol 761 MovieClip Frame 7
stop();
Instance of Symbol 756 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.thisround);
}
Instance of Symbol 761 MovieClip in Symbol 762 MovieClip Frame 10
onClipEvent (load) {
gotoAndPlay(_root.thisround * 2);
}
Symbol 762 MovieClip Frame 51
_parent.gotoAndStop("startFight");
stop();
Symbol 769 MovieClip Frame 77
_root.controls = true;
_parent.gotoAndStop("skittles");
Symbol 770 MovieClip Frame 15
gotoAndStop ("rounds");
Symbol 770 MovieClip Frame 16
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 17
_root.fgFire = true;
stop();
Symbol 770 MovieClip Frame 18
_root.fgFire = true;
stop();
Symbol 770 MovieClip Frame 19
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 20
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 21
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 22
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 23
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 24
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 25
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 26
_root.fgFire = false;
stop();
Symbol 770 MovieClip Frame 27
_root.fgFire = false;
stop();
Instance of Symbol 430 MovieClip in Symbol 771 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 455 MovieClip in Symbol 771 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop(_root.enType);
}
Instance of Symbol 430 MovieClip in Symbol 771 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 455 MovieClip in Symbol 771 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop(_root.enType);
}
Instance of Symbol 468 MovieClip in Symbol 771 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 471 MovieClip in Symbol 771 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop(_root.enType);
}
Symbol 771 MovieClip Frame 88
_root.gotoAndPlay("playScreen");
Symbol 771 MovieClip Frame 91
stop();
Instance of Symbol 770 MovieClip "display" in Symbol 771 MovieClip Frame 91
onClipEvent (load) {
wowOn = false;
enHitOn = false;
}
onClipEvent (enterFrame) {
if (wowOn == false) {
if (_root.player.action == "hitB") {
thisRand = random(2);
if (thisRand > 0) {
gotoAndStop ("ouch");
} else {
gotoAndStop ("yikes");
}
wowOn = true;
}
} else if (_root.player.action != "hitB") {
wowOn = false;
}
if (enHitOn == false) {
if (_root.enemy.action == "hitB") {
thisRand = random(2);
if (thisRand > 0) {
gotoAndStop ("wow");
} else {
gotoAndStop ("whatAhit");
}
enHitOn = true;
}
} else if (_root.enemy.action != "hitB") {
enHitOn = false;
}
}
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
stop();
Symbol 785 MovieClip Frame 3
stop();
Symbol 785 MovieClip Frame 4
stop();
Symbol 785 MovieClip Frame 5
stop();
Instance of Symbol 789 MovieClip in Symbol 790 MovieClip Frame 1
onClipEvent (load) {
orgL = 150;
_width = (orgL - _root.player.life);
}
onClipEvent (enterFrame) {
_width = (orgL - _root.player.life);
}
Symbol 793 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 2
stop();
Instance of Symbol 793 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.winScore > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 793 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.winScore > 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 789 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
orgL = 150;
_width = (orgL - _root.enemy.life);
}
onClipEvent (enterFrame) {
_width = (orgL - _root.enemy.life);
}
Instance of Symbol 793 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loseScore > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 793 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loseScore > 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 785 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (load) {
if (_parent.inVis == true) {
_visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.myType);
}
Instance of Symbol 796 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (load) {
if (_parent.inVis == true) {
_visible = false;
}
myGuy = _root.player;
}
Instance of Symbol 785 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.enType);
if (_parent.inVis == true) {
_visible = false;
}
}
Instance of Symbol 798 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (load) {
myGuy = _root.enemy;
if (_parent.inVis == true) {
_visible = false;
}
}
Symbol 800 MovieClip Frame 11
inVis = false;
if (_root.nextFight == true) {
this.removeMovieClip();
}
Symbol 800 MovieClip Frame 12
stop();
Symbol 800 MovieClip Frame 80
if (newFight != true) {
if ((_root.winScore < 2) and (_root.loseScore < 2)) {
_root.pointsAwarded = _root.pointsAwarded + Math.ceil(_root.player.life);
_root.thisround = _root.thisround + 1;
_root.gotoAndPlay("refreshRound");
} else if (_root.winScore == 2) {
if (_root.charList.length == 0) {
_root.pointsAwarded = _root.pointsAwarded + 1000;
}
_root.pointsAwarded = _root.pointsAwarded + Math.ceil(_root.player.life);
_root.gotoAndPlay("winFight");
inVis = true;
stopAllSounds();
} else {
_root.pointsAwarded = _root.pointsAwarded + 10;
_root.gotoAndPlay("winFight");
inVis = true;
_root.lost = true;
stopAllSounds();
}
} else if (endFight != true) {
_root.enType = _root.charList[random(_root.charList.length)];
_root.removeChar(_root.enType);
trace("en=" + _root.enType);
_root.gotoAndPlay("newEnemy");
_root.nextFight = true;
inVis = true;
stopAllSounds();
} else {
_root.nextFight = true;
_root.stopAllSounds();
trace("fader-EndGame");
_root.gotoAndStop("endGame");
stopAllSounds();
}
Symbol 800 MovieClip Frame 83
gotoAndPlay (1);
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 17
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
} else {
stop();
}
Symbol 860 MovieClip Frame 30
stop();
Instance of Symbol 860 MovieClip in Symbol 861 MovieClip Frame 1
onClipEvent (load) {
fgSide = 40;
fgUp = 15;
fgFire = false;
}
onClipEvent (enterFrame) {
if (fgFire == false) {
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
fgFire = true;
}
fgRand = random(50);
if (fgRand == fgSide) {
gotoAndPlay ("blSide");
}
if (fgRand == fgUp) {
gotoAndPlay ("blUp");
}
} else if (_root.fgFire == false) {
fgFire = false;
}
}
Symbol 863 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 17
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
} else {
stop();
}
Symbol 863 MovieClip Frame 28
stop();
Instance of Symbol 863 MovieClip in Symbol 864 MovieClip Frame 1
onClipEvent (load) {
fgSide = 40;
fgUp = 15;
fgFire = false;
}
onClipEvent (enterFrame) {
if (fgFire == false) {
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
fgFire = true;
}
fgRand = random(50);
if (fgRand == fgSide) {
gotoAndPlay ("blSide");
}
if (fgRand == fgUp) {
gotoAndPlay ("blUp");
}
} else if (_root.fgFire == false) {
fgFire = false;
}
}
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 17
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
} else {
stop();
}
Symbol 866 MovieClip Frame 31
stop();
Instance of Symbol 866 MovieClip in Symbol 867 MovieClip Frame 1
onClipEvent (load) {
fgSide = 40;
fgUp = 15;
fgFire = false;
}
onClipEvent (enterFrame) {
if (fgFire == false) {
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
fgFire = true;
}
fgRand = random(50);
if (fgRand == fgSide) {
gotoAndPlay ("blSide");
}
if (fgRand == fgUp) {
gotoAndPlay ("blUp");
}
} else if (_root.fgFire == false) {
fgFire = false;
}
}
Symbol 869 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 17
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
} else {
stop();
}
Symbol 869 MovieClip Frame 30
stop();
Instance of Symbol 869 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
fgSide = 40;
fgUp = 15;
fgFire = false;
}
onClipEvent (enterFrame) {
if (fgFire == false) {
if (_root.fgFire == true) {
gotoAndPlay ("blSide");
fgFire = true;
}
fgRand = random(50);
if (fgRand == fgSide) {
gotoAndPlay ("blSide");
}
if (fgRand == fgUp) {
gotoAndPlay ("blUp");
}
} else if (_root.fgFire == false) {
fgFire = false;
}
}
Instance of Symbol 889 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 890 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.enType);
}
Instance of Symbol 514 MovieClip "c1" in Symbol 915 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 915 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c3" in Symbol 915 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 915 MovieClip Frame 12
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 23
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 25
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 27
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 29
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 32
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 34
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 36
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 38
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 40
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 42
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 44
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 46
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 922 MovieClip Frame 48
onClipEvent (load) {
_visible = false;
priority = 1;
power = 20;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 922 MovieClip Frame 54
_parent.special = false;
_parent.inAction = false;
Symbol 927 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip "lim" in Symbol 927 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 927 MovieClip Frame 2
stop();
Symbol 927 MovieClip Frame 6
stop();
Symbol 927 MovieClip Frame 7
stop();
Symbol 927 MovieClip Frame 11
stop();
Symbol 927 MovieClip Frame 12
stop();
Symbol 927 MovieClip Frame 16
stop();
Symbol 927 MovieClip Frame 17
stop();
Symbol 927 MovieClip Frame 21
stop();
Symbol 927 MovieClip Frame 22
stop();
Symbol 927 MovieClip Frame 26
stop();
Symbol 927 MovieClip Frame 27
stop();
Symbol 927 MovieClip Frame 31
stop();
Symbol 927 MovieClip Frame 32
stop();
Symbol 927 MovieClip Frame 36
stop();
Symbol 927 MovieClip Frame 37
stop();
Symbol 927 MovieClip Frame 41
stop();
Symbol 927 MovieClip Frame 42
stop();
Symbol 927 MovieClip Frame 46
stop();
Symbol 927 MovieClip Frame 47
stop();
Symbol 927 MovieClip Frame 51
stop();
Symbol 927 MovieClip Frame 52
stop();
Symbol 927 MovieClip Frame 56
stop();
Symbol 927 MovieClip Frame 57
stop();
Symbol 927 MovieClip Frame 61
stop();
Symbol 927 MovieClip Frame 62
stop();
Symbol 927 MovieClip Frame 66
stop();
Symbol 927 MovieClip Frame 67
stop();
Symbol 927 MovieClip Frame 71
stop();
Symbol 927 MovieClip Frame 72
stop();
Symbol 927 MovieClip Frame 76
stop();
Symbol 927 MovieClip Frame 77
stop();
Symbol 927 MovieClip Frame 82
stop();
Symbol 927 MovieClip Frame 83
stop();
Instance of Symbol 514 MovieClip "c2" in Symbol 936 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 4;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 936 MovieClip Frame 5
_parent.inAction = false;
Instance of Symbol 514 MovieClip "c1" in Symbol 947 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 947 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c3" in Symbol 947 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 5;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c4" in Symbol 947 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
priority = 1;
power = 22;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c5" in Symbol 947 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
priority = 1;
power = 20;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 947 MovieClip Frame 11
_parent.special = false;
_parent.inAction = false;
Symbol 952 MovieClip Frame 5
_parent.longRange = false;
_parent.inAction = false;
_parent.endLong = false;
_parent.punch = false;
_parent.kick = false;
_parent.eLcnt = 0;
Symbol 953 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip "lim" in Symbol 953 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 953 MovieClip Frame 2
stop();
Symbol 953 MovieClip Frame 6
stop();
Symbol 953 MovieClip Frame 7
stop();
Symbol 953 MovieClip Frame 11
stop();
Symbol 953 MovieClip Frame 12
stop();
Symbol 953 MovieClip Frame 16
stop();
Symbol 953 MovieClip Frame 17
stop();
Symbol 953 MovieClip Frame 21
stop();
Symbol 953 MovieClip Frame 22
stop();
Symbol 953 MovieClip Frame 26
stop();
Symbol 953 MovieClip Frame 27
stop();
Symbol 953 MovieClip Frame 31
stop();
Symbol 953 MovieClip Frame 32
stop();
Symbol 953 MovieClip Frame 36
stop();
Symbol 953 MovieClip Frame 37
stop();
Symbol 953 MovieClip Frame 41
stop();
Symbol 953 MovieClip Frame 42
stop();
Symbol 953 MovieClip Frame 46
stop();
Symbol 953 MovieClip Frame 47
stop();
Symbol 953 MovieClip Frame 51
stop();
Symbol 953 MovieClip Frame 52
stop();
Symbol 953 MovieClip Frame 56
stop();
Symbol 953 MovieClip Frame 57
stop();
Symbol 953 MovieClip Frame 61
stop();
Symbol 953 MovieClip Frame 62
stop();
Symbol 953 MovieClip Frame 66
stop();
Symbol 953 MovieClip Frame 67
stop();
Symbol 953 MovieClip Frame 71
stop();
Symbol 953 MovieClip Frame 72
stop();
Symbol 953 MovieClip Frame 76
stop();
Symbol 953 MovieClip Frame 77
stop();
Symbol 953 MovieClip Frame 81
stop();
Symbol 953 MovieClip Frame 82
stop();
Symbol 953 MovieClip Frame 88
stop();
Symbol 953 MovieClip Frame 89
stop();
Symbol 959 MovieClip Frame 1
stop();
Symbol 959 MovieClip Frame 2
stop();
Instance of Symbol 514 MovieClip "c2" in Symbol 960 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 960 MovieClip Frame 5
_parent.inAction = false;
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 16
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip "c1" in Symbol 966 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 966 MovieClip Frame 18
_parent.special = false;
_parent.inAction = false;
Instance of Symbol 514 MovieClip "c2" in Symbol 966 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 972 MovieClip Frame 7
stop();
Symbol 973 MovieClip Frame 1
stop();
Symbol 974 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip "lim" in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 974 MovieClip Frame 2
stop();
Symbol 974 MovieClip Frame 6
stop();
Symbol 974 MovieClip Frame 7
stop();
Symbol 974 MovieClip Frame 11
stop();
Symbol 974 MovieClip Frame 12
stop();
Symbol 974 MovieClip Frame 16
stop();
Symbol 974 MovieClip Frame 17
stop();
Symbol 974 MovieClip Frame 21
stop();
Symbol 974 MovieClip Frame 22
stop();
Symbol 974 MovieClip Frame 26
stop();
Symbol 974 MovieClip Frame 27
stop();
Symbol 974 MovieClip Frame 31
stop();
Symbol 974 MovieClip Frame 32
stop();
Symbol 974 MovieClip Frame 36
stop();
Symbol 974 MovieClip Frame 37
stop();
Symbol 974 MovieClip Frame 41
stop();
Symbol 974 MovieClip Frame 42
stop();
Symbol 974 MovieClip Frame 46
stop();
Symbol 974 MovieClip Frame 47
stop();
Symbol 974 MovieClip Frame 51
stop();
Symbol 974 MovieClip Frame 52
stop();
Symbol 974 MovieClip Frame 56
stop();
Symbol 974 MovieClip Frame 57
stop();
Symbol 974 MovieClip Frame 61
stop();
Symbol 974 MovieClip Frame 62
stop();
Symbol 974 MovieClip Frame 66
stop();
Symbol 974 MovieClip Frame 67
stop();
Symbol 974 MovieClip Frame 71
stop();
Symbol 974 MovieClip Frame 72
stop();
Symbol 974 MovieClip Frame 76
stop();
Symbol 974 MovieClip Frame 77
stop();
Symbol 974 MovieClip Frame 81
stop();
Symbol 974 MovieClip Frame 82
stop();
Symbol 974 MovieClip Frame 88
stop();
Symbol 974 MovieClip Frame 89
stop();
Instance of Symbol 514 MovieClip "c3" in Symbol 975 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 6;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch6");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 975 MovieClip Frame 6
_parent.inAction = false;
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch6");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 25
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch1");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 28
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch2");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 32
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 35
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 37
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch4");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 38
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 40
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 43
onClipEvent (load) {
_visible = false;
priority = 1;
power = 3;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 44
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 45
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch1");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 47
onClipEvent (load) {
_visible = false;
priority = 1;
power = 2;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Instance of Symbol 514 MovieClip in Symbol 978 MovieClip Frame 50
onClipEvent (load) {
_visible = false;
priority = 1;
power = 21;
hitNum = 1;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch5");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 978 MovieClip Frame 52
_parent.special = false;
_parent.inAction = false;
Symbol 986 MovieClip Frame 14
_parent.longRange = false;
_parent.endLong = false;
_parent.inAction = false;
_parent.punch = false;
_parent.kick = false;
_parent.lOcnt = 0;
Symbol 987 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip "lim" in Symbol 987 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 987 MovieClip Frame 2
stop();
Symbol 987 MovieClip Frame 6
stop();
Symbol 987 MovieClip Frame 7
stop();
Symbol 987 MovieClip Frame 11
stop();
Symbol 987 MovieClip Frame 12
stop();
Symbol 987 MovieClip Frame 16
stop();
Symbol 987 MovieClip Frame 17
stop();
Symbol 987 MovieClip Frame 21
stop();
Symbol 987 MovieClip Frame 22
stop();
Symbol 987 MovieClip Frame 26
stop();
Symbol 987 MovieClip Frame 27
stop();
Symbol 987 MovieClip Frame 31
stop();
Symbol 987 MovieClip Frame 32
stop();
Symbol 987 MovieClip Frame 36
stop();
Symbol 987 MovieClip Frame 37
stop();
Symbol 987 MovieClip Frame 41
stop();
Symbol 987 MovieClip Frame 42
stop();
Symbol 987 MovieClip Frame 46
stop();
Symbol 987 MovieClip Frame 47
stop();
Symbol 987 MovieClip Frame 51
stop();
Symbol 987 MovieClip Frame 52
stop();
Symbol 987 MovieClip Frame 56
stop();
Symbol 987 MovieClip Frame 57
stop();
Symbol 987 MovieClip Frame 61
stop();
Symbol 987 MovieClip Frame 62
stop();
Symbol 987 MovieClip Frame 66
stop();
Symbol 987 MovieClip Frame 67
stop();
Symbol 987 MovieClip Frame 71
stop();
Symbol 987 MovieClip Frame 72
stop();
Symbol 987 MovieClip Frame 76
stop();
Symbol 987 MovieClip Frame 77
stop();
Symbol 987 MovieClip Frame 82
stop();
Symbol 987 MovieClip Frame 83
stop();
Instance of Symbol 514 MovieClip "c3" in Symbol 988 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
priority = 1;
power = 8;
hitNum = 4;
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myEnemy = _parent._parent.myEnemy;
if (myEnemy.hitTest(this)) {
if (myEnemy.action != "block") {
_root.sounds.gotoAndPlay("punch3");
} else {
_root.sounds.gotoAndPlay("block");
}
myEnemy.hit(point.x, point.y, priority, power, hitNum);
}
}
Symbol 988 MovieClip Frame 8
_parent.inAction = false;
Symbol 997 MovieClip Frame 7
myEnemy = _parent.myEnemy;
Symbol 997 MovieClip Frame 11
_root.FloorShake = true;
_root.BG.shake(_parent._name);
Symbol 997 MovieClip Frame 28
_parent.special = false;
_parent.inAction = false;
Symbol 1005 MovieClip Frame 18
_parent.longRange = false;
_parent.endLong = false;
_parent.inAction = false;
_parent.punch = false;
_parent.kick = false;
_parent.lOcnt = 0;
Symbol 1006 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip "lim" in Symbol 1006 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1006 MovieClip Frame 2
stop();
Symbol 1006 MovieClip Frame 6
stop();
Symbol 1006 MovieClip Frame 7
stop();
Symbol 1006 MovieClip Frame 11
stop();
Symbol 1006 MovieClip Frame 12
stop();
Symbol 1006 MovieClip Frame 16
stop();
Symbol 1006 MovieClip Frame 17
stop();
Symbol 1006 MovieClip Frame 21
stop();
Symbol 1006 MovieClip Frame 22
stop();
Symbol 1006 MovieClip Frame 26
stop();
Symbol 1006 MovieClip Frame 27
stop();
Symbol 1006 MovieClip Frame 31
stop();
Symbol 1006 MovieClip Frame 32
stop();
Symbol 1006 MovieClip Frame 36
stop();
Symbol 1006 MovieClip Frame 37
stop();
Symbol 1006 MovieClip Frame 41
stop();
Symbol 1006 MovieClip Frame 42
stop();
Symbol 1006 MovieClip Frame 46
stop();
Symbol 1006 MovieClip Frame 47
stop();
Symbol 1006 MovieClip Frame 51
stop();
Symbol 1006 MovieClip Frame 52
stop();
Symbol 1006 MovieClip Frame 56
stop();
Symbol 1006 MovieClip Frame 57
stop();
Symbol 1006 MovieClip Frame 61
stop();
Symbol 1006 MovieClip Frame 62
stop();
Symbol 1006 MovieClip Frame 66
stop();
Symbol 1006 MovieClip Frame 67
stop();
Symbol 1006 MovieClip Frame 71
stop();
Symbol 1006 MovieClip Frame 72
stop();
Symbol 1006 MovieClip Frame 76
stop();
Symbol 1006 MovieClip Frame 77
stop();
Symbol 1006 MovieClip Frame 82
stop();
Symbol 1006 MovieClip Frame 83
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 2
play();
Symbol 1013 MovieClip Frame 3
play();
Symbol 1013 MovieClip Frame 4
play();
Symbol 1013 MovieClip Frame 5
this.removeMovieClip();
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 3
_root.winScore = _root.winScore + 1;
_root.fader.gotoAndPlay("out");
stop();
Symbol 1025 MovieClip Frame 5
_root.loseScore = _root.loseScore + 1;
_root.fader.gotoAndPlay("out");
stop();
Symbol 1025 MovieClip Frame 7
stop();
Symbol 1025 MovieClip Frame 9
stop();
Symbol 1025 MovieClip Frame 11
stop();
Symbol 1025 MovieClip Frame 13
stop();
Symbol 1025 MovieClip Frame 15
stop();
Symbol 1025 MovieClip Frame 17
stop();
Symbol 1025 MovieClip Frame 30
stop();
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 2
stop();
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 2
stop();
Instance of Symbol 111 MovieClip in Symbol 1042 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.myType);
}
Instance of Symbol 1030 MovieClip in Symbol 1042 MovieClip Frame 1
onClipEvent (load) {
if (_root.lost == true) {
gotoAndStop (2);
}
}
Instance of Symbol 1041 MovieClip in Symbol 1042 MovieClip Frame 1
onClipEvent (load) {
cnt = 0;
pcnt = 0;
pointCnt = false;
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if (cnt > 30) {
if ((_root.pointsAwarded - 20) > 0) {
_root.pointsAwarded = _root.pointsAwarded - 20;
_root.score = _root.score + 20;
pcnt = pcnt + 1;
if (pcnt == 1) {
gotoAndPlay (2);
pcnt = 0;
}
} else if (pointCnt == false) {
if ((_root.charList.length != 0) and (_root.lost != true)) {
pointCnt = true;
_root.score = _root.score + _root.pointsAwarded;
_root.pointsAwarded = 0;
_root.fader.newFight = true;
_root.fader._visible = true;
_root.fader.inVis = true;
_root.fader.gotoAndPlay("out");
} else {
trace("endGame");
pointCnt = true;
_root.fader.newFight = true;
_root.score = _root.score + _root.pointsAwarded;
_root.pointsAwarded = 0;
_root.fader.endFight = true;
_root.fader._visible = true;
_root.fader.inVis = true;
_root.fader.gotoAndPlay("out");
}
}
}
}
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 2
stop();
Symbol 1056 Button
on (release) {
_parent.fade.targ = "submit";
_parent.fade.gotoAndPlay(2);
}
Symbol 1062 Button
on (release) {
_parent.fade.targ = "playAgain";
_parent.fade.gotoAndPlay(2);
}
Symbol 1064 Button
on (release) {
getURL ("javascript:sizeWindow('fruit_send_friend.jsp', 'width=175,height=175,scrollbars=no')");
}
Symbol 1065 Button
on (release) {
_parent.fade.targ = "scores";
_parent.fade.gotoAndPlay(2);
}
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 2
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 10
if (targ == "scores") {
_root.gotoAndPlay("Scores");
} else if (targ == "playAgain") {
_root.gotoAndPlay("newGame");
} else {
_parent.gotoAndStop(targ);
}
Symbol 1069 MovieClip Frame 20
stop();
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 2
_root.paused = true;
Symbol 1077 MovieClip Frame 7
_root.gotoAndStop(_root.targFrame);
Symbol 1077 MovieClip Frame 12
_root.paused = false;
_root.play();
trace("hey");
Symbol 1077 MovieClip Frame 13
stop();
Symbol 1084 Button
on (release) {
if (((_root.pName == "") or (_root.pName == undefined)) or (_root.pName == " ")) {
sound.gotoAndPlay("bad");
errorText = "You must enter a name above!";
} else {
_root.insertScores();
_root.errorText = "";
_root.sound.gotoAndPlay("bling2");
play();
}
}
Symbol 1090 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 3
stop();
Symbol 1090 MovieClip Frame 5
stop();
Symbol 1090 MovieClip Frame 7
stop();
Symbol 1090 MovieClip Frame 9
stop();
Symbol 1091 MovieClip Frame 1
_root.checkScores();
if (_root.insertSlot < 31) {
trace("onboard = true");
_root.onBoard = true;
} else {
_root.onBoard = false;
}
stop();
Instance of Symbol 1053 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (load) {
if (_root.lost == true) {
gotoAndStop (2);
}
}
Instance of Symbol 1068 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (load) {
if (_root.onBoard == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 1091 MovieClip Frame 2
stop();
Symbol 1091 MovieClip Frame 3
name = _root.pName;
town = _root.state;
score = _root.score;
_root.result = "none";
Symbol 1091 MovieClip Frame 4
loadVariablesNum ("save_score.jsp", 0, "POST");
Symbol 1091 MovieClip Frame 5
fade.targ = "scores";
fade.gotoAndPlay(2);
stop();
Instance of Symbol 1118 MovieClip in Symbol 1119 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.myState == "ap") {
gotoAndStop (1);
} else if (_parent._parent.myState == "ch") {
gotoAndStop (2);
} else if (_parent._parent.myState == "ta") {
gotoAndStop (3);
} else if (_parent._parent.myState == "wa") {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
}
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 2
if (Scnt > 20) {
}
Symbol 1120 MovieClip Frame 4
cnt = cnt + 2;
if (boldMe == true) {
BTextFormat = new TextFormat();
BTextFormat.color = 16776960 /* 0xFFFF00 */;
boldMe = false;
} else {
BTextFormat = new TextFormat();
BTextFormat.bold = false;
}
row.t1.setTextFormat(BTextFormat);
row.t2.setTextFormat(BTextFormat);
row.t3.setTextFormat(BTextFormat);
row.t4.setTextFormat(BTextFormat);
if (cnt < Scnt) {
gotoAndPlay(_currentframe - 1);
}
Symbol 1120 MovieClip Frame 8
stop();
Symbol 1121 Button
on (release) {
_root.gotoAndPlay("newGame");
}
Symbol 1124 Button
on (release) {
_root.gotoAndPlay("newGame");
}
Symbol 1125 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 2
stop();
Symbol 1127 MovieClip Frame 11
stop();