Frame 1
stop();
Instance of Symbol 7 MovieClip "hero" in Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 9 MovieClip in Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Frame 2
timer = 10000;
stop();
goTime = function () {
timer--;
if (timer < 1) {
timer = 0;
}
};
Instance of Symbol 7 MovieClip "hero" in Frame 2
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(32) && (!falling)) && (!jump)) {
jump = true;
vel = -10;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
clearInterval(timerID);
stopAllSounds();
stop();
Instance of Symbol 7 MovieClip "hero" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 15 Button
on (press) {
stopAllSounds();
nextFrame();
}
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Instance of Symbol 20 MovieClip in Symbol 31 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 9 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 9 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 20 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 20 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 20 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 9 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 9 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 20 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Symbol 50 Button
on (press) {
gotoAndStop (1);
}