Frame 1
function speak(name, dialogue) {
_root.attachMovie("dialogue", "dialogue", 10000);
_root.dialogue.name = name;
_root.dialogue.dialogue = dialogue;
}
function shutUpAll() {
_root.dialogue.removeMovieClip();
}
function shutUp(thisName) {
if (_root.dialogue.name == thisName) {
_root.dialogue.removeMovieClip();
}
}
Stage.showMenu = false;
left = 37;
right = 39;
up = 38;
down = 40;
key1 = 65;
key2 = 83;
stop();
qual = "Medium";
pressEsc = true;
onEnterFrame = function () {
percent.text = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + " %";
};
Frame 2
stop();
globalsound = new Sound();
globalsound.setVolume(0);
globalsound.attachSound("title song");
globalsound.start(0, 999);
onEnterFrame = function () {
if (globalsound.getVolume() < 100) {
globalsound.setVolume(globalsound.getVolume() + 2);
} else {
onEnterFrame = null;
}
};
K = new Array();
K[9] = "TAB";
K[13] = "ENTER";
K[16] = "SHIFT";
K[17] = "CTRL";
K[20] = "Caps Lock";
K[32] = "SPACE";
K[33] = "Page Up";
K[34] = "Page Down";
K[35] = "END";
K[36] = "HOME";
K[37] = "LEFT";
K[38] = "UP";
K[39] = "RIGHT";
K[40] = "DOWN";
K[44] = ",";
K[45] = "INSERT";
K[46] = "DELETE";
K[47] = "/";
K[48] = "0";
K[49] = "1";
K[50] = "2";
K[51] = "3";
K[52] = "4";
K[53] = "5";
K[54] = "6";
K[55] = "7";
K[56] = "8";
K[57] = "9";
K[65] = "A";
K[66] = "B";
K[67] = "C";
K[68] = "D";
K[69] = "E";
K[70] = "F";
K[71] = "G";
K[72] = "H";
K[73] = "I";
K[74] = "J";
K[75] = "K";
K[76] = "L";
K[77] = "M";
K[78] = "N";
K[79] = "O";
K[80] = "P";
K[81] = "Q";
K[82] = "R";
K[83] = "S";
K[84] = "T";
K[85] = "U";
K[86] = "V";
K[87] = "W";
K[88] = "X";
K[89] = "Y";
K[90] = "Z";
K[96] = "0";
K[97] = "1";
K[98] = "2";
K[99] = "3";
K[100] = "4";
K[101] = "5";
K[102] = "6";
K[103] = "7";
K[104] = "8";
K[105] = "9";
K[186] = ";";
K[219] = "[";
K[222] = "'";
Frame 3
stop();
_quality = "Low";
Frame 4
stop();
Frame 5
stop();
soundFX = new Sound();
Frame 6
stop();
_alpha = 10;
onMouseDown = null;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
onEnterFrame = null;
}
};
ButtlockData = SharedObject.getLocal("ButtlockData1a");
level1 = true;
level1 = ButtlockData.data.level1;
level2 = ButtlockData.data.level2;
level3 = ButtlockData.data.level3;
bossLVL = ButtlockData.data.bossLVL;
endCutscene = ButtlockData.data.endCutscene;
amount = 30;
mWidth = Stage.width;
mHeight = Stage.height;
var i = 0;
while (i < amount) {
thisFlake = this.attachMovie("flake", "flake" + i, i);
with (thisFlake) {
_x = Math.random() * mWidth;
_y = Math.random() * mHeight;
_xscale = (_yscale = (_alpha = 40 + (Math.random() * 60)));
}
thisFlake.yspeed = (Math.random() * 2) + 0.2;
thisFlake.increment = -0.025 + (Math.random() * 0.05);
thisFlake.radian = 0;
thisFlake.onEnterFrame = function () {
this.radians = this.radians + this.increment;
this._x = this._x + Math.sin(this.radians);
this._y = this._y + this.yspeed;
if (this._y >= mHeight) {
this._y = -10;
this._x = -10 + (Math.random() * mWidth);
}
if ((this._x >= mWidth) || (this._x <= 0)) {
this._y = -10;
this._x = -10 + (Math.random() * mWidth);
}
};
i++;
}
Frame 7
bBut.useHandCursor = false;
setKey = "done";
someListener = new Object();
someListener.onKeyDown = function () {
_root[setKey] = Key.getCode();
setKey = "done";
};
Key.addListener(someListener);
Instance of Symbol 529 MovieClip in Frame 7
onClipEvent (load) {
_quality = "High";
qual = "High";
}
Frame 8
bBut.useHandCursor = false;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
onEnterFrame = null;
}
};
Frame 9
cutscene = true;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
onEnterFrame = null;
}
};
Frame 10
_root.stop();
_root.clearAll();
_root.clearLvl3();
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl1Boss");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
i = 100;
while (i <= 110) {
_root["shoe" + i].removeMovieClip();
i++;
}
_root.cr.removeMovieClip();
_root.globalsound.attachSound("game over song");
_root.globalsound.setVolume(100);
_root._x = 0;
_root._y = 0;
_root._alpha = 100;
_root.globalsound.start(0, 1);
_root.onMouseDown = null;
_root.onEnterFrame = null;
Frame 11
_root.level1 = true;
_root.ButtlockData.data.level1 = _root.level1;
_root.ButtlockData.flush();
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("title song");
globalsound.stop("lvl1Music");
globalsound.stop("lvl2Music");
globalsound.attachSound("introMusic");
globalsound.setVolume(100);
globalsound.start(0, 999);
onEnterFrame = null;
}
};
Frame 12
function createWord(word, x, y) {
_root.attachMovie("lvl1" + word, "word" + wordCounter, wordCounter);
_root["word" + wordCounter]._x = x;
_root["word" + wordCounter]._y = y;
wordCounter++;
if (wordCounter >= 1200) {
wordCounter = 1100;
}
}
function createBaddy(baddyType) {
if (baddyType != "lvl1 ogre") {
_root.attachMovie(baddyType, "baddyType" + baddyCounter, baddyCounter);
} else {
_root.attachMovie(baddyType, "baddyType" + baddyCounter, 999);
}
_root[baddyType + baddyCounter]._y = _root.player._y;
if (random(2) == 0) {
_root["baddyType" + baddyCounter]._x = (_root.camera._x - (_root.camera._xscale * 2)) - 100;
} else {
_root["baddyType" + baddyCounter]._x = (_root.camera._x + (_root.camera._xscale * 2)) + 100;
}
_root["baddyType" + baddyCounter]._y = _root.player.ground - 15;
if (baddyType != "lvl1 ogre") {
_root["baddyType" + baddyCounter]._y = _root["baddyType" + baddyCounter]._y + ((baddyCounter - 1000) * 0.5);
} else {
_root["baddyType" + baddyCounter]._y = _root["baddyType" + baddyCounter]._y + -0.5;
}
baddyCounter = baddyCounter + 7;
if (baddyCounter >= 1050) {
baddyCounter = baddyCounter - 50;
}
}
function clearAll() {
_root.player.removeMovieClip();
_root.HUD.removeMovieClip();
_root.dragn.removeMovieClip();
_root.bomb.removeMovieClip();
_root.egg.removeMovieClip();
i = 999;
while (i <= 1050) {
_root["baddyType" + i].removeMovieClip();
i++;
}
}
lastLevel = "lvl1";
stop();
starting = 50;
globalsound.stop("title song");
baddyCounter = 1000;
wordCounter = 1100;
lilGuyMax = 6;
points = 0;
dragon = false;
onMouseDown = null;
_root.attachMovie("lvl1 player", "player", 2100);
_root.player._x = -530;
_root.player._y = 300;
_root.attachMovie("lvl1 HUD", "HUD", 2200);
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() * 0.8);
starting--;
if ((starting <= 0) && (globalsound.getVolume() <= 5)) {
globalsound.stop("introMusic");
globalsound.stop("introMusic2");
createBaddy("lvl1 ogre");
globalsound = new Sound();
globalsound.setVolume(0);
globalsound.stop("lvl1Music");
globalsound.attachSound("lvl1Music");
globalsound.start(0, 9999);
globalsound.setVolume(0);
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() + 5);
if (globalsound.getVolume() >= 100) {
globalsound.setVolume(100);
onEnterFrame = function () {
if ((lilGuyMax > 0) && (random(25) == 0)) {
lilGuyMax--;
createBaddy("lvl1 littleMonster");
}
};
}
};
}
};
Instance of Symbol 943 MovieClip "camera" in Frame 12
onClipEvent (load) {
level = 1;
}
Frame 13
stop();
_root.level2 = true;
_root.ButtlockData.data.level2 = _root.level2;
_root.ButtlockData.flush();
clearAll();
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("lvl1Music");
globalsound.stop("lvl1Boss");
globalsound.stop("lvl2Music");
globalsound.attachSound("introMusic");
globalsound.setVolume(100);
globalsound.stop("introMusic");
globalsound.start(0, 999);
onEnterFrame = null;
}
};
Frame 14
function createBossMouth(x, y, rotation, xscale, yscale) {
_root.attachMovie("bossMouth", "bossMouth", 500);
_root.bossMouth._x = x;
_root.bossMouth._y = y;
_root.bossMouth._rotation = rotation;
_root.bossMouth._xscale = xscale;
_root.bossMouth._yscale = yscale;
}
function createBomb(x, y, force) {
_root.attachMovie("lvl2 player bomb", "bomb" + bombCounter, bombCounter);
_root["bomb" + bombCounter]._x = x;
_root["bomb" + bombCounter]._y = y;
_root["bomb" + bombCounter].force = force;
bombCounter++;
if (bombCounter > 1010) {
bombCounter = 1000;
}
}
stop();
lastLevel = "lvl2";
BGspeed = 3;
bombCounter = 1000;
mouthCounter = 500;
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("introMusic");
globalsound.attachSound("lvl2Music");
globalsound.setVolume(100);
globalsound.stop("lvl2Music");
globalsound.start(0, 999);
onEnterFrame = null;
}
};
Frame 15
stop();
_root.level3 = true;
_root.ButtlockData.data.level3 = _root.level3;
_root.ButtlockData.flush();
clearLvl3();
clearAll();
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("lvl2Music");
globalsound.stop("lvl3Music");
globalsound.attachSound("introMusic");
globalsound.setVolume(100);
globalsound.start(0, 999);
onEnterFrame = null;
}
};
Frame 16
function createEnemyBullet(x, y, angle) {
_root.attachMovie("lvl3 enemyBullet", "bullet" + bulletCounter, bulletCounter);
_root["bullet" + bulletCounter]._x = x;
_root["bullet" + bulletCounter]._y = y;
_root["bullet" + bulletCounter].angle = angle;
bulletCounter++;
if (bulletCounter > 3500) {
bulletCounter = 3000;
}
}
function createStar(direction) {
_root.attachMovie("lvl3 star", "star" + starCounter, starCounter);
_root["star" + starCounter]._x = _root.player._x;
_root["star" + starCounter]._y = _root.player._y - 20;
_root["star" + starCounter].direction = direction;
starCounter++;
if (starCounter > 2010) {
starCounter = 2000;
}
}
function clearLvl3() {
i = 2000;
while (i <= 2010) {
_root["star" + i].removeMovieClip();
i++;
}
i = 3000;
while (i <= 3500) {
_root["bullet" + i].removeMovieClip();
i++;
}
_root._x = 0;
_root._y = 0;
}
stop();
lastLevel = "lvl3";
_root.level3 = true;
_root.ButtlockData.data.level3 = _root.level3;
_root.ButtlockData.flush();
stop();
starCounter = 2000;
bulletCounter = 3000;
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("introMusic");
globalsound.attachSound("lvl3Music");
globalsound.setVolume(100);
globalsound.stop("lvl3Music");
globalsound.start(0, 999);
onEnterFrame = function () {
_root._x = int((-_root.player._x) + 200);
_root._y = int((-_root.player._y) + 150);
hud._x = -_root._x;
hud._y = -_root._y;
};
}
_root._x = int((-_root.player._x) + 200);
_root._y = int((-_root.player._y) + 150);
hud._x = -_root._x;
hud._y = -_root._y;
};
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1419 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1370 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Frame 17
stop();
_root.bossLVL = true;
_root.ButtlockData.data.bossLVL = _root.bossLVL;
_root.ButtlockData.flush();
clearLvl3();
clearAll();
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("lvl3Music");
globalsound.stop("bossMusic");
globalsound.attachSound("introMusic");
globalsound.setVolume(100);
globalsound.start(0, 999);
onEnterFrame = null;
}
};
Frame 18
function makeShoe(x, y) {
_root.attachMovie("lvl3 shoe", "shoe" + shoeCounter, shoecounter);
_root["shoe" + shoeCounter]._x = x;
_root["shoe" + shoeCounter]._y = y;
shoeCounter++;
if (shoeCounter > 110) {
shoeCounter = 100;
}
}
stop();
lastLevel = "finalBoss";
count = 0;
active = -1;
shoeCounter = 100;
bossHealth = 100;
girlHealth = 100;
playerHealth = 100;
_root.attachMovie("boss crosshair", "cr", 1000);
onEnterFrame = function () {
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("introMusic");
globalsound.setVolume(100);
globalsound.attachSound("bossMusic");
globalsound.start(0, 999);
onEnterFrame = function () {
if (playerHealth <= 0) {
_root.gotoAndStop("gameOver");
}
if (bossHealth <= 0) {
_root.gotoAndStop("outtro");
}
if (girlHealth <= 0) {
_root.gotoAndStop("gameOver");
}
if ((((active < 0) && (bossHealth > 0)) && (playerHealth > 0)) && (girlHealth > 0)) {
active = random(count);
}
};
}
};
Frame 19
stop();
_root.endCutscene = true;
_root.ButtlockData.data.endCutscene = _root.endCutscene;
_root.ButtlockData.flush();
globalsound.stop("bossMusic");
globalsound.stop("title song");
globalsound.setVolume(0);
globalsound.attachSound("ending song");
globalsound.start(0, 9999);
globalsound.setVolume(100);
i = 100;
while (i <= 110) {
_root["shoe" + i].removeMovieClip();
i++;
}
_root.cr.removeMovieClip();
onMouseDown = null;
onEnterFrame = function () {
if (globalsound.getVolume() < 100) {
globalsound.setVolume(globalsound.getVolume() + 5);
} else {
onEnterFrame = null;
}
};
Frame 20
stop();
globalsound.stop("ending song2");
globalsound.stop("title song");
globalsound.setVolume(100);
globalsound.attachSound("credit song");
globalsound.start(0, 9999);
Mouse.show();
Instance of Symbol 2190 MovieClip in Frame 20
/* no clip actions */
Symbol 32 MovieClip [boss crosshair] Frame 1
Mouse.hide();
onEnterFrame = function () {
_x = (_x + ((_root._xmouse - _x) * 0.5));
_y = (_y + ((_root._ymouse - _y) * 0.5));
};
Symbol 35 MovieClip [lvl3 shoe] Frame 1
_xscale = 20;
_yscale = _xscale;
vSpeed = -5;
stop();
onEnterFrame = function () {
_x = (_x - ((_x - _root.player._x) * 0.05));
_rotation = (_rotation + 0.5);
_y = (_y + vSpeed);
vSpeed = vSpeed + 1;
_xscale = (_xscale + 0.6);
_yscale = _xscale;
if (_y > 225) {
nextFrame();
}
};
onPress = function () {
_alpha = 75;
vSpeed = -1;
onEnterFrame = function () {
_rotation = (_rotation-1);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.removeMovieClip();
}
_rotation = (_rotation+1);
if (_xscale > 0) {
_xscale = (_xscale - 0.5);
}
_yscale = _xscale;
_y = (_y + vSpeed);
vSpeed++;
_x = (_x + 1);
if (_y > 400) {
this.removeMovieClip();
}
};
onPress = function () {
this.removeMovieClip();
};
};
Symbol 35 MovieClip [lvl3 shoe] Frame 2
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
_root.playerHealth = _root.playerHealth - 6;
onEnterFrame = function () {
_alpha = (_alpha - 8);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
onPress = function () {
this.removeMovieClip();
};
Symbol 42 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 57 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 63 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 69 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 70 MovieClip [fpb_states] Frame 1
stop();
Symbol 70 MovieClip [fpb_states] Frame 2
stop();
Symbol 70 MovieClip [fpb_states] Frame 3
stop();
Symbol 70 MovieClip [fpb_states] Frame 4
stop();
Symbol 71 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 75 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 75 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 78 MovieClip [FPushButtonSymbol] Frame 1
#initclip 3
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 81 MovieClip [lvl3 attack] Frame 1
_x = _root.player._x;
_y = (_root.player._y - 40);
_visible = false;
if (((_root.player.action != "wall") && (_root.player.direction == "left")) || ((_root.player.direction == "right") && (_root.player.action == "wall"))) {
_xscale = -100;
}
Symbol 81 MovieClip [lvl3 attack] Frame 3
this.removeMovieClip();
Symbol 86 MovieClip [lvl3 star] Frame 1
onEnterFrame = function () {
if (direction == "right") {
_x = (_x + (_root.player.walkSpeed * 3));
} else {
_x = (_x - (_root.player.walkSpeed * 3));
}
if (_root.floor.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
};
Symbol 89 MovieClip [lvl3 enemyBullet] Frame 1
speed = 6;
onEnterFrame = function () {
_rotation = angle;
_y = (_y + (Math.sin(angle * -0.0174532925) * speed));
_x = (_x + (Math.cos(angle * -0.0174532925) * speed));
if (_root.player.area.hitTest(_x, _y, true)) {
_root.player.action = "hurt";
this.removeMovieClip();
}
};
Symbol 89 MovieClip [lvl3 enemyBullet] Frame 3
if (_root.floor.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
Symbol 89 MovieClip [lvl3 enemyBullet] Frame 5
if (_root.floor.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
Symbol 91 MovieClip [lvl2 player bomb] Frame 1
force = force + 5;
grav = 0;
this.onEnterFrame = function () {
if (this.hitTest(_root.bossMouth)) {
_root.boss.lastAction = _root.boss.action;
_root.boss.action = "hurt";
this.removeMovieClip();
}
grav = grav + ((16 - force) * 0.3);
_x = (_x + (force * 1.5));
_y = (_y + ((15 + grav) - force));
};
Symbol 96 MovieClip [lvl1 BossHealth] Frame 1
stop();
onEnterFrame = function () {
if (this._currentframe < _root.dragn.health) {
this.gotoAndStop(this._currentframe + 1);
} else if (this._currentframe > _root.dragn.health) {
this.gotoAndStop(this._currentframe - 1);
}
if ((this._currentframe <= 1) && (_alpha > 0)) {
this._alpha = this._alpha - 2;
_y = (_y + 1);
_rotation = (_rotation + 2);
} else if ((this._currentframe > 1) && (_alpha < 100)) {
this._alpha = this._alpha + 2;
_y = (_y - 1);
_rotation = (_rotation - 2);
}
};
Symbol 101 MovieClip [lvl1 bossFlame] Frame 1
_x = (_x + (random(4) - 2));
xSpeed = random(10) - 5;
ySpeed = random(3) + 2;
onEnterFrame = function () {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
ySpeed = ySpeed * 0.9;
xSpeed = xSpeed * 0.5;
};
Symbol 101 MovieClip [lvl1 bossFlame] Frame 12
stop();
_visible = false;
this.removeMovieClip();
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 MovieClip [dialogue] Frame 1
_x = 10;
_y = 10;
portrait.gotoAndStop(name);
if (_root.camera) {
_x = (_root.camera._x - 190);
_y = (_root.camera._y - 140);
}
Symbol 130 MovieClip Frame 19
gotoAndPlay (4);
Symbol 134 MovieClip Frame 1
_visible = false;
Symbol 135 MovieClip Frame 1
_root.attachMovie("lvl1 hit", "hit", 99999);
if (_root.player.direction == "right") {
_root.hit._x = ((_parent._x + _parent._parent._x) + _parent._parent._parent._x) + _x;
} else {
_root.hit._x = _parent._parent._parent._x - ((_parent._x + _parent._parent._x) + _x);
}
_root.hit._y = ((_parent._y + _parent._parent._y) + _parent._parent._parent._y) + _y;
_root.hit._yscale = _yscale;
_root.hit._xscale = _xscale;
Symbol 136 MovieClip Frame 1
if (_root.player.area.hitTest(this)) {
if ((_root.player.action == "blocking") || (_root.player.action == "blockHit")) {
if (_root.player.action == "blocking") {
_root.player.action = "blockHit";
}
if (_parent._parent._parent.direction == "left") {
_parent._parent._parent.hSpeed = _parent._parent._parent.hSpeed + 3;
_root.player.hSpeed = _root.player.hSpeed - 3;
} else if (_parent._parent._parent.direction == "right") {
_parent._parent._parent.hSpeed = _parent._parent._parent.hSpeed - 3;
_root.player.hSpeed = _root.player.hSpeed + 3;
}
} else {
_root.player.action = "hurt";
_root.player.health = _root.player.health - 3;
if (_parent._parent._parent.direction == "left") {
_root.player.direction = "right";
_root.player.hSpeed = _root.player.hSpeed - 6;
} else if (_parent._parent._parent.direction == "righ") {
_root.player.direction = "left";
_root.player.hSpeed = _root.player.hSpeed + 6;
}
}
}
Symbol 143 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 143 MovieClip Frame 10
_parent._parent.action = "standing";
Symbol 148 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 148 MovieClip Frame 7
_root.player.action = "down";
Symbol 153 MovieClip Frame 1
onEnterFrame = function () {
if (!Key.isDown(_root.key2)) {
_root.player.action = "standing";
onEnterFrame = null;
}
};
Symbol 153 MovieClip Frame 6
gotoAndPlay (4);
Symbol 157 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 block");
_root.soundFX.start(0, 1);
Symbol 157 MovieClip Frame 7
_parent._parent.action = "blocking";
_parent.gotoAndStop("blocking");
_parent._parent.blockDown = false;
Symbol 157 MovieClip Frame 8
_parent._parent.action = "blocking";
_parent.gotoAndStop("blocking");
_parent._parent.blockDown = false;
Symbol 172 MovieClip Frame 13
stop();
_parent.onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha-1);
} else {
_root.gotoAndStop("gameOver");
_root.clearAll();
}
};
Symbol 173 MovieClip [lvl1 player] Frame 1
health = 100;
action = "standing";
direction = "right";
counter = 0;
hSpeed = 0;
vSpeed = 0;
attackDown = false;
blockDown = false;
_root.camera._x = _x;
ground = _y;
stop();
onEnterFrame = function () {
if (!Key.isDown(_root.key1)) {
attackDown = false;
}
if (!Key.isDown(_root.key2)) {
blockDown = false;
}
if (action == "standing") {
if (Key.isDown(_root.up)) {
vSpeed = -15;
action = "up";
} else if (Key.isDown(_root.left) || (Key.isDown(_root.right))) {
action = "walking";
} else if (Key.isDown(_root.key2) && (!blockDown)) {
action = "blocking";
blockDown = true;
} else if (Key.isDown(_root.key1) && (!attackDown)) {
attackDown = true;
action = "attacking";
}
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "walking") {
if (Key.isDown(_root.up)) {
vSpeed = -15;
action = "up";
} else if (Key.isDown(_root.key1) && (!attackDown)) {
attackDown = true;
action = "attacking";
} else if (Key.isDown(_root.key2) && (!blockDown)) {
blockDown = true;
action = "blocking";
} else if (Key.isDown(_root.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_root.dragon) && (hSpeed > -5)) || (_root.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_root.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_root.dragon) && (hSpeed < 5)) || (_root.dragon && (hSpeed < 8))) {
hSpeed = hSpeed + 1;
}
} else {
hSpeed = hSpeed * 0.7;
action = "standing";
}
} else if (action == "attacking") {
if (Key.isDown(_root.key1)) {
attackDown = true;
}
if (Key.isDown(_root.left)) {
if (hSpeed > -1) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_root.right)) {
if (hSpeed < 1) {
hSpeed = hSpeed + 1;
}
}
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "hurt") {
if (Key.isDown(_root.key1)) {
attackDown = true;
}
if (Key.isDown(_root.key2)) {
blockDown = true;
}
if (Key.isDown(_root.left)) {
if (hSpeed > -1) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_root.right)) {
if (hSpeed < 1) {
hSpeed = hSpeed + 1;
}
}
hSpeed = hSpeed * 0.6;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if ((action == "blocking") || (action == "blockHit")) {
if (Key.isDown(_root.key2)) {
blockDown = true;
}
hSpeed = hSpeed * 0.6;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "up") {
if (Key.isDown(_root.up)) {
vSpeed = vSpeed - 0.1;
}
if (Key.isDown(_root.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_root.dragon) && (hSpeed > -5)) || (_root.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_root.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_root.dragon) && (hSpeed < 5)) || (_root.dragon && (hSpeed < 8))) {
hSpeed = hSpeed + 1;
}
}
if (vSpeed >= 0) {
action = "down";
}
} else if (action == "down") {
if (Key.isDown(_root.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_root.dragon) && (hSpeed > -5)) || (_root.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_root.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_root.dragon) && (hSpeed < 5)) || (_root.dragon && (hSpeed < 8))) {
hSpeed = hSpeed + 1;
}
}
if (_y >= ground) {
_y = ground;
vSpeed = 0;
action = "standing";
}
}
if (health <= 0) {
_y = ground;
gotoAndStop (2);
onEnterFrame = null;
}
if (_y != ground) {
vSpeed++;
if ((action == "walking") || (action == "standing")) {
action = "up";
}
}
if ((_y >= ground) && (vSpeed > 0)) {
_y = ground;
vSpeed = 0;
action = "standing";
}
_x = (_x + hSpeed);
_y = (_y + vSpeed);
if (direction == "right") {
_xscale = 100;
} else if (direction == "left") {
_xscale = -100;
}
sprite.gotoAndStop(action);
if (_x < _root.leftEdge._x) {
_x = _root.leftEdge._x;
}
if (_x > _root.rightEdge._x) {
_x = _root.rightEdge._x;
}
_root.camera._x = _x;
if (_root.dragon && ((_root.camera._y + 290) > ground)) {
_root.camera._y = _root.camera._y - 5;
}
if ((_root.camera._x - (_root.camera._xscale * 2)) < -610) {
_root.camera._x = -610 + (_root.camera._xscale * 2);
}
if ((_root.camera._x + (_root.camera._xscale * 2)) > 970) {
_root.camera._x = 970 - (_root.camera._xscale * 2);
}
_root.HUD._x = _root.camera._x;
_root.HUD._y = _root.camera._y;
_root.HUD._xscale = _root.camera._xscale;
_root.HUD._yscale = _root.camera._yscale;
};
Symbol 194 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 ogreHurt");
_root.soundFX.start(0, 1);
Symbol 194 MovieClip Frame 11
_parent._parent.action = "standing";
Symbol 206 MovieClip Frame 5
_root.soundFX.attachSound("lvl1swingClub");
_root.soundFX.start(0, 1);
Symbol 206 MovieClip Frame 19
_parent._parent.action = "standing";
Symbol 219 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 ogreDie");
_root.soundFX.start(0, 1);
Symbol 219 MovieClip Frame 24
stop();
_root.points = _root.points + 4;
if ((_root.points > 35) && (!_root.dragon)) {
_root.lilGuyMax = _root.lilGuyMax - 3;
_root.dragon = true;
}
this.onEnterFrame = function () {
_alpha = (_alpha * 0.9);
if (_alpha <= 1) {
if (!_root.dragon) {
_root.createBaddy("lvl1 ogre");
}
_parent.removeMovieClip();
}
};
Symbol 220 MovieClip [lvl1 ogre] Frame 1
stop();
health = 6;
hSpeed = 0;
action = "standing";
onEnterFrame = function () {
if (_root.player._x > _x) {
direction = "right";
} else {
direction = "left";
}
if (_root.player.area.hitTest(this.area)) {
if (_root.player._x < _x) {
_root.player.hSpeed = _root.player.hSpeed - 1.5;
if (_root.player.hSpeed > 2) {
hSpeed = hSpeed + 1;
}
} else {
_root.player.hSpeed = _root.player.hSpeed + 1;
hSpeed = hSpeed - 1;
}
}
if (_root.hit.hitTest(this.area)) {
if (direction == "left") {
hSpeed = 3;
_root.player.hSpeed = _root.player.hSpeed - 1;
} else if (direction == "right") {
hSpeed = -3;
_root.player.hSpeed = _root.player.hSpeed + 1;
}
action = "hurt";
health--;
}
if (action == "standing") {
if (Math.abs(_x - _root.player._x) > 120) {
action = "walking";
}
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
if (random(10) == 0) {
action = "attacking";
}
} else if (action == "walking") {
if (Math.abs(_x - _root.player._x) < 100) {
action = "standing";
}
if ((direction == "left") && (hSpeed > -3)) {
hSpeed = hSpeed - 1;
} else if ((direction == "right") && (hSpeed < 3)) {
hSpeed = hSpeed + 1;
}
} else if (action == "hurt") {
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "attacking") {
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
}
if (health <= 0) {
this.gotoAndStop("dead");
this.onEnterFrame = null;
}
_x = (_x + hSpeed);
if (direction == "left") {
_xscale = 100;
} else if (direction == "right") {
_xscale = -100;
}
sprite.gotoAndStop(action);
};
Symbol 221 MovieClip [lvl1 hit] Frame 1
onEnterFrame = function () {
this.removeMovieClip();
};
Symbol 248 MovieClip Frame 15
_parent._parent.action = "standing";
Symbol 254 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 hurt");
_root.soundFX.start(0, 1);
Symbol 254 MovieClip Frame 7
_parent._parent.action = "standing";
Symbol 255 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
hSpeed = random(5);
this.onEnterFrame = function () {
_x = (_x + hSpeed);
};
Symbol 262 MovieClip Frame 11
stop();
_root.points = _root.points + 1;
this.onEnterFrame = function () {
_alpha = (_alpha * 0.8);
if (_alpha <= 1) {
_root.lilGuyMax++;
_parent.removeMovieClip();
}
};
Symbol 263 MovieClip [lvl1 littleMonster] Frame 1
hSpeed = 0;
health = 1;
action = "standing";
stop();
onEnterFrame = function () {
if (_root.player._x > _x) {
direction = "right";
} else {
direction = "left";
}
if (_root.player.area.hitTest(this.area)) {
if (_root.player._x < _x) {
_root.player.hSpeed = _root.player.hSpeed - 1;
hSpeed = hSpeed + 2;
} else {
_root.player.hSpeed = _root.player.hSpeed + 1;
hSpeed = hSpeed - 2;
}
}
if (_root.hit.hitTest(this.area)) {
if (direction == "left") {
hSpeed = 3;
_root.player.hSpeed = _root.player.hSpeed - 1;
} else if (direction == "right") {
hSpeed = -3;
_root.player.hSpeed = _root.player.hSpeed + 1;
}
health--;
action = "hurt";
}
if (action == "standing") {
if (Math.abs(_x - _root.player._x) > 80) {
action = "walking";
}
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
if (random(15) == 0) {
action = "attacking";
}
} else if (action == "walking") {
if (Math.abs(_x - _root.player._x) < 80) {
action = "standing";
}
if ((direction == "left") && (hSpeed > -4)) {
hSpeed = hSpeed - 1;
} else if ((direction == "right") && (hSpeed < 4)) {
hSpeed = hSpeed + 1;
}
} else if (action == "hurt") {
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "attacking") {
hSpeed = hSpeed * 0.7;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
}
if (health <= 0) {
this.gotoAndStop("dead");
this.onEnterFrame = null;
}
_x = (_x + hSpeed);
if (direction == "left") {
_xscale = 100;
} else if (direction == "right") {
_xscale = -100;
}
sprite.gotoAndStop(action);
};
Symbol 265 MovieClip Frame 1
i = 100;
onEnterFrame = function () {
this.attachMovie("lvl1 bossFlame", "flame" + i, i);
i--;
if (i <= 0) {
i = 100;
}
};
Symbol 267 MovieClip Frame 1
stop();
if (Math.abs(_parent._parent.hSpeed) > 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (((_parent._parent.hSpeed < -2) && (_parent._parent._x > _root.player._x)) || ((_parent._parent.hSpeed > 2) && (_parent._parent._x < _root.player._x))) {
_xscale = 100;
} else {
_xscale = -100;
}
onEnterFrame = function () {
if (Math.abs(_parent._parent.hSpeed) > 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (((_parent._parent.hSpeed < -2) && (_parent._parent._x > _root.player._x)) || ((_parent._parent.hSpeed > 2) && (_parent._parent._x < _root.player._x))) {
_xscale = 100;
} else {
_xscale = -100;
}
};
Symbol 287 MovieClip Frame 1
_root.soundFX.stop("lvl1 Boss engine");
_root.soundFX.attachSound("lvl1 beep beep");
_root.soundFX.start(0, 1);
Symbol 287 MovieClip Frame 29
stop();
Symbol 340 MovieClip Frame 7
_root.soundFX.attachSound("lvl1 beep beep");
_root.soundFX.start(0, 1);
Symbol 340 MovieClip Frame 11
_root.attachMovie("bossAttack", "bomb", _root.baddyCounter);
_root.baddyCounter = _root.baddyCounter + 7;
if (_root.baddyCounter >= 1050) {
_root.baddyCounter = _root.baddyCounter - 50;
}
onEnterFrame = function () {
if ((_root.dragn.direction == "right") && (_root.dragn._x > _root.leftEdge._x)) {
_root.dragn._x = _root.dragn._x - 10;
} else if ((_root.dragn.direction == "left") && (_root.dragn._x < _root.rightEdge._x)) {
_root.dragn._x = _root.dragn._x + 10;
}
};
Symbol 340 MovieClip Frame 27
onEnterFrame = null;
Symbol 340 MovieClip Frame 99
_parent._parent.action = "standing";
Symbol 356 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 Boss engine");
_root.soundFX.start(0, 999);
Symbol 356 MovieClip Frame 74
stop();
Symbol 368 MovieClip Frame 1
if (!_root.dragn.initialDizzy) {
gotoAndPlay (11);
}
_root.dragn.initialDizzy = false;
onEnterFrame = function () {
if (_parent._parent.hitTest(_root.hit)) {
_parent._parent.action = "hurt";
_parent._parent.health = _parent._parent.health - 5;
}
if (_parent._parent.dizzyTimer <= 0) {
_root.soundFX.attachSound("lvl1 Boss engine");
_root.soundFX.start(0, 999);
_parent._parent.action = "up";
} else {
_parent._parent.dizzyTimer--;
}
};
Symbol 368 MovieClip Frame 21
gotoAndPlay (11);
Symbol 375 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 bossHurt");
_root.soundFX.start(0, 1);
onEnterFrame = function () {
_parent._parent.dizzyTimer--;
};
Symbol 375 MovieClip Frame 8
_parent._parent.action = "dizzy";
Symbol 388 MovieClip Frame 1
scake = _xscale;
if (((_parent._parent.hSpeed < -2) && (_parent._parent._x > _root.player._x)) || ((_parent._parent.hSpeed > 2) && (_parent._parent._x < _root.player._x))) {
_xscale = scake;
} else {
_xscale = (-scake);
}
onEnterFrame = function () {
if (((_parent._parent.hSpeed < -2) && (_parent._parent._x > _root.player._x)) || ((_parent._parent.hSpeed > 2) && (_parent._parent._x < _root.player._x))) {
_xscale = scake;
} else {
_xscale = (-scake);
}
};
Symbol 388 MovieClip Frame 18
_root.soundFX.attachSound("lvl1 beep beep");
_root.soundFX.start(0, 1);
Symbol 388 MovieClip Frame 20
if (!_root.egg) {
_root.attachMovie("lvl1 egg", "egg", 2001);
_root.egg._x = _parent._parent._x;
_root.egg._y = _parent._parent._y;
_root.egg.hSpeed = _parent._parent.hSpeed;
}
Symbol 388 MovieClip Frame 28
_parent._parent.action = "flying";
Symbol 417 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 bossHurt");
_root.soundFX.start(0, 1);
Symbol 417 MovieClip Frame 8
_root.soundFX.attachSound("lvl1 bossdie");
_root.soundFX.start(0, 1);
Symbol 417 MovieClip Frame 49
stop();
_parent.onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha-1);
} else {
_root.gotoAndStop("lvl2 intro");
_root.clearAll();
}
};
Symbol 418 MovieClip [lvl1 dragon] Frame 1
poseTimer = 100;
health = 100;
action = "POSE";
floaty = -8;
startY = _y;
floatUp = false;
vSpeed = 0;
hSpeed = 0;
charSide = "left";
_y = (_y + floaty);
wantedX = 0;
stop();
this.onEnterFrame = function () {
if (_root.player.area.hitTest(this.area)) {
if (_root.player._x < _x) {
_root.player._x = _root.player._x + 2;
_root.player.hSpeed = _root.player.hSpeed - 2;
} else {
_root.player._x = _root.player._x - 2;
_root.player.hSpeed = _root.player.hSpeed + 2;
}
}
if (action == "POSE") {
if (poseTimer <= 0) {
_root.bossBG.gotoAndStop(4);
_root.HUD.attachMovie("lvl1 BossHealth", "bossHB", 1);
_root.HUD.bossHB._x = -175;
_root.HUD.bossHB._y = -50;
action = "drop";
}
poseTimer--;
if (floatUp) {
floaty = floaty - 0.5;
} else {
floaty = floaty + 0.5;
}
if (floaty <= -4) {
floatUp = false;
} else if (floaty >= 4) {
floatUp = true;
}
_y = (_y + floaty);
} else if ((action == "flying") || (action == "drop")) {
if (floatUp) {
floaty = floaty - 0.5;
} else {
floaty = floaty + 0.5;
}
if (floaty <= -4) {
floatUp = false;
} else if (floaty >= 4) {
floatUp = true;
}
_y = (_y + floaty);
if (charSide == "left") {
wantedX = _root.player._x - 250;
} else {
wantedX = _root.player._x + 250;
}
if (wantedX < _root.leftEdge._x) {
wantedX = _root.leftEdge._x;
} else if (wantedX > _root.rightEdge._x) {
wantedX = _root.rightEdge._x;
}
if ((wantedX > this._x) && (hSpeed < 10)) {
hSpeed = hSpeed + 1;
} else if ((wantedX < this._x) && (hSpeed > -10)) {
hSpeed = hSpeed - 1;
}
if (Math.abs(_x - wantedX) < 15) {
hSpeed = hSpeed * 0.4;
readyToLaunch = true;
}
if (Math.abs(_x - wantedX) < 75) {
if (random(3) == 0) {
action = "drop";
if (charSide == "left") {
charSide = "right";
} else {
charSide = "left";
}
} else {
action = "down";
vAccel = 0;
AccelMnt = 0;
}
}
} else if (action == "down") {
hSpeed = 0;
AccelMnt = AccelMnt + 0.15;
vAccel = vAccel + AccelMnt;
if ((_y + vAccel) < (_root.player.ground - 10)) {
_y = (_y + vAccel);
} else {
_y = (_root.player.ground - 10);
shootAmmount = 2;
actTimer = 20;
action = "standing";
}
} else if (action == "standing") {
actTimer--;
if ((shootAmmount > 0) && (actTimer <= 0)) {
shootAmmount--;
action = "shooting";
actTimer = 20;
}
if ((shootAmmount == 0) && (actTimer <= 0)) {
_root.soundFX.attachSound("lvl1 Boss engine");
_root.soundFX.start(0, 999);
action = "up";
}
} else if (action == "shooting") {
} else if (action == "up") {
if (_y > (startY + 8)) {
_y = (_y - 8);
} else {
floaty = -8;
if (charSide == "left") {
charSide = "right";
} else {
charSide = "left";
}
action = "flying";
}
} else if (action == "dizzy") {
}
if ((_x > _root.player._x) && (action != "POSE")) {
_xscale = -100;
direction = "left";
} else {
_xscale = 100;
direction = "right";
}
if ((((action != "dizzy") && (action != "up")) && (action != "hurt")) && (_root.player.area.hitTest(this.area))) {
_root.player.action = "hurt";
_root.player.health = _root.player.health - 5;
if (direction == "left") {
_root.player.hspeed = -25;
} else {
_root.player.hspeed = 25;
}
}
if (health <= 0) {
gotoAndStop (2);
onEnterFrame = null;
}
_x = (_x + hSpeed);
sprites.gotoAndStop(action);
};
Symbol 418 MovieClip [lvl1 dragon] Frame 2
_root.soundFX.stop("lvl1 Boss engine");
Symbol 421 MovieClip [lvl1 egg] Frame 1
stop();
vSpeed = 0;
_alpha = 0;
_rotation = (hSpeed * 5);
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 25);
}
if ((_y >= (_root.player.ground - vSpeed)) || (_root.player.area.hitTest(this._x, this._y))) {
this.gotoAndStop(2);
}
if (vSpeed < 10) {
vSpeed++;
}
if (_root.player._x > _x) {
hSpeed = hSpeed + 0.5;
} else {
hSpeed = hSpeed - 0.5;
}
hSpeed = hSpeed * 0.9;
_y = (_y + vSpeed);
_x = (_x + hSpeed);
};
Symbol 421 MovieClip [lvl1 egg] Frame 2
_root.soundFX.attachSound("lvl1 boom");
_root.soundFX.start(0, 1);
stop();
timer = 5;
onEnterFrame = function () {
timer--;
if (timer <= 0) {
this.removeMovieClip();
}
};
Symbol 423 MovieClip [bossAttack] Frame 1
stop();
speed = 10;
bounce = 7;
vSpeed = 0;
reversed = false;
timer = 400 / speed;
_x = _root.dragn._x;
_y = (_root.dragn._y - 15);
if (_x > _root.player._x) {
direction = "left";
} else {
direction = "right";
}
onEnterFrame = function () {
_rotation = (vSpeed * 3);
if (timer <= 0) {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
this.removeMovieClip();
}
} else {
timer--;
}
if (direction == "left") {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
vSpeed = vSpeed + 0.7;
if (_y > _root.player.ground) {
vSpeed = -bounce;
}
if (!reversed) {
if (_root.player.area.hitTest(this._x, this._y)) {
if ((_root.player.action == "blocking") || (_root.player.action == "blockHit")) {
_root.player.action = "blockHit";
reversed = true;
timer = 400 / speed;
_alpha = 100;
if (direction == "left") {
direction = "right";
} else {
direction = "left";
}
} else {
_root.player.action = "hurt";
_root.player.health = _root.player.health - 6;
if (direction == "left") {
_root.player.hspeed = _root.player.hspeed - (speed * 1.5);
} else {
_root.player.hspeed = _root.player.hspeed + (speed * 1.5);
}
this.gotoAndStop(2);
}
}
} else if ((((_root.dragn.action == "standing") || (_root.dragn.action == "shooting")) || (_root.dragn.action == "dizzy")) && (_root.dragn.area.hitTest(this._x, this._y))) {
_root.dragn.action = "dizzy";
_root.dragn.initialDizzy = true;
_root.dragn.dizzyTimer = 90;
this.gotoAndStop(2);
}
_y = (_y + vSpeed);
};
Symbol 423 MovieClip [bossAttack] Frame 2
_root.soundFX.attachSound("lvl1 boom");
_root.soundFX.start(0, 1);
stop();
timer = 5;
onEnterFrame = function () {
timer--;
if (timer <= 0) {
this.removeMovieClip();
}
};
Symbol 427 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this._currentframe < _root.player.health) {
this.gotoAndStop(this._currentframe + 1);
} else if (this._currentframe > _root.player.health) {
this.gotoAndStop(this._currentframe - 1);
}
if ((this._currentframe <= 1) && (_alpha > 0)) {
this._alpha = this._alpha - 5;
_y = (_y + 1);
_rotation = (_rotation - 2);
} else if ((this._currentframe > 1) && (_alpha < 100)) {
this._alpha = this._alpha + 5;
_y = (_y - 1);
_rotation = (_rotation + 2);
}
};
Symbol 432 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.dragn) {
_visible = false;
}
if (_currentframe < (_root.points * 2)) {
gotoAndStop(_currentframe + 1);
}
};
Symbol 432 MovieClip Frame 70
stop();
onEnterFrame = function () {
if (_root.dragn) {
_visible = false;
}
if (_currentframe < (_root.points * 2)) {
gotoAndStop(_currentframe + 1);
}
};
Symbol 435 MovieClip [bossMouth] Frame 1
_visible = false;
if (_target == ("/" + _name)) {
} else {
_visible = false;
_root.createBossMouth(((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x, ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y, _rotation, _xscale, _yscale);
}
this.onEnterFrame = function () {
_root.createBossMouth(((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x, ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y, _rotation, _xscale, _yscale);
};
Symbol 439 MovieClip [setKeys action1] Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "left";
};
onEnterFrame = function () {
if (_root.setKey == "left") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.left];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 450 Button
on (release) {
_root.onMouseDown = null;
_root.onMouseUp = null;
_root.nextFrame();
}
Symbol 451 MovieClip Frame 1
stop();
if (_root.getBytesLoaded() >= (_root.getBytesTotal() * 0.99)) {
gotoAndStop (2);
}
onEnterFrame = function () {
if (_root.getBytesLoaded() >= (_root.getBytesTotal() * 0.99)) {
gotoAndStop (2);
}
};
Symbol 451 MovieClip Frame 2
stop();
playButton.useHandCursor = false;
Symbol 456 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 460 MovieClip Frame 1
jump = 15;
initX = _x;
ground = _y;
vSpeed = -jump;
action = "bounce";
onEnterFrame = function () {
if (action == "bounce") {
vSpeed = vSpeed + 0.8;
_y = (_y + vSpeed);
if ((_y + vSpeed) > ground) {
_y = ground;
vSpeed = -jump;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
action = "fall";
hSpeed = _root.ball.hSpeed * 0.9;
_root.ball.hSpeed = -1;
}
} else if (action == "fall") {
_rotation = (_rotation + hSpeed);
_x = (_x + hSpeed);
vSpeed = vSpeed + 1;
_y = (_y + vSpeed);
if ((_x + hSpeed) > 400) {
hSpeed = -hSpeed;
}
if ((_y > 350) || (_x > 440)) {
_rotation = 0;
action = "bounce";
_y = -50;
_x = initX;
vSpeed = 0;
}
}
};
Symbol 462 MovieClip Frame 1
action = "ready";
onEnterFrame = function () {
if (action == "ready") {
_x = _root.cannon._x;
_y = _root.cannon._y;
_x = (_x + (Math.cos((-_root.cannon._rotation) * 0.0174532925) * 50));
_y = (_y + (Math.sin(_root.cannon._rotation * 0.0174532925) * 50));
} else if (action == "flying") {
_x = (_x + hSpeed);
_y = (_y + vSpeed);
vSpeed = vSpeed + 0.2;
if ((_x > 410) || (_y > 310)) {
action = "ready";
}
}
};
Symbol 464 MovieClip Frame 1
rotMax = _rotation;
onEnterFrame = function () {
_rotation = (_root._ymouse - _y);
if (_rotation < -80) {
_rotation = -80;
}
if (_rotation > 0) {
_rotation = 0;
}
_rotation = (_rotation-1);
};
Symbol 470 MovieClip Frame 1
stop();
_root.onMouseDown = function () {
_root.charge.stat = "charge";
};
_root.onMouseUp = function () {
_root.charge.stat = "none";
if (_root.ball.action == "ready") {
_root.ball.action = "flying";
_root.ball.hSpeed = (_root.charge._currentframe * Math.cos((-_root.cannon._rotation) * 0.0174532925)) / 2;
_root.ball.vSpeed = (_root.charge._currentframe * Math.sin(_root.cannon._rotation * 0.0174532925)) / 2;
}
};
charge.stat = "none";
onEnterFrame = function () {
if (stat == "charge") {
play();
} else if (_currentframe > 1) {
prevFrame();
}
};
Symbol 477 MovieClip Frame 10
_root.gotoAndStop(3);
Symbol 488 MovieClip Frame 1
_xscale = (random(25) + 90);
_yscale = _xscale;
xspeed = random(2) - 1;
yspeed = random(2) - 3.2;
initxspeed = xspeed;
this.swapDepths(_parent.tch);
onEnterFrame = function () {
xspeed = xspeed - (initxspeed * 0.03);
_x = (_x + xspeed);
_y = (_y + yspeed);
};
Symbol 488 MovieClip Frame 48
stop();
_visible = false;
onEnterFrame = null;
this.removeMovieClip();
Symbol 489 MovieClip Frame 1
fCount = 0;
timerate = 0;
this.onEnterFrame = function () {
if (timerate <= 0) {
flame.duplicateMovieClip("flame" + fCount, fCount);
this["flame" + fCount]._x = random(6) - 3;
this["flame" + fCount]._y = 0;
fCount++;
timerate = 1;
} else {
timerate--;
}
};
Symbol 493 MovieClip Frame 1
timer = 80;
_alpha = 0;
onEnterFrame = function () {
if (_alpha <= 100) {
_alpha = (_alpha + 5);
}
if (timer == 65) {
cred = new Sound();
cred.attachSound("monkCred");
cred.start(0, 1);
}
if (timer <= 0) {
_root.onMouseDown = null;
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_root.play();
}
};
} else {
timer--;
}
};
_root.onMouseDown = function () {
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_root.play();
}
};
_root.onMouseDown = null;
};
Symbol 497 MovieClip Frame 1
timer = 80;
_alpha = 0;
onEnterFrame = function () {
if (timer == 75) {
cred = new Sound();
cred.attachSound("jermzCred");
cred.start(0, 1);
}
if (_alpha <= 100) {
_alpha = (_alpha + 5);
}
if (timer <= 0) {
_root.onMouseDown = null;
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_root.play();
}
};
} else {
timer--;
}
};
_root.onMouseDown = function () {
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_root.play();
}
};
_root.onMouseDown = null;
};
Symbol 501 MovieClip Frame 1
timer = 80;
_alpha = 0;
onEnterFrame = function () {
if (timer == 70) {
cred = new Sound();
cred.attachSound("leifoCred");
cred.start(0, 1);
}
if (_alpha <= 100) {
_alpha = (_alpha + 5);
}
if (timer <= 0) {
_root.onMouseDown = null;
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_root.play();
_quality = "Medium";
}
};
} else {
timer--;
}
};
_root.onMouseDown = function () {
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_quality = "High";
_root.play();
}
};
_root.onMouseDown = null;
};
Symbol 508 MovieClip Frame 1
min = -60;
max = 55;
onEnterFrame = function () {
_x = (_x + ((_parent._xmouse - _x) * 0.5));
if (_x < min) {
_x = min;
}
if (_x > max) {
_x = max;
}
};
Symbol 509 MovieClip Frame 1
min = -75;
max = 100;
onEnterFrame = function () {
if (_parent.active) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_y = (_y + ((_parent._ymouse - _y) * 0.5));
if (_y < min) {
_y = min;
}
if (_y > max) {
_y = max;
}
};
Symbol 511 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
if ((_parent.active && (_parent.slider._y > (_y - 12.5))) && (_parent.slider._y < (_y + 12.5))) {
active = true;
} else {
active = false;
}
if (active && (_alpha < 100)) {
_alpha = (_alpha + 20);
} else if ((!active) && (_alpha > 0)) {
_alpha = (_alpha - 20);
}
};
Symbol 519 MovieClip Frame 1
stop();
_root.onMouseUp = function () {
_root.onMouseUp = null;
_root.menu.gotoAndPlay(2);
};
Symbol 519 MovieClip Frame 6
stop();
onEnterFrame = function () {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
Mouse.hide();
active = true;
} else {
Mouse.show();
active = false;
}
};
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("intro");
}
};
}
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("levelSelect");
}
};
}
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("cutsceneSelect");
}
};
}
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("options");
}
};
}
Instance of Symbol 511 MovieClip in Symbol 519 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("credits");
}
};
}
Symbol 529 MovieClip Frame 1
stop();
this.useHandCursor = false;
_quality = _root.qual;
this.onPress = function () {
if (_root.qual == "High") {
_root.qual = "Medium";
} else if (_root.qual == "Medium") {
_root.qual = "Low";
} else if (_root.qual == "Low") {
_root.qual = "Best";
} else if (_root.qual == "Best") {
_root.qual = "High";
}
_quality = _root.qual;
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
onEnterFrame = function () {
_quality = _root.qual;
};
Symbol 533 Button
on (release) {
_root.someListener.onKeyDown = null;
_root.gotoAndStop("title");
}
Symbol 536 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "up";
};
onEnterFrame = function () {
if (_root.setKey == "up") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.up];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 539 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "down";
};
onEnterFrame = function () {
if (_root.setKey == "down") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.down];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 542 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "right";
};
onEnterFrame = function () {
if (_root.setKey == "right") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.right];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 545 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "key1";
};
onEnterFrame = function () {
if (_root.setKey == "key1") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.key1];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 548 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "key2";
};
onEnterFrame = function () {
if (_root.setKey == "key2") {
keyset.text = "Press Key";
} else {
keyset.text = _root.K[_root.key2];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 554 Button
on (release) {
_root.bossLVL = false;
_root.level3 = false;
_root.level2 = false;
_root.level1 = false;
_root.endCutscene = false;
_root.ButtlockData.data.level1 = _root.level1;
_root.ButtlockData.data.level2 = _root.level2;
_root.ButtlockData.data.level3 = _root.level3;
_root.ButtlockData.data.bossLVL = _root.bossLVL;
_root.ButtlockData.data.endCutscene = _root.endCutscene;
_root.ButtlockData.flush();
}
Symbol 560 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pressEsc) {
textField.text = "Enabled";
} else {
textField.text = "Disabled";
}
};
this.onPress = function () {
if (_root.pressEsc) {
_root.pressEsc = false;
} else {
_root.pressEsc = true;
}
};
Symbol 563 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 569 MovieClip Frame 1
if (!_root.level1) {
gotoAndStop (2);
} else {
stop();
}
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("lvl1");
};
Symbol 569 MovieClip Frame 2
this.onRelease = null;
Symbol 572 MovieClip Frame 1
if (!_root.level2) {
gotoAndStop (2);
} else {
stop();
}
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("lvl2");
};
Symbol 572 MovieClip Frame 2
this.onRelease = null;
Symbol 575 MovieClip Frame 1
if (!_root.level3) {
gotoAndStop (2);
} else {
stop();
}
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("lvl3");
};
Symbol 575 MovieClip Frame 2
this.onRelease = null;
Symbol 581 MovieClip Frame 1
if (!_root.bossLVL) {
gotoAndStop (2);
} else {
stop();
}
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("finalBoss");
};
Symbol 581 MovieClip Frame 2
this.onRelease = null;
Symbol 582 Button
on (release) {
_root.cutscene = false;
_root.gotoAndStop("title");
}
Symbol 587 MovieClip Frame 1
if (!_root.level1) {
gotoAndStop (2);
} else {
stop();
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("intro");
};
}
Symbol 591 MovieClip Frame 1
if (!_root.level2) {
gotoAndStop (2);
} else {
stop();
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("lvl2 intro");
};
}
Symbol 593 MovieClip Frame 1
if (!_root.level3) {
gotoAndStop (2);
} else {
stop();
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("lvl3 intro");
};
}
Symbol 595 MovieClip Frame 1
if (!_root.bossLVL) {
gotoAndStop (2);
} else {
stop();
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("boss intro");
};
}
Symbol 597 MovieClip Frame 1
if (!_root.endCutscene) {
gotoAndStop (2);
} else {
stop();
this.onRelease = function () {
i = 0;
while (i <= 75) {
_root["flake" + i].removeMovieClip();
i++;
}
_root.globalsound.stop("title song");
_root.gotoAndStop("outtro");
};
}
Symbol 599 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (random(20) - 10);
};
Symbol 604 MovieClip Frame 1
_root.light.active = true;
onEnterFrame = function () {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
Mouse.hide();
active = true;
} else {
Mouse.show();
active = false;
}
};
Instance of Symbol 511 MovieClip in Symbol 604 MovieClip Frame 1
on (release) {
Mouse.show();
_root.globalsound.stop("game over song");
_root.gotoAndStop(_root.lastLevel);
}
Instance of Symbol 511 MovieClip in Symbol 604 MovieClip Frame 1
on (release) {
Mouse.show();
_root.globalsound.stop("game over song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.gotoAndStop("title");
}
Instance of Symbol 511 MovieClip in Symbol 604 MovieClip Frame 1
on (release) {
Mouse.show();
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 892 MovieClip Frame 391
onEnterFrame = function () {
if (_root.globalsound.getVolume() > 0) {
_root.globalsound.setVolume(_root.globalsound.getVolume() - 5);
}
};
Symbol 892 MovieClip Frame 412
onEnterFrame = null;
_root.globalsound.stop("introMusic");
_root.globalsound.attachSound("introMusic2");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
Symbol 892 MovieClip Frame 1129
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending music");
_root.globalsound.stop("ending music2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.nextFrame();
}
Symbol 894 MovieClip Frame 1
time = 100;
onEnterFrame = function () {
if (time <= 0) {
alpha = alpha - 2;
} else {
time--;
}
};
_root.onMouseDown = function () {
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending music");
_root.globalsound.stop("ending music2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.nextFrame();
}
};
Symbol 896 MovieClip Frame 1
_visible = false;
qChange = false;
onEnterFrame = function () {
if (_root.pressEsc && (Key.isDown(27))) {
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending song");
_root.globalsound.stop("ending song2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.clearAll();
_root.clearLvl3();
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending song");
_root.globalsound.stop("ending song2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
i = 100;
while (i <= 110) {
_root["shoe" + i].removeMovieClip();
i++;
}
_root.cr.removeMovieClip();
_root._x = 0;
_root._y = 0;
_root._alpha = 100;
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("title");
}
}
if (Key.isDown(81)) {
if (!qChange) {
if (_root.qual == "High") {
_root.qual = "Medium";
} else if (_root.qual == "Medium") {
_root.qual = "Low";
} else if (_root.qual == "Low") {
_root.qual = "Best";
} else if (_root.qual == "Best") {
_root.qual = "High";
}
_quality = _root.qual;
}
qChange = true;
} else {
qChange = false;
}
};
Symbol 899 MovieClip Frame 1
origY = _y;
started = false;
this.onEnterFrame = function () {
if ((_y != origY) && (!started)) {
_root.soundFX.attachSound("lvl1 Boss engine");
_root.soundFX.start(0, 999);
started = true;
}
if (_root.dragon) {
_root.bossBG.gotoAndStop(2);
}
if (_root.dragon && (_y > 0)) {
_y = (_y - 8);
} else if (_y <= 0) {
_root.attachMovie("lvl1 dragon", "dragn", 2000);
_root.dragn._x = _parent._x + _x;
_root.dragn._y = _parent._y + _y;
_visible = false;
this.onEnterFrame = null;
}
};
Symbol 939 MovieClip Frame 15
stop();
Symbol 940 MovieClip Frame 1
onEnterFrame = function () {
_root.globalsound.setVolume(_root.globalsound.getVolume() - 5);
if (_root.globalsound.getVolume() <= 0) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.attachSound("lvl1Boss");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
onEnterFrame = null;
}
};
Symbol 940 MovieClip Frame 35
stop();
Symbol 941 MovieClip Frame 1
stop();
_alpha = 0;
Symbol 941 MovieClip Frame 2
stop();
onEnterFrame = function () {
_x = _root.camera._x;
_y = _root.camera._y;
_xscale = _root.camera._xscale;
_yscale = _root.camera._yscale;
_alpha = (_alpha + 2);
if (_alpha >= 100) {
onEnterFrame = function () {
_x = _root.camera._x;
_y = _root.camera._y;
_xscale = _root.camera._xscale;
_yscale = _root.camera._yscale;
};
gotoAndStop (3);
}
};
Symbol 941 MovieClip Frame 3
stop();
Symbol 941 MovieClip Frame 4
stop();
onEnterFrame = function () {
_x = _root.camera._x;
_y = _root.camera._y;
_xscale = _root.camera._xscale;
_yscale = _root.camera._yscale;
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 943 MovieClip Frame 1
_visible = false;
_alpha = 0;
Mcamera = new Color(this);
parent = new Color(_parent);
parent.setTransform(Mcamera.getTransform());
_parent._x = ((-(this._x - (this._width / 2))) * Stage.width) / this._width;
_parent._y = ((-(this._y - (this._height / 2))) * Stage.height) / this._height;
_parent._xscale = (Stage.width / this._width) * 100;
_parent._yscale = (Stage.height / this._height) * 100;
_root.dialogue._x = _x - 190;
_root.dialogue._y = _y - 140;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
parent.setTransform(Mcamera.getTransform());
_parent._x = ((-(this._x - (this._width / 2))) * Stage.width) / this._width;
_parent._y = ((-(this._y - (this._height / 2))) * Stage.height) / this._height;
_parent._xscale = (Stage.width / this._width) * 100;
_parent._yscale = (Stage.height / this._height) * 100;
_root.dialogue._x = _x - 190;
_root.dialogue._y = _y - 140;
if ((level = 1)) {
if (_root.dragon && (_xscale < 200)) {
_xscale = (_xscale + ((200 - _xscale) * 0.1));
_yscale = _xscale;
}
}
};
onUnload = function () {
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
parent.setTransform(myColorTransform);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
};
Symbol 945 MovieClip Frame 1
_visible = false;
Symbol 951 Button
on (release) {
nextFrame();
}
Symbol 955 Button
on (release) {
prevFrame();
}
Symbol 978 Button
on (release) {
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending music");
_root.globalsound.stop("ending music2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.nextFrame();
}
}
Symbol 979 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 1
gotoAndStop(random(10) + 2);
onEnterFrame = function () {
_x = (_x + (_root.BGspeed / 8));
if (_x > 240) {
_x = -290;
}
if (_x < -290) {
_x = (_x + 510);
}
};
Symbol 990 MovieClip Frame 1
_visible = false;
this.onEnterFrame = function () {
if ((_root.player.action != "hurt") && (this.hitTest(_root.player._x, _root.player._y, true))) {
if ((((_parent._parent._parent._x + _parent._parent._x) + _parent._x) + _x) > _root.player._x) {
_root.player.hSpeed = -10;
} else {
_root.player.hSpeed = 10;
}
if ((((_parent._parent._parent._y + _parent._parent._y) + _parent._y) + _y) > _root.player._y) {
_root.player.vSpeed = -10;
} else {
_root.player.vSpeed = 10;
}
_root.player.action = "hurt";
}
};
Symbol 992 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_root.player.area)) {
speed = speed + 2;
} else if (speed > 0) {
speed = speed - 2;
} else if (speed < 0) {
speed = 0;
}
_root.player._x = _root.player._x - speed;
};
Symbol 1003 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 boom");
_root.soundFX.start(0, 1);
Symbol 1003 MovieClip Frame 4
_parent._parent.health = _parent._parent.health - 7.5;
Symbol 1003 MovieClip Frame 16
_parent._parent.action = "still";
Symbol 1033 MovieClip Frame 62
_root.bossMouth.removeMovieClip();
Symbol 1033 MovieClip Frame 74
_parent._parent.action = "still";
Symbol 1038 MovieClip Frame 1
_visible = false;
suckSpeed = 5;
y = ((_parent._parent._parent._y + _parent._parent._y) + _parent._y) + _y;
x = ((_parent._parent._parent._x + _parent._parent._x) + _parent._x) + _x;
this.onEnterFrame = function () {
_root.player._x = _root.player._x + ((x - _root.player._x) * 0.2);
_root.player._y = _root.player._y + ((y - _root.player._y) * 0.2);
suckSpeed = suckSpeed + 5;
if ((Math.abs(x - _root.player._x) < 20) && (Math.abs(y - _root.player._y) < 50)) {
_root.boss.action = "chew";
_root.player.action = "eaten";
}
};
Symbol 1052 MovieClip Frame 13
_root.bossMouth.removeMovieClip();
Symbol 1052 MovieClip Frame 38
_root.bossMouth.removeMovieClip();
Symbol 1052 MovieClip Frame 55
_root.bossMouth.removeMovieClip();
_parent._parent.actionTimer = random(50) + 50;
_parent._parent.action = "spit";
Symbol 1083 MovieClip Frame 53
_root.player.action = "flying";
_root.player.hSpeed = -26;
_root.player._x = 225;
_root.player._y = 240;
_root.BGspeed = -3;
Symbol 1083 MovieClip Frame 67
_parent._parent.action = "still";
Symbol 1129 MovieClip Frame 81
_parent._parent.action = "still";
Symbol 1150 MovieClip Frame 129
_parent._parent.action = "still";
Symbol 1171 MovieClip Frame 64
_parent._parent.action = "still";
Symbol 1172 MovieClip Frame 1
_root.bossMouth.removeMovieClip();
_root.BGspeed = 3;
Symbol 1172 MovieClip Frame 2
_root.bossMouth.removeMovieClip();
_root.BGspeed = -3;
Symbol 1172 MovieClip Frame 3
_root.BGspeed = 0;
Symbol 1172 MovieClip Frame 4
_root.BGspeed = 6;
Symbol 1172 MovieClip Frame 5
_root.BGspeed = 0;
Symbol 1172 MovieClip Frame 6
_root.BGspeed = 3;
Symbol 1172 MovieClip Frame 7
_root.BGspeed = 0;
Symbol 1172 MovieClip Frame 8
_root.BGspeed = 0;
Symbol 1193 MovieClip Frame 23
stop();
onEnterFrame = function () {
_root.BGspeed = _root.BGspeed - 1;
_y = (_y + 4);
if (_alpha > 0) {
_alpha = (_alpha - 4);
}
};
Symbol 1194 MovieClip Frame 1
stop();
this.randomAction = new Array("arm", "suck", "hideShot", "spikes", "suck", "spikes", "hideShot");
this.action = "still";
this.actionTimer = random(50) + 75;
health = 40;
currentAction = 0;
onEnterFrame = function () {
if (health <= 0) {
gotoAndStop (2);
}
if (!_root.bossMouth) {
i = 1000;
while (i <= 1010) {
if ((!_root["bomb" + i].dead) && (this.hitTest(_root["bomb" + i]._x, _root["bomb" + i]._y, true))) {
if (!_root["bomb" + i].dead) {
_root.soundFX.attachSound("drip");
_root.soundFX.start(0, 1);
}
_root["bomb" + i].dead = true;
_root["bomb" + i].force = _root["bomb" + i].force * -0.5;
}
i++;
}
}
if (this.action == "still") {
this.actionTimer--;
if (this.actionTimer <= 0) {
this.action = this.randomAction[currentAction];
currentAction++;
if (currentAction >= randomAction.length) {
currentAction = 0;
}
}
} else {
this.actionTimer = random(50) + 20;
}
this.sprites.gotoAndStop(this.action);
};
Symbol 1194 MovieClip Frame 2
_root.BGspeed = 0;
stop();
onEnterFrame = null;
Symbol 1215 MovieClip Frame 8
gotoAndPlay (4);
Symbol 1220 MovieClip Frame 1
onEnterFrame = function () {
_parent._parent.atackForce = int(_currentframe / 2);
};
Symbol 1220 MovieClip Frame 21
stop();
Symbol 1228 MovieClip Frame 1
_root.createBomb(_parent._parent._x + 10, _parent._parent._y + 10, _parent._parent.atackForce);
_root.soundFX.attachSound("lvl1 beep beep");
_root.soundFX.start(0, 1);
Symbol 1228 MovieClip Frame 8
_parent._parent.action = "flying";
Symbol 1237 MovieClip Frame 2
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
_parent._parent.health = _parent._parent.health - 1;
Symbol 1237 MovieClip Frame 7
_parent._parent.action = "flying";
Symbol 1254 MovieClip Frame 1
stop();
hSpeed = 0;
vSpeed = 0;
health = 20;
movement = true;
action = "flying";
onEnterFrame = function () {
if (_root.bgSpeed < -100) {
_root.bgSpeed = 0;
_root.boss.sprite.onEnterFrame = null;
onEnterFrame = function () {
_x = (_x + 50);
if (_x > 650) {
_root.nextFrame();
}
};
}
if (action != "eaten") {
if (health <= 0) {
gotoAndStop (2);
}
if (action == "flying") {
if (key.isDown(_root.key1)) {
action = "charging";
}
movement = true;
} else if (action == "charging") {
if (!key.isDown(_root.key1)) {
action = "shooting";
}
movement = true;
} else if (action == "shooting") {
movement = true;
}
if (Key.isDown(_root.left) && (movement)) {
if (hSpeed > -10) {
hSpeed = hSpeed - 2;
}
} else if (hSpeed < 0) {
hSpeed = hSpeed + 2;
}
if (Key.isDown(_root.right) && (movement)) {
if (hSpeed < 10) {
hSpeed = hSpeed + 2;
}
} else if (hSpeed > 0) {
hSpeed = hSpeed - 2;
}
if (Key.isDown(_root.up) && (movement)) {
if (vSpeed > -8) {
vSpeed = vSpeed - 2;
}
} else if (vSpeed < 0) {
vSpeed = vSpeed + 2;
}
if (Key.isDown(_root.down) && (movement)) {
if (vSpeed < 8) {
vSpeed = vSpeed + 2;
}
} else if (vSpeed > 0) {
vSpeed = vSpeed - 2;
}
_rotation = (hSpeed * 3);
_y = (_y + vSpeed);
_x = (_x + hSpeed);
_visible = true;
} else {
health = health - 0.05;
_visible = false;
}
sprites.gotoAndStop(action);
if (_root.BGspeed < 0) {
_x = (_x + (_root.BGspeed * 0.5));
}
if (_x < 10) {
_x = 10;
}
if (_x > 390) {
_x = 390;
}
if (_y < 10) {
_y = 10;
}
if (_y > 290) {
_y = 290;
}
};
Symbol 1254 MovieClip Frame 2
speed = 0;
onEnterFrame = function () {
_rotation = (_rotation+1);
_y = (_y + speed);
speed++;
if (_y > 400) {
_root.gotoAndStop("gameOver");
}
};
Symbol 1258 MovieClip Frame 1
gotoAndStop(random(15) + 2);
Symbol 1261 MovieClip Frame 1
gotoAndStop(random(7) + 2);
_xscale = (_xscale + random(20));
_yscale = (_yscale + random(20));
onEnterFrame = function () {
_x = (_x + _root.BGspeed);
if (_x > 230) {
_x = (_x - 460);
}
if (_x < -240) {
_x = (_x + 460);
}
};
Symbol 1266 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.health > 0) {
if (_currentframe < int(_root.player.health)) {
nextFrame();
} else if (_currentframe > int(_root.player.health)) {
prevFrame();
}
} else {
onEnterFrame = function () {
_rotation = (_rotation + 2);
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_y = (_y+1);
_x = (_x+1);
};
}
};
Symbol 1305 MovieClip Frame 1
onEnterFrame = function () {
if (_root.boss.health > 0) {
if (_currentframe < int(_root.boss.health)) {
nextFrame();
} else if (_currentframe > int(_root.boss.health)) {
prevFrame();
}
} else {
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_y = (_y + 2);
};
}
};
Symbol 1324 Button
on (release) {
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending music");
_root.globalsound.stop("ending music2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.nextFrame();
}
}
Symbol 1325 MovieClip Frame 1
stop();
Symbol 1330 MovieClip Frame 1
timer = 15;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
onEnterFrame = function () {
if (timer <= 0) {
_root.nextFrame();
} else {
timer--;
}
};
}
};
Symbol 1338 MovieClip Frame 1
_visible = false;
Symbol 1344 MovieClip Frame 1
_root.createEnemyBullet(_parent._x, _parent._y, ((-_parent._rotation) + 90) - 45);
_root.createEnemyBullet(_parent._x, _parent._y, (-_parent._rotation) + 90);
_root.createEnemyBullet(_parent._x, _parent._y, ((-_parent._rotation) + 90) + 45);
Symbol 1344 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 1369 MovieClip Frame 24
stop();
Symbol 1370 MovieClip Frame 1
if (direction == "right") {
_rotation = 90;
} else if (direction == "down") {
_rotation = 180;
} else if (direction == "left") {
_rotation = 270;
}
stop();
timer = 60 + random(10);
onEnterFrame = function () {
if (timer <= 0) {
if (int(Math.sqrt(((_x - _root.player._x) * (_x - _root.player._x)) + ((_y - _root.player._y) * (_y - _root.player._y)))) < 250) {
gotoAndStop (2);
timer = 20;
}
} else {
timer--;
}
if (_root.attack.hitTest(this._x, this._y)) {
this.gotoAndStop(3);
onEnterFrame = null;
}
if (this.hitTest(_root.player.area)) {
if (this.area.hitTest(_root.player.area)) {
_root.player.action = "hurt";
}
if (_x >= _root.player._x) {
if (!_root.floor.hitTest((_root.player._x - pushSpeed) - 27, _root.player._y - 15, true)) {
_root.player._x = _root.player._x - pushSpeed;
}
} else if (!_root.floor.hitTest((_root.player._x + pushSpeed) + 27, _root.player._y - 15, true)) {
_root.player._x = _root.player._x + pushSpeed;
}
pushSpeed = pushSpeed + 1;
} else {
pushSpeed = 0;
}
if (int(Math.sqrt(((_x - _root.player._x) * (_x - _root.player._x)) + ((_y - _root.player._y) * (_y - _root.player._y)))) < 200) {
i = 2000;
while (i <= 2010) {
if (this.hitTest(_root["star" + i]._x, _root["star" + i]._y)) {
_root["star" + i].removeMovieClip();
this.gotoAndStop(3);
onEnterFrame = null;
return;
}
i++;
}
}
};
Symbol 1370 MovieClip Frame 3
stop();
_root.soundFX.attachSound("lvl1 boom");
_root.soundFX.start(0, 1);
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
_visilbe = false;
}
};
Instance of Symbol 1338 MovieClip in Symbol 1373 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 2000;
while (i <= 2010) {
if (this.hitTest(_root["star" + i]._x, _root["star" + i]._y)) {
_root["star" + i].removeMovieClip();
break;
}
i++;
}
}
Instance of Symbol 1338 MovieClip in Symbol 1405 MovieClip Frame 4
onClipEvent (load) {
if (this.hitTest(_root.player.area)) {
_root.player.action = "hurt";
}
}
Symbol 1405 MovieClip Frame 11
_root.soundFX.attachSound("lvl1swingclub");
if ((Math.abs(_parent._parent._x - _root.player._x) < 250) && (Math.abs(_parent._parent._y - _root.player._y) < 200)) {
_root.soundFX.start(0, 1);
}
Instance of Symbol 1338 MovieClip in Symbol 1405 MovieClip Frame 13
onClipEvent (load) {
if (this.hitTest(_root.player.area)) {
_root.player.action = "hurt";
}
}
Symbol 1405 MovieClip Frame 57
_parent._parent.action = "still";
Symbol 1409 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1409 MovieClip Frame 5
_parent._parent.action = "still";
Symbol 1410 MovieClip Frame 1
stop();
Symbol 1410 MovieClip Frame 2
stop();
Symbol 1418 MovieClip Frame 1
onEnterFrame = function () {
_alpha = (_alpha - 7.5);
if (_alpha <= 0) {
this._visible = false;
}
};
Symbol 1418 MovieClip Frame 8
stop();
Symbol 1419 MovieClip Frame 1
action = "still";
timer = random(70);
health = 4;
stop();
_xscale = 80;
_yscale = _xscale;
if (direction == "left") {
_xscale = (_xscale * -1);
}
onEnterFrame = function () {
if (action == "still") {
if (timer <= 0) {
action = "attack";
} else {
timer--;
}
} else {
timer = 50 + random(20);
}
if (this.area.hitTest(_root.player.area)) {
if (_x >= _root.player._x) {
if (!_root.floor.hitTest((_root.player._x - pushSpeed) - 27, _root.player._y - 15, true)) {
_root.player._x = _root.player._x - pushSpeed;
}
} else if (!_root.floor.hitTest((_root.player._x + pushSpeed) + 27, _root.player._y - 15, true)) {
_root.player._x = _root.player._x + pushSpeed;
}
pushSpeed = pushSpeed + 0.75;
} else {
pushSpeed = 0;
}
if (action == "attack") {
i = 2000;
while (i <= 2010) {
if (this.area.hitTest(_root["star" + i]._x, _root["star" + i]._y)) {
action = "hurt";
health--;
_root["star" + i].removeMovieClip();
break;
}
i++;
}
}
if (_root.attack.hitTest(this.area)) {
if (action == "attack") {
action = "hurt";
health = health - 2;
} else {
_root.player.attacking = 0;
}
}
if (health <= 0) {
gotoAndStop (2);
onEnterFrame = null;
}
sprite.gotoAndStop(action);
};
Symbol 1432 MovieClip Frame 19
gotoAndPlay (4);
Symbol 1447 MovieClip Frame 1
onEnterFrame = function () {
if ((((!Key.isDown(_root.up)) && (!Key.isDown(_root.down))) && (!Key.isDown(_root.left))) && (!Key.isDown(_root.right))) {
stop();
} else {
play();
}
};
Symbol 1456 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1456 MovieClip Frame 8
_parent._parent.attacking = 0;
Symbol 1462 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1462 MovieClip Frame 5
_parent._parent.attacking = 0;
Symbol 1469 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1469 MovieClip Frame 6
_parent._parent.attacking = 0;
Symbol 1475 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1475 MovieClip Frame 5
_parent._parent.attacking = 0;
Symbol 1485 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1485 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1485 MovieClip Frame 9
_parent._parent.attacking = 0;
Symbol 1496 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1496 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1496 MovieClip Frame 13
_parent._parent.attacking = 0;
Symbol 1501 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1501 MovieClip Frame 3
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1501 MovieClip Frame 6
_parent._parent.attacking = 0;
Symbol 1508 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1508 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1508 MovieClip Frame 9
_parent._parent.attacking = 0;
Symbol 1512 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
_parent._parent.attacking = 0;
spd = 10;
_parent._parent.vSpeed = 0;
_root.player.health = _root.player.health - 2.5;
onEnterFrame = function () {
if ((_parent._parent.direction == "right") && (!_root.floor.hitTest((_parent._parent._x - spd) - 20, _parent._parent._y - 5, true))) {
_parent._parent._x = _parent._parent._x - spd;
} else if ((_parent._parent.direction == "left") && (!_root.floor.hitTest((_parent._parent._x + spd) + 20, _parent._parent._y, true))) {
_parent._parent._x = _parent._parent._x + spd;
}
spd = spd - 1.5;
};
Symbol 1512 MovieClip Frame 7
_parent._parent.action = "down";
Symbol 1513 MovieClip Frame 1
stop();
Symbol 1521 MovieClip Frame 13
stop();
Symbol 1522 MovieClip Frame 1
function walk() {
if ((action != "walking") && (action != "standing")) {
if ((Math.abs(hSpeed) <= Math.abs(walkSpeed)) && (Key.isDown(_root.right))) {
hSpeed = walkSpeed;
}
if ((Math.abs(hSpeed) <= Math.abs(walkSpeed)) && (Key.isDown(_root.left))) {
hSpeed = -walkSpeed;
}
} else {
if (Key.isDown(_root.right)) {
action = "walking";
hSpeed = walkSpeed;
}
if (Key.isDown(_root.left)) {
action = "walking";
hSpeed = -walkSpeed;
}
}
if ((action == "up") || (action == "down")) {
if ((!Key.isDown(_root.left)) && (!Key.isDown(_root.right))) {
hSpeed = hSpeed * 0.9;
}
if (Math.abs(hSpeed) <= 0.2) {
hSpeed = 0;
}
} else {
if ((!Key.isDown(_root.left)) && (!Key.isDown(_root.right))) {
hSpeed = hSpeed * 0.02;
}
if (Math.abs(hSpeed) <= 0.2) {
hSpeed = 0;
}
}
if ((action == "walking") || (action == "standing")) {
if ((!Key.isDown(_root.left)) && (!Key.isDown(_root.right))) {
action = "down";
}
}
_x = (_x + hSpeed);
}
function addVSpeed() {
_y = (_y + vSpeed);
while (_root.floor.hitTest(this._x, this._y - 0.1, true)) {
_y = (_y - 0.1);
vSpeed = 0;
}
if (hSpeed < 0) {
direction = "left";
} else if (hSpeed > 0) {
direction = "right";
}
}
function ladder() {
vSpeed = 0;
if (Key.isDown(_root.up)) {
vSpeed = -walkSpeed;
}
if (Key.isDown(_root.down)) {
vSpeed = walkSpeed;
}
if (Key.isDown(_root.left)) {
hSpeed = -walkSpeed;
}
if (Key.isDown(_root.right)) {
hSpeed = walkSpeed;
}
if (((!Key.isDown(_root.right)) && (!Key.isDown(_root.left))) || (_root.floor.hitTest(_x + hSpeed, _y - 20, true))) {
hSpeed = 0;
}
if (((!Key.isDown(_root.up)) && (!Key.isDown(_root.down))) || (_root.floor.hitTest(_x, (_y - 40) + vSpeed, true))) {
vSpeed = 0;
}
if ((action != "hurt") && (!_root.ladder.hitTest(this._x, this._y - 20, true))) {
action = "down";
vSpeed = 0;
}
_x = (_x + hSpeed);
}
function fall() {
if (!_root.floor.hitTest(this._x, this._y, true)) {
vSpeed = vSpeed + 0.9;
} else {
vSpeed = 0;
if ((action == "down") || (action == "down")) {
action = "standing";
}
}
if ((vSpeed > 0) && (action != "hurt")) {
action = "down";
}
}
function attack() {
if (attackKey == false) {
if ((action != "ladder") && (Key.isDown(_root.key1))) {
attacking = 1;
} else if ((action != "wall") && (Key.isDown(_root.key2))) {
attacking = 2;
}
attackKey = true;
}
if ((!Key.isDown(_root.key1)) && (!Key.isDown(_root.key2))) {
attackKey = false;
}
if (action == "hurt") {
attacking = 0;
}
}
function walls() {
if ((action != "wall") && (direction == "right")) {
while (_root.floor.hitTest(this._x + 20, this._y - 15, true)) {
_x = (_x-1);
if ((action == "up") || (action == "down")) {
action = "wall";
vSpeed = 1;
}
}
} else if ((action != "wall") && (direction == "left")) {
while (_root.floor.hitTest(this._x - 20, this._y - 15, true)) {
_x = (_x+1);
if ((action == "up") || (action == "down")) {
action = "wall";
vSpeed = 1;
}
}
}
if (action == "up") {
while (_root.floor.hitTest(this._x, this._y - 40, true)) {
_y = (_y + 0.5);
if (vSpeed < 0) {
vSpeed = vSpeed * -1;
}
action = "down";
}
}
if (action == "wall") {
if (direction == "left") {
if ((!Key.isDown(_root.left)) || (!_root.floor.hitTest(this._x - 22, this._y - 18, true))) {
action = "down";
hSpeed = 1;
} else if (Key.isDown(_root.left)) {
if (Key.isDown(_root.up) && (!_root.floor.hitTest(this._x - 22, this._y - 50, true))) {
vSpeed = -walkSpeed;
_x = (_x-1);
hSpeed = -1;
if (!_root.floor.hitTest(this._x - 20, this._y, true)) {
hSpeed = -1;
}
} else {
vSpeed = 0;
}
if (Key.isDown(_root.down)) {
vSpeed = 5;
}
}
if (!Key.isDown(_root.left)) {
vSpeed = 1;
if (Key.isDown(_root.up) || (Key.isDown(_root.right))) {
vSpeed = -10;
action = "up";
hSpeed = walkSpeed * 2;
direction = "right";
}
}
} else if (direction == "right") {
if ((!Key.isDown(_root.right)) || (!_root.floor.hitTest(this._x + 22, this._y - 18, true))) {
action = "down";
hSpeed = -1;
} else if (Key.isDown(_root.right)) {
if (Key.isDown(_root.up) && (!_root.floor.hitTest(this._x + 22, this._y - 50, true))) {
vSpeed = -4;
_x = (_x+1);
hSpeed = 1;
if (!_root.floor.hitTest(this._x + 20, this._y, true)) {
hSpeed = 1;
}
} else {
vSpeed = 0;
}
if (Key.isDown(_root.down)) {
vSpeed = 5;
}
}
if (!Key.isDown(_root.right)) {
vSpeed = 1;
if (Key.isDown(_root.up) || (Key.isDown(_root.left))) {
vSpeed = -10;
action = "up";
hSpeed = (-walkSpeed) * 2;
direction = "right";
}
}
}
if (_root.floor.hitTest(this._x, this._y + 1, true)) {
vSpeed = 0;
action = "standing";
}
} else if ((Key.isDown(_root.up) || (Key.isDown(_root.down))) && (_root.ladder.hitTest(this._x, this._y - 20, true))) {
action = "ladder";
}
}
stop();
walkSpeed = 5;
hSpeed = 0;
vSpeed = 0;
attacking = 0;
Lattacking = 0;
action = "down";
direction = "right";
spriteChangeTimer = 2;
actualSprite = action;
_xscale = 70;
_yscale = _xscale;
attackKey = false;
health = 50;
onEnterFrame = function () {
if (health <= 0) {
_xscale = sprite._xscale;
nextFrame();
}
if ((action == "standing") || (action == "walking")) {
walk();
fall();
walls();
if (Key.isDown(_root.up)) {
vSpeed = (-walkSpeed) * 2;
action = "up";
}
} else if (action == "up") {
fall();
walk();
walls();
} else if (action == "down") {
walk();
fall();
walls();
} else if (action == "wall") {
walls();
} else if (action == "ladder") {
ladder();
} else if (action == "hurt") {
walk();
fall();
walls();
}
attack();
addVSpeed();
if ((attacking == 0) || (attacking != Lattacking)) {
if (attacking == 1) {
if (action == "wall") {
sprite.gotoAndStop("wallSword");
} else if (action == "up") {
sprite.gotoAndStop("upSword");
} else if ((action == "standing") || (action == "walking")) {
sprite.gotoAndStop("standSword");
} else {
sprite.gotoAndStop("sword");
}
} else if (attacking == 2) {
if (action == "ladder") {
sprite.gotoAndStop("climbStar");
} else if (action == "down") {
sprite.gotoAndStop("downStar");
} else if ((action == "standing") || (action == "walking")) {
sprite.gotoAndStop("standStar");
} else {
sprite.gotoAndStop("star");
}
} else {
sprite.gotoAndStop(action);
}
}
Lattacking = attacking;
if (direction == "right") {
this.sprite._xscale = -100;
} else {
this.sprite._xscale = 100;
}
sprite._rotation = sprite._rotation + (((hSpeed * 2) - sprite._rotation) * 0.2);
};
Symbol 1522 MovieClip Frame 2
stop();
speed = 2;
onEnterFrame = function () {
if (!_root.floor.hitTest(_x, _y, true)) {
_y = (_y + speed);
if (speed < 10) {
speed++;
}
} else {
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
_root.gotoAndStop("gameOver");
_visible = false;
}
};
}
};
Symbol 1526 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (int(_root.player.health * 2) > _currentframe) {
nextFrame();
} else if (int(_root.player.health * 2) < _currentframe) {
prevFrame();
}
if (_root.player.health <= 0) {
this.onEnterFrame = function () {
_x = (_x + 3);
_y = (_y + 2);
_rotation = (_rotation + 2);
_alpha = (_alpha - 2);
};
}
};
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1559 MovieClip Frame 1
_visible = false;
Symbol 1568 MovieClip Frame 11
if (random(10) == 0) {
_parent._parent.action = "popdown";
} else if (random(5) == 0) {
_parent._parent.action = "trick";
} else {
_parent._parent.action = "throwthing";
}
Symbol 1573 MovieClip Frame 6
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1584 MovieClip Frame 1
_visible = false;
_root.makeShoe(((_parent._parent._parent._x + _parent._parent._x) + _parent._x) + _x, ((_parent._parent._parent._y + _parent._parent._y) + _parent._y) + _y);
Symbol 1598 MovieClip Frame 12
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1598 MovieClip Frame 42
_parent._parent.action = "popdown";
Symbol 1605 MovieClip Frame 39
_parent._parent.action = "throwthing";
Symbol 1620 MovieClip Frame 55
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1627 MovieClip Frame 1
_root.girlHealth = _root.girlHealth - 18;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1627 MovieClip Frame 6
_parent._parent.action = "popdown";
Symbol 1635 MovieClip Frame 1
_root.bossHealth = _root.bossHealth - 5;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1635 MovieClip Frame 7
_parent._parent.action = "popdown";
Symbol 1643 MovieClip Frame 12
stop();
timer = random(20);
onEnterFrame = function () {
if (timer <= 0) {
play();
} else {
timer--;
}
};
Symbol 1643 MovieClip Frame 25
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1660 MovieClip Frame 17
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1660 MovieClip Frame 40
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1667 MovieClip Frame 1
_root.bossHealth = _root.bossHealth - 5;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1667 MovieClip Frame 10
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1678 MovieClip Frame 1
_root.girlHealth = _root.girlHealth - 20;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1678 MovieClip Frame 12
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1708 MovieClip Frame 29
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1708 MovieClip Frame 33
_root.soundFX.attachSound("lvl1swingsclub");
_root.soundFX.start(0, 1);
Symbol 1708 MovieClip Frame 37
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1708 MovieClip Frame 41
_root.soundFX.attachSound("lvl1swingsclub");
_root.soundFX.start(0, 1);
Symbol 1708 MovieClip Frame 45
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1708 MovieClip Frame 61
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1710 MovieClip Frame 1
action = "hide";
_visible = false;
count = _root.count;
_root.count++;
this.onEnterFrame = function () {
if (action == "hide") {
this.onPress = null;
_visible = false;
if (_root.active == count) {
if (random(5) == 0) {
action = "girl";
} else if (random(8) == 0) {
action = "bossfast";
} else if (random(5) == 0) {
action = "onlythrow";
} else if (random(5) == 0) {
action = "chaos";
} else {
action = "popup";
}
_visible = true;
}
} else if ((((action != "hurt") && (action != "onlyhurt")) && (action != "girlhurt")) && (action != "chaos")) {
this.onPress = function () {
if ((((action != "girl") && (action != "popdown")) && (action != "bossfast")) && (action != "onlythrow")) {
if (sprite.anim.girl.hitTest(_parent._xmouse, _parent._ymouse, true)) {
action = "girlhit";
this.onPress = null;
} else {
action = "bosshit";
this.onPress = null;
}
} else if ((action == "bossfast") || (action == "onlythrow")) {
action = "onlyhurt";
this.onPress = null;
} else if (action == "girl") {
action = "girlhurt";
this.onPress = null;
}
};
}
sprite.gotoAndStop(action);
};
Symbol 1720 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x + ((_root._xmouse - _x) * 0.3));
_y = _root._ymouse;
};
Symbol 1722 MovieClip Frame 1
onEnterFrame = function () {
_y = (_y + ((_root._ymouse - _y) * 0.25));
_x = _root._xmouse;
};
Symbol 1727 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.bossHealth) > _currentframe) {
nextFrame();
} else if (int(_root.bossHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1735 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.playerHealth) > _currentframe) {
nextFrame();
} else if (int(_root.playerHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1738 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.girlHealth) > _currentframe) {
nextFrame();
} else if (int(_root.girlHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1740 MovieClip Frame 1
onEnterFrame = function () {
_x = _root.player._x;
_rotation = (-(Math.atan((-(_root._ymouse - _y)) / (_root._xmouse - _x)) * 57.3));
if (_root._xmouse < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
};
Symbol 1743 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x + ((_root._xmouse - _x) * 0.5));
_x = (_x / 2);
_x = (_x + 100);
};
Symbol 1749 MovieClip Frame 1
stop();
_visible = false;
_root.onMouseDown = function () {
_root.soundFX.attachSound("gun");
_root.soundFX.start(0, 1);
_visible = true;
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
};
Symbol 2098 MovieClip Frame 1
talk = new Sound();
talk.attachSound("whats wrong");
talk.start(0, 1);
Symbol 2113 MovieClip Frame 1
talk = new Sound();
talk.attachSound("I'm a man");
talk.start(0, 1);
Symbol 2161 MovieClip Frame 1
talk = new Sound();
talk.attachSound("lvl1 boom");
talk.start(0, 1);
Symbol 2182 MovieClip Frame 1
_alpha = 0;
_root.onMouseDown = function () {
if (_root.cutscene) {
_root.globalsound.stop("lvl1Music");
_root.globalsound.stop("lvl2Music");
_root.globalsound.stop("lvl3Music");
_root.globalsound.stop("bossMusic");
_root.globalsound.stop("introMusic");
_root.globalsound.stop("introMusic2");
_root.globalsound.stop("ending song2");
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("cutsceneSelect");
} else {
_root.globalsound.stop("ending music");
_root.globalsound.stop("ending music2");
_root.globalsound.setVolume(100);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("credits");
}
};
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
};
Symbol 2183 MovieClip Frame 605
onEnterFrame = function () {
if (_root.globalsound.getVolume() >= 0) {
_root.globalsound.setVolume(_root.globalsound.getVolume() - 5);
}
};
Symbol 2183 MovieClip Frame 625
_root.globalsound.stop("ending song");
_root.globalsound.attachSound("ending song2");
_root.globalsound.start(0, 9999);
_root.globalsound.setVolume(100);
onEnterFrame = null;
Symbol 2183 MovieClip Frame 1505
stop();
Symbol 2185 MovieClip Frame 1
_alpha = 0;
onRollOver = function () {
_parent.active = false;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
};
};
onRollOut = function () {
_parent.active = true;
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
};
onDragOut == function () {
_parent.active = true;
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
};
Symbol 2190 MovieClip Frame 1
this._y = 300;
this._x = -7;
this.active = true;
this.onEnterFrame = function () {
if (this.active) {
this._y = this._y - 2;
} else {
this._y = this._y - 1;
}
if (this._y <= -1442) {
this.onEnterFrame = null;
}
};
Instance of Symbol 2185 MovieClip in Symbol 2190 MovieClip Frame 1
on (release) {
_root.globalsound.stop("credit song");
_root.globalsound.attachSound("title song");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 9999);
_root.onMouseDown = null;
_root.onEnterFrame = null;
_root.gotoAndStop("title");
}