Frame 1
_root.NewgroundsAPI_id = 5077;
Stage.showMenu = false;
Instance of Symbol 71 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 4
stop();
Frame 5
Stage.showMenu = false;
stop();
Instance of Symbol 71 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 6
Stage.showMenu = false;
stop();
Instance of Symbol 71 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 7
Stage.showMenu = false;
stop();
Instance of Symbol 71 MovieClip in Frame 7
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 8
Stage.showMenu = false;
var passwerd = "";
stop();
Instance of Symbol 71 MovieClip in Frame 8
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 9
Stage.showMenu = false;
stop();
Instance of Symbol 71 MovieClip in Frame 9
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 10
Stage.showMenu = false;
stop();
Instance of Symbol 238 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 19
stop();
score.text = 18;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 241 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 244 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 244 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 244 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 252 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("2 - Intro");
}
}
}
Instance of Symbol 260 MovieClip in Frame 19
onClipEvent (load) {
var enemyspeed = 2;
var enemystepsright = 0;
var enemystepsleft = 0;
var enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 260 MovieClip in Frame 19
onClipEvent (load) {
var enemyspeed = 2;
var enemystepsright = 0;
var enemystepsleft = 0;
var enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 112) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 112) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 319 MovieClip "char" in Frame 19
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 29
stop();
Frame 39
stop();
score.text = 15;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 339 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 339 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 339 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 339 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 339 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 345 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 349 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("3 - Intro");
}
}
}
Instance of Symbol 355 MovieClip in Frame 39
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 355 MovieClip in Frame 39
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 120) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 120) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 355 MovieClip in Frame 39
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 120) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 120) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 355 MovieClip in Frame 39
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 319 MovieClip "char" in Frame 39
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 49
stop();
Frame 59
stop();
score.text = 18;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 368 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 368 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 368 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 368 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 416 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 418 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("4 - Intro");
}
}
}
Instance of Symbol 425 MovieClip in Frame 59
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 425 MovieClip in Frame 59
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 120) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 120) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 425 MovieClip in Frame 59
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 425 MovieClip in Frame 59
onClipEvent (load) {
enemyspeed = 3;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 150) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 150) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 319 MovieClip "char" in Frame 59
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 69
stop();
Frame 79
stop();
score.text = 18;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 444 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 450 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("5 - Intro");
}
}
}
Instance of Symbol 454 MovieClip in Frame 79
onClipEvent (load) {
var enemyspeed = 4;
var enemystepsright = 0;
var enemystepsleft = 0;
var enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 230) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 230) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 472 MovieClip "char" in Frame 79
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 89
stop();
Frame 99
stop();
score.text = 13;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 493 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 490 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 241 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 511 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("6 - Intro");
}
}
}
Instance of Symbol 515 MovieClip in Frame 99
onClipEvent (load) {
enemyspeed = 6;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 250) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 250) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 550 MovieClip "char" in Frame 99
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 109
stop();
Frame 119
stop();
score.text = 10;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 564 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 564 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 567 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 569 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 572 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("7 - Intro");
}
}
}
Instance of Symbol 580 MovieClip in Frame 119
onClipEvent (load) {
enemyspeed = 1;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 195) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 195) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 580 MovieClip in Frame 119
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 170) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 170) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 580 MovieClip in Frame 119
onClipEvent (load) {
enemyspeed = 1;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 330) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 330) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 580 MovieClip in Frame 119
onClipEvent (load) {
enemyspeed = 1;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 580 MovieClip in Frame 119
onClipEvent (load) {
enemyspeed = 1;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 188) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 188) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 593 MovieClip "char" in Frame 119
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("fall");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 129
stop();
Frame 139
stop();
score.text = 10;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 609 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 609 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 609 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 611 MovieClip "death" in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 619 MovieClip in Frame 139
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("8 - Intro");
}
}
}
Instance of Symbol 621 MovieClip in Frame 139
onClipEvent (load) {
enemyspeed = 3;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 112) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 112) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 621 MovieClip in Frame 139
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 684 MovieClip "char" in Frame 139
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 9;
jumping = false;
falling = false;
}
}
}
Frame 149
stop();
Frame 159
stop();
score.text = 11;
health.text = 5;
total.text = "Remaining:";
var dead = false;
var tempdead = false;
Instance of Symbol 699 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 699 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 699 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 702 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 706 MovieClip in Frame 159
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.score.text >= 2) {
_root.score.text--;
unloadMovie (this);
} else if (_root.score.text <= 1) {
_root.score.text--;
unloadMovie (this);
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
stopAllSounds();
_root.gotoAndStop("Win");
}
}
}
Instance of Symbol 715 MovieClip in Frame 159
onClipEvent (load) {
enemyspeed = 3;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "left";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 280) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 280) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 715 MovieClip in Frame 159
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 300) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 300) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 715 MovieClip in Frame 159
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 100) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 100) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 715 MovieClip in Frame 159
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 75) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 75) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 715 MovieClip in Frame 159
onClipEvent (load) {
enemyspeed = 2;
enemystepsright = 0;
enemystepsleft = 0;
enemydir = "right";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
if (_root.health.text <= 0) {
_root.dead = true;
}
if (!_root.dead) {
_root.char.speed = 0;
_root.tempdead = true;
}
}
if (!dead) {
if (enemydir == "right") {
enemystepsright = enemystepsright + 1;
this._xscale = -100;
this._x = this._x + enemyspeed;
} else if (enemydir == "left") {
enemystepsleft = enemystepsleft + 1;
this._xscale = 100;
this._x = this._x - enemyspeed;
}
if (enemystepsright == 80) {
enemystepsright = 0;
enemydir = "left";
} else if (enemystepsleft == 80) {
enemystepsleft = 0;
enemydir = "right";
}
}
}
Instance of Symbol 319 MovieClip "char" in Frame 159
onClipEvent (load) {
var jumping = false;
var speed = 0;
var healthX = _root.health._x;
var scoreX = _root.score._x;
var livesX = _root.lives._x;
var totalX = _root.total._x;
var musicX = _root.music._x;
var Xpos = this._x;
var Ypos = this._y;
var maxmove = 30;
}
onClipEvent (enterFrame) {
_x = (Xpos - _root._x);
_root.score._x = scoreX - _root._x;
_root.health._x = healthX - _root._x;
_root.lives._x = livesX - _root._x;
_root.total._x = totalX - _root._x;
_root.music._x = musicX - _root._x;
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!jumping)) {
this._y = this._y + 6;
}
if (_root.tempdead) {
this._xscale = 100;
this.gotoAndStop("dead2");
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed = speed * 0.85;
if ((dir == "right") && (!_root.leftblock.hitTest(this._x + 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (speed > 0) {
dir = "right";
} else if (speed < 0) {
dir = "left";
}
if ((dir == "left") && (!_root.rightblock.hitTest(this._x - 20, this._y, true))) {
_root.health._x = _root.health._x + speed;
_root.score._x = _root.score._x + speed;
_root.lives._x = _root.lives._x + speed;
_root.total._x = _root.total._x + speed;
_root.music._x = _root.music._x + speed;
this._x = this._x + speed;
_root._x = _root._x - speed;
}
if (!_root.tempdead) {
if (Key.isDown(37)) {
if (speed > (-maxmove)) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(39)) {
if (speed < maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
} else if ((speed < 1) && (speed > -1)) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(40) && (!jumping)) {
speed = 0;
this.gotoAndPlay("duck");
}
if (Key.isDown(38) && (!jumping)) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y = this._y - jump;
jump = jump - 0.5;
if (jump < 0) {
falling = true;
this.gotoAndStop("idle");
}
if (jump < -15) {
jump = -15;
}
}
}
if (_root.ground.hitTest(this._x, this._y, true) && (falling)) {
jump = 10;
jumping = false;
falling = false;
}
}
}
Frame 169
stop();
stopAllSounds();
Frame 180
stop();
Symbol 35 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 38 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 40 MovieClip Frame 1
function load_ad() {
url = new XML();
url.onLoad = function (s) {
if (s) {
_root.NewgroundsAPI_Ad_Unit.start_ad(this.toString());
}
};
url.load(_root.NewgroundsAPI_params.ad_url);
}
function start_ad(url) {
trace("[Newgrounds Flash Ads] Your ad was loaded. Your version of flash may have trouble displaying the ad, however, the ad will load fine if you test in a browser!");
ng_ad.loadMovie(url);
}
_root.NewgroundsAPI_Ad_Unit = this;
if (_root.NewgroundsAPI_params.ad_url != undefined) {
_root.NewgroundsAPI_Ad_Unit.load_ad();
}
_root.NewgroundsAPI_onAdsApproved = function () {
_root.NewgroundsAPI_Ad_Unit.load_ad();
};
Symbol 47 Button
on (release) {
_root.play();
}
Symbol 48 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local1 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local1;
if (_local1 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = false;
var loadingComplete = false;
timerHandler();
Instance of Symbol 44 MovieClip in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.timerHandler();
}
Symbol 48 MovieClip Frame 2
stop();
Symbol 59 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 64 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 67 Button
on (release) {
this._visible = false;
}
Symbol 69 MovieClip Frame 1
_visible = false;
_root.NewgroundsAPI = this;
STAT_MOVIE_VIEWS = 1;
STAT_AUTHOR_SITE = 2;
STAT_NEWGROUNDS = 3;
STAT_NEW_VERSION = 4;
STAT_CUSTOM_STATS = 50;
Symbol 69 MovieClip Frame 2
_root.NewgroundsAPI.POPUP_ERROR._visible = false;
_root.NewgroundsAPI.POPUP_VERSION._visible = false;
customStats = new Object();
i = 1;
while (i < _root.NewgroundsAPI_customLinks.length) {
customStats[_root.NewgroundsAPI_customLinks[i]] = i + STAT_CUSTOM_STATS;
i++;
}
i = 1;
while (i < _root.NewgroundsAPI_customEvents.length) {
customStats[_root.NewgroundsAPI_customEvents[i]] = i + STAT_CUSTOM_STATS;
i++;
}
_x = 0;
_y = 0;
configureMovie = function () {
var _local1 = _root;
if (_local1.NewgroundsAPI_params.error != undefined) {
sendError(_local1.NewgroundsAPI_params.error);
}
if (_local1.NewgroundsAPI_params.settings_loaded == 1) {
sendMessage("You have successfully connected to the Newgrounds API gateway!");
sendMessage(("Movie Identified as '" + _local1.NewgroundsAPI_params.movie_name) + "'");
}
if (_local1.NewgroundsAPI_params.deny_host == 1) {
sendMessage(host + " is not approved to use this movie");
_local1.NewgroundsAPI_onDenyHost(host, _local1.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_local1.NewgroundsAPI_params.movie_version == 1) {
sendMessage(("Version " + _local1.NewgroundsAPI_params.movie_version) + " is now available!");
_local1.NewgroundsAPI_onNewVersionAvailable(_local1.NewgroundsAPI_params.movie_version, _local1.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_local1.NewgroundsAPI_params.ad_url != undefined) {
sendMessage("This movie has been approved to use Flash Ads");
_local1.NewgroundsAPI_onAdsApproved(_local1.NewgroundsAPI_params.ad_url);
}
};
sendError = function (error) {
trace("[NEWGROUNDS API ERROR] " + error);
};
sendMessage = function (message) {
trace("[NEWGROUNDS API] " + message);
};
sendStats = function (stat, new_window) {
var _local1 = this;
var _local2 = _root;
if (script_url != undefined) {
query = "&stat=" + stat;
if (new_window == true) {
getURL (script_url + query, "_blank");
} else {
initInfo = new XML();
initInfo.onLoad = function () {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < _local1.childNodes.length) {
if (_local1.childNodes[i].nodeName != null) {
j = 0;
while (j < _local1.childNodes[i].childNodes.length) {
if (_local1.childNodes[i].childNodes[j].nodeName != null) {
param_name = _local1.childNodes[i].childNodes[j].nodeName;
param_value = unescape(_local1.childNodes[i].childNodes[j].attributes.value);
_local2.NewgroundsAPI_params[param_name] = param_value;
}
j++;
}
}
i++;
}
_local2.NewgroundsAPI.configureMovie();
};
initInfo.load(script_url + query);
}
}
};
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
if (!_root.NewgroundsAPI_id) {
sendError("Missing required '_root.NewgroundsAPI_id' variable");
} else if (!tracker_id) {
tracker_id = _root.NewgroundsAPI_id;
script_url = (("http://www.ngads.com/gateway.php?id=" + tracker_id) + "&host=") + escape(host);
_root.NewgroundsAPI_params = new Object();
sendMessage("Connecting to API gateway...");
sendStats(STAT_MOVIE_VIEWS, false);
}
_root.NewgroundsAPI_loadMyMovie = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEW_VERSION, true);
};
_root.NewgroundsAPI_loadNewgrounds = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEWGROUNDS, true);
};
_root.NewgroundsAPI_loadMySite = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_AUTHOR_SITE, true);
};
_root.NewgroundsAPI_loadCustomLink = function (link) {
var _local1 = _root;
var _local2 = link;
if (_local1.NewgroundsAPI.customStats[_local2]) {
_local1.NewgroundsAPI.sendStats(_local1.NewgroundsAPI.customStats[_local2], true);
} else {
_local1.NewgroundsAPI.sendError(("The custom link '" + _local2) + "' has not beed defined.");
}
};
_root.NewgroundsAPI_logCustomEvent = function (event) {
var _local1 = _root;
var _local2 = event;
if (_local1.NewgroundsAPI.customStats[_local2]) {
_local1.NewgroundsAPI.sendStats(_local1.NewgroundsAPI.customStats[_local2], false);
} else {
_local1.NewgroundsAPI.sendError(("The custom event '" + _local2) + "' has not beed defined.");
}
};
if (typeof(_root.NewgroundsAPI_onDenyHost) != "function") {
_root.NewgroundsAPI_onDenyHost = function (ad_url) {
var _local1 = _root;
_local1.NewgroundsAPI.swapDepths(99999);
_local1.NewgroundsAPI._visible = true;
_local1.NewgroundsAPI.POPUP_ERROR._visible = true;
};
}
if (typeof(_root.NewgroundsAPI_onNewVersionAvailable) != "function") {
_root.NewgroundsAPI_onNewVersionAvailable = function (ad_url) {
var _local1 = _root;
_local1.NewgroundsAPI.swapDepths(99999);
_local1.NewgroundsAPI._visible = true;
_local1.NewgroundsAPI.POPUP_VERSION._visible = true;
};
}
stop();
Symbol 100 Button
on (release) {
stopAllSounds();
gotoAndPlay (10);
}
Symbol 104 Button
on (release) {
gotoAndPlay (8);
}
Symbol 106 Button
on (release) {
gotoAndStop (7);
}
Symbol 109 Button
on (release) {
gotoAndPlay (5);
}
Symbol 115 Button
on (release) {
gotoAndStop (6);
}
Symbol 116 Button
on (release) {
gotoAndStop (4);
}
Symbol 118 Button
on (release) {
gotoAndStop (5);
}
Symbol 123 Button
on (release) {
stopAllSounds();
gotoAndStop (10);
}
Symbol 179 Button
on (release) {
gotoAndStop (4);
}
Symbol 185 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 188 Button
on (release) {
gotoAndStop ("unmute1");
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 189 MovieClip Frame 16
stop();
Symbol 192 Button
on (release) {
gotoAndStop (4);
}
Symbol 198 Button
on (release) {
if (_root.passwerd == "stinger") {
gotoAndStop ("2 - Intro");
stopAllSounds();
}
if (_root.passwerd == "toohot") {
gotoAndStop ("3 - Intro");
stopAllSounds();
}
if (_root.passwerd == "scurvy") {
gotoAndStop ("4 - Intro");
stopAllSounds();
}
if (_root.passwerd == "swiftness") {
gotoAndStop ("5 - Intro");
stopAllSounds();
}
if (_root.passwerd == "chilly") {
gotoAndStop ("6 - Intro");
stopAllSounds();
}
if (_root.passwerd == "doodle") {
gotoAndStop ("7 - Intro");
stopAllSounds();
}
if (_root.passwerd == "sewage") {
gotoAndStop ("8 - Intro");
stopAllSounds();
}
if (_root.passwerd == "wintest010") {
gotoAndStop ("Win");
stopAllSounds();
}
if (_root.passwerd == "losetest010") {
gotoAndStop ("Lose");
stopAllSounds();
}
if (_root.passwerd == "cheatselect") {
gotoAndStop (9);
} else {
_root.passwerd = "";
}
}
Symbol 201 Button
on (release) {
gotoAndPlay ("1 - Intro");
stopAllSounds();
}
Symbol 204 Button
on (release) {
gotoAndPlay ("2 - Intro");
stopAllSounds();
}
Symbol 207 Button
on (release) {
gotoAndPlay ("3 - Intro");
stopAllSounds();
}
Symbol 210 Button
on (release) {
gotoAndPlay ("4 - Intro");
stopAllSounds();
}
Symbol 213 Button
on (release) {
gotoAndPlay ("5 - Intro");
stopAllSounds();
}
Symbol 216 Button
on (release) {
gotoAndPlay ("6 - Intro");
stopAllSounds();
}
Symbol 221 Button
on (release) {
gotoAndStop ("7 - Intro");
stopAllSounds();
}
Symbol 225 Button
on (release) {
gotoAndPlay ("8 - Intro");
stopAllSounds();
}
Symbol 232 Button
on (release) {
_root.gotoAndPlay("1 - Level");
}
Symbol 237 Button
on (release) {
stopAllSounds();
gotoAndStop (3);
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 85
stop();
Symbol 310 MovieClip Frame 41
stop();
stopAllSounds();
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + Stage.height;
_root.char.speed = 0;
_root.gotoAndStop("Lose");
Symbol 318 MovieClip Frame 33
_root.tempdead = false;
_root._x = 0;
_root.health.text = _root.health.text - 1;
_root.char.speed = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
_root.char.gotoAndStop("idle");
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 3
stop();
Symbol 319 MovieClip Frame 4
stop();
Symbol 319 MovieClip Frame 5
stop();
Symbol 319 MovieClip Frame 6
stop();
Symbol 322 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 325 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 332 Button
on (release) {
gotoAndStop ("2 - Level");
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 356 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 358 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 363 Button
on (release) {
gotoAndStop ("3 - Level");
}
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
stop();
Symbol 426 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 428 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 434 Button
on (release) {
gotoAndStop ("4 - Level");
}
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 35
stop();
stopAllSounds();
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + Stage.height;
_root.char.speed = 0;
_root.gotoAndStop("Lose");
Symbol 471 MovieClip Frame 10
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 3
stop();
Symbol 472 MovieClip Frame 4
stop();
Symbol 472 MovieClip Frame 5
stop();
Symbol 472 MovieClip Frame 6
stop();
Symbol 474 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 476 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 481 Button
on (release) {
gotoAndStop ("5 - Level");
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 545 MovieClip Frame 35
stop();
stopAllSounds();
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + Stage.height;
_root.char.speed = 0;
_root.gotoAndStop("Lose");
Symbol 549 MovieClip Frame 33
_root.tempdead = false;
_root._x = 0;
_root.health.text = _root.health.text - 1;
_root.char.speed = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
_root.char.gotoAndStop("idle");
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Symbol 550 MovieClip Frame 5
stop();
Symbol 550 MovieClip Frame 6
stop();
Symbol 551 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 553 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 558 Button
on (release) {
gotoAndStop ("6 - Level");
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 3
stop();
Symbol 593 MovieClip Frame 4
stop();
Symbol 593 MovieClip Frame 5
stop();
Symbol 593 MovieClip Frame 6
stop();
Symbol 593 MovieClip Frame 7
stop();
Symbol 595 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 597 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 602 Button
on (release) {
gotoAndStop ("7 - Level");
}
Symbol 681 MovieClip Frame 35
stop();
stopAllSounds();
_root._x = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + Stage.height;
_root.char.speed = 0;
_root.gotoAndStop("Lose");
Symbol 683 MovieClip Frame 33
_root.tempdead = false;
_root._x = 0;
_root.health.text = _root.health.text - 1;
_root.char.speed = 0;
_root.char._x = _root.char.startX;
_root.char._y = _root.char.startY + (Stage.height / 2);
_root.char.speed = 0;
_root.char.gotoAndStop("idle");
stop();
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 2
stop();
Symbol 684 MovieClip Frame 3
stop();
Symbol 684 MovieClip Frame 4
stop();
Symbol 684 MovieClip Frame 5
stop();
Symbol 684 MovieClip Frame 6
stop();
Symbol 685 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 687 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 8
stop();
stopAllSounds();
Symbol 692 Button
on (release) {
gotoAndStop ("8 - Level");
}
Symbol 718 Button
on (release) {
gotoAndStop ("mute");
}
Symbol 720 Button
on (release) {
gotoAndStop ("unmute");
}
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 13
stop();
stopAllSounds();
Symbol 747 MovieClip Frame 700
stop();
Symbol 748 Button
on (release) {
gotoAndStop (4);
}