Frame 1
function speak(name, dialogue) {
var _local1 = _root;
_local1.attachMovie("dialogue", "dialogue", 10000);
_local1.dialogue.name = name;
_local1.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();
Frame 3
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 4
stop();
_quality = "Low";
Frame 5
stop();
Frame 6
stop();
soundFX = new Sound();
Frame 7
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 () {
var _local1 = this;
_local1.radians = _local1.radians + _local1.increment;
_local1._x = _local1._x + Math.sin(_local1.radians);
_local1._y = _local1._y + _local1.yspeed;
if (_local1._y >= mHeight) {
_local1._y = -10;
_local1._x = -10 + (Math.random() * mWidth);
}
if ((_local1._x >= mWidth) || (_local1._x <= 0)) {
_local1._y = -10;
_local1._x = -10 + (Math.random() * mWidth);
}
};
i++;
}
Frame 8
bBut.useHandCursor = false;
setKey = "done";
someListener = new Object();
someListener.onKeyDown = function () {
_root[setKey] = Key.getCode();
setKey = "done";
};
Key.addListener(someListener);
Instance of Symbol 580 MovieClip in Frame 8
onClipEvent (load) {
_quality = "High";
qual = "High";
}
Frame 9
bBut.useHandCursor = false;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
onEnterFrame = null;
}
};
Frame 10
cutscene = true;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
onEnterFrame = null;
}
};
Frame 11
_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 12
_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 13
function createWord(word, x, y) {
var _local1 = _root;
_local1.attachMovie("lvl1" + word, "word" + wordCounter, wordCounter);
_local1["word" + wordCounter]._x = x;
_local1["word" + wordCounter]._y = y;
wordCounter++;
if (wordCounter >= 1200) {
wordCounter = 1100;
}
}
function createBaddy(baddyType) {
var _local1 = _root;
var _local2 = baddyType;
if (_local2 != "lvl1 ogre") {
_local1.attachMovie(_local2, "baddyType" + baddyCounter, baddyCounter);
} else {
_local1.attachMovie(_local2, "baddyType" + baddyCounter, 999);
}
_local1[_local2 + baddyCounter]._y = _local1.player._y;
if (random(2) == 0) {
_local1["baddyType" + baddyCounter]._x = (_local1.camera._x - (_local1.camera._xscale * 2)) - 100;
} else {
_local1["baddyType" + baddyCounter]._x = (_local1.camera._x + (_local1.camera._xscale * 2)) + 100;
}
_local1["baddyType" + baddyCounter]._y = _local1.player.ground - 15;
if (_local2 != "lvl1 ogre") {
_local1["baddyType" + baddyCounter]._y = _local1["baddyType" + baddyCounter]._y + ((baddyCounter - 1000) * 0.5);
} else {
_local1["baddyType" + baddyCounter]._y = _local1["baddyType" + baddyCounter]._y + -0.5;
}
baddyCounter = baddyCounter + 7;
if (baddyCounter >= 1050) {
baddyCounter = baddyCounter - 50;
}
}
function clearAll() {
var _local1 = _root;
_local1.player.removeMovieClip();
_local1.HUD.removeMovieClip();
_local1.dragn.removeMovieClip();
_local1.bomb.removeMovieClip();
_local1.egg.removeMovieClip();
i = 999;
while (i <= 1050) {
_local1["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 997 MovieClip "camera" in Frame 13
onClipEvent (load) {
level = 1;
}
Frame 14
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 15
function createBossMouth(x, y, rotation, xscale, yscale) {
var _local1 = _root;
_local1.attachMovie("bossMouth", "bossMouth", 500);
_local1.bossMouth._x = x;
_local1.bossMouth._y = y;
_local1.bossMouth._rotation = rotation;
_local1.bossMouth._xscale = xscale;
_local1.bossMouth._yscale = yscale;
}
function createBomb(x, y, force) {
var _local1 = _root;
_local1.attachMovie("lvl2 player bomb", "bomb" + bombCounter, bombCounter);
_local1["bomb" + bombCounter]._x = x;
_local1["bomb" + bombCounter]._y = y;
_local1["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 16
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 17
function createEnemyBullet(x, y, angle) {
var _local1 = _root;
_local1.attachMovie("lvl3 enemyBullet", "bullet" + bulletCounter, bulletCounter);
_local1["bullet" + bulletCounter]._x = x;
_local1["bullet" + bulletCounter]._y = y;
_local1["bullet" + bulletCounter].angle = angle;
bulletCounter++;
if (bulletCounter > 3500) {
bulletCounter = 3000;
}
}
function createStar(direction) {
var _local1 = _root;
_local1.attachMovie("lvl3 star", "star" + starCounter, starCounter);
_local1["star" + starCounter]._x = _local1.player._x;
_local1["star" + starCounter]._y = _local1.player._y - 20;
_local1["star" + starCounter].direction = direction;
starCounter++;
if (starCounter > 2010) {
starCounter = 2000;
}
}
function clearLvl3() {
var _local1 = _root;
i = 2000;
while (i <= 2010) {
_local1["star" + i].removeMovieClip();
i++;
}
i = 3000;
while (i <= 3500) {
_local1["bullet" + i].removeMovieClip();
i++;
}
_local1._x = 0;
_local1._y = 0;
}
stop();
lastLevel = "lvl3";
_root.level3 = true;
_root.ButtlockData.data.level3 = _root.level3;
_root.ButtlockData.flush();
stop();
starCounter = 2000;
bulletCounter = 3000;
onEnterFrame = function () {
var _local1 = _root;
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 () {
var _local1 = _root;
_local1._x = int((-_local1.player._x) + 200);
_local1._y = int((-_local1.player._y) + 150);
hud._x = -_local1._x;
hud._y = -_local1._y;
};
}
_local1._x = int((-_local1.player._x) + 200);
_local1._y = int((-_local1.player._y) + 150);
hud._x = -_local1._x;
hud._y = -_local1._y;
};
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1475 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "up";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "left";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "down";
}
Instance of Symbol 1426 MovieClip in Frame 17
//component parameters
onClipEvent (initialize) {
direction = "right";
}
Frame 18
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 19
function makeShoe(x, y) {
var _local1 = _root;
_local1.attachMovie("lvl3 shoe", "shoe" + shoeCounter, shoecounter);
_local1["shoe" + shoeCounter]._x = x;
_local1["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 () {
var _local1 = _root;
globalsound.setVolume(globalsound.getVolume() - 5);
if (globalsound.getVolume() <= 0) {
globalsound.stop("introMusic");
globalsound.setVolume(100);
globalsound.attachSound("bossMusic");
globalsound.start(0, 999);
onEnterFrame = function () {
var _local1 = _root;
if (playerHealth <= 0) {
_local1.gotoAndStop("gameOver");
}
if (bossHealth <= 0) {
_local1.gotoAndStop("outtro");
}
if (girlHealth <= 0) {
_local1.gotoAndStop("gameOver");
}
if ((((active < 0) && (bossHealth > 0)) && (playerHealth > 0)) && (girlHealth > 0)) {
active = random(count);
}
};
}
};
Frame 20
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 21
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 2253 MovieClip in Frame 21
/* 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 () {
var _local1 = this;
_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 () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
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 () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, 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 () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.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) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.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 () {
var _local1 = _root;
if (direction == "right") {
_x = (_x + (_local1.player.walkSpeed * 3));
} else {
_x = (_x - (_local1.player.walkSpeed * 3));
}
if (_local1.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 () {
var _local1 = _root;
if (this.hitTest(_local1.bossMouth)) {
_local1.boss.lastAction = _local1.boss.action;
_local1.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 () {
var _local1 = this;
if (_local1._currentframe < _root.dragn.health) {
_local1.gotoAndStop(_local1._currentframe + 1);
} else if (_local1._currentframe > _root.dragn.health) {
_local1.gotoAndStop(_local1._currentframe - 1);
}
if ((_local1._currentframe <= 1) && (_alpha > 0)) {
_local1._alpha = _local1._alpha - 2;
_y = (_y + 1);
_rotation = (_rotation + 2);
} else if ((_local1._currentframe > 1) && (_alpha < 100)) {
_local1._alpha = _local1._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 () {
var _local1 = _root;
if (!Key.isDown(_local1.key1)) {
attackDown = false;
}
if (!Key.isDown(_local1.key2)) {
blockDown = false;
}
if (action == "standing") {
if (Key.isDown(_local1.up)) {
vSpeed = -15;
action = "up";
} else if (Key.isDown(_local1.left) || (Key.isDown(_local1.right))) {
action = "walking";
} else if (Key.isDown(_local1.key2) && (!blockDown)) {
action = "blocking";
blockDown = true;
} else if (Key.isDown(_local1.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(_local1.up)) {
vSpeed = -15;
action = "up";
} else if (Key.isDown(_local1.key1) && (!attackDown)) {
attackDown = true;
action = "attacking";
} else if (Key.isDown(_local1.key2) && (!blockDown)) {
blockDown = true;
action = "blocking";
} else if (Key.isDown(_local1.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_local1.dragon) && (hSpeed > -5)) || (_local1.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_local1.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_local1.dragon) && (hSpeed < 5)) || (_local1.dragon && (hSpeed < 8))) {
hSpeed = hSpeed + 1;
}
} else {
hSpeed = hSpeed * 0.7;
action = "standing";
}
} else if (action == "attacking") {
if (Key.isDown(_local1.key1)) {
attackDown = true;
}
if (Key.isDown(_local1.left)) {
if (hSpeed > -1) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_local1.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(_local1.key1)) {
attackDown = true;
}
if (Key.isDown(_local1.key2)) {
blockDown = true;
}
if (Key.isDown(_local1.left)) {
if (hSpeed > -1) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_local1.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(_local1.key2)) {
blockDown = true;
}
hSpeed = hSpeed * 0.6;
if ((hSpeed < 0.5) && (hSpeed > -0.5)) {
hSpeed = 0;
}
} else if (action == "up") {
if (Key.isDown(_local1.up)) {
vSpeed = vSpeed - 0.1;
}
if (Key.isDown(_local1.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_local1.dragon) && (hSpeed > -5)) || (_local1.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_local1.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_local1.dragon) && (hSpeed < 5)) || (_local1.dragon && (hSpeed < 8))) {
hSpeed = hSpeed + 1;
}
}
if (vSpeed >= 0) {
action = "down";
}
} else if (action == "down") {
if (Key.isDown(_local1.left)) {
if (hSpeed > 0) {
hSpeed = hSpeed * 0.7;
}
direction = "left";
if (((!_local1.dragon) && (hSpeed > -5)) || (_local1.dragon && (hSpeed > -8))) {
hSpeed = hSpeed - 1;
}
} else if (Key.isDown(_local1.right)) {
if (hSpeed < 0) {
hSpeed = hSpeed * 0.7;
}
direction = "right";
if (((!_local1.dragon) && (hSpeed < 5)) || (_local1.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 < _local1.leftEdge._x) {
_x = _local1.leftEdge._x;
}
if (_x > _local1.rightEdge._x) {
_x = _local1.rightEdge._x;
}
_local1.camera._x = _x;
if (_local1.dragon && ((_local1.camera._y + 290) > ground)) {
_local1.camera._y = _local1.camera._y - 5;
}
if ((_local1.camera._x - (_local1.camera._xscale * 2)) < -610) {
_local1.camera._x = -610 + (_local1.camera._xscale * 2);
}
if ((_local1.camera._x + (_local1.camera._xscale * 2)) > 970) {
_local1.camera._x = 970 - (_local1.camera._xscale * 2);
}
_local1.HUD._x = _local1.camera._x;
_local1.HUD._y = _local1.camera._y;
_local1.HUD._xscale = _local1.camera._xscale;
_local1.HUD._yscale = _local1.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 () {
var _local1 = _root;
var _local2 = this;
if (_local1.player._x > _x) {
direction = "right";
} else {
direction = "left";
}
if (_local1.player.area.hitTest(_local2.area)) {
if (_local1.player._x < _x) {
_local1.player.hSpeed = _local1.player.hSpeed - 1.5;
if (_local1.player.hSpeed > 2) {
hSpeed = hSpeed + 1;
}
} else {
_local1.player.hSpeed = _local1.player.hSpeed + 1;
hSpeed = hSpeed - 1;
}
}
if (_local1.hit.hitTest(_local2.area)) {
if (direction == "left") {
hSpeed = 3;
_local1.player.hSpeed = _local1.player.hSpeed - 1;
} else if (direction == "right") {
hSpeed = -3;
_local1.player.hSpeed = _local1.player.hSpeed + 1;
}
action = "hurt";
health--;
}
if (action == "standing") {
if (Math.abs(_x - _local1.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 - _local1.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) {
_local2.gotoAndStop("dead");
_local2.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 () {
var _local1 = _root;
var _local2 = this;
if (_local1.player._x > _x) {
direction = "right";
} else {
direction = "left";
}
if (_local1.player.area.hitTest(_local2.area)) {
if (_local1.player._x < _x) {
_local1.player.hSpeed = _local1.player.hSpeed - 1;
hSpeed = hSpeed + 2;
} else {
_local1.player.hSpeed = _local1.player.hSpeed + 1;
hSpeed = hSpeed - 2;
}
}
if (_local1.hit.hitTest(_local2.area)) {
if (direction == "left") {
hSpeed = 3;
_local1.player.hSpeed = _local1.player.hSpeed - 1;
} else if (direction == "right") {
hSpeed = -3;
_local1.player.hSpeed = _local1.player.hSpeed + 1;
}
health--;
action = "hurt";
}
if (action == "standing") {
if (Math.abs(_x - _local1.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 - _local1.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) {
_local2.gotoAndStop("dead");
_local2.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 () {
var _local1 = _parent;
if (Math.abs(_local1._parent.hSpeed) > 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (((_local1._parent.hSpeed < -2) && (_local1._parent._x > _root.player._x)) || ((_local1._parent.hSpeed > 2) && (_local1._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 () {
var _local1 = _root;
if ((_local1.dragn.direction == "right") && (_local1.dragn._x > _local1.leftEdge._x)) {
_local1.dragn._x = _local1.dragn._x - 10;
} else if ((_local1.dragn.direction == "left") && (_local1.dragn._x < _local1.rightEdge._x)) {
_local1.dragn._x = _local1.dragn._x + 10;
}
};
Symbol 340 MovieClip Frame 27
onEnterFrame = null;
Symbol 340 MovieClip Frame 99
_parent._parent.action = "standing";
Symbol 357 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 Boss engine");
_root.soundFX.start(0, 999);
Symbol 357 MovieClip Frame 74
stop();
Symbol 369 MovieClip Frame 1
if (!_root.dragn.initialDizzy) {
gotoAndPlay (11);
}
_root.dragn.initialDizzy = false;
onEnterFrame = function () {
var _local1 = _parent;
var _local2 = _root;
if (_local1._parent.hitTest(_local2.hit)) {
_local1._parent.action = "hurt";
_local1._parent.health = _local1._parent.health - 5;
}
if (_local1._parent.dizzyTimer <= 0) {
_local2.soundFX.attachSound("lvl1 Boss engine");
_local2.soundFX.start(0, 999);
_local1._parent.action = "up";
} else {
_local1._parent.dizzyTimer--;
}
};
Symbol 369 MovieClip Frame 21
gotoAndPlay (11);
Symbol 376 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 bossHurt");
_root.soundFX.start(0, 1);
onEnterFrame = function () {
_parent._parent.dizzyTimer--;
};
Symbol 376 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 () {
var _local1 = _parent;
if (((_local1._parent.hSpeed < -2) && (_local1._parent._x > _root.player._x)) || ((_local1._parent.hSpeed > 2) && (_local1._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 () {
var _local1 = _root;
var _local2 = this;
if (_local1.player.area.hitTest(_local2.area)) {
if (_local1.player._x < _x) {
_local1.player._x = _local1.player._x + 2;
_local1.player.hSpeed = _local1.player.hSpeed - 2;
} else {
_local1.player._x = _local1.player._x - 2;
_local1.player.hSpeed = _local1.player.hSpeed + 2;
}
}
if (action == "POSE") {
if (poseTimer <= 0) {
_local1.bossBG.gotoAndStop(4);
_local1.HUD.attachMovie("lvl1 BossHealth", "bossHB", 1);
_local1.HUD.bossHB._x = -175;
_local1.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 = _local1.player._x - 250;
} else {
wantedX = _local1.player._x + 250;
}
if (wantedX < _local1.leftEdge._x) {
wantedX = _local1.leftEdge._x;
} else if (wantedX > _local1.rightEdge._x) {
wantedX = _local1.rightEdge._x;
}
if ((wantedX > _local2._x) && (hSpeed < 10)) {
hSpeed = hSpeed + 1;
} else if ((wantedX < _local2._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) < (_local1.player.ground - 10)) {
_y = (_y + vAccel);
} else {
_y = (_local1.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)) {
_local1.soundFX.attachSound("lvl1 Boss engine");
_local1.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 > _local1.player._x) && (action != "POSE")) {
_xscale = -100;
direction = "left";
} else {
_xscale = 100;
direction = "right";
}
if ((((action != "dizzy") && (action != "up")) && (action != "hurt")) && (_local1.player.area.hitTest(_local2.area))) {
_local1.player.action = "hurt";
_local1.player.health = _local1.player.health - 5;
if (direction == "left") {
_local1.player.hspeed = -25;
} else {
_local1.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 () {
var _local1 = this;
var _local2 = _root;
if (_alpha < 100) {
_alpha = (_alpha + 25);
}
if ((_y >= (_local2.player.ground - vSpeed)) || (_local2.player.area.hitTest(_local1._x, _local1._y))) {
_local1.gotoAndStop(2);
}
if (vSpeed < 10) {
vSpeed++;
}
if (_local2.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 () {
var _local1 = _root;
var _local2 = this;
_rotation = (vSpeed * 3);
if (timer <= 0) {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
_local2.removeMovieClip();
}
} else {
timer--;
}
if (direction == "left") {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
vSpeed = vSpeed + 0.7;
if (_y > _local1.player.ground) {
vSpeed = -bounce;
}
if (!reversed) {
if (_local1.player.area.hitTest(_local2._x, _local2._y)) {
if ((_local1.player.action == "blocking") || (_local1.player.action == "blockHit")) {
_local1.player.action = "blockHit";
reversed = true;
timer = 400 / speed;
_alpha = 100;
if (direction == "left") {
direction = "right";
} else {
direction = "left";
}
} else {
_local1.player.action = "hurt";
_local1.player.health = _local1.player.health - 6;
if (direction == "left") {
_local1.player.hspeed = _local1.player.hspeed - (speed * 1.5);
} else {
_local1.player.hspeed = _local1.player.hspeed + (speed * 1.5);
}
_local2.gotoAndStop(2);
}
}
} else if ((((_local1.dragn.action == "standing") || (_local1.dragn.action == "shooting")) || (_local1.dragn.action == "dizzy")) && (_local1.dragn.area.hitTest(_local2._x, _local2._y))) {
_local1.dragn.action = "dizzy";
_local1.dragn.initialDizzy = true;
_local1.dragn.dizzyTimer = 90;
_local2.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 () {
var _local1 = this;
if (_local1._currentframe < _root.player.health) {
_local1.gotoAndStop(_local1._currentframe + 1);
} else if (_local1._currentframe > _root.player.health) {
_local1.gotoAndStop(_local1._currentframe - 1);
}
if ((_local1._currentframe <= 1) && (_alpha > 0)) {
_local1._alpha = _local1._alpha - 5;
_y = (_y + 1);
_rotation = (_rotation - 2);
} else if ((_local1._currentframe > 1) && (_alpha < 100)) {
_local1._alpha = _local1._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 () {
var _local1 = _parent;
_root.createBossMouth(((_x + _local1._x) + _local1._parent._x) + _local1._parent._parent._x, ((_y + _local1._y) + _local1._parent._y) + _local1._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 () {
var _local1 = _root;
if (_local1.setKey == "left") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.left];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 442 MovieClip Frame 1
_xscale = 0;
_root.playButton._alpha = 0;
_root.playButton.enabled = false;
onEnterFrame = function () {
var _local1 = _root;
_xscale = ((_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100);
if ((_xscale == 100) && (_local1.playButton._alpha < 105)) {
_local1.playButton._alpha = _local1.playButton._alpha + 10;
} else if (_local1.playButton._alpha >= 100) {
_local1.playButton.enabled = true;
onEnterFrame = null;
}
};
Symbol 447 Button
on (release) {
_root.play();
}
Symbol 453 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 456 MovieClip Frame 1
jump = 15;
initX = _x;
ground = _y;
vSpeed = -jump;
action = "bounce";
onEnterFrame = function () {
var _local1 = _root;
if (action == "bounce") {
vSpeed = vSpeed + 0.8;
_y = (_y + vSpeed);
if ((_y + vSpeed) > ground) {
_y = ground;
vSpeed = -jump;
}
if (this.hitTest(_local1.ball._x, _local1.ball._y, true)) {
action = "fall";
hSpeed = _local1.ball.hSpeed * 0.9;
_local1.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 458 MovieClip Frame 1
action = "ready";
onEnterFrame = function () {
var _local1 = _root;
if (action == "ready") {
_x = _local1.cannon._x;
_y = _local1.cannon._y;
_x = (_x + (Math.cos((-_local1.cannon._rotation) * 0.0174532925) * 50));
_y = (_y + (Math.sin(_local1.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 460 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 466 MovieClip Frame 1
stop();
_root.onMouseDown = function () {
_root.charge.stat = "charge";
};
_root.onMouseUp = function () {
var _local1 = _root;
_local1.charge.stat = "none";
if (_local1.ball.action == "ready") {
_local1.ball.action = "flying";
_local1.ball.hSpeed = (_local1.charge._currentframe * Math.cos((-_local1.cannon._rotation) * 0.0174532925)) / 2;
_local1.ball.vSpeed = (_local1.charge._currentframe * Math.sin(_local1.cannon._rotation * 0.0174532925)) / 2;
}
};
charge.stat = "none";
onEnterFrame = function () {
if (stat == "charge") {
play();
} else if (_currentframe > 1) {
prevFrame();
}
};
Symbol 475 Button
on (press) {
getURL ("http://www.monkeyinthepants.com", "_blank");
}
Symbol 520 Button
on (release) {
_root.play();
}
Symbol 521 MovieClip Frame 112
_root.play();
stop();
Symbol 527 MovieClip Frame 10
_root.nextFrame();
Symbol 538 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 538 MovieClip Frame 48
stop();
_visible = false;
onEnterFrame = null;
this.removeMovieClip();
Symbol 539 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 543 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 547 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 551 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 558 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 559 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 561 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
var _local1 = _parent;
if ((_local1.active && (_local1.slider._y > (_y - 12.5))) && (_local1.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 570 MovieClip Frame 1
stop();
_root.onMouseUp = function () {
_root.onMouseUp = null;
_root.menu.gotoAndPlay(2);
};
Symbol 570 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 561 MovieClip in Symbol 570 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 561 MovieClip in Symbol 570 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 561 MovieClip in Symbol 570 MovieClip Frame 6
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 561 MovieClip in Symbol 570 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 561 MovieClip in Symbol 570 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 561 MovieClip in Symbol 570 MovieClip Frame 6
on (release) {
_parent.onEnterFrame = function () {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
Mouse.show();
_root.gotoAndStop("credits");
}
};
}
Instance of Symbol 561 MovieClip in Symbol 570 MovieClip Frame 6
on (release) {
getURL ("http://www.monkeyinthepants.com", "_blank");
}
Symbol 580 MovieClip Frame 1
stop();
this.useHandCursor = false;
_quality = _root.qual;
this.onPress = function () {
var _local1 = _root;
if (_local1.qual == "High") {
_local1.qual = "Medium";
} else if (_local1.qual == "Medium") {
_local1.qual = "Low";
} else if (_local1.qual == "Low") {
_local1.qual = "Best";
} else if (_local1.qual == "Best") {
_local1.qual = "High";
}
_quality = _local1.qual;
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
onEnterFrame = function () {
_quality = _root.qual;
};
Symbol 584 Button
on (release) {
_root.someListener.onKeyDown = null;
_root.gotoAndStop("title");
}
Symbol 587 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "up";
};
onEnterFrame = function () {
var _local1 = _root;
if (_local1.setKey == "up") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.up];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 590 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "down";
};
onEnterFrame = function () {
var _local1 = _root;
if (_local1.setKey == "down") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.down];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 593 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "right";
};
onEnterFrame = function () {
var _local1 = _root;
if (_local1.setKey == "right") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.right];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 596 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "key1";
};
onEnterFrame = function () {
var _local1 = _root;
if (_local1.setKey == "key1") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.key1];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 599 MovieClip Frame 1
stop();
this.useHandCursor = false;
this.onPress = function () {
_root.setKey = "key2";
};
onEnterFrame = function () {
var _local1 = _root;
if (_local1.setKey == "key2") {
keyset.text = "Press Key";
} else {
keyset.text = _local1.K[_local1.key2];
}
};
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onDragOut = function () {
gotoAndStop (1);
};
Symbol 605 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 611 MovieClip Frame 1
onEnterFrame = function () {
if (_root.pressEsc) {
textField.text = "Enabled";
} else {
textField.text = "Disabled";
}
};
this.onPress = function () {
var _local1 = _root;
if (_local1.pressEsc) {
_local1.pressEsc = false;
} else {
_local1.pressEsc = true;
}
};
Symbol 614 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 620 MovieClip Frame 1
if (!_root.level1) {
gotoAndStop ("locked");
} else {
stop();
}
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("lvl1");
};
Symbol 620 MovieClip Frame 2
this.onRelease = null;
Symbol 623 MovieClip Frame 1
if (!_root.level2) {
gotoAndStop ("locked");
} else {
stop();
}
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("lvl2");
};
Symbol 623 MovieClip Frame 2
this.onRelease = null;
Symbol 626 MovieClip Frame 1
if (!_root.level3) {
gotoAndStop ("locked");
} else {
stop();
}
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("lvl3");
};
Symbol 626 MovieClip Frame 2
this.onRelease = null;
Symbol 632 MovieClip Frame 1
if (!_root.bossLVL) {
gotoAndStop ("locked");
} else {
stop();
}
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("finalBoss");
};
Symbol 632 MovieClip Frame 2
this.onRelease = null;
Symbol 633 Button
on (release) {
_root.cutscene = false;
_root.gotoAndStop("title");
}
Symbol 638 MovieClip Frame 1
if (!_root.level1) {
gotoAndStop ("locked");
} else {
stop();
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("intro");
};
}
Symbol 642 MovieClip Frame 1
if (!_root.level2) {
gotoAndStop ("locked");
} else {
stop();
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("lvl2 intro");
};
}
Symbol 644 MovieClip Frame 1
if (!_root.level3) {
gotoAndStop ("locked");
} else {
stop();
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("lvl3 intro");
};
}
Symbol 646 MovieClip Frame 1
if (!_root.bossLVL) {
gotoAndStop ("locked");
} else {
stop();
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("boss intro");
};
}
Symbol 648 MovieClip Frame 1
if (!_root.endCutscene) {
gotoAndStop ("locked");
} else {
stop();
this.onRelease = function () {
var _local1 = _root;
i = 0;
while (i <= 75) {
_local1["flake" + i].removeMovieClip();
i++;
}
_local1.globalsound.stop("title song");
_local1.gotoAndStop("outtro");
};
}
Symbol 651 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (random(20) - 10);
};
Symbol 656 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 561 MovieClip in Symbol 656 MovieClip Frame 1
on (release) {
Mouse.show();
_root.globalsound.stop("game over song");
_root.gotoAndStop(_root.lastLevel);
}
Instance of Symbol 561 MovieClip in Symbol 656 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 561 MovieClip in Symbol 656 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 561 MovieClip in Symbol 656 MovieClip Frame 1
on (release) {
getURL ("http://www.monkeyinthepants.com", "_blank");
}
Symbol 944 MovieClip Frame 391
onEnterFrame = function () {
var _local1 = _root;
if (_local1.globalsound.getVolume() > 0) {
_local1.globalsound.setVolume(_local1.globalsound.getVolume() - 5);
}
};
Symbol 944 MovieClip Frame 412
onEnterFrame = null;
_root.globalsound.stop("introMusic");
_root.globalsound.attachSound("introMusic2");
_root.globalsound.setVolume(100);
_root.globalsound.start(0, 999);
Symbol 944 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 946 MovieClip Frame 1
time = 100;
onEnterFrame = function () {
if (time <= 0) {
alpha = alpha - 2;
} else {
time--;
}
};
_root.onMouseDown = function () {
var _local1 = _root;
if (_local1.cutscene) {
_local1.globalsound.stop("lvl1Music");
_local1.globalsound.stop("lvl2Music");
_local1.globalsound.stop("lvl3Music");
_local1.globalsound.stop("bossMusic");
_local1.globalsound.stop("introMusic");
_local1.globalsound.stop("introMusic2");
_local1.globalsound.stop("ending music");
_local1.globalsound.stop("ending music2");
_local1.globalsound.stop("credit song");
_local1.globalsound.attachSound("title song");
_local1.globalsound.setVolume(100);
_local1.globalsound.start(0, 999);
_local1.onMouseDown = null;
_local1.onEnterFrame = null;
_local1.gotoAndStop("cutsceneSelect");
} else {
_local1.nextFrame();
}
};
Symbol 948 MovieClip Frame 1
_visible = false;
qChange = false;
onEnterFrame = function () {
var _local1 = _root;
if (_local1.pressEsc && (Key.isDown(27))) {
if (_local1.cutscene) {
_local1.globalsound.stop("lvl1Music");
_local1.globalsound.stop("lvl2Music");
_local1.globalsound.stop("lvl3Music");
_local1.globalsound.stop("bossMusic");
_local1.globalsound.stop("introMusic");
_local1.globalsound.stop("introMusic2");
_local1.globalsound.stop("ending song");
_local1.globalsound.stop("ending song2");
_local1.globalsound.stop("credit song");
_local1.globalsound.attachSound("title song");
_local1.globalsound.setVolume(100);
_local1.globalsound.start(0, 999);
_local1.onMouseDown = null;
_local1.onEnterFrame = null;
_local1.gotoAndStop("cutsceneSelect");
} else {
_local1.clearAll();
_local1.clearLvl3();
_local1.globalsound.stop("lvl1Music");
_local1.globalsound.stop("lvl2Music");
_local1.globalsound.stop("lvl3Music");
_local1.globalsound.stop("bossMusic");
_local1.globalsound.stop("introMusic");
_local1.globalsound.stop("introMusic2");
_local1.globalsound.stop("ending song");
_local1.globalsound.stop("ending song2");
_local1.globalsound.stop("credit song");
_local1.globalsound.attachSound("title song");
_local1.globalsound.setVolume(100);
_local1.globalsound.start(0, 999);
i = 100;
while (i <= 110) {
_local1["shoe" + i].removeMovieClip();
i++;
}
_local1.cr.removeMovieClip();
_local1._x = 0;
_local1._y = 0;
_local1._alpha = 100;
_local1.onMouseDown = null;
_local1.onEnterFrame = null;
_local1.gotoAndStop("title");
}
}
if (Key.isDown(81)) {
if (!qChange) {
if (_local1.qual == "High") {
_local1.qual = "Medium";
} else if (_local1.qual == "Medium") {
_local1.qual = "Low";
} else if (_local1.qual == "Low") {
_local1.qual = "Best";
} else if (_local1.qual == "Best") {
_local1.qual = "High";
}
_quality = _local1.qual;
}
qChange = true;
} else {
qChange = false;
}
};
Symbol 952 MovieClip Frame 1
origY = _y;
started = false;
this.onEnterFrame = function () {
var _local1 = _root;
if ((_y != origY) && (!started)) {
_local1.soundFX.attachSound("lvl1 Boss engine");
_local1.soundFX.start(0, 999);
started = true;
}
if (_local1.dragon) {
_local1.bossBG.gotoAndStop(2);
}
if (_local1.dragon && (_y > 0)) {
_y = (_y - 8);
} else if (_y <= 0) {
_local1.attachMovie("lvl1 dragon", "dragn", 2000);
_local1.dragn._x = _parent._x + _x;
_local1.dragn._y = _parent._y + _y;
_visible = false;
this.onEnterFrame = null;
}
};
Symbol 993 MovieClip Frame 15
stop();
Symbol 994 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
_local1.globalsound.setVolume(_local1.globalsound.getVolume() - 5);
if (_local1.globalsound.getVolume() <= 0) {
_local1.globalsound.stop("lvl1Music");
_local1.globalsound.attachSound("lvl1Boss");
_local1.globalsound.setVolume(100);
_local1.globalsound.start(0, 999);
onEnterFrame = null;
}
};
Symbol 994 MovieClip Frame 35
stop();
Symbol 995 MovieClip Frame 1
stop();
_alpha = 0;
Symbol 995 MovieClip Frame 2
stop();
onEnterFrame = function () {
var _local1 = _root;
_x = _local1.camera._x;
_y = _local1.camera._y;
_xscale = _local1.camera._xscale;
_yscale = _local1.camera._yscale;
_alpha = (_alpha + 2);
if (_alpha >= 100) {
onEnterFrame = function () {
var _local1 = _root;
_x = _local1.camera._x;
_y = _local1.camera._y;
_xscale = _local1.camera._xscale;
_yscale = _local1.camera._yscale;
};
gotoAndStop (3);
}
};
Symbol 995 MovieClip Frame 3
stop();
Symbol 995 MovieClip Frame 4
stop();
onEnterFrame = function () {
var _local1 = _root;
_x = _local1.camera._x;
_y = _local1.camera._y;
_xscale = _local1.camera._xscale;
_yscale = _local1.camera._yscale;
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 997 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 () {
var _local1 = this;
var _local2 = _parent;
var _local3 = _root;
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
parent.setTransform(Mcamera.getTransform());
_local2._x = ((-(_local1._x - (_local1._width / 2))) * Stage.width) / _local1._width;
_local2._y = ((-(_local1._y - (_local1._height / 2))) * Stage.height) / _local1._height;
_local2._xscale = (Stage.width / _local1._width) * 100;
_local2._yscale = (Stage.height / _local1._height) * 100;
_local3.dialogue._x = _x - 190;
_local3.dialogue._y = _y - 140;
if ((level = 1)) {
if (_local3.dragon && (_xscale < 200)) {
_xscale = (_xscale + ((200 - _xscale) * 0.1));
_yscale = _xscale;
}
}
};
onUnload = function () {
var _local1 = _parent;
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
parent.setTransform(myColorTransform);
_local1._xscale = 100;
_local1._yscale = 100;
_local1._x = 0;
_local1._y = 0;
};
Symbol 999 MovieClip Frame 1
_visible = false;
Symbol 1004 Button
on (release) {
nextFrame();
}
Symbol 1008 Button
on (release) {
prevFrame();
}
Symbol 1031 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 1032 MovieClip Frame 1
stop();
Symbol 1037 Button
on (press) {
getURL ("http://www.armorgames.com/index.html", "_blank");
}
Symbol 1043 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 1047 MovieClip Frame 1
_visible = false;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _parent;
if ((_local1.player.action != "hurt") && (this.hitTest(_local1.player._x, _local1.player._y, true))) {
if ((((_local2._parent._parent._x + _local2._parent._x) + _local2._x) + _x) > _local1.player._x) {
_local1.player.hSpeed = -10;
} else {
_local1.player.hSpeed = 10;
}
if ((((_local2._parent._parent._y + _local2._parent._y) + _local2._y) + _y) > _local1.player._y) {
_local1.player.vSpeed = -10;
} else {
_local1.player.vSpeed = 10;
}
_local1.player.action = "hurt";
}
};
Symbol 1049 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 1060 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 boom");
_root.soundFX.start(0, 1);
Symbol 1060 MovieClip Frame 4
_parent._parent.health = _parent._parent.health - 7.5;
Symbol 1060 MovieClip Frame 16
_parent._parent.action = "still";
Symbol 1090 MovieClip Frame 62
_root.bossMouth.removeMovieClip();
Symbol 1090 MovieClip Frame 74
_parent._parent.action = "still";
Symbol 1095 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 () {
var _local1 = _root;
_local1.player._x = _local1.player._x + ((x - _local1.player._x) * 0.2);
_local1.player._y = _local1.player._y + ((y - _local1.player._y) * 0.2);
suckSpeed = suckSpeed + 5;
if ((Math.abs(x - _local1.player._x) < 20) && (Math.abs(y - _local1.player._y) < 50)) {
_local1.boss.action = "chew";
_local1.player.action = "eaten";
}
};
Symbol 1109 MovieClip Frame 13
_root.bossMouth.removeMovieClip();
Symbol 1109 MovieClip Frame 38
_root.bossMouth.removeMovieClip();
Symbol 1109 MovieClip Frame 55
_root.bossMouth.removeMovieClip();
_parent._parent.actionTimer = random(50) + 50;
_parent._parent.action = "spit";
Symbol 1140 MovieClip Frame 53
_root.player.action = "flying";
_root.player.hSpeed = -26;
_root.player._x = 225;
_root.player._y = 240;
_root.BGspeed = -3;
Symbol 1140 MovieClip Frame 67
_parent._parent.action = "still";
Symbol 1186 MovieClip Frame 81
_parent._parent.action = "still";
Symbol 1207 MovieClip Frame 129
_parent._parent.action = "still";
Symbol 1228 MovieClip Frame 64
_parent._parent.action = "still";
Symbol 1229 MovieClip Frame 1
_root.bossMouth.removeMovieClip();
_root.BGspeed = 3;
Symbol 1229 MovieClip Frame 2
_root.bossMouth.removeMovieClip();
_root.BGspeed = -3;
Symbol 1229 MovieClip Frame 3
_root.BGspeed = 0;
Symbol 1229 MovieClip Frame 4
_root.BGspeed = 6;
Symbol 1229 MovieClip Frame 5
_root.BGspeed = 0;
Symbol 1229 MovieClip Frame 6
_root.BGspeed = 3;
Symbol 1229 MovieClip Frame 7
_root.BGspeed = 0;
Symbol 1229 MovieClip Frame 8
_root.BGspeed = 0;
Symbol 1250 MovieClip Frame 23
stop();
onEnterFrame = function () {
_root.BGspeed = _root.BGspeed - 1;
_y = (_y + 4);
if (_alpha > 0) {
_alpha = (_alpha - 4);
}
};
Symbol 1251 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 () {
var _local1 = _root;
var _local2 = this;
if (health <= 0) {
gotoAndStop (2);
}
if (!_local1.bossMouth) {
i = 1000;
while (i <= 1010) {
if ((!_local1["bomb" + i].dead) && (_local2.hitTest(_local1["bomb" + i]._x, _local1["bomb" + i]._y, true))) {
if (!_local1["bomb" + i].dead) {
_local1.soundFX.attachSound("drip");
_local1.soundFX.start(0, 1);
}
_local1["bomb" + i].dead = true;
_local1["bomb" + i].force = _local1["bomb" + i].force * -0.5;
}
i++;
}
}
if (_local2.action == "still") {
_local2.actionTimer--;
if (_local2.actionTimer <= 0) {
_local2.action = _local2.randomAction[currentAction];
currentAction++;
if (currentAction >= randomAction.length) {
currentAction = 0;
}
}
} else {
_local2.actionTimer = random(50) + 20;
}
_local2.sprites.gotoAndStop(_local2.action);
};
Symbol 1251 MovieClip Frame 2
_root.BGspeed = 0;
stop();
onEnterFrame = null;
Symbol 1272 MovieClip Frame 8
gotoAndPlay (4);
Symbol 1277 MovieClip Frame 1
onEnterFrame = function () {
_parent._parent.atackForce = int(_currentframe / 2);
};
Symbol 1277 MovieClip Frame 21
stop();
Symbol 1285 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 1285 MovieClip Frame 8
_parent._parent.action = "flying";
Symbol 1294 MovieClip Frame 2
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
_parent._parent.health = _parent._parent.health - 1;
Symbol 1294 MovieClip Frame 7
_parent._parent.action = "flying";
Symbol 1311 MovieClip Frame 1
stop();
hSpeed = 0;
vSpeed = 0;
health = 20;
movement = true;
action = "flying";
onEnterFrame = function () {
var _local1 = _root;
if (_local1.bgSpeed < -100) {
_local1.bgSpeed = 0;
_local1.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(_local1.key1)) {
action = "charging";
}
movement = true;
} else if (action == "charging") {
if (!key.isDown(_local1.key1)) {
action = "shooting";
}
movement = true;
} else if (action == "shooting") {
movement = true;
}
if (Key.isDown(_local1.left) && (movement)) {
if (hSpeed > -10) {
hSpeed = hSpeed - 2;
}
} else if (hSpeed < 0) {
hSpeed = hSpeed + 2;
}
if (Key.isDown(_local1.right) && (movement)) {
if (hSpeed < 10) {
hSpeed = hSpeed + 2;
}
} else if (hSpeed > 0) {
hSpeed = hSpeed - 2;
}
if (Key.isDown(_local1.up) && (movement)) {
if (vSpeed > -8) {
vSpeed = vSpeed - 2;
}
} else if (vSpeed < 0) {
vSpeed = vSpeed + 2;
}
if (Key.isDown(_local1.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 (_local1.BGspeed < 0) {
_x = (_x + (_local1.BGspeed * 0.5));
}
if (_x < 10) {
_x = 10;
}
if (_x > 390) {
_x = 390;
}
if (_y < 10) {
_y = 10;
}
if (_y > 290) {
_y = 290;
}
};
Symbol 1311 MovieClip Frame 2
speed = 0;
onEnterFrame = function () {
_rotation = (_rotation+1);
_y = (_y + speed);
speed++;
if (_y > 400) {
_root.gotoAndStop("gameOver");
}
};
Symbol 1315 MovieClip Frame 1
gotoAndStop(random(15) + 2);
Symbol 1318 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 1323 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
if (_local1.player.health > 0) {
if (_currentframe < int(_local1.player.health)) {
nextFrame();
} else if (_currentframe > int(_local1.player.health)) {
prevFrame();
}
} else {
onEnterFrame = function () {
_rotation = (_rotation + 2);
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_y = (_y+1);
_x = (_x+1);
};
}
};
Symbol 1362 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
if (_local1.boss.health > 0) {
if (_currentframe < int(_local1.boss.health)) {
nextFrame();
} else if (_currentframe > int(_local1.boss.health)) {
prevFrame();
}
} else {
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_y = (_y + 2);
};
}
};
Symbol 1381 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 1382 MovieClip Frame 1
stop();
Symbol 1386 MovieClip Frame 1
timer = 15;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
onEnterFrame = function () {
if (timer <= 0) {
_root.nextFrame();
} else {
timer--;
}
};
}
};
Symbol 1394 MovieClip Frame 1
_visible = false;
Symbol 1400 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 1400 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 1425 MovieClip Frame 24
stop();
Symbol 1426 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 () {
var _local1 = _root;
var _local2 = this;
if (timer <= 0) {
if (int(Math.sqrt(((_x - _local1.player._x) * (_x - _local1.player._x)) + ((_y - _local1.player._y) * (_y - _local1.player._y)))) < 250) {
gotoAndStop (2);
timer = 20;
}
} else {
timer--;
}
if (_local1.attack.hitTest(_local2._x, _local2._y)) {
_local2.gotoAndStop(3);
onEnterFrame = null;
}
if (_local2.hitTest(_local1.player.area)) {
if (_local2.area.hitTest(_local1.player.area)) {
_local1.player.action = "hurt";
}
if (_x >= _local1.player._x) {
if (!_local1.floor.hitTest((_local1.player._x - pushSpeed) - 27, _local1.player._y - 15, true)) {
_local1.player._x = _local1.player._x - pushSpeed;
}
} else if (!_local1.floor.hitTest((_local1.player._x + pushSpeed) + 27, _local1.player._y - 15, true)) {
_local1.player._x = _local1.player._x + pushSpeed;
}
pushSpeed = pushSpeed + 1;
} else {
pushSpeed = 0;
}
if (int(Math.sqrt(((_x - _local1.player._x) * (_x - _local1.player._x)) + ((_y - _local1.player._y) * (_y - _local1.player._y)))) < 200) {
i = 2000;
while (i <= 2010) {
if (_local2.hitTest(_local1["star" + i]._x, _local1["star" + i]._y)) {
_local1["star" + i].removeMovieClip();
_local2.gotoAndStop(3);
onEnterFrame = null;
return;
}
i++;
}
}
};
Symbol 1426 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 1394 MovieClip in Symbol 1429 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 1394 MovieClip in Symbol 1461 MovieClip Frame 4
onClipEvent (load) {
if (this.hitTest(_root.player.area)) {
_root.player.action = "hurt";
}
}
Symbol 1461 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 1394 MovieClip in Symbol 1461 MovieClip Frame 13
onClipEvent (load) {
if (this.hitTest(_root.player.area)) {
_root.player.action = "hurt";
}
}
Symbol 1461 MovieClip Frame 57
_parent._parent.action = "still";
Symbol 1465 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1465 MovieClip Frame 5
_parent._parent.action = "still";
Symbol 1466 MovieClip Frame 1
stop();
Symbol 1466 MovieClip Frame 2
stop();
Symbol 1474 MovieClip Frame 1
onEnterFrame = function () {
_alpha = (_alpha - 7.5);
if (_alpha <= 0) {
this._visible = false;
}
};
Symbol 1474 MovieClip Frame 8
stop();
Symbol 1475 MovieClip Frame 1
action = "still";
timer = random(70);
health = 4;
stop();
_xscale = 80;
_yscale = _xscale;
if (direction == "left") {
_xscale = (_xscale * -1);
}
onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
if (action == "still") {
if (timer <= 0) {
action = "attack";
} else {
timer--;
}
} else {
timer = 50 + random(20);
}
if (_local2.area.hitTest(_local1.player.area)) {
if (_x >= _local1.player._x) {
if (!_local1.floor.hitTest((_local1.player._x - pushSpeed) - 27, _local1.player._y - 15, true)) {
_local1.player._x = _local1.player._x - pushSpeed;
}
} else if (!_local1.floor.hitTest((_local1.player._x + pushSpeed) + 27, _local1.player._y - 15, true)) {
_local1.player._x = _local1.player._x + pushSpeed;
}
pushSpeed = pushSpeed + 0.75;
} else {
pushSpeed = 0;
}
if (action == "attack") {
i = 2000;
while (i <= 2010) {
if (_local2.area.hitTest(_local1["star" + i]._x, _local1["star" + i]._y)) {
action = "hurt";
health--;
_local1["star" + i].removeMovieClip();
break;
}
i++;
}
}
if (_local1.attack.hitTest(_local2.area)) {
if (action == "attack") {
action = "hurt";
health = health - 2;
} else {
_local1.player.attacking = 0;
}
}
if (health <= 0) {
gotoAndStop (2);
onEnterFrame = null;
}
sprite.gotoAndStop(action);
};
Symbol 1488 MovieClip Frame 19
gotoAndPlay (4);
Symbol 1503 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
if ((((!Key.isDown(_local1.up)) && (!Key.isDown(_local1.down))) && (!Key.isDown(_local1.left))) && (!Key.isDown(_local1.right))) {
stop();
} else {
play();
}
};
Symbol 1512 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1512 MovieClip Frame 8
_parent._parent.attacking = 0;
Symbol 1518 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1518 MovieClip Frame 5
_parent._parent.attacking = 0;
Symbol 1525 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1525 MovieClip Frame 6
_parent._parent.attacking = 0;
Symbol 1531 MovieClip Frame 1
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
_root.createStar(_parent._parent.direction);
Symbol 1531 MovieClip Frame 5
_parent._parent.attacking = 0;
Symbol 1541 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1541 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1541 MovieClip Frame 9
_parent._parent.attacking = 0;
Symbol 1552 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1552 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1552 MovieClip Frame 13
_parent._parent.attacking = 0;
Symbol 1557 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1557 MovieClip Frame 3
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1557 MovieClip Frame 6
_parent._parent.attacking = 0;
Symbol 1564 MovieClip Frame 1
_root.soundFX.attachSound("lvl1swingclub");
_root.soundFX.start(0, 1);
Symbol 1564 MovieClip Frame 2
_root.attachMovie("lvl3 attack", "attack", 500);
Symbol 1564 MovieClip Frame 9
_parent._parent.attacking = 0;
Symbol 1568 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 () {
var _local1 = _parent;
if ((_local1._parent.direction == "right") && (!_root.floor.hitTest((_local1._parent._x - spd) - 20, _local1._parent._y - 5, true))) {
_local1._parent._x = _local1._parent._x - spd;
} else if ((_local1._parent.direction == "left") && (!_root.floor.hitTest((_local1._parent._x + spd) + 20, _local1._parent._y, true))) {
_local1._parent._x = _local1._parent._x + spd;
}
spd = spd - 1.5;
};
Symbol 1568 MovieClip Frame 7
_parent._parent.action = "down";
Symbol 1569 MovieClip Frame 1
stop();
Symbol 1577 MovieClip Frame 13
stop();
Symbol 1578 MovieClip Frame 1
function walk() {
var _local1 = _root;
if ((action != "walking") && (action != "standing")) {
if ((Math.abs(hSpeed) <= Math.abs(walkSpeed)) && (Key.isDown(_local1.right))) {
hSpeed = walkSpeed;
}
if ((Math.abs(hSpeed) <= Math.abs(walkSpeed)) && (Key.isDown(_local1.left))) {
hSpeed = -walkSpeed;
}
} else {
if (Key.isDown(_local1.right)) {
action = "walking";
hSpeed = walkSpeed;
}
if (Key.isDown(_local1.left)) {
action = "walking";
hSpeed = -walkSpeed;
}
}
if ((action == "up") || (action == "down")) {
if ((!Key.isDown(_local1.left)) && (!Key.isDown(_local1.right))) {
hSpeed = hSpeed * 0.9;
}
if (Math.abs(hSpeed) <= 0.2) {
hSpeed = 0;
}
} else {
if ((!Key.isDown(_local1.left)) && (!Key.isDown(_local1.right))) {
hSpeed = hSpeed * 0.02;
}
if (Math.abs(hSpeed) <= 0.2) {
hSpeed = 0;
}
}
if ((action == "walking") || (action == "standing")) {
if ((!Key.isDown(_local1.left)) && (!Key.isDown(_local1.right))) {
action = "down";
}
}
_x = (_x + hSpeed);
}
function addVSpeed() {
var _local1 = this;
var _local2 = _root;
_y = (_y + vSpeed);
while (_local2.floor.hitTest(_local1._x, _local1._y - 0.1, true)) {
_y = (_y - 0.1);
vSpeed = 0;
}
if (hSpeed < 0) {
direction = "left";
} else if (hSpeed > 0) {
direction = "right";
}
}
function ladder() {
var _local1 = _root;
vSpeed = 0;
if (Key.isDown(_local1.up)) {
vSpeed = -walkSpeed;
}
if (Key.isDown(_local1.down)) {
vSpeed = walkSpeed;
}
if (Key.isDown(_local1.left)) {
hSpeed = -walkSpeed;
}
if (Key.isDown(_local1.right)) {
hSpeed = walkSpeed;
}
if (((!Key.isDown(_local1.right)) && (!Key.isDown(_local1.left))) || (_local1.floor.hitTest(_x + hSpeed, _y - 20, true))) {
hSpeed = 0;
}
if (((!Key.isDown(_local1.up)) && (!Key.isDown(_local1.down))) || (_local1.floor.hitTest(_x, (_y - 40) + vSpeed, true))) {
vSpeed = 0;
}
if ((action != "hurt") && (!_local1.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() {
var _local1 = _root;
if (attackKey == false) {
if ((action != "ladder") && (Key.isDown(_local1.key1))) {
attacking = 1;
} else if ((action != "wall") && (Key.isDown(_local1.key2))) {
attacking = 2;
}
attackKey = true;
}
if ((!Key.isDown(_local1.key1)) && (!Key.isDown(_local1.key2))) {
attackKey = false;
}
if (action == "hurt") {
attacking = 0;
}
}
function walls() {
var _local1 = this;
var _local2 = _root;
if ((action != "wall") && (direction == "right")) {
while (_local2.floor.hitTest(_local1._x + 20, _local1._y - 15, true)) {
_x = (_x-1);
if ((action == "up") || (action == "down")) {
action = "wall";
vSpeed = 1;
}
}
} else if ((action != "wall") && (direction == "left")) {
while (_local2.floor.hitTest(_local1._x - 20, _local1._y - 15, true)) {
_x = (_x+1);
if ((action == "up") || (action == "down")) {
action = "wall";
vSpeed = 1;
}
}
}
if (action == "up") {
while (_local2.floor.hitTest(_local1._x, _local1._y - 40, true)) {
_y = (_y + 0.5);
if (vSpeed < 0) {
vSpeed = vSpeed * -1;
}
action = "down";
}
}
if (action == "wall") {
if (direction == "left") {
if ((!Key.isDown(_local2.left)) || (!_local2.floor.hitTest(_local1._x - 22, _local1._y - 18, true))) {
action = "down";
hSpeed = 1;
} else if (Key.isDown(_local2.left)) {
if (Key.isDown(_local2.up) && (!_local2.floor.hitTest(_local1._x - 22, _local1._y - 50, true))) {
vSpeed = -walkSpeed;
_x = (_x-1);
hSpeed = -1;
if (!_local2.floor.hitTest(_local1._x - 20, _local1._y, true)) {
hSpeed = -1;
}
} else {
vSpeed = 0;
}
if (Key.isDown(_local2.down)) {
vSpeed = 5;
}
}
if (!Key.isDown(_local2.left)) {
vSpeed = 1;
if (Key.isDown(_local2.up) || (Key.isDown(_local2.right))) {
vSpeed = -10;
action = "up";
hSpeed = walkSpeed * 2;
direction = "right";
}
}
} else if (direction == "right") {
if ((!Key.isDown(_local2.right)) || (!_local2.floor.hitTest(_local1._x + 22, _local1._y - 18, true))) {
action = "down";
hSpeed = -1;
} else if (Key.isDown(_local2.right)) {
if (Key.isDown(_local2.up) && (!_local2.floor.hitTest(_local1._x + 22, _local1._y - 50, true))) {
vSpeed = -4;
_x = (_x+1);
hSpeed = 1;
if (!_local2.floor.hitTest(_local1._x + 20, _local1._y, true)) {
hSpeed = 1;
}
} else {
vSpeed = 0;
}
if (Key.isDown(_local2.down)) {
vSpeed = 5;
}
}
if (!Key.isDown(_local2.right)) {
vSpeed = 1;
if (Key.isDown(_local2.up) || (Key.isDown(_local2.left))) {
vSpeed = -10;
action = "up";
hSpeed = (-walkSpeed) * 2;
direction = "right";
}
}
}
if (_local2.floor.hitTest(_local1._x, _local1._y + 1, true)) {
vSpeed = 0;
action = "standing";
}
} else if ((Key.isDown(_local2.up) || (Key.isDown(_local2.down))) && (_local2.ladder.hitTest(_local1._x, _local1._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 1578 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 1582 MovieClip Frame 1
stop();
onEnterFrame = function () {
var _local1 = _root;
if (int(_local1.player.health * 2) > _currentframe) {
nextFrame();
} else if (int(_local1.player.health * 2) < _currentframe) {
prevFrame();
}
if (_local1.player.health <= 0) {
this.onEnterFrame = function () {
_x = (_x + 3);
_y = (_y + 2);
_rotation = (_rotation + 2);
_alpha = (_alpha - 2);
};
}
};
Symbol 1611 MovieClip Frame 1
stop();
Symbol 1615 MovieClip Frame 1
_visible = false;
Symbol 1624 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 1630 MovieClip Frame 6
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1641 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 1655 MovieClip Frame 12
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1655 MovieClip Frame 42
_parent._parent.action = "popdown";
Symbol 1662 MovieClip Frame 39
_parent._parent.action = "throwthing";
Symbol 1678 MovieClip Frame 55
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1685 MovieClip Frame 1
_root.girlHealth = _root.girlHealth - 18;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1685 MovieClip Frame 6
_parent._parent.action = "popdown";
Symbol 1693 MovieClip Frame 1
_root.bossHealth = _root.bossHealth - 5;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1693 MovieClip Frame 7
_parent._parent.action = "popdown";
Symbol 1707 MovieClip Frame 12
stop();
timer = random(20);
onEnterFrame = function () {
if (timer <= 0) {
play();
} else {
timer--;
}
};
Symbol 1707 MovieClip Frame 25
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1724 MovieClip Frame 17
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1724 MovieClip Frame 40
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1731 MovieClip Frame 1
_root.bossHealth = _root.bossHealth - 5;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1731 MovieClip Frame 10
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1743 MovieClip Frame 1
_root.girlHealth = _root.girlHealth - 20;
_root.soundFX.attachSound("lvl1 damage");
_root.soundFX.start(0, 1);
Symbol 1743 MovieClip Frame 12
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1768 MovieClip Frame 29
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1768 MovieClip Frame 33
_root.soundFX.attachSound("lvl1swingsclub");
_root.soundFX.start(0, 1);
Symbol 1768 MovieClip Frame 37
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1768 MovieClip Frame 41
_root.soundFX.attachSound("lvl1swingsclub");
_root.soundFX.start(0, 1);
Symbol 1768 MovieClip Frame 45
_root.soundFX.attachSound("lvl1 swingsword");
_root.soundFX.start(0, 1);
Symbol 1768 MovieClip Frame 61
_parent._parent.action = "hide";
_root.active = -1;
Symbol 1770 MovieClip Frame 1
action = "hide";
_visible = false;
count = _root.count;
_root.count++;
this.onEnterFrame = function () {
var _local1 = this;
if (action == "hide") {
_local1.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")) {
_local1.onPress = function () {
var _local1 = this;
if ((((action != "girl") && (action != "popdown")) && (action != "bossfast")) && (action != "onlythrow")) {
if (sprite.anim.girl.hitTest(_parent._xmouse, _parent._ymouse, true)) {
action = "girlhit";
_local1.onPress = null;
} else {
action = "bosshit";
_local1.onPress = null;
}
} else if ((action == "bossfast") || (action == "onlythrow")) {
action = "onlyhurt";
_local1.onPress = null;
} else if (action == "girl") {
action = "girlhurt";
_local1.onPress = null;
}
};
}
sprite.gotoAndStop(action);
};
Symbol 1780 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x + ((_root._xmouse - _x) * 0.3));
_y = _root._ymouse;
};
Symbol 1782 MovieClip Frame 1
onEnterFrame = function () {
_y = (_y + ((_root._ymouse - _y) * 0.25));
_x = _root._xmouse;
};
Symbol 1787 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.bossHealth) > _currentframe) {
nextFrame();
} else if (int(_root.bossHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1795 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.playerHealth) > _currentframe) {
nextFrame();
} else if (int(_root.playerHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1799 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.girlHealth) > _currentframe) {
nextFrame();
} else if (int(_root.girlHealth) < _currentframe) {
prevFrame();
}
};
Symbol 1801 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
_x = _local1.player._x;
_rotation = (-(Math.atan((-(_local1._ymouse - _y)) / (_local1._xmouse - _x)) * 57.3));
if (_local1._xmouse < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
};
Symbol 1804 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x + ((_root._xmouse - _x) * 0.5));
_x = (_x / 2);
_x = (_x + 100);
};
Symbol 1810 MovieClip Frame 1
stop();
_visible = false;
_root.onMouseDown = function () {
var _local1 = _root;
_local1.soundFX.attachSound("gun");
_local1.soundFX.start(0, 1);
_visible = true;
_x = _local1._xmouse;
_y = _local1._ymouse;
gotoAndPlay (2);
};
Symbol 2162 MovieClip Frame 1
talk = new Sound();
talk.attachSound("whats wrong");
talk.start(0, 1);
Symbol 2177 MovieClip Frame 1
talk = new Sound();
talk.attachSound("I'm a man");
talk.start(0, 1);
Symbol 2225 MovieClip Frame 1
talk = new Sound();
talk.attachSound("lvl1 boom");
talk.start(0, 1);
Symbol 2246 MovieClip Frame 1
_alpha = 0;
_root.onMouseDown = function () {
var _local1 = _root;
if (_local1.cutscene) {
_local1.globalsound.stop("lvl1Music");
_local1.globalsound.stop("lvl2Music");
_local1.globalsound.stop("lvl3Music");
_local1.globalsound.stop("bossMusic");
_local1.globalsound.stop("introMusic");
_local1.globalsound.stop("introMusic2");
_local1.globalsound.stop("ending song2");
_local1.globalsound.stop("credit song");
_local1.globalsound.attachSound("title song");
_local1.globalsound.setVolume(100);
_local1.globalsound.start(0, 999);
_local1.onMouseDown = null;
_local1.onEnterFrame = null;
_local1.gotoAndStop("cutsceneSelect");
} else {
_local1.globalsound.stop("ending music");
_local1.globalsound.stop("ending music2");
_local1.globalsound.setVolume(100);
_local1.onMouseDown = null;
_local1.onEnterFrame = null;
_local1.gotoAndStop("credits");
}
};
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
};
Symbol 2247 MovieClip Frame 605
onEnterFrame = function () {
var _local1 = _root;
if (_local1.globalsound.getVolume() >= 0) {
_local1.globalsound.setVolume(_local1.globalsound.getVolume() - 5);
}
};
Symbol 2247 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 2247 MovieClip Frame 1505
stop();
Symbol 2249 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 2253 MovieClip Frame 1
this._y = 300;
this._x = -7;
this.active = true;
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.active) {
_local1._y = _local1._y - 2;
} else {
_local1._y = _local1._y - 1;
}
if (_local1._y <= -1442) {
_local1.onEnterFrame = null;
}
};
Instance of Symbol 2249 MovieClip in Symbol 2253 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");
}