Frame 2
if ((getBytesLoaded() / getBytesTotal()) == 1) {
gotoAndPlay (2);
} else {
_root.loaderstatus.text = (String(getBytesLoaded()) + " / ") + String(getBytesTotal());
_root.loaderbar.GotoAndStop(int((getBytesLoaded() / getBytesTotal()) * 100));
gotoAndPlay (1);
}
Frame 199
Frame 218
play();
Frame 231
_root.lives = 3;
_root.score = 0;
Frame 245
stopAllSounds();
Frame 246
stop();
Frame 262
stop();
Frame 278
play();
gotoAndPlay ("initialise1");
Frame 304
stop();
Frame 362
play();
Frame 393
scoresURL = "http://www.freegamesjungle.com/scores/getscore.php";
stopAllSounds();
stop();
Frame 394
function loadScores() {
}
stopAllSounds();
stop();
Instance of Symbol 441 MovieClip "Scores" in Frame 394
onClipEvent (data) {
_root.ScoreText.gotoAndStop(2);
_root.loadScores();
}
Frame 395
if (_root.level == 1) {
gotoAndPlay ("initialise1");
}
if (_root.level == 2) {
gotoAndPlay ("initialise2");
}
if (_root.level == 3) {
gotoAndPlay ("initialise4");
}
if (_root.level == 4) {
gotoAndPlay ("initialise4");
}
if (_root.level == 100) {
gotoAndPlay ("initialiseaa");
}
if (_root.level == 11) {
gotoAndPlay ("initialise11");
}
if (_root.level == 12) {
gotoAndPlay ("initialise12");
}
if (_root.level == 13) {
gotoAndPlay ("initialise13");
}
if (_root.level == 14) {
gotoAndPlay ("initialise14");
}
if (_root.level == 200) {
gotoAndPlay ("initialisebb");
}
if (_root.level == 21) {
gotoAndPlay ("initialise21");
}
if (_root.level == 22) {
gotoAndPlay ("initialise22");
}
if (_root.level == 23) {
gotoAndPlay ("initialise23");
}
if (_root.level == 24) {
gotoAndPlay ("initialise24");
}
if (_root.level == 300) {
gotoAndPlay ("initialisecc");
}
Frame 396
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 2;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppa" + i].oppNo = i;
i++;
}
charArray = new Array(2);
charArray[1] = "wm";
charArray[2] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 2;
}
this["oppa" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 1;
}
this["oppa" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 397
stopAllSounds();
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 401
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 416
i = 1;
while (i <= oppTotal) {
if (this["oppa" + i].killStatus == false) {
this["oppa" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppa" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 417
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppa" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppa" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish1");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 418
prevFrame();
play();
Frame 426
i = 1;
while (i <= oppTotal) {
if (this["oppa" + i].killStatus == false) {
this["oppa" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 470
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start1");
}
Frame 471
play();
Frame 475
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 2;
}
stop();
Frame 477
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 1;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 3;
oppSpeed = 9;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 90;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 9;
oppThrowTimeMax = 300;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppb" + i].oppNo = i;
i++;
}
charArray = new Array(3);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 3;
}
this["oppb" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppb" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 478
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 482
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 497
i = 1;
while (i <= oppTotal) {
if (this["oppb" + i].killStatus == false) {
this["oppb" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppb" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 498
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppb" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppb" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish2");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 499
prevFrame();
play();
Frame 507
i = 1;
while (i <= oppTotal) {
if (this["oppb" + i].killStatus == false) {
this["oppb" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 551
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start2");
}
Frame 552
play();
Frame 556
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 3;
}
stop();
Frame 558
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 2;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 4;
oppSpeed = 8;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 80;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 8;
oppThrowTimeMax = 250;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppc" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 4) {
tempSelect = 4;
}
this["oppc" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppc" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 559
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 563
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 578
i = 1;
while (i <= oppTotal) {
if (this["oppc" + i].killStatus == false) {
this["oppc" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppc" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 579
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppc" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppc" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish3");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 580
prevFrame();
play();
Frame 588
i = 1;
while (i <= oppTotal) {
if (this["oppc" + i].killStatus == false) {
this["oppc" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 632
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start3");
}
Frame 633
play();
Frame 637
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 4;
}
stop();
Frame 639
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 3;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 5;
oppSpeed = 7;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 70;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 7;
oppThrowTimeMax = 200;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppd" + i].oppNo = i;
i++;
}
charArray = new Array(5);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
charArray[5] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 5) {
tempSelect = 5;
}
this["oppd" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppd" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 640
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 644
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 659
i = 1;
while (i <= oppTotal) {
if (this["oppd" + i].killStatus == false) {
this["oppd" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppd" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 660
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppd" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppd" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish4");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 661
prevFrame();
play();
Frame 669
i = 1;
while (i <= oppTotal) {
if (this["oppd" + i].killStatus == false) {
this["oppd" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 713
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start4");
}
Frame 714
play();
Frame 718
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 100;
}
stop();
Frame 720
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 1;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppbossa" + i].oppNo = i;
i++;
}
charArray = new Array(2);
charArray[1] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 2;
}
this["oppbossa" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 1;
}
this["oppbossa" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Instance of Symbol 298 MovieClip [cable_interface] "Cables" in Frame 720
//component parameters
onClipEvent (initialize) {
sockets = [];
sockets[0] = "_root.midi";
sockets[1] = "_root.master";
sockets[2] = "_root.phaser";
sockets[3] = "_root.compressor";
sockets[4] = "_root.mixer";
sockets[5] = "_root.amplifer";
sockets[6] = "_root.delay";
sockets[7] = "_root.flanger";
sockets[8] = "_root.reverb";
sockets[9] = "_root.chorus";
}
//component parameters
onClipEvent (initialize) {
sockets[5] = "this.bbb";
}
Frame 721
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 725
function Tween(mc, property, end, duration) {
this.duration = duration;
this.target = end;
this.start = mc[property];
this.mc = mc;
this.property = property;
}
function setTweens() {
var aa1 = 400;
var aa3 = (random(maxDir) + aa1);
var aa2 = (random(maxDir) + aa1);
xtween = new Tween(oppbossa1, "_x", random(300), aa3);
ytween = new Tween(oppbossa1, "_y", random(400), aa2);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
if (this.dontAnimate) {
}
if (this.startTime == null) {
this.startTime = getTimer();
}
var aa3 = (getTimer() - this.startTime);
var aa2 = (aa3 / this.duration);
aa2 = (aa2 * aa2) * (3 - (2 * aa2));
this.mc[this.property] = this.start + ((this.target - this.start) * aa2);
if (aa3 >= this.duration) {
this.onEnd();
this.dontAnimate = true;
}
};
onEnterFrame = function () {
xtween.step();
ytween.step();
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
setTweens();
startAnim.gotoAndPlay("start");
stop();
Frame 740
i = 1;
while (i <= oppTotal) {
if (this["oppbossa" + i].killStatus == false) {
this["oppbossa" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("bossSnowBallThrow" + oppThrowSelect, "bossSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["bossSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppbossa" + oppNo].oppAnim.gotoAndPlay("throw");
_root.oppbossa1.oppAnim.fff.gotoAndPlay(2);
oppThrowTimeOld = getTimer();
}
};
Frame 741
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppbossa" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppbossa" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finishb1");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.bossSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.bossSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.bossSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.bossSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.bossSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishb1");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishb1");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 742
prevFrame();
play();
Frame 750
i = 1;
while (i <= oppTotal) {
if (this["oppbossa" + i].killStatus == false) {
this["oppbossa" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 794
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("startb1");
}
Frame 795
play();
Frame 799
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 11;
}
stop();
Frame 801
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 2;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppf" + i].oppNo = i;
i++;
}
charArray = new Array(2);
charArray[1] = "wm";
charArray[2] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 2;
}
this["oppf" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 1;
}
this["oppf" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 802
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 806
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 821
i = 1;
while (i <= oppTotal) {
if (this["oppf" + i].killStatus == false) {
this["oppf" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppf" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 822
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppf" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppf" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish1a");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 823
prevFrame();
play();
Frame 831
i = 1;
while (i <= oppTotal) {
if (this["oppf" + i].killStatus == false) {
this["oppf" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 875
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start1a");
}
Frame 876
play();
Frame 880
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 12;
}
stop();
Frame 882
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 1;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 3;
oppSpeed = 9;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 90;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 9;
oppThrowTimeMax = 300;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppg" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 3;
}
this["oppg" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppg" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 883
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 887
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 902
i = 1;
while (i <= oppTotal) {
if (this["oppg" + i].killStatus == false) {
this["oppg" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppg" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 903
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppg" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppg" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish2a");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 904
prevFrame();
play();
Frame 912
i = 1;
while (i <= oppTotal) {
if (this["oppg" + i].killStatus == false) {
this["oppg" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 956
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start2a");
}
Frame 957
play();
Frame 961
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 13;
}
stop();
Frame 963
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 2;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 4;
oppSpeed = 8;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 80;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 8;
oppThrowTimeMax = 250;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["opph" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 4) {
tempSelect = 4;
}
this["opph" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["opph" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 964
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 968
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 983
i = 1;
while (i <= oppTotal) {
if (this["opph" + i].killStatus == false) {
this["opph" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["opph" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 984
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("opph" + s) + ".oppAnim.oppTarget");
curOpp = eval (("opph" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish3a");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 985
prevFrame();
play();
Frame 993
i = 1;
while (i <= oppTotal) {
if (this["opph" + i].killStatus == false) {
this["opph" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1037
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start3a");
}
Frame 1038
play();
Frame 1042
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 14;
}
stop();
Frame 1044
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 3;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 5;
oppSpeed = 7;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 70;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 7;
oppThrowTimeMax = 200;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppj" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
charArray[5] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 5) {
tempSelect = 5;
}
this["oppj" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppj" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 1045
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1049
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 1064
i = 1;
while (i <= oppTotal) {
if (this["oppj" + i].killStatus == false) {
this["oppj" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppj" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 1065
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppj" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppj" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish4a");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4a");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 1066
prevFrame();
play();
Frame 1074
i = 1;
while (i <= oppTotal) {
if (this["oppj" + i].killStatus == false) {
this["oppj" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1118
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start4a");
}
Frame 1119
play();
Frame 1123
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 200;
}
stop();
Frame 1125
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 1;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppbossb" + i].oppNo = i;
i++;
}
charArray = new Array(1);
charArray[1] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 2;
}
this["oppbossb" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 1) {
tempSelect = 1;
}
this["oppbossb" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Instance of Symbol 297 MovieClip [cable_interfacegreen] "Cables" in Frame 1125
//component parameters
onClipEvent (initialize) {
sockets = [];
sockets[0] = "_root.midi";
sockets[1] = "_root.master";
sockets[2] = "_root.phaser";
sockets[3] = "_root.compressor";
sockets[4] = "_root.mixer";
sockets[5] = "_root.amplifer";
sockets[6] = "_root.delay";
sockets[7] = "_root.flanger";
sockets[8] = "_root.reverb";
sockets[9] = "_root.chorus";
}
//component parameters
onClipEvent (initialize) {
sockets[5] = "this.bbb";
}
Frame 1126
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1130
function Tween(mc, property, end, duration) {
this.duration = duration;
this.target = end;
this.start = mc[property];
this.mc = mc;
this.property = property;
}
function setTweens() {
var aa1 = 400;
var aa3 = (random(maxDir) + aa1);
var aa2 = (random(maxDir) + aa1);
xtween = new Tween(oppbossb1, "_x", random(300), aa3);
ytween = new Tween(oppbossb1, "_y", random(400), aa2);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
if (this.dontAnimate) {
}
if (this.startTime == null) {
this.startTime = getTimer();
}
var aa3 = (getTimer() - this.startTime);
var aa2 = (aa3 / this.duration);
aa2 = (aa2 * aa2) * (3 - (2 * aa2));
this.mc[this.property] = this.start + ((this.target - this.start) * aa2);
if (aa3 >= this.duration) {
this.onEnd();
this.dontAnimate = true;
}
};
onEnterFrame = function () {
xtween.step();
ytween.step();
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
setTweens();
startAnim.gotoAndPlay("start");
stop();
Frame 1145
i = 1;
while (i <= oppTotal) {
if (this["oppbossb" + i].killStatus == false) {
this["oppbossb" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("bossaSnowBallThrow" + oppThrowSelect, "bossaSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["bossaSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppbossb" + oppNo].oppAnim.gotoAndPlay("throw");
_root.oppbossb1.oppAnim.fff.gotoAndPlay(2);
oppThrowTimeOld = getTimer();
}
};
Frame 1146
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppbossb" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppbossb" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finishb2");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.bossaSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.bossaSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.bossaSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.bossaSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.bossaSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishb2");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishb2");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 1147
prevFrame();
play();
Frame 1155
i = 1;
while (i <= oppTotal) {
if (this["oppbossb" + i].killStatus == false) {
this["oppbossb" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1199
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("startb2");
}
Frame 1200
play();
Frame 1204
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 21;
}
stop();
Frame 1206
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 2;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppz" + i].oppNo = i;
i++;
}
charArray = new Array(2);
charArray[1] = "wm";
charArray[2] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 2;
}
this["oppz" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 2) {
tempSelect = 1;
}
this["oppz" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 1207
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1211
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 1226
i = 1;
while (i <= oppTotal) {
if (this["oppz" + i].killStatus == false) {
this["oppz" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppz" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 1227
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppz" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppz" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish1c");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish1c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 1228
prevFrame();
play();
Frame 1236
i = 1;
while (i <= oppTotal) {
if (this["oppz" + i].killStatus == false) {
this["oppz" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1280
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start1a");
}
Frame 1281
play();
Frame 1285
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 22;
}
stop();
Frame 1287
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 1;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 3;
oppSpeed = 9;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 90;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 9;
oppThrowTimeMax = 300;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppx" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 3;
}
this["oppx" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppx" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 1288
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1292
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 1307
i = 1;
while (i <= oppTotal) {
if (this["oppx" + i].killStatus == false) {
this["oppx" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppx" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 1308
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppx" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppx" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish2c");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish2c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 1309
prevFrame();
play();
Frame 1317
i = 1;
while (i <= oppTotal) {
if (this["oppx" + i].killStatus == false) {
this["oppx" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1361
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start2a");
}
Frame 1362
play();
Frame 1366
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 23;
}
stop();
Frame 1368
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 2;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 4;
oppSpeed = 8;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 80;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 8;
oppThrowTimeMax = 250;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppv" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 4) {
tempSelect = 4;
}
this["oppv" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppv" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 1369
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1373
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 1388
i = 1;
while (i <= oppTotal) {
if (this["oppv" + i].killStatus == false) {
this["oppv" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppv" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 1389
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppv" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppv" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish3c");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish3c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 1390
prevFrame();
play();
Frame 1398
i = 1;
while (i <= oppTotal) {
if (this["oppv" + i].killStatus == false) {
this["oppv" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1442
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start3a");
}
Frame 1443
play();
Frame 1447
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 24;
}
stop();
Frame 1449
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 3;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 5;
plySnowBalls = 0;
plyMaxSnowBalls = 30;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 5;
oppSpeed = 7;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 70;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 7;
oppThrowTimeMax = 200;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppw" + i].oppNo = i;
i++;
}
charArray = new Array(6);
charArray[1] = "wm";
charArray[2] = "wm";
charArray[3] = "wm";
charArray[4] = "wm";
charArray[5] = "wm";
if (_root.charTeam == "agency") {
tempSelect = 4;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 5) {
tempSelect = 5;
}
this["oppw" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = 1;
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 3) {
tempSelect = 1;
}
this["oppw" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Frame 1450
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1454
onEnterFrame = function () {
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
startAnim.gotoAndPlay("start");
stop();
Frame 1469
i = 1;
while (i <= oppTotal) {
if (this["oppw" + i].killStatus == false) {
this["oppw" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("oppSnowBallThrow" + oppThrowSelect, "oppSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["oppSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppw" + oppNo].oppAnim.gotoAndPlay("throw");
oppThrowTimeOld = getTimer();
}
};
Frame 1470
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppw" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppw" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finish4c");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.oppSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.oppSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.oppSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.oppSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound("pulse");
hitSound.setVolume((curSnowBallHit * 5) + 50);
hitSound.setPan(50);
hitSound.start();
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finish4c");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
powerUpTimeNew = getTimer();
powerUpTime = powerUpTimeNew - powerUpTimeOld;
if (((powerUpDisplay == false) && (powerUpUse == false)) && (powerUpTime > powerUpTimeMax)) {
powerUpSelect = random(thisLevel) + 1;
powerUps.attachMovie(("powerUp" + powerUpSelect) + "PickUp", "powerUp", powerUps.getNextHighestDepth(), {_x:random(300) + 400, _y:random(200) + 300});
powerUpDisplay = true;
powerUpTimeOld = getTimer();
}
if (((powerUpDisplay == true) && (ply.plyAnim.plyTarget.hitTest(powerUps.powerUp.pUpTarget))) && (powerUpUse == false)) {
powerUps.powerUp.gotoAndPlay("collect");
powerUpUse = true;
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBackPowerUp" + powerUpSelect, "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
}
Frame 1471
prevFrame();
play();
Frame 1479
i = 1;
while (i <= oppTotal) {
if (this["oppw" + i].killStatus == false) {
this["oppw" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1523
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("start4a");
}
Frame 1524
play();
Frame 1528
if (_root.gameWin == "GAME OVER") {
_root.gotoAndPlay("gameOver");
} else {
gotoAndPlay ("maininitialise");
_root.level = 300;
}
stop();
Frame 1530
snowBallHits = 0;
throwPowerBar = 10;
kills = 0;
thisLevel = 0;
levelEnd = false;
powerUp1Hit = 20;
powerUp2Hit = 10;
powerUp3Hit = 20;
powerUp4Hit = 40;
powerUp5Hit = 5;
powerUpDisplay = false;
powerUpUse = false;
powerUpShots = 0;
powerUpTimeMax = 10000;
shieldThrow = false;
specialThrow = false;
specialThrowWait = false;
hitPause = false;
shieldEnergy = 100;
powerUpTimeOld = getTimer();
plySpeed = 2;
plySnowBalls = 0;
plyMaxSnowBalls = 20;
plyThrowTimeMax = 300;
plyThrowTimeOld = getTimer();
plyWalk = false;
plyWithin = false;
mouseX = ply._x;
mouseY = ply._y;
oppTotal = 1;
oppSpeed = 10;
oppMove = 0;
oppMaxMove = 3;
oppMoveAmount = 100;
oppPauseLength = 500;
oppSnowBalls = 0;
oppMaxSnowBalls = 20;
oppSnowBallPower = 10;
oppThrowTimeMax = 350;
oppThrowRate = 30;
oppThrowTimeOld = getTimer();
plyInitialise = function () {
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
};
plyInitialise();
plyExchange = function () {
ply.plyAnim.removeMovieClip();
ply.attachMovie("CHARBack", "plyAnim", ply.getNextHighestDepth());
ply.plyAnim.charSelect = _root.charSelect;
hitPause = false;
};
plyExchange();
if (_root.charSelect == undefined) {
_root.charSelect = "c";
_root.charTeam = "agency";
}
ply.plyAnim.charSelect = _root.charSelect;
ply.plyNo = 1;
scorePanel.char.gotoAndStop(_root.charSelect);
i = 1;
while (i <= oppTotal) {
this["oppbossc" + i].oppNo = i;
i++;
}
charArray = new Array(1);
charArray[1] = "wm";
if (_root.charTeam == "agency") {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 1) {
tempSelect = 1;
}
this["oppbossc" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
} else {
tempSelect = random(2);
i = 1;
while (i <= oppTotal) {
tempSelect++;
if (tempSelect > 1) {
tempSelect = 1;
}
this["oppbossc" + i].oppAnim.charSelect = charArray[tempSelect];
i++;
}
}
Instance of Symbol 296 MovieClip [cable_interfaceblue] "Cables" in Frame 1530
//component parameters
onClipEvent (initialize) {
sockets = [];
sockets[0] = "_root.midi";
sockets[1] = "_root.master";
sockets[2] = "_root.phaser";
sockets[3] = "_root.compressor";
sockets[4] = "_root.mixer";
sockets[5] = "_root.amplifer";
sockets[6] = "_root.delay";
sockets[7] = "_root.flanger";
sockets[8] = "_root.reverb";
sockets[9] = "_root.chorus";
}
//component parameters
onClipEvent (initialize) {
sockets[5] = "this.bbb";
}
Frame 1531
plyThrow.onRollOver = function () {
plyWithin = true;
};
plyThrow.onRollOut = function () {
plyWithin = false;
};
plyThrow.onDragOut = function () {
plyWithin = false;
};
plyThrow.onDragOver = function () {
plyWithin = true;
};
plyThrow.releaseOutside = function () {
plyWithin = false;
};
Frame 1535
function Tween(mc, property, end, duration) {
this.duration = duration;
this.target = end;
this.start = mc[property];
this.mc = mc;
this.property = property;
}
function setTweens() {
var aa1 = 400;
var aa3 = (random(maxDir) + aa1);
var aa2 = (random(maxDir) + aa1);
xtween = new Tween(oppbossc1, "_x", random(300), aa3);
ytween = new Tween(oppbossc1, "_y", random(400), aa2);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
if (this.dontAnimate) {
}
if (this.startTime == null) {
this.startTime = getTimer();
}
var aa3 = (getTimer() - this.startTime);
var aa2 = (aa3 / this.duration);
aa2 = (aa2 * aa2) * (3 - (2 * aa2));
this.mc[this.property] = this.start + ((this.target - this.start) * aa2);
if (aa3 >= this.duration) {
this.onEnd();
this.dontAnimate = true;
}
};
onEnterFrame = function () {
xtween.step();
ytween.step();
if ((plyWithin == true) && (ply.thisEnergy > 0)) {
mouseX = _xmouse;
mouseY = _ymouse;
}
plyX = ply._x;
plyY = ply._y;
differenceX = mouseX - plyX;
differenceY = mouseY - plyY;
if ((Math.abs(differenceX) > 1) && (Math.abs(differenceY) > 1)) {
plyWalk = true;
ply._x = ply._x + (differenceX / plySpeed);
ply._y = ply._Y + (differenceY / plySpeed);
} else {
plyWalk = false;
}
};
setTweens();
startAnim.gotoAndPlay("start");
stop();
Frame 1550
i = 1;
while (i <= oppTotal) {
if (this["oppbossc" + i].killStatus == false) {
this["oppbossc" + i].gotoAndPlay("start");
}
i++;
}
ply.gotoAndStop("start");
plyThrow.onPress = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
} else {
ply.plyAnim.gotoAndPlay("fire");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("aim");
plyThrowPower = 0;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("powerUp");
}
};
plyThrow.onRelease = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyThrow.onReleaseOutside = function () {
if ((powerUpUse == true) && (shieldThrow == false)) {
if ((specialThrow == true) && (specialThrowWait == false)) {
ply.plyAnim.gotoAndPlay("throw");
} else {
ply.plyAnim.gotoAndPlay("out");
}
} else if (hitPause == false) {
ply.plyAnim.gotoAndPlay("throw");
}
};
plyStandardThrow = function () {
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
if (plyThrowTime > plyThrowTimeMax) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
plyThrowSelect = plyThrowPower / (100 / throwPowerBar);
snowBalls.attachMovie("plySnowBallThrow" + plyThrowSelect, "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x + 34, _y:ply._y - 18});
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = plyThrowSelect;
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume((plyThrowSelect * 7) + 30);
_loc1.setPan(50);
_loc1.start();
plyThrowTimeOld = getTimer();
}
};
plyPowerUpThrow = function () {
ply.plyAnim.powerBarAnim.powerBar.gotoAndPlay("throw");
plyThrowTimeNew = getTimer();
plyThrowTime = plyThrowTimeNew - plyThrowTimeOld;
if (plyThrowTime > plyThrowTimePower) {
plySnowBalls++;
if (plySnowBalls > plyMaxSnowBalls) {
plySnowBalls = 1;
}
snowBalls.attachMovie(("powerUp" + powerUpSelect) + "AmmoAnim", "plySnowBallThrow" + plySnowBalls, plySnowBalls, {_x:ply._x, _y:ply._y});
var _loc1 = new Sound(ply);
_loc1.attachSound("plyThrow");
_loc1.setVolume(100);
_loc1.setPan(50);
_loc1.start();
powerUpShots--;
if (powerUpShots <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
snowBalls["plySnowBallThrow" + plySnowBalls].hitValue = powerUpHit;
plyThrowTimeOld = getTimer();
}
};
oppThrow = function (oppNo, oppX, oppY) {
oppThrowSelect = 11 - (random(oppSnowBallPower) + 1);
oppThrowTimeNew = getTimer();
oppThrowTime = oppThrowTimeNew - oppThrowTimeOld;
if (((random(oppThrowRate) + 1) == oppThrowRate) && (oppThrowTime > oppThrowTimeMax)) {
oppSnowBalls++;
if (oppSnowBalls > oppMaxSnowBalls) {
oppSnowBalls = 1;
}
snowBalls.attachMovie("bosscSnowBallThrow" + oppThrowSelect, "bosscSnowBallThrow" + oppSnowBalls, oppSnowBalls + plyMaxSnowBalls, {_x:oppX, _y:oppY});
snowBalls["bosscSnowBallThrow" + oppSnowBalls].hitValue = oppThrowSelect * 2;
this["oppbossc" + oppNo].oppAnim.gotoAndPlay("throw");
_root.oppbossb1.oppAnim.fff.gotoAndPlay(2);
oppThrowTimeOld = getTimer();
}
};
Frame 1551
var s = 1;
while (s <= oppTotal) {
var i = 1;
while (i <= plyMaxSnowBalls) {
curTarget = eval (("oppbossc" + s) + ".oppAnim.oppTarget");
curOpp = eval (("oppbossc" + s) + ".oppAnim");
curSnowBall = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.plySnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.plySnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.plySnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.plySnowBallThrow" + i) + ".hitValue");
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
var hitSound = new Sound(curOpp);
hitSound.attachSound(curOpp.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(-50);
hitSound.start();
if (curOpp.thisEnergy <= 0) {
curOpp.gotoAndPlay("die");
kills++;
if (kills == oppTotal) {
gotoAndPlay ("finishc3");
}
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (offScreen.hitTest(curSnowBall)) {
curSnowBallShad.nextFrame();
}
}
i++;
}
s++;
}
var i = 1;
while (i <= oppMaxSnowBalls) {
curSnowBall = eval (("snowBalls.bosscSnowBallThrow" + i) + ".snowBall.snowBallMovie");
if (curSnowBall != undefined) {
curSnowBallRemove = eval ("snowBalls.bosscSnowBallThrow" + i);
curSnowBallExp = eval (("snowBalls.bosscSnowBallThrow" + i) + ".snowBall");
curSnowBallShad = eval (("snowBalls.bosscSnowBallThrow" + i) + ".ballShadow");
curSnowBallHit = eval (("snowBalls.bosscSnowBallThrow" + i) + ".hitValue");
if (ply.plyAnim.plyTarget.hitTest(curSnowBall) & (hitPause === false)) {
curSnowBallRemove.stop();
curSnowBallExp.nextFrame();
curSnowBallShad.nextFrame();
if (shieldThrow == true) {
shieldEnergy = shieldEnergy - curSnowBallHit;
ply.plyAnim.pulse.gotoAndPlay("hit");
if (shieldEnergy <= 0) {
powerUpUse = false;
ply.plyAnim.gotoAndPlay("end");
powerUpTimeOld = getTimer();
}
} else if (specialThrow == true) {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishc3");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
} else {
ply.thisEnergy = ply.thisEnergy - curSnowBallHit;
var hitSound = new Sound(ply);
hitSound.attachSound(_root.charSelect + "Hit");
hitSound.setVolume((curSnowBallHit * 7) + 30);
hitSound.setPan(50);
hitSound.start();
if (ply.thisEnergy <= 0) {
powerUpUse = false;
powerUpTimeOld = getTimer();
_root.lives--;
ply.plyAnim.gotoAndPlay("die");
gotoAndPlay ("finishc3");
} else {
ply.plyAnim.energyBarAnim.energyBar._xscale = ply.thisEnergy;
ply.plyAnim.gotoAndPlay("hit");
}
}
}
}
i++;
}
Frame 1552
prevFrame();
play();
Frame 1560
i = 1;
while (i <= oppTotal) {
if (this["oppbossc" + i].killStatus == false) {
this["oppbossc" + i].gotoAndPlay("stop");
}
i++;
}
if (powerUpUse == true) {
ply.plyAnim.gotoAndPlay("walk");
}
levelEnd = true;
plyWithin = false;
ply.gotoAndStop("stop");
Frame 1604
if (_root.lives == 0) {
_root.gameWin = "GAME OVER";
startAnim.gotoAndPlay("lose");
stop();
} else if (kills == oppTotal) {
_root.gameWin = "GAME COMPLETED";
startAnim.gotoAndPlay("win");
stop();
} else {
plyInitialise();
plyExchange();
ply.thisEnergy = 100;
if (powerUpUse == true) {
powerUpUse = false;
powerUpShots = 0;
}
gotoAndPlay ("startc3");
}
Frame 1605
play();
Frame 1609
_root.gotoAndPlay("gameOver");
stop();
Symbol 18 MovieClip Frame 17
removeMovieClip(_parent._parent);
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 20 MovieClip [bosscSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 20 MovieClip [bosscSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 21 MovieClip [bosscSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 21 MovieClip [bosscSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 22 MovieClip [bosscSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 22 MovieClip [bosscSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 23 MovieClip [bosscSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 23 MovieClip [bosscSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 24 MovieClip [bosscSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 24 MovieClip [bosscSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 25 MovieClip [bosscSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 25 MovieClip [bosscSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 26 MovieClip [bosscSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 26 MovieClip [bosscSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 27 MovieClip [bosscSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 27 MovieClip [bosscSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 28 MovieClip [bosscSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 28 MovieClip [bosscSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 29 MovieClip [bosscSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 29 MovieClip [bosscSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 40 MovieClip Frame 26
removeMovieClip(_parent._parent);
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 42 MovieClip [bossaSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 42 MovieClip [bossaSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 43 MovieClip [bossaSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 43 MovieClip [bossaSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 44 MovieClip [bossaSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 44 MovieClip [bossaSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 45 MovieClip [bossaSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 45 MovieClip [bossaSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 46 MovieClip [bossaSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 46 MovieClip [bossaSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 47 MovieClip [bossaSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 47 MovieClip [bossaSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 48 MovieClip [bossaSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 48 MovieClip [bossaSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 49 MovieClip [bossaSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 49 MovieClip [bossaSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 50 MovieClip [bossaSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 50 MovieClip [bossaSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 51 MovieClip [bossaSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 51 MovieClip [bossaSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
play();
Symbol 55 MovieClip Frame 5
stop();
Symbol 64 MovieClip [IceExplosionHit] Frame 10
removeMovieClip(_parent._parent);
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 66 MovieClip [plySnowBallThrow10] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 66 MovieClip [plySnowBallThrow10] Frame 25
removeMovieClip(this);
Symbol 67 MovieClip [plySnowBallThrow5] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 67 MovieClip [plySnowBallThrow5] Frame 74
removeMovieClip(this);
Symbol 68 MovieClip [plySnowBallThrow6] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 68 MovieClip [plySnowBallThrow6] Frame 64
removeMovieClip(this);
Symbol 69 MovieClip [plySnowBallThrow7] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 69 MovieClip [plySnowBallThrow7] Frame 54
removeMovieClip(this);
Symbol 70 MovieClip [plySnowBallThrow8] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 70 MovieClip [plySnowBallThrow8] Frame 44
removeMovieClip(this);
Symbol 71 MovieClip [plySnowBallThrow9] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 71 MovieClip [plySnowBallThrow9] Frame 34
removeMovieClip(this);
Symbol 72 MovieClip [plySnowBallThrow4] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 72 MovieClip [plySnowBallThrow4] Frame 84
removeMovieClip(this);
Symbol 73 MovieClip [plySnowBallThrow3] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 73 MovieClip [plySnowBallThrow3] Frame 94
removeMovieClip(this);
Symbol 74 MovieClip [plySnowBallThrow2] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 74 MovieClip [plySnowBallThrow2] Frame 104
removeMovieClip(this);
Symbol 75 MovieClip [plySnowBallThrow1] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 75 MovieClip [plySnowBallThrow1] Frame 114
removeMovieClip(this);
Symbol 76 MovieClip [oppSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 76 MovieClip [oppSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 77 MovieClip [oppSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 77 MovieClip [oppSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 78 MovieClip [oppSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 78 MovieClip [oppSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 79 MovieClip [oppSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 79 MovieClip [oppSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 80 MovieClip [oppSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 80 MovieClip [oppSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 81 MovieClip [oppSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 81 MovieClip [oppSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 82 MovieClip [oppSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 82 MovieClip [oppSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 83 MovieClip [oppSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 83 MovieClip [oppSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 84 MovieClip [oppSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 84 MovieClip [oppSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 85 MovieClip [oppSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 85 MovieClip [oppSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 114 MovieClip Frame 1
charSelect = _parent.charSelect;
Symbol 114 MovieClip Frame 5
if (_parent._parent._parent.plyWalk == false) {
gotoAndPlay ("stand");
_parent.head.gotoAndStop("stand");
} else {
gotoAndPlay ("walk");
_parent.head.gotoAndPlay("walk");
}
Symbol 114 MovieClip Frame 13
if (_parent._parent._parent.plyWalk == false) {
gotoAndPlay ("stand");
_parent.head.gotoAndStop("stand");
} else {
gotoAndPlay ("walk");
_parent.head.gotoAndPlay("walk");
}
Symbol 118 MovieClip Frame 1
charSelect = _parent.charSelect;
stop();
Symbol 118 MovieClip Frame 25
gotoAndPlay ("walk");
Symbol 121 MovieClip Frame 1
thisPath = eval (_parent._parent._parent._parent);
thisPath.plyThrowPower = 0;
stop();
Symbol 121 MovieClip Frame 5
_parent.gotoAndPlay("on");
Symbol 121 MovieClip Frame 6
if (thisPath.plyThrowPower < 100) {
thisPath.plyThrowPower = thisPath.plyThrowPower + (100 / thisPath.throwPowerBar);
powerBarMovie._yscale = thisPath.plyThrowPower;
}
Symbol 121 MovieClip Frame 7
prevFrame();
play();
Symbol 121 MovieClip Frame 15
_parent.gotoAndPlay("off");
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 6
stop();
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 5
stop();
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 16
stop();
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 17
_parent._parent.plyPowerUpThrow();
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 30
gotoAndStop ("walk");
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 35
play();
_parent._parent.hitPause = true;
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 40
_parent._parent.plyExchange();
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 53
gotoAndStop ("walk");
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 59
_parent.gotoAndStop("die");
Symbol 141 MovieClip [CHARBackPowerUp1] Frame 109
stop();
Symbol 143 MovieClip Frame 14
stop();
Symbol 143 MovieClip Frame 28
stop();
Symbol 145 MovieClip [powerUp5Pickup] Frame 25
gotoAndPlay ("start");
Symbol 145 MovieClip [powerUp5Pickup] Frame 30
_parent._parent.powerUpShots = 1;
_parent._parent.powerUpHit = _parent._parent.powerUp5Hit;
_parent._parent.plyThrowTimePower = 200;
_parent._parent.powerUpDisplay = false;
clouds.gotoAndPlay("out");
Symbol 145 MovieClip [powerUp5Pickup] Frame 50
this.removeMovieClip();
Symbol 155 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
gotoAndPlay(random(14) + 1);
Symbol 157 MovieClip Frame 15
strike.gotoAndStop(random(4) + 1);
Symbol 196 MovieClip Frame 13
stop();
Symbol 196 MovieClip Frame 35
if (cloudStatus == true) {
gotoAndPlay ("loop");
}
Symbol 196 MovieClip Frame 49
trace("END CLOUD");
_parent._parent._parent.powerUpTimeOld = getTimer();
_parent._parent._parent.powerUpUse = false;
_parent._parent._parent.specialThrow = false;
_parent._parent._parent.powerUps.powerUp5.removeMovieClip();
stop();
Symbol 197 MovieClip [powerUp5] Frame 1
clouds.cloudStatus = false;
stop();
Symbol 197 MovieClip [powerUp5] Frame 2
clouds.gotoAndPlay("fire");
clouds.cloudStatus = true;
stop();
Instance of Symbol 196 MovieClip "clouds" in Symbol 197 MovieClip [powerUp5] Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 3;
this._y = this._y - 2;
var s = 1;
while (s <= _parent._parent._parent.oppTotal) {
curTarget = eval (("_parent._parent._parent.opp" + s) + ".oppAnim.oppTarget");
curOpp = eval (("_parent._parent._parent.opp" + s) + ".oppAnim");
curSnowBall = this.plyTarget;
curSnowBallHit = _parent._parent._parent.powerUpHit;
if (curTarget.hitTest(curSnowBall)) {
curOpp.thisEnergy = curOpp.thisEnergy - curSnowBallHit;
if ((curOpp.thisEnergy <= 0) && (curOpp.dieStatus == false)) {
curOpp.dieStatus = true;
curOpp.gotoAndPlay("die");
_parent._parent._parent.kills++;
if (_parent._parent._parent.kills == _parent._parent._parent.oppTotal) {
_parent._parent._parent.gotoAndPlay("finish");
}
trace("KILLS: " + _root.kills);
} else {
curOpp.energyBarAnim.energyBar._xscale = curOpp.thisEnergy;
curOpp.gotoAndPlay("hit");
}
_root.score = _root.score + (curSnowBallHit * 10);
}
if (_parent._parent._parent.offScreen.hitTest(curSnowBall)) {
this.cloudStatus = false;
this.ballShadow.nextFrame();
}
if ((this._x < -250) && (this._y < -250)) {
this.cloudStatus = false;
}
s++;
}
}
Symbol 201 MovieClip [powerUp4Pickup] Frame 16
gotoAndPlay ("start");
Symbol 201 MovieClip [powerUp4Pickup] Frame 20
_parent._parent.powerUpShots = 10;
_parent._parent.powerUpHit = _parent._parent.powerUp4Hit;
_parent._parent.plyThrowTimePower = 100;
_parent._parent.powerUpDisplay = false;
Symbol 201 MovieClip [powerUp4Pickup] Frame 40
this.removeMovieClip();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 204 MovieClip [powerUp4AmmoAnim] Frame 25
removeMovieClip(this);
Symbol 208 MovieClip [powerUp3PickUp] Frame 16
gotoAndPlay ("start");
Symbol 208 MovieClip [powerUp3PickUp] Frame 20
_parent._parent.powerUpShots = 30;
_parent._parent.powerUpHit = _parent._parent.powerUp3Hit;
_parent._parent.plyThrowTimePower = 50;
_parent._parent.powerUpDisplay = false;
Symbol 208 MovieClip [powerUp3PickUp] Frame 40
this.removeMovieClip();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 211 MovieClip [powerUp3AmmoAnim] Frame 25
removeMovieClip(this);
Symbol 220 MovieClip [powerUp2Pickup] Frame 16
gotoAndPlay ("start");
Symbol 220 MovieClip [powerUp2Pickup] Frame 20
_parent._parent.powerUpHit = _parent._parent.powerUp2Hit;
_parent._parent.plyThrowTimePower = 200;
_parent._parent.shieldThrow = true;
_parent._parent.powerUpDisplay = false;
Symbol 220 MovieClip [powerUp2Pickup] Frame 40
this.removeMovieClip();
Symbol 221 MovieClip [powerUp1Pickup] Frame 16
gotoAndPlay ("start");
Symbol 221 MovieClip [powerUp1Pickup] Frame 20
_parent._parent.powerUpShots = 5;
_parent._parent.powerUpHit = _parent._parent.powerUp1Hit;
_parent._parent.plyThrowTimePower = 100;
_parent._parent.powerUpDisplay = false;
Symbol 221 MovieClip [powerUp1Pickup] Frame 40
this.removeMovieClip();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 223 MovieClip [powerUp1AmmoAnim] Frame 30
removeMovieClip(this);
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
_parent._parent.specialThrow = true;
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 5
energyBar._xscale = _parent.thisEnergy;
stop();
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 10
_parent._parent.shieldThrow = true;
_parent._parent.powerUpShots--;
_parent._parent.specialThrowWait = true;
this.attachMovie("powerUp5", "powerUp5", this.getNextHighestDepth(), {_x:this._x, _y:this._y});
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 20
stop();
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 21
_parent._parent.ply.plyAnim.powerUp5.removeMovieClip();
_parent._parent.powerUps.attachMovie("powerUp5", "powerUp5", _parent._parent.getNextHighestDepth(), {_x:_parent._parent.ply._x, _y:_parent._parent.ply._y});
_parent._parent.powerUps.powerUp5.nextFrame();
_parent._parent.shieldThrow = false;
_parent._parent.specialThrow = true;
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 26
_parent._parent.plyExchange();
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 38
gotoAndStop ("walk");
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 44
_parent.gotoAndStop("die");
Symbol 224 MovieClip [CHARBackPowerUp5] Frame 94
stop();
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 15
stop();
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 20
_parent._parent.plyPowerUpThrow();
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 29
gotoAndStop ("walk");
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 35
_parent._parent.hitPause = true;
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 40
_parent._parent.plyExchange();
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 53
gotoAndStop ("walk");
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 59
_parent.gotoAndStop("die");
Symbol 228 MovieClip [CHARBackPowerUp4] Frame 109
stop();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 15
stop();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 20
_parent._parent.plyPowerUpThrow();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 22
_parent._parent.plyPowerUpThrow();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 24
_parent._parent.plyPowerUpThrow();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 26
_parent._parent.plyPowerUpThrow();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 28
_parent._parent.plyPowerUpThrow();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 29
gotoAndPlay ("fire");
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 35
gotoAndStop ("walk");
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 40
_parent._parent.hitPause = true;
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 45
_parent._parent.plyExchange();
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 63
gotoAndStop ("walk");
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 69
_parent.gotoAndStop("die");
Symbol 263 MovieClip [CHARBackPowerUp3] Frame 119
stop();
Symbol 266 MovieClip Frame 1
if (energyBar._xscale > 0) {
energyBar._xscale = _parent._parent._parent.shieldEnergy;
}
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 15
stop();
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 26
stop();
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 27
_parent._parent.plyStandardThrow();
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 29
gotoAndStop ("walk");
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 35
_parent._parent.hitPause = true;
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 40
_parent._parent.shieldEnergy = 100;
Symbol 267 MovieClip [CHARBackPowerUp2] Frame 48
_parent._parent.shieldThrow = false;
_parent._parent.plyExchange();
Symbol 268 MovieClip [CHARBack] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
_parent._parent.specialThrowWait = false;
_parent._parent.hitPause = false;
Symbol 268 MovieClip [CHARBack] Frame 5
stop();
Symbol 268 MovieClip [CHARBack] Frame 16
stop();
Symbol 268 MovieClip [CHARBack] Frame 17
_parent._parent.plyStandardThrow();
Symbol 268 MovieClip [CHARBack] Frame 19
gotoAndStop ("walk");
Symbol 268 MovieClip [CHARBack] Frame 33
gotoAndStop ("walk");
Symbol 268 MovieClip [CHARBack] Frame 39
_parent.gotoAndStop("die");
Symbol 268 MovieClip [CHARBack] Frame 89
stop();
Symbol 284 MovieClip Frame 75
removeMovieClip(_parent._parent);
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 286 MovieClip [bossSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 286 MovieClip [bossSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 287 MovieClip [bossSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 287 MovieClip [bossSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 288 MovieClip [bossSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 288 MovieClip [bossSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 289 MovieClip [bossSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 289 MovieClip [bossSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 290 MovieClip [bossSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 290 MovieClip [bossSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 291 MovieClip [bossSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 291 MovieClip [bossSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 292 MovieClip [bossSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 292 MovieClip [bossSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 293 MovieClip [bossSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 293 MovieClip [bossSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 294 MovieClip [bossSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 294 MovieClip [bossSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 295 MovieClip [bossSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 295 MovieClip [bossSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 296 MovieClip [cable_interfaceblue] Frame 1
#initclip 3
Interface = function () {
var sockets = this.sockets;
var obj = this;
var id = 0;
var cable;
for (var s in sockets) {
var socket = ((sockets[s] = eval (sockets[s])));
for (var s in sockets) {
if (!sockets[s].connected_by) {
sockets[s].to = "";
sockets[s].cable_id = "";
}
}
socket.watch("connected_to", function (id, oldVal, newVal) {
this.to = newVal._name;
return(newVal);
});
socket.connected_by = null;
socket.connected_to = null;
socket.onEnterFrame = function () {
if (this.connected_by) {
cable = this.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == this) {
cable.s0 = Mouse;
}
delete this.connected_by;
this = this.connected_to;
delete this.connected_to;
} else {
var colors = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, this, Mouse, colors[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
for (var c in this) {
if (this[c] instanceof MovieClip) {
var cable_mc = this[c];
cable_mc.swapDepths(cable.cable_mc);
}
}
};
p.Cable = function (main_clip, s0, s1, col, size, id) {
this.s0 = s0;
this.s1 = s1;
this.id = id;
var darken = (((col >> 16) | ((((col >> 8) & 255) * 0.6) << 8)) | ((col & 255) * 0.6));
var nodesNum = 6;
var ten = 5;
var rel = 0.7;
var gr = 4;
var cable_mc = ((this.cable_mc = main_clip.createEmptyMovieClip("cable" + id, id)));
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossc1._x;
var sy = main_clip._parent.oppbossc1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossc1._x;
var ty = main_clip._parent.oppbossc1._y;
}
var nodes = [];
var i = 0;
while (i < nodesNum) {
nodes[i] = {x:sx + (((tx - sx) / (nodesNum + 1)) * (i + 1)), y:sy + (((ty - sy) / (nodesNum + 1)) * (i + 1))};
i++;
}
var plug0 = cable_mc.attachMovie("plug", "plug0", 0, {_x:sx, _y:sy});
plug0.nextFrame();
var plug1 = cable_mc.attachMovie("plug", "plug1", 5);
var obj = this;
var d_mc;
var s_mc;
var o_mc;
cable_mc.render = function () {
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
d_mc = this.createEmptyMovieClip("d_mc", 2);
s_mc = this.createEmptyMovieClip("s_mc", 3);
o_mc = this.createEmptyMovieClip("o_mc", 4);
var s0 = obj.s0;
var s1 = obj.s1;
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossc1._x;
var sy = main_clip._parent.oppbossc1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossc1._x;
var ty = main_clip._parent.oppbossc1._y;
}
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var nextnode = ((a < (nodesNum - 1)) ? (nodes[a + 1]) : ({x:tx, y:ty}));
var vx = node.vx;
var vy = node.vy;
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var n_x = nextnode.x;
var n_y = nextnode.y;
(vx = vx + ((p_x - a_x) / ten));
(vy = vy + ((p_y - a_y) / ten));
(vx = vx + ((n_x - a_x) / ten));
(vy = vy + ((n_y - a_y) / ten));
vy = vy + gr;
(vx = vx * rel);
(vy = vy * rel);
(node.x = a_x + vx);
(node.y = a_y + vy);
plug0._x = sx;
plug0._y = sy;
plug1._x = tx;
plug1._y = ty;
node.vx = vx;
node.vy = vy;
var nearVal = 0.005;
if ((((((!(s0 === Mouse)) && (!(s1 === Mouse))) && (vx < nearVal)) && (vx > (-nearVal))) && (vy < nearVal)) && (vy > (-nearVal))) {
delete this.onEnterFrame;
}
}
o_mc.lineStyle(size, darken, 100);
d_mc.lineStyle(size * 1.2, 0, 100);
var val = 1.9;
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var last = (a == (nodesNum - 1));
if (last) {
var plug_rel_x = (((a_x + p_x) / 2) - plug1._x);
var plug_rel_y = (((a_y + p_y) / 2) - plug1._y);
}
if (((((a_x + p_x) / 2) + val) > a_x) && ((((a_x + p_x) / 2) - val) < a_x)) {
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
continue;
}
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
}
plug1.mask._rotation = (Math.atan2(plug_rel_y, plug_rel_x) * 180) / 3.14;
d_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
s_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
o_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
};
this.remove = function () {
delete cable_mc.onEnterFrame;
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
plug0.removeMovieClip();
plug1.removeMovieClip();
cable_mc.removeMovieClip();
};
this.onConnecting = function () {
plug1.nextFrame();
plug1.swapDepths(1);
};
this.onSwitchPlugs = function () {
plug0.swapDepths(5);
plug0.prevFrame();
plug1.swapDepths(0);
var tp = plug0;
plug0 = plug1;
plug1 = tp;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interfaceblue", Interface);
#endinitclip
Symbol 297 MovieClip [cable_interfacegreen] Frame 1
#initclip 1
Interface = function () {
var sockets = this.sockets;
var obj = this;
var id = 0;
var cable;
for (var s in sockets) {
var socket = ((sockets[s] = eval (sockets[s])));
for (var s in sockets) {
if (!sockets[s].connected_by) {
sockets[s].to = "";
sockets[s].cable_id = "";
}
}
socket.watch("connected_to", function (id, oldVal, newVal) {
this.to = newVal._name;
return(newVal);
});
socket.connected_by = null;
socket.connected_to = null;
socket.onEnterFrame = function () {
if (this.connected_by) {
cable = this.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == this) {
cable.s0 = Mouse;
}
delete this.connected_by;
this = this.connected_to;
delete this.connected_to;
} else {
var colors = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, this, Mouse, colors[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
for (var c in this) {
if (this[c] instanceof MovieClip) {
var cable_mc = this[c];
cable_mc.swapDepths(cable.cable_mc);
}
}
};
p.Cable = function (main_clip, s0, s1, col, size, id) {
this.s0 = s0;
this.s1 = s1;
this.id = id;
var darken = (((((col >> 13) * 0.6) << 134 /* shift 6 */) | ((((col >> 8) & 255) * 0.6) << 8)) | ((col & 255) * 0.6));
var nodesNum = 6;
var ten = 5;
var rel = 0.7;
var gr = 4;
var cable_mc = ((this.cable_mc = main_clip.createEmptyMovieClip("cable" + id, id)));
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossb1._x;
var sy = main_clip._parent.oppbossb1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossb1._x;
var ty = main_clip._parent.oppbossb1._y;
}
var nodes = [];
var i = 0;
while (i < nodesNum) {
nodes[i] = {x:sx + (((tx - sx) / (nodesNum + 1)) * (i + 1)), y:sy + (((ty - sy) / (nodesNum + 1)) * (i + 1))};
i++;
}
var plug0 = cable_mc.attachMovie("plug", "plug0", 0, {_x:sx, _y:sy});
plug0.nextFrame();
var plug1 = cable_mc.attachMovie("plug", "plug1", 5);
var obj = this;
var d_mc;
var s_mc;
var o_mc;
cable_mc.render = function () {
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
d_mc = this.createEmptyMovieClip("d_mc", 2);
s_mc = this.createEmptyMovieClip("s_mc", 3);
o_mc = this.createEmptyMovieClip("o_mc", 4);
var s0 = obj.s0;
var s1 = obj.s1;
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossb1._x;
var sy = main_clip._parent.oppbossb1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossb1._x;
var ty = main_clip._parent.oppbossb1._y;
}
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var nextnode = ((a < (nodesNum - 1)) ? (nodes[a + 1]) : ({x:tx, y:ty}));
var vx = node.vx;
var vy = node.vy;
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var n_x = nextnode.x;
var n_y = nextnode.y;
(vx = vx + ((p_x - a_x) / ten));
(vy = vy + ((p_y - a_y) / ten));
(vx = vx + ((n_x - a_x) / ten));
(vy = vy + ((n_y - a_y) / ten));
vy = vy + gr;
(vx = vx * rel);
(vy = vy * rel);
(node.x = a_x + vx);
(node.y = a_y + vy);
plug0._x = sx;
plug0._y = sy;
plug1._x = tx;
plug1._y = ty;
node.vx = vx;
node.vy = vy;
var nearVal = 0.005;
if ((((((!(s0 === Mouse)) && (!(s1 === Mouse))) && (vx < nearVal)) && (vx > (-nearVal))) && (vy < nearVal)) && (vy > (-nearVal))) {
delete this.onEnterFrame;
}
}
o_mc.lineStyle(size, darken, 100);
d_mc.lineStyle(size * 1.2, 0, 100);
var val = 1.9;
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var last = (a == (nodesNum - 1));
if (last) {
var plug_rel_x = (((a_x + p_x) / 2) - plug1._x);
var plug_rel_y = (((a_y + p_y) / 2) - plug1._y);
}
if (((((a_x + p_x) / 2) + val) > a_x) && ((((a_x + p_x) / 2) - val) < a_x)) {
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
continue;
}
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
}
plug1.mask._rotation = (Math.atan2(plug_rel_y, plug_rel_x) * 180) / 3.14;
d_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
s_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
o_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
};
this.remove = function () {
delete cable_mc.onEnterFrame;
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
plug0.removeMovieClip();
plug1.removeMovieClip();
cable_mc.removeMovieClip();
};
this.onConnecting = function () {
plug1.nextFrame();
plug1.swapDepths(1);
};
this.onSwitchPlugs = function () {
plug0.swapDepths(5);
plug0.prevFrame();
plug1.swapDepths(0);
var tp = plug0;
plug0 = plug1;
plug1 = tp;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interfacegreen", Interface);
#endinitclip
Symbol 298 MovieClip [cable_interface] Frame 1
#initclip 2
Interface = function () {
var sockets = this.sockets;
var obj = this;
var id = 0;
var cable;
for (var s in sockets) {
var socket = ((sockets[s] = eval (sockets[s])));
for (var s in sockets) {
if (!sockets[s].connected_by) {
sockets[s].to = "";
sockets[s].cable_id = "";
}
}
socket.watch("connected_to", function (id, oldVal, newVal) {
this.to = newVal._name;
return(newVal);
});
socket.connected_by = null;
socket.connected_to = null;
socket.onEnterFrame = function () {
if (this.connected_by) {
cable = this.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == this) {
cable.s0 = Mouse;
}
delete this.connected_by;
this = this.connected_to;
delete this.connected_to;
} else {
var colors = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, this, Mouse, colors[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
for (var c in this) {
if (this[c] instanceof MovieClip) {
var cable_mc = this[c];
cable_mc.swapDepths(cable.cable_mc);
}
}
};
p.Cable = function (main_clip, s0, s1, col, size, id) {
this.s0 = s0;
this.s1 = s1;
this.id = id;
var darken = (((((col >> 16) * 0.6) << 16) | ((((col >> 8) & 255) * 0.6) << 8)) | ((col & 255) * 0.6));
var nodesNum = 6;
var ten = 5;
var rel = 0.7;
var gr = 4;
var cable_mc = ((this.cable_mc = main_clip.createEmptyMovieClip("cable" + id, id)));
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossa1._x;
var sy = main_clip._parent.oppbossa1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossa1._x;
var ty = main_clip._parent.oppbossa1._y;
}
var nodes = [];
var i = 0;
while (i < nodesNum) {
nodes[i] = {x:sx + (((tx - sx) / (nodesNum + 1)) * (i + 1)), y:sy + (((ty - sy) / (nodesNum + 1)) * (i + 1))};
i++;
}
var plug0 = cable_mc.attachMovie("plug", "plug0", 0, {_x:sx, _y:sy});
plug0.nextFrame();
var plug1 = cable_mc.attachMovie("plug", "plug1", 5);
var obj = this;
var d_mc;
var s_mc;
var o_mc;
cable_mc.render = function () {
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
d_mc = this.createEmptyMovieClip("d_mc", 2);
s_mc = this.createEmptyMovieClip("s_mc", 3);
o_mc = this.createEmptyMovieClip("o_mc", 4);
var s0 = obj.s0;
var s1 = obj.s1;
if (!(s0 === Mouse)) {
var sx = s0._x;
var sy = s0._y;
} else {
var sx = main_clip._parent.oppbossa1._x;
var sy = main_clip._parent.oppbossa1._y;
}
if (!(s1 === Mouse)) {
var tx = s1._x;
var ty = s1._y;
} else {
var tx = main_clip._parent.oppbossa1._x;
var ty = main_clip._parent.oppbossa1._y;
}
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var nextnode = ((a < (nodesNum - 1)) ? (nodes[a + 1]) : ({x:tx, y:ty}));
var vx = node.vx;
var vy = node.vy;
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var n_x = nextnode.x;
var n_y = nextnode.y;
(vx = vx + ((p_x - a_x) / ten));
(vy = vy + ((p_y - a_y) / ten));
(vx = vx + ((n_x - a_x) / ten));
(vy = vy + ((n_y - a_y) / ten));
vy = vy + gr;
(vx = vx * rel);
(vy = vy * rel);
(node.x = a_x + vx);
(node.y = a_y + vy);
plug0._x = sx;
plug0._y = sy;
plug1._x = tx;
plug1._y = ty;
node.vx = vx;
node.vy = vy;
var nearVal = 0.005;
if ((((((!(s0 === Mouse)) && (!(s1 === Mouse))) && (vx < nearVal)) && (vx > (-nearVal))) && (vy < nearVal)) && (vy > (-nearVal))) {
delete this.onEnterFrame;
}
}
o_mc.lineStyle(size, darken, 100);
d_mc.lineStyle(size * 1.2, 0, 100);
var val = 1.9;
for (var a in nodes) {
var node = nodes[a];
var a = Number(a);
var prevnode = ((a > 0) ? (nodes[a - 1]) : ({x:sx, y:sy}));
var a_x = node.x;
var a_y = node.y;
var p_x = prevnode.x;
var p_y = prevnode.y;
var last = (a == (nodesNum - 1));
if (last) {
var plug_rel_x = (((a_x + p_x) / 2) - plug1._x);
var plug_rel_y = (((a_y + p_y) / 2) - plug1._y);
}
if (((((a_x + p_x) / 2) + val) > a_x) && ((((a_x + p_x) / 2) - val) < a_x)) {
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
lineTo((a_x + p_x) / 2, (a_y + p_y) / 2);
}
continue;
}
with (d_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (s_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
with (o_mc) {
if (last) {
moveTo(tx, ty);
}
curveTo(a_x, a_y, (a_x + p_x) / 2, (a_y + p_y) / 2);
}
}
plug1.mask._rotation = (Math.atan2(plug_rel_y, plug_rel_x) * 180) / 3.14;
d_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
s_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
o_mc.curveTo((sx + a_x) / 2, (sy + a_y) / 2, sx, sy);
};
this.remove = function () {
delete cable_mc.onEnterFrame;
d_mc.removeMovieClip();
s_mc.removeMovieClip();
o_mc.removeMovieClip();
plug0.removeMovieClip();
plug1.removeMovieClip();
cable_mc.removeMovieClip();
};
this.onConnecting = function () {
plug1.nextFrame();
plug1.swapDepths(1);
};
this.onSwitchPlugs = function () {
plug0.swapDepths(5);
plug0.prevFrame();
plug1.swapDepths(0);
var tp = plug0;
plug0 = plug1;
plug1 = tp;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interface", Interface);
#endinitclip
Symbol 301 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 338 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 32
stop();
Symbol 351 Button
on (release) {
_root.play();
}
Symbol 358 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 365 MovieClip Frame 1
difX = _parent[PA]._x - this._x;
difY = _parent[PA]._y - this._y;
this._x = this._x + (difX / 2);
this._y = this._y + (difY / 2);
angle = Math.atan2(difX, difY) / 0.01745329;
this._rotation = -angle;
Symbol 365 MovieClip Frame 2
prevFrame();
play();
Symbol 367 MovieClip Frame 1
c = 0;
while (c < 20) {
duplicateMovieClip ("point", "p" + c, 100 - c);
this["p" + c].PA = "p" + (c - 1);
this["p" + c].shape.gotoAndStop(c + 1);
c++;
}
p0.PA = "follow";
point._visible = false;
Instance of Symbol 366 MovieClip "follow" in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
RADIANS = 0.017;
}
onClipEvent (enterFrame) {
xDif = _parent._xmouse - this._x;
yDif = _parent._ymouse - this._y;
oldTAngle = newTAngle;
newTAngle = Math.floor(Math.atan2(xDif, yDif) / RADIANS);
if ((oldTAngle < (newTAngle - 180)) && (rotations > -1)) {
rotations--;
} else if (((newTAngle + 180) < oldTAngle) && (rotations < 1)) {
rotations++;
}
TargetAngle = newTAngle + (360 * rotations);
if (targetAngle < angle) {
angleAdd = angleAdd - 0.5;
} else if (angle < targetAngle) {
angleAdd = angleAdd + 0.5;
}
count = count + 10;
angle = angle + (angleAdd + (10 * Math.sin(count * RADIANS)));
if ((angle < (TargetAngle + 30)) && ((TargetAngle - 30) < angle)) {
angleAdd = angleAdd / 2;
}
this._rotation = -angle;
Vx = 20 * Math.sin(angle * RADIANS);
Vy = 20 * Math.cos(angle * RADIANS);
this._x = this._x + Vx;
this._y = this._y + Vy;
_parent.targetAngle = Math.atan2(xDif, yDif) * RADIANS;
_parent.angle = angle;
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 10
stop();
Symbol 383 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip "btn" in Symbol 383 MovieClip Frame 1
onClipEvent (load) {
num = 1;
}
on (rollOver) {
this.gotoAndPlay("s1");
if ((_root.link != num) && (_root.animation == 1)) {
_root.animation = 0;
_root.link_prev = _root.link;
_root.mc.menu["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
_root.mc.pages.play();
}
}
on (releaseOutside, rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 378 MovieClip "btn" in Symbol 383 MovieClip Frame 2
onClipEvent (load) {
num = 2;
}
on (rollOver) {
this.gotoAndPlay("s1");
if ((_root.link != num) && (_root.animation == 1)) {
_root.animation = 0;
_root.link_prev = _root.link;
_root.mc.menu["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
_root.mc.pages.play();
}
}
on (releaseOutside, rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 378 MovieClip "btn" in Symbol 383 MovieClip Frame 3
onClipEvent (load) {
num = 3;
}
on (rollOver) {
this.gotoAndPlay("s1");
if ((_root.link != num) && (_root.animation == 1)) {
_root.animation = 0;
_root.link_prev = _root.link;
_root.mc.menu["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
_root.mc.pages.play();
}
}
on (releaseOutside, rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 378 MovieClip "btn" in Symbol 383 MovieClip Frame 4
onClipEvent (load) {
num = 4;
}
on (rollOver) {
this.gotoAndPlay("s1");
if ((_root.link != num) && (_root.animation == 1)) {
_root.animation = 0;
_root.link_prev = _root.link;
_root.mc.menu["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
_root.mc.pages.play();
}
}
on (releaseOutside, rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 378 MovieClip "btn" in Symbol 383 MovieClip Frame 5
onClipEvent (load) {
num = 5;
}
on (rollOver) {
this.gotoAndPlay("s1");
if ((_root.link != num) && (_root.animation == 1)) {
_root.animation = 0;
_root.link_prev = _root.link;
_root.mc.menu["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
_root.mc.pages.play();
}
}
on (releaseOutside, rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 386 Button
on (press) {
startDrag (this, false, 0, line._x, 100, line._x);
}
on (release, releaseOutside) {
stopDrag();
}
Instance of Symbol 387 MovieClip "dragger" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_x = _parent.startPos;
}
onClipEvent (enterFrame) {
_parent.myValue = _x;
xPos = _parent.myValue + "%";
}
Symbol 393 MovieClip Frame 31
gotoAndPlay ("boucle");
Symbol 395 Button
on (release) {
_root.play();
}
Symbol 405 Button
on (release) {
gotoAndStop (6);
}
Symbol 407 Button
on (release) {
gotoAndStop (1);
}
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 6
stop();
Symbol 413 Button
on (release) {
tellTarget (_root) {
page = page - 10;
if (page < 0) {
page = 0;
}
loadScores();
ScoreText.Next._visible = true;
};
if (_root.page < 5) {
_visible = false;
}
}
Symbol 415 Button
on (release) {
tellTarget (_root) {
page = page + 10;
if (page > maxScores) {
page = maxScores;
}
loadScores();
ScoreText.Last._visible = true;
};
if (_root.page > (_root.maxScores - 20)) {
_visible = false;
}
}
Symbol 417 MovieClip Frame 1
stop();
Instance of Symbol 414 MovieClip "Last" in Symbol 417 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 441 MovieClip Frame 1
var c = new LoadVars();
c.pgame = "killthedragons";
c.ppass = "xersfdfsd";
var i = new LoadVars();
c.sendAndLoad("http://www.freegamesjungle.com/scores/getscore.php", i, "POST");
i.onLoad = function () {
name1 = i.name1;
score1 = i.score1;
name2 = i.name2;
score2 = i.score2;
name3 = i.name3;
score3 = i.score3;
name4 = i.name4;
score4 = i.score4;
name5 = i.name5;
score5 = i.score5;
name6 = i.name6;
score6 = i.score6;
name7 = i.name7;
score7 = i.score7;
name8 = i.name8;
score8 = i.score8;
name9 = i.name9;
score9 = i.score9;
name10 = i.name10;
score10 = i.score10;
_root.ScoreText.gotoAndStop(2);
};
stop();
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 5
function loadScores() {
Scores.rank = "";
i = 1;
while (i < 11) {
Scores["nameText" + i] = Scores["name" + (i + page)].toUpperCase();
Scores["scoreText" + i] = Scores["score" + (i + page)];
Scores.rank = Scores.rank + (String(i + page) + ".\n");
i++;
}
}
page = 0;
maxScores = 20000;
i = 1;
while (i <= maxScores) {
Scores["name" + i] = "...";
Scores["score" + i] = "0";
i++;
}
_root.Poster.game = "kill_dragons";
tellTarget ("Poster") {
loadVariables (_root.scoresURL, _root.Scores, "POST");
};
Instance of Symbol 441 MovieClip "Scores" in Symbol 442 MovieClip Frame 5
onClipEvent (data) {
_root.ScoreText.gotoAndStop(2);
_root.loadScores();
}
Symbol 479 MovieClip Frame 1
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 2
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 3
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 4
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 5
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 6
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 7
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 8
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 9
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 10
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 11
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 12
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 13
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 14
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 15
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 16
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 17
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 18
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 19
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 20
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 21
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 22
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 23
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 24
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 25
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 26
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 27
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 28
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 29
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 30
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 479 MovieClip Frame 32
stop();
_root.animation = 1;
Symbol 480 MovieClip Frame 1
i = 1;
while (i < (totalballs + 1)) {
removeMovieClip("ball" + i);
i++;
}
totalballs = 5;
_root.as_flag = 1;
Instance of Symbol 383 MovieClip "ball" in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
name = substring(_name, 5, 2);
this.gotoAndStop(name);
x = 6.28 * (name / _root.mc.totalballs);
}
onClipEvent (enterFrame) {
if (_root.as_flag == 1) {
x = x + _root.mc.xspeed;
cosX = Math.cos(x);
sinX = Math.sin(x);
_x = ((cosX * _root.mc.xRadius) + _root.mc.centerstageX);
scale = (sinX * _root.mc.zradius) + 100;
_xscale = scale;
_yscale = scale;
y = (sinX * _root.mc.zradius) - 30;
_y = ((((_root.mc.yspeed * y) / 4) + _root.mc.centerstageY) + 300);
this.swapDepths((sinX + 1) * 100);
updateAfterEvent();
}
}
Instance of Symbol 384 MovieClip "mouse" in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.mc.xspeed = (_x - _root.mc.centerstageX) / 4500;
_root.mc.yspeed = (_y - _root.mc.centerstageY) / 95;
_x = (_x + (_xmouse / 20));
_y = (_y + (_ymouse / 10));
updateAfterEvent();
}
Instance of Symbol 388 MovieClip "xRadiusSlider" in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
startPos = 150;
}
onClipEvent (enterFrame) {
_root.mc.xRadius = Math.round(myValue) + 75;
}
Instance of Symbol 388 MovieClip "zRadiusSlider" in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
startPos = 55;
}
onClipEvent (enterFrame) {
_root.mc.zRadius = Math.round(myValue) + 25;
}
Instance of Symbol 479 MovieClip "pages" in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(109);
this.gotoAndStop("s0");
}
Symbol 480 MovieClip Frame 2
stagewidth = 500;
stageheight = 280;
centerstageX = stagewidth / 2;
centerstageY = stageheight / 2;
i = 1;
while (i < (totalballs + 1)) {
duplicateMovieClip ("ball", "ball" + i, i);
i++;
}
ball._visible = 0;
stop();
Symbol 488 Button
on (release) {
_root.gotoAndPlay(199);
}
Symbol 495 Button
on (release, keyPress "<Enter>") {
if (_root.score > 5000) {
_root.Poster.name = newName;
_root.Poster.company = newCompany;
_root.Poster.email = newEmail;
_root.Poster.score = _root.score;
x = new LoadVars();
x.pgame = "killthedragons";
x.pname = newName.toLowerCase();
x.pscore = int(_root.score);
x.ppass = "xersfdfsd";
x.sendAndLoad("http://www.freegamesjungle.com/scores/score.php", x, "POST");
}
_root.play();
}
Symbol 501 Button
on (release) {
_root.gotoAndPlay(199);
}
Symbol 505 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 567 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 567 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 567 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 567 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 567 MovieClip Frame 70
stop();
Symbol 568 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 568 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 568 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 568 MovieClip Frame 4
prevFrame();
play();
Symbol 568 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 568 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 568 MovieClip Frame 7
prevFrame();
play();
Symbol 568 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 568 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 568 MovieClip Frame 12
prevFrame();
play();
Symbol 568 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 568 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 568 MovieClip Frame 17
prevFrame();
play();
Symbol 568 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 568 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 568 MovieClip Frame 31
stop();
Symbol 571 MovieClip Frame 1
thisEnergy = 100;
Symbol 571 MovieClip Frame 2
stop();
Symbol 571 MovieClip Frame 10
stop();
Symbol 571 MovieClip Frame 15
ply.gotoAndPlay("end");
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
play();
Symbol 589 MovieClip Frame 106
_parent.gotoAndPlay("play1");
Symbol 589 MovieClip Frame 107
stop();
Symbol 589 MovieClip Frame 110
play();
Symbol 589 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 589 MovieClip Frame 145
play();
Symbol 589 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
play();
Symbol 600 MovieClip Frame 106
_parent.gotoAndPlay("play2");
Symbol 600 MovieClip Frame 107
stop();
Symbol 600 MovieClip Frame 110
play();
Symbol 600 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 600 MovieClip Frame 145
play();
Symbol 600 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 2
play();
Symbol 603 MovieClip Frame 106
_parent.gotoAndPlay("play3");
Symbol 603 MovieClip Frame 107
stop();
Symbol 603 MovieClip Frame 110
play();
Symbol 603 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 603 MovieClip Frame 145
play();
Symbol 603 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 2
play();
Symbol 606 MovieClip Frame 106
_parent.gotoAndPlay("play4");
Symbol 606 MovieClip Frame 107
stop();
Symbol 606 MovieClip Frame 110
play();
Symbol 606 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 606 MovieClip Frame 145
play();
Symbol 606 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 612 MovieClip Frame 1
this.hitArea = this.hit_area;
this.hit_area._visible = false;
Symbol 649 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 688 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 688 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 688 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 688 MovieClip Frame 70
stop();
Symbol 689 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 689 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 689 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 689 MovieClip Frame 4
prevFrame();
play();
Symbol 689 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 689 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 689 MovieClip Frame 7
prevFrame();
play();
Symbol 689 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 689 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 689 MovieClip Frame 12
prevFrame();
play();
Symbol 689 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 689 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 689 MovieClip Frame 17
prevFrame();
play();
Symbol 689 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 689 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 689 MovieClip Frame 31
stop();
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 2
play();
Symbol 690 MovieClip Frame 106
_parent.gotoAndPlay("playb1");
Symbol 690 MovieClip Frame 107
stop();
Symbol 690 MovieClip Frame 110
play();
Symbol 690 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 690 MovieClip Frame 145
play();
Symbol 690 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 718 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 718 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 718 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 718 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 718 MovieClip Frame 70
stop();
Symbol 719 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 719 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 719 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 719 MovieClip Frame 4
prevFrame();
play();
Symbol 719 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 719 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 719 MovieClip Frame 7
prevFrame();
play();
Symbol 719 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 719 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 719 MovieClip Frame 12
prevFrame();
play();
Symbol 719 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 719 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 719 MovieClip Frame 17
prevFrame();
play();
Symbol 719 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 719 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 719 MovieClip Frame 31
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
play();
Symbol 720 MovieClip Frame 106
_parent.gotoAndPlay("play1a");
Symbol 720 MovieClip Frame 107
stop();
Symbol 720 MovieClip Frame 110
play();
Symbol 720 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 720 MovieClip Frame 145
play();
Symbol 720 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 2
play();
Symbol 725 MovieClip Frame 106
_parent.gotoAndPlay("play2a");
Symbol 725 MovieClip Frame 107
stop();
Symbol 725 MovieClip Frame 110
play();
Symbol 725 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 725 MovieClip Frame 145
play();
Symbol 725 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 2
play();
Symbol 728 MovieClip Frame 106
_parent.gotoAndPlay("play3a");
Symbol 728 MovieClip Frame 107
stop();
Symbol 728 MovieClip Frame 110
play();
Symbol 728 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 728 MovieClip Frame 145
play();
Symbol 728 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 2
play();
Symbol 731 MovieClip Frame 106
_parent.gotoAndPlay("play4a");
Symbol 731 MovieClip Frame 107
stop();
Symbol 731 MovieClip Frame 110
play();
Symbol 731 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 731 MovieClip Frame 145
play();
Symbol 731 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 785 MovieClip Frame 26
removeMovieClip(_parent._parent);
stop();
Symbol 786 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 786 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 786 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 786 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 786 MovieClip Frame 70
stop();
Symbol 787 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 787 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 787 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 787 MovieClip Frame 4
prevFrame();
play();
Symbol 787 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 787 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 787 MovieClip Frame 7
prevFrame();
play();
Symbol 787 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 787 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 787 MovieClip Frame 12
prevFrame();
play();
Symbol 787 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 787 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 787 MovieClip Frame 17
prevFrame();
play();
Symbol 787 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 787 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 787 MovieClip Frame 31
stop();
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 2
play();
Symbol 788 MovieClip Frame 106
_parent.gotoAndPlay("playb2");
Symbol 788 MovieClip Frame 107
stop();
Symbol 788 MovieClip Frame 110
play();
Symbol 788 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 788 MovieClip Frame 145
play();
Symbol 788 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 827 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 827 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 827 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 827 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 827 MovieClip Frame 70
stop();
Symbol 828 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 828 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 828 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 828 MovieClip Frame 4
prevFrame();
play();
Symbol 828 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 828 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 828 MovieClip Frame 7
prevFrame();
play();
Symbol 828 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 828 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 828 MovieClip Frame 12
prevFrame();
play();
Symbol 828 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 828 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 828 MovieClip Frame 17
prevFrame();
play();
Symbol 828 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 828 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 828 MovieClip Frame 31
stop();
Symbol 829 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 2
play();
Symbol 829 MovieClip Frame 106
_parent.gotoAndPlay("play1c");
Symbol 829 MovieClip Frame 107
stop();
Symbol 829 MovieClip Frame 110
play();
Symbol 829 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 829 MovieClip Frame 145
play();
Symbol 829 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 2
play();
Symbol 834 MovieClip Frame 106
_parent.gotoAndPlay("play2c");
Symbol 834 MovieClip Frame 107
stop();
Symbol 834 MovieClip Frame 110
play();
Symbol 834 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 834 MovieClip Frame 145
play();
Symbol 834 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 837 MovieClip Frame 1
stop();
Symbol 837 MovieClip Frame 2
play();
Symbol 837 MovieClip Frame 106
_parent.gotoAndPlay("play3c");
Symbol 837 MovieClip Frame 107
stop();
Symbol 837 MovieClip Frame 110
play();
Symbol 837 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 837 MovieClip Frame 145
play();
Symbol 837 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 2
play();
Symbol 840 MovieClip Frame 106
_parent.gotoAndPlay("play4c");
Symbol 840 MovieClip Frame 107
stop();
Symbol 840 MovieClip Frame 110
play();
Symbol 840 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 840 MovieClip Frame 145
play();
Symbol 840 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 888 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 888 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 888 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 888 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 888 MovieClip Frame 70
stop();
Symbol 889 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 889 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 889 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 889 MovieClip Frame 4
prevFrame();
play();
Symbol 889 MovieClip Frame 5
play();
moveStatus = true;
oppXstart = this._x;
oppYstart = this._y;
oppXnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppXstart;
oppYnew = (random(_parent.oppMoveAmount * 2) - _parent.oppMoveAmount) + oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 889 MovieClip Frame 6
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("pause");
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 889 MovieClip Frame 7
prevFrame();
play();
Symbol 889 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 889 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 889 MovieClip Frame 12
prevFrame();
play();
Symbol 889 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 889 MovieClip Frame 16
oppThrow();
oppX = this._x;
oppY = this._y;
differenceX = oppXnew - oppX;
differenceY = oppYnew - oppY;
if ((Math.abs(differenceX) < 1) && (Math.abs(differenceY) < 1)) {
gotoAndPlay ("start");
_parent.oppMove--;
}
this._x = this._x + (differenceX / _parent.oppSpeed);
this._y = this._y + (differenceY / _parent.oppSpeed);
Symbol 889 MovieClip Frame 17
prevFrame();
play();
Symbol 889 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 889 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 889 MovieClip Frame 31
stop();
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 2
play();
Symbol 890 MovieClip Frame 106
_parent.gotoAndPlay("playc3");
Symbol 890 MovieClip Frame 107
stop();
Symbol 890 MovieClip Frame 110
play();
Symbol 890 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 890 MovieClip Frame 145
play();
Symbol 890 MovieClip Frame 175
_parent.nextFrame();
play();