Combined Code
frame 1 {
tabChildren = false;
}
frame 1 {
stopAllSounds();
}
frame 1 {
Stage.showMenu = false;
}
movieClip 3 {
}
movieClip 15 {
}
button 17 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
button 21 {
on (release) {
_root.play();
}
}
movieClip 22 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
frame 2 {
stop();
}
button 28 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 3 {
stop();
}
button 36 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 4 {
stop();
}
button 39 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
button 43 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 5 {
stopAllSounds();
}
frame 5 {
play();
}
frame 128 {
stop();
}
movieClip 155 {
}
button 161 {
on (release) {
getURL('http://www.youtube.com/watch?v=U8BWBn26bX0&feature=channel_page', '_blank');
}
}
button 166 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 129 {
stop();
}
frame 130 {
stop();
}
frame 131 {
stop();
}
frame 132 {
stop();
}
button 176 {
on (press) {
play();
}
}
movieClip 195 {
}
movieClip 210 {
frame 14 {
stop();
}
frame 46 {
stop();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
movieClip 212 {
}
instance of movieClip 212 {
onClipEvent (load) {
Mouse.hide();
startDrag('', true);
}
}
frame 160 {
stopAllSounds();
}
frame 168 {
stop();
stopAllSounds();
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
instance of movieClip 210 {
onClipEvent (press) {
play();
}
}
frame 197 {
stopAllSounds();
}
frame 209 {
stop();
}
button 239 {
on (press) {
play();
}
}
frame 253 {
Mouse.show();
}
frame 254 {
stop();
}
frame 255 {
stop();
}
frame 256 {
stop();
}
button 254 {
on (release) {
play();
}
}
frame 378 {
stop();
}
button 314 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 379 {
stop();
}
button 320 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 380 {
stop();
}
button 326 {
on (release) {
play();
}
}
frame 397 {
stop();
}
frame 398 {
stop();
}
frame 399 {
stop();
}
frame 400 {
stop();
}
button 337 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
movieClip 339 {
}
instance of movieClip 339 {
onClipEvent (load) {
Mouse.hide();
startDrag('', true);
}
}
frame 401 {
Mouse.show();
}
frame 401 {
stop();
}
button 340 {
on (release) {
prevFrame();
gotoAndPlay(undefined);
undefined;
}
}
button 342 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 402 {
stop();
}
frame 403 {
stop();
}
frame 404 {
stop();
}
button 352 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
movieClip 362 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
instance of movieClip 362 {
onClipEvent (rollOver) {
play();
}
}
movieClip 364 {
}
instance of movieClip 364 {
onClipEvent (load) {
Mouse.hide();
startDrag('', true);
}
}
frame 405 {
stop();
Mouse.show();
}
button 368 {
on (press) {
play();
}
}
frame 406 {
stopAllSounds();
}
frame 422 {
stop();
}
movieClip 387 {
}
instance of movieClip 387 {
onClipEvent (enterFrame) {
_y = _y + (_root.player._y - _y) / 2;
_x = _x + (_root.player._x - _x) / 2;
}
}
movieClip 394 {
}
movieClip 397 {
}
instance player of movieClip 397 {
onClipEvent (load) {
var grav = 10;
var speed = 16;
var jumpHeight = 16;
var slow = 0.7;
var slowspd = speed / 1.5;
var setspeed = speed;
var scale = _xscale;
var ex = 2;
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
++grav;
_y = _y + grav;
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav *= slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = _x + speed;
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else {
if (Key.isDown(65)) {
_x = _x - speed;
_xscale = -scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else {
if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) {
this.gotoAndStop(3);
}
}
}
if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) {
this.gotoAndStop(5);
}
if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) {
grav = -jumpHeight;
_y = _y - 4;
this.gotoAndStop(2);
}
if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) {
_x = _x - speed;
}
if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) {
_x = _x + speed;
}
if (_root.ground.hitTest(_x, _y - _height - 15, true)) {
grav = 1;
}
}
}
button 399 {
on (press) {
play();
}
}
movieClip 404 {
}
movieClip 406 {
}
movieClip 407 {
}
movieClip 411 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
instance of movieClip 411 {
onClipEvent (enterFrame) {
_y = _y + (_root.player._y - _y) / 5.5;
_x = _x + (_root.player._x - _x) / 5.5;
}
}
frame 423 {
stopAllSounds();
}
frame 942 {
stop();
}
button 480 {
on (release) {
nextFrame();
gotoAndPlay(undefined);
undefined;
}
}
frame 943 {
stop();
}
frame 944 {
stop();
}
frame 945 {
stop();
}
frame 946 {
stop();
}
frame 947 {
stop();
}
frame 948 {
stop();
}
button 490 {
on (release) {
play();
}
}
frame 950 {
stopAllSounds();
}