Instance of Symbol 123 MovieClip in Frame 1
on (keyPress "<Enter>") {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
}
}
Frame 2
MovieClip.prototype.checkOffScreen = function () {
if (this.poeType == "fire") {
if ((((this.getBounds(_root).xMax <= 0) || (this.getBounds(_root).xMin >= 624)) || (this.getBounds(_root).yMax <= 0)) || (this.getBounds(_root).yMin >= 288)) {
this.removeMovieClip();
_root.poeLoadCurrent = _root.poeLoadCurrent - 1;
}
} else {
if (this.getBounds(_root).xMin <= 0) {
this._x = this._x + this.poeSpeed;
this.xMove1 = 1;
} else if (this.getBounds(_root).xMax >= 624) {
this._x = this._x - this.poeSpeed;
this.xMove1 = -1;
}
if (this.getBounds(_root).yMin <= 0) {
this._y = this._y + this.poeSpeed;
this.yMove1 = 1;
} else if (this.getBounds(_root).yMax >= 288) {
this._y = this._y - this.poeSpeed;
this.yMove1 = -1;
}
}
};
MovieClip.prototype.checkOffMap = function () {
if ((this.getBounds(_root).xMin <= 166) && (this.getBounds(_root).yMax >= 242)) {
if (this.getBounds(_root).xMin <= 160) {
this._y = this._y - (this.poeSpeed * 2);
this.yMove1 = -1;
} else if (this.getBounds(_root).yMax >= 248) {
this._x = this._x + (this.poeSpeed * 2);
this.xMove1 = 1;
} else {
this._x = this._x + (this.poeSpeed * 2);
this.xMove1 = 1;
this._y = this._y - (this.poeSpeed * 2);
this.yMove1 = -1;
}
}
if ((this.getBounds(_root).xMax >= 458) && (this.getBounds(_root).yMin <= 70)) {
if (this.getBounds(_root).xMax >= 464) {
this._y = this._y + (this.poeSpeed * 2);
this.yMove1 = 1;
} else if (this.getBounds(_root).yMin <= 64) {
this._x = this._x - (this.poeSpeed * 2);
this.xMove1 = -1;
} else {
this._y = this._y + (this.poeSpeed * 2);
this.yMove1 = 1;
this._x = this._x - (this.poeSpeed * 2);
this.xMove1 = -1;
}
}
};
MovieClip.prototype.checkNetHit = function () {
if (this.hitTest(_root.Link.Nethit)) {
if (this.poeType != "fairy") {
_root.poeLevelCaught = _root.poeLevelCaught + 1;
if ((_root.money + Math.floor(this.poeScore / _root.difficulty)) >= 999) {
_root.money = 999;
} else {
_root.money = _root.money + Math.floor(this.poeScore / _root.difficulty);
}
} else if (this.poeType == "fairy") {
if ((_root.linkHealthMax - _root.linkHealthCurrent) >= 6) {
_root.getFairySound.start(0, 6);
_root.linkHealthCurrent = _root.linkHealthCurrent + 6;
} else if (_root.linkHealthMax > _root.linkHealthCurrent) {
_root.getFairySound.start(0, _root.linkHealthMax - _root.linkHealthCurrent);
_root.linkHealthCurrent = _root.linkHealthMax;
}
_root.linkStamina = 100;
}
_root.score = _root.score + Math.floor((this.poeScore * _root.difficulty) * _root.difficulty);
_root.poeLoadCurrent = _root.poeLoadCurrent - 1;
this.removeMovieClip();
}
};
MovieClip.prototype.checkNetHitShock = function () {
if (this.hitTest(_root.Link.Nethit) && (_root.linkInvincible == false)) {
_root.linkHitSound.start();
_root.linkHealthCurrent = _root.linkHealthCurrent - 1;
_root.linkHit = true;
_root.linkInvincible = true;
trace("You've been hit");
}
};
MovieClip.prototype.checkBoomHit = function () {
if (this.frozen > 0) {
this.frozen = this.frozen - 1;
}
if (this.hitTest(_root.boomerang)) {
this.frozen = 360;
}
};
MovieClip.prototype.poeLoad = function () {
duplicateMovieClip (poeParent, "poe" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadTotal = _root.poeLoadTotal + 1;
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.poe2Load = function () {
duplicateMovieClip (poe2Parent, "poe(2)" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadTotal = _root.poeLoadTotal + 1;
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.poe3Load = function () {
duplicateMovieClip (poe3Parent, "poe(3)" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadTotal = _root.poeLoadTotal + 1;
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.poe4Load = function () {
duplicateMovieClip (poe4Parent, "poe(4)" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadTotal = _root.poeLoadTotal + 1;
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.poe5Load = function () {
duplicateMovieClip (poe5Parent, "poe(5)" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadTotal = _root.poeLoadTotal + 1;
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.fairyLoad = function () {
duplicateMovieClip (fairyParent, "fairy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
};
MovieClip.prototype.poeActivate = function () {
this.gotoAndPlay("spawn");
this._x = Math.random() * 624;
this._y = Math.random() * 288;
this.randomAngle = Math.random() * 2;
this.yMove1 = Math.sin(this.randomAngle * Math.PI);
this.xMove1 = Math.cos(this.randomAngle * Math.PI);
};
MovieClip.prototype.poeDirection = function () {
this.randomAngle = (Math.random() * 2) * Math.PI;
this.randomChance = Math.random() * _root.poeRandom;
if (this.randomChance <= 1) {
this.yMove1 = Math.sin(this.randomAngle);
this.xMove1 = Math.cos(this.randomAngle);
}
if (this.xMove1 < 0) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (this.xMove1 >= 0) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
this._x = this._x + (this.xMove1 * this.poeSpeed);
this._y = this._y + (this.yMove1 * this.poeSpeed);
};
MovieClip.prototype.poe3Direction = function () {
this.moveAngle = Math.atan2((_root.Link._y + 25) - this._y, (_root.Link._x + 25) - this._x);
this.yMove1 = Math.sin(this.moveAngle);
this.xMove1 = Math.cos(this.moveAngle);
if (this.xMove1 < 0) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (this.xMove1 >= 0) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
this._x = this._x + (this.xMove1 * this.poeSpeed);
this._y = this._y + (this.yMove1 * this.poeSpeed);
};
MovieClip.prototype.poeNuke = function () {
this.removeMovieClip();
};
MovieClip.prototype.checkLinkHit = function () {
if (this.hitTest(_root.Link.poeHitArea) && (_root.linkInvincible == false)) {
_root.linkHitSound.start();
_root.linkHealthCurrent = _root.linkHealthCurrent - 1;
_root.linkHit = true;
_root.linkInvincible = true;
trace("You've been hit");
}
};
var menuQuality:String;
var gameQuality:String;
var bgVolume:Number;
var levelSelect:Number;
var money:Number;
var score:Number;
var highScore:Number;
var hsCookie:SharedObject;
var hsCookie.highScore:Number;
var awardText:String;
var poeLevel;
var poeLevelCaught:Number;
var poeRandom:Number;
var poeLoadCurrent:Number;
var poeLoadTotal:Number;
var nuke:Boolean;
var linkSpeed:Number;
var linkHealthCurrent:Number;
var linkHealthMax:Number;
var linkStamina:Number;
var linkSwingCost:Number;
var upgLinkHealth:Number;
var upgLinkSpeed:Number;
var upgNetSpeed:Number;
var upgNetCyclone:Number;
var upgNetMove:Number;
var upgNetSize:Number;
var upgLinkStamina:Number;
levelSelect = 1;
menuQuality = "BEST";
gameQuality = "VARIABLE";
poeLevel = 1;
difficulty = 1;
hsCookie = SharedObject.getLocal("highScore");
if (hsCookie.data.highScore != undefined) {
highScore = hsCookie.data.highScore;
} else {
highScore = 0;
}
_root.bgmusic = new Sound();
_root.netSwing = new Sound();
_root.netSwing.attachSound("net");
_root.linkHitSound = new Sound();
_root.linkHitSound.attachSound("hit");
_root.getFairySound = new Sound();
_root.getFairySound.attachSound("heart");
_root.obtainItemSound = new Sound();
_root.obtainItemSound.attachSound("obtain");
nuke = true;
bgVolume = 50;
_quality = menuQuality;
stop();
Instance of Symbol 123 MovieClip in Frame 2
on (keyPress "<Enter>") {
_root.play();
}
Frame 3
_quality = menuQuality;
awardText = "";
poeLevelCaught = 0;
money = 100;
score = 0;
linkSpeed = 1.5;
linkHealthCurrent = 6;
linkHealthMax = 6;
linkStamina = 100;
linkSwingCost = 15;
poeRandom = 100;
poeLoadCurrent = 0;
poeLoadTotal = 0;
nuke = true;
upgLinkHealth = 0;
upgLinkSpeed = 0;
upgNetSpeed = 0;
upgNetCyclone = 0;
upgNetMove = 0;
upgNetSize = 0;
upgLinkStamina = 0;
stop();
Instance of Symbol 133 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.currentSelection == 0) {
this._x = 84.3;
this._y = 30.3;
} else if (_root.currentSelection == 1) {
this._x = 84.3;
this._y = 63.3;
} else if (_root.currentSelection == 2) {
this._x = 84.3;
this._y = 97.3;
}
}
Instance of Symbol 123 MovieClip in Frame 3
onClipEvent (load) {
_root.currentSelection = 0;
}
on (keyPress "<Enter>") {
if (_root.currentSelection == 0) {
_root.gotoAndStop("Level Screen");
} else if (_root.currentSelection == 1) {
_root.gotoAndStop("Instructions Screen");
} else if (_root.currentSelection == 2) {
_root.gotoAndStop("Options Screen");
}
}
on (keyPress "<Down>") {
if (_root.currentSelection < 2) {
_root.currentSelection = _root.currentSelection + 1;
} else if (_root.currentSelection == 2) {
_root.currentSelection = 0;
}
}
on (keyPress "<Up>") {
if (_root.currentSelection > 0) {
_root.currentSelection = _root.currentSelection - 1;
} else if (_root.currentSelection == 0) {
_root.currentSelection = 2;
}
}
Frame 4
_quality = menuQuality;
stop();
_root.levelSelect = _root.poeLevel;
nuke = true;
Instance of Symbol 123 MovieClip in Frame 4
on (keyPress "<Enter>") {
_root.gotoAndStop("Menu Screen");
}
Frame 5
_quality = menuQuality;
nuke = true;
stop();
Frame 6
_quality = menuQuality;
nuke = true;
stop();
Instance of Symbol 133 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.currentSelection == 0) {
this._xscale = 187.5;
this._yscale = 187.5;
this._x = 189.5;
this._y = 188.5;
} else if (_root.currentSelection == 1) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 79.5;
this._y = 45.5;
} else if (_root.currentSelection == 2) {
this._xscale = 187.5;
this._yscale = 187.5;
this._x = 544.5;
this._y = 45.5;
}
}
Instance of Symbol 123 MovieClip in Frame 6
onClipEvent (load) {
_root.currentSelection = 0;
}
on (keyPress "<Enter>") {
if (_root.currentSelection == 0) {
_root.gotoAndStop("Battle Screen");
} else if (_root.currentSelection == 1) {
_root.gotoAndStop("Upgrade Screen");
}
}
on (keyPress "<Down>") {
if (_root.currentSelection == 0) {
_root.currentSelection = 1;
} else if (_root.currentSelection == 1) {
_root.currentSelection = 0;
}
}
on (keyPress "<Up>") {
if (_root.currentSelection == 1) {
_root.currentSelection = 0;
} else if (_root.currentSelection == 0) {
_root.currentSelection = 1;
}
}
Instance of Symbol 627 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.score > _root.highScore) {
_root.highScore = _root.score;
_root.hsCookie.data.highScore = _root.score;
_root.hsCookie.flush();
}
}
Frame 7
_quality = menuQuality;
nuke = true;
stop();
Instance of Symbol 133 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.currentSelection == 0) {
this._xscale = 187.5;
this._yscale = 187.5;
this._x = 79.5;
this._y = 45.5;
} else if (_root.currentSelection == 1) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 38.5;
this._y = 110.5;
} else if (_root.currentSelection == 2) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 38.5;
this._y = 174.5;
} else if (_root.currentSelection == 3) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 38.5;
this._y = 239.5;
} else if (_root.currentSelection == 4) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 238.4;
this._y = 110.5;
} else if (_root.currentSelection == 5) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 238.4;
this._y = 174.5;
} else if (_root.currentSelection == 6) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 238.4;
this._y = 239.5;
} else if (_root.currentSelection == 7) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 418.4;
this._y = 110.5;
} else if (_root.currentSelection == 8) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 418.4;
this._y = 179.5;
} else if (_root.currentSelection == 9) {
this._xscale = -187.5;
this._yscale = 187.5;
this._x = 418.4;
this._y = 244.5;
}
}
Instance of Symbol 123 MovieClip in Frame 7
on (keyPress "<Enter>") {
if (_root.currentSelection == 0) {
_root.gotoAndStop("Level Screen");
} else if (_root.currentSelection == 1) {
if (_root.money >= _root.upgLinkSpeedCost) {
_root.money = _root.money - _root.upgLinkSpeedCost;
if (_root.upgLinkSpeed < 8) {
_root.upgLinkSpeed = _root.upgLinkSpeed + 1;
}
}
} else if (_root.currentSelection == 2) {
if (_root.money >= _root.upgLinkHealthCost) {
_root.money = _root.money - _root.upgLinkHealthCost;
if (_root.upgLinkHealth < 15) {
_root.upgLinkHealth = _root.upgLinkHealth + 1;
_root.linkHealthCurrent = _root.linkHealthCurrent + 2;
}
}
} else if (_root.currentSelection == 3) {
if (_root.money >= _root.upgNetCycloneCost) {
_root.money = _root.money - _root.upgNetCycloneCost;
if (_root.upgNetCyclone < 3) {
_root.upgNetCyclone = _root.upgNetCyclone + 1;
}
}
} else if (_root.currentSelection == 4) {
if (_root.money >= _root.upgNetSizeCost) {
_root.money = _root.money - _root.upgNetSizeCost;
if (_root.upgNetSize < 8) {
_root.upgNetSize = _root.upgNetSize + 1;
}
}
} else if (_root.currentSelection == 5) {
if (_root.money >= _root.upgNetSpeedCost) {
_root.money = _root.money - _root.upgNetSpeedCost;
if (_root.upgNetSpeed < 4) {
_root.upgNetSpeed = _root.upgNetSpeed + 1;
}
}
} else if (_root.currentSelection == 6) {
if (_root.money >= _root.upgNetMoveCost) {
_root.money = _root.money - _root.upgNetMoveCost;
if (_root.upgNetMove < 1) {
_root.upgNetMove = _root.upgNetMove + 1;
}
}
} else if (_root.currentSelection == 7) {
if (_root.money >= _root.upgLinkHealCost) {
_root.money = _root.money - _root.upgLinkHealCost;
if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.linkHealthCurrent = _root.linkHealthMax;
}
}
} else if (_root.currentSelection == 8) {
if (_root.money >= _root.upgLinkHealHeartCost) {
_root.money = _root.money - _root.upgLinkHealHeartCost;
if ((_root.linkHealthMax - _root.linkHealthCurrent) == 1) {
_root.linkHealthCurrent = _root.linkHealthCurrent + 1;
} else if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.linkHealthCurrent = _root.linkHealthCurrent + 2;
}
}
} else if (_root.currentSelection == 9) {
if (_root.money >= _root.upgLinkStaminaCost) {
_root.money = _root.money - _root.upgLinkStaminaCost;
if (_root.upgLinkStamina < 2) {
_root.upgLinkStamina = _root.upgLinkStamina + 1;
}
}
}
}
on (keyPress "<Down>") {
if ((((_root.currentSelection >= 0) && (_root.currentSelection <= 2)) || ((_root.currentSelection >= 4) && (_root.currentSelection <= 5))) || ((_root.currentSelection >= 7) && (_root.currentSelection <= 8))) {
_root.currentSelection = _root.currentSelection + 1;
} else {
_root.currentSelection = 0;
}
}
on (keyPress "<Up>") {
if ((((_root.currentSelection >= 2) && (_root.currentSelection <= 3)) || ((_root.currentSelection >= 5) && (_root.currentSelection <= 6))) || ((_root.currentSelection >= 8) && (_root.currentSelection <= 9))) {
_root.currentSelection = _root.currentSelection - 1;
} else if (_root.currentSelection == 0) {
_root.currentSelection = 9;
} else {
_root.currentSelection = 0;
}
}
on (keyPress "<Left>") {
if ((_root.currentSelection >= 4) && (_root.currentSelection <= 9)) {
_root.currentSelection = _root.currentSelection - 3;
} else if (_root.currentSelection == 1) {
_root.currentSelection = 7;
} else if (_root.currentSelection == 2) {
_root.currentSelection = 8;
} else if (_root.currentSelection == 3) {
_root.currentSelection = 9;
}
}
on (keyPress "<Right>") {
if ((_root.currentSelection >= 1) && (_root.currentSelection <= 6)) {
_root.currentSelection = _root.currentSelection + 3;
} else if (_root.currentSelection == 7) {
_root.currentSelection = 1;
} else if (_root.currentSelection == 8) {
_root.currentSelection = 2;
} else if (_root.currentSelection == 9) {
_root.currentSelection = 3;
}
}
Instance of Symbol 713 MovieClip in Frame 7
onClipEvent (load) {
checkTextCost = function (currentName, currentText, maxLevel, costExp, costLevel, costBase) {
upgName = _root["upg" + currentName];
if (upgName < maxLevel) {
upgText = "Level " + (upgName + 1);
upgCost = (((upgName * upgName) * costExp) + (upgName * costLevel)) + costBase;
upgCost = Math.round(upgCost / 10) * 10;
if (upgCost < 0) {
upgCost = 0;
} else if (upgCost > 999) {
upgCost = 999;
}
} else if (upgName >= maxLevel) {
upgText = "MAXED";
upgCost = 0;
}
_root[("upg" + currentName) + "Text"] = upgText;
_root[("upg" + currentName) + "Cost"] = upgCost;
_root[("upg" + currentName) + "Icon"].gotoAndStop(upgName + 1);
};
}
onClipEvent (enterFrame) {
checkTextCost("LinkSpeed", "Link's Speed", 8, 2.6, 20, 30);
checkTextCost("LinkHealth", "Link's Health", 6, 3, 20, 30);
_root.linkHealthMax = 6 + (_root.upgLinkHealth * 2);
checkTextCost("NetSpeed", "Net's Speed", 4, 100, 30, 80);
checkTextCost("NetSize", "Net's Size", 8, 2, 70, 50);
checkTextCost("NetCyclone", "Spin Recharge", 3, 120, 120, 200);
checkTextCost("NetMove", "Move With Net", 1, 0, 0, 300);
checkTextCost("LinkStamina", "Stamina Recovery", 2, 0, 200, 200);
if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.upgLinkHealText = ((_root.linkHealthMax - _root.linkHealthCurrent) / 2) + " Heart(s)";
_root.upgLinkHealCost = (_root.linkHealthMax - _root.linkHealthCurrent) * 10;
} else {
_root.upgLinkHealText = "Hearts Full!";
_root.upgLinkHealCost = 0;
}
if ((_root.linkHealthMax - _root.linkHealthCurrent) == 1) {
_root.upgLinkHealHeartText = "1/2 Heart";
_root.upgLinkHealHeartCost = 10;
} else if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.upgLinkHealHeartText = "1 Heart";
_root.upgLinkHealHeartCost = 20;
} else {
_root.upgLinkHealHeartText = "Hearts Full!";
_root.upgLinkHealHeartCost = 0;
}
}
Frame 8
nuke = false;
stop();
Instance of Symbol 725 MovieClip in Frame 8
onClipEvent (load) {
this.gotoAndPlay("Game Music");
}
Instance of Symbol 727 MovieClip in Frame 8
onClipEvent (load) {
if (_root.gameQuality == "VARIABLE") {
_quality = "BEST";
} else {
_quality = _root.gameQuality;
}
_root.poeLoadMax = 200;
poeQual = 0;
}
onClipEvent (enterFrame) {
if (_root.gameQuality == "VARIABLE") {
if (_root.framerate <= 50) {
poeQual = _root.poeLoadCurrent;
if (_quality == "BEST") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
}
}
if ((_root.framerate >= 60) && (_root.poeLoadCurrent <= (poeQual - 10))) {
if (_quality == "BEST") {
poeQual = 0;
} else if (_quality == "HIGH") {
_quality = "BEST";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_root._quality == "LOW") {
_quality = "MEDIUM";
} else {
trace("ERROR: Quality Control");
}
}
}
}
Instance of Symbol 736 MovieClip "boomerangParent" in Frame 8
onClipEvent (load) {
if (this._name != "boomerangParent") {
_root.Link.linkBoom = true;
startPosX = this._x;
startPosY = this._y;
travel = true;
trace(this._name);
} else {
this.stop();
}
}
onClipEvent (unload) {
if (this._name != "boomerangParent") {
_root.Link.linkBoom = false;
_root.Link.netTimer = _root.Link.netTimerAmount;
}
}
onClipEvent (enterFrame) {
if (this._name != "boomerangParent") {
if (this.hitTest(_root.Link.poeHitArea)) {
this.removeMovieClip();
}
if ((Math.abs(this._x - startPosX) >= 120) || (Math.abs(this._y - startPosY) >= 120)) {
travel = false;
}
if (travel == false) {
this.moveAngle = Math.atan2((_root.Link._y + 25) - this._y, (_root.Link._x + 15) - this._x);
this.yMove2 = Math.sin(this.moveAngle);
this.xMove2 = Math.cos(this.moveAngle);
} else {
this.xMove2 = xMove;
this.yMove2 = yMove;
}
this._x = this._x + (xMove2 * 5);
this._y = this._y + (yMove2 * 5);
}
}
Instance of Symbol 95 MovieClip [Link] "Link" in Frame 8
onClipEvent (load) {
linkSpeed = _root.linkSpeed + (_root.upgLinkSpeed / 2);
linkBoom = false;
linkAction = "none";
linkDir = "south";
netTimer = 0;
if (_root.upgNetCyclone <= 0) {
netTimerAmount = 30;
} else if (_root.upgNetCyclone == 1) {
netTimerAmount = 15;
} else if (_root.upgNetCyclone == 2) {
netTimerAmount = 8;
} else {
netTimerAmount = 0;
}
}
onClipEvent (enterFrame) {
if ((((linkAction != "none") && (linkAction != "walk")) && (linkAction != "net")) && (linkAction != "boom")) {
trace("ERROR: linkAction set to " + linkAction);
linkAction = "none";
}
if ((((linkDir != "south") && (linkDir != "west")) && (linkDir != "east")) && (linkDir != "north")) {
trace("ERROR: linkDir set to " + linkDir);
linkDir = "south";
}
if ((_root.upgNetMove == 1) || (((linkAction != "net") && (linkAction != "boom")) && (linkBoom != true))) {
if (Key.isDown(37)) {
if ((linkDir == "west") && (linkAction == "walk")) {
play();
} else if ((linkAction != "net") && (linkAction != "boom")) {
this.gotoAndPlay("Link Walk West");
linkDir = "west";
}
if ((_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMin - linkSpeed, this.Linkhit.getBounds(_root).yMin, true) == false) && (_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMin - linkSpeed, this.Linkhit.getBounds(_root).yMax, true) == false)) {
_x = (_x - linkSpeed);
}
if (linkAction == "none") {
linkAction = "walk";
}
} else if (Key.isDown(39)) {
if ((linkDir == "east") && (linkAction == "walk")) {
play();
} else if ((linkAction != "net") && (linkAction != "boom")) {
this.gotoAndPlay("Link Walk East");
linkDir = "east";
}
if ((_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMax + linkSpeed, this.Linkhit.getBounds(_root).yMin, true) == false) && (_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMax + linkSpeed, this.Linkhit.getBounds(_root).yMax, true) == false)) {
_x = (_x + linkSpeed);
}
if (linkAction == "none") {
linkAction = "walk";
}
}
if (Key.isDown(38)) {
if ((linkDir == "north") && (linkAction == "walk")) {
play();
} else if ((((linkAction != "net") && (linkAction != "boom")) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
this.gotoAndPlay("Link Walk North");
linkDir = "north";
}
if ((_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMin, this.Linkhit.getBounds(_root).yMin - linkSpeed, true) == false) && (_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMax, this.Linkhit.getBounds(_root).yMin - linkSpeed, true) == false)) {
_y = (_y - linkSpeed);
}
if (linkAction == "none") {
linkAction = "walk";
}
} else if (Key.isDown(40)) {
if ((linkDir == "south") && (linkAction == "walk")) {
play();
} else if ((((linkAction != "net") && (linkAction != "boom")) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
this.gotoAndPlay("Link Walk South");
linkDir = "south";
}
if ((_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMin, this.Linkhit.getBounds(_root).yMax + linkSpeed, true) == false) && (_root.BGHit.hitTest(this.Linkhit.getBounds(_root).xMax, this.Linkhit.getBounds(_root).yMax + linkSpeed, true) == false)) {
_y = (_y + linkSpeed);
}
if (linkAction == "none") {
linkAction = "walk";
}
}
if (((((Key.isDown(37) == false) && (Key.isDown(39) == false)) && (Key.isDown(38) == false)) && (Key.isDown(40) == false)) && (linkAction == "walk")) {
linkAction = "none";
if (linkDir == "south") {
this.gotoAndStop("Link Stand South");
} else if (linkDir == "north") {
this.gotoAndStop("Link Stand North");
} else if (linkDir == "east") {
this.gotoAndStop("Link Stand East");
} else if (linkDir == "west") {
this.gotoAndStop("Link Stand West");
} else {
this.gotoAndStop("Link Stand East");
trace("ERROR: Link stand direction");
}
}
if (netTimer > 0) {
netTimer = netTimer - 1;
}
if (((((Key.isDown(90) && (linkAction != "net")) && (linkAction != "boom")) && (linkBoom != true)) && (netTimer <= 0)) && (_root.linkStamina >= _root.linkSwingCost)) {
linkAction = "net";
_root.netSwing.start();
_root.linkStamina = _root.linkStamina - _root.linkSwingCost;
if (linkDir == "south") {
this.gotoAndPlay("Link Net South");
} else if (linkDir == "west") {
this.gotoAndPlay("Link Net West");
} else if (linkDir == "north") {
this.gotoAndPlay("Link Net North");
} else if (linkDir == "east") {
this.gotoAndPlay("Link Net East");
} else {
this.gotoAndPlay("Link Net East");
trace("ERROR: Link Net Direction");
}
}
if (((((Key.isDown(88) && (linkAction != "net")) && (linkAction != "boom")) && (linkBoom != true)) && (netTimer <= 0)) && (_root.linkStamina >= _root.linkSwingCost)) {
linkAction = "boom";
_root.linkStamina = _root.linkStamina - _root.linkSwingCost;
if (linkDir == "south") {
this.gotoAndPlay("Link Boom South");
} else if (linkDir == "west") {
this.gotoAndPlay("Link Boom West");
} else if (linkDir == "north") {
this.gotoAndPlay("Link Boom North");
} else if (linkDir == "east") {
this.gotoAndPlay("Link Boom East");
} else {
this.gotoAndPlay("Link Boom East");
trace("ERROR: Link Net Direction");
}
}
}
}
Instance of Symbol 738 MovieClip in Frame 8
onClipEvent (load) {
}
Instance of Symbol 742 MovieClip in Frame 8
onClipEvent (load) {
_root.linkInvincible = false;
_root.linkHit = false;
_root.linkHitTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.linkHit == true) {
if (Math.floor(((_root.poeLevel * _root.poeLevel) * -0.1) + 120) > 30) {
_root.linkHitTimer = 90;
}
_root.linkHit = false;
}
if (((_root.linkInvincible == true) && ((_root.linkHitTimer / 4) == Math.round(_root.linkHitTimer / 4))) && (_root.Link._alpha == 100)) {
_root.Link._alpha = 0;
} else if (_root.Link._alpha == 0) {
_root.Link._alpha = 100;
}
if (_root.linkHitTimer >= 1) {
_root.linkHitTimer = _root.linkHitTimer - 1;
}
if (_root.linkHitTimer == 0) {
_root.linkHitTimer = -1;
_root.linkInvincible = false;
}
}
Instance of Symbol 744 MovieClip in Frame 8
onClipEvent (load) {
_root.nuke = false;
_root.poeLevelNext = Math.floor((((_root.poeLevel * _root.poeLevel) / 6) + (_root.poeLevel * 2)) * _root.difficulty);
_root.poeLoadMax = 100;
_root.poeRelease = Math.floor(((-45 * Math.log(_root.poeLevel)) + 165) / _root.difficulty);
_root.poeSpeed = (((0.02 * Math.pow(Math.E, 0.1 * _root.poeLevel)) + (_root.poeLevel / 20)) + 0.1) * _root.difficulty;
if (_root.poeLevelNext < 1) {
_root.poeLevelNext = 1;
}
if (_root.poeRelease < 20) {
_root.poeRelease = 20;
} else if (_root.poeRelease > 150) {
_root.poeRelease = 150;
}
if (_root.poeSpeed <= 0) {
_root.poeSpeed = 0.1;
} else if (_root.poeSpeed > 40) {
_root.poeSpeed = 40;
}
}
onClipEvent (enterFrame) {
_root.poeLevelNeed = _root.poeLevelNext - _root.poeLevelCaught;
if ((_root.poeLevelCaught == _root.poeLevelNext) && (_root.Link.linkAction != "net")) {
if ((_root.money + Math.floor((_root.poeLevel * 10) / _root.difficulty)) > 999) {
_root.money = 999;
} else {
_root.money = _root.money + Math.floor((_root.poeLevel * 10) / _root.difficulty);
}
_root.score = _root.score + Math.floor(((_root.poeLevel * 10) * _root.difficulty) * _root.difficulty);
_root.awardText = ((("You receive " + Math.floor((_root.poeLevel * 10) / _root.difficulty)) + " rupees for beating level ") + _root.poeLevel) + "!";
_root.poeLevelCaught = 0;
_root.poeLoadTotal = 0;
_root.poeLoadCurrent = 0;
_root.nuke = true;
_root.poeLevel = _root.poeLevel + 1;
if ((_root.poeLevel / 4) == Math.floor(_root.poeLevel / 4)) {
_root.receivePrize = true;
}
_root.gotoAndStop("Level Screen");
}
if (_root.linkHealthCurrent <= 0) {
_root.nuke = true;
_root.gotoAndStop("Game Over Screen");
}
}
Instance of Symbol 746 MovieClip in Frame 8
onClipEvent (load) {
timer = _root.poeRelease;
poeChance = (_root.poeLevel * 2.5) + 1;
poe2Chance = 0;
poe3Chance = 0;
poe4Chance = 0;
poe5Chance = 0;
fairyChance = 1;
if (_root.poeLevel >= 4) {
poe2Chance = (_root.poeLevel - 2) * 1.6;
}
if (_root.poeLevel >= 8) {
poe3Chance = (_root.poeLevel - 4) * 1.4;
}
if (_root.poeLevel >= 12) {
poe5Chance = (_root.poeLevel - 6) * 1.2;
}
if (_root.poeLevel >= 16) {
poe4Chance = _root.poeLevel - 8;
}
}
onClipEvent (enterFrame) {
if (((timer >= _root.poeRelease) && (_root.poeLoadTotal < _root.poeLevelNext)) && (_root.poeLoadCurrent < _root.poeLoadMax)) {
timer = 0;
randomType = Math.random() * (((((poeChance + poe2Chance) + poe3Chance) + poe4Chance) + poe5Chance) + fairyChance);
if ((randomType >= 0) && (randomType <= poeChance)) {
poeLoad();
} else if ((randomType >= 0) && (randomType <= (poeChance + poe2Chance))) {
poe2Load();
} else if ((randomType >= 0) && (randomType <= ((poeChance + poe2Chance) + poe3Chance))) {
poe3Load();
} else if ((randomType >= 0) && (randomType <= (((poeChance + poe2Chance) + poe3Chance) + poe4Chance))) {
poe4Load();
} else if ((randomType >= 0) && (randomType <= ((((poeChance + poe2Chance) + poe3Chance) + poe4Chance) + poe5Chance))) {
poe5Load();
} else if ((randomType >= 0) && (randomType <= (((((poeChance + poe2Chance) + poe3Chance) + poe4Chance) + poe5Chance) + fairyChance))) {
fairyLoad();
} else {
trace("ERROR in the poeLoad sequence!");
}
}
timer = timer + 1;
}
Instance of Symbol 627 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.score > _root.highScore) {
_root.highScore = _root.score;
_root.hsCookie.data.highScore = _root.score;
_root.hsCookie.flush();
}
}
Instance of Symbol 778 MovieClip "poe5Parent" in Frame 8
onClipEvent (load) {
if (this._name != "poe5Parent") {
trace(this._name);
this.poeType = "poe5";
this.poeSpeed = _root.poeSpeed;
this.poeScore = 64;
poeActivate();
}
}
onClipEvent (enterFrame) {
if (this.poeShock == false) {
checkNetHit();
} else if (this.poeShock == true) {
checkNetHitShock();
}
if (_root.nuke) {
poeNuke();
}
if ((this._name != "poe5Parent") && (this.active)) {
if (this.frozen <= 0) {
poeDirection();
}
checkLinkHit();
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 783 MovieClip "fireParent" in Frame 8
onClipEvent (load) {
if (this._name != "fireParent") {
this._x = this.xStart;
this._y = this.yStart;
this.poeSpeed = Math.sqrt(_root.poeSpeed);
this.poeType = "fire";
this.moveAngle = Math.atan2((_root.Link._y + 25) - this._y, (_root.Link._x + 25) - this._x);
this.yMove = Math.sin(this.moveAngle);
this.xMove = Math.cos(this.moveAngle);
if (xMove < 0) {
this._xscale = this._xscale * -1;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "fireParent") {
this._x = this._x + (this.xMove * this.poeSpeed);
this._y = this._y + (this.yMove * this.poeSpeed);
checkOffScreen();
checkLinkHit();
if (_root.nuke) {
poeNuke();
}
}
}
Instance of Symbol 786 MovieClip "poe4Parent" in Frame 8
onClipEvent (load) {
if (this._name != "poe4Parent") {
trace(this._name);
this.poeType = "poe4";
this.poeSpeed = Math.sqrt(_root.poeSpeed);
this.poeScore = 32;
this.fireRepeat = 200;
this.fireTimer = 60;
poeActivate();
}
}
onClipEvent (enterFrame) {
checkNetHit();
if (_root.nuke) {
poeNuke();
}
if ((this._name != "poe4Parent") && (this.active)) {
if (this.frozen <= 0) {
poeDirection();
this.fireTimer = this.fireTimer - 1;
if (this.fireTimer <= 0) {
this.fireTimer = this.fireRepeat;
this.fireTarget = "fire" + _root.getNextHighestDepth();
duplicateMovieClip (_root.fireParent, "fire" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.poeLoadCurrent = _root.poeLoadCurrent + 1;
_root[this.fireTarget]._x = this._x;
_root[this.fireTarget]._y = this._y;
}
}
checkLinkHit();
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 788 MovieClip "fairyParent" in Frame 8
onClipEvent (load) {
if (this._name != "fairyParent") {
trace(this._name);
this.poeType = "fairy";
this.poeSpeed = 0.25;
this.poeScore = 25;
poeActivate();
}
}
onClipEvent (enterFrame) {
checkNetHit();
if (_root.nuke) {
poeNuke();
}
if ((this._name != "fairyParent") && (this.active)) {
if (this.frozen <= 0) {
poeDirection();
}
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 795 MovieClip "poe3Parent" in Frame 8
onClipEvent (load) {
if (this._name != "poe3Parent") {
trace(this._name);
this.poeType = "poe3";
this.poeSpeed = 1.5 * _root.poeSpeed;
this.poeScore = 16;
poeActivate();
}
}
onClipEvent (enterFrame) {
checkNetHit();
if (_root.nuke) {
poeNuke();
}
if ((!(this._name === "poe3Parent")) && (this.active)) {
if (this.frozen <= 0) {
poe3Direction();
}
checkLinkHit();
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 800 MovieClip "poe2Parent" in Frame 8
onClipEvent (load) {
if (this._name != "poe2Parent") {
trace(this._name);
this.poeType = "poe2";
this.poeSpeed = 2 * _root.poeSpeed;
this.poeScore = 8;
poeActivate();
}
}
onClipEvent (enterFrame) {
checkNetHit();
if (_root.nuke) {
poeNuke();
}
if ((this._name != "poe2Parent") && (this.active)) {
if (this.frozen <= 0) {
poeDirection();
}
checkLinkHit();
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 110 MovieClip [poe] "poeParent" in Frame 8
onClipEvent (load) {
if (this._name != "poeParent") {
trace(this._name);
this.poeType = "poe";
this.poeSpeed = _root.poeSpeed;
this.poeScore = 4;
this.frozen = 0;
poeActivate();
}
}
onClipEvent (enterFrame) {
checkNetHit();
if (_root.nuke) {
poeNuke();
}
if ((this._name != "poeParent") && (this.active)) {
if (this.frozen <= 0) {
poeDirection();
}
checkLinkHit();
checkBoomHit();
checkOffScreen();
checkOffMap();
}
}
Instance of Symbol 119 MovieClip [BGHit] "BGHit" in Frame 8
onClipEvent (load) {
this._visible = 1;
}
Frame 9
bgmusic.stop();
_quality = menuQuality;
stop();
poeLevel = 1;
Instance of Symbol 725 MovieClip in Frame 9
onClipEvent (load) {
_root.bgmusic.stop();
}
Instance of Symbol 123 MovieClip in Frame 9
on (keyPress "<Enter>") {
_root.gotoAndStop("Menu Screen");
}
Symbol 62 MovieClip Frame 1
_visible = false;
this.gotoAndStop(_root.upgNetSize + 1);
stop();
Symbol 95 MovieClip [Link] Frame 1
stop();
Instance of Symbol 11 MovieClip in Symbol 95 MovieClip [Link] Frame 1
onClipEvent (load) {
_root.linkStamina = 100;
}
onClipEvent (enterFrame) {
if (_root.linkStamina >= 100) {
this._alpha = 0;
_root.linkStamina = 100;
} else if (_root.linkStamina < 100) {
this._alpha = 100;
this.bar._xscale = _root.linkStamina;
if (_parent.linkAction != "net") {
_root.linkStamina = _root.linkStamina + ((_root.upgLinkStamina / 12) + 0.125);
} else {
_root.linkStamina = _root.linkStamina + (((_root.upgLinkStamina / 12) + 0.125) / 2);
}
}
if (_root.linkStamina < 0) {
_root.linkStamina = 0;
}
}
Instance of Symbol 6 MovieClip [Linkhit] "Linkhit" in Symbol 95 MovieClip [Link] Frame 1
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 14 MovieClip "poeHitArea" in Symbol 95 MovieClip [Link] Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 95 MovieClip [Link] Frame 2
stop();
Symbol 95 MovieClip [Link] Frame 3
stop();
Symbol 95 MovieClip [Link] Frame 4
stop();
Symbol 95 MovieClip [Link] Frame 33
gotoAndPlay ("Link Walk South");
linkAction = "walk";
Symbol 95 MovieClip [Link] Frame 58
gotoAndPlay ("Link Walk West");
linkAction = "walk";
Symbol 95 MovieClip [Link] Frame 83
gotoAndPlay ("Link Walk East");
linkAction = "walk";
Symbol 95 MovieClip [Link] Frame 116
gotoAndPlay ("Link Walk North");
linkAction = "walk";
Symbol 95 MovieClip [Link] Frame 117
play();
Symbol 95 MovieClip [Link] Frame 118
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 119
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 120
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 121
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 122
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 123
play();
Symbol 95 MovieClip [Link] Frame 124
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 125
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 126
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 127
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 128
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 129
play();
Symbol 95 MovieClip [Link] Frame 130
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 131
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 132
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 133
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 134
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 135
play();
Symbol 95 MovieClip [Link] Frame 136
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 137
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 138
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 139
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 140
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 141
play();
Symbol 95 MovieClip [Link] Frame 142
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 143
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 144
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 145
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 146
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 147
play();
Symbol 95 MovieClip [Link] Frame 148
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 149
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 150
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 151
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 152
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 153
play();
Symbol 95 MovieClip [Link] Frame 154
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 155
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 156
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 157
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 158
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 159
play();
Symbol 95 MovieClip [Link] Frame 160
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 161
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 162
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 163
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 164
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 165
play();
if ((((linkDir == "south") && (Key.isDown(90))) && (_root.upgNetCyclone == 3)) && (_root.linkStamina >= (_root.linkSwingCost / 2))) {
gotoAndPlay ("Link Net South");
_root.netSwing.onSoundComplete = _root.netSwing.start(0.05 * _root.upgNetSpeed);
_root.linkStamina = _root.linkStamina - (_root.linkSwingCost / 2);
}
Symbol 95 MovieClip [Link] Frame 166
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 167
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 168
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 169
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 170
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 171
play();
Symbol 95 MovieClip [Link] Frame 172
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 173
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 174
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 175
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 176
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 177
play();
if ((((linkDir == "west") && (Key.isDown(90))) && (_root.upgNetCyclone == 3)) && (_root.linkStamina >= (_root.linkSwingCost / 2))) {
gotoAndPlay ("Link Net West");
_root.netSwing.onSoundComplete = _root.netSwing.start(0.05 * _root.upgNetSpeed);
_root.linkStamina = _root.linkStamina - (_root.linkSwingCost / 2);
} else if (linkDir == "south") {
gotoAndStop ("Link Stand South");
linkAction = "none";
if (_root.upgNetCyclone != 3) {
netTimer = netTimerAmount;
}
}
Symbol 95 MovieClip [Link] Frame 178
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 179
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 180
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 181
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 182
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 183
play();
Symbol 95 MovieClip [Link] Frame 184
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 185
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 186
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 187
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 188
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 189
play();
if ((((linkDir == "north") && (Key.isDown(90))) && (_root.upgNetCyclone == 3)) && (_root.linkStamina >= (_root.linkSwingCost / 2))) {
gotoAndPlay ("Link Net North");
_root.netSwing.onSoundComplete = _root.netSwing.start(0.05 * _root.upgNetSpeed);
_root.linkStamina = _root.linkStamina - (_root.linkSwingCost / 2);
} else if (linkDir == "west") {
gotoAndStop ("Link Stand West");
linkAction = "none";
if (_root.upgNetCyclone != 3) {
netTimer = netTimerAmount;
}
}
Symbol 95 MovieClip [Link] Frame 190
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 191
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 192
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 193
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 194
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 195
play();
Symbol 95 MovieClip [Link] Frame 196
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 197
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 198
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 199
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 200
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 201
play();
if ((((linkDir == "east") && (Key.isDown(90))) && (_root.upgNetCyclone == 3)) && (_root.linkStamina >= (_root.linkSwingCost / 2))) {
gotoAndPlay ("Link Net East");
_root.netSwing.onSoundComplete = _root.netSwing.start(0.05 * _root.upgNetSpeed);
_root.linkStamina = _root.linkStamina - (_root.linkSwingCost / 2);
} else if (linkDir == "north") {
gotoAndStop ("Link Stand North");
linkAction = "none";
if (_root.upgNetCyclone != 3) {
netTimer = netTimerAmount;
}
}
Symbol 95 MovieClip [Link] Frame 202
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 203
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 204
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 205
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 206
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 207
play();
Symbol 95 MovieClip [Link] Frame 208
if (_root.upgNetSpeed >= 1) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 209
if (_root.upgNetSpeed >= 2) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 210
if (_root.upgNetSpeed >= 3) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 211
if (_root.upgNetSpeed >= 4) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 212
if (_root.upgNetSpeed >= 5) {
nextFrame();
}
play();
Symbol 95 MovieClip [Link] Frame 213
play();
if (linkDir == "east") {
gotoAndStop ("Link Stand East");
linkAction = "none";
if (_root.upgNetCyclone != 3) {
netTimer = netTimerAmount;
}
} else {
gotoAndPlay ("Link Net South");
}
Symbol 95 MovieClip [Link] Frame 214
play();
Symbol 95 MovieClip [Link] Frame 222
linkAction = "none";
gotoAndStop ("Link Stand South");
duplicateMovieClip (_root.boomerangParent, "boomerang", _root.getNextHighestDepth());
_root.boomerang._x = _root.Link._x + 13;
_root.boomerang._y = _root.Link._y + 40;
_root.boomerang.xMove = 0;
_root.boomerang.yMove = 1;
Symbol 95 MovieClip [Link] Frame 223
play();
Symbol 95 MovieClip [Link] Frame 231
linkAction = "none";
gotoAndStop ("Link Stand West");
duplicateMovieClip (_root.boomerangParent, "boomerang", _root.getNextHighestDepth());
_root.boomerang._x = _root.Link._x - 15;
_root.boomerang._y = _root.Link._y + 20;
_root.boomerang.xMove = -1;
_root.boomerang.yMove = 0;
Symbol 95 MovieClip [Link] Frame 232
play();
Symbol 95 MovieClip [Link] Frame 240
linkAction = "none";
gotoAndStop ("Link Stand North");
duplicateMovieClip (_root.boomerangParent, "boomerang", _root.getNextHighestDepth());
_root.boomerang._x = _root.Link._x + 13;
_root.boomerang._y = _root.Link._y - 15;
_root.boomerang.xMove = 0;
_root.boomerang.yMove = -1;
Symbol 95 MovieClip [Link] Frame 241
play();
Symbol 95 MovieClip [Link] Frame 249
linkAction = "none";
gotoAndStop ("Link Stand East");
duplicateMovieClip (_root.boomerangParent, "boomerang", _root.getNextHighestDepth());
_root.boomerang._x = _root.Link._x + 28;
_root.boomerang._y = _root.Link._y + 20;
_root.boomerang.xMove = 1;
_root.boomerang.yMove = 0;
Symbol 110 MovieClip [poe] Frame 1
stop();
Symbol 110 MovieClip [poe] Frame 2
play();
Symbol 110 MovieClip [poe] Frame 30
stop();
active = true;
Symbol 138 Button
on (release) {
_root.play();
}
Symbol 139 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 139 MovieClip Frame 2
gotoAndPlay (1);
Symbol 143 Button
on (release) {
_root.play();
}
Symbol 472 MovieClip Frame 1100
_root.play();
Symbol 483 Button
on (release) {
gotoAndStop ("Options Screen");
}
on (rollOver) {
_root.currentSelection = 2;
}
Symbol 484 Button
on (release) {
gotoAndStop ("Level Screen");
}
on (rollOver) {
_root.currentSelection = 0;
}
Symbol 485 Button
on (release) {
gotoAndStop ("Instructions Screen");
}
on (rollOver) {
_root.currentSelection = 1;
}
Symbol 491 Button
on (release) {
if (_root.gameQuality == "VARIABLE") {
_root.gameQuality = "BEST";
} else if (_root.gameQuality == "LOW") {
_root.gameQuality = "VARIABLE";
} else if (_root.gameQuality == "MEDIUM") {
_root.gameQuality = "LOW";
} else if (_root.gameQuality == "HIGH") {
_root.gameQuality = "MEDIUM";
} else if (_root.gameQuality == "BEST") {
_root.gameQuality = "HIGH";
}
}
Symbol 492 Button
on (release) {
if (_root.gameQuality == "VARIABLE") {
_root.gameQuality = "LOW";
} else if (_root.gameQuality == "LOW") {
_root.gameQuality = "MEDIUM";
} else if (_root.gameQuality == "MEDIUM") {
_root.gameQuality = "HIGH";
} else if (_root.gameQuality == "HIGH") {
_root.gameQuality = "BEST";
} else if (_root.gameQuality == "BEST") {
_root.gameQuality = "VARIABLE";
}
}
Symbol 498 Button
on (release) {
if (_root.menuQuality == "LOW") {
_root.menuQuality = "BEST";
} else if (_root.menuQuality == "MEDIUM") {
_root.menuQuality = "LOW";
} else if (_root.menuQuality == "HIGH") {
_root.menuQuality = "MEDIUM";
} else if (_root.menuQuality == "BEST") {
_root.menuQuality = "HIGH";
}
_quality = menuQuality;
}
Symbol 499 Button
on (release) {
if (_root.menuQuality == "LOW") {
_root.menuQuality = "MEDIUM";
} else if (_root.menuQuality == "MEDIUM") {
_root.menuQuality = "HIGH";
} else if (_root.menuQuality == "HIGH") {
_root.menuQuality = "BEST";
} else if (_root.menuQuality == "BEST") {
_root.menuQuality = "LOW";
}
_quality = menuQuality;
}
Symbol 507 Button
on (press) {
if ((Number(_root.levelSelect) > 0) && (isNaN(Number(_root.levelSelect)) == false)) {
_root.poeLevel = Math.floor(Number(_root.levelSelect));
}
}
Symbol 530 MovieClip Frame 1
top = vol._y;
left = vol._x;
right = vol._x;
bottom = vol._y + 100;
level = (57.142857 * _root.difficulty) - 14.28571485714;
levelText = "Medium";
vol.onPress = function () {
startDrag ("vol", false, left, top, right, bottom);
dragging = true;
};
vol.onRelease = function () {
stopDrag();
dragging = false;
};
vol.onReleaseOutside = function () {
dragging = false;
};
this.onEnterFrame = function () {
if (dragging) {
level = 100 - (vol._y - top);
_root.difficulty = (level * 0.0175) + 0.25;
} else if (level > 100) {
level = 100;
} else if (level < 0) {
level = 0;
} else {
vol._y = ((-level) + 100) + top;
}
if ((level >= 0) && (level < 15)) {
levelText = "Very Easy";
} else if ((level >= 15) && (level < 30)) {
levelText = "Easy";
} else if ((level >= 30) && (level < 60)) {
levelText = "Medium";
} else if ((level >= 60) && (level < 75)) {
levelText = "Hard";
} else if ((level >= 75) && (level <= 90)) {
levelText = "Very Hard";
} else if ((level >= 90) && (level <= 100)) {
levelText = "Super Hard";
} else {
levelText = "Error";
}
};
Instance of Symbol 505 MovieClip in Symbol 533 MovieClip Frame 1
onClipEvent (enterFrame) {
if (isNaN(_root.levelSelect) || (_root.levelSelect < 1)) {
this._alpha = 100;
} else if (_root.levelSelect != _root.poeLevel) {
this._alpha = 0;
} else {
this._alpha = 70;
}
}
Symbol 536 Button
on (release) {
gotoAndStop ("Menu Screen");
}
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 3
stop();
Symbol 608 MovieClip Frame 4
stop();
Symbol 608 MovieClip Frame 5
stop();
Symbol 608 MovieClip Frame 6
stop();
Symbol 608 MovieClip Frame 7
stop();
Symbol 608 MovieClip Frame 8
stop();
Symbol 608 MovieClip Frame 9
stop();
Symbol 608 MovieClip Frame 10
stop();
Symbol 608 MovieClip Frame 11
stop();
Symbol 608 MovieClip Frame 12
stop();
Symbol 608 MovieClip Frame 13
stop();
Symbol 608 MovieClip Frame 14
stop();
Symbol 614 Button
on (release) {
_root.gotoAndStop("Battle Screen");
}
on (rollOver) {
_root.currentSelection = 0;
}
Instance of Symbol 590 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (load) {
i = 1;
while (i <= 14) {
if ((_root.poeLevel >= (i * 4)) && (_root.levelSelect < (i * 4))) {
this["award" + i]._alpha = 100;
} else {
this["award" + i]._alpha = 50;
}
i++;
}
}
Instance of Symbol 608 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (load) {
if ((((_root.poeLevel / 4) == Math.floor(_root.poeLevel / 4)) && (_root.poeLevel <= 56)) && (_root.levelSelect < _root.poeLevel)) {
this._alpha = 100;
this.gotoAndStop(_root.poeLevel / 4);
if (_root.receivePrize == true) {
_root.receivePrize = false;
_root.obtainItemSound.start();
}
} else {
this._visible = 0;
}
}
Symbol 621 Button
on (release) {
_root.poeLevel = 1;
gotoAndStop ("Menu Screen");
}
Symbol 624 Button
on (release) {
gotoAndStop ("Upgrade Screen");
}
on (rollOver) {
_root.currentSelection = 1;
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 3
stop();
Symbol 650 MovieClip Frame 4
stop();
Symbol 650 MovieClip Frame 5
stop();
Symbol 661 MovieClip Frame 1
stop();
Symbol 661 MovieClip Frame 2
stop();
Symbol 661 MovieClip Frame 3
stop();
Symbol 661 MovieClip Frame 4
stop();
Symbol 661 MovieClip Frame 5
stop();
Symbol 661 MovieClip Frame 6
stop();
Symbol 661 MovieClip Frame 7
stop();
Symbol 661 MovieClip Frame 8
stop();
Symbol 661 MovieClip Frame 9
stop();
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 2
stop();
Symbol 667 MovieClip Frame 3
stop();
Symbol 667 MovieClip Frame 4
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
Symbol 680 MovieClip Frame 3
stop();
Symbol 680 MovieClip Frame 4
stop();
Symbol 680 MovieClip Frame 5
stop();
Symbol 680 MovieClip Frame 6
stop();
Symbol 680 MovieClip Frame 7
stop();
Symbol 680 MovieClip Frame 8
stop();
Symbol 680 MovieClip Frame 9
stop();
Symbol 710 Button
on (press) {
_root.money = 1000000 /* 0x0F4240 */;
}
Symbol 711 Button
on (release) {
gotoAndStop ("Level Screen");
}
on (rollOver) {
_root.currentSelection = 0;
}
Symbol 716 Button
on (rollOver) {
_root.currentSelection = 9;
}
on (release) {
if (_root.money >= _root.upgLinkStaminaCost) {
_root.money = _root.money - _root.upgLinkStaminaCost;
if (_root.upgLinkStamina < 2) {
_root.upgLinkStamina = _root.upgLinkStamina + 1;
}
}
}
Symbol 717 Button
on (rollOver) {
_root.currentSelection = 8;
}
on (release) {
if (_root.money >= _root.upgLinkHealHeartCost) {
_root.money = _root.money - _root.upgLinkHealHeartCost;
if ((_root.linkHealthMax - _root.linkHealthCurrent) == 1) {
_root.linkHealthCurrent = _root.linkHealthCurrent + 1;
} else if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.linkHealthCurrent = _root.linkHealthCurrent + 2;
}
}
}
Symbol 718 Button
on (rollOver) {
_root.currentSelection = 6;
}
on (release) {
if (_root.money >= _root.upgNetMoveCost) {
_root.money = _root.money - _root.upgNetMoveCost;
if (_root.upgNetMove < 1) {
_root.upgNetMove = _root.upgNetMove + 1;
}
}
}
Symbol 719 Button
on (rollOver) {
_root.currentSelection = 5;
}
on (release) {
if (_root.money >= _root.upgNetSpeedCost) {
_root.money = _root.money - _root.upgNetSpeedCost;
if (_root.upgNetSpeed < 4) {
_root.upgNetSpeed = _root.upgNetSpeed + 1;
}
}
}
Symbol 720 Button
on (rollOver) {
_root.currentSelection = 4;
}
on (release) {
if (_root.money >= _root.upgNetSizeCost) {
_root.money = _root.money - _root.upgNetSizeCost;
if (_root.upgNetSize < 8) {
_root.upgNetSize = _root.upgNetSize + 1;
}
}
}
Symbol 721 Button
on (rollOver) {
_root.currentSelection = 3;
}
on (release) {
if (_root.money >= _root.upgNetCycloneCost) {
_root.money = _root.money - _root.upgNetCycloneCost;
if (_root.upgNetCyclone < 3) {
_root.upgNetCyclone = _root.upgNetCyclone + 1;
}
}
}
Symbol 722 Button
on (rollOver) {
_root.currentSelection = 2;
}
on (release) {
if (_root.money >= _root.upgLinkHealthCost) {
_root.money = _root.money - _root.upgLinkHealthCost;
if (_root.upgLinkHealth < 6) {
_root.upgLinkHealth = _root.upgLinkHealth + 1;
_root.linkHealthCurrent = _root.linkHealthCurrent + 2;
}
}
}
Symbol 723 Button
on (rollOver) {
_root.currentSelection = 1;
}
on (release) {
if (_root.money >= _root.upgLinkSpeedCost) {
_root.money = _root.money - _root.upgLinkSpeedCost;
if (_root.upgLinkSpeed < 8) {
_root.upgLinkSpeed = _root.upgLinkSpeed + 1;
}
}
}
Symbol 724 Button
on (rollOver) {
_root.currentSelection = 7;
}
on (release) {
if (_root.money >= _root.upgLinkHealCost) {
_root.money = _root.money - _root.upgLinkHealCost;
if (_root.linkHealthMax != _root.linkHealthCurrent) {
_root.linkHealthCurrent = _root.linkHealthMax;
}
}
}
Symbol 738 MovieClip Frame 1
time1 = new Date();
time1get = time1.getTime();
Symbol 738 MovieClip Frame 100
time2 = new Date();
time2get = time2.getTime();
_root.framerate = Math.floor(100000 / (time2get - time1get));
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 2
stop();
Symbol 764 MovieClip Frame 3
stop();
Symbol 767 MovieClip Frame 1
h = 1;
while (h <= 18) {
heartCurrent = this["heart" + h];
if (_root.linkHealthMax >= ((h * 2) - 1)) {
heartCurrent._visible = true;
} else {
heartCurrent._visible = false;
}
h++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 9) {
heartCurrent = this["heart" + i];
if (_root.linkHealthCurrent >= (i * 2)) {
heartCurrent.gotoAndStop(1);
} else if (_root.linkHealthCurrent == ((i * 2) - 1)) {
heartCurrent.gotoAndStop(2);
} else if (_root.linkHealthCurrent <= ((i * 2) - 2)) {
heartCurrent.gotoAndStop(3);
}
i++;
}
};
Symbol 777 MovieClip Frame 1
_parent.poeShock = false;
Symbol 777 MovieClip Frame 36
_parent.poeShock = true;
Symbol 778 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 2
play();
Symbol 778 MovieClip Frame 30
stop();
active = true;
Instance of Symbol 777 MovieClip in Symbol 778 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_parent.frozen > 0) {
this.gotoAndStop(1);
}
}
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
play();
Symbol 786 MovieClip Frame 30
stop();
active = true;
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 2
play();
Symbol 788 MovieClip Frame 30
stop();
active = true;
Symbol 795 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 2
play();
Symbol 795 MovieClip Frame 30
stop();
active = true;
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
play();
Symbol 800 MovieClip Frame 30
stop();
active = true;
Symbol 805 Button
on (release) {
gotoAndStop ("Menu Screen");
}