Frame 1
function stopOrb() {
clearInterval(_root.orb.shotInt);
_root.orb.onMouseUp();
trace("foo");
}
function menuHandler(obj, menu) {
stopOrb();
}
var soundOn = true;
var soundStatus = "Sound is On";
var indicator = "";
var gameURL = _url.toLowerCase();
trace(gameURL);
if ((((gameURL.indexOf("battleon.com") == -1) && (gameURL.indexOf("adventurequest.com") == -1)) && (gameURL.indexOf("ebilgames.com") == -1)) && (gameURL.indexOf("dragonfable.com") == -1)) {
trace("use tracking");
_root.gameURL = "http://www.battleon.com/default.asp?ccaec42db1f3a8a6928a80abcda99407c";
trace(gameURL);
} else {
trace("no tracking");
indicator = "Battleon.com";
_root.gameURL = "http://www.battleon.com/default.asp";
trace(gameURL);
}
var downloadURL = "http://www.ebilgames.com/Games/JimmyTheEye/download.asp";
var wallpaperURL = "http://www.ebilgames.com/Games/JimmyTheEye/wallpaper.html";
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
var stopFire = new ContextMenuItem("Don't Right Click!", stopOrb);
my_cm.customItems.push(stopFire);
my_cm.onSelect = menuHandler;
this.menu = my_cm;
stop();
Instance of Symbol 152 MovieClip [GT-Preloader] in Frame 1
//component parameters
onClipEvent (construct) {
strTitle = "Monster Hunt";
strSubTitle = "Loading!";
strFrame = "Init";
}
Frame 8
function startGame() {
gotoAndPlay ("Intro");
}
function instructions() {
gotoAndPlay (28);
}
function gotoMainMenu() {
gotoAndPlay ("TitleScreen");
}
function about() {
gotoAndPlay (27);
}
function gotoDownload() {
gotoAndPlay (137);
}
function showHighScore() {
gotoAndPlay (76);
}
mixer = new soundMixer();
mixer.init(13, 800);
mixer.loadChannel(1, "nifty2.wav");
mixer.loadChannel(2, "Hit");
mixer.loadChannel(3, "tinkly.aif");
mixer.loadChannel(4, "reward5.wav");
mixer.loadChannel(5, "reward4.wav");
mixer.loadChannel(6, "Dark3_short.wav");
mixer.loadChannel(7, "Laser4.wav");
mixer.loadChannel(8, "Button-MouseOver.wav");
mixer.loadChannel(9, "book theme loop.aif");
mixer.loadChannel(10, "pencil_loop.aif");
mixer.loadChannel(11, "Fireball_FlameBurst.wav");
mixer.loadChannel(12, "flame burst1.wav");
mixer.loadChannel(13, "Button-Press.wav");
mixer.fader(1, 10);
mixer.fader(9, 10);
userHighscore = SharedObject.getLocal("JimmyHighScoreData");
var highScore = 50000;
var highFrags = 50;
var highGold = 5000;
if (userHighscore.data.highscore != null) {
highScore = userHighscore.data.highscore;
}
if (userHighscore.data.highfrags != null) {
highFrags = userHighscore.data.highfrags;
}
if (userHighscore.data.highgold != null) {
highGold = userHighscore.data.highgold;
}
stop();
Frame 17
stop();
Frame 27
stop();
Instance of Symbol 225 MovieClip in Frame 27
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Frame 28
stop();
Instance of Symbol 225 MovieClip in Frame 28
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Frame 29
var jimmyMsg = "Roll Over Jimmy With Your Mouse To Start Flying!";
var bossMsg = "";
function continueGame() {
_root.orb.death = false;
playerDead = false;
fragCounter = 0;
goldCounter = 0;
trace(gameLevel);
gotoAndPlay ("Level1");
}
var startTime = getTimer();
gameLevel = "Level1";
killEmAll = false;
mixer.playLoop(1, 999999);
bossHP._visible = false;
bossHPOuter._visible = false;
stop();
function restartGame() {
fragCounter = 0;
gotoAndPlay ("TitleScreen");
}
function death() {
playerDead = true;
gotoAndPlay (77);
}
function gotoNextLevel() {
play();
}
function roundDecimal(num, places) {
places = Math.pow(10, places);
return(Math.round(num * places) / places);
}
function recordStore() {
endTime = getTimer();
playTime = roundDecimal(((endTime - startTime) / 1000) / 60, 2);
totalScore = Math.round((fragCounter * 1000) - ((playTime / 2) * 1000)) + goldCounter;
if (totalScore > highScore) {
userHighscore.data.highscore = totalScore;
userHighscore.flush();
}
if (fragCounter > highFrags) {
userHighscore.data.highfrags = fragCounter;
userHighscore.flush();
}
if (goldCounter > highGold) {
userHighscore.data.highgold = goldCounter;
userHighscore.flush();
}
}
var stageWidth = Stage.width;
var playerDead = false;
var endTime;
var playTime;
var totalScore = 0;
var fragCounter = 0;
var goldCounter = 0;
Instance of Symbol 121 MovieClip [JD_Cloudsfix] "bg3" in Frame 29
onClipEvent (load) {
setMagnet("bg3_b");
}
Instance of Symbol 121 MovieClip [JD_Cloudsfix] "bg3_b" in Frame 29
onClipEvent (load) {
setMagnet("bg3");
}
Instance of Symbol 286 MovieClip [bg] "bg" in Frame 29
/* no clip actions */
Instance of Symbol 529 MovieClip [spawnMachine] "spawner" in Frame 29
onClipEvent (load) {
defineInterval(600);
setUpEnemies(Array("raven", "Drake", "raven", "Drake", "stone-jaggedSkyBright", "DragonCoinGold"));
}
Instance of Symbol 140 MovieClip [bar_outer] "hpOuter" in Frame 29
onClipEvent (load) {
this.swapDepths(872);
}
Instance of Symbol 468 MovieClip [manaBar] "mBar" in Frame 29
onClipEvent (load) {
setType("mana");
}
Instance of Symbol 140 MovieClip [bar_outer] "manaOuter" in Frame 29
onClipEvent (load) {
this.swapDepths(873);
}
Instance of Symbol 449 MovieClip [pinkEye] "pinkEye" in Frame 29
onClipEvent (load) {
this.swapDepths(875);
}
Instance of Symbol 628 MovieClip "eyeHUD" in Frame 29
onClipEvent (load) {
this.swapDepths(874);
}
Instance of Symbol 478 MovieClip [Monster-SylphDrake] "mcBoss" in Frame 29
onClipEvent (load) {
this.setVirtual_X(17000);
this.setHitPoints(5);
}
Instance of Symbol 480 MovieClip [objectSpawner] "healthCoins" in Frame 29
onClipEvent (load) {
this.swapDepths(976);
this.wipeInterval();
this.defineInterval(1500);
}
Instance of Symbol 656 MovieClip "fireball" in Frame 29
onClipEvent (load) {
function respawn() {
intSpeed = 10;
hitPlayer = false;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
_y = ((Math.random() * 230) + 74);
gotoAndStop ("Idle");
}
intSpawnX = _x;
hitPlayer = false;
isMoving = true;
respawn();
}
onClipEvent (enterFrame) {
if (isMoving) {
this._x = this._x - (_root.bg.getSpeed() + this.intSpeed);
if (this._x < (-_width)) {
respawn();
}
}
if (this.Ball.Head.hitTest(_parent.orb)) {
gotoAndPlay ("Hit");
_parent.orb.callCondition("hit");
}
if (this.Ball.Head.hitTest(_root.shield)) {
_root.mBar.resizeBar(20);
gotoAndPlay ("Hit");
}
}
Frame 30
_root.healthCoins.wipeInterval();
_root.healthCoins.removeMovieClip();
_root.hpBar.removeMovieClip();
_root.mBar.removeMovieClip();
_root.hpOuter.removeMovieClip();
_root.manaOuter.removeMovieClip();
_root.eyeHUD.removeMovieClip();
_root.pinkEye.removeMovieClip();
_root.stats.removeMovieClip();
killEmAll = true;
mixer.Channels[0].stop();
gotoAndStop ("Trans1");
stop();
Frame 31
var jimmyMsg = "Roll Over Jimmy With Your Mouse To Start Flying!";
function continueGame() {
_root.orb.death = false;
playerDead = false;
fragCounter = 0;
goldCounter = 0;
trace(gameLevel);
gotoAndPlay ("Level2");
}
killEmAll = false;
gameLevel = "Level2";
mixer.playLoop(1, 999999);
bossHP._visible = false;
bossHPOuter._visible = false;
stop();
Instance of Symbol 443 MovieClip [FloorC-cave] "bg_b" in Frame 31
onClipEvent (load) {
setMagnet("bg");
}
Instance of Symbol 480 MovieClip [objectSpawner] "healthCoins2" in Frame 31
onClipEvent (load) {
this.wipeInterval();
this.swapDepths(976);
this.defineInterval(1000);
}
Instance of Symbol 529 MovieClip [spawnMachine] "spawner" in Frame 31
onClipEvent (load) {
_root.killEmAll = false;
defineInterval(600);
setUpEnemies(Array("evilEye", "evilEye", "batMonster", "stone-jagged", "stone-ceiling", "stone-ceiling"));
}
Instance of Symbol 414 MovieClip [feyerBoss] "mcBoss" in Frame 31
onClipEvent (load) {
this.setVirtual_X(19000);
this.setHitPoints(8);
}
Instance of Symbol 140 MovieClip [bar_outer] "hpOuter" in Frame 31
onClipEvent (load) {
this.swapDepths(872);
}
Instance of Symbol 468 MovieClip [manaBar] "mBar" in Frame 31
onClipEvent (load) {
setType("mana");
}
Instance of Symbol 140 MovieClip [bar_outer] "manaOuter" in Frame 31
onClipEvent (load) {
this.swapDepths(873);
}
Instance of Symbol 449 MovieClip [pinkEye] "pinkEye" in Frame 31
onClipEvent (load) {
this.swapDepths(875);
}
Instance of Symbol 628 MovieClip "eyeHUD" in Frame 31
onClipEvent (load) {
this.swapDepths(874);
}
Instance of Symbol 659 MovieClip "fireball" in Frame 31
onClipEvent (load) {
function respawn() {
ySpeed = 0;
stopDive = false;
turned = false;
speed = 2;
hitPlayer = false;
isDead = false;
bitAttacking = false;
_rotation = (_rotation - rotVal);
_x = intSpawnX;
_y = ((Math.random() * 230) + 74);
gotoAndStop ("Idle");
}
intSpawnX = _x;
hitPlayer = false;
rotVal = 30;
isMoving = true;
respawn();
_rotation = (_rotation + rotVal);
}
onClipEvent (enterFrame) {
if (isMoving) {
_x = (_x - (_root.bg.getSpeed() + speed));
_y = (_y + ySpeed);
}
if ((stopDive == false) and (turned == false)) {
if ((_x < (_root.orb._x + 150)) and (_y < _root.orb._y)) {
ySpeed = 5;
if (turned == false) {
_rotation = -30;
rotVal = -30;
turned = true;
}
} else if ((_x < (_root.orb._x + 100)) and (_y > _root.orb._y)) {
ySpeed = -5;
if (turned == false) {
_rotation = 30;
rotVal = 30;
turned = true;
}
}
if (_x < _root.orb._x) {
stopDive = true;
}
}
if ((_y > 380) or (_y < 20)) {
ySpeed = 0;
gotoAndPlay ("Hit");
}
if (this._x < (-_width)) {
respawn();
}
if ((!hitPlayer) && (this.head.hitTest(_parent.orb))) {
gotoAndPlay ("Hit");
_parent.orb.callCondition("hit");
hitPlayer = true;
}
if (this.head.hitTest(_root.shield)) {
_root.mBar.resizeBar(20);
gotoAndPlay ("Hit");
}
}
Frame 32
_root.orb.removeMovieClip();
_root.healthCoins2.wipeInterval();
_root.healthCoins2.removeMovieClip();
_root.hpBar.removeMovieClip();
_root.mBar.removeMovieClip();
_root.hpOuter.removeMovieClip();
_root.manaOuter.removeMovieClip();
_root.eyeHUD.removeMovieClip();
_root.pinkEye.removeMovieClip();
_root.stats.removeMovieClip();
killEmAll = true;
mixer.Channels[0].stop();
gotoAndStop ("Trans2");
stop();
Frame 33
var jimmyMsg = "Roll Over Jimmy With Your Mouse To Start Flying!";
function continueGame() {
_root.orb.death = false;
playerDead = false;
fragCounter = 0;
goldCounter = 0;
trace(gameLevel);
gotoAndPlay ("Level3");
}
killEmAll = false;
mixer.playLoop(1, 999999);
bossHP._visible = false;
bossHPOuter._visible = false;
gameLevel = "Level3";
stop();
Instance of Symbol 542 MovieClip [swampy] "bg_b" in Frame 33
onClipEvent (load) {
setMagnet("bg");
}
Instance of Symbol 542 MovieClip [swampy] "bg" in Frame 33
onClipEvent (load) {
setMagnet("bg_b");
}
Instance of Symbol 529 MovieClip [spawnMachine] "spawner" in Frame 33
onClipEvent (load) {
_root.killEmAll = false;
defineInterval(500);
setUpEnemies(Array("beeSwarmer", "fairy", "beeSwarmer", "fairy", "wispBall", "DragonCoinGold"));
}
Instance of Symbol 517 MovieClip [roBee] "mcBoss" in Frame 33
onClipEvent (load) {
this.setVirtual_X(21000);
this.setHitPoints(10);
}
Instance of Symbol 480 MovieClip [objectSpawner] "healthCoins3" in Frame 33
onClipEvent (load) {
this.wipeInterval();
this.swapDepths(976);
this.defineInterval(800);
}
Instance of Symbol 140 MovieClip [bar_outer] "hpOuter" in Frame 33
onClipEvent (load) {
this.swapDepths(872);
}
Instance of Symbol 468 MovieClip [manaBar] "mBar" in Frame 33
onClipEvent (load) {
setType("mana");
}
Instance of Symbol 140 MovieClip [bar_outer] "manaOuter" in Frame 33
onClipEvent (load) {
this.swapDepths(873);
}
Instance of Symbol 449 MovieClip [pinkEye] "pinkEye" in Frame 33
onClipEvent (load) {
this.swapDepths(875);
}
Instance of Symbol 628 MovieClip "eyeHUD" in Frame 33
onClipEvent (load) {
this.swapDepths(874);
}
Frame 34
_root.orb.removeMovieClip();
_root.healthCoins3.wipeInterval();
_root.healthCoins3.removeMovieClip();
_root.hpBar.removeMovieClip();
_root.mBar.removeMovieClip();
_root.hpOuter.removeMovieClip();
_root.manaOuter.removeMovieClip();
_root.eyeHUD.removeMovieClip();
_root.pinkEye.removeMovieClip();
_root.stats.removeMovieClip();
killEmAll = true;
mixer.Channels[0].stop();
gotoAndStop ("Trans3");
stop();
Frame 35
var jimmyMsg = "Roll Over Jimmy With Your Mouse To Start Flying!";
function continueGame() {
_root.orb.death = false;
playerDead = false;
fragCounter = 0;
goldCounter = 0;
trace(gameLevel);
gotoAndPlay ("Level4");
}
killEmAll = false;
mixer.playLoop(1, 999999);
bossHP._visible = false;
bossHPOuter._visible = false;
gameLevel = "Level4";
stop();
Instance of Symbol 330 MovieClip [brickwall] "bg2" in Frame 35
onClipEvent (load) {
setMagnet("bg2_b");
}
Instance of Symbol 330 MovieClip [brickwall] "bg2_b" in Frame 35
onClipEvent (load) {
setMagnet("bg2");
}
Instance of Symbol 323 MovieClip [bricks] "bg_b" in Frame 35
onClipEvent (load) {
setMagnet("bg");
}
Instance of Symbol 480 MovieClip [objectSpawner] "healthCoins4" in Frame 35
onClipEvent (load) {
this.wipeInterval();
this.swapDepths(976);
this.defineInterval(600);
}
Instance of Symbol 529 MovieClip [spawnMachine] "spawner" in Frame 35
onClipEvent (load) {
_root.killEmAll = false;
defineInterval(500);
setUpEnemies(Array("wyvyrn", "batMonster", "wispBallRed", "stone-jaggedCastle", "beeSwarmer", "fairy", "Drake", "raven", "firePillar", "evilEye", "DragonCoinGold"));
}
Instance of Symbol 309 MovieClip [bigEvilEye] "mcBoss" in Frame 35
onClipEvent (load) {
this.setVirtual_X(25000);
this.setHitPoints(20);
}
Instance of Symbol 140 MovieClip [bar_outer] "hpOuter" in Frame 35
onClipEvent (load) {
this.swapDepths(872);
}
Instance of Symbol 468 MovieClip [manaBar] "mBar" in Frame 35
onClipEvent (load) {
setType("mana");
}
Instance of Symbol 140 MovieClip [bar_outer] "manaOuter" in Frame 35
onClipEvent (load) {
this.swapDepths(873);
}
Instance of Symbol 449 MovieClip [pinkEye] "pinkEye" in Frame 35
onClipEvent (load) {
this.swapDepths(875);
}
Instance of Symbol 628 MovieClip "eyeHUD" in Frame 35
onClipEvent (load) {
this.swapDepths(874);
}
Instance of Symbol 656 MovieClip "fireball" in Frame 35
onClipEvent (load) {
function respawn() {
intSpeed = 10;
hitPlayer = false;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
_y = ((Math.random() * 230) + 74);
gotoAndStop ("Idle");
}
intSpawnX = _x;
hitPlayer = false;
isMoving = true;
respawn();
}
onClipEvent (enterFrame) {
if (isMoving) {
this._x = this._x - (_root.bg.getSpeed() + this.intSpeed);
if (this._x < (-_width)) {
respawn();
}
}
if (this.Ball.Head.hitTest(_parent.orb)) {
gotoAndPlay ("Hit");
_parent.orb.callCondition("hit");
}
if (this.Ball.Head.hitTest(_root.shield)) {
_root.mBar.resizeBar(20);
gotoAndPlay ("Hit");
}
}
Instance of Symbol 659 MovieClip "fireball2" in Frame 35
onClipEvent (load) {
function respawn() {
ySpeed = 0;
stopDive = false;
turned = false;
speed = 2;
hitPlayer = false;
isDead = false;
bitAttacking = false;
_rotation = (_rotation - rotVal);
_x = intSpawnX;
_y = ((Math.random() * 230) + 74);
gotoAndStop ("Idle");
}
intSpawnX = _x;
hitPlayer = false;
rotVal = 30;
respawn();
_rotation = (_rotation + rotVal);
}
onClipEvent (enterFrame) {
if (isMoving) {
_x = (_x - (_root.bg.getSpeed() + speed));
_y = (_y + ySpeed);
}
if ((stopDive == false) and (turned == false)) {
if ((_x < (_root.orb._x + 150)) and (_y < _root.orb._y)) {
ySpeed = 5;
if (turned == false) {
_rotation = -30;
rotVal = -30;
turned = true;
}
} else if ((_x < (_root.orb._x + 100)) and (_y > _root.orb._y)) {
ySpeed = -5;
if (turned == false) {
_rotation = 30;
rotVal = 30;
turned = true;
}
}
if (_x < _root.orb._x) {
stopDive = true;
}
}
if ((_y > 380) or (_y < 20)) {
ySpeed = 0;
gotoAndPlay ("Hit");
}
if (this._x < (-_width)) {
respawn();
}
if ((!hitPlayer) && (this.head.hitTest(_parent.orb))) {
gotoAndPlay ("Hit");
_parent.orb.callCondition("hit");
hitPlayer = true;
}
if (this.head.hitTest(_root.shield)) {
_root.mBar.resizeBar(20);
gotoAndPlay ("Hit");
}
}
Frame 36
recordStore();
_root.orb.releaseMouse();
_root.orb.removeMovieClip();
_root.healthCoins4.wipeInterval();
_root.healthCoins4.removeMovieClip();
_root.hpBar.removeMovieClip();
_root.mBar.removeMovieClip();
_root.hpOuter.removeMovieClip();
_root.manaOuter.removeMovieClip();
_root.eyeHUD.removeMovieClip();
_root.pinkEye.removeMovieClip();
_root.stats.removeMovieClip();
killEmAll = true;
mixer.Channels[0].stop();
gotoAndStop ("Trans4");
stop();
Frame 37
_root.stats.removeMovieClip();
mixer.destroy(1, 800);
mixer.init(1, 800);
mixer.loadChannel(1, "fanfare");
mixer.playLoop(1, 1);
mixer.fader(1, 10);
stop();
Instance of Symbol 225 MovieClip in Frame 37
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Frame 38
var nextLevel = 1;
_root.mixer.playLoop(9, 999999);
stop();
Instance of Symbol 677 MovieClip in Frame 38
onClipEvent (load) {
setMagnet("bg3_b");
}
Instance of Symbol 681 MovieClip in Frame 38
onClipEvent (load) {
var hovering;
onRollOver = function () {
hovering = true;
_root.mixer.playLoop(8, 1);
gotoAndPlay ("Over");
};
onRollOut = function () {
hovering = false;
gotoAndStop ("Up");
};
onPress = function () {
gotoAndStop ("Down");
_root.mixer.Channels[9].stop();
_root.mixer.Channels[8].stop();
_root.mixer.playLoop(8, 1);
if (_root.nextLevel == 5) {
_root.gotoAndStop("Victory");
} else {
_root.gotoAndStop("Level" + _root.nextLevel);
}
};
onRelease = function () {
if (hovering) {
gotoAndPlay ("Over");
} else {
gotoAndStop ("Up");
}
};
}
Instance of Symbol 685 MovieClip "text-IntroA" in Frame 38
onClipEvent (load) {
this.text = "Jimmy cant believe his eye! He was blindsided by the sneevil box gang and Princess Ocular was kidnapped!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 39
stop();
Instance of Symbol 685 MovieClip "text-IntroB" in Frame 39
onClipEvent (load) {
this.text = "Jimmy did not see that one coming! Who is the visionary behind this terrible crime? Its an eye for an eye in Episode 1 of Jimmy the Eye!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 40
stop();
Instance of Symbol 685 MovieClip "text-IntroC" in Frame 40
onClipEvent (load) {
this.text = "The mage Warlic needs Jimmy to find these items so that he can cast a spell to locate the princess.";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 41
stop();
Instance of Symbol 685 MovieClip "text-IntroD" in Frame 41
onClipEvent (load) {
this.text = "1. Sylph Drake Wing Dust";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 42
stop();
Instance of Symbol 685 MovieClip "text-IntroE" in Frame 42
onClipEvent (load) {
this.text = "2. The Fire of Life";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 43
stop();
Instance of Symbol 685 MovieClip "text-IntroF" in Frame 43
onClipEvent (load) {
this.text = "3. RoBee Stinger Venom";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 44
stop();
Instance of Symbol 685 MovieClip "text-IntroG" in Frame 44
onClipEvent (load) {
this.text = "4. Evil Tears";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 45
stop();
Frame 50
stop();
Frame 51
_root.mixer.playLoop(9, 999999);
nextLevel = 2;
stop();
Instance of Symbol 685 MovieClip "text-level1A" in Frame 51
onClipEvent (load) {
this.text = "Congratulations!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 52
stop();
Instance of Symbol 685 MovieClip "text-level1B" in Frame 52
onClipEvent (load) {
this.text = "Jimmy has recovered dust from the wings of the Sylph Drake! Ahead lies the Cavern of Visions. The Fire of Life is rumored to be hidden there.";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 53
stop();
Instance of Symbol 685 MovieClip "text-level1C" in Frame 53
onClipEvent (load) {
this.text = "Why do they call it the cavern of Visions anyway?";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 56
stop();
Frame 57
_root.mixer.playLoop(9, 999999);
nextLevel = 3;
stop();
map.gotoAndStop(2);
Instance of Symbol 705 MovieClip in Frame 57
onClipEvent (load) {
setMagnet("bg3_b");
}
Instance of Symbol 685 MovieClip "text-level2A" in Frame 57
onClipEvent (load) {
this.text = "Jimmy finds the Fire of Life deep within the Cavern of Visions. He also finds and extinguishes a giant f..EYE..rball. The Fire of Life was keeping it alive!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 58
stop();
Instance of Symbol 685 MovieClip "text-level2B" in Frame 58
onClipEvent (load) {
this.text = "The Noxious Swamp is only a days journey ahead. No one has ever escaped al..EYE..ve!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 62
stop();
Frame 63
_root.mixer.playLoop(9, 999999);
nextLevel = 4;
stop();
map.gotoAndStop(3);
Instance of Symbol 706 MovieClip "bg3" in Frame 63
onClipEvent (load) {
setMagnet("bg3_b");
}
Instance of Symbol 685 MovieClip "text-level3A" in Frame 63
onClipEvent (load) {
this.text = "Jimmy has shut down RoBee and grabbed its stinger. Looks like Jimmy really... Stuck... it to him!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 64
stop();
Instance of Symbol 685 MovieClip "text-level3B" in Frame 64
onClipEvent (load) {
this.text = "Deep within the swamp Jimmy finds the ruins of Castle Ebb... the home of the Legendary Evil Eye!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 65
stop();
Instance of Symbol 685 MovieClip "text-level3C" in Frame 65
onClipEvent (load) {
this.text = "What ancient horror awaits Jimmy there?!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 68
stop();
Frame 69
_root.mixer.playLoop(9, 999999);
nextLevel = 5;
stop();
map.gotoAndStop(4);
Instance of Symbol 707 MovieClip in Frame 69
onClipEvent (load) {
setMagnet("bg3_b");
}
Instance of Symbol 685 MovieClip "textA" in Frame 69
onClipEvent (load) {
this.text = "Congratulations! Jimmy totally PWNed that imposter! As the Evil PinkEye cries for mercy Jimmy grabs a few tears. Now Jimmy has obtained all of the items that Warlic requires to locate Princess Ocular. Jimmy must head to Falconreach and speak to Warlic to continue his quest to rescue the Princess!";
this.stopRendering = false;
_root.mixer.playLoop(10, 999999);
}
Frame 70
stop();
Frame 75
stop();
Frame 76
stop();
Instance of Symbol 225 MovieClip in Frame 76
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Instance of Symbol 734 MovieClip in Frame 76
onClipEvent (load) {
var hovering;
var unlocked;
if (_root.highGold >= 180000) {
this.unlocked = true;
gotoAndStop ("Unlocked_Up");
}
onRollOver = function () {
hovering = true;
if (unlocked) {
gotoAndPlay ("Unlocked_Over");
} else {
gotoAndPlay ("Over");
}
};
onRollOut = function () {
hovering = false;
if (unlocked) {
gotoAndStop ("Unlocked_Up");
} else {
gotoAndStop ("Up");
}
};
onPress = function () {
if (unlocked) {
gotoAndStop ("Unlocked_Down");
_root.mixer.Channels[9].stop();
_root.mixer.Channels[8].stop();
_root.mixer.playLoop(8, 1);
getURL (_root.wallpaperURL, "_BLANK");
} else {
gotoAndStop ("Down");
}
};
onRelease = function () {
if (hovering) {
if (unlocked) {
gotoAndPlay ("Unlocked_Over");
} else {
gotoAndPlay ("Over");
}
} else if (unlocked) {
gotoAndStop ("Unlocked_Up");
} else {
gotoAndStop ("Up");
}
};
}
Frame 77
recordStore();
_root.orb.releaseMouse();
_root.orb.removeMovieClip();
_root.hpBar.removeMovieClip();
_root.mBar.removeMovieClip();
_root.hpOuter.removeMovieClip();
_root.manaOuter.removeMovieClip();
_root.eyeHUD.removeMovieClip();
_root.pinkEye.removeMovieClip();
_root.stats.removeMovieClip();
killEmAll = true;
killEmAll = true;
_root.orb.releaseMouse();
_root.orb.removeMovieClip();
_root.bossHP.removeMovieClip();
_root.bossHPOuter.removeMovieClip();
healthCoins.wipeInterval();
healthCoins.removeMovieClip();
healthCoins2.wipeInterval();
healthCoins2.removeMovieClip();
healthCoins3.wipeInterval();
healthCoins3.removeMovieClip();
healthCoins4.wipeInterval();
healthCoins4.removeMovieClip();
mixer.destroy(1, 800);
mixer.init(1, 800);
mixer.loadChannel(1, "ominous_reverb");
mixer.playLoop(1, 99999);
mixer.fader(1, 20);
Frame 78
msg = "Jimmy's has gone Blind from his injuries! He can no longer continue his mission to resue Princess Ocular. Restart, or head over to Falconreach to recover from your injuries!";
Instance of Symbol 336 MovieClip [Button-RED] "redButton" in Frame 78
onClipEvent (load) {
com = "resurrect";
btnText = "";
}
Instance of Symbol 225 MovieClip in Frame 78
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Frame 136
stop();
Frame 137
stop();
Instance of Symbol 225 MovieClip in Frame 137
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Symbol 22 MovieClip [hitZone] Frame 1
#initclip 36
Object.registerClass("hitZone", hitZone);
#endinitclip
Symbol 23 MovieClip [stone-jaggedSkyBright] Frame 1
#initclip 31
Object.registerClass("stone-jaggedSkyBright", Stalagmite);
#endinitclip
this._y = 400;
Symbol 27 MovieClip [stone-ceiling] Frame 1
#initclip 32
Object.registerClass("stone-ceiling", Stalagmite);
#endinitclip
this._height = Math.round((Math.random() * 30) + 120);
this._width = this._height / 2;
this._yscale = this._yscale * -1;
this._y = -10;
Symbol 118 MovieClip [flash] Frame 1
if (_root.killEmAll) {
_root.mixer.fader(2, 100, 0);
} else {
_root.mixer.xLocationFader(2, 100, this._x, Stage.width, 2);
}
_root.mixer.playLoop(2, 1);
Symbol 118 MovieClip [flash] Frame 27
this.removeMovieClip();
Symbol 121 MovieClip [JD_Cloudsfix] Frame 1
#initclip 33
Object.registerClass("JD_Cloudsfix", scrollingSeamlessBackground);
#endinitclip
Symbol 133 MovieClip [raven] Frame 1
#initclip 34
Object.registerClass("raven", diveEnemy);
#endinitclip
this._width = 80;
this._height = 44;
Symbol 133 MovieClip [raven] Frame 2
stop();
Symbol 138 MovieClip [evilEye] Frame 1
#initclip 35
Object.registerClass("evilEye", basicEnemy);
#endinitclip
this._width = 100;
this._height = 73.2;
Symbol 138 MovieClip [evilEye] Frame 2
stop();
Symbol 152 MovieClip [GT-Preloader] Frame 1
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent.loaded = true;
_parent.status = "Ready";
_parent.gotoAndStop("TitleScreen");
} else {
gotoAndStop ("loading");
strLoad.text = ("Loading " + String(Math.ceil((_root.getBytesLoaded() * 100) / _root.getBytesTotal()))) + "%";
}
Symbol 152 MovieClip [GT-Preloader] Frame 2
gotoAndPlay (1);
Symbol 748 MovieClip [__Packages.Stalagmite] Frame 0
class Stalagmite extends MovieClip
{
var speed, _height, _width, _y, _rotation, _x, removeMovieClip;
function Stalagmite () {
super();
speed = _root.bg.getSpeed();
_height = (Math.random() * 120) + 80;
_width = _height / 2;
_y = 410;
_rotation = 180;
}
function onEnterFrame() {
speed = _root.bg.getSpeed();
if (_root.bg.checkScroll()) {
_x = _x - speed;
}
if ((_x < -100) or _root.killEmAll) {
removeMovieClip();
}
}
}
Symbol 749 MovieClip [__Packages.scrollingSeamlessBackground] Frame 0
class scrollingSeamlessBackground extends MovieClip
{
var magnet, speed, screenWidth, scrolling, _x, _width, removeMovieClip;
function scrollingSeamlessBackground () {
super();
init();
}
function setMagnet(mag) {
magnet = mag;
}
function init() {
speed = 1;
screenWidth = 550;
scrolling = true;
magnet = "bg_b";
}
function setSpeed(spd) {
speed = spd;
}
function getSpeed() {
return(speed);
}
function setScrolling(scrollSwitch) {
scrolling = scrollSwitch;
}
function checkScroll() {
return(scrolling);
}
function onEnterFrame() {
if (scrolling) {
_x = _x - speed;
}
if (_x <= (_width * -1)) {
_x = ((_root[magnet]._x + _root[magnet]._width) - speed) - 2;
}
if (_root.killEmAll) {
removeMovieClip();
}
}
}
Symbol 750 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var isHit, speed, _x, _y, removeMovieClip, hitTest, laserName;
function Enemy () {
super();
isHit = false;
speed = (Math.random() * 2) + 3;
}
function die() {
_root.createEmptyMovieClip("enemyFlash", 201);
_root.attachMovie("flash", "enemyFlash", 201);
_root.enemyFlash._x = _x;
_root.enemyFlash._y = _y;
_root.fragCounter++;
removeMovieClip();
}
function checkHit() {
if (hitTest(_root.jimBeam111)) {
laserName = "jimBeam111";
return(true);
}
if (hitTest(_root.jimBeam112)) {
laserName = "jimBeam112";
return(true);
}
if (hitTest(_root.jimBeam113)) {
laserName = "jimBeam113";
return(true);
}
if (hitTest(_root.jimBeam114)) {
laserName = "jimBeam114";
return(true);
}
if (hitTest(_root.jimBeam115)) {
laserName = "jimBeam115";
return(true);
}
if (hitTest(_root.shield)) {
_root.mBar.resizeBar(20);
return(true);
}
}
}
Symbol 751 MovieClip [__Packages.diveEnemy] Frame 0
class diveEnemy extends Enemy
{
var ySpeed, stopDive, turned, _x, speed, _y, removeMovieClip, _rotation, hitTest, isHit, checkHit, laserName, die;
function diveEnemy () {
super();
ySpeed = 0;
stopDive = false;
turned = false;
}
function onEnterFrame() {
_x = _x - (_root.bg.getSpeed() + speed);
_y = _y + ySpeed;
if (_x < -50) {
removeMovieClip();
}
if ((stopDive == false) and (turned == false)) {
if ((_x < (_root.orb._x + 150)) and (_y < _root.orb._y)) {
ySpeed = 5;
if (turned == false) {
_rotation = -30;
turned = true;
}
} else if ((_x < (_root.orb._x + 100)) and (_y > _root.orb._y)) {
ySpeed = -5;
if (turned == false) {
_rotation = 30;
turned = true;
}
}
if (_x < _root.orb._x) {
stopDive = true;
}
}
if ((_y > 380) or (_y < 20)) {
ySpeed = 0;
}
if (hitTest(_root.orb.Head)) {
_root.orb.callCondition("hit");
removeMovieClip();
}
if (checkHit() and (isHit != true)) {
isHit = true;
_root[laserName].removeMovieClip();
die();
}
if (_root.killEmAll) {
die();
}
}
}
Symbol 752 MovieClip [__Packages.basicEnemy] Frame 0
class basicEnemy extends Enemy
{
var _height, _width, _x, speed, removeMovieClip, hitTest, isHit, checkHit, laserName, die;
function basicEnemy () {
super();
_height = 90;
_width = 57;
}
function onEnterFrame() {
_x = _x - (_root.bg.getSpeed() + speed);
if (_x < -50) {
removeMovieClip();
}
if (hitTest(_root.orb.Head)) {
_root.orb.callCondition("hit");
removeMovieClip();
}
if (checkHit() and (isHit != true)) {
isHit = true;
_root[laserName].removeMovieClip();
die();
}
if (_root.killEmAll) {
die();
}
}
}
Symbol 753 MovieClip [__Packages.hitZone] Frame 0
class hitZone extends MovieClip
{
var _alpha, isHittingChar, hitTest;
function hitZone () {
super();
_alpha = 0;
isHittingChar = false;
}
function onEnterFrame() {
if (hitTest(_root.orb.Head)) {
if (isHittingChar != true) {
_root.orb.callCondition("hit");
isHittingChar = true;
}
} else {
isHittingChar = false;
}
}
}
Symbol 754 MovieClip [__Packages.soundMixer] Frame 0
class soundMixer
{
var Channels, channelLabels;
function soundMixer () {
Channels = new Array(8);
channelLabels = new Array(8);
}
function init(channelCount, mixerDepth) {
var _local4;
var _local3 = 0;
while (_local3 <= (channelCount - 1)) {
_local4 = "mixerChannel" + _local3;
_root.createEmptyMovieClip(_local4, mixerDepth + _local3);
Channels[_local3] = new Sound(_root[_local4]);
_local3++;
}
}
function destroy(channelCount, mixerDepth) {
var _local4;
var _local3 = 0;
while (_local3 <= (channelCount - 1)) {
_local4 = "mixerChannel" + _local3;
Channels[_local3].stop();
_root[_local4].removeMovieClip();
_local3++;
}
}
function loadChannel(chn, audio) {
chn = chn - 1;
Channels[chn].attachSound(audio);
channelLabels[chn] = audio;
}
function playLoop(chn, iterations, offset) {
chn = chn - 1;
if (offset == null) {
offset = 0;
}
if (Channels[chn] != undefined) {
if (_root.soundOn) {
Channels[chn].stop();
Channels[chn].start(offset, iterations);
} else {
trace("sound is not active!!");
}
} else {
trace("no audio loaded!!!");
}
}
function labelChannel(chn, channelName) {
chn = chn - 1;
channelLabels[chn] = channelName;
}
function fader(chn, vol, pan) {
if (pan == null) {
pan = 0;
}
if (chn == 0) {
var _local2 = 0;
while (_local2 <= (Channels.length - 1)) {
Channels[_local2].setVolume(vol);
Channels[_local2].setPan(pan);
_local2++;
}
} else {
chn = chn - 1;
Channels[chn].setVolume(vol);
Channels[chn].setPan(pan);
}
}
function xLocationFader(chn, vol, x, screenWidth, panMultiplier) {
var _local2;
var _local3;
if (panMultiplier == null) {
panMultiplier = 1;
}
_local2 = 0;
_local3 = screenWidth / 2;
if (x > _local3) {
_local2 = 100 * ((x - _local3) / _local3);
} else if (x < _local3) {
_local2 = -100 - (-1 * (100 * (x / _local3)));
}
_local2 = _local2 * panMultiplier;
if (_local2 > 100) {
_local2 = 100;
}
if (_local2 < -100) {
_local2 = -100;
}
fader(chn, vol, _local2);
}
}
Symbol 755 MovieClip [__Packages.healthBar] Frame 0
class healthBar extends MovieClip
{
var maxHitPoints, currentHp, maxWidth, _width, sizeTransform;
function healthBar () {
super();
maxHitPoints = 100;
currentHp = 100;
maxWidth = 180;
_width = maxWidth;
}
function init(maxHP, currentHP, maxWidth) {
maxHitPoints = maxHP;
currentHp = currentHP;
_width = maxWidth;
}
function resizeBar(hp) {
currentHp = currentHp - hp;
if (currentHp < 1) {
currentHp = 0;
} else if (currentHp > maxHitPoints) {
currentHp = maxHitPoints;
}
sizeTransform = maxWidth * (currentHp / maxHitPoints);
_width = sizeTransform;
}
}
Symbol 756 MovieClip [__Packages.followEnemy] Frame 0
class followEnemy extends Enemy
{
var speed, ySpeed, _height, _width, active, tracking, turner, _x, _xscale, _y, hitTest, removeMovieClip, isHit, checkHit, laserName, die;
function followEnemy () {
super();
speed = _root.bg.getSpeed() + 2;
ySpeed = 2;
_height = 40;
_width = 40;
active = true;
tracking = false;
turner = setInterval(this, "turn", 500);
}
function turn() {
if (tracking) {
if (_root.orb._x < _x) {
if (_xscale < 0) {
_xscale = _xscale * -1;
_x = _x - (_width / 2);
}
} else if (_root.orb._x > _x) {
if (_xscale > 0) {
_xscale = _xscale * -1;
_x = _x + (_width / 2);
}
}
}
}
function onEnterFrame() {
if ((_root.orb._x >= (_x - 50)) and (tracking != true)) {
if (active) {
tracking = true;
}
}
if (tracking) {
if (_root.orb._x > _x) {
if (speed > 0) {
speed = -3;
}
}
if (_root.orb._y > _y) {
if (ySpeed < 0) {
ySpeed = ySpeed * -1;
}
}
if (_root.orb._x < _x) {
if (speed < 0) {
speed = 10;
}
}
if (_root.orb._y < _y) {
if (ySpeed > 0) {
ySpeed = ySpeed * -1;
}
}
}
if (hitTest(_root.orb.Head)) {
_root.orb.callCondition("hit");
removeMovieClip();
}
if (checkHit() and (isHit != true)) {
isHit = true;
_root[laserName].removeMovieClip();
die();
}
if (_root.killEmAll) {
die();
}
_x = _x - speed;
if (tracking) {
_y = _y + ySpeed;
if (_root.orb._x > (_x + 125)) {
if (_xscale < 0) {
clearInterval(turner);
_xscale = _xscale * -1;
speed = -12;
}
speed = speed * -2;
active = false;
tracking = false;
}
}
}
}
Symbol 757 MovieClip [__Packages.scrollingBackground] Frame 0
class scrollingBackground extends MovieClip
{
var speed, screenWidth, scrolling, magnet, _x, _width, removeMovieClip;
function scrollingBackground () {
super();
init();
}
function init() {
speed = 1;
screenWidth = 550;
scrolling = true;
magnet = "bg_b";
}
function setSpeed(spd) {
speed = spd;
}
function getSpeed() {
return(speed);
}
function setScrolling(scrollSwitch) {
scrolling = scrollSwitch;
}
function checkScroll() {
return(scrolling);
}
function onEnterFrame() {
if (scrolling) {
_x = _x - speed;
}
if (_x <= (_width * -1)) {
_x = screenWidth;
}
if (_root.killEmAll) {
removeMovieClip();
}
}
}
Symbol 758 MovieClip [__Packages.weaknessZone] Frame 0
class weaknessZone extends Enemy
{
var _alpha, _parent, checkHit, laserName, _y, _x;
function weaknessZone () {
super();
_alpha = 0;
}
function killBoss() {
_parent.shutDown();
_parent.gotoAndPlay("Dead");
}
function onEnterFrame() {
if (checkHit() and _parent.hittable) {
_parent.hitPoints = _parent.hitPoints - 1;
_parent.createEmptyMovieClip("bossFlash", 500);
_parent.attachMovie("flash", "bossFlash", 500);
_root[laserName].removeMovieClip();
_parent.bossFlash._y = _y;
_parent.bossFlash._x = _x;
_root.bossHP.resizeBar(1);
_parent.gotoAndPlay("Hit");
}
if (_parent.hitPoints <= 0) {
_parent.hittable = false;
killBoss();
}
}
}
Symbol 759 MovieClip [__Packages.levelBoss] Frame 0
class levelBoss extends MovieClip
{
var hintEnabled, showHint, attacking, dead, ySpeed, hitPoints, hittable, v_x, isMoving, bossVictoryMessage, gotoAndPlay, attackInterval;
function levelBoss () {
super();
init();
hintEnabled = false;
showHint = false;
}
function init() {
Key.addListener(this);
attacking = false;
dead = false;
ySpeed = 3;
hitPoints = 3;
hittable = false;
v_x = 5000;
isMoving = true;
bossVictoryMessage = "You Win!!!";
}
function onKeyDown() {
var _local3 = Key.getCode();
trace(_local3);
if (!(_local3 === 72)) {
} else if (hintEnabled && (_root.goldCounter > 10000)) {
_root.goldCounter = _root.goldCounter - 10000;
showHint = true;
hintEnabled = false;
_root.bossMsg = "Targeting system activated";
}
}
function setVirtual_X(x_val) {
v_x = x_val;
}
function attack() {
if ((attacking != true) and (hitPoints > 0)) {
gotoAndPlay("Attack");
} else {
attacking = false;
}
}
function setHitPoints(hp) {
hitPoints = hp;
}
function shutDown() {
clearInterval(attackInterval);
_root.mixer.playLoop(6, 1);
_root.mixer.fader(6, 60);
dead = true;
attackInterval = null;
_root.bossMsg = "";
}
function stopLevel() {
isMoving = false;
_root.fireball.isMoving = false;
_root.fireball2.isMoving = false;
_root.fireball.respawn();
_root.fireball2.respawn();
_root.spawner.wipeInterval();
_root.objSpawner.wipeInterval();
_root.spawner.removeMovieClip();
_root.objSpawner.removeMovieClip();
_root.bg.setScrolling(false);
_root.bg2.setScrolling(false);
_root.bg3.setScrolling(false);
if (_root.bg_b != null) {
_root.bg_b.setScrolling(false);
}
if (_root.bg2_b != null) {
_root.bg2_b.setScrolling(false);
}
if (_root.bg3_b != null) {
_root.bg3_b.setScrolling(false);
}
_root.createEmptyMovieClip("mcFlash", 900);
_root.attachMovie("flashBoss", "mcFlash", 900);
_root.mcFlash._x = 275;
_root.mcFlash._y = 200;
_root.mcFlash._width = 300;
_root.mcFlash._height = 300;
_root.killEmAll = true;
_root.bossHP._visible = true;
_root.bossHPOuter._visible = true;
_root.bossMsg = "Press 'H' to view hint (-$10000)";
hintEnabled = true;
}
function leaveReward(reward) {
_root.createEmptyMovieClip(reward, 120);
_root.attachMovie(reward, reward, 120);
_root[reward]._x = 275;
_root[reward]._y = 200;
_root[reward].setVictoryMsg(bossVictoryMessage);
}
}
Symbol 760 MovieClip [__Packages.eyeBoss] Frame 0
class eyeBoss extends levelBoss
{
var tumbling, attackReady, xSpeed, bossVictoryMessage, hitPoints, attacking, atk, _x, gotoAndPlay, v_x, isMoving, stopLevel, hittable, dead, attackInterval, _width, _currentframe, _xscale, leaveReward;
function eyeBoss () {
super();
tumbling = false;
attackReady = false;
xSpeed = 3;
bossVictoryMessage = "Congratulations! Jimmy just showed that imposter who's boss! As the Evil PinkEye cries for mercy, Jimmy grabs a few tears. Now, Jimmy has obtained all of the items that Warlic requires to locate Princess Ocular!";
}
function attack() {
if (((attacking != true) and (hitPoints > 0)) and (tumbling != true)) {
atk = Math.round((Math.random() * 1) + 1);
if ((_x > 100) and (_x < 450)) {
gotoAndPlay("Attack" + atk);
}
} else {
attacking = false;
}
}
function onEnterFrame() {
if (v_x > 550) {
v_x = v_x - _root.bg.speed;
} else if (isMoving) {
_x = _x - _root.bg.speed;
}
if ((_x < 300) and (attackReady == false)) {
if (isMoving) {
stopLevel();
_root.bossHP.init(20, 20, 180);
_root.bossHPOuter._width = _root.bossHP._width;
attackReady = true;
hittable = true;
}
if ((attackInterval == null) and (dead != true)) {
hittable = true;
attackInterval = setInterval(this, "attack", 2000);
}
}
if (attackReady) {
if ((_x < (0 + (_width / 2))) or (_x > (550 - (_width / 2)))) {
if (_currentframe < 11) {
xSpeed = xSpeed * -1;
_xscale = _xscale * -1;
if (_x > (550 - (_width / 2))) {
_x = _x - ((_width / 2) + xSpeed);
} else {
_x = _x + ((_width / 2) + xSpeed);
}
}
}
if (dead) {
leaveReward("bigEvilEyeReward");
gotoAndPlay("Dead");
_root.bossHP.removeMovieClip();
_root.bossHPOuter.removeMovieClip();
onEnterFrame = null;
} else {
_x = _x - xSpeed;
}
}
}
}
Symbol 761 MovieClip [__Packages.levelGoal] Frame 0
class levelGoal extends MovieClip
{
var victoryMsg, removeMovieClip, hitTest;
function levelGoal () {
super();
victoryMsg = "You Win!";
}
function setVictoryMsg(msg) {
victoryMsg = msg;
}
function triggerEndLevel() {
_root.orb.releaseMouse();
_root.mixer.playLoop(3, 1);
_root.bossHP.removeMovieClip();
_root.bossHPOuter.removeMovieClip();
_root.orb.removeMovieClip();
_root.play();
removeMovieClip();
}
function onEnterFrame() {
if (hitTest(_root.orb)) {
triggerEndLevel();
}
}
}
Symbol 762 MovieClip [__Packages.dynamicButton] Frame 0
class dynamicButton extends MovieClip
{
var btnText, com, removeMovieClip, gotoAndStop;
function dynamicButton () {
super();
btnText = "Okay";
com = "gotoNextLevel";
}
function executeCommand(com) {
switch (com) {
case "gotoNextLevel" :
_root.orb.init();
_root.hpBar.init();
_root.mbar.init();
_root.bg.init();
_root.bg2.init();
_root.killEmAll = true;
_root.messageScroll.removeMovieClip();
_root.gotoAndPlay(_root._currentframe + 1);
removeMovieClip();
break;
case "resurrect" :
_root.killEmAll = true;
_root.mixer.destroy(8, 800);
_root.restartGame();
break;
case "start" :
_root.startGame();
break;
default :
trace("undefined command");
}
}
function onPress() {
gotoAndStop(2);
executeCommand(com);
}
function onRelease() {
gotoAndStop(1);
}
}
Symbol 763 MovieClip [__Packages.Shield] Frame 0
class Shield extends MovieClip
{
var _alpha, _x, _y, _width, _height, removeMovieClip;
function Shield () {
super();
_alpha = 50;
_x = _root.orb._x;
_y = _root.orb._y;
_width = 30;
_height = 74;
}
function onEnterFrame() {
if (_root.orb.hasMana != true) {
removeMovieClip();
} else {
_x = _root.orb._x + 40;
_y = _root.orb._y;
}
}
}
Symbol 764 MovieClip [__Packages.Shot] Frame 0
class Shot extends MovieClip
{
var speed;
function Shot () {
super();
speed = 0;
}
}
Symbol 765 MovieClip [__Packages.healthShot] Frame 0
class healthShot extends Shot
{
var _height, _width, _x, removeMovieClip, hitTest;
function healthShot () {
super();
_height = 20;
_width = 20;
}
function onEnterFrame() {
_x = _x - (_root.bg.getSpeed() + 2);
if ((_x < -50) or _root.killEmAll) {
removeMovieClip();
}
if (hitTest(_root.orb)) {
_root.orb.callCondition("heal");
_root.mixer.playLoop(4, 1);
removeMovieClip();
}
}
}
Symbol 766 MovieClip [__Packages.shieldShot] Frame 0
class shieldShot extends Shot
{
var _height, _width, _x, removeMovieClip, hitTest;
function shieldShot () {
super();
_height = 20;
_width = 20;
}
function onEnterFrame() {
_x = _x - (_root.bg.getSpeed() + 2);
if (_x < -50) {
removeMovieClip();
}
if (hitTest(_root.orb)) {
_root.orb.activateShield(true);
_root.orb.callCondition("mana");
_root.mixer.playLoop(4, 1);
removeMovieClip();
}
if (_root.killEmAll == true) {
removeMovieClip();
}
}
}
Symbol 767 MovieClip [__Packages.ballBoss] Frame 0
class ballBoss extends levelBoss
{
var xSpeed, ySpeed, _width, _height, attackReady, bossVictoryMessage, _xscale, dead, v_x, isMoving, _x, stopLevel, hittable, _y, leaveReward;
function ballBoss () {
super();
xSpeed = 8;
ySpeed = 3;
_width = 211;
_height = 207;
attackReady = false;
bossVictoryMessage = "Deep within the Cavern of Visions, Jimmy found the Fire of Life. Unfortunately, he also found a giant feyerball. The Fire of Life was keeping it alive!";
}
function reverseDirection() {
xSpeed = xSpeed * -1;
_xscale = _xscale * -1;
}
function shutDown() {
_root.mixer.playLoop(6, 1);
_root.mixer.fader(6, 60);
dead = true;
}
function onEnterFrame() {
if (v_x > 550) {
v_x = v_x - _root.bg.speed;
} else if (isMoving) {
_x = _x - _root.bg.speed;
}
if ((_x < 300) and (attackReady == false)) {
if (isMoving) {
stopLevel();
attackReady = true;
hittable = true;
_root.bossHP.init(8, 8, 180);
_root.bossHPOuter._width = _root.bossHP._width;
}
}
if (attackReady) {
if (_x < (_width / 2)) {
xSpeed = xSpeed * -1;
_xscale = _xscale * -1;
_x = _width / 2;
hittable = false;
_root.feyerBoss.hintTarget.gotoAndStop("scanning");
} else if (_x > (550 - (_width / 2))) {
xSpeed = xSpeed * -1;
_xscale = _xscale * -1;
_x = 550 - (_width / 2);
hittable = true;
_root.feyerBoss.hintTarget.gotoAndStop("lockon");
}
if (_y < (_height / 2)) {
ySpeed = ySpeed * -1;
_y = _height / 2;
} else if (_y > (400 - (_height / 2))) {
ySpeed = ySpeed * -1;
_y = 400 - (_height / 2);
}
_x = _x - xSpeed;
_y = _y + ySpeed;
}
if (dead) {
leaveReward("feyerBossReward");
_root.bossHP._visible = false;
_root.bossHPOuter._visible = true;
onEnterFrame = null;
}
}
}
Symbol 768 MovieClip [__Packages.laserShot] Frame 0
class laserShot extends Shot
{
var speed, _x, removeMovieClip;
function laserShot () {
super();
speed = 20;
}
function onEnterFrame() {
_x = _x + speed;
if (_x > 570) {
removeMovieClip();
}
}
}
Symbol 769 MovieClip [__Packages.gameCharacter] Frame 0
class gameCharacter extends MovieClip
{
var playerShotNum, dying, shotReady, _width, _x, _y;
function gameCharacter () {
super();
playerShotNum = 1;
dying = false;
shotReady = true;
}
function fireShot(shotId, shotName) {
var _local3;
var _local4;
_local4 = 110 + playerShotNum;
_local3 = shotName + _local4;
if (_root[_local3] == null) {
_root.mixer.xLocationFader(7, 50, _root.orb._x, _root.stageWidth, 2);
_root.mixer.playLoop(7, 1);
_root.createEmptyMovieClip(_local3, _local4);
_root.attachMovie(shotId, _local3, _local4);
_root[_local3]._x = (_x + (_width / 2)) - 20;
_root[_local3]._y = _y - 5;
}
playerShotNum++;
if (playerShotNum > 5) {
playerShotNum = 1;
}
}
}
Symbol 770 MovieClip [__Packages.Swod] Frame 0
class Swod extends gameCharacter
{
var releaseTime, death, hasMana, playerShotNum, shotReady, swapDepths, _x, _y, dying, pressTime, fireShot, shotInt, stopDrag, startDrag, _width, gotoAndPlay;
function Swod () {
super();
init();
}
function init() {
releaseTime = 0;
death = false;
hasMana = true;
playerShotNum = 1;
shotReady = true;
swapDepths(300);
_x = 50;
_y = 200;
}
function onRollOver() {
if (dying != true) {
_root.jimmyMsg = "";
grabMouse();
}
}
function activateShield(cond) {
cond = true;
if (cond) {
_root.createEmptyMovieClip("shield", 301);
_root.attachMovie("contactLens", "shield", 301);
}
}
function onEnterFrame() {
if (_x >= 400) {
_root.bg.setSpeed(22);
_root[_root.bg.magnet].setSpeed(22);
_root.bg2.setSpeed(19);
_root[_root.bg2.magnet].setSpeed(19);
_root.bg3.setSpeed(17);
_root[_root.bg3.magnet].setSpeed(17);
} else if (_x >= 350) {
_root.bg.setSpeed(20);
_root[_root.bg.magnet].setSpeed(20);
_root.bg2.setSpeed(17);
_root[_root.bg2.magnet].setSpeed(17);
_root.bg3.setSpeed(14);
_root[_root.bg3.magnet].setSpeed(14);
} else if (_x >= 300) {
_root.bg.setSpeed(18);
_root[_root.bg.magnet].setSpeed(18);
_root.bg2.setSpeed(15);
_root[_root.bg2.magnet].setSpeed(15);
_root.bg3.setSpeed(12);
_root[_root.bg3.magnet].setSpeed(12);
} else if (_x >= 250) {
_root.bg.setSpeed(16);
_root[_root.bg.magnet].setSpeed(16);
_root.bg2.setSpeed(13);
_root[_root.bg2.magnet].setSpeed(13);
_root.bg3.setSpeed(10);
_root[_root.bg3.magnet].setSpeed(10);
} else if (_x >= 200) {
_root.bg.setSpeed(14);
_root[_root.bg.magnet].setSpeed(14);
_root.bg2.setSpeed(11);
_root[_root.bg2.magnet].setSpeed(11);
_root.bg3.setSpeed(8);
_root[_root.bg3.magnet].setSpeed(8);
} else if (_x >= 150) {
_root.bg.setSpeed(12);
_root[_root.bg.magnet].setSpeed(12);
_root.bg2.setSpeed(9);
_root[_root.bg2.magnet].setSpeed(9);
_root.bg3.setSpeed(6);
_root[_root.bg3.magnet].setSpeed(6);
} else if (_x >= 100) {
_root.bg.setSpeed(10);
_root[_root.bg.magnet].setSpeed(10);
_root.bg2.setSpeed(7);
_root[_root.bg2.magnet].setSpeed(7);
_root.bg3.setSpeed(4);
_root[_root.bg3.magnet].setSpeed(4);
} else if (_x >= 50) {
_root.bg.setSpeed(8);
_root[_root.bg.magnet].setSpeed(8);
_root.bg2.setSpeed(5);
_root[_root.bg2.magnet].setSpeed(5);
_root.bg3.setSpeed(2);
_root[_root.bg3.magnet].setSpeed(2);
} else {
_root.bg.setSpeed(6);
_root[_root.bg.magnet].setSpeed(6);
_root.bg2.setSpeed(3);
_root[_root.bg2.magnet].setSpeed(3);
_root.bg3.setSpeed(1);
_root[_root.bg3.magnet].setSpeed(1);
}
if ((((_root._xmouse <= 1) | (_root._xmouse >= 549)) | (_root._ymouse <= 1)) | (_root._ymouse >= 399)) {
onMouseUp();
}
}
function onMouseDown() {
pressTime = getTimer();
trace(pressTime);
trace(pressTime - releaseTime);
if ((pressTime - releaseTime) >= 300) {
shotReady = true;
releaseTime = 0;
}
if (shotReady) {
fireShot("laserShot", "jimBeam");
shotReady = false;
}
shotInt = setInterval(this, "fireShot", 300, "laserShot", "jimBeam");
}
function onMouseUp() {
clearInterval(shotInt);
if ((!shotReady) && (releaseTime == 0)) {
releaseTime = getTimer();
trace(releaseTime);
}
}
function releaseMouse() {
stopDrag();
Mouse.show();
}
function grabMouse() {
Mouse.hide(true);
startDrag(true, 0, 60, 550 - _width, 360);
}
function showExplosion() {
_root.createEmptyMovieClip("flash", 101);
_root.attachMovie("flash", "flash", 101);
_root.flash._x = _x;
_root.flash._y = _y;
}
function callCondition(com) {
if (com == "hit") {
if (death != true) {
showExplosion();
_root.hpBar.resizeBar(10);
_root.pinkEye._alpha = _root.pinkEye._alpha + 8;
_root.orb.pinkeye._alpha = _root.orb.pinkeye._alpha + 8;
}
if (death) {
if (dying != true) {
dying = true;
gotoAndPlay("Hit");
_root.killEmAll();
releaseMouse();
_root.death();
}
}
}
if (com == "heal") {
_root.hpBar.resizeBar(-10);
_root.pinkEye._alpha = _root.pinkEye._alpha - 8;
_root.orb.pinkeye._alpha = _root.orb.pinkeye._alpha - 8;
}
if (com == "mana") {
_root.mBar.resizeBar(-10);
hasMana = true;
}
}
}
Symbol 771 MovieClip [__Packages.statBar] Frame 0
class statBar extends MovieClip
{
var maxStatPoints, currentSp, maxWidth, _width, barType, sizeTransform;
function statBar () {
super();
init();
}
function init() {
maxStatPoints = 100;
currentSp = 100;
maxWidth = 180;
_width = maxWidth;
barType = "health";
}
function setType(type) {
barType = type;
}
function resizeBar(sp) {
currentSp = currentSp - sp;
if (currentSp < 1) {
currentSp = 0;
if (barType == "health") {
_root.orb.death = true;
} else if (barType == "mana") {
_root.orb.hasMana = false;
}
} else if (currentSp > maxStatPoints) {
currentSp = maxStatPoints;
}
sizeTransform = maxWidth * (currentSp / maxStatPoints);
_width = sizeTransform;
}
}
Symbol 772 MovieClip [__Packages.manaRegenerator] Frame 0
class manaRegenerator extends MovieClip
{
var type, rechargeInterval;
function manaRegenerator () {
super();
type = "mana";
rechargeInterval = setInterval(this, "recharge", 2000);
}
function setType(str) {
type = str;
}
function wipeInterval() {
clearInterval(rechargeInterval);
}
function defineInterval(val) {
clearInterval(rechargeInterval);
rechargeInterval = setInterval(this, "recharge", val);
}
function recharge() {
_root.orb.callCondition(type);
}
}
Symbol 773 MovieClip [__Packages.drakeBoss] Frame 0
class drakeBoss extends levelBoss
{
var bossVictoryMessage, v_x, isMoving, _x, stopLevel, dead, attackInterval, hittable, _y, ySpeed, leaveReward;
function drakeBoss () {
super();
bossVictoryMessage = "Congratulations! Jimmy has recovered dust from the wings of the Sylph Drake! Just ahead lies the Cavern of Visions... The Fire of Life is rumored to lie within.";
}
function onEnterFrame() {
if (v_x > 550) {
v_x = v_x - _root.bg.speed;
} else if (isMoving) {
_x = _x - _root.bg.speed;
}
if (_x < 300) {
if (isMoving) {
stopLevel();
_root.bossHP.init(5, 5, 180);
_root.bossHPOuter._width = _root.bossHP._width;
}
if ((attackInterval == null) and (dead != true)) {
hittable = true;
attackInterval = setInterval(this, "attack", 3000);
}
if ((_y < 320) or (_y > 540)) {
ySpeed = ySpeed * -1;
}
if (dead) {
leaveReward("drakeReward");
_root.bossHP._visible = false;
_root.bossHPOuter._visible = false;
_y = 400;
onEnterFrame = null;
} else {
_y = _y + ySpeed;
}
}
}
}
Symbol 774 MovieClip [__Packages.objectGenerator] Frame 0
class objectGenerator extends MovieClip
{
var enemyNum, spawnInterval, enemies;
function objectGenerator () {
super();
init();
}
function init() {
enemyNum = 0;
spawnInterval = setInterval(this, "spawn", 1000);
enemies = new Array("DragonCoin", "DragonCoinBlue", "DragonCoinGold", "DragonCoinGold", "DragonCoinGold", "DragonCoinGold", "DragonCoinGold", "DragonCoinGold", "DragonCoinGold");
}
function wipeInterval() {
clearInterval(spawnInterval);
}
function defineInterval(val) {
clearInterval(spawnInterval);
spawnInterval = setInterval(this, "spawn", val);
}
function setUpEnemies(e) {
enemies = e;
}
function spawn() {
var _local5;
var _local4;
var _local3;
_local5 = Math.round((Math.random() * (enemies.length - 1)) - 0);
_local4 = enemies[_local5];
_local3 = _local4 + enemyNum;
if (_root[_local3] == null) {
_root.createEmptyMovieclip(_local3, enemyNum + 400);
_root.attachMovie(_local4, _local3, enemyNum + 400);
_root[_local3]._x = (Math.random() * 220) + 580;
_root[_local3]._y = (Math.random() * 310) + 40;
}
enemyNum++;
if (enemyNum > 50) {
enemyNum = 0;
}
}
}
Symbol 775 MovieClip [__Packages.beeBoss] Frame 0
class beeBoss extends levelBoss
{
var attackReady, speed, ySpeed, active, tracking, turner, bossVictoryMessage, _x, _xscale, v_x, isMoving, stopLevel, hittable, dead, attackInterval, _y, leaveReward, gotoAndPlay;
function beeBoss () {
super();
attackReady = false;
speed = 4;
ySpeed = 4;
active = true;
tracking = false;
turner = setInterval(this, "turn", 500);
bossVictoryMessage = "Jimmy has successfully shut down RoBee and grabbed its stinger. Castle Ebb lies just ahead. What horrors await Jimmy there?";
}
function turn() {
if (tracking) {
if (_root.orb._x < _x) {
if (_xscale < 0) {
_xscale = _xscale * -1;
}
} else if (_root.orb._x > _x) {
if (_xscale > 0) {
_xscale = _xscale * -1;
}
}
}
}
function onEnterFrame() {
if (v_x > 550) {
v_x = v_x - _root.bg.speed;
} else if (isMoving) {
_x = _x - _root.bg.speed;
}
if ((_x < 300) and (attackReady == false)) {
if (isMoving) {
stopLevel();
_root.bossHP.init(10, 10, 180);
_root.bossHPOuter._width = _root.bossHP._width;
attackReady = true;
hittable = true;
}
if ((attackInterval == null) and (dead != true)) {
hittable = true;
attackInterval = setInterval(this, "attack", 3000);
tracking = true;
}
}
if (attackReady) {
if (_root.orb._x > _x) {
if (speed > 0) {
speed = speed * -1;
}
}
if (_root.orb._y > _y) {
if (ySpeed < 0) {
ySpeed = ySpeed * -1;
}
}
if (_root.orb._x < _x) {
if (speed < 0) {
speed = speed * -1;
}
}
if (_root.orb._y < _y) {
if (ySpeed > 0) {
ySpeed = ySpeed * -1;
}
}
_y = _y + ySpeed;
_x = _x - speed;
}
if (dead) {
leaveReward("roBeeReward");
gotoAndPlay("Dead");
_root.bossHP.removeMovieClip();
_root.bossHPOuter.removeMovieClip();
onEnterFrame = null;
}
}
}
Symbol 776 MovieClip [__Packages.enemyGenerator] Frame 0
class enemyGenerator extends MovieClip
{
var enemyNum, spawnInterval, enemies;
function enemyGenerator () {
super();
init();
}
function init() {
enemyNum = 1;
spawnInterval = setInterval(this, "spawn", 1500);
enemies = new Array("fairy", "stone-jagged", "Drake");
}
function wipeInterval() {
clearInterval(spawnInterval);
}
function defineInterval(val) {
clearInterval(spawnInterval);
spawnInterval = setInterval(this, "spawn", val);
}
function setUpEnemies(e) {
enemies = e;
}
function spawn() {
var _local5;
var _local4;
var _local3;
_local5 = Math.round((Math.random() * enemies.length) - 0);
_local4 = enemies[_local5];
_local3 = _local4 + enemyNum;
if (_root[_local3] == null) {
_root.createEmptyMovieclip(_local3, enemyNum);
_root.attachMovie(_local4, _local3, enemyNum);
_root[_local3]._x = (Math.random() * 200) + 600;
if (_local4 != "stone-jagged") {
_root[_local3]._y = (Math.random() * 310) + 40;
}
}
enemyNum++;
if (enemyNum > 50) {
enemyNum = 1;
}
}
}
Symbol 777 MovieClip [__Packages.moneyShot] Frame 0
class moneyShot extends Shot
{
var _height, _width, _x, removeMovieClip, hitTest;
function moneyShot () {
super();
_height = 20;
_width = 20;
}
function onEnterFrame() {
_x = _x - (_root.bg.getSpeed() + 2);
if ((_x < -50) or _root.killEmAll) {
removeMovieClip();
}
if (hitTest(_root.orb)) {
_root.goldCounter = _root.goldCounter + 500;
_root.mixer.playLoop(5, 1);
removeMovieClip();
}
}
}
Symbol 166 MovieClip Frame 20
stop();
Symbol 203 Button
on (press) {
_root.startGame();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 206 Button
on (press) {
_root.showHighScore();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 210 Button
on (press) {
_root.about();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 213 Button
on (press) {
_root.instructions();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 216 Button
on (press) {
getURL (_root.gameURL, "_BLANK");
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 225 MovieClip Frame 35
stop();
Symbol 228 Button
on (press) {
gotoAndStop ("Off");
}
Symbol 231 Button
on (press) {
gotoAndStop ("On");
}
Symbol 233 MovieClip Frame 1
if (_root.soundOn == true) {
_root.soundStatus = "Sound is On";
stop();
} else {
_root.soundStatus = "Sound is Off";
gotoAndStop ("Off");
}
stop();
Symbol 233 MovieClip Frame 5
_root.soundStatus = "Sound is Off";
stop();
Symbol 241 MovieClip Frame 1
_root.mixer.playLoop(11, 1);
Symbol 241 MovieClip Frame 25
_root.mixer.playLoop(12, 1);
Symbol 241 MovieClip Frame 31
_root.mixer.playLoop(12, 1);
Symbol 241 MovieClip Frame 36
_root.mixer.playLoop(12, 1);
Symbol 241 MovieClip Frame 44
_root.mixer.playLoop(12, 1);
Symbol 241 MovieClip Frame 50
_root.mixer.playLoop(12, 1);
Symbol 241 MovieClip Frame 55
stop();
_root.mixer.fader(13, 10);
_root.mixer.playLoop(13, 1);
Instance of Symbol 225 MovieClip in Symbol 241 MovieClip Frame 55
on (press) {
getURL (_root.gameURL, "_BLANK");
}
Instance of Symbol 233 MovieClip in Symbol 241 MovieClip Frame 55
on (press) {
if (_root.soundOn) {
_root.soundOn = false;
gotoAndStop ("Off");
} else {
_root.soundOn = true;
gotoAndStop ("On");
}
}
Instance of Symbol 240 MovieClip in Symbol 241 MovieClip Frame 55
on (press) {
_root.gotoDownload();
}
Symbol 243 MovieClip [hpCounter] Frame 1
#initclip 80
Object.registerClass("hpCounter", statBar);
#endinitclip
this.swapDepths(870);
Symbol 245 MovieClip [hpBar] Frame 1
#initclip 37
Object.registerClass("hpBar", healthBar);
#endinitclip
_root.util.setColor(this.base, hexColor);
stop();
Symbol 257 MovieClip [batMonster] Frame 1
#initclip 38
Object.registerClass("batMonster", followEnemy);
#endinitclip
_width = 60;
_height = 54;
Symbol 257 MovieClip [batMonster] Frame 2
stop();
Symbol 263 MovieClip Frame 28
gotoAndPlay ("Idle");
Symbol 263 MovieClip Frame 29
stop();
Symbol 281 MovieClip [beeSwarmer] Frame 1
#initclip 39
Object.registerClass("beeSwarmer", followEnemy);
#endinitclip
this._height = 55;
this._width = 54.4;
Symbol 286 MovieClip [bg] Frame 1
#initclip 40
Object.registerClass("bg", scrollingBackground);
#endinitclip
Symbol 289 MovieClip [weakPoint] Frame 1
#initclip 41
Object.registerClass("weakPoint", weaknessZone);
#endinitclip
Symbol 295 MovieClip Frame 4
gotoAndPlay ("Targetting");
Symbol 295 MovieClip Frame 40
gotoAndPlay ("LockedOn");
Symbol 296 MovieClip Frame 1
_alpha = 0;
Symbol 296 MovieClip Frame 2
Tracker.gotoAndPlay("Targetting");
Symbol 296 MovieClip Frame 31
gotoAndPlay ("scanning");
Symbol 296 MovieClip Frame 32
Tracker.gotoAndPlay("LockedOn");
stop();
Symbol 309 MovieClip [bigEvilEye] Frame 1
#initclip 42
Object.registerClass("bigEvilEye", eyeBoss);
#endinitclip
hintTarget.gotoAndPlay("lockon");
this.tumbling = false;
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 309 MovieClip [bigEvilEye] Frame 1
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 309 MovieClip [bigEvilEye] Frame 5
gotoAndPlay ("Idle");
Symbol 309 MovieClip [bigEvilEye] Frame 6
hintTarget.gotoAndPlay("scanning");
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 309 MovieClip [bigEvilEye] Frame 6
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 309 MovieClip [bigEvilEye] Frame 26
Symbol 309 MovieClip [bigEvilEye] Frame 45
gotoAndPlay ("Idle");
Symbol 309 MovieClip [bigEvilEye] Frame 46
hintTarget.gotoAndPlay("scanning");
this.tumbling = true;
if (this.xSpeed < 0) {
this._xscale = this._xscale * -1;
this.xSpeed = this.xSpeed * -1;
}
Symbol 309 MovieClip [bigEvilEye] Frame 75
gotoAndPlay ("Idle");
Symbol 309 MovieClip [bigEvilEye] Frame 76
hintTarget.gotoAndPlay("scanning");
Symbol 309 MovieClip [bigEvilEye] Frame 106
gotoAndPlay ("Idle");
Symbol 309 MovieClip [bigEvilEye] Frame 107
hintTarget.gotoAndPlay("scanning");
Symbol 309 MovieClip [bigEvilEye] Frame 139
stop();
Symbol 317 MovieClip [bigEvilEyeReward] Frame 1
#initclip 43
Object.registerClass("bigEvilEyeReward", levelGoal);
#endinitclip
Symbol 323 MovieClip [bricks] Frame 1
#initclip 44
Object.registerClass("bricks", scrollingSeamlessBackground);
#endinitclip
Symbol 330 MovieClip [brickwall] Frame 1
#initclip 45
Object.registerClass("brickwall", scrollingSeamlessBackground);
#endinitclip
isSolid = true;
stop();
Symbol 336 MovieClip [Button-RED] Frame 1
#initclip 46
Object.registerClass("Button-RED", dynamicButton);
#endinitclip
stop();
Symbol 336 MovieClip [Button-RED] Frame 2
stop();
Symbol 339 MovieClip [contactLens] Frame 1
#initclip 47
Object.registerClass("contactLens", Shield);
#endinitclip
Symbol 343 MovieClip [DragonCoin] Frame 1
#initclip 48
Object.registerClass("DragonCoin", healthShot);
#endinitclip
Symbol 348 MovieClip [DragonCoinBlue] Frame 1
#initclip 49
Object.registerClass("DragonCoinBlue", shieldShot);
#endinitclip
Symbol 357 MovieClip [Drake] Frame 1
#initclip 50
Object.registerClass("Drake", basicEnemy);
#endinitclip
this._width = 88;
this._height = 77;
Symbol 361 MovieClip [drakeReward] Frame 1
#initclip 51
Object.registerClass("drakeReward", levelGoal);
#endinitclip
Symbol 371 MovieClip [fairy] Frame 1
#initclip 52
Object.registerClass("fairy", diveEnemy);
#endinitclip
this._width = 80;
this._height = 80.5;
stop();
Symbol 378 MovieClip [feyerBall] Frame 1
#initclip 53
Object.registerClass("feyerBall", diveEnemy);
#endinitclip
this._width = 90;
this._height = 88.3;
Symbol 378 MovieClip [feyerBall] Frame 2
stop();
Symbol 414 MovieClip [feyerBoss] Frame 1
#initclip 54
Object.registerClass("feyerBoss", ballBoss);
#endinitclip
Instance of Symbol 289 MovieClip [weakPoint] "mcWeakness" in Symbol 414 MovieClip [feyerBoss] Frame 1
onClipEvent (load) {
function onEnterFrame() {
if (checkHit() && (_parent.hittable)) {
_parent.hitPoints = _parent.hitPoints - 1;
_root.bossHP.resizeBar(1);
_parent.createEmptyMovieClip("bossFlash", 500);
_parent.attachMovie("flash", "bossFlash", 500);
_root[laserName].removeMovieClip();
_parent.bossFlash._y = _y;
_parent.bossFlash._x = _x;
if (_parent._xscale > 0) {
_parent.reverseDirection();
_parent.hittable = false;
}
}
if (_parent.hitPoints <= 0) {
_parent.hittable = false;
killBoss();
}
}
}
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 414 MovieClip [feyerBoss] Frame 1
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint && (_parent.hittable)) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Instance of Symbol 296 MovieClip "hintTarget2" in Symbol 414 MovieClip [feyerBoss] Frame 1
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint && (!_parent.hittable)) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 414 MovieClip [feyerBoss] Frame 2
hintTarget.gotoAndPlay("lockon");
stop();
Symbol 414 MovieClip [feyerBoss] Frame 35
stop();
Symbol 422 MovieClip [feyerBossReward] Frame 1
#initclip 55
Object.registerClass("feyerBossReward", levelGoal);
#endinitclip
Symbol 429 MovieClip [firePillar] Frame 1
#initclip 56
Object.registerClass("firePillar", Stalagmite);
#endinitclip
this._width = 174;
this._height = 244;
this._y = 400;
Symbol 439 MovieClip Frame 1
if (_root.killEmAll) {
_root.mixer.fader(2, 100, 0);
} else {
_root.mixer.xLocationFader(2, 100, this._x, Stage.width, 2);
}
_root.mixer.playLoop(2, 1);
Symbol 439 MovieClip Frame 10
this.removeMovieClip();
Symbol 440 MovieClip [flashBoss] Frame 1
if (_root.killEmAll) {
_root.mixer.fader(2, 100, 0);
} else {
_root.mixer.xLocationFader(2, 100, this._x, Stage.width, 2);
}
_root.mixer.playLoop(2, 1);
Symbol 440 MovieClip [flashBoss] Frame 10
this.removeMovieClip();
Symbol 443 MovieClip [FloorC-cave] Frame 1
#initclip 57
Object.registerClass("FloorC-cave", scrollingSeamlessBackground);
#endinitclip
Symbol 447 MovieClip [laserShot] Frame 1
#initclip 58
Object.registerClass("laserShot", laserShot);
#endinitclip
Symbol 447 MovieClip [laserShot] Frame 8
stop();
Symbol 453 MovieClip [Jimmy] Frame 1
#initclip 59
Object.registerClass("Jimmy", Swod);
#endinitclip
pinkeye._alpha = 0;
Symbol 453 MovieClip [Jimmy] Frame 5
pinkeye.gotoAndStop(1);
Symbol 453 MovieClip [Jimmy] Frame 6
pinkeye.gotoAndStop(2);
Symbol 453 MovieClip [Jimmy] Frame 7
pinkeye.gotoAndStop(3);
Symbol 453 MovieClip [Jimmy] Frame 8
pinkeye.gotoAndStop(4);
Symbol 453 MovieClip [Jimmy] Frame 9
pinkeye.gotoAndStop(5);
Symbol 453 MovieClip [Jimmy] Frame 10
pinkeye.gotoAndStop(6);
Symbol 453 MovieClip [Jimmy] Frame 11
pinkeye.gotoAndStop(7);
Symbol 453 MovieClip [Jimmy] Frame 12
pinkeye.gotoAndStop(8);
Symbol 453 MovieClip [Jimmy] Frame 13
pinkeye.gotoAndStop(9);
Symbol 453 MovieClip [Jimmy] Frame 14
pinkeye.gotoAndStop(10);
Symbol 453 MovieClip [Jimmy] Frame 15
pinkeye.gotoAndStop(11);
Symbol 453 MovieClip [Jimmy] Frame 16
pinkeye.gotoAndStop(12);
Symbol 453 MovieClip [Jimmy] Frame 17
pinkeye.gotoAndStop(13);
if (!isDead) {
gotoAndPlay ("Move");
}
Symbol 453 MovieClip [Jimmy] Frame 19
Symbol 453 MovieClip [Jimmy] Frame 46
this.removeMovieClip();
stop();
Symbol 459 MovieClip [JimmyDies] Frame 60
_root.msg = "Jimmy's has gone Blind from his injuries! He can no longer continue his mission to resue Princess Ocular.";
stop();
Symbol 464 MovieClip [Lake] Frame 1
#initclip 60
Object.registerClass("Lake", scrollingSeamlessBackground);
#endinitclip
Symbol 466 MovieClip [Lake flip] Frame 1
#initclip 61
Object.registerClass("Lake flip", scrollingSeamlessBackground);
#endinitclip
Symbol 468 MovieClip [manaBar] Frame 1
#initclip 62
Object.registerClass("manaBar", statBar);
#endinitclip
this.swapDepths(871);
Symbol 470 MovieClip [manaFlow] Frame 1
#initclip 63
Object.registerClass("manaFlow", manaRegenerator);
#endinitclip
Symbol 471 MovieClip [bat] Frame 1
function AI() {
intRoll = _root.util.roll(1, 100);
if (intRoll > 50) {
newAttack = _root.battle.getAttackInfo("strike");
return(">$attacker;-mo,$defender,-1,5;-w;/Attack;-pause;-mo,$attackerpad,0,6;-w;-t;");
}
newAttack = _root.battle.getAttackInfo("strike");
return(">$attacker;-mo,$defender,-1,5;-w;/Attack2;-pause;-mo,$attackerpad,0,6;-w;-t;");
}
Symbol 471 MovieClip [bat] Frame 7
stop();
Symbol 471 MovieClip [bat] Frame 11
btnSelect.enabled = false;
Symbol 471 MovieClip [bat] Frame 12
stop();
Symbol 471 MovieClip [bat] Frame 31
if (this.onMove) {
gotoAndPlay ("Walk");
}
Symbol 472 MovieClip [mceyeball] Frame 7
stop();
Symbol 472 MovieClip [mceyeball] Frame 10
gotoAndPlay ("Idle");
Symbol 472 MovieClip [mceyeball] Frame 31
Symbol 472 MovieClip [mceyeball] Frame 50
gotoAndPlay ("Idle");
Symbol 472 MovieClip [mceyeball] Frame 80
gotoAndPlay ("Idle");
Symbol 472 MovieClip [mceyeball] Frame 81
gotoAndPlay ("Fight");
Symbol 472 MovieClip [mceyeball] Frame 111
gotoAndPlay ("Idle");
Symbol 472 MovieClip [mceyeball] Frame 144
stop();
Symbol 474 MovieClip Frame 1
this._visible = false;
stop();
Symbol 478 MovieClip [Monster-SylphDrake] Frame 1
#initclip 64
Object.registerClass("Monster-SylphDrake", drakeBoss);
#endinitclip
hintTarget.gotoAndPlay("lockon");
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 478 MovieClip [Monster-SylphDrake] Frame 1
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 478 MovieClip [Monster-SylphDrake] Frame 14
gotoAndPlay ("Walk");
Symbol 478 MovieClip [Monster-SylphDrake] Frame 15
hintTarget.gotoAndPlay("scanning");
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 478 MovieClip [Monster-SylphDrake] Frame 15
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 50;
} else {
_alpha = 0;
}
};
}
Symbol 478 MovieClip [Monster-SylphDrake] Frame 58
gotoAndPlay ("Walk");
Symbol 478 MovieClip [Monster-SylphDrake] Frame 74
stop();
Symbol 478 MovieClip [Monster-SylphDrake] Frame 95
gotoAndPlay ("Walk");
Symbol 480 MovieClip [objectSpawner] Frame 1
#initclip 65
Object.registerClass("objectSpawner", objectGenerator);
#endinitclip
Symbol 486 MovieClip Frame 28
gotoAndPlay ("Idle");
Symbol 486 MovieClip Frame 29
stop();
Symbol 517 MovieClip [roBee] Frame 1
#initclip 66
Object.registerClass("roBee", beeBoss);
#endinitclip
hintTarget.gotoAndPlay("lockon");
wing1.gotoAndStop("Fly");
wing2.gotoAndStop("Fly");
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 517 MovieClip [roBee] Frame 1
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 517 MovieClip [roBee] Frame 13
gotoAndPlay ("Idle");
Symbol 517 MovieClip [roBee] Frame 14
hintTarget.gotoAndPlay("scanning");
Instance of Symbol 296 MovieClip "hintTarget" in Symbol 517 MovieClip [roBee] Frame 14
onClipEvent (load) {
onEnterFrame = function () {
if (_parent.showHint) {
_alpha = 100;
} else {
_alpha = 0;
}
};
}
Symbol 517 MovieClip [roBee] Frame 28
gotoAndPlay ("Idle");
Symbol 517 MovieClip [roBee] Frame 29
hintTarget.gotoAndPlay("scanning");
Symbol 517 MovieClip [roBee] Frame 75
stop();
Symbol 517 MovieClip [roBee] Frame 76
hintTarget.gotoAndPlay("scanning");
Symbol 517 MovieClip [roBee] Frame 91
gotoAndPlay ("Idle");
Symbol 525 MovieClip [roBeeReward] Frame 1
#initclip 67
Object.registerClass("roBeeReward", levelGoal);
#endinitclip
Symbol 527 MovieClip [sack-plain] Frame 1
#initclip 68
Object.registerClass("sack-plain", levelGoal);
#endinitclip
Symbol 529 MovieClip [spawnMachine] Frame 1
#initclip 69
Object.registerClass("spawnMachine", enemyGenerator);
#endinitclip
Symbol 531 MovieClip [stone-jagged] Frame 1
#initclip 70
Object.registerClass("stone-jagged", Stalagmite);
#endinitclip
this._y = 410;
Symbol 535 MovieClip [stone-jaggedCastle] Frame 1
#initclip 71
Object.registerClass("stone-jaggedCastle", Stalagmite);
#endinitclip
this._y = 400;
Symbol 537 MovieClip [stone-jaggedSky] Frame 1
#initclip 72
Object.registerClass("stone-jaggedSky", Stalagmite);
#endinitclip
this._y = 400;
Symbol 539 MovieClip [stone-mountain] Frame 1
#initclip 73
Object.registerClass("stone-mountain", scrollingBackground);
#endinitclip
Symbol 542 MovieClip [swampy] Frame 1
#initclip 74
Object.registerClass("swampy", scrollingSeamlessBackground);
#endinitclip
Symbol 554 MovieClip Frame 1
this._visible = false;
Symbol 556 MovieClip Frame 1
if (_root.killEmAll) {
this.removeMovieClip();
}
wisp.gotoAndPlay("up");
Symbol 556 MovieClip Frame 25
wisp.gotoAndPlay("down");
Instance of Symbol 555 MovieClip "wisp" in Symbol 556 MovieClip Frame 25
/* no clip actions */
Symbol 557 MovieClip [wispBall] Frame 1
#initclip 75
Object.registerClass("wispBall", Stalagmite);
#endinitclip
_y = 400;
_width = 220;
_height = 220;
stop();
Symbol 567 MovieClip [wispy] Frame 1
if (_root.killEmAll) {
this.removeMovieClip();
}
Symbol 567 MovieClip [wispy] Frame 2
Instance of Symbol 566 MovieClip in Symbol 567 MovieClip [wispy] Frame 30
/* no clip actions */
Symbol 568 MovieClip Frame 1
_y = 400;
_width = 150;
_height = 150;
stop();
Symbol 580 MovieClip Frame 1
if (_root.killEmAll) {
this.removeMovieClip();
}
wisp.gotoAndPlay("up");
Symbol 580 MovieClip Frame 25
wisp.gotoAndPlay("down");
Instance of Symbol 579 MovieClip "wisp" in Symbol 580 MovieClip Frame 25
/* no clip actions */
Symbol 581 MovieClip [wispBallRed] Frame 1
#initclip 76
Object.registerClass("wispBallRed", Stalagmite);
#endinitclip
_y = 400;
_width = 220;
_height = 220;
stop();
Symbol 584 MovieClip Frame 19
gotoAndPlay ("Flap");
Symbol 584 MovieClip Frame 20
stop();
Symbol 584 MovieClip Frame 25
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 5
stop();
Symbol 594 MovieClip [wyvyrn] Frame 1
#initclip 77
Object.registerClass("wyvyrn", diveEnemy);
#endinitclip
_width = 86;
_height = 96;
Symbol 594 MovieClip [wyvyrn] Frame 2
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 4
stop();
Symbol 595 MovieClip Frame 5
stop();
Symbol 595 MovieClip Frame 6
stop();
Symbol 595 MovieClip Frame 7
stop();
Symbol 595 MovieClip Frame 8
stop();
Symbol 595 MovieClip Frame 9
stop();
Symbol 595 MovieClip Frame 10
stop();
Symbol 595 MovieClip Frame 11
stop();
Symbol 595 MovieClip Frame 12
stop();
Symbol 595 MovieClip Frame 13
stop();
Symbol 595 MovieClip Frame 14
stop();
Symbol 595 MovieClip Frame 15
stop();
Symbol 598 MovieClip [DragonCoinGold] Frame 1
#initclip 78
Object.registerClass("DragonCoinGold", moneyShot);
#endinitclip
Symbol 600 MovieClip [bossHealthBar] Frame 1
#initclip 79
Object.registerClass("bossHealthBar", healthBar);
#endinitclip
Symbol 605 MovieClip Frame 1
stop();
Symbol 610 Button
on (press) {
_root.gotoMainMenu();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 627 MovieClip Frame 475
gotoAndPlay (1);
Symbol 635 MovieClip Frame 1
this.swapDepths(876);
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 6
if (_root.soundOn) {
_root.mixer.playLoop(11, 1);
}
Symbol 656 MovieClip Frame 23
stop();
Symbol 659 MovieClip Frame 1
this._width = 90;
this._height = 88.3;
Symbol 659 MovieClip Frame 2
stop();
Symbol 659 MovieClip Frame 6
if (_root.soundOn) {
_root.mixer.playLoop(11, 1);
}
Symbol 659 MovieClip Frame 23
stop();
Symbol 672 Button
on (press) {
getURL (_root.gameURL, "_BLANK");
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 675 Button
on (press) {
_root.mixer.destroy(1, 800);
_root.restartGame();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 10
gotoAndPlay ("Over");
Symbol 681 MovieClip Frame 11
stop();
Symbol 684 MovieClip Frame 7
stop();
Symbol 685 MovieClip Frame 1
this.nXstart = 1;
this.nYstart = 1;
this.char._visible = false;
this.nLength = length(text);
this.nKerning = 10;
this.nLLength = 15;
this.nChars = 0;
this.nLNumber = 1;
this.nLSpace = 15;
this.ii = 0;
Symbol 685 MovieClip Frame 2
i = 1;
while (i < 4) {
if (this.stopRendering != true) {
nChars++;
if (nChars >= nLLength) {
nReturn = text.substr(ii, 1);
if (nReturn == " ") {
nLNumber = nLNumber + 1;
nChars = 0;
}
}
ii++;
this.char.duplicateMovieClip("char" + ii, ii);
this["char" + ii].mcLetter.text = text.substr(ii - 1, 1);
this["char" + ii]._x = nXstart + (nChars * nKerning);
this["char" + ii]._y = nXstart + (nLNumber * nLSpace);
i++;
}
i++;
}
Symbol 685 MovieClip Frame 3
if ((ii <= nLength) and (stopRendering != true)) {
gotoAndPlay (2);
} else if (stopRendering != true) {
this.stopRendering = true;
_root.mixer.Channels[9].stop();
_root.gotoAndPlay(_root._currentframe + 1);
}
Symbol 690 MovieClip Frame 17
if (!isDead) {
gotoAndPlay ("Move");
}
Symbol 690 MovieClip Frame 46
this.removeMovieClip();
stop();
Symbol 694 MovieClip Frame 139
stop();
Symbol 698 MovieClip Frame 152
stop();
Symbol 702 MovieClip Frame 154
stop();
Symbol 703 MovieClip Frame 86
stop();
Symbol 704 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 2
stop();
Symbol 704 MovieClip Frame 3
stop();
Symbol 704 MovieClip Frame 4
stop();
Symbol 707 MovieClip Frame 1
isSolid = true;
stop();
Symbol 711 Button
on (press) {
_root.gotoMainMenu();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 10
gotoAndPlay ("Over");
Symbol 734 MovieClip Frame 11
stop();
Symbol 734 MovieClip Frame 16
stop();
Symbol 734 MovieClip Frame 25
gotoAndPlay ("Unlocked_Over");
Symbol 734 MovieClip Frame 26
stop();
Symbol 736 Button
on (press) {
_root.playSound("Button-Press.wav");
getURL ("http://www.dragonfable.com", "_BLANK");
}
on (rollOver) {
_root.playSound("Button-MouseOver.wav");
}
Symbol 739 Button
on (press) {
getURL (_root.gameURL, "_BLANK");
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 740 Button
on (release) {
_root.mixer.destroy(1, 800);
mixer.init(1, 800);
mixer.loadChannel(1, "nifty2.wav");
mixer.fader(1, 10);
_root.continueGame();
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}
Symbol 746 Button
on (press) {
getURL (_root.downloadURL, "_BLANK");
}
on (rollOver) {
_root.mixer.playLoop(8, 1);
}