STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228109
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/35055233?noj=FRM35055233-8DC" width="1" height="1"></div>

Electromagnetic - Solve puzzles as a magnetic sphere and make it to the end portal!.swf

This is the info page for
Flash #130582

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
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; 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; 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; 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; 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://www.gamepirate.com/', 'blank'); } function developerSite() { getURL('http://pyroflame.com/', 'blank'); } 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 (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; } } 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('Arhh! GAMEPIRATE.COM', 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 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; _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 { if (_url.substring(0, 4) != 'file') { x = new LoadVars(); x.id = 'electromagnetic'; x.ui = _url; x.sendAndLoad('http://track.g-bot.net/track.php', x, 'POST'); } } movieClip 204 { } movieClip 206 { } movieClip 207 { } movieClip 210 { } movieClip 212 { } movieClip 213 { } movieClip 214 { } button 216 { on (release) { getURL('http://www.gamepirate.com', 'blank'); } } movieClip 221 { } movieClip 226 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { play(); } else { stop(); } } } frame 41 { gotoAndPlay(21); } } movieClip 228 { } // unknown tag 88 length 74 movieClip 233 { } movieClip 234 { frame 1 { stop(); } frame 40 { stop(); } } movieClip 237 { } movieClip 239 { } movieClip 240 { instance of movieClip 239 { onClipEvent (release) { getURL('http://get.adobe.com/flashplayer/', 'blank'); } } } movieClip 241 { frame 1 { stop(); } frame 40 { stop(); } } movieClip 242 { instance portal of movieClip 226 { 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 242 { 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 (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; } } } movieClip 243 { } movieClip 244 { } movieClip 245 { frame 6 { _root.pauseMenu.gotoAndPlay(1); _root.gamePaused = true; ++_root.wide.level; _root.nextFrame(); _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(); } } frame 11 { _root.flashbacks.gotoAndStop('stop'); } } movieClip 246 { frame 6 { _root.pauseMenu.gotoAndPlay(1); _root.deaths += 1; _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 247 { 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 248 { 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 249 { frame 6 { _root.gotoAndStop('tutorial'); } frame 11 { _root.flashbacks.gotoAndStop('stop'); } } movieClip 250 { 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 251 { frame 6 { _root.gotoAndStop('levelselect'); } frame 11 { _root.flashbacks.gotoAndStop('stop'); } } movieClip 252 { frame 6 { _root.gotoAndStop('boss'); _root.player.batterypower = 100; } frame 11 { _root.flashbacks.gotoAndStop('stop'); } } movieClip 253 { frame 1 { stop(); } } instance flashbacks of movieClip 253 { onClipEvent (enterFrame) { this._x = _root.cam._x; } } movieClip 257 { } movieClip 258 { } movieClip 262 { frame 1 { function onMouseDown() { if (_currentframe <= 95) { getURL('http://www.gamepirate.com', 'blank'); } } } frame 95 { stop(); } frame 96 { stop(); } } movieClip 264 { frame 136 { if (_root._currentframe == 3) { _root.flashbacks.gotoAndStop('next'); } else { _root.nextFrame(); } gotoAndPlay(10); } } movieClip 266 { } movieClip 268 { } button 269 { on (press) { doNothing(); } } movieClip 298 { frame 16 { _root.gamePirateBG.nextFrame(); } frame 34 { stop(); } } movieClip 301 { } movieClip 303 { } movieClip 304 { } // unknown tag 88 length 73 movieClip 309 { } movieClip 310 { } movieClip 311 { } movieClip 312 { frame 31 { function onMouseDown() { getURL('http://pyroflame.com', 'blank'); } } } frame 4 { stop(); var deaths = 0; } movieClip 314 { } movieClip 317 { } movieClip 318 { } movieClip 322 { } movieClip 324 { } movieClip 326 { } movieClip 329 { } movieClip 330 { frame 1 { base._alpha += random(11); } } movieClip 332 { } movieClip 336 { } movieClip 338 { } movieClip 339 { } movieClip 340 { } movieClip 342 { } movieClip 343 { } movieClip 347 { } movieClip 349 { } movieClip 351 { } movieClip 352 { } movieClip 356 { } movieClip 358 { } movieClip 360 { } movieClip 361 { } movieClip 365 { } movieClip 367 { } movieClip 369 { } movieClip 370 { } movieClip 374 { } movieClip 376 { } movieClip 378 { } movieClip 379 { } movieClip 380 { frame 1 { function onEnterFrame() { rotSpeed *= 0.75; } var rotSpeed = 0; gotoAndStop(random(5) + 2); } instance of movieClip 343 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance of movieClip 343 { 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 352 { 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 361 { 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 370 { 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 379 { 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 385 { } movieClip 387 { } movieClip 389 { } movieClip 391 { } movieClip 393 { } movieClip 395 { } movieClip 397 { } movieClip 399 { } movieClip 401 { } movieClip 404 { } movieClip 406 { } movieClip 407 { } movieClip 409 { } movieClip 410 { } movieClip 411 { } movieClip 412 { frame 1 { stop(); } instance base of movieClip 411 { 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://www.gamepirate.com', 'blank'); } } } } } } instance mb1Clicker of movieClip 412 { onClipEvent (load) { var mbID = 1; } } instance mb2Clicker of movieClip 412 { onClipEvent (load) { var mbID = 2; } } instance mb3Clicker of movieClip 412 { onClipEvent (load) { var mbID = 3; } } instance mb4Clicker of movieClip 412 { onClipEvent (load) { var mbID = 4; } } movieClip 414 { } movieClip 416 { } movieClip 417 { } movieClip 418 { frame 1 { stop(); } } instance of movieClip 418 { onClipEvent (release) { getURL('http://pyroflame.com/', 'blank'); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } movieClip 420 { } movieClip 421 { frame 1 { stop(); } } movieClip 423 { } movieClip 424 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 16 { stop(); } } movieClip 425 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 16 { stop(); } } movieClip 427 { } movieClip 428 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 16 { stop(); } } movieClip 429 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 16 { stop(); } } movieClip 431 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 15 { stop(); } } movieClip 432 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 16) { play(); } } } else { stop(); } } } frame 1 { stop(); } frame 16 { stop(); } } movieClip 434 { } movieClip 436 { } movieClip 439 { } movieClip 440 { } movieClip 441 { instance r1b of movieClip 425 { onClipEvent (enterFrame) { _rotation = _parent.r1a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r2b of movieClip 429 { onClipEvent (enterFrame) { _rotation = _parent.r2a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r3b of movieClip 432 { onClipEvent (enterFrame) { _rotation = _parent.r3a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r1a of movieClip 425 { 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 429 { 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 432 { 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 442 { instance r1b of movieClip 425 { onClipEvent (enterFrame) { _rotation = _parent.r1a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r2b of movieClip 429 { onClipEvent (enterFrame) { _rotation = _parent.r2a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r3b of movieClip 432 { onClipEvent (enterFrame) { _rotation = _parent.r3a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r1a of movieClip 425 { 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 429 { 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 432 { 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 444 { } movieClip 446 { } movieClip 447 { } movieClip 448 { } movieClip 449 { } movieClip 450 { } movieClip 452 { } movieClip 453 { instance glow of movieClip 450 { onClipEvent (load) { _alpha = 0; } } } movieClip 456 { } movieClip 458 { instance of movieClip 453 { 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) { if (glow._alpha < 100) { glow._alpha += 10; } } else { if (glow._alpha > 0) { glow._alpha -= 10; } } } } } instance mb5 of movieClip 458 { 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 464 { frame 1 { stop(); } frame 100 { _root.follower.dead = true; } } instance follower of movieClip 464 { 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 412 { onClipEvent (load) { var mbID = 5; } } movieClip 466 { } movieClip 468 { } movieClip 469 { frame 1 { stop(); } } instance of movieClip 469 { 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 471 { } movieClip 474 { } // unknown tag 88 length 75 button 478 { on (release) { getURL('http://hiscore.gamepirate.com/electromagnetic.php', 'blank'); } } movieClip 480 { } button 483 { on (release) { if (_root.highScores.looking) { _root.highScores.looking = false; } else { if (!_root.highScores.looking) { _root.highScores.looking = true; } } } } movieClip 485 { } movieClip 487 { } button 488 { on (release) { getURL('http://www.gamepirate.com', 'blank'); } } movieClip 491 { } movieClip 492 { } button 494 { on (release) { getURL('http://pyroflame.com', 'blank'); } } movieClip 497 { } movieClip 498 { } movieClip 530 { frame 5 { var c = new LoadVars(); var i = new LoadVars(); c.m = 1; c.sendAndLoad('http://hiscore.gamepirate.com/electromagnetic_get.php', i, 'POST'); i.onLoad = function () { trace(i); name1 = i.name1; score1 = i.score1; name2 = i.name2; score2 = i.score2; name3 = i.name3; score3 = i.score3; name4 = i.name4; score4 = i.score4; name5 = i.name5; score5 = i.score5; name6 = i.name6; score6 = i.score6; name7 = i.name7; score7 = i.score7; name8 = i.name8; score8 = i.score8; name9 = i.name9; score9 = i.score9; name10 = i.name10; score10 = i.score10; }; stop(); } } instance highScores of movieClip 530 { 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 532 { } movieClip 533 { } movieClip 535 { } movieClip 536 { 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 536 { 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(); } } } frame 5 { function onMouseMove() { backDropClick._x = _root._xmouse; backDropClick._y = _root._ymouse; } actArrow = false; 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 538 { } movieClip 540 { } movieClip 546 { } movieClip 548 { 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 550 { } movieClip 553 { } movieClip 556 { frame 1 { stop(); } } instance of movieClip 556 { 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 557 { } movieClip 558 { } movieClip 560 { frame 1 { stop(); } } instance of movieClip 560 { onClipEvent (load) { stop(); var over = false; } onClipEvent (rollOver) { over = true; if (_root.file1Clip.gameMode.text == '-Regular-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _root.telePrompt.infoCenter.infoText.gotoAndStop(1); if (_root.telePrompt.infoCenter._currentframe < 10) { _root.telePrompt.infoCenter.gotoAndPlay(1); } else { _root.telePrompt.infoCenter.gotoAndPlay(10); } } else { if (_root.file1Clip.gameMode.text == '-Endless-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _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) { over = false; } onClipEvent (enterFrame) { if (over) { nextFrame(); } else { prevFrame(); } } onClipEvent (release) { _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); } if (_root.file1Clip.gameMode.text == '-Game Mode-') { 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 { _root.fileselect = 1; _root.gametype = _root.file1Clip.gameMode.text; _root.flashbacks.gotoAndStop('levels'); } } } movieClip 565 { 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 556 { 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 560 { onClipEvent (load) { stop(); var over = false; } onClipEvent (rollOver) { over = true; if (_root.file2Clip.gameMode.text == '-Regular-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _root.telePrompt.infoCenter.infoText.gotoAndStop(1); if (_root.telePrompt.infoCenter._currentframe < 10) { _root.telePrompt.infoCenter.gotoAndPlay(1); } else { _root.telePrompt.infoCenter.gotoAndPlay(10); } } else { if (_root.file2Clip.gameMode.text == '-Endless-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _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) { over = false; } onClipEvent (enterFrame) { if (over) { nextFrame(); } else { prevFrame(); } } onClipEvent (release) { _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); } if (_root.file2Clip.gameMode.text == '-Game Mode-') { 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 { _root.fileselect = 2; _root.gametype = _root.file2Clip.gameMode.text; _root.flashbacks.gotoAndStop('levels'); } } } movieClip 570 { 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 556 { 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 560 { onClipEvent (load) { stop(); var over = false; } onClipEvent (rollOver) { over = true; if (_root.file3Clip.gameMode.text == '-Regular-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _root.telePrompt.infoCenter.infoText.gotoAndStop(1); if (_root.telePrompt.infoCenter._currentframe < 10) { _root.telePrompt.infoCenter.gotoAndPlay(1); } else { _root.telePrompt.infoCenter.gotoAndPlay(10); } } else { if (_root.file3Clip.gameMode.text == '-Endless-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _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) { over = false; } onClipEvent (enterFrame) { if (over) { nextFrame(); } else { prevFrame(); } } onClipEvent (release) { _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); } if (_root.file3Clip.gameMode.text == '-Game Mode-') { if (_root.file3del._currentframe == 1) { _root.playPrompt3.play(); if (_root.playPrompt1._currentframe == 11) { _root.playPrompt1.play(); } if (_root.playPrompt2._currentframe == 11) { _root.playPrompt2.play(); } if (_root.playPrompt4._currentframe == 11) { _root.playPrompt4.play(); } } } else { _root.fileselect = 3; _root.gametype = _root.file3Clip.gameMode.text; _root.flashbacks.gotoAndStop('levels'); } } } movieClip 575 { 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 556 { 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 560 { onClipEvent (load) { stop(); var over = false; } onClipEvent (rollOver) { over = true; if (_root.file4Clip.gameMode.text == '-Regular-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _root.telePrompt.infoCenter.infoText.gotoAndStop(1); if (_root.telePrompt.infoCenter._currentframe < 10) { _root.telePrompt.infoCenter.gotoAndPlay(1); } else { _root.telePrompt.infoCenter.gotoAndPlay(10); } } else { if (_root.file4Clip.gameMode.text == '-Endless-') { _root.actArrow = true; _root.bulb1.gotoAndStop(2); _root.bulb2.gotoAndStop(2); _root.telePrompt.lock = false; _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) { over = false; } onClipEvent (enterFrame) { if (over) { nextFrame(); } else { prevFrame(); } } onClipEvent (release) { _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); } if (_root.file4Clip.gameMode.text == '-Game Mode-') { if (_root.file4del._currentframe == 1) { _root.playPrompt4.play(); if (_root.playPrompt1._currentframe == 11) { _root.playPrompt1.play(); } if (_root.playPrompt2._currentframe == 11) { _root.playPrompt2.play(); } if (_root.playPrompt3._currentframe == 11) { _root.playPrompt3.play(); } } } else { _root.fileselect = 4; _root.gametype = _root.file4Clip.gameMode.text; _root.flashbacks.gotoAndStop('levels'); } } } movieClip 577 { } movieClip 581 { } movieClip 582 { } movieClip 585 { frame 1 { stop(); } } movieClip 586 { frame 766 { gotoAndPlay(55); } } movieClip 587 { frame 30 { stop(); } instance infoCenter of movieClip 586 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.actArrow) { if (blueArrow._y > -5) { blueArrow._y -= 1; } } } } } instance telePrompt of movieClip 587 { 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 588 { } movieClip 590 { } movieClip 593 { frame 1 { stop(); } } movieClip 595 { frame 1 { stop(); } } movieClip 596 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 593 { 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 595 { onClipEvent (release) { _root.file1del.play(); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } } movieClip 597 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 599 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 593 { 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 595 { onClipEvent (release) { _root.file2del.play(); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } } movieClip 600 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 602 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 593 { 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 595 { onClipEvent (release) { _root.file3del.play(); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } } movieClip 603 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 605 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 593 { 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 595 { onClipEvent (release) { _root.file4del.play(); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } } movieClip 606 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 608 { frame 1 { stop(); } } movieClip 610 { frame 1 { stop(); } } movieClip 612 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 608 { 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 610 { 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 613 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 615 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 608 { 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 610 { 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 616 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 618 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 608 { 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 610 { 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 619 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 621 { instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 590 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { nextFrame(); } else { prevFrame(); } } } instance of movieClip 608 { 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 610 { 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 622 { frame 1 { function onEnterFrame() { if (_currentframe == 11) { if (_root.backDropClick.touching) { play(); } } } } frame 1 { stop(); } frame 11 { stop(); } } movieClip 623 { } instance backDropClick of movieClip 623 { onClipEvent (load) { _visible = false; var touching = false; } onClipEvent (enterFrame) { if (_root.backDrop.hitTest(_x, _y, true)) { touching = true; } else { touching = false; } } } movieClip 626 { } movieClip 628 { } movieClip 630 { } instance of movieClip 630 { 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 632 { } movieClip 634 { } movieClip 635 { frame 15 { stop(); } } movieClip 637 { } movieClip 638 { frame 5 { stop(); } } movieClip 639 { } instance bulb2 of movieClip 639 { onClipEvent (load) { stop(); } } instance bulb1 of movieClip 639 { onClipEvent (load) { stop(); } } movieClip 642 { } movieClip 643 { frame 1 { stop(); } } movieClip 646 { } movieClip 647 { frame 1 { stop(); } } movieClip 650 { } movieClip 651 { frame 1 { stop(); } } movieClip 654 { } movieClip 655 { frame 1 { stop(); } } movieClip 658 { } movieClip 659 { frame 1 { stop(); } } movieClip 662 { } movieClip 663 { frame 1 { stop(); } } movieClip 666 { } movieClip 667 { frame 1 { stop(); } } movieClip 670 { } movieClip 671 { frame 1 { stop(); } } movieClip 674 { } movieClip 675 { frame 1 { stop(); } } movieClip 678 { } movieClip 679 { frame 1 { stop(); } } movieClip 682 { } movieClip 683 { frame 1 { stop(); } } movieClip 686 { } movieClip 687 { frame 1 { stop(); } } movieClip 690 { } movieClip 691 { frame 1 { stop(); } } movieClip 692 { frame 1 { function onEnterFrame() { shiftFrame = _root.land._currentframe; } var shiftFrame = 0; } instance s13 of movieClip 643 { 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 647 { 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 651 { 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 655 { 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 659 { 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 663 { 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 667 { 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 671 { 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 675 { 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 679 { 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 683 { 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 687 { 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 691 { onClipEvent (enterFrame) { if (_root.sectionCount.shiftFrame == 1) { if (_alpha < 100) { _alpha = _alpha + 20; } } else { if (_alpha > 0) { _alpha = _alpha - 20; } } } } } movieClip 695 { } movieClip 696 { } movieClip 697 { frame 1 { stop(); } } movieClip 700 { } movieClip 702 { } movieClip 706 { } movieClip 708 { } movieClip 711 { } movieClip 713 { } movieClip 715 { } movieClip 716 { 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 719 { } movieClip 721 { } movieClip 724 { } movieClip 726 { } movieClip 729 { } movieClip 731 { } movieClip 732 { frame 1 { stop(); } instance of movieClip 716 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 716 { onClipEvent (load) { var spawnRot = 0; } } } movieClip 734 { } movieClip 735 { frame 1 { stop(); if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 9) { play(); } } } else { stop(); } } frame 9 { stop(); } } movieClip 736 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { play(); } else { stop(); } } } frame 20 { gotoAndPlay(1); } } movieClip 737 { } movieClip 738 { 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 737 { 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 738 { onClipEvent (load) { saveX = _x; _x = 9001; var portalRot = 0; } onClipEvent (enterFrame) { _x = 9001; if (_root.land._currentframe == 12) { _x = saveX; } } } movieClip 741 { frame 1 { stop(); } frame 10 { stop(); } } instance lever of movieClip 741 { 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 742 { 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 742 { onClipEvent (load) { saveX = _x; _x = 9001; var portalRot = 0; } onClipEvent (enterFrame) { _x = 9001; if (_root.land._currentframe == 5) { _x = saveX; } } } movieClip 748 { frame 1 { stop(); } } movieClip 750 { } instance tele2 of movieClip 750 { onClipEvent (load) { saveX = _x; _x = 9001; var portalRot = 0; } onClipEvent (enterFrame) { _x = 9001; if (_root.land._currentframe == 11) { _x = saveX; } } } movieClip 751 { } movieClip 752 { instance hit of movieClip 751 { 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 752 { onClipEvent (load) { saveX = _x; _x = 9001; var portalRot = 0; } onClipEvent (enterFrame) { _x = 9001; if (_root.land._currentframe == 11) { _x = saveX; } } } movieClip 754 { } movieClip 755 { 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 425 { onClipEvent (enterFrame) { _rotation = _parent.r1a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r2b of movieClip 429 { onClipEvent (enterFrame) { _rotation = _parent.r2a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r3b of movieClip 432 { onClipEvent (enterFrame) { _rotation = _parent.r3a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r1a of movieClip 425 { 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 429 { 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 432 { 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 756 { frame 1 { function onEnterFrame() { gotoAndStop(_root.levelframe); } } } instance disruptors of movieClip 756 { onClipEvent (enterFrame) { gotoAndStop(_root.land._currentframe); } } movieClip 757 { } movieClip 758 { frame 1 { stop(); } } movieClip 759 { } movieClip 760 { frame 1 { stop(); } } movieClip 762 { } movieClip 763 { frame 1 { stop(); } } movieClip 764 { } movieClip 765 { frame 1 { function onEnterFrame() { if (!_root._currentframe == 6) { if (!_root.gamePaused) { if (_currentframe >= 2) { play(); } } else { stop(); } } } stop(); _root.player.blasting = false; } } movieClip 766 { frame 1 { stop(); } } movieClip 767 { 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 767 { onClipEvent (enterFrame) { gotoAndStop(_root.land._currentframe); } } movieClip 768 { } movieClip 769 { 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 769 { 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 770 { } movieClip 771 { 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 771 { 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 772 { frame 22 { stop(); } } instance spawnFront of movieClip 772 { onClipEvent (load) { _x = _root.player._x; _y = _root.player._y; } onClipEvent (enterFrame) { inside.complete.ballpower.gotoAndStop(_root.player.inside.complete.ballpower._currentframe); } } movieClip 774 { } movieClip 775 { 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 777 { } movieClip 779 { } instance of movieClip 779 { 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 779 { 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 781 { } movieClip 782 { frame 1 { stop(); } } movieClip 785 { } instance of movieClip 630 { 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 787 { } movieClip 789 { } movieClip 796 { } movieClip 798 { } movieClip 801 { } movieClip 803 { } movieClip 810 { } movieClip 819 { } movieClip 821 { } movieClip 823 { instance of movieClip 819 { onClipEvent (load) { gotoAndStop(random(5) + 1); rust._x += random(151) - 75; rust._y += random(151) - 75; } } } movieClip 826 { } movieClip 829 { } movieClip 831 { instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } onClipEvent (enterFrame) { while (_currentframe == _parent.mainShadow._currentframe) { gotoAndStop(random(5) + 1); } } } instance of movieClip 823 { 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 834 { } movieClip 835 { } movieClip 837 { } movieClip 839 { } movieClip 843 { } instance of movieClip 843 { onClipEvent (load) { if (_root.gametype == '-Endless-') { gotoAndStop(2); } else { stop(); } } } movieClip 845 { } movieClip 846 { } movieClip 848 { } movieClip 852 { } movieClip 854 { } movieClip 856 { instance of movieClip 852 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } } movieClip 857 { } movieClip 858 { } movieClip 859 { } movieClip 861 { } movieClip 862 { frame 1 { } instance of movieClip 846 { 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 864 { } movieClip 865 { frame 1 { stop(); } } movieClip 866 { 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 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 874 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { play(); } else { stop(); } } } frame 61 { gotoAndPlay(41); } } instance tipmaker1 of movieClip 874 { 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 875 { frame 1 { function onEnterFrame() { 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; } instance r1b of movieClip 425 { onClipEvent (enterFrame) { _rotation = _parent.r1a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r2b of movieClip 429 { onClipEvent (enterFrame) { _rotation = _parent.r2a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r3b of movieClip 432 { onClipEvent (enterFrame) { _rotation = _parent.r3a._rotation; if (_parent._currentframe == 2) { play(); base.play(); } } } instance r1a of movieClip 425 { 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 429 { 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 432 { 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 876 { frame 1 { function onEnterFrame() { gotoAndStop(_root.levelframe); } } instance L4d1 of movieClip 875 { onClipEvent (load) { var idle = false; } } instance L9d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L13d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L16d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L19d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L21d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L21d2 of movieClip 875 { onClipEvent (load) { var idle = true; } } instance L24d1 of movieClip 875 { onClipEvent (load) { var idle = false; } } instance L24d2 of movieClip 875 { onClipEvent (load) { var idle = false; } } instance L30d1 of movieClip 875 { onClipEvent (load) { var idle = true; } } } movieClip 877 { } movieClip 878 { frame 1 { stop(); } } movieClip 879 { 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 879 { 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 771 { 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; if (Math.round(Math.abs(xspeed)) < 0.1) { batterypower -= 0.05; } } } } if (rot == 2) { this.inside.complete._rotation -= yspeed * 2; if (righttouch && stick) { if (_root.gametype == '-Regular-') { 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) { if (_root.gametype == '-Regular-') { 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; 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)) { 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; } 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; } 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 880 { frame 22 { stop(); } } instance spawnFront of movieClip 880 { 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 881 { } movieClip 882 { frame 1 { stop(); } } movieClip 883 { } movieClip 884 { frame 1 { stop(); } } movieClip 885 { 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; 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; 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 887 { frame 1 { stop(); } } movieClip 888 { frame 1 { stop(); } } movieClip 889 { frame 1 { stop(); } } movieClip 890 { 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; 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 891 { 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; 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 894 { frame 1 { stop(); } } movieClip 895 { } movieClip 898 { frame 1 { stop(); } } movieClip 899 { frame 1 { stop(); _root.enemies.boss.inv = false; } } movieClip 900 { } movieClip 901 { } movieClip 902 { frame 1 { function onEnterFrame() { gotoAndStop(_root.levelframe); } } instance L4e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L5e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L5e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L5e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L5t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L6e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L6t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L7e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 1; } } instance L7e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L7e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = 0; } } instance L7e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = 1; } } instance L8e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L8e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L8t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L9e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L9e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L9t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L10e4 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L10e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L10e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L10e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L10e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L11f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 140; var thisSection = 0; } } instance L11e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L11e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L12e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L12e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L12e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L12e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L13t1 of movieClip 890 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L13e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L13e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L13f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 140; var thisSection = 0; } } instance L14t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L14e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L14e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L14e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L15t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L15f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 140; var thisSection = 0; } } instance L15f2 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 140; var thisSection = 0; } } instance L15f3 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 140; var thisSection = 1; } } instance L15f4 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 140; var thisSection = 1; } } instance L16e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L16e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L16e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L16e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L16e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L17f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L17f2 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L17f3 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L18f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 50; var thisSection = 0; } } instance L18t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L18e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L18e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L18e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L19e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L19e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L19e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L19e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L19t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L20e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L20e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L21f4 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 1; } } instance L21f1 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 1; } } instance L21f3 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 0; } } instance L21f2 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 0; } } instance L22e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L22e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L22t1 of movieClip 890 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L22t2 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = 1; } } instance L23e5 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L23e6 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L23e7 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 1; } } instance L23e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L23e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L23e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L23e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L24e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L24e4 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L24e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L24e6 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L24e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L24e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L25e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L25e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L25e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L25e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L25e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L25e6 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L25t2 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = 1; } } instance L25t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = 0; } } instance L26f1 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 1; } } instance L26e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L26e1 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L26e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L27e2 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L27e3 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = random(2); } } instance L27e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L27e6 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L27e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L27e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L27t2 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = 1; } } instance L27t1 of movieClip 890 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L28f1 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 110; var thisSection = 0; } } instance L28f2 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 110; var thisSection = 0; } } instance L28e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L28e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L28t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L28f3 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 110; var thisSection = 0; } } instance L29t3 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L29f1 of movieClip 891 { onClipEvent (load) { var idle = true; var timer = 90; var thisSection = 1; } } instance L29t1 of movieClip 890 { onClipEvent (load) { var idle = false; var flow = 0; } } instance L29t2 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = 1; } } instance L29e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L29e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L29e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L29e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L29e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30f1 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L30f2 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L30f3 of movieClip 891 { onClipEvent (load) { var idle = false; var timer = 90; var thisSection = 0; } } instance L30e4 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e1 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e2 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e3 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e6 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e7 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e5 of movieClip 885 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30t1 of movieClip 890 { onClipEvent (load) { var idle = true; var flow = random(2); } } instance L30e8 of movieClip 885 { onClipEvent (load) { var idle = false; var flow = 0; } } instance boss of movieClip 901 { 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) { alive = false; i = 0; _visible = false; } } } } if (!alive) { ++i; if (i == 60) { _root.winning.play(); } } } } } instance spawn of movieClip 771 { onClipEvent (load) { _alpha = 0; } } movieClip 907 { } movieClip 908 { } movieClip 912 { } button 913 { on (release) { _root.flashbacks.gotoAndStop('menu'); } } button 915 { on (release) { _root.wide.menusure.play(); } } movieClip 917 { } movieClip 918 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 921 { frame 1 { stop(); } } movieClip 925 { } movieClip 927 { frame 1 { stop(); } } movieClip 931 { frame 1 { stop(); } } movieClip 934 { 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 921 { onClipEvent (enterFrame) { _width = _root.wide.battery.charge._width; } } } movieClip 936 { } movieClip 940 { } movieClip 941 { } movieClip 942 { } movieClip 943 { } movieClip 945 { } movieClip 947 { } movieClip 948 { } movieClip 949 { } movieClip 952 { } movieClip 954 { } movieClip 955 { } movieClip 956 { } movieClip 957 { } movieClip 958 { } movieClip 959 { } movieClip 960 { instance battery of movieClip 934 { 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 943 { 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 945 { 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 948 { 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 959 { 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://www.<sponsorwebsite>.com/', 'blank'); } } } movieClip 962 { } movieClip 963 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 40) { play(); } } } else { stop(); } } stop(); } frame 40 { stop(); } } movieClip 965 { } instance fpsMovie of movieClip 965 { 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 969 { 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 970 { } // unknown tag 88 length 68 movieClip 974 { } movieClip 976 { } movieClip 978 { } movieClip 979 { } movieClip 980 { } movieClip 982 { } movieClip 983 { } movieClip 984 { } movieClip 986 { } movieClip 988 { } movieClip 990 { } movieClip 992 { } movieClip 993 { } movieClip 995 { } movieClip 997 { } movieClip 999 { } movieClip 1000 { } movieClip 1001 { } movieClip 1003 { } movieClip 1005 { } movieClip 1007 { } movieClip 1009 { } movieClip 1011 { } movieClip 1013 { } movieClip 1014 { } movieClip 1015 { } movieClip 1017 { } movieClip 1019 { } movieClip 1021 { } movieClip 1023 { } movieClip 1025 { } movieClip 1027 { } movieClip 1029 { } movieClip 1031 { } movieClip 1033 { } movieClip 1035 { } movieClip 1037 { } movieClip 1039 { } movieClip 1041 { } movieClip 1043 { } movieClip 1045 { } movieClip 1047 { } movieClip 1049 { } movieClip 1051 { } movieClip 1053 { } movieClip 1055 { } movieClip 1056 { } movieClip 1057 { } movieClip 1058 { instance of movieClip 980 { onClipEvent (load) { base.gotoAndPlay(random(40) + 1); } onClipEvent (enterFrame) { if (_root.gamePaused) { _x = _root.player._x; _y = _root.player._y; } } } instance of movieClip 984 { 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 993 { 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 995 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 993 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 993 { 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 993 { 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 1001 { 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 995 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1015 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1015 { 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 1001 { 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 995 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 1015 { 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 1015 { 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 1015 { 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 1015 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 995 { 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 1015 { 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 1015 { 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 1015 { 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 993 { 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 993 { 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 993 { 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 1015 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 995 { 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 993 { 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 993 { 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 1015 { 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 1015 { 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 1015 { 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 1015 { 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 995 { 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 995 { 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 993 { 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 993 { 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 1001 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 995 { 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 995 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 1015 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 1001 { 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 993 { 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 993 { 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 1015 { 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 1015 { 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 1015 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1001 { 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 1015 { 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 1001 { 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 1001 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 993 { 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 1015 { 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 1015 { 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 1015 { 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 1001 { 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 995 { 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 1057 { onClipEvent (enterFrame) { if (_root.gamePaused) { _x = _root.enemies[_name]._x; _y = _root.enemies[_name]._y; } if (!_root.enemies[_name].alive) { _visible = false; } } } } movieClip 1060 { } movieClip 1064 { } movieClip 1066 { } movieClip 1067 { } movieClip 1069 { } movieClip 1070 { } movieClip 1072 { frame 1 { stop(); } } movieClip 1077 { } movieClip 1078 { } movieClip 1079 { } movieClip 1080 { instance of movieClip 1072 { 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) { getURL('http://pyroflame.com', 'blank'); } } instance of movieClip 1079 { 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) { getURL('http://www.gamepirate.com', 'blank'); } } } movieClip 1082 { } movieClip 1083 { frame 1 { stop(); } } movieClip 1086 { } movieClip 1088 { } movieClip 1089 { } movieClip 1091 { } movieClip 1092 { } movieClip 1094 { } movieClip 1095 { } movieClip 1097 { } movieClip 1098 { } movieClip 1100 { } movieClip 1102 { } movieClip 1103 { } movieClip 1105 { } movieClip 1106 { } movieClip 1107 { } movieClip 1109 { } movieClip 1110 { } movieClip 1111 { } movieClip 1113 { } movieClip 1114 { } movieClip 1115 { } movieClip 1117 { } movieClip 1118 { } movieClip 1119 { } movieClip 1122 { } movieClip 1124 { } movieClip 1126 { } movieClip 1128 { } movieClip 1130 { } movieClip 1132 { frame 1 { function onEnterFrame() { myFrame = _parent.staticHelp._currentframe; infoBox.text = 'Section ' + myFrame + '/13'; } var myFrame = 1; } } movieClip 1134 { } movieClip 1136 { } movieClip 1137 { } movieClip 1138 { } movieClip 1140 { } movieClip 1149 { } movieClip 1154 { frame 1 { stop(); } } movieClip 1156 { } movieClip 1157 { } movieClip 1158 { 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 1160 { } movieClip 1162 { } movieClip 1165 { } movieClip 1167 { } movieClip 1168 { } movieClip 1169 { } movieClip 1173 { } movieClip 1174 { } movieClip 1175 { } movieClip 1176 { } movieClip 1177 { } movieClip 1179 { } movieClip 1182 { } movieClip 1183 { } movieClip 1184 { frame 1 { stop(); } } movieClip 1185 { } movieClip 1186 { frame 1 { stop(); } } movieClip 1187 { } movieClip 1188 { frame 1 { stop(); } } movieClip 1189 { } movieClip 1190 { } movieClip 1191 { frame 1 { stop(); } instance s13 of movieClip 1138 { 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 1149 { 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 1158 { 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 1165 { 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 1169 { 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 1174 { 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 1177 { 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 1179 { 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 1182 { 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 1184 { 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 1186 { 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 1188 { 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 1190 { 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 1193 { } movieClip 1195 { } movieClip 1197 { } movieClip 1199 { } movieClip 1201 { } movieClip 1203 { } movieClip 1205 { } movieClip 1207 { } movieClip 1209 { } movieClip 1211 { } movieClip 1213 { } movieClip 1215 { } movieClip 1217 { } movieClip 1218 { frame 1 { stop(); } instance of movieClip 1193 { 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 1195 { 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 1197 { 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 1199 { 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 1201 { 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 1203 { 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 1205 { 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 1207 { 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 1209 { 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 1211 { 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 1213 { 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 1215 { 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 1217 { 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 1219 { 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 1058 { onClipEvent (enterFrame) { gotoAndStop(_root.levelframe); if (_root.pauseMenu._currentframe >= 47) { _visible = true; } else { _visible = false; } } } instance of movieClip 1086 { 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 1089 { 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 1092 { 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 1095 { 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 1098 { 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 1103 { onClipEvent (load) { var rotSpeed = 0; } onClipEvent (enterFrame) { rotSpeed *= 0.75; _rotation = _rotation + rotSpeed; } } instance g2 of movieClip 1107 { onClipEvent (enterFrame) { _rotation = _rotation - _parent.g1.rotSpeed; } } instance g3 of movieClip 1111 { onClipEvent (enterFrame) { _rotation = _rotation + _parent.g1.rotSpeed; } } instance g4 of movieClip 1115 { onClipEvent (enterFrame) { _rotation = _rotation - _parent.g1.rotSpeed; } } instance g5 of movieClip 1119 { 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 1130 { 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 1130 { 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 1086 { 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 1092 { 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 1134 { 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 1103 { onClipEvent (load) { var rotSpeed = 0; } onClipEvent (enterFrame) { rotSpeed *= 0.75; _rotation = _rotation + rotSpeed; } } instance gB2 of movieClip 1107 { onClipEvent (enterFrame) { _rotation = _rotation - _parent.gB1.rotSpeed; } } instance gB3 of movieClip 1111 { onClipEvent (enterFrame) { _rotation = _rotation + _parent.gB1.rotSpeed; } } } movieClip 1220 { frame 60 { backDrop.binaryMove = true; } } instance pauseMenu of movieClip 1220 { 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 530 { 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 1222 { } movieClip 1224 { } movieClip 1226 { } movieClip 1228 { } movieClip 1233 { } movieClip 1239 { } movieClip 1241 { } movieClip 1243 { } movieClip 1245 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1248 { } movieClip 1250 { } movieClip 1252 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1254 { } movieClip 1256 { } movieClip 1258 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1260 { } movieClip 1262 { } movieClip 1264 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1267 { } movieClip 1269 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1271 { } movieClip 1273 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1275 { } movieClip 1277 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1280 { } movieClip 1282 { } movieClip 1284 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1286 { } movieClip 1288 { } movieClip 1290 { instance of movieClip 1239 { onClipEvent (load) { gotoAndStop(random(7) + 1); _height = _height - random(11); _alpha = _alpha - random(41); } } } movieClip 1291 { } movieClip 1292 { frame 1 { w = 150; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1295 { } movieClip 1298 { } movieClip 1301 { } movieClip 1303 { } movieClip 1305 { } movieClip 1307 { } movieClip 1309 { } movieClip 1310 { } movieClip 1311 { instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance grate of movieClip 1310 { onClipEvent (load) { gotoAndStop(random(4) + 1); } } } movieClip 1314 { } movieClip 1316 { } instance L2flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance tipmaker2 of movieClip 874 { 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 874 { 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 771 { onClipEvent (load) { _alpha = 0; } } movieClip 1318 { } movieClip 1319 { frame 1 { function onEnterFrame() { if (!_root.gamePaused) { if (_currentframe >= 2) { if (_currentframe != 40) { play(); } } } else { stop(); } } stop(); } frame 40 { stop(); } } movieClip 1321 { } movieClip 1322 { 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 1324 { } movieClip 1326 { } movieClip 1328 { } movieClip 1330 { } // unknown tag 88 length 65 movieClip 1335 { } movieClip 1336 { } movieClip 1339 { frame 1 { w = 35; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1340 { } movieClip 1341 { } movieClip 1342 { } movieClip 1344 { } movieClip 1345 { } movieClip 1346 { } movieClip 1351 { } movieClip 1352 { } movieClip 1354 { } movieClip 1355 { } movieClip 1357 { } movieClip 1358 { } movieClip 1359 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { } movieClip 1367 { } movieClip 1369 { } movieClip 1371 { } movieClip 1372 { } movieClip 1376 { } movieClip 1378 { } movieClip 1380 { } movieClip 1381 { } movieClip 1382 { 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 1346 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA3 of movieClip 1358 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA4 of movieClip 1363 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA5 of movieClip 1372 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gA6 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA1 of movieClip 1381 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } } movieClip 1384 { } movieClip 1385 { 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 1388 { } movieClip 1390 { } movieClip 1392 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L3flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance tipmaker3 of movieClip 874 { 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 1393 { } instance of movieClip 1393 { 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 771 { onClipEvent (load) { _alpha = 0; } } movieClip 1395 { } movieClip 1396 { } movieClip 1397 { 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 1399 { } movieClip 1401 { } movieClip 1403 { } movieClip 1405 { } movieClip 1411 { } movieClip 1413 { frame 1 { w = 200; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 1411 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1414 { } movieClip 1415 { } movieClip 1416 { } movieClip 1417 { } movieClip 1418 { 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 1417 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA2 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } } movieClip 1419 { 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 361 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA1 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } movieClip 1421 { } movieClip 1424 { } movieClip 1426 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } movieClip 1428 { } movieClip 1432 { } movieClip 1434 { } instance L4flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance tipmaker4 of movieClip 874 { 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 1393 { 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 771 { onClipEvent (load) { _alpha = 0; } } movieClip 1436 { } movieClip 1437 { 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 1439 { } movieClip 1441 { } movieClip 1443 { } movieClip 1445 { } movieClip 1447 { } movieClip 1450 { } movieClip 1451 { 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 1454 { } movieClip 1456 { } instance L5flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance tipmaker5 of movieClip 874 { 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 1458 { } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L5t1.idle = false; } } } instance of movieClip 1458 { 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 771 { onClipEvent (load) { _alpha = 0; } } movieClip 1460 { } movieClip 1461 { 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 1464 { } movieClip 1466 { } movieClip 1468 { } movieClip 1473 { } movieClip 1474 { } movieClip 1476 { } movieClip 1477 { } movieClip 1478 { } movieClip 1480 { } movieClip 1482 { } movieClip 1483 { } movieClip 1484 { 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 1477 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 1483 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } instance gA3 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA4 of movieClip 1477 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gB1 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } } movieClip 1485 { } movieClip 1486 { } movieClip 1489 { } movieClip 1491 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L6flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L6t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L6t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L6t1.idle = false; } } } instance of movieClip 1458 { 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 771 { 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 1493 { } movieClip 1495 { } movieClip 1499 { } movieClip 1502 { frame 1 { w = 80; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1503 { } movieClip 1505 { } movieClip 1507 { } movieClip 1508 { } movieClip 1509 { 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 1508 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } instance gA2 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } } movieClip 1510 { 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 352 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } instance gA1 of movieClip 370 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } } movieClip 1511 { 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 1363 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 1417 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA1 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gA4 of movieClip 1381 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.25; shine._rotation -= _parent.rotSpeed * 1.25; } } instance gA5 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA6 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } } movieClip 1513 { } movieClip 1516 { } movieClip 1518 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } } instance L7flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 1519 { instance hit of movieClip 751 { 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 771 { 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 1521 { } movieClip 1523 { } movieClip 1525 { } movieClip 1527 { } 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 = 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 1372 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gA2 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA3 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } } movieClip 1530 { } movieClip 1533 { } movieClip 1535 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L8flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L8t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L8t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L8t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L8t1.idle = true; } } } instance spawn2 of movieClip 771 { 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 1537 { } movieClip 1539 { } movieClip 1541 { } movieClip 1543 { } movieClip 1546 { frame 1 { w = 120; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 796 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1547 { 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 1346 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gB1 of movieClip 1363 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA2 of movieClip 1358 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA1 of movieClip 370 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } instance gA4 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA5 of movieClip 1372 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gB2 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } movieClip 1548 { } movieClip 1551 { } movieClip 1553 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L9flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L9t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L9t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L9t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L9t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.disruptors.L9d1.idle = false; } } } instance spawn of movieClip 771 { 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 1555 { } movieClip 1557 { } movieClip 1559 { } movieClip 1561 { } movieClip 1562 { } movieClip 1565 { } movieClip 1567 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } movieClip 1568 { 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 737 { 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 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 1458 { 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 771 { 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 1570 { } movieClip 1572 { } movieClip 1574 { } movieClip 1576 { } movieClip 1579 { } movieClip 1581 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance lever2 of movieClip 741 { 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 1582 { instance hit of movieClip 751 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance L11b1 of movieClip 189 battery5 { onClipEvent (load) { placed = true; } } instance spawn of movieClip 771 { 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 1584 { } movieClip 1586 { } movieClip 1588 { } movieClip 1589 { 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 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 370 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.25; shine._rotation -= _parent.rotSpeed * 1.25; } } instance gA3 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA4 of movieClip 1483 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } } movieClip 1590 { 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 370 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } instance gA2 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } } movieClip 1594 { } movieClip 1596 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } } instance L12flag of movieClip 866 { onClipEvent (load) { var portalRot = 90; } } instance of movieClip 1458 { 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 771 { 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 1598 { } movieClip 1600 { } movieClip 1602 { } movieClip 1603 { 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 1372 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gA2 of movieClip 1358 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA3 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gB1 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } instance gB1 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } movieClip 1606 { } movieClip 1608 { } instance of movieClip 1458 { 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 1458 { 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 866 { onClipEvent (load) { var portalRot = 270; } } movieClip 1609 { instance hit of movieClip 751 { 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 1458 { 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 771 { 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 1611 { } movieClip 1613 { } movieClip 1615 { } movieClip 1618 { frame 1 { w = 150; baseTexture._x -= random(201 - w); baseTexture._y -= random(116); } instance mainShadow of movieClip 1411 { onClipEvent (load) { gotoAndStop(random(5) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } instance of movieClip 1291 { onClipEvent (load) { gotoAndStop(random(9) + 1); } } } movieClip 1620 { } movieClip 1623 { } movieClip 1625 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } } instance of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14e3.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L14e1.idle = false; } } } instance of movieClip 1393 { onClipEvent (enterFrame) { while (this.hitTest(_root.player.hit)) { ++_root.player._x; } } } instance spawn2 of movieClip 771 { 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 1627 { } movieClip 1629 { } movieClip 1631 { } movieClip 1632 { 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 1346 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA2 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } instance gA3 of movieClip 1358 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } movieClip 1634 { } movieClip 1635 { } movieClip 1638 { } movieClip 1640 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } movieClip 1641 { instance hit of movieClip 751 { 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 866 { 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 771 { 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 1644 { } movieClip 1646 { } movieClip 1648 { } movieClip 1651 { } movieClip 1653 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } } instance lever1 of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 1458 { 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 771 { 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 1656 { } movieClip 1658 { } movieClip 1659 { 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 1417 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA3 of movieClip 1363 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 370 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.25; shine._rotation -= _parent.rotSpeed * 1.25; } } instance gA1 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } } movieClip 1661 { } movieClip 1664 { } movieClip 1666 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance lever2 of movieClip 741 { 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 866 { 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 771 { 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 1668 { } movieClip 1670 { } movieClip 1671 { 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 1381 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } instance gA2 of movieClip 1483 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } instance gA3 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA4 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } } movieClip 1673 { } movieClip 1676 { } movieClip 1678 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance lever1 of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 771 { 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 1680 { } movieClip 1682 { } movieClip 1683 { 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 1381 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.25; shine._rotation -= _parent.rotSpeed * 1.25; } } instance gA1 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } instance gA3 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA4 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } movieClip 1685 { } movieClip 1687 { } movieClip 1689 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } } instance lever2 of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L19t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L19t1.idle = true; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L19t1.idle = false; } } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L19t1.idle = true; } } } instance of movieClip 1458 { 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 771 { 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 1692 { } movieClip 1694 { } movieClip 1696 { } movieClip 1699 { } movieClip 1701 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } } instance L20flag of movieClip 866 { 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 771 { 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 1703 { } movieClip 1705 { } movieClip 1707 { } movieClip 1710 { } movieClip 1712 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L21flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 1713 { instance hit of movieClip 751 { 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 1458 { 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 1458 { 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 771 { 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 1716 { } movieClip 1718 { } movieClip 1719 { 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 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 1417 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } instance gA1 of movieClip 1483 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } } movieClip 1721 { } movieClip 1724 { } movieClip 1726 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance L22flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 1728 { instance hit of movieClip 751 { 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 1729 { instance hit of movieClip 751 { 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 771 { 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 1732 { } movieClip 1734 { } movieClip 1735 { 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 1381 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.25; shine._rotation -= _parent.rotSpeed * 1.25; } } instance gA1 of movieClip 1346 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA3 of movieClip 1363 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } } movieClip 1737 { } movieClip 1740 { } movieClip 1743 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 1; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } } instance of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 1458 { 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 771 { 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 1745 { } movieClip 1747 { } movieClip 1748 { 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 1363 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } instance gA1 of movieClip 1381 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.25; shine._rotation += _parent.rotSpeed * 1.25; } } instance gA3 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gB1 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } } movieClip 1751 { } movieClip 1753 { } instance laser2 of movieClip 1568 { onClipEvent (load) { var leverOn = true; var action = 0; } onClipEvent (enterFrame) { if (leverOn) { if (action >= 5) { play(); leverOn = false; } } } } instance leverS1 of movieClip 741 { 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 741 { 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 741 { 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 741 { 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 741 { 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 866 { onClipEvent (load) { var portalRot = 90; } } instance of movieClip 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L24e5.idle = false; } } } instance of movieClip 1458 { 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 771 { 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 1755 { } movieClip 1757 { } movieClip 1759 { } movieClip 1762 { } movieClip 1764 { } instance lever2 of movieClip 741 { 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 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 1765 { instance hit of movieClip 751 { 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 771 { 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 1769 { } movieClip 1770 { } movieClip 1772 { } movieClip 1775 { } movieClip 1777 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } } instance laser2 of movieClip 1568 { onClipEvent (load) { var leverOn = true; var action = 0; } onClipEvent (enterFrame) { if (leverOn) { if (action >= 2) { play(); leverOn = false; } } } } instance leverswitch2 of movieClip 741 { 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 741 { 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 741 { 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 866 { onClipEvent (load) { var portalRot = 90; } } movieClip 1778 { instance hit of movieClip 751 { 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 1779 { instance hit of movieClip 751 { 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 1780 { } instance of movieClip 1458 { 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 771 { 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 1783 { } movieClip 1785 { } movieClip 1786 { 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 1372 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed * 1.0715; shine._rotation -= _parent.rotSpeed * 1.0715; } } instance gB1 of movieClip 343 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA1 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA3 of movieClip 1358 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA4 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed; shine._rotation -= _parent.rotSpeed; } } } movieClip 1787 { 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 361 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed / 1.0666; shine._rotation += _parent.rotSpeed / 1.0666; } } instance gA2 of movieClip 361 { onClipEvent (enterFrame) { gear._rotation -= _parent.rotSpeed / 1.0666; shine._rotation -= _parent.rotSpeed / 1.0666; } } } movieClip 1788 { } movieClip 1791 { } movieClip 1793 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } } instance of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 1458 { 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 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L27e1.idle = false; } } } instance of movieClip 1458 { 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 1393 { 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 771 { 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 1796 { } movieClip 1798 { } movieClip 1800 { } movieClip 1802 { } movieClip 1805 { } movieClip 1807 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 0; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } } instance L28flag of movieClip 866 { onClipEvent (load) { var portalRot = 0; } } movieClip 1808 { instance hit of movieClip 751 { 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 1458 { 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 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L28f1.idle = false; } } } instance of movieClip 1458 { 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 771 { 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 1810 { } movieClip 1812 { } movieClip 1813 { 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 1363 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA2 of movieClip 379 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed; shine._rotation += _parent.rotSpeed; } } instance gA3 of movieClip 352 { onClipEvent (enterFrame) { gear._rotation += _parent.rotSpeed * 1.0715; shine._rotation += _parent.rotSpeed * 1.0715; } } } movieClip 1816 { } movieClip 1818 { } instance leverS5 of movieClip 741 { 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 866 { onClipEvent (load) { var portalRot = 180; } } movieClip 1820 { instance hit of movieClip 751 { 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 1458 { 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 1458 { 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 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L29e1.idle = false; } } } instance of movieClip 1458 { 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 1458 { 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 771 { 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 1822 { } movieClip 1824 { } movieClip 1826 { } movieClip 1829 { } movieClip 1831 { instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 2; } } instance of movieClip 1385 { onClipEvent (load) { var spawnRot = 3; } } } instance of movieClip 741 { 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 1833 { } instance L30flag of movieClip 1833 { onClipEvent (load) { var portalRot = 0; } } instance of movieClip 1458 { 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 1458 { 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 1458 { 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 1458 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.enemies.L30e4.idle = false; } } } instance of movieClip 1393 { 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 771 { 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 1835 { } movieClip 1837 { } movieClip 1840 { } movieClip 1842 { } movieClip 1845 { } instance player of movieClip 771 { 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; if (Math.round(Math.abs(xspeed)) < 0.1) { batterypower -= 0.05; } } } } if (rot == 2) { this.inside.complete._rotation -= yspeed * 2; if (righttouch && stick) { if (_root.gametype == '-Regular-') { 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) { if (_root.gametype == '-Regular-') { 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; if (_root.gametype == '-Regular-') { batterypower -= 10; } 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; } 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 771 { onClipEvent (load) { _alpha = 0; } } movieClip 1849 { } movieClip 1852 { } movieClip 1853 { frame 1 { stop(); } } instance of movieClip 1853 { onClipEvent (release) { _root.flashbacks.gotoAndStop('next'); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } movieClip 1854 { } instance of movieClip 1854 { onClipEvent (enterFrame) { _root.gamePaused = true; } } frame 39 { player.stopMotion = false; } movieClip 1857 { 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 1859 { } movieClip 1860 { } instance d3 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d4 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d5 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d6 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d7 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d8 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d9 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d10 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d19 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d18 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d17 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d16 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d15 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d12 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d13 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d14 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d11 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d21 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d2 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d20 of movieClip 1860 { onClipEvent (load) { _visible = false; } } instance d1 of movieClip 1860 { onClipEvent (load) { _visible = false; } } movieClip 1867 { } movieClip 1870 { } movieClip 1871 { frame 1 { stop(); } instance of movieClip 1867 { onClipEvent (enterFrame) { if (_root.gametype == '-Regular-') { _visible = true; } else { _visible = false; } } } instance of movieClip 1870 { onClipEvent (enterFrame) { if (_root.gametype == '-Regular-') { _visible = false; } else { _visible = true; } } } } movieClip 1873 { } movieClip 1874 { frame 1 { stop(); } } movieClip 1876 { } movieClip 1879 { } movieClip 1884 { } movieClip 1885 { frame 1 { stop(); } } movieClip 1886 { frame 1 { function onEnterFrame() { pnametran = pname.text; } pname.text = ''; } instance of movieClip 1871 { onClipEvent (load) { var once = true; var namestring = ''; var numstring = ''; } onClipEvent (rollOver) { if (_root.gametype == '-Regular-') { if (once) { gotoAndStop(2); } } } onClipEvent (release) { if (_root.gametype == '-Regular-') { namestring = String(_root.winning.base.pname.text); namestring.toLowerCase(); numstring = String(_root.deaths); if (namestring != '') { if (once) { var md = new md5(); x = new LoadVars(); x.n = namestring; x.s = numstring; x.m = 1; md5val = x.s + 1518; x.k = md.hash('' + md5val); x.sendAndLoad('http://hiscore.gamepirate.com/electromagnetic_submit.php', x, 'POST'); gotoAndStop(5); _root.winning.base.notice.nextFrame(); once = false; getURL('http://hiscore.gamepirate.com/electromagnetic.php', 'blank'); 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(); } } } } } onClipEvent (enterFrame) { if (!once) { gotoAndStop(5); } } onClipEvent (releaseOutside, rollOut) { if (once) { gotoAndStop(1); } } } instance of movieClip 1885 { onClipEvent (release) { _root.flashbacks.gotoAndStop('menu'); } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (releaseOutside, rollOut) { gotoAndStop(1); } } } movieClip 1887 { frame 1 { stop(); } frame 30 { stop(); } } movieClip 1888 { } movieClip 1889 { frame 1 { } frame 1 { var w = _width; } } instance c8 of movieClip 1889 { 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}); } } } } }




http://swfchan.com/27/130582/info.shtml
Created: 22/2 -2019 03:14:32 Last modified: 22/2 -2019 03:14:32 Server time: 08/05 -2024 07:35:22