Frame 1
stop();
Frame 2
stop();
Frame 3
function addToslot(item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}
bloopSound = new Sound();
bloopSound.attachSound("bloop");
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
currentslotnum = 1;
stop();
Instance of Symbol 87 MovieClip "walker" in Frame 3
onClipEvent (load) {
isJumping = false;
jumpSpeed = 0;
gravity = 0.5;
yspeed = 0;
xspeed = 100;
jumping = 0;
}
onClipEvent (enterFrame) {
if (isJumping) {
this.gotoAndStop("faceeast");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
isJumping = false;
}
} else if (Key.isDown(38)) {
isJumping = true;
jumpSpeed = 39;
speed = 6;
}
if (Key.isDown(39)) {
this.walkdir = "east";
this.gotoAndStop("walkeast");
if (!_root.terrain.hitTest(_x + (_width / 2), _y + (_height / 4), true)) {
if (_root.walleast.hitTest(this)) {
_root.terrain._x = _root.terrain._x - 2;
_root.enemy._x = _root.enemy._x - 2;
_root.apple._x = _root.apple._x - 2;
_root.apple2._x = _root.apple2._x - 2;
_root.gain._x = _root.gain._x - 2;
} else {
this._x = this._x + 2;
}
}
if (_root.enemy.hitTest(this)) {
this.gotoAndPlay("hiteast");
}
} else if (Key.isDown(37)) {
this.walkdir = "west";
this.gotoAndStop("walkwest");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
if (_root.wallwest.hitTest(this)) {
_root.terrain._x = _root.terrain._x + 2;
_root.enemy._x = _root.enemy._x + 2;
_root.apple._x = _root.apple._x + 2;
_root.apple2._x = _root.apple2._x + 2;
_root.gain._x = _root.gain._x + 2;
} else {
this._x = this._x - 2;
}
}
if (_root.enemy.hitTest(this)) {
this.gotoAndPlay("hitwest");
}
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
if (_root.enemy.hitTest(this)) {
this.gotoAndPlay("hitwest");
}
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
if (_root.enemy.hitTest(this)) {
this.gotoAndPlay("hiteast");
}
}
if (Key.isDown(38) and (!jumping)) {
isJumping = true;
yspeed = -5;
jumping = 1;
}
yspeed = yspeed + gravity;
while (_root.terrain.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y-1);
yspeed = 0;
jumping = 0;
}
if ((!_root.terrain.hitTest(_x, (_y + (_height / 2)) + 1, true)) or (yspeed < 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
jumping = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_y = (_y + 5);
}
}
Instance of Symbol 89 MovieClip "itemSlot4" in Frame 3
onClipEvent (enterFrame) {
if (_root.red.hitTest(this)) {
_root.gotoAndStop(4);
}
if (_root.yel.hitTest(this)) {
_root.gotoAndStop(4);
}
if (_root.grn.hitTest(this)) {
_root.gotoAndStop(4);
}
if (_root.blu.hitTest(this)) {
_root.gotoAndStop(4);
}
}
Instance of Symbol 37 MovieClip "red" in Frame 3
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 31 MovieClip "grn" in Frame 3
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 34 MovieClip "blu" in Frame 3
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 40 MovieClip "yel" in Frame 3
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Frame 4
stop();
Instance of Symbol 95 MovieClip in Frame 4
onClipEvent (load) {
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
doorclickSound.start(0, 1);
_root.gotoAndStop(5);
}
}
Frame 5
function addToslot(item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}
bloopSound = new Sound();
bloopSound.attachSound("bloop");
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
currentslotnum = 1;
stop();
Instance of Symbol 87 MovieClip "walker" in Frame 5
onClipEvent (load) {
isJumping = false;
jumpSpeed = 0;
gravity = 0.5;
yspeed = 0;
xspeed = 100;
jumping = 0;
}
onClipEvent (enterFrame) {
if (isJumping) {
this.gotoAndStop("faceeast");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
isJumping = false;
}
} else if (Key.isDown(38)) {
isJumping = true;
jumpSpeed = 39;
speed = 6;
}
if (Key.isDown(39)) {
this.walkdir = "east";
this.gotoAndStop("walkeast");
if (!_root.terrain.hitTest(_x + (_width / 2), _y + (_height / 4), true)) {
if (_root.walleast.hitTest(this)) {
_root.terrain._x = _root.terrain._x - 2;
_root.enemy._x = _root.enemy._x - 2;
_root.apple._x = _root.apple._x - 2;
_root.apple2._x = _root.apple2._x - 2;
_root.gain._x = _root.gain._x - 2;
} else {
this._x = this._x + 2;
}
}
} else if (Key.isDown(37)) {
this.walkdir = "west";
this.gotoAndStop("walkwest");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
if (_root.wallwest.hitTest(this)) {
_root.terrain._x = _root.terrain._x + 2;
_root.enemy._x = _root.enemy._x + 2;
_root.apple._x = _root.apple._x + 2;
_root.apple2._x = _root.apple2._x + 2;
_root.gain._x = _root.gain._x + 2;
} else {
this._x = this._x - 2;
}
}
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
}
if (Key.isDown(38) and (!jumping)) {
isJumping = true;
yspeed = -5;
jumping = 1;
}
yspeed = yspeed + gravity;
while (_root.terrain.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y-1);
yspeed = 0;
jumping = 0;
}
if ((!_root.terrain.hitTest(_x, (_y + (_height / 2)) + 1, true)) or (yspeed < 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
jumping = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_y = (_y + 5);
}
}
Instance of Symbol 89 MovieClip "itemSlot4" in Frame 5
onClipEvent (enterFrame) {
if (_root.red2.hitTest(this)) {
_root.gotoAndStop(6);
}
if (_root.yel2.hitTest(this)) {
_root.gotoAndStop(6);
}
if (_root.grn2.hitTest(this)) {
_root.gotoAndStop(6);
}
if (_root.blu2.hitTest(this)) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 37 MovieClip "red2" in Frame 5
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 31 MovieClip "grn2" in Frame 5
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 34 MovieClip "blu2" in Frame 5
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 40 MovieClip "yel2" in Frame 5
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Frame 6
stop();
Instance of Symbol 95 MovieClip in Frame 6
onClipEvent (load) {
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
doorclickSound.start(0, 1);
_root.gotoAndStop(7);
}
}
Frame 7
function addToslot(item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}
bloopSound = new Sound();
bloopSound.attachSound("bloop");
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
currentslotnum = 1;
stop();
Instance of Symbol 117 MovieClip "walker" in Frame 7
onClipEvent (load) {
isJumping = false;
jumpSpeed = 0;
gravity = 0.5;
yspeed = 0;
xspeed = 100;
jumping = 0;
}
onClipEvent (enterFrame) {
if (isJumping) {
this.gotoAndStop("faceeast");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
isJumping = false;
}
} else if (Key.isDown(38)) {
isJumping = true;
jumpSpeed = 39;
speed = 6;
}
if (Key.isDown(39)) {
this.walkdir = "east";
this.gotoAndStop("walkeast");
if (!_root.terrain.hitTest(_x + (_width / 2), _y + (_height / 4), true)) {
if (_root.walleast.hitTest(this)) {
_root.terrain._x = _root.terrain._x - 2;
_root.enemy._x = _root.enemy._x - 2;
_root.apple._x = _root.apple._x - 2;
_root.apple2._x = _root.apple2._x - 2;
_root.gain._x = _root.gain._x - 2;
} else {
this._x = this._x + 2;
}
}
} else if (Key.isDown(37)) {
this.walkdir = "west";
this.gotoAndStop("walkwest");
if (!_root.terrain.hitTest(_x - (_width / 2), _y + (_height / 4), true)) {
if (_root.wallwest.hitTest(this)) {
_root.terrain._x = _root.terrain._x + 2;
_root.enemy._x = _root.enemy._x + 2;
_root.apple._x = _root.apple._x + 2;
_root.apple2._x = _root.apple2._x + 2;
_root.gain._x = _root.gain._x + 2;
} else {
this._x = this._x - 2;
}
}
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
}
if (Key.isDown(38) and (!jumping)) {
isJumping = true;
yspeed = -5;
jumping = 1;
}
yspeed = yspeed + gravity;
while (_root.terrain.hitTest(_x, _y + (_height / 2), true)) {
_y = (_y-1);
yspeed = 0;
jumping = 0;
}
if ((!_root.terrain.hitTest(_x, (_y + (_height / 2)) + 1, true)) or (yspeed < 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
jumping = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_y = (_y + 5);
}
}
Instance of Symbol 89 MovieClip "itemSlot4" in Frame 7
onClipEvent (enterFrame) {
if (_root.red3.hitTest(this)) {
_root.gotoAndStop(8);
}
if (_root.yel3.hitTest(this)) {
_root.gotoAndStop(8);
}
if (_root.grn3.hitTest(this)) {
_root.gotoAndStop(8);
}
if (_root.blu3.hitTest(this)) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 37 MovieClip "red3" in Frame 7
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 31 MovieClip "grn3" in Frame 7
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 34 MovieClip "blu3" in Frame 7
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Instance of Symbol 40 MovieClip "yel3" in Frame 7
onClipEvent (load) {
bloopSound = new Sound();
bloopSound.attachSound("bloop");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
bloopSound.start(0, 1);
_root.addToslot(this);
}
}
Frame 8
stop();
Instance of Symbol 127 MovieClip in Frame 8
onClipEvent (load) {
doorclickSound = new Sound();
doorclickSound.attachSound("doorclick");
}
onClipEvent (enterFrame) {
if (_root.walker.hitTest(this)) {
doorclickSound.start(0, 1);
_root.gotoAndStop("win");
}
}
Frame 9
stop();
Symbol 10 MovieClip Frame 1
_root.stop();
this.stop();
var loaded;
onEnterFrame = function () {
loaded = _root.getBytesLoaded() / _root.getBytesTotal();
setProperty(mask, _xscale , loaded * 100);
this.box.text = Math.floor(loaded * 100) + "%";
if (loaded == 1) {
_root.gotoAndPlay("start");
}
};
Symbol 28 Button
on (release) {
gotoAndStop ("3");
}
Symbol 48 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}
Symbol 50 Button
on (release) {
gotoAndStop (1);
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 56 Button
on (release) {
gotoAndStop ("start");
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 4
stop();
Symbol 87 MovieClip Frame 5
stop();
Symbol 87 MovieClip Frame 6
stop();
Symbol 98 MovieClip Frame 33
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 117 MovieClip Frame 4
stop();
Symbol 117 MovieClip Frame 5
stop();
Symbol 117 MovieClip Frame 6
stop();