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 447 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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 306 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) {
var _local1 = this;
_local1.duration = duration;
_local1.target = end;
_local1.start = mc[property];
_local1.mc = mc;
_local1.property = property;
}
function setTweens() {
var _local1 = 400;
var _local2 = random(maxDir) + _local1;
var _local3 = random(maxDir) + _local1;
xtween = new Tween(oppbossa1, "_x", random(300), _local2);
ytween = new Tween(oppbossa1, "_y", random(400), _local3);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
var _local1 = this;
if (_local1.dontAnimate) {
}
if (_local1.startTime == null) {
_local1.startTime = getTimer();
}
var _local3 = getTimer() - _local1.startTime;
var _local2 = _local3 / _local1.duration;
_local2 = (_local2 * _local2) * (3 - (2 * _local2));
_local1.mc[_local1.property] = _local1.start + ((_local1.target - _local1.start) * _local2);
if (_local3 >= _local1.duration) {
_local1.onEnd();
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 305 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) {
var _local1 = this;
_local1.duration = duration;
_local1.target = end;
_local1.start = mc[property];
_local1.mc = mc;
_local1.property = property;
}
function setTweens() {
var _local1 = 400;
var _local2 = random(maxDir) + _local1;
var _local3 = random(maxDir) + _local1;
xtween = new Tween(oppbossb1, "_x", random(300), _local2);
ytween = new Tween(oppbossb1, "_y", random(400), _local3);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
var _local1 = this;
if (_local1.dontAnimate) {
}
if (_local1.startTime == null) {
_local1.startTime = getTimer();
}
var _local3 = getTimer() - _local1.startTime;
var _local2 = _local3 / _local1.duration;
_local2 = (_local2 * _local2) * (3 - (2 * _local2));
_local1.mc[_local1.property] = _local1.start + ((_local1.target - _local1.start) * _local2);
if (_local3 >= _local1.duration) {
_local1.onEnd();
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 ("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 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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 ("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 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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 ("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 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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 ("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 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 304 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) {
var _local1 = this;
_local1.duration = duration;
_local1.target = end;
_local1.start = mc[property];
_local1.mc = mc;
_local1.property = property;
}
function setTweens() {
var _local1 = 400;
var _local2 = random(maxDir) + _local1;
var _local3 = random(maxDir) + _local1;
xtween = new Tween(oppbossc1, "_x", random(300), _local2);
ytween = new Tween(oppbossc1, "_y", random(400), _local3);
xtween.onEnd = function () {
setTweens();
};
}
Tween.prototype.step = function () {
var _local1 = this;
if (_local1.dontAnimate) {
}
if (_local1.startTime == null) {
_local1.startTime = getTimer();
}
var _local3 = getTimer() - _local1.startTime;
var _local2 = _local3 / _local1.duration;
_local2 = (_local2 * _local2) * (3 - (2 * _local2));
_local1.mc[_local1.property] = _local1.start + ((_local1.target - _local1.start) * _local2);
if (_local3 >= _local1.duration) {
_local1.onEnd();
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume((plyThrowSelect * 7) + 30);
_local1.setPan(50);
_local1.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 _local1 = new Sound(ply);
_local1.attachSound("plyThrow");
_local1.setVolume(100);
_local1.setPan(50);
_local1.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 23 MovieClip Frame 17
removeMovieClip(_parent._parent);
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 25 MovieClip [bosscSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 25 MovieClip [bosscSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 26 MovieClip [bosscSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 26 MovieClip [bosscSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 27 MovieClip [bosscSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 27 MovieClip [bosscSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 28 MovieClip [bosscSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 28 MovieClip [bosscSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 29 MovieClip [bosscSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 29 MovieClip [bosscSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 30 MovieClip [bosscSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 30 MovieClip [bosscSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 31 MovieClip [bosscSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 31 MovieClip [bosscSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 32 MovieClip [bosscSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 32 MovieClip [bosscSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 33 MovieClip [bosscSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 33 MovieClip [bosscSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 34 MovieClip [bosscSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 34 MovieClip [bosscSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 47 MovieClip Frame 26
removeMovieClip(_parent._parent);
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 49 MovieClip [bossaSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 49 MovieClip [bossaSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 50 MovieClip [bossaSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 50 MovieClip [bossaSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 51 MovieClip [bossaSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 51 MovieClip [bossaSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 52 MovieClip [bossaSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 52 MovieClip [bossaSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 53 MovieClip [bossaSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 53 MovieClip [bossaSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 54 MovieClip [bossaSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 54 MovieClip [bossaSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 55 MovieClip [bossaSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 55 MovieClip [bossaSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 56 MovieClip [bossaSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 56 MovieClip [bossaSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 57 MovieClip [bossaSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 57 MovieClip [bossaSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 58 MovieClip [bossaSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 58 MovieClip [bossaSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
play();
Symbol 62 MovieClip Frame 5
stop();
Symbol 71 MovieClip [IceExplosionHit] Frame 10
removeMovieClip(_parent._parent);
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 73 MovieClip [plySnowBallThrow10] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 73 MovieClip [plySnowBallThrow10] Frame 25
removeMovieClip(this);
Symbol 74 MovieClip [plySnowBallThrow5] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 74 MovieClip [plySnowBallThrow5] Frame 74
removeMovieClip(this);
Symbol 75 MovieClip [plySnowBallThrow6] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 75 MovieClip [plySnowBallThrow6] Frame 64
removeMovieClip(this);
Symbol 76 MovieClip [plySnowBallThrow7] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 76 MovieClip [plySnowBallThrow7] Frame 54
removeMovieClip(this);
Symbol 77 MovieClip [plySnowBallThrow8] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 77 MovieClip [plySnowBallThrow8] Frame 44
removeMovieClip(this);
Symbol 78 MovieClip [plySnowBallThrow9] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 78 MovieClip [plySnowBallThrow9] Frame 34
removeMovieClip(this);
Symbol 79 MovieClip [plySnowBallThrow4] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 79 MovieClip [plySnowBallThrow4] Frame 84
removeMovieClip(this);
Symbol 80 MovieClip [plySnowBallThrow3] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 80 MovieClip [plySnowBallThrow3] Frame 94
removeMovieClip(this);
Symbol 81 MovieClip [plySnowBallThrow2] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 81 MovieClip [plySnowBallThrow2] Frame 104
removeMovieClip(this);
Symbol 82 MovieClip [plySnowBallThrow1] Frame 1
var throwSound = new Sound(this);
throwSound.attachSound("plyThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 82 MovieClip [plySnowBallThrow1] Frame 114
removeMovieClip(this);
Symbol 83 MovieClip [oppSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 83 MovieClip [oppSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 84 MovieClip [oppSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 84 MovieClip [oppSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 85 MovieClip [oppSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 85 MovieClip [oppSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 86 MovieClip [oppSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 86 MovieClip [oppSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 87 MovieClip [oppSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 87 MovieClip [oppSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 88 MovieClip [oppSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 88 MovieClip [oppSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 89 MovieClip [oppSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 89 MovieClip [oppSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 90 MovieClip [oppSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 90 MovieClip [oppSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 91 MovieClip [oppSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 91 MovieClip [oppSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 92 MovieClip [oppSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 92 MovieClip [oppSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 121 MovieClip Frame 1
charSelect = _parent.charSelect;
Symbol 121 MovieClip Frame 5
if (_parent._parent._parent.plyWalk == false) {
gotoAndPlay ("stand");
_parent.head.gotoAndStop("stand");
} else {
gotoAndPlay ("walk");
_parent.head.gotoAndPlay("walk");
}
Symbol 121 MovieClip Frame 13
if (_parent._parent._parent.plyWalk == false) {
gotoAndPlay ("stand");
_parent.head.gotoAndStop("stand");
} else {
gotoAndPlay ("walk");
_parent.head.gotoAndPlay("walk");
}
Symbol 125 MovieClip Frame 1
charSelect = _parent.charSelect;
stop();
Symbol 125 MovieClip Frame 25
gotoAndPlay ("walk");
Symbol 129 MovieClip Frame 1
thisPath = eval (_parent._parent._parent._parent);
thisPath.plyThrowPower = 0;
stop();
Symbol 129 MovieClip Frame 5
_parent.gotoAndPlay("on");
Symbol 129 MovieClip Frame 6
if (thisPath.plyThrowPower < 100) {
thisPath.plyThrowPower = thisPath.plyThrowPower + (100 / thisPath.throwPowerBar);
powerBarMovie._yscale = thisPath.plyThrowPower;
}
Symbol 129 MovieClip Frame 7
prevFrame();
play();
Symbol 129 MovieClip Frame 15
_parent.gotoAndPlay("off");
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 6
stop();
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 5
stop();
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 16
stop();
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 17
_parent._parent.plyPowerUpThrow();
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 30
gotoAndStop ("walk");
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 35
play();
_parent._parent.hitPause = true;
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 40
_parent._parent.plyExchange();
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 53
gotoAndStop ("walk");
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 59
_parent.gotoAndStop("die");
Symbol 149 MovieClip [CHARBackPowerUp1] Frame 109
stop();
Symbol 151 MovieClip Frame 14
stop();
Symbol 151 MovieClip Frame 28
stop();
Symbol 153 MovieClip [powerUp5Pickup] Frame 25
gotoAndPlay ("start");
Symbol 153 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 153 MovieClip [powerUp5Pickup] Frame 50
this.removeMovieClip();
Symbol 163 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
gotoAndPlay(random(14) + 1);
Symbol 165 MovieClip Frame 15
strike.gotoAndStop(random(4) + 1);
Symbol 204 MovieClip Frame 13
stop();
Symbol 204 MovieClip Frame 35
if (cloudStatus == true) {
gotoAndPlay ("loop");
}
Symbol 204 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 205 MovieClip [powerUp5] Frame 1
clouds.cloudStatus = false;
stop();
Symbol 205 MovieClip [powerUp5] Frame 2
clouds.gotoAndPlay("fire");
clouds.cloudStatus = true;
stop();
Instance of Symbol 204 MovieClip "clouds" in Symbol 205 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 209 MovieClip [powerUp4Pickup] Frame 16
gotoAndPlay ("start");
Symbol 209 MovieClip [powerUp4Pickup] Frame 20
_parent._parent.powerUpShots = 10;
_parent._parent.powerUpHit = _parent._parent.powerUp4Hit;
_parent._parent.plyThrowTimePower = 100;
_parent._parent.powerUpDisplay = false;
Symbol 209 MovieClip [powerUp4Pickup] Frame 40
this.removeMovieClip();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 212 MovieClip [powerUp4AmmoAnim] Frame 25
removeMovieClip(this);
Symbol 216 MovieClip [powerUp3PickUp] Frame 16
gotoAndPlay ("start");
Symbol 216 MovieClip [powerUp3PickUp] Frame 20
_parent._parent.powerUpShots = 30;
_parent._parent.powerUpHit = _parent._parent.powerUp3Hit;
_parent._parent.plyThrowTimePower = 50;
_parent._parent.powerUpDisplay = false;
Symbol 216 MovieClip [powerUp3PickUp] Frame 40
this.removeMovieClip();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 219 MovieClip [powerUp3AmmoAnim] Frame 25
removeMovieClip(this);
Symbol 228 MovieClip [powerUp2Pickup] Frame 16
gotoAndPlay ("start");
Symbol 228 MovieClip [powerUp2Pickup] Frame 20
_parent._parent.powerUpHit = _parent._parent.powerUp2Hit;
_parent._parent.plyThrowTimePower = 200;
_parent._parent.shieldThrow = true;
_parent._parent.powerUpDisplay = false;
Symbol 228 MovieClip [powerUp2Pickup] Frame 40
this.removeMovieClip();
Symbol 229 MovieClip [powerUp1Pickup] Frame 16
gotoAndPlay ("start");
Symbol 229 MovieClip [powerUp1Pickup] Frame 20
_parent._parent.powerUpShots = 5;
_parent._parent.powerUpHit = _parent._parent.powerUp1Hit;
_parent._parent.plyThrowTimePower = 100;
_parent._parent.powerUpDisplay = false;
Symbol 229 MovieClip [powerUp1Pickup] Frame 40
this.removeMovieClip();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
stop();
Symbol 231 MovieClip [powerUp1AmmoAnim] Frame 30
removeMovieClip(this);
Symbol 232 MovieClip [CHARBackPowerUp5] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
_parent._parent.specialThrow = true;
Symbol 232 MovieClip [CHARBackPowerUp5] Frame 5
energyBar._xscale = _parent.thisEnergy;
stop();
Symbol 232 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 232 MovieClip [CHARBackPowerUp5] Frame 20
stop();
Symbol 232 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 232 MovieClip [CHARBackPowerUp5] Frame 26
_parent._parent.plyExchange();
Symbol 232 MovieClip [CHARBackPowerUp5] Frame 38
gotoAndStop ("walk");
Symbol 232 MovieClip [CHARBackPowerUp5] Frame 44
_parent.gotoAndStop("die");
Symbol 232 MovieClip [CHARBackPowerUp5] Frame 94
stop();
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 15
stop();
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 20
_parent._parent.plyPowerUpThrow();
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 29
gotoAndStop ("walk");
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 35
_parent._parent.hitPause = true;
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 40
_parent._parent.plyExchange();
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 53
gotoAndStop ("walk");
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 59
_parent.gotoAndStop("die");
Symbol 236 MovieClip [CHARBackPowerUp4] Frame 109
stop();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 15
stop();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 20
_parent._parent.plyPowerUpThrow();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 22
_parent._parent.plyPowerUpThrow();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 24
_parent._parent.plyPowerUpThrow();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 26
_parent._parent.plyPowerUpThrow();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 28
_parent._parent.plyPowerUpThrow();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 29
gotoAndPlay ("fire");
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 35
gotoAndStop ("walk");
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 40
_parent._parent.hitPause = true;
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 45
_parent._parent.plyExchange();
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 63
gotoAndStop ("walk");
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 69
_parent.gotoAndStop("die");
Symbol 271 MovieClip [CHARBackPowerUp3] Frame 119
stop();
Symbol 274 MovieClip Frame 1
if (energyBar._xscale > 0) {
energyBar._xscale = _parent._parent._parent.shieldEnergy;
}
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 15
stop();
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 26
stop();
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 27
_parent._parent.plyStandardThrow();
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 29
gotoAndStop ("walk");
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 35
_parent._parent.hitPause = true;
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 40
_parent._parent.shieldEnergy = 100;
Symbol 275 MovieClip [CHARBackPowerUp2] Frame 48
_parent._parent.shieldThrow = false;
_parent._parent.plyExchange();
Symbol 276 MovieClip [CHARBack] Frame 1
energyBarAnim.energyBar._xscale = _parent.thisEnergy;
_parent._parent.specialThrowWait = false;
_parent._parent.hitPause = false;
Symbol 276 MovieClip [CHARBack] Frame 5
stop();
Symbol 276 MovieClip [CHARBack] Frame 16
stop();
Symbol 276 MovieClip [CHARBack] Frame 17
_parent._parent.plyStandardThrow();
Symbol 276 MovieClip [CHARBack] Frame 19
gotoAndStop ("walk");
Symbol 276 MovieClip [CHARBack] Frame 33
gotoAndStop ("walk");
Symbol 276 MovieClip [CHARBack] Frame 39
_parent.gotoAndStop("die");
Symbol 276 MovieClip [CHARBack] Frame 89
stop();
Symbol 292 MovieClip Frame 75
removeMovieClip(_parent._parent);
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 294 MovieClip [bossSnowBallThrow10] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 294 MovieClip [bossSnowBallThrow10] Frame 30
removeMovieClip(this);
Symbol 295 MovieClip [bossSnowBallThrow9] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 295 MovieClip [bossSnowBallThrow9] Frame 40
removeMovieClip(this);
Symbol 296 MovieClip [bossSnowBallThrow8] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 296 MovieClip [bossSnowBallThrow8] Frame 50
removeMovieClip(this);
Symbol 297 MovieClip [bossSnowBallThrow7] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 297 MovieClip [bossSnowBallThrow7] Frame 60
removeMovieClip(this);
Symbol 298 MovieClip [bossSnowBallThrow6] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 298 MovieClip [bossSnowBallThrow6] Frame 70
removeMovieClip(this);
Symbol 299 MovieClip [bossSnowBallThrow5] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 299 MovieClip [bossSnowBallThrow5] Frame 80
removeMovieClip(this);
Symbol 300 MovieClip [bossSnowBallThrow4] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 300 MovieClip [bossSnowBallThrow4] Frame 90
removeMovieClip(this);
Symbol 301 MovieClip [bossSnowBallThrow3] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 301 MovieClip [bossSnowBallThrow3] Frame 100
removeMovieClip(this);
Symbol 302 MovieClip [bossSnowBallThrow2] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 302 MovieClip [bossSnowBallThrow2] Frame 110
removeMovieClip(this);
Symbol 303 MovieClip [bossSnowBallThrow1] Frame 7
var throwSound = new Sound(this);
throwSound.attachSound("oppThrow");
throwSound.setVolume(hitValue * 10);
throwSound.start();
Symbol 303 MovieClip [bossSnowBallThrow1] Frame 120
removeMovieClip(this);
Symbol 304 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 () {
var _local1 = this;
if (_local1.connected_by) {
cable = _local1.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == _local1) {
cable.s0 = Mouse;
}
delete _local1.connected_by;
_local1 = _local1.connected_to;
delete _local1.connected_to;
} else {
var _local2 = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, _local1, Mouse, _local2[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
var _local2 = this;
for (var _local3 in _local2) {
if (_local2[_local3] instanceof MovieClip) {
var _local1 = _local2[_local3];
_local1.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 _local1 = plug0;
plug0 = plug1;
plug1 = _local1;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interfaceblue", Interface);
#endinitclip
Symbol 305 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 () {
var _local1 = this;
if (_local1.connected_by) {
cable = _local1.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == _local1) {
cable.s0 = Mouse;
}
delete _local1.connected_by;
_local1 = _local1.connected_to;
delete _local1.connected_to;
} else {
var _local2 = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, _local1, Mouse, _local2[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
var _local2 = this;
for (var _local3 in _local2) {
if (_local2[_local3] instanceof MovieClip) {
var _local1 = _local2[_local3];
_local1.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 _local1 = plug0;
plug0 = plug1;
plug1 = _local1;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interfacegreen", Interface);
#endinitclip
Symbol 306 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 () {
var _local1 = this;
if (_local1.connected_by) {
cable = _local1.connected_by;
cable.onSwitchPlugs();
cable.cable_mc.onEnterFrame = cable.cable_mc.render;
cable.cable_mc.swapDepths(id);
if (cable.s0 == _local1) {
cable.s0 = Mouse;
}
delete _local1.connected_by;
_local1 = _local1.connected_to;
delete _local1.connected_to;
} else {
var _local2 = [16250195, 12188824, 10010364, 16551502];
cable = new obj.Cable(obj, _local1, Mouse, _local2[3], 26);
}
};
}
};
var p = ((Interface.prototype = new MovieClip()));
p.zSort = function (cable) {
var _local2 = this;
for (var _local3 in _local2) {
if (_local2[_local3] instanceof MovieClip) {
var _local1 = _local2[_local3];
_local1.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 _local1 = plug0;
plug0 = plug1;
plug1 = _local1;
};
cable_mc.onEnterFrame = cable_mc.render;
cable_mc.onEnterFrame();
};
Object.registerClass("cable_interface", Interface);
#endinitclip
Symbol 309 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 345 Button
on (release) {
_root.play();
}
Symbol 359 Button
on (release) {
getURL ("http://www.startgames.ws", "_blank");
}
Symbol 364 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 371 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 371 MovieClip Frame 2
prevFrame();
play();
Symbol 373 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 372 MovieClip "follow" in Symbol 373 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 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 10
stop();
Symbol 387 MovieClip Frame 1
stop();
Instance of Symbol 382 MovieClip "btn" in Symbol 387 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 382 MovieClip "btn" in Symbol 387 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 382 MovieClip "btn" in Symbol 387 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 382 MovieClip "btn" in Symbol 387 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 382 MovieClip "btn" in Symbol 387 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 390 Button
on (press) {
startDrag (this, false, 0, line._x, 100, line._x);
}
on (release, releaseOutside) {
stopDrag();
}
Instance of Symbol 391 MovieClip "dragger" in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
_x = _parent.startPos;
}
onClipEvent (enterFrame) {
_parent.myValue = _x;
xPos = _parent.myValue + "%";
}
Symbol 397 MovieClip Frame 31
gotoAndPlay ("boucle");
Symbol 399 Button
on (release) {
_root.play();
}
Symbol 409 Button
on (release) {
gotoAndStop (6);
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
play();
Symbol 413 MovieClip Frame 5
stop();
Symbol 414 Button
on (release) {
gotoAndStop (1);
}
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 6
stop();
Symbol 419 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 421 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 423 MovieClip Frame 1
stop();
Instance of Symbol 420 MovieClip "Last" in Symbol 423 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 447 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 448 MovieClip Frame 1
stop();
Symbol 448 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 447 MovieClip "Scores" in Symbol 448 MovieClip Frame 5
onClipEvent (data) {
_root.ScoreText.gotoAndStop(2);
_root.loadScores();
}
Symbol 485 MovieClip Frame 1
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 2
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 3
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 4
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 5
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 6
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 7
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 8
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 9
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 10
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 11
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 12
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 13
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 14
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 15
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 16
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 17
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 18
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 19
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 20
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 21
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 22
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 23
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 24
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 25
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 26
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 27
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 28
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 29
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 30
pages.gotoAndStop(_root.link_prev);
pages2.gotoAndStop(_root.link);
Symbol 485 MovieClip Frame 32
stop();
_root.animation = 1;
Symbol 486 MovieClip Frame 1
i = 1;
while (i < (totalballs + 1)) {
removeMovieClip("ball" + i);
i++;
}
totalballs = 5;
_root.as_flag = 1;
Instance of Symbol 387 MovieClip "ball" in Symbol 486 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 388 MovieClip "mouse" in Symbol 486 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 392 MovieClip "xRadiusSlider" in Symbol 486 MovieClip Frame 1
onClipEvent (load) {
startPos = 150;
}
onClipEvent (enterFrame) {
_root.mc.xRadius = Math.round(myValue) + 75;
}
Instance of Symbol 392 MovieClip "zRadiusSlider" in Symbol 486 MovieClip Frame 1
onClipEvent (load) {
startPos = 55;
}
onClipEvent (enterFrame) {
_root.mc.zRadius = Math.round(myValue) + 25;
}
Instance of Symbol 485 MovieClip "pages" in Symbol 486 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(109);
this.gotoAndStop("s0");
}
Symbol 486 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 493 Button
on (release) {
_root.gotoAndPlay(199);
}
Symbol 500 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 506 Button
on (release) {
_root.gotoAndPlay(199);
}
Symbol 510 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 565 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 565 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 565 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 565 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 565 MovieClip Frame 70
stop();
Symbol 566 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 566 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 566 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 566 MovieClip Frame 4
prevFrame();
play();
Symbol 566 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 566 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 566 MovieClip Frame 7
prevFrame();
play();
Symbol 566 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 566 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 566 MovieClip Frame 12
prevFrame();
play();
Symbol 566 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 566 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 566 MovieClip Frame 17
prevFrame();
play();
Symbol 566 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 566 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 566 MovieClip Frame 31
stop();
Symbol 569 MovieClip Frame 1
thisEnergy = 100;
Symbol 569 MovieClip Frame 2
stop();
Symbol 569 MovieClip Frame 10
stop();
Symbol 569 MovieClip Frame 15
ply.gotoAndPlay("end");
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
play();
Symbol 579 MovieClip Frame 106
_parent.gotoAndPlay("play1");
Symbol 579 MovieClip Frame 107
stop();
Symbol 579 MovieClip Frame 110
play();
Symbol 579 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 579 MovieClip Frame 145
play();
Symbol 579 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
play();
Symbol 587 MovieClip Frame 106
_parent.gotoAndPlay("play2");
Symbol 587 MovieClip Frame 107
stop();
Symbol 587 MovieClip Frame 110
play();
Symbol 587 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 587 MovieClip Frame 145
play();
Symbol 587 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
play();
Symbol 590 MovieClip Frame 106
_parent.gotoAndPlay("play3");
Symbol 590 MovieClip Frame 107
stop();
Symbol 590 MovieClip Frame 110
play();
Symbol 590 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 590 MovieClip Frame 145
play();
Symbol 590 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
play();
Symbol 593 MovieClip Frame 106
_parent.gotoAndPlay("play4");
Symbol 593 MovieClip Frame 107
stop();
Symbol 593 MovieClip Frame 110
play();
Symbol 593 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 593 MovieClip Frame 145
play();
Symbol 593 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 599 MovieClip Frame 1
this.hitArea = this.hit_area;
this.hit_area._visible = false;
Symbol 636 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 675 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 675 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 675 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 675 MovieClip Frame 70
stop();
Symbol 676 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 676 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 676 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 676 MovieClip Frame 4
prevFrame();
play();
Symbol 676 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 676 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 676 MovieClip Frame 7
prevFrame();
play();
Symbol 676 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 676 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 676 MovieClip Frame 12
prevFrame();
play();
Symbol 676 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 676 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 676 MovieClip Frame 17
prevFrame();
play();
Symbol 676 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 676 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 676 MovieClip Frame 31
stop();
Symbol 677 MovieClip Frame 1
stop();
Symbol 677 MovieClip Frame 2
play();
Symbol 677 MovieClip Frame 106
_parent.gotoAndPlay("playb1");
Symbol 677 MovieClip Frame 107
stop();
Symbol 677 MovieClip Frame 110
play();
Symbol 677 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 677 MovieClip Frame 145
play();
Symbol 677 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 703 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 703 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 703 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 703 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 703 MovieClip Frame 70
stop();
Symbol 704 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 704 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 704 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 704 MovieClip Frame 4
prevFrame();
play();
Symbol 704 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 704 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 704 MovieClip Frame 7
prevFrame();
play();
Symbol 704 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 704 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 704 MovieClip Frame 12
prevFrame();
play();
Symbol 704 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 704 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 704 MovieClip Frame 17
prevFrame();
play();
Symbol 704 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 704 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 704 MovieClip Frame 31
stop();
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
play();
Symbol 705 MovieClip Frame 106
_parent.gotoAndPlay("play1a");
Symbol 705 MovieClip Frame 107
stop();
Symbol 705 MovieClip Frame 110
play();
Symbol 705 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 705 MovieClip Frame 145
play();
Symbol 705 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 708 MovieClip Frame 1
stop();
Symbol 708 MovieClip Frame 2
play();
Symbol 708 MovieClip Frame 106
_parent.gotoAndPlay("play2a");
Symbol 708 MovieClip Frame 107
stop();
Symbol 708 MovieClip Frame 110
play();
Symbol 708 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 708 MovieClip Frame 145
play();
Symbol 708 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 709 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 2
play();
Symbol 709 MovieClip Frame 106
_parent.gotoAndPlay("play3a");
Symbol 709 MovieClip Frame 107
stop();
Symbol 709 MovieClip Frame 110
play();
Symbol 709 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 709 MovieClip Frame 145
play();
Symbol 709 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 710 MovieClip Frame 1
stop();
Symbol 710 MovieClip Frame 2
play();
Symbol 710 MovieClip Frame 106
_parent.gotoAndPlay("play4a");
Symbol 710 MovieClip Frame 107
stop();
Symbol 710 MovieClip Frame 110
play();
Symbol 710 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 710 MovieClip Frame 145
play();
Symbol 710 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 762 MovieClip Frame 26
removeMovieClip(_parent._parent);
stop();
Symbol 763 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 763 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 763 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 763 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 763 MovieClip Frame 70
stop();
Symbol 764 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 764 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 764 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 764 MovieClip Frame 4
prevFrame();
play();
Symbol 764 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 764 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 764 MovieClip Frame 7
prevFrame();
play();
Symbol 764 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 764 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 764 MovieClip Frame 12
prevFrame();
play();
Symbol 764 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 764 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 764 MovieClip Frame 17
prevFrame();
play();
Symbol 764 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 764 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 764 MovieClip Frame 31
stop();
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
play();
Symbol 765 MovieClip Frame 106
_parent.gotoAndPlay("playb2");
Symbol 765 MovieClip Frame 107
stop();
Symbol 765 MovieClip Frame 110
play();
Symbol 765 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 765 MovieClip Frame 145
play();
Symbol 765 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 796 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 796 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 796 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 796 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 796 MovieClip Frame 70
stop();
Symbol 797 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 37, this._y + 15);
};
stop();
Symbol 797 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 797 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 797 MovieClip Frame 4
prevFrame();
play();
Symbol 797 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 797 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 797 MovieClip Frame 7
prevFrame();
play();
Symbol 797 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 797 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 797 MovieClip Frame 12
prevFrame();
play();
Symbol 797 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 797 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 797 MovieClip Frame 17
prevFrame();
play();
Symbol 797 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 797 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 797 MovieClip Frame 31
stop();
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
play();
Symbol 798 MovieClip Frame 106
_parent.gotoAndPlay("play1c");
Symbol 798 MovieClip Frame 107
stop();
Symbol 798 MovieClip Frame 110
play();
Symbol 798 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 798 MovieClip Frame 145
play();
Symbol 798 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 801 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 2
play();
Symbol 801 MovieClip Frame 106
_parent.gotoAndPlay("play2c");
Symbol 801 MovieClip Frame 107
stop();
Symbol 801 MovieClip Frame 110
play();
Symbol 801 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 801 MovieClip Frame 145
play();
Symbol 801 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 2
play();
Symbol 802 MovieClip Frame 106
_parent.gotoAndPlay("play3c");
Symbol 802 MovieClip Frame 107
stop();
Symbol 802 MovieClip Frame 110
play();
Symbol 802 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 802 MovieClip Frame 145
play();
Symbol 802 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 2
play();
Symbol 803 MovieClip Frame 106
_parent.gotoAndPlay("play4c");
Symbol 803 MovieClip Frame 107
stop();
Symbol 803 MovieClip Frame 110
play();
Symbol 803 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 803 MovieClip Frame 145
play();
Symbol 803 MovieClip Frame 175
_parent.nextFrame();
play();
Symbol 849 MovieClip Frame 1
head.gotoAndStop("stand");
legs.gotoAndStop("stand");
dieStatus = false;
stop();
Symbol 849 MovieClip Frame 14
gotoAndStop ("walk");
Symbol 849 MovieClip Frame 28
gotoAndStop ("walk");
Symbol 849 MovieClip Frame 34
_parent.gotoAndStop("die");
Symbol 849 MovieClip Frame 70
stop();
Symbol 850 MovieClip Frame 1
oppAnim.thisEnergy = 100;
killStatus = false;
oppThrow = function () {
_parent.oppThrow(oppNo, this._x + 87, this._y + 5);
};
stop();
Symbol 850 MovieClip Frame 2
moveStatus = false;
pauseLength = getTimer() + random(_root.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 850 MovieClip Frame 3
oppThrow();
if ((getTimer() >= pauseLength) && (_parent.oppMove < _parent.oppMaxMove)) {
gotoAndPlay ("move");
_parent.oppMove++;
}
Symbol 850 MovieClip Frame 4
prevFrame();
play();
Symbol 850 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 850 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 850 MovieClip Frame 7
prevFrame();
play();
Symbol 850 MovieClip Frame 10
moveStatus = false;
pauseLength = getTimer() + random(_parent.oppPauseLength);
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
Symbol 850 MovieClip Frame 11
play();
oppThrow();
if (getTimer() >= pauseLength) {
gotoAndPlay ("moveBack");
}
Symbol 850 MovieClip Frame 12
prevFrame();
play();
Symbol 850 MovieClip Frame 15
play();
moveStatus = true;
oppXnew = oppXstart;
oppYnew = oppYstart;
oppAnim.legs.gotoAndPlay("walk");
oppAnim.head.gotoAndPlay("walk");
Symbol 850 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 850 MovieClip Frame 17
prevFrame();
play();
Symbol 850 MovieClip Frame 25
if (moveStatus == true) {
_parent.oppMove--;
moveStatus = false;
}
killStatus = true;
oppAnim.gotoAndPlay("fall");
stop();
Symbol 850 MovieClip Frame 30
play();
if (moveStatus == true) {
_parent.oppMove--;
oppAnim.legs.gotoAndStop("stand");
oppAnim.head.gotoAndStop("stand");
moveStatus = false;
}
Symbol 850 MovieClip Frame 31
stop();
Symbol 851 MovieClip Frame 1
stop();
Symbol 851 MovieClip Frame 2
play();
Symbol 851 MovieClip Frame 106
_parent.gotoAndPlay("playc3");
Symbol 851 MovieClip Frame 107
stop();
Symbol 851 MovieClip Frame 110
play();
Symbol 851 MovieClip Frame 140
_parent.nextFrame();
play();
gotoAndStop (1);
Symbol 851 MovieClip Frame 145
play();
Symbol 851 MovieClip Frame 175
_parent.nextFrame();
play();