Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
percen1 = ("" + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
}
}
Frame 328
myMusic = new Sound(this);
myMusic.attachSound("song1");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
var _local1 = this;
startDrag (_local1, false, _local1._x, -100, _local1._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
Frame 335
stop();
Frame 352
stop();
Frame 369
stop();
Frame 370
stop();
stopAllSounds();
Frame 371
stop();
myMusic = new Sound(this);
myMusic.attachSound("song1");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
var _local1 = this;
startDrag (_local1, false, _local1._x, -100, _local1._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
Frame 372
stop();
myMusic = new Sound(this);
myMusic.attachSound("song3");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
var _local1 = this;
startDrag (_local1, false, _local1._x, -100, _local1._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
Frame 373
stop();
Frame 374
stop();
clearInterval(timerint);
_root.score = 0;
Frame 375
stop();
Instance of Symbol 22 MovieClip "hero" in Frame 375
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -12;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 376
stop();
clearInterval(timerint);
_root.score2 = 0;
Frame 377
stop();
Instance of Symbol 22 MovieClip "hero" in Frame 377
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -12;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 378
stop();
clearInterval(timerint);
_root.score3 = 0;
Frame 379
stop();
Instance of Symbol 22 MovieClip "hero" in Frame 379
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -12;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 380
stop();
Frame 381
clearInterval(timerint);
_root.score3 = 0;
Frame 852
stop();
Frame 853
stop();
Frame 854
stop();
Frame 855
stop();
_root.score4 = 0;
clearInterval(timerint);
_root.score4 = 0;
Frame 856
stop();
Instance of Symbol 22 MovieClip "hero" in Frame 856
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -12;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 857
stop();
Frame 858
stop();
clearInterval(timerint);
_root.score5 = 0;
Frame 859
stop();
Instance of Symbol 22 MovieClip "hero" in Frame 859
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -12;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Frame 860
stop();
Frame 861
stop();
function countdown() {
if (time_left <= 0) {
gotoAndStop ("S2endmovie");
}
}
stop();
time_left = 45;
setInterval(countdown, 1000);
numEnemy = 3;
score = 0;
Instance of Symbol 545 MovieClip "mainGround" in Frame 861
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x + ground._width;
groundStartx = this._x;
groundSpeed = 10;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
}
}
Instance of Symbol 553 MovieClip "enemy1" in Frame 861
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(200) + 100;
enemySpeed = random(4) + 1;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 559 MovieClip "123" in Frame 861
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(200) + 100;
enemySpeed = random(15) + 2;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 567 MovieClip "eyeball1" in Frame 861
onClipEvent (load) {
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 569 MovieClip "spaceship" in Frame 861
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
scrollx = _root.mainGround.ground._width / 3;
scrollStart = false;
maxLasers = 4;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and (laserCounter <= maxLasers)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > maxLasers) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = true;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(40)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38)) {
this._y = this._y - moveSpeed;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
scrollStart = false;
}
}
Instance of Symbol 573 MovieClip "laser" in Frame 861
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.spaceship._x + 90;
this._y = _root.spaceship._y;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["enemy" + i])) {
_root.score = _root.score + 100;
_root["enemy" + i].gotoAndPlay(2);
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["chicken" + i])) {
_root.score = _root.score + 150;
_root["chicken" + i].gotoAndStop(2);
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["eyeball" + i])) {
_root.score = _root.score + 0.5;
_root["eyeball" + i];
_root.StopFrame("2");
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["12" + i])) {
_root.score = _root.score + 150;
_root["12" + i].gotoAndPlay(2);
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["123" + i])) {
_root.score = _root.score + 150;
_root["123" + i].gotoAndPlay(2);
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["bomb" + i])) {
_root.score = _root.score + 150;
_root["bomb" + i].gotoAndPlay(2);
}
i++;
}
}
}
Frame 862
stop();
Frame 863
stop();
Mouse.show();
clearInterval(timerint);
_root.time_left = 111114534535540;
Frame 864
play();
Frame 956
stop();
Frame 957
stop();
Frame 958
stop();
Frame 959
stop();
Frame 1098
stop();
Frame 1099
stop();
Frame 1100
stop();
Frame 1101
stop();
Frame 1272
stop();
Instance of Symbol 655 MovieClip in Frame 1273
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
percen1 = ("" + percent) + "%";
gotoAndStop(percent +1272);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Frame 1274
stop();
Mouse.hide();
Instance of Symbol 672 MovieClip in Frame 1274
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 1275
stop();
Instance of Symbol 672 MovieClip in Frame 1275
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 1276
function trackMouseMovement() {
trackHeroPositionToMouse();
}
function trackMouseClick() {
shoot();
}
function mainLine() {
if (paused) {
return(undefined);
}
updateSimulation();
render();
}
function updateSimulation() {
updateHero();
updateBullets();
updateEnergy();
updateShield();
updateHull();
updateEnemies();
checkCollisions();
}
function render() {
renderHero();
renderBullets();
renderEnergy();
renderShield();
renderHull();
renderEnemies();
updateUi();
}
function checkCollisions() {
var i = (bullets.length - 1);
while (i >= 0) {
var _local3 = bullets[i];
var x1 = _local3[X_POSITION];
var y1 = _local3[Y_POSITION];
var collision = false;
if (_local3[OWNER] == "hero") {
var _local1 = enemies.length - 1;
while (_local1 >= 0) {
var _local2 = enemies[_local1];
var x2 = _local2[X_POSITION];
var y2 = _local2[Y_POSITION];
var distance = distanceBetween2DPoints(x1, y1, x2, y2, false);
if (distance <= enemyCollisionDistance) {
collision = true;
deadEnemyCounter++;
enemies.splice(_local1, 1);
_local2[CLIP_HANDLE].removeMovieClip();
break;
}
_local1--;
}
} else if (_local3[OWNER] == "enemy") {
var distance = distanceBetween2DPoints(x1, y1, heroXPosition, heroYPosition, false);
if (distance <= heroCollisionDistance) {
collision = true;
shield = shield - shieldDamagePerHit;
if (shield < minShield) {
hull = hull - (minShield - shield);
if (hull < minHull) {
hull = minHull;
}
shield = minShield;
}
}
}
if (collision) {
bullets.splice(i, 1);
_local3[CLIP_HANDLE].removeMovieClip();
bulletHits++;
}
i--;
}
}
function updateUi() {
scoreText.text = deadEnemyCounter * 10;
livesText.text = lives;
}
function toggleFiringMode() {
if (firingMode == SINGLE_FIRE) {
firingMode = DUAL_FIRE;
} else if (firingMode == DUAL_FIRE) {
firingMode = QUAD_FIRE;
} else if (firingMode == QUAD_FIRE) {
firingMode = SINGLE_FIRE;
}
}
function togglePause() {
if (paused) {
resumeGame();
} else {
pauseGame();
}
}
function pauseGame() {
paused = true;
var _local1 = parent.attachMovie("PauseMenu", "PauseMenu", workingDepth++);
_local1._x = 0;
_local1._y = 0;
_local1._alpha = 50;
}
function resumeGame() {
paused = false;
parent.PauseMenu.removeMovieClip();
}
function updateEnergy() {
if (energy < maxEnergy) {
energy = energy + currentEnergyRegenRate;
}
currentEnergyRegenRate = currentEnergyRegenRate + energyRegenRate;
if (energy > maxEnergy) {
energy = maxEnergy;
}
}
function renderEnergy() {
var _local1 = energy * 3;
energyBar._y = originalEnergyBarYPosition - _local1;
energyBar._height = _local1;
}
function updateShield() {
if (shield < maxShield) {
shield = shield + shieldRegenRate;
}
if (shield > shield) {
shield = maxShield;
}
}
function renderShield() {
var _local1 = shield * 3;
shieldBar._y = originalShieldBarYPosition - _local1;
shieldBar._height = _local1;
hero.shield._alpha = shield;
}
function updateHull() {
}
function renderHull() {
var _local1 = hull * 3;
hullBar._y = originalHullBarYPosition - _local1;
hullBar._height = _local1;
}
function trackHeroPositionToMouse() {
var x1 = _xmouse;
var _local3 = _ymouse;
var x2 = hero._x;
var y2 = hero._y;
if (_local3 > mouseYEndPosition) {
_local3 = mouseYEndPosition;
}
var _local2 = determineAngleBetweenPoints(x1, x2, _local3, y2);
if (_local2 < 0) {
_local2 = _local2 + (Math.PI*2);
}
var _local1 = 0;
if (_local2 > heroAngle) {
_local1 = heroAngle + heroRotationSpeed;
if (_local1 > _local2) {
_local1 = _local2;
}
} else {
_local1 = heroAngle - heroRotationSpeed;
if (_local1 < _local2) {
_local1 = _local2;
}
}
if (_local1 >= heroMaxAngle) {
_local1 = heroMaxAngle;
} else if (_local1 <= heroMinAngle) {
_local1 = heroMinAngle;
}
heroAngle = _local1;
heroStopXPosition = x1;
}
function shoot() {
var currentTime = getTimer();
if (currentTime > timeAtNextShot) {
var gunsToShoot = null;
if (firingMode == QUAD_FIRE) {
gunsToShoot = new Array(4);
gunsToShoot[0] = guns[0];
gunsToShoot[1] = guns[1];
gunsToShoot[2] = guns[2];
gunsToShoot[3] = guns[3];
} else if (firingMode == DUAL_FIRE) {
gunsToShoot = new Array(2);
if (currentFiringPair == INNER_GUN_PAIR) {
currentFiringPair = OUTER_GUN_PAIR;
gunsToShoot[0] = guns[0];
gunsToShoot[1] = guns[1];
} else {
currentFiringPair = INNER_GUN_PAIR;
gunsToShoot[0] = guns[2];
gunsToShoot[1] = guns[3];
}
} else if (firingMode == SINGLE_FIRE) {
gunsToShoot = new Array(1);
gunsToShoot[0] = guns[currentGun];
currentGun++;
if (currentGun > 3) {
currentGun = 0;
}
}
var gunsFiring = gunsToShoot.length;
if (energy <= (energyPerShot * gunsFiring)) {
} else {
timeAtNextShot = currentTime + (minDelayBetweenShots * gunsFiring);
bulletCounter++;
currentEnergyRegenRate = energyRegenRate;
energy = energy - (energyPerShot * gunsFiring);
var _local2 = 0;
while (_local2 < gunsFiring) {
var currentGun = gunsToShoot[_local2];
var _local1 = new Array();
_local1[X_POSITION] = (heroXPosition + (currentGun[X_OFFSET] * Math.cos(heroAngle - (Math.PI/2)))) + (currentGun[Y_OFFSET] * Math.cos(heroAngle));
_local1[Y_POSITION] = (heroYPosition + (currentGun[X_OFFSET] * Math.sin(heroAngle - (Math.PI/2)))) + (currentGun[Y_OFFSET] * Math.sin(heroAngle));
var _local3 = heroAngle + currentGun[ANGLE_OFFSET];
_local1[X_VELOCITY] = bulletSpeed * Math.cos(_local3);
_local1[Y_VELOCITY] = bulletSpeed * Math.sin(_local3);
_local1[ROTATION] = _local3;
_local1[OWNER] = "hero";
_local1[CLIP_HANDLE] = null;
bullets.push(_local1);
_local2++;
}
}
}
}
function updateHero() {
var _local2 = Math.abs(heroStopXPosition - heroXPosition);
if (_local2 <= heroXSpeed) {
heroXPosition = heroStopXPosition;
} else {
var _local1 = heroXSpeed;
if (heroStopXPosition < heroXPosition) {
_local1 = _local1 * -1;
}
heroXPosition = heroXPosition + Math.round(_local1);
}
trackHeroPositionToMouse();
}
function renderHero() {
var _local3 = hero._x;
hero._x = heroXPosition;
var _local1 = "Straight";
var _local2 = Math.abs(centerHeroAngle - heroAngle);
if (_local3 < heroXPosition) {
if (heroSmallTurnThreshold >= _local2) {
_local1 = "Right";
} else {
_local1 = "FarRight";
}
} else if (_local3 > heroXPosition) {
if (heroSmallTurnThreshold >= _local2) {
_local1 = "Left";
} else {
_local1 = "FarLeft";
}
}
hero.gotoAndPlay(_local1);
hero._rotation = radiansToDegrees(heroAngle);
}
function updateBullets() {
var _local2 = 0;
while (_local2 < bullets.length) {
var _local1 = bullets[_local2];
_local1[X_POSITION] = _local1[X_POSITION] + _local1[X_VELOCITY];
_local1[Y_POSITION] = _local1[Y_POSITION] + _local1[Y_VELOCITY];
_local2++;
}
}
function renderBullets() {
var _local3 = bullets.length - 1;
while (_local3 >= 0) {
var _local2 = bullets[_local3];
var xPos = _local2[X_POSITION];
var yPos = _local2[Y_POSITION];
var _local1 = _local2[CLIP_HANDLE];
if (_local1 == null) {
_local1 = parent.attachMovie("Bullet", "bullet" + bulletCounter, workingDepth++);
_local2[CLIP_HANDLE] = _local1;
_local1._rotation = radiansToDegrees(_local2[ROTATION]);
}
if ((((xPos < 0) || (xPos > stageWidth)) || (yPos < 0)) || (yPos > stageHeight)) {
bulletMisses++;
bullets.splice(_local3, 1);
_local1.removeMovieClip();
} else {
_local1._x = Math.round(xPos);
_local1._y = Math.round(yPos);
}
_local3--;
}
}
function updateEnemies() {
if (getTimer() >= timeAtNextEnemy) {
enemyCounter++;
timeAtNextEnemy = getTimer() + randomNumberInRange(minTimeBetweenEnemies, maxTimeBetweenEnemies);
var _local1 = new Array();
_local1[X_POSITION] = randomNumberInRange(0, stageWidth - (enemyXOffset * 2)) + enemyXOffset;
_local1[Y_POSITION] = -30;
_local1[X_VELOCITY] = 0;
_local1[Y_VELOCITY] = randomNumberInRange(minEnemyFallRate, maxEnemyFallRate);
_local1[TIME_AT_NEXT_SHOT] = getTimer() + randomNumberInRange(minTimeBetweenEnemyShots, maxTimeBetweenEnemyShots);
_local1[CLIP_HANDLE] = null;
enemies.push(_local1);
}
var currentTime = getTimer();
var _local3 = 0;
while (_local3 < enemies.length) {
var _local1 = enemies[_local3];
_local1[X_POSITION] = _local1[X_POSITION] + _local1[X_VELOCITY];
_local1[Y_POSITION] = _local1[Y_POSITION] + _local1[Y_VELOCITY];
if (_local1[TIME_AT_NEXT_SHOT] < currentTime) {
var _local2 = new Array();
_local2[X_POSITION] = _local1[X_POSITION];
_local2[Y_POSITION] = _local1[Y_POSITION] + enemyBarrelLength;
_local2[X_VELOCITY] = 0;
_local2[Y_VELOCITY] = bulletSpeed;
_local2[ROTATION] = degreesToRadians(90);
_local2[CLIP_HANDLE] = null;
_local2[OWNER] = "enemy";
bullets.push(_local2);
_local1[TIME_AT_NEXT_SHOT] = getTimer() + randomNumberInRange(minTimeBetweenEnemyShots, maxTimeBetweenEnemyShots);
}
_local3++;
}
}
function renderEnemies() {
var _local3 = enemies.length - 1;
while (_local3 >= 0) {
var _local2 = enemies[_local3];
var xPos = _local2[X_POSITION];
var yPos = _local2[Y_POSITION];
var _local1 = _local2[CLIP_HANDLE];
if (_local1 == null) {
_local1 = parent.attachMovie("Enemy", "enemy" + enemyCounter, workingDepth++);
_local2[CLIP_HANDLE] = _local1;
}
if (((xPos < 0) || (xPos > stageWidth)) || (yPos > stageHeight)) {
enemies.splice(_local3, 1);
_local1.removeMovieClip();
escapedEnemyCounter++;
} else {
_local1._x = Math.round(xPos);
_local1._y = Math.round(yPos);
}
_local3--;
}
}
function determineAngleBetweenPoints(x1, x2, y1, y2) {
var _local2 = x1 - x2;
var _local3 = y1 - y2;
var _local1 = Math.atan2(_local3, _local2);
return(_local1);
}
function radiansToDegrees(radians) {
var _local1 = radians * 57.2957795130823;
return(_local1);
}
function degreesToRadians(degrees) {
var _local1 = degrees * (Math.PI/180);
return(_local1);
}
function randomNumberInRange(min, max) {
var _local2 = max - min;
var _local1 = Math.floor((Math.random() * _local2) + min);
return(_local1);
}
function distanceBetween2DPoints(x1, y1, x2, y2, useSqrt) {
var _local2 = x2 - x1;
var _local3 = y2 - y1;
var _local1 = (_local2 * _local2) + (_local3 * _local3);
if (useSqrt) {
_local1 = Math.sqrt(_local1);
}
return(_local1);
}
stop();
var centerHeroAngle = degreesToRadians(270);
var heroAngle = centerHeroAngle;
var heroXPosition = hero._x;
var heroYPosition = hero._y;
var bullets = new Array();
var timeAtNextShot = getTimer();
var bulletCounter = 0;
var bulletHits = 0;
var bulletMisses = 0;
var enemies = new Array();
var enemyCounter = 0;
var deadEnemyCounter = 0;
var escapedEnemyCounter = 0;
var timeAtNextEnemy = (getTimer() + 3000);
var parent = _root;
var workingDepth = 1000;
var lives = 3;
var paused = false;
var heroXSpeed = 6;
var heroRotationSpeed = degreesToRadians(2);
var heroMinAngle = degreesToRadians(250);
var heroMaxAngle = degreesToRadians(290);
var heroSmallTurnThreshold = degreesToRadians(10);
var maxEnergy = 100;
var energy = maxEnergy;
var minEnergy = 0;
var energyPerShot = 2;
var energyRegenRate = 0.006;
var currentEnergyRegenRate = energyRegenRate;
var originalEnergyBarYPosition = energyBar._y;
var maxShield = 100;
var minShield = 0;
var shield = maxShield;
var shieldDamagePerHit = 40;
var shieldRegenRate = 0.1;
var originalShieldBarYPosition = shieldBar._y;
var maxHull = 100;
var minHull = 0;
var hull = maxHull;
var hullDamagePerHit = 40;
var originalHullBarYPosition = hullBar._y;
var stageWidth = 640;
var stageHeight = 480;
var mouseYEndPosition = 350;
var minDelayBetweenShots = 100;
var bulletSpeed = 16;
var minTimeBetweenEnemies = 500;
var maxTimeBetweenEnemies = 2000;
var minEnemyFallRate = 1;
var maxEnemyFallRate = 5;
var enemyXOffset = 30;
var enemyBarrelLength = 15;
var minTimeBetweenEnemyShots = 1000;
var maxTimeBetweenEnemyShots = 3000;
var enemyRadius = 22;
var heroRadius = 64;
var bulletRadius = 3;
var enemyCollisionDistance = ((enemyRadius + bulletRadius) * (enemyRadius + bulletRadius));
var heroCollisionDistance = ((heroRadius + bulletRadius) * (heroRadius + bulletRadius));
var X_POSITION = 0;
var Y_POSITION = 1;
var X_VELOCITY = 2;
var Y_VELOCITY = 3;
var ROTATION = 4;
var OWNER = 5;
var CLIP_HANDLE = 6;
var TIME_AT_NEXT_SHOT = 7;
var X_OFFSET = 0;
var Y_OFFSET = 1;
var ANGLE_OFFSET = 2;
var guns = new Array();
guns[0] = new Array();
guns[0][X_OFFSET] = 3;
guns[0][Y_OFFSET] = 38;
guns[0][ANGLE_OFFSET] = degreesToRadians(0.4);
guns[1] = new Array();
guns[1][X_OFFSET] = -3;
guns[1][Y_OFFSET] = 38;
guns[1][ANGLE_OFFSET] = degreesToRadians(-0.4);
guns[2] = new Array();
guns[2][X_OFFSET] = 42;
guns[2][Y_OFFSET] = -2;
guns[2][ANGLE_OFFSET] = degreesToRadians(5.5);
guns[3] = new Array();
guns[3][X_OFFSET] = -42;
guns[3][Y_OFFSET] = -2;
guns[3][ANGLE_OFFSET] = degreesToRadians(-5.5);
var SINGLE_FIRE = 0;
var DUAL_FIRE = 1;
var QUAD_FIRE = 2;
var firingMode = SINGLE_FIRE;
var INNER_GUN_PAIR = 0;
var OUTER_GUN_PAIR = 1;
var currentFiringPair = INNER_GUN_PAIR;
var currentGun = 0;
_root.onEnterFrame = mainLine;
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
trackMouseMovement();
};
mouseListener.onMouseUp = function () {
trackMouseClick();
};
Mouse.addListener(mouseListener);
var keyListener = new Object();
keyListener.onKeyUp = function () {
var _local1 = chr(Key.getAscii());
if ((_local1 == "p") || (_local1 == "P")) {
togglePause();
} else if ((_local1 == "m") || (_local1 == "M")) {
toggleFiringMode();
}
};
Key.addListener(keyListener);
function countdown() {
time_left = time_left - 1;
if (time_left <= 0) {
gotoAndStop ("finished");
}
}
stop();
setInterval(countdown, 1000);
time_left = 80;
Frame 1277
stop();
Instance of Symbol 672 MovieClip in Frame 1277
onClipEvent (enterFrame) {
startDrag (this, true);
}
Symbol 13 Button
on (release) {
getURL ("http://www.shockgames.info", "_blank");
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._yscale = PercentLoaded;
} else {
gotoAndPlay ("LOADED");
}
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Symbol 33 MovieClip Frame 75
_root.play();
Symbol 37 MovieClip Frame 40
stop();
Symbol 40 MovieClip Frame 40
stop();
Symbol 45 MovieClip Frame 80
this.gotoAndPlay("1");
Symbol 47 Button
on (release) {
getURL ("http://www.shockgames.info", "_blank");
}
Symbol 61 MovieClip Frame 75
this.gotoAndPlay("1");
Symbol 126 Button
on (release) {
this.gotoAndPlay("menu1");
}
Symbol 130 Button
on (release) {
this.gotoAndPlay("volumecontrolss");
}
Symbol 135 Button
on (release) {
getURL ("http://www.shockgames.info", "_blank");
}
Symbol 140 Button
on (release) {
this.gotoAndPlay("bonusgame");
}
Symbol 145 Button
on (release) {
getURL ("http://www.newgamesforyourwebsite.com", "_blank");
}
Symbol 154 Button
on (release) {
gotoAndPlay (373);
}
Symbol 158 Button
on (release) {
this.gotoAndPlay("330");
}
Symbol 163 Button
on (release) {
gotoAndPlay (853);
}
Symbol 167 Button
on (release) {
gotoAndPlay (335);
}
Symbol 176 Button
on (release) {
this.gotoAndPlay("volumecontrolss");
}
Symbol 185 Button
on (release) {
gotoAndPlay (1273);
}
Symbol 188 Button
on (release) {
this.gotoAndPlay("menu");
}
Symbol 195 Button
on (release) {
this.gotoAndStop("TTFAF");
}
Symbol 200 Button
on (release) {
this.gotoAndStop("SMTS");
}
Symbol 205 Button
on (release) {
this.gotoAndStop("menu");
}
Symbol 213 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 224 Button
on (press) {
startDrag ("", false, left, top, right, bottom);
}
on (release) {
stopDrag();
}
Instance of Symbol 225 MovieClip "vertFader" in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
inity = _y;
left = _x;
right = _x;
top = _y - 50;
bottom = _y + 50;
}
Symbol 248 Button
on (release) {
gotoAndStop ("Storyline1");
}
Symbol 253 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 265 Button
on (release) {
gotoAndStop ("S1Chap1");
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 289 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 289 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 292 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 2;
unloadMovie (this);
}
}
Instance of Symbol 297 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 299 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame()();
}
}
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 289 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 300 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 289 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 289 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 288 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 301 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 301 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score = _root.score + 1;
unloadMovie (this);
}
}
Symbol 319 Button
on (release) {
gotoAndStop ("S1Chap2");
}
Symbol 321 Button
on (release) {
gotoAndStop ("menu");
}
Instance of Symbol 292 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 2;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 2;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 2;
unloadMovie (this);
}
}
Instance of Symbol 292 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 2;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 295 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score2 = _root.score2 + 1;
unloadMovie (this);
}
}
Instance of Symbol 329 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 330 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 331 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 332 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 333 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 333 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 333 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 330 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 331 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 334 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 334 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 335 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 335 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 335 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Symbol 344 Button
on (release) {
gotoAndStop ("S1Chap3");
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 348 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.gotoAndStop("youwin")();
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 2;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score3 = _root.score3 + 1;
unloadMovie (this);
}
}
Instance of Symbol 349 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 349 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 349 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 350 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.jumpSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Symbol 358 Button
on (release) {
gotoAndPlay (381);
}
Symbol 457 Button
on (release) {
gotoAndStop ("S2story");
}
Symbol 464 Button
on (release) {
gotoAndStop ("S2storyp2");
}
Symbol 468 Button
on (release) {
gotoAndStop ("S2chap1");
}
Instance of Symbol 287 MovieClip in Symbol 502 MovieClip Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 287 MovieClip in Symbol 503 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 287 MovieClip in Symbol 504 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 287 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 494 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 499 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 499 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 499 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 499 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score4 = _root.score4 + 2;
unloadMovie (this);
}
}
Instance of Symbol 500 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 501 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 502 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 502 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 503 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 504 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 505 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.prevFrame();
}
}
Instance of Symbol 507 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Symbol 511 MovieClip Frame 1
stop();
Instance of Symbol 494 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 499 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 499 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 499 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 499 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 500 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 501 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 502 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 502 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 503 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 504 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 505 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndStop("S2storyp2")();
}
}
Instance of Symbol 507 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Symbol 522 Button
on (release) {
gotoAndStop ("S2Chap2");
}
Instance of Symbol 494 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 297 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 297 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 297 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 494 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 494 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
n = -1;
}
onClipEvent (enterFrame) {
this._x = this._x + n;
count++;
if (count == 80) {
count = 0;
n = -n;
}
}
Instance of Symbol 528 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.levelSound.gotoAndPlay(2);
_root.nextFrame();
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Instance of Symbol 326 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 1;
unloadMovie (this);
}
}
Instance of Symbol 327 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.score5 = _root.score5 + 2;
unloadMovie (this);
}
}
Symbol 540 Button
on (release) {
gotoAndStop ("123");
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 6
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 6
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 30
_root.time_left = _root.time_left - 1;
Symbol 581 Button
on (release) {
gotoAndStop ("123");
}
Symbol 586 Button
on (release) {
gotoAndPlay ("movie2");
}
Symbol 605 Button
on (release) {
gotoAndStop ("funm2.11");
}
Symbol 606 Button
on (release) {
gotoAndPlay ("battlem2.1");
}
Symbol 607 Button
on (release) {
gotoAndStop ("bagm2.11");
}
Symbol 608 Button
on (release) {
gotoAndStop ("runm2.1");
}
Symbol 614 Button
on (release) {
gotoAndPlay ("stopm2.1");
}
Symbol 636 Button
on (release) {
gotoAndStop ("funm2.22");
}
Symbol 637 Button
on (release) {
gotoAndPlay ("battlem2.2");
}
Symbol 638 Button
on (release) {
gotoAndStop ("bagm2.22");
}
Symbol 639 Button
on (release) {
gotoAndStop ("runm2.2");
}
Symbol 640 Button
on (release) {
gotoAndPlay ("stopm2.2");
}
Symbol 657 Button
on (release) {
gotoAndStop ("game");
}
Symbol 659 Button
on (release) {
gotoAndStop ("about");
}
Symbol 673 MovieClip Frame 230
stop();
Symbol 677 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 694 MovieClip Frame 1
collisionShape1._alpha = 0;
collisionShape2._alpha = 0;
collisionShape3._alpha = 0;
collisionShape4._alpha = 0;
collisionShape5._alpha = 0;
collisionShape6._alpha = 0;
stop();
Instance of Symbol 22 MovieClip "hero" in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
function move(x, y) {
var _local1 = _root;
var _local2 = y;
var _local3 = x;
h = false;
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymin, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmin, (_y + _local2) + b.ymax, true)) {
if (!_local1.map.hitTest((_x + _local3) + b.xmax, (_y + _local2) + b.ymax, true)) {
_local1.map._x = _local1.map._x - _local3;
_local1.map._y = _local1.map._y - _local2;
h = true;
}
}
}
}
return(h);
}
jump = false;
scream = false;
s = 6;
this.gotoAndStop(1);
b = this.getBounds(this);
_root.timerID = setInterval(_root.goTime, 10);
}
onClipEvent (enterFrame) {
falling = move(0, s);
if ((Key.isDown(38) && (!falling)) && (!jump)) {
jump = true;
vel = -10;
_root.jumpSound.gotoAndPlay(2);
}
if (Key.isDown(37)) {
move(-s, 0);
this.play();
}
if (Key.isDown(39)) {
move(s, 0);
this.play();
}
if (jump) {
if (vel <= 10) {
h = move(0, vel - s);
if ((h == false) && (vel < 0)) {
vel = vel * -1;
}
vel++;
} else {
jump = false;
}
}
if ((_root.map._y < -450) && (!scream)) {
scream = true;
_root.fallSound.gotoAndPlay(2);
}
if (_root.map._y < -850) {
_root.map._x = 0;
_root.map._y = 0;
scream = false;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Symbol 694 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 3
stop();
Symbol 694 MovieClip Frame 4
stop();
Symbol 694 MovieClip Frame 5
stop();