Combined Code
frame 1 {
_root.volumeOn = true;
_root.globalVolume = new Sound();
}
frame 1 {
_global.disabled = false;
_global.SW = false;
_global.ST = false;
_global.CS = false;
_global.SS = false;
_global.mu = false;
}
movieClip 4 {
}
movieClip 5 {
}
movieClip 8 {
}
movieClip 10 {
}
movieClip 11 {
}
movieClip 12 {
}
button 16 {
on (release) {
play();
}
}
movieClip 19 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v2 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v2;
if (v2 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
return undefined;
}
gotoAndPlay('loaded');
return undefined;
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = false;
var loadingComplete = false;
timerHandler();
}
instance of movieClip 5 {
onClipEvent (enterFrame) {
_parent.timerHandler();
}
}
frame 6 {
stop();
}
frame 12 {
_root.play();
}
}
movieClip 29 {
}
movieClip 38 {
}
button 40 {
on (release) {
_parent.play();
}
on (keyPress '<Space>') {
_parent.play();
}
}
movieClip 41 {
}
// unknown tag 88 length 74
movieClip 44 {
frame 12 {
stop();
}
frame 24 {
_root.play();
}
}
movieClip 45 {
frame 64 {
stop();
}
}
frame 22 {
stop();
}
frame 24 {
stop();
}
movieClip 48 {
}
button 50 {
on (keyPress '<Backspace>') {
_root.gotoAndPlay(37);
}
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 56 {
}
movieClip 64 {
}
movieClip 75 {
}
movieClip 78 {
}
movieClip 84 {
}
movieClip 86 {
}
movieClip 90 {
}
movieClip 92 {
}
movieClip 96 {
}
movieClip 99 {
}
movieClip 104 {
}
movieClip 111 {
}
movieClip 116 {
}
movieClip 119 {
}
movieClip 123 {
frame 12 {
stop();
}
frame 23 {
stop();
}
frame 35 {
stop();
}
frame 46 {
stop();
}
frame 57 {
stop();
}
frame 59 {
stop();
}
frame 70 {
stop();
}
frame 81 {
stop();
}
frame 110 {
stop();
}
frame 129 {
stop();
}
frame 141 {
_root.play();
}
}
movieClip 131 {
}
movieClip 134 {
}
movieClip 135 {
}
movieClip 136 {
frame 5 {
stop();
}
}
// unknown tag 88 length 69
movieClip 142 {
}
movieClip 143 {
frame 6 {
stop();
}
}
button 146 {
on (release) {
if (_root.volumeOn) {
_root.globalVolume.setVolume(0);
} else {
_root.globalVolume.setVolume(100);
}
_root.volumeOn = !_root.volumeOn;
}
}
frame 38 {
stop();
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 152 {
}
movieClip 154 {
}
movieClip 161 {
}
movieClip 165 {
}
movieClip 177 {
}
movieClip 179 {
}
movieClip 182 {
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 186 {
}
movieClip 187 {
}
instance of movieClip 187 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
}
movieClip 192 {
}
movieClip 200 {
}
movieClip 207 {
}
movieClip 212 {
}
movieClip 213 {
}
instance player of movieClip 213 {
onClipEvent (load) {
stop();
_root.moveSpeed = 6;
_root.movement = 'none';
_root.vmovement = 'none';
}
onClipEvent (enterFrame) {
if (disabled == false) {
if (Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
gotoAndStop(6);
this._x += _root.moveSpeed;
incl = 'right';
}
if (Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40)) {
gotoAndStop(4);
this._x -= _root.moveSpeed;
incl = 'left';
}
if (Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39)) {
gotoAndStop(8);
this._y -= _root.moveSpeed;
incl = 'up';
}
if (Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39)) {
gotoAndStop(2);
this._y += _root.moveSpeed;
incl = 'down';
}
if (Key.isDown(39) && Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37)) {
gotoAndStop(8);
this._x += _root.moveSpeed / Math.SQRT2;
this._y -= _root.moveSpeed / Math.SQRT2;
incl = 'upright';
}
if (Key.isDown(37) && Key.isDown(38) && !Key.isDown(40) && !Key.isDown(39)) {
gotoAndStop(8);
this._x -= _root.moveSpeed / Math.SQRT2;
this._y -= _root.moveSpeed / Math.SQRT2;
incl = 'upleft';
}
if (Key.isDown(40) && Key.isDown(37) && !Key.isDown(38) && !Key.isDown(39)) {
gotoAndStop(2);
this._x -= _root.moveSpeed / Math.SQRT2;
this._y += _root.moveSpeed / Math.SQRT2;
incl = 'downleft';
}
if (Key.isDown(40) && Key.isDown(39) && !Key.isDown(38) && !Key.isDown(37)) {
gotoAndStop(2);
this._x += _root.moveSpeed / Math.SQRT2;
this._y += _root.moveSpeed / Math.SQRT2;
incl = 'downright';
}
}
if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39)) {
if (incl == 'left') {
gotoAndStop(3);
}
if (incl == 'right') {
gotoAndStop(5);
}
if (incl == 'up' || incl == 'upleft' || incl == 'upright') {
gotoAndStop(7);
}
if (incl == 'down' || incl == 'downleft' || incl == 'downright') {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
wbounce = _root.moveSpeed;
cbounce = wbounce / Math.SQRT2;
if (incl == 'right') {
if (_root.wall.hitTest(this._x + 30, this._y, true) || _root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._x -= wbounce;
}
}
if (incl == 'left') {
if (_root.wall.hitTest(this._x, this._y, true) || _root.wall.hitTest(this._x, this._y + 45, true)) {
this._x += wbounce;
}
}
if (incl == 'up') {
if (_root.wall.hitTest(this._x, this._y, true) || _root.wall.hitTest(this._x + 30, this._y, true)) {
this._y += wbounce;
}
}
if (incl == 'down') {
if (_root.wall.hitTest(this._x, this._y + 45, true) || _root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._y -= wbounce;
}
}
if (incl == 'upright') {
if (_root.wall.hitTest(this._x + 30, this._y, true)) {
this._x -= cbounce;
this._y += cbounce;
}
}
if (incl == 'upleft') {
if (_root.wall.hitTest(this._x, this._y, true)) {
this._x += cbounce;
this._y += cbounce;
}
}
if (incl == 'downright') {
if (_root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._x -= cbounce;
this._y -= cbounce;
}
}
if (incl == 'downleft') {
if (_root.wall.hitTest(this._x, this._y + 45, true)) {
this._x += cbounce;
this._y -= cbounce;
}
}
}
onClipEvent (enterFrame) {
if (incl == 'upright' || incl == 'upleft' || incl == 'downright' || incl == 'downleft') {
bounce = _root.moveSpeed / Math.SQRT2;
} else {
bounce = _root.moveSpeed;
}
if (!_root.rbar.hitTest(this._x + 75, this._y, true) && !_root.lbar.hitTest(this._x - 45, this._y, true) && !_root.ubar.hitTest(this._x, this._y - 30, true) && !_root.dbar.hitTest(this._x, this._y + 75, true)) {
_root.movement = 'none';
_root.vmovement = 'none';
}
if (_root.rbar.hitTest(this._x + 75, this._y, true)) {
this._x -= bounce;
_root.movement = 'right';
}
if (_root.lbar.hitTest(this._x - 45, this._y, true)) {
this._x += bounce;
_root.movement = 'left';
}
if (_root.ubar.hitTest(this._x, this._y - 30, true)) {
this._y += bounce;
_root.vmovement = 'up';
}
if (_root.dbar.hitTest(this._x, this._y + 75, true)) {
this._y -= bounce;
_root.vmovement = 'down';
}
}
onClipEvent (enterFrame) {
if (_root.reset.hitTest(this._x, this._y, true) || _root.reset.hitTest(this._x, this._y + 45, true) || _root.reset.hitTest(this._x + 30, this._y, true) || _root.reset.hitTest(this._x + 30, this._y + 45, true)) {
_root.gotoAndPlay(166);
}
if (Key.isDown(82)) {
_root.gotoAndPlay(37);
}
}
}
movieClip 215 {
frame 1 {
stop();
}
}
instance wall of movieClip 215 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_global.PP == true) {
gotoAndStop(2);
}
}
}
movieClip 217 {
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblesw.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbleel.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblecs.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblest.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbless.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbleve.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbled1.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbled2.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbled3.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblepl.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblelg.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubbletv.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblefr.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblewa.play();
}
}
}
movieClip 219 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 221 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 223 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 228 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 15 {
stop();
}
frame 18 {
stop();
}
frame 30 {
_global.disabled = false;
}
}
movieClip 230 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 25 {
_global.disabled = false;
}
}
movieClip 233 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 16 {
stop();
}
frame 28 {
_global.disabled = false;
}
}
movieClip 235 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 238 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 15 {
stop();
}
frame 27 {
_global.disabled = false;
}
}
movieClip 243 {
frame 8 {
stop();
}
}
button 245 {
on (release) {
_global.disabled = false;
_root.play();
}
}
button 246 {
on (release) {
play();
}
}
movieClip 247 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 252 {
}
movieClip 258 {
}
movieClip 262 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
if (_global.SW == false || _global.ST == false || _global.CS == false || _global.SS == false) {
_global.disabled = false;
gotoAndStop(1);
}
}
frame 35 {
stop();
}
frame 46 {
stop();
}
frame 58 {
stop();
}
frame 69 {
stop();
}
frame 80 {
stop();
}
frame 91 {
_global.disabled = false;
}
}
movieClip 268 {
}
movieClip 271 {
}
movieClip 278 {
}
button 279 {
on (release) {
_parent.play();
}
on (keyPress '<Space>') {
play();
}
}
movieClip 280 {
frame 1 {
stop();
}
frame 4 {
_parent.play();
}
}
movieClip 284 {
}
movieClip 285 {
}
movieClip 294 {
}
movieClip 295 {
}
movieClip 296 {
}
movieClip 298 {
}
movieClip 302 {
}
movieClip 304 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 308 {
}
movieClip 309 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 23 {
stop();
}
frame 34 {
stop();
}
frame 45 {
stop();
}
frame 55 {
stop();
}
frame 65 {
stop();
}
frame 76 {
_global.CS = true;
_global.disabled = false;
}
}
movieClip 313 {
}
movieClip 315 {
}
movieClip 329 {
}
movieClip 333 {
}
movieClip 336 {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 24 {
stop();
}
frame 35 {
stop();
}
frame 46 {
stop();
}
frame 57 {
stop();
}
frame 67 {
stop();
}
frame 77 {
_global.SW = true;
_global.disabled = false;
}
}
movieClip 363 {
}
movieClip 367 {
}
movieClip 387 {
}
movieClip 390 {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 24 {
stop();
}
frame 35 {
stop();
}
frame 46 {
stop();
}
frame 57 {
stop();
}
frame 68 {
_global.ST = true;
_global.disabled = false;
}
}
movieClip 394 {
}
movieClip 397 {
}
movieClip 401 {
}
button 407 {
on (release) {
_parent.play();
}
}
movieClip 408 {
}
movieClip 409 {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 24 {
stop();
}
frame 35 {
stop();
}
frame 47 {
_global.SS = true;
_global.disabled = false;
}
}
movieClip 416 {
}
movieClip 418 {
}
frame 40 {
stop();
}
movieClip 424 {
}
movieClip 427 {
}
movieClip 428 {
}
instance of movieClip 428 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
}
instance player of movieClip 416 {
onClipEvent (load) {
stop();
_root.moveSpeed = 6;
_root.movement = 'none';
_root.vmovement = 'none';
}
onClipEvent (enterFrame) {
if (disabled == false) {
if (Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
gotoAndStop(6);
this._x += _root.moveSpeed;
incl = 'right';
}
if (Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40)) {
gotoAndStop(4);
this._x -= _root.moveSpeed;
incl = 'left';
}
if (Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39)) {
gotoAndStop(8);
this._y -= _root.moveSpeed;
incl = 'up';
}
if (Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39)) {
gotoAndStop(2);
this._y += _root.moveSpeed;
incl = 'down';
}
if (Key.isDown(39) && Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37)) {
gotoAndStop(8);
this._x += _root.moveSpeed / Math.SQRT2;
this._y -= _root.moveSpeed / Math.SQRT2;
incl = 'upright';
}
if (Key.isDown(37) && Key.isDown(38) && !Key.isDown(40) && !Key.isDown(39)) {
gotoAndStop(8);
this._x -= _root.moveSpeed / Math.SQRT2;
this._y -= _root.moveSpeed / Math.SQRT2;
incl = 'upleft';
}
if (Key.isDown(40) && Key.isDown(37) && !Key.isDown(38) && !Key.isDown(39)) {
gotoAndStop(2);
this._x -= _root.moveSpeed / Math.SQRT2;
this._y += _root.moveSpeed / Math.SQRT2;
incl = 'downleft';
}
if (Key.isDown(40) && Key.isDown(39) && !Key.isDown(38) && !Key.isDown(37)) {
gotoAndStop(2);
this._x += _root.moveSpeed / Math.SQRT2;
this._y += _root.moveSpeed / Math.SQRT2;
incl = 'downright';
}
}
if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39)) {
if (incl == 'left') {
gotoAndStop(3);
}
if (incl == 'right') {
gotoAndStop(5);
}
if (incl == 'up' || incl == 'upleft' || incl == 'upright') {
gotoAndStop(7);
}
if (incl == 'down' || incl == 'downleft' || incl == 'downright') {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
wbounce = _root.moveSpeed;
cbounce = wbounce / Math.SQRT2;
if (incl == 'right') {
if (_root.wall.hitTest(this._x + 30, this._y, true) || _root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._x -= wbounce;
}
}
if (incl == 'left') {
if (_root.wall.hitTest(this._x, this._y, true) || _root.wall.hitTest(this._x, this._y + 45, true)) {
this._x += wbounce;
}
}
if (incl == 'up') {
if (_root.wall.hitTest(this._x, this._y, true) || _root.wall.hitTest(this._x + 30, this._y, true)) {
this._y += wbounce;
}
}
if (incl == 'down') {
if (_root.wall.hitTest(this._x, this._y + 45, true) || _root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._y -= wbounce;
}
}
if (incl == 'upright') {
if (_root.wall.hitTest(this._x + 30, this._y, true)) {
this._x -= cbounce;
this._y += cbounce;
}
}
if (incl == 'upleft') {
if (_root.wall.hitTest(this._x, this._y, true)) {
this._x += cbounce;
this._y += cbounce;
}
}
if (incl == 'downright') {
if (_root.wall.hitTest(this._x + 30, this._y + 45, true)) {
this._x -= cbounce;
this._y -= cbounce;
}
}
if (incl == 'downleft') {
if (_root.wall.hitTest(this._x, this._y + 45, true)) {
this._x += cbounce;
this._y -= cbounce;
}
}
}
onClipEvent (enterFrame) {
if (incl == 'upright' || incl == 'upleft' || incl == 'downright' || incl == 'downleft') {
bounce = _root.moveSpeed / Math.SQRT2;
} else {
bounce = _root.moveSpeed;
}
if (!_root.rbar.hitTest(this._x + 75, this._y, true) && !_root.lbar.hitTest(this._x - 45, this._y, true) && !_root.ubar.hitTest(this._x, this._y - 30, true) && !_root.dbar.hitTest(this._x, this._y + 75, true)) {
_root.movement = 'none';
_root.vmovement = 'none';
}
if (_root.rbar.hitTest(this._x + 75, this._y, true)) {
this._x -= bounce;
_root.movement = 'right';
}
if (_root.lbar.hitTest(this._x - 45, this._y, true)) {
this._x += bounce;
_root.movement = 'left';
}
if (_root.ubar.hitTest(this._x, this._y - 30, true)) {
this._y += bounce;
_root.vmovement = 'up';
}
if (_root.dbar.hitTest(this._x, this._y + 75, true)) {
this._y -= bounce;
_root.vmovement = 'down';
}
}
onClipEvent (enterFrame) {
if (_root.reset.hitTest(this._x, this._y, true) || _root.reset.hitTest(this._x, this._y + 45, true) || _root.reset.hitTest(this._x + 30, this._y, true) || _root.reset.hitTest(this._x + 30, this._y + 45, true)) {
_root.gotoAndPlay(166);
}
if (Key.isDown(82)) {
_root.gotoAndPlay(39);
}
}
}
movieClip 430 {
frame 1 {
stop();
}
}
instance wall of movieClip 430 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_global.PP == true) {
gotoAndStop(2);
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblebx.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblech.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblegf.play();
}
}
}
instance of movieClip 217 {
onClipEvent (enterFrame) {
scrollspeed = _root.moveSpeed;
if (_root.movement == 'right') {
this._x -= scrollspeed;
}
if (_root.movement == 'left') {
this._x += scrollspeed;
}
if (_root.vmovement == 'up') {
this._y += scrollspeed;
}
if (_root.vmovement == 'down') {
this._y -= scrollspeed;
}
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && Key.isDown(32)) {
_global.disabled = true;
_root.bubblev2.play();
}
}
}
movieClip 432 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 434 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
button 436 {
on (release) {
_global.disabled = false;
_root.gotoAndPlay(37);
}
}
movieClip 437 {
frame 1 {
stop();
}
frame 12 {
stop();
}
frame 24 {
_global.disabled = false;
}
}
movieClip 442 {
}
movieClip 447 {
}
button 448 {
on (release) {
_parent.play();
}
on (keyPress '<Space>') {
play();
}
}
movieClip 449 {
frame 1 {
stop();
}
frame 4 {
_parent.play();
}
}
movieClip 453 {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 24 {
stop();
}
frame 35 {
stop();
}
frame 47 {
_global.disabled = false;
}
}