Frame 1
function itemHandler0(obj, item) {
_root.getURL("http://www.mofongostudios.com", "_blank");
}
function itemHandler1(obj, item) {
_root.getURL("http://www.ponzstudio.com", "_blank");
}
function itemHandler2(obj, item) {
_root.getURL("http://www.maxgames.com", "_blank");
}
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "uploadingit.com") {
}
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Mofongo Studios!", itemHandler0));
myMenu.customItems.push(new ContextMenuItem("Ponz Studio!", itemHandler1));
myMenu.customItems.push(new ContextMenuItem("MaxGames!", itemHandler2));
myMenu.customItems[2].separatorBefore = true;
_root.menu = myMenu;
stop();
var _mochiads_game_id = "e9b029585aedb8cd";
MochiAd.showPreGameAd({id:"a64d1e39d9f42595", res:"550x400"});
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
BYTESLOADED = _root.getBytesLoaded();
BYTESTOTAL = _root.getBytesTotal();
totalLoaded = (BYTESLOADED / BYTESTOTAL) * 100;
this.gotoAndStop(int(totalLoaded));
}
Instance of Symbol 21 MovieClip "leveltransition" in Frame 1
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
if (_root._currentframe > 4) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
}
Frame 2
stop();
_quality = "LOW";
Frame 4
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
_root.savedlevels = savefile.data.savedlevels;
if (savefile.data.savedlevels == undefined) {
_root.savedlevels = 1;
}
objectSetback = 10;
TRUEVCAMWIDTH = 396.2;
TRUEVCAMHEIGHT = 264.1;
VCAMWIDTH = TRUEVCAMWIDTH;
VCAMHEIGHT = TRUEVCAMHEIGHT;
stop();
Instance of Symbol 413 MovieClip "normalmenu" in Frame 4
onClipEvent (load) {
trueY = _y;
truetrueY = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - trueY) > 0.1) {
_y = (_y + ((trueY - _y) / 10));
} else {
_y = trueY;
}
}
Instance of Symbol 452 MovieClip "levelselect" in Frame 4
onClipEvent (load) {
trueY = _y;
truetrueY = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - trueY) > 0.1) {
_y = (_y + ((trueY - _y) / 10));
} else {
_y = trueY;
}
}
Frame 5
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 1) {
savefile.data.savedlevels = 1;
}
savefile.flush();
Instance of Symbol 51 MovieClip in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
Instance of Symbol 484 MovieClip "growshrinksound" in Frame 5
onClipEvent (enterFrame) {
if (_root.poop.stat != "grow/shrink") {
if (Key.isDown(87) && (_currentframe == 1)) {
this.play();
}
}
if (_root[_root.activeobject].stat == "grow/shrink") {
if (Key.isDown(87) && (_currentframe == 1)) {
this.play();
}
} else {
this.gotoAndStop(1);
}
if (!Key.isDown(87)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 487 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.poop.stat != "grow/shrink") {
if (Key.isDown(83) && (_currentframe == 1)) {
this.play();
}
}
if (_root[_root.activeobject].stat == "grow/shrink") {
if (Key.isDown(83) && (_currentframe == 1)) {
this.play();
}
} else {
this.gotoAndStop(1);
}
if (!Key.isDown(83)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 490 MovieClip "music" in Frame 5
onClipEvent (load) {
stat = "mute";
}
Instance of Symbol 508 MovieClip "HUD" in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
alphadir = "up";
}
onClipEvent (enterFrame) {
if (_root.activeobject == "poop") {
this.maxgames._y = this.maxgames._y - ((this.maxgames._y - 666) / 5);
} else {
this.maxgames._y = this.maxgames._y - ((this.maxgames._y - 430) / 5);
}
if (Key.isDown(88)) {
if (_alpha == 100) {
alphadir = "down";
} else if (_alpha == 0) {
alphadir = "up";
}
}
if (alphadir == "up") {
if (_alpha < 100) {
_alpha = (_alpha + 5);
} else {
_alpha = 100;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
_alpha = 0;
}
currentframe = _root._currentframe;
if (_alpha == 100) {
currentlevel = currentframe - 4;
} else {
currentlevel = "";
}
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
Instance of Symbol 510 MovieClip "vcamwidthadjuster" in Frame 5
onClipEvent (enterFrame) {
if ((_currentframe > 1) && ((_root.activeobject == "monkey") || (_root.activeobject == "poop"))) {
_root.VCAMWIDTH = _root.TRUEVCAMWIDTH;
_root.VCAMHEIGHT = _root.TRUEVCAMHEIGHT;
this.gotoAndStop(1);
}
}
Instance of Symbol 512 MovieClip "hudindicator" in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_alpha = (100 - _root.HUD._alpha);
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
Instance of Symbol 576 MovieClip "monkey" in Frame 5
onClipEvent (load) {
_root.activeobject = this._name;
jump = true;
truejumpp = 13;
scale = _xscale;
walkspeed = 0;
maxwalkspeed = 6;
casting = false;
fallspeed = 2;
trueX = 200.9;
trueY = 167.1;
jumpspeed = 0.6;
}
onClipEvent (mouseDown) {
if (((((_root.activeobject != "poop") && (_root.pausemenu._currentframe == 1)) && (jump == false)) && (terrainhit == true)) && (Math.abs(walkspeed) < 0.1)) {
casting = true;
this.gotoAndStop("cast");
}
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (walkspeed > 0) {
if ((!_root.terrain.land.hitTest(_x + 24, _y - 30, true)) && (!_root.terrain.land.hitTest(_x + 24, _y - 81, true))) {
_x = (_x + walkspeed);
}
} else if ((!_root.terrain.land.hitTest(_x - 24, _y - 30, true)) && (!_root.terrain.land.hitTest(_x - 24, _y - 81, true))) {
_x = (_x + walkspeed);
}
while (_root.terrain.land.hitTest(_x + 24, _y - 30, true)) {
_x = (_x - 1);
}
while (_root.terrain.land.hitTest(_x - 24, _y - 30, true)) {
_x = (_x + 1);
}
if ((((!Key.isDown(65)) && (!Key.isDown(68))) || (Key.isDown(65) && (walkspeed > 0))) || (Key.isDown(68) && (walkspeed < 0))) {
walkspeed = walkspeed / 1.25;
}
if (_root.activeobject == this._name) {
if (((Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 30, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 81, true))) && (casting == false)) {
if (walkspeed > (-maxwalkspeed)) {
walkspeed = walkspeed - 0.25;
}
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (((Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 30, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 81, true))) && (casting == false)) {
if (walkspeed < maxwalkspeed) {
walkspeed = walkspeed + 0.25;
}
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (casting == false)) {
jump = true;
jumpp = truejumpp;
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - 85, true)) {
_y = (_y + jumpp);
}
}
if (terrainhit == true) {
if (_root.activeobject == this._name) {
if (((((((!Key.isDown(65)) or (Key.isDown(65) && (_root.terrain.land.hitTest(_x - 24, _y - 30, true)))) && ((!Key.isDown(68)) or (Key.isDown(68) && (_root.terrain.land.hitTest(_x + 24, _y - 30, true))))) && (!Key.isDown(87))) && (this._currentframe != "wait")) && (this.casting != true)) && (this._currentframe != "cast")) {
this.gotoAndStop("wait");
}
} else if ((_root.activeobject != this._name) && (_currentframe != "wait")) {
this.gotoAndStop("wait");
}
_y = (_y - fallspeed);
jump = false;
while (_root.terrain.land.hitTest(_x, _y - 8, true)) {
_y = (_y - fallspeed);
}
} else if (((terrainhit == false) && (jump == false)) && (casting == false)) {
if (this._currentframe != "float") {
this.gotoAndStop("float");
}
fallspeed = 1.5;
} else {
fallspeed = 2;
}
if (_root.terrain.land.hitTest(_x, _y + 1, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (_root.activeobject != this._name) {
if (_root[_root.activeobject]._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
}
Instance of Symbol 577 MovieClip "poop" in Frame 5
onClipEvent (load) {
_alpha = 0;
speed = 5;
allowedSpells = 2;
trueWidth = _xscale;
trueHeight = _yscale;
}
onClipEvent (enterFrame) {
if (_alpha == 100) {
if (stat == "grow/shrink") {
if (Key.isDown(87) && (_yscale <= trueHeight)) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_yscale >= 19)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
_root.activeobject = this._name;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI) + 90;
if (!hitTest(_root._xmouse, _root._ymouse, true)) {
this._rotation = myDegrees;
}
this._y = this._y - ((_y - _root._ymouse) / 20);
this._x = this._x - ((_x - _root._xmouse) / 20);
if (((_root.terrain.land.hitTest(_x, _y + 7.8, true) or _root.terrain.land.hitTest(_x, _y - 7.8, true)) or _root.terrain.land.hitTest(_x - 7.8, _y, true)) or _root.terrain.land.hitTest(_x + 7.8, _y, true)) {
_root.chimesound.gotoAndStop(3);
_alpha = 0;
_root.activeobject = _root.monkey._name;
}
_root.VCAMWIDTH = Stage.width;
_root.VCAMHEIGHT = Stage.height;
aks = 0;
} else {
_x = -30000;
aks++;
if (aks == 2) {
_root.VCAMWIDTH = _root.TRUEVCAMWIDTH;
_root.VCAMHEIGHT = _root.TRUEVCAMHEIGHT;
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if (_currentframe == allowedSpells) {
this.gotoAndStop(1);
} else {
this.play();
}
}
}
Instance of Symbol 582 MovieClip "possessanim" in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
Instance of Symbol 584 MovieClip "vcam" in Frame 5
onClipEvent (load) {
trueWidth = _width;
trueHeight = _height;
targetX = _x;
targetY = _y;
}
onClipEvent (enterFrame) {
if (_root.vcamwidthadjuster._currentframe == 1) {
targetX = _root[_root.activeobject]._x;
targetY = _root[_root.activeobject]._y;
}
if ((_root.activeobject == _root.monkey._name) or (_root.activeobject == _root.poop._name)) {
this._x = this._x + ((targetX - this._x) / 17);
this._y = this._y + (((targetY - 50) - this._y) / 17);
} else {
this._x = this._x + ((targetX - this._x) / 15);
this._y = this._y + ((targetY - this._y) / 15);
}
this._width = this._width + ((_root.VCAMWIDTH - this._width) / 10);
this._height = this._height + ((_root.VCAMHEIGHT - this._height) / 10);
}
Instance of Symbol 600 MovieClip "pausemenu" in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
_height = _root.vcam._height;
_width = _root.vcam._width;
if ((((_currentframe == 1) && (_root.activeobject == "monkey")) && (_root.monkey.casting != true)) && (Key.isDown(80))) {
this.play();
}
}
Instance of Symbol 602 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((_root.activeobject != "monkey") && (_root.activeobject != "poop")) {
this._alpha = 100;
_x = _root[_root.activeobject]._x;
_y = (_root[_root.activeobject]._y - 90);
} else {
_alpha = 0;
}
}
Instance of Symbol 603 MovieClip in Frame 5
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
_height = _root.vcam._height;
_width = _root.vcam._width;
if ((((_currentframe == 1) && (_root.activeobject == "monkey")) && (_root.monkey.casting != true)) && (Key.isDown(80))) {
this.play();
}
}
Frame 6
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 2) {
savefile.data.savedlevels = 2;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel" in Frame 6
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - 20, true)) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 669 MovieClip "bat" in Frame 6
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 673 MovieClip "rock" in Frame 6
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= 41)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
if (Key.isDown(1)) {
_height = (_height - ((_height - trueHeight) / 5));
_width = (_width - ((_width - trueWidth) / 5));
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 7
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 3) {
savefile.data.savedlevels = 3;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel1" in Frame 7
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock1" in Frame 7
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 8
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 4) {
savefile.data.savedlevels = 4;
}
savefile.flush();
Instance of Symbol 669 MovieClip "bat2" in Frame 8
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Frame 9
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 5) {
savefile.data.savedlevels = 5;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel5" in Frame 9
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock5" in Frame 9
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 669 MovieClip "bat5" in Frame 9
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Frame 10
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 6) {
savefile.data.savedlevels = 6;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel6a" in Frame 10
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 665 MovieClip "squirrel6b" in Frame 10
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 665 MovieClip "squirrel6c" in Frame 10
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock6a" in Frame 10
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 669 MovieClip "bat6a" in Frame 10
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Frame 11
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 7) {
savefile.data.savedlevels = 7;
}
savefile.flush();
Instance of Symbol 669 MovieClip "bat7a" in Frame 11
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Frame 12
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 8) {
savefile.data.savedlevels = 8;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel8a" in Frame 12
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 669 MovieClip "bat8a" in Frame 12
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 673 MovieClip "rock8" in Frame 12
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 13
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 9) {
savefile.data.savedlevels = 9;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel9a" in Frame 13
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) {
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) {
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(87) && (jump == false)) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Frame 14
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 10) {
savefile.data.savedlevels = 10;
}
savefile.flush();
Instance of Symbol 484 MovieClip "growshrinksound" in Frame 14
onClipEvent (enterFrame) {
if ((_root[_root.activeobject].stat == "grow/shrink") || (_root.activeobject == "poop")) {
if (Key.isDown(87) && (_currentframe == 1)) {
this.play();
}
} else {
this.gotoAndStop(1);
}
if (!Key.isDown(87)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 487 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root[_root.activeobject].stat == "grow/shrink") || (_root.activeobject == "poop")) {
if (Key.isDown(83) && (_currentframe == 1)) {
this.play();
}
} else {
this.gotoAndStop(1);
}
if (!Key.isDown(83)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 665 MovieClip "squirrel10a" in Frame 14
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - 5);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + 5);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock10a" in Frame 14
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = _width;
trueHeight = _height;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 576 MovieClip "monkey" in Frame 14
onClipEvent (load) {
_root.activeobject = this._name;
jump = true;
truejumpp = 13;
scale = _xscale;
walkspeed = 0;
maxwalkspeed = 6;
casting = false;
fallspeed = 2;
trueX = 200.9;
trueY = 167.1;
jumpspeed = 0.6;
}
onClipEvent (mouseDown) {
if (((((_root.activeobject != "poop") && (_root.pausemenu._currentframe == 1)) && (jump == false)) && (terrainhit == true)) && (Math.abs(walkspeed) < 0.1)) {
casting = true;
this.gotoAndStop("cast");
}
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (walkspeed > 0) {
if (((!_root.terrain.land.hitTest(_x + 24, _y - 30, true)) && (!_root.terrain.land.hitTest(_x + 24, _y - 81, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 15, true))) {
_x = (_x + walkspeed);
}
} else if ((!_root.terrain.land.hitTest(_x - 24, _y - 30, true)) && (!_root.terrain.land.hitTest(_x - 24, _y - 81, true))) {
_x = (_x + walkspeed);
}
while (_root.terrain.land.hitTest(_x + 24, _y - 30, true)) {
_x = (_x - 1);
}
while (_root.terrain.land.hitTest(_x - 24, _y - 30, true)) {
_x = (_x + 1);
}
if ((((!Key.isDown(65)) && (!Key.isDown(68))) || (Key.isDown(65) && (walkspeed > 0))) || (Key.isDown(68) && (walkspeed < 0))) {
walkspeed = walkspeed / 1.25;
}
if (_root.activeobject == this._name) {
if (((Key.isDown(65) && (!_root.terrain.land.hitTest(_x - 24, _y - 30, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 81, true))) && (casting == false)) {
if (walkspeed > (-maxwalkspeed)) {
walkspeed = walkspeed - 0.25;
}
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (((Key.isDown(68) && (!_root.terrain.land.hitTest(_x + 24, _y - 30, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 81, true))) && (casting == false)) {
if (walkspeed < maxwalkspeed) {
walkspeed = walkspeed + 0.25;
}
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (casting == false)) {
jump = true;
jumpp = truejumpp;
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - 85, true)) {
_y = (_y + jumpp);
}
}
if (terrainhit == true) {
if (_root.activeobject == this._name) {
if (((((((!Key.isDown(65)) or (Key.isDown(65) && (_root.terrain.land.hitTest(_x - 24, _y - 30, true)))) && ((!Key.isDown(68)) or (Key.isDown(68) && (_root.terrain.land.hitTest(_x + 24, _y - 30, true))))) && (!Key.isDown(87))) && (this._currentframe != "wait")) && (this.casting != true)) && (this._currentframe != "cast")) {
this.gotoAndStop("wait");
}
} else if ((_root.activeobject != this._name) && (_currentframe != "wait")) {
this.gotoAndStop("wait");
}
_y = (_y - fallspeed);
jump = false;
while (_root.terrain.land.hitTest(_x, _y - 8, true)) {
_y = (_y - fallspeed);
}
} else if (((terrainhit == false) && (jump == false)) && (casting == false)) {
if (this._currentframe != "float") {
this.gotoAndStop("float");
}
fallspeed = 1.5;
} else {
fallspeed = 2;
}
if (_root.terrain.land.hitTest(_x, _y + 1, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (_root.activeobject != this._name) {
if (_root[_root.activeobject]._x > this._x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
}
Instance of Symbol 577 MovieClip "poop" in Frame 14
onClipEvent (load) {
_alpha = 0;
speed = 5;
allowedSpells = 3;
trueWidth = _xscale;
trueHeight = _yscale;
size = 250;
}
onClipEvent (enterFrame) {
if (_alpha == 100) {
if (Key.isDown(87) && (size < 250)) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
size = size + 1;
}
if (Key.isDown(83) && (size > 0)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
size = size - 1;
}
_root.activeobject = this._name;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI) + 90;
if (!hitTest(_root._xmouse, _root._ymouse, true)) {
this._rotation = myDegrees;
}
this._y = this._y - ((_y - _root._ymouse) / 20);
this._x = this._x - ((_x - _root._xmouse) / 20);
if (((_root.terrain.land.hitTest(_x, _y + 3, true) or _root.terrain.land.hitTest(_x, _y - 3, true)) or _root.terrain.land.hitTest(_x - 5, _y, true)) or _root.terrain.land.hitTest(_x + 5, _y, true)) {
_root.chimesound.gotoAndStop(3);
_alpha = 0;
_root.activeobject = _root.monkey._name;
_xscale = trueWidth;
_yscale = trueHeight;
size = 250;
}
_root.VCAMWIDTH = Stage.width;
_root.VCAMHEIGHT = Stage.height;
} else {
_xscale = trueWidth;
_yscale = trueHeight;
size = 250;
_x = -30000;
_root.VCAMWIDTH = _root.TRUEVCAMWIDTH;
_root.VCAMHEIGHT = _root.TRUEVCAMHEIGHT;
}
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if (_currentframe == allowedSpells) {
this.gotoAndStop(1);
} else {
this.play();
}
}
}
Frame 15
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 11) {
savefile.data.savedlevels = 11;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel11a" in Frame 15
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock11a" in Frame 15
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 16
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 12) {
savefile.data.savedlevels = 12;
}
savefile.flush();
Instance of Symbol 665 MovieClip "squirrel12a" in Frame 16
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 20, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock12a" in Frame 16
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 733 MovieClip in Frame 16
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (_root.terrain.land.button12b._currentframe == 2)) {
this.play();
}
}
Frame 17
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 13) {
savefile.data.savedlevels = 13;
}
savefile.flush();
Instance of Symbol 738 MovieClip "terrain" in Frame 17
/* no clip actions */
Instance of Symbol 673 MovieClip "rock13a" in Frame 17
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if ((Key.isDown(83) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
jump = false;
}
}
if (jump == false) {
jumpp = 0;
}
if (((!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
jump = true;
} else {
jump = false;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel13a" in Frame 17
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 669 MovieClip "bat13a" in Frame 17
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 673 MovieClip "rock13b" in Frame 17
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if ((Key.isDown(83) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
jump = false;
}
}
if (jump == false) {
jumpp = 0;
}
if (((!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
jump = true;
} else {
jump = false;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 18
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 14) {
savefile.data.savedlevels = 14;
}
savefile.flush();
Instance of Symbol 743 MovieClip "terrain" in Frame 18
/* no clip actions */
Instance of Symbol 673 MovieClip "rock14a" in Frame 18
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel14a" in Frame 18
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 669 MovieClip "bat14a" in Frame 18
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 733 MovieClip in Frame 18
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (_parent.terrain.land.button14b._currentframe == 30)) {
this.play();
}
}
Frame 19
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 15) {
savefile.data.savedlevels = 15;
}
savefile.flush();
Instance of Symbol 673 MovieClip "rock15a" in Frame 19
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel15a" in Frame 19
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 669 MovieClip "bat15a" in Frame 19
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 733 MovieClip in Frame 19
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (_parent.terrain.land.button15c._currentframe == 2)) {
this.play();
}
}
Instance of Symbol 733 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_parent.terrain.land.button15b._currentframe == 30) {
if (_currentframe == 1) {
this.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 733 MovieClip in Frame 19
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (_parent.terrain.land.button15a._currentframe == 2)) {
this.play();
}
}
Frame 20
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 16) {
savefile.data.savedlevels = 16;
}
savefile.flush();
Instance of Symbol 673 MovieClip "rock16a" in Frame 20
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 67.2;
trueHeight = 55;
jumpp = 0;
growtimer = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if (_root.poop.stat == "grow/shrink") {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (Key.isDown(87) && (growtimer > 0)) {
_height = (_height * 1.003);
_width = (_width * 1.003);
growtimer--;
}
if (Key.isDown(83) && (growtimer < 400)) {
_height = (_height / 1.003);
_width = (_width / 1.003);
growtimer++;
}
}
} else {
if (growtimer > 0) {
_width = (_width * 1.003);
_height = (_height * 1.003);
growtimer--;
}
if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel16a" in Frame 20
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) or (((!_root.terrain.land.hitTest(_x, _y + 20, true)) and _root.terrain.land.hitTest(_x - 20, _y + 20, true)) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock16b" in Frame 20
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 67.2;
trueHeight = 55;
jumpp = 0;
growtimer = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if (_root.poop.stat == "grow/shrink") {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (Key.isDown(87) && (growtimer > 0)) {
_height = (_height * 1.003);
_width = (_width * 1.003);
growtimer--;
}
if (Key.isDown(83) && (growtimer < 400)) {
_height = (_height / 1.003);
_width = (_width / 1.003);
growtimer++;
}
}
} else {
if (growtimer > 0) {
_width = (_width * 1.003);
_height = (_height * 1.003);
growtimer--;
}
if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 21
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 17) {
savefile.data.savedlevels = 17;
}
savefile.flush();
Instance of Symbol 673 MovieClip "rock17a" in Frame 21
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 67.2;
trueHeight = 55;
jumpp = 0;
growtimer = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if (_root.poop.stat == "grow/shrink") {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (Key.isDown(87) && (growtimer > 0)) {
_height = (_height * 1.003);
_width = (_width * 1.003);
growtimer--;
}
if (Key.isDown(83) && (growtimer < 400)) {
_height = (_height / 1.003);
_width = (_width / 1.003);
growtimer++;
}
}
} else {
if (growtimer > 0) {
_width = (_width * 1.003);
_height = (_height * 1.003);
growtimer--;
}
if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel15a" in Frame 21
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) || (((!_root.terrain.land.hitTest(_x, _y + 20, true)) && (_root.terrain.land.hitTest(_x - 20, _y + 20, true))) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock17d" in Frame 21
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 67.2;
trueHeight = 55;
jumpp = 0;
growtimer = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if (_root.poop.stat == "grow/shrink") {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (Key.isDown(87) && (growtimer > 0)) {
_height = (_height * 1.003);
_width = (_width * 1.003);
growtimer--;
}
if (Key.isDown(83) && (growtimer < 400)) {
_height = (_height / 1.003);
_width = (_width / 1.003);
growtimer++;
}
}
} else {
if (growtimer > 0) {
_width = (_width * 1.003);
_height = (_height * 1.003);
growtimer--;
}
if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 673 MovieClip "rock17b" in Frame 21
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_x, _root.terrain.land._y - 150, true)) {
ygoal = _y + _root.objectSetback;
}
if (hitTest(_root.terrain.land._x + _root.terrain.land._width, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (hitTest(_root.terrain.land._x, _y, true)) {
xgoal = _x + _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Frame 22
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 18) {
savefile.data.savedlevels = 18;
}
savefile.flush();
Instance of Symbol 673 MovieClip "rock19a" in Frame 22
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 67.2;
trueHeight = 55;
jumpp = 0;
growtimer = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if (_root.poop.stat == "grow/shrink") {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (Key.isDown(87) && (growtimer > 0)) {
_height = (_height * 1.003);
_width = (_width * 1.003);
growtimer--;
}
if (Key.isDown(83) && (growtimer < 400)) {
_height = (_height / 1.003);
_width = (_width / 1.003);
growtimer++;
}
}
} else {
if (growtimer > 0) {
_width = (_width * 1.003);
_height = (_height * 1.003);
growtimer--;
}
if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = false;
xgoal = _x;
ygoal = _y;
jumpp = 0;
}
}
if (!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
jump = true;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 665 MovieClip "squirrel19a" in Frame 22
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) || (((!_root.terrain.land.hitTest(_x, _y + 20, true)) && (_root.terrain.land.hitTest(_x - 20, _y + 20, true))) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Frame 23
var savefile = SharedObject.getLocal("MonkeyWizardSaveFile");
if (savefile.data.savedlevels <= 19) {
savefile.data.savedlevels = 19;
}
savefile.flush();
stop();
Instance of Symbol 665 MovieClip "squirrel20a" in Frame 23
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) || (((!_root.terrain.land.hitTest(_x, _y + 20, true)) && (_root.terrain.land.hitTest(_x - 20, _y + 20, true))) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 665 MovieClip "squirrel20b" in Frame 23
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) || (((!_root.terrain.land.hitTest(_x, _y + 20, true)) && (_root.terrain.land.hitTest(_x - 20, _y + 20, true))) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 665 MovieClip "squirrel20c" in Frame 23
onClipEvent (load) {
truejumpp = 15;
jump = false;
jumpspeed = 0.5;
trueWidth = _width;
trueHeight = _height;
trueyscale = _yscale;
scale = _xscale;
DIRECTION = "right";
}
onClipEvent (enterFrame) {
if (_yscale > (trueyscale / 2)) {
walkspeed = 5;
} else {
walkspeed = 2.5;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (_root.activeobject == this._name) {
if (Key.isDown(81)) {
if (stat == "grow/shrink") {
if (DIRECTION == "right") {
scale = _xscale;
} else {
scale = _xscale * -1;
}
}
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if (((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_yscale = (_yscale * 1.005);
_xscale = (_xscale * 1.005);
}
if (Key.isDown(83) && (_height >= 14.3)) {
_yscale = (_yscale / 1.005);
_xscale = (_xscale / 1.005);
}
}
if (stat == "possess") {
if (Key.isDown(65) && (!_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "left";
_x = (_x - walkspeed);
_xscale = (-scale);
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if (Key.isDown(68) && (!_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
DIRECTION = "right";
_x = (_x + walkspeed);
_xscale = scale;
if ((_currentframe != "walk") && (terrainhit == true)) {
this.gotoAndStop("walk");
}
}
if ((Key.isDown(87) && (jump == false)) && (!_root.terrain.land.hitTest(_x, _y - _height, true))) {
jump = true;
jumpp = truejumpp;
}
if (((_root.terrain.land.hitTest(_x + 20, _y + 20, true) and (!_root.terrain.land.hitTest(_x, _y + 20, true))) && (Key.isDown(65))) || (((!_root.terrain.land.hitTest(_x, _y + 20, true)) && (_root.terrain.land.hitTest(_x - 20, _y + 20, true))) && (Key.isDown(68)))) {
jump = true;
jumpp = 7;
}
}
}
if (jump == true) {
_y = (_y - jumpp);
jumpp = jumpp - jumpspeed;
if ((jumpp > 0) && (_currentframe != "jumpup")) {
this.gotoAndStop("jumpup");
}
if ((jumpp < 0) && (_currentframe != "jumpdown")) {
this.gotoAndStop("jumpdown");
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true) || ((_root.terrain.land.hitTest((_x + (_width / 2)) - 10, _y - (_height / 2), true) || (_root.terrain.land.hitTest((_x - (_width / 2)) + 10, _y - (_height / 2), true))) && (jumpp > 0))) {
jumpp = 0;
_y = (_y + 2);
}
} else {
jumpp = 0;
}
if (terrainhit == true) {
if (((((_root.activeobject == this._name) && (_currentframe != "jumpup")) && (_currentframe != "jumpdown")) && (this._currentframe != "wait")) || ((_currentframe == "jumpdown") && (jump != true))) {
if ((!Key.isDown(65)) || (Key.isDown(65) && (_root.terrain.land.hitTest(_x - (_width / 2), _y - (_height / 2), true)))) {
if ((!Key.isDown(68)) || (_root.terrain.land.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
this.gotoAndStop("wait");
}
}
}
if ((_root.activeobject != this._name) && (_currentframe != "normal")) {
this.gotoAndStop("normal");
}
_y = (_y - 2);
jump = false;
while (_root.terrain.land.hitTest(_x, _y + 2, true)) {
_y = (_y - 1);
}
}
if (_root.terrain.land.hitTest(_x, _y + 3, true)) {
terrainhit = true;
} else {
terrainhit = false;
}
if (terrainhit == false) {
_y = (_y + 2);
}
}
Instance of Symbol 673 MovieClip "rock20a" in Frame 23
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
truexscale = _xscale;
trueyscale = _yscale;
trueWidth = 33.6;
trueHeight = 27.5;
jumpp = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "levitate") || (_root.poop.stat == "grow/shrink")) {
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (this.poop._alpha < 100) {
this.poop._alpha = this.poop._alpha + 5;
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 12.5)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "levitate") {
jumpp = 0;
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if ((Key.isDown(83) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
ygoal = ygoal + 4;
}
if (Key.isDown(65) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal - 4;
}
if (Key.isDown(68) && (!(_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true) && (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) + 3, true))))) {
xgoal = xgoal + 4;
}
if (_root.terrain.land.hitTest(_x + (_width / 2), _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x - (_width / 2), _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y - (_height / 2), true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
ygoal = _y - _root.objectSetback;
}
}
} else if (this.poop._alpha > 0) {
this.poop._alpha = this.poop._alpha - 10;
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
_y = (_y - jumpp);
jumpp = jumpp - 0.7;
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
jump = false;
}
}
if (jump == false) {
jumpp = 0;
}
if (((!_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) && (!_root.terrain.land.hitTest(_x + (_width / 2), (_y + (_height / 2)) + 2, true))) && (!_root.terrain.land.hitTest(_x - (_width / 2), (_y + (_height / 2)) + 2, true))) {
jump = true;
} else {
jump = false;
}
while (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y - 0.5);
}
}
Instance of Symbol 669 MovieClip "bat20a" in Frame 23
onClipEvent (load) {
stat = "normal";
xgoal = _x;
ygoal = _y;
trueWidth = _width;
trueHeight = _height;
}
onClipEvent (enterFrame) {
if (_x != xgoal) {
_x = (_x - ((_x - xgoal) / 10));
}
if (_y != ygoal) {
_y = (_y - ((_y - ygoal) / 10));
}
if (_root.terrain.land.hitTest((_x + (_width / 2)) - 5, _y, true)) {
xgoal = _x - _root.objectSetback;
}
if (_root.terrain.land.hitTest((_x - (_width / 2)) + 5, _y, true)) {
xgoal = _x + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y - (_height / 2)) + 5, true)) {
ygoal = _y + _root.objectSetback;
}
if (_root.terrain.land.hitTest(_x, (_y + (_height / 2)) - 5, true)) {
ygoal = _y - _root.objectSetback;
}
if (hitTest(_root.poop)) {
if ((_root.poop.stat == "possess") || (_root.poop.stat == "grow/shrink")) {
truexscale = _xscale;
trueyscale = _yscale;
_root.possessanim.gotoAndPlay(2);
stat = _root.poop.stat;
_root.activeobject = this._name;
} else {
_root.activeobject = _root.monkey._name;
_root.possessanim.gotoAndPlay(31);
}
_root.poop._alpha = 0;
}
if (stat == "normal") {
_xscale = truexscale;
_yscale = trueyscale;
}
if (_root.activeobject == this._name) {
if (_currentframe != 2) {
this.gotoAndStop(2);
}
if (Key.isDown(81)) {
_root.possessanim.gotoAndPlay(16);
_root.activeobject = "monkey";
}
if (stat == "grow/shrink") {
if ((((Key.isDown(87) && (_height <= trueHeight)) && (!_root.terrain.land.hitTest(_x - 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x + 24, _y - 10, true))) && (!_root.terrain.land.hitTest(_x, _y - 13, true))) {
_height = (_height * 1.005);
_width = (_width * 1.005);
}
if (Key.isDown(83) && (_height >= 27)) {
_height = (_height / 1.005);
_width = (_width / 1.005);
}
}
if (stat == "possess") {
jumpp = 0;
if (Key.isDown(87)) {
ygoal = ygoal - 4;
}
if (Key.isDown(83)) {
ygoal = ygoal + 4;
}
if (Key.isDown(65)) {
xgoal = xgoal - 4;
if (truexscale < 0) {
_xscale = truexscale;
} else {
_xscale = (-truexscale);
}
}
if (Key.isDown(68)) {
xgoal = xgoal + 4;
if (truexscale < 0) {
_xscale = (-truexscale);
} else {
_xscale = truexscale;
}
}
}
} else if (_currentframe != 1) {
this.gotoAndStop(1);
}
if ((jump == true) && ((stat != "levitate") or (_root.activeobject != this._name))) {
if (_root.terrain.land.hitTest(_x, _y + (_height / 2), true)) {
xgoal = _x;
ygoal = _y;
}
}
}
Instance of Symbol 800 MovieClip "hitzone5" in Frame 23
onClipEvent (enterFrame) {
if (this.hitzone.hitTest(_root.monkey)) {
_root.leveltransition.play();
_root.targetFrame = _root._currentframe + 1;
}
}
Frame 24
stop();
Symbol 5 MovieClip [fps] Frame 1
fps = 30;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local1.getMilliseconds();
};
Symbol 13 MovieClip Frame 1
stop();
Symbol 19 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 30
_root.gotoAndStop(_root.targetFrame);
_root.monkey._x = _root.monkey.trueX;
_root.monkey._y = _root.monkey.trueY;
objectSetback = 10;
TRUEVCAMWIDTH = vcam._width;
TRUEVCAMHEIGHT = vcam._height;
VCAMWIDTH = TRUEVCAMWIDTH;
VCAMHEIGHT = TRUEVCAMHEIGHT;
if (_root.targetFrame == 4) {
_x = -168.2;
_y = -793;
}
Symbol 977 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 28 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 30 MovieClip Frame 60
stop();
Symbol 44 MovieClip Frame 14
stop();
Symbol 45 MovieClip Frame 240
_parent.nextFrame();
Symbol 46 MovieClip Frame 41
stop();
Symbol 46 MovieClip Frame 42
_root.leveltransition.play();
_root.targetFrame = 3;
stop();
Symbol 106 MovieClip Frame 19
gotoAndPlay (9);
Symbol 107 Button
on (release) {
_root.leveltransition.gotoAndPlay(2);
_root.targetFrame = 4;
}
Instance of Symbol 51 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
trueX = _x;
trueY = _y;
}
onClipEvent (enterFrame) {
_x = ((_root.vcam._x - (_root.vcam._width / 2)) + trueX);
_y = ((_root.vcam._y - (_root.vcam._height / 2)) + trueY);
}
Symbol 395 MovieClip Frame 675
_root.leveltransition.play();
_root.targetFrame = 4;
stop();
Symbol 404 Button
on (release) {
if (_root.targetFrame != 5) {
stopAllSounds();
_root.targetFrame = 5;
_root.leveltransition.gotoAndPlay(2);
}
}
Symbol 409 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 412 Button
on (release) {
_root.levelselect.trueY = 197.5;
trueY = -300;
}
Symbol 417 Button
on (release) {
getURL ("http://www.mofongostudios.com", "_blank");
}
Symbol 419 Button
on (release) {
getURL ("http://www.ponzstudio.com", "_blank");
}
Symbol 422 Button
on (release) {
getURL ("http://creativecommons.org/licenses/by-nd/3.0/us/", "_blank");
}
Symbol 429 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 5;
}
Symbol 430 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 10;
}
Symbol 431 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 15;
}
Symbol 432 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 20;
}
Symbol 433 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 6;
}
Symbol 434 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 7;
}
Symbol 435 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 8;
}
Symbol 436 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 9;
}
Symbol 437 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 11;
}
Symbol 438 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 12;
}
Symbol 439 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 13;
}
Symbol 440 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 14;
}
Symbol 441 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 16;
}
Symbol 442 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 17;
}
Symbol 443 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 18;
}
Symbol 444 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 19;
}
Symbol 445 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 21;
}
Symbol 446 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 22;
}
Symbol 447 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 23;
}
Symbol 451 Button
on (release) {
trueY = truetrueY;
_root.normalmenu.trueY = _root.normalmenu.truetrueY;
}
Symbol 452 MovieClip Frame 1
level1y = -155.9;
level2y = -75.8;
level3y = 10.6;
level4y = 100.5;
i = 2;
while (i <= 19) {
if (_root.savedlevels >= i) {
if (i <= 5) {
this["button" + i]._y = level1y;
} else if ((i > 5) && (i <= 10)) {
this["button" + i]._y = level2y;
} else if ((i > 10) && (i <= 15)) {
this["button" + i]._y = level3y;
} else if ((i > 15) && (i <= 19)) {
this["button" + i]._y = level4y;
}
} else {
this["button" + i]._y = 10000;
}
i++;
}
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 60
stop();
Symbol 457 MovieClip Frame 30
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 2
stop();
_root.terrain.wall1.play();
Symbol 461 MovieClip Frame 1
stop();
Instance of Symbol 454 MovieClip "wall1" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button1._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button1" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.monkey._x, _root.monkey._y + 20, true)) {
this.nextFrame();
}
}
}
Symbol 476 MovieClip Frame 1
stop();
Instance of Symbol 474 MovieClip "messageholder" in Symbol 476 MovieClip Frame 22
onClipEvent (load) {
this.textmessage.text = _parent.messageText;
}
Symbol 477 MovieClip Frame 1
stop();
Instance of Symbol 461 MovieClip "land" in Symbol 477 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe != _parent._currentframe) {
this.gotoAndStop(_parent._currentframe);
}
}
Instance of Symbol 463 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "A and D to move, W to jump. \nP to pause.\nX to hide/show the HUD.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "Press buttons to activate moving walls and platforms.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "Walk off an edge without jumping to float.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "Jump while floating to get an extra boost.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "Collect bananas to go to the next level.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
messageText = "This sound means you can get to the banana.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
if (_currentframe == 29) {
_root.adjustsound.play();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
gotoAndStop (1);
Symbol 480 MovieClip Frame 3
gotoAndStop (1);
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 40
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 30
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 2
gotoAndStop (1);
Symbol 500 MovieClip Frame 3
gotoAndStop (1);
Instance of Symbol 505 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.poop._currentframe);
}
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
_root.VCAMWIDTH = _root.TEMPVCAMWIDTH;
_root.VCAMHEIGHT = _root.TEMPVCAMHEIGHT;
_root.vcam.targetX = _root.TEMPVCAMX;
_root.vcam.targetY = _root.TEMPVCAMY;
Symbol 510 MovieClip Frame 90
_root.VCAMWIDTH = _root.TRUEVCAMWIDTH;
_root.VCAMHEIGHT = _root.TRUEVCAMHEIGHT;
Symbol 547 MovieClip Frame 17
gotoAndPlay (9);
Symbol 551 MovieClip Frame 21
stop();
Symbol 575 MovieClip Frame 33
_root.poop._alpha = 100;
if (_parent._xscale == _parent.scale) {
_root.poop._x = _parent._x + 25;
} else {
_root.poop._x = _parent._x - 25;
}
_root.poop._y = _parent._y - 40;
Symbol 575 MovieClip Frame 41
_parent.gotoAndStop(1);
Symbol 576 MovieClip Frame 1
stop();
casting = false;
Symbol 577 MovieClip Frame 1
stat = "levitate";
stop();
Symbol 577 MovieClip Frame 2
stat = "possess";
stop();
Symbol 577 MovieClip Frame 3
stat = "grow/shrink";
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 14
gotoAndStop (1);
Symbol 582 MovieClip Frame 30
gotoAndStop (1);
Symbol 584 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 = false;
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;
Symbol 588 Button
on (release) {
_parent.play();
}
Symbol 591 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else {
_root._quality = "HIGH";
}
}
Symbol 592 Button
on (release) {
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 4;
}
Symbol 595 Button
on (release) {
if (_root.music.stat == "mute") {
stopAllSounds();
_root.music.stat = "unmute";
} else {
_root.music.play();
_root.music.stat = "mute";
}
}
Instance of Symbol 598 MovieClip "muteword" in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.music.stat == "mute") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 20
stop();
Symbol 600 MovieClip Frame 40
gotoAndStop (1);
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 60
stop();
Symbol 607 MovieClip Frame 30
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 30
stop();
Symbol 614 MovieClip Frame 30
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 2
stop();
Symbol 616 MovieClip Frame 1
stop();
Instance of Symbol 604 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button1._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 604 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button1" in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button2" in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.rock)) {
if (_currentframe == 30) {
asdf++;
if (asdf == 2) {
_root.TEMPVCAMX = 2357;
_root.TEMPVCAMY = 91;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
}
}
this.nextFrame();
} else {
asdf = 0;
this.prevFrame();
}
}
Instance of Symbol 615 MovieClip "button3" in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.play();
}
}
} else if (_alpha > 0) {
_alpha = (_alpha - 2.5);
}
if (_alpha <= 0) {
this._y = 535;
}
}
Instance of Symbol 616 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button3._currentframe == 2) {
if (_currentframe == 2) {
_root.adjustsound.play();
}
this.nextFrame();
} else if (_parent.button3._currentframe == 1) {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Click to throw a magic poo. Guide it with the mouse.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Change spells with SPACEBAR.\nRemember, you can show/hide the HUD with X.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "POSSESS animals.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Use WASD to maneuver anything you control.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Press Q to control the monkey again.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "LEVITATE rocks.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Hit orange buttons with squirrels.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
messageText = "Hold down grey buttons with rocks (press Q while levitating a rock to drop it). Hit purple buttons with bats.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Symbol 632 MovieClip Frame 115
gotoAndPlay(random(103));
Symbol 649 MovieClip Frame 115
gotoAndPlay(random(103));
Symbol 663 MovieClip Frame 17
stop();
Symbol 664 MovieClip Frame 10
stop();
Instance of Symbol 634 MovieClip "poop" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_parent._currentframe == 1) {
_alpha = 0;
}
if (_parent._currentframe == 2) {
_alpha = 100;
}
}
onClipEvent (enterFrame) {
if ((_parent._currentframe == 1) && (_alpha > 0)) {
_alpha = (_alpha - 10);
}
if ((_parent._currentframe == 2) && (_alpha < 100)) {
_alpha = (_alpha + 5);
}
}
Symbol 669 MovieClip Frame 1
stop();
Instance of Symbol 668 MovieClip "poop" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
if (_parent._currentframe == 1) {
_alpha = 0;
}
if (_parent._currentframe == 2) {
_alpha = 100;
}
}
onClipEvent (enterFrame) {
if ((_parent._currentframe == 1) && (_alpha > 0)) {
_alpha = (_alpha - 10);
}
if ((_parent._currentframe == 2) && (_alpha < 100)) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 672 MovieClip "poop" in Symbol 673 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 604 MovieClip "crates1" in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button3._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 604 MovieClip "crates2" in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button3._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button3" in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.rock1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button4._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button4" in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.rock1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button5" in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 2715;
_root.TEMPVCAMY = 124;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 675 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button5._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 675 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button4._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 616 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button5._currentframe == 2) {
if (_currentframe == 2) {
_root.adjustsound.play();
}
this.nextFrame();
} else if (_parent.button5._currentframe == 1) {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 677 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 679 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 1
stop();
Instance of Symbol 460 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.play();
}
}
}
Symbol 680 MovieClip Frame 81
stop();
Instance of Symbol 460 MovieClip in Symbol 680 MovieClip Frame 81
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.play();
}
}
}
Symbol 680 MovieClip Frame 172
stop();
Instance of Symbol 460 MovieClip in Symbol 680 MovieClip Frame 172
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.nextFrame();
}
}
}
Instance of Symbol 460 MovieClip in Symbol 680 MovieClip Frame 173
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
_parent.nextFrame();
this.play();
}
}
}
Symbol 681 MovieClip Frame 1
stop();
Instance of Symbol 679 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
if (NEXTFRAME == true) {
this.nextFrame();
}
if (PREVFRAME == true) {
this.prevFrame();
}
if (_root.monkey.hitTest(_parent._parent.hitzone)) {
NEXTFRAME = true;
PREVFRAME = false;
}
if (_root.monkey.hitTest(_parent._parent.hitzone2)) {
NEXTFRAME = false;
PREVFRAME = true;
}
}
Instance of Symbol 680 MovieClip "button2" in Symbol 682 MovieClip Frame 1
onClipEvent (load) {
trueY = _y;
}
onClipEvent (enterFrame) {
if (_currentframe == 173) {
_alpha = (_alpha - 10);
}
if (_alpha <= 0) {
_y = 289;
}
}
Instance of Symbol 681 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 173) {
if (hitTest(_root.monkey) && (this._currentframe < 200)) {
MMEDIATOR = MMEDIATOR + 1;
NEXTFRAME = true;
PREVFRAME = false;
} else {
NEXTFRAME = false;
MMEDIATOR = 0;
}
if (!hitTest(_root.monkey)) {
PREVFRAME = true;
NEXTFRAME = false;
}
}
if (MMEDIATOR == 1) {
MONKEYX = _root.monkey._x;
}
if (NEXTFRAME == true) {
this.nextFrame();
}
if ((PREVFRAME == true) && (_currentframe != 1)) {
this.prevFrame();
_parent.button2._currentframe = 1;
_parent.button2._y = _parent.button2.trueY;
_parent.button2._alpha = 100;
}
}
Instance of Symbol 615 MovieClip "button6" in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
_root.TEMPVCAMX = 2722;
_root.TEMPVCAMY = 26;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 674 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button6._currentframe == 2) {
if (_currentframe == 2) {
_root.adjustsound.play();
}
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 683 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 100
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 100
stop();
Symbol 686 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 100
stop();
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 100
stop();
Instance of Symbol 684 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button7._currentframe == 2) && (_currentframe == 1)) {
this.play();
}
}
Instance of Symbol 685 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button7._currentframe == 2) && (_currentframe == 1)) {
this.play();
}
}
Instance of Symbol 686 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button8._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 687 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button8._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 688 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button9._currentframe == 2) && (_currentframe == 1)) {
this.play();
}
}
Instance of Symbol 689 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button9._currentframe == 2) && (_currentframe == 1)) {
this.play();
}
if (_currentframe == 2) {
_root.adjustsound.play();
}
}
Instance of Symbol 608 MovieClip "button7" in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button8" in Symbol 690 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock5)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 615 MovieClip "button9" in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 691 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 692 MovieClip Frame 1
stop();
Instance of Symbol 608 MovieClip in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
} else {
_parent.play();
}
}
Symbol 692 MovieClip Frame 30
stop();
Symbol 694 MovieClip Frame 1
stop();
Instance of Symbol 679 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button10._currentframe == 2) {
this.prevFrame();
}
}
onClipEvent (load) {
this.gotoAndStop(40);
}
Instance of Symbol 679 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button6d._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
onClipEvent (load) {
this.gotoAndStop(40);
}
Instance of Symbol 679 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button6e._currentframe == 2) {
if (_currentframe == 38) {
_root.adjustsound.play();
}
this.prevFrame();
}
}
onClipEvent (load) {
this.gotoAndStop(40);
}
Instance of Symbol 693 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button6d._currentframe == 30) || (_root.rock6a._x > 1225)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 694 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button10._currentframe == 2) {
this.nextFrame();
}
}
Instance of Symbol 694 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button6d._currentframe == 30) {
this.nextFrame();
}
}
Instance of Symbol 694 MovieClip in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button6e._currentframe == 2) {
this.nextFrame();
}
}
Instance of Symbol 608 MovieClip "button10" in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 362;
_root.TEMPVCAMY = 104;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 615 MovieClip "button6e" in Symbol 695 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
_root.TEMPVCAMX = 890;
_root.TEMPVCAMY = -260;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button6d" in Symbol 695 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock6a)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 697 MovieClip Frame 1
stop();
Instance of Symbol 697 MovieClip in Symbol 698 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button7a._currentframe == 2) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
}
}
Instance of Symbol 615 MovieClip "button7a" in Symbol 698 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 701 MovieClip Frame 1
stop();
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (42);
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (34);
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (26);
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (18);
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (10);
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 704 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 90
gotoAndPlay (1);
Symbol 707 MovieClip Frame 189
stop();
Instance of Symbol 701 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button8a._currentframe == 2) {
this.nextFrame();
}
}
Instance of Symbol 704 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button8b._currentframe == 30) {
this.nextFrame();
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 707 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button8c._currentframe == 2) && (this._currentframe < 91)) {
this.gotoAndPlay(91);
}
if (_currentframe == 93) {
_root.adjustsound.play();
}
}
Instance of Symbol 608 MovieClip "button8a" in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button8b" in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock8)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 615 MovieClip "button8c" in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9e._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9a._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9b._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9c._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9f._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9g._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 710 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.activeobject.indexOf("squirrel") != -1) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button9a" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 280;
_root.TEMPVCAMY = 50;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 674 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button9d._currentframe == 2) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button9e" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
_root.TEMPVCAMX = 356;
_root.TEMPVCAMY = -224;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
Instance of Symbol 460 MovieClip "button9f" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
_root.TEMPVCAMX = 54;
_root.TEMPVCAMY = -678;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
Instance of Symbol 460 MovieClip "button9g" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
_root.TEMPVCAMX = 594;
_root.TEMPVCAMY = -884;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
Instance of Symbol 608 MovieClip "button9b" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 528;
_root.TEMPVCAMY = 32;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 608 MovieClip "button9c" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 774;
_root.TEMPVCAMY = 34;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 608 MovieClip "button9d" in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 674 MovieClip in Symbol 713 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button10b._currentframe == 30) {
if (_currentframe == 2) {
_root.adjustsound.play();
}
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 675 MovieClip in Symbol 713 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button10a._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button10a" in Symbol 713 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 844;
_root.TEMPVCAMY = 216;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button10b" in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock10a) && (Math.abs(_root.rock10a._height - _root.rock10a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
messageText = "You can now use the spell GROW/SHRINK! Shrink animals and rocks or revert them to their normal size using W and S!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
messageText = "Use W and S to shrink and grow your magic poo once it's been thrown!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
messageText = "Small rocks can't press buttons...";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button11a" in Symbol 715 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock11a) && (Math.abs(_root.rock11a._height - _root.rock11a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 715 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button11a._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 616 MovieClip in Symbol 715 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button11b._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button11b" in Symbol 715 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button11c" in Symbol 715 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock11a) && (Math.abs(_root.rock11a._height - _root.rock11a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 715 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button11c._currentframe == 30) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 719 MovieClip Frame 1
stop();
Instance of Symbol 693 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button12a._currentframe == 30) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 717 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button12c._currentframe == 2) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 710 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button12a._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 675 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button12c._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button12a" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock12a) && (Math.abs(_root.rock12a._height - _root.rock12a.trueHeight) < 1)) {
this.nextFrame();
if (_currentframe == 30) {
adsf++;
}
if ((_currentframe == 30) && (adsf == 2)) {
_root.TEMPVCAMX = 1662;
_root.TEMPVCAMY = 60;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
}
} else {
adsf = 0;
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button12b" in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
}
}
}
Instance of Symbol 608 MovieClip "button12c" in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1086;
_root.TEMPVCAMY = 214;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 719 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button12b._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 733 MovieClip Frame 1
stop();
Symbol 733 MovieClip Frame 55
stop();
Symbol 734 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 30
stop();
Symbol 737 MovieClip Frame 1
stop();
Instance of Symbol 734 MovieClip "column2" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13b._currentframe == 2) {
if (((_parent.button13c1._currentframe == 2) && (_parent.button13c2._currentframe == 30)) && (_parent.button13c3._currentframe == 2)) {
if (_currentframe == 13) {
_root.adjustsound.play();
}
this.prevFrame();
} else {
this.nextFrame();
}
}
}
Instance of Symbol 734 MovieClip "column1" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13b._currentframe == 2) {
if (((_parent.button13c1._currentframe == 2) && (_parent.button13c2._currentframe == 30)) && (_parent.button13c3._currentframe == 2)) {
this.prevFrame();
} else {
this.nextFrame();
}
}
}
Instance of Symbol 735 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13c2._currentframe == 30) {
this.nextFrame();
}
}
Instance of Symbol 710 MovieClip "closingground1" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_parent.button13c1._currentframe == 2) && (_parent.button13c2._currentframe == 30)) && (_parent.button13c3._currentframe == 2)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 710 MovieClip "closingground2" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_parent.button13c1._currentframe == 2) && (_parent.button13c2._currentframe == 30)) && (_parent.button13c3._currentframe == 2)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13a._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13c1._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button13a" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock13a) && (Math.abs(_root.rock13a._height - _root.rock13a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 736 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button13b._currentframe == 2) {
this.nextFrame();
}
}
Instance of Symbol 460 MovieClip "button13b" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
}
}
}
Instance of Symbol 615 MovieClip "button13c3" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
_root.TEMPVCAMX = 298;
_root.TEMPVCAMY = -364;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 608 MovieClip "button13c1" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1202;
_root.TEMPVCAMY = 136;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button13c2" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock13b) && (Math.abs(_root.rock13b._height - _root.rock13b.trueHeight) < 1)) {
this.nextFrame();
if (_currentframe == 30) {
asdf++;
}
if ((_currentframe == 30) && (asdf == 2)) {
_root.TEMPVCAMX = 1485;
_root.TEMPVCAMY = 192;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
}
} else {
asdf = 0;
this.prevFrame();
}
}
Instance of Symbol 737 MovieClip "land" in Symbol 738 MovieClip Frame 1
onClipEvent (load) {
stat = 0;
}
onClipEvent (enterFrame) {
if ((stat == -1) && (_currentframe > 1)) {
this.prevFrame();
} else if ((stat == 1) && (_currentframe < 30)) {
this.nextFrame();
}
if (Key.isDown(65) && (!Key.isDown(68))) {
stat = 1;
}
if (Key.isDown(68) && (!Key.isDown(65))) {
stat = -1;
}
}
Instance of Symbol 463 MovieClip in Symbol 738 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Symbol 739 MovieClip Frame 1
stop();
Instance of Symbol 719 MovieClip in Symbol 740 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button14b._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button14c" in Symbol 740 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
_root.TEMPVCAMX = 1654;
_root.TEMPVCAMY = -94;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
Instance of Symbol 611 MovieClip "button14b" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock14a) && (Math.abs(_root.rock14a._height - _root.rock14a.trueHeight) < 1)) {
this.nextFrame();
if (_currentframe == 30) {
asdf++;
if (asdf == 2) {
_root.TEMPVCAMX = 960;
_root.TEMPVCAMY = -22;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
}
}
} else {
asdf = 0;
this.prevFrame();
}
}
Instance of Symbol 710 MovieClip in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(30);
}
onClipEvent (enterFrame) {
if (_parent.button14a._currentframe == 2) {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button14a" in Symbol 740 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1634;
_root.TEMPVCAMY = 76;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 675 MovieClip in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(95);
}
onClipEvent (enterFrame) {
if (_parent.button14c._currentframe == 2) {
this.prevFrame();
if (_currentframe == 90) {
_root.adjustsound.play();
}
}
}
Instance of Symbol 739 MovieClip "man14a" in Symbol 740 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (_parent._parent.manhitzone.hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.nextFrame();
}
}
}
if (_currentframe == 2) {
_x = (_x - 5);
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_y = 10000;
}
}
Instance of Symbol 463 MovieClip in Symbol 743 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 743 MovieClip Frame 1
onClipEvent (load) {
messageText = "Scare people away by surprising them with a spooky animal!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 679 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (NEXTFRAME == true) {
this.nextFrame();
}
if (PREVFRAME == true) {
this.prevFrame();
}
if (_root.monkey.hitTest(_parent._parent.hitzone)) {
NEXTFRAME = true;
PREVFRAME = false;
}
if (_root.monkey.hitTest(_parent._parent.hitzone2)) {
NEXTFRAME = false;
PREVFRAME = true;
}
}
Instance of Symbol 460 MovieClip "button15c" in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_y = 1000;
}
}
Instance of Symbol 608 MovieClip "button15a" in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1028;
_root.TEMPVCAMY = 112;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button15b" in Symbol 744 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock15a) && (Math.abs(_root.rock15a._height - _root.rock15a.trueHeight) < 1)) {
this.nextFrame();
if (_currentframe == 30) {
asdf++;
if (asdf == 2) {
_root.TEMPVCAMX = 1028;
_root.TEMPVCAMY = 112;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
}
}
} else {
asdf = 0;
this.prevFrame();
}
}
Instance of Symbol 739 MovieClip "man15a" in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (_parent._parent.manhitzone.hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
_root.adjustsound.play();
this.nextFrame();
}
}
}
if (_currentframe == 2) {
_x = (_x - 5);
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_y = 10000;
}
}
Instance of Symbol 719 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button15c._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 719 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button15b._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 719 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button15a._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 463 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 747 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.button16b._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Symbol 749 MovieClip Frame 1
stop();
Instance of Symbol 674 MovieClip "column16a" in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button16a._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.monkey._x < 688) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.monkey._x < 688) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button16a" in Symbol 750 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock16a) && (_root.rock16a.growtimer == 0)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 749 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button16c._currentframe == 2) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
}
}
Instance of Symbol 611 MovieClip "button16b" in Symbol 750 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock16b) && (_root.rock16b.growtimer == 0)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button16c" in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 751 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
messageText = "Large, white rocks will grow by themselves unless you are controlling them.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Symbol 752 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 26
stop();
Symbol 753 MovieClip Frame 136
gotoAndPlay (1);
Instance of Symbol 752 MovieClip "log rising" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17b._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17a.pressing._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17g._currentframe == 2) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 710 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17d._currentframe == 2) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 710 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17e._currentframe == 2) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 710 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17f._currentframe == 2) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17d._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17e._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17h._currentframe == 30) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17j._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17f._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 755 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button17b._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 611 MovieClip "button17b" in Symbol 756 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock17a) && (_root.rock17a.growtimer == 0)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button17g" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
this.play();
}
}
}
}
Instance of Symbol 611 MovieClip "button17h" in Symbol 756 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock17b) && (Math.abs(_root.rock17b._height - _root.rock17b.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button17j" in Symbol 756 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock17d) && (_root.rock17d.growtimer == 0)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button17a" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
_root.TEMPVCAMX = 1108;
_root.TEMPVCAMY = 142;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 460 MovieClip "button17d" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 460 MovieClip "button17e" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 460 MovieClip "button17f" in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 757 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 757 MovieClip Frame 1
onClipEvent (load) {
messageText = "Whitish buttons have to be held down.";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Symbol 758 MovieClip Frame 1
stop();
Instance of Symbol 693 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button19a._currentframe == 30) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 693 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button19c._currentframe == 2) {
this.nextFrame();
if (_currentframe == 2) {
_root.adjustsound.play();
}
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.obstacle19a.play();
}
}
if (_parent.obstacle19a._currentframe == 110) {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button19a" in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock19a) && (_root.rock19a.growtimer == 0)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 760 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button19b._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip "button19b" in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 460 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.obstacle19a.play();
}
}
if (_parent.obstacle19a._currentframe == 110) {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.obstacle19a.play();
}
}
if (_parent.obstacle19a._currentframe == 110) {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.obstacle19a.play();
}
}
if (_parent.obstacle19a._currentframe == 110) {
this.prevFrame();
}
}
Instance of Symbol 460 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.play();
_parent.obstacle19a.play();
}
}
if (_parent.obstacle19a._currentframe == 110) {
this.prevFrame();
}
}
Instance of Symbol 608 MovieClip "button19c" in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 2684;
_root.TEMPVCAMY = 642;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 463 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.monkey)) {
_root.targetFrame = _root._currentframe + 1;
_root.leveltransition.play();
}
}
Instance of Symbol 476 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (load) {
messageText = "Nope!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (load) {
messageText = "Well Done!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (load) {
messageText = "Wrong!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip in Symbol 763 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
gotoAndStop (30);
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Symbol 764 MovieClip Frame 1
stop();
Instance of Symbol 611 MovieClip "button20d1" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if (_currentframe == 30) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
_y = 10000;
}
}
Instance of Symbol 611 MovieClip "button20d" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if ((_currentframe == 30) && (_parent._currentframe == 1)) {
_parent.play();
}
}
Symbol 764 MovieClip Frame 40
stop();
Symbol 766 MovieClip Frame 1
stop();
Instance of Symbol 693 MovieClip in Symbol 766 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.button20d2._currentframe > 25) || (_root.terrain.hitzone4.hitTest(_root.rock20a))) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 765 MovieClip in Symbol 766 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button20d3._currentframe > 25) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d2" in Symbol 766 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (_root.terrain.hitzone.hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d3" in Symbol 766 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (_root.terrain.hitzone2.hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d4" in Symbol 766 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if ((_currentframe == 30) && (_parent._currentframe == 1)) {
_parent.play();
}
}
Instance of Symbol 693 MovieClip in Symbol 766 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.button20d2._currentframe > 25) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 765 MovieClip in Symbol 766 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.button20d3._currentframe > 25) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d2" in Symbol 766 MovieClip Frame 2
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (_root.terrain.hitzone.hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d3" in Symbol 766 MovieClip Frame 2
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (_root.terrain.hitzone2.hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 611 MovieClip "button20d4" in Symbol 766 MovieClip Frame 2
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if ((_currentframe == 30) && (_parent._currentframe == 1)) {
_parent.play();
}
}
Symbol 766 MovieClip Frame 50
stop();
Symbol 769 MovieClip Frame 1
stop();
Instance of Symbol 710 MovieClip in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button20f._currentframe == 2) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Instance of Symbol 611 MovieClip "button20f2" in Symbol 769 MovieClip Frame 1
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if ((_currentframe == 30) && (_parent._currentframe == 1)) {
_parent.play();
}
}
Instance of Symbol 460 MovieClip "button20f" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (hitTest(_root.monkey)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!hitTest(_root.monkey)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 611 MovieClip "button20f2" in Symbol 769 MovieClip Frame 2
onClipEvent (load) {
currentHit = "";
}
onClipEvent (enterFrame) {
if (hitTest(_root.rock20a) && (Math.abs(_root.rock20a._height - _root.rock20a.trueHeight) < 1)) {
this.nextFrame();
} else {
this.prevFrame();
}
if ((_currentframe == 30) && (_parent._currentframe == 1)) {
_parent.play();
}
}
Instance of Symbol 460 MovieClip "button20f" in Symbol 769 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.nextFrame();
}
}
if (_currentframe == 2) {
if (!_root.monkey.hitTest((_x + _parent._parent._x) + (_width / 2), (_y + _parent._parent._y) - 30)) {
this.pressing.prevFrame();
if (this.pressing._currentframe == 1) {
this.prevFrame();
}
}
}
}
Instance of Symbol 710 MovieClip in Symbol 769 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.button20f._currentframe == 2) {
this.prevFrame();
} else {
this.nextFrame();
}
}
Symbol 769 MovieClip Frame 60
stop();
Symbol 794 MovieClip Frame 1
stop();
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 767 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_parent.button20a._currentframe == 2) && (_parent.button20b._currentframe == 2)) && (_parent.button20c._currentframe == 2)) {
this.gotoAndStop(_currentframe - 5);
}
}
Instance of Symbol 608 MovieClip "button20a" in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1583;
_root.TEMPVCAMY = -197;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 608 MovieClip "button20b" in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 1801;
_root.TEMPVCAMY = -317;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 608 MovieClip "button20c" in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (hitTest(_root[i]) && (i.indexOf("squirrel") != -1)) {
_root.TEMPVCAMX = 2019;
_root.TEMPVCAMY = -511;
_root.TEMPVCAMHEIGHT = Stage.height;
_root.TEMPVCAMWIDTH = Stage.width;
_root.vcamwidthadjuster.play();
this.play();
}
}
}
}
Instance of Symbol 768 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(30);
}
onClipEvent (enterFrame) {
if (_parent.button20a._currentframe == 2) {
this.prevFrame();
}
}
Instance of Symbol 768 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(30);
}
onClipEvent (enterFrame) {
if (_parent.button20b._currentframe == 2) {
this.prevFrame();
}
}
Instance of Symbol 768 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(30);
}
onClipEvent (enterFrame) {
if (_parent.button20c._currentframe == 2) {
this.prevFrame();
}
}
Instance of Symbol 616 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_parent.button20a._currentframe == 2) && (_parent.button20b._currentframe == 2)) && (_parent.button20c._currentframe == 2)) {
this.nextFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.button2._currentframe == 2) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Instance of Symbol 794 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
for (i in _root) {
if (_parent._parent.manhitzone.hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.nextFrame();
}
}
}
if (_currentframe == 2) {
_x = (_x - 5);
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_y = 10000;
}
}
Instance of Symbol 794 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_currentframe == 2) && (_alpha == 100)) {
_root.adjustsound.play();
}
if (_currentframe == 1) {
for (i in _root) {
if (_parent._parent.manhitzone2.hitTest(_root[i]) && (i.indexOf("bat") != -1)) {
this.nextFrame();
}
}
}
if (_currentframe == 2) {
_x = (_x - 5);
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_y = 10000;
}
}
Instance of Symbol 476 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (load) {
messageText = "\nThanks for playing! We hope you enjoyed the game!";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Instance of Symbol 476 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (load) {
messageText = "\n\nBananas-->";
}
onClipEvent (enterFrame) {
if (hitTest(_root[_root.activeobject])) {
if (_currentframe < 30) {
this.nextFrame();
}
} else if (_currentframe > 1) {
this.prevFrame();
}
}
Symbol 976 MovieClip Frame 1
stopAllSounds();
Symbol 976 MovieClip Frame 292
stopAllSounds();
Symbol 976 MovieClip Frame 2046
stop();
stopAllSounds();
_root.leveltransition.play();
_root.targetFrame = 4;