Frame 1
_root._quality = "high";
Stage.showMenu = false;
played = false;
stop();
onEnterFrame = function () {
if ((_root.warp._currentframe >= 10) && (!played)) {
played = true;
_root.play();
}
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9d2dacc8", this, 10301, true);
Frame 2
stop();
played = false;
Instance of Symbol 43 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32) or Key.isDown(65)) {
_root.warp.play();
}
}
Instance of Symbol 40 MovieClip "warp" in Frame 2
onClipEvent (enterFrame) {
if (this._currentframe >= 10) {
_root.play();
}
}
Frame 3
stop();
gamename = "Doodle_Warrior";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.a10.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 46;
_root.localization_portal = "teen";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Frame 4
stop();
Frame 5
stop();
var savefile = SharedObject.getLocal("sketch");
_root.loading = false;
Instance of Symbol 299 MovieClip "begin" in Frame 5
onClipEvent (load) {
this.played = false;
}
onClipEvent (enterFrame) {
if (((!this.played) && (Key.isDown(65))) or ((!this.played) && (Key.isDown(32)))) {
this.gotoAndPlay(104);
}
}
Instance of Symbol 40 MovieClip "fade" in Frame 5
onClipEvent (enterFrame) {
if ((this._currentframe >= 10) && (!_root.loading)) {
_root.gotoAndStop("cut1");
}
if ((this._currentframe >= 10) && (_root.loading)) {
_root.gotoAndPlay(7);
}
}
Frame 6
stop();
Frame 8
if (!_root.loading) {
_root.havea = false;
_root.haveb = false;
_root.havec = false;
_root.haved = false;
_root.havee = false;
_root.havef = false;
_root.haveg = false;
_root.haveh = false;
_root.havei = false;
_root.havej = false;
_root.havek = false;
_root.havel = false;
_root.havem = false;
_root.haven = false;
_root.haveo = false;
_root.havep = false;
_root.haveq = false;
_root.haver = false;
_root.haves = false;
_root.havet = false;
_root.haveu = false;
_root.havev = false;
_root.havew = false;
_root.havex = false;
_root.havey = false;
_root.havez = false;
_root.gamestart = false;
_root.introduced = false;
_root.introduced2 = false;
_root.enemies = 0;
_root.wappear = false;
_root.inbossbattle = false;
_root.boss2dead = false;
_root.health = 8;
_root.camera.money.gold = 0;
_root.inputnum = false;
_root.attack = false;
_root.cutbegin = false;
_root.switch1 = false;
_root.switch2 = false;
_root.switch3 = false;
_root.platformap = false;
_root.finalbattlebegin = false;
_root.finaltalk = false;
_root.unlocked = false;
_root.doorunlocked = false;
_root.doorunlocked2 = false;
_root.doorunlocked3 = false;
_root.doorunlocked4 = false;
_root.bossunlocked = false;
_root.bossunlocked2 = false;
_root.degg = 0;
_root.speed = 0;
_root.bandage = 0;
_root.havebook = false;
_root.havekey = false;
_root.smallkey = 0;
_root.bigkey = 0;
_root.beat1 = false;
_root.boss1beat = false;
_root.c1open = false;
_root.c2open = false;
_root.c3open = false;
_root.c4open = false;
_root.c5open = false;
_root.c6open = false;
_root.c7open = false;
_root.c8open = false;
_root.c9open = false;
_root.c10open = false;
_root.c11open = false;
_root.doorappear = false;
_root.isel = 0;
}
egg = 0;
_root.health = 8;
_root.chatwindorclose = new Sound(this);
_root.chatwindorclose.attachSound("chatwindorclose");
_root.door_open = new Sound(this);
_root.door_open.attachSound("door_open");
_root.door_lock = new Sound(this);
_root.door_lock.attachSound("door_lock");
_root.jumps = new Sound(this);
_root.jumps.attachSound("jumps");
_root.gets = new Sound(this);
_root.gets.attachSound("gets");
_root.mouse_click = new Sound(this);
_root.mouse_click.attachSound("mouse_click");
_root.equipped = new Sound(this);
_root.equipped.attachSound("equipped");
_root.getheart = new Sound(this);
_root.getheart.attachSound("getheart");
_root.openchest = new Sound(this);
_root.openchest.attachSound("openchest");
_root.switchs = new Sound(this);
_root.switchs.attachSound("switchs");
_root.demonhurt = new Sound(this);
_root.demonhurt.attachSound("demonhurt");
_root.clang = new Sound(this);
_root.clang.attachSound("clang");
Instance of Symbol 554 MovieClip "sketch" in Frame 8
onClipEvent (load) {
this.bounce = 20;
this.speed = 0;
this.duck = false;
_root.talking = false;
_root.pause = false;
_root.hurt = false;
_root.climb = false;
var velocityY = 0;
var velocityYLimit = -12;
var gravity = 2;
var XscaleX = _xscale;
this.jumpheight = 15;
this.leeWay = 7;
var timer = 0;
_root.attack;
var potion = false;
}
onClipEvent (enterFrame) {
function work() {
velocityY++;
this._y = this._y + (velocityY * gravity);
if (this.move && (this.speed < 10)) {
this.speed = this.speed + 1;
} else if ((!this.move) && (this.speed > 0)) {
this.speed = this.speed - 1.5;
}
if (!Key.isDown(70)) {
this.fpush = false;
}
if (Key.isDown(70) && (!this.fpush)) {
this.fpush = true;
if ((((((!this.move) && (!_root.hurt)) && (_root.isel == 4)) && (_root.degg > 0)) && (!Key.isDown(83))) && (!Key.isDown(40))) {
this.throwing = true;
this.dude.gotoAndStop("throwegg");
}
if (!(this.dude._currentframe === 8)) {
this.throwing = false;
}
}
if (Key.isDown(39) && ((!Key.isDown(40)) && (!_root.hurt))) {
_xscale = (-XscaleX);
this.move = true;
this.dir = 1;
} else if (Key.isDown(37) && ((!Key.isDown(40)) && (!_root.hurt))) {
_xscale = XscaleX;
this.move = true;
this.dir = 2;
}
if ((((!Key.isDown(39)) && (!Key.isDown(37))) or Key.isDown(83)) or Key.isDown(40)) {
this.move = false;
}
if (Key.isDown(40) && (!_root.hurt)) {
this.duck = true;
} else {
this.duck = false;
}
if (this.dir == 1) {
if (potion) {
this._x = this._x + (this.speed * 1.5);
} else {
this._x = this._x + this.speed;
}
} else if (this.dir == 2) {
if (potion) {
this._x = this._x - (this.speed * 1.5);
} else {
this._x = this._x - this.speed;
}
}
if (this.speed > 20) {
this.speed = 20;
} else if (this.speed < 0) {
this.speed = 0;
}
if ((Key.isDown(65) && (!_root.jumping)) && (!_root.hurt)) {
_root.jumping = true;
_root.jumps.start(0, 1);
_root.smpuff._x = this._x;
_root.smpuff._y = this._y;
_root.smpuff.gotoAndPlay(1);
_root.touchingGround = false;
_y = (_y - 4);
velocityY = velocityY + (-this.jumpheight);
}
if (velocityY < velocityYLimit) {
velocityY = velocityYLimit + 1;
}
if (velocityY > (-velocityYLimit)) {
velocityY = (-velocityYLimit) - 1;
}
if ((!_root.jumping) && (_root.touchingGround == false)) {
_root.jumping = true;
}
i = 0;
while (i < 30) {
while (_root.ground.hitTest(_x, _y + 1, true) && (!_root.climb)) {
_y = (_y - 1);
velocityY = 0;
_root.touchingGround = true;
_root.jumping = false;
}
i++;
}
if ((!_root.ground.hitTest(_x, _y + 1, true)) && (!_root.ground.hitTest(_x, _y + 2, true))) {
_root.touchingGround = false;
}
while (_root.ground.hitTest((this._x - XscaleX) - leeWay, _y, true)) {
_x = (_x + 0.1);
this.speed = 0;
}
while (_root.ground.hitTest((this._x + XscaleX) + leeWay, _y, true)) {
_x = (_x - 0.1);
this.speed = 0;
}
if ((_root.hurt && (!_root.pause)) && (this.dir == 1)) {
this._x = this._x - bounce;
this.bounce = this.bounce - 2.5;
}
if ((_root.hurt && (!_root.pause)) && (this.dir == 2)) {
this._x = this._x + bounce;
this.bounce = this.bounce - 2.5;
}
if ((!_root.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
}
if ((((_root.isel == 2) && (Key.isDown(70))) && (!potion)) && (_root.speed > 0)) {
_root.speed = _root.speed - 1;
potion = true;
}
if (potion) {
timer++;
if (timer >= 600) {
potion = false;
timer = 0;
}
}
if (((((!_root.pause) && (!_root.sketchdead)) && (!_root.climb)) && (!_root.talking)) && (!_root.warp)) {
work();
}
}
Instance of Symbol 578 MovieClip "dinoegg_dupe" in Frame 8
onClipEvent (enterFrame) {
if (_name != "dinoegg_dupe") {
if (_root.ground.hitTest(_x, _y, true)) {
this.nextFrame();
} else if (fly) {
_x = (_x + xsnelheid);
_y = (_y + ysnelheid);
xsnelheid = xsnelheid * 0.99;
ysnelheid = ysnelheid + 1;
}
}
}
onClipEvent (load) {
if (_name == "dinoegg_dupe") {
_visible = false;
}
fly = false;
if (_root.sketch.dir == 1) {
xsnelheid = 20;
} else {
xsnelheid = -20;
}
ysnelheid = -5;
fly = true;
}
Instance of Symbol 802 MovieClip "camera" in Frame 8
onClipEvent (enterFrame) {
var goingRight;
var goingLeft;
var goingUp;
var goingDown;
var goingBoth;
var player = _root.player;
if (!_root.sketchdead) {
if (((Key.isDown(39) && (!Key.isDown(37))) && (!_root.talking)) && (!_root.pause)) {
goingRight = true;
goingLeft = false;
goingBoth = false;
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!_root.talking)) && (!_root.pause)) {
goingLeft = true;
goingRight = false;
goingBoth = false;
}
if (((Key.isDown(37) && (Key.isDown(39))) && (!_root.talking)) && (!_root.pause)) {
goingRight = false;
goingLeft = false;
goingBoth = true;
}
if (_root.climb == true) {
goingBoth = true;
goingRight = false;
goingLeft = false;
}
if (_root.sketch.velocityY > 0) {
goingDown = true;
goingUp = false;
}
if (_root.sketch.velocityY < 0) {
goingDown = false;
goingUp = true;
}
if (goingLeft == true) {
_root.camera._x = _root.camera._x + (((_root.sketch._x - 120) - _root.camera._x) / 12);
}
if (goingRight == true) {
_root.camera._x = _root.camera._x + (((_root.sketch._x + 120) - _root.camera._x) / 12);
}
if (goingBoth == true) {
_root.camera._x = _root.camera._x + (((_root.sketch._x + 0) - _root.camera._x) / 12);
}
if (goingUp == true) {
this._y = this._y + (((_root.sketch._y - this._y) - 80) / 6);
}
if (goingDown == true) {
this._y = this._y + (((_root.sketch._y - this._y) - 80) / 6);
}
if (_root.bbuilt && (!_root.bbuilt2)) {
if (_root.ba._x > this._x) {
this._x = this._x + 10;
}
if (_root.ba._x < this._x) {
this._x = this._x - 10;
}
if (_root.ba._y < this._y) {
this._y = this._y - 10;
}
if (_root.ba._y > this._y) {
this._y = this._y + 10;
}
}
}
}
Frame 9
stop();
if (_root.loading) {
_root.camera.money.gold = _root.savefile.data.gold;
_root.loading = false;
}
_root.enemies = 0;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
onEnterFrame = function () {
if ((_root.outside1 == true) && (_root.warp)) {
_root.sketch._x = 13.4;
_root.sketch._y = 320.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outside1 = false;
_root.warp = false;
}
};
Instance of Symbol 808 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Note: Press the up key to go through a door\r\rNote 2: Press the up or down key to climb a ladder.";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 825 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 834 MovieClip "door1" in Frame 9
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.shouse = true;
_root.warp = true;
}
}
Instance of Symbol 40 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.warp && (_root.shouse)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.shouse)) {
_root.gotoAndStop("outside1");
}
}
Frame 11
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.shouse == true) && (_root.warp)) {
_root.sketch._x = -599;
_root.sketch._y = 110;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.shouse = false;
_root.warp = false;
}
if ((_root.fromshop == true) && (_root.warp)) {
_root.sketch._x = 1548.3;
_root.sketch._y = 373.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.fromshop = false;
_root.warp = false;
}
if ((_root.otower == true) && (_root.warp)) {
_root.sketch._x = 2305.8;
_root.sketch._y = 401.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.otower = false;
_root.warp = false;
}
if ((_root.oforest == true) && (_root.warp)) {
_root.sketch._x = -2183.2;
_root.sketch._y = 305.2;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.oforest = false;
_root.warp = false;
}
if ((_root.outhouseab == true) && (_root.warp)) {
_root.sketch._x = 679.9;
_root.sketch._y = 291.8;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outhouseab = false;
_root.warp = false;
}
if ((_root.won1 == true) && (_root.warp)) {
_root.sketch._x = 679.9;
_root.sketch._y = 291.8;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.won1 = false;
_root.warp = false;
}
};
Instance of Symbol 849 MovieClip "cloud1" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 850 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.cloud1)) {
_root.cloud1._x = 3357.8;
}
if (this.hitTest(_root.cloud2)) {
_root.cloud2._x = 3357.8;
}
if (this.hitTest(_root.cloud3)) {
_root.cloud3._x = 3357.8;
}
if (this.hitTest(_root.cloud4)) {
_root.cloud1._x = 3357.8;
}
if (this.hitTest(_root.cloud5)) {
_root.cloud2._x = 3357.8;
}
if (this.hitTest(_root.cloud6)) {
_root.cloud3._x = 3357.8;
}
}
Instance of Symbol 849 MovieClip "cloud2" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
}
Instance of Symbol 849 MovieClip "cloud3" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 849 MovieClip "cloud4" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 849 MovieClip "cloud5" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
}
Instance of Symbol 849 MovieClip "cloud6" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 867 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.sketch.hitTest(this.b_bound)) {
this.play();
}
}
Instance of Symbol 867 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.sketch.hitTest(this.b_bound)) {
this.play();
}
}
Instance of Symbol 867 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.sketch.hitTest(this.b_bound)) {
this.play();
}
}
Instance of Symbol 834 MovieClip "door1" in Frame 11
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outside1 = true;
_root.warp = true;
}
}
Instance of Symbol 889 MovieClip in Frame 11
onClipEvent (load) {
if (!_root.unlocked) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!this.plays)) && (this.counter < 1.5)) && (!_root.pause)) && (!_root.havekey)) {
_root.talking = true;
_root.camera.textbox.message = "Its locked.";
_root.door_lock.start(0, 1);
this.plays = true;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (!_root.havekey)) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
if (!Key.isDown(38)) {
this.plays = false;
}
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.havekey)) {
this.lock.play();
}
if ((((this._currentframe == 1) && (_root.havekey)) && (this.hitTest(_root.sketch))) && ((Key.isDown(38) && (!_root.pause)) && (!_root.warp))) {
_root.door_open.start(0, 1);
_root.inhouseab = true;
_root.warp = true;
}
}
Instance of Symbol 890 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Note: Press the A key to jump.\r\rNote: Slashing bushes with the s key is a good way to find helpful items or money.";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 914 MovieClip "ground" in Frame 11
onClipEvent (enterFrame) {
if (_root.havebook or _root.cutbegin) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 916 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch)) {
_root.health = _root.health - 1;
_root.sketch._x = 252.6;
_root.sketch._y = 286.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
}
}
Instance of Symbol 825 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 918 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "hello sketch, how are you today? your grandpa is at the scholars tower, and he said he had something for you. you better go check it out! the scholars tower is just east of of this location.";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 825 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 920 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (!_root.havebook)) {
_root.talking = true;
_root.camera.textbox.message = "Hey sketch! I think you should really talk to your grandpa in the scholars tower before you proceed to the woods. It is located east of here. Just saying.";
}
if ((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.havebook)) {
_root.talking = true;
_root.camera.textbox.message = "Oh good you talked to him. Be careful. Giant spiders lurk from above in the forest. They attack the weak as they walk by! Just saying.";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 850 MovieClip in Frame 11
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (!_root.pause)) {
_root.toforest = true;
_root.warp = true;
}
}
Instance of Symbol 40 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.warp && (_root.outside1)) {
this.play();
}
if (_root.warp && (_root.toshop)) {
this.play();
}
if (_root.warp && (_root.stower)) {
this.play();
}
if (_root.warp && (_root.toforest)) {
this.play();
}
if (_root.warp && (_root.inhouseab)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.inhouseab)) {
_root.gotoAndStop("inhouseab");
}
if ((this._currentframe >= 10) && (_root.outside1)) {
_root.gotoAndStop("shouse");
}
if ((this._currentframe >= 10) && (_root.toshop)) {
_root.gotoAndStop("shop");
}
if ((this._currentframe >= 10) && (_root.stower)) {
_root.gotoAndStop("stower");
}
if ((this._currentframe >= 10) && (_root.toforest)) {
_root.gotoAndStop("forest");
}
}
Frame 13
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toshop == true) && (_root.warp)) {
_root.sketch._x = 13.4;
_root.sketch._y = 320.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toshop = false;
_root.warp = false;
}
};
Instance of Symbol 926 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.inshop = true;
}
if ((_root.item == 1) && (_root.talking)) {
_root.camera.textbox.message = "hello, take a look around the shop and look at the many different items!\rdragon egg- a very rare egg that explodes on impact when thrown! Press f to use.\rcost- 30\ramount- 15";
_root.cost = 30;
}
if ((_root.item == 2) && (_root.talking)) {
_root.camera.textbox.message = "hello, take a look around the shop and look at the many different items!\rspeed potion- a potion that increases the over all speed of the drinker for 20 seconds! Press f to use.\rcost- 40";
_root.cost = 40;
}
if ((_root.item == 3) && (_root.talking)) {
_root.camera.textbox.message = "hello, take a look around the shop and look at the many different items!\rbandage- this handy item replenishes your health once it reaches zero!\rcost- 50";
_root.cost = 50;
}
if (((Key.isDown(83) && (_root.talking)) && (_root.camera.money.gold >= _root.cost)) && (!this.spush)) {
_root.gets.start(0, 1);
this.spush = true;
this.buy = true;
_root.camera.money.gold = _root.camera.money.gold - _root.cost;
}
if ((!Key.isDown(83)) && (_root.talking)) {
this.spush = false;
}
if (this.buy && (_root.item == 1)) {
_root.degg = _root.degg + 15;
_root.getegg = true;
this.buy = false;
}
if (this.buy && (_root.item == 2)) {
_root.speed = _root.speed + 1;
_root.getspeed = true;
this.buy = false;
}
if (this.buy && (_root.item == 3)) {
_root.bandage = _root.bandage + 1;
_root.getbandage = true;
this.buy = false;
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.inshop = false;
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 834 MovieClip "door1" in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && ((Key.isDown(38) && (!_root.pause)) && (!_root.warp))) {
_root.door_open.start(0, 1);
_root.fromshop = true;
_root.warp = true;
}
}
Instance of Symbol 40 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.warp && (_root.fromshop)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.fromshop)) {
_root.gotoAndStop("outside1");
}
}
Frame 15
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.stower == true) && (_root.warp)) {
_root.sketch._x = 281.4;
_root.sketch._y = 92;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.stower = false;
_root.warp = false;
}
if ((_root.goback == true) && (_root.warp)) {
_root.sketch._x = 157.3;
_root.sketch._y = 296;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback = false;
_root.warp = false;
}
};
Instance of Symbol 825 MovieClip in Frame 15
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 948 MovieClip in Frame 15
onClipEvent (load) {
this.msg = 1;
this.dpush = false;
}
onClipEvent (enterFrame) {
if (((((_root.havea && (_root.havez)) && (_root.haver)) && (_root.haveo)) && (_root.haves)) && (!_root.haveletters2)) {
_root.haveletters2 = true;
}
if ((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (this.msg == 1)) && (!_root.havebook)) && (!_root.cutbegin)) {
_root.talking = true;
_root.camera.textbox.message = "Sketch your finally here. As you know the king has chosen me for a secret assignment. It could have serious consequences if anyone caught wind of it. I have designed a document of great importance and it needs to be delivered to the king immediately. I am sorry to pass the burden on to you, but as you can see I am getting old";
}
if ((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (this.msg == 1)) && (_root.cutbegin)) && (!_root.havekey)) {
_root.talking = true;
_root.camera.textbox.message = "This is not good, not good at all. So he has stolen the book of dictions and now plans to use it for his own personal needs. Yes we must stop him at once.";
}
if ((((this.msg == 2) && (_root.cutbegin)) && (!_root.havekey)) && (_root.talking)) {
_root.camera.textbox.message = "What we will need is some golden plaks. They will be able to open up a portal to his lair. There are some I have stashed away in the abandoned house in the main village. You should search there.";
}
if (((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (this.msg == 1)) && (_root.cutbegin)) && (_root.havekey)) && (!_root.wappear)) {
_root.talking = true;
_root.camera.textbox.message = "Did you manage to locate 5 plaks out of the house? Remember they need to spell something that will help us get Lord Azros.";
_root.inputnum = true;
}
if (((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (this.msg == 1)) && (_root.cutbegin)) && (_root.havekey)) && (_root.wappear)) {
_root.talking = true;
_root.camera.textbox.message = "Wow it worked! Now is the time to act. Go into the portal and face whatever Lord Azros has in store for you. Remember your our last hope.";
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 1)) && (!this.dpush)) && (_root.cutbegin)) {
this.msg = 2;
this.dpush = true;
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 2)) && (!this.dpush)) && (_root.cutbegin)) {
this.msg = 3;
}
if (((this.msg == 2) && (!_root.havebook)) && (!_root.cutbegin)) {
_root.camera.textbox.message = "and I fear I wont be able to make the trip. you should easily be able to deliver the package for me. Please take this to the king. you must take it to the castle just west of here. you will have to travel through the forest to get there.";
}
if ((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (this.msg == 1)) && (_root.havebook)) && (!_root.cutbegin)) {
_root.talking = true;
_root.camera.textbox.message = "Please deliver it soon, it is very urgent, but be careful though. There are giant spiders in the woods. You should be able to easily slay them with your sword by pressing the s key.";
}
if ((((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 1)) && (!this.dpush)) && (!_root.havebook)) && (!_root.cutbegin)) {
this.msg = 2;
this.dpush = true;
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 2)) && (!this.dpush)) && (!_root.cutbegin)) {
this.msg = 1;
_root.getbook = true;
_root.havebook = true;
this.dpush = false;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (_root.havebook)) && (!_root.cutbegin)) {
this.msg = 1;
this.dpush = false;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (_root.cutbegin)) && (!_root.havekey)) && (this.msg == 3)) {
this.msg = 1;
this.dpush = false;
_root.getkey = true;
_root.havekey = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (_root.cutbegin)) && (_root.havekey)) {
this.msg = 1;
_root.inputnum = false;
this.dpush = false;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
if (!Key.isDown(68)) {
this.dpush = false;
}
}
Instance of Symbol 965 MovieClip "ba" in Frame 15
onClipEvent (enterFrame) {
if (_root.wappear) {
this.gotoAndStop(2);
}
}
Instance of Symbol 40 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.warp && (_root.otower)) {
this.play();
}
if (_root.warp && (_root.toazros)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.otower)) {
_root.gotoAndStop("outside1");
}
if ((this._currentframe >= 10) && (_root.toazros)) {
_root.gotoAndStop("azros1");
}
}
Instance of Symbol 967 MovieClip "music" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Frame 17
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toforest == true) && (_root.warp)) {
_root.sketch._x = 1705.8;
_root.sketch._y = 136.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toforest = false;
_root.warp = false;
}
if ((_root.oforest2 == true) && (_root.warp)) {
_root.sketch._x = -1963.1;
_root.sketch._y = -312.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.oforest2 = false;
_root.warp = false;
}
};
Instance of Symbol 916 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch)) {
_root.health = _root.health - 1;
_root.sketch._x = 857.1;
_root.sketch._y = 122.4;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
}
}
Instance of Symbol 808 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Note: Some ledges may require precise timing with jumps and a running start to make it safely to the other side.";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 825 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 910 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack == true)) {
this.swapDepths();
this.gotoAndStop("bush_destroy");
this.getHighestDepth(_root.getNextHighestDepth());
}
if ((this._currentframe == 2) && (!this.hitTest(_root.camera))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 999 MovieClip in Frame 17
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if (!this.alive) {
this.gotoAndStop(5);
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 999 MovieClip in Frame 17
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if (!this.alive) {
this.gotoAndStop(5);
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 999 MovieClip in Frame 17
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if (!this.alive) {
this.gotoAndStop(5);
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 850 MovieClip in Frame 17
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (!_root.pause)) {
_root.oforest = true;
_root.warp = true;
}
}
Instance of Symbol 40 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.warp && (_root.oforest)) {
this.play();
}
if (_root.warp && (_root.toforest2)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.oforest)) {
_root.gotoAndStop("outside1");
}
if ((this._currentframe >= 10) && (_root.toforest2)) {
_root.gotoAndStop("forest2");
}
}
Frame 19
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toforest2 == true) && (_root.warp)) {
_root.sketch._x = 1393.8;
_root.sketch._y = 305.2;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toforest2 = false;
_root.warp = false;
}
if ((_root.outcast == true) && (_root.warp)) {
_root.sketch._x = -2418.2;
_root.sketch._y = 378.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outcast = false;
_root.warp = false;
}
};
Instance of Symbol 916 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch)) {
_root.health = _root.health - 1;
_root.sketch._x = 1362.9;
_root.sketch._y = 312.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
}
}
Instance of Symbol 1006 MovieClip "castle" in Frame 19
onClipEvent (enterFrame) {
if (_root.ttalked) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1012 MovieClip "ba" in Frame 19
onClipEvent (enterFrame) {
if (_root.bbuilt) {
this.gotoAndStop(2);
}
if (_root.bbuilt2) {
this.gotoAndStop(1);
}
}
Instance of Symbol 808 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Note: Some times you need to equip certain items while interacting with characters in the game to get the desired response.";
}
if (((this.hitTest(_root.sketch) && (_root.talking)) && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1018 MovieClip in Frame 19
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (!_root.ttalk)) {
_root.talking = true;
_root.camera.textbox.message = " hello traveler! i bet you want to go to the castle dont you? well we have a problem. it seems that someone destroyed the bridge, and it wont be fixed for a while. i bet if you used magical plaks you could get it fixed with no problem. i heard that they do different things depending on what you spell out.";
}
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.ttalk)) && (!_root.bbuilt)) {
_root.talking = true;
_root.camera.textbox.message = "did you get the correct letter plaks yet? they have to spell out a command to fix the bridge. i have heard that there are five tablets in the forest. it may help if you search there. surely they can help you.";
_root.inputnum = true;
}
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.ttalk)) && (_root.bbuilt)) {
_root.talking = true;
_root.camera.textbox.message = "well look at that! you did it! i hope it didnt take to long to figure out. the castle is just up ahead.";
_root.inputnum = false;
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.inputnum = false;
_root.ttalk = true;
_root.camera.textbox.message = " ";
_root.chatwindorclose.start(0, 1);
_root.talking = false;
_root.inputnum = false;
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1022 MovieClip "ground" in Frame 19
onClipEvent (enterFrame) {
if ((((_root.haveb && (_root.haveu)) && (_root.havei)) && (_root.havel)) && (_root.haved)) {
_root.haveletters1 = true;
}
if (_root.bbuilt2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1024 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (!(_root.isel === 1))) && (!_root.ttalked)) {
_root.talking = true;
_root.camera.textbox.message = "Whoa there Easy tiger, what business do you have with the king? I wont let you enter unless you have official business";
}
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.isel == 1)) && (!_root.ttalked)) {
_root.talking = true;
_root.camera.textbox.message = "Oh a package, why didnt you just say so. You can go ahead and go in.";
}
if (((((this.hitTest(_root.sketch) && (_root.talking)) && (this.counter >= 1.5)) && (Key.isDown(68))) && (!_root.ttalked)) && (!(_root.isel === 1))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (((((this.hitTest(_root.sketch) && (_root.talking)) && (this.counter >= 1.5)) && (Key.isDown(68))) && (_root.isel == 1)) && (!_root.ttalked)) {
_root.ttalked = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
if (!Key.isDown(68)) {
this.dpush = false;
}
}
Instance of Symbol 40 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.warp && (_root.oforest2)) {
this.play();
}
if (_root.warp && (_root.incast)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.oforest2)) {
_root.gotoAndStop("forest");
}
if ((this._currentframe >= 10) && (_root.incast)) {
_root.gotoAndStop("incast");
}
}
Instance of Symbol 1026 MovieClip "mvbattle" in Frame 19
onClipEvent (load) {
this.stop();
}
Frame 21
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.incast == true) && (_root.warp)) {
_root.sketch._x = 337.3;
_root.sketch._y = 305.2;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.incast = false;
_root.warp = false;
}
};
Instance of Symbol 1030 MovieClip in Frame 21
onClipEvent (load) {
this.msg = 1;
this.dpush = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (!(_root.isel === 1))) && (!_root.cutbegin)) {
_root.talking = true;
_root.camera.textbox.message = "Hello there my boy. What brings you to my humble abode today?";
}
if (((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.cutbegin)) && (this.msg == 1)) {
_root.talking = true;
_root.camera.textbox.message = "Oh no! He got away with the book. Im so sorry to ask you of this, but can you please get it back? The entire kingdom depends on it. I would send one of my guards but I need them here in case of Lord azross return. If you dont go after him then im afraid that the world will be consumed by the shadow of lord azros.";
}
if (_root.cutbegin && (this.msg == 2)) {
_root.camera.textbox.message = " You must speak with your grandfather at the scholars tower. He is the only one who could possibly know how to find Lord azros.";
}
if ((((((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) && (_root.isel == 1)) && (this.msg == 1)) && (!_root.cutbegin)) {
_root.talking = true;
_root.camera.textbox.message = "GASP, can it be? It has finally been completed, The book of dictions. This book contains every command possible for the golden plaks. With this book and the necessary plaks one could accomplish great things. If this were in the wrong hands it could be total chaos, but while I have it I promise it will only do good.";
}
if ((!_root.cutbegin) && (this.msg == 2)) {
_root.appear.gotoAndStop(2);
_root.camera.textbox.message = "POOF! Mwhahaha! King- What is this? It is I, Lord azros, and I am here to take the book of dictions! King- I dont know who you think you are but you are not just going to take this book. It is far to valuable and dangerous. Lord azros- Oh my dear king, who said I was going to ask for permission.";
}
if ((!_root.cutbegin) && (this.msg == 3)) {
_root.appear.gotoAndStop(3);
_root.camera.textbox.message = "With this book I will become the most powerful man to ever walk this world. I have already set my plans into action and its only a matter of time. King- There is no way you will get away with this! Lord azros- Oh but I already have!";
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 1)) && (!this.dpush)) && (_root.cutbegin)) {
this.msg = 2;
this.dpush = true;
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 2)) && (!this.dpush)) && (_root.cutbegin)) {
this.msg = 3;
}
if ((((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 1)) && (!this.dpush)) && (!_root.cutbegin)) && (_root.isel == 1)) {
_root.mvbattle.play();
_root.music.stop();
this.msg = 2;
this.dpush = true;
}
if ((((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 2)) && (!this.dpush)) && (!_root.cutbegin)) && (_root.isel == 1)) {
this.msg = 3;
this.dpush = true;
}
if ((((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.msg == 3)) && (!this.dpush)) && (!_root.cutbegin)) && (_root.isel == 1)) {
this.msg = 4;
_root.mvbattle.stop();
_root.music.play();
_root.appear.gotoAndStop(4);
this.dpush = true;
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (_root.isel == 1)) && (!_root.cutbegin)) && (this.msg == 4)) {
this.dpush = false;
_root.havebook = false;
_root.cutbegin = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
_root.isel = 0;
this.msg = 1;
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (!this.dpush)) && (!(_root.isel === 1))) && (!_root.cutbegin)) {
this.msg = 1;
this.dpush = false;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (((((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (!this.dpush)) && (_root.cutbegin)) && (this.msg == 3)) {
this.dpush = false;
_root.camera.textbox.message = " ";
_root.talking = false;
this.msg = 1;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
if (!Key.isDown(68)) {
this.dpush = false;
}
}
Instance of Symbol 834 MovieClip "door1" in Frame 21
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outcast = true;
_root.warp = true;
}
}
Instance of Symbol 40 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.warp && (_root.outcast)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.outcast)) {
_root.gotoAndStop("forest2");
}
}
Instance of Symbol 1026 MovieClip "mvbattle" in Frame 21
onClipEvent (load) {
this.stop();
}
Frame 23
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab == true) && (_root.warp)) {
_root.sketch._x = 13.4;
_root.sketch._y = 320.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab = false;
_root.warp = false;
}
if ((_root.outhouseab2 == true) && (_root.warp)) {
_root.sketch._x = 384.9;
_root.sketch._y = 320.3;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outhouseab2 = false;
_root.warp = false;
}
if ((_root.outhouseab3 == true) && (_root.warp)) {
_root.sketch._x = 326.9;
_root.sketch._y = -62.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outhouseab3 = false;
_root.warp = false;
}
};
Instance of Symbol 1154 MovieClip in Frame 23
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 834 MovieClip in Frame 23
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outhouseab = true;
_root.warp = true;
}
}
Instance of Symbol 834 MovieClip in Frame 23
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.inhouseab2 = true;
_root.warp = true;
}
}
Instance of Symbol 834 MovieClip in Frame 23
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.inhouseab3 = true;
_root.warp = true;
}
}
Instance of Symbol 999 MovieClip in Frame 23
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if (!this.alive) {
this.gotoAndStop(5);
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 40 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.warp && (_root.outhouseab)) {
this.play();
}
if (_root.warp && (_root.inhouseab2)) {
this.play();
}
if (_root.warp && (_root.inhouseab3)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.inhouseab2)) {
_root.gotoAndStop("inhouseab2");
}
if ((this._currentframe >= 10) && (_root.outhouseab)) {
_root.gotoAndStop("outside1");
}
if ((this._currentframe >= 10) && (_root.inhouseab3)) {
_root.gotoAndStop("inhouseab3");
}
}
Instance of Symbol 967 MovieClip "music" in Frame 23
onClipEvent (load) {
this._visible = false;
}
Frame 25
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab2 == true) && (_root.warp)) {
_root.sketch._x = 37;
_root.sketch._y = 269.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab2 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 25
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outhouseab2 = true;
_root.warp = true;
}
}
Instance of Symbol 1166 MovieClip in Frame 25
onClipEvent (enterFrame) {
if ((_root.enemies == 0) && (!_root.c1open)) {
this.gotoAndStop(2);
}
if (_root.c1open && (!_root.talking)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1193 MovieClip in Frame 25
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (((!_root.pause) && (this.health > 0)) && (this.in_range)) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if (((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if ((!this.in_range) && (this.health > 0)) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 40 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.warp && (_root.outhouseab2)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.outhouseab2)) {
_root.gotoAndStop("inhouseab");
}
}
Frame 27
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab3 == true) && (_root.warp)) {
_root.sketch._x = -38.5;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab3 = false;
_root.warp = false;
}
if ((_root.outhouseab4 == true) && (_root.warp)) {
_root.sketch._x = 189.4;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outhouseab4 = false;
_root.warp = false;
}
if ((_root.outhouseab5 == true) && (_root.warp)) {
_root.sketch._x = 366.4;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.outhouseab5 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 27
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outhouseab3 = true;
_root.warp = true;
}
}
Instance of Symbol 834 MovieClip in Frame 27
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.warp = true;
_root.door_open.start(0, 1);
_root.inhouseab4 = true;
}
}
Instance of Symbol 834 MovieClip in Frame 27
onClipEvent (load) {
this.unlocked = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.smallkey > 0)) && (!this.unlocked)) && (!_root.doorunlocked)) {
_root.smallkey = _root.smallkey - 1;
this.unlocked = true;
this.lock.play();
}
if (this.lock._currentframe == 37) {
_root.doorunlocked = true;
}
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.doorunlocked)) {
_root.door_open.start(0, 1);
_root.warp = true;
_root.inhouseab5 = true;
}
if (_root.doorunlocked) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 40 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.warp && (_root.outhouseab3)) {
this.play();
}
if (_root.warp && (_root.inhouseab4)) {
this.play();
}
if (_root.warp && (_root.inhouseab5)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.outhouseab3)) {
_root.gotoAndStop("inhouseab");
}
if ((this._currentframe >= 10) && (_root.inhouseab4)) {
_root.gotoAndStop("inhouseab4");
}
if ((this._currentframe >= 10) && (_root.inhouseab5)) {
_root.gotoAndStop("inhouseab5");
}
}
Frame 29
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab4 == true) && (_root.warp)) {
_root.sketch._x = -38.5;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab4 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 29
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outhouseab4 = true;
_root.warp = true;
}
}
Instance of Symbol 1197 MovieClip in Frame 29
onClipEvent (enterFrame) {
if ((_root.enemies == 0) && (!_root.c2open)) {
this.gotoAndStop(2);
}
if (_root.c2open && (!_root.talking)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 999 MovieClip in Frame 29
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
this.minen = false;
_root.enemies = _root.enemies + 1;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if ((!this.alive) && (!this.minen)) {
_root.enemies = _root.enemies - 1;
this.gotoAndStop(5);
this.minen = true;
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1193 MovieClip in Frame 29
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (((!_root.pause) && (this.health > 0)) && (this.in_range)) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if (((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if ((!this.in_range) && (this.health > 0)) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 40 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.warp && (_root.outhouseab4)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.outhouseab4)) {
_root.gotoAndStop("inhouseab3");
}
}
Frame 31
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab5 == true) && (_root.warp)) {
_root.sketch._x = -38.5;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab5 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 31
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.outhouseab5 = true;
_root.warp = true;
}
}
Instance of Symbol 1162 MovieClip in Frame 31
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "Oh look dragon eggs! If you have them equipped they can be thrown with the F key. Be careful though. They can be dangerous!";
_root.getegg = true;
_root.c3open = true;
_root.degg = _root.degg + 15;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c3open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1205 MovieClip "door1" in Frame 31
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.bigkey > 0)) {
_root.bigkey = _root.bigkey - 1;
this.lock.play();
}
if (this.lock._currentframe == 90) {
_root.bossunlocked = true;
}
if ((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.bossunlocked)) && (!_root.beat1)) {
_root.door_open.start(0, 1);
_root.warp = true;
_root.inhouseab6 = true;
}
if (_root.bossunlocked && (!_root.beat1)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 890 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(68))) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Note:\r\rUsing certain items can help you defeat enemies that cannot be harmed by a sword!";
}
if ((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1193 MovieClip in Frame 31
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (((!_root.pause) && (this.health > 0)) && (this.in_range)) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if (((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if ((!this.in_range) && (this.health > 0)) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 40 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (_root.warp && (_root.outhouseab5)) {
this.play();
}
if (_root.warp && (_root.inhouseab6)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.outhouseab5)) {
_root.gotoAndStop("inhouseab3");
}
if ((this._currentframe >= 10) && (_root.inhouseab6)) {
_root.gotoAndStop("inhouseab6");
}
}
Frame 33
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.inhouseab6 == true) && (_root.warp)) {
_root.sketch._x = -448.9;
_root.sketch._y = 296.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.inhouseab6 = false;
_root.warp = false;
}
};
_root.eyesout = false;
_root.eye1hurt = false;
_root.eye2hurt = false;
_root.eye3hurt = false;
_root.eye4hurt = false;
_root.eye1hurting = false;
_root.eye2hurting = false;
_root.eye3hurting = false;
_root.eye4hurting = false;
Instance of Symbol 1154 MovieClip in Frame 33
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 33
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1154 MovieClip in Frame 33
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 33
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1240 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.boss1beat) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1309 MovieClip "boss1" in Frame 33
onClipEvent (load) {
this.begin = false;
this.health = 400;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.camera) && (!this.begin)) && (this.alive)) && (!_root.pause)) {
this.begin = true;
this.bg.play();
_root.music.stop();
_root.mvbattle.play();
}
if (this.health > 0) {
this.alive = true;
} else {
this.alive = false;
}
if ((((((this.begin && (this.alive)) && (_root.sketch.hitTest(_root.block1))) && (this.bg._currentframe == 21)) && (!_root.eyesout)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop("attack1");
}
if ((((((this.begin && (this.alive)) && (_root.sketch.hitTest(_root.block2))) && (this.bg._currentframe == 21)) && (!_root.eyesout)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop("attack2");
}
if ((((((this.begin && (this.alive)) && (_root.sketch.hitTest(_root.block3))) && (this.bg._currentframe == 21)) && (!_root.eyesout)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop("attack3");
}
if ((((((this.begin && (this.alive)) && (_root.sketch.hitTest(_root.block4))) && (this.bg._currentframe == 21)) && (!_root.eyesout)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop("attack4");
}
if (((_root.eyesout && (this.alive)) && (this._currentframe == 1)) && (!_root.pause)) {
this.gotoAndStop("hurt");
}
if ((((_root.eye1hurt && (_root.eye2hurt)) && (_root.eye3hurt)) && (_root.eye4hurt)) && (!_root.pause)) {
_root.eyesout = true;
} else {
_root.eyesout = false;
}
if ((!this.alive) && (!_root.pause)) {
this.gotoAndStop("dead");
_root.music.play();
_root.mvbattle.gotoAndStop(1);
}
}
Instance of Symbol 40 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (((((_root.havea && (_root.havez)) && (_root.haver)) && (_root.haveo)) && (_root.haves)) && (!_root.beat1)) {
this.play();
_root.won1 = true;
_root.warp = true;
_root.beat1 = true;
}
if ((this._currentframe >= 10) && (_root.beat1)) {
_root.gotoAndStop("outside1");
}
}
Instance of Symbol 1026 MovieClip "mvbattle" in Frame 33
onClipEvent (load) {
this._visible = false;
this.gotoAndStop(1);
}
Frame 35
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros == true) && (_root.warp)) {
_root.sketch._x = 137.4;
_root.sketch._y = 213.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros = false;
_root.warp = false;
}
if ((_root.goback2 == true) && (_root.warp)) {
_root.sketch._x = -232.5;
_root.sketch._y = -65.8;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback2 = false;
_root.warp = false;
}
};
Instance of Symbol 1318 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1205 MovieClip "door1" in Frame 35
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.bigkey > 0)) {
_root.bigkey = _root.bigkey - 1;
this.lock.play();
}
if (this.lock._currentframe == 90) {
_root.bossunlocked2 = true;
}
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.bossunlocked2)) {
_root.door_open.start(0, 1);
_root.warp = true;
_root.toazros8 = true;
}
if (_root.bossunlocked2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 834 MovieClip in Frame 35
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.toazros2 = true;
_root.warp = true;
}
}
Instance of Symbol 1324 MovieClip in Frame 35
onClipEvent (enterFrame) {
if ((_root.enemies == 0) && (!_root.switch1)) {
this.gotoAndStop(2);
}
if (_root.switch1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1328 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.doorunlocked4 && (!_root.platpl)) {
this.gotoAndStop(2);
}
if (_root.platpl) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1330 MovieClip in Frame 35
onClipEvent (load) {
this.unlocked = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.smallkey > 0)) && (!this.unlocked)) && (!_root.doorunlocked4)) {
_root.smallkey = _root.smallkey - 1;
this.unlocked = true;
this.lock.play();
}
if (this.lock._currentframe == 37) {
_root.doorunlocked4 = true;
}
if (_root.doorunlocked4) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 1333 MovieClip "ground" in Frame 35
onClipEvent (enterFrame) {
if (_root.doorunlocked4 && (_root.platpl)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1336 MovieClip "ladap" in Frame 35
onClipEvent (load) {
this.appeared = false;
}
onClipEvent (enterFrame) {
if (_root.switch1) {
this.gotoAndStop(2);
}
if (this.appeared) {
this._visible = false;
}
}
Instance of Symbol 1154 MovieClip in Frame 35
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.switch1 && (_root.ladap.appeared)) {
this._visible = true;
}
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) && (this._visible)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) && (this._visible)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if ((Key.isDown(65) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (this._visible)) {
_root.sketch._y = _root.sketch._y - 5;
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (this._visible)) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb && (this._visible)) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if (((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1193 MovieClip in Frame 35
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback)) {
this.play();
}
if (_root.warp && (_root.toazros2)) {
this.play();
}
if (_root.warp && (_root.toazros8)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback)) {
_root.gotoAndStop("stower");
}
if ((this._currentframe >= 10) && (_root.toazros2)) {
_root.gotoAndStop("azros2");
}
if ((this._currentframe >= 10) && (_root.toazros8)) {
_root.gotoAndStop("azros8");
}
}
Instance of Symbol 1340 MovieClip "music" in Frame 35
onClipEvent (load) {
this._visible = false;
}
Frame 37
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros2 == true) && (_root.warp)) {
_root.sketch._x = -284.4;
_root.sketch._y = 272.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros2 = false;
_root.warp = false;
}
if ((_root.goback3 == true) && (_root.warp)) {
_root.sketch._x = 1365;
_root.sketch._y = 278.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback3 = false;
_root.warp = false;
}
if ((_root.goback5 == true) && (_root.warp)) {
_root.sketch._x = 1541.3;
_root.sketch._y = 282.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback5 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 37
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback2 = true;
_root.warp = true;
}
}
Instance of Symbol 1322 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 1)) && (!this.spush)) {
this.gotoAndStop(2);
_root.switch2 = true;
_root.switchs.start(0, 1);
this.spush = true;
}
i = 0;
while (i < _root.egg) {
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe == 1)) && (_root["egg_" + i]._currentframe == 1)) {
this.gotoAndStop(2);
_root.switch2 = true;
_root.switchs.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe == 2)) && (_root["egg_" + i]._currentframe == 1)) {
this.gotoAndStop(1);
_root.switch2 = true;
_root.switchs.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 2)) && (!this.spush)) {
this.gotoAndStop(1);
_root.switchs.start(0, 1);
this.spush = true;
}
if (!_root.attack) {
this.spush = false;
}
}
Instance of Symbol 1318 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 834 MovieClip in Frame 37
onClipEvent (load) {
this.unlocked = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.smallkey > 0)) && (!this.unlocked)) && (!_root.doorunlocked2)) {
_root.smallkey = _root.smallkey - 1;
this.unlocked = true;
this.lock.play();
}
if (this.lock._currentframe == 37) {
_root.doorunlocked2 = true;
}
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.doorunlocked2)) {
_root.door_open.start(0, 1);
_root.warp = true;
_root.toazros5 = true;
}
if (_root.doorunlocked2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 834 MovieClip in Frame 37
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.toazros3 = true;
_root.warp = true;
}
}
Instance of Symbol 1342 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.switch2 && (!_root.platformap)) {
this.gotoAndStop(2);
}
if (_root.platformap) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1344 MovieClip in Frame 37
onClipEvent (enterFrame) {
if ((_root.enemies == 0) && (!_root.c4open)) {
this.gotoAndStop(2);
}
if (_root.c4open && (!_root.talking)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1347 MovieClip "ground" in Frame 37
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1193 MovieClip in Frame 37
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1193 MovieClip in Frame 37
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 916 MovieClip in Frame 37
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_root.sketch)) {
_root.sketch._x = 825.1;
_root.sketch._y = 250.4;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
}
}
Instance of Symbol 40 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback2)) {
this.play();
}
if (_root.warp && (_root.toazros3)) {
this.play();
}
if (_root.warp && (_root.toazros5)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback2)) {
_root.gotoAndStop("azros1");
}
if ((this._currentframe >= 10) && (_root.toazros3)) {
_root.gotoAndStop("azros3");
}
if ((this._currentframe >= 10) && (_root.toazros5)) {
_root.gotoAndStop("azros5");
}
}
Frame 39
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros3 == true) && (_root.warp)) {
_root.sketch._x = 101.4;
_root.sketch._y = 272.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros3 = false;
_root.warp = false;
}
if ((_root.goback4 == true) && (_root.warp)) {
_root.sketch._x = 513.3;
_root.sketch._y = 42.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback4 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback3 = true;
_root.warp = true;
}
}
Instance of Symbol 1351 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((_root.enemies == 0) && (!_root.doorappear)) {
this.gotoAndStop(2);
}
if (_root.doorappear) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1354 MovieClip "ground" in Frame 39
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 825 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) && (!_root.warp)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) && (!_root.warp)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if ((Key.isDown(65) && (_root.climb)) && (!_root.warp)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.warp)) {
_root.sketch._y = _root.sketch._y - 5;
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.warp)) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if (((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) && (!_root.warp)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) && (!_root.warp)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 999 MovieClip in Frame 39
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
this.minen = false;
_root.enemies = _root.enemies + 1;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if ((!this.alive) && (!this.minen)) {
_root.enemies = _root.enemies - 1;
this.gotoAndStop(5);
this.minen = true;
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1193 MovieClip in Frame 39
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (((!_root.pause) && (this.health > 0)) && (this.in_range)) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if (((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if ((!this.in_range) && (this.health > 0)) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback3)) {
this.play();
}
if (_root.warp && (_root.toazros4)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback3)) {
_root.gotoAndStop("azros2");
}
if ((this._currentframe >= 10) && (_root.toazros4)) {
_root.gotoAndStop("azros4");
}
}
Frame 41
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros4 == true) && (_root.warp)) {
_root.sketch._x = 427.4;
_root.sketch._y = 276.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros4 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 41
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback4 = true;
_root.warp = true;
}
}
Instance of Symbol 1363 MovieClip "torch2" in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.bat1.bat) or this.hitTest(_root.bat2.bat)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1363 MovieClip "torch1" in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.bat1.bat) or this.hitTest(_root.bat2.bat)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1365 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (((_root.torch1._currentframe == 2) && (_root.torch2._currentframe == 2)) && (!_root.c5open)) {
this.gotoAndStop(2);
}
if (_root.c5open && (!_root.talking)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1367 MovieClip "ground" in Frame 41
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1372 MovieClip "bat1" in Frame 41
onClipEvent (load) {
this.hp = 1;
this.alive = true;
this.spd = 0;
_root.enemies = _root.enemies + 1;
this.minen = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 250;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (this.hp > 0) {
this.alive = true;
}
if ((this.hp < 0) && (!this.minen)) {
this.alive = false;
this.minen = true;
_root.enemies = _root.enemies - 1;
this.gotoAndStop(2);
}
if ((this.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) {
this.hp = this.hp - 1;
}
if (((((this.hitTest(_root.sketch) && (!_root.hurted)) && (!_root.hurt)) && (!_root.attack)) && (this.alive)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((!_root.pause) && (this.in_range)) && (this.alive)) {
if (this._x < _root.sketch._x) {
this._x = this._x + this.spd;
}
if (this._x > _root.sketch._x) {
this._x = this._x - this.spd;
}
if (this._y > _root.sketch._y) {
this._y = this._y - this.spd;
}
if (this._y < _root.sketch._y) {
this._y = this._y + this.spd;
}
}
}
Instance of Symbol 1372 MovieClip "bat2" in Frame 41
onClipEvent (load) {
this.hp = 1;
this.alive = true;
this.spd = 0;
_root.enemies = _root.enemies + 1;
this.minen = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 250;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (this.hp > 0) {
this.alive = true;
}
if ((this.hp < 0) && (!this.minen)) {
this.alive = false;
this.minen = true;
_root.enemies = _root.enemies - 1;
this.gotoAndStop(2);
}
if ((this.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) {
this.hp = this.hp - 1;
}
if (((((this.hitTest(_root.sketch) && (!_root.hurted)) && (!_root.hurt)) && (!_root.attack)) && (this.alive)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((!_root.pause) && (this.in_range)) && (this.alive)) {
if (this._x < _root.sketch._x) {
this._x = this._x + this.spd;
}
if (this._x > _root.sketch._x) {
this._x = this._x - this.spd;
}
if (this._y > _root.sketch._y) {
this._y = this._y - this.spd;
}
if (this._y < _root.sketch._y) {
this._y = this._y + this.spd;
}
}
}
Instance of Symbol 1193 MovieClip in Frame 41
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback4)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback4)) {
_root.gotoAndStop("azros3");
}
}
Frame 43
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros5 == true) && (_root.warp)) {
_root.sketch._x = -774.5;
_root.sketch._y = 272.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros5 = false;
_root.warp = false;
}
if ((_root.goback6 == true) && (_root.warp)) {
_root.sketch._x = 239.4;
_root.sketch._y = 282.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback6 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback5 = true;
_root.warp = true;
}
}
Instance of Symbol 1162 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a speed potion! Press f while equipped and your top speed will increase for a short period of time!";
_root.getspeed = true;
_root.c6open = true;
_root.speed = _root.speed + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c6open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1318 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 834 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.toazros6 = true;
_root.warp = true;
}
}
Instance of Symbol 1363 MovieClip "torch2" in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.bat1.bat) or this.hitTest(_root.bat2.bat)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1363 MovieClip "torch1" in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.bat1.bat) or this.hitTest(_root.bat2.bat)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1162 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a bandage! Press f while equipped to restore your life!";
_root.bandage = _root.bandage + 1;
_root.getbandage = true;
_root.c7open = true;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c7open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1322 MovieClip "t_switch" in Frame 43
onClipEvent (load) {
this.timer = 0;
this.timerstart = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 1)) && (!this.spush)) {
this.gotoAndStop(2);
_root.switch3 = true;
_root.switchs.start(0, 1);
this.spush = true;
}
i = 0;
while (i < _root.egg) {
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe == 1)) && (_root["egg_" + i]._currentframe == 1)) {
this.gotoAndStop(2);
_root.switch3 = true;
_root.switchs.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe == 2)) && (_root["egg_" + i]._currentframe == 1)) {
this.gotoAndStop(1);
this.timer = 0;
this.timerstart = false;
_root.switch3 = true;
_root.switchs.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 2)) && (!this.spush)) {
this.timer = 0;
this.timerstart = false;
this.gotoAndStop(1);
_root.switchs.start(0, 1);
this.spush = true;
}
if ((this._currentframe == 2) && (this.timer == 0)) {
this.timerstart = true;
this.timer = 400;
}
if (this.timerstart) {
this.timer = this.timer - 1;
}
if ((this.timer <= 0) && (this.timerstart)) {
_root.switchs.start(0, 1);
this.timerstart = false;
this.gotoAndStop(1);
}
if (!_root.attack) {
this.spush = false;
}
}
Instance of Symbol 1162 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a small key! You can use this to open a locked door!.";
_root.getkey = true;
_root.c8open = true;
_root.smallkey = _root.smallkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c8open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1374 MovieClip "ground" in Frame 43
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 825 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.ladap2.appeared) {
this._visible = true;
}
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) && (this._visible)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if (((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) && (this._visible)) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if ((Key.isDown(65) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (this._visible)) {
_root.sketch._y = _root.sketch._y - 5;
}
if (((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (this._visible)) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb && (this._visible)) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if (((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if (((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) && (this._visible)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1377 MovieClip "ladap2" in Frame 43
onClipEvent (load) {
this.appeared = false;
}
onClipEvent (enterFrame) {
if ((_root.torch1._currentframe == 2) && (_root.torch2._currentframe == 2)) {
this.gotoAndStop(2);
}
if (this.appeared) {
this._visible = false;
}
}
Instance of Symbol 999 MovieClip in Frame 43
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
this.minen = false;
_root.enemies = _root.enemies + 1;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if ((!this.alive) && (!this.minen)) {
_root.enemies = _root.enemies - 1;
this.gotoAndStop(5);
this.minen = true;
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1372 MovieClip "bat1" in Frame 43
onClipEvent (load) {
this.hp = 1;
this.alive = true;
this.spd = 0;
_root.enemies = _root.enemies + 1;
this.minen = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 250;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (this.hp > 0) {
this.alive = true;
}
if ((this.hp < 0) && (!this.minen)) {
this.alive = false;
this.minen = true;
_root.enemies = _root.enemies - 1;
this.gotoAndStop(2);
}
if ((this.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) {
this.hp = this.hp - 1;
}
if (((((this.hitTest(_root.sketch) && (!_root.hurted)) && (!_root.hurt)) && (!_root.attack)) && (this.alive)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((!_root.pause) && (this.in_range)) && (this.alive)) {
if (this._x < _root.sketch._x) {
this._x = this._x + this.spd;
}
if (this._x > _root.sketch._x) {
this._x = this._x - this.spd;
}
if (this._y > _root.sketch._y) {
this._y = this._y - this.spd;
}
if (this._y < _root.sketch._y) {
this._y = this._y + this.spd;
}
}
}
Instance of Symbol 1372 MovieClip "bat2" in Frame 43
onClipEvent (load) {
this.hp = 1;
this.alive = true;
this.spd = 0;
_root.enemies = _root.enemies + 1;
this.minen = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 250;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if (this.hp > 0) {
this.alive = true;
}
if ((this.hp < 0) && (!this.minen)) {
this.alive = false;
this.minen = true;
_root.enemies = _root.enemies - 1;
this.gotoAndStop(2);
}
if ((this.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) {
this.hp = this.hp - 1;
}
if (((((this.hitTest(_root.sketch) && (!_root.hurted)) && (!_root.hurt)) && (!_root.attack)) && (this.alive)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((!_root.pause) && (this.in_range)) && (this.alive)) {
if (this._x < _root.sketch._x) {
this._x = this._x + this.spd;
}
if (this._x > _root.sketch._x) {
this._x = this._x - this.spd;
}
if (this._y > _root.sketch._y) {
this._y = this._y - this.spd;
}
if (this._y < _root.sketch._y) {
this._y = this._y + this.spd;
}
}
}
Instance of Symbol 999 MovieClip in Frame 43
onClipEvent (load) {
this.ok = true;
this.hurt = false;
this.alive = true;
this.hp = 2;
this.minen = false;
_root.enemies = _root.enemies + 1;
}
onClipEvent (enterFrame) {
if (this.hp <= 0) {
this.hp = 0;
this.alive = false;
}
if ((!this.alive) && (!this.minen)) {
_root.enemies = _root.enemies - 1;
this.gotoAndStop(5);
this.minen = true;
}
if (((this.spider.hitTest(_root.sketch) && (_root.attack)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (((((((this.spider.hitTest(_root.sketch) && (!_root.attack)) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (this.alive)) && (!_root.pause)) && (!_root.duck)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x < this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(3);
} else if (((((this.hurt && (this._currentframe == 2)) && (_root.sketch._x > this._x)) && (this.ok)) && (this.alive)) && (!_root.pause)) {
this.gotoAndStop(4);
}
i = 0;
while (i < _root.egg) {
if (((this.spider.hitTest(_root["egg_" + i]) && (!this.hurt)) && (this.alive)) && (!_root.pause)) {
this.hurt = true;
this.hp = this.hp - 2;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1378 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((((_root.t_switch.timer <= 0) && (this.hitTest(_root.sketch))) && (this._currentframe == 2)) && (!_root.c8open)) {
_root.sketch._x = _root.sketch._x + 9;
if ((((!_root.hurt) && (!_root.hurted)) && (this._currentframe == 2)) && (!_root.c8open)) {
_root.health = _root.health - 2;
_root.hurt = true;
}
}
if ((_root.t_switch.timer > 0) or _root.c8open) {
this.gotoAndStop(1);
}
if ((_root.t_switch.timer <= 0) && (!_root.c8open)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1193 MovieClip in Frame 43
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback5)) {
this.play();
}
if (_root.warp && (_root.toazros6)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback5)) {
_root.gotoAndStop("azros2");
}
if ((this._currentframe >= 10) && (_root.toazros6)) {
_root.gotoAndStop("azros6");
}
}
Frame 45
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros6 == true) && (_root.warp)) {
_root.sketch._x = -415.5;
_root.sketch._y = 272.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros6 = false;
_root.warp = false;
}
if ((_root.goback7 == true) && (_root.warp)) {
_root.sketch._x = 724;
_root.sketch._y = 282.9;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.goback7 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 45
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback6 = true;
_root.warp = true;
}
}
Instance of Symbol 1318 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 834 MovieClip in Frame 45
onClipEvent (load) {
this.unlocked = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.smallkey > 0)) && (!this.unlocked)) && (!_root.doorunlocked3)) {
_root.smallkey = _root.smallkey - 1;
this.unlocked = true;
this.lock.play();
}
if (this.lock._currentframe == 37) {
_root.doorunlocked3 = true;
}
if (((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) && (_root.doorunlocked3)) {
_root.door_open.start(0, 1);
_root.warp = true;
_root.toazros7 = true;
}
if (_root.doorunlocked3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 1380 MovieClip "ground" in Frame 45
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1193 MovieClip in Frame 45
onClipEvent (load) {
this.hurt = false;
this.health = 6;
this.speed = 0;
this.defend = false;
this.XscaleX = _xscale;
this.bounce = 20;
_root.enemies = _root.enemies + 1;
this.dead = false;
}
onClipEvent (enterFrame) {
function checkproximity() {
dist_sketch = 310;
dx = _x - _root.sketch._x;
dy = _y - _root.sketch._y;
this.dist = Math.sqrt((dx * dx) + (dy * dy));
if (this.dist < dist_sketch) {
this.in_range = true;
} else {
this.in_range = false;
}
}
checkproximity();
if ((((!_root.pause) && (this.health > 0)) && (this.in_range)) && (_root.sketch.hitTest(_root.sec1))) {
if ((this.hitTest(_root.sketch) && (!this.hurt)) && (!this.defend)) {
this.move = false;
this.speed = 0;
this.gotoAndStop("attacking");
this.defend = false;
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (!this.defend)) {
this.hurt = true;
this.health = this.health - 1;
this.gotoAndStop("hurting");
}
if (((this.hitTest(_root.sketch) && (!this.hurt)) && (_root.attack)) && (this.defend)) {
this.hurt = false;
this.gotoAndStop("defend");
}
if ((this.move && (this.speed < 7)) && (this.health > 0)) {
this.speed = this.speed + 0.5;
}
if ((((_root.sketch._x > this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = (-this.XscaleX);
this.dir = 1;
this.gotoAndStop("walking");
this._x = this._x + this.speed;
this.move = true;
}
if ((((_root.sketch._x < this._x) && (!this.hitTest(_root.sketch))) && (!this.hurt)) && (!this.defend)) {
_xscale = this.XscaleX;
this.dir = 2;
this.gotoAndStop("walking");
this._x = this._x - this.speed;
this.move = true;
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (_root["egg_" + i]._currentframe == 1)) && (!this.hurt)) && (!_root.pause)) && (this.health > 0)) {
this.hurt = true;
this.health = this.health - 2;
this.gotoAndStop("hurting");
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
if (((!this.in_range) && (this.health > 0)) or ((!_root.sketch.hitTest(_root.sec1)) && (this.health > 0))) {
this.hurt = false;
this.defend = false;
this.gotoAndStop("still");
}
if (!this.hitTest(_root.sec1)) {
this.health = 0;
this.hurt = false;
this.defend = false;
}
if (this.hurt && (this.dir == 1)) {
this._x = this._x - this.bounce;
this.bounce = this.bounce - 2.5;
}
if (this.hurt && (this.dir == 2)) {
this._x = this._x + this.bounce;
this.bounce = this.bounce - 2.5;
}
if ((!this.hurt) && (!(this.bounce === 20))) {
this.bounce = 20;
}
if ((this.health <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.enemies = _root.enemies - 1;
this.dead = true;
}
}
Instance of Symbol 1338 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback6)) {
this.play();
}
if (_root.warp && (_root.toazros7)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback6)) {
_root.gotoAndStop("azros5");
}
if ((this._currentframe >= 10) && (_root.toazros7)) {
_root.gotoAndStop("azros7");
}
}
Frame 47
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros7 == true) && (_root.warp)) {
_root.sketch._x = -1265.3;
_root.sketch._y = 270.1;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros7 = false;
_root.warp = false;
}
};
Instance of Symbol 834 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback7 = true;
_root.warp = true;
}
}
Instance of Symbol 1162 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a bandage! Press f while equipped to restore your life!";
_root.bandage = _root.bandage + 1;
_root.getbandage = true;
_root.c9open = true;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c9open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1318 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1318 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 4)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 4)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 3)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 3)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 2)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 2)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 7)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 7)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 6)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 6)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1363 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.demon.demon_attacking && (_root.demon._currentframe == 5)) {
this.gotoAndStop(2);
}
if (!(_root.demon._currentframe === 5)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1162 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got dragon eggs! While equipped use the f key to throw them!";
_root.degg = _root.degg + 20;
_root.getegg = true;
_root.c10open = true;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c10open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Instance of Symbol 1383 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((_root.demon.begin && (!_root.boss2dead)) && (this.hitTest(_root.sketch))) {
_root.sketch._x = _root.sketch._x + _root.sketch.speed;
}
}
Instance of Symbol 1385 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.boss2dead && (!_root.c11open)) {
this.gotoAndStop(2);
}
if (_root.c11open && (!_root.talking)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1387 MovieClip "ground" in Frame 47
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1154 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1154 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 825 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1431 MovieClip "demon" in Frame 47
onClipEvent (load) {
this.demon_attacked = false;
this.demon_attacking = false;
this.idle_played = false;
this.health = 350;
this.hurt = false;
this.begin = false;
_root.canhurt = false;
}
onClipEvent (enterFrame) {
if (((((this.health > 0) && (!this.demon_attacking)) && (!this.hurt)) && (!_root.boss2dead)) && (this.begin)) {
if ((((((!_root.sketch.hitTest(_root.sec1)) && (!_root.sketch.hitTest(_root.sec2))) && (!_root.sketch.hitTest(_root.sec3))) && (!_root.sketch.hitTest(_root.sec4))) && (!_root.sketch.hitTest(_root.sec5))) && (!_root.sketch.hitTest(_root.sec6))) {
this.gotoAndStop(1);
}
}
if ((((((this.health > 0) && (!this.hurt)) && (!this.demon_attacking)) && (this.idle_played)) && (!_root.boss2dead)) && (this.begin)) {
if (_root.sketch.hitTest(_root.sec1)) {
this.demon_attacking = true;
this.gotoAndStop(2);
}
if (_root.sketch.hitTest(_root.sec2)) {
this.demon_attacking = true;
this.gotoAndStop(3);
}
if (_root.sketch.hitTest(_root.sec3)) {
this.demon_attacking = true;
this.gotoAndStop(4);
}
if (_root.sketch.hitTest(_root.sec4)) {
this.demon_attacking = true;
this.gotoAndStop(5);
}
if (_root.sketch.hitTest(_root.sec5)) {
this.demon_attacking = true;
this.gotoAndStop(6);
}
if (_root.sketch.hitTest(_root.sec6)) {
this.demon_attacking = true;
this.gotoAndStop(7);
}
}
i = 0;
while (i < _root.egg) {
if ((((this.hitTest(_root["egg_" + i]) && (!this.hurt)) && (!_root.pause)) && (!(this._currentframe === 1))) && (_root.canhurt)) {
this.hurt = true;
_root.demonhurt.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
if (((this.hurt && (this._currentframe == 1)) && (!_root.boss2dead)) && (this.begin)) {
this.gotoAndStop("opportunity");
}
i++;
}
if ((this.health <= 0) && (!_root.boss2dead)) {
this.gotoAndStop("dead");
}
if (_root.boss2dead) {
this.gotoAndStop("gone");
}
if ((this.hitTest(_root.camera) && (!this.begin)) && (!_root.pause)) {
this.begin = true;
_root.music.stop();
_root.mvbattle.play();
}
}
Instance of Symbol 1338 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1338 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 40 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.warp && (_root.goback7)) {
this.play();
}
if ((this._currentframe >= 10) && (_root.goback7)) {
_root.gotoAndStop("azros6");
}
}
Instance of Symbol 1026 MovieClip "mvbattle" in Frame 47
onClipEvent (load) {
this._visible = false;
this.gotoAndStop(1);
}
Frame 49
stop();
_root.enemies = 0;
onEnterFrame = function () {
if ((_root.toazros8 == true) && (_root.warp)) {
_root.sketch._x = -470.2;
_root.sketch._y = 261.6;
_root.camera._x = _root.sketch._x;
_root.camera._y = _root.sketch._y;
_root.toazros8 = false;
_root.warp = false;
}
};
Instance of Symbol 1434 MovieClip "ground" in Frame 49
onClipEvent (enterFrame) {
if (_root.platformap) {
this.gotoAndStop(2);
}
}
Instance of Symbol 825 MovieClip in Frame 49
onClipEvent (enterFrame) {
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) && (!_root.jumping)) && (!this.base2.hitTest(_root.sketch))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y - 30;
}
if ((((((this.hitTest(_root.sketch) && (!_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) && (!_root.jumping)) && (!_root.sketch.hitTest(this.base))) {
_root.climb = true;
_root.sketch.gotoAndStop(3);
if ((_root.sketch._xscale = _root.sketch.XscaleX)) {
_root.sketch._x = this._x + 10;
}
if ((_root.sketch._xscale = -_root.sketch.XscaleX)) {
_root.sketch._x = this._x - 10;
}
_root.sketch._y = _root.sketch._y + 10;
}
if (Key.isDown(65) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(38))) {
_root.sketch._y = _root.sketch._y - 5;
}
if ((((this.hitTest(_root.sketch) && (_root.climb)) && (!_root.pause)) && (!_root.sketchdead)) && (Key.isDown(40))) {
_root.sketch._y = _root.sketch._y + 5;
}
if (_root.climb) {
_root.sketch.gotoAndStop(3);
_root.touchingGround = false;
}
if ((Key.isDown(40) && (_root.sketch.hitTest(this.base))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
if ((Key.isDown(38) && (_root.sketch.hitTest(this.base2))) && (_root.climb)) {
_root.climb = false;
_root.sketch.gotoAndStop(1);
}
}
Instance of Symbol 1629 MovieClip "azro" in Frame 49
onClipEvent (load) {
this.gotoAndStop(1);
this.msg = 1;
this.dpush = false;
this.health = 20;
this.hurt = false;
this.swooping = false;
this.firep = false;
}
onClipEvent (enterFrame) {
if ((((!_root.finalbattlebegin) && (!_root.finaltalk)) && (_root.sketch.hitTest(_root.sec1))) && (this.msg == 1)) {
_root.talking = true;
_root.camera.textbox.message = "Foolish boy, you should have minded your own business and I would have spared you! Your defiance has truly sealed your fate. After I get done wiping your existence from this world I am going to use the book of dictions and the golden plaks to destroy your home village. I plan to begin with your pathetic grandfather.";
}
if ((((Key.isDown(68) && (this.msg == 1)) && (!_root.finaltalk)) && (!_root.finalbattlebegin)) && (!this.dpush)) {
_root.camera.textbox.message = "I will enjoy hearing him suffer as he leaves this world. It\u2019s poetic because he is the reason I have all this power. Once I end your attempt at heroism I will take my place as king!";
this.dpush = true;
this.msg = 2;
}
if ((((Key.isDown(68) && (this.msg == 2)) && (!_root.finalbattlebegin)) && (!this.dpush)) && (!_root.finaltalk)) {
_root.finalbattlebegin = true;
_root.chatwindorclose.start(0, 1);
this.gotoAndStop("prepare");
_root.talking = false;
}
if ((!Key.isDown(68)) && (_root.talking)) {
this.dpush = false;
}
}
onClipEvent (enterFrame) {
if (((((_root.finalbattlebegin && (this.health > 0)) && (!this.hurt)) && (this._currentframe == 2)) && (this.prep._currentframe == 60)) && (!this.phit)) {
if (_root.sketch.hitTest(_root.sec1) && (!this.swooping)) {
this.swooping = true;
this.gotoAndStop("a1");
}
if (_root.sketch.hitTest(_root.sec2) && (!this.swooping)) {
this.swooping = true;
this.gotoAndStop("a2");
}
}
if (this.phit) {
this.gotoAndStop("chance");
}
if ((this._currentframe == 5) && (this.firep)) {
_root.powerball._x = this._x;
_root.powerball._y = this._y;
_root.powerball._x = _root.powerball._x - 60;
_root.powerball._y = _root.powerball._y + 5;
this.fired = true;
this.firep = false;
}
if ((this.health <= 0) && (!_root.finaltalk)) {
this.phit = false;
this.gotoAndStop("dead");
_root.finaltalk = true;
}
}
onClipEvent (enterFrame) {
if (_root.finaltalk) {
this.msg = 1;
_root.talking = true;
_root.camera.textbox.message = "Uggghh, I.... I cant believe you bested me. In my own tower nonetheless.*breathes heavy* This isnt the end of me. Remember I will be back. I will be here to take the golden plaks and rule this world!";
}
if ((((this.msg == 1) && (!this.dpush)) && (Key.isDown(68))) && (_root.finaltalk)) {
_root.gotoAndStop("final_scene");
}
}
Instance of Symbol 1641 MovieClip "powerball" in Frame 49
onClipEvent (enterFrame) {
if (_root.azro.firep) {
this.bounceback = false;
this.gotoAndStop(1);
oldx = _root.sketch._x;
oldy = _root.sketch._y;
}
if (!this.bounceback) {
if (((oldy > this._y) && (_root.azro.fired)) && (!_root.pause)) {
this._y = this._y + 20;
}
if (((oldy < this._y) && (_root.azro.fired)) && (!_root.pause)) {
this._y = this._y - 20;
}
if (((oldx > this._x) && (_root.azro.fired)) && (!_root.pause)) {
this._x = this._x + 20;
}
if (((oldx < this._x) && (_root.azro.fired)) && (!_root.pause)) {
this._x = this._x - 20;
}
if (_root.ground.hitTest(_x, _y, true) or ((this._x == oldx) && (this._y == oldy))) {
_root.azro.fired = false;
this.gotoAndStop(2);
}
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.pause)) && (!this.bounceback)) && (!_root.attack)) && (!_root.duck)) {
_root.health = _root.health - 1;
_root.hurt = true;
_root.azro.fired = false;
this.gotoAndStop(2);
}
}
if (!_root.pause) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (!this.bounceback)) or ((_root.duck && (!this.bounceback)) && (this.hitTest(_root.sketch)))) {
this.bounceback = true;
}
if (this.bounceback && (this._x < _root.azro._x)) {
this._x = this._x + 20;
}
if (this.bounceback && (this._y < _root.azro._y)) {
this._y = this._y + 20;
}
if (this.bounceback && (this._y > _root.azro._y)) {
this._y = this._y - 20;
}
if ((this.hitTest(_root.azro) && (!_root.azro.firep)) && (this.bounceback)) {
_root.azro.fired = false;
_root.azro.hurt = false;
_root.azro.swooping = false;
_root.azro.phit = true;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 40 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.gamewon) {
this.play();
}
if ((this._currentframe >= 10) && (_root.gameone)) {
_root.gotoAndStop("credits");
}
}
Frame 51
_root.finaltalk = false;
Symbol 21 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndPlay ("loaded");
}
Symbol 21 MovieClip Frame 2
gotoAndPlay (1);
Symbol 21 MovieClip Frame 3
_root.warp.play();
Symbol 37 Button
on (press) {
getURL ("http://www.a10.com/?utm_medium=brandedgames_internal&utm_campaign=Doodle_Warrior&utm_source=www8.agame.com&utm_content=logo_menu", "_blank");
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 15
stop();
Symbol 149 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 154 MovieClip Frame 90
Symbol 154 MovieClip Frame 91
stop();
Symbol 156 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 156 MovieClip Frame 90
stop();
Symbol 162 MovieClip Frame 89
stop();
Symbol 170 MovieClip Frame 89
stop();
Symbol 173 MovieClip Frame 89
stop();
Symbol 176 MovieClip Frame 39
stop();
Symbol 178 MovieClip Frame 91
_root.play();
Symbol 179 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
if (_root.localization_portal == "teen") {
gotoAndStop (5);
}
Symbol 194 MovieClip Frame 180
stop();
_root.play();
Symbol 208 MovieClip Frame 13
gotoAndPlay (2);
Symbol 230 MovieClip Frame 5
stop();
Symbol 247 MovieClip Frame 8
stop();
Symbol 264 MovieClip Frame 15
gotoAndPlay (2);
Symbol 283 MovieClip Frame 10
stop();
Symbol 287 MovieClip Frame 10
stop();
Symbol 291 MovieClip Frame 10
stop();
Symbol 293 MovieClip Frame 12
stop();
Symbol 297 MovieClip Frame 10
stop();
Symbol 298 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
this.dpush = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(40) && (!this.dpush)) {
_root.begin.sel.nextFrame();
this.dpush = true;
}
if (Key.isDown(38) && (!this.dpush)) {
_root.begin.sel.prevFrame();
this.dpush = true;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
this.dpush = false;
}
if (((_root.begin.sel._currentframe == 1) && (Key.isDown(32))) or ((_root.begin.sel._currentframe == 1) && (Key.isDown(65)))) {
_root.fade.play();
_root.loading = false;
}
if ((((_root.begin.sel._currentframe == 2) && (Key.isDown(32))) && (_root.savefile.data.gamesave == true)) or (((_root.begin.sel._currentframe == 2) && (Key.isDown(65))) && (_root.savefile.data.gamesave == true))) {
_root.havea = _root.savefile.data.havea;
_root.haveb = _root.savefile.data.haveb;
_root.havec = _root.savefile.data.havec;
_root.haved = _root.savefile.data.haved;
_root.havee = _root.savefile.data.havee;
_root.havef = _root.savefile.data.havef;
_root.haveg = _root.savefile.data.haveg;
_root.haveh = _root.savefile.data.haveh;
_root.havei = _root.savefile.data.havei;
_root.havej = _root.savefile.data.havej;
_root.havek = _root.savefile.data.havek;
_root.havel = _root.savefile.data.havel;
_root.havem = _root.savefile.data.havem;
_root.haven = _root.savefile.data.haven;
_root.haveo = _root.savefile.data.haveo;
_root.havep = _root.savefile.data.havep;
_root.haveq = _root.savefile.data.haveq;
_root.haver = _root.savefile.data.haver;
_root.haves = _root.savefile.data.haves;
_root.havet = _root.savefile.data.havet;
_root.haveu = _root.savefile.data.haveu;
_root.havev = _root.savefile.data.havev;
_root.havew = _root.savefile.data.havew;
_root.havex = _root.savefile.data.havex;
_root.havey = _root.savefile.data.havey;
_root.havez = _root.savefile.data.havez;
_root.unlocked = _root.savefile.data.unlocked;
_root.doorunlocked = _root.savefile.data.doorunlocked;
_root.doorunlocked2 = _root.savefile.data.doorunlocked2;
_root.doorunlocked3 = _root.savefile.data.doorunlocked3;
_root.doorunlocked4 = _root.savefile.data.doorunlocked4;
_root.bossunlocked = _root.savefile.data.bossunlocked;
_root.bossunlocked2 = _root.savefile.data.bossunlocked2;
egg = _root.savefile.data.egg;
_root.degg = _root.savefile.data.degg;
_root.speed = _root.savefile.data.speed;
_root.bandage = _root.savefile.data.bandage;
_root.havebook = _root.savefile.data.havebook;
_root.havekey = _root.savefile.data.havekey;
_root.smallkey = _root.savefile.data.smallkey;
_root.bigkey = _root.savefile.data.bigkey;
_root.beat1 = _root.savefile.data.beat1;
_root.boss1beat = _root.savefile.data.boss1beat;
_root.isel = _root.savefile.data.isel;
_root.c1open = _root.savefile.data.c1open;
_root.c2open = _root.savefile.data.c2open;
_root.c3open = _root.savefile.data.c3open;
_root.c4open = _root.savefile.data.c4open;
_root.c5open = _root.savefile.data.c5open;
_root.c6open = _root.savefile.data.c6open;
_root.c7open = _root.savefile.data.c7open;
_root.c8open = _root.savefile.data.c8open;
_root.c9open = _root.savefile.data.c9open;
_root.c10open = _root.savefile.data.c10open;
_root.c11open = _root.savefile.data.c11open;
_root.doorappear = _root.savefile.data.doorappear;
_root.ttalk = _root.savefile.data.ttalk;
_root.bbuilt = _root.savefile.data.bbuilt;
_root.bbuilt2 = _root.savefile.data.bbuilt2;
_root.ttalked = _root.savefile.data.ttalked;
_root.cutbegin = _root.savefile.data.cutbegin;
_root.loading = true;
_root.fade.play();
}
if (((_root.begin.sel._currentframe == 4) && (Key.isDown(32))) or (((_root.begin.sel._currentframe == 4) && (Key.isDown(65))) && (!_root.pageopen))) {
getURL ("http://www.a10.com/?utm_medium=brandedgames_internal&utm_campaign=Doodle_Warrior&utm_source=www8.agame.com&utm_content=logo_menu", "_blank");
_root.pageopen = true;
}
if ((!Key.isDown(32)) && (!Key.isDown(65))) {
_root.pageopen = false;
}
}
Instance of Symbol 208 MovieClip in Symbol 299 MovieClip Frame 45
onClipEvent (enterFrame) {
this.gotoAndStop(1);
}
Instance of Symbol 230 MovieClip "a_ani" in Symbol 299 MovieClip Frame 72
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 247 MovieClip "attacker" in Symbol 299 MovieClip Frame 79
onClipEvent (load) {
this.gotoAndPlay(1);
}
Symbol 299 MovieClip Frame 104
played = true;
Instance of Symbol 268 MovieClip in Symbol 299 MovieClip Frame 104
onClipEvent (enterFrame) {
if ((Key.isDown(83) && (!_root.pause)) && (!_root.talking)) {
play();
}
}
Symbol 299 MovieClip Frame 133
stop();
Symbol 317 MovieClip Frame 34
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 34
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 34
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 34
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 34
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 99
stop();
Symbol 366 MovieClip Frame 26
gotoAndPlay (12);
Symbol 390 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
this.spush = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(83) && (!this.spush)) {
_root.scene1.play();
this.spush = true;
}
if ((!Key.isDown(83)) && (this.spush)) {
this.spush = false;
}
}
Symbol 413 MovieClip Frame 30
stop();
Symbol 413 MovieClip Frame 60
stop();
Symbol 413 MovieClip Frame 90
stop();
Symbol 413 MovieClip Frame 120
stop();
Symbol 413 MovieClip Frame 150
_root.play();
Symbol 416 MovieClip Frame 51
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.attack) {
_root.attack = false;
gotoAndStop (1);
}
};
Symbol 453 MovieClip Frame 2
onEnterFrame = function () {
_root.attack = true;
};
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 15
gotoAndPlay (2);
Symbol 477 MovieClip Frame 6
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 10
stop();
_root.hurted = true;
_root.hurt = false;
_root.sketch.dude.gotoAndStop(1);
Symbol 514 MovieClip Frame 35
stop();
_root.gameover = true;
Symbol 514 MovieClip Frame 36
gotoAndStop (35);
_root.gameover = true;
Symbol 524 MovieClip Frame 3
_root.attack = true;
_root.duck = false;
Symbol 524 MovieClip Frame 8
_root.attack = false;
_parent.downattack = false;
_root.duck = true;
stop();
Symbol 530 MovieClip Frame 5
eggspawn = _root.dinoegg_dupe.duplicateMovieClip("egg_" + _root.egg, _root.getNextHighestDepth());
_root.egg++;
if (_root.sketch.dir == 1) {
_root.degg = _root.degg - 1;
eggspawn._x = _root.sketch._x + 25;
eggspawn._y = _root.sketch._y - 50;
} else {
_root.degg = _root.degg - 1;
eggspawn._x = _root.sketch._x - 25;
eggspawn._y = _root.sketch._y - 50;
}
Symbol 530 MovieClip Frame 7
_root.sketch.throwing = false;
_parent.gotoAndStop("walk");
Symbol 531 MovieClip Frame 1
stop();
_root.attack = false;
_root.sketch.throwing = false;
Instance of Symbol 448 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(40) && (!_root.pause)) && (!_root.talking)) {
this.gotoAndStop(2);
_root.duck = true;
} else {
_root.duck = false;
this.gotoAndStop(1);
}
}
Symbol 531 MovieClip Frame 2
stop();
_root.duck = false;
_root.sketch.throwing = false;
Instance of Symbol 453 MovieClip "a_ani" in Symbol 531 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((Key.isDown(83) && (!_root.pause)) && (!_root.talking)) {
play();
}
}
Symbol 531 MovieClip Frame 3
_root.attack = false;
_root.duck = false;
_root.sketch.throwing = false;
Instance of Symbol 470 MovieClip in Symbol 531 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.speed > 0) && (!_root.pause)) && (!_root.talking)) && (!_root.warp)) {
play();
} else {
this.gotoAndStop(1);
}
}
Symbol 531 MovieClip Frame 4
_root.attack = false;
stop();
_root.duck = false;
_root.sketch.throwing = false;
Symbol 531 MovieClip Frame 5
_root.attack = false;
_root.duck = false;
_root.sketch.throwing = false;
Symbol 531 MovieClip Frame 6
_root.attack = false;
stop();
_root.duck = false;
_root.sketch.throwing = false;
Instance of Symbol 514 MovieClip in Symbol 531 MovieClip Frame 6
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 531 MovieClip Frame 7
stop();
_root.sketch.throwing = false;
Instance of Symbol 524 MovieClip in Symbol 531 MovieClip Frame 7
onClipEvent (enterFrame) {
if (((Key.isDown(40) && (Key.isDown(83))) && (!_root.talking)) && (!_root.pause)) {
this.play();
}
}
Symbol 531 MovieClip Frame 8
stop();
_root.duck = false;
Symbol 542 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
stop();
_root.getbook = false;
_root.getspeed = false;
_root.getbandage = false;
_root.getegg = false;
_root.getkey = false;
_root.getbkey = false;
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.getbook) {
this.gotoAndStop(2);
}
if (_root.getspeed) {
this.gotoAndStop(3);
}
if (_root.getegg) {
this.gotoAndStop(4);
}
if (_root.getbandage) {
this.gotoAndStop(5);
}
if (_root.getkey) {
this.gotoAndStop(6);
}
if (_root.getbkey) {
this.gotoAndStop(7);
}
}
Symbol 547 MovieClip Frame 1
stop();
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 2
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 6
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 8
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 10
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 12
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 14
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 15
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 16
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 17
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 18
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 19
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 20
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 22
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 24
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 26
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 28
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 30
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 32
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 33
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 34
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 35
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 36
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 37
_parent.dude._visible = false;
Symbol 547 MovieClip Frame 38
_parent.dude._visible = true;
Symbol 547 MovieClip Frame 40
stop();
_parent.dude._visible = true;
_root.hurted = false;
_root.hurt = false;
Symbol 553 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 1
stop();
Instance of Symbol 531 MovieClip "dude" in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
function work() {
if ((((((_root.jumping && (!_root.hurt)) && (!_parent.duck)) && (!_root.attack)) && (!_root.downattack)) && (!Key.isDown(83))) && (!_root.sketch.throwing)) {
this.gotoAndStop(4);
this.j_ani.gotoAndStop("jumping");
} else if ((((!_root.jumping) && (!_root.hurt)) && (!_parent.duck)) && (!_root.attack)) {
this.j_ani.gotoAndStop(4);
}
if ((((Key.isDown(40) && (!_root.jumping)) && (!Key.isDown(83))) && (!this.downattack)) && (!_root.hurt)) {
this.gotoAndStop(1);
}
if ((((Key.isDown(40) && (!_root.jumping)) && (Key.isDown(83))) && (!this.downattack)) && (!_root.hurt)) {
this.downattack = true;
}
if (_root.hurt && (!_root.hurted)) {
this.gotoAndStop("hurt");
}
if (Key.isDown(39) or Key.isDown(37)) {
this.downattack = false;
}
if ((this.downattack && (!_root.hurt)) && (!_root.pause)) {
this.gotoAndStop("d_attack");
}
if ((((Key.isDown(83) && (!Key.isDown(40))) && (!this.downattack)) && (!_root.hurt)) && (!_root.attack)) {
this.gotoAndStop("attack");
} else if ((((Key.isDown(37) && (!_root.jumping)) && (!_parent.duck)) && (!_root.hurt)) && (!Key.isDown(83))) {
this.gotoAndStop("walk");
} else if ((((Key.isDown(39) && (!_root.jumping)) && (!_parent.duck)) && (!_root.hurt)) && (!Key.isDown(83))) {
this.gotoAndStop("walk");
}
}
if (((!_root.pause) && (!_root.sketchdead)) && (!_root.warp)) {
work();
}
if (_root.sketchdead) {
this.gotoAndStop(6);
}
}
Instance of Symbol 546 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.getbook) {
this.play();
}
if (_root.getspeed) {
this.play();
}
if (_root.getegg) {
this.play();
}
if (_root.getbandage) {
this.play();
}
if (_root.getkey) {
this.play();
}
if (_root.getbkey) {
this.play();
}
}
Instance of Symbol 547 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hurted) {
this.play();
}
}
Symbol 554 MovieClip Frame 3
stop();
Instance of Symbol 553 MovieClip "dude" in Symbol 554 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.hurt) {
_root.climb = false;
_parent.gotoAndStop(1);
}
if (Key.isDown(38) && (!_root.pause)) {
play();
}
if (Key.isDown(40) && (!_root.pause)) {
this.prevFrame();
}
if (Key.isDown(40) && (this._currentframe == 1)) {
this.gotoAndStop(12);
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
this.stop();
}
}
Symbol 563 MovieClip Frame 10
stop();
Symbol 576 MovieClip Frame 11
stop();
Symbol 577 MovieClip Frame 7
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 1
stop();
Instance of Symbol 595 MovieClip in Symbol 600 MovieClip Frame 3
onClipEvent (enterFrame) {
_root.camera.itemselect.ban = _root.speed;
}
Instance of Symbol 595 MovieClip in Symbol 600 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.camera.itemselect.ban = _root.bandage;
if ((((Key.isDown(70) && (_root.bandage > 0)) && (!this.fpush)) && (!_root.pause)) && (_root.health < 8)) {
_root.bandage = _root.bandage - 1;
_root.health = 8;
_root.getheart.start(0, 1);
this.fpush = true;
}
if (!Key.isDown(70)) {
this.fpush = false;
}
}
Instance of Symbol 595 MovieClip in Symbol 600 MovieClip Frame 5
onClipEvent (enterFrame) {
_root.camera.itemselect.ban = _root.degg;
}
Symbol 608 MovieClip Frame 155
gotoAndPlay (1);
Symbol 612 MovieClip Frame 1
onEnterFrame = function () {
sk = _root.smallkey;
};
Symbol 616 MovieClip Frame 15
stop();
Symbol 618 MovieClip Frame 26
gotoAndPlay (12);
Symbol 620 MovieClip Frame 26
gotoAndPlay (12);
Symbol 624 MovieClip Frame 26
gotoAndPlay (12);
Symbol 625 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 26
gotoAndPlay (12);
Symbol 629 MovieClip Frame 1
stop();
Instance of Symbol 625 MovieClip in Symbol 630 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.inshop && (_root.talking)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 629 MovieClip in Symbol 630 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.inshop && (_root.talking)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 639 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 26
gotoAndPlay (12);
Symbol 733 MovieClip Frame 1
stop();
_root.menu1 = false;
Symbol 733 MovieClip Frame 2
_root.menu1 = true;
Symbol 733 MovieClip Frame 17
if (Key.isDown(32)) {
this.gotoAndPlay("men2");
}
Instance of Symbol 639 MovieClip "isel1" in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.display.gotoAndStop(2);
}
if (((((!_root.camera.inv.isel1.hitTest(_root.camera.inv.con.block)) && (!_root.camera.inv.isel2.hitTest(_root.camera.inv.con.block))) && (!_root.camera.inv.isel3.hitTest(_root.camera.inv.con.block))) && (!_root.camera.inv.isel4.hitTest(_root.camera.inv.con.block))) && (!_root.camera.inv.isel5.hitTest(_root.camera.inv.con.block))) {
_root.camera.inv.display.gotoAndStop(1);
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (!(_root.isel === 2))) {
_root.isel = 2;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (_root.isel == 2)) {
_root.isel = 0;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (!Key.isDown(83)) {
this.keypush = false;
}
if (_root.speed > 0) {
this.gotoAndStop(2);
this.pot = _root.speed;
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 641 MovieClip "isel2" in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.display.gotoAndStop(3);
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (!(_root.isel === 4))) {
_root.isel = 4;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (_root.isel == 4)) {
_root.isel = 0;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (!Key.isDown(83)) {
this.keypush = false;
}
if (_root.degg > 0) {
this.gotoAndStop(2);
this.eg = _root.degg;
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 643 MovieClip "isel3" in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.display.gotoAndStop(4);
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (!(_root.isel === 3))) {
_root.isel = 3;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (_root.isel == 3)) {
_root.isel = 0;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (!Key.isDown(83)) {
this.keypush = false;
}
if (_root.bandage > 0) {
this.gotoAndStop(2);
this.band = _root.bandage;
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 646 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havea) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 353 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveb) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 649 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havec) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 306 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haved) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 652 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havee) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 655 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havef) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 658 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveg) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 661 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveh) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 332 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havei) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 664 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havej) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 667 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havek) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 321 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havel) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 670 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havem) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 673 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haven) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 676 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveo) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 679 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havep) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 682 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveq) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 685 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haver) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 688 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haves) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 691 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havet) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 343 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveu) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 694 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havev) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 697 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havew) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 700 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havex) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 703 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havey) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 706 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.havez) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
Instance of Symbol 707 MovieClip "isel4" in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.display.gotoAndStop(5);
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (!(_root.isel === 1))) {
_root.isel = 1;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (_root.isel == 1)) {
_root.isel = 0;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (!Key.isDown(83)) {
this.keypush = false;
}
if (_root.havebook) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 709 MovieClip "isel5" in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.display.gotoAndStop(6);
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (!(_root.isel === 5))) {
_root.isel = 5;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (((this.hitTest(_root.camera.inv.con.block) && (Key.isDown(83))) && (!this.keypush)) && (_root.isel == 5)) {
_root.isel = 0;
_root.equipped.start(0, 1);
this.keypush = true;
}
if (!Key.isDown(83)) {
this.keypush = false;
}
if (_root.havekey) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 719 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveletters1) {
if ((((((_root.camera.insert_l.num.let1._currentframe == 2) && (_root.camera.insert_l.num.let2._currentframe == 21)) && (_root.camera.insert_l.num.let3._currentframe == 9)) && (_root.camera.insert_l.num.let4._currentframe == 12)) && (_root.camera.insert_l.num.let5._currentframe == 4)) && (Key.isDown(83))) {
_root.bbuilt = true;
_root.ttalk = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.inputnum = false;
}
}
}
Instance of Symbol 731 MovieClip "con" in Symbol 733 MovieClip Frame 17
onClipEvent (load) {
this.sp = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this._y = this._y - this.sp;
}
if (Key.isDown(40)) {
this._y = this._y + this.sp;
}
if (Key.isDown(39)) {
this._x = this._x + this.sp;
}
if (Key.isDown(37)) {
this._x = this._x - this.sp;
}
}
Instance of Symbol 721 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.con._x = _root.camera.inv.con._x + 2;
}
}
Instance of Symbol 721 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.con._x = _root.camera.inv.con._x - 2;
}
}
Instance of Symbol 721 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.con._y = _root.camera.inv.con._y + 2;
}
}
Instance of Symbol 721 MovieClip in Symbol 733 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera.inv.con.block)) {
_root.camera.inv.con._y = _root.camera.inv.con._y - 2;
}
}
Symbol 733 MovieClip Frame 18
gotoAndStop ("menloop");
Symbol 733 MovieClip Frame 35
_root.menu1 = false;
Symbol 735 MovieClip Frame 1
stop();
Instance of Symbol 646 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.havea) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 2
stop();
Instance of Symbol 353 MovieClip in Symbol 735 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.haveb) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 3
stop();
Instance of Symbol 649 MovieClip in Symbol 735 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.havec) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 4
stop();
Instance of Symbol 306 MovieClip in Symbol 735 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.haved) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 5
stop();
Instance of Symbol 652 MovieClip in Symbol 735 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.havee) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 6
stop();
Instance of Symbol 655 MovieClip in Symbol 735 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.havef) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 7
stop();
Instance of Symbol 658 MovieClip in Symbol 735 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.haveg) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 8
stop();
Instance of Symbol 661 MovieClip in Symbol 735 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.haveh) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 9
stop();
Instance of Symbol 332 MovieClip in Symbol 735 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.havei) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 10
stop();
Instance of Symbol 664 MovieClip in Symbol 735 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.havej) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 11
stop();
Instance of Symbol 667 MovieClip in Symbol 735 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.havek) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 12
stop();
Instance of Symbol 321 MovieClip in Symbol 735 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.havel) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 13
stop();
Instance of Symbol 670 MovieClip in Symbol 735 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.havem) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 14
stop();
Instance of Symbol 673 MovieClip in Symbol 735 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.haven) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 15
stop();
Instance of Symbol 676 MovieClip in Symbol 735 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_root.haveo) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 16
stop();
Instance of Symbol 679 MovieClip in Symbol 735 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.havep) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 17
stop();
Instance of Symbol 682 MovieClip in Symbol 735 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.haveq) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 18
stop();
Instance of Symbol 685 MovieClip in Symbol 735 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.haver) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 19
stop();
Instance of Symbol 688 MovieClip in Symbol 735 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.haves) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 20
stop();
Instance of Symbol 691 MovieClip in Symbol 735 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.havet) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 21
stop();
Instance of Symbol 343 MovieClip in Symbol 735 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.haveu) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 22
stop();
Instance of Symbol 694 MovieClip in Symbol 735 MovieClip Frame 22
onClipEvent (enterFrame) {
if (_root.havev) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 23
stop();
Instance of Symbol 697 MovieClip in Symbol 735 MovieClip Frame 23
onClipEvent (enterFrame) {
if (_root.havew) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 24
stop();
Instance of Symbol 700 MovieClip in Symbol 735 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.havex) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 25
stop();
Instance of Symbol 703 MovieClip in Symbol 735 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.havey) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 735 MovieClip Frame 26
stop();
Instance of Symbol 706 MovieClip in Symbol 735 MovieClip Frame 26
onClipEvent (enterFrame) {
if (_root.havez) {
this._alpha = 100;
dh._visible = false;
} else {
dh._visible = true;
this._alpha = 60;
}
}
Symbol 741 MovieClip Frame 1
stop();
Instance of Symbol 735 MovieClip "let1" in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lsel == 1) {
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
this.keypush = false;
}
if ((Key.isDown(40) && (!this.keypush)) && (!(this._currentframe === 26))) {
this.play();
_root.mouse_click.start(0, 1);
this.keypush = true;
}
if (Key.isDown(38) && (!this.keypush)) {
this.keypush = true;
_root.mouse_click.start(0, 1);
this.prevFrame();
}
}
}
Instance of Symbol 735 MovieClip "let2" in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lsel == 2) {
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
this.keypush = false;
}
if ((Key.isDown(40) && (!this.keypush)) && (!(this._currentframe === 26))) {
this.play();
_root.mouse_click.start(0, 1);
this.keypush = true;
}
if (Key.isDown(38) && (!this.keypush)) {
this.keypush = true;
_root.mouse_click.start(0, 1);
this.prevFrame();
}
if ((Key.isDown(38) && (this._currentframe == 1)) && (!this.keypush)) {
this.gotoAndStop(26);
}
}
}
Instance of Symbol 735 MovieClip "let3" in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lsel == 3) {
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
this.keypush = false;
}
if ((Key.isDown(40) && (!this.keypush)) && (!(this._currentframe === 26))) {
this.play();
_root.mouse_click.start(0, 1);
this.keypush = true;
}
if (Key.isDown(38) && (!this.keypush)) {
this.keypush = true;
_root.mouse_click.start(0, 1);
this.prevFrame();
}
if ((Key.isDown(38) && (this._currentframe == 1)) && (!this.keypush)) {
this.gotoAndStop(26);
}
}
}
Instance of Symbol 735 MovieClip "let4" in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lsel == 4) {
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
this.keypush = false;
}
if ((Key.isDown(40) && (!this.keypush)) && (!(this._currentframe === 26))) {
this.play();
_root.mouse_click.start(0, 1);
this.keypush = true;
}
if (Key.isDown(38) && (!this.keypush)) {
this.keypush = true;
_root.mouse_click.start(0, 1);
this.prevFrame();
}
if ((Key.isDown(38) && (this._currentframe == 1)) && (!this.keypush)) {
this.gotoAndStop(26);
}
}
}
Instance of Symbol 735 MovieClip "let5" in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lsel == 5) {
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
this.keypush = false;
}
if ((Key.isDown(40) && (!this.keypush)) && (!(this._currentframe === 26))) {
this.play();
_root.mouse_click.start(0, 1);
this.keypush = true;
}
if (Key.isDown(38) && (!this.keypush)) {
this.keypush = true;
_root.mouse_click.start(0, 1);
this.prevFrame();
}
if ((Key.isDown(38) && (this._currentframe == 1)) && (!this.keypush)) {
this.gotoAndStop(26);
}
}
}
Instance of Symbol 719 MovieClip in Symbol 741 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.haveletters1) {
if ((((((_root.camera.insert_l.num.let1._currentframe == 2) && (_root.camera.insert_l.num.let2._currentframe == 21)) && (_root.camera.insert_l.num.let3._currentframe == 9)) && (_root.camera.insert_l.num.let4._currentframe == 12)) && (_root.camera.insert_l.num.let5._currentframe == 4)) && (Key.isDown(83))) {
_root.bbuilt = true;
_root.ttalk = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.inputnum = false;
}
}
if (_root.haveletters2) {
if ((((((_root.camera.insert_l.num.let1._currentframe == 1) && (_root.camera.insert_l.num.let2._currentframe == 26)) && (_root.camera.insert_l.num.let3._currentframe == 18)) && (_root.camera.insert_l.num.let4._currentframe == 15)) && (_root.camera.insert_l.num.let5._currentframe == 19)) && (Key.isDown(83))) {
_root.wappear = true;
_root.camera.textbox.message = " ";
_root.talking = false;
_root.inputnum = false;
}
}
}
Instance of Symbol 740 MovieClip in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
_root.presst = true;
}
onClipEvent (enterFrame) {
_root.lsel = 1;
if (Key.isDown(39) && (!_root.presst)) {
_root.camera.insert_l.num.nextFrame();
_root.presst = true;
}
if (!Key.isDown(39)) {
_root.presst = false;
}
}
Instance of Symbol 740 MovieClip in Symbol 741 MovieClip Frame 2
onClipEvent (load) {
_root.presst = true;
}
onClipEvent (enterFrame) {
_root.lsel = 2;
if (Key.isDown(39) && (!_root.presst)) {
_root.camera.insert_l.num.nextFrame();
_root.presst = true;
}
if (Key.isDown(37) && (!_root.presst)) {
_root.camera.insert_l.num.prevFrame();
_root.presst = true;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_root.presst = false;
}
}
Instance of Symbol 740 MovieClip in Symbol 741 MovieClip Frame 3
onClipEvent (load) {
_root.presst = true;
}
onClipEvent (enterFrame) {
_root.lsel = 3;
if (Key.isDown(39) && (!_root.presst)) {
_root.camera.insert_l.num.nextFrame();
_root.presst = true;
}
if (Key.isDown(37) && (!_root.presst)) {
_root.camera.insert_l.num.prevFrame();
_root.presst = true;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_root.presst = false;
}
}
Instance of Symbol 740 MovieClip in Symbol 741 MovieClip Frame 4
onClipEvent (load) {
_root.presst = true;
}
onClipEvent (enterFrame) {
_root.lsel = 4;
if (Key.isDown(39) && (!_root.presst)) {
_root.camera.insert_l.num.nextFrame();
_root.presst = true;
}
if (Key.isDown(37) && (!_root.presst)) {
_root.camera.insert_l.num.prevFrame();
_root.presst = true;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_root.presst = false;
}
}
Instance of Symbol 740 MovieClip in Symbol 741 MovieClip Frame 5
onClipEvent (load) {
_root.presst = true;
}
onClipEvent (enterFrame) {
_root.lsel = 5;
if (Key.isDown(39) && (!_root.presst)) {
_root.camera.insert_l.num.nextFrame();
_root.presst = true;
}
if (Key.isDown(37) && (!_root.presst)) {
_root.camera.insert_l.num.prevFrame();
_root.presst = true;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
_root.presst = false;
}
}
Symbol 742 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 65
stop();
Symbol 767 MovieClip Frame 15
stop();
Symbol 768 MovieClip Frame 15
stop();
Symbol 770 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 16
stop();
Instance of Symbol 767 MovieClip in Symbol 771 MovieClip Frame 16
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
_root.camera.go.pic.gotoAndStop("sel2");
}
}
Symbol 771 MovieClip Frame 17
stop();
Instance of Symbol 768 MovieClip in Symbol 771 MovieClip Frame 17
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_root.camera.go.pic.gotoAndStop("sel1");
}
if (Key.isDown(83) && (!this.spush)) {
_root.savefile.data.havea = _root.havea;
_root.savefile.data.haveb = _root.haveb;
_root.savefile.data.havec = _root.havec;
_root.savefile.data.haved = _root.haved;
_root.savefile.data.havee = _root.havee;
_root.savefile.data.havef = _root.havef;
_root.savefile.data.haveg = _root.haveg;
_root.savefile.data.haveh = _root.haveh;
_root.savefile.data.havei = _root.havei;
_root.savefile.data.havej = _root.havej;
_root.savefile.data.havek = _root.havek;
_root.savefile.data.havel = _root.havel;
_root.savefile.data.havem = _root.havem;
_root.savefile.data.haven = _root.haven;
_root.savefile.data.haveo = _root.haveo;
_root.savefile.data.havep = _root.havep;
_root.savefile.data.haveq = _root.haveq;
_root.savefile.data.haver = _root.haver;
_root.savefile.data.haves = _root.haves;
_root.savefile.data.havet = _root.havet;
_root.savefile.data.haveu = _root.haveu;
_root.savefile.data.havev = _root.havev;
_root.savefile.data.havew = _root.havew;
_root.savefile.data.havex = _root.havex;
_root.savefile.data.havey = _root.havey;
_root.savefile.data.havez = _root.havez;
_root.savefile.data.wappear = _root.wappear;
_root.savefile.data.boss2dead = _root.boss2dead;
_root.savefile.data.health = _root.health;
_root.savefile.data.gold = _root.camera.money.gold;
_root.savefile.data.unlocked = _root.unlocked;
_root.savefile.data.doorunlocked = _root.doorunlocked;
_root.savefile.data.doorunlocked2 = _root.doorunlocked2;
_root.savefile.data.doorunlocked3 = _root.doorunlocked3;
_root.savefile.data.doorunlocked4 = _root.doorunlocked4;
_root.savefile.data.bossunlocked = _root.bossunlocked;
_root.savefile.data.bossunlocked2 = _root.bossunlocked2;
_root.savefile.data.egg = egg;
_root.savefile.data.degg = _root.degg;
_root.savefile.data.speed = _root.speed;
_root.savefile.data.bandage = _root.bandage;
_root.savefile.data.havebook = _root.havebook;
_root.savefile.data.havekey = _root.havekey;
_root.savefile.data.smallkey = _root.smallkey;
_root.savefile.data.bigkey = _root.bigkey;
_root.savefile.data.beat1 = _root.beat1;
_root.savefile.data.boss1beat = _root.boss1beat;
_root.savefile.data.isel = _root.isel;
_root.savefile.data.c1open = _root.c1open;
_root.savefile.data.c2open = _root.c2open;
_root.savefile.data.c3open = _root.c3open;
_root.savefile.data.c4open = _root.c4open;
_root.savefile.data.c5open = _root.c5open;
_root.savefile.data.c6open = _root.c6open;
_root.savefile.data.c7open = _root.c7open;
_root.savefile.data.c8open = _root.c8open;
_root.savefile.data.c9open = _root.c9open;
_root.savefile.data.c10open = _root.c10open;
_root.savefile.data.c11open = _root.c11open;
_root.savefile.data.doorappear = _root.doorappear;
_root.savefile.data.ttalk = _root.ttalk;
_root.savefile.data.bbuilt = _root.bbuilt;
_root.savefile.data.bbuilt2 = _root.bbuilt2;
_root.savefile.data.ttalked = _root.ttalked;
_root.gamesave = true;
_root.savefile.data.cutbegin = _root.cutbegin;
_root.savefile.data.gamesave = _root.gamesave;
_root.savefile.flush();
this.spush = true;
_root.mouse_click.start(0, 1);
_root.camera.go.pic.saves.play();
}
if (!Key.isDown(83)) {
this.spush = false;
}
}
Symbol 773 MovieClip Frame 16
stop();
Symbol 775 MovieClip Frame 1
stop();
Instance of Symbol 771 MovieClip "pic" in Symbol 775 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((Key.isDown(83) && (!this.spush)) && (this._currentframe == 16)) {
_root.camera.go.gotoAndPlay("cont");
this.spush = true;
}
if (!Key.isDown(83)) {
this.spush = false;
}
}
Symbol 775 MovieClip Frame 41
stop();
Symbol 775 MovieClip Frame 70
stop();
_root.warp = true;
_root.outside1 = true;
_root.gotoAndStop("shouse");
_root.hurt = false;
_root.health = 8;
_root.sketchdead = false;
_root.sketch.gotoAndStop(1);
Symbol 778 MovieClip Frame 50
_parent.gotoAndStop(1);
Symbol 781 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 784 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 787 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 790 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 793 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 796 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 798 MovieClip Frame 80
_root.introduced2 = true;
_parent.gotoAndStop(1);
Symbol 800 MovieClip Frame 80
_root.fshowed = true;
_parent.gotoAndStop(1);
Symbol 801 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 592 MovieClip in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health == 8) {
this.gotoAndStop(1);
}
if (_root.health == 7) {
this.gotoAndStop(2);
}
if (_root.health == 6) {
this.gotoAndStop(3);
}
if (_root.health == 5) {
this.gotoAndStop(4);
}
if (_root.health == 4) {
this.gotoAndStop(5);
}
if (_root.health == 3) {
this.gotoAndStop(6);
}
if (_root.health == 2) {
this.gotoAndStop(7);
}
if (_root.health == 1) {
this.gotoAndStop(8);
}
if (_root.health <= 0) {
this.gotoAndStop(9);
}
if (_root.health > 0) {
_root.sketchdead = false;
_root.gameover = false;
} else {
_root.sketchdead = true;
}
}
Instance of Symbol 600 MovieClip "itemselect" in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.isel == 0) {
this.gotoAndStop(1);
}
if (_root.isel == 1) {
this.gotoAndStop(2);
}
if (_root.isel == 2) {
this.gotoAndStop(3);
}
if (_root.isel == 3) {
this.gotoAndStop(4);
}
if (_root.isel == 4) {
this.gotoAndStop(5);
}
if (_root.isel == 5) {
this.gotoAndStop(6);
}
}
Instance of Symbol 612 MovieClip in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.smallkey > 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 630 MovieClip "textbox" in Symbol 802 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.talking == true) {
_root.pause = true;
this.gotoAndStop(2);
this._visible = true;
} else if (_root.talking == false) {
this.gotoAndStop(1);
this._visible = false;
} else if ((_root.talking == false) && (_root.menu1 == false)) {
_root.pause = false;
}
}
Instance of Symbol 733 MovieClip "inv" in Symbol 802 MovieClip Frame 1
onClipEvent (load) {
_root.menu1 = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) && (!_root.talking)) && (!_root.sketchdead)) {
this.play();
} else if ((_root.menu1 == true) && (!_root.sketchdead)) {
this._visible = true;
_root.pause = true;
} else if ((_root.menu1 == false) && (!_root.sketchdead)) {
this._visible = false;
_root.pause = false;
}
}
Instance of Symbol 742 MovieClip "insert_l" in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.inputnum) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 775 MovieClip "go" in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.sketchdead && (this._currentframe < 40)) {
this.play();
_root.music.stop();
}
if (!_root.sketchdead) {
this.gotoAndStop(1);
}
}
Instance of Symbol 801 MovieClip in Symbol 802 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.boss1.begin && (!_root.introduced)) {
this.gotoAndStop(2);
_root.introduced = true;
}
if (!_root.gamestart) {
this.gotoAndStop(3);
_root.gamestart = true;
}
if (_root.stower) {
this.gotoAndStop(4);
}
if (_root.toforest or _root.oforest2) {
this.gotoAndStop(5);
}
if (_root.incast) {
this.gotoAndStop(6);
}
if (_root.inhouseab) {
this.gotoAndStop(7);
}
if (_root.toazros) {
this.gotoAndStop(8);
}
if (_root.demon.begin && (!_root.introduced2)) {
this.gotoAndStop(9);
}
if (_root.finalbattlebegin && (!_root.fshowed)) {
this.gotoAndStop(10);
}
}
Symbol 805 MovieClip Frame 11
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 30
gotoAndPlay (14);
Instance of Symbol 807 MovieClip in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 824 MovieClip Frame 1
stop();
Instance of Symbol 824 MovieClip in Symbol 825 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.base.hitTest(_root.sketch) or _parent.base2.hitTest(_root.sketch)) {
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
}
Symbol 827 MovieClip Frame 7
stop();
Symbol 828 MovieClip Frame 26
gotoAndStop (12);
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 37
stop();
Symbol 834 MovieClip Frame 1
stop();
Instance of Symbol 828 MovieClip in Symbol 834 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 828 MovieClip in Symbol 855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 855 MovieClip in Symbol 856 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.stower = true;
_root.warp = true;
}
}
Instance of Symbol 828 MovieClip in Symbol 859 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 859 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.toshop = true;
_root.warp = true;
}
}
Symbol 867 MovieClip Frame 1
stop();
Symbol 867 MovieClip Frame 36
stop();
Symbol 888 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 37
_root.unlocked = true;
_parent.gotoAndStop(1);
Symbol 889 MovieClip Frame 1
stop();
Instance of Symbol 807 MovieClip in Symbol 890 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 895 MovieClip Frame 13
gotoAndPlay (12);
Symbol 900 MovieClip Frame 11
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 17
stop();
Instance of Symbol 901 MovieClip in Symbol 902 MovieClip Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.camera.money.gold = _root.camera.money.gold + 5;
this.gotoAndStop("none");
}
}
Instance of Symbol 360 MovieClip in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haveb = true;
this.gotoAndStop(2);
}
}
Symbol 903 MovieClip Frame 13
stop();
Instance of Symbol 351 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haveu = true;
this.gotoAndStop(2);
}
}
Symbol 904 MovieClip Frame 13
stop();
Instance of Symbol 340 MovieClip in Symbol 905 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havei = true;
this.gotoAndStop(2);
}
}
Symbol 905 MovieClip Frame 13
stop();
Instance of Symbol 329 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havel = true;
this.gotoAndStop(2);
}
}
Symbol 906 MovieClip Frame 13
stop();
Instance of Symbol 318 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haved = true;
this.gotoAndStop(2);
}
}
Symbol 907 MovieClip Frame 13
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 2
stop();
Instance of Symbol 908 MovieClip in Symbol 910 MovieClip Frame 2
onClipEvent (load) {
this.item = random(7) + 1;
}
onClipEvent (enterFrame) {
if (((!_root.haveb) && (this.item == 3)) && (_root.ttalk)) {
this.gotoAndStop("btablet");
}
if (((!_root.haveu) && (this.item == 4)) && (_root.ttalk)) {
this.gotoAndStop("utablet");
}
if (((!_root.havei) && (this.item == 5)) && (_root.ttalk)) {
this.gotoAndStop("itablet");
}
if (((!_root.havel) && (this.item == 6)) && (_root.ttalk)) {
this.gotoAndStop("ltablet");
}
if (((!_root.haved) && (this.item == 7)) && (_root.ttalk)) {
this.gotoAndStop("dtablet");
}
if (this.item == 1) {
this.gotoAndStop("none");
}
if (this.item == 2) {
this.gotoAndStop("money");
}
}
Instance of Symbol 807 MovieClip in Symbol 918 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 807 MovieClip in Symbol 920 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 807 MovieClip in Symbol 926 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 931 MovieClip Frame 1
stop();
Instance of Symbol 731 MovieClip in Symbol 931 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.talking) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
_root.item = 1;
if ((Key.isDown(39) && (!_root.from1)) && (_root.talking)) {
_root.item = 2;
_root.from1 = true;
_root.men.gotoAndStop("sel2");
}
if ((!Key.isDown(39)) && (_root.talking)) {
_root.from1 = false;
}
}
Symbol 931 MovieClip Frame 2
stop();
Instance of Symbol 731 MovieClip in Symbol 931 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.talking) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((Key.isDown(39) && (!_root.from1)) && (_root.talking)) {
_root.item = 3;
_root.from1 = true;
_root.men.gotoAndStop("sel3");
}
if ((Key.isDown(37) && (!_root.from1)) && (_root.talking)) {
_root.item = 1;
_root.mouse_click.start(0, 1);
_root.from1 = true;
_root.men.gotoAndStop("sel1");
}
if (((!Key.isDown(39)) && (!Key.isDown(37))) && (_root.talking)) {
_root.from1 = false;
}
}
Symbol 931 MovieClip Frame 3
stop();
Instance of Symbol 731 MovieClip in Symbol 931 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.talking) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((Key.isDown(37) && (!_root.from1)) && (_root.talking)) {
_root.item = 2;
_root.from1 = true;
_root.men.gotoAndStop("sel2");
}
if ((!Key.isDown(37)) && (_root.talking)) {
_root.from1 = false;
}
}
Instance of Symbol 855 MovieClip in Symbol 936 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.otower = true;
_root.warp = true;
}
}
Instance of Symbol 807 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 964 MovieClip Frame 18
stop();
Instance of Symbol 963 MovieClip in Symbol 964 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.toazros = true;
_root.warp = true;
}
}
Symbol 965 MovieClip Frame 1
stop();
Instance of Symbol 855 MovieClip in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) {
_root.toforest2 = true;
_root.warp = true;
}
}
Symbol 982 MovieClip Frame 27
stop();
Symbol 992 MovieClip Frame 14
gotoAndStop (1);
Symbol 994 MovieClip Frame 1
_parent.hp = _parent.hp - 1;
Symbol 994 MovieClip Frame 20
_parent.hurt = false;
Symbol 994 MovieClip Frame 55
stop();
if (!_parent.hurt) {
_parent.gotoAndStop(1);
}
Symbol 995 MovieClip Frame 1
_parent.hp = _parent.hp - 1;
Symbol 995 MovieClip Frame 15
_parent.hurt = false;
Symbol 995 MovieClip Frame 50
stop();
if (!_parent.hurt) {
_parent.gotoAndStop(1);
}
Symbol 999 MovieClip Frame 1
stop();
ok = true;
hurt = false;
Instance of Symbol 982 MovieClip "spider" in Symbol 999 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.sketch.hitTest(_parent.bound) && (this._currentframe == 1)) && (!_root.pause)) {
this.play();
}
if (!_root.sketch.hitTest(_parent.bound)) {
this.prevFrame();
}
if ((this._currentframe == 27) && (!_root.pause)) {
_parent.gotoAndStop(2);
}
}
Symbol 999 MovieClip Frame 2
stop();
ok = true;
hurt = false;
Instance of Symbol 980 MovieClip "spider" in Symbol 999 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((!_parent.bound.hitTest(_root.sketch)) && (!_root.pause)) {
_parent.gotoAndStop("away");
}
}
Instance of Symbol 994 MovieClip "spider" in Symbol 999 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._currentframe == 55) {
_parent.hurt = false;
_parent.ok = true;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 995 MovieClip "spider" in Symbol 999 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_parent.hurt = false;
_parent.ok = true;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 908 MovieClip in Symbol 999 MovieClip Frame 5
onClipEvent (load) {
this.item = random(7) + 1;
}
onClipEvent (enterFrame) {
if (((!_root.haveb) && (this.item == 3)) && (_root.ttalk)) {
this.gotoAndStop("btablet");
}
if (((!_root.haveu) && (this.item == 4)) && (_root.ttalk)) {
this.gotoAndStop("utablet");
}
if (((!_root.havei) && (this.item == 5)) && (_root.ttalk)) {
this.gotoAndStop("itablet");
}
if (((!_root.havel) && (this.item == 6)) && (_root.ttalk)) {
this.gotoAndStop("ltablet");
}
if (((!_root.haved) && (this.item == 7)) && (_root.ttalk)) {
this.gotoAndStop("dtablet");
}
if (this.item == 1) {
this.gotoAndStop("none");
}
if (this.item == 2) {
this.gotoAndStop("money");
}
}
Instance of Symbol 998 MovieClip "spider" in Symbol 999 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this._currentframe == 28) {
_parent.gotoAndStop(1);
}
}
Symbol 1006 MovieClip Frame 1
stop();
Instance of Symbol 834 MovieClip "door1" in Symbol 1006 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!this.plays)) && (this.counter < 1.5)) && (!_root.pause)) {
_root.talking = true;
_root.camera.textbox.message = "Its locked. Maybe if you talk to the guard he will let you in.";
_root.door_lock.start(0, 1);
this.plays = true;
}
if (((this.hitTest(_root.sketch) && (_root.talking)) && (this.counter >= 1.5)) && (Key.isDown(68))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
if (!Key.isDown(38)) {
this.plays = false;
}
}
Instance of Symbol 834 MovieClip "door1" in Symbol 1006 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && ((Key.isDown(38) && (!_root.pause)) && (!_root.warp))) {
_root.door_open.start(0, 1);
_root.incast = true;
_root.warp = true;
}
}
Instance of Symbol 855 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) {
_root.oforest2 = true;
_root.warp = true;
}
}
Symbol 1011 MovieClip Frame 86
_root.bbuilt2 = true;
Symbol 1012 MovieClip Frame 1
stop();
Instance of Symbol 807 MovieClip in Symbol 1018 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 1022 MovieClip Frame 1
stop();
Instance of Symbol 807 MovieClip in Symbol 1024 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch) && (!_root.ttalked)) {
this.play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 807 MovieClip in Symbol 1030 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 1143 MovieClip Frame 100
stop();
Symbol 1144 MovieClip Frame 1
stop();
Instance of Symbol 824 MovieClip in Symbol 1154 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.base.hitTest(_root.sketch) or _parent.base2.hitTest(_root.sketch)) {
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
}
Symbol 1162 MovieClip Frame 1
stop();
Instance of Symbol 807 MovieClip in Symbol 1162 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.sketch)) {
this.play();
} else {
gotoAndStop (1);
}
}
Symbol 1163 MovieClip Frame 40
stop();
Instance of Symbol 1162 MovieClip in Symbol 1163 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a small key! This key can be used in this house.";
_root.getkey = true;
_root.c1open = true;
_root.smallkey = _root.smallkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c1open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Symbol 1166 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip in Symbol 1176 MovieClip Frame 5
onClipEvent (load) {
this.clang = false;
}
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.duck)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if ((this.hitTest(_root.sketch) && (_root.duck)) && (!this.clang)) {
_root.clang.start(0, 1);
this.clang = true;
}
}
Symbol 1184 MovieClip Frame 7
stop();
_parent.hurt = false;
_parent.defend = true;
_parent.gotoAndStop("defend");
Symbol 1192 MovieClip Frame 28
_parent.defend = false;
_parent.gotoAndStop("attacking");
Symbol 1193 MovieClip Frame 1
stop();
Instance of Symbol 1168 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1193 MovieClip Frame 2
stop();
Instance of Symbol 1176 MovieClip "attacker" in Symbol 1193 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1193 MovieClip Frame 3
stop();
Instance of Symbol 208 MovieClip in Symbol 1193 MovieClip Frame 3
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1193 MovieClip Frame 4
stop();
Instance of Symbol 1184 MovieClip in Symbol 1193 MovieClip Frame 4
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1193 MovieClip Frame 5
stop();
Instance of Symbol 1192 MovieClip in Symbol 1193 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1193 MovieClip Frame 6
stop();
hurt = false;
Symbol 1196 MovieClip Frame 40
stop();
Instance of Symbol 1162 MovieClip in Symbol 1196 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a gold key! This key can be used to open the final room in the house!.";
_root.getbkey = true;
_root.c2open = true;
_root.bigkey = _root.bigkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c2open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Symbol 1197 MovieClip Frame 1
stop();
Symbol 1204 MovieClip Frame 1
stop();
Symbol 1204 MovieClip Frame 90
stop();
Symbol 1205 MovieClip Frame 1
stop();
Symbol 1213 MovieClip Frame 34
stop();
Symbol 1214 MovieClip Frame 1
stop();
Symbol 1219 MovieClip Frame 34
stop();
Symbol 1220 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 34
stop();
Symbol 1226 MovieClip Frame 1
stop();
Symbol 1231 MovieClip Frame 34
stop();
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1237 MovieClip Frame 34
stop();
Symbol 1238 MovieClip Frame 1
stop();
Instance of Symbol 1214 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havea = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1220 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havez = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1226 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haver = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1232 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haveo = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1238 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haves = true;
this.gotoAndStop(2);
}
}
Symbol 1239 MovieClip Frame 10
stop();
Instance of Symbol 1214 MovieClip in Symbol 1239 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havea = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1220 MovieClip in Symbol 1239 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.havez = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1226 MovieClip in Symbol 1239 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haver = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1232 MovieClip in Symbol 1239 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haveo = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 1238 MovieClip in Symbol 1239 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.sketch.duck)) {
_root.haves = true;
this.gotoAndStop(2);
}
}
Symbol 1240 MovieClip Frame 1
stop();
Symbol 1255 MovieClip Frame 25
stop();
Symbol 1256 MovieClip Frame 1
stop();
Instance of Symbol 1256 MovieClip in Symbol 1257 MovieClip Frame 1
onClipEvent (load) {
this.eye = random(2) + 1;
}
onClipEvent (enterFrame) {
if (_root.eye2hurt) {
this.gotoAndStop(3);
}
if (((!_root.eye2hurt) && (this.eye == 1)) && (!_root.eye2hurting)) {
this.gotoAndStop(1);
}
if (((!_root.eye2hurt) && (this.eye == 2)) && (!_root.eye2hurting)) {
this.gotoAndStop(2);
}
if (((((((this.hitTest(_root.sketch) && (_root.attack)) && (!_root.eye2hurt)) && (this._currentframe == 1)) && (!_root.eye2hurting)) && (!_root.eye1hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye2hurting = true;
this.gotoAndStop(4);
}
if (this.eyehurting._currentframe == 25) {
_root.eye2hurting = false;
_root.eye2hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((((((this.hitTest(_root["egg_" + i]) && (!_root.eye2hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye2hurting = true;
this.gotoAndStop(4);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1256 MovieClip in Symbol 1257 MovieClip Frame 1
onClipEvent (load) {
this.eye = random(2) + 1;
}
onClipEvent (enterFrame) {
if (_root.eye4hurt) {
this.gotoAndStop(3);
}
if (((!_root.eye4hurt) && (this.eye == 1)) && (!_root.eye4hurting)) {
this.gotoAndStop(1);
}
if (((!_root.eye4hurt) && (this.eye == 2)) && (!_root.eye4hurting)) {
this.gotoAndStop(2);
}
if (((((((this.hitTest(_root.sketch) && (_root.attack)) && (!_root.eye4hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye4hurting = true;
this.gotoAndStop(4);
}
if (this.eyehurting._currentframe == 25) {
_root.eye4hurting = false;
_root.eye4hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((((((this.hitTest(_root["egg_" + i]) && (!_root.eye4hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye4hurting = true;
this.gotoAndStop(4);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1256 MovieClip in Symbol 1257 MovieClip Frame 1
onClipEvent (load) {
this.eye = random(2) + 1;
}
onClipEvent (enterFrame) {
if (_root.eye1hurt) {
this.gotoAndStop(3);
}
if (((!_root.eye1hurt) && (this.eye == 1)) && (!_root.eye1hurting)) {
this.gotoAndStop(1);
}
if (((!_root.eye1hurt) && (this.eye == 2)) && (!_root.eye1hurting)) {
this.gotoAndStop(2);
}
if (((((((this.hitTest(_root.sketch) && (_root.attack)) && (!_root.eye1hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye1hurting = true;
this.gotoAndStop(4);
}
if (this.eyehurting._currentframe == 25) {
_root.eye1hurting = false;
_root.eye1hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((((((this.hitTest(_root["egg_" + i]) && (!_root.eye1hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye1hurting = true;
this.gotoAndStop(4);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Instance of Symbol 1256 MovieClip in Symbol 1257 MovieClip Frame 1
onClipEvent (load) {
this.eye = random(2) + 1;
}
onClipEvent (enterFrame) {
if (_root.eye3hurt) {
this.gotoAndStop(3);
}
if (((!_root.eye3hurt) && (this.eye == 1)) && (!_root.eye3hurting)) {
this.gotoAndStop(1);
}
if (((!_root.eye3hurt) && (this.eye == 2)) && (!_root.eye3hurting)) {
this.gotoAndStop(2);
}
if (((((((this.hitTest(_root.sketch) && (_root.attack)) && (!_root.eye3hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye3hurting = true;
this.gotoAndStop(4);
}
if (this.eyehurting._currentframe == 25) {
_root.eye3hurting = false;
_root.eye3hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((((((this.hitTest(_root["egg_" + i]) && (!_root.eye3hurt)) && (this._currentframe == 1)) && (!_root.eye1hurting)) && (!_root.eye2hurting)) && (!_root.eye3hurting)) && (!_root.eye4hurting)) {
_root.eye3hurting = true;
this.gotoAndStop(4);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
Symbol 1258 MovieClip Frame 21
stop();
Instance of Symbol 1257 MovieClip in Symbol 1258 MovieClip Frame 21
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1257 MovieClip in Symbol 1260 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1260 MovieClip Frame 171
_parent.gotoAndStop(1);
Instance of Symbol 1257 MovieClip in Symbol 1261 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1261 MovieClip Frame 171
_parent.gotoAndStop(1);
Instance of Symbol 1257 MovieClip in Symbol 1262 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1262 MovieClip Frame 171
_parent.gotoAndStop(1);
Instance of Symbol 1257 MovieClip in Symbol 1264 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!this.hurt)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1264 MovieClip Frame 171
_parent.gotoAndStop(1);
Symbol 1269 MovieClip Frame 14
stop();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 12
stop();
Instance of Symbol 1281 MovieClip in Symbol 1282 MovieClip Frame 37
onClipEvent (load) {
this.hurt = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (_root.boss1.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (this.hurt) {
this.play();
}
if (this._currentframe == 12) {
_root.boss1.health = _root.boss1.health - 10;
this.hurt = false;
}
}
Instance of Symbol 1281 MovieClip in Symbol 1282 MovieClip Frame 146
onClipEvent (load) {
this.hurt = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (_root.boss1.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (this.hurt) {
this.play();
}
if (this._currentframe == 12) {
this.hurt = false;
}
}
Symbol 1282 MovieClip Frame 167
_root.eyesout = false;
_root.eye1hurt = false;
_root.eye2hurt = false;
_root.eye3hurt = false;
_root.eye4hurt = false;
_root.eye1hurting = false;
_root.eye2hurting = false;
_root.eye3hurting = false;
_root.eye4hurting = false;
_parent.gotoAndStop(1);
Symbol 1307 MovieClip Frame 12
stop();
Instance of Symbol 1281 MovieClip in Symbol 1308 MovieClip Frame 1
onClipEvent (load) {
this.hurt = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (_root.boss1.alive)) && (!_root.pause)) {
this.hurt = true;
}
if (this.hurt) {
this.play();
}
if (this._currentframe == 12) {
_root.boss1.health = _root.boss1.health - 10;
this.hurt = false;
}
}
Symbol 1308 MovieClip Frame 88
stop();
_root.boss1beat = true;
Symbol 1309 MovieClip Frame 1
stop();
Instance of Symbol 1260 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.eye1hurting or _root.eye2hurting) or _root.eye3hurting) or _root.eye4hurting) {
this.stop();
} else {
this.play();
}
}
Instance of Symbol 1261 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((_root.eye1hurting or _root.eye2hurting) or _root.eye3hurting) or _root.eye4hurting) {
this.stop();
} else {
this.play();
}
}
Instance of Symbol 1262 MovieClip in Symbol 1309 MovieClip Frame 4
onClipEvent (enterFrame) {
if (((_root.eye1hurting or _root.eye2hurting) or _root.eye3hurting) or _root.eye4hurting) {
this.stop();
} else {
this.play();
}
}
Instance of Symbol 1264 MovieClip in Symbol 1309 MovieClip Frame 5
onClipEvent (enterFrame) {
if (((_root.eye1hurting or _root.eye2hurting) or _root.eye3hurting) or _root.eye4hurting) {
this.stop();
} else {
this.play();
}
}
Symbol 1315 MovieClip Frame 1
stop();
Instance of Symbol 963 MovieClip in Symbol 1315 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.goback = true;
_root.warp = true;
}
}
Instance of Symbol 1317 MovieClip in Symbol 1318 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1317 MovieClip in Symbol 1318 MovieClip Frame 60
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1322 MovieClip Frame 1
stop();
Symbol 1323 MovieClip Frame 40
stop();
Instance of Symbol 1322 MovieClip in Symbol 1323 MovieClip Frame 40
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 1)) && (!this.spush)) {
this.gotoAndStop(2);
_root.switch1 = true;
_root.switchs.start(0, 1);
this.spush = true;
}
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe == 2)) && (!this.spush)) {
this.gotoAndStop(1);
_root.switchs.start(0, 1);
this.spush = true;
}
if (!_root.attack) {
this.spush = false;
}
}
Symbol 1324 MovieClip Frame 1
stop();
Symbol 1327 MovieClip Frame 30
_root.platpl = true;
_root.platpl = true;
Symbol 1328 MovieClip Frame 1
stop();
Symbol 1329 MovieClip Frame 1
stop();
Symbol 1330 MovieClip Frame 1
stop();
Instance of Symbol 1329 MovieClip "lock" in Symbol 1330 MovieClip Frame 2
onClipEvent (load) {
this._visible = true;
}
Symbol 1333 MovieClip Frame 1
stop();
Symbol 1335 MovieClip Frame 26
stop();
_root.ladap.appeared = true;
Symbol 1336 MovieClip Frame 1
stop();
Symbol 1340 MovieClip Frame 1
gotoAndPlay (165);
Symbol 1341 MovieClip Frame 30
_root.platformap = true;
Symbol 1342 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 40
stop();
Instance of Symbol 1162 MovieClip in Symbol 1343 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a small key! You can use this to open a locked door!.";
_root.getkey = true;
_root.c4open = true;
_root.smallkey = _root.smallkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c4open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Symbol 1344 MovieClip Frame 1
stop();
Symbol 1347 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 40
_root.doorappear = true;
Symbol 1351 MovieClip Frame 1
stop();
Instance of Symbol 1350 MovieClip in Symbol 1351 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.goback3 = true;
_root.warp = true;
}
}
Instance of Symbol 834 MovieClip in Symbol 1351 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((this.hitTest(_root.sketch) && (Key.isDown(38) && (!_root.pause))) && (!_root.warp)) {
_root.door_open.start(0, 1);
_root.toazros4 = true;
_root.warp = true;
}
}
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1359 MovieClip Frame 11
stop();
Symbol 1363 MovieClip Frame 1
stop();
Symbol 1364 MovieClip Frame 40
stop();
Instance of Symbol 1162 MovieClip in Symbol 1364 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a small key! You can use this to open a locked door!.";
_root.getkey = true;
_root.c5open = true;
_root.smallkey = _root.smallkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c5open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1367 MovieClip Frame 1
stop();
Symbol 1371 MovieClip Frame 1
_parent.spd = 0;
Symbol 1371 MovieClip Frame 44
_parent.spd = 6;
Symbol 1372 MovieClip Frame 1
stop();
Instance of Symbol 1371 MovieClip "bat" in Symbol 1372 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.in_range && (!_root.pause)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Symbol 1376 MovieClip Frame 26
stop();
_root.ladap2.appeared = true;
Symbol 1377 MovieClip Frame 1
stop();
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1384 MovieClip Frame 40
stop();
Instance of Symbol 1162 MovieClip in Symbol 1384 MovieClip Frame 40
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (Key.isDown(68) && (!_root.pause))) && (!_root.warp)) && (this._currentframe == 1)) && (this.counter < 1.5)) {
_root.openchest.start(0, 1);
_root.talking = true;
_root.camera.textbox.message = "You got a big key! You can use this to open the final room to the dungeon!.";
_root.getbkey = true;
_root.c11open = true;
_root.bigkey = _root.bigkey + 1;
}
if (((_root.talking && (this.counter >= 1.5)) && (Key.isDown(68))) && (this.hitTest(_root.sketch))) {
_root.camera.textbox.message = " ";
_root.talking = false;
_root.chatwindorclose.start(0, 1);
}
if (_root.c11open) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((!_root.talking) && (!Key.isDown(68))) {
this.counter = 0;
}
if (_root.talking) {
this.counter = this.counter + 0.1;
}
if (this.counter > 1.5) {
this.counter = 1.5;
}
}
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1404 MovieClip Frame 29
stop();
_root.demon_attacked = true;
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1406 MovieClip Frame 1
stop();
Instance of Symbol 1405 MovieClip in Symbol 1406 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.demon_attacked)) {
this.gotoAndStop(2);
if ((this.attack._currentframe > 4) && (this.attack._currentframe < 16)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
if (_root.demon_attacked) {
this.gotoAndStop(1);
_root.demon_attacked = false;
}
}
Symbol 1406 MovieClip Frame 132
stop();
_root.demon.idle_played = true;
Symbol 1410 MovieClip Frame 1
stop();
Symbol 1413 MovieClip Frame 1
stop();
Symbol 1414 MovieClip Frame 1
stop();
Instance of Symbol 1410 MovieClip in Symbol 1415 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1415 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1415 MovieClip Frame 28
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1415 MovieClip Frame 51
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1415 MovieClip Frame 60
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip "fall" in Symbol 1415 MovieClip Frame 90
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1415 MovieClip Frame 105
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1415 MovieClip Frame 150
_root.canhurt = false;
Symbol 1415 MovieClip Frame 192
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1410 MovieClip in Symbol 1416 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1416 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1416 MovieClip Frame 28
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1416 MovieClip Frame 51
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1416 MovieClip Frame 60
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip "fall" in Symbol 1416 MovieClip Frame 90
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1416 MovieClip Frame 105
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1416 MovieClip Frame 150
_root.canhurt = false;
Symbol 1416 MovieClip Frame 192
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1410 MovieClip in Symbol 1417 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1417 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1417 MovieClip Frame 22
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1417 MovieClip Frame 48
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1417 MovieClip Frame 53
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1417 MovieClip Frame 112
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1417 MovieClip Frame 157
_root.canhurt = false;
Symbol 1417 MovieClip Frame 199
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1410 MovieClip in Symbol 1418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1418 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1418 MovieClip Frame 28
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1418 MovieClip Frame 51
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1418 MovieClip Frame 60
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1418 MovieClip Frame 105
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1418 MovieClip Frame 150
_root.canhurt = false;
Symbol 1418 MovieClip Frame 192
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1410 MovieClip in Symbol 1419 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1419 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1419 MovieClip Frame 28
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1419 MovieClip Frame 51
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1419 MovieClip Frame 60
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1419 MovieClip Frame 90
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1419 MovieClip Frame 105
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1419 MovieClip Frame 150
_root.canhurt = false;
Symbol 1419 MovieClip Frame 192
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1410 MovieClip in Symbol 1420 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1420 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1410 MovieClip in Symbol 1420 MovieClip Frame 22
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1420 MovieClip Frame 51
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1414 MovieClip "fall" in Symbol 1420 MovieClip Frame 56
onClipEvent (load) {
this.clanged = false;
}
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.duck)) && (!_root.demon.hurt)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
if (((this.hitTest(_root.sketch) && (_root.duck)) && (!_root.attack)) && (!this.clanged)) {
_root.clang.start(0, 1);
this.clanged = true;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1420 MovieClip Frame 115
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1420 MovieClip Frame 160
_root.canhurt = false;
Symbol 1420 MovieClip Frame 202
stop();
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop(1);
Symbol 1428 MovieClip Frame 1
stop();
Instance of Symbol 1428 MovieClip in Symbol 1429 MovieClip Frame 52
onClipEvent (load) {
this.hurt = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (_root.demon.health > 0)) && (!_root.pause)) {
this.hurt = true;
}
if (this.hurt) {
this.play();
this.hurt = false;
}
if (this._currentframe == 2) {
_root.demon.health = _root.demon.health - 10;
_root.demonhurt.start(0, 1);
}
i = 0;
while (i < _root.egg) {
if (((this.hitTest(_root["egg_" + i]) && (!this.hurt)) && (!_root.pause)) && (!(this._currentframe === 1))) {
this.play();
_root.demonhurt.start(0, 1);
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
if ((this._currentframe == 2) && (this.hitTest(_root["egg_" + i]))) {
_root.demon.health = _root.demon.health - 15;
this.hurt = false;
}
i++;
}
}
Instance of Symbol 1428 MovieClip in Symbol 1429 MovieClip Frame 150
onClipEvent (load) {
this.hurt = false;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (_root.attack)) && (_root.demon.health > 0)) && (!_root.pause)) {
this.hurt = true;
}
if (this.hurt) {
this.play();
}
if (this._currentframe == 2) {
_root.demon.health = _root.demon.health - 10;
this.hurt = false;
}
}
Symbol 1429 MovieClip Frame 180
stop();
_root.demon.hurt = false;
_root.demon.gotoAndStop(1);
Instance of Symbol 1405 MovieClip in Symbol 1429 MovieClip Frame 180
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.demon_attacked)) {
this.gotoAndStop(2);
if ((this.attack._currentframe > 4) && (this.attack._currentframe < 16)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
if (_root.demon_attacked) {
this.gotoAndStop(1);
_root.demon_attacked = false;
}
}
Instance of Symbol 1413 MovieClip in Symbol 1430 MovieClip Frame 90
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1430 MovieClip Frame 127
stop();
_root.music.play();
_root.mvbattle.stop();
_root.boss2dead = true;
Symbol 1431 MovieClip Frame 1
stop();
_root.canhurt = false;
Instance of Symbol 1406 MovieClip in Symbol 1431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.demon.begin) {
this.play();
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 2
_root.canhurt = true;
Instance of Symbol 1415 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 3
_root.canhurt = true;
Instance of Symbol 1416 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 4
_root.canhurt = true;
Instance of Symbol 1417 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 4
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 5
_root.canhurt = true;
Instance of Symbol 1418 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 5
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 6
_root.canhurt = true;
Instance of Symbol 1419 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 6
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 7
_root.canhurt = true;
Instance of Symbol 1420 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 7
onClipEvent (enterFrame) {
if (((this._currentframe >= 105) && (this._currentframe <= 150)) && (_root.demon.hurt)) {
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
_root.demon.gotoAndStop("opportunity");
}
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 8
_root.canhurt = false;
_root.demon.demon_attacking = false;
_root.demon.idle_played = false;
Instance of Symbol 1429 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 9
_root.canhurt = false;
Instance of Symbol 1430 MovieClip "demon_at" in Symbol 1431 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.pause) {
this.stop();
} else {
this.play();
}
}
Symbol 1431 MovieClip Frame 10
stop();
_root.canhurt = false;
Symbol 1434 MovieClip Frame 1
stop();
Instance of Symbol 1038 MovieClip in Symbol 1437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1038 MovieClip in Symbol 1437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Symbol 1437 MovieClip Frame 60
stop();
Symbol 1440 MovieClip Frame 1
stop();
Instance of Symbol 1439 MovieClip in Symbol 1440 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.azro.hurt)) {
_root.hurt = true;
_root.health = _root.health - 2;
}
if (_root.azro.hurt) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1038 MovieClip in Symbol 1441 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1440 MovieClip in Symbol 1441 MovieClip Frame 115
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.azro.hurt)) && (!_root.attack)) {
_root.hurt = true;
_root.health = _root.health - 2;
}
if (_root.azro.hurt) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1439 MovieClip in Symbol 1441 MovieClip Frame 156
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.azro.hurt)) && (!_root.attack)) {
_root.hurt = true;
_root.health = _root.health - 2;
}
if (_root.azro.hurt) {
this.gotoAndStop(2);
}
}
Symbol 1441 MovieClip Frame 241
stop();
Instance of Symbol 1038 MovieClip in Symbol 1442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) {
_root.hurt = true;
_root.health = _root.health - 1;
}
}
Instance of Symbol 1440 MovieClip in Symbol 1442 MovieClip Frame 115
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.azro.hurt)) && (!_root.attack)) {
_root.hurt = true;
_root.health = _root.health - 2;
}
if (_root.azro.hurt) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1439 MovieClip in Symbol 1442 MovieClip Frame 156
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.sketch) && (!_root.hurt)) && (!_root.hurted)) && (!_root.pause)) && (!_root.azro.hurt)) && (!_root.attack)) {
_root.hurt = true;
_root.health = _root.health - 2;
}
if (_root.azro.hurt) {
this.gotoAndStop(2);
}
}
Symbol 1442 MovieClip Frame 241
stop();
Symbol 1567 MovieClip Frame 41
_root.azro.firep = true;
Symbol 1567 MovieClip Frame 79
_root.azro.firep = true;
Symbol 1567 MovieClip Frame 106
_root.powerball.gotoAndStop(2);
_root.azro.hurt = false;
_root.azro.swooping = false;
_root.azro.gotoAndStop(2);
stop();
Symbol 1593 MovieClip Frame 1
stop();
Instance of Symbol 1593 MovieClip in Symbol 1604 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.sketch) && (_root.attack)) {
this.play();
}
if (this._currentframe == 2) {
_root.azro.health = _root.azro.health - 1;
}
}
Symbol 1604 MovieClip Frame 141
_root.azro.phit = false;
_root.azro.gotoAndStop(2);
Symbol 1628 MovieClip Frame 22
_root.finalbattlebegin = false;
_root.finaltalk = true;
stop();
Symbol 1629 MovieClip Frame 1
stop();
Instance of Symbol 1437 MovieClip "prep" in Symbol 1629 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1441 MovieClip in Symbol 1629 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_root.azro.hurt && (!_root.pause)) && (this._currentframe >= 220)) {
_root.azro.gotoAndStop("p1");
}
if (((!_root.azro.hurt) && (!_root.pause)) && (this._currentframe >= 220)) {
_root.azro.swooping = false;
_root.azro.gotoAndStop("prepare");
}
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe >= 100)) && (this._currentframe <= 142)) {
_root.azro.hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe >= 100)) && (this._currentframe <= 142)) {
_root.azro.hurt = true;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1442 MovieClip in Symbol 1629 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_root.azro.hurt && (!_root.pause)) && (this._currentframe >= 220)) {
_root.azro.gotoAndStop("p1");
}
if (((!_root.azro.hurt) && (!_root.pause)) && (this._currentframe >= 220)) {
_root.azro.swooping = false;
_root.azro.gotoAndStop("prepare");
}
if (((this.hitTest(_root.sketch) && (_root.attack)) && (this._currentframe >= 100)) && (this._currentframe <= 142)) {
_root.azro.hurt = true;
}
i = 0;
while (i < _root.egg) {
if ((this.hitTest(_root["egg_" + i]) && (this._currentframe >= 100)) && (this._currentframe <= 142)) {
_root.azro.hurt = true;
_root["egg_" + i].gotoAndStop(2);
_root["egg_" + i].fly = false;
}
i++;
}
}
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1567 MovieClip in Symbol 1629 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1604 MovieClip in Symbol 1629 MovieClip Frame 6
onClipEvent (enterFrame) {
if (!_root.pause) {
this.play();
} else {
this.stop();
}
}
Symbol 1640 MovieClip Frame 11
stop();
Symbol 1641 MovieClip Frame 2
stop();
Symbol 1669 MovieClip Frame 22
stop();
Symbol 1670 MovieClip Frame 160
stop();
Symbol 1675 MovieClip Frame 132
stop();
Symbol 1678 MovieClip Frame 146
stop();
Symbol 1679 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 1679 MovieClip Frame 1
onClipEvent (load) {
this.spush = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(83) && (!this.spush)) {
_root.scene1.play();
this.spush = true;
}
if ((!Key.isDown(83)) && (this.spush)) {
this.spush = false;
}
}
Symbol 1679 MovieClip Frame 30
stop();
Symbol 1679 MovieClip Frame 60
stop();
Symbol 1679 MovieClip Frame 90
_root.gotoAndStop("credits");
Symbol 1685 MovieClip Frame 1211
stop();
Instance of Symbol 366 MovieClip in Symbol 1685 MovieClip Frame 1211
onClipEvent (load) {
this.spush = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(83) && (!this.spush)) {
_root.creditsmc.play();
this.spush = true;
}
if ((!Key.isDown(83)) && (this.spush)) {
this.spush = false;
}
}
Symbol 1685 MovieClip Frame 1513
stop();
_root.gotoAndStop("menu");
Instance of Symbol 1684 MovieClip in Symbol 1685 MovieClip Frame 1513
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.survival = false;
_root.pauze = false;
_root.bg.gotoAndStop(1);
_root.welke = 1;
_root.cam.textbox.gotoAndStop(1);
}
}