Combined Code
movieClip 4 {
frame 1 {
stop();
}
}
movieClip 5 particle5 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= fric;
yspeed *= fric;
speed *= fric;
_xscale = _xscale - 5;
_yscale = _yscale - 5;
++i;
if (i > 5) {
if (shift == 0) {
_rotation = _rotation + rotSpeed;
}
if (shift == 1) {
_rotation = _rotation - rotSpeed;
}
}
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
if (_xscale < 0) {
this.removeMovieClip();
}
}
}
var i = 0;
var speed = 5;
var rotSpeed = 10;
var xspeed = (random(6) - 3) / 1.5;
var yspeed = -((2 + random(2)) / 1.5);
while (xspeed == 0) {
xspeed = random(6) - 3;
}
if (xspeed > 0) {
shift = 0;
} else {
shift = 1;
}
var fric = 0.8;
}
}
movieClip 10 {
}
movieClip 12 {
}
movieClip 13 {
frame 1 {
stop();
}
}
movieClip 14 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 16 {
stop();
}
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 19 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 12 {
i = 0;
while (i < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _parent._x - 20 + i * 4 + random(3) - 1, '_y': _parent._y + i * 2 + random(3) - 1});
++i;
}
g = 0;
while (g < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _parent._x + 20 - g * 4 + random(3) - 1, '_y': _parent._y + g * 2 + random(3) - 1});
++g;
}
var nextDepth = _root.batteries.base.getNextHighestDepth();
_root.batteries.base.attachMovie('battery15', 'battery15' + nextDepth, nextDepth, {'_x': _parent._x, '_y': _parent._y + 30});
}
frame 16 {
stop();
_parent.removeMovieClip();
}
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 16 {
stop();
}
}
movieClip 25 enemyBoom2 {
frame 1 {
stop();
}
}
movieClip 27 {
}
movieClip 28 {
frame 1 {
stop();
gotoAndStop(_root.player.complete.ballpower._currentframe);
}
}
movieClip 29 ebullet {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
play();
}
if (_rotation > 180) {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
}
if (_root.land.hitTest(_x, _y, true)) {
play();
speed = 0;
}
if (_root.shoot.blast.hitTest(_x, _y, true)) {
_rotation = Math.atan2(_y - _root.player._y, _x - _root.player._x) / 0.0174532925199433 + 90;
speed -= 3;
play();
}
if (_root.player.trueHit.hitTest(_x, _y, true)) {
play();
speed *= 0.1;
_root.player.dead = true;
}
} else {
stop();
}
}
stop();
var myrot = _root.yourrot;
var speed = 10;
_rotation = myrot;
if (_rotation > 180) {
_y = _y - 30 * Math.cos(0.0174532925199433 * _rotation);
_x = _x + 30 * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y + 30 * Math.cos(0.0174532925199433 * _rotation);
_x = _x - 30 * Math.sin(0.0174532925199433 * _rotation);
}
}
frame 11 {
removeMovieClip(this);
}
}
movieClip 32 {
}
movieClip 35 {
frame 1 {
stop();
gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
}
}
movieClip 36 bulletHow {
frame 1 {
function onEnterFrame() {
if (_root.disruptors.hitTest(_x, _y, true)) {
xspeed *= 0.1;
yspeed *= 0.1;
if (Math.sqrt(xspeed * xspeed + yspeed * yspeed) < 3) {
bounces = 3;
}
}
if (_root.enemies.hitTest(_x, _y, true)) {
xspeed *= 0.1;
yspeed *= 0.1;
if (Math.sqrt(xspeed * xspeed + yspeed * yspeed) < 3) {
bounces = 3;
}
}
collisions = 0;
sum_x = 0;
sum_y = 0;
if (bounces >= 1) {
yspeed += gravity;
}
x = 1;
while (x < precision) {
spot_x = _x + radius * Math.sin(x * 360 / precision);
spot_y = _y - radius * Math.cos(x * 360 / precision);
if (_root.land.hitTest(spot_x, spot_y, true)) {
++collisions;
sum_x += spot_x;
sum_y += spot_y;
}
x += 5;
}
if (collisions > 0) {
++bounces;
ball_dir = Math.atan(yspeed / xspeed * -1) / 0.0174532925199433;
if (xspeed * -1 < 0) {
ball_dir += 180;
}
if (xspeed * -1 >= 0 && yspeed < 0) {
ball_dir += 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / 0.0174532925199433;
if (x_cat < 0) {
ball_coll += 180;
}
if (x_cat >= 0 && y_cat < 0) {
ball_coll += 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation += 180;
}
bounce_angle = 180 - ball_dir - 2 * ground_rotation;
if (bounce_angle < 0) {
bounce_angle += 360;
}
speed = Math.sqrt(yspeed * yspeed + xspeed * xspeed);
xspeed = speed * Math.cos(bounce_angle * Math.PI / 180) * friction;
yspeed = speed * Math.sin(bounce_angle * Math.PI / 180) * -1 * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = _y + yspeed;
_x = _x + xspeed;
if (bounces > 2) {
play();
xspeed *= 0.8;
yspeed *= 0.8;
}
}
stop();
var yspeed = 0;
var xspeed = 0;
var gravity = 0.2;
var radius = 7.5;
var friction = 0.9;
var precision = 360;
var bounces = 0;
var w = _width;
var h = _height;
var t = 0;
if (_root.player.dir == 0) {
xspeed = -15;
}
if (_root.player.dir == 1) {
xspeed = 15;
}
if (_root.player.lefttouch) {
xspeed = 15;
}
if (_root.player.righttouch) {
xspeed = -15;
}
}
frame 11 {
removeMovieClip(this);
}
}
movieClip 37 bullet {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
play();
}
if (_root.disruptors.hitTest(_x, _y, true)) {
xspeed *= 0.1;
yspeed *= 0.1;
if (Math.sqrt(xspeed * xspeed + yspeed * yspeed) < 3) {
bounces = 3;
}
}
if (_root._currentframe != 39) {
if (_root.enemies.hitTest(_x, _y, true)) {
xspeed *= 0.1;
yspeed *= 0.1;
if (Math.sqrt(xspeed * xspeed + yspeed * yspeed) < 3) {
bounces = 3;
}
}
} else {
if (_root.enemies.boss.hitTest(_x, _y, true)) {
++t;
} else {
if (_root.enemies.hitTest(_x, _y, true)) {
t = 5;
}
}
if (t > 4) {
xspeed *= 0.1;
yspeed *= 0.1;
if (Math.sqrt(xspeed * xspeed + yspeed * yspeed) < 3) {
bounces = 3;
}
}
}
collisions = 0;
sum_x = 0;
sum_y = 0;
if (bounces >= 1) {
yspeed += gravity;
}
x = 1;
while (x < precision) {
spot_x = _x + radius * Math.sin(x * 360 / precision);
spot_y = _y - radius * Math.cos(x * 360 / precision);
if (_root.land.hitTest(spot_x, spot_y, true)) {
++collisions;
sum_x += spot_x;
sum_y += spot_y;
}
x += 5;
}
if (collisions > 0) {
++bounces;
ball_dir = Math.atan(yspeed / xspeed * -1) / 0.0174532925199433;
if (xspeed * -1 < 0) {
ball_dir += 180;
}
if (xspeed * -1 >= 0 && yspeed < 0) {
ball_dir += 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / 0.0174532925199433;
if (x_cat < 0) {
ball_coll += 180;
}
if (x_cat >= 0 && y_cat < 0) {
ball_coll += 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation += 180;
}
bounce_angle = 180 - ball_dir - 2 * ground_rotation;
if (bounce_angle < 0) {
bounce_angle += 360;
}
speed = Math.sqrt(yspeed * yspeed + xspeed * xspeed);
xspeed = speed * Math.cos(bounce_angle * Math.PI / 180) * friction;
yspeed = speed * Math.sin(bounce_angle * Math.PI / 180) * -1 * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = _y + yspeed;
_x = _x + xspeed;
if (bounces > 2) {
play();
xspeed *= 0.8;
yspeed *= 0.8;
}
} else {
stop();
}
}
stop();
var yspeed = 0;
var xspeed = 0;
var gravity = 0.2;
var radius = 7.5;
var friction = 0.9;
var precision = 360;
var bounces = 0;
var w = _width;
var h = _height;
var t = 0;
if (_root.player.dir == 0) {
xspeed = -15;
}
if (_root.player.dir == 1) {
xspeed = 15;
}
if (_root.player.lefttouch) {
xspeed = 15;
}
if (_root.player.righttouch) {
xspeed = -15;
}
}
frame 11 {
removeMovieClip(this);
}
}
movieClip 39 particle9How {
frame 1 {
function onEnterFrame() {
xDist = _x - _root.howToFlag._x;
yDist = _y - _root.howToFlag._y;
angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
_rotation = angle;
_alpha = _alpha + 10;
if (_alpha > 100) {
speed += speedInc;
speed *= fric;
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
}
if (spawnRot == 0) {
if (_y > _root.howToFlag._y - 8) {
this.removeMovieClip();
}
}
}
_alpha = 0;
var speed = 3;
var speedInc = 1;
var fric = 0.95;
var offset = 0;
var size = 50 + random(51);
var xDist = _x - _root.howToFlag._x;
var yDist = _y - _root.howToFlag._y;
var angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
var alphaInc = 10;
var baseRot = random(61);
var spawnRot = _root.howToFlag.portalRot;
var ran = random(2);
if (ran == 0) {
baseRot = -baseRot;
}
_rotation = baseRot + spawnRot;
if (_rotation > 180) {
_y = _y + (40 + random(31)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x - (40 + random(31)) * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - (40 + random(31)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x + (40 + random(31)) * Math.sin(0.0174532925199433 * _rotation);
}
_xscale = size;
_yscale = size;
if (_root.land.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
movieClip 40 particle9 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
xDist = _x - _root['L' + _root.levelframe + 'flag']._x;
yDist = _y - _root['L' + _root.levelframe + 'flag']._y;
angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
_rotation = angle;
_alpha = _alpha + 10;
if (_alpha > 100) {
speed += speedInc;
speed *= fric;
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
}
if (spawnRot == 0) {
if (_y > _root['L' + _root.levelframe + 'flag']._y - 8) {
this.removeMovieClip();
}
} else {
if (spawnRot == 90) {
if (_x < _root['L' + _root.levelframe + 'flag']._x + 8) {
this.removeMovieClip();
}
} else {
if (spawnRot == 180) {
if (_y < _root['L' + _root.levelframe + 'flag']._y + 8) {
this.removeMovieClip();
}
} else {
if (spawnRot == 270) {
if (_x > _root['L' + _root.levelframe + 'flag']._x - 8) {
this.removeMovieClip();
}
}
}
}
}
}
}
_alpha = 0;
var speed = 3;
var speedInc = 1;
var fric = 0.95;
var offset = 0;
var size = 50 + random(51);
var xDist = _x - _root['L' + _root.levelframe + 'flag']._x;
var yDist = _y - _root['L' + _root.levelframe + 'flag']._y;
var angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
var alphaInc = 10;
var baseRot = random(61);
var spawnRot = _root['L' + _root.levelframe + 'flag'].portalRot;
var ran = random(2);
if (ran == 0) {
baseRot = -baseRot;
}
_rotation = baseRot + spawnRot;
if (_rotation > 180) {
_y = _y + (40 + random(31)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x - (40 + random(31)) * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - (40 + random(31)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x + (40 + random(31)) * Math.sin(0.0174532925199433 * _rotation);
}
_xscale = size;
_yscale = size;
if (_root.land.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
movieClip 43 {
}
movieClip 44 {
frame 1 {
stop();
}
}
movieClip 46 {
}
movieClip 47 {
}
movieClip 48 flyParticleHow {
frame 1 {
function onEnterFrame() {
++speed;
speed *= fric;
_x = _x + speed * xMult;
_y = _y + speed * yMult;
if (_root.land.hitTest(_x, _y, true)) {
++i;
if (i > 3) {
_visible = false;
}
}
if (!_visible) {
++i;
if (i > 15) {
_root.player._x = 350;
_root.player._y = 300;
_root.player.stopMotion = true;
_root.player.flagLock = false;
_root.spawnFront.once = false;
_root.spawnFront._x = 350;
_root.spawnFront._y = 300;
_root.spawnBack._x = 350;
_root.spawnBack._y = 300;
_root.spawnFront.play();
_root.spawnBack.play();
this.removeMovieClip();
}
}
}
inside.complete.ballpower.gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
var speed = 0;
var fric = 0.9;
var i = 0;
}
}
movieClip 49 flyParticle {
frame 1 {
function onEnterFrame() {
++speed;
speed *= fric;
_x = _x + speed * xMult;
_y = _y + speed * yMult;
if (_root.land.hitTest(_x, _y, true)) {
++i;
if (i > 3) {
_visible = false;
_root.flashbacks.gotoAndStop('next');
}
}
}
inside.complete.ballpower.gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
var speed = 0;
var fric = 0.9;
var i = 0;
}
}
movieClip 51 {
}
movieClip 52 particle4 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
_x = _x + xspeed;
_y = _y + yspeed;
yspeed += Math.random();
_xscale = _xscale - 1;
_yscale = _yscale - 1;
} else {
stop();
}
}
xspeed = random(11) - 5;
yspeed = -7 + Math.random() * 8;
_xscale = size;
_yscale = size;
colorhealth.gotoAndStop(_root.player.batterypower);
}
frame 25 {
removeMovieClip(this);
removeMovieClip(_parent);
}
}
movieClip 53 particle8 {
frame 1 {
function onEnterFrame() {
xDist = _x - _root.spawnBack._x;
yDist = _y - _root.spawnBack._y;
angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
_rotation = angle;
speed += speedInc;
speed *= fric;
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
_alpha = _alpha + 10;
if (saveX < _root.spawnBack._x) {
if (_root.spawnBack._x < _x) {
this.removeMovieClip();
}
}
if (saveX > _root.spawnBack._x) {
if (_root.spawnBack._x > _x) {
this.removeMovieClip();
}
}
}
_alpha = 0;
var speed = 3;
var speedInc = 1;
var fric = 0.95;
var offset = 0;
var size = 50 + random(51) + offset;
var xDist = _x - _root.spawnBack._x;
var yDist = _y - _root.spawnBack._y;
var angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
var alphaInc = 10;
_rotation = random(361);
if (_rotation > 180) {
_y = _y + (_root.spawnBack._width / 2 + 15 + random(21)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x - (_root.spawnBack._width / 2 + 15 + random(21)) * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - (_root.spawnBack._width / 2 + 15 + random(21)) * Math.cos(0.0174532925199433 * _rotation);
_x = _x + (_root.spawnBack._width / 2 + 15 + random(21)) * Math.sin(0.0174532925199433 * _rotation);
}
_xscale = size;
_yscale = size;
var saveX = _x;
}
}
movieClip 54 particle6 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_x = _x + xspeed;
_y = _y + yspeed;
yspeed += Math.random();
_xscale = _xscale * 0.9;
_yscale = _yscale * 0.9;
_alpha = _alpha * 0.99;
if (_xscale < 1) {
this.removeMovieClip();
}
}
}
xspeed = random(11) - 5;
yspeed = -7 + Math.random() * 8;
size = 50 + random(51);
_xscale = size;
_yscale = size;
}
}
movieClip 55 particle2 {
frame 1 {
function onEnterFrame() {
_x = _x + xspeed;
_y = _y + yspeed;
yspeed += Math.random();
_xscale = _xscale - 1;
_yscale = _yscale - 1;
}
xspeed = random(11) - 5;
yspeed = -7 + Math.random() * 8;
size = 50 + random(150);
_xscale = size;
_yscale = size;
colorhealth.gotoAndStop(_root.follower._currentframe);
}
}
movieClip 56 particle {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
_x = _x + xspeed;
_y = _y + yspeed;
yspeed += Math.random();
_xscale = _xscale - 1;
_yscale = _yscale - 1;
if (_root.player.hitTest(_x, _y, true)) {
if (_root.gameMode == '-Regular-') {
--_root.player.batterypower;
}
this.removeMovieClip();
}
if (_root.land.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.blasts.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.enemies.boss.started) {
if (_y < 50) {
_y = 550;
}
if (_y > 550) {
_y = 50;
}
}
} else {
stop();
}
}
xspeed = random(11) - 5;
yspeed = -7 + Math.random() * 8;
size = 50 + random(150);
_xscale = size;
_yscale = size;
colorhealth.gotoAndStop(_root.enemies.boss.health);
}
frame 25 {
removeMovieClip(this);
removeMovieClip(_parent);
}
}
movieClip 57 particle3How {
frame 1 {
function onEnterFrame() {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= fric;
yspeed *= fric;
speed *= fric;
_xscale = _xscale - 5;
_yscale = _yscale - 5;
++i;
if (i > 5) {
if (shift == 0) {
_rotation = _rotation + rotSpeed;
}
if (shift == 1) {
_rotation = _rotation - rotSpeed;
}
}
if (myRot == 1) {
if (Math.abs(xspeed) < 2) {
_rotation = _rotation - (5 + random(11));
}
}
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
if (_xscale < 0) {
this.removeMovieClip();
}
if (_root.land.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
var i = 0;
var speed = 5;
var rotSpeed = 10;
if (myRot == 0) {
_rotation = 0;
var xspeed = random(6) - 3;
var yspeed = -(2 + random(2));
while (xspeed == 0) {
xspeed = random(6) - 3;
}
if (xspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 1) {
_rotation = 90;
var yspeed = random(6) - 3;
var xspeed = 2 + random(2);
while (yspeed == 0) {
yspeed = random(6) - 3;
}
if (yspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 2) {
_rotation = 180;
rotSpeed *= 3;
var xspeed = random(6) - 3;
var yspeed = 2 + random(2);
while (xspeed == 0) {
xspeed = random(6) - 3;
}
if (xspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 3) {
_rotation = 270;
var yspeed = random(6) - 3;
var xspeed = -(2 + random(2));
while (yspeed == 0) {
yspeed = random(6) - 3;
}
if (yspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
var fric = 0.8;
}
}
movieClip 58 particle3 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= fric;
yspeed *= fric;
speed *= fric;
_xscale = _xscale - 5;
_yscale = _yscale - 5;
++i;
if (i > 5) {
if (shift == 0) {
_rotation = _rotation + rotSpeed;
}
if (shift == 1) {
_rotation = _rotation - rotSpeed;
}
if (myRot == 2) {
if (i > 15) {
if (shift == 0) {
_rotation = _rotation + rotSpeed * 2;
}
if (shift == 1) {
_rotation = _rotation - rotSpeed * 2;
}
}
}
}
if (myRot == 1) {
if (Math.abs(xspeed) < 2) {
_rotation = _rotation - (5 + random(11));
}
} else {
if (myRot == 3) {
if (Math.abs(xspeed) < 2) {
_rotation = _rotation + (5 + random(11));
}
} else {
if (myRot == 2) {
yspeed -= 0.5;
}
}
}
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
if (_xscale < 0) {
this.removeMovieClip();
}
if (_root.land.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
var i = 0;
var speed = 5;
var rotSpeed = 10;
if (myRot == 0) {
_rotation = 0;
var xspeed = random(6) - 3;
var yspeed = -(2 + random(2));
while (xspeed == 0) {
xspeed = random(6) - 3;
}
if (xspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 1) {
_rotation = 90;
var yspeed = random(6) - 3;
var xspeed = 2 + random(2);
while (yspeed == 0) {
yspeed = random(6) - 3;
}
if (yspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 2) {
_rotation = 180;
rotSpeed *= 3;
var xspeed = random(6) - 3;
var yspeed = 2 + random(2);
while (xspeed == 0) {
xspeed = random(6) - 3;
}
if (xspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
if (myRot == 3) {
_rotation = 270;
var yspeed = random(6) - 3;
var xspeed = -(2 + random(2));
while (yspeed == 0) {
yspeed = random(6) - 3;
}
if (yspeed > 0) {
shift = 0;
} else {
shift = 1;
}
}
var fric = 0.8;
}
}
movieClip 60 {
}
movieClip 61 {
}
// unknown tag 88 length 68
movieClip 65 {
}
movieClip 66 factbat {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= 0.95;
yspeed *= 0.95;
if (Math.abs(xspeed) < 0.5) {
xspeed = 0;
}
if (_root.land.hitTest(_x, _y + 1, true)) {
xspeed *= 0.9;
}
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
if (_y > 565) {
_y = 35;
}
if (_y < 35) {
_y = 565;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 2;
var adjustDec = 0.5;
var range = 105;
var xspeed = (random(31) - 15) / 4;
while (Math.abs(xspeed) < 2) {
xspeed = (random(31) - 15) / 4;
}
var yspeed = -7 - random(4);
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 68 {
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 74 {
}
movieClip 76 {
}
movieClip 77 {
}
movieClip 79 {
}
movieClip 83 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
}
movieClip 87 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
}
movieClip 89 {
}
movieClip 90 enemyBoom4 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 12 {
i = 0;
while (i < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _x + i * 3 + random(3) - 1, '_y': _y + i * 3 + random(3) - 1});
++i;
}
g = 0;
while (g < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _x + 30 - g * 3 + random(3) - 1, '_y': _y + g * 3 + random(3) - 1});
++g;
}
}
frame 16 {
this.removeMovieClip();
}
}
movieClip 92 {
}
movieClip 93 enemyBoom {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 12 {
i = 0;
while (i < 8) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x - 13 + i * 3 + random(3) - 1, '_y': _y - 13 + i * 3 + random(3) - 1});
++i;
}
g = 0;
while (g < 8) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + 13 - g * 3 + random(3) - 1, '_y': _y - 13 + g * 3 + random(3) - 1});
++g;
}
var chance = random(100);
var nextDepth = _root.batteries.base.getNextHighestDepth();
if (chance < 33) {
_root.batteries.base.attachMovie('battery5', 'battery5' + nextDepth, nextDepth, {'_x': _x, '_y': _y + 10});
}
}
frame 16 {
this.removeMovieClip();
}
}
movieClip 95 {
}
movieClip 96 spawn {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (alive) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= xfric;
yspeed *= yfric;
if (gravfall) {
yspeed += gravity;
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
_rotation = _rotation + xspeed * 2;
while (_root.land.hitTest(_x, _y + 12.68, true)) {
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (flow == 0) {
xspeed += speed;
if (_root.land.hitTest(_x + 31.75, _y, true)) {
flow = 1;
}
if (!_root.land.hitTest(_x + 31.75, _y + 15.875, true)) {
flow = 1;
}
}
if (flow == 1) {
xspeed -= speed;
if (_root.land.hitTest(_x - 31.75, _y, true)) {
flow = 0;
}
if (!_root.land.hitTest(_x - 31.75, _y + 15.875, true)) {
flow = 0;
}
}
}
while (_root.land.hitTest(_x, _y - 12.68, true)) {
gravfall = true;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 12.68, _y, true)) {
_x = _x - 1;
}
while (_root.land.hitTest(_x - 12.68, _y, true)) {
_x = _x + 1;
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
distance = Math.sqrt((_root.player._x - _x) * (_root.player._x - _x) + (_root.player._y - _y) * (_root.player._y - _y));
if (_root.player.blasting) {
if (distance < 15 + _root.shoot.blast._width / 2) {
play();
hit = -9001;
_root.enemies.boss.enemycount -= 1;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
}
if (hit > 1) {
play();
hit = -9001;
_root.enemies.boss.enemycount -= 1;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
if (_root.enemies.boss.health <= 0) {
play();
hit = -9001;
_root.enemies.boss.enemycount -= 1;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation;
alive = false;
}
}
}
var alive = true;
var gravfall = true;
var nextDepth = 0;
var xspeed = random(17) - 8;
var yspeed = -10 - random(6);
var speed = 0.65;
var gravity = 1;
var xfric = 0.9;
var yfric = 0.95;
var hit = 0;
var distance = 0;
var idle = false;
var flow = random(2);
}
frame 1 {
stop();
}
frame 3 {
this.removeMovieClip();
}
}
movieClip 97 enemyBoom3 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 12 {
i = 0;
while (i < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _x + i * 3 + random(3) - 1, '_y': _y + i * 3 + random(3) - 1});
++i;
}
g = 0;
while (g < 10) {
_root.particles2.base.attachMovie('particle6', 'particle6' + _root.particles2.base.getNextHighestDepth(), _root.particles2.base.getNextHighestDepth(), {'_x': _x + 30 - g * 3 + random(3) - 1, '_y': _y + g * 3 + random(3) - 1});
++g;
}
var nextDepth = _root.batteries.base.getNextHighestDepth();
_root.batteries.base.attachMovie('battery15', 'battery15' + nextDepth, nextDepth, {'_x': _x + 15, '_y': _y + 25});
}
frame 16 {
this.removeMovieClip();
}
}
movieClip 100 disruptHow {
frame 31 {
removeMovieClip(this);
}
}
movieClip 102 disrupt {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
stop();
}
frame 31 {
removeMovieClip(this);
}
}
movieClip 105 flyoff {
frame 1 {
function onEnterFrame() {
if (!dead) {
++i;
++yspeed;
_x = _x + xspeed;
_y = _y + yspeed;
_rotation = _rotation + xspeed * 3;
yspeed *= airfric;
xspeed *= 0.9;
if (i > 10) {
if (this.hitTestShape(_root.land)) {
dead = true;
xspeed = 0;
yspeed = 0;
play();
}
}
}
}
stop();
var dead = false;
_rotation = _root.temprot;
var i = 0;
var xspeed = -(random(6) + 5) / 2;
if (_root.player._x < _x) {
xspeed = Math.abs(xspeed);
}
var yspeed = 0;
var airfric = 0.95;
var speed = 0;
var rot = 0;
}
frame 10 {
removeMovieClip(this);
}
}
movieClip 108 {
frame 1 {
gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
}
}
movieClip 109 blast {
frame 1 {
function onEnterFrame() {}
}
}
movieClip 111 {
}
movieClip 112 binaryERROR {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
base._alpha += alphaInc;
if (base._alpha > 100) {
_x = _x + xSpeed;
_y = _y + ySpeed;
}
++i;
if (i > 60) {
this.removeMovieClip();
trace('HAHA');
}
}
}
_x = _x + (random(15) - 7);
_y = _y + (random(33) - 16);
var alphaInc = 10 + random(11);
var xSpeed = 0;
var ySpeed = 0;
for (;;) {
if (!(xSpeed == 0 || ySpeed == 0)) break;
xSpeed = random(11) - 5;
ySpeed = random(11) - 5;
}
var i = 0;
}
}
movieClip 154 binaryBits {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_y = _y + moveSpeed;
++i;
if (i > 60 / Math.abs(moveSpeed)) {
this.removeMovieClip();
}
}
}
gotoAndStop(random(41) + 1);
var i = 0;
}
}
movieClip 158 {
frame 26 {
stop();
}
}
movieClip 161 {
}
movieClip 162 factory {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (alive) {
setGreenH = timer * fillMult;
setBlueH = 20 - timer * fillMult;
base.chambers.green._height -= (base.chambers.green._height - setGreenH) / adjustSpeed;
base.chambers.blue._height -= (base.chambers.blue._height - setBlueH) / adjustSpeed;
if (running) {
++i;
++timer;
if (timer > timerMax) {
++created;
if (created >= 6) {
play();
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom4', 'enemyBoom4' + nextDepth, nextDepth, {'_x': _x - 15, '_y': _y - 75});
_root.particles3.base['enemyBoom4' + nextDepth].base.stack1.gotoAndStop(base.stack1._currentframe);
_root.particles3.base['enemyBoom4' + nextDepth].base.stack2.gotoAndStop(base.stack2._currentframe);
_root.particles3.base['enemyBoom4' + nextDepth].base.chambers.green._height = base.chambers.green._height;
_root.particles3.base['enemyBoom4' + nextDepth].base.chambers.blue._height = base.chambers.blue._height;
alive = false;
} else {
_root.batteries.base.attachMovie('factbat', 'factbat' + _root.batteries.base.getNextHighestDepth(), _root.batteries.base.getNextHighestDepth(), {'_x': _x, '_y': _y - 50});
}
timer = 0;
}
if (i > 2) {
i = 0;
ranCheck = random(3);
if (ranCheck == 0) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + nextDepth, nextDepth, {'_x': _x - 8, '_y': _y - 75});
_root.particles.base['particle7' + nextDepth].base.gotoAndStop(timer * (5 * fillMult));
} else {
if (ranCheck == 1) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + nextDepth, nextDepth, {'_x': _x, '_y': _y - 75});
_root.particles.base['particle7' + nextDepth].base.gotoAndStop(timer * (5 * fillMult));
} else {
if (ranCheck == 2) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + nextDepth, nextDepth, {'_x': _x - 8, '_y': _y - 75});
_root.particles.base['particle7' + nextDepth].gotoAndStop(timer * (5 * fillMult));
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + nextDepth, nextDepth, {'_x': _x, '_y': _y - 75});
_root.particles.base['particle7' + nextDepth].base.gotoAndStop(timer * (5 * fillMult));
}
}
}
}
}
}
}
}
var running = false;
var timer = 0;
var alive = true;
var i = 0;
var hit = 0;
var ranCheck = 0;
var timerMax = 60;
var fillMult = 20 / timerMax;
var adjustSpeed = 10;
var setGreenH = timer * fillMult;
var setBlueH = 20 - timer * fillMult;
var nextDepth = 0;
var created = 0;
base.chambers.green._height = setGreenH;
base.chambers.blue._height = setBlueH;
}
frame 15 {
stop();
running = true;
}
frame 18 {
stop();
}
}
movieClip 163 bossbat5 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= 0.95;
yspeed *= 0.95;
if (Math.abs(xspeed) < 0.5) {
xspeed = 0;
}
if (_root.land.hitTest(_x, _y + 1, true)) {
xspeed *= 0.9;
}
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
if (_y > 565) {
_y = 35;
}
if (_y < 35) {
_y = 565;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 2;
var adjustDec = 0.5;
var range = 105;
var xspeed = random(17) - 8;
var yspeed = -10 - random(6);
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 165 {
}
movieClip 166 bossbat15 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= 0.95;
yspeed *= 0.95;
if (_root.land.hitTest(_x, _y + 1, true)) {
xspeed *= 0.9;
}
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
if (_y > 565) {
_y = 35;
}
if (_y < 35) {
_y = 565;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 5;
var adjustDec = 1;
var range = 105;
var xspeed = random(17) - 8;
var yspeed = -10 - random(6);
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 168 {
}
movieClip 169 bossbat10 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= 0.95;
yspeed *= 0.95;
if (Math.abs(xspeed) < 0.5) {
xspeed = 0;
}
if (_root.land.hitTest(_x, _y + 1, true)) {
xspeed *= 0.9;
}
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
if (_y > 565) {
_y = 35;
}
if (_y < 35) {
_y = 565;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 4;
var adjustDec = 1;
var range = 105;
var xspeed = random(17) - 8;
var yspeed = -10 - random(6);
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 171 {
}
movieClip 172 bolt {
frame 1 {
stop();
}
frame 11 {
removeMovieClip(this);
}
}
movieClip 178 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
}
movieClip 179 spike {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_x = _x + xSpeed;
_y = _y + ySpeed;
if (!working) {
++ySpeed;
if (_root.land.hitTest(_x, _y + grab, true)) {
working = true;
}
}
if (working) {
++i;
_rotation = _rotation + speed * 2;
if (dir == 0) {
_y = _y + push;
xSpeed = speed;
ySpeed = 0;
if (i > ready) {
if (!_root.land.hitTest(_x - grab, _y + grab + 10, true)) {
i = 0;
dir = 1;
}
}
if (_root.land.hitTest(_x + grab, _y, true)) {
i = 0;
dir = 3;
}
}
if (dir == 1) {
_x = _x - push;
xSpeed = 0;
ySpeed = speed;
if (i > ready) {
if (!_root.land.hitTest(_x - grab - 10, _y - grab, true)) {
i = 0;
dir = 2;
}
}
if (_root.land.hitTest(_x, _y + grab, true)) {
i = 0;
dir = 0;
}
}
if (dir == 2) {
_y = _y - push;
xSpeed = -speed;
ySpeed = 0;
if (i > ready) {
if (!_root.land.hitTest(_x + grab, _y - grab - 10, true)) {
i = 0;
dir = 3;
}
}
if (_root.land.hitTest(_x - grab, _y, true)) {
i = 0;
dir = 1;
}
}
if (dir == 3) {
_x = _x + push;
xSpeed = 0;
ySpeed = -speed;
if (i > ready) {
if (!_root.land.hitTest(_x + grab + 10, _y + grab, true)) {
i = 0;
dir = 0;
}
}
if (_root.land.hitTest(_x, _y - grab, true)) {
i = 0;
dir = 2;
}
}
while (_root.land.hitTest(_x + grab - 1, _y, true)) {
_x = _x - 1;
}
while (_root.land.hitTest(_x - grab + 1, _y, true)) {
_x = _x + 1;
}
while (_root.land.hitTest(_x, _y + grab - 1, true)) {
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - grab + 1, true)) {
_y = _y + 1;
}
if (mySection != _root.levelSection) {
idle = true;
} else {
idle = false;
}
if (mySection == 0) {
if (_root.levelSection > 0) {
if (canDel) {
hit = 9001;
} else {
this.removeMovieClip();
}
}
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
distance = Math.sqrt((_root.player._x - _x) * (_root.player._x - _x) + (_root.player._y - _y) * (_root.player._y - _y));
if (_root.player.blasting) {
if (distance < 15 + _root.shoot.blast._width / 2) {
play();
hit = -9001;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation + 5;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
dead = true;
}
}
}
if (hit > 1) {
play();
hit = -9001;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation + 5;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
dead = true;
}
if (dead) {
working = false;
xSpeed = 0;
ySpeed = 0;
}
++canDel;
if (canDel > 60) {
if (_root.enemies['L' + _root.levelframe + 'f1'].hitTest(_x - w, _y, true)) {
removeMovieClip(this);
}
if (_root.enemies['L' + _root.levelframe + 'f2'].hitTest(_x - w, _y, true)) {
removeMovieClip(this);
}
if (_root.enemies['L' + _root.levelframe + 'f3'].hitTest(_x - w, _y, true)) {
removeMovieClip(this);
}
if (_root.enemies['L' + _root.levelframe + 'f4'].hitTest(_x - w, _y, true)) {
removeMovieClip(this);
}
}
}
}
}
stop();
var working = false;
var changer = true;
var canDel = 0;
var timer = 0;
var dir = 0;
var h = _height / 2;
var w = _width / 2;
var speed = 5;
var speedSave = speed;
var xSpeed = 0;
var ySpeed = 0;
var hit = 0;
var distance = 0;
var grab = 10.68;
var push = 5;
var ready = 2;
var i = 0;
}
frame 3 {
stop();
this.removeMovieClip();
}
}
movieClip 181 {
}
movieClip 182 battery30 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_y = _y + yspeed;
yspeed *= 0.95;
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
range -= 35;
if (range < rangeLow) {
range = rangeLow;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 10;
var adjustDec = 2.5;
var range = 210;
var rangeLow = 105;
var yspeed = -5;
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
if (placed) {
yspeed = 0;
}
while (_root.land.hitTest(_x, _y, true)) {
_y = _y - 1;
}
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 186 {
frame 1 {
stop();
}
}
movieClip 187 particle7 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
_y = _y + yspeed;
++i;
if (i > 30 + offset) {
_alpha = _alpha - (5 + random(6));
_xscale = _xscale - 0.5;
_yscale = _yscale - 0.5;
}
if (_alpha < 0) {
this.removeMovieClip();
}
}
}
var i = 0;
var offset = random(11);
var xspeed = 0;
var yspeed = -((6 + random(4)) / 10);
var sizeInc = Math.random();
_xscale = _xscale * (1 + sizeInc);
_yscale = _yscale * (1 + sizeInc);
_x = _x + (random(11) - 5) / 2;
}
}
movieClip 188 battery15 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_y = _y + yspeed;
yspeed *= 0.95;
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
range -= 35;
if (range < rangeLow) {
range = rangeLow;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 5;
var adjustDec = 1;
var range = 210;
var rangeLow = 105;
var yspeed = -5;
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
if (placed) {
yspeed = 0;
}
while (_root.land.hitTest(_x, _y, true)) {
_y = _y - 1;
}
}
frame 11 {
stop();
removeMovieClip(this);
}
}
movieClip 189 battery5 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
if (!hit) {
if (!following) {
_y = _y + yspeed;
yspeed *= 0.95;
} else {
if (player._y > _y) {
_y = _y + yspeed;
yspeed *= 0.95;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 20, true)) {
yspeed = 0;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x - 1;
}
while (_root.land.hitTest(_x - 7.5, _y - 10, true)) {
xspeed = 0;
yspeed = 0;
_x = _x + 1;
}
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
if (this.hitTest(_root.player.hit)) {
play();
hit = true;
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y + 15 - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
moveAngle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
if (dist < range || following) {
los = true;
x = 0;
while (x <= dist / 15) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 15;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 15;
if (_root.land.hitTest(point_x, point_y - 10, true)) {
los = false;
}
++x;
}
}
if (los) {
ySetOnce = true;
following = true;
} else {
following = false;
if (ySetOnce) {
ySetOnce = false;
yspeed = 0;
}
}
if (hit) {
following = false;
if (_root.gametype == '-Regular-') {
_root.player.batterypower += adjust;
if (adjust > 0) {
adjust -= adjustDec;
}
}
}
if (_root.player.dead) {
following = false;
}
if (following) {
if (_yspeed > 0) {
if (Math.abs(speed) < Math.abs(yspeed)) {
speed = -Math.abs(yspeed);
}
}
speed -= speedInc;
if (moveAngle > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x - speed * Math.sin(0.0174532925199433 * moveAngle);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * moveAngle);
_x = _x + speed * Math.sin(0.0174532925199433 * moveAngle);
}
} else {
speed = 0;
}
range -= 35;
if (range < rangeLow) {
range = rangeLow;
}
} else {
stop();
}
}
stop();
var los = false;
var hit = false;
var adjust = 2;
var adjustDec = 0.5;
var range = 210;
var rangeLow = 105;
var yspeed = -5;
var xDist = 0;
var yDist = 0;
var dist = 0;
var angle = 0;
var moveAngle = 0;
var speed = -1;
var speedInc = 0.5;
var ySetOnce = false;
if (placed) {
yspeed = 0;
}
while (_root.land.hitTest(_x, _y, true)) {
_y = _y - 1;
}
}
frame 11 {
stop();
removeMovieClip(this);
}
}
// unknown tag 88 length 108
movieClip 192 mbat {
frame 1 {
stop();
}
frame 11 {
_y = -50;
}
}
movieClip 195 {
}
movieClip 196 {
}
movieClip 198 {
frame 1 {
base._y -= random(181);
}
}
movieClip 199 cap2 {
}
movieClip 200 {
frame 1 {
base._y -= random(181);
}
}
movieClip 201 cap {
}
frame 1 {
function sponsorSite() {
getURL('http://armorgames.com', 'blank');
}
function developerSite() {
doNothing();
}
function deadClick() {}
function musicOn() {
_root.music.running = true;
}
function musicOff() {
_root.music.running = false;
}
function lowClick() {
_quality = 'LOW';
}
function medClick() {
_quality = 'MEDIUM';
}
function highClick() {
_quality = 'HIGH';
}
function onEnterFrame() {
if (!forceLock) {
if (fpsMovie._visible) {
fpsMovie.fpsCounter.text = 'FPS: ' + getFPS();
}
levelframe = _currentframe - 7;
_root.wide.died.text = 'Died: ' + deaths;
_root.wide.levels.text = 'Level ' + levelframe;
if (_root.wide.levels.text == 'Level 32') {
_root.wide.levels.text = 'Level 31';
}
_root.wide.levelcode = levelarray[levelframe - 1];
_root.wide.battery.charge._width = _root.player.batterypower * 1.886;
_root.player.inside.complete.ballpower.gotoAndStop(Math.round(_root.player.batterypower));
if (Key.isDown(81)) {
if (onceDown) {
onceDown = false;
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
}
} else {
onceDown = true;
}
if (Key.isDown(80)) {
if (onceDown2) {
if (!_root.player.stopMotion) {
if (_currentframe == 39 && _root.enemies.boss.health > 0 || _currentframe <= 38) {
onceDown2 = false;
if (gamePaused) {
gamePaused = false;
} else {
if (!gamePaused) {
if (pauseMenu._currentframe == _root.pauseMenu.baseFrame) {
gamePaused = true;
}
}
}
}
}
}
} else {
onceDown2 = true;
}
} else {
gamePirateLock._visible = true;
}
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var lowText = new ContextMenuItem('Low Quality', lowClick);
myMenu.customItems.push(lowText);
var medText = new ContextMenuItem('Medium Quality', medClick);
myMenu.customItems.push(medText);
var highText = new ContextMenuItem('High Quality', highClick);
myMenu.customItems.push(highText);
var musicGo = new ContextMenuItem('Stop Music', musicOff);
musicGo.separatorBefore = true;
myMenu.customItems.push(musicGo);
var musicStop = new ContextMenuItem('Play Music', musicOn);
myMenu.customItems.push(musicStop);
var sponsorText = new ContextMenuItem('ArmorGames.com Home', sponsorSite);
sponsorText.separatorBefore = true;
myMenu.customItems.push(sponsorText);
var developerText = new ContextMenuItem('© 2012 Pyroflame Games', developerSite);
myMenu.customItems.push(developerText);
_root.menu = myMenu;
var onceDown = false;
var onceDown2 = false;
var saveXScale = 74.346923828125;
var saveYScale = 74.346923828125;
var savefile = SharedObject.getLocal('MagnetBall');
var savefileFun = SharedObject.getLocal('MagnetBallFun');
var levelframe = _currentframe - 7;
var levelarray = ['Take it Easy', 'Staircase and More', 'Strange Staircase', 'Magnetic Disruptor', 'Turret Tantrum', 'Excessive Heat', 'The Cake is a Lie', 'A Lack of Energy', 'Layered Platforms', 'The Clever Lever', 'Creepy Crawlies', 'The Pipes are Calling', 'Rushing Tide', 'So Close Yet so Far', 'Second Chances', 'Dual Prevention', 'Base Assult', 'The Underground', 'Drawbridge', 'System of a Down', 'Pragmatism to Live', 'Three by Four', 'Heaven and Hell', 'Anything but Six', 'Exterior Lines', 'Grid System', 'Breathing Room', 'Jagged Enclosure', 'Surprise Assault', 'Last Repose', 'Electrifying End', 'Electrifying End'];
var batarray = [100, 100, 45, 50, 60, 70, 60, 25, 65, 80, 50, 80, 70, 80, 15, 70, 40, 60, 80, 45, 40, 80, 70, 100, 90, 65, 60, 80, 100, 95, 100, 25, 25, 25];
var levelSection = 0;
var gamePaused = true;
var forceLock = false;
var introPass = false;
_global.checkForCollision = function (p_clip1, p_clip2, p_alphaTolerance) {
if (_root.stageMaskRect) {
_root.stageMaskRect._width = Stage.width;
_root.stageMaskRect._height = Stage.height;
_root.stageMaskRect._x = 0;
_root.stageMaskRect._y = 0;
} else {
_root.createEmptyMovieClip('stageMaskRect', 0);
_root.stageMaskRect.beginFill(16711680, 0);
_root.stageMaskRect.moveTo(0, 0);
_root.stageMaskRect.lineTo(Stage.width, 0);
_root.stageMaskRect.lineTo(Stage.width, Stage.height);
_root.stageMaskRect.lineTo(0, Stage.height);
_root.stageMaskRect.endFill();
_root.stageMaskRect._x = 0;
_root.stageMaskRect._y = 0;
}
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var v4 = p_clip1.getBounds(_root);
var v3 = p_clip2.getBounds(_root);
if (v4.xMax < v3.xMin || v3.xMax < v4.xMin || (v4.yMax < v3.yMin || v3.yMax < v4.yMin)) {
return null;
}
var v2 = {};
v2.xMin = Math.max(v4.xMin, v3.xMin);
v2.xMax = Math.min(v4.xMax, v3.xMax);
v2.yMin = Math.max(v4.yMin, v3.yMin);
v2.yMax = Math.min(v4.yMax, v3.yMax);
var v7 = new flash.display.BitmapData(_root.stageMaskRect._width, _root.stageMaskRect._height, false);
var v5 = p_clip1.transform.concatenatedMatrix;
v5.tx -= v2.xMin;
v5.ty -= v2.yMin;
v7.draw(p_clip1, v5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
v5 = p_clip2.transform.concatenatedMatrix;
v5.tx -= v2.xMin;
v5.ty -= v2.yMin;
v7.draw(p_clip2, v5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), 'difference');
var v6 = v7.getColorBoundsRect(4294967295.0, 4278255615.0);
if (v6.width == 0) {
return null;
}
v6.x += v2.xMin;
v6.y += v2.yMin;
return v6;
};
MovieClip.prototype.hitTestShape = function (mc) {
var v2 = checkForCollision(this, mc, 120);
if (v2) {
return true;
} else {
return false;
}
};
Object.prototype.getFPS = function () {
if (signal == true) {
time = getTimer();
signal = !signal;
return rate;
}
rate = int(1000 / (getTimer() - time));
signal = !signal;
return rate;
};
}
frame 1 {
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root.forceLock = true;
}
}
urls_allowed = ['ArmorGames.com', 'games.armorgames.com', 'cache.armorgames.com', 'cdn.armorgames.com', 'preview.armorgames.com', 'gamemedia.armorgames.com', '*.armorgames.com', 'www.armorgames.com', 'www.ArmorGames.com'];
sitelock(urls_allowed);
}
movieClip 204 {
}
movieClip 206 {
}
movieClip 207 {
}
movieClip 210 {
}
movieClip 212 {
}
button 214 {
on (release) {
if (!_root.forceLock) {
getURL('http://armorgames.com', 'blank');
}
}
}
movieClip 219 {
}
movieClip 224 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 41 {
gotoAndPlay(21);
}
}
movieClip 226 {
}
// unknown tag 88 length 74
movieClip 231 {
}
movieClip 232 {
frame 1 {
stop();
}
frame 40 {
stop();
}
}
movieClip 235 {
}
movieClip 237 {
}
movieClip 238 {
instance of movieClip 237 {
onClipEvent (release) {
getURL('http://get.adobe.com/flashplayer/', 'blank');
}
}
}
movieClip 239 {
frame 1 {
stop();
}
frame 40 {
stop();
}
}
movieClip 240 {
instance portal of movieClip 224 {
onClipEvent (load) {
var i = 0;
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
++i;
if (i > 20) {
if (_currentframe < 21) {
gotoAndPlay(21);
}
_root.preloader.base.play();
i = -100000000000000.0;
}
}
}
}
instance preloader of movieClip 240 {
onClipEvent (load) {
error._visible = false;
var versionNumber = /:$version;
var versionArray = versionNumber.split(',');
var length = versionArray.length;
var i = 0;
while (i < length) {
++i;
}
var platformAndVersion = versionArray[0].split(' ');
var j = 0;
while (j < 2) {
++j;
}
var majorVersion = parseInt(platformAndVersion[1]);
var minorVersion = parseInt(versionArray[1]);
var buildNumber = parseInt(versionArray[2]);
var validPlayer = false;
var i = 0;
var totalb = _root.getBytesTotal();
var totalkb = int(totalb / 1024);
}
onClipEvent (enterFrame) {
if (!_root.forceLock) {
if (majorVersion >= 8) {
validPlayer = true;
}
if (validPlayer) {
error._visible = false;
base._visible = true;
++i;
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
if (i > 30) {
_root.flashbacks.gotoAndStop('next');
} else {
if (!_root.lock) {
_root.nextFrame();
}
}
} else {
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
_root.preloader.base.words.percent.text = int(percent) + '%';
pl1 = '' + int(percent) + '%';
pl2 = '' + loadedkb + ' / ' + totalkb + ' kb';
}
} else {
if (error._currentframe == 1) {
error.play();
}
error._visible = true;
base._visible = false;
}
} else {
gotoAndStop(1);
_root.gamePirateLock._visible = true;
}
}
}
movieClip 244 {
}
movieClip 246 {
}
movieClip 248 {
}
// unknown tag 88 length 95
movieClip 252 {
}
instance gamePirateLock of movieClip 252 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (mouseDown) {
if (_visible) {
getURL('http://gamepirate.com', 'blank');
}
}
}
movieClip 253 {
}
movieClip 254 {
}
movieClip 255 {
frame 6 {
_root.pauseMenu.gotoAndPlay(1);
_root.gamePaused = true;
++_root.wide.level;
_root.nextFrame();
if (_root.introPass) {
_root.nextFrame();
_root.introPass = false;
}
_root.player._rotation = 0;
_root.player.flagLock = false;
_root.player.noControl = false;
_root.player.i = 0;
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
_root.player.dead = false;
_root.player.stopMotion = false;
_root.player.rot = 0;
_root.player.rooftouch = false;
_root.player.righttouch = false;
_root.player.lefttouch = false;
_root.player.gravfall = true;
_root.player.disrupted = false;
_root.player.offjumpcd = 0;
_root.player.blasttimer = 30;
_root.player.guntimer = 10;
_root.player.blasting = false;
_root.player.vertPunishn = true;
_root.player.hadWallJumped = 0;
_root.player.noSwoop = false;
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
_root.portalFly.nextFrame();
_root.portalFly.prevFrame();
if (_root._currentframe != 38) {
_root.spawnBack._x = _root.player._x;
_root.spawnBack._y = _root.player._y;
_root.spawnBack.gotoAndPlay(1);
_root.spawnFront._x = _root.player._x;
_root.spawnFront._y = _root.player._y;
_root.spawnFront.gotoAndPlay(1);
}
_root.player.gotoAndStop(1);
_root.player.inside.complete._rotation = 0;
_root.player.dead = false;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.player._xscale = _root.saveXScale;
_root.player._yscale = _root.saveYScale;
_root.player.stopMotion = false;
_root.laser.gotoAndStop(1);
_root.laser2.gotoAndStop(1);
_root.blasts.nextFrame();
_root.blasts.prevFrame();
_root.shoot.nextFrame();
_root.shoot.prevFrame();
_root.disrupts.nextFrame();
_root.disrupts.prevFrame();
_root.bolts.nextFrame();
_root.bolts.prevFrame();
_root.particles.nextFrame();
_root.particles.prevFrame();
_root.particles2.nextFrame();
_root.particles2.prevFrame();
_root.particles3.nextFrame();
_root.particles3.prevFrame();
_root.levelSection = 0;
enemysave = _root.enemies._currentframe + 1;
_root.enemies.gotoAndStop(60);
_root.enemies.gotoAndStop(enemysave);
_root.eshoot.nextFrame();
_root.eshoot.prevFrame();
_root.batteries.nextFrame();
_root.batteries.prevFrame();
_root.enemies.base.play();
if (_root.gametype != '-Endless-') {
_root.player.batterypower = _root.batarray[_root.levelframe];
} else {
_root.player.batterypower = 100;
}
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.cam._x = _root.player._x;
_root.screen._x = _root.player._x;
_root.wode._x = _root.player._x;
if (_root.fileselect == 1) {
_root.savelevel1 = Math.abs(_root.levelframe) + 1;
if (_root.savelevel1 > 31) {
_root.savelevel1 = 31;
}
_root.savefile.data.levelNumber1 = _root.savelevel1;
_root.savefile.flush();
}
if (_root.fileselect == 2) {
_root.savelevel2 = Math.abs(_root.levelframe) + 1;
if (_root.savelevel2 > 31) {
_root.savelevel2 = 31;
}
_root.savefile.data.levelNumber2 = _root.savelevel2;
_root.savefile.flush();
}
if (_root.fileselect == 3) {
_root.savelevel3 = Math.abs(_root.levelframe) + 1;
if (_root.savelevel3 > 31) {
_root.savelevel3 = 31;
}
_root.savefile.data.levelNumber3 = _root.savelevel3;
_root.savefile.flush();
}
if (_root.fileselect == 4) {
_root.savelevel4 = Math.abs(_root.levelframe) + 1;
if (_root.savelevel4 > 31) {
_root.savelevel4 = 31;
}
_root.savefile.data.levelNumber4 = _root.savelevel4;
_root.savefile.flush();
}
if (_root.levelframe > _root.highestLevelInfo) {
_root.highestLevelInfo = _root.levelframe;
_root.savefileFun.data.highestLevel = _root.highestLevelInfo;
_root.savefileFun.flush();
}
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 256 {
frame 6 {
_root.pauseMenu.gotoAndPlay(1);
_root.deaths += 1;
_root.totalDeathsInfo += 1;
_root.savefileFun.data.totalDeaths = _root.totalDeathsInfo;
_root.savefileFun.flush();
_root.gamePaused = true;
if (_root._currentframe != 39) {
_root.prevFrame();
_root.nextFrame();
} else {
_root.prevFrame();
}
_root.player._rotation = 0;
_root.player.flagLock = false;
_root.player.noControl = false;
_root.player.i = 0;
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
_root.player.dead = false;
_root.player.stopMotion = false;
_root.player.rot = 0;
_root.player.rooftouch = false;
_root.player.righttouch = false;
_root.player.lefttouch = false;
_root.player.gravfall = true;
_root.player.disrupted = false;
_root.player.offjumpcd = 0;
_root.player.blasttimer = 30;
_root.player.guntimer = 10;
_root.player.blasting = false;
_root.player.vertPunishn = true;
_root.player.hadWallJumped = 0;
_root.player.noSwoop = false;
_root.portalFly.nextFrame();
_root.portalFly.prevFrame();
if (_root._currentframe != 38) {
_root.spawnBack._x = _root.player._x;
_root.spawnBack._y = _root.player._y;
_root.spawnBack.gotoAndPlay(1);
_root.spawnFront._x = _root.player._x;
_root.spawnFront._y = _root.player._y;
_root.spawnFront.gotoAndPlay(1);
}
_root.player.gotoAndStop(1);
_root.player.inside.complete._rotation = 0;
_root.player.dead = false;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.player._xscale = _root.saveXScale;
_root.player._yscale = _root.saveYScale;
_root.player.stopMotion = false;
_root.laser.gotoAndStop(1);
_root.laser2.gotoAndStop(1);
_root.shoot.nextFrame();
_root.shoot.prevFrame();
_root.disrupts.nextFrame();
_root.disrupts.prevFrame();
_root.disruptors.nextFrame();
_root.disruptors.prevFrame();
_root.particles.nextFrame();
_root.particles.prevFrame();
_root.particles2.nextFrame();
_root.particles2.prevFrame();
_root.particles3.nextFrame();
_root.particles3.prevFrame();
_root.bolts.nextFrame();
_root.bolts.prevFrame();
_root.enemies.base.play();
_root.levelSection = 0;
enemysave = _root.enemies._currentframe;
_root.enemies.gotoAndStop(60);
_root.enemies.gotoAndStop(enemysave);
_root.eshoot.nextFrame();
_root.eshoot.prevFrame();
_root.batteries.nextFrame();
_root.batteries.prevFrame();
if (_root.gametype != '-Endless-') {
_root.player.batterypower = _root.batarray[_root.levelframe - 1];
} else {
_root.player.batterypower = 100;
}
_root.cam._x = _root.player._x;
_root.screen._x = _root.player._x;
_root.wode._x = _root.player._x;
if (_root.fileselect == 1) {
if (_root.savedeath1 < _root.deaths) {
_root.savedeath1 = _root.deaths;
}
_root.savefile.data.deathCount1 = _root.savedeath1;
_root.savefile.flush();
}
if (_root.fileselect == 2) {
if (_root.savedeath2 < _root.deaths) {
_root.savedeath2 = _root.deaths;
}
_root.savefile.data.deathCount2 = _root.savedeath2;
_root.savefile.flush();
}
if (_root.fileselect == 3) {
if (_root.savedeath3 < _root.deaths) {
_root.savedeath3 = _root.deaths;
}
_root.savefile.data.deathCount3 = _root.savedeath3;
_root.savefile.flush();
}
if (_root.fileselect == 4) {
if (_root.savedeath4 < _root.deaths) {
_root.savedeath4 = _root.deaths;
}
_root.savefile.data.deathCount4 = _root.savedeath4;
_root.savefile.flush();
}
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 257 {
frame 6 {
_root.MouseD = false;
++_root.wide.deaths;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.nextFrame();
_root.prevFrame();
_root.levelSection = 0;
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 258 {
frame 6 {
_quality = 'HIGH';
_root.levelSection = 0;
if (_root._currentframe == 39) {
if (_root.winning._currentframe > 1) {
if (_root.fileselect == 1) {
_root.savelevel1 = 1;
_root.savedeath1 = 0;
_root.gameMode1 = '-Game Mode-';
_root.savefile.data.levelNumber1 = 1;
_root.savefile.data.deathCount1 = 0;
_root.savefile.data.gameMode1 = '-Game Mode-';
_root.savefile.flush();
}
if (_root.fileselect == 2) {
_root.savelevel2 = 1;
_root.savedeath2 = 0;
_root.gameMode2 = '-Game Mode-';
_root.savefile.data.levelNumber2 = 1;
_root.savefile.data.deathCount2 = 0;
_root.savefile.data.gameMode2 = '-Game Mode-';
_root.savefile.flush();
}
if (_root.fileselect == 3) {
_root.savelevel3 = 1;
_root.savedeath3 = 0;
_root.gameMode3 = '-Game Mode-';
_root.savefile.data.levelNumber3 = 1;
_root.savefile.data.deathCount3 = 0;
_root.savefile.data.gameMode3 = '-Game Mode-';
_root.savefile.flush();
}
if (_root.fileselect == 4) {
_root.savelevel4 = 1;
_root.savedeath4 = 0;
_root.gameMode4 = '-Game Mode-';
_root.savefile.data.levelNumber4 = 1;
_root.savefile.data.deathCount4 = 0;
_root.savefile.data.gameMode4 = '-Game Mode-';
_root.savefile.flush();
}
}
}
_root.gotoAndStop('mainmenu');
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 259 {
frame 6 {
_root.gotoAndStop('tutorial');
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 260 {
frame 6 {
_quality = 'MEDIUM';
_root.gamePaused = true;
_root.spawnBack._x = _root.player._x;
_root.spawnBack._y = _root.player._y;
_root.spawnBack.play();
_root.spawnFront._x = _root.player._x;
_root.spawnFront._y = _root.player._y;
_root.spawnFront.play();
if (_root.fileselect == 1) {
_root.deaths = _root.savedeath1;
if (_root.savelevel1 > 1) {
_root.gotoAndStop(_root.savelevel1 + 7);
} else {
_root.gotoAndStop('levels');
}
}
if (_root.fileselect == 2) {
_root.deaths = _root.savedeath2;
if (_root.savelevel2 > 1) {
_root.gotoAndStop(_root.savelevel2 + 7);
} else {
_root.gotoAndStop('levels');
}
}
if (_root.fileselect == 3) {
_root.deaths = _root.savedeath3;
if (_root.savelevel3 > 1) {
_root.gotoAndStop(_root.savelevel3 + 7);
} else {
_root.gotoAndStop('levels');
}
}
if (_root.fileselect == 4) {
_root.deaths = _root.savedeath4;
if (_root.savelevel4 > 1) {
_root.gotoAndStop(_root.savelevel4 + 7);
} else {
_root.gotoAndStop('levels');
}
}
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 261 {
frame 6 {
_root.gotoAndStop('levelselect');
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 262 {
frame 6 {
_root.gotoAndStop('boss');
_root.player.batterypower = 100;
}
frame 11 {
_root.flashbacks.gotoAndStop('stop');
}
}
movieClip 263 {
frame 1 {
stop();
}
}
instance flashbacks of movieClip 263 {
onClipEvent (enterFrame) {
this._x = _root.cam._x;
}
}
frame 2 {
stop();
}
movieClip 271 {
}
movieClip 277 {
}
movieClip 280 {
frame 1 {
gotoAndPlay(2);
}
frame 225 {
stop();
_root.introPass = true;
_root.gotoAndStop(4);
}
}
instance gamePirateBG of movieClip 280 {
onClipEvent (release) {
getURL('http://armorgames.com', 'blank');
}
}
frame 4 {
stop();
var deaths = 0;
}
movieClip 282 {
}
// unknown tag 88 length 73
movieClip 286 {
}
movieClip 287 {
}
movieClip 291 {
}
movieClip 293 {
}
movieClip 295 {
}
movieClip 298 {
}
movieClip 299 {
frame 1 {
base._alpha += random(11);
}
}
movieClip 301 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 308 {
}
movieClip 309 {
}
movieClip 311 {
}
movieClip 312 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 320 {
}
movieClip 321 {
}
movieClip 325 {
}
movieClip 327 {
}
movieClip 329 {
}
movieClip 330 {
}
movieClip 334 {
}
movieClip 336 {
}
movieClip 338 {
}
movieClip 339 {
}
movieClip 343 {
}
movieClip 345 {
}
movieClip 347 {
}
movieClip 348 {
}
movieClip 349 {
frame 1 {
function onEnterFrame() {
rotSpeed *= 0.75;
}
var rotSpeed = 0;
gotoAndStop(random(5) + 2);
}
instance of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance of movieClip 312 {
onClipEvent (load) {
gear.base.gotoAndStop(random(3) + 1);
if (gear.base._currentframe == 1) {
peg.base.gotoAndStop(2);
}
if (gear.base._currentframe == 2) {
var ran = random(2);
if (ran == 0) {
peg.base.gotoAndStop(1);
} else {
peg.base.gotoAndStop(3);
}
}
if (gear.base._currentframe == 3) {
peg.base.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
} else {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
instance of movieClip 321 {
onClipEvent (load) {
gear.base.gotoAndStop(random(3) + 1);
if (gear.base._currentframe == 1) {
peg.base.gotoAndStop(2);
}
if (gear.base._currentframe == 2) {
var ran = random(2);
if (ran == 0) {
peg.base.gotoAndStop(1);
} else {
peg.base.gotoAndStop(3);
}
}
if (gear.base._currentframe == 3) {
peg.base.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
} else {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
instance of movieClip 330 {
onClipEvent (load) {
gear.base.gotoAndStop(random(3) + 1);
if (gear.base._currentframe == 1) {
peg.base.gotoAndStop(2);
}
if (gear.base._currentframe == 2) {
var ran = random(2);
if (ran == 0) {
peg.base.gotoAndStop(1);
} else {
peg.base.gotoAndStop(3);
}
}
if (gear.base._currentframe == 3) {
peg.base.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
} else {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
instance of movieClip 339 {
onClipEvent (load) {
gear.base.gotoAndStop(random(3) + 1);
if (gear.base._currentframe == 1) {
peg.base.gotoAndStop(2);
}
if (gear.base._currentframe == 2) {
var ran = random(2);
if (ran == 0) {
peg.base.gotoAndStop(1);
} else {
peg.base.gotoAndStop(3);
}
}
if (gear.base._currentframe == 3) {
peg.base.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
} else {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
instance of movieClip 348 {
onClipEvent (load) {
gear.base.gotoAndStop(random(3) + 1);
if (gear.base._currentframe == 1) {
peg.base.gotoAndStop(2);
}
if (gear.base._currentframe == 2) {
var ran = random(2);
if (ran == 0) {
peg.base.gotoAndStop(1);
} else {
peg.base.gotoAndStop(3);
}
}
if (gear.base._currentframe == 3) {
peg.base.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
} else {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
}
// unknown tag 88 length 108
movieClip 354 {
}
movieClip 356 {
}
movieClip 358 {
}
movieClip 360 {
}
movieClip 362 {
}
movieClip 364 {
}
movieClip 367 {
}
movieClip 369 {
}
movieClip 371 {
}
movieClip 374 {
}
movieClip 376 {
}
movieClip 377 {
}
movieClip 379 {
}
movieClip 380 {
}
movieClip 381 {
}
movieClip 382 {
frame 1 {
stop();
}
instance base of movieClip 381 {
onClipEvent (load) {
_root['mb' + _parent.mbID].stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
_root['mb' + _parent.mbID].nextFrame();
_root['g' + _parent.mbID + 'A'].rotSpeed += 2;
_root['g' + _parent.mbID + 'B'].rotSpeed += 2;
} else {
_root['mb' + _parent.mbID].prevFrame();
}
}
onClipEvent (release) {
if (_parent.mbID == 1) {
_root.flashbacks.gotoAndStop('levelselect');
} else {
if (_parent.mbID == 2) {
_root.flashbacks.gotoAndStop('tutorial');
} else {
if (_parent.mbID == 3) {
_root.highScores.looking = true;
} else {
getURL('http://armorgames.com', 'blank');
}
}
}
}
}
}
instance mb1Clicker of movieClip 382 {
onClipEvent (load) {
var mbID = 1;
}
}
instance mb2Clicker of movieClip 382 {
onClipEvent (load) {
var mbID = 2;
}
}
instance mb3Clicker of movieClip 382 {
onClipEvent (load) {
var mbID = 3;
}
}
instance mb4Clicker of movieClip 382 {
onClipEvent (load) {
var mbID = 4;
}
}
movieClip 384 {
}
movieClip 388 {
}
movieClip 390 {
}
movieClip 391 {
}
movieClip 392 {
}
movieClip 393 {
}
movieClip 394 {
frame 1 {
stop();
}
}
instance of movieClip 394 {
onClipEvent (release) {
getURL('http://pyroflame.com/', 'blank');
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
movieClip 396 {
}
movieClip 397 {
frame 1 {
stop();
}
}
movieClip 399 {
}
movieClip 400 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 401 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 403 {
}
movieClip 404 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 405 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 407 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 408 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 16) {
play();
}
}
} else {
stop();
}
}
}
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 410 {
}
movieClip 412 {
}
movieClip 415 {
}
movieClip 416 {
}
movieClip 417 {
instance r1b of movieClip 401 {
onClipEvent (enterFrame) {
_rotation = _parent.r1a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r2b of movieClip 405 {
onClipEvent (enterFrame) {
_rotation = _parent.r2a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r3b of movieClip 408 {
onClipEvent (enterFrame) {
_rotation = _parent.r3a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r1a of movieClip 401 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r2a of movieClip 405 {
onClipEvent (load) {
var alive = true;
var flow = 1;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r3a of movieClip 408 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
}
movieClip 418 {
instance r1b of movieClip 401 {
onClipEvent (enterFrame) {
_rotation = _parent.r1a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r2b of movieClip 405 {
onClipEvent (enterFrame) {
_rotation = _parent.r2a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r3b of movieClip 408 {
onClipEvent (enterFrame) {
_rotation = _parent.r3a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r1a of movieClip 401 {
onClipEvent (load) {
var alive = true;
var flow = 1;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r2a of movieClip 405 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r3a of movieClip 408 {
onClipEvent (load) {
var alive = true;
var flow = 1;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
}
movieClip 420 {
}
movieClip 422 {
}
movieClip 423 {
frame 1 {
stop();
}
}
movieClip 425 {
}
movieClip 427 {
}
movieClip 428 {
}
movieClip 429 {
}
movieClip 430 {
frame 1 {
stop();
}
}
movieClip 431 {
}
movieClip 434 {
}
movieClip 436 {
instance logo of movieClip 431 {
onClipEvent (load) {
var over = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
over = true;
} else {
over = false;
}
if (_root.highScores.looking) {
over = false;
}
if (over) {
sheild.nextFrame();
logoName.nextFrame();
} else {
sheild.prevFrame();
logoName.prevFrame();
}
}
}
}
instance mb5 of movieClip 436 {
onClipEvent (load) {
glow._alpha = 0;
var over = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
over = true;
} else {
over = false;
}
if (_root.highScores.looking) {
over = false;
}
if (over) {
glow._x = _root._xmouse - 590;
glow._y = _root._ymouse - 400;
if (glow._alpha < 100) {
glow._alpha += 10;
}
}
if (!over) {
if (glow._alpha > 0) {
glow._alpha -= 10;
}
}
}
}
movieClip 442 {
frame 1 {
stop();
}
frame 100 {
_root.follower.dead = true;
}
}
instance follower of movieClip 442 {
onClipEvent (load) {
_x = _root._xmouse;
var dead = false;
var mouseseeking = true;
var pressed = false;
var i = -10000000000.0;
var h = _height / 2;
var xspeed = 0;
var yspeed = 0;
var limit = 30;
}
onClipEvent (enterFrame) {
_rotation = _rotation + xspeed * 2;
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= 0.9;
yspeed *= 0.95;
++yspeed;
++i;
if (i > 0) {
i = -10000000000.0;
mouseseeking = true;
}
while (_root.land.hitTest(_x, _y + 17.68, true)) {
_y = _y - 1;
yspeed = 0;
}
if (!dead) {
if (mouseseeking) {
if (_root._xmouse > _x + limit) {
xspeed += 0.86;
}
if (_root._xmouse < _x - limit) {
xspeed -= 0.86;
}
}
if (pressed) {
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
nextFrame();
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle2', 'particle2' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
pressed = false;
mouseseeking = false;
if (_x > 120 && _x < 560) {
xspeed = random(31) - 15;
if (xspeed >= 0 && xspeed < 10) {
xspeed = 10;
}
if (xspeed < 0 && xspeed > -10) {
xspeed = -10;
}
} else {
if (_x >= 90 && _x <= 165) {
xspeed = 10;
} else {
if (_x >= 535 && _x <= 610) {
xspeed = -10;
}
}
}
}
if (!mouseseeking) {
if (i < -100) {
if (Math.round(xspeed) == 0) {
mouseseeking = true;
}
}
}
}
while (_x < 90) {
_x = _x + 1;
xspeed = 0;
}
while (_x > 610) {
_x = _x - 1;
xspeed = 0;
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
}
onClipEvent (press) {
pressed = true;
}
}
instance mbattery of movieClip 192 mbat {
onClipEvent (load) {
stop();
var dragging = false;
var once = true;
var ran = 0;
var yspeed = 0;
var adjust = 5;
}
onClipEvent (enterFrame) {
if (_root.follower._currentframe == 100) {
if (once) {
_x = random(525) + 80;
once = false;
}
if (!dragging) {
if (!_root.land.hitTest(_x, _y, true)) {
++yspeed;
}
yspeed *= 0.95;
_y = _y + yspeed;
}
}
while (_root.land.hitTest(_x, _y, true)) {
yspeed = 0;
_y = _y - 1;
}
while (_root.land.hitTest(_x, _y - 26.7, true)) {
yspeed = 0;
_y = _y + 1;
}
if (this.hitTestShape(_root.follower)) {
play();
_root.mbattery.stopDrag();
dragging = false;
_root.follower.gotoAndStop(1);
_root.follower.pressed = false;
_root.follower.dead = false;
_root.follower.mouseseeking = false;
_root.follower.i = -30;
once = true;
}
if (Math.round(yspeed) == 0) {
yspeed = 0;
}
while (_y > 140) {
_y = _y - 1;
}
while (_x < 90) {
_x = _x + 1;
}
while (_x > 610) {
_x = _x - 1;
}
if (_root._ymouse > _y || _root._xmouse > _x + 15 || _root._xmouse < _x - 15) {
_root.mbattery.stopDrag();
dragging = false;
}
}
onClipEvent (press) {
_root.mbattery.startDrag();
dragging = true;
}
onClipEvent (release, releaseOutside) {
_root.mbattery.stopDrag();
dragging = false;
}
}
instance mb5Clicker of movieClip 382 {
onClipEvent (load) {
var mbID = 5;
}
}
movieClip 444 {
}
movieClip 446 {
}
movieClip 447 {
frame 1 {
stop();
}
}
instance of movieClip 447 {
onClipEvent (release) {
if (_root.music.running) {
_root.music.running = false;
} else {
if (!_root.music.running) {
_root.music.running = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.music.running) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
if (Key.isDown(77)) {
if (once) {
once = false;
if (_root.music.running) {
_root.music.running = false;
} else {
if (!_root.music.running) {
_root.music.running = true;
}
}
}
}
if (!Key.isDown(77)) {
once = true;
}
}
}
movieClip 449 {
}
movieClip 452 {
}
// unknown tag 88 length 75
button 456 {
on (release) {
if (_root.highScores.looking) {
_root.highScores.looking = false;
} else {
if (!_root.highScores.looking) {
_root.highScores.looking = true;
}
}
}
}
movieClip 458 {
}
movieClip 460 {
}
button 461 {
on (release) {
getURL('http://armorgames.com', 'blank');
}
}
button 464 {
on (release) {
_root.highestLevelInfo = 0;
_root.savefileFun.data.highestLevel = _root.highestLevelInfo;
_root.timePlayedInfo = 0;
_root.savefileFun.data.timePlayed = _root.timePlayedInfo;
_root.energySpentInfo = 0;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.totalDeathsInfo = 0;
_root.savefileFun.data.totalDeaths = _root.totalDeathsInfo;
_root.enemiesKilledInfo = 0;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.bossVictoriesInfo = 0;
_root.savefileFun.data.bossVictories = _root.bossVictoriesInfo;
_root.savefileFun.flush();
}
}
movieClip 468 {
}
movieClip 471 {
}
movieClip 472 {
}
movieClip 486 {
frame 5 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_root.levelframe >= 1 && _root.pauseMenu._currentframe <= 50) {
++timer;
if (timer >= 30) {
timer = 0;
_root.timePlayedInfo += 1;
if (_root.timePlayedInfo > 9999) {
_root.timePlayedInfo = 9999;
}
_root.savefileFun.data.timePlayed = _root.timePlayedInfo;
_root.savefileFun.flush();
}
}
}
highestLevel.text = _root.highestLevelInfo;
timePlayed.text = _root.timePlayedInfo;
if (_root.energySpentInfo == NaN) {
_root.energySpentInfo = 0;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
energySpent.text = Math.round(_root.energySpentInfo);
if (_root.energySpentInfo >= 1000) {
energySpent.text = Math.round(_root.energySpentInfo / 100) / 10 + 'k';
}
if (_root.totalDeathsInfo == NaN) {
_root.totalDeathsInfo = 0;
_root.savefileFun.data.energySpent = _root.totalDeathsInfo;
_root.savefileFun.flush();
}
totalDeaths.text = _root.totalDeathsInfo;
enemiesKilled.text = _root.enemiesKilledInfo;
bossVictories.text = _root.bossVictoriesInfo;
}
stop();
if (_root.savefileFun.data.highestLevel == undefined) {
_root.highestLevelInfo = 0;
} else {
_root.highestLevelInfo = _root.savefileFun.data.highestLevel;
}
if (_root.savefileFun.data.timePlayed == undefined) {
_root.timePlayedInfo = 0;
} else {
_root.timePlayedInfo = _root.savefileFun.data.timePlayed;
}
if (_root.savefileFun.data.energySpent == undefined) {
_root.energySpentInfo = 0;
} else {
_root.energySpentInfo = _root.savefileFun.data.energySpent;
}
if (_root.savefileFun.data.totalDeaths == undefined) {
_root.totalDeathsInfo = 0;
} else {
_root.totalDeathsInfo = _root.savefileFun.data.totalDeaths;
}
if (_root.savefileFun.data.enemiesKilled == undefined) {
_root.enemiesKilledInfo = 0;
} else {
_root.enemiesKilledInfo = _root.savefileFun.data.enemiesKilled;
}
if (_root.savefileFun.data.bossVictories == undefined) {
_root.bossVictoriesInfo = 0;
} else {
_root.bossVictoriesInfo = _root.savefileFun.data.bossVictories;
}
var timer = 0;
}
}
instance highScores of movieClip 486 {
onClipEvent (load) {
_alpha = 0;
var looking = false;
}
onClipEvent (enterFrame) {
if (looking) {
if (_alpha < 100) {
_x = 350;
_alpha = _alpha + 10;
}
if (_alpha >= 100) {
_root.mb1Clicker.gotoAndStop(2);
_root.mb2Clicker.gotoAndStop(2);
_root.mb3Clicker.gotoAndStop(2);
_root.mb4Clicker.gotoAndStop(2);
_root.mb5Clicker.gotoAndStop(2);
_root.mb1.prevFrame();
_root.mb2.prevFrame();
_root.mb3.prevFrame();
_root.mb4.prevFrame();
_root.mb5.prevFrame();
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
if (_alpha <= 0) {
_x = -9001;
_root.mb1Clicker.gotoAndStop(1);
_root.mb2Clicker.gotoAndStop(1);
_root.mb3Clicker.gotoAndStop(1);
_root.mb4Clicker.gotoAndStop(1);
_root.mb5Clicker.gotoAndStop(1);
}
}
}
}
movieClip 489 {
}
movieClip 490 {
}
movieClip 493 {
}
instance of movieClip 493 {
onClipEvent (load) {
stop();
}
}
movieClip 495 {
}
movieClip 496 {
}
movieClip 498 {
}
movieClip 499 {
frame 1 {
function onEnterFrame() {
if (_root._currentframe == 4 || _root._currentframe == 5 || _root._currentframe == 6) {
gotoAndStop(1);
}
if (_root._currentframe >= 8 && _root._currentframe <= 37) {
gotoAndStop(2);
}
if (_root._currentframe == 38 || _root._currentframe == 39) {
gotoAndStop(3);
}
}
stop();
}
}
instance music of movieClip 499 {
onClipEvent (load) {
var once = false;
var running = true;
}
onClipEvent (enterFrame) {
if (running) {
if (once) {
this.base.play();
once = false;
}
} else {
once = true;
this.base.stop();
}
}
}
movieClip 500 {
}
instance introBlack of movieClip 500 {
onClipEvent (load) {
_alpha = 0;
if (_root.introPass) {
_alpha = 100;
_root.introPass = false;
}
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
}
frame 5 {
function onMouseMove() {
backDropClick._x = _root._xmouse;
backDropClick._y = _root._ymouse;
}
actArrow = false;
if (_root.savefile.data.defeatedBoss == undefined) {
_root.defeatedBossInfo = 0;
} else {
_root.defeatedBossInfo = _root.savefile.data.defeatedBoss;
}
if (_root.savefile.data.levelNumber1 == undefined) {
_root.savelevel1 = 1;
} else {
_root.savelevel1 = _root.savefile.data.levelNumber1;
}
if (_root.savefile.data.levelNumber2 == undefined) {
_root.savelevel2 = 1;
} else {
_root.savelevel2 = _root.savefile.data.levelNumber2;
}
if (_root.savefile.data.levelNumber3 == undefined) {
_root.savelevel3 = 1;
} else {
_root.savelevel3 = _root.savefile.data.levelNumber3;
}
if (_root.savefile.data.levelNumber4 == undefined) {
_root.savelevel4 = 1;
} else {
_root.savelevel4 = _root.savefile.data.levelNumber4;
}
if (_root.savefile.data.deathCount1 == undefined) {
_root.savedeath1 = 0;
} else {
_root.savedeath1 = _root.savefile.data.deathCount1;
}
if (_root.savefile.data.deathCount2 == undefined) {
_root.savedeath2 = 0;
} else {
_root.savedeath2 = _root.savefile.data.deathCount2;
}
if (_root.savefile.data.deathCount3 == undefined) {
_root.savedeath3 = 0;
} else {
_root.savedeath3 = _root.savefile.data.deathCount3;
}
if (_root.savefile.data.deathCount4 == undefined) {
_root.savedeath4 = 0;
} else {
_root.savedeath4 = _root.savefile.data.deathCount4;
}
if (_root.savefile.data.gameMode1 == undefined) {
_root.gameMode1 = '-Game Mode-';
} else {
_root.gameMode1 = _root.savefile.data.gameMode1;
}
if (_root.savefile.data.gameMode2 == undefined) {
_root.gameMode2 = '-Game Mode-';
} else {
_root.gameMode2 = _root.savefile.data.gameMode2;
}
if (_root.savefile.data.gameMode3 == undefined) {
_root.gameMode3 = '-Game Mode-';
} else {
_root.gameMode3 = _root.savefile.data.gameMode3;
}
if (_root.savefile.data.gameMode4 == undefined) {
_root.gameMode4 = '-Game Mode-';
} else {
_root.gameMode4 = _root.savefile.data.gameMode4;
}
}
movieClip 502 {
}
movieClip 504 {
}
movieClip 510 {
}
movieClip 512 {
frame 1 {
function onEnterFrame() {
mydeath = _root.savedeath1;
mylevel = _root.savelevel1;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
gameMode.text = _root.gameMode1;
}
stop();
mydeath = _root.savedeath1;
mylevel = _root.savelevel1;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
}
}
movieClip 514 {
}
movieClip 517 {
}
movieClip 520 {
frame 1 {
stop();
}
}
instance of movieClip 520 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
if (_root.savelevel1 > 1 || _root.savedeath1 > 0 || _root.gameMode1 != '-Game Mode-') {
over = true;
}
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_root.savelevel1 > 1 || _root.savedeath1 > 0 || _root.gameMode1 != '-Game Mode-') {
if (_root.playPrompt1._currentframe == 1) {
if (_root.file1del._currentframe == 1) {
_root.file1del.play();
}
}
}
}
}
movieClip 521 {
}
movieClip 522 {
}
movieClip 524 {
frame 1 {
stop();
}
}
instance of movieClip 524 {
onClipEvent (load) {
stop();
var over = false;
var clicked = false;
var changeTimer = 0;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (clicked) {
++changeTimer;
if (changeTimer > 3) {
_root.gameMode1 = '-Regular-';
_root.fileselect = 1;
_root.gametype = '-Regular-';
_root.savefile.data.gameMode1 = '-Regular-';
_root.savefile.flush();
changeTimer = -9001;
}
}
}
onClipEvent (release) {
if (_root.file1Clip.gameMode.text == '-Game Mode-') {
if (_root.defeatedBossInfo == 1) {
if (_root.file1del._currentframe == 1) {
_root.playPrompt1.play();
if (_root.playPrompt2._currentframe == 11) {
_root.playPrompt2.play();
}
if (_root.playPrompt3._currentframe == 11) {
_root.playPrompt3.play();
}
if (_root.playPrompt4._currentframe == 11) {
_root.playPrompt4.play();
}
}
} else {
clicked = true;
_root.flashbacks.gotoAndStop('levels');
}
} else {
_root.fileselect = 1;
_root.gametype = _root.file1Clip.gameMode.text;
_root.flashbacks.gotoAndStop('levels');
}
}
}
movieClip 529 {
frame 1 {
function onEnterFrame() {
mydeath = _root.savedeath2;
mylevel = _root.savelevel2;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
gameMode.text = _root.gameMode2;
}
stop();
mydeath = _root.savedeath2;
mylevel = _root.savelevel2;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
}
}
instance of movieClip 520 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
if (_root.savelevel2 > 1 || _root.savedeath2 > 0 || _root.gameMode2 != '-Game Mode-') {
over = true;
}
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_root.savelevel2 > 1 || _root.savedeath2 > 0 || _root.gameMode2 != '-Game Mode-') {
if (_root.file2del._currentframe == 1) {
_root.file2del.play();
}
}
}
}
instance of movieClip 524 {
onClipEvent (load) {
stop();
var over = false;
var clicked = false;
var changeTimer = 0;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (clicked) {
++changeTimer;
if (changeTimer > 3) {
_root.gameMode2 = '-Regular-';
_root.fileselect = 2;
_root.gametype = '-Regular-';
_root.savefile.data.gameMode2 = '-Regular-';
_root.savefile.flush();
changeTimer = -9001;
}
}
}
onClipEvent (release) {
if (_root.file2Clip.gameMode.text == '-Game Mode-') {
if (_root.defeatedBossInfo == 1) {
if (_root.file2del._currentframe == 1) {
_root.playPrompt2.play();
if (_root.playPrompt1._currentframe == 11) {
_root.playPrompt1.play();
}
if (_root.playPrompt3._currentframe == 11) {
_root.playPrompt3.play();
}
if (_root.playPrompt4._currentframe == 11) {
_root.playPrompt4.play();
}
}
} else {
clicked = true;
_root.flashbacks.gotoAndStop('levels');
}
} else {
_root.fileselect = 2;
_root.gametype = _root.file2Clip.gameMode.text;
_root.flashbacks.gotoAndStop('levels');
}
}
}
movieClip 534 {
frame 1 {
function onEnterFrame() {
mydeath = _root.savedeath3;
mylevel = _root.savelevel3;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
gameMode.text = _root.gameMode3;
}
stop();
mydeath = _root.savedeath3;
mylevel = _root.savelevel3;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
}
}
instance of movieClip 520 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
if (_root.savelevel3 > 1 || _root.savedeath3 > 0 || _root.gameMode3 != '-Game Mode-') {
over = true;
}
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_root.savelevel3 > 1 || _root.savedeath3 > 0 || _root.gameMode3 != '-Game Mode-') {
if (_root.file3del._currentframe == 1) {
_root.file3del.play();
}
}
}
}
instance of movieClip 524 {
onClipEvent (load) {
stop();
var over = false;
var clicked = false;
var changeTimer = 0;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (clicked) {
++changeTimer;
if (changeTimer > 3) {
_root.gameMode3 = '-Regular-';
_root.fileselect = 3;
_root.gametype = '-Regular-';
_root.savefile.data.gameMode3 = '-Regular-';
_root.savefile.flush();
changeTimer = -9001;
}
}
}
onClipEvent (release) {
if (_root.file3Clip.gameMode.text == '-Game Mode-') {
if (_root.defeatedBossInfo == 1) {
if (_root.file3del._currentframe == 1) {
_root.playPrompt3.play();
if (_root.playPrompt2._currentframe == 11) {
_root.playPrompt2.play();
}
if (_root.playPrompt1._currentframe == 11) {
_root.playPrompt1.play();
}
if (_root.playPrompt4._currentframe == 11) {
_root.playPrompt4.play();
}
}
} else {
clicked = true;
_root.flashbacks.gotoAndStop('levels');
}
} else {
_root.fileselect = 3;
_root.gametype = _root.file3Clip.gameMode.text;
_root.flashbacks.gotoAndStop('levels');
}
}
}
movieClip 539 {
frame 1 {
function onEnterFrame() {
mydeath = _root.savedeath4;
mylevel = _root.savelevel4;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
gameMode.text = _root.gameMode4;
}
stop();
mydeath = _root.savedeath4;
mylevel = _root.savelevel4;
deaths.text = 'Deaths: ' + mydeath;
level.text = 'Level ' + mylevel + '/31';
}
}
instance of movieClip 520 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
if (_root.savelevel4 > 1 || _root.savedeath4 > 0 || _root.gameMode4 != '-Game Mode-') {
over = true;
}
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_root.savelevel4 > 1 || _root.savedeath4 > 0 || _root.gameMode4 != '-Game Mode-') {
if (_root.file4del._currentframe == 1) {
_root.file4del.play();
}
}
}
}
instance of movieClip 524 {
onClipEvent (load) {
stop();
var over = false;
var clicked = false;
var changeTimer = 0;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (clicked) {
++changeTimer;
if (changeTimer > 3) {
_root.gameMode4 = '-Regular-';
_root.fileselect = 4;
_root.gametype = '-Regular-';
_root.savefile.data.gameMode4 = '-Regular-';
_root.savefile.flush();
changeTimer = -9001;
}
}
}
onClipEvent (release) {
if (_root.file4Clip.gameMode.text == '-Game Mode-') {
if (_root.defeatedBossInfo == 1) {
if (_root.file4del._currentframe == 1) {
_root.playPrompt4.play();
if (_root.playPrompt2._currentframe == 11) {
_root.playPrompt2.play();
}
if (_root.playPrompt1._currentframe == 11) {
_root.playPrompt1.play();
}
if (_root.playPrompt3._currentframe == 11) {
_root.playPrompt3.play();
}
}
} else {
clicked = true;
_root.flashbacks.gotoAndStop('levels');
}
} else {
_root.fileselect = 4;
_root.gametype = _root.file4Clip.gameMode.text;
_root.flashbacks.gotoAndStop('levels');
}
}
}
movieClip 541 {
}
movieClip 545 {
}
movieClip 546 {
}
movieClip 547 {
frame 30 {
stop();
}
}
instance telePrompt of movieClip 547 {
onClipEvent (load) {
var lock = true;
if (_root.savelevel1 == 1 && _root.savelevel2 == 1 && _root.savelevel3 == 1 && _root.savelevel4 == 1 && _root.savedeath1 == 0 && _root.savedeath2 == 0 && _root.savedeath3 == 0 && _root.savedeath4 == 0 && _root.gameMode1 == '-Game Mode-' && _root.gameMode2 == '-Game Mode-' && _root.gameMode3 == '-Game Mode-' && _root.gameMode4 == '-Game Mode-') {
play();
} else {
gotoAndStop(30);
totalCount = 8;
}
}
onClipEvent (enterFrame) {
if (!lock) {
if (_currentframe == 30) {
if (base._alpha > 0) {
base._alpha -= 10;
}
}
}
}
}
movieClip 548 {
}
movieClip 550 {
}
movieClip 553 {
frame 1 {
stop();
}
}
movieClip 555 {
frame 1 {
stop();
}
}
movieClip 556 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 553 {
onClipEvent (release) {
_root.file1del.play();
_root.savelevel1 = 1;
_root.savedeath1 = 0;
_root.gameMode1 = '-Game Mode-';
_root.savefile.data.levelNumber1 = savelevel1;
_root.savefile.data.deathCount1 = savedeath1;
_root.savefile.data.gameMode1 = '-Game Mode-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 555 {
onClipEvent (release) {
_root.file1del.play();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 557 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 559 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 553 {
onClipEvent (release) {
_root.file2del.play();
_root.savelevel2 = 1;
_root.savedeath2 = 0;
_root.gameMode2 = '-Game Mode-';
_root.savefile.data.levelNumber2 = savelevel2;
_root.savefile.data.deathCount2 = savedeath2;
_root.savefile.data.gameMode2 = '-Game Mode-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 555 {
onClipEvent (release) {
_root.file2del.play();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 560 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 562 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 553 {
onClipEvent (release) {
_root.file3del.play();
_root.savelevel3 = 1;
_root.savedeath3 = 0;
_root.gameMode3 = '-Game Mode-';
_root.savefile.data.levelNumber3 = savelevel3;
_root.savefile.data.deathCount3 = savedeath3;
_root.savefile.data.gameMode3 = '-Game Mode-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 555 {
onClipEvent (release) {
_root.file3del.play();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 563 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 565 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 553 {
onClipEvent (release) {
_root.file4del.play();
_root.savelevel4 = 1;
_root.savedeath4 = 0;
_root.gameMode4 = '-Game Mode-';
_root.savefile.data.levelNumber4 = savelevel4;
_root.savefile.data.deathCount4 = savedeath4;
_root.savefile.data.gameMode4 = '-Game Mode-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 555 {
onClipEvent (release) {
_root.file4del.play();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 566 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 568 {
frame 1 {
stop();
}
}
movieClip 570 {
frame 1 {
stop();
}
}
movieClip 572 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 568 {
onClipEvent (release) {
_root.gameMode1 = '-Regular-';
_root.fileselect = 1;
_root.gametype = '-Regular-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode1 = '-Regular-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt1._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(1);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
}
}
instance of movieClip 570 {
onClipEvent (release) {
_root.gameMode1 = '-Endless-';
_root.fileselect = 1;
_root.gametype = '-Endless-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode1 = '-Endless-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt1._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(2);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 573 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 575 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 568 {
onClipEvent (release) {
_root.gameMode2 = '-Regular-';
_root.fileselect = 2;
_root.gametype = '-Regular-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode2 = '-Regular-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt2._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(1);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 570 {
onClipEvent (release) {
_root.gameMode2 = '-Endless-';
_root.fileselect = 2;
_root.gametype = '-Endless-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode2 = '-Endless-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt2._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(2);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 576 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 578 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 568 {
onClipEvent (release) {
_root.gameMode3 = '-Regular-';
_root.fileselect = 3;
_root.gametype = '-Regular-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode3 = '-Regular-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt3._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(1);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 570 {
onClipEvent (release) {
_root.gameMode1 = '-Endless-';
_root.fileselect = 1;
_root.gametype = '-Endless-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode3 = '-Endless-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt3._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(2);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 579 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 581 {
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 550 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
}
}
instance of movieClip 568 {
onClipEvent (release) {
_root.gameMode4 = '-Regular-';
_root.fileselect = 4;
_root.gametype = '-Regular-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode4 = '-Regular-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt4._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(1);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 570 {
onClipEvent (release) {
_root.gameMode4 = '-Endless-';
_root.fileselect = 4;
_root.gametype = '-Endless-';
_root.flashbacks.gotoAndStop('levels');
_root.savefile.data.gameMode4 = '-Endless-';
_root.savefile.flush();
}
onClipEvent (rollOver) {
gotoAndStop(2);
_root.actArrow = true;
if (_root.playPrompt4._currentframe == 11) {
_root.bulb1.gotoAndStop(2);
_root.bulb2.gotoAndStop(2);
_root.telePrompt.lock = false;
_root.telePrompt.gotoAndStop(30);
_root.telePrompt.infoCenter.infoText.gotoAndStop(2);
if (_root.telePrompt.infoCenter._currentframe < 10) {
_root.telePrompt.infoCenter.gotoAndPlay(1);
} else {
_root.telePrompt.infoCenter.gotoAndPlay(10);
}
}
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
}
movieClip 582 {
frame 1 {
function onEnterFrame() {
if (_currentframe == 11) {
if (_root.backDropClick.touching) {
play();
}
}
}
}
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 583 {
}
instance backDropClick of movieClip 583 {
onClipEvent (load) {
_visible = false;
var touching = false;
}
onClipEvent (enterFrame) {
if (_root.backDrop.hitTest(_x, _y, true)) {
touching = true;
} else {
touching = false;
}
}
}
movieClip 586 {
}
movieClip 588 {
}
movieClip 590 {
}
instance of movieClip 590 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.gA1.rotSpeed += 2;
_root.gA2.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.flashbacks.gotoAndStop('menu');
}
}
movieClip 592 {
}
movieClip 595 {
}
movieClip 596 {
frame 1 {
stop();
}
}
movieClip 599 {
}
movieClip 600 {
frame 1 {
stop();
}
}
movieClip 603 {
}
movieClip 604 {
frame 1 {
stop();
}
}
movieClip 607 {
}
movieClip 608 {
frame 1 {
stop();
}
}
movieClip 611 {
}
movieClip 612 {
frame 1 {
stop();
}
}
movieClip 615 {
}
movieClip 616 {
frame 1 {
stop();
}
}
movieClip 619 {
}
movieClip 620 {
frame 1 {
stop();
}
}
movieClip 623 {
}
movieClip 624 {
frame 1 {
stop();
}
}
movieClip 627 {
}
movieClip 628 {
frame 1 {
stop();
}
}
movieClip 631 {
}
movieClip 632 {
frame 1 {
stop();
}
}
movieClip 635 {
}
movieClip 636 {
frame 1 {
stop();
}
}
movieClip 639 {
}
movieClip 640 {
frame 1 {
stop();
}
}
movieClip 643 {
}
movieClip 644 {
frame 1 {
stop();
}
}
movieClip 645 {
frame 1 {
function onEnterFrame() {
shiftFrame = _root.land._currentframe;
}
var shiftFrame = 0;
}
instance s13 of movieClip 596 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 13) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s13 of movieClip 600 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 12) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s11 of movieClip 604 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 11) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s10 of movieClip 608 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 10) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s9 of movieClip 612 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 9) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s8 of movieClip 616 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 8) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s7 of movieClip 620 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 7) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s6 of movieClip 624 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 6) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s5 of movieClip 628 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 5) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s4 of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 4) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s3 of movieClip 636 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 3) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s2 of movieClip 640 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 2) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
instance s1 of movieClip 644 {
onClipEvent (enterFrame) {
if (_root.sectionCount.shiftFrame == 1) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
}
}
}
movieClip 648 {
}
movieClip 649 {
}
movieClip 650 {
frame 1 {
stop();
}
}
movieClip 653 {
}
movieClip 655 {
}
movieClip 659 {
}
movieClip 661 {
}
movieClip 664 {
}
movieClip 666 {
}
movieClip 668 {
}
movieClip 669 {
frame 1 {
function onEnterFrame() {
++i;
if (i > 2) {
i = 0;
s = 0;
while (s < iLimit) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle3How', 'particle3How' + nextDepth, nextDepth, {'_x': _x - w + random(w * 2), '_y': _y - h + random(h * 2)});
_root.particles.base['particle3How' + nextDepth].myRot = spawnRot;
++s;
}
}
}
var i = 0;
var w = _width / 2 - 5;
var h = _height / 2 - 5;
var nextDepth = 0;
if (spawnRot == 0 || spawnRot == 2) {
var iLimit = (w + 5) / 15;
} else {
var iLimit = (h + 5) / 15;
}
}
}
movieClip 672 {
}
movieClip 674 {
}
movieClip 677 {
}
movieClip 679 {
}
movieClip 682 {
}
movieClip 684 {
}
movieClip 685 {
frame 1 {
stop();
}
instance of movieClip 669 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 669 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
movieClip 687 {
}
movieClip 688 {
frame 1 {
stop();
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 9) {
play();
}
}
} else {
stop();
}
}
frame 9 {
stop();
}
}
movieClip 689 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 20 {
gotoAndPlay(1);
}
}
movieClip 690 {
}
movieClip 691 {
frame 1 {
function onEnterFrame() {
if (_root.land._currentframe == 12) {
if (once) {
once = false;
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap', 'cap' + nextDepth, nextDepth, {'_x': _x + 5, '_y': _y});
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap', 'cap' + nextDepth, nextDepth, {'_x': _x + w - 5, '_y': _y});
}
} else {
once = true;
}
}
stop();
var once = true;
var w = _width;
var h = _height;
var nextDepth = 0;
}
instance hit of movieClip 690 {
onClipEvent (load) {
var reset = false;
var speed = 5;
var tGo = false;
var t = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
tGo = true;
}
if (tGo) {
++t;
_root.player._x -= (_root.player._x - (_parent._x + _parent.w / 2)) / speed;
_root.player._y -= (_root.player._y - _parent._y) / speed;
}
if (t > 3) {
speed = 2;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.player.inside.complete._rotation += random(21);
_root.player._x += random(11) - 5;
_root.player._y += random(11) - 5;
_root.player.batterypower -= 3;
if (_root.player.batterypower < 1) {
_root.player.dead = true;
tGo = false;
t = 0;
}
}
}
}
frame 2 {
base.base.play();
}
frame 11 {
stop();
}
}
instance laser of movieClip 691 {
onClipEvent (load) {
saveX = _x;
_x = 9001;
var portalRot = 0;
}
onClipEvent (enterFrame) {
_x = 9001;
if (_root.land._currentframe == 12) {
_x = saveX;
}
}
}
movieClip 694 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
instance lever of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
saveX = _x;
_x = 9001;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.enemies.L10e5.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
_x = 9001;
if (_root.land._currentframe == 12) {
_x = saveX;
}
}
}
movieClip 695 {
frame 1 {
function onEnterFrame() {
++i;
if (i > spawnGo) {
i = 0;
spawnGo = 5 + random(5);
spawnGet = 1 + random(3);
s = 0;
while (s < spawnGet) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle9How', 'particle9How' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
++s;
}
}
}
var i = 0;
var nextDepth = 0;
var spawnGo = 5 + random(5);
var spawnGet = 1 + random(4);
}
}
instance howToFlag of movieClip 695 {
onClipEvent (load) {
saveX = _x;
_x = 9001;
var portalRot = 0;
}
onClipEvent (enterFrame) {
_x = 9001;
if (_root.land._currentframe == 5) {
_x = saveX;
}
}
}
movieClip 701 {
frame 1 {
stop();
}
}
movieClip 703 {
}
instance tele2 of movieClip 703 {
onClipEvent (load) {
saveX = _x;
_x = 9001;
var portalRot = 0;
}
onClipEvent (enterFrame) {
_x = 9001;
if (_root.land._currentframe == 11) {
_x = saveX;
}
}
}
movieClip 704 {
}
movieClip 705 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance tele1 of movieClip 705 {
onClipEvent (load) {
saveX = _x;
_x = 9001;
var portalRot = 0;
}
onClipEvent (enterFrame) {
_x = 9001;
if (_root.land._currentframe == 11) {
_x = saveX;
}
}
}
movieClip 707 {
}
movieClip 708 {
frame 1 {
function onEnterFrame() {
if (alive) {
++i;
if (i > 15) {
_root.disrupts.base.attachMovie('disruptHow', 'disruptHow' + _root.disrupts.base.getNextHighestDepth(), _root.disrupts.base.getNextHighestDepth(), {'_x': _x, '_y': _y - 60});
i = 0;
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
if (hit > 1) {
play();
alive = false;
}
}
}
}
stop();
_root.disrupts.base.attachMovie('disruptHow', 'disruptHow' + _root.disrupts.base.getNextHighestDepth(), _root.disrupts.base.getNextHighestDepth(), {'_x': _x, '_y': _y - 60});
var alive = true;
var i = 0;
var hit = 0;
}
instance r1b of movieClip 401 {
onClipEvent (enterFrame) {
_rotation = _parent.r1a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r2b of movieClip 405 {
onClipEvent (enterFrame) {
_rotation = _parent.r2a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r3b of movieClip 408 {
onClipEvent (enterFrame) {
_rotation = _parent.r3a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r1a of movieClip 401 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r2a of movieClip 405 {
onClipEvent (load) {
var alive = true;
var flow = 1;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
instance r3a of movieClip 408 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
frame 12 {
var xChange = 0;
i = 0;
while (i < 12) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x - 15 + xChange + random(3) - 1, '_y': _y - i * 5 + random(3) - 1});
xChange += 1.04;
++i;
}
xChange = 0;
g = 0;
while (g < 12) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + 15 - xChange + random(3) - 1, '_y': _y - g * 5 + random(3) - 1});
xChange += 1.04;
++g;
}
k = 0;
while (k < 4) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + random(3) - 1, '_y': _y - i * 5 + random(3) - 1});
++k;
}
var nextDepth = _root.batteries.base.getNextHighestDepth();
_root.batteries.base.attachMovie('battery15', 'battery15' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.batteries.base['battery15' + nextDepth].willFollow = true;
}
frame 31 {
stop();
}
}
movieClip 709 {
frame 1 {
function onEnterFrame() {
gotoAndStop(_root.levelframe);
}
}
}
instance disruptors of movieClip 709 {
onClipEvent (enterFrame) {
gotoAndStop(_root.land._currentframe);
}
}
movieClip 710 {
}
movieClip 711 {
frame 1 {
stop();
}
}
movieClip 712 {
}
movieClip 713 {
frame 1 {
stop();
}
}
movieClip 715 {
}
movieClip 716 {
frame 1 {
stop();
}
}
movieClip 717 {
}
movieClip 718 {
frame 1 {
function onEnterFrame() {
if (!_root._currentframe == 6) {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
play();
}
} else {
stop();
}
}
}
stop();
_root.player.blasting = false;
}
}
movieClip 719 {
frame 1 {
stop();
}
}
movieClip 720 {
frame 1 {
stop();
}
instance of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
}
instance batteries of movieClip 720 {
onClipEvent (enterFrame) {
gotoAndStop(_root.land._currentframe);
}
}
movieClip 721 {
}
movieClip 722 {
frame 1 {
function onEnterFrame() {
if (_currentframe != 22) {
cir = _width / 50;
i = 0;
while (i < cir) {
_root.particles3.base.attachMovie('particle8', 'particle8' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
++i;
}
}
}
var once2 = true;
}
frame 22 {
function onEnterFrame() {
if (_root.player.yspeed > 5 || _root.land.hitTest(_root.player._x, _root.player._y + 15, true)) {
if (once2) {
once2 = false;
_root.particles3.nextFrame();
_root.particles3.prevFrame();
}
}
}
stop();
_root.player.inside.complete._rotation = 0;
_root.player.stopMotion = false;
_root.player.dead = false;
_root.player.flagLock = false;
_root.player._visible = true;
_root.player._alpha = 100;
_root.player.noControl = false;
}
}
instance spawnBack of movieClip 722 {
onClipEvent (load) {
var once = false;
_x = _root.player._x;
_y = _root.player._y;
}
onClipEvent (enterFrame) {
if (_root._currentframe != 38) {
if (Key.isDown(32) || Key.isDown(39) || Key.isDown(37) || Key.isDown(38) || Key.isDown(40) || Key.isDown(80) || Key.isDown(82)) {
if (once) {
gotoAndStop(22);
_root.spawnFront.gotoAndStop(22);
_root.gamePaused = false;
_root.particles3.nextFrame();
_root.particles3.prevFrame();
}
once = false;
}
if (!Key.isDown(32) && !Key.isDown(39) && !Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40) && !Key.isDown(80) && !Key.isDown(82)) {
once = true;
}
}
}
}
movieClip 723 {
}
movieClip 724 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 30) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 12 {
i = 0;
while (i < 8) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x - 13 + i * 3 + random(3) - 1, '_y': _y - 13 + i * 3 + random(3) - 1});
++i;
}
g = 0;
while (g < 8) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + 13 - g * 3 + random(3) - 1, '_y': _y - 13 + g * 3 + random(3) - 1});
++g;
}
}
frame 30 {
if (_root._currentframe != 6) {
stop();
_root.flashbacks.gotoAndStop('restart');
} else {
stopMotion = true;
_x = 350;
_y = 360;
_root.spawnBack.once = false;
_root.spawnBack._x = 350;
_root.spawnBack._y = 360;
_root.spawnFront._x = 350;
_root.spawnFront._y = 360;
_root.spawnBack.play();
_root.spawnFront.play();
inside.complete._rotation = 0;
}
}
}
instance player of movieClip 724 {
onClipEvent (load) {
var stopMotion = true;
var dead = false;
var rot = 0;
var rooftouch = false;
var righttouch = false;
var lefttouch = false;
var gravfall = true;
var disrupted = false;
var xspeed = 0;
var yspeed = 0;
var speed = 0.65;
var gravity = 1;
var xfric = 0.9;
var yfric = 0.95;
var jump = 10;
var walljump = 10;
var walljspeed = 6;
var offjump = 8;
var offjumpcd = 0;
var batterypower = 100;
var blasttimer = 30;
var blastx = 0;
var blasty = 0;
var guntimer = 10;
var dir = 1;
var blasting = false;
var flagLock = false;
var noControl = false;
var offsetX = 0;
var offsetY = 0;
var flagSpeed = 5;
var i = 0;
var nextDepth = 0;
var vertPunish = true;
var hadWallJumped = 0;
var hadWJTime = 30;
var noSwoop = false;
var batRefresh = false;
}
onClipEvent (enterFrame) {
if (!stopMotion) {
if (batterypower > 100) {
batterypower = 100;
}
if (batterypower <= 0) {
batterypower = 0;
if (stick) {
righttouch = false;
lefttouch = false;
rooftouch = false;
stick = false;
gravfall = true;
}
}
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= xfric;
yspeed *= yfric;
if (rot == 0) {
this.inside.complete._rotation += xspeed * 2;
}
if (rot == 1) {
this.inside.complete._rotation -= xspeed * 2;
if (rooftouch && stick) {
batterypower -= Math.abs(xspeed) / 15;
if (Math.round(Math.abs(xspeed)) < 0.1) {
batterypower -= 0.05;
}
}
}
if (rot == 2) {
this.inside.complete._rotation -= yspeed * 2;
if (righttouch && stick) {
batterypower -= Math.abs(yspeed) / 15;
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
}
}
}
if (rot == 3) {
this.inside.complete._rotation += yspeed * 2;
if (lefttouch && stick) {
batterypower -= Math.abs(yspeed) / 15;
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
}
}
}
if (gravfall) {
if (!noControl) {
yspeed += gravity;
}
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
rot = 0;
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
while (_root.land.hitTest(_x, _y + 12.68, true)) {
rot = 0;
noSwoop = false;
hadWallJumped = hadWJTime;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
if (!_root.land.heat.hitTest(_x, _y - 12.68, true)) {
while (_root.land.hitTest(_x, _y - 12.68, true)) {
rot = 1;
gravfall = true;
_y = _y + 1;
if (batterypower > 0) {
if (stick) {
rooftouch = true;
yspeed = -1;
if (Key.isDown(40)) {
if (righttouch || lefttouch) {
_y = _y + 1;
rooftouch = false;
}
}
}
} else {
yspeed = 0;
}
}
}
++offjumpcd;
if (rooftouch) {
if (!_root.land.hitTest(_x, _y - 12.68 - 1, true)) {
if (stick) {
yspeed = -offjump;
offjumpcd = 0;
}
if (!stick) {
if (offjumpcd > 15) {
yspeed = -offjump;
offjumpcd = 0;
}
}
rooftouch = false;
}
}
if (!_root.land.heat.hitTest(_x + 12.68, _y, true)) {
while (_root.land.hitTest(_x + 12.68, _y, true)) {
rot = 2;
righttouch = true;
_x = _x - 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = 1;
if (Key.isDown(39) || Key.isDown(37) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(37)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = -walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (righttouch) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y, true)) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = 3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
righttouch = false;
}
}
if (!_root.land.heat.hitTest(_x - 12.68, _y, true)) {
while (_root.land.hitTest(_x - 12.68, _y, true)) {
rot = 3;
lefttouch = true;
_x = _x + 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = -1;
if (Key.isDown(37) || Key.isDown(39) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(39)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (lefttouch) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y, true)) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = -3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
lefttouch = false;
}
}
if (Key.isDown(65) || Key.isDown(17)) {
stick = true;
} else {
stick = false;
gravfall = true;
}
if (!noControl) {
if (Key.isDown(37)) {
xspeed -= speed;
dir = 0;
}
if (Key.isDown(39)) {
xspeed += speed;
dir = 1;
}
}
++blasttimer;
++guntimer;
if (_root.disrupts.hitTest(_x, _y, true)) {
disrupted = true;
gravfall = true;
stick = false;
} else {
disrupted = false;
}
if (!disrupted) {
if (blasttimer > 30) {
if (batterypower >= 10) {
if (Key.isDown(68)) {
_root.shoot.blast.play();
blasting = true;
batterypower -= 10;
blasttimer = 0;
}
}
}
if (guntimer > 10) {
if (batterypower >= 5) {
if (gravfall) {
if (Key.isDown(83)) {
_root.shoot.base.attachMovie('bulletHow', 'bulletHow' + _root.shoot.base.getNextHighestDepth(), _root.shoot.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
batterypower -= 5;
guntimer = 0;
}
}
}
}
}
if (blasting) {
_root.shoot.blast._x = _x;
_root.shoot.blast._y = _y;
}
--hadWallJumped;
if (hadWallJumped < 0) {
noSwoop = false;
}
if (stick) {
if (batterypower > 0) {
if (lefttouch || righttouch) {
if (vertPunish) {
vertPunish = false;
if (yspeed < -3) {
if (hadWallJumped < 0) {
yspeed = -3;
}
}
}
if (!Key.isDown(40)) {
if (yspeed > 2) {
yspeed *= 0.8;
}
}
}
}
if (righttouch) {
rot = 2;
}
if (lefttouch) {
rot = 3;
}
}
if (!lefttouch && !righttouch && !stick) {
vertPunish = true;
}
if (this.trueHit.hitTestShape(_root.land.heat)) {
dead = true;
while (_root.land.heat.hitTest(_x + 12.68, _y, true)) {
_x = _x - 1;
}
while (_root.land.heat.hitTest(_x - 12.68, _y, true)) {
_x = _x + 1;
}
while (_root.land.heat.hitTest(_x, _y + 12.68, true)) {
_y = _y - 1;
}
while (_root.land.heat.hitTest(_x, _y - 12.68, true)) {
_y = _y + 1;
}
}
if (this.trueHit.hitTestShape(_root.enemies)) {
dead = true;
}
if (dead) {
play();
xspeed = 0;
yspeed = 0;
stopMotion = true;
}
if (!flagLock) {
if (_root.howToFlag.hitTest(_x - 12.68, _y + 12.68) && _root.howToFlag.hitTest(_x + 12.68, _y + 12.68)) {
i = 0;
offsetX = 0;
offsetY = -20;
noControl = true;
flagLock = true;
}
} else {
xspeed *= 0.8;
yspeed *= 0.8;
_x = _x - (_x - (_root.howToFlag._x + offsetX)) / flagSpeed;
_y = _y - (_y - (_root.howToFlag._y + offsetY)) / flagSpeed;
if (Math.round(xspeed) == 0 && Math.round(yspeed) == 0) {
++i;
if (i > 5) {
i = -9001;
_alpha = 0;
stopMotion = true;
nextDepth = _root.portalFly.base.getNextHighestDepth();
_root.portalFly.base.attachMovie('flyParticleHow', 'flyParticleHow' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.portalFly.base['flyParticleHow' + nextDepth].xMult = -Math.ceil(offsetX / 20);
_root.portalFly.base['flyParticleHow' + nextDepth].yMult = -Math.ceil(offsetY / 20);
_root.portalFly.base['flyParticleHow' + nextDepth]._rotation = inside.complete._rotation;
}
}
}
while (_root.land.hitTest(_x - 10, _y - 5, true)) {
_x = _x + 5;
}
if (_root.land.hitTest(_x - 10, _y + 5, true)) {
if (!stick) {
_x = _x + 5;
}
}
if (_root.land.hitTest(_x + 10, _y - 5, true)) {
_x = _x - 5;
}
if (_root.land.hitTest(_x + 10, _y + 5, true)) {
if (!stick) {
_x = _x - 5;
}
}
if (_root.land.hitTest(_x - 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x + 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x - 5, _y + 10, true)) {
while (_root.land.hitTest(_x - 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
if (batterypower <= 5) {
if (_root.land._currentframe != 9 && _root.land._currentframe != 11) {
batRefresh = true;
}
}
if (batRefresh) {
++batterypower;
if (batterypower >= 95) {
batRefresh = false;
}
}
if (_root.land._currentframe == 11) {
batterypower -= 3;
}
if (Key.isDown(82)) {
dead = true;
}
if (_root.land.hitTest(_x + 5, _y + 10, true)) {
while (_root.land.hitTest(_x + 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
}
}
}
movieClip 725 {
frame 22 {
stop();
}
}
instance spawnFront of movieClip 725 {
onClipEvent (load) {
_x = _root.player._x;
_y = _root.player._y;
}
onClipEvent (enterFrame) {
inside.complete.ballpower.gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
}
}
movieClip 727 {
}
movieClip 728 {
frame 1 {
stop();
var textArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
textArray[0] = 'Try it out: Press the arrow keys for movement, up being for jump.';
textArray[1] = 'Hold the A key while moving into walls to magnetize and scale up them.';
textArray[2] = 'When magnetizing to the ceiling, use left and right to move around.';
textArray[3] = 'Press the down arrow key to move down a wall while magnetizing to it.';
textArray[4] = 'Make your way to the portal in every stage to proceed to the next level.';
textArray[5] = 'Avoid red heat pads, touching one instantly kills the player.';
textArray[6] = 'Press the S key to shoot an energy bullet for 5 energy that ricochets.';
textArray[7] = 'Press the D key to unleash a large energy blast for 10 energy.';
textArray[8] = 'Collect batteries to restore lost energy. every level starts with some.';
textArray[9] = 'Magnetic disruptors stop abilties from being used if within the rays.';
textArray[10] = 'Teleporters transport the player one way only from point a to b.';
textArray[11] = 'Levers are pulled to turn off lasers that block vital passageways.';
textArray[12] = 'Over 30 unique levels await, with the challenge of defeating a boss.';
}
frame 10 {
holder.insiderText.text = textArray[_root.land._currentframe - 1];
}
}
movieClip 730 {
}
movieClip 732 {
}
instance of movieClip 732 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.g1A.rotSpeed += 2;
_root.g1B.rotSpeed += 2;
} else {
prevFrame();
}
if (_root.land._currentframe == 13) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
onClipEvent (release) {
if (_root.infoText._currentframe == 1) {
if (_root.player._alpha >= 100) {
if (_root.land._currentframe != 13) {
_root.infoText.play();
_root.land.nextFrame();
_root.particles.nextFrame();
_root.particles.prevFrame();
_root.disrupts.nextFrame();
_root.disrupts.prevFrame();
if (_root.land._currentframe == 12) {
_root.laser.gotoAndStop(1);
_root.lever.gotoAndStop(1);
_root.lever._rotation = -25;
_root.lever.hit = false;
}
}
}
}
}
}
instance of movieClip 732 {
onClipEvent (load) {
_alpha = 0;
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.g1A.rotSpeed += 2;
_root.g1B.rotSpeed += 2;
} else {
prevFrame();
}
if (_root.land._currentframe == 1) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
onClipEvent (release) {
if (_root.infoText._currentframe == 1) {
if (_root.player._alpha >= 100) {
if (_root.land._currentframe != 1) {
_root.infoText.play();
_root.land.prevFrame();
_root.particles.nextFrame();
_root.particles.prevFrame();
_root.disrupts.nextFrame();
_root.disrupts.prevFrame();
if (_root.land._currentframe == 12) {
_root.laser.gotoAndStop(1);
_root.lever.gotoAndStop(1);
_root.lever._rotation = -25;
_root.lever.hit = false;
}
}
}
}
}
}
movieClip 734 {
}
movieClip 735 {
frame 1 {
stop();
}
}
movieClip 738 {
}
instance of movieClip 590 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.gA1.rotSpeed += 2;
_root.gA2.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.flashbacks.gotoAndStop('menu');
}
}
frame 8 {
stop();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
var temprot = 0;
var tempspeed = 0;
spawnFront._x = player._x;
spawnFront._y = player._y;
spawnBack._x = player._x;
spawnBack._y = player._y;
}
movieClip 740 {
}
movieClip 742 {
}
movieClip 749 {
}
movieClip 751 {
}
movieClip 754 {
}
movieClip 756 {
}
movieClip 763 {
}
movieClip 772 {
}
movieClip 774 {
}
movieClip 776 {
instance of movieClip 772 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
rust._x += random(151) - 75;
rust._y += random(151) - 75;
}
}
}
movieClip 779 {
}
movieClip 782 {
}
movieClip 784 {
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
onClipEvent (enterFrame) {
while (_currentframe == _parent.mainShadow._currentframe) {
gotoAndStop(random(5) + 1);
}
}
}
instance of movieClip 776 {
onClipEvent (load) {
_rotation = random(361);
var speed = 3 + random(6);
ranSpin = random(2);
if (ranSpin == 1) {
shine._yscale = -shine._yscale;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (ranSpin == 0) {
_rotation = _rotation + speed / 5;
} else {
_rotation = _rotation - speed / 5;
}
}
}
}
}
movieClip 787 {
}
movieClip 788 {
}
movieClip 790 {
}
movieClip 792 {
}
movieClip 795 {
}
instance of movieClip 795 {
onClipEvent (load) {
if (_root.gametype == '-Endless-') {
gotoAndStop(2);
} else {
stop();
}
}
}
movieClip 797 {
}
movieClip 798 {
}
movieClip 800 {
}
movieClip 804 {
}
movieClip 806 {
}
movieClip 808 {
instance of movieClip 804 {
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
}
}
movieClip 809 {
}
movieClip 810 {
}
movieClip 811 {
}
movieClip 813 {
}
movieClip 814 {
frame 1 {
}
instance of movieClip 798 {
onClipEvent (load) {
var seeking = true;
var distance = 0;
var maxAlpha = 60;
}
onClipEvent (enterFrame) {
if (seeking) {
i = 1;
while (i < 51) {
if (i > 7) {
++distance;
}
if (_root.land.hitTest(_x + _parent._x, _y + _parent._y + i * 10, true)) {
seeking = false;
_alpha = maxAlpha - (7 + distance) * 2;
_xscale = _xscale + (7 + distance) * 4;
_y = _y + i * 10;
break;
}
++i;
}
}
if (!seeking) {
while (_root.land.hitTest(_x + _parent._x, _y + _parent._y, true)) {
_y = _y - 1;
}
}
}
}
}
movieClip 816 {
}
movieClip 817 {
frame 1 {
stop();
}
}
movieClip 818 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
++i;
if (i > spawnGo) {
i = 0;
spawnGo = 5 + random(5);
spawnGet = 1 + random(3);
s = 0;
while (s < spawnGet) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle9', 'particle9' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
++s;
}
}
}
}
var i = 0;
var nextDepth = 0;
var spawnGo = 5 + random(5);
var spawnGet = 1 + random(4);
}
}
instance L1flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 826 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
play();
} else {
stop();
}
}
}
frame 61 {
gotoAndPlay(41);
}
}
instance tipmaker1 of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip1.play();
timer = -1.0e+016;
}
}
}
}
}
movieClip 827 {
frame 1 {
function onEnterFrame() {
if (_name == 'L4d1' || _name == 'L24d1' || _name == 'L24d2') {
idle = false;
}
if (!_root.gamePaused) {
if (_currentframe > 2) {
if (_currentframe != 31) {
play();
}
}
if (alive) {
++i;
if (i > 15) {
_root.disrupts.base.attachMovie('disrupt', 'disrupt' + _root.disrupts.base.getNextHighestDepth(), _root.disrupts.base.getNextHighestDepth(), {'_x': _x, '_y': _y - 60});
i = 0;
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
if (hit > 1) {
play();
alive = false;
}
}
}
} else {
stop();
}
}
stop();
_root.disrupts.base.attachMovie('disrupt', 'disrupt' + _root.disrupts.base.getNextHighestDepth(), _root.disrupts.base.getNextHighestDepth(), {'_x': _x, '_y': _y - 60});
var alive = true;
var i = 0;
var hit = 0;
if (_name == 'L4d1' || _name == 'L24d1' || _name == 'L24d2') {
idle = false;
}
}
instance r1b of movieClip 401 {
onClipEvent (enterFrame) {
_rotation = _parent.r1a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r2b of movieClip 405 {
onClipEvent (enterFrame) {
_rotation = _parent.r2a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r3b of movieClip 408 {
onClipEvent (enterFrame) {
_rotation = _parent.r3a._rotation;
if (_parent._currentframe == 2) {
play();
base.play();
}
}
}
instance r1a of movieClip 401 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
}
instance r2a of movieClip 405 {
onClipEvent (load) {
var alive = true;
var flow = 1;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
}
instance r3a of movieClip 408 {
onClipEvent (load) {
var alive = true;
var flow = 0;
var rotSpeed = 0;
var speed = 0.1;
var fric = 0.7;
var maxRot = 12;
if (flow == 0) {
_rotation = -maxRot;
} else {
_rotation = maxRot;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
rotSpeed *= fric;
_rotation = _rotation + rotSpeed;
if (alive) {
if (flow == 0) {
++rotSpeed;
if (_rotation > maxRot) {
flow = 1;
}
} else {
if (flow == 1) {
--rotSpeed;
if (_rotation < -maxRot) {
flow = 0;
}
}
}
if (_parent._currentframe == 2) {
play();
base.play();
alive = false;
}
}
}
}
}
frame 12 {
var xChange = 0;
i = 0;
while (i < 12) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x - 15 + xChange + random(3) - 1, '_y': _y - i * 5 + random(3) - 1});
xChange += 1.04;
++i;
}
xChange = 0;
g = 0;
while (g < 12) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + 15 - xChange + random(3) - 1, '_y': _y - g * 5 + random(3) - 1});
xChange += 1.04;
++g;
}
k = 0;
while (k < 4) {
_root.particles3.base.attachMovie('particle6', 'particle6' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x + random(3) - 1, '_y': _y - i * 5 + random(3) - 1});
++k;
}
var nextDepth = _root.batteries.base.getNextHighestDepth();
_root.batteries.base.attachMovie('battery15', 'battery15' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.batteries.base['battery15' + nextDepth].willFollow = true;
}
frame 31 {
stop();
}
}
movieClip 828 {
frame 1 {
function onEnterFrame() {
gotoAndStop(_root.levelframe);
}
}
instance L4d1 of movieClip 827 {
onClipEvent (load) {
var idle = false;
}
}
instance L9d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L13d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L16d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L19d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L21d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L21d2 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
instance L24d1 of movieClip 827 {
onClipEvent (load) {
var idle = false;
}
}
instance L24d2 of movieClip 827 {
onClipEvent (load) {
var idle = false;
}
}
instance L30d1 of movieClip 827 {
onClipEvent (load) {
var idle = true;
}
}
}
movieClip 829 {
}
movieClip 830 {
frame 1 {
stop();
}
}
movieClip 831 {
frame 1 {
function onEnterFrame() {
if (_currentframe != 22) {
cir = _width / 50;
i = 0;
while (i < cir) {
_root.particles3.base.attachMovie('particle8', 'particle8' + _root.particles3.base.getNextHighestDepth(), _root.particles3.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
++i;
}
}
}
var once2 = true;
}
frame 22 {
function onEnterFrame() {
if (_root.player.yspeed > 5 || _root.land.hitTest(_root.player._x, _root.player._y + 15, true)) {
if (once2) {
once2 = false;
_root.particles3.nextFrame();
_root.particles3.prevFrame();
}
}
}
stop();
_root.gamePaused = false;
}
}
instance spawnBack of movieClip 831 {
onClipEvent (load) {
if (_root._currentframe != 38) {
var once = false;
_x = _root.spawn._x;
_y = _root.spawn._y;
_x = _root.spawn2._x;
_y = _root.spawn2._y;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 38) {
if (Key.isDown(32) || Key.isDown(39) || Key.isDown(37) || Key.isDown(38) || Key.isDown(40) || Key.isDown(80) || Key.isDown(82)) {
if (once) {
if (_currentframe != 22) {
gotoAndStop(22);
_root.spawnFront.gotoAndStop(22);
_root.gamePaused = false;
_root.particles3.nextFrame();
_root.particles3.prevFrame();
}
}
once = false;
}
if (!Key.isDown(32) && !Key.isDown(39) && !Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40) && !Key.isDown(80) && !Key.isDown(82)) {
once = true;
}
}
}
}
instance player of movieClip 724 {
onClipEvent (load) {
var dead = false;
var stopMotion = false;
var rot = 0;
var rooftouch = false;
var righttouch = false;
var lefttouch = false;
var gravfall = true;
var disrupted = false;
var xspeed = 0;
var yspeed = 0;
var speed = 0.65;
var gravity = 1;
var xfric = 0.9;
var yfric = 0.95;
var jump = 10;
var walljump = 10;
var walljspeed = 6;
var offjump = 8;
var offjumpcd = 0;
var batterypower = _root.batarray[_root.levelframe - 1];
var blasttimer = 30;
var blastx = 0;
var blasty = 0;
var guntimer = 10;
var dir = 1;
var blasting = false;
var flagLock = false;
var noControl = false;
var offsetX = 0;
var offsetY = 0;
var flagSpeed = 5;
var i = 0;
var nextDepth = 0;
var vertPunish = true;
var hadWallJumped = 0;
var hadWJTime = 30;
var noSwoop = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!stopMotion) {
if (batterypower > 100) {
batterypower = 100;
}
if (batterypower <= 0) {
batterypower = 0;
if (stick) {
righttouch = false;
lefttouch = false;
rooftouch = false;
stick = false;
gravfall = true;
}
}
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= xfric;
yspeed *= yfric;
if (rot == 0) {
this.inside.complete._rotation += xspeed * 2;
}
if (rot == 1) {
this.inside.complete._rotation -= xspeed * 2;
if (rooftouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(xspeed) / 15;
_root.energySpentInfo += Math.abs(xspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(xspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (rot == 2) {
this.inside.complete._rotation -= yspeed * 2;
if (righttouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(yspeed) / 15;
_root.energySpentInfo += Math.abs(yspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (rot == 3) {
this.inside.complete._rotation += yspeed * 2;
if (lefttouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(yspeed) / 15;
_root.energySpentInfo += Math.abs(yspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (gravfall) {
if (!noControl) {
yspeed += gravity;
}
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
rot = 0;
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
while (_root.land.hitTest(_x, _y + 12.68, true)) {
rot = 0;
noSwoop = false;
hadWallJumped = hadWJTime;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
if (!_root.land.heat.hitTest(_x, _y - 12.68, true)) {
while (_root.land.hitTest(_x, _y - 12.68, true)) {
rot = 1;
gravfall = true;
_y = _y + 1;
if (batterypower > 0) {
if (stick) {
rooftouch = true;
yspeed = -1;
if (Key.isDown(40)) {
if (righttouch || lefttouch) {
_y = _y + 1;
rooftouch = false;
}
}
}
} else {
yspeed = 0;
}
}
}
++offjumpcd;
if (rooftouch) {
if (!_root.land.hitTest(_x, _y - 12.68 - 1, true)) {
if (stick) {
yspeed = -offjump;
if (_root._currentframe == 13) {
yspeed = -offjump - 1;
}
offjumpcd = 0;
}
if (!stick) {
if (offjumpcd > 15) {
yspeed = -offjump;
offjumpcd = 0;
}
}
rooftouch = false;
}
}
if (!_root.land.heat.hitTest(_x + 12.68, _y, true)) {
while (_root.land.hitTest(_x + 12.68, _y, true)) {
rot = 2;
righttouch = true;
_x = _x - 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = 1;
if (Key.isDown(39) || Key.isDown(37) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(37)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = -walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (righttouch) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y, true)) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = 3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
righttouch = false;
}
}
if (!_root.land.heat.hitTest(_x - 12.68, _y, true)) {
while (_root.land.hitTest(_x - 12.68, _y, true)) {
rot = 3;
lefttouch = true;
_x = _x + 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = -1;
if (Key.isDown(37) || Key.isDown(39) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(39)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (lefttouch) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y, true)) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = -3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
lefttouch = false;
}
}
if (Key.isDown(65) || Key.isDown(17)) {
stick = true;
} else {
stick = false;
gravfall = true;
}
if (!noControl) {
if (Key.isDown(37)) {
xspeed -= speed;
dir = 0;
}
if (Key.isDown(39)) {
xspeed += speed;
dir = 1;
}
}
++blasttimer;
++guntimer;
if (_root.disrupts.hitTest(_x, _y, true)) {
gravfall = true;
stick = false;
} else {
disrupted = false;
}
if (!disrupted) {
if (blasttimer > 30) {
if (batterypower >= 10) {
if (Key.isDown(68)) {
_root.shoot.blast.play();
blasting = true;
if (_root.gametype == '-Regular-') {
batterypower -= 10;
_root.energySpentInfo += 10;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
blasttimer = 0;
}
}
}
if (guntimer > 10) {
if (batterypower >= 5) {
if (gravfall) {
if (Key.isDown(83)) {
_root.shoot.base.attachMovie('bullet', 'bullet' + _root.shoot.base.getNextHighestDepth(), _root.shoot.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (_root.gametype == '-Regular-') {
batterypower -= 5;
_root.energySpentInfo += 5;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
guntimer = 0;
}
}
}
}
}
if (blasting) {
_root.shoot.blast._x = _x;
_root.shoot.blast._y = _y;
}
--hadWallJumped;
if (hadWallJumped < 0) {
noSwoop = false;
}
if (stick) {
if (batterypower > 0) {
if (lefttouch || righttouch) {
if (vertPunish) {
vertPunish = false;
if (yspeed < -3) {
if (hadWallJumped < 0) {
yspeed = -3;
}
}
}
if (!Key.isDown(40)) {
if (yspeed > 2) {
yspeed *= 0.8;
}
}
}
}
if (righttouch) {
rot = 2;
}
if (lefttouch) {
rot = 3;
}
}
if (!lefttouch && !righttouch && !stick) {
vertPunish = true;
}
if (_y > 560) {
_root.flashbacks.gotoAndStop('restart');
}
if (this.trueHit.hitTestShape(_root.land.heat)) {
dead = true;
while (_root.land.heat.hitTest(_x + 12.68, _y, true)) {
_x = _x - 1;
}
while (_root.land.heat.hitTest(_x - 12.68, _y, true)) {
_x = _x + 1;
}
while (_root.land.heat.hitTest(_x, _y + 12.68, true)) {
_y = _y - 1;
}
while (_root.land.heat.hitTest(_x, _y - 12.68, true)) {
_y = _y + 1;
}
}
if (this.trueHit.hitTestShape(_root.enemies)) {
dead = true;
}
if (dead) {
play();
xspeed = 0;
yspeed = 0;
stopMotion = true;
}
if (!flagLock) {
trueFlag = 'L' + _root.levelframe + 'flag';
if (_root[trueFlag].hitTest(_x - 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y + 12.68)) {
offsetX = 0;
offsetY = -20;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x - 12.68, _y - 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y - 12.68)) {
offsetX = 0;
offsetY = 20;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x + 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y - 12.68)) {
offsetX = -20;
offsetY = 0;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x - 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x - 12.68, _y - 12.68)) {
offsetX = 20;
offsetY = 0;
noControl = true;
flagLock = true;
}
} else {
xspeed *= 0.8;
yspeed *= 0.8;
_x = _x - (_x - (_root[trueFlag]._x + offsetX)) / flagSpeed;
_y = _y - (_y - (_root[trueFlag]._y + offsetY)) / flagSpeed;
if (Math.round(xspeed) == 0 && Math.round(yspeed) == 0) {
++i;
if (i > 5) {
i = -9001;
_alpha = 0;
stopMotion = true;
nextDepth = _root.portalFly.base.getNextHighestDepth();
_root.portalFly.base.attachMovie('flyParticle', 'flyParticle' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.portalFly.base['flyParticle' + nextDepth].xMult = -Math.ceil(offsetX / 20);
_root.portalFly.base['flyParticle' + nextDepth].yMult = -Math.ceil(offsetY / 20);
_root.portalFly.base['flyParticle' + nextDepth]._rotation = inside.complete._rotation;
}
}
}
while (_root.land.hitTest(_x - 10, _y - 5, true)) {
_x = _x + 5;
}
if (_root.land.hitTest(_x - 10, _y + 5, true)) {
if (!stick) {
_x = _x + 5;
}
}
if (_root.land.hitTest(_x + 10, _y - 5, true)) {
_x = _x - 5;
}
if (_root.land.hitTest(_x + 10, _y + 5, true)) {
if (!stick) {
_x = _x - 5;
}
}
if (_root.land.hitTest(_x - 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x + 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x - 5, _y + 10, true)) {
while (_root.land.hitTest(_x - 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
if (_root.land.hitTest(_x + 5, _y + 10, true)) {
while (_root.land.hitTest(_x + 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
}
}
}
}
movieClip 832 {
frame 22 {
stop();
}
}
instance spawnFront of movieClip 832 {
onClipEvent (load) {
if (_root._currentframe != 38) {
_x = _root.spawn._x;
_y = _root.spawn._y;
_x = _root.spawn2._x;
_y = _root.spawn2._y;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 38) {
inside.complete.ballpower.gotoAndStop(_root.player.inside.complete.ballpower._currentframe);
}
}
}
movieClip 833 {
}
movieClip 834 {
frame 1 {
stop();
}
}
movieClip 835 {
}
movieClip 836 {
frame 1 {
stop();
}
}
movieClip 837 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (alive) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= xfric;
yspeed *= yfric;
if (gravfall) {
yspeed += gravity;
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
_rotation = _rotation + xspeed * 2;
while (_root.land.hitTest(_x, _y + 12.68, true)) {
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (flow == 0) {
xspeed += speed;
if (_root.land.hitTest(_x + 31.75, _y, true)) {
flow = 1;
}
if (!_root.land.hitTest(_x + 31.75, _y + 15.875, true)) {
flow = 1;
}
}
if (flow == 1) {
xspeed -= speed;
if (_root.land.hitTest(_x - 31.75, _y, true)) {
flow = 0;
}
if (!_root.land.hitTest(_x - 31.75, _y + 15.875, true)) {
flow = 0;
}
}
}
while (_root.land.hitTest(_x, _y - 12.68, true)) {
gravfall = true;
_y = _y + 1;
}
while (_root.land.hitTest(_x + 12.68, _y, true)) {
_x = _x - 1;
}
while (_root.land.hitTest(_x - 12.68, _y, true)) {
_x = _x + 1;
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
distance = Math.sqrt((_root.player._x - _x) * (_root.player._x - _x) + (_root.player._y - _y) * (_root.player._y - _y));
if (_root.player.blasting) {
if (distance < 15 + _root.shoot.blast._width / 2) {
play();
hit = -9001;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
}
if (hit > 1) {
play();
hit = -9001;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom', 'enemyBoom' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom' + nextDepth]._rotation = _rotation;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
}
}
var alive = true;
var gravfall = true;
var nextDepth = 0;
var xspeed = 0;
var yspeed = 0;
var speed = 0.65;
var gravity = 1;
var xfric = 0.9;
var yfric = 0.95;
var hit = 0;
var distance = 0;
}
frame 1 {
stop();
}
frame 3 {
stop();
}
}
movieClip 839 {
frame 1 {
stop();
}
}
movieClip 840 {
frame 1 {
stop();
}
}
movieClip 841 {
frame 1 {
stop();
}
}
movieClip 842 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
grill._x -= (grill._x - setGrillX) / grillSpeed;
if (!idle) {
if (alive) {
dx = _root.player._x - this._x;
dy = _root.player._y - this._y;
ang = Math.atan2(dy, dx) * 180 / Math.PI - 90;
dr = ang - this.gun._rotation;
if (Math.abs(dr) > 180) {
dr = dr > 0 ? dr - 360 : 360 + dr;
}
if (!los) {
once = true;
setGrillX = gun._rotation / 3.5;
grillSpeed = 5;
if (flow == 0) {
rotspeed += speed;
if (this.gun._rotation > 45) {
flow = 1;
}
}
if (flow == 1) {
rotspeed -= speed;
if (this.gun._rotation < -45) {
flow = 0;
}
}
rotspeed *= 0.9;
this.gun._rotation += rotspeed;
}
if (los) {
this.gun._rotation += dr / 8;
if (dr < 26.5 && dr > -26.5) {
++guntimer;
if (guntimer > 15) {
if (!_root.player.stopMotion) {
_root.yourrot = this.gun._rotation;
_root.eshoot.base.attachMovie('ebullet', 'ebullet' + _root.eshoot.base.getNextHighestDepth(), _root.eshoot.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.gun.slider.play();
guntimer = 0;
if (grillSpot == 0) {
setGrillX += 10;
if (setGrillX > 15) {
setGrillX = -15;
}
}
if (grillSpot == 1) {
setGrillX -= 10;
if (setGrillX < -15) {
setGrillX = 15;
}
}
ranSpawn = 3 + random(3);
r = 0;
while (r <= ranSpawn) {
ranMoveX = random(3) - 1;
ranMoveY = random(3) - 1;
nextDepth = _root.particles2.base.getNextHighestDepth();
_root.particles2.base.attachMovie('particle5', 'particle5' + nextDepth, nextDepth, {'_x': _x + this.grill._x + ranMoveX * 4, '_y': _y + this.grill._y + ranMoveY * 4});
++r;
}
}
}
}
if (_root.player._x >= _x) {
if (once) {
once = false;
setGrillX = -15;
grillSpot = 0;
}
} else {
if (_root.player._x < _x) {
if (once) {
once = false;
setGrillX = 15;
grillSpot = 1;
}
}
}
}
xDist = _root.player._x - _x;
yDist = _root.player._y - _y;
dist = Math.sqrt(xDist * xDist + yDist * yDist);
angle = Math.atan(yDist / xDist) / 0.0174532925199433;
if (xDist < 0) {
angle += 180;
}
if (xDist >= 0 && yDist < 0) {
angle += 360;
}
los = true;
x = 0;
while (x <= dist / 30) {
point_x = _x + x * Math.cos(angle * Math.PI / 180) * 30;
point_y = _y + x * Math.sin(angle * Math.PI / 180) * 30;
if (_root.land.hitTest(point_x, point_y, true)) {
los = false;
}
++x;
}
}
if (this.hitTestShape(_root.shoot)) {
if (alive) {
if (_root.shoot.blast._currentframe == 1) {
++h;
if (distance < 20 + _root.shoot.blast._width / 2) {
h = 9001;
}
} else {
if (los) {
++h;
}
}
if (h > 1) {
play();
h = -9001;
nextDepth = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom2', 'enemyBoom2' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom2' + nextDepth].gun._rotation = gun._rotation;
_root.particles3.base['enemyBoom2' + nextDepth].grill._x = grill._x;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
}
} else {
setGrillX = gun._rotation / 3.5;
if (flow == 0) {
rotspeed += speed;
if (this.gun._rotation > 45) {
flow = 1;
}
}
if (flow == 1) {
rotspeed -= speed;
if (this.gun._rotation < -45) {
flow = 0;
}
}
rotspeed *= 0.9;
this.gun._rotation += rotspeed;
}
}
}
stop();
var once = true;
var nextDepth = 0;
var setGrillX = 0;
var grillSpot = 0;
var grillSpeed = 5;
var nextDepth = 0;
var ranSpawn = 0;
var ranMoveX = 0;
var ranMoveY = 0;
var alive = true;
var los = false;
var dx = 0;
var dy = 0;
var dr = 0;
var ang = 0;
var angle = 0;
var xDist = 0;
var yDist = 0;
var speed = 0.5;
var rotspeed = 0;
var rotationValue = 0;
var guntimer = 0;
var h = 0;
if (flow == 0) {
grill._x = -15;
}
}
frame 3 {
stop();
}
}
movieClip 843 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (alive) {
++i;
++timer;
setGreenH = timer * fillMult;
setBlueH = 20 - timer * fillMult;
base.chambers.green._height -= (base.chambers.green._height - setGreenH) / adjustSpeed;
base.chambers.blue._height -= (base.chambers.blue._height - setBlueH) / adjustSpeed;
if (timer > timerMax) {
var v3 = _root.enemies.base.base.getNextHighestDepth();
_root.enemies.base.base.attachMovie('spike', 'spike' + v3, v3, {'_x': _x + 15, '_y': _y + 15});
_root.enemies.base.base['spike' + v3].mySection = thisSection;
timer = 0;
}
if (!idle) {
if (this.hitTestShape(_root.shoot)) {
++hit;
} else {
if (hit > 0) {
--hit;
}
}
if (hit > 1) {
play();
hit = -10000;
v3 = _root.particles3.base.getNextHighestDepth();
_root.particles3.base.attachMovie('enemyBoom3', 'enemyBoom3' + v3, v3, {'_x': _x, '_y': _y});
_root.particles3.base['enemyBoom3' + v3].base.stack1.gotoAndStop(base.stack1._currentframe);
_root.particles3.base['enemyBoom3' + v3].base.stack2.gotoAndStop(base.stack2._currentframe);
_root.particles3.base['enemyBoom3' + v3].base.chambers.green._height = base.chambers.green._height;
_root.particles3.base['enemyBoom3' + v3].base.chambers.blue._height = base.chambers.blue._height;
_root.enemiesKilledInfo += 1;
_root.savefileFun.data.enemiesKilled = _root.enemiesKilledInfo;
_root.savefileFun.flush();
alive = false;
}
}
if (i > 2) {
i = 0;
ranCheck = random(3);
if (ranCheck == 0) {
v3 = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + v3, v3, {'_x': _x + 7, '_y': _y});
_root.particles.base['particle7' + v3].base.gotoAndStop(timer * (5 * fillMult));
} else {
if (ranCheck == 1) {
v3 = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + v3, v3, {'_x': _x + 14.5, '_y': _y});
_root.particles.base['particle7' + v3].base.gotoAndStop(timer * (5 * fillMult));
} else {
if (ranCheck == 2) {
v3 = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + v3, v3, {'_x': _x + 7, '_y': _y});
_root.particles.base['particle7' + v3].gotoAndStop(timer * (5 * fillMult));
v3 = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle7', 'particle7' + v3, v3, {'_x': _x + 14.5, '_y': _y});
_root.particles.base['particle7' + v3].base.gotoAndStop(timer * (5 * fillMult));
}
}
}
}
}
}
}
stop();
var alive = true;
var i = 0;
var hit = 0;
var ranCheck = 0;
var timerMax = timer + 10;
var fillMult = 20 / timerMax;
var adjustSpeed = 10;
var setGreenH = timer * fillMult;
var setBlueH = 20 - timer * fillMult;
var nextDepth = 0;
base.chambers.green._height = setGreenH;
base.chambers.blue._height = setBlueH;
}
frame 3 {
stop();
}
}
movieClip 846 {
frame 1 {
stop();
}
}
movieClip 847 {
}
movieClip 850 {
frame 1 {
stop();
}
}
movieClip 851 {
frame 1 {
stop();
_root.enemies.boss.inv = false;
}
}
movieClip 852 {
}
movieClip 853 {
}
movieClip 854 {
frame 1 {
function onEnterFrame() {
gotoAndStop(_root.levelframe);
}
}
instance L4e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L5e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L5e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L5e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L5t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L6e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L6t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L7e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 1;
}
}
instance L7e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L7e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = 0;
}
}
instance L7e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = 1;
}
}
instance L8e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L8e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L8t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L9e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L9e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L9t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L10e4 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L10e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L10e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L10e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L10e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L11f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 140;
var thisSection = 0;
}
}
instance L11e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L11e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L12e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L12e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L12e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L12e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L13t1 of movieClip 842 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L13e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L13e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L13f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 140;
var thisSection = 0;
}
}
instance L14t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L14e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L14e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L14e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L15t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L15f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 140;
var thisSection = 0;
}
}
instance L15f2 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 140;
var thisSection = 0;
}
}
instance L15f3 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 140;
var thisSection = 1;
}
}
instance L15f4 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 140;
var thisSection = 1;
}
}
instance L16e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L16e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L16e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L16e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L16e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L17f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L17f2 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L17f3 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L18f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 50;
var thisSection = 0;
}
}
instance L18t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L18e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L18e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L18e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L19e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L19e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L19e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L19e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L19t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L20e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L20e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L21f4 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 1;
}
}
instance L21f1 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 1;
}
}
instance L21f3 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 0;
}
}
instance L21f2 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 0;
}
}
instance L22e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L22e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L22t1 of movieClip 842 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L22t2 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = 1;
}
}
instance L23e5 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L23e6 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L23e7 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 1;
}
}
instance L23e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L23e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L23e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L23e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L24e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L24e4 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L24e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L24e6 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L24e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L24e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L25e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L25e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L25e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L25e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L25e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L25e6 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L25t2 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = 1;
}
}
instance L25t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = 0;
}
}
instance L26f1 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 1;
}
}
instance L26e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L26e1 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L26e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L27e2 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L27e3 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = random(2);
}
}
instance L27e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L27e6 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L27e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L27e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L27t2 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = 1;
}
}
instance L27t1 of movieClip 842 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L28f1 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 110;
var thisSection = 0;
}
}
instance L28f2 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 110;
var thisSection = 0;
}
}
instance L28e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L28e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L28t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L28f3 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 110;
var thisSection = 0;
}
}
instance L29t3 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L29f1 of movieClip 843 {
onClipEvent (load) {
var idle = true;
var timer = 90;
var thisSection = 1;
}
}
instance L29t1 of movieClip 842 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance L29t2 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = 1;
}
}
instance L29e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L29e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L29e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L29e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L29e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30f1 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L30f2 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L30f3 of movieClip 843 {
onClipEvent (load) {
var idle = false;
var timer = 90;
var thisSection = 0;
}
}
instance L30e4 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e1 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e2 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e3 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e6 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e7 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e5 of movieClip 837 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30t1 of movieClip 842 {
onClipEvent (load) {
var idle = true;
var flow = random(2);
}
}
instance L30e8 of movieClip 837 {
onClipEvent (load) {
var idle = false;
var flow = 0;
}
}
instance boss of movieClip 853 {
onClipEvent (load) {
_alpha = 0;
var alphaInc = 3;
var started = false;
var alive = true;
var once = false;
var dest = 'd1';
var prevdest = '';
var enemycount = 0;
var i = -60;
var dir = 0;
var ran = 0;
var speed = 4;
var speedmax = speed;
var xDist = 0;
var yDist = 0;
var angle = 0;
var _rotation = 0;
var dr = 0;
var inv = false;
var health = 100;
}
onClipEvent (enterFrame) {
if (alive) {
if (!_root.gamePaused) {
base.colorhealth.gotoAndStop(health);
glow.colorhealth.gotoAndStop(health);
xDist = _x - _root[dest]._x;
yDist = _y - _root[dest]._y;
angle = Math.atan2(yDist, xDist) / 0.0174532925199433 - 90;
_rotation = angle;
if (_rotation > 180) {
_y = _y + speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x - speed * Math.sin(0.0174532925199433 * _rotation);
} else {
_y = _y - speed * Math.cos(0.0174532925199433 * _rotation);
_x = _x + speed * Math.sin(0.0174532925199433 * _rotation);
}
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (!inv) {
if (speed < speedmax) {
if (speed < 1) {
speed = 1;
}
speed *= 1.1;
}
if (speed > speedmax) {
speed = speedmax;
}
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (this.hitTestShape(_root.shoot)) {
inv = true;
base.play();
if (_root.shoot.blast._currentframe == 1) {
_root.batteries.base.attachMovie('bossbat5', 'bossbat5' + _root.batteries.base.getNextHighestDepth(), _root.batteries.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
health -= 5;
_root.c8.spawnLimit -= 7.5;
if (health <= 60) {
speedmax += 0.5;
hit._xscale += 1;
hit._yscale += 1;
hit._xscale *= 1.1;
hit._yscale *= 1.1;
}
} else {
_root.batteries.base.attachMovie('bossbat10', 'bossbat10' + _root.batteries.base.getNextHighestDepth(), _root.batteries.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
health -= 10;
_root.c8.spawnLimit -= 15;
if (health <= 60) {
speedmax += 1;
hit._xscale += 2;
hit._yscale += 2;
hit._xscale *= 1.1;
hit._yscale *= 1.1;
}
}
}
}
if (inv) {
speed *= 0.9;
}
if (_alpha >= 100) {
if (this.hit.hitTestShape(_root[dest])) {
if (dest == 'd1') {
if (prevdest == '') {
prevdest = 'd1';
ran = random(2);
if (ran == 0) {
dest = 'd2';
started = true;
} else {
dest = 'd20';
started = true;
}
} else {
if (prevdest == 'd20') {
prevdest = 'd1';
dest = 'd2';
} else {
if (prevdest == 'd2') {
prevdest = 'd1';
dest = 'd20';
}
}
}
} else {
if (dest == 'd2') {
if (prevdest == 'd1') {
prevdest = 'd2';
dest = 'd3';
} else {
if (prevdest == 'd3') {
prevdest = 'd2';
dest = 'd1';
}
}
} else {
if (dest == 'd3') {
if (prevdest == 'd2') {
prevdest = 'd3';
dest = 'd4';
} else {
if (prevdest == 'd4') {
prevdest = 'd3';
dest = 'd2';
}
}
} else {
if (dest == 'd4') {
if (prevdest == 'd3') {
prevdest = 'd4';
dest = 'd5';
} else {
if (prevdest == 'd5') {
prevdest = 'd4';
dest = 'd3';
}
}
} else {
if (dest == 'd5') {
if (prevdest == 'd4') {
prevdest = 'd5';
dest = 'd6';
} else {
if (prevdest == 'd6') {
prevdest = 'd5';
dest = 'd4';
}
}
} else {
if (dest == 'd6') {
if (prevdest == 'd5') {
prevdest = 'd6';
ran = random(2);
if (ran == 0) {
dest = 'd7';
} else {
dest = 'd21';
}
} else {
if (prevdest == 'd7') {
prevdest = 'd6';
ran = random(2);
if (ran == 0) {
dest = 'd5';
} else {
dest = 'd21';
}
} else {
if (prevdest == 'd21') {
prevdest = 'd6';
ran = random(2);
if (ran == 0) {
dest = 'd5';
} else {
dest = 'd7';
}
}
}
}
} else {
if (dest == 'd7') {
if (prevdest == 'd6') {
prevdest = 'd7';
dest = 'd8';
} else {
if (prevdest == 'd8') {
prevdest = 'd7';
dest = 'd6';
}
}
} else {
if (dest == 'd8') {
if (prevdest == 'd7') {
prevdest = 'd8';
ran = random(2);
if (ran == 0) {
dest = 'd9';
} else {
dest = 'd11';
}
} else {
if (prevdest == 'd9') {
prevdest = 'd8';
ran = random(2);
if (ran == 0) {
dest = 'd7';
} else {
dest = 'd11';
}
} else {
if (prevdest == 'd11') {
prevdest = 'd8';
ran = random(2);
if (ran == 0) {
dest = 'd7';
} else {
dest = 'd9';
}
}
}
}
} else {
if (dest == 'd9') {
if (prevdest == 'd8') {
prevdest = 'd9';
dest = 'd10';
} else {
if (prevdest == 'd10') {
prevdest = 'd9';
dest = 'd8';
}
}
} else {
if (dest == 'd10') {
prevdest = 'd10';
dest = 'd9';
} else {
if (dest == 'd11') {
if (prevdest == 'd8') {
prevdest = 'd11';
dest = 'd12';
} else {
if (prevdest == 'd12') {
prevdest = 'd11';
dest = 'd8';
}
}
} else {
if (dest == 'd12') {
if (prevdest == 'd11') {
prevdest = 'd12';
ran = random(2);
if (ran == 0) {
dest = 'd15';
} else {
dest = 'd13';
}
} else {
if (prevdest == 'd13') {
prevdest = 'd12';
ran = random(2);
if (ran == 0) {
dest = 'd11';
} else {
dest = 'd15';
}
} else {
if (prevdest == 'd15') {
prevdest = 'd12';
ran = random(2);
if (ran == 0) {
dest = 'd11';
} else {
dest = 'd13';
}
}
}
}
} else {
if (dest == 'd13') {
if (prevdest == 'd12') {
prevdest = 'd13';
dest = 'd14';
} else {
if (prevdest == 'd14') {
prevdest = 'd13';
dest = 'd12';
}
}
} else {
if (dest == 'd14') {
prevdest = 'd14';
dest = 'd13';
} else {
if (dest == 'd15') {
if (prevdest == 'd12') {
prevdest = 'd15';
dest = 'd16';
} else {
if (prevdest == 'd16') {
prevdest = 'd15';
dest = 'd12';
}
}
} else {
if (dest == 'd16') {
if (prevdest == 'd15') {
ran = random(2);
if (ran == 0) {
prevdest = 'd16';
dest = 'd21';
} else {
prevdest = 'd16';
dest = 'd17';
}
} else {
if (prevdest == 'd17') {
ran = random(2);
if (ran == 0) {
prevdest = 'd16';
dest = 'd21';
} else {
prevdest = 'd16';
dest = 'd15';
}
} else {
if (prevdest == 'd21') {
ran = random(2);
if (ran == 0) {
prevdest = 'd16';
dest = 'd15';
} else {
prevdest = 'd16';
dest = 'd17';
}
}
}
}
} else {
if (dest == 'd17') {
if (prevdest == 'd16') {
prevdest = 'd17';
dest = 'd18';
} else {
if (prevdest == 'd18') {
prevdest = 'd17';
dest = 'd16';
}
}
} else {
if (dest == 'd18') {
if (prevdest == 'd17') {
prevdest = 'd18';
dest = 'd19';
} else {
if (prevdest == 'd19') {
prevdest = 'd18';
dest = 'd17';
}
}
} else {
if (dest == 'd19') {
if (prevdest == 'd18') {
prevdest = 'd19';
dest = 'd20';
} else {
if (prevdest == 'd20') {
prevdest = 'd19';
dest = 'd18';
}
}
} else {
if (dest == 'd20') {
if (prevdest == 'd19') {
prevdest = 'd20';
dest = 'd1';
} else {
if (prevdest == 'd1') {
prevdest = 'd20';
dest = 'd19';
}
}
} else {
if (dest == 'd21') {
if (prevdest == 'd6') {
prevdest = 'd21';
dest = 'd16';
} else {
if (prevdest == 'd16') {
prevdest = 'd21';
dest = 'd6';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
_alpha = _alpha + alphaInc;
alphaInc *= 1.05;
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x + random(41) - 20, '_y': _y + random(41) - 20});
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x + random(41) - 20, '_y': _y + random(41) - 20});
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x + random(41) - 20, '_y': _y + random(41) - 20});
}
if (this.base.hitTestShape(_root.d1) || this.base.hitTestShape(_root.d3) || this.base.hitTestShape(_root.d4) || this.base.hitTestShape(_root.d10) || this.base.hitTestShape(_root.d21) || this.base.hitTestShape(_root.d18) || this.base.hitTestShape(_root.d19) || this.base.hitTestShape(_root.d7) || this.base.hitTestShape(_root.d14) || this.base.hitTestShape(_root.d15) || this.base.hitTestShape(_root.d11)) {
if (once) {
once = false;
ran = random(4);
if (ran == 0) {
if (enemycount < 5) {
enemycount += 1;
_root.enemies.base.base.attachMovie('spawn', 'spawn' + _root.enemies.base.base.getNextHighestDepth(), _root.enemies.base.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
}
if (health < 60) {
if (ran == 1) {
if (enemycount < 5) {
enemycount += 1;
_root.enemies.base.base.attachMovie('spawn', 'spawn' + _root.enemies.base.base.getNextHighestDepth(), _root.enemies.base.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
}
}
if (health < 40) {
if (ran == 2) {
if (enemycount < 5) {
enemycount += 1;
_root.enemies.base.base.attachMovie('spawn', 'spawn' + _root.enemies.base.base.getNextHighestDepth(), _root.enemies.base.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
}
}
}
}
if (!once) {
++i;
if (i > 60) {
i = 0;
once = true;
}
}
if (health <= 0) {
speed *= 0.6;
maxspeed *= 0.6;
_xscale = _xscale * 0.95;
_yscale = _yscale * 0.95;
if (_xscale > 1) {
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.particles.base.attachMovie('particle', 'particle' + _root.particles.base.getNextHighestDepth(), _root.particles.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
if (_xscale <= 20) {
_root.bossVictoriesInfo += 1;
_root.savefileFun.data.bossVictories = _root.bossVictoriesInfo;
_root.savefileFun.flush();
_root.defeatedBossInfo = 1;
_root.savefile.data.defeatedBoss = _root.defeatedBossInfo;
_root.savefile.flush();
alive = false;
i = 0;
_visible = false;
}
}
}
}
if (!alive) {
++i;
if (i == 60) {
_root.winning.play();
}
}
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 859 {
}
movieClip 860 {
}
movieClip 864 {
}
button 865 {
on (release) {
_root.flashbacks.gotoAndStop('menu');
}
}
button 867 {
on (release) {
_root.wide.menusure.play();
}
}
movieClip 869 {
}
movieClip 870 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 873 {
frame 1 {
stop();
}
}
movieClip 877 {
}
movieClip 879 {
frame 1 {
stop();
}
}
movieClip 883 {
frame 1 {
stop();
}
}
movieClip 886 {
frame 1 {
function onEnterFrame() {
chargemask._width = charge._width;
if (_root.player.batterypower >= 0) {
whitenum.text = Math.floor(_root.player.batterypower) + '%';
blacknum.text = Math.floor(_root.player.batterypower) + '%';
}
}
}
instance battery of movieClip 873 {
onClipEvent (enterFrame) {
_width = _root.wide.battery.charge._width;
}
}
}
movieClip 888 {
}
movieClip 892 {
}
movieClip 893 {
}
movieClip 894 {
}
movieClip 895 {
}
movieClip 897 {
}
movieClip 899 {
}
movieClip 900 {
}
movieClip 901 {
}
movieClip 904 {
}
movieClip 905 {
}
movieClip 906 {
instance battery of movieClip 886 {
onClipEvent (load) {
infoName = _root.gametype;
}
onClipEvent (enterFrame) {
infoName = _root.gametype;
if (infoName == '-Endless-') {
unlimMask.gotoAndStop(2);
chargemask.gotoAndStop(2);
bNumMask.gotoAndStop(2);
}
}
}
instance menubutton of movieClip 895 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_root.fileselect == 1) {
_root.savefile.data.savelevel1 = _root.savelevel1;
_root.savefile.data.savedeath1 = _root.savedeath1;
_root.savefile.flush();
}
if (_root.fileselect == 2) {
_root.savefile.data.savelevel2 = _root.savelevel2;
_root.savefile.data.savedeath2 = _root.savedeath2;
_root.savefile.flush();
}
if (_root.fileselect == 3) {
_root.savefile.data.savelevel3 = _root.savelevel3;
_root.savefile.data.savedeath3 = _root.savedeath3;
_root.savefile.flush();
}
if (_root.fileselect == 4) {
_root.savefile.data.savelevel4 = _root.savelevel4;
_root.savefile.data.savedeath4 = _root.savedeath4;
_root.savefile.flush();
}
_root.flashbacks.gotoAndStop('menu');
}
}
instance music of movieClip 897 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (release) {
if (_root.music.running) {
_root.music.running = false;
} else {
if (!_root.music.running) {
_root.music.running = true;
}
}
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (_root.winning._currentframe != 30) {
if (Key.isDown(77)) {
if (once) {
once = false;
if (_root.music.running) {
_root.music.running = false;
} else {
if (!_root.music.running) {
_root.music.running = true;
}
}
}
}
if (!Key.isDown(77)) {
once = true;
}
}
}
}
instance restartbutton of movieClip 900 {
onClipEvent (load) {
stop();
var once = true;
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (release) {
if (_root._currentframe != 38) {
if (_root.player.dead) {
_root.flashbacks.gotoAndStop('restart');
} else {
_root.player.dead = true;
}
}
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
if (_root.winning._currentframe != 30) {
if (Key.isDown(82)) {
if (once) {
if (_root._currentframe != 38) {
once = false;
if (_root.player.dead) {
_root.flashbacks.gotoAndStop('restart');
} else {
_root.player.dead = true;
}
if (_root.pauseMenu._currentframe >= 46) {
_root.flashbacks.gotoAndStop('restart');
}
}
}
}
if (!Key.isDown(82)) {
once = true;
}
}
}
}
instance of movieClip 905 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
getURL('http://armorgames.com/', 'blank');
}
}
}
movieClip 908 {
}
movieClip 909 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
movieClip 911 {
}
instance fpsMovie of movieClip 911 {
onClipEvent (load) {
var once = false;
_visible = false;
}
onClipEvent (enterFrame) {
_x = 665;
_y = 85;
if (_root.levelframe == 3) {
_x = 695;
}
if (_root.levelframe == 23 || _root.levelframe >= 31) {
_y = 55;
}
if (!Key.isDown(70)) {
once = true;
} else {
if (once) {
once = false;
if (_visible) {
_visible = false;
} else {
if (!_visible) {
_visible = true;
}
}
}
}
}
}
movieClip 914 {
frame 1 {
stop();
}
frame 3 {
function onEnterFrame() {
++i;
if (i > iRandom) {
play();
i = -9001;
}
}
stop();
i = 0;
iRandom = random(2);
}
frame 5 {
stop();
++_root.pauseMenu.backDrop.countedDead;
}
frame 8 {
function onEnterFrame() {
++i;
if (i > iRandom) {
play();
i = -9001;
}
}
stop();
i = 0;
iRandom = random(2);
}
frame 10 {
--_root.pauseMenu.backDrop.countedDead;
}
}
movieClip 915 {
}
// unknown tag 88 length 68
movieClip 919 {
}
movieClip 921 {
}
movieClip 923 {
}
movieClip 924 {
}
movieClip 925 {
}
movieClip 927 {
}
movieClip 928 {
}
movieClip 929 {
}
movieClip 931 {
}
movieClip 933 {
}
movieClip 935 {
}
movieClip 937 {
}
movieClip 938 {
}
movieClip 940 {
}
movieClip 942 {
}
movieClip 944 {
}
movieClip 945 {
}
movieClip 946 {
}
movieClip 948 {
}
movieClip 950 {
}
movieClip 952 {
}
movieClip 954 {
}
movieClip 956 {
}
movieClip 958 {
}
movieClip 959 {
}
movieClip 960 {
}
movieClip 962 {
}
movieClip 964 {
}
movieClip 966 {
}
movieClip 968 {
}
movieClip 970 {
}
movieClip 972 {
}
movieClip 974 {
}
movieClip 976 {
}
movieClip 978 {
}
movieClip 980 {
}
movieClip 982 {
}
movieClip 984 {
}
movieClip 986 {
}
movieClip 988 {
}
movieClip 990 {
}
movieClip 992 {
}
movieClip 994 {
}
movieClip 996 {
}
movieClip 998 {
}
movieClip 1000 {
}
movieClip 1001 {
}
movieClip 1002 {
}
movieClip 1003 {
instance of movieClip 925 {
onClipEvent (load) {
base.gotoAndPlay(random(40) + 1);
}
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.player._x;
_y = _root.player._y;
}
}
}
instance of movieClip 929 {
onClipEvent (load) {
var myRot = _root['L' + _root.levelframe + 'flag'].portalRot;
}
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_rotation = myRot;
_x = _root['L' + _root.levelframe + 'flag']._x;
_y = _root['L' + _root.levelframe + 'flag']._y;
if (myRot == 0) {
base.shift._x = 0;
base.shift._y = 0;
} else {
if (myRot == 90) {
base.shift._x = -50;
base.shift._y = 50;
} else {
if (myRot == 270) {
base.shift._x = 50;
base.shift._y = 50;
} else {
if (myRot == 180) {
base.shift._x = 0;
base.shift._y = 100;
}
}
}
}
}
}
}
instance L4e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L4d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L5e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L5e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L5e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L5t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L6e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L6t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L7e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L7e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L7e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L7e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L8e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L8e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L8t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L9e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L9e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L9t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L9d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L10e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L10e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L10e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L10e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L10e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L11e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L11e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L11f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L12e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L12e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L12e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L12e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L13e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L13e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L13f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L13t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L13d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L14e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L14e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L14e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L14t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L15f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L15f2 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L15f3 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L15f4 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L15t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L16d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L17f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L17f2 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L17f3 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L18e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L18e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L18e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L18f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L18t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L19d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L20e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L20e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L21f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L21f2 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L21f3 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L21f4 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L21d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L21d2 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L22e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L22e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L22t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L22t2 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e6 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L23e7 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24e6 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L24d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L24d2 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance L25e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25e6 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L25t2 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L26e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L26e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L26e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L26f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27e6 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L27t2 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28f2 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28f3 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L28t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29t3 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L29t2 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e1 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e2 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e3 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e4 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e5 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e6 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e7 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30e8 of movieClip 938 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30f1 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30f2 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30f3 of movieClip 960 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30t1 of movieClip 946 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
base.gun._rotation = _root.enemies[_name].gun._rotation;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
instance L30d1 of movieClip 940 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.disruptors[_name]._x;
_y = _root.disruptors[_name]._y;
}
if (!_root.disruptors[_name].alive) {
_visible = false;
}
}
}
instance boss of movieClip 1002 {
onClipEvent (enterFrame) {
if (_root.gamePaused) {
_x = _root.enemies[_name]._x;
_y = _root.enemies[_name]._y;
}
if (!_root.enemies[_name].alive) {
_visible = false;
}
}
}
}
movieClip 1005 {
}
movieClip 1009 {
}
movieClip 1011 {
}
movieClip 1012 {
}
movieClip 1014 {
}
movieClip 1015 {
}
movieClip 1017 {
frame 1 {
stop();
}
}
movieClip 1018 {
}
movieClip 1020 {
}
movieClip 1021 {
frame 1 {
stop();
}
}
movieClip 1024 {
}
movieClip 1026 {
}
movieClip 1027 {
}
movieClip 1029 {
}
movieClip 1030 {
}
movieClip 1032 {
}
movieClip 1033 {
}
movieClip 1035 {
}
movieClip 1036 {
}
movieClip 1038 {
}
movieClip 1040 {
}
movieClip 1041 {
}
movieClip 1043 {
}
movieClip 1044 {
}
movieClip 1045 {
}
movieClip 1047 {
}
movieClip 1048 {
}
movieClip 1049 {
}
movieClip 1051 {
}
movieClip 1052 {
}
movieClip 1053 {
}
movieClip 1055 {
}
movieClip 1056 {
}
movieClip 1057 {
}
movieClip 1060 {
}
movieClip 1062 {
}
movieClip 1064 {
}
movieClip 1066 {
}
movieClip 1068 {
}
movieClip 1070 {
frame 1 {
function onEnterFrame() {
myFrame = _parent.staticHelp._currentframe;
infoBox.text = 'Section ' + myFrame + '/13';
}
var myFrame = 1;
}
}
movieClip 1072 {
}
movieClip 1074 {
}
movieClip 1075 {
}
movieClip 1076 {
}
movieClip 1078 {
}
movieClip 1087 {
}
movieClip 1092 {
frame 1 {
stop();
}
}
movieClip 1094 {
}
movieClip 1095 {
}
movieClip 1096 {
frame 30 {
i = 1;
while (i < 13) {
tele1['s' + i].play();
++i;
}
}
frame 41 {
i = 1;
while (i < 13) {
tele2['s' + i].play();
++i;
}
}
frame 120 {
gotoAndPlay(30);
}
}
movieClip 1098 {
}
movieClip 1100 {
}
movieClip 1103 {
}
movieClip 1105 {
}
movieClip 1106 {
}
movieClip 1107 {
}
movieClip 1111 {
}
movieClip 1112 {
}
movieClip 1113 {
}
movieClip 1114 {
}
movieClip 1115 {
}
movieClip 1117 {
}
movieClip 1120 {
}
movieClip 1121 {
}
movieClip 1122 {
frame 1 {
stop();
}
}
movieClip 1123 {
}
movieClip 1124 {
frame 1 {
stop();
}
}
movieClip 1125 {
}
movieClip 1126 {
frame 1 {
stop();
}
}
movieClip 1127 {
}
movieClip 1128 {
}
movieClip 1129 {
frame 1 {
stop();
}
instance s13 of movieClip 1076 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 13;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s12 of movieClip 1087 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 12;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s11 of movieClip 1096 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 11;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s10 of movieClip 1103 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 10;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s9 of movieClip 1107 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 9;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s8 of movieClip 1112 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 8;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s7 of movieClip 1115 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 7;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s6 of movieClip 1117 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 6;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s5 of movieClip 1120 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 5;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s4 of movieClip 1122 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 4;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s3 of movieClip 1124 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 3;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s2 of movieClip 1126 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 2;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
instance s1 of movieClip 1128 {
onClipEvent (load) {
_alpha = 100;
var baseVar = 1;
var r = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
r = 0;
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
if (_parent._currentframe == baseVar) {
++r;
if (r > 10) {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
}
}
}
movieClip 1131 {
}
movieClip 1133 {
}
movieClip 1135 {
}
movieClip 1137 {
}
movieClip 1139 {
}
movieClip 1141 {
}
movieClip 1143 {
}
movieClip 1145 {
}
movieClip 1147 {
}
movieClip 1149 {
}
movieClip 1151 {
}
movieClip 1153 {
}
movieClip 1155 {
}
movieClip 1156 {
frame 1 {
stop();
}
instance of movieClip 1131 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 13;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1133 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 12;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1135 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 11;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1137 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 10;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1139 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 9;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1141 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 8;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1143 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 7;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance of movieClip 1145 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 6;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance t5 of movieClip 1147 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 5;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance t4 of movieClip 1149 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 4;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance t3 of movieClip 1151 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 3;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance t2 of movieClip 1153 {
onClipEvent (load) {
_alpha = 0;
var baseVar = 2;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
instance t1 of movieClip 1155 {
onClipEvent (load) {
_alpha = 100;
var baseVar = 1;
}
onClipEvent (enterFrame) {
if (_parent._currentframe != baseVar) {
if (_alpha > 0) {
_alpha = _alpha - 20;
}
}
if (_parent._currentframe == baseVar) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
}
}
}
}
movieClip 1157 {
frame 1 {
function randomArray() {
r = function () {
return random(2) * 2 - 1;
};
baseArray.sort(r);
}
function onEnterFrame() {
fileDisplay.text = 'File ' + _root.fileselect + ':';
if (_root.fileselect == 1) {
if (_root.gameMode1 == '-Regular-') {
modeDisplay.base.pauseMode.text = '-Regular Mode-';
} else {
modeDisplay.base.pauseMode.text = '-Endless Mode-';
}
} else {
if (_root.fileselect == 2) {
if (_root.gameMode2 == '-Regular-') {
modeDisplay.base.pauseMode.text = '-Regular Mode-';
} else {
modeDisplay.base.pauseMode.text = '-Endless Mode-';
}
} else {
if (_root.fileselect == 3) {
if (_root.gameMode3 == '-Regular-') {
modeDisplay.base.pauseMode.text = '-Regular Mode-';
} else {
modeDisplay.base.pauseMode.text = '-Endless Mode-';
}
} else {
if (_root.fileselect == 4) {
if (_root.gameMode4 == '-Regular-') {
modeDisplay.base.pauseMode.text = '-Regular Mode-';
} else {
modeDisplay.base.pauseMode.text = '-Endless Mode-';
}
}
}
}
}
if (backClicked) {
if (countedDead == 0) {
backClicked = false;
} else {
if (countedDead > 0) {
masker['m' + baseArray[clicker]].play();
++clicker;
}
}
}
if (triggerMask) {
if (once) {
clicker = 0;
once = false;
randomArray();
}
masker['m' + baseArray[clicker]].play();
++clicker;
if (countedDead >= 47) {
nextFrame();
triggerMask = false;
}
}
}
stop();
var triggerMask = false;
var once = true;
if (!backClicked) {
var baseArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47];
var countedDead = 0;
}
var clicker = 0;
}
instance miniMap of movieClip 1003 {
onClipEvent (enterFrame) {
gotoAndStop(_root.levelframe);
if (_root.pauseMenu._currentframe >= 47) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1024 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.g1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.gamePaused = false;
}
}
instance of movieClip 1027 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (_parent.countedDead == 0) {
if (over) {
nextFrame();
_parent.g1.rotSpeed += 2;
} else {
prevFrame();
}
}
}
onClipEvent (release) {
if (_parent.countedDead == 0) {
_parent.triggerMask = true;
}
}
}
instance of movieClip 1030 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.g1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.highScores.looking = true;
}
}
instance of movieClip 1033 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.g1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
}
}
instance of movieClip 1036 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.g1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.flashbacks.gotoAndStop('menu');
}
}
instance g1 of movieClip 1041 {
onClipEvent (load) {
var rotSpeed = 0;
}
onClipEvent (enterFrame) {
rotSpeed *= 0.75;
_rotation = _rotation + rotSpeed;
}
}
instance g2 of movieClip 1045 {
onClipEvent (enterFrame) {
_rotation = _rotation - _parent.g1.rotSpeed;
}
}
instance g3 of movieClip 1049 {
onClipEvent (enterFrame) {
_rotation = _rotation + _parent.g1.rotSpeed;
}
}
instance g4 of movieClip 1053 {
onClipEvent (enterFrame) {
_rotation = _rotation - _parent.g1.rotSpeed;
}
}
instance g5 of movieClip 1057 {
onClipEvent (enterFrame) {
_rotation = _rotation + _parent.g1.rotSpeed;
}
}
frame 2 {
function onEnterFrame() {
if (!backClicked) {
if (countedDead > 0) {
masker['m' + baseArray[clicker]].play();
++clicker;
}
if (backTo) {
baseArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47];
randomArray();
clicker = 0;
backClicked = true;
backTo = false;
}
} else {
masker['m' + baseArray[clicker]].play();
++clicker;
if (countedDead >= 47) {
prevFrame();
}
}
}
randomArray();
clicker = 0;
var backClicked = false;
var backTo = false;
}
instance of movieClip 1068 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.g1A.rotSpeed += 2;
_root.g1B.rotSpeed += 2;
} else {
prevFrame();
}
if (_root.pauseMenu.backDrop.staticHelp._currentframe == 13) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
onClipEvent (release) {
_parent.staticHelp.nextFrame();
_parent.textHelp.nextFrame();
}
}
instance of movieClip 1068 {
onClipEvent (load) {
_alpha = 0;
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_root.g1A.rotSpeed += 2;
_root.g1B.rotSpeed += 2;
} else {
prevFrame();
}
if (_root.pauseMenu.backDrop.staticHelp._currentframe == 1) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 10;
}
}
}
onClipEvent (release) {
_parent.staticHelp.prevFrame();
_parent.textHelp.prevFrame();
}
}
instance button1 of movieClip 1024 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.gB1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.gamePaused = false;
}
}
instance button2 of movieClip 1030 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.gB1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.highScores.looking = true;
}
}
instance button3 of movieClip 1072 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
_parent.gB1.rotSpeed += 2;
} else {
prevFrame();
}
}
onClipEvent (release) {
if (_parent.countedDead == 0) {
_parent.backTo = true;
}
}
}
instance gB1 of movieClip 1041 {
onClipEvent (load) {
var rotSpeed = 0;
}
onClipEvent (enterFrame) {
rotSpeed *= 0.75;
_rotation = _rotation + rotSpeed;
}
}
instance gB2 of movieClip 1045 {
onClipEvent (enterFrame) {
_rotation = _rotation - _parent.gB1.rotSpeed;
}
}
instance gB3 of movieClip 1049 {
onClipEvent (enterFrame) {
_rotation = _rotation + _parent.gB1.rotSpeed;
}
}
}
movieClip 1158 {
frame 60 {
backDrop.binaryMove = true;
}
}
instance pauseMenu of movieClip 1158 {
onClipEvent (load) {
var baseFrame = 45;
}
onClipEvent (enterFrame) {
if (_root.gamePaused) {
if (_root._currentframe != 38) {
if (baseFrame <= _currentframe) {
nextFrame();
}
}
} else {
backDrop.binaryMove = false;
if (_currentframe > baseFrame) {
prevFrame();
}
if (_currentframe > baseFrame + 1) {
prevFrame();
}
}
if (_root._currentframe == 38) {
gotoAndStop(baseFrame);
}
}
}
instance highScores of movieClip 486 {
onClipEvent (load) {
_alpha = 0;
var looking = false;
}
onClipEvent (enterFrame) {
if (looking) {
if (_root.pauseMenu.backDrop._alpha < 100) {
looking = false;
}
if (_alpha < 100) {
_x = 350;
_alpha = _alpha + 10;
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
if (_alpha <= 0) {
_x = -9001;
_root.mb1Clicker.gotoAndStop(1);
_root.mb2Clicker.gotoAndStop(1);
_root.mb3Clicker.gotoAndStop(1);
_root.mb4Clicker.gotoAndStop(1);
_root.mb5Clicker.gotoAndStop(1);
}
}
}
}
frame 9 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1160 {
}
movieClip 1162 {
}
movieClip 1164 {
}
movieClip 1166 {
}
movieClip 1171 {
}
movieClip 1177 {
}
movieClip 1179 {
}
movieClip 1181 {
}
movieClip 1183 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1186 {
}
movieClip 1188 {
}
movieClip 1190 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1192 {
}
movieClip 1194 {
}
movieClip 1196 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1198 {
}
movieClip 1200 {
}
movieClip 1202 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1205 {
}
movieClip 1207 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1209 {
}
movieClip 1211 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1213 {
}
movieClip 1215 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1218 {
}
movieClip 1220 {
}
movieClip 1222 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1224 {
}
movieClip 1226 {
}
movieClip 1228 {
instance of movieClip 1177 {
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_height = _height - random(11);
_alpha = _alpha - random(41);
}
}
}
movieClip 1229 {
}
movieClip 1230 {
frame 1 {
w = 150;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1233 {
}
movieClip 1236 {
}
movieClip 1239 {
}
movieClip 1241 {
}
movieClip 1243 {
}
movieClip 1245 {
}
movieClip 1247 {
}
movieClip 1248 {
}
movieClip 1249 {
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance grate of movieClip 1248 {
onClipEvent (load) {
gotoAndStop(random(4) + 1);
}
}
}
movieClip 1252 {
}
movieClip 1254 {
}
instance L2flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance tipmaker2 of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip2.play();
timer = -1.0e+016;
}
}
}
}
}
instance tipmaker2b of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip2b.play();
timer = -1.0e+016;
}
}
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 1256 {
}
movieClip 1257 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
movieClip 1259 {
}
movieClip 1260 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
frame 10 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1262 {
}
movieClip 1264 {
}
movieClip 1266 {
}
movieClip 1268 {
}
// unknown tag 88 length 65
movieClip 1273 {
}
movieClip 1274 {
}
movieClip 1277 {
frame 1 {
w = 35;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1278 {
}
movieClip 1279 {
}
movieClip 1280 {
}
movieClip 1282 {
}
movieClip 1283 {
}
movieClip 1284 {
}
movieClip 1289 {
}
movieClip 1290 {
}
movieClip 1292 {
}
movieClip 1293 {
}
movieClip 1295 {
}
movieClip 1296 {
}
movieClip 1297 {
}
movieClip 1299 {
}
movieClip 1300 {
}
movieClip 1301 {
}
movieClip 1305 {
}
movieClip 1307 {
}
movieClip 1309 {
}
movieClip 1310 {
}
movieClip 1314 {
}
movieClip 1316 {
}
movieClip 1318 {
}
movieClip 1319 {
}
movieClip 1320 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 6;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 1284 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA3 of movieClip 1296 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA4 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA5 of movieClip 1310 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gA6 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA1 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
}
movieClip 1322 {
}
movieClip 1323 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
++i;
if (i > 2) {
i = 0;
s = 0;
while (s < iLimit) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('particle3', 'particle3' + nextDepth, nextDepth, {'_x': _x - w + random(w * 2), '_y': _y - h + random(h * 2)});
_root.particles.base['particle3' + nextDepth].myRot = spawnRot;
++s;
}
}
}
}
var i = 0;
var w = _width / 2 - 5;
var h = _height / 2 - 5;
var nextDepth = 0;
if (spawnRot == 0 || spawnRot == 2) {
var iLimit = (w + 5) / 15;
} else {
var iLimit = (h + 5) / 15;
}
}
}
movieClip 1326 {
}
movieClip 1328 {
}
movieClip 1330 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L3flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance tipmaker3 of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip3.play();
timer = -1.0e+016;
}
}
}
}
}
movieClip 1331 {
}
instance of movieClip 1331 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.player.hit)) {
--_root.player._x;
}
}
}
instance L3b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L3b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L3b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 1333 {
}
movieClip 1334 {
}
movieClip 1335 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
frame 11 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1337 {
}
movieClip 1339 {
}
movieClip 1341 {
}
movieClip 1343 {
}
movieClip 1349 {
}
movieClip 1351 {
frame 1 {
w = 200;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 1349 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1352 {
}
movieClip 1353 {
}
movieClip 1354 {
}
movieClip 1355 {
}
movieClip 1356 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1355 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA2 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
}
movieClip 1357 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA1 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
movieClip 1359 {
}
movieClip 1362 {
}
movieClip 1364 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
movieClip 1366 {
}
movieClip 1370 {
}
movieClip 1372 {
}
instance L4flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance tipmaker4 of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip4.play();
timer = -1.0e+016;
}
}
}
}
}
instance of movieClip 1331 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.player.hit)) {
++_root.player._x;
}
}
}
instance L4b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L4b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 1374 {
}
movieClip 1375 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
frame 12 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1377 {
}
movieClip 1379 {
}
movieClip 1381 {
}
movieClip 1383 {
}
movieClip 1385 {
}
movieClip 1388 {
}
movieClip 1389 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
++i;
if (i > spawnTime) {
i = 0;
nextDepth = binarySlider.getNextHighestDepth();
if (setPos == 0) {
binarySlider.attachMovie('binaryBits', 'binaryBits' + nextDepth, nextDepth, {'_x': binarySlider._x, '_y': binarySlider._y - 30});
binarySlider['binaryBits' + nextDepth].moveSpeed = setSpeed;
} else {
binarySlider.attachMovie('binaryBits', 'binaryBits' + nextDepth, nextDepth, {'_x': binarySlider._x, '_y': binarySlider._y + 30});
binarySlider['binaryBits' + nextDepth].moveSpeed = -setSpeed;
}
}
}
}
var i = 0;
var nextDepth = 0;
var changeAdd = Math.random();
var setSpeed = 1 + changeAdd;
var spawnTime = 10 / setSpeed;
var setPos = random(2);
f = 0;
while (f < 6) {
if (setPos == 0) {
nextDepth = binarySlider.getNextHighestDepth();
binarySlider.attachMovie('binaryBits', 'binaryBits' + nextDepth, nextDepth, {'_x': binarySlider._x, '_y': binarySlider._y - 30 + f * 11});
binarySlider['binaryBits' + nextDepth].moveSpeed = setSpeed;
} else {
nextDepth = binarySlider.getNextHighestDepth();
binarySlider.attachMovie('binaryBits', 'binaryBits' + nextDepth, nextDepth, {'_x': binarySlider._x, '_y': binarySlider._y + 30 - f * 11});
binarySlider['binaryBits' + nextDepth].moveSpeed = -setSpeed;
}
++f;
}
}
}
movieClip 1392 {
}
movieClip 1394 {
}
instance L5flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance tipmaker5 of movieClip 826 {
onClipEvent (load) {
var active = false;
var timerstart = false;
var timer = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.player)) {
active = true;
}
if (active) {
if (_currentframe <= 20) {
timerstart = true;
play();
}
if (_currentframe == 61) {
gotoAndPlay('active');
}
} else {
if (_currentframe == 20) {
gotoAndPlay('inactive');
}
}
if (timerstart) {
++timer;
if (timer > 30) {
_root.tip5.play();
timer = -1.0e+016;
}
}
}
}
}
movieClip 1396 {
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L5t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L5t1.idle = true;
}
}
}
instance L5b1 of movieClip 182 battery30 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 1398 {
}
movieClip 1399 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 40) {
play();
}
}
} else {
stop();
}
}
stop();
}
frame 40 {
stop();
}
}
frame 13 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1402 {
}
movieClip 1404 {
}
movieClip 1406 {
}
movieClip 1411 {
}
movieClip 1412 {
}
movieClip 1414 {
}
movieClip 1415 {
}
movieClip 1416 {
}
movieClip 1418 {
}
movieClip 1420 {
}
movieClip 1421 {
}
movieClip 1422 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
var totalBGears = 1;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
i = 1;
while (i <= totalBGears) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
if (totalBGears > 1) {
i = 2;
while (i <= totalBGears) {
while (this['gB' + i].gear.base._currentframe == this['gB' + (i - 1)].gear.base._currentframe) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
}
i = 1;
while (i <= totalBGears) {
if (this['gB' + i].gear.base._currentframe == 1) {
this['gB' + i].peg.base.gotoAndStop(2);
}
if (this['gB' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gB' + i].peg.base.gotoAndStop(1);
} else {
this['gB' + i].peg.base.gotoAndStop(3);
}
}
if (this['gB' + i].gear.base._currentframe == 3) {
this['gB' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1415 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 1421 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
instance gA3 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA4 of movieClip 1415 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gB1 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
}
movieClip 1423 {
}
movieClip 1424 {
}
movieClip 1427 {
}
movieClip 1429 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L6flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L6t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L6t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L6t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L6t1.idle = true;
}
}
}
instance L6b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L6b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L6b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 14 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1431 {
}
movieClip 1433 {
}
movieClip 1437 {
}
movieClip 1440 {
frame 1 {
w = 80;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1441 {
}
movieClip 1443 {
}
movieClip 1445 {
}
movieClip 1446 {
}
movieClip 1447 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1446 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
instance gA2 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
movieClip 1448 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
instance gA1 of movieClip 339 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
}
movieClip 1449 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 6;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA3 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 1355 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA1 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gA4 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.25;
shine._rotation -= _parent.rotSpeed * 1.25;
}
}
instance gA5 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA6 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
movieClip 1451 {
}
movieClip 1454 {
}
movieClip 1456 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
}
instance L7flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 1457 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L7e3.idle = false;
_root.enemies.L7e4.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 15 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1459 {
}
movieClip 1461 {
}
movieClip 1463 {
}
movieClip 1465 {
}
movieClip 1466 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1310 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gA2 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA3 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1468 {
}
movieClip 1471 {
}
movieClip 1473 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L8flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L8t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L8t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L8t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L8t1.idle = true;
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 16 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1475 {
}
movieClip 1477 {
}
movieClip 1479 {
}
movieClip 1481 {
}
movieClip 1484 {
frame 1 {
w = 120;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 749 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1485 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 5;
var totalBGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
i = 1;
while (i <= totalBGears) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalBGears) {
while (this['gB' + i].gear.base._currentframe == this['gB' + (i - 1)].gear.base._currentframe) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalBGears) {
if (this['gB' + i].gear.base._currentframe == 1) {
this['gB' + i].peg.base.gotoAndStop(2);
}
if (this['gB' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gB' + i].peg.base.gotoAndStop(1);
} else {
this['gB' + i].peg.base.gotoAndStop(3);
}
}
if (this['gB' + i].gear.base._currentframe == 3) {
this['gB' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA3 of movieClip 1284 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gB1 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA2 of movieClip 1296 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA1 of movieClip 339 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
instance gA4 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA5 of movieClip 1310 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gB2 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
movieClip 1486 {
}
movieClip 1489 {
}
movieClip 1491 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L9flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L9t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L9t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L9t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L9t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.disruptors.L9d1.idle = false;
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 17 {
stop();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1493 {
}
movieClip 1495 {
}
movieClip 1497 {
}
movieClip 1499 {
}
movieClip 1500 {
}
movieClip 1503 {
}
movieClip 1505 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
movieClip 1506 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (_currentframe >= 2) {
if (_currentframe != 11) {
play();
}
}
} else {
stop();
}
}
stop();
var w = _width;
var h = _height;
var nextDepth = 0;
if (w > h) {
var rot = 0;
} else {
var rot = 1;
}
if (rot == 0) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap', 'cap' + nextDepth, nextDepth, {'_x': _x + 5, '_y': _y});
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap', 'cap' + nextDepth, nextDepth, {'_x': _x + w - 5, '_y': _y});
}
if (rot == 1) {
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap2', 'cap2' + nextDepth, nextDepth, {'_x': _x, '_y': _y + 5});
nextDepth = _root.particles.base.getNextHighestDepth();
_root.particles.base.attachMovie('cap2', 'cap2' + nextDepth, nextDepth, {'_x': _x, '_y': _y + h - 5});
}
}
instance hit of movieClip 690 {
onClipEvent (load) {
var speed = 5;
var tGo = false;
var t = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
tGo = true;
}
if (tGo) {
++t;
if (_parent.rot == 0) {
_root.player._x -= (_root.player._x - (_parent._x + _parent.w / 2)) / speed;
_root.player._y -= (_root.player._y - _parent._y) / speed;
} else {
_root.player._x -= (_root.player._x - _parent._x) / speed;
_root.player._y -= (_root.player._y - (_parent._y + _parent.h / 2)) / speed;
}
}
if (t > 3) {
speed = 2;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.player._rotation += random(21);
_root.player._x += random(11) - 5;
_root.player._y += random(11) - 5;
_root.player.batterypower -= 3;
if (_root.player.batterypower < 1) {
_root.flashbacks.gotoAndStop('restart');
}
}
}
}
frame 2 {
base.base.play();
}
frame 11 {
stop();
}
}
instance of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.enemies.L10e5.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L10flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L10e1.idle = false;
_root.enemies.L10e2.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L10e1.idle = false;
_root.enemies.L10e2.idle = false;
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 18 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1508 {
}
movieClip 1510 {
}
movieClip 1512 {
}
movieClip 1514 {
}
movieClip 1517 {
}
movieClip 1519 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance lever2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
movieClip 1520 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L11e2.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
_root.levelSection = 1;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance L11flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance L11b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 19 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1522 {
}
movieClip 1524 {
}
movieClip 1526 {
}
movieClip 1527 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 339 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.25;
shine._rotation -= _parent.rotSpeed * 1.25;
}
}
instance gA3 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA4 of movieClip 1421 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1528 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 339 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
instance gA2 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1532 {
}
movieClip 1534 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
}
instance L12flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 90;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L12e2.idle = false;
_root.enemies.L12e4.idle = false;
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 20 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1536 {
}
movieClip 1538 {
}
movieClip 1540 {
}
movieClip 1541 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
var totalBGears = 1;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
i = 1;
while (i <= totalBGears) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
if (totalBGears > 1) {
i = 2;
while (i <= totalBGears) {
while (this['gB' + i].gear.base._currentframe == this['gB' + (i - 1)].gear.base._currentframe) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
}
i = 1;
while (i <= totalBGears) {
if (this['gB' + i].gear.base._currentframe == 1) {
this['gB' + i].peg.base.gotoAndStop(2);
}
if (this['gB' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gB' + i].peg.base.gotoAndStop(1);
} else {
this['gB' + i].peg.base.gotoAndStop(3);
}
}
if (this['gB' + i].gear.base._currentframe == 3) {
this['gB' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1310 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gA2 of movieClip 1296 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA3 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gB1 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
instance gB1 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
movieClip 1544 {
}
movieClip 1546 {
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L13t1.idle = true;
_root.enemies.L13f1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L13t1.idle = false;
_root.enemies.L13f1.idle = false;
}
}
}
instance L13flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 270;
}
}
movieClip 1547 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L13e1.idle = false;
_root.enemies.L13e2.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
_root.levelSection = 1;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.disruptors.L13d1.idle = false;
}
}
}
instance L11b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 21 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1549 {
}
movieClip 1551 {
}
movieClip 1553 {
}
movieClip 1556 {
frame 1 {
w = 150;
baseTexture._x -= random(201 - w);
baseTexture._y -= random(116);
}
instance mainShadow of movieClip 1349 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
instance of movieClip 1229 {
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
}
}
movieClip 1558 {
}
movieClip 1561 {
}
movieClip 1563 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
}
instance of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L14flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14e3.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L14e1.idle = false;
}
}
}
instance of movieClip 1331 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.player.hit)) {
++_root.player._x;
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 22 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1565 {
}
movieClip 1567 {
}
movieClip 1569 {
}
movieClip 1570 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1284 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA2 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
instance gA3 of movieClip 1296 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
movieClip 1572 {
}
movieClip 1573 {
}
movieClip 1576 {
}
movieClip 1578 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
movieClip 1579 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.levelSection = 1;
_root.enemies.L15t1.idle = false;
_root.enemies.L15f1.idle = true;
_root.enemies.L15f2.idle = true;
_root.enemies.L15f3.idle = false;
_root.enemies.L15f4.idle = false;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance L15flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance L15b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b4 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b8 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b7 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b6 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L15b5 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 23 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1582 {
}
movieClip 1584 {
}
movieClip 1586 {
}
movieClip 1589 {
}
movieClip 1591 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
}
instance lever1 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L16flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L16e4.idle = false;
_root.enemies.L16e5.idle = false;
_root.disruptors.L16d1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L16e1.idle = false;
_root.enemies.L16e2.idle = false;
_root.enemies.L16e3.idle = false;
}
}
}
instance L16b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 24 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1594 {
}
movieClip 1596 {
}
movieClip 1597 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA4 of movieClip 1355 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA3 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 339 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.25;
shine._rotation -= _parent.rotSpeed * 1.25;
}
}
instance gA1 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
}
movieClip 1599 {
}
movieClip 1602 {
}
movieClip 1604 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance lever2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L17flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance L17b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L17b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L17b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 25 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1606 {
}
movieClip 1608 {
}
movieClip 1609 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
instance gA2 of movieClip 1421 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
instance gA3 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA4 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
movieClip 1611 {
}
movieClip 1614 {
}
movieClip 1616 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance lever1 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
_root.enemies.L18e2.idle = false;
_root.enemies.L18e3.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L18flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L18e1.idle = false;
_root.enemies.L18t1.idle = false;
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 26 {
stop();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1618 {
}
movieClip 1620 {
}
movieClip 1621 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.25;
shine._rotation -= _parent.rotSpeed * 1.25;
}
}
instance gA1 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
instance gA3 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA4 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
movieClip 1623 {
}
movieClip 1625 {
}
movieClip 1627 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
}
instance lever2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.laser2.play();
_root.enemies.L19e1.idle = false;
_root.enemies.L19e2.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L19flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L19t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L19t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L19t1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L19t1.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L19e4.idle = false;
_root.enemies.L19e3.idle = false;
_root.disruptors.L19d1.idle = false;
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 27 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1630 {
}
movieClip 1632 {
}
movieClip 1634 {
}
movieClip 1637 {
}
movieClip 1639 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
}
instance L20flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance L22b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L22b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L22b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L22b4 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L22b5 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 28 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1641 {
}
movieClip 1643 {
}
movieClip 1645 {
}
movieClip 1648 {
}
movieClip 1650 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L21flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 1651 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.levelSection = 1;
_root.enemies.L21f1.idle = false;
_root.enemies.L21f4.idle = false;
_root.enemies.L21f2.idle = true;
_root.enemies.L21f3.idle = true;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L21f2.idle = false;
_root.disruptors.L21d2.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L21f3.idle = false;
_root.disruptors.L21d1.idle = false;
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 29 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1654 {
}
movieClip 1656 {
}
movieClip 1657 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA3 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 1355 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
instance gA1 of movieClip 1421 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1659 {
}
movieClip 1662 {
}
movieClip 1664 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance L22flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 1666 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L22e2.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
_root.enemies.L22t1.idle = true;
_root.enemies.L22t2.idle = false;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
movieClip 1667 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1b._x;
setY = _root.tele1b._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1b.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2b._x;
setY = _root.tele2b._y;
_root.player._x = _root.tele2b._x;
_root.player._y = _root.tele2b._y;
_root.enemies.L22t2.idle = false;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2b['s' + s].play();
++s;
}
}
if (_root.tele2b.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2b['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2b['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 30 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1670 {
}
movieClip 1672 {
}
movieClip 1673 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.25;
shine._rotation -= _parent.rotSpeed * 1.25;
}
}
instance gA1 of movieClip 1284 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA3 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
}
movieClip 1675 {
}
movieClip 1678 {
}
movieClip 1681 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 1;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
}
instance of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.enemies.L23e1.idle = false;
_root.enemies.L23e2.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L23flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L23e3.idle = false;
_root.enemies.L23e4.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L23e3.idle = false;
_root.enemies.L23e4.idle = false;
}
}
}
instance L23b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L23b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 31 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1683 {
}
movieClip 1685 {
}
movieClip 1686 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
var totalBGears = 1;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
i = 1;
while (i <= totalBGears) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
if (totalBGears > 1) {
i = 2;
while (i <= totalBGears) {
while (this['gB' + i].gear.base._currentframe == this['gB' + (i - 1)].gear.base._currentframe) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
}
i = 1;
while (i <= totalBGears) {
if (this['gB' + i].gear.base._currentframe == 1) {
this['gB' + i].peg.base.gotoAndStop(2);
}
if (this['gB' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gB' + i].peg.base.gotoAndStop(1);
} else {
this['gB' + i].peg.base.gotoAndStop(3);
}
}
if (this['gB' + i].gear.base._currentframe == 3) {
this['gB' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
instance gA1 of movieClip 1319 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.25;
shine._rotation += _parent.rotSpeed * 1.25;
}
}
instance gA3 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gB1 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1689 {
}
movieClip 1691 {
}
instance laser2 of movieClip 1506 {
onClipEvent (load) {
var leverOn = true;
var action = 0;
}
onClipEvent (enterFrame) {
if (leverOn) {
if (action >= 5) {
play();
leverOn = false;
}
}
}
}
instance leverS1 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance leverS2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance leverS3 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance leverS4 of movieClip 694 {
onClipEvent (load) {
_rotation = 65;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 110) {
_rotation = _rotation + 5;
}
}
}
}
instance leverS5 of movieClip 694 {
onClipEvent (load) {
_rotation = -115;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < -70) {
_rotation = _rotation + 5;
}
}
}
}
instance L24flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 90;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L24e5.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L24e6.idle = false;
}
}
}
instance L24b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L24b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L24b3 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L24b4 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 32 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1693 {
}
movieClip 1695 {
}
movieClip 1697 {
}
movieClip 1700 {
}
movieClip 1702 {
}
instance lever2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser2.play();
_root.enemies.L25t2.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance lever1 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
_root.enemies.L25e4.idle = false;
_root.enemies.L25e5.idle = false;
_root.enemies.L25t1.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L25flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 1703 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L25e6.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
_root.enemies.L25t1.idle = true;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance L25b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 33 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1707 {
}
movieClip 1708 {
}
movieClip 1710 {
}
movieClip 1713 {
}
movieClip 1715 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
}
instance laser2 of movieClip 1506 {
onClipEvent (load) {
var leverOn = true;
var action = 0;
}
onClipEvent (enterFrame) {
if (leverOn) {
if (action >= 2) {
play();
leverOn = false;
}
}
}
}
instance leverswitch2 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance leverswitch1 of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laserGod.play();
_root.levelSection = 1;
_root.enemies.L26f1.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance leverswitch2b of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
++_root.laser2.action;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L26flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 90;
}
}
movieClip 1716 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.enemies.L26e3.idle = false;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
movieClip 1717 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1b._x;
setY = _root.tele1b._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1b.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2b._x;
setY = _root.tele2b._y;
_root.player._x = _root.tele2b._x;
_root.player._y = _root.tele2b._y;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2b['s' + s].play();
++s;
}
}
if (_root.tele2b.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2b['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2b['s' + s].play();
++s;
}
}
}
}
}
}
}
}
movieClip 1718 {
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L26e2.idle = false;
}
}
}
instance L26b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L26b3 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L26b of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L26b2 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 34 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1721 {
}
movieClip 1723 {
}
movieClip 1724 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 4;
var totalBGears = 1;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
i = 1;
while (i <= totalBGears) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
if (totalBGears > 1) {
i = 2;
while (i <= totalBGears) {
while (this['gB' + i].gear.base._currentframe == this['gB' + (i - 1)].gear.base._currentframe) {
this['gB' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
}
i = 1;
while (i <= totalBGears) {
if (this['gB' + i].gear.base._currentframe == 1) {
this['gB' + i].peg.base.gotoAndStop(2);
}
if (this['gB' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gB' + i].peg.base.gotoAndStop(1);
} else {
this['gB' + i].peg.base.gotoAndStop(3);
}
}
if (this['gB' + i].gear.base._currentframe == 3) {
this['gB' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA2 of movieClip 1310 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed * 1.0715;
shine._rotation -= _parent.rotSpeed * 1.0715;
}
}
instance gB1 of movieClip 312 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA1 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA3 of movieClip 1296 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA4 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed;
shine._rotation -= _parent.rotSpeed;
}
}
}
movieClip 1725 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 2;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed / 1.0666;
shine._rotation += _parent.rotSpeed / 1.0666;
}
}
instance gA2 of movieClip 330 {
onClipEvent (enterFrame) {
gear._rotation -= _parent.rotSpeed / 1.0666;
shine._rotation -= _parent.rotSpeed / 1.0666;
}
}
}
movieClip 1726 {
}
movieClip 1729 {
}
movieClip 1731 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
}
instance of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laserCool.play();
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
instance L27flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L27t1.idle = false;
_root.enemies.L27t2.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L27t1.idle = true;
_root.enemies.L27t2.idle = false;
_root.enemies.L27e6.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L27e1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L27e4.idle = false;
_root.enemies.L27e5.idle = false;
}
}
}
instance of movieClip 1331 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.player.hit)) {
++_root.player._x;
}
}
}
instance L27b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L27b2 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 35 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1734 {
}
movieClip 1736 {
}
movieClip 1738 {
}
movieClip 1740 {
}
movieClip 1743 {
}
movieClip 1745 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 0;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
}
instance L28flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 0;
}
}
movieClip 1746 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.levelSection = 1;
_root.enemies.L28t1.idle = false;
_root.enemies.L28f1.idle = true;
_root.enemies.L28f2.idle = true;
_root.enemies.L28f3.idle = true;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
_root.enemies.L28t1.idle = false;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L28e1.idle = false;
_root.enemies.L28e2.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L28f1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L28f3.idle = false;
}
}
}
instance L28b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L28b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 36 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
}
movieClip 1748 {
}
movieClip 1750 {
}
movieClip 1751 {
frame 1 {
function onEnterFrame() {
if (_root.gamePaused) {
rotSpeed = 0;
} else {
rotSpeed = saveSpeed;
}
}
var rotSpeed = 2;
rotSpeed *= 1 + Math.random();
var ran = random(2);
if (ran == 0) {
rotSpeed = -rotSpeed;
}
var saveSpeed = rotSpeed;
var totalAGears = 3;
i = 1;
while (i <= totalAGears) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
++i;
}
i = 2;
while (i <= totalAGears) {
while (this['gA' + i].gear.base._currentframe == this['gA' + (i - 1)].gear.base._currentframe) {
this['gA' + i].gear.base.gotoAndStop(random(3) + 1);
}
++i;
}
i = 1;
while (i <= totalAGears) {
if (this['gA' + i].gear.base._currentframe == 1) {
this['gA' + i].peg.base.gotoAndStop(2);
}
if (this['gA' + i].gear.base._currentframe == 2) {
ran = random(2);
if (ran == 0) {
this['gA' + i].peg.base.gotoAndStop(1);
} else {
this['gA' + i].peg.base.gotoAndStop(3);
}
}
if (this['gA' + i].gear.base._currentframe == 3) {
this['gA' + i].peg.base.gotoAndStop(2);
}
++i;
}
}
instance gA1 of movieClip 1301 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA2 of movieClip 348 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed;
shine._rotation += _parent.rotSpeed;
}
}
instance gA3 of movieClip 321 {
onClipEvent (enterFrame) {
gear._rotation += _parent.rotSpeed * 1.0715;
shine._rotation += _parent.rotSpeed * 1.0715;
}
}
}
movieClip 1754 {
}
movieClip 1756 {
}
instance leverS5 of movieClip 694 {
onClipEvent (load) {
_rotation = -115;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laser.play();
hit = true;
}
} else {
if (_rotation < -70) {
_rotation = _rotation + 5;
}
}
}
}
instance L29flag of movieClip 818 {
onClipEvent (load) {
var portalRot = 180;
}
}
movieClip 1758 {
instance hit of movieClip 704 {
onClipEvent (load) {
var once = true;
var i = 0;
var speed = 5;
var saveXScale = 0;
var saveYScale = 0;
var setX = 0;
var setY = 0;
var teleport = false;
var nextPhase = false;
}
onClipEvent (enterFrame) {
if (!teleport) {
if (this.hitTestShape(_root.player)) {
teleport = true;
saveXScale = _root.player._xscale;
saveYScale = _root.player._yscale;
_root.player.stopMotion = true;
setX = _root.tele1._x;
setY = _root.tele1._y;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
s = 0;
while (s < 19) {
_root.tele1.base['s' + s].play();
++s;
}
}
}
if (teleport) {
if (!nextPhase) {
++i;
_root.player._x -= (_root.player._x - setX) / speed;
_root.player._y -= (_root.player._y - setY) / speed;
if (i > 5) {
++speed;
_root.player._alpha -= 5;
_root.player._xscale -= saveXScale / 20;
_root.player._yscale -= saveYScale / 20;
}
if (_root.player._alpha <= 0) {
nextPhase = true;
i = 0;
speed = 5;
setX = _root.tele2._x;
setY = _root.tele2._y;
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y;
_root.enemies.L29t1.idle = true;
_root.enemies.L29t2.idle = false;
}
}
if (nextPhase) {
if (once) {
once = false;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
if (_root.tele2.s1._currentframe > 15) {
s = 0;
while (s < 19) {
_root.tele2['s' + s].stop();
++s;
}
_root.player._alpha += 5;
_root.player._xscale += saveXScale / 20;
_root.player._yscale += saveYScale / 20;
if (_root.player._alpha >= 100) {
_root.player.stopMotion = false;
once = true;
teleport = false;
nextPhase = false;
_root.player._xscale = saveXScale;
_root.player._yscale = saveYScale;
s = 0;
while (s < 19) {
_root.tele2['s' + s].play();
++s;
}
}
}
}
}
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L29t2.idle = false;
_root.enemies.L29t3.idle = true;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L29t2.idle = true;
_root.enemies.L29t3.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L29e1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L29e2.idle = false;
_root.enemies.L29e3.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.levelSection = 1;
_root.enemies.L29e4.idle = false;
_root.enemies.L29e5.idle = false;
_root.enemies.L29f1.idle = false;
}
}
}
instance L29b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance L29b2 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 37 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
stop();
}
movieClip 1760 {
}
movieClip 1762 {
}
movieClip 1764 {
}
movieClip 1767 {
}
movieClip 1769 {
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 2;
}
}
instance of movieClip 1323 {
onClipEvent (load) {
var spawnRot = 3;
}
}
}
instance of movieClip 694 {
onClipEvent (load) {
_rotation = -25;
hit = false;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this.hitTestShape(_root.player)) {
play();
_root.laserCoolest.play();
_root.enemies.L30e6.idle = false;
_root.enemies.L30e7.idle = false;
hit = true;
}
} else {
if (_rotation < 20) {
_rotation = _rotation + 5;
}
}
}
}
movieClip 1771 {
}
instance L30flag of movieClip 1771 {
onClipEvent (load) {
var portalRot = 0;
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L30e3.idle = false;
_root.disruptors.L30d1.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L30e1.idle = false;
_root.enemies.L30e2.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L30t1.idle = false;
_root.enemies.L30e5.idle = false;
}
}
}
instance of movieClip 1396 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.enemies.L30e4.idle = false;
}
}
}
instance of movieClip 1331 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.player.hit)) {
--_root.player._x;
}
}
}
instance L30b1 of movieClip 188 battery15 {
onClipEvent (load) {
placed = true;
}
}
instance spawn2 of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
frame 38 {
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.player._x = _root.spawn2._x;
_root.player._y = _root.spawn2._y;
player.stopMotion = true;
stop();
wide.music.gotoAndStop(4);
}
movieClip 1773 {
}
movieClip 1775 {
}
movieClip 1778 {
}
movieClip 1780 {
}
movieClip 1783 {
}
instance player of movieClip 724 {
onClipEvent (load) {
var dead = false;
var stopMotion = false;
var rot = 0;
var rooftouch = false;
var righttouch = false;
var lefttouch = false;
var gravfall = true;
var disrupted = false;
var xspeed = 0;
var yspeed = 0;
var speed = 0.65;
var gravity = 1;
var xfric = 0.9;
var yfric = 0.95;
var jump = 10;
var walljump = 10;
var walljspeed = 6;
var offjump = 8;
var offjumpcd = 0;
var batterypower = _root.batarray[_root.levelframe - 1];
var blasttimer = 30;
var blastx = 0;
var blasty = 0;
var guntimer = 10;
var dir = 1;
var blasting = false;
var flagLock = false;
var noControl = false;
var offsetX = 0;
var offsetY = 0;
var flagSpeed = 5;
var i = 0;
var nextDepth = 0;
var vertPunish = true;
var hadWallJumped = 0;
var hadWJTime = 30;
var noSwoop = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!stopMotion) {
if (batterypower > 100) {
batterypower = 100;
}
if (batterypower <= 0) {
batterypower = 0;
if (stick) {
righttouch = false;
lefttouch = false;
rooftouch = false;
stick = false;
gravfall = true;
}
}
_x = _x + xspeed;
_y = _y + yspeed;
xspeed *= xfric;
yspeed *= yfric;
if (rot == 0) {
this.inside.complete._rotation += xspeed * 2;
}
if (rot == 1) {
this.inside.complete._rotation -= xspeed * 2;
if (rooftouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(xspeed) / 15;
_root.energySpentInfo += Math.abs(xspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(xspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (rot == 2) {
this.inside.complete._rotation -= yspeed * 2;
if (righttouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(yspeed) / 15;
_root.energySpentInfo += Math.abs(yspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (rot == 3) {
this.inside.complete._rotation += yspeed * 2;
if (lefttouch && stick) {
if (_root.gametype == '-Regular-') {
batterypower -= Math.abs(yspeed) / 15;
_root.energySpentInfo += Math.abs(yspeed) / 15;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
if (Math.round(Math.abs(yspeed)) < 0.1) {
batterypower -= 0.05;
_root.energySpentInfo += 0.05;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
}
}
}
if (gravfall) {
if (!noControl) {
yspeed += gravity;
}
}
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
rot = 0;
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
while (_root.land.hitTest(_x, _y + 12.68, true)) {
rot = 0;
noSwoop = false;
hadWallJumped = hadWJTime;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
if (!_root.land.heat.hitTest(_x, _y - 12.68, true)) {
while (_root.land.hitTest(_x, _y - 12.68, true)) {
rot = 1;
gravfall = true;
_y = _y + 1;
if (batterypower > 0) {
if (stick) {
rooftouch = true;
yspeed = -1;
if (Key.isDown(40)) {
if (righttouch || lefttouch) {
_y = _y + 1;
rooftouch = false;
}
}
}
} else {
yspeed = 0;
}
}
}
++offjumpcd;
if (rooftouch) {
if (!_root.land.hitTest(_x, _y - 12.68 - 1, true)) {
if (stick) {
yspeed = -offjump;
offjumpcd = 0;
}
if (!stick) {
if (offjumpcd > 15) {
yspeed = -offjump;
offjumpcd = 0;
}
}
rooftouch = false;
}
}
if (!_root.land.heat.hitTest(_x + 12.68, _y, true)) {
while (_root.land.hitTest(_x + 12.68, _y, true)) {
rot = 2;
righttouch = true;
_x = _x - 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = 1;
if (Key.isDown(39) || Key.isDown(37) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(37)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = -walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (righttouch) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y, true)) {
if (!_root.land.hitTest(_x + 12.68 + 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = 3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
righttouch = false;
}
}
if (!_root.land.heat.hitTest(_x - 12.68, _y, true)) {
while (_root.land.hitTest(_x - 12.68, _y, true)) {
rot = 3;
lefttouch = true;
_x = _x + 1;
if (batterypower > 0) {
if (stick) {
gravfall = false;
xspeed = -1;
if (Key.isDown(37) || Key.isDown(39) || Key.isDown(38)) {
yspeed -= 0.25;
}
if (Key.isDown(40)) {
yspeed += 0.25;
}
if (Key.isDown(39)) {
noSwoop = true;
hadWallJumped = hadWJTime;
xspeed = walljspeed;
yspeed = -walljump;
}
}
} else {
xspeed = 0;
}
}
}
if (lefttouch) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y, true)) {
if (!_root.land.hitTest(_x - 12.68 - 1, _y - 12.68 - 1, true)) {
if (!noSwoop) {
if (stick) {
if (yspeed <= 0) {
xspeed = -3;
if (yspeed > -5) {
yspeed = -3;
}
}
}
}
}
gravfall = true;
lefttouch = false;
}
}
if (Key.isDown(65) || Key.isDown(17)) {
stick = true;
} else {
stick = false;
gravfall = true;
}
if (!noControl) {
if (Key.isDown(37)) {
xspeed -= speed;
dir = 0;
}
if (Key.isDown(39)) {
xspeed += speed;
dir = 1;
}
}
++blasttimer;
++guntimer;
if (_root.disrupts.hitTest(_x, _y, true)) {
disrupted = true;
gravfall = true;
stick = false;
} else {
disrupted = false;
}
if (!disrupted) {
if (blasttimer > 30) {
if (batterypower >= 10) {
if (Key.isDown(68)) {
_root.shoot.blast.play();
blasting = true;
if (_root.gametype == '-Regular-') {
batterypower -= 10;
_root.energySpentInfo += 10;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
blasttimer = 0;
}
}
}
if (guntimer > 10) {
if (batterypower >= 5) {
if (gravfall) {
if (Key.isDown(83)) {
_root.shoot.base.attachMovie('bullet', 'bullet' + _root.shoot.base.getNextHighestDepth(), _root.shoot.base.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (_root.gametype == '-Regular-') {
batterypower -= 5;
_root.energySpentInfo += 5;
_root.savefileFun.data.energySpent = _root.energySpentInfo;
_root.savefileFun.flush();
}
guntimer = 0;
}
}
}
}
}
if (blasting) {
_root.shoot.blast._x = _x;
_root.shoot.blast._y = _y;
}
--hadWallJumped;
if (hadWallJumped < 0) {
noSwoop = false;
}
if (stick) {
if (batterypower > 0) {
if (lefttouch || righttouch) {
if (vertPunish) {
vertPunish = false;
if (yspeed < -3) {
if (hadWallJumped < 0) {
yspeed = -3;
}
}
}
if (!Key.isDown(40)) {
if (yspeed > 2) {
yspeed *= 0.8;
}
}
}
}
if (righttouch) {
rot = 2;
}
if (lefttouch) {
rot = 3;
}
}
if (!lefttouch && !righttouch && !stick) {
vertPunish = true;
}
if (_y > 560) {
_y = 35;
}
if (_y < 35) {
_y = 560;
}
if (this.trueHit.hitTestShape(_root.land.heat)) {
dead = true;
while (_root.land.heat.hitTest(_x + 12.68, _y, true)) {
_x = _x - 1;
}
while (_root.land.heat.hitTest(_x - 12.68, _y, true)) {
_x = _x + 1;
}
while (_root.land.heat.hitTest(_x, _y + 12.68, true)) {
_y = _y - 1;
}
while (_root.land.heat.hitTest(_x, _y - 12.68, true)) {
_y = _y + 1;
}
}
if (this.trueHit.hitTestShape(_root.enemies)) {
dead = true;
}
if (dead) {
play();
xspeed = 0;
yspeed = 0;
stopMotion = true;
}
if (!flagLock) {
trueFlag = 'L' + _root.levelframe + 'flag';
if (_root[trueFlag].hitTest(_x - 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y + 12.68)) {
offsetX = 0;
offsetY = -20;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x - 12.68, _y - 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y - 12.68)) {
offsetX = 0;
offsetY = 20;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x + 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x + 12.68, _y - 12.68)) {
offsetX = -20;
offsetY = 0;
noControl = true;
flagLock = true;
}
if (_root[trueFlag].hitTest(_x - 12.68, _y + 12.68) && _root[trueFlag].hitTest(_x - 12.68, _y - 12.68)) {
offsetX = 20;
offsetY = 0;
noControl = true;
flagLock = true;
}
} else {
xspeed *= 0.8;
yspeed *= 0.8;
_x = _x - (_x - (_root[trueFlag]._x + offsetX)) / flagSpeed;
_y = _y - (_y - (_root[trueFlag]._y + offsetY)) / flagSpeed;
if (Math.round(xspeed) == 0 && Math.round(yspeed) == 0) {
++i;
if (i > 5) {
i = -9001;
_alpha = 0;
stopMotion = true;
nextDepth = _root.portalFly.base.getNextHighestDepth();
_root.portalFly.base.attachMovie('flyParticle', 'flyParticle' + nextDepth, nextDepth, {'_x': _x, '_y': _y});
_root.portalFly.base['flyParticle' + nextDepth].xMult = -Math.ceil(offsetX / 20);
_root.portalFly.base['flyParticle' + nextDepth].yMult = -Math.ceil(offsetY / 20);
_root.portalFly.base['flyParticle' + nextDepth]._rotation = inside.complete._rotation;
}
}
}
while (_root.land.hitTest(_x - 10, _y - 5, true)) {
_x = _x + 5;
}
if (_root.land.hitTest(_x - 10, _y + 5, true)) {
if (!stick) {
_x = _x + 5;
}
}
if (_root.land.hitTest(_x + 10, _y - 5, true)) {
_x = _x - 5;
}
if (_root.land.hitTest(_x + 10, _y + 5, true)) {
if (!stick) {
_x = _x - 5;
}
}
if (_root.land.hitTest(_x - 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x + 5, _y - 10, true)) {
_y = _y + 5;
}
if (_root.land.hitTest(_x - 5, _y + 10, true)) {
while (_root.land.hitTest(_x - 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
if (_root.land.hitTest(_x + 5, _y + 10, true)) {
while (_root.land.hitTest(_x + 5, _y + 10, true)) {
rot = 0;
noSwoop = false;
gravfall = true;
yspeed = 1;
_y = _y - 1;
if (Key.isDown(38)) {
if (!_root.land.heat.hitTest(_x, _y + 12.68, true)) {
if (!noControl) {
if (!stick && !righttouch || !lefttouch) {
if (hadWallJumped < 0) {
hadWallJumped = hadWJTime;
yspeed = -jump;
}
}
}
}
}
}
}
}
}
}
}
instance spawn of movieClip 724 {
onClipEvent (load) {
_alpha = 0;
}
}
movieClip 1787 {
}
movieClip 1790 {
}
movieClip 1791 {
frame 1 {
stop();
}
}
instance of movieClip 1791 {
onClipEvent (release) {
_root.flashbacks.gotoAndStop('next');
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (releaseOutside, rollOut) {
gotoAndStop(1);
}
}
movieClip 1792 {
}
instance of movieClip 1792 {
onClipEvent (enterFrame) {
_root.gamePaused = true;
}
}
frame 39 {
player.stopMotion = false;
}
movieClip 1795 {
frame 1 {
function onEnterFrame() {
if (!_root.gamePaused) {
if (localHealth > _root.enemies.boss.health) {
localHealth -= 0.5;
}
if (localHealth < 0) {
localHealth = 0;
}
infoText.text = Math.round(localHealth);
}
}
var localHealth = 100;
}
}
instance L31b1 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L31b6 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L31b2 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L31b5 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L31b3 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
instance L31b4 of movieClip 189 battery5 {
onClipEvent (load) {
placed = true;
}
}
movieClip 1797 {
}
movieClip 1798 {
}
instance d3 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d4 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d5 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d6 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d7 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d8 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d9 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d10 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d19 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d18 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d17 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d16 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d15 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d12 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d13 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d14 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d11 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d21 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d2 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d20 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
instance d1 of movieClip 1798 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 1802 {
}
movieClip 1805 {
}
movieClip 1808 {
frame 1 {
function onEnterFrame() {
pnametran = pname.text;
}
pname.text = '';
}
instance of movieClip 590 {
onClipEvent (load) {
stop();
var over = false;
}
onClipEvent (rollOver) {
over = true;
}
onClipEvent (releaseOutside, rollOut) {
over = false;
}
onClipEvent (enterFrame) {
if (over) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (release) {
_root.flashbacks.gotoAndStop('menu');
}
}
}
movieClip 1809 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
movieClip 1810 {
}
movieClip 1811 {
frame 1 {
}
frame 1 {
var w = _width;
}
}
instance c8 of movieClip 1811 {
onClipEvent (load) {
var s = 0;
var spawnCD = 300;
var spawnLimit = 600;
var shiftX = 0;
}
onClipEvent (enterFrame) {
++spawnCD;
if (_root.enemies.boss.health > 0) {
if (_root.player.batterypower < 30) {
if (spawnCD > spawnLimit) {
spawnCD = 0;
s = random(15) + 1;
shiftX = _root['c' + s]._x + (random(_root['c' + s].w - 30) - (_root['c' + s].w - 30) / 2);
_root.factories.attachMovie('factory', 'factory' + _root.factories.getNextHighestDepth(), _root.factories.getNextHighestDepth(), {'_x': shiftX, '_y': _root['c' + s]._y + 60});
}
}
}
}
}