Frame 1
stop();
Frame 2
stop();
Frame 3
Mouse.show();
_quality = "MEDIUM";
titleMusic = new Sound();
titleMusic.attachSound("titleScreen");
controlMusic = new Sound();
controlMusic.attachSound("titleMusic");
buttonSound = new Sound();
buttonSound.attachSound("button");
buttonSelect = new Sound();
buttonSelect.attachSound("select");
buttonSparkle = new Sound();
buttonSparkle.attachSound("sparkle");
gameoverMusic = new Sound();
gameoverMusic.attachSound("gameoverMusic");
victoryMusic = new Sound();
victoryMusic.attachSound("victoryMusic");
menuMusic = new Sound();
menuMusic.attachSound("menuMusic");
userSelection = "";
_global.miniLock = true;
_global.plantLock = true;
_global.challengeLock = true;
_global.miniOne = false;
_global.miniTwo = false;
_global.miniThree = false;
_global.miniFour = false;
_global.miniFive = false;
_global.miniSix = false;
_global.miniSeven = false;
_global.miniEight = false;
_global.miniNine = false;
_global.dragonDefeated = false;
_global.spiderDefeated = false;
_global.krakenDefeated = false;
_global.mageDefeated = false;
_global.knightDefeated = false;
_global.bonusUnlock = false;
_global.plantUnlock = false;
_global.challengeMode = false;
_global.challengeLife = 4;
_global.cannonScore = 0;
_global.reactionScore = 0;
_global.targetScore = 0;
_global.speedScore = 0;
_global.lightScore = 0;
_global.countScore = 0;
_global.racquetScore = 0;
_global.ballScore = 0;
_global.fireScore = 0;
_global.endlessScore = 0;
Instance of Symbol 107 MovieClip in Frame 3
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 4
Mouse.show();
stop();
controlMusic.stop();
menuMusic.stop();
titleMusic.start(0, 500);
Frame 5
stop();
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 3;
}
if (this._alpha >= 100) {
if (_root.userSelection == "start") {
_root.gotoAndStop("Menu");
}
if (_root.userSelection == "controls") {
_root.gotoAndStop("controls");
}
if (_root.userSelection == "strategy") {
_root.gotoAndStop("strategy");
}
if (_root.userSelection == "credits") {
_root.gotoAndStop("credits");
}
}
}
Frame 6
controlText = "Scroll over a technique to view its description.";
controlMusic.start(0, 500);
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 6
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 7
stop();
Frame 8
strategyText = "Scroll over a level to view its tips and hints. CAUTION: MAY CONTAIN SPOILERS";
controlMusic.start(0, 500);
Instance of Symbol 114 MovieClip in Frame 8
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 8
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 9
stop();
Frame 10
controlMusic.start(0, 500);
stop();
Instance of Symbol 114 MovieClip in Frame 10
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 10
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 11
stop();
Frame 12
Mouse.show();
menuMusic.start(0, 700);
chapterText = "Select a chapter...";
buttonSound = new Sound();
buttonSound.attachSound("button");
chapterSelect = new Sound();
chapterSelect.attachSound("select");
buttonSparkle = new Sound();
buttonSparkle.attachSound("sparkle");
levelSelection = "";
stop();
Instance of Symbol 239 MovieClip in Frame 12
onClipEvent (load) {
if (_global.dragonDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 245 MovieClip in Frame 12
onClipEvent (load) {
if (_global.spiderDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 251 MovieClip in Frame 12
onClipEvent (load) {
if (_global.krakenDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 257 MovieClip in Frame 12
onClipEvent (load) {
if (_global.mageDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 114 MovieClip in Frame 12
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 12
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 13
stop();
Instance of Symbol 233 MovieClip in Frame 13
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Silent Wood Deep inside the Silent Wood is a cave said to provide a passage underneath the Great Mountains. It is also said to be guarded by a fierce dragon. Defeat the Forest Dragon to gain entrance to the Spider Caverns.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "wood";
_root.buttonSparkle.start();
_root.play();
}
}
Instance of Symbol 239 MovieClip in Frame 13
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_global.dragonDefeated) {
activated = true;
}
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Spider Caverns Rumors tell that within the darkest reaches of the Spider Caverns lurks a creature more terrible than any dragon. Unfortunately there is only one way to travel through the mountains. Defeat the Spider Queen and you just may live to see the Fierra Sea.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "cave";
_root.buttonSparkle.start();
_root.play();
}
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_global.spiderDefeated) {
activated = true;
}
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Fierra Sea On the far side of the Great Mountains lies the troubled waters of the Fierra Sea. Mighty battleships have set sail across this dark ocean never to be heard from again. Defeat the Sea Kraken if you ever hope to reach the Far Shore.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "sea";
_root.buttonSparkle.start();
_root.play();
}
}
}
Instance of Symbol 251 MovieClip in Frame 13
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_global.krakenDefeated) {
activated = true;
}
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Far Shore Perched high atop the cliffs of the Far Shore lives a mage who possesses magnificent powers. The few who survive the Fierra Sea are quickly disposed of by his elemental magic. Defeat the Elemental Mage to continue onward to the Dark Castle.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "shore";
_root.buttonSparkle.start();
_root.play();
}
}
}
Instance of Symbol 257 MovieClip in Frame 13
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_global.mageDefeated) {
activated = true;
}
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Dark Castle No man has ever laid eyes upon the Dark Castle. It is here that a warlord said to possess demonic powers resides. Remain vigilant, your quest is almost at an end. Defeat the Demon Knight to free the land from darkness.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "castle";
_root.buttonSparkle.start();
_root.play();
}
}
}
Instance of Symbol 261 MovieClip in Frame 13
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "Test your skill with these training minigames.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_root.levelSelection = "minigames";
_root.buttonSparkle.start();
_root.play();
}
}
Instance of Symbol 266 MovieClip in Frame 13
onClipEvent (load) {
if (_global.challengeLock) {
activated = false;
}
if (!_global.challengeLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "CHALLENGE MODE\n\nFight each enemy in succession without recovering life.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.menuMusic.stop();
_global.challengeLife = 4;
_global.challengeMode = true;
_root.levelSelection = "wood";
_root.buttonSparkle.start();
_root.play();
}
}
}
Frame 14
stop();
Instance of Symbol 239 MovieClip in Frame 14
onClipEvent (load) {
if (_global.dragonDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_global.spiderDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) {
if (_global.krakenDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 257 MovieClip in Frame 14
onClipEvent (load) {
if (_global.mageDefeated) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 266 MovieClip in Frame 14
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 114 MovieClip in Frame 14
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 100) {
if (_root.levelSelection == "wood") {
_root.gotoAndStop("Wood");
}
if (_root.levelSelection == "cave") {
_root.gotoAndStop("Cave");
}
if (_root.levelSelection == "sea") {
_root.gotoAndStop("Sea");
}
if (_root.levelSelection == "shore") {
_root.gotoAndStop("Shore");
}
if (_root.levelSelection == "castle") {
_root.gotoAndStop("Castle");
}
if (_root.levelSelection == "minigames") {
_root.gotoAndStop("Minigames");
}
if (_root.levelSelection == "endless") {
_root.gotoAndStop("Endless");
}
}
}
Frame 15
minigameMusic.stop();
ballHit = new Sound();
ballHit.attachSound("ball1");
cannonShot = new Sound();
cannonShot.attachSound("cannon1");
fireSound = new Sound();
fireSound.attachSound("fireball5");
cannonBlock = new Sound();
cannonBlock.attachSound("clang1");
woodHit = new Sound();
woodHit.attachSound("wood");
ballBounce = new Sound();
ballBounce.attachSound("bounce");
ballHit2 = new Sound();
ballHit2.attachSound("ballHit");
whistle = new Sound();
whistle.attachSound("whistle");
sporePop = new Sound();
sporePop.attachSound("spore");
needleSound = new Sound();
needleSound.attachSound("needle");
whipSound = new Sound();
whipSound.attachSound("whip");
minigameSelectMusic = new Sound();
minigameSelectMusic.attachSound("minigameSelectMusic");
minigameSelectMusic.start(0, 500);
minigameMusic = new Sound();
minigameMusic.attachSound("minigameMusic");
miniText = "Choose a minigame.";
highScore = 0;
goalScore = 0;
Mouse.show();
stop();
Instance of Symbol 281 MovieClip in Frame 15
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.chapterText = "The Silent Wood Deep inside the Silent Wood is a cave said to provide a passage underneath the Great Mountains. It is also said to be guarded by a fierce dragon. Defeat the Forest Dragon to gain entrance to the Spider Caverns.";
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 290 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 294 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 300 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 309 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 114 MovieClip in Frame 15
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 15
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 16
stop();
Mouse.show();
Instance of Symbol 281 MovieClip in Frame 16
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.cannonScore >= 1000) {
if (!_global.miniOne) {
_global.miniOne = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.cannonScore;
_root.goalScore = 1000;
_root.miniText = "Use your sword to guard against oncoming cannonballs. The cannons are set to fire in a constant pattern.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("defense");
}
}
}
Instance of Symbol 284 MovieClip in Frame 16
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.reactionScore >= 18) {
if (!_global.miniTwo) {
_global.miniTwo = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.reactionScore;
_root.goalScore = 18;
_root.miniText = "A single cannon will fire cannonballs in random directions. Try to guard against them for as long as possible.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("block");
}
}
}
Instance of Symbol 287 MovieClip in Frame 16
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.targetScore >= 7500) {
if (!_global.miniThree) {
_global.miniThree = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.targetScore;
_root.goalScore = 7500;
_root.miniText = "Destroy as many targets as possible within the time limit.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("target");
}
}
}
Instance of Symbol 290 MovieClip in Frame 16
onClipEvent (load) {
if (_global.miniLock) {
activated = false;
}
if (!_global.miniLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.fireScore >= 500) {
if (!_global.miniNine) {
_global.miniNine = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.fireScore;
_root.goalScore = 500;
_root.miniText = "Avoid the fireballs. It doesn't matter if your sword touches the fire, only the blocking area is affected.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("fire");
}
}
}
Instance of Symbol 294 MovieClip in Frame 16
onClipEvent (load) {
if (_global.plantLock) {
activated = false;
}
if (!_global.plantLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if ((_global.miniOne && (_global.miniTwo)) && (_global.miniThree)) {
if ((_global.miniFour && (_global.miniFive)) && (_global.miniSix)) {
if ((_global.miniSeven && (_global.miniEight)) && (_global.miniNine)) {
_global.plantLock = false;
}
}
}
if (!_global.plantLock) {
activated = true;
}
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.miniText = "The training room is covered in vines! Clean up by cutting them down.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("plant");
}
}
}
Instance of Symbol 297 MovieClip in Frame 16
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.lightScore >= 650) {
if (!_global.miniFive) {
_global.miniFive = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.lightScore;
_root.goalScore = 650;
_root.miniText = "Follow the light as closely as possible until time runs out.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("light");
}
}
}
Instance of Symbol 300 MovieClip in Frame 16
onClipEvent (load) {
if (_global.miniLock) {
activated = false;
}
if (!_global.miniLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.racquetScore >= 550) {
if (!_global.miniSeven) {
_global.miniSeven = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.racquetScore;
_root.goalScore = 550;
_root.miniText = "Knock the ball back and forth off the wall.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("racquet");
}
}
}
Instance of Symbol 303 MovieClip in Frame 16
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.speedScore >= 850) {
if (!_global.miniFour) {
_global.miniFour = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.speedScore;
_root.goalScore = 850;
_root.miniText = "Destroy all the targets as fast as you can.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("speed");
}
}
}
Instance of Symbol 306 MovieClip in Frame 16
onClipEvent (load) {
if (_global.miniLock) {
activated = false;
}
if (!_global.miniLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.countScore >= 55000) {
if (!_global.miniSix) {
_global.miniSix = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.countScore;
_root.goalScore = 55000;
_root.miniText = "Destroy as many targets as you can. The higher the number on a target, the higher the score you will receive for destroying that target. Once a target reaches zero, it becomes disabled.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("count");
}
}
}
Instance of Symbol 309 MovieClip in Frame 16
onClipEvent (load) {
if (_global.miniLock) {
activated = false;
}
if (!_global.miniLock) {
activated = true;
}
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(3);
}
if (activated) {
if (_global.ballScore >= 8000) {
if (!_global.miniEight) {
_global.miniEight = true;
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
_root.highScore = _global.ballScore;
_root.goalScore = 8000;
_root.miniText = "Destroy the balls before they hit you. Each color corresponds to a different style of movement.";
} else {
this.gotoAndStop(1);
}
}
}
onClipEvent (mouseUp) {
if (activated) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.minigameSelectMusic.stop();
_root.minigameMusic.start(0, 500);
_root.buttonSparkle.start();
_root.gotoAndStop("ball");
}
}
}
Frame 17
time = 0;
shotTimer = 100;
stop();
Instance of Symbol 325 MovieClip "canFive" in Frame 17
onClipEvent (load) {
shotTimer = _root.shotTimer * 5;
}
onClipEvent (enterFrame) {
if (shotTimer > -1) {
shotTimer--;
}
if (shotTimer == 0) {
if (_root.shotTimer > 10) {
_root.shotTimer = _root.shotTimer - 10;
}
if (_root.shotTimer <= 10) {
_root.shotTimer = 10;
}
_root.cannonShot.start();
_root.round = _root.round + 1;
_root.canOne.shotTimer = _root.shotTimer;
_root.canTwo.shotTimer = _root.shotTimer * 2;
_root.canThree.shotTimer = _root.shotTimer * 3;
_root.canFour.shotTimer = _root.shotTimer * 4;
_root.canFive.shotTimer = _root.shotTimer * 5;
_root.cannonFive.fire = true;
}
}
Instance of Symbol 325 MovieClip "canOne" in Frame 17
onClipEvent (load) {
shotTimer = _root.shotTimer;
}
onClipEvent (enterFrame) {
if (shotTimer > -1) {
shotTimer--;
}
if (shotTimer == 0) {
_root.cannonOne.fire = true;
_root.cannonShot.start();
shotTimer = -1;
}
}
Instance of Symbol 325 MovieClip "canThree" in Frame 17
onClipEvent (load) {
shotTimer = _root.shotTimer * 3;
}
onClipEvent (enterFrame) {
if (shotTimer > -1) {
shotTimer--;
}
if (shotTimer == 0) {
_root.cannonThree.fire = true;
_root.cannonShot.start();
shotTimer = -1;
}
}
Instance of Symbol 325 MovieClip "canTwo" in Frame 17
onClipEvent (load) {
shotTimer = _root.shotTimer * 2;
}
onClipEvent (enterFrame) {
if (shotTimer > -1) {
shotTimer--;
}
if (shotTimer == 0) {
_root.cannonTwo.fire = true;
_root.cannonShot.start();
shotTimer = -1;
}
}
Instance of Symbol 325 MovieClip "canFour" in Frame 17
onClipEvent (load) {
shotTimer = _root.shotTimer * 4;
}
onClipEvent (enterFrame) {
if (shotTimer > -1) {
shotTimer--;
}
if (shotTimer == 0) {
_root.cannonFour.fire = true;
_root.cannonShot.start();
shotTimer = -1;
}
}
Instance of Symbol 332 MovieClip "cannonOne" in Frame 17
onClipEvent (load) {
fire = false;
xSpeed = 13;
ySpeed = 13;
xPos = this._x;
yPos = this._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xSpeed;
this._yscale = this._yscale + ySpeed;
this._y = this._y + 9;
this._x = this._x + 6;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = 100;
this._yscale = 100;
fire = false;
}
}
}
Instance of Symbol 332 MovieClip "cannonTwo" in Frame 17
onClipEvent (load) {
fire = false;
xSpeed = 13;
ySpeed = 13;
xPos = this._x;
yPos = this._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xSpeed;
this._yscale = this._yscale + ySpeed;
this._y = this._y + 7;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = 100;
this._yscale = 100;
fire = false;
}
}
}
Instance of Symbol 332 MovieClip "cannonThree" in Frame 17
onClipEvent (load) {
fire = false;
xSpeed = 13;
ySpeed = 13;
xPos = this._x;
yPos = this._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xSpeed;
this._yscale = this._yscale + ySpeed;
this._x = this._x - 7;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = 100;
this._yscale = 100;
fire = false;
}
}
}
Instance of Symbol 332 MovieClip "cannonFour" in Frame 17
onClipEvent (load) {
fire = false;
xSpeed = 13;
ySpeed = 13;
xPos = this._x;
yPos = this._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xSpeed;
this._yscale = this._yscale + ySpeed;
this._y = this._y + 9;
this._x = this._x - 6;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = 100;
this._yscale = 100;
fire = false;
}
}
}
Instance of Symbol 332 MovieClip "cannonFive" in Frame 17
onClipEvent (load) {
fire = false;
xSpeed = 13;
ySpeed = 13;
xPos = this._x;
yPos = this._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xSpeed;
this._yscale = this._yscale + ySpeed;
this._x = this._x + 7;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = 100;
this._yscale = 100;
fire = false;
}
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 17
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
startX = this._x;
startY = this._y;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 17
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Instance of Symbol 336 MovieClip in Frame 17
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time > _global.cannonScore) {
_global.cannonScore = time;
}
}
Instance of Symbol 342 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Frame 18
stop();
round = 1;
Instance of Symbol 325 MovieClip "cannon" in Frame 18
onClipEvent (load) {
shotCounter = 150;
shotTimer = 150;
}
onClipEvent (enterFrame) {
if (shotTimer > 0) {
shotTimer--;
}
if (shotTimer <= 0) {
shotTimer = shotCounter;
if (shotCounter > -5) {
shotCounter = shotCounter - 7.5;
}
_root.cannonTwo.fire = true;
}
}
Instance of Symbol 345 MovieClip "cannonTwo" in Frame 18
onClipEvent (load) {
fire = false;
xScale = 13;
yScale = 13;
xSpeed = 0;
ySpeed = 0;
xPos = this._x;
yPos = this._y;
startXScale = this._xscale;
startYScale = this._yscale;
this._visible = false;
}
onClipEvent (enterFrame) {
if (fire) {
if (xSpeed == 0) {
_root.cannonShot.start();
ySpeed = (Math.random() * 14) - 5;
xSpeed = (Math.random() * 16) - 7;
if (_root.cannon.shotCounter <= 0) {
ySpeed = ySpeed * 2;
xSpeed = xSpeed * 2;
}
}
this._visible = true;
this.gotoAndStop(2);
this._xscale = this._xscale + xScale;
this._yscale = this._yscale + yScale;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
if (this._xscale >= 400) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.sparks.play();
_root.cannonBlock.start();
_root.round = _root.round + 1;
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
if (_root.cannon.shotCounter <= 0) {
xScale = xScale + 1;
yScale = yScale + 1;
}
this.gotoAndStop(1);
this._visible = false;
this._x = xPos;
this._y = yPos;
this._xscale = startXScale;
this._yscale = startYScale;
xSpeed = 0;
ySpeed = 0;
fire = false;
}
}
}
Instance of Symbol 336 MovieClip in Frame 18
onClipEvent (load) {
round = 0;
}
onClipEvent (enterFrame) {
round = _root.round;
if (round > _global.reactionScore) {
_global.reactionScore = round;
}
}
Frame 19
score = 0;
time = 0;
stop();
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 25;
startX = this._x;
xSpeed = -10;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 170;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
this._x = this._x + xSpeed;
xSpeed = xSpeed + 0.5;
if (this._x >= startX) {
this._x = startX;
xSpeed = -10;
timer = 250;
activated = false;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 10;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 50;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 10;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 50;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 10;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 50;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 10;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 50;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 355 MovieClip in Frame 19
onClipEvent (load) {
startX = this._x;
endX = startX + 850;
activated = false;
timer = 120;
}
onClipEvent (enterFrame) {
if (activated) {
if (this._x < endX) {
this._x = this._x + 10;
}
if (this._x >= endX) {
activated = false;
this._x = startX;
timer = 175;
}
}
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
activated = true;
}
}
}
Instance of Symbol 358 MovieClip in Frame 19
onClipEvent (load) {
startX = this._x;
endX = startX - 1500;
activated = false;
timer = 220;
}
onClipEvent (enterFrame) {
if (activated) {
if (this._x > endX) {
this._x = this._x - 10;
}
if (this._x <= endX) {
activated = false;
this._x = startX;
timer = 175;
}
}
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
activated = true;
}
}
}
Instance of Symbol 336 MovieClip in Frame 19
onClipEvent (load) {
score = 0;
timer = 500;
}
onClipEvent (enterFrame) {
score = _root.score;
timer = timer - 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time <= 0) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (score > _global.targetScore) {
_global.targetScore = score;
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 25;
startX = this._x;
xSpeed = 7;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 200;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
this._x = this._x + xSpeed;
xSpeed = xSpeed - 0.5;
if (this._x <= startX) {
this._x = startX;
xSpeed = 7;
timer = 200;
activated = false;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 25;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 100;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Frame 19
onClipEvent (load) {
activated = false;
timer = 25;
}
onClipEvent (enterFrame) {
if (!activated) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 100;
activated = true;
}
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 363 MovieClip in Frame 19
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (activated) {
this._rotation = this._rotation + 5;
this.gotoAndStop(2);
}
}
Instance of Symbol 373 MovieClip "sword" in Frame 19
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
startX = this._x;
startY = this._y;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Frame 20
time = 1000;
counterTarget = 0;
stop();
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
xSpeed = -14;
startX = this._x;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
this._x = this._x + xSpeed;
xSpeed = xSpeed + 0.5;
if (this._x >= startX) {
this._x = startX;
xSpeed = -14;
}
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
xSpeed = 14;
startX = this._x;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
this._x = this._x + xSpeed;
xSpeed = xSpeed - 0.5;
if (this._x <= startX) {
this._x = startX;
xSpeed = 14;
}
}
}
Instance of Symbol 382 MovieClip in Frame 20
onClipEvent (enterFrame) {
this._rotation = this._rotation + 7;
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Frame 20
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 336 MovieClip in Frame 20
onClipEvent (load) {
timer = 1000;
}
onClipEvent (enterFrame) {
timer = timer - 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time <= 0) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (_root.counterTarget >= 29) {
if (time > _global.speedScore) {
_global.speedScore = time;
}
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
}
Frame 21
stop();
time = 0;
score = 0;
Instance of Symbol 336 MovieClip in Frame 21
onClipEvent (load) {
score = 0;
timer = 500;
}
onClipEvent (enterFrame) {
score = _root.score;
timer = timer - 0.5;
time = Math.ceil(timer);
_root.time = time;
if (score > _global.lightScore) {
_global.lightScore = score;
}
if (time <= 0) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 21
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
startX = this._x;
startY = this._y;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Frame 22
stop();
score = 0;
numberTracker = 0;
Instance of Symbol 402 MovieClip in Frame 22
onClipEvent (load) {
this._x = (Math.random() * 550) + 50;
this._y = (Math.random() * 375) + 25;
this._xscale = (Math.random() * 100) + 25;
this._yscale = this._xscale;
timer = 5;
timeInterval = 0.02;
}
onClipEvent (enterFrame) {
if (timer > -1) {
timer = timer - timeInterval;
if (timer > -1) {
time = Math.ceil(timer);
}
}
if (timer == 0) {
this.numbers.gotoAndStop(6);
_root.numberTracker = _root.numberTracker + 1;
timer = -1000;
}
}
Instance of Symbol 402 MovieClip in Frame 22
onClipEvent (load) {
this._x = (Math.random() * 550) + 50;
this._y = (Math.random() * 375) + 25;
this._xscale = (Math.random() * 100) + 25;
this._yscale = this._xscale;
timer = 5;
timeInterval = 0.02;
}
onClipEvent (enterFrame) {
if (timer > -1) {
timer = timer - timeInterval;
if (timer > -1) {
time = Math.ceil(timer);
}
}
if (timer == 0) {
this.numbers.gotoAndStop(6);
_root.numberTracker = _root.numberTracker + 1;
timer = -1000;
}
}
Instance of Symbol 402 MovieClip in Frame 22
onClipEvent (load) {
this._x = (Math.random() * 550) + 50;
this._y = (Math.random() * 375) + 25;
this._xscale = (Math.random() * 100) + 25;
this._yscale = this._xscale;
timer = 5;
timeInterval = 0.02;
}
onClipEvent (enterFrame) {
if (timer > -1.5) {
timer = timer - timeInterval;
if (timer > -1) {
time = Math.ceil(timer);
}
}
if (timer == 0) {
trace("FS");
this.numbers.gotoAndStop(6);
_root.numberTracker = _root.numberTracker + 1;
timer = -1000;
}
}
Instance of Symbol 402 MovieClip in Frame 22
onClipEvent (load) {
this._x = (Math.random() * 550) + 50;
this._y = (Math.random() * 375) + 25;
this._xscale = (Math.random() * 100) + 25;
this._yscale = this._xscale;
timer = 5;
timeInterval = 0.02;
}
onClipEvent (enterFrame) {
if (timer > -1) {
timer = timer - timeInterval;
if (timer > -1) {
time = Math.ceil(timer);
}
}
if (timer == 0) {
this.numbers.gotoAndStop(6);
_root.numberTracker = _root.numberTracker + 1;
timer = -1000;
}
}
Instance of Symbol 336 MovieClip in Frame 22
onClipEvent (load) {
score = 0;
}
onClipEvent (enterFrame) {
score = _root.score;
if (_root.numberTracker >= 4) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (score > _global.countScore) {
_global.countScore = score;
}
}
Instance of Symbol 373 MovieClip "sword" in Frame 22
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
startX = this._x;
startY = this._y;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Frame 23
stop();
time = 0;
Instance of Symbol 410 MovieClip "ball" in Frame 23
onClipEvent (load) {
forward = true;
startXScale = this._xscale;
startYScale = this._yscale;
xSpeed = 13;
ySpeed = 13;
xScale = 2;
yScale = 2;
}
onClipEvent (enterFrame) {
if ((this._xscale > 150) && (forward)) {
this.gotoAndStop(2);
}
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
if (this._x < 25) {
xSpeed = -xSpeed;
this._x = this._x + 30;
_root.ballBounce.start();
}
if (this._x > 665) {
xSpeed = -xSpeed;
this._x = this._x - 30;
_root.ballBounce.start();
}
if (this._y < 25) {
ySpeed = -ySpeed;
this._y = this._y + 30;
_root.ballBounce.start();
}
if (this._y > 425) {
ySpeed = -ySpeed;
this._y = this._y - 30;
_root.ballBounce.start();
}
if (forward) {
this._xscale = this._xscale + xScale;
this._yscale = this._yscale + yScale;
if (this._xscale >= 375) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
}
if (!forward) {
this._xscale = this._xscale - xScale;
this._yscale = this._yscale - yScale;
if (this._xscale <= startXScale) {
forward = true;
xScale = xScale + 0.5;
yScale = yScale + 0.5;
_root.ballBounce.start();
}
}
}
Instance of Symbol 336 MovieClip in Frame 23
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time > _global.racquetScore) {
_global.racquetScore = time;
}
}
Frame 24
stop();
score = 0;
Instance of Symbol 418 MovieClip in Frame 24
onClipEvent (load) {
xFactor = 0.2;
yFactor = 0.2;
ySpeed = 1;
startY = this._y;
falling = true;
startXScale = this._xscale;
startYScale = this._yscale;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < 230) {
this._y = this._y + 10;
}
if (this._y >= 230) {
falling = false;
}
}
if (!falling) {
this._xscale = this._xscale + xFactor;
this._yscale = this._yscale + yFactor;
this._y = this._y + ySpeed;
if (this._y >= 275) {
this.gotoAndStop(2);
}
if (this._y >= 450) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
}
}
Instance of Symbol 420 MovieClip in Frame 24
onClipEvent (load) {
xFactor = 0.5;
yFactor = 0.5;
rotate = 7;
startY = this._y;
falling = true;
startXScale = this._xscale;
startYScale = this._yscale;
this._x = (Math.random() * 500) + 75;
yDistance = (Math.random() * 250) + 75;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < yDistance) {
this._y = this._y + 10;
}
if (this._y >= yDistance) {
falling = false;
}
}
if (!falling) {
if (this._xscale >= 350) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this._xscale = this._xscale + xFactor;
this._yscale = this._yscale + yFactor;
this._rotation = this._rotation + rotate;
if (this._xscale >= 85) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 425 MovieClip in Frame 24
onClipEvent (load) {
xFactor = 0.5;
yFactor = 0.5;
xSpeed = 16;
falling = true;
startY = this._y;
startX = this._x;
yDistance = (Math.random() * 250) + 75;
moveLeft = false;
startXScale = this._xscale;
startYScale = this._yscale;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < yDistance) {
this._y = this._y + 10;
}
if (this._y >= yDistance) {
falling = false;
}
}
if (!falling) {
if (this._xscale >= 350) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this._xscale = this._xscale + xFactor;
this._yscale = this._yscale + yFactor;
this._x = this._x + xSpeed;
if ((xSpeed > -16) && (!moveLeft)) {
xSpeed = xSpeed - 0.5;
}
if ((xSpeed <= -16) && (!moveLeft)) {
moveLeft = true;
}
if ((xSpeed < 16) && (moveLeft)) {
xSpeed = xSpeed + 0.5;
}
if ((xSpeed >= 16) && (moveLeft)) {
moveLeft = false;
}
if (this._xscale >= 85) {
this.gotoAndStop(2);
}
if (this._xscale > 240) {
}
}
}
Instance of Symbol 430 MovieClip in Frame 24
onClipEvent (load) {
xFactor = 0.5;
yFactor = 0.5;
ySpeed = 12;
moveLeft = false;
startY = this._y;
falling = true;
this._x = (Math.random() * 500) + 75;
yDistance = 175;
startXScale = this._xscale;
startYScale = this._yscale;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < yDistance) {
this._y = this._y + 10;
}
if (this._y >= yDistance) {
falling = false;
}
}
if (!falling) {
if (this._xscale >= 350) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
this._xscale = this._xscale + xFactor;
this._yscale = this._yscale + yFactor;
this._y = this._y + ySpeed;
if ((ySpeed > -12) && (!moveLeft)) {
ySpeed = ySpeed - 0.5;
}
if ((ySpeed <= -12) && (!moveLeft)) {
moveLeft = true;
}
if ((ySpeed < 12) && (moveLeft)) {
ySpeed = ySpeed + 0.5;
}
if ((ySpeed >= 12) && (moveLeft)) {
moveLeft = false;
}
if (this._xscale >= 85) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 435 MovieClip in Frame 24
onClipEvent (load) {
dx = (Math.random() * 10) - 5;
dy = (Math.random() * 10) - 5;
xFactor = 0.5;
yFactor = 0.5;
startY = this._y;
startX = this._x;
falling = true;
yDistance = 175;
startXScale = this._xscale;
startYScale = this._yscale;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < yDistance) {
this._y = this._y + 10;
}
if (this._y >= yDistance) {
falling = false;
}
}
if (!falling) {
if (this._xscale >= 350) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if ((this._x > 100) && (this._x < 590)) {
this._x = this._x + dx;
}
if ((this._y > 100) && (this._y < 400)) {
this._y = this._y + dy;
}
if (this._y <= 100) {
this._y = this._y + 75;
}
if (this._y >= 400) {
this._y = this._y - 75;
}
if (this._x <= 100) {
this._x = this._x + 75;
}
if (this._x >= 590) {
this._x = this._x - 75;
}
if (Math.random() > 0.9) {
dx = (Math.random() * 10) - 5;
dy = (Math.random() * 10) - 5;
}
this._xscale = this._xscale + xFactor;
this._yscale = this._yscale + yFactor;
if (this._xscale >= 85) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 440 MovieClip in Frame 24
onClipEvent (load) {
timeCounter = 50;
timer = timeCounter;
falling = true;
startY = this._y;
startXScale = this._xscale;
startYScale = this._yscale;
yDistance = (Math.random() * 250) + 75;
this._x = (Math.random() * 500) + 75;
}
onClipEvent (enterFrame) {
if (falling) {
if (this._y < yDistance) {
this._y = this._y + 10;
}
if (this._y >= yDistance) {
falling = false;
}
}
if (!falling) {
if (this._xscale >= 350) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._x = (Math.random() * 500) + 50;
this._y = (Math.random() * 375) + 50;
this._xscale = this._xscale + 25;
this._yscale = this._yscale + 25;
timer = timeCounter;
}
if (this._xscale >= 85) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 336 MovieClip in Frame 24
onClipEvent (load) {
score = 0;
}
onClipEvent (enterFrame) {
score = _root.score;
if (score > _global.ballScore) {
_global.ballScore = score;
}
}
Frame 25
stop();
time = 0;
Instance of Symbol 444 MovieClip in Frame 25
onClipEvent (enterFrame) {
this._y = _root.dragon._y;
}
Instance of Symbol 444 MovieClip in Frame 25
onClipEvent (enterFrame) {
this._x = _root.dragon._x;
this._y = _root.dragon._y;
}
Instance of Symbol 446 MovieClip "dragon" in Frame 25
onClipEvent (load) {
xSpeed = 7;
ySpeed = 7;
attackCounter = 100;
attackTimer = 100;
attackTimerTwo = 50;
}
onClipEvent (enterFrame) {
if (attackTimer > 0) {
attackTimer--;
}
if (attackTimerTwo > 0) {
attackTimerTwo--;
}
if (attackTimer <= 0) {
if (attackCounter > 15) {
attackTimer = (attackCounter = attackCounter - 2);
attackCounter = (attackCounter = attackCounter - 2);
}
if (attackCounter <= 15) {
attackTimer = 15;
}
_root.fireOne._x = this._x;
_root.fireOne._y = this._y + 20;
_root.fireSound.start();
_root.fireOne._xscale = _root.fireOne.xScale;
_root.fireOne._yscale = _root.fireOne.yScale;
_root.fireOne.attack = true;
}
if (attackTimerTwo <= 0) {
if (attackCounter > 15) {
attackTimerTwo = attackCounter;
}
if (attackCounter <= 15) {
attackTimerTwo = 15;
}
_root.fireTwo._x = this._x;
_root.fireTwo._y = this._y + 20;
_root.fireSound.start();
_root.fireTwo._xscale = _root.fireTwo.xScale;
_root.fireTwo._yscale = _root.fireTwo.yScale;
_root.fireTwo.attack = true;
}
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
if (this._x < 175) {
this._x = this._x + 20;
xSpeed = -xSpeed;
}
if (this._x > 490) {
this._x = this._x - 20;
xSpeed = -xSpeed;
}
if (this._y < 25) {
this._y = this._y + 20;
ySpeed = -ySpeed;
}
if (this._y > 175) {
this._y = this._y - 20;
ySpeed = -ySpeed;
}
}
Instance of Symbol 452 MovieClip "fireOne" in Frame 25
onClipEvent (load) {
attack = false;
xScale = this._xscale;
yScale = this._yscale;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
this._y = this._y + 5;
}
if (this._xscale >= 275) {
if (this.fire.hitTest(_root.sword.avoid)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (this._xscale >= 350) {
attack = false;
this._y = -300;
this._xscale = xScale;
this._yscale = yScale;
}
}
}
Instance of Symbol 452 MovieClip "fireTwo" in Frame 25
onClipEvent (load) {
attack = false;
xScale = this._xscale;
yScale = this._yscale;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this._y = this._y + 6;
}
if (this._xscale >= 275) {
if (this.fire.hitTest(_root.sword.avoid)) {
_root.whistle.start();
_root.gotoAndStop("Minigames");
}
if (this._xscale >= 350) {
attack = false;
this._y = -300;
this._xscale = xScale;
this._yscale = yScale;
}
}
}
Instance of Symbol 458 MovieClip "sword" in Frame 25
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
startX = this._x;
startY = this._y;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
if ((yMouse > 150) && (yMouse < 350)) {
this._y = yMouse;
}
if ((xMouse > 150) && (xMouse < 540)) {
this._x = xMouse;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 336 MovieClip in Frame 25
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time > _global.fireScore) {
_global.fireScore = time;
}
}
Frame 26
stop();
Instance of Symbol 336 MovieClip in Frame 26
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Frame 27
stop();
Instance of Symbol 470 MovieClip "podFive" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeFive.attack) {
_root.sporeFive._x = this._x - 15;
_root.sporeFive._y = this._y - 30;
_root.sporeFive.attack = true;
_root.sporeFive.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podTwo" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeTwo.attack) {
_root.sporeTwo._x = this._x - 15;
_root.sporeTwo._y = this._y - 30;
_root.sporeTwo.attack = true;
_root.sporeTwo.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podSeven" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeSeven.attack) {
_root.sporeSeven._x = this._x - 15;
_root.sporeSeven._y = this._y - 30;
_root.sporeSeven.attack = true;
_root.sporeSeven.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podEight" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeEight.attack) {
_root.sporeEight._x = this._x - 15;
_root.sporeEight._y = this._y - 30;
_root.sporeEight.attack = true;
_root.sporeEight.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podSix" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeSix.attack) {
_root.sporeSix._x = this._x - 15;
_root.sporeSix._y = this._y - 30;
_root.sporeSix.attack = true;
_root.sporeSix.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podOne" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeOne.attack) {
_root.sporeOne._x = this._x - 15;
_root.sporeOne._y = this._y - 30;
_root.sporeOne.attack = true;
_root.sporeOne.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podFour" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeFour.attack) {
_root.sporeFour._x = this._x - 15;
_root.sporeFour._y = this._y - 30;
_root.sporeFour.attack = true;
_root.sporeFour.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podThree" in Frame 27
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 75) {
if (!_root.sporeThree.attack) {
_root.sporeThree._x = this._x - 15;
_root.sporeThree._y = this._y - 30;
_root.sporeThree.attack = true;
_root.sporeThree.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 342 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 27
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 28
stop();
Instance of Symbol 470 MovieClip "podFive" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeFive.attack) {
_root.sporeFive._x = this._x - 15;
_root.sporeFive._y = this._y - 20;
_root.sporeFive.attack = true;
_root.sporeFive.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podTwo" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeTwo.attack) {
_root.sporeTwo._x = this._x - 15;
_root.sporeTwo._y = this._y - 20;
_root.sporeTwo.attack = true;
_root.sporeTwo.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podSeven" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 50) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeSeven.attack) {
_root.sporeSeven._x = this._x - 15;
_root.sporeSeven._y = this._y - 20;
_root.sporeSeven.attack = true;
_root.sporeSeven.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podEight" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeEight.attack) {
_root.sporeEight._x = this._x - 15;
_root.sporeEight._y = this._y - 20;
_root.sporeEight.attack = true;
_root.sporeEight.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podSix" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 75) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeSix.attack) {
_root.sporeSix._x = this._x - 15;
_root.sporeSix._y = this._y - 20;
_root.sporeSix.attack = true;
_root.sporeSix.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 200) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podOne" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeOne.attack) {
_root.sporeOne._x = this._x - 15;
_root.sporeOne._y = this._y - 20;
_root.sporeOne.attack = true;
_root.sporeOne.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podFour" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeFour.attack) {
_root.sporeFour._x = this._x - 15;
_root.sporeFour._y = this._y - 20;
_root.sporeFour.attack = true;
_root.sporeFour.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
this.play();
}
}
Instance of Symbol 470 MovieClip "podThree" in Frame 28
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 50) + 25);
}
onClipEvent (enterFrame) {
if (this.aPod._currentframe == 65) {
if (!_root.sporeThree.attack) {
_root.sporeThree._x = this._x - 15;
_root.sporeThree._y = this._y - 20;
_root.sporeThree.attack = true;
_root.sporeThree.launch = true;
}
}
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 25);
this.play();
}
}
Instance of Symbol 507 MovieClip "sporeOne" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeTwo" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeThree" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeFour" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeFive" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeSix" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeSeven" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 507 MovieClip "sporeEight" in Frame 28
onClipEvent (load) {
attack = false;
launch = false;
hit = false;
maxHeight = -100;
}
onClipEvent (enterFrame) {
if (attack) {
if (launch) {
if (this._y > maxHeight) {
this._x = this._x - 1;
this._y = this._y - 30;
}
if (this._y <= maxHeight) {
launch = false;
this._x = (Math.random() * 500) + 75;
minHeight = 250;
}
}
if (!launch) {
if (!hit) {
if (this._y < minHeight) {
this.gotoAndStop(2);
this._y = this._y + 7;
}
if (this._y >= minHeight) {
this.gotoAndStop(3);
}
}
}
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 28
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Instance of Symbol 373 MovieClip "sword" in Frame 28
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("swoosh");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
life = 4;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (hit) {
_root.hurt.hurtAnimation = true;
}
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
onClipEvent (mouseDown) {
attacking = true;
}
onClipEvent (mouseUp) {
attacking = false;
attackOne = true;
}
Instance of Symbol 515 MovieClip "hurt" in Frame 28
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 28
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 10) {
_root.play();
}
}
Frame 29
stop();
Instance of Symbol 520 MovieClip "bossLife" in Frame 29
onClipEvent (load) {
this.lifeBar._width = 0.1;
}
Frame 30
stop();
Mouse.show();
minigameMusic.stop();
victoryMusic.start();
Frame 31
prepareCounter = 0;
fireSound = new Sound();
fireSound.attachSound("fireball5");
dragonHurt = new Sound();
dragonHurt.attachSound("fireBreath");
swordClang = new Sound();
dragonGrowl = new Sound();
dragonGrowl.attachSound("growl1");
fireWhoosh = new Sound();
fireWhoosh.attachSound("whoosh");
thwack = new Sound();
thwack.attachSound("thwack");
dragonMusic = new Sound();
dragonMusic.attachSound("dragonMusic");
dragonMusic.start(0, 500);
stop();
Instance of Symbol 336 MovieClip in Frame 31
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 31
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 32
stop();
Instance of Symbol 554 MovieClip "dragon" in Frame 32
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 555 MovieClip "fireBall1" in Frame 32
onClipEvent (load) {
attack = false;
this._xscale = 75;
this._yscale = 75;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 7;
this._yscale = this._yscale + 7;
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
Instance of Symbol 555 MovieClip "fireBall2" in Frame 32
onClipEvent (load) {
attack = false;
this._xscale = 75;
this._yscale = 75;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 7;
this._yscale = this._yscale + 7;
this._x = this._x - xSpeed;
this._y = this._y + ySpeed;
}
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
Instance of Symbol 555 MovieClip "fireBall3" in Frame 32
onClipEvent (load) {
attack = false;
this._xscale = 75;
this._yscale = 75;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 7;
this._yscale = this._yscale + 7;
this._x = this._x + xSpeed;
this._y = this._y - ySpeed;
}
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
Instance of Symbol 555 MovieClip "fireBall4" in Frame 32
onClipEvent (load) {
attack = false;
this._xscale = 75;
this._yscale = 75;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 7;
this._yscale = this._yscale + 7;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
}
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 32
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
}
}
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 32
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 10) {
_root.dragon.gotoAndStop(4);
}
}
Instance of Symbol 342 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 32
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 33
stop();
Instance of Symbol 554 MovieClip "dragon" in Frame 33
onClipEvent (load) {
fireCounter = 0;
fireInterval = 20;
attackTimer = 0;
i = 1;
bossLife = 8;
hurt = false;
}
onClipEvent (enterFrame) {
if (!hurt) {
if ((fireCounter > 0) && (attackTimer == 0)) {
this.gotoAndStop(3);
if (fireInterval > 0) {
fireInterval--;
} else {
if (bossLife > 6) {
fireInterval = 30;
}
if ((bossLife > 3) && (bossLife <= 6)) {
fireInterval = 20;
}
if (bossLife <= 3) {
fireInterval = 15;
}
_root["fireBall" + fireCounter]._x = this._x + 5;
_root["fireBall" + fireCounter]._y = this._y + 50;
_root["fireBall" + fireCounter].attack = true;
_root["fireBall" + fireCounter].xSpeed = (Math.random() * 15) - 4;
_root["fireBall" + fireCounter].ySpeed = (Math.random() * 9) - 4;
i++;
fireCounter--;
_root.fireSound.start();
}
}
if (fireCounter <= 0) {
this.gotoAndStop(1);
fireCounter = Math.ceil(Math.random() * 4);
attackTimer = 40;
}
if (attackTimer > 0) {
attackTimer--;
}
}
if (hurt) {
fireCounter = Math.ceil(Math.random() * 4);
attackTimer = 0;
}
}
Instance of Symbol 557 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._y = 600;
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 33
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
life = 4;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (hit) {
_root.hurt.hurtAnimation = true;
}
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
onClipEvent (mouseDown) {
attacking = true;
}
onClipEvent (mouseUp) {
attacking = false;
attackOne = true;
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 33
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 33
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Frame 34
stop();
Mouse.show();
dragonMusic.stop();
victoryMusic.start();
Frame 35
thwack = new Sound();
thwack.attachSound("thwack");
spiderScreech = new Sound();
spiderScreech.attachSound("screech");
spiderDeath = new Sound();
spiderDeath.attachSound("spiderDeath");
webCut = new Sound();
webCut.attachSound("wood");
webShot = new Sound();
webShot.attachSound("spit");
spiderMusic = new Sound();
spiderMusic.attachSound("spiderMusic");
spiderMusic.start(0, 500);
stop();
Instance of Symbol 336 MovieClip in Frame 35
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 35
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 36
stop();
Instance of Symbol 515 MovieClip "hurt" in Frame 36
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 36
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 5) {
_root.spider.gotoAndStop(7);
}
}
Instance of Symbol 342 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 36
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 37
stop();
Instance of Symbol 574 MovieClip "spider" in Frame 37
onClipEvent (load) {
startX = this._x;
startY = this._y;
endY = 0;
timer = 10;
hurt = false;
}
onClipEvent (enterFrame) {
if (!hurt) {
if (this._y <= startY) {
this._x = (Math.random() * 500) + 100;
endY = (Math.random() * 200) + 10;
}
if (this._y < endY) {
if (_root.bossLife.lifeBar._width > 150) {
this._y = this._y + 20;
}
if (_root.bossLife.lifeBar._width <= 150) {
this._y = this._y + 30;
}
}
if (this._y >= endY) {
if (timer > -30) {
timer--;
}
if (timer == 0) {
if (_root.web._currentframe != 3) {
_root.web.attack = true;
}
}
if (timer == -30) {
hurt = true;
}
}
}
if (hurt) {
if (this._y > startY) {
this._y = this._y - 30;
}
if (this._y <= startY) {
timer = 10;
hurt = false;
}
}
}
Instance of Symbol 578 MovieClip "web" in Frame 37
onClipEvent (load) {
attack = false;
timer = 20;
startXScale = this._xscale;
startYScale = this._yscale;
}
onClipEvent (enterFrame) {
if (attack) {
this._x = _root.spider._x + 5;
this._y = _root.spider._y + 150;
this._rotation = this._rotation + 2;
this._xscale = this._xscale + 75;
this._yscale = this._yscale + 75;
this.gotoAndStop(2);
if (this._xscale >= 325) {
attack = false;
this.gotoAndStop(3);
_root.sword.stuck = true;
}
}
if (this._currentframe == 3) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
timer = 20;
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 37
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
stuck = false;
frozen = false;
if (!_global.challengeMode) {
life = 4;
}
if (_global.challengeMode) {
life = _global.challengeLife;
}
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
if (hit) {
_root.hurt.hurtAnimation = true;
frozen = false;
}
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
if (!stuck) {
this._y = yMouse;
this._x = xMouse;
}
if (stuck) {
stuckVariable = Math.random() * 10;
if (stuckVariable < 3) {
this._y = yMouse;
this._x = xMouse;
}
}
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 37
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Instance of Symbol 580 MovieClip in Frame 37
onClipEvent (load) {
this._x = _root.sword._x;
this._y = _root.sword._y - 20;
}
onClipEvent (enterFrame) {
this._x = _root.sword._x;
this._y = _root.sword._y - 20;
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 37
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 5) {
_root.spider.gotoAndStop(2);
}
}
Frame 38
stop();
Mouse.show();
spiderMusic.stop();
victoryMusic.start();
Frame 39
thud = new Sound();
thud.attachSound("thud");
thwack = new Sound();
thwack.attachSound("thwack");
krakenHurt = new Sound();
krakenHurt.attachSound("krakenHurt");
krakenDeath = new Sound();
krakenDeath.attachSound("krakenDeath");
waterSound = new Sound();
waterSound.attachSound("water");
krakenMusic = new Sound();
krakenMusic.attachSound("krakenMusic");
krakenMusic.start(0, 500);
stop();
Instance of Symbol 336 MovieClip in Frame 39
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 39
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 40
stop();
Instance of Symbol 586 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 1.5;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 590 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 1.2;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 586 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 1.1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 590 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 0.55;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 0.45;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 40
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
}
}
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 40
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 41
stop();
tentacleCounter = 20;
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 1000;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 50) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 400;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 40) + 75);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 300;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 500;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 600;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 75) + 25);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 200;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 100;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 10);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 800;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 900;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 634 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 600) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 700;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 15)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 15);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 450;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 75) + 25);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 350;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 550;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil(Math.random() * 30);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 650;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 250;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 150;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 850;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 80) + 25);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 950;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 25);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 750;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 661 MovieClip in Frame 41
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this._x = (Math.random() * 500) + 40;
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 1050;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 663 MovieClip in Frame 41
onClipEvent (load) {
timer = 100;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= 0) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
_root.play();
}
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 41
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
if (!_global.challengeMode) {
life = 4;
}
if (_global.challengeMode) {
life = _global.challengeLife;
}
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (hit) {
_root.hurt.hurtAnimation = true;
}
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
onClipEvent (mouseDown) {
attacking = true;
}
onClipEvent (mouseUp) {
attacking = false;
attackOne = true;
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 41
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 41
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Frame 42
stop();
tentacleCounter = 1000;
Instance of Symbol 702 MovieClip "kraken" in Frame 42
onClipEvent (load) {
_root.waterSound.start();
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 42
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
if (this.lifeBar._width <= 10) {
_root.kraken.gotoAndStop(3);
}
}
Frame 43
stop();
Mouse.show();
krakenMusic.stop();
victoryMusic.start();
Frame 44
fireSound = new Sound();
fireSound.attachSound("fireball5");
fireWhoosh = new Sound();
fireWhoosh.attachSound("whoosh");
windSound = new Sound();
windSound.attachSound("wind");
lightningSound = new Sound();
lightningSound.attachSound("lightning");
rockSound = new Sound();
rockSound.attachSound("rocks");
rockBreak = new Sound();
rockBreak.attachSound("break");
mageHurt = new Sound();
mageHurt.attachSound("mageGrunt");
mageDeath = new Sound();
mageDeath.attachSound("mageDeath");
mageMusic = new Sound();
mageMusic.attachSound("mageMusic");
mageMusic.start(0, 500);
stop();
attack = 0;
Instance of Symbol 336 MovieClip in Frame 44
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 44
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 45
stop();
Instance of Symbol 771 MovieClip "mage" in Frame 45
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 783 MovieClip "rockFour" in Frame 45
onClipEvent (load) {
attack = false;
moveUp = true;
setX = true;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
playControl = true;
targetY = this._y - 350;
}
onClipEvent (enterFrame) {
if (_root.attack == 3) {
if (attack) {
if (setX) {
this._x = (Math.random() * 500) + 50;
setX = false;
}
if ((this._y > targetY) && (moveUp)) {
this.gotoAndStop(2);
this._y = this._y - 3.25;
}
if (this._y <= targetY) {
moveUp = false;
}
}
if (!moveUp) {
if (playControl) {
this.gotoAndStop(3);
playControl = false;
}
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
}
if (this._xscale >= 75) {
if (this._currentframe == 3) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
_root.mage.attacking = false;
_root.mage.gotoAndStop(1);
this.gotoAndStop(1);
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYscale;
moveUp = true;
setX = true;
attack = false;
playControl = true;
}
}
}
Instance of Symbol 783 MovieClip "rockThree" in Frame 45
onClipEvent (load) {
attack = false;
moveUp = true;
setX = true;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
playControl = true;
targetY = this._y - 300;
}
onClipEvent (enterFrame) {
if (_root.attack == 3) {
if (attack) {
if (setX) {
_root.rockSound.start();
this._x = (Math.random() * 200) + 50;
setX = false;
}
if ((this._y > targetY) && (moveUp)) {
this.gotoAndStop(2);
this._y = this._y - 3.5;
}
if (this._y <= targetY) {
moveUp = false;
}
}
if (!moveUp) {
if (playControl) {
this.gotoAndStop(3);
playControl = false;
}
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
}
if (this._xscale >= 75) {
if (this._currentframe == 3) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
this.gotoAndStop(1);
moveUp = true;
setX = true;
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYscale;
playControl = true;
attack = false;
this._y = startY;
}
}
}
Instance of Symbol 783 MovieClip "rockTwo" in Frame 45
onClipEvent (load) {
attack = false;
moveUp = true;
setX = true;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
playControl = true;
targetY = this._y - 200;
}
onClipEvent (enterFrame) {
if (_root.attack == 3) {
if (attack) {
if (setX) {
this._x = (Math.random() * 500) + 100;
setX = false;
}
if ((this._y > targetY) && (moveUp)) {
this.gotoAndStop(2);
this._y = this._y - 3;
}
if (this._y <= targetY) {
moveUp = false;
}
}
if (!moveUp) {
if (playControl) {
this.gotoAndStop(3);
playControl = false;
}
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
}
if (this._xscale >= 75) {
if (this._currentframe == 3) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
this.gotoAndStop(1);
moveUp = true;
setX = true;
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYscale;
playControl = true;
attack = false;
this._y = startY;
}
}
}
Instance of Symbol 789 MovieClip "lightning" in Frame 45
onClipEvent (load) {
attack = false;
startRotate = this._rotation;
startX = this._x;
startY = this._y;
}
onClipEvent (enterFrame) {
if (attack) {
this.gotoAndStop(3);
this._rotation = this._rotation - 3;
if ((this._rotation <= 5) && (this._rotation > 0)) {
_root.mage.attacking = false;
_root.mage.gotoAndStop(1);
this.gotoAndStop(1);
attack = false;
this._rotation = startRotate;
this._x = startX;
this._y = startY;
}
}
}
Instance of Symbol 791 MovieClip "ice" in Frame 45
onClipEvent (load) {
this._alpha = 0;
this._x = 359;
this._y = 207.5;
attack = false;
yFactor = 5;
startXScale = this._xscale;
startX = this._x;
startYScale = this._yscale;
startY = this._y;
}
onClipEvent (enterFrame) {
if (_root.attack == 4) {
if (attack) {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
this._y = this._y - yFactor;
yFactor = yFactor + 0.25;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale >= 75) {
if (this.hitTest(_root.sword)) {
_root.mage.attacking = false;
_root.mage.gotoAndStop(1);
_root.sword.frozen = true;
_root.sword.gotoAndStop(5);
attack = false;
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYScale;
this._alpha = 0;
yFactor = 5;
}
}
if (this._xscale >= 125) {
_root.mage.attacking = false;
_root.mage.gotoAndStop(1);
attack = false;
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYScale;
this._alpha = 0;
yFactor = 5;
}
}
}
}
}
Instance of Symbol 792 MovieClip "fireTwo" in Frame 45
onClipEvent (load) {
attack = false;
reverseShot = false;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
}
onClipEvent (enterFrame) {
if (attack) {
this.gotoAndStop(2);
this._xscale = this._xscale + 9;
this._yscale = this._yscale + 9;
this._x = this._x - 15;
if (this._xscale >= 175) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
reverseShot = true;
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
this._xscale = startXScale;
this._yscale = startYScale;
this._x = startX;
this._y = startY;
_root.mage.attacking = false;
_root.mage.gotoAndStop(1);
this.gotoAndStop(1);
}
attack = false;
}
}
if (reverseShot) {
this._xscale = this._xscale - 9;
this._yscale = this._yscale - 9;
this._x = this._x + 16;
if (this._xscale <= startXScale) {
_root.mage.hurt = true;
reverseShot = false;
this._xscale = startXScale;
this._yscale = startYScale;
this._x = startX;
this._y = startY;
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 30;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 792 MovieClip "fireOne" in Frame 45
onClipEvent (load) {
attack = false;
reverseShot = false;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
}
onClipEvent (enterFrame) {
if (attack) {
this.gotoAndStop(2);
this._xscale = this._xscale + 9;
this._yscale = this._yscale + 9;
this._x = this._x + 10;
if (this._xscale >= 175) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
reverseShot = true;
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
this._xscale = startXScale;
this._yscale = startYScale;
this._x = startX;
this._y = startY;
this.gotoAndStop(1);
}
attack = false;
}
}
if (reverseShot) {
this._xscale = this._xscale - 9;
this._yscale = this._yscale - 9;
this._x = this._x + 15;
this._y = this._y - 20;
if (this._xscale <= startXScale) {
reverseShot = false;
this._xscale = startXScale;
this._yscale = startYScale;
this._x = startX;
this._y = startY;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 783 MovieClip "rockOne" in Frame 45
onClipEvent (load) {
attack = false;
moveUp = true;
setX = true;
startXScale = this._xscale;
startYScale = this._yscale;
startX = this._x;
startY = this._y;
playControl = true;
startY = this._y;
targetY = this._y - 200;
}
onClipEvent (enterFrame) {
if (_root.attack == 3) {
if (attack) {
if (setX) {
this._x = (Math.random() * 100) + 520;
setX = false;
}
if ((this._y > targetY) && (moveUp)) {
this._y = this._y - 5;
this.gotoAndStop(2);
}
if (this._y <= targetY) {
moveUp = false;
}
}
if (!moveUp) {
if (playControl) {
this.gotoAndStop(3);
playControl = false;
}
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
}
if (this._xscale >= 75) {
if (this._currentframe == 3) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
this.gotoAndStop(1);
moveUp = true;
setX = true;
this._y = startY;
this._x = startX;
this._xscale = startXScale;
this._yscale = startYscale;
playControl = true;
attack = false;
this._y = startY;
}
}
}
Instance of Symbol 555 MovieClip "fireBall4" in Frame 45
onClipEvent (load) {
attack = false;
this._xscale = 75;
this._yscale = 75;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (attack) {
this._xscale = this._xscale + 7;
this._yscale = this._yscale + 7;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
}
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 45
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 45
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 5) {
_root.mage.gotoAndStop(7);
}
}
Instance of Symbol 342 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 45
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 46
stop();
Instance of Symbol 771 MovieClip "mage" in Frame 46
onClipEvent (load) {
attacking = false;
hurt = false;
attack = Math.ceil(Math.random() * 100);
}
onClipEvent (enterFrame) {
if ((!hurt) && (_root.bossLife.lifeBar._width > 5)) {
if (this._currentframe == 1) {
attack = Math.ceil(Math.random() * 100);
attacking = true;
}
if (!attacking) {
attack = Math.ceil(Math.random() * 100);
attacking = true;
}
if (attacking) {
if ((attack >= 0) && (attack <= 30)) {
_root.attack = 1;
this.gotoAndStop(2);
}
if ((attack > 30) && (attack <= 52)) {
_root.attack = 2;
this.gotoAndStop(3);
}
if ((attack > 52) && (attack <= 75)) {
_root.attack = 3;
this.gotoAndStop(4);
}
if ((attack > 75) && (attack <= 100)) {
_root.attack = 4;
this.gotoAndStop(5);
}
}
}
if (hurt && (_root.bossLife.lifeBar._width > 5)) {
attacking = false;
attack = 0;
this.gotoAndStop(6);
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 46
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
frozen = false;
if (!_global.challengeMode) {
life = 4;
}
if (_global.challengeMode) {
life = _global.challengeLife;
}
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
if (hit) {
_root.hurt.hurtAnimation = true;
frozen = false;
}
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 46
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Frame 47
stop();
Mouse.show();
mageMusic.stop();
victoryMusic.start();
Frame 48
stop();
attack = 0;
swordClang = new Sound();
knightWarp = new Sound();
knightWarp.attachSound("warp2");
thwack = new Sound();
thwack.attachSound("thwack");
knightHit = new Sound();
knightHit.attachSound("knightHit");
lightSound = new Sound();
lightSound.attachSound("lightWoosh");
knightMusic = new Sound();
knightMusic.attachSound("knightMusic");
knightMusic.start(0, 500);
Instance of Symbol 336 MovieClip in Frame 48
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 48
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 49
stop();
Instance of Symbol 515 MovieClip "hurt" in Frame 49
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Instance of Symbol 520 MovieClip "bossLife" in Frame 49
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this.lifeBar._width <= 5) {
_root.dKnight.gotoAndStop(9);
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 49
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 50
stop();
Instance of Symbol 844 MovieClip "dKnight" in Frame 50
onClipEvent (load) {
directionControl = true;
attacking = false;
hurt = false;
attack = Math.ceil(Math.random() * 100);
}
onClipEvent (enterFrame) {
if ((!hurt) && (this._currentframe == 2)) {
if ((this._x <= 345) && (!directionControl)) {
this._xscale = -this._xscale;
directionControl = true;
}
if ((this._x > 345) && (directionControl)) {
this._xscale = -this._xscale;
directionControl = false;
}
if ((!hurt) && (_root.bossLife.lifeBar._width > 5)) {
if (this._currentframe == 2) {
attack = Math.ceil(Math.random() * 100);
attacking = true;
}
if (!attacking) {
attack = Math.ceil(Math.random() * 100);
attacking = true;
}
if (attacking) {
if ((attack > 0) && (attack <= 30)) {
_root.attack = 1;
this.gotoAndStop(3);
}
if ((attack > 30) && (attack <= 52)) {
_root.attack = 2;
this.gotoAndStop(4);
}
if ((attack > 52) && (attack <= 75)) {
_root.attack = 3;
this.gotoAndStop(5);
}
if ((attack > 75) && (attack <= 100)) {
_root.attack = 4;
this.gotoAndStop(6);
}
}
}
}
if (hurt && (_root.bossLife.lifeBar._width > 5)) {
attacking = false;
attack = 0;
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 50
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
frozen = false;
if (!_global.challengeMode) {
life = 4;
}
if (_global.challengeMode) {
life = _global.challengeLife;
}
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
if (hit) {
_root.hurt.hurtAnimation = true;
frozen = false;
}
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 50
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Frame 51
stop();
Instance of Symbol 336 MovieClip in Frame 51
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 51
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 52
thud = new Sound();
thud.attachSound("thud");
fireWhoosh = new Sound();
fireWhoosh.attachSound("whoosh");
fireSound = new Sound();
fireSound.attachSound("fireball5");
deathBlast = new Sound();
deathBlast.attachSound("blast");
stop();
Instance of Symbol 515 MovieClip "hurt" in Frame 52
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("essenceGameover");
}
}
}
}
Instance of Symbol 342 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 52
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 53
timer = 500;
stop();
Instance of Symbol 875 MovieClip in Frame 53
onClipEvent (enterFrame) {
this._x = _root.essence._x;
this._y = _root.essence._y;
if (_root.timer == 200) {
this._xscale = 50;
this._yscale = 50;
this.armOne.play();
this.armTwo.timer = 75;
this.armTwo.startAttack = false;
}
if ((_root.timer <= 200) && (_root.timer > 0)) {
this._rotation = this._rotation + 1;
}
if (_root.timer <= 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 6;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 220) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 5;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 230) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 6;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 240) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 5;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 250) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 6) - 2;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 260) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 6;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 270) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 5;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 280) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 6;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 290) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 10) - 5;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 300) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.fireWhoosh.start();
_root.sword.sparks.play();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 878 MovieClip in Frame 53
onClipEvent (load) {
startX = this._x;
startY = this._y;
xDirection = (Math.random() * 15) - 8;
yDirection = (Math.random() * 6) - 2;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.timer == 310) {
this._x = _root.essence._x;
this._y = _root.essence._y;
_root.fireSound.start();
attack = true;
}
if (attack) {
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
this._x = this._x + xDirection;
this._y = this._y + yDirection;
if (this._xscale >= 200) {
if (this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
_root.fireWhoosh.start();
}
if (!this.blockArea.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
attack = false;
this._xscale = 75;
this._yscale = 75;
this._y = -300;
}
}
}
Instance of Symbol 663 MovieClip in Frame 53
onClipEvent (load) {
timer = 500;
}
onClipEvent (enterFrame) {
if (_root.timer > 0) {
timeRound = Math.ceil(timer);
timer = timer - 0.5;
_root.timer = timeRound;
}
if (_root.timer <= 0) {
if (_root.essence._currentframe == 1) {
_root.essence.gotoAndStop(2);
}
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 53
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
frozen = false;
if (!_global.challengeMode) {
life = 4;
}
if (_global.challengeMode) {
life = _global.challengeLife;
}
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
_global.challengeLife = life;
if (hit) {
_root.hurt.hurtAnimation = true;
frozen = false;
}
if (!frozen) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
}
onClipEvent (mouseDown) {
if (!frozen) {
attacking = true;
}
}
onClipEvent (mouseUp) {
if (!frozen) {
attacking = false;
attackOne = true;
}
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 53
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 475 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Frame 54
stop();
Instance of Symbol 114 MovieClip in Frame 54
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 55
stop();
Mouse.show();
knightMusic.stop();
victoryMusic.start();
Frame 56
stop();
Frame 57
stop();
Frame 58
stop();
Mouse.show();
endlessMusic.stop();
dragonMusic.stop();
spiderMusic.stop();
krakenMusic.stop();
mageMusic.stop();
knightMusic.stop();
minigameMusic.stop();
gameoverMusic.start();
Frame 59
thwack = new Sound();
thwack.attachSound("thwack");
endlessMusic = new Sound();
endlessMusic.attachSound("endlessMusic");
endlessMusic.start(0, 700);
tentacleCounter = 0;
Instance of Symbol 336 MovieClip in Frame 59
onClipEvent (load) {
_root.prepareCounter = 0;
}
onClipEvent (enterFrame) {
if (_root.prepareCounter >= 3) {
_root.play();
}
}
Instance of Symbol 107 MovieClip in Frame 59
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Frame 60
stop();
Instance of Symbol 586 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 1.5;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 590 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 1.2;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 586 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 1.1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 590 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.55;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.45;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 588 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -50) {
this._x = 900;
}
}
Instance of Symbol 515 MovieClip "hurt" in Frame 60
onClipEvent (load) {
hurtSound = new Sound();
hurtSound.attachSound("hurt");
deathSound = new Sound();
deathSound.attachSound("dying");
this._visible = false;
hurtAnimation = false;
hurtCounter = 8;
}
onClipEvent (enterFrame) {
if (hurtAnimation) {
this._visible = true;
this._rotation = (Math.random() * 60) - 30;
if (hurtCounter > 0) {
hurtCounter--;
}
if (_root.heartFour._visible) {
if (hurtCounter == 7) {
hurtSound.start();
}
if (hurtCounter == 0) {
hurtAnimation = false;
this._rotation = 0;
this._visible = false;
hurtCounter = 8;
_root.sword.hit = false;
}
}
if (!_root.heartFour._visible) {
if (hurtCounter == 7) {
deathSound.start();
}
if (hurtCounter == 0) {
_root.gotoAndStop("Gameover");
}
}
}
}
Instance of Symbol 336 MovieClip in Frame 60
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 0.5;
time = Math.ceil(timer);
_root.time = time;
if (time > _global.endlessScore) {
_global.endlessScore = time;
}
}
Instance of Symbol 342 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.gotoAndStop(3);
}
}
Instance of Symbol 114 MovieClip in Frame 60
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 7;
}
if (this._alpha <= 0) {
_root.play();
}
}
Frame 61
stop();
Instance of Symbol 953 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -220) && (_root.tentacleCounter <= -180)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 12)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(13);
}
}
}
if (_root.tentacleCounter < -220) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 929 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter <= -210) && (_root.tentacleCounter > -310)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -310) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1038 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -260) && (_root.tentacleCounter <= -230)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -260) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1049 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -80) && (_root.tentacleCounter <= 0)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -80) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 929 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -240) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 953 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -230) && (_root.tentacleCounter <= -150)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 12)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(13);
}
}
}
if (_root.tentacleCounter < -220) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 974 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -180) && (_root.tentacleCounter <= -135)) {
if (damage >= 2) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -180) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 974 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -140) && (_root.tentacleCounter <= -60)) {
if (damage >= 2) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -140) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 953 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -310) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 12)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(13);
}
}
}
}
Instance of Symbol 974 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -130) && (_root.tentacleCounter <= -30)) {
if (damage >= 2) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -130) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 974 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -160) && (_root.tentacleCounter <= -115)) {
if (damage >= 2) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -160) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1038 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -200) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 998 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -160) && (_root.tentacleCounter <= -80)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -160) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 953 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -215) && (_root.tentacleCounter <= -160)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 12)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(13);
}
}
}
if (_root.tentacleCounter < -215) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1022 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 500;
this._visible = false;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
Instance of Symbol 1073 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -350) {
if (damage >= 5) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 1049 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -60) && (_root.tentacleCounter <= 0)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -60) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 929 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -220) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 998 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -190) && (_root.tentacleCounter <= -165)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -190) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1073 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -280) {
if (damage >= 5) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(79);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 1038 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -240) && (_root.tentacleCounter <= -160)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -240) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 929 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -265) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 998 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -200) && (_root.tentacleCounter <= -120)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -200) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1049 MovieClip in Frame 61
onClipEvent (load) {
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.tentacleCounter > -90) && (_root.tentacleCounter <= -30)) {
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
if (_root.tentacleCounter < -90) {
this.gotoAndStop(1);
this._x = 1000;
}
}
Instance of Symbol 1105 MovieClip in Frame 61
onClipEvent (load) {
damage = 0;
counterControl = true;
this._x = (Math.random() * 500) + 40;
attackCounter = Math.ceil((Math.random() * 100) + 50);
if (this._x > 350) {
this._xscale = -this._xscale;
}
timer = 25;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tentacleCounter <= -370) {
if (damage >= 3) {
if (counterControl) {
_root.tentacleCounter = _root.tentacleCounter - 1;
counterControl = false;
}
this.gotoAndStop(51);
}
if (timer > 0) {
timer--;
if (timer == 0) {
this._x = (Math.random() * 500) + 40;
}
}
if (timer <= 0) {
this._visible = true;
if (attackCounter > 0) {
attackCounter--;
}
if ((attackCounter == 0) && (this._currentframe < 17)) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(18);
}
}
}
}
Instance of Symbol 142 MovieClip "sword" in Frame 61
onClipEvent (load) {
Mouse.hide();
swordSlash = new Sound();
swordSlash.attachSound("slash");
yMouse = _root._ymouse;
xMouse = _root._xmouse;
attacking = false;
attackOne = true;
attackTwo = false;
yAttack = false;
xAttack = false;
hit = false;
life = 4;
yValue = 0;
xValue = 0;
}
onClipEvent (enterFrame) {
yMouse = _root._ymouse;
xMouse = _root._xmouse;
this._y = yMouse;
this._x = xMouse;
if (hit) {
_root.hurt.hurtAnimation = true;
}
if (life == 4) {
_root.heartOne._visible = true;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 3) {
_root.heartOne._visible = false;
_root.heartTwo._visible = true;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 2) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = true;
_root.heartFour._visible = true;
}
if (life == 1) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = true;
}
if (life <= 0) {
_root.heartOne._visible = false;
_root.heartTwo._visible = false;
_root.heartThree._visible = false;
_root.heartFour._visible = false;
}
if (!attacking) {
this._rotation = _root.angleControl.angleB;
if (xMouse < 230) {
this.gotoAndStop(1);
}
if ((xMouse >= 230) && (xMouse <= 460)) {
this.gotoAndStop(2);
}
if (xMouse > 460) {
this.gotoAndStop(3);
}
}
if (attacking) {
this.gotoAndStop(4);
if (attackOne) {
this.aSword.play();
}
}
}
onClipEvent (mouseDown) {
attacking = true;
}
onClipEvent (mouseUp) {
attacking = false;
attackOne = true;
}
Instance of Symbol 334 MovieClip "angleControl" in Frame 61
onClipEvent (load) {
this._visible = false;
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
}
onClipEvent (enterFrame) {
a = Math.abs(this._x - _root.sword.xMouse);
b = 450 - _root.sword.yMouse;
c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
sinB = b / c;
cosB = b / c;
tanB = b / a;
if (this._x > _root.sword.xMouse) {
angleB = (Math.asin(sinB) * 57.2957795130823) - 90;
}
if (this._x < _root.sword.xMouse) {
angleB = (-(Math.asin(sinB) * 57.2957795130823)) - 270;
}
}
Frame 62
Mouse.show();
endlessMusic.stop();
dragonMusic.stop();
spiderMusic.stop();
krakenMusic.stop();
mageMusic.stop();
knightMusic.stop();
minigameMusic.stop();
gameoverMusic.start();
Instance of Symbol 107 MovieClip in Frame 62
onClipEvent (load) {
qualityControl = 1;
}
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
}
onClipEvent (keyUp) {
if (!Key.isDown(81)) {
qualityControl = 1;
}
}
Instance of Symbol 59 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 5;
}
Instance of Symbol 61 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 63 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Symbol 82 Button
on (release) {
_root.play();
}
Symbol 83 MovieClip Frame 1
_root.stop();
percentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
percentFuddle = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loaded.text = percentFuddle;
if (percentLoaded != 100) {
setProperty(bar, _xscale , percentLoaded);
} else {
gotoAndStop (3);
}
Symbol 83 MovieClip Frame 2
gotoAndPlay (1);
Symbol 87 MovieClip Frame 110
_root.play();
Symbol 96 Button
on (rollOver) {
_root.buttonSound.start();
}
on (press) {
_root.userSelection = "start";
_root.titleMusic.stop();
_root.buttonSelect.start();
_root.play();
}
Symbol 98 Button
on (rollOver) {
_root.buttonSound.start();
}
on (press) {
_root.userSelection = "controls";
_root.titleMusic.stop();
_root.buttonSelect.start();
_root.play();
}
Symbol 100 Button
on (rollOver) {
_root.buttonSound.start();
}
on (press) {
_root.userSelection = "strategy";
_root.titleMusic.stop();
_root.buttonSelect.start();
_root.play();
}
Symbol 102 Button
on (rollOver) {
_root.buttonSound.start();
}
on (press) {
_root.userSelection = "credits";
_root.titleMusic.stop();
_root.buttonSelect.start();
_root.play();
}
Symbol 105 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 6
onClipEvent (enterFrame) {
_parent._parent.play();
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Instance of Symbol 124 MovieClip in Symbol 133 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 15;
this._yscale = this._yscale + 15;
}
}
Symbol 140 MovieClip Frame 1
_root.sword.attackOne = true;
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 140 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
Symbol 140 MovieClip Frame 3
stop();
_root.sword.attackOne = false;
Symbol 142 MovieClip Frame 1
stop();
Instance of Symbol 121 MovieClip "blockArea" in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Instance of Symbol 119 MovieClip in Symbol 142 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 140 MovieClip "aSword" in Symbol 142 MovieClip Frame 4
onClipEvent (load) {
this.stop();
_parent.swordSlash.start();
freezeSound = new Sound();
freezeSound.attachSound("freeze");
_parent.freezeSound.start();
}
Symbol 142 MovieClip Frame 5
freezeSound = new Sound();
freezeSound.attachSound("freeze");
freezeSound.start();
Symbol 144 MovieClip Frame 80
_root.demo.gotoAndStop(1);
Instance of Symbol 119 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
smaller = true;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 10;
if ((this._xscale > 85) && (smaller)) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else {
smaller = false;
}
if ((this._xscale < 100) && (!smaller)) {
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
} else {
smaller = true;
}
}
Instance of Symbol 117 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
smaller = true;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 10;
if ((this._xscale > 85) && (smaller)) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else {
smaller = false;
}
if ((this._xscale < 100) && (!smaller)) {
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
} else {
smaller = true;
}
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 152 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
}
Symbol 152 MovieClip Frame 5
stop();
Symbol 154 MovieClip Frame 83
_root.demo.gotoAndStop(1);
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 3
stop();
Symbol 166 Button
on (press) {
_root.buttonSparkle.start();
_root.gotoAndStop("start");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 167 Button
on (rollOver) {
_root.controlText = "You attack in much the same way as you block, except this time the target is green. Position the aiming area of the sword over a green target, and click and hold the left mouse button. Remember, red targets are for blocking, green targets are for attacking. Click this button for a demonstration.";
}
on (press) {
_root.demo.gotoAndStop(3);
}
Symbol 168 Button
on (rollOver) {
_root.controlText = "Your sword is set to correspond with the movements of your mouse. It will follow the horizontal and vertical movements, as well as rotating in relation to the position of the mouse. Also, Q toggles the game's quality.";
}
Symbol 169 Button
on (rollOver) {
_root.controlText = "In order to block, all you must do is line up the red target on your sword with a red target on the screen. You cannot block while attacking. Click this button for a demonstration.";
}
on (press) {
_root.demo.gotoAndStop(2);
}
Symbol 190 Button
on (rollOver) {
_root.strategyText = "Always remember to hold down the mouse to fully swing. If you click too quickly it won't register the hit. When faced with the decision to either block or attack you should usually try blocking before attacking, even if there's an opening present. If you're having trouble, try turning the quality up. This should make things run slower than usual, giving you more time to react. In contrast, turning the quality down will result in a speed increase, providing more of a challenge. Try playing the minigames to learn the basics of moving and attacking. Additional minigames can be unlocked on completion of the game.";
}
Symbol 191 Button
on (rollOver) {
_root.strategyText = "This is a pretty basic fight. Fireballs are set to move in random directions. There are always 1-4 fireballs per attack. His second attack always lands in the same area, and is only initiated when he takes damage.";
}
Symbol 192 Button
on (rollOver) {
_root.strategyText = "This enemy has 4 different elemental attacks that can be determined by the color surrounding his hands before the attack. The fire will always be shot to the same locations, and only the second ball can be bounced backwards to hit him. The lightning moves in a circular pattern that must be traced by your sword. The ice can only be dodged or it will freeze your sword in place. Try placing the mouse in the lower right/left corner. Finally the earth will always have four rocks, starting with one on the right, and having one on the left go third.";
}
Symbol 193 Button
on (rollOver) {
_root.strategyText = "Another two part fight. In the first part, the boss will warp back and forth in between attacks. He has four attacks which can also be reversed to his opposite side. Learn which attacks correspond with each hit point. The best place to attack is his head after his downward slash attack. The second part is a timed fight. Block his arms until he starts shooting fireballs. He will shoot ten in total before swinging at you again. This time his arms will rotate. Just keep blocking them until time runs out.";
}
Symbol 194 Button
on (rollOver) {
_root.strategyText = "This is a two part fight. During the first part the boss will attack you without immerging. Defeat 20 tentacles to reveal the actual boss. His only attack is swatting at you with his arms. Keep blocking them and attack the eyes whenever the opportunity presents itself.";
}
Symbol 195 Button
on (rollOver) {
_root.strategyText = "Whenever you're waiting for this enemy to drop down, sweep the sword back and forth across this top of the screen. When he finally appears, you should be able to hit him before he attacks. If he gets an attack off, your sword will move differently until you attack the web. Be careful, he moves faster after his life is reduced to half.";
}
Symbol 196 Button
on (rollOver) {
_root.strategyText = "Endless mode can be activated by clicking either red circle on the menu screen. Four extra minigames can be unlocked by completing the game. The final minigame is unlocked by beating each minigame's target score. Challenge mode is unlocked by beating the game.";
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
_root.buttonSound.start();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 2
_root.buttonSound.start();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
_root.buttonSound.start();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
_root.buttonSound.start();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
_root.buttonSound.start();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
_root.buttonSound.start();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
_root.buttonSound.start();
Symbol 269 Button
on (rollOver) {
_root.chapterText = "ENDLESS MODE\n\nTry to last as long as you can against increasingly difficult tentacles.\n\nGreen-normal\nGrey-double hit\nPink-extra heart\nBlack-injury\nRed-double damage\nBlue-glitchy target\nWhite-double speed\n\nHIGH: " + _global.endlessScore;
}
on (release) {
_root.menuMusic.stop();
_root.levelSelection = "endless";
_root.buttonSparkle.start();
_root.play();
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 281 MovieClip Frame 3
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 284 MovieClip Frame 3
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 287 MovieClip Frame 3
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 290 MovieClip Frame 3
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 294 MovieClip Frame 3
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 297 MovieClip Frame 3
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 300 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 303 MovieClip Frame 3
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 306 MovieClip Frame 3
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
_root.buttonSound.start();
Symbol 309 MovieClip Frame 3
stop();
Symbol 322 Button
on (press) {
_root.minigameSelectMusic.stop();
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
on (rollOver) {
_root.buttonSound.start();
}
Instance of Symbol 117 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 119 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip "blockArea" in Symbol 332 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
stop();
Symbol 342 MovieClip Frame 3
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip "blockArea" in Symbol 345 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.score = _root.score + 100;
_parent.activated = false;
_root.woodHit.start();
_parent.play();
}
}
Instance of Symbol 352 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
activated = false;
}
onClipEvent (enterFrame) {
if (_parent.activated && (this._currentframe == 1)) {
this.activated = true;
}
if (activated) {
this.gotoAndStop(2);
}
}
Symbol 363 MovieClip Frame 1
stop();
Instance of Symbol 362 MovieClip in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
_parent.activated = true;
}
Symbol 363 MovieClip Frame 2
stop();
Instance of Symbol 350 MovieClip in Symbol 363 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.score = _root.score + 100;
_root.woodHit.start();
_parent.activated = false;
_parent.play();
}
}
Symbol 371 MovieClip Frame 1
_root.sword.attackOne = true;
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 371 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
Symbol 371 MovieClip Frame 3
stop();
_root.sword.attackOne = false;
Symbol 373 MovieClip Frame 1
stop();
Instance of Symbol 121 MovieClip "blockArea" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 373 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 3
stop();
Symbol 373 MovieClip Frame 4
stop();
Instance of Symbol 119 MovieClip in Symbol 373 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 371 MovieClip "asword" in Symbol 373 MovieClip Frame 4
onClipEvent (load) {
_parent.swordSlash.start();
}
Symbol 379 MovieClip Frame 1
stop();
Instance of Symbol 350 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.counter = _root.counter + 1;
_parent.activated = false;
_root.woodHit.start();
_parent.play();
}
}
Symbol 379 MovieClip Frame 2
stop();
_root.counterTarget = _root.counterTarget + 1;
Symbol 379 MovieClip Frame 3
stop();
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 379 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
activated = true;
}
onClipEvent (enterFrame) {
if (!activated) {
this.gotoAndStop(2);
}
if (activated) {
this.gotoAndStop(1);
}
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
if (this.hitTest(_root.sword.blockArea)) {
_root.score++;
}
}
Symbol 388 MovieClip Frame 50
stop();
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 50
onClipEvent (load) {
xSpeed = 0;
ySpeed = 0;
moveUp = true;
moveLeft = true;
}
onClipEvent (enterFrame) {
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
if (_root.time > 400) {
xSpeed = 0;
if ((ySpeed > -10) && (!moveUp)) {
ySpeed = ySpeed - 0.5;
}
if ((ySpeed <= -10) && (!moveUp)) {
moveUp = true;
}
if ((ySpeed < 10) && (moveUp)) {
ySpeed = ySpeed + 0.5;
}
if ((ySpeed >= 10) && (moveUp)) {
moveUp = false;
}
}
if ((_root.time <= 400) && (_root.time > 300)) {
if (_root.time == 400) {
xSpeed = 15;
}
ySpeed = 0;
if ((xSpeed > -15) && (!moveLeft)) {
xSpeed = xSpeed - 0.5;
}
if ((xSpeed <= -15) && (!moveLeft)) {
moveLeft = true;
}
if ((xSpeed < 15) && (moveLeft)) {
xSpeed = xSpeed + 0.5;
}
if ((xSpeed >= 15) && (moveLeft)) {
moveLeft = false;
}
}
if ((_root.time <= 300) && (_root.time > 90)) {
if (_root.time == 300) {
ySpeed = 10;
}
if ((ySpeed > -10) && (!moveUp)) {
ySpeed = ySpeed - 0.5;
}
if ((ySpeed <= -10) && (!moveUp)) {
moveUp = true;
}
if ((ySpeed < 10) && (moveUp)) {
ySpeed = ySpeed + 0.5;
}
if ((ySpeed >= 10) && (moveUp)) {
moveUp = false;
ySpeed = 9.5;
}
if ((xSpeed >= -15) && (!moveLeft)) {
if (_root.time > 200) {
xSpeed = xSpeed - 0.5;
}
if (_root.time <= 200) {
xSpeed = xSpeed - 1;
}
}
if ((xSpeed <= -15) && (!moveLeft)) {
moveLeft = true;
}
if ((xSpeed <= 15) && (moveLeft)) {
if (_root.time > 200) {
xSpeed = xSpeed + 0.5;
}
if (_root.time <= 200) {
xSpeed = xSpeed + 1;
}
}
if ((xSpeed >= 15) && (moveLeft)) {
moveLeft = false;
xSpeed = 14.5;
}
}
if (_root.time <= 90) {
xSpeed = (Math.random() * 25) - 13;
ySpeed = (Math.random() * 25) - 13;
}
}
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 3
stop();
Symbol 401 MovieClip Frame 4
stop();
Symbol 401 MovieClip Frame 5
stop();
Symbol 401 MovieClip Frame 6
stop();
_root.numberTracker = _root.numberTracker + 1;
Symbol 402 MovieClip Frame 1
counter = 5;
Instance of Symbol 350 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
if (_parent.timer > 0) {
_root.woodHit.start();
_root.score = _root.score + (100 * _parent.counter);
_parent._x = (Math.random() * 550) + 50;
_parent._y = (Math.random() * 375) + 25;
_parent._xscale = (Math.random() * 100) + 25;
_parent._yscale = _parent._xscale;
_parent.timer = 5;
if (_root.numberTracker < 3) {
if (_parent.timeInterval < 0.1) {
_parent.timeInterval = _parent.timeInterval + 0.002;
}
}
if (_root.numberTracker >= 3) {
_parent.timeInterval = _parent.timeInterval + 0.004;
}
}
}
}
Instance of Symbol 401 MovieClip "numbers" in Symbol 402 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.time > 0) {
this.gotoAndStop(_parent.time);
}
if (_parent.time == 0) {
this.gotoAndStop(6);
}
}
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 410 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ball.forward = false;
_root.ballHit2.start();
_root.ball.gotoAndStop(1);
}
}
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 418 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 75;
_parent.xFactor = _parent.xFactor + 0.05;
_parent.yFactor = _parent.yFactor + 0.05;
_parent.ySpeed = _parent.ySpeed + 0.05;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = (Math.random() * 250) + 150;
_parent._y = _parent.startY;
_parent.falling = true;
_parent.gotoAndStop(1);
}
}
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 420 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 200;
_parent.xFactor = _parent.xFactor + 0.1;
_parent.yFactor = _parent.yFactor + 0.1;
_parent.rotate = _parent.rotate + 0.1;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = (Math.random() * 250) + 150;
_parent._y = _parent.startY;
_parent.falling = true;
_parent.yDistance = (Math.random() * 250) + 75;
_parent.gotoAndStop(1);
}
}
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 425 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 100;
_parent.xFactor = _parent.xFactor + 0.1;
_parent.yFactor = _parent.yFactor + 0.1;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = _parent.startX + 125;
_parent._y = _parent.startY;
_parent.yDistance = (Math.random() * 250) + 75;
_parent.falling = true;
_parent.gotoAndStop(1);
}
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 430 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 100;
_parent.xFactor = _parent.xFactor + 0.1;
_parent.yFactor = _parent.yFactor + 0.1;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = (Math.random() * 250) + 150;
_parent._y = _parent.startY;
_parent.yDistance = 225;
_parent.falling = true;
_parent.gotoAndStop(1);
}
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 435 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 100;
_parent.xFactor = _parent.xFactor + 0.1;
_parent.yFactor = _parent.yFactor + 0.1;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = _parent.startX;
_parent._y = _parent.startY;
_parent.yDistance = (Math.random() * 250) + 75;
_parent.falling = true;
_parent.gotoAndStop(1);
}
}
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.ballHit.start();
_root.score = _root.score + 150;
_parent.yDistance = (Math.random() * 250) + 75;
if (_parent.timeCounter > 20) {
_parent.timeCounter = _parent.timeCounter - 1;
}
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent._x = (Math.random() * 250) + 150;
_parent._y = _parent.startY;
_parent.falling = true;
_parent.gotoAndStop(1);
}
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 13;
}
Instance of Symbol 449 MovieClip in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 17;
}
Instance of Symbol 451 MovieClip "fire" in Symbol 452 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 40;
}
Symbol 458 MovieClip Frame 1
stop();
Instance of Symbol 121 MovieClip "blockArea" in Symbol 458 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 454 MovieClip "avoid" in Symbol 458 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 458 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 3
stop();
Symbol 458 MovieClip Frame 4
stop();
Instance of Symbol 119 MovieClip in Symbol 458 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 140 MovieClip "aSword" in Symbol 458 MovieClip Frame 4
onClipEvent (load) {
this.stop();
_parent.swordSlash.start();
}
Symbol 463 MovieClip Frame 60
_root.prepareCounter = _root.prepareCounter + 1;
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
stop();
Symbol 479 MovieClip Frame 7
stop();
Symbol 480 MovieClip Frame 1
stop();
Instance of Symbol 121 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.woodHit.start();
_parent.damage = _parent.damage + 1;
}
}
Symbol 480 MovieClip Frame 2
stop();
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 50;
_root.whipSound.start();
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 491 MovieClip Frame 25
stop();
_root.play();
Symbol 492 MovieClip Frame 1
stop();
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 10) {
this.gotoAndStop(2);
}
}
Symbol 492 MovieClip Frame 2
stop();
Instance of Symbol 505 MovieClip in Symbol 506 MovieClip Frame 5
onClipEvent (load) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
_parent._parent.attack = false;
_parent._parent._y = -100;
_parent._parent.gotoAndStop(1);
}
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 507 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_parent.hit = true;
_parent.gotoAndStop(4);
}
}
Symbol 507 MovieClip Frame 3
stop();
_root.sporePop.start();
Symbol 507 MovieClip Frame 4
stop();
_root.sporePop.start();
Instance of Symbol 505 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
_parent.attack = false;
_parent._y = -100;
_parent.hit = false;
_parent.gotoAndStop(1);
}
Symbol 524 Button
on (press) {
_root.victoryMusic.stop();
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
on (rollOver) {
_root.buttonSound.start();
}
Instance of Symbol 535 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (enterFrame) {
_parent._parent.play();
}
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Instance of Symbol 331 MovieClip in Symbol 551 MovieClip Frame 44
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 15;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 58
onClipEvent (load) {
_root.dragonGrowl.start();
}
onClipEvent (enterFrame) {
if (this._xscale < 225) {
this._xscale = this._xscale + 25;
this._yscale = this._yscale + 25;
}
if (this._rotation > -25) {
this._rotation = this._rotation - 5;
this._x = this._x - 7;
this._y = this._y - 4;
}
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 551 MovieClip Frame 64
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
soundFactor = Math.ceil(Math.random() * 2);
if (soundFactor == 1) {
_root.swordClang.attachSound("clang1");
_root.swordClang.start();
}
if (soundFactor == 2) {
_root.swordClang.attachSound("clang2");
_root.swordClang.start();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Symbol 551 MovieClip Frame 66
stop();
Instance of Symbol 548 MovieClip in Symbol 551 MovieClip Frame 66
onClipEvent (load) {
this._xscale = 220;
this._yscale = 220;
this._rotation = -25;
}
onClipEvent (enterFrame) {
if (this._xscale > 100) {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
_parent.play();
}
if (this._rotation < 30) {
this._rotation = this._rotation + 5;
}
}
Symbol 551 MovieClip Frame 77
stop();
_root.dragon.hurt = false;
_root.dragon.gotoAndStop(1);
Instance of Symbol 121 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_parent.hurt = true;
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
_root.dragon.bossLife = _root.dragon.bossLife - 1;
_parent.gotoAndStop(2);
}
}
Symbol 554 MovieClip Frame 2
stop();
Instance of Symbol 551 MovieClip in Symbol 554 MovieClip Frame 2
onClipEvent (load) {
_parent.blood.play();
_root.dragonHurt.start();
}
Symbol 554 MovieClip Frame 3
stop();
Symbol 554 MovieClip Frame 4
stop();
_root.thwack.start();
Instance of Symbol 551 MovieClip in Symbol 554 MovieClip Frame 4
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
this._y = this._y + 3;
this._x = this._x + 3;
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
_root.play();
_global.dragonDefeated = true;
}
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 13;
}
Instance of Symbol 449 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 17;
}
Instance of Symbol 451 MovieClip in Symbol 555 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 40;
}
Instance of Symbol 121 MovieClip "blockArea" in Symbol 555 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 560 Button
on (press) {
_root.victoryMusic.stop();
if (_global.challengeMode) {
_root.gotoAndStop("Cave");
}
if (!_global.challengeMode) {
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 569 MovieClip Frame 26
stop();
Symbol 570 MovieClip Frame 1
stop();
Instance of Symbol 121 MovieClip in Symbol 570 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.spider.hurt = true;
_root.spiderScreech.start();
_root.thwack.start();
_parent.damage = _parent.damage + 1;
_parent.blood.play();
}
}
Symbol 570 MovieClip Frame 2
stop();
Symbol 573 MovieClip Frame 30
_global.spiderDefeated = true;
_root.play();
Symbol 574 MovieClip Frame 1
stop();
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Instance of Symbol 570 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
if (damage >= 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 37.5;
this.gotoAndStop(2);
damage = -1000;
}
}
Symbol 574 MovieClip Frame 2
stop();
_root.spiderDeath.start();
Symbol 578 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 2
stop();
_root.webShot.start();
Symbol 578 MovieClip Frame 3
stop();
Instance of Symbol 121 MovieClip in Symbol 578 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.sword.stuck = false;
_root.webCut.start();
_parent.timer = 25;
_parent._xscale = _parent.startXScale;
_parent._yscale = _parent.startYScale;
_parent.gotoAndStop(1);
}
}
Symbol 582 Button
on (press) {
_root.victoryMusic.stop();
if (_global.challengeMode) {
_root.gotoAndStop("Sea");
}
if (!_global.challengeMode) {
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
}
on (rollOver) {
_root.buttonSound.start();
}
Instance of Symbol 630 MovieClip in Symbol 633 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
this._x = this._x - 5;
this._y = this._y - 2;
this._rotation = this._rotation - 3;
}
Instance of Symbol 632 MovieClip in Symbol 633 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y + 230;
}
onClipEvent (enterFrame) {
this._y = this._y + 7;
if (this._y > endY) {
_parent._parent.play();
}
}
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 594 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 550;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
if (_parent.timer == 0) {
_root.smallWater.start();
}
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 634 MovieClip Frame 2
_root.smallWater.start();
Symbol 634 MovieClip Frame 16
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 634 MovieClip Frame 16
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(88);
}
}
Symbol 634 MovieClip Frame 77
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 634 MovieClip Frame 87
gotoAndPlay (2);
Symbol 634 MovieClip Frame 88
stop();
_root.thwack.start();
Symbol 634 MovieClip Frame 89
stop();
Instance of Symbol 657 MovieClip in Symbol 660 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
this._x = this._x + 5;
this._y = this._y - 2;
this._rotation = this._rotation + 3;
}
Instance of Symbol 659 MovieClip in Symbol 660 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y + 100;
}
onClipEvent (enterFrame) {
this._y = this._y + 7;
if (this._y > endY) {
_parent._parent._x = 1000;
_root.tentacleControl++;
_parent._parent.counterControl = true;
_parent._parent.damage = 0;
_parent._parent.gotoAndStop(1);
}
}
Symbol 661 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
if (_parent.timer == 0) {
_root.smallWater.start();
}
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 661 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 661 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(64);
}
}
Symbol 661 MovieClip Frame 54
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Instance of Symbol 655 MovieClip in Symbol 661 MovieClip Frame 62
onClipEvent (load) {
_parent.attackCounter = Math.ceil((Math.random() * 100) + 50);
}
Symbol 661 MovieClip Frame 63
gotoAndPlay (2);
Symbol 661 MovieClip Frame 64
stop();
_root.thwack.start();
Symbol 661 MovieClip Frame 65
stop();
Symbol 674 MovieClip Frame 16
gotoAndPlay (1);
Instance of Symbol 331 MovieClip in Symbol 674 MovieClip Frame 17
onClipEvent (enterFrame) {
this._alpha = this._alpha + 10;
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 674 MovieClip Frame 51
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.thud.start();
_root.sword.sparks.play();
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 121 MovieClip in Symbol 683 MovieClip Frame 7
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.thwack.start();
_parent._parent.damage = _parent._parent.damage - 1;
_parent._parent.blood.play();
_parent._parent.gotoAndStop(1);
}
}
Instance of Symbol 682 MovieClip in Symbol 683 MovieClip Frame 31
onClipEvent (enterFrame) {
_parent._parent.gotoAndStop(1);
}
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 2
stop();
Symbol 686 MovieClip Frame 3
stop();
Instance of Symbol 685 MovieClip in Symbol 686 MovieClip Frame 3
onClipEvent (load) {
if (_root.bossLife.lifeBar._width > 10) {
_root.krakenHurt.start();
}
}
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
damage = 3;
timer = 50;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
if (damage > 0) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter <= 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
this.gotoAndStop(2);
}
}
}
if (damage <= 0) {
if (this._currentframe != 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 59.8;
}
this.gotoAndStop(3);
}
if (_root.bossLife.lifeBar._width <= 10) {
this.gotoAndStop(3);
}
}
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
damage = 2;
timer = 50;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
if (damage > 0) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter <= 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
this.gotoAndStop(2);
}
}
}
if (damage <= 0) {
if (this._currentframe != 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 60;
}
this.gotoAndStop(3);
}
if (_root.bossLife.lifeBar._width <= 10) {
this.gotoAndStop(3);
}
}
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
damage = 2;
timer = 50;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
if (damage > 0) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter <= 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
this.gotoAndStop(2);
}
}
}
if (damage <= 0) {
if (this._currentframe != 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 60;
}
this.gotoAndStop(3);
}
if (_root.bossLife.lifeBar._width <= 10) {
this.gotoAndStop(3);
}
}
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
damage = 2;
timer = 50;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
if (damage > 0) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter <= 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
this.gotoAndStop(2);
}
}
}
if (damage <= 0) {
if (this._currentframe != 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 60;
}
this.gotoAndStop(3);
}
if (_root.bossLife.lifeBar._width <= 10) {
this.gotoAndStop(3);
}
}
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
damage = 2;
timer = 50;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
if (damage > 0) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter <= 0) {
blinkCounter = Math.ceil((Math.random() * 150) + 50);
this.gotoAndStop(2);
}
}
}
if (damage <= 0) {
if (this._currentframe != 3) {
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 60;
}
this.gotoAndStop(3);
}
if (_root.bossLife.lifeBar._width <= 10) {
this.gotoAndStop(3);
}
}
Instance of Symbol 674 MovieClip "armTwo" in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 674 MovieClip "armOne" in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 35
onClipEvent (enterFrame) {
this._width = this._width - 5;
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 60
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
}
Symbol 696 MovieClip Frame 74
_root.kraken.play();
Instance of Symbol 674 MovieClip "armTwo" in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 25);
}
onClipEvent (enterFrame) {
if (attackCounter > 0) {
attackCounter--;
}
if (attackCounter == 0) {
attackCounter = Math.ceil((Math.random() * 100) + 25);
this.gotoAndPlay(17);
}
if ((_root.kraken.lowerBody.armOne.attackCounter >= (attackCounter - 10)) && (_root.kraken.lowerBody.armOne.attackCounter <= (attackCounter + 10))) {
attackCounter = attackCounter + 30;
}
}
Instance of Symbol 674 MovieClip "armOne" in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
}
onClipEvent (enterFrame) {
if (attackCounter > 0) {
attackCounter--;
}
if (attackCounter == 0) {
attackCounter = Math.ceil((Math.random() * 100) + 50);
this.gotoAndPlay(17);
}
if ((_root.kraken.lowerBody.armTwo.attackCounter >= (attackCounter - 10)) && (_root.kraken.lowerBody.armTwo.attackCounter <= (attackCounter + 10))) {
attackCounter = attackCounter + 30;
}
}
Instance of Symbol 674 MovieClip "armTwo" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 674 MovieClip "armOne" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 701 MovieClip Frame 50
stop();
_global.krakenDefeated = true;
_root.play();
Symbol 702 MovieClip Frame 1
stop();
Symbol 702 MovieClip Frame 2
stop();
Symbol 702 MovieClip Frame 3
stop();
_root.krakenDeath.start();
Symbol 704 Button
on (press) {
_root.victoryMusic.stop();
if (_global.challengeMode) {
_root.gotoAndStop("Shore");
}
if (!_global.challengeMode) {
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 726 MovieClip Frame 19
_root.fireOne.attack = true;
Symbol 726 MovieClip Frame 34
_root.fireTwo.attack = true;
Symbol 726 MovieClip Frame 56
stop();
Symbol 734 MovieClip Frame 3
_root.lightning.gotoAndStop(2);
Symbol 734 MovieClip Frame 23
_root.lightning.attack = true;
Symbol 734 MovieClip Frame 25
stop();
Symbol 745 MovieClip Frame 3
_root.rockOne.attack = true;
_root.rockTwo.attack = true;
_root.rockThree.attack = true;
_root.rockFour.attack = true;
Symbol 745 MovieClip Frame 22
stop();
Symbol 755 MovieClip Frame 19
_root.ice.attack = true;
Symbol 755 MovieClip Frame 23
stop();
Symbol 760 MovieClip Frame 18
_root.mage.hurt = false;
_root.mage.gotoAndStop(1);
Instance of Symbol 763 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 765 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 767 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 769 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 767 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 763 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Instance of Symbol 765 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
}
Symbol 770 MovieClip Frame 50
stop();
_global.mageDefeated = true;
_root.play();
Symbol 771 MovieClip Frame 1
_root.mage.hurt = false;
_root.mage.attacking = false;
Symbol 771 MovieClip Frame 5
_root.windSound.start();
Symbol 771 MovieClip Frame 6
_root.mageHurt.start();
Symbol 771 MovieClip Frame 7
_root.mageDeath.start();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 2
stop();
Symbol 783 MovieClip Frame 3
stop();
Instance of Symbol 121 MovieClip in Symbol 783 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.rockBreak.start();
_parent.play();
}
}
Symbol 783 MovieClip Frame 8
stop();
Instance of Symbol 780 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
this._alpha = this._alpha - 15;
}
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
this._alpha = this._alpha - 15;
if (this._alpha <= 0) {
_parent.play();
}
}
Symbol 783 MovieClip Frame 9
stop();
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
stop();
Symbol 789 MovieClip Frame 3
stop();
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 789 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
_root.lightningSound.start();
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
if (this.hitTest(_root.sword.blockArea)) {
if (_root.sword.hit) {
_root.sword.hit = false;
_root.sword.sparks.play();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
if (!_root.sword.hit) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
}
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
stop();
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 13;
}
Instance of Symbol 449 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 17;
}
Instance of Symbol 451 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 40;
}
Instance of Symbol 121 MovieClip "blockArea" in Symbol 792 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
_root.fireSound.start();
}
Symbol 795 Button
on (press) {
_root.victoryMusic.stop();
if (_global.challengeMode) {
_root.gotoAndStop("Castle");
}
if (!_global.challengeMode) {
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
}
on (rollOver) {
_root.buttonSound.start();
}
Instance of Symbol 799 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha + 10;
this._x = this._x - 25;
}
Instance of Symbol 799 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha + 10;
this._x = this._x + 25;
}
Symbol 800 MovieClip Frame 7
_root.dKnight.gotoAndStop(2);
Instance of Symbol 799 MovieClip in Symbol 800 MovieClip Frame 7
onClipEvent (enterFrame) {
this._alpha = this._alpha + 10;
this._x = this._x + 50;
}
Instance of Symbol 331 MovieClip in Symbol 808 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 145 MovieClip in Symbol 808 MovieClip Frame 8
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 808 MovieClip Frame 8
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.dKnight.hurt = true;
_root.thwack.start();
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 808 MovieClip Frame 14
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
soundFactor = Math.ceil(Math.random() * 2);
if (soundFactor == 1) {
_root.swordClang.attachSound("clang1");
_root.swordClang.start();
}
if (soundFactor == 2) {
_root.swordClang.attachSound("clang2");
_root.swordClang.start();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 145 MovieClip in Symbol 808 MovieClip Frame 16
onClipEvent (load) {
this._alpha = 1;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 808 MovieClip Frame 16
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.thwack.start();
_root.dKnight.hurt = true;
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Symbol 808 MovieClip Frame 34
_root.attack = 0;
_root.dKnight.attack = 0;
_root.dKnight.gotoAndStop(8);
Instance of Symbol 331 MovieClip in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 813 MovieClip Frame 17
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
soundFactor = Math.ceil(Math.random() * 2);
if (soundFactor == 1) {
_root.swordClang.attachSound("clang1");
_root.swordClang.start();
}
if (soundFactor == 2) {
_root.swordClang.attachSound("clang2");
_root.swordClang.start();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 145 MovieClip in Symbol 813 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 813 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.thwack.start();
_root.dKnight.hurt = true;
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Symbol 813 MovieClip Frame 30
_root.attack = 0;
_root.dKnight.attack = 0;
_root.dKnight.gotoAndStop(8);
Instance of Symbol 331 MovieClip in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 818 MovieClip Frame 16
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
soundFactor = Math.ceil(Math.random() * 2);
if (soundFactor == 1) {
_root.swordClang.attachSound("clang1");
_root.swordClang.start();
}
if (soundFactor == 2) {
_root.swordClang.attachSound("clang2");
_root.swordClang.start();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 145 MovieClip in Symbol 818 MovieClip Frame 17
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 818 MovieClip Frame 17
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.dKnight.hurt = true;
_root.thwack.start();
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Symbol 818 MovieClip Frame 32
_root.attack = 0;
_root.dKnight.attack = 0;
_root.dKnight.gotoAndStop(8);
Instance of Symbol 331 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 145 MovieClip in Symbol 824 MovieClip Frame 12
onClipEvent (load) {
this._alpha = 1;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 824 MovieClip Frame 12
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.dKnight.hurt = true;
_root.thwack.start();
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 824 MovieClip Frame 17
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.sword.sparks.play();
soundFactor = Math.ceil(Math.random() * 2);
if (soundFactor == 1) {
_root.swordClang.attachSound("clang1");
_root.swordClang.start();
}
if (soundFactor == 2) {
_root.swordClang.attachSound("clang2");
_root.swordClang.start();
}
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 145 MovieClip in Symbol 824 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 2;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
}
Instance of Symbol 121 MovieClip in Symbol 824 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.thwack.start();
_root.dKnight.hurt = true;
_root.bossLife.lifeBar._width = _root.bossLife.lifeBar._width - 15;
_root.dKnight.gotoAndStop(7);
}
}
Symbol 824 MovieClip Frame 31
_root.attack = 0;
_root.dKnight.attack = 0;
_root.dKnight.gotoAndStop(8);
Symbol 827 MovieClip Frame 9
stop();
_root.attack = 0;
_root.dKnight.attacking = false;
_root.dKnight.attack = 0;
_root.dKnight.gotoAndStop(8);
Instance of Symbol 799 MovieClip in Symbol 829 MovieClip Frame 3
onClipEvent (enterFrame) {
this._alpha = this._alpha - 20;
this._x = this._x + 50;
}
Instance of Symbol 799 MovieClip in Symbol 829 MovieClip Frame 3
onClipEvent (enterFrame) {
this._alpha = this._alpha - 20;
this._x = this._x - 50;
}
Symbol 829 MovieClip Frame 7
_root.dKnight._x = (Math.random() * 500) + 50;
Instance of Symbol 799 MovieClip in Symbol 829 MovieClip Frame 8
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
this._x = this._x - 50;
}
Instance of Symbol 799 MovieClip in Symbol 829 MovieClip Frame 8
onClipEvent (enterFrame) {
this._alpha = this._alpha + 20;
this._x = this._x + 50;
}
Symbol 829 MovieClip Frame 12
_root.dKnight.hurt = false;
_root.dKnight.gotoAndStop(2);
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 2
_root.lightSound.start();
Symbol 834 MovieClip Frame 11
stop();
Instance of Symbol 831 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Instance of Symbol 834 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (load) {
blinkCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (blinkCounter > 0) {
blinkCounter--;
}
if (blinkCounter == 0) {
this.play();
blinkCounter = -20;
}
}
Symbol 844 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 7
_root.knightHit.start();
Instance of Symbol 829 MovieClip in Symbol 844 MovieClip Frame 8
onClipEvent (load) {
_root.knightWarp.start();
}
Instance of Symbol 843 MovieClip in Symbol 844 MovieClip Frame 9
onClipEvent (load) {
timer = 70;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
_root.gotoAndStop("final");
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil((Math.random() * 35) + 20);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil(Math.random() * 75);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Instance of Symbol 849 MovieClip in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
startCounter = Math.ceil(Math.random() * 75);
}
onClipEvent (enterFrame) {
if (startCounter > 0) {
startCounter--;
}
if (startCounter <= 0) {
this.play();
}
}
Symbol 855 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 2
stop();
Instance of Symbol 850 MovieClip in Symbol 855 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
if (this._alpha <= 0) {
_parent.gotoAndStop(3);
}
}
Symbol 855 MovieClip Frame 3
stop();
_root.deathBlast.start();
Instance of Symbol 852 MovieClip in Symbol 855 MovieClip Frame 3
onClipEvent (load) {
scaleSpeed = 15;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + scaleSpeed;
scaleSpeed = scaleSpeed - 0.5;
this._alpha = this._alpha - 2;
}
Instance of Symbol 852 MovieClip in Symbol 855 MovieClip Frame 3
onClipEvent (load) {
scaleSpeed = 15;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + scaleSpeed;
scaleSpeed = scaleSpeed - 0.5;
this._alpha = this._alpha - 2;
}
Instance of Symbol 852 MovieClip in Symbol 855 MovieClip Frame 3
onClipEvent (load) {
scaleSpeed = 15;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + scaleSpeed;
scaleSpeed = scaleSpeed - 0.5;
this._alpha = this._alpha - 2;
}
Instance of Symbol 852 MovieClip in Symbol 855 MovieClip Frame 3
onClipEvent (load) {
scaleSpeed = 15;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + scaleSpeed;
scaleSpeed = scaleSpeed - 0.5;
this._alpha = this._alpha - 2;
}
Instance of Symbol 854 MovieClip in Symbol 855 MovieClip Frame 3
onClipEvent (load) {
scaleSpeed = 25;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + scaleSpeed;
this._yscale = this._yscale + scaleSpeed;
scaleSpeed = scaleSpeed + 1.5;
if (this._xscale >= 3000) {
_root.play();
}
}
Symbol 874 MovieClip Frame 1
stop();
Instance of Symbol 117 MovieClip in Symbol 874 MovieClip Frame 13
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 119 MovieClip in Symbol 874 MovieClip Frame 13
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 121 MovieClip "hitBlock" in Symbol 874 MovieClip Frame 28
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = false;
_root.thud.start();
_root.sword.sparks.play();
}
if (!this.hitTest(_root.sword.blockArea)) {
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
}
}
Instance of Symbol 873 MovieClip in Symbol 874 MovieClip Frame 30
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
}
Symbol 874 MovieClip Frame 32
gotoAndPlay (2);
Symbol 875 MovieClip Frame 1
stop();
Instance of Symbol 874 MovieClip "armOne" in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
timer = 50;
start = false;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
if (timer > 0) {
timer--;
}
if ((timer <= 0) && (!start)) {
this.play();
start = true;
}
if ((_root.timer < 320) && (_root.timer > 200)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 874 MovieClip "armTwo" in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
timer = 125;
startAttack = false;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
if (timer > 0) {
timer--;
}
if ((timer <= 0) && (!startAttack)) {
this.play();
startAttack = true;
}
if ((_root.timer < 320) && (_root.timer > 200)) {
this.gotoAndStop(1);
}
}
Symbol 875 MovieClip Frame 2
stop();
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 13;
}
Instance of Symbol 449 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 17;
}
Instance of Symbol 877 MovieClip in Symbol 878 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 40;
}
Instance of Symbol 121 MovieClip "blockArea" in Symbol 878 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 881 Button
on (press) {
_root.victoryMusic.stop();
_global.challengeMode = false;
if (!_global.miniLock) {
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
if (_global.miniLock) {
_root.play();
}
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 884 Button
on (press) {
_global.miniLock = false;
_root.buttonSparkle.start();
_root.play();
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 887 Button
on (press) {
_global.challengeLock = false;
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 901 Button
on (press) {
_root.gameoverMusic.stop();
_global.challengeMode = false;
_root.buttonSparkle.start();
_root.gotoAndStop("Menu");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 903 Button
on (press) {
_root.gameoverMusic.stop();
_global.challengeMode = false;
_root.buttonSparkle.start();
_root.gotoAndStop("start");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 905 Button
on (press) {
_root.gameoverMusic.stop();
_global.challengeMode = false;
_root.buttonSparkle.start();
_root.knightMusic.start(0, 500);
_root.gotoAndStop("final");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 929 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 929 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 929 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 929 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Symbol 929 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 2;
Symbol 929 MovieClip Frame 78
gotoAndPlay (2);
Symbol 929 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 929 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 929 MovieClip Frame 80
stop();
Symbol 953 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 953 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 953 MovieClip Frame 12
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 953 MovieClip Frame 13
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(51);
}
}
Symbol 953 MovieClip Frame 45
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 953 MovieClip Frame 50
gotoAndPlay (2);
Symbol 953 MovieClip Frame 51
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 953 MovieClip Frame 51
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 953 MovieClip Frame 52
stop();
Symbol 974 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 974 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 974 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_parent.damage = _parent.damage + 1;
}
}
Symbol 974 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 974 MovieClip Frame 78
gotoAndPlay (2);
Symbol 974 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 974 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 974 MovieClip Frame 80
stop();
Symbol 998 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 998 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 998 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 24
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 39
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 48
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 58
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Instance of Symbol 121 MovieClip in Symbol 998 MovieClip Frame 66
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Symbol 998 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 998 MovieClip Frame 78
gotoAndPlay (2);
Symbol 998 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 998 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 998 MovieClip Frame 80
stop();
Symbol 1022 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
if (_parent.timer == 0) {
_root.smallWater.start();
}
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 1022 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 1022 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Symbol 1022 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 1022 MovieClip Frame 78
gotoAndPlay (2);
Symbol 1022 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 1022 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 750;
if (_root.sword.life < 4) {
_root.sword.life = _root.sword.life + 1;
}
}
Symbol 1022 MovieClip Frame 80
stop();
Symbol 1038 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 1038 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 1038 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 1038 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
_parent.gotoAndStop(64);
}
}
Symbol 1038 MovieClip Frame 64
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 1038 MovieClip Frame 64
onClipEvent (load) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.timer = 50;
}
Symbol 1038 MovieClip Frame 65
stop();
Symbol 1049 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 1049 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 1049 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 1049 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_root.tentacleCounter = _root.tentacleCounter - 1;
_parent.gotoAndStop(79);
}
}
Symbol 1049 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 1;
Symbol 1049 MovieClip Frame 78
gotoAndPlay (2);
Symbol 1049 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 1049 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 1049 MovieClip Frame 80
stop();
Symbol 1073 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 1073 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 1073 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 1073 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_parent.damage = _parent.damage + 1;
}
}
Symbol 1073 MovieClip Frame 69
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 2;
Symbol 1073 MovieClip Frame 78
gotoAndPlay (2);
Symbol 1073 MovieClip Frame 79
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 1073 MovieClip Frame 79
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 1073 MovieClip Frame 80
stop();
Symbol 1105 MovieClip Frame 1
stop();
Instance of Symbol 636 MovieClip in Symbol 1105 MovieClip Frame 1
onClipEvent (load) {
startY = this._y;
endY = this._y - 330;
}
onClipEvent (enterFrame) {
if (_parent.timer <= 0) {
this._y = this._y - 10;
}
if (this._y < endY) {
_parent.play();
}
}
Symbol 1105 MovieClip Frame 12
gotoAndPlay (2);
Instance of Symbol 121 MovieClip in Symbol 1105 MovieClip Frame 13
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sword.asword.hitBlock)) {
_parent.damage = _parent.damage + 1;
}
}
Symbol 1105 MovieClip Frame 45
_root.sword.hit = true;
_root.sword.life = _root.sword.life - 2;
Symbol 1105 MovieClip Frame 50
gotoAndPlay (2);
Symbol 1105 MovieClip Frame 51
stop();
_root.thwack.start();
Instance of Symbol 660 MovieClip in Symbol 1105 MovieClip Frame 51
onClipEvent (load) {
_parent.timer = 50;
}
Symbol 1105 MovieClip Frame 52
stop();