Frame 1
MovieClip.prototype.getPercentLoaded = function () {
var _local1 = this;
if (_local1.getBytesTotal() < 70) {
return(0);
}
return((_local1.getBytesLoaded() * 100) / _local1.getBytesTotal());
};
Math.convertToScale = function (x, xmin, xmax, ymin, ymax) {
var _local1 = (((x - xmin) * (ymax - ymin)) / (xmax - xmin)) + ymin;
return(_local1);
};
stop();
_quality = "BEST";
Frame 3
function SyncPos(mcTarget, mcScope) {
var _local2 = mcTarget;
var _local1 = new Object();
_local1.x = _local2._x;
_local1.y = _local2._y;
_local2._parent.localToGlobal(_local1);
mcScope.globalToLocal(_local1);
this.x = _local1.x;
this.y = _local1.y;
}
function SyncPos2(startScope, x, y, destScope) {
var _local1 = new Object();
_local1.x = x;
_local1.y = y;
startScope.localToGlobal(_local1);
destScope.globalToLocal(_local1);
this.x = _local1.x;
this.y = _local1.y;
}
function SyncMouse(mcTarget) {
var _local1 = new Object();
var _local2 = mcTarget._parent;
_local1.x = _local2._xmouse;
_local1.y = _local2._ymouse;
this.x = _local1.x;
this.y = _local1.y;
}
function GlobalPos(mcTarget) {
var _local2 = mcTarget;
var _local1 = new Object();
_local1.x = _local2._x;
_local1.y = _local2._y;
_local2._parent.localToGlobal(_local1);
this.x = _local1.x;
this.y = _local1.y;
}
Spoon = function () {
var _local1 = this;
_local1.startX = -70;
_local1.dragX = -140;
_local1.launchX = 330;
_local1.tumbleX = 292;
_local1.boatY = -132;
_local1.curAngle = 0;
_local1.d = 0;
_local1.additiveDistance = 0;
_local1.contrailCount = 0;
_local1.reflected = false;
_local1.angleIncr = 0.01;
_local1.hitWidth = 88;
_local1.spiffNum = 0;
_local1.hasScreamed = false;
_local1.partNum = 0;
_local1.maxThrust = 78 + (Math.random() * 3);
_local1.initalThrust = null;
_local1.launchAngle = null;
_local1.userAngle = null;
_local1.netAngle = null;
_local1.mc1 = theWorld.groundMc.boat.attachMovie("fishPlane", "spoonMC", 10001);
_local1.mc1._xscale = 50;
_local1.mc1._yscale = 50;
_local1.boat = theWorld.groundMC.boat;
_local1.landPos = 9999999 /* 0x98967F */;
_local1.launchStatus = false;
_local1.animateState = null;
_local1.partCanFall = false;
_local1.x = _local1.startX;
_local1.y = _local1.boatY;
_local1.mc1.obj = _local1;
_local1.camRefX = 0;
_local1.camRefY = 0;
_local1.launchState = false;
_local1.crashState = false;
_local1.maxDistance = 5800;
_local1.mc1.onEnterFrame = function () {
};
_local1.grabBtn = _local1.boat.attachMovie("grabBtn", "grabBtn", 10010);
_local1.grabBtn.obj = _local1;
_local1.grabBtn.btn.obj = _local1;
_local1.mc = theWorld.mc.attachMovie("fishPlane", "spoonMC2", 10000);
_local1.mc.obj = _local1;
_local1.mc._xscale = 50;
_local1.mc._yscale = 50;
_local1.mc._visible = false;
_local1.init();
_local1.puller_1 = _local1.boat.attachMovie("pullerClose", "puller_1", 20000);
_local1.puller_1._xscale = (_local1.puller_1._yscale = 50);
_local1.puller_1._x = _local1.mc1._x - 15;
_local1.puller_1._y = -147;
};
Spoon.prototype.init = function () {
var _local1 = this;
_local1.mc1.body.gotoAndStop(50);
_local1.mc1._x = _local1.x;
_local1.mc1._y = _local1.y;
_local1.grabBtn._x = _local1.x;
_local1.grabBtn._y = _local1.y;
_local1.enablePullBack();
};
Spoon.prototype.clear = function () {
this.mc1.removeMovieClip();
this.mc.removeMovieClip();
};
Spoon.prototype.checkAngle = function () {
var _local1 = this;
if (_local1.userAngle < 0) {
if (Math.round(_local1.curAngle) <= _local1.netAngle) {
return(true);
}
return(false);
}
if (_local1.userAngle >= 0) {
if (Math.round(_local1.curAngle) >= _local1.netAngle) {
return(true);
}
return(false);
}
return(undefined);
};
Spoon.prototype.checkForSpecialStuff = function () {
var _local1 = this;
if (_local1.partCanFall && (random(5) == 4)) {
_local1.losePart();
} else {
_local1.partCanFall = false;
}
};
Spoon.prototype.setCameraRef = function (curMc) {
var _local1 = new SyncPos(curMc, theWorld.mc);
this.camRefX = _local1.x;
this.camRefY = _local1.y;
};
Spoon.prototype.exist1 = function () {
this.setPosition_runway();
this.render1();
};
Spoon.prototype.exist = function () {
var _local1 = this;
_local1.setPosition();
_local1.setAngle();
_local1.setCameraRef(_local1.mc);
_local1.render();
_local1.checkForImpact();
_local1.checkForSpecialStuff();
};
Spoon.prototype.checkForImpact = function () {
var _local1 = this;
var aa4 = new SyncPos(_local1.mc.face, _local1.mc._parent);
if ((_local1.y > 0) && (_local1.r <= 45)) {
if (_local1.yv < 15) {
if (_local1.xv >= 45) {
var _local2 = 1;
} else if (_local1.xv > 38) {
var _local2 = random(2);
} else if (_local1.xv > 30) {
var _local2 = random(4);
} else {
var _local2 = 0;
}
if (_local2 == 1) {
_global.yelp.start();
_local1.setAnimation("ejectSink");
} else {
_local1.setAnimation("sink");
}
_root.theGame.handleCrashSound("flat", _local1.d);
_local1.crashState = true;
_local1.yv = 0;
_local1.y = 0;
_local1.mc._y = 0;
_local1.r = 0;
_local1.mc._rotation = _local1.r;
delete _local1.mc.onEnterFrame;
} else {
_local1.setAnimation("still");
var aa5 = theWorld.groundMc.attachMovie("spiff", "spiff" + _local1.spiffNum, 30000 + _local1.spiffNum);
_root.theGame.handleSkimSound();
aa5._x = _local1.x + 40;
aa5._y = 10;
_local1.spiffNum++;
}
_local1.y = 0;
_local1.reflected = true;
_local1.yv = _local1.yv * (-impactDecay);
} else if ((((aa4.y >= 0) && (_local1.r > 67)) && (_local1.userAngle > -15)) || ((((aa4.x >= _local1.landPos) && (_local1.r < 67)) && (_local1.r > 45)) && (_local1.userAngle > -15))) {
_local1.x = _local1.landPos;
_local1.y = 0;
_local1.crashState = true;
if (_local1.yv > 80) {
_root.theGame.handleCrashSound("vertNasty", _local1.d);
_local1.explode();
} else {
_root.theGame.handleCrashSound("vertGood", _local1.d);
_local1.bigSplash();
}
} else if ((_local1.y > (-_local1.hitWidth)) && (_local1.userAngle <= -15)) {
var _local3 = 90 - _local1.r;
_local3 = Math.degreesToRadians(_local3);
var aa8 = (_local1.hitWidth * Math.sin(_local3));
_local1.x = _local1.mc._x;
_local1.crashState = true;
_local1.y = 0;
_local1.mc._y = 0;
_local1.mc._x = _local1.x;
_local1.yv = 0;
_local1.xv = 0;
_local1.r = 0;
_local1.mc._rotation = _local1.r;
_local1.setAnimation("flip");
delete _local1.mc.onEnterFrame;
}
};
Spoon.prototype.setPosition = function () {
var _local1 = this;
_local1.xo = _local1.x;
_local1.yo = _local1.y;
if (!_local1.checkAngle()) {
var aa6 = ((_local1.netAngle - _local1.launchAngle) / 10);
_local1.curAngle = _local1.curAngle + aa6;
var aa4 = Math.getXYVector(_local1.curAngle, _local1.initalThrust);
_local1.yv = -aa4.deltaY;
_local1.xv = aa4.deltaX;
} else if (_local1.landPos >= 999999) {
var xv = _local1.xv;
var yv = (-1 * _local1.yv);
var aa9 = (-1 * _local1.y);
var _local3 = gravity;
var aa3 = Math.getDistance(0, 0, xv, yv);
var _local2 = -1 * Math.getAngle(0, 0, xv, yv);
_local2 = Math.degreesToRadians(_local2);
var aa7 = Math.sqrt(Math.pow(aa3 * Math.sin(_local2), 2) + ((2 * _local3) * aa9));
var aa8 = ((xv * ((aa3 * Math.sin(_local2)) + aa7)) / _local3);
_local1.landPos = _local1.x + aa8;
}
if ((_local1.y < 0) && (_local1.launchState)) {
_local1.yv = _local1.yv + gravity;
}
if (((_local1.yv > 10) && (_local1.y < -1780)) && (!_local1.hasScreamed)) {
_local1.mc.plane2.still.scream.gotoAndPlay(2);
_local1.hasScreamed = true;
}
if ((((_local1.r <= -30) && (_local1.yv >= -10)) && (!_local1.reflected)) && (_local1.netAngle > 45)) {
_local1.setAnimation("stall");
_local1.mc.onEnterFrame = function () {
this.obj.exist_stall();
};
}
if (_local1.y == 0) {
_local1.xv = _local1.xv * friction;
}
_local1.y = _local1.y + _local1.yv;
_local1.x = _local1.x + _local1.xv;
};
Spoon.prototype.setAnimation = function (param) {
var _local2 = this;
var _local3 = param;
if (_local3 != _local2.animateState) {
_local2.animateState = _local3;
var _local1 = _local2.mc.plane2;
_local1._visible = true;
_local1.stabilize._visible = false;
delete _local1.stabilize.onEnterFrame;
_local1.still._visible = false;
_local1.flip._visible = false;
_local1.sink._visible = false;
_local1.stall._visible = false;
if (_local3 == "stabilize") {
_local1.stabilize._visible = true;
_local2.stabilize();
} else if (_local3 == "roll") {
_local1.roll._visible = true;
_local1.roll.gotoAndPlay(1);
} else if (_local3 == "still") {
_local1.still._visible = true;
} else if (_local3 == "sink") {
_local1.sink._visible = true;
_local1.sink.gotoAndPlay("sink");
} else if (_local3 == "ejectSink") {
_local1.sink._visible = true;
_local2.additiveDistance = 3.71;
_local1.sink.gotoAndPlay("eject");
} else if (_local3 == "stall") {
_local1.stall._visible = true;
_local1.stall.gotoAndPlay(2);
} else if (_local3 == "flip") {
_local2.mc.body._visible = false;
_local2.mc.wheel1._visible = false;
_local2.mc.wheel2._visible = false;
delete _local2.mc.body.onEnterFrame;
_local1.flip._visible = true;
_local1.flip.gotoAndPlay(2);
}
}
};
Spoon.prototype.setPosition_runway = function () {
var _local1 = this;
_local1.xo = _local1.x;
_local1.yo = _local1.y;
if ((_local1.x < _local1.launchX) && (!_local1.crashState)) {
_local1.y = _local1.y + _local1.yv;
_local1.x = _local1.x + _local1.xv;
_local1.mc1._x = _local1.x;
_local1.mc1._y = _local1.y;
} else {
_local1.switchToLaunch();
delete _local1.mc1.onEnterFrame;
}
if (((_local1.xv < 20) && (_local1.x >= (_local1.tumbleX - _local1.xv))) && (!_local1.crashState)) {
_local1.setTumble();
}
};
Spoon.prototype.setAngle = function () {
var _local1 = this;
if ((_local1.animateState != "stall") && (!_local1.crashState)) {
_local1.r = _local1.r - ((_local1.r - Math.radiansToDegrees(Math.atan2(_local1.y - _local1.yo, _local1.x - _local1.xo))) * 1);
}
};
Spoon.prototype.render = function () {
var _local1 = this;
_local1.mc._x = _local1.x;
_local1.mc._y = _local1.y;
_local1.mc._rotation = _local1.r;
_local1.d = (Math.round(((2 * (_local1.x - _root.theWorld.launchRef.x)) / 100) * 1000) / 1000) + _local1.additiveDistance;
};
Spoon.prototype.checkImpact = function () {
};
Spoon.prototype.setLaunchVector = function (sentPower, angle) {
var _local1 = this;
var _local2 = sentPower;
_local1.yv = 0;
if (angle < -15) {
if (_local1.xv > 44) {
_local1.xv = 44;
} else {
_local1.xv = _local2;
}
_local1.userAngle = -15;
_local1.initalThrust = _local1.xv;
} else {
_local1.xv = _local2;
_local1.userAngle = angle;
_local1.initalThrust = _local2;
}
};
Spoon.prototype.launchReleaseGo = function () {
var _local1 = this;
_local1.mc1.onEnterFrame = function () {
var _local1 = this;
_local1.obj.exist1();
_local1.obj.setCameraRef(_local1);
};
theGame.cycleState();
};
Spoon.prototype.launchRelease = function () {
var _local1 = this;
var _local3 = Math.abs(_local1.startX - _local1.x);
if (_local3 > 5) {
_local1.grabBtn.btn.onPress = function () {
};
var _local2 = Math.convertToScale(_local3, 0, Math.abs(_local1.dragX), 0, _local1.maxThrust);
var aa5 = Math.convertToScale(_local1.mc1.body._currentframe, 1, 100, -80, 80);
_local1.setLaunchVector(Math.round(_local2), aa5);
_root.theWorld.crowdCheer();
if (_local2 > 20) {
_root.theGame.handleLaunchSound("good");
} else {
_root.theGame.handleLaunchSound("bad");
}
delete eval (_local1.mc1.onEnterFrame());
_local1.puller_1.obj = _local1;
_local1.setPullerAnimation("right");
_local1.mc1.speedIncr = 0;
_local1.mc1.obj = _local1;
_local1.mc1.maxRun = Math.convertToScale(_local1.xv, 5, _local1.maxThrust, 1, 15);
_local1.mc1.incrIncr = _local1.mc1.maxRun / 20;
_local1.mc1.onEnterFrame = function () {
var _local1 = this;
if (_local1.obj.x >= _local1.obj.startX) {
_local1.obj.setPullerAnimation("throw");
delete _local1.onEnterFrame;
} else {
_local1.obj.x = _local1._x + _local1.speedIncr;
if (_local1.speedIncr < _local1.maxRun) {
_local1.speedIncr = _local1.speedIncr + _local1.incrIncr;
}
_local1._x = _local1.obj.x;
_local1.obj.puller_1._x = _local1.obj.x - 15;
}
};
} else {
_local1.enablePullBack();
}
};
Spoon.prototype.setPullerAnimation = function (param) {
var _local1 = this;
var _local3 = param;
if (_local1.puller_1.right._visible == true) {
var _local2 = "right";
} else {
var _local2 = "left";
}
_local1.puller_1.right._visible = false;
_local1.puller_1.right.stop();
_local1.puller_1.left._visible = false;
_local1.puller_1.left.stop();
_local1.puller_1.rightThrow._visible = false;
_local1.puller_1.leftThrow._visible = false;
if (_local3 == "right") {
_local1.puller_1.right._visible = true;
_local1.puller_1.right.play();
} else if (_local3 == "left") {
_local1.puller_1.left._visible = true;
_local1.puller_1.left.play();
} else if (_local3 == "stop") {
_local1.puller_1[_local2].stop();
_local1.puller_1[_local2]._visible = true;
} else if (_local3 == "throw") {
_local1.puller_1[_local2 + "throw"].play();
_local1.puller_1[_local2 + "throw"]._visible = true;
}
};
Spoon.prototype.setStretchPosition = function () {
var _local1 = this;
_local1.x = _local1.grabBtn._x + ((_local1.x - _local1.grabBtn._x) * 0.8);
_local1.mc1._x = _local1.x;
var aa4 = Math.round(_local1.x - 15);
if (Math.round(_local1.puller_1._x) > aa4) {
_local1.setPullerAnimation("left");
} else if (Math.round(_local1.puller_1._x) < aa4) {
_local1.setPullerAnimation("right");
} else {
_local1.setPullerAnimation("stop");
}
_local1.puller_1._x = _local1.x - 15;
var _local3 = _local1.mc1._ymouse;
if (_local3 > 100) {
_local3 = 100;
}
if (_local3 < -100) {
_local3 = -100;
}
var aa5 = Math.round(Math.convertToScale(_local3, -100, 100, 1, 100));
_local1.mc1.body.gotoAndStop(aa5);
var _local2 = Math.round(Math.convertToScale(_local1.x, _local1.startX, _local1.startX + _local1.dragX, 1, 10));
if (_local2 >= 10) {
_local2 == 10;
} else if (_local2 < 1) {
_local2 == 1;
}
_local1.mc1.body.body.gotoAndStop(_local2);
};
Spoon.prototype.enablePullBack = function () {
var _local1 = this;
_local1.grabBtn.btn.onPress = function () {
var _local1 = this;
startDrag (_local1.obj.grabBtn, false, _local1.obj.startX + _local1.obj.dragX, _local1.obj.boatY - 100, _local1.obj.startX, _local1.obj.boatY + 100);
_root.theGame.seenInstructions = true;
_local1.obj.grabBtn.onEnterFrame = function () {
this.obj.setStretchPosition();
};
};
_local1.grabBtn.btn.onRelease = (_local1.grabBtn.btn.onReleaseOutside = function () {
stopDrag();
delete this.obj.grabBtn.onEnterFrame;
this.obj.launchRelease();
});
};
Spoon.prototype.switchToLaunch = function () {
var _local1 = this;
var _local2 = new SyncPos(_local1.mc1, _local1.mc._parent);
var aa4 = new SyncPos2(_local1.mc1._parent, _local1.startX, _local1.boatY, _local1.mc._parent);
_local1.launchAngle = math.getAngle(aa4.x, aa4.y, _local2.x, _local2.y);
_local1.netAngle = _local1.userAngle + _local1.launchAngle;
_local1.curAngle = launchAngle;
var aa5 = Math.getXYVector(_local1.launchAngle, _local1.initalThrust);
_local1.xv = aa5.deltaX;
_local1.yv = aa5.deltaY * -1;
_local1.xo = _local1.xv;
_local1.yo = _local1.yv;
_local1.x = _local2.x + _local1.xv;
_local1.y = _local2.y + _local1.yv;
_local1.r = -_local1.launchAngle;
_local1.mc.body.gotoAndStop(_local1.mc1.body._currentframe);
_local1.mc.body.obj = _local1;
_local1.mc.body.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1._currentframe;
if (_local2 < 40) {
_local1.gotoAndStop(_local2 + 10);
} else if (_local2 > 60) {
_local1.gotoAndStop(_local2 - 10);
} else {
_local1.gotoAndStop(50);
_local1.obj.mc.body._visible = false;
_local1.obj.mc.wheel1._visible = false;
_local1.obj.mc.wheel2._visible = false;
_local1.obj.setAnimation("stabilize");
delete _local1.onEnterFrame;
}
};
_local1.mc1.removeMovieClip();
_local1.mc._visible = true;
_local1.mc._x = _local1.x;
_local1.mc._y = _local1.y;
_local1.mc._rotation = _local1.r;
_local1.launchState = true;
_local1.mc.onEnterFrame = function () {
this.obj.exist();
};
};
Spoon.prototype.setTumble = function () {
var _local1 = this;
_local1.crashState = true;
_local1.boat.tumble.obj = _local1;
_local1.boat.tumble._visible = true;
_local1.boat.tumble.gotoAndPlay(2);
delete _local1.mc1.onEnterFrame;
_local1.mc1.removeMovieClip();
_local1.mc.removeMovieClip();
};
Spoon.prototype.tumbleSink = function () {
var _local3 = this;
var _local1 = new SyncPos(_local3.boat.tumble, theWorld.groundMC);
var _local2 = theWorld.groundMC.attachMovie("tumbleSink", "tumbleSink", _local3.partNum);
_local3.partNum++;
_local2._x = _local1.x;
_local2._y = _local1.y;
};
Spoon.prototype.bigSplash = function () {
var _local1 = this;
_local1.y = 0;
var aa2 = _local1.mc.plane2;
_local1.yv = 0;
_local1.xv = 0;
_local1.mc._y = _local1.y;
_local1.mc._x = _local1.x;
_local1.mc.water._visible = true;
_local1.mc.water._rotation = -1 * _local1.r;
delete _local1.mc.onEnterFrame;
_local1.mc.water.gotoAndPlay("bob");
_local1.mc.water.splash.play();
_local1.mc.water.bob.play();
updateAfterEvent();
delete _local1.onEnterFrame;
};
Spoon.prototype.explode = function () {
var _local1 = this;
_local1.mc._visible = false;
delete _local1.mc.onEnterFrame;
_local1.y = 0;
_local1.yv = 0;
_local1.xv = 0;
var aa5 = _local1.mc._parent.attachMovie("headSpin", "head" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
aa5.x = _local1.x + 10;
aa5.y = _local1.y - 10;
aa5.xv = 4 + random(3);
aa5.yv = -10 - random(8);
aa5._x = aa5.x;
aa5._y = aa5.y;
aa5.obj = _local1;
aa5.onEnterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.obj.partNum++;
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
var _local2 = _local1.mc._parent.attachMovie("BodySpin", "body" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
_local2.x = _local1.x;
_local2.y = _local1.y - 40;
_local2._rotation = 35;
_local2.xv = -1 + random(2);
_local2.yv = -3 - random(4);
_local2._x = _local2.x;
_local2._y = _local2.y;
_local2.obj = _local1;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.obj.partNum++;
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
var aa6 = _local1.mc._parent.attachMovie("tailSpin", "tail" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
aa6.x = _local1.x - 10;
aa6.y = _local1.y - 60;
aa6.xv = -5 - random(5);
aa6.yv = -5 - random(5);
aa6._x = aa6.x;
aa6._y = aa6.y;
aa6.obj = _local1;
aa6.onenterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.obj.partNum++;
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
var aa2 = _local1.mc._parent.attachMovie("wingSpin", "wing1" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
aa2.x = _local1.x;
aa2.y = _local1.y;
aa2._xscale = (aa2._yscale = 70);
aa2.xv = -5 - random(4);
aa2.yv = -8 - random(4);
aa2._x = aa2.x;
aa2._y = aa2.y;
aa2.obj = _local1;
aa2.onenterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.obj.partNum++;
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
var _local3 = _local1.mc._parent.attachMovie("wingSpin", "wing2" + _local1.partNum, 40000 + _local1.partNum);
_local3.gotoAndPlay(7);
_local1.partNum++;
_local3.x = _local1.x + 5;
_local3.y = _local1.y - 3;
_local3.xv = random(3) + random(3);
_local3.yv = -10 - random(8);
_local3._x = _local3.x;
_local3._y = _local3.y;
_local3.obj = _local1;
_local3.onEnterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.obj.partNum++;
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
var aa7 = _local1.mc._parent.attachMovie("BigSplash", "splash" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
aa7._x = _local1.x;
aa7._y = _local1.y;
_local1.mc.pauseAndInvoke("restart", "31", "cycleState", theGame);
};
Spoon.prototype.impactDebris = function () {
var _local1 = this;
var _local2 = _local1.mc._parent.attachMovie("tireSpin", "tire" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
_local2._xscale = (_local2._yscale = 80);
_local2.x = _local1.x - 7;
_local2.y = _local1.y - 12;
_local2.xv = -5;
_local2.yv = -5;
_local2._x = _local2.x;
_local2._y = _local2.y;
_local2.obj = _local1;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1.yv = _local1.yv + gravity;
if (_local1.y > 0) {
_local1.removeMovieClip();
}
_local1._x = _local1.x;
_local1._y = _local1.y;
};
};
Spoon.prototype.losePart = function () {
var _local1 = this;
var aa6 = new Array("tire", "windShield");
var _local2 = aa6[random(2)];
_local1.partCanFall = false;
var _local3 = new SyncPos(_local1.mc[_local2], _local1.mc._parent);
var aa2 = _local1.mc._parent.attachMovie(_local2 + "Spin", "part" + _local1.partNum, 40000 + _local1.partNum);
_local1.partNum++;
aa2.x = _local3.x;
aa2.y = _local3.y;
aa2._x = _local3.x;
aa2._y = _local3.y;
aa2.obj = _local1;
if (_local2 == "tire") {
aa2.xv = _local1.xv;
aa2.yv = _local1.yv;
aa2.windResistance = 0.05;
} else if (_local2 == "windShield") {
aa2.xv = -1 * (_local1.xv * 0.05);
aa2.yv = -1 * (_local1.yv * 0.05);
aa2.windResistance = 0;
}
if (_local2 == "tire") {
_local1.mc.plane2.still.gotoAndStop(2);
} else if (_local2 == "windShield") {
_local1.mc.plane2.still.gotoAndStop(3);
}
aa2.onEnterFrame = function () {
var _local1 = this;
if (_local1.y < 0) {
_local1.yv = _local1.yv + gravity;
_local1.xv = _local1.xv - _local1.windResistance;
_local1.x = _local1.x + _local1.xv;
_local1.y = _local1.y + _local1.yv;
_local1._x = _local1.x;
_local1._y = _local1.y;
} else {
var _local2 = _local1._parent.attachMovie("miniSplash", "splash" + _local1.obj.partNum, 40000 + _local1.obj.partNum);
_local1.obj.partNum++;
_local2._x = _local1.x;
_local2._y = _local1.y;
_local1.removeMovieClip();
}
};
};
Spoon.prototype.stabilize = function () {
var _local1 = this;
var _local2 = _local1.mc.plane2.stabilize;
_local2.obj = _local1;
_local2.amp = 0;
var aa3 = (_local1.xv / _local1.initalThrust);
_local2.maxAmp = Math.convertToScale(Math.abs(_local1.netAngle), 0, 70, 20, 5);
if (_local2.maxAmp < 0) {
_local2.maxAmp = 0;
}
if (_local2.maxAmp > 20) {
_local2.maxAmp = 20;
}
_local2.x = 0;
_local2.incr = 0.2;
_local2.dampen = _local2.maxAmp / 20;
if (_local2.maxAmp > 0) {
_local2.onEnterFrame = function () {
var _local1 = this;
_local1.angle = Math.round(_local1.amp * Math.sin(_local1.x));
_local1.amp = _local1.amp + _local1.dampen;
if ((_local1.amp <= 0) && (_local1.dampen < 0)) {
_local1.gotoAndStop(1);
if (_local1.obj.animateState == "stabilize") {
_local1.obj.partCanFall = true;
if (!_local1.obj.crashState) {
_local1.obj.setAnimation("still");
}
}
delete _local1.onEnterFrame;
} else if ((_local1.amp >= _local1.maxAmp) && (_local1.dampen > 0)) {
_local1.dampen = -1 * (_local1.dampen / 1.5);
_local1.incrRamp = true;
}
if (_local1.incrRamp) {
_local1.incr = _local1.incr + (_local1.incr / 50);
}
if (_local1.angle >= 0) {
_local1.angle = _local1.angle + 1;
} else {
_local1.angle = 360 + (_local1.angle - 1);
}
_local1.x = _local1.x + _local1.incr;
_local1.gotoAndStop(_local1.angle);
};
}
};
spoon.prototype.stallFallPos = function () {
var _local1 = this;
if (_local1.r < 90) {
_local1.r = _local1.r + _local1.angleIncr;
} else {
_local1.r = 90;
}
_local1.angleIncr = _local1.angleIncr + 0.1;
if (_local1.xv > 0) {
_local1.xv = _local1.xv - 0.05;
} else {
_local1.xv = 0;
}
if ((_local1.y < (-_local1.hitWidth)) && (_local1.launchState)) {
_local1.yv = _local1.yv + gravity;
} else if (_local1.yv > 70) {
_root.theGame.handleCrashSound("vertNasty", _local1.d);
_local1.explode();
} else {
_root.theGame.handleCrashSound("vertGood", _local1.d);
_local1.bigSplash();
}
_local1.y = _local1.y + _local1.yv;
_local1.x = _local1.x + _local1.xv;
};
Spoon.prototype.exist_stall = function () {
var _local1 = this;
_local1.stallFallPos();
_local1.setCameraRef(_local1.mc);
_local1.render();
};
Game = function () {
var _local1 = this;
_local1.state = "begin";
_local1.hasSetQuality = false;
_local1.seenInstructions = false;
_local1.personalBest = null;
};
Game.prototype.init = function () {
};
Game.prototype.checkQuality = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _global;
if (!_local1.hasSetQuality) {
_local1.hasSetQuality = true;
if (_local3.frameRate < 7) {
_local1.topQ = "HIGH";
_local1.medQ = "MEDIUM";
_local1.lowQ = "LOW";
_local2.framer.qual = "L,M,H";
} else if (_local3.frameRate < 10) {
_local1.topQ = "HIGH";
_local1.medQ = "MEDIUM";
_local1.lowQ = "MEDIUM";
_local2.framer.qual = "M,M,H";
} else if (_local3.frameRate < 13) {
_local1.topQ = "BEST";
_local1.medQ = "HIGH";
_local1.lowQ = "HIGH";
_local2.framer.qual = "H,H,B";
} else {
_local1.topQ = "BEST";
_local1.medQ = "BEST";
_local1.lowQ = "BEST";
_local2.framer.qual = "B,B,B";
}
}
_quality = _local1.lowQ;
};
Game.prototype.tempQuality = function () {
this.curQuality = _quality;
_quality = "BEST";
};
Game.prototype.restoreQuality = function () {
_quality = this.curQuality;
};
Game.prototype.chanceGogo = function () {
if (Math.getChance(4)) {
_global.gogo.start(0, 999);
}
};
Game.prototype.handleCrashSound = function (type, distance) {
var _local1 = _global;
var _local2 = type;
var _local3 = distance;
_local1.launch.stop();
_local1.scream.stop();
if (_local2 == "flat") {
if (_local3 > 90) {
_local1.flatGood.start();
} else if ((_local3 > 60) && (Math.getChance(2))) {
_local1.flatGood.start();
} else {
_local1.flatBad.start();
}
}
if (_local2 == "vertNasty") {
_local1.vertNasty.start();
} else if ((_local2 == "vertGood") && (_local3 > 95)) {
_local1.vertGood.start();
} else if (_local2 == "vertGood") {
if (Math.getChance(2)) {
_local1.vertNasty.start();
} else {
_local1.vertGood.start();
}
}
};
Game.prototype.handleSkimSound = function () {
_global.launch.stop();
};
Game.prototype.handleLaunchSound = function (type) {
var _local1 = _global;
if (type == "good") {
_local1.launch.start();
} else {
_local1.boo.start();
}
_local1.gogo.stop();
};
Game.prototype.cycleState = function () {
var _local1 = this;
if (_local1.state == "begin") {
_local1.state = "adjustPower";
_global.gogo.start(0, 999);
} else if (_local1.state == "adjustPower") {
_local1.state = "launch";
_quality = _local1.medQ;
} else if (_local1.state == "launch") {
_local1.state = "land";
_quality = _local1.topQ;
} else if (_local1.state == "land") {
_local1.state = "adjustPower";
_quality = _local1.lowQ;
_local1.chanceGogo();
}
screenMC.gotoAndPlay(_local1.state);
};
Game.prototype.reset = function () {
theSpoon.clear();
theSpoon = new Spoon();
this.cycleState();
theWorld.startCrowd();
};
World = function () {
var _local1 = this;
_local1.base = _root.attachMovie("worldMC", "baseMC", 100);
_local1.base._x = 0;
_local1.base._y = 0;
_local1.minCenterX = -35;
_local1.maxCenterX = 6000;
_local1.minCenterY = 0;
_local1.maxCenterY = -2200;
_local1.launchRef = null;
_local1.mc = _local1.base.attachMovie("worldMC", "worldMC", 1);
_local1.mc.obj = _local1;
_local1.yOffset = 1.5;
_local1.mc.onEnterFrame = function () {
this.obj.exist();
};
_local1.xParalaxArray = new Array(null, -1359, -900, -700, -400, -260, -100, 0);
_local1.yParalaxArray = new Array(null, 1240, 572, 539, 510, 434, 405, 615);
_local1.zParalaxArray = new Array(null, 80, 60, 30, 15, 5, 0, 0);
_local1.CameraStopPos = yMid * _local1.yOffset;
_local1.maxScale = 180;
};
World.prototype.startCrowd = function () {
var _local1 = this;
_local1.crowdControl = _local1.mc.createEmptyMovieClip("crowdControl", 999);
_local1.crowdControl.obj = _local1;
_local1.crowdControl.onEnterFrame = function () {
var _local1 = this.obj.groundMC.bleachers["m" + (random(300) + 1)];
_local1.gotoAndPlay("stand");
};
};
World.prototype.crowdCheer = function () {
this.crowdControl.removeMovieClip();
var _local2 = this.groundMC.bleachers;
var _local1 = 83;
while (_local1 >= 1) {
if (random(3) > 1) {
_local2["m" + _local1].gotoAndPlay("stand");
}
_local1--;
}
};
World.prototype.init = function () {
var _local3 = this;
_local3.x = 0;
_local3.y = 0;
_local3.decay = 0.3;
_local3.groundMC = _local3.mc.attachMovie("groundMC", "groundMC", 1000);
_local3.groundMC.boat.rock(3, 0.07);
_local3.launchRef = new SyncPos(_local3.groundMC.boat.launchRef, _local3.groundMC);
var aa5 = 7;
var _local1 = aa5;
while (_local1 >= 1) {
var _local2 = _local3.groundMC.attachMovie("bouy", "bouy" + _local1, 500 + _local1);
_local2.distance = 20 * _local1;
_local2._xscale = (_local2._yscale = 40);
_local2._y = -55;
_local2._x = _local3.launchRef.x + (1000 * _local1);
_local2.rock(5, 0.09);
_local1--;
}
_local3.sceneryMC = _root.attachMovie("scenery", "sceneryMC", 50);
_local3.sceneryMC._xscale = (_local3.sceneryMC._yscale = 65);
_local3.sceneCenter = new SyncPos2(_local3.sceneryMc._parent, xMid, yMid, _local3.sceneryMc);
_local3.startCrowd();
};
World.prototype.exist = function () {
var _local1 = this;
_local1.adjustForState();
_local1.setPosition();
_local1.render();
};
World.prototype.adjustForState = function () {
if (theGame.state == "adjustPower") {
}
};
World.prototype.setPosition = function () {
var _local1 = this;
if (theGame.state == "begin") {
_local1.x = _local1.x - ((_local1.x - (xMid - theSpoon.camRefX)) * _local1.decay);
_local1.x = Math.round(_local1.x);
_local1.y = _local1.y - ((_local1.y - (yMid * _local1.yOffset)) * _local1.decay);
_local1.y = Math.round(_local1.y);
_local1.scale = 100;
} else if (theGame.state == "adjustPower") {
_local1.x = _local1.x - ((_local1.x - ((xMid * 1.1) - theSpoon.camRefX)) * 0.2);
_local1.x = Math.round(_local1.x);
_local1.y = _local1.y - ((_local1.y - (yMid * _local1.yOffset)) * 0.2);
_local1.y = Math.round(_local1.y);
_local1.scale = _local1.scale + ((_local1.maxScale - _local1.scale) * 0.2);
_local1.scale = Math.round(_local1.scale);
} else if (theGame.state == "launch") {
if (!theSpoon.launchState) {
_local1.x = _local1.x - ((_local1.x - ((xMid * 0.6) - theSpoon.camRefX)) * _local1.decay);
_local1.y = _local1.y - ((_local1.y - (yMid * _local1.yOffset)) * _local1.decay);
} else {
_local1.x = _local1.x - ((_local1.x - ((xMid * 0.6) - theSpoon.camRefX)) * _local1.decay);
var _local2 = (yMid * 0.8) - theSpoon.camRefY;
if (_local2 > _local1.cameraStopPos) {
_local2 == _local1.cameraStopPos;
}
if (theSpoon.yv > 0) {
var _local3 = 0.9;
} else {
var _local3 = 0.6;
}
_local1.y = _local1.y - ((_local1.y - _local2) * _local3);
}
_local1.scale = _local1.scale + ((100 - _local1.scale) * 0.2);
} else if (theGame.state == "land") {
} else if (theGame.state == "end") {
}
};
World.prototype.render = function () {
var _local1 = this;
if (_local1.y < _local1.cameraStopPos) {
_local1.y = _local1.cameraStopPos;
}
_local1.mc._x = _local1.x;
_local1.mc._y = _local1.y;
_local1.base._xscale = _local1.scale;
_local1.base._yscale = _local1.scale;
var aa14 = new SyncPos2(_local1.base, xMid, yMid, _local1.base._parent);
var aa11 = (xMid - aa14.x);
var aa12 = (yMid - aa14.y);
_local1.base._x = _local1.base._x + aa11;
_local1.base._y = _local1.base._y + aa12;
var aa13 = new SyncPos2(_local1.base._parent, xMid, yMid, _local1.groundMc);
var aa16 = _local1.sceneryMC._parent;
var _local3 = 7;
while (_local3 >= 1) {
var _local2 = _local1.sceneryMC["L" + _local3];
var aa10 = Math.convertToScale(aa13.x, _local1.minCenterX, _local1.maxCenterX, 0, _local1.xParalaxArray[_local3]);
var aa8 = Math.convertToScale(aa13.y, _local1.minCenterY, _local1.maxCenterY, 0, _local1.yParalaxArray[_local3]);
_local2._xscale = (_local2._yscale = 100);
_local2._x = aa10;
_local2._y = aa8;
var aa5 = new SyncPos2(_local1.sceneryMC, _local1.sceneCenter.x, _local1.sceneCenter.y, _local2);
var aa7 = _local1.zParalaxArray[_local3];
var aa9 = Math.convertToScale(_local1.scale, 100, _local1.maxScale, 100, 100 + aa7);
_local2._xscale = (_local2._yscale = aa9);
var aa6 = new SyncPos2(_local2, aa5.x, aa5.y, _local1.sceneryMC);
aa11 = _local1.sceneCenter.x - aa6.x;
aa12 = _local1.sceneCenter.y - aa6.y;
_local2._x = _local2._x + aa11;
_local2._y = _local2._y + aa12;
_local3--;
}
var aa15 = Math.convertToScale(aa13.x, _local1.minCenterX, _local1.maxCenterX, 50, 10);
_global.crowdLoop.setVolume(aa15);
};
MovieClip.prototype.rock = function (a, i) {
var _local1 = this;
_local1.rockInc = i;
_local1.rockX = Math.random();
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._rotation = A * Math.sin(_local1.rockX);
_local1.rockX = _local1.rockX + _local1.rockInc;
};
};
MovieClip.prototype.stopRock = function () {
var _local1 = this;
delete _local1.onEnterFrame;
delete _local1.rockInc;
delete _local1.rockX;
};
Math.getChance = function (chance) {
var _local1 = Math.floor(Math.random() * (chance + 1));
if (_local1 == chance) {
return(true);
}
return(false);
};
Math.getCircleIntersectDistance = function (circ1, circ2) {
var _local2 = circ2;
var aa6 = (circ1._width / 2);
var aa5 = (_local2._width / 2);
var _local1 = Math.getDistance(circ1._x, circ1._y, _local2._x, _local2._y);
var aa8 = Math.pow(aa6, 2);
var aa7 = Math.pow(aa5, 2);
var _local3 = Math.pow(_local1, 2);
var aa4 = (((aa8 - aa7) + _local3) / (2 * _local1));
return(Math.round(aa4));
};
Math.degreesToRadians = function (degrees) {
return(degrees * 0.01745329);
};
Math.getAngle = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
var _local3 = (-180 * Math.atan2(_local1, _local2)) / 3.14;
return(_local3);
};
Math.getDistance = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
var _local3 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local1, 2));
return(_local3);
};
Math.getRadPoint = function (angle, radius, mc) {
var _local2 = mc;
var aa4 = Math.degreesToRadians(angle);
var _local3 = radius * Math.cos(aa4);
var aa5 = (radius * Math.sin(aa4));
var _local1 = new Object();
if (((_local2 != null) && (_local2 != undefined)) && (_local2 != "")) {
var aa3 = new syncPos(_local2);
_local1.x = aa3.x + _local3;
_local1.y = aa3.y - aa5;
} else {
_local1.x = _local3;
_local1.y = aa5;
}
return(_local1);
};
Math.getXYVector = function (angle, speed) {
var _local1 = new Object();
_local1.deltaX = Math.cos((angle * 3.14) / 180) * speed;
_local1.deltaY = Math.sin((angle * 3.14) / 180) * speed;
return(_local1);
};
Math.mean = function (args) {
var _local3 = arguments;
var _local2 = 0;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2 + _local3[_local1];
_local1++;
}
return(_local2 / _local3.length);
};
Math.median = function (args) {
};
Math.getChance = function (chance) {
var _local1 = Math.floor(Math.random() * (chance + 1));
if (_local1 == chance) {
return(true);
}
return(false);
};
Math.degreesToRadians = function (degrees) {
return(degrees * 0.01745329);
};
Math.radiansToDegrees = function (radians) {
return(radians / 0.01745329);
};
Math.getAngle = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
var _local3 = (-180 * Math.atan2(_local1, _local2)) / 3.14;
return(Math.round(_local3));
};
Math.getDistance = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
var _local3 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local1, 2));
return(_local3);
};
Math.getRadPoint = function (angle, radius, mc) {
var _local2 = mc;
var aa4 = Math.degreesToRadians(angle);
var _local3 = radius * Math.cos(aa4);
var aa5 = (radius * Math.sin(aa4));
var _local1 = new Object();
if (((_local2 != null) && (_local2 != undefined)) && (_local2 != "")) {
var aa3 = new syncPos(_local2);
_local1.x = aa3.x + _local3;
_local1.y = aa3.y - aa5;
} else {
_local1.x = _local3;
_local1.y = aa5;
}
return(_local1);
};
Math.constrain = function (num, lower, upper) {
var _local1 = num;
if (_local1 < lower) {
return(lower);
}
if (_local1 > upper) {
return(upper);
}
return(_local1);
};
Math.sgn = function (num) {
if (num < 0) {
return(-1);
}
if (num > 0) {
return(1);
}
return(0);
};
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((c * (_local1 / d)) * _local1) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((-c) * (_local1 / d)) * (_local1 - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * (_local1 / d)) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 / d) - 1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * ((((_local1 - 2) * _local1) * _local1) + 2)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * (_local1 / d)) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((((_local1 / d) - 1) * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * (((((_local1 - 2) * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * (_local1 / d)) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((((_local1 / d) - 1) * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * ((((((_local1 - 2) * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * 1.570796)) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * 1.570796)) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((3.14 * t) / d) - 1)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = d;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == _local3) {
return(_local2 + c);
}
_local1 = _local1 / (_local3 / 2);
if ((_local1 / (_local3 / 2)) < 1) {
return(((c / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
_local1--;
return(((c / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((-c) * (Math.sqrt(1 - ((_local1 / d) * _local1)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (((_local1 / d) - 1) * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - ((_local1 - 2) * _local1)) + 1)) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = d;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / _local3;
if ((_local1 / _local3) == 1) {
return(b + c);
}
if (!_local2) {
_local2 = _local3 * 0.3;
}
if (a < Math.abs(c)) {
a = c;
var aa7 = (_local2 / 4);
} else {
aa7 = (_local2 / 6.28) * Math.asin(c / a);
}
_local1 = _local1 - 1;
return((((-a) * Math.pow(2, 10 * (_local1 - 1))) * Math.sin((((_local1 * _local3) - aa7) * 6.28) / _local2)) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = c;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / d;
if ((_local1 / d) == 1) {
return(b + _local2);
}
if (!_local3) {
_local3 = d * 0.3;
}
if (a < Math.abs(_local2)) {
a = _local2;
var aa7 = (_local3 / 4);
} else {
aa7 = (_local3 / 6.28) * Math.asin(_local2 / a);
}
return((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - aa7) * 6.28) / _local3)) + _local2) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = d;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (_local3 / 2);
if ((_local1 / (_local3 / 2)) == 2) {
return(b + c);
}
if (!_local2) {
_local2 = _local3 * 0.45;
}
if (a < Math.abs(c)) {
a = c;
var aa7 = (_local2 / 4);
} else {
aa7 = (_local2 / 6.28) * Math.asin(c / a);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((a * Math.pow(2, 10 * (_local1 - 1))) * Math.sin((((_local1 * _local3) - aa7) * 6.28) / _local2))) + b);
}
_local1 = _local1 - 1;
return(((((a * Math.pow(2, -10 * (_local1 - 1))) * Math.sin((((_local1 * _local3) - aa7) * 6.28) / _local2)) * 0.5) + c) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.7;
}
_local1 = _local1 / d;
return((((c * (_local1 / d)) * _local1) * (((_local2 + 1) * _local1) - _local2)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 2;
}
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 / d) - 1) * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.7;
}
_local1 = _local1 / (d / 2);
if ((_local1 / (d / 2)) < 1) {
_local2 = _local2 * 1.5;
return(((c / 2) * ((_local1 * _local1) * ((((_local2 * 1.5) + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.55;
return(((c / 2) * ((((_local1 - 2) * _local1) * ((((_local2 * 1.5) + 1) * _local1) + _local2)) + 2)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if ((_local1 / d) < 0.36) {
return((_local2 * ((7.5 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.7) {
_local1 = _local1 - 0.55;
return((_local2 * (((7.56 * (_local1 - 0.55)) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.9) {
_local1 = _local1 - 0.8;
return((_local2 * (((7.56 * (_local1 - 0.8)) * _local1) + 0.95)) + _local3);
}
_local1 = _local1 - 0.95;
return((_local2 * (((7.5 * (_local1 - 0.95)) * _local1) + 0.95)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
MovieClip.MAX_MC_DEPTH = 1048575 /* 0x0FFFFF */;
MovieClip.prototype.getPercentLoaded = function () {
var _local1 = this;
if (_local1.getBytesTotal() < 70) {
return(0);
}
return((_local1.getBytesLoaded() * 100) / _local1.getBytesTotal());
};
MovieClip.prototype.getVideoPercentLoaded = function () {
var _local1 = this;
if (_local1.getBytesTotal() < 70) {
return(0);
}
return((_local1.getBytesLoaded() * 100) / (_local1.getBytesTotal() * 0.15));
};
MovieClip.prototype.getLowestDepth = function () {
var _local1 = this;
var _local2 = 0;
while (_local1 != null) {
var aa3 = _local1;
if (typeof(_local1[aa3]) == "movieclip") {
}
_local2 = _local1[aa3].getDepth();
}
return(_local2);
};
MovieClip.prototype.getHighestDepth = function () {
var _local1 = this;
var _local2 = 0;
for (var _local3 in _local1) {
if (typeof(_local1[_local3]) == "movieclip") {
_local2 = _local1[_local3].getDepth();
break;
}
}
return(_local2);
};
MovieClip.prototype.getNextHighestDepth = function () {
return(++this.nextHighestDepth);
};
MovieClip.prototype.pause = function (duration) {
var _local1 = this;
_local1.stop();
_local1.pauseAndInvoke("MCPause", duration, "play", _local1);
};
MovieClip.prototype.unpause = function () {
this.pauseAndInvokeKill("MCPause");
this.play();
};
MovieClip.prototype.pauseAndInvoke = function (myID, myDelay, myFunction, myLocation, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39) {
var _local1 = this;
var _local3 = ++_local1.nextHighestDepth;
if (myID == null) {
var _local2 = "mcTimer" + _local3;
} else {
var _local2 = "mcTimer" + myID;
}
_local1.createEmptyMovieClip(_local2, _local3);
var aa3 = _local1[_local2];
aa3.time = myDelay;
aa3.onEnterFrame = function () {
var _local1 = this;
if (_local1.time <= 0) {
myLocation[myFunction](p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
delete _local1.onEnterFrame;
_local1.removeMovieClip();
} else {
_local1.time--;
}
};
};
MovieClip.prototype.pauseAndInvokeKill = function (myID) {
var _local1 = this;
var _local3 = myID;
var _local2 = _local1["mcTimer" + _local3];
if (_local2 != null) {
delete _local1["mcTimer" + _local3].onEnterFrame;
_local1["mcTimer" + _local3].removeMovieClip();
}
};
MovieClip.prototype.pauseAndInvokeKillAll = function () {
var _local1 = this;
for (var _local2 in _local1) {
if ((_local2.slice(0, 7) == "mcTimer") && (typeof(_local1[_local2]) == "movieclip")) {
delete _local1[_local2].onEnterFrame;
_local1[_local2].removeMovieClip();
}
}
};
MovieClip.prototype.setProperty = function (myProperty, myValue) {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3[_local2[_local1]] = _local2[_local1 + 1];
_local1 = _local1 + 2;
}
};
MovieClip.prototype.transform = function (myTween, myDuration, myProperty, myValue) {
var _local1 = this;
var aa4 = (++_local1.nextHighestDepth);
var myController = _local1.createEmptyMovieClip("controller" + aa4, aa4);
myController.amplitude = 2;
myController.period = 0.5;
myController.input = arguments;
myController.inputLength = (arguments.length - 3) / 2;
myController.duration = myDuration;
myController.property = new Array();
myController.pStart = new Array();
myController.pChange = new Array();
myController.p = null;
myController.v = null;
var _local3 = 0;
while (_local3 < myController.inputLength) {
myController.p = myController.input[2 + (_local3 * 2)];
myController.v = myController.input[3 + (_local3 * 2)];
myController.property.push(myController.p);
myController.pStart.push(_local1[myController.p]);
myController.pChange.push(myController.v - _local1[myController.p]);
_local3++;
}
myController.time = 0;
myController.onEnterFrame = function () {
var _local1 = this;
_local1.tween = myTween;
var _local2 = 0;
while (_local2 < _local1.inputLength) {
if (_local1.pChange[_local2] != 0) {
_local1._parent[_local1.property[_local2]] = Math[_local1.tween](_local1.time, _local1.pStart[_local2], _local1.pChange[_local2], _local1.duration, _local1.amplitude, _local1.period);
}
_local2++;
}
if (_local1.time >= _local1.duration) {
myController.removeMovieClip();
}
_local1.time++;
};
};
MovieClip.prototype.killTransform = function () {
var _local1 = this;
for (var _local2 in _local1) {
if ((typeof(_local1[_local2]) == "movieclip") && (_local1[_local2]._name.indexOf("controller") >= 0)) {
_local1[_local2].removeMovieClip();
}
}
};
MovieClip.prototype.setColor = function (hex, percent, alpha, offset) {
var _local2 = percent;
var _local3 = alpha;
var aa8 = new Color(this);
var _local1 = new Object();
var aa4 = Color.hexToRGB(hex);
if (_local2 == undefined) {
_local2 = 100;
}
if (_local3 == undefined) {
_local3 = 100;
}
if (offset == undefined) {
offset = 0;
}
_local2 = _local2 / 100;
_local3 = _local3 / 100;
if (hex == "restore") {
_local1.ra = 100;
_local1.ga = 100;
_local1.ba = 100;
_local1.aa = 100 * _local3;
_local1.rb = 0;
_local1.gb = 0;
_local1.bb = 0;
_local1.ab = 0;
} else if (typeof(hex) == "object") {
_local1 = hex;
} else {
_local1.ra = (100 * (1 - _local2)) + offset;
_local1.ga = (100 * (1 - _local2)) + offset;
_local1.ba = (100 * (1 - _local2)) + offset;
_local1.aa = 100 * _local3;
_local1.rb = aa4.r * _local2;
_local1.gb = aa4.g * _local2;
_local1.bb = aa4.b * _local2;
_local1.ab = 0;
}
aa8.setTransform(_local1);
};
MovieClip.prototype.transformColor = function (tween, duration, hex, percent, alpha, offset) {
if (percent == undefined) {
percent = 100;
}
if (alpha == undefined) {
alpha = 100;
}
if (offset == undefined) {
offset = 0;
}
this.transformColorData = new Object();
var mcData = this.transformColorData;
mcData.timer = 0;
mcData.duration = duration;
mcData.percent = percent / 100;
mcData.alpha = alpha / 100;
mcData.tween = tween;
mcData.mcColor = new Color(this);
mcData.colorStart = mcData.mcColor.getTransform();
mcData.colorHolder = new Object();
mcData.colorsArray = new Array("r", "g", "b", "a");
mcData.typeArray = new Array("b", "a");
if (hex == "restore") {
mcData.deltara = (100 - mcData.colorStart.ra) + offset;
mcData.deltaga = (100 - mcData.colorStart.ga) + offset;
mcData.deltaba = (100 - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = -mcData.colorStart.rb;
mcData.deltagb = -mcData.colorStart.gb;
mcData.deltabb = -mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
} else if (typeof(hex) == "object") {
mcData.deltara = hex.ra - mcData.colorStart.ra;
mcData.deltaga = hex.ga - mcData.colorStart.ga;
mcData.deltaba = hex.ba - mcData.colorStart.ba;
mcData.deltaaa = hex.aa - mcData.colorStart.aa;
mcData.deltarb = hex.rb - mcData.colorStart.rb;
mcData.deltagb = hex.gb - mcData.colorStart.gb;
mcData.deltabb = hex.bb - mcData.colorStart.bb;
mcData.deltaab = hex.ab - mcData.colorStart.ab;
} else {
mcData.colorDest = Color.hexToRGB(hex);
mcData.deltara = ((100 * (1 - mcData.percent)) - mcData.colorStart.ra) + offset;
mcData.deltaga = ((100 * (1 - mcData.percent)) - mcData.colorStart.ga) + offset;
mcData.deltaba = ((100 * (1 - mcData.percent)) - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = (mcData.colorDest.r * mcData.percent) - mcData.colorStart.rb;
mcData.deltagb = (mcData.colorDest.g * mcData.percent) - mcData.colorStart.gb;
mcData.deltabb = (mcData.colorDest.b * mcData.percent) - mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
}
this.createEmptyMovieClip("mcControlTransformColor", -1);
this.mcControlTransformColor.onEnterFrame = function () {
var aa6 = 0;
while (aa6 <= (mcData.typeArray.length - 1)) {
var _local2 = mcData.typeArray[aa6];
var _local3 = 0;
while (_local3 <= (mcData.colorsArray.length - 1)) {
var _local1 = mcData.colorsArray[_local3];
var aa5 = mcData[("delta" + _local1) + _local2];
if (aa5 != 0) {
mcData.colorHolder[_local1 + _local2] = Math[mcData.tween](mcData.timer, mcData.colorStart[_local1 + _local2], mcData[("delta" + _local1) + _local2], mcData.duration, mcData.amplitude, mcData.period);
}
_local3++;
}
aa6++;
}
mcData.mcColor.setTransform(mcData.colorHolder);
if (mcData.timer >= mcData.duration) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
mcData.timer++;
}
};
};
MovieClip.prototype.hide = function () {
this._visible = false;
};
MovieClip.prototype.show = function () {
this._visible = true;
};
MovieClip.prototype.enable = function () {
this.enabled = true;
};
MovieClip.prototype.disable = function () {
this.enabled = false;
};
MovieClip.prototype.drawLine = function (x1, y1, x2, y2, lineWeight, lineColor, lineAlpha) {
var _local1 = this;
_local1.lineStyle(lineWeight, lineColor, lineAlpha);
_local1.moveTo(x1, y1);
_local1.lineTo(x2, y2);
};
MovieClip.prototype.drawRect = function (x, y, w, h, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
var _local1 = this;
var _local2 = x;
var aa5 = (x + w);
var _local3 = y;
var aa4 = (y + h);
if (((lineWeight + lineColor) + lineAlpha) != -3) {
_local1.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
_local1.beginFill(fillColor, fillAlpha);
}
_local1.moveTo(_local2, _local3);
_local1.lineTo(aa5, _local3);
_local1.lineTo(aa5, aa4);
_local1.lineTo(_local2, aa4);
_local1.lineTo(_local2, _local3);
if ((fillColor + fillAlpha) != -2) {
_local1.endFill();
}
};
MovieClip.prototype.drawPolygon = function (x, y, radius, vertices, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
if (((lineWeight + lineColor) + lineAlpha) != -3) {
this.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
this.beginFill(fillColor, fillAlpha);
}
if (typeof(vertices) == "object") {
} else {
var aa3 = 0;
var _local2 = 0;
var _local3 = 0;
var _local1 = 0;
while (_local1 < vertices) {
aa3 = Math.degreesToRadians(360 / vertices) * _local1;
_local2 = (Math.cos(aa3) * radius) + x;
_local3 = (Math.sin(aa3) * radius) + y;
if (_local1 < 1) {
this.moveTo(_local2, _local3);
} else {
this.lineTo(_local2, _local3);
}
_local1++;
}
}
if ((fillColor + fillAlpha) != -2) {
this.endFill();
}
};
MovieClip.prototype.drawPie = function (x, y, radius, slicesCurrent, slicesTotal, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
var _local2 = this;
if (((lineWeight + lineColor) + lineAlpha) != -3) {
_local2.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
_local2.beginFill(fillColor, fillAlpha);
}
var aa5 = 0;
var _local3 = 0;
var aa3 = 0;
var _local1 = 0;
while (_local1 <= slicesCurrent) {
aa5 = Math.degreesToRadians(360 / slicesTotal) * _local1;
_local3 = (Math.cos(aa5) * radius) + x;
aa3 = (Math.sin(aa5) * radius) + y;
if (_local1 < 1) {
if (slicesCurrent < slicesTotal) {
_local2.moveTo(x, y);
_local2.lineTo(_local3, aa3);
} else {
_local2.moveTo(_local3, aa3);
}
} else {
_local2.lineTo(_local3, aa3);
}
_local1++;
}
if (slicesCurrent < slicesTotal) {
_local2.lineTo(x, y);
}
if ((fillColor + fillAlpha) != -2) {
_local2.endFill();
}
};
MovieClip.prototype.removeAllMovieClips = function () {
var _local1 = this;
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "movieclip") {
_local1[_local2].removeMovieClip();
}
}
};
MovieClip.prototype.makeSound = function (linkage) {
var _local1 = linkage;
var _local2 = this;
_local2.mcSound.createEmptyMovieClip(_local1 + "SndHolder", _local2.mcSound.nextHighestDepth++);
var _local3 = (_local2[_local1 + "Snd"] = new Sound(_local2.mcSound[_local1 + "SndHolder"]));
_local3.attachSound(_local1);
};
Instance of Symbol 1161 MovieClip "screenMc" in Frame 3
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 4
function init() {
xSize = 700;
ySize = 500;
xMid = xSize / 2;
yMid = ySize / 2;
gravity = 1.7;
friction = 0.6;
impactDecay = 0.2;
theGame = new Game();
theWorld = new World();
}
function createWorld() {
theWorld.init();
theSpoon = new Spoon();
}
_root.createEmptyMovieClip("crowdLoopMc", 5000);
_global.crowdLoop = new Sound(_root.crowdLoopMc);
_global.crowdLoop.attachSound("crowdLoop");
_global.crowdLoop.start(0, 999);
_global.crowdLoop.setVolume(50);
_root.createEmptyMovieClip("crowdCheerMc", 5001);
_global.launch = new Sound(_root.crowdCheerMc);
_global.launch.attachSound("launch");
_global.boo = new Sound(_root.crowdCheerMc);
_global.boo.attachSound("boo");
_root.createEmptyMovieClip("crashSoundMc", 5002);
_global.flatBad = new Sound(_root.crashSoundMc);
_global.flatBad.attachSound("flatBad");
_global.flatGood = new Sound(_root.crashSoundMc);
_global.flatGood.attachSound("flatGood");
_global.vertGood = new Sound(_root.crashSoundMc);
_global.vertGood.attachSound("vertGood");
_global.vertNasty = new Sound(_root.crashSoundMc);
_global.vertNasty.attachSound("vertNasty");
_global.launchSuck = new Sound(_root.crashSoundMc);
_global.launchSuck.attachSound("launchSuck");
_root.createEmptyMovieClip("planeSoundMc", 5003);
_global.scream = new Sound(_root.planeSoundMc);
_global.scream.attachSound("scream");
_root.createEmptyMovieClip("gogoMc", 5004);
_global.gogo = new Sound(_root.gogoMc);
_global.gogo.attachSound("gogo");
_root.createEmptyMovieClip("yelpMc", 5005);
_global.yelp = new Sound(_root.yelpMc);
_global.yelp.attachSound("yelp");
_root.createEmptyMovieclip("sinkMc", 5006);
_global.sink = new Sound(_root.sinkMc);
_global.sink.attachSound("sink");
init();
createWorld();
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
this._parent.obj.launchReleaseGo();
Symbol 38 MovieClip Frame 8
stop();
Instance of Symbol 29 MovieClip "left" in Symbol 39 MovieClip [pullerClose] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 38 MovieClip "rightThrow" in Symbol 39 MovieClip [pullerClose] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 29 MovieClip "right" in Symbol 39 MovieClip [pullerClose] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 68 MovieClip [miniSplash] Frame 15
stop();
this.removeMovieClip();
Symbol 144 MovieClip Frame 28
stop();
Symbol 172 MovieClip [bigSplash] Frame 31
stop();
this.removeMovieClip();
Symbol 176 MovieClip [tumbleSink] Frame 54
_root.theGame.cycleState();
this.removeMovieClip();
Symbol 286 MovieClip [spiff] Frame 25
this.removeMovieClip();
Instance of Symbol 297 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(4, 0.05);
}
Instance of Symbol 299 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(4, 0.05);
}
Instance of Symbol 299 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(3.3, 0.09);
}
Instance of Symbol 299 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(4.2, 0.08);
}
Instance of Symbol 301 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(5, 0.09);
}
Instance of Symbol 303 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.rock(5, 0.09);
}
Symbol 307 MovieClip [scenery] Frame 1
speed = 0.51;
chmura1_mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + speed;
if (_local1._x > 1052) {
_local1._x = 62 - _local1._width;
}
};
chmura2_mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + speed;
if (_local1._x > 1062) {
_local1._x = -600;
}
};
chmura3_mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + (speed + 1);
if (_local1._x > 1062) {
_local1._x = -600;
}
};
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 11
_global.launchSuck.start();
Symbol 361 MovieClip Frame 20
stop();
this.obj.tumbleSink();
Instance of Symbol 361 MovieClip "tumble" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 10
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 105
stop();
_root.theGame.cycleState();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 7
_global.scream.start();
Symbol 625 MovieClip Frame 20
stop();
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 20
_global.sink.start();
Symbol 858 MovieClip Frame 76
stop();
_root.theGame.cycleState();
Symbol 858 MovieClip Frame 79
this.plane.rock(15, 0.07);
this.incr = 0;
this.onEnterFrame = function () {
var _local1 = this;
_local1.plane._y = _local1.plane._y + _local1.incr;
if (_local1.incr < 2) {
_local1.incr = _local1.incr + 0.02;
}
if (_local1.plane._y > 160) {
_root.theGame.cycleState();
delete _local1.onEnterFrame;
}
};
Symbol 858 MovieClip Frame 108
_global.sink.start();
Symbol 858 MovieClip Frame 160
stop();
_root.theGame.cycleState();
Symbol 899 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 73
stop();
Instance of Symbol 445 MovieClip "stabilize" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 583 MovieClip "flip" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 630 MovieClip "still" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 858 MovieClip "sink" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 899 MovieClip "stall" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1078 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 79
stop();
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 30
stop();
this.removeMovieClip();
Symbol 1080 MovieClip Frame 1
stop();
Symbol 1080 MovieClip Frame 26
this._parent.plane2._visible = false;
Symbol 1080 MovieClip Frame 46
_global.sink.start();
Symbol 1080 MovieClip Frame 91
_root.theGame.cycleState();
stop();
Instance of Symbol 900 MovieClip "plane2" in Symbol 1082 MovieClip [fishPlane] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1080 MovieClip "water" in Symbol 1082 MovieClip [fishPlane] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1117 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 1139 MovieClip Frame 2
stop();
Instance of Symbol 1136 MovieClip "bar" in Symbol 1139 MovieClip Frame 2
onClipEvent (load) {
this._width = 1;
this._x = 10;
this._y = 23;
}
onClipEvent (enterFrame) {
var percent = _root.getPercentLoaded();
var barPercent = Math.round(Math.convertToScale(percent, 0, 100, 1, 248));
var tarWidth = (this._width + ((barPercent - this._width) * 0.2));
this._width = tarWidth;
if ((this._width >= 247) && (percent >= 100)) {
this._parent.play();
delete this.onEnterFrame;
}
}
Symbol 1139 MovieClip Frame 255
_parent.play();
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 7
stop();
Instance of Symbol 1152 MovieClip "display" in Symbol 1153 MovieClip Frame 7
onClipEvent (enterFrame) {
this.score.text = ("YOUR BEST: " + _root.theGame.personalBest) + "ft";
}
Symbol 1160 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 1161 MovieClip Frame 1
function buildObject(obj, eItem) {
var _local1 = eItem;
var _local3 = obj;
var _local2;
var _loc6;
var _loc5;
while (_local1 != null) {
_local2 = _local1.nodeName;
if (_local1.nodeType == this.XML_NODE_TYPE_ELEMENT) {
_loc5 = this.buildObject({}, _local1.firstChild);
for (var _loc7 in _local1.attributes) {
_loc5[_loc7] = _local1.attributes[_loc7];
}
if (_local1.nodeValue != null) {
_loc5._value = _local1.nodeValue;
} else {
_loc6 = _local1.firstChild;
if (_loc6 != null) {
if (_loc6.nodeType == this.XML_NODE_TYPE_TEXT) {
if (_loc6.nodeValue != null) {
_loc5._value = _loc6.nodeValue;
}
}
}
}
if (_local3[_local2] != null) {
if (_local3[_local2]._type != "array") {
_local3[_local2] = [_local3[_local2]];
_local3[_local2]._type = "array";
_local3[_local2][1] = _loc5;
} else {
_local3[_local2][_local3[_local2].length] = _loc5;
}
} else {
_local3[_local2] = _loc5;
}
}
_local1 = _local1.nextSibling;
}
return(_local3);
}
checkScore = function (score) {
var _local1 = _root;
var _local2 = score;
if (_local1.theGame.personalBest == null) {
_local1.theGame.personalBest = _local2;
perpetScore.play();
} else if (_local2 > _local1.theGame.personalBest) {
_local1.theGame.personalBest = _local2;
}
_local1.theGame.tempQuality();
showLandClip();
};
showLandClip = function (myXml) {
var _local3 = myXml;
var clip = landClip;
var _loc6 = [clip.playagain];
_loc6[0].onRelease = function () {
this.clip = clip;
this.clip._visible = false;
_root.theGame.restoreQuality();
_root.theGame.reset();
};
clip._visible = true;
clip.totalDist.text = ("YOU FLEW " + _root.theSpoon.d) + " FEET";
var _local1 = 0;
while (_local1 <= 4) {
var _local2 = _local3.firstChild.childNodes[_local1 + 1];
landClip["ini" + _local1].text = (Number(_local1 + 1) + ". ") + _local2.attributes.player;
landClip["dis" + _local1].text = ((Number(_local2.attributes.score) * 100) / 100) + " ft.";
_local1++;
}
};
landClip._visible = false;
var config = new LoadVars();
config.onLoad = function (success) {
if (success) {
play();
}
};
Symbol 1161 MovieClip Frame 12
playNow.onRelease = function () {
};
_root.theGame.cycleState();
Symbol 1161 MovieClip Frame 42
stop();
Symbol 1161 MovieClip Frame 53
stop();
Symbol 1161 MovieClip Frame 60
checkScore(_root.theSpoon.d);
stop();
Symbol 1161 MovieClip Frame 61
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 90
stop();
Symbol 1170 MovieClip Frame 1
stop();