Frame 5
this.onEnterFrame = function () {
var _local4 = this.getBytesLoaded();
var _local3 = this.getBytesTotal();
var _local5 = _local4 / _local3;
var _local2 = Math.floor(_local5 * 100);
if (_local3 > 3000) {
if (_local2 == 100) {
delete this.onEnterFrame;
gotoAndPlay ("gameStart");
}
preloader_mc.gotoAndStop(_local2);
}
};
preloader_mc.stop();
stop();
Frame 7
function setupSounds() {
var _local2 = new Array();
_local2.push("balll_goes_out_of_play");
_local2.push("flipper_up");
_local2.push("launch_tube_bell");
_local2.push("mushroom_bounce");
_local2.push("spacey_bounce");
_local2.push("target_lightup");
_local2.push("ball_stuck_in_trap");
_local2.push("trap_ball_pop_out");
_local2.push("triangle_bumper_bounce2");
_local2.push("launch_ball");
_local2.push("ball_hit1");
_local2.push("chatter_bonus_activated");
_local2.push("chatter_target_hit");
_local2.push("Naughty target_hit");
_local2.push("sunshine_harp");
_local2.push("Bump - Body Hit 04");
_local2.push("Bump - Body Hit 06");
_local2.push("Bump - Body Hit 07");
_local2.push("funny_target_hit");
_local2.push("greedy_burp_ball_reappears");
_local2.push("happy_stars_anim");
_local2.push("tickle_arms_animation");
_local2.push("tickling_ball");
_local2.push("flipper_down");
_local2.push("song_start_beat");
_local2.push("song");
_local2.push("song_end");
_local2.push("greedy_gulp");
SFX = new com.digitaloutlook.gameElements.SoundFXmanager(this, _local2, true, soundonoff_mc);
}
function soundComplete(_ID) {
if (!(_ID === "song_start_beat")) {
} else {
SFX.playSound(25, false, 100, true);
}
}
function registerFlipper(_mc, _side) {
var _local3 = new Array();
var _local4 = new Array();
var _local5 = new Array();
var _local2 = 0;
while (_local2 < 3) {
_local3.push((_mc[("p" + _local2) + "d"]._x + _mc._x) - game.xOffset);
_local3.push((_mc[("p" + _local2) + "d"]._y + _mc._y) - game.yOffset);
_local4.push((_mc[("p" + _local2) + "u"]._x + _mc._x) - game.xOffset);
_local4.push((_mc[("p" + _local2) + "u"]._y + _mc._y) - game.yOffset);
_local5.push(new flash.geom.Point((_mc["t" + _local2]._x + _mc._x) - game.xOffset, (_mc["t" + _local2]._y + _mc._y) - game.yOffset));
_local2++;
}
_local3.push((_mc.p0d._x + _mc._x) - game.xOffset);
_local3.push((_mc.p0d._y + _mc._y) - game.yOffset);
_local4.push((_mc.p0u._x + _mc._x) - game.xOffset);
_local4.push((_mc.p0u._y + _mc._y) - game.yOffset);
flip_num = (aTopFlippers.length + aLeftFlippers.length) + aRightFlippers.length;
game.flipper[("vec" + flip_num) + "down"] = defineVectorsLocal(_local3, 1, 1, 0, null);
game.flipper[("vec" + flip_num) + "up"] = defineVectorsLocal(_local4, 1, 1, 0, null);
game.flipper[("vec" + flip_num) + "Index"] = defineVectors(_local3, 1, 1, 0, null);
var _local6 = com.digitaloutlook.functions.MyMath.GetAngleFromPoints(_local5[0], _local5[1], true);
switch (_side) {
case "top" :
aTopFlippers.push([_mc, flip_num, _local5]);
break;
case "left" :
aLeftFlippers.push([_mc, flip_num, _local5, _local6]);
break;
case "right" :
aRightFlippers.push([_mc, flip_num, _local5, _local6]);
}
}
function registerCircleBumper(_set, _clip, _vec_points, _bounceforce) {
if (_bounceforce == undefined) {
_bounceforce = 1.5;
}
aIdleClips.push([_clip, "play"]);
switch (_set) {
case "misschatterbox" :
defineVectors(_vec_points, _bounceforce, 1, 20, (_set + "_bumper_") + aChatterBoxBumpers.length);
aChatterBoxBumpers.push(_clip);
break;
case "mrmessy" :
defineVectors(_vec_points, _bounceforce, 1, 20, (_set + "_bumper_") + aMrmessyBumbers.length);
aMrmessyBumbers.push(_clip);
break;
case "mrbump" :
var _local6 = defineVectors(_vec_points, _bounceforce, 1, 20, (_set + "_bumper_") + aMrbumpBumbers.length);
var _local3 = _local6[0];
var _local4 = (_local6[1] - _local6[0]) + 1;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < _local4) {
_local2.push(_local3 + _local1);
_local1++;
}
aMrbumpBumberVectors.push(_local2);
aMrbumpBumbers.push(_clip);
}
}
function registerPlughole(_id, _clip, _vec_points) {
aPlugholes.push([_id, _clip]);
defineVectors(_vec_points, 1, 1, 0, "*plughole_" + _id);
}
function registerVectors(_clip, _set, _amount) {
if (!(_set === "rotatingthingy")) {
} else {
tempArray = new Array();
var _local1 = 0;
while (_local1 < _amount) {
tempArray.push(Math.floor((_clip._x + _clip["p" + _local1]._x) - game.xOffset));
tempArray.push(Math.floor((_clip._y + _clip["p" + _local1]._y) - game.yOffset));
_local1++;
}
a = defineVectors(tempArray, 1, 1, 0, null);
nRotatingthingyVectorIndex = a[0];
if (DEBUGMODEON) {
drawWalls();
}
}
}
function updateRegisteredVectors(_clip, _set, _amount) {
if (!(_set === "rotatingthingy")) {
} else {
tempArray = new Array();
var _local1 = 0;
while (_local1 < _amount) {
tempArray.push(Math.floor(_clip._x + _clip["p" + _local1]._x));
tempArray.push(Math.floor(_clip._y + _clip["p" + _local1]._y));
_local1++;
}
_local1 = 0;
while (_local1 < ((tempArray.length - 2) / 2)) {
game["v" + (nRotatingthingyVectorIndex + _local1)].p0.x = tempArray[_local1 * 2];
game["v" + (nRotatingthingyVectorIndex + _local1)].p0.y = tempArray[(_local1 * 2) + 1];
game["v" + (nRotatingthingyVectorIndex + _local1)].p1.x = tempArray[(_local1 * 2) + 2];
game["v" + (nRotatingthingyVectorIndex + _local1)].p1.y = tempArray[(_local1 * 2) + 3];
updateVector(game["v" + (nRotatingthingyVectorIndex + _local1)], true);
_local1++;
}
if (DEBUGMODEON) {
}
}
}
function defineVectors(arr, bvar, fvar, points, action) {
var _local6 = game.vTotal;
i = 0;
while (i < ((arr.length - 2) / 2)) {
game.vTotal++;
game["v" + game.vTotal] = new Object();
game["v" + game.vTotal].p0 = new Object();
game["v" + game.vTotal].p1 = new Object();
game["v" + game.vTotal].p0.x = arr[i * 2] + game.xOffset;
game["v" + game.vTotal].p0.y = arr[(i * 2) + 1] + game.yOffset;
game["v" + game.vTotal].p1.x = arr[(i * 2) + 2] + game.xOffset;
game["v" + game.vTotal].p1.y = arr[(i * 2) + 3] + game.yOffset;
game["v" + game.vTotal].b = bvar;
game["v" + game.vTotal].f = fvar;
game["v" + game.vTotal].points = points;
game["v" + game.vTotal].action = action;
updateVector(game["v" + game.vTotal], true);
i++;
}
return([_local6 + 1, game.vTotal]);
}
function defineVectorsLocal(arr, bvar, fvar, points, action) {
var _local1 = new Object();
i = 0;
while (i < ((arr.length - 2) / 2)) {
_local1["v" + i] = new Object();
_local1["v" + i].p0 = new Object();
_local1["v" + i].p1 = new Object();
_local1["v" + i].p0.x = arr[i * 2] + game.xOffset;
_local1["v" + i].p0.y = arr[(i * 2) + 1] + game.yOffset;
_local1["v" + i].p1.x = arr[(i * 2) + 2] + game.xOffset;
_local1["v" + i].p1.y = arr[(i * 2) + 3] + game.yOffset;
_local1["v" + i].b = bvar;
_local1["v" + i].f = fvar;
_local1["v" + i].points = points;
_local1["v" + i].action = action;
updateVector(_local1["v" + i], true);
i++;
}
return(_local1);
}
function drawWalls() {
drawingline_mc.removeMovieClip();
this.createEmptyMovieClip("drawingline_mc", this.getNextHighestDepth());
drawingline_mc.lineStyle(1, 65280, 100);
i = 1;
while (i <= game.vTotal) {
drawingline_mc.moveTo(this.game["v" + i].p0.x, this.game["v" + i].p0.y);
drawingline_mc.lineTo(this.game["v" + i].p1.x, this.game["v" + i].p1.y);
i++;
}
}
function createHitzones(showBoxes) {
game_mc.createEmptyMovieClip("hitChecker_mc", game_mc.getNextHighestDepth());
game_mc.hitChecker_mc._x = (game_mc.hitChecker_mc._y = 0);
i = 1;
while (i <= game.vTotal) {
var _local2 = game["v" + i].p0.x;
var _local1 = game["v" + i].p0.y;
var _local4 = game["v" + i].p1.x;
var _local3 = game["v" + i].p1.y;
game_mc.hitChecker_mc.createEmptyMovieClip("hz" + i, i + 10);
game_mc.hitChecker_mc["hz" + i].attachMovie("hitChecker_dupe", "hz", 1);
game_mc.hitChecker_mc["hz" + i]._x = _local2 + ((_local4 - _local2) / 2);
game_mc.hitChecker_mc["hz" + i]._y = _local1 + ((_local3 - _local1) / 2);
game_mc.hitChecker_mc["hz" + i]._width = Math.abs(_local4 - _local2) + (game.maxV * 2);
game_mc.hitChecker_mc["hz" + i]._height = Math.abs(_local3 - _local1) + (game.maxV * 2);
game_mc.hitChecker_mc["hz" + i].myNum = i;
if (debug_showHitzones) {
game_mc.hitChecker_mc["hz" + i]._visible = true;
} else {
game_mc.hitChecker_mc["hz" + i]._visible = false;
}
i++;
}
}
function defineHitGroups() {
game_mc.createEmptyMovieClip("group1_mc", game_mc.getNextHighestDepth());
game_mc.createEmptyMovieClip("group2_mc", game_mc.getNextHighestDepth());
game_mc.createEmptyMovieClip("group3_mc", game_mc.getNextHighestDepth());
game_mc.createEmptyMovieClip("group4_mc", game_mc.getNextHighestDepth());
game_mc.createEmptyMovieClip("group5_mc", game_mc.getNextHighestDepth());
game_mc.group1_mc.attachMovie("hitChecker_dupe", "hz", 1);
game_mc.group2_mc.attachMovie("hitChecker_dupe", "hz", 1);
game_mc.group3_mc.attachMovie("hitChecker_dupe", "hz", 1);
game_mc.group4_mc.attachMovie("hitChecker_dupe", "hz", 1);
game_mc.group5_mc.attachMovie("hitChecker_dupe", "hz", 1);
game_mc.group1_mc._x = game.xOffset + (game.stageW * 0.167);
game_mc.group1_mc._y = game.yOffset + (game.stageH * 0.25);
game_mc.group2_mc._x = game.xOffset + (game.stageW * 0.5);
game_mc.group2_mc._y = game.yOffset + (game.stageH * 0.25);
game_mc.group3_mc._x = game.xOffset + (game.stageW * 0.834);
game_mc.group3_mc._y = game.yOffset + (game.stageH * 0.25);
game_mc.group4_mc._x = game.xOffset + (game.stageW * 0.25);
game_mc.group4_mc._y = game.yOffset + (game.stageH * 0.75);
game_mc.group5_mc._x = game.xOffset + (game.stageW * 0.75);
game_mc.group5_mc._y = game.yOffset + (game.stageH * 0.75);
game_mc.group1_mc._width = (game_mc.group2_mc._width = (game_mc.group3_mc._width = game.stageW * 0.35));
game_mc.group4_mc._width = (game_mc.group5_mc._width = game.stageW * 0.6);
game_mc.group1_mc._height = (game_mc.group2_mc._height = (game_mc.group3_mc._height = (game_mc.group4_mc._height = (game_mc.group5_mc._height = game.stageH * 0.6))));
game_mc.group1_mc.cacheAsBitmap;
game_mc.group2_mc.cacheAsBitmap;
game_mc.group3_mc.cacheAsBitmap;
game_mc.group4_mc.cacheAsBitmap;
game_mc.group5_mc.cacheAsBitmap;
if (debug_showHitzones) {
game_mc.group1_mc._visible = true;
game_mc.group2_mc._visible = true;
game_mc.group3_mc._visible = true;
game_mc.group4_mc._visible = true;
game_mc.group5_mc._visible = true;
} else {
game_mc.group1_mc._visible = false;
game_mc.group2_mc._visible = false;
game_mc.group3_mc._visible = false;
game_mc.group4_mc._visible = false;
game_mc.group5_mc._visible = false;
}
var _local1 = new Array([], [], [], [], []);
i = 1;
while (i <= game.vTotal) {
j = 1;
while (j <= 5) {
if (game_mc.hitChecker_mc["hz" + i].hitTest(game_mc[("group" + j) + "_mc"])) {
_local1[j - 1].push(i);
}
j++;
}
i++;
}
return(_local1);
}
function checkAction(action) {
switch (action) {
case "*ratchetfallback" :
triggerBallLost(true);
break;
case "mrmessy_bumper_0" :
SFX.playSound(3);
aMrmessyBumbers[0].play();
break;
case "messybumper0" :
mb0.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper1" :
mb1.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper2" :
mb2.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper3" :
mb3.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper4" :
mb4.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper5" :
mb5.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper6" :
mb6.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "messybumper7" :
mb7.play();
SFX.playSound(3);
messy_scribble_mc.play();
break;
case "misschatterbox_bumper_0" :
SFX.playSound(3);
aChatterBoxBumpers[0].play();
break;
case "misschatterbox_bumper_1" :
SFX.playSound(3);
aChatterBoxBumpers[1].play();
break;
case "misschatterbox_bumper_2" :
SFX.playSound(3);
aChatterBoxBumpers[2].play();
break;
case "mrbump_bumper_0" :
SFX.playSound(15);
bumpglow_mc.play();
aMrbumpBumbers[0].play();
break;
case "mrbump_bumper_1" :
SFX.playSound(16);
bumpglow_mc.play();
aMrbumpBumbers[1].play();
break;
case "mrbump_bumper_2" :
SFX.playSound(17);
bumpglow_mc.play();
aMrbumpBumbers[2].play();
break;
case "mrbump_bumper_3" :
SFX.playSound(16);
bumpglow_mc.play();
aMrbumpBumbers[3].play();
break;
case "mrbump_bumper_4" :
SFX.playSound(15);
bumpglow_mc.play();
aMrbumpBumbers[4].play();
break;
case "trianglebumper1" :
SFX.playSound(8);
trianglebumper1_mc.play();
break;
case "trianglebumper2" :
SFX.playSound(8);
trianglebumper2_mc.play();
break;
case "trianglebumper3" :
SFX.playSound(8);
trianglebumper3_mc.play();
break;
case "trianglebumper4" :
SFX.playSound(8);
trianglebumper4_mc.play();
break;
case "ballLost" :
triggerBallLost();
break;
case "*tickleLeftArm" :
startTickleLeftArmAnimation();
break;
case "*tickleRightArm" :
startTickleRightArmAnimation();
break;
case "*mrGreedyTopTrigger" :
greedyTop_mc.play();
addPoints(100, true);
hideBall();
break;
case "*mrGreedyFood1Trigger" :
mrGreedyFood1_mc.play();
break;
case "*mrGreedyFood2Trigger" :
mrGreedyFood2_mc.play();
break;
case "*funnytrigger0" :
funnyTrigger(0);
break;
case "*funnytrigger1" :
funnyTrigger(1);
break;
case "*funnytrigger2" :
funnyTrigger(2);
break;
case "*sunshinetrigger0" :
sunshineTrigger(0);
break;
case "*sunshinetrigger1" :
sunshineTrigger(1);
break;
case "*sunshinetrigger2" :
sunshineTrigger(2);
break;
case "*sunshinetrigger3" :
sunshineTrigger(3);
break;
case "*sunshinetrigger4" :
sunshineTrigger(4);
break;
case "*chattertrigger0" :
chatterTrigger(0);
break;
case "*chattertrigger1" :
chatterTrigger(1);
break;
case "*chattertrigger2" :
chatterTrigger(2);
break;
case "*chattertrigger3" :
chatterTrigger(3);
break;
case "*chattertrigger4" :
chatterTrigger(4);
break;
case "*happytrigger0" :
happyTrigger(0);
break;
case "*happytrigger1" :
happyTrigger(1);
break;
case "*happytrigger2" :
happyTrigger(2);
break;
case "*happytrigger3" :
happyTrigger(3);
break;
case "*happytrigger4" :
happyTrigger(4);
break;
case "*midrighttrigger0" :
midRightTrigger(0);
break;
case "*midrighttrigger1" :
midRightTrigger(1);
break;
case "*naughtytrigger0" :
naughtyTrigger(0);
break;
case "*naughtytrigger1" :
naughtyTrigger(1);
break;
case "*naughtytrigger2" :
naughtyTrigger(2);
break;
case "*topRatchet1" :
triggerRatchet(1, true);
triggerRatchet(2, true);
case "*topRatchet2" :
triggerRatchet(1, true);
triggerRatchet(2, true);
break;
case "*triggerX1a" :
break;
case "*triggerX2a" :
break;
case "*triggerX3a" :
break;
case "*triggerX4a" :
break;
case "*triggerX1b" :
break;
case "*triggerX2b" :
break;
case "*triggerX3b" :
break;
case "*triggerX4b" :
break;
case "*plughole_A1" :
startPlughole("A1");
break;
case "*plughole_A2" :
startPlughole("A2");
break;
case "*plughole_B1" :
startPlughole("B1");
break;
case "*plughole_B2" :
startPlughole("B2");
break;
case "*plughole_C1" :
startPlughole("C1");
break;
case "*plughole_C2" :
startPlughole("C2");
break;
default :
if ((nTickSoundCount % 10) != 0) {
break;
}
SFX.playSound(10);
}
nTickSoundCount++;
}
function greedyBallCaptureDone() {
resumeBall(greedyTop_mc._x + greedyTop_mc.ball_mc._x, greedyTop_mc._y + greedyTop_mc.ball_mc._y, 2, Math.random() + 1);
}
function funnyTrigger(n) {
if (aFunnyTriggerStates[n] == 0) {
SFX.playSound(18);
mrfunny_triggers_all_mc["t_" + n].gotoAndStop(2);
aFunnyTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aFunnyTriggerStates.length) {
_local2 = _local2 + aFunnyTriggerStates[_local1];
_local1++;
}
if (_local2 == aFunnyTriggerStates.length) {
mrfunny_triggers_all_mc.play();
addPoints(150, true);
}
}
}
function funnyTriggersFinished() {
var _local1 = 0;
while (_local1 < aFunnyTriggerStates.length) {
aFunnyTriggerStates[_local1] = 0;
mrfunny_triggers_all_mc["t_" + _local1].gotoAndStop(1);
_local1++;
}
}
function midRightTrigger(n) {
trace(">>>>>MRT");
if (aMidRightTriggerStates[n] == 0) {
SFX.playSound(5);
midright_triggers_mc["t" + n].gotoAndStop(2);
aMidRightTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aMidRightTriggerStates.length) {
_local2 = _local2 + aMidRightTriggerStates[_local1];
_local1++;
}
if (_local2 == aMidRightTriggerStates.length) {
midright_triggers_mc.play();
addPoints(100, true);
}
}
}
function midRightTriggersFinished() {
var _local1 = 0;
while (_local1 < aMidRightTriggerStates.length) {
aMidRightTriggerStates[_local1] = 0;
midright_triggers_mc["t" + _local1].gotoAndStop(1);
_local1++;
}
}
function chatterTrigger(n) {
if (aChatterTriggerStates[n] == 0) {
SFX.playSound(12);
chattertriggers_mc["c" + n].gotoAndStop(2);
aChatterTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aChatterTriggerStates.length) {
_local2 = _local2 + aChatterTriggerStates[_local1];
_local1++;
}
if (_local2 == aChatterTriggerStates.length) {
chattertriggers_mc.play();
SFX.playSound(11);
addPoints(150, true);
}
}
}
function chatterTriggersFinished() {
var _local1 = 0;
while (_local1 < aChatterTriggerStates.length) {
aChatterTriggerStates[_local1] = 0;
chattertriggers_mc["c" + _local1].gotoAndStop(1);
_local1++;
}
}
function sunshineTrigger(n) {
if (aSunshineTriggerStates[n] == 0) {
SFX.playSound(5);
sunshinerays_mc["r" + n].play();
aSunshineTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aSunshineTriggerStates.length) {
_local2 = _local2 + aSunshineTriggerStates[_local1];
_local1++;
}
if (_local2 == aSunshineTriggerStates.length) {
SFX.playSound(14);
sunshinerays_mc.play();
addPoints(150, true);
}
}
}
function sunshineTriggersFinished() {
var _local1 = 0;
while (_local1 < aSunshineTriggerStates.length) {
aSunshineTriggerStates[_local1] = 0;
sunshinerays_mc["r" + _local1].gotoAndStop(1);
_local1++;
}
}
function happyTrigger(n) {
if (aHappyTriggerStates[n] == 0) {
SFX.playSound(5);
happystars_mc["s" + n].play();
aHappyTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aHappyTriggerStates.length) {
_local2 = _local2 + aHappyTriggerStates[_local1];
_local1++;
}
if (_local2 == aHappyTriggerStates.length) {
happystars_mc.play();
SFX.playSound(20);
addPoints(150, true);
}
}
}
function happyTriggersFinished() {
var _local1 = 0;
while (_local1 < aHappyTriggerStates.length) {
aHappyTriggerStates[_local1] = 0;
happystars_mc["s" + _local1].gotoAndStop(1);
_local1++;
}
}
function naughtyTrigger(n) {
if (aNaughtyTriggerStates[n] == 0) {
SFX.playSound(13);
missnaughty_triggers_all_mc["t_" + n].gotoAndStop(2);
aNaughtyTriggerStates[n] = 1;
var _local2 = 0;
var _local1 = 0;
while (_local1 < aNaughtyTriggerStates.length) {
_local2 = _local2 + aNaughtyTriggerStates[_local1];
_local1++;
}
if (_local2 == aNaughtyTriggerStates.length) {
missnaughty_triggers_all_mc.play();
addPoints(150, true);
}
}
}
function naughtyTriggersFinished() {
var _local1 = 0;
while (_local1 < aNaughtyTriggerStates.length) {
aNaughtyTriggerStates[_local1] = 0;
missnaughty_triggers_all_mc["t_" + _local1].gotoAndStop(1);
_local1++;
}
}
function startPlughole(_ID) {
if (bPlugHoleOK) {
bPlugHoleOK = false;
hideBall();
SFX.playSound(6);
var _local1 = 0;
while (_local1 < aPlugholes.length) {
if (aPlugholes[_local1][0] == _ID) {
aPlugholes[_local1][1].gotoAndPlay("hideball");
}
_local1++;
}
}
}
function plugholedone(_whatsDone, _ID) {
switch (_whatsDone) {
case "show" :
addPoints(50);
switch (_ID) {
case "A1" :
dx = -1.5 * Math.random();
dy = -15 - (Math.random() * 4);
break;
case "A2" :
dx = (-2 * Math.random()) - 0.5;
dy = 3 + (Math.random() * 5);
break;
case "B1" :
dx = 4 + (0.5 * Math.random());
dy = -15 - (Math.random() * 4);
break;
case "B2" :
dx = (2 * Math.random()) + 0.5;
dy = 3 + (Math.random() * 5);
break;
case "C1" :
dx = Math.random() + 3;
dy = 2 + (Math.random() * 5);
break;
case "C2" :
dx = -1 * (Math.random() + 3);
dy = 2 + (Math.random() * 5);
}
var _local2 = 0;
while (_local2 < aPlugholes.length) {
if (aPlugholes[_local2][0] == _ID) {
var _local3 = aPlugholes[_local2][1];
resumeBall(_local3._x, _local3._y, dx, dy);
}
_local2++;
}
clearInterval(nResetPlugHoleID);
nResetPlugHoleID = setInterval(this, "resetPlugholeOK", 250);
break;
case "hide" :
if (_ID.charAt(1) == "1") {
otherID = _ID.charAt(0) + "2";
} else {
otherID = _ID.charAt(0) + "1";
}
_local2 = 0;
for(;;){
if (_local2 >= aPlugholes.length) {
break;
}
if (aPlugholes[_local2][0] == otherID) {
aPlugholes[_local2][1].gotoAndPlay("showball");
}
_local2++;
};
}
}
function resetPlugholeOK() {
clearInterval(nResetPlugHoleID);
bPlugHoleOK = true;
}
function startTickleLeftArmAnimation() {
hideBall();
addPoints(100, true);
mrTickle_mc.mrTickleAnimLeft_mc.ball_mc._visible = true;
mrTickle_mc.mrTickleAnimLeft_mc._visible = true;
mrTickle_mc.mrTickleAnimLeft_mc.play();
}
function stopTickleLeftArmAnimation() {
mrTickle_mc.mrTickleAnimLeft_mc.ball_mc._visible = false;
startCrazyTickleBall();
resumeBall(295, 39, Math.random() - 0.5, Math.random() - 0.5);
}
function startTickleRightArmAnimation() {
hideBall();
addPoints(100, true);
mrTickle_mc.mrTickleAnimRight_mc.ball_mc._visible = true;
mrTickle_mc.mrTickleAnimRight_mc._visible = true;
mrTickle_mc.mrTickleAnimRight_mc.play();
}
function stopTickleRightArmAnimation() {
mrTickle_mc.mrTickleAnimRight_mc.ball_mc._visible = false;
startCrazyTickleBall();
resumeBall(295, 39, Math.random() - 0.5, Math.random() - 0.5);
}
function startCrazyTickleBall() {
game_mc.ob_mc.gotoAndPlay("glowing");
bCrazyTickleMode = true;
}
function tickleCrazyBallFinished() {
bCrazyTickleMode = false;
}
function gameLoop() {
var _local1 = game.myOb;
_local1.vx = _local1.vx * _local1.airf;
_local1.vy = _local1.vy * _local1.airf;
var _local23 = getTimer();
var _local24 = (_local23 - _local1.lastTime) / 100;
_local1.vy = _local1.vy + game.gravity;
_local1.p1 = {};
_local1.p1.x = _local1.p0.x + _local1.vx;
_local1.p1.y = _local1.p0.y + _local1.vy;
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.dx = _local1.vx / _local1.len;
_local1.dy = _local1.vy / _local1.len;
_local1.rx = -_local1.dy;
_local1.ry = _local1.dx;
_local1.lx = _local1.dy;
_local1.ly = -_local1.dx;
_local1.lastTime = _local23;
_local1.timeFrame = _local24;
var _local16 = 0;
var _local7 = new Array();
i = 1;
while (i <= game.hitVectors.length) {
var _local4 = game["v" + game.hitVectors[i - 1]];
var _local2 = findIntersection(_local1, _local4);
_local2.p0 = new Object();
_local2.p1 = new Object();
_local2.p0.x = _local1.p0.x;
_local2.p0.y = _local1.p0.y;
_local2 = updateVector(_local2, false);
var _local10 = Math.abs(_local2.len / _local1.r);
u = getPointofIntersection(_local1, _local4);
if ((u.p0.x != 0) && (u.p0.y != 0)) {
_local16++;
u = updateVector(u, true);
_local7.push(_local4.action);
if (_local4.action.charAt(0) == "*") {
} else {
var _local3 = findIntersectionStart(_local1, _local4);
_local3.p0 = new Object();
_local3.p1 = new Object();
_local3.p0.x = _local1.p0.x;
_local3.p0.y = _local1.p0.y;
_local3 = updateVector(_local3, false);
var _local12 = _local1.r / _local3.len;
var _local14 = _local1.p0.x + (u.vx * (1 - _local12));
var _local13 = _local1.p0.y + (u.vy * (1 - _local12));
_local1.p1.x = _local14;
_local1.p1.y = _local13;
trace((((((("ob.len: " + _local1.len) + " u.len: ") + u.len) + " vs.len: ") + _local3.len) + " u.len+ vs.len: ") + (u.len + _local3.len));
var _local15 = {dx:_local3.lx, dy:_local3.ly, lx:_local3.dx, ly:_local3.dy, b:_local4.b, f:1};
var _local11 = bounce(_local1, _local15);
_local1.vx = _local11.vx;
_local1.vy = _local11.vy;
addPoints(_local4.points);
}
} else if (_local10 <= 1) {
_local16++;
_local7.push(_local4.action);
if (_local4.action.charAt(0) == "*") {
} else {
_local1.p1.x = _local1.p1.x + (_local2.dx * _local10);
_local1.p1.y = _local1.p1.y + (_local2.dy * _local10);
var _local15 = {dx:_local2.lx, dy:_local2.ly, lx:_local2.dx, ly:_local2.dy, b:_local4.b, f:1};
var _local11 = bounce(_local1, _local15);
_local1.vx = _local11.vx;
_local1.vy = _local11.vy;
addPoints(_local4.points);
}
}
i++;
}
var _local8 = new Array();
var _local6 = 0;
while (_local6 < _local7.length) {
var _local9 = false;
var _local5 = 0;
while (_local5 < _local8.length) {
if (_local7[_local6] == _local8[_local5]) {
_local9 = true;
}
_local5++;
}
if (!_local9) {
_local8.push(_local7[_local6]);
checkAction(_local7[_local6]);
}
_local6++;
}
if (tableOverlay_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
triggerOutOfBounds(_local1.p1.x, _local1.p1.y);
}
_local1.p0 = _local1.p1;
if (xswitch_red_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
if (!bXisActive) {
toggleX();
}
}
if (xswitch_green_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
if (bXisActive) {
toggleX();
}
}
if (xarea_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
if (bXisActive) {
xramp_mc.gotoAndStop(1);
} else {
xramp_mc.gotoAndStop(2);
}
} else {
xramp_mc.gotoAndStop(1);
}
if (missChatterboxArea_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
if (!missChatterboxArea_mc.inAnim) {
missChatterboxArea_mc.gotoAndPlay(2);
missChatterboxArea_mc.inAnim = true;
}
} else {
missChatterboxArea_mc.inAnim = false;
}
if (mrMessyArea_mc.hitTest(_local1.p1.x, _local1.p1.y, true)) {
if (!mrMessyArea_mc.inAnim) {
mrMessyArea_mc.gotoAndPlay(2);
mrMessyArea_mc.inAnim = true;
}
} else {
mrMessyArea_mc.inAnim = false;
}
if (_local1.vx > game.maxV) {
_local1.vx = game.maxV;
} else if (_local1.vx < (-game.maxV)) {
_local1.vx = -game.maxV;
}
if (_local1.vy > game.maxV) {
_local1.vy = game.maxV;
} else if (_local1.vy < (-game.maxV)) {
_local1.vy = -game.maxV;
}
drawAll(_local1);
}
function checkHitzones(showBoxes) {
var _local1 = -1;
i = 1;
while (i <= 5) {
if (game.myOb.clip.hitTest(game_mc[("group" + i) + "_mc"])) {
_local1 = i;
if (debug_showHitzones) {
game_mc[("group" + i) + "_mc"].hz.gotoAndPlay(2);
}
break;
}
i++;
}
var _local2 = new Array();
if (_local1 != -1) {
i = 1;
while (i <= game.hitGroupArray[_local1 - 1].length) {
if (game_mc.hitChecker_mc["hz" + game.hitGroupArray[_local1 - 1][i - 1]].hitTest(game.myOb.clip)) {
_local2.push(game.hitGroupArray[_local1 - 1][i - 1]);
if (debug_showHitzones) {
game_mc.hitChecker_mc["hz" + game.hitGroupArray[_local1 - 1][i - 1]].hz.gotoAndPlay(2);
}
}
i++;
}
return(_local2);
}
return([]);
}
function drawAll(v) {
v.clip._x = v.p1.x;
v.clip._y = v.p1.y;
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
var _local2 = new flash.geom.Point(v.vx, v.vy);
v.len = _local2.length;
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function findIntersection(v1, v2) {
var _local2 = {};
_local2.vx = v1.p1.x - v2.p0.x;
_local2.vy = v1.p1.y - v2.p0.y;
var _local5 = (_local2.vx * v2.dx) + (_local2.vy * v2.dy);
if (_local5 < 0) {
var _local6 = _local2;
} else {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p1.x;
_local3.vy = v1.p1.y - v2.p1.y;
_local5 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local5 > 0) {
var _local6 = _local3;
} else {
var _local6 = projectVector(_local2, v2.lx, v2.ly);
}
}
return(_local6);
}
function findIntersectionStart(v1, v2) {
var _local2 = {};
_local2.vx = v1.p0.x - v2.p0.x;
_local2.vy = v1.p0.y - v2.p0.y;
var _local6 = (_local2.vx * v2.dx) + (_local2.vy * v2.dy);
if (_local6 < 0) {
var _local5 = _local2;
} else {
var _local3 = {};
_local3.vx = v1.p0.x - v2.p1.x;
_local3.vy = v1.p0.y - v2.p1.y;
_local6 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local6 > 0) {
var _local5 = _local3;
} else {
var _local5 = projectVector(_local2, v2.lx, v2.ly);
}
}
return(_local5);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
function dotP(v1, v2) {
var _local1 = (v1.vx * v2.vx) + (v1.vy * v2.vy);
return(_local1);
}
function getPointofIntersection(v1, v2) {
p1 = {};
p2 = {};
p3 = {};
p4 = {};
p1.x = v1.p0.x;
p1.y = v1.p0.y;
p2.x = v1.p1.x;
p2.y = v1.p1.y;
p3.x = v2.p0.x;
p3.y = v2.p0.y;
p4.x = v2.p1.x;
p4.y = v2.p1.y;
var _local4 = ((p4.y - p3.y) * (p2.x - p1.x)) - ((p4.x - p3.x) * (p2.y - p1.y));
var _local1 = new Object();
_local1.p0 = new Object();
_local1.p1 = new Object();
if (_local4 == 0) {
_local1.p0.x = 0;
_local1.p0.y = 0;
_local1.vx = 0;
_local1.vy = 0;
return(_local1);
}
var _local10 = ((p4.x - p3.x) * (p1.y - p3.y)) - ((p4.y - p3.y) * (p1.x - p3.x));
var _local9 = ((p2.x - p1.x) * (p1.y - p3.y)) - ((p2.y - p1.y) * (p1.x - p3.x));
var _local3 = _local10 / _local4;
var _local6 = _local9 / _local4;
if (((_local3 >= 0) && (_local3 < 1)) && ((_local6 >= 0) && (_local6 < 1))) {
var _local8 = p1.x + (_local3 * (p2.x - p1.x));
var _local7 = p1.y + (_local3 * (p2.y - p1.y));
_local1.p0.x = v1.p0.x;
_local1.p0.y = v1.p0.y;
_local1.p1.x = _local8;
_local1.p1.y = _local7;
return(_local1);
}
_local1.p0.x = 0;
_local1.p0.y = 0;
_local1.vx = 0;
_local1.vy = 0;
return(_local1);
}
function checkIfInTriangle(_pointToCheck, _triangleCorner1, _triangleCorner2, _triangleCorner3) {
var _local6 = ((_pointToCheck.y - _triangleCorner1.y) * (_triangleCorner2.x - _triangleCorner1.x)) - ((_pointToCheck.x - _triangleCorner1.x) * (_triangleCorner2.y - _triangleCorner1.y));
var _local7 = ((_pointToCheck.y - _triangleCorner3.y) * (_triangleCorner1.x - _triangleCorner3.x)) - ((_pointToCheck.x - _triangleCorner3.x) * (_triangleCorner1.y - _triangleCorner3.y));
var _local5 = ((_pointToCheck.y - _triangleCorner2.y) * (_triangleCorner3.x - _triangleCorner2.x)) - ((_pointToCheck.x - _triangleCorner2.x) * (_triangleCorner3.y - _triangleCorner2.y));
if (((_local6 * _local5) > 0) && ((_local5 * _local7) > 0)) {
return(true);
}
return(false);
}
function checkKeys() {
var _local2 = game.key.keyLstate;
var _local1 = game.key.keyRstate;
var _local4 = game.key.keySstate;
var _local3 = game.key.keyDstate;
if (Key.isDown(37)) {
game.key.keyLstate = 1;
} else {
game.key.keyLstate = 0;
}
if (Key.isDown(39)) {
game.key.keyRstate = 1;
} else {
game.key.keyRstate = 0;
}
if (Key.isDown(32)) {
game.key.keySstate = 1;
} else {
game.key.keySstate = 0;
}
if (Key.isDown(40)) {
game.key.keyDstate = 1;
} else {
game.key.keyDstate = 0;
}
if (game.key.keyLstate && (!_local2)) {
setFlipper("left", "up");
} else if ((!game.key.keyLstate) && (_local2)) {
setFlipper("left", "down");
}
if (game.key.keyRstate && (!_local1)) {
setFlipper("right", "up");
} else if ((!game.key.keyRstate) && (_local1)) {
setFlipper("right", "down");
}
if (game.key.keyDstate) {
plungerPullback();
} else if ((!game.key.keyDstate) && (_local3)) {
plungerRelease();
}
}
function setFlipper(side, ste) {
switch (ste) {
case "down" :
SFX.playSound(23);
break;
case "up" :
SFX.playSound(1);
}
switch (side) {
case "left" :
var _local4 = 0;
while (_local4 < aLeftFlippers.length) {
var _local2 = aLeftFlippers[_local4];
_local2[0].gotoAndStop(ste);
var _local3 = game.flipper[("vec" + _local2[1]) + "Index"][0];
var _local6 = game.flipper[("vec" + _local2[1]) + "Index"][1];
var _local9 = game.flipper[("vec" + _local2[1]) + ste];
j = 0;
while (j <= (_local6 - _local3)) {
game["v" + (_local3 + j)] = _local9["v" + j];
j++;
}
ballPoint = new flash.geom.Point();
ballPoint.x = game.myOb.p1.x;
ballPoint.y = game.myOb.p1.y;
var _local7 = com.digitaloutlook.functions.MyMath.GetAngleFromPoints(_local2[2][0], new flash.geom.Point(ballPoint.x, ballPoint.y), true);
if (game.ballState) {
if (checkIfInTriangle(ballPoint, _local2[2][0], _local2[2][1], _local2[2][2]) && (ste == "up")) {
var _local8 = (ballPoint.x - _local2[2][0].x) / 1.1;
game.myOb.vx = Math.abs(_local8 * Math.sin(_local7));
game.myOb.vy = -Math.abs(_local8 * Math.cos(_local7));
updateVector(game.myOb, false);
}
}
_local4++;
}
break;
case "right" :
_local4 = 0;
for(;;){
if (_local4 >= aRightFlippers.length) {
break;
}
var _local2 = aRightFlippers[_local4];
_local2[0].gotoAndStop(ste);
var _local3 = game.flipper[("vec" + _local2[1]) + "Index"][0];
var _local6 = game.flipper[("vec" + _local2[1]) + "Index"][1];
var _local9 = game.flipper[("vec" + _local2[1]) + ste];
j = 0;
while (j <= (_local6 - _local3)) {
game["v" + (_local3 + j)] = _local9["v" + j];
j++;
}
ballPoint = new flash.geom.Point();
ballPoint.x = game.myOb.p1.x;
ballPoint.y = game.myOb.p1.y;
var _local7 = com.digitaloutlook.functions.MyMath.GetAngleFromPoints(_local2[2][0], new flash.geom.Point(ballPoint.x, ballPoint.y), true);
if (game.ballState) {
if (checkIfInTriangle(ballPoint, _local2[2][0], _local2[2][1], _local2[2][2]) && (ste == "up")) {
var _local8 = (_local2[2][0].x - ballPoint.x) / 1.1;
game.myOb.vx = -Math.abs(_local8 * Math.sin(_local7));
game.myOb.vy = -Math.abs(_local8 * Math.cos(_local7));
updateVector(game.myOb, false);
}
}
_local4++;
};
}
if (ste == "up") {
_local4 = 0;
while (_local4 < aTopFlippers.length) {
_local2 = aTopFlippers[_local4];
if (side == "left") {
bTopFlipperToTheRigth = true;
ste = "down";
} else if (side == "right") {
bTopFlipperToTheRigth = false;
ste = "up";
}
_local2[0].gotoAndStop(ste);
_local3 = game.flipper[("vec" + _local2[1]) + "Index"][0];
_local6 = game.flipper[("vec" + _local2[1]) + "Index"][1];
_local9 = game.flipper[("vec" + _local2[1]) + ste];
j = 0;
while (j <= (_local6 - _local3)) {
game["v" + (_local3 + j)] = _local9["v" + j];
j++;
}
ballPoint = new flash.geom.Point();
ballPoint.x = game.myOb.p1.x;
ballPoint.y = game.myOb.p1.y;
if (game.ballState) {
if (checkIfInTriangle(ballPoint, _local2[2][0], _local2[2][1], _local2[2][2])) {
var _local8 = Math.abs((ballPoint.y - _local2[2][0].y) / 0.5);
if (side == "left") {
game.myOb.vx = _local8;
} else if (side == "right") {
game.myOb.vx = -_local8;
}
updateVector(game.myOb, false);
}
}
_local4++;
}
}
}
function plungerPullback() {
if (game_mc.plunger_mc._y < (game_mc.plunger_mc.startY + 35)) {
game_mc.plunger_mc._y = game_mc.plunger_mc._y + 0.5;
game_mc.plunger_mc.arm_amin._y = game_mc.plunger_mc.arm_amin._y - 0.5;
game_mc.plunger_mc.arm_amin.gotoAndStop(-1 * Math.floor(game_mc.plunger_mc.arm_amin._y * 2));
}
}
function plungerRelease() {
var _local1 = (game_mc.plunger_mc._y - game_mc.plunger_mc.startY) / 35;
game_mc.launchball_mc.launch(_local1);
game_mc.plunger_mc._y = game_mc.plunger_mc.startY;
game_mc.plunger_mc.arm_amin._y = 0;
game_mc.plunger_mc.arm_amin.gotoAndStop(1);
}
function checkX(_s) {
var _local2 = new Date();
switch (_s) {
case "a" :
nTrigger1time = _local2.getTime();
if (nTrigger2time != 0) {
toggleX(false);
resetXtimers();
}
break;
case "b" :
nTrigger2time = _local2.getTime();
if (nTrigger1time == 0) {
break;
}
toggleX(true);
resetXtimers();
}
clearInterval(nResetXtimersID);
nResetXtimersID = setInterval(this, "resetXtimers", 180);
}
function resetXtimers() {
nTrigger1time = 0;
nTrigger2time = 0;
clearInterval(nResetXtimersID);
}
function toggleX(b) {
if (b == undefined) {
bXisActive = !bXisActive;
} else {
bXisActive = b;
}
if (bXisActive) {
dummyX.gotoAndStop(1);
game_mc.ob_mc._visible = false;
topball_mc._visible = true;
var _local2 = 0;
while (_local2 < aTopX_vectors.length) {
game["v" + aTopX_vectors[_local2]].action = "";
_local2++;
}
_local2 = 0;
while (_local2 < aBottomX_vectors.length) {
game["v" + aBottomX_vectors[_local2]].action = "*";
_local2++;
}
var _local1 = 0;
while (_local1 < aMrbumpBumberVectors.length) {
_local2 = 0;
while (_local2 < aMrbumpBumberVectors[_local1].length) {
game["v" + aMrbumpBumberVectors[_local1][_local2]].action = "*";
_local2++;
}
_local1++;
}
} else {
dummyX.gotoAndStop(2);
game_mc.ob_mc._visible = true;
topball_mc._visible = false;
var _local2 = 0;
while (_local2 < aTopX_vectors.length) {
game["v" + aTopX_vectors[_local2]].action = "*";
_local2++;
}
_local2 = 0;
while (_local2 < aBottomX_vectors.length) {
game["v" + aBottomX_vectors[_local2]].action = "";
_local2++;
}
var _local1 = 0;
while (_local1 < aMrbumpBumberVectors.length) {
_local2 = 0;
while (_local2 < aMrbumpBumberVectors[_local1].length) {
game["v" + aMrbumpBumberVectors[_local1][_local2]].action = "mrbump_bumper_" + _local1;
_local2++;
}
_local1++;
}
}
if (DEBUGMODEON) {
drawWalls();
}
}
function triggerOutOfBounds(refx, refy) {
hideBall();
var _local4 = 999999999999;
var _local5 = 0;
var _local6 = new flash.geom.Point(refx, refy);
var _local1 = 0;
while (_local1 < aPlugholes.length) {
var _local3 = new flash.geom.Point(aPlugholes[_local1][1]._x, aPlugholes[_local1][1]._y);
var _local2 = com.digitaloutlook.functions.MyMath.GetDistanceBetweenPoints(_local6, _local3);
if (_local2 < _local4) {
_local4 = _local2;
_local5 = _local1;
}
_local1++;
}
aPlugholes[_local5][1].gotoAndPlay("showball");
}
function triggerBallLost(keepit) {
if (keepit) {
addBall(0);
} else {
addBall(-1);
}
SFX.playSound(0);
if (game.ballsLeft == 0) {
gameOver();
} else {
resetBall();
}
resetCombos();
}
function handleScore() {
scoreboard_mc.setScore(nCurrentScore);
}
function getScore() {
return(nCurrentScore);
}
function getHighScore() {
return(nHighScore);
}
function addPoints(points, isSpecial) {
points = points * 50;
if (game.ballState) {
if (bCrazyTickleMode) {
nCurrentScore = nCurrentScore + (points * 3);
if (isSpecial) {
scoreboard_mc.bonusScore = points * 3;
scoreboard_mc.play();
}
} else {
if (isSpecial) {
scoreboard_mc.bonusScore = points;
scoreboard_mc.play();
}
nCurrentScore = nCurrentScore + points;
}
}
handleScore();
}
function addBall(num, abs) {
if (abs) {
balls_left_mc.gotoAndStop(1);
game.ballsLeft = num;
} else {
game.ballsLeft = game.ballsLeft + num;
}
if (num < 0) {
balls_left_mc.play();
}
}
function resetCombos() {
funnyTriggersFinished();
midRightTriggersFinished();
chatterTriggersFinished()();
sunshineTriggersFinished();
happyTriggersFinished();
naughtyTriggersFinished();
}
function hideBall() {
game.ballState = 0;
topball_mc._visible = false;
game.clip.ob_mc._visible = false;
}
function pauzeGame() {
bIsPauzed = true;
}
function resumeGame() {
bIsPauzed = false;
}
function showHelp() {
if (!start_mc._visible) {
pauzeGame();
start_mc.bShowhelp = true;
start_mc.gotoAndPlay(2);
}
}
function resumeBall(x, y, vx, vy) {
game.ballState = 1;
game.clip.ob_mc._visible = !bXisActive;
game.myOb.p0.x = x;
game.myOb.p0.y = y;
game.myOb.vx = vx;
game.myOb.vy = vy;
updateVector(game.myOb, false);
}
function resetBall() {
triggerRatchet(1, false);
triggerRatchet(2, false);
toggleX(false);
game_mc.launchball_mc.activate();
updateVector(game.myOb, false);
xramp_mc.gotoAndStop(1);
hideBall();
}
function triggerRatchet(_n, isActive) {
var _local2 = game.ratchets["vecIndex" + _n][0];
if (isActive) {
game["v" + _local2].action = "";
if ((_n == 1) && (!gate_left_mc._visible)) {
gate_left_mc._visible = true;
}
if ((_n == 2) && (!gate_right_mc._visible)) {
gate_right_mc._visible = true;
}
if (DEBUGMODEON) {
drawWalls();
}
} else {
game["v" + _local2].action = "*";
if ((_n == 1) && (gate_left_mc._visible)) {
gate_left_mc._visible = false;
}
if ((_n == 2) && (gate_right_mc._visible)) {
gate_right_mc._visible = false;
}
if (DEBUGMODEON) {
drawWalls();
}
}
}
function firstRun() {
nCurrentScore = 0;
handleScore();
createHitzones();
setupSounds();
game.hitGroupArray = defineHitGroups();
if (DEBUGMODEON) {
drawWalls();
}
}
function loadTracker(id) {
if (this.mcTracker0 == undefined) {
this.mcTracker0 = this.createEmptyMovieClip("mcTracker0", this.getNextHighestDepth());
}
if (this.mcTracker1 == undefined) {
this.mcTracker1 = this.createEmptyMovieClip("mcTracker1", this.getNextHighestDepth());
}
if (this.mcTracker2 == undefined) {
this.mcTracker2 = this.createEmptyMovieClip("mcTracker2", this.getNextHighestDepth());
}
this.mcTracker0.onData = function (d) {
trace("Loaded tracker 0.");
};
this.mcTracker1.onData = function (d) {
trace("Loaded tracker 1.");
};
this.mcTracker2.onData = function (d) {
trace("Loaded tracker 2.");
};
var _local2;
var _local4 = new Date();
var _local3 = _local4.getTime();
if (id == 0) {
_local2 = "http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/mrmen_gameplays/142334@x01?deCache=" + _local3;
this.mcTracker0.loadVariables(_local2);
} else if (id == 1) {
_local2 = "http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/mrmen_clicks_US/142334@x01?deCache=" + _local3;
this.mcTracker1.loadVariables(_local2);
} else if (id == 2) {
_local2 = "http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/mrmen_clicks_UK/142334@x01?deCache=" + _local3;
this.mcTracker2.loadVariables(_local2);
}
}
function startNewGame() {
this.loadTracker(0);
if (isInIdleMode) {
sc = "" + nHighScore;
while (sc.length < 8) {
sc = "0" + sc;
}
high_score_txt.text = sc;
SFX.playSound(24);
isInIdleMode = false;
unmuteIdleClips();
addBall(3, 1);
nCurrentScore = 0;
handleScore();
resetBall();
}
}
function gameOver() {
if (nCurrentScore > nHighScore) {
nHighScore = nCurrentScore;
}
var _local1 = SharedObject.getLocal("mrmenpinball");
_local1.data.highscore = nHighScore;
_local1.flush();
isInIdleMode = true;
muteIdleClips();
game.ballState = 0;
setFlipper("right", "down");
setFlipper("left", "down");
SFX.stopSound(25);
SFX.playSound(26);
start_mc.gotoAndPlay("gameover");
start_mc._visible = true;
}
function muteIdleClips() {
var _local1 = 0;
while (_local1 < aIdleClips.length) {
var _local4 = aIdleClips[_local1];
var _local2 = _local4[0];
var _local3 = new Sound(_local2);
_local3.setVolume(0);
_local1++;
}
}
function unmuteIdleClips() {
var _local1 = 0;
while (_local1 < aIdleClips.length) {
var _local4 = aIdleClips[_local1];
var _local2 = _local4[0];
var _local3 = new Sound(_local2);
_local3.setVolume(100);
_local1++;
}
}
function mainLoop() {
if (isInIdleMode) {
if ((nIdleActionCount % 3) == 0) {
var _local1 = Math.floor(Math.random() * aIdleClips.length);
if (aIdleClips[_local1][1] != "play") {
aIdleClips[_local1][0].gotoAndPlay(aIdleClips[_local1][1]);
}
}
nIdleActionCount++;
} else {
checkKeys();
}
if (game.ballState && (!bIsPauzed)) {
game_mc.ob_mc._rotation = game_mc.ob_mc._rotation + ((game_mc.ob_mc._x - nLastX) * 8);
nLastX = game_mc.ob_mc._x;
game.hitVectors = checkHitzones();
gameLoop();
}
}
var SFX;
var isInIdleMode = true;
var aIdleClips = new Array();
var nIdleActionCount = 0;
var debug_showHitzones = false;
var DEBUGMODEON = false;
var bCrazyTickleMode = false;
var bXisActive = false;
var nCurrentScore = 0;
var nHighScore = 0;
var bTopFlipperToTheRigth = true;
var nTrigger1time = 0;
var nTrigger2time = 0;
var nResetXtimersID = setInterval(this, "resetXtimers", 100);
var nLastX = game_mc.ob_mc._x;
var aFunnyTriggerStates = [0, 0, 0];
var aMidRightTriggerStates = [0, 0];
var aChatterTriggerStates = [0, 0, 0, 0, 0];
var aSunshineTriggerStates = [0, 0, 0, 0, 0];
var aHappyTriggerStates = [0, 0, 0, 0, 0];
var aNaughtyTriggerStates = [0, 0, 0];
var nTickSoundCount = 0;
var bIsPauzed = false;
tableOverlay_mc._visible = false;
outofX_mc._visible = false;
xswitch_green_mc._visible = false;
xswitch_red_mc._visible = false;
xarea_mc._visible = false;
start_mc.bShowhelp = false;
var so = SharedObject.getLocal("mrmenpinball");
if (so.data.highscore != undefined) {
nHighScore = Number(so.data.highscore);
sc = "" + nHighScore;
while (sc.length < 7) {
sc = "0" + sc;
}
high_score_txt.text = sc;
}
help_but.ref = this;
help_but.onRelease = function () {
this.ref.showHelp();
};
aIdleClips.push([trianglebumper1_mc, "play"]);
aIdleClips.push([trianglebumper2_mc, "play"]);
aIdleClips.push([trianglebumper3_mc, "play"]);
aIdleClips.push([trianglebumper4_mc, "play"]);
aIdleClips.push([sunshinerays_mc, "play"]);
aIdleClips.push([happystars_mc, "play"]);
aIdleClips.push([messy_scribble_mc, "play"]);
aIdleClips.push([mrGreedyFood1_mc, "play"]);
aIdleClips.push([mrGreedyFood2_mc, "play"]);
aIdleClips.push([bell_mc, "play"]);
aIdleClips.push([missnaughty_triggers_all_mc, "play"]);
aIdleClips.push([midright_triggers_mc, "play"]);
aIdleClips.push([mrfunny_triggers_all_mc, "play"]);
game = {dragging:false, clip:_root.game_mc, stageW:600, stageH:610, maxV:20};
game.gravity = 0.5;
game.myOb = {clip:game.clip.ob_mc, airf:0.99, b:0.72, f:1, r:6, lastTime:getTimer()};
game.myOb.p0 = {x:340, y:500};
game.myOb.p1 = {x:340, y:500};
game.myOb.vx = 0;
game.myOb.vy = 0;
game.xOffset = 5;
game.yOffset = 5;
game.hitVectors = new Array();
game.hitGroupArray = new Array();
game.vTotal = 0;
game.key = new Object();
game.key.keyLstate = 0;
game.key.keyRstate = 0;
game.key.keySstate = 0;
game.key.keyDstate = 0;
game.flipper = new Object();
game.plunger = new Object();
game.plunger.vecIndex = new Array();
game.plunger.startY = 0;
game.plunger.maxDist = 50;
game.plunger.currDist = 0;
game.plunger.state = 0;
game.ratchets = new Object();
game.score = 0;
game.highscore = 0;
game.ballsLeft = 0;
borderArray = [456, 481, 530, 444, 532, 366, 521, 347, 529, 336, 539, 332, 544, 323, 541, 312, 532, 307, 523, 307, 512, 319, 506, 323, 504, 322, 538, 287, 544, 269, 541, 260, 542, 232, 547, 224, 553, 217, 528, 197, 517, 218, 508, 218, 479, 173, 498, 142, 509, 112, 508, 75, 496, 45, 480, 27, 461, 16, 432, 8, 404, 6, 374, 10, 349, 20, 329, 34, 321, 44, 310, 72, 306, 71, 319, 38, 315, 20, 304, 9, 293, 6, 275, 9, 266, 19, 260, 40, 265, 57, 273, 70, 271, 75, 255, 45, 252, 35, 232, 23, 202, 10, 171, 6, 137, 7, 103, 21, 81, 45, 71, 73, 69, 105, 78, 129, 94, 144, 106, 161, 116, 178, 69, 217, 56, 164, 55, 136, 56, 119, 56, 112, 50, 106, 42, 103, 34, 106, 30, 118, 28, 155, 29, 199, 36, 236, 48, 273, 44, 278, 48, 287, 78, 322, 75, 325, 66, 318, 61, 309, 52, 306, 41, 312, 37, 322, 43, 331, 50, 335, 54, 339, 62, 348, 53, 365, 52, 445, 127, 482, 127, 532, 128, 559, 213, 565, 210, 474, 225, 464, 228, 451, 280, 429, 289, 411, 299, 428, 349, 453, 350, 464, 367, 473, 368, 567, 459, 570, 456, 481];
defineVectors(borderArray, 1, 1, 0, null);
topMiddleIsland = [191, 170, 201, 174, 219, 174, 246, 176, 288, 185, 342, 174, 369, 174, 380, 172, 388, 165, 391, 160, 387, 154, 370, 144, 361, 132, 356, 122, 336, 116, 319, 106, 300, 167, 295, 172, 281, 171, 275, 165, 259, 106, 233, 117, 217, 142, 191, 170];
defineVectors(topMiddleIsland, 1, 1, 0, null);
topLeftIsland = [234, 99, 243, 99, 254, 88, 237, 61, 232, 58, 234, 64, 234, 99];
defineVectors(topLeftIsland, 1, 1, 0, null);
middleLeftIslandPart1 = [183, 226, 199, 228, 212, 231, 221, 237, 188, 277, 182, 277, 177, 270, 169, 266, 159, 275, 157, 277, 140, 248, 143, 239, 147, 232, 151, 226, 162, 228, 159, 237, 165, 246, 175, 248, 183, 243, 184, 235, 183, 226];
defineVectors(middleLeftIslandPart1, 1, 1, 0, null);
middleLeftIslandPart2 = [243, 318, 252, 333, 262, 342, 275, 349, 276, 354, 273, 355, 258, 351, 246, 342, 239, 330, 243, 318];
defineVectors(middleLeftIslandPart2, 1, 1, 0, null);
middleRightIslandPart1 = [306, 347, 320, 340, 330, 333, 339, 316, 344, 327, 341, 334, 330, 346, 318, 353, 311, 355, 303, 355, 303, 352, 306, 347];
defineVectors(middleRightIslandPart1, 1, 1, 0, null);
middleRightIslandPart2 = [398, 225, 370, 231, 359, 238, 396, 276, 401, 270, 410, 266, 417, 269, 423, 274, 439, 249, 436, 235, 431, 228, 421, 225, 422, 237, 417, 243, 406, 246, 398, 239, 398, 225];
defineVectors(middleRightIslandPart2, 1, 1, 0, null);
tickleLeftArmTrigger = [77, 214, 97, 199];
defineVectors(tickleLeftArmTrigger, 1, 1, 0, "*tickleLeftArm");
tickleRightArmTrigger = [515, 216, 540, 233];
defineVectors(tickleRightArmTrigger, 1, 1, 0, "*tickleRightArm");
mrGreedyTopTrigger = [31, 126, 51, 124];
defineVectors(mrGreedyTopTrigger, 1, 1, 50, "*mrGreedyTopTrigger");
mrGreedyFood1Trigger = [30, 158, 50, 158];
defineVectors(mrGreedyFood1Trigger, 1, 1, 25, "*mrGreedyFood1Trigger");
mrGreedyFood2Trigger = [35, 204, 57, 195];
defineVectors(mrGreedyFood2Trigger, 1, 1, 15, "*mrGreedyFood2Trigger");
aFunnyTriggers = new Array();
aFunnyTriggers.push([136, 251, 143, 263]);
aFunnyTriggers.push([145, 266, 152, 278]);
aFunnyTriggers.push([240, 345, 251, 354]);
var ft = 0;
while (ft < aFunnyTriggers.length) {
defineVectors(aFunnyTriggers[ft], 1, 1, 10, "*funnytrigger" + ft);
ft++;
}
aMidrightTriggers = new Array();
aMidrightTriggers.push([468, 181, 482, 197]);
aMidrightTriggers.push([481, 201, 496, 213]);
var t = 0;
while (t < aMidrightTriggers.length) {
defineVectors(aMidrightTriggers[t], 1, 1, 10, "*midrighttrigger" + t);
t++;
}
aNaughtyTriggers = new Array();
aNaughtyTriggers.push([327, 351, 340, 342]);
aNaughtyTriggers.push([426, 277, 435, 266]);
aNaughtyTriggers.push([435, 262, 444, 249]);
var nt = 0;
while (nt < aNaughtyTriggers.length) {
defineVectors(aNaughtyTriggers[nt], 1, 1, 10, "*naughtytrigger" + nt);
nt++;
}
aChatterTriggers = new Array();
aChatterTriggers.push([365, 124, 373, 135]);
aChatterTriggers.push([375, 140, 390, 149]);
aChatterTriggers.push([462, 118, 462, 104]);
aChatterTriggers.push([463, 97, 462, 86]);
aChatterTriggers.push([459, 77, 454, 66]);
var ct = 0;
while (ct < aChatterTriggers.length) {
defineVectors(aChatterTriggers[ct], 1, 1, 10, "*chattertrigger" + ct);
ct++;
}
aHappyTriggers = new Array();
aHappyTriggers.push([374, 390, 364, 398]);
aHappyTriggers.push([373, 369, 385, 374]);
aHappyTriggers.push([399, 359, 412, 364]);
aHappyTriggers.push([428, 366, 433, 373]);
aHappyTriggers.push([438, 387, 448, 399]);
var ht = 0;
while (ht < aHappyTriggers.length) {
defineVectors(aHappyTriggers[ht], 1, 1, 10, "*happytrigger" + ht);
ht++;
}
aSunshineTriggers = new Array();
aSunshineTriggers.push([122, 384, 134, 371]);
aSunshineTriggers.push([142, 365, 158, 358]);
aSunshineTriggers.push([168, 355, 183, 355]);
aSunshineTriggers.push([194, 359, 208, 366]);
aSunshineTriggers.push([217, 372, 227, 382]);
var st = 0;
while (st < aSunshineTriggers.length) {
defineVectors(aSunshineTriggers[st], 1, 1, 10, "*sunshinetrigger" + st);
st++;
}
aMessyBouncers = new Array();
aMessyBouncers.push([122, 175, 96, 141]);
aMessyBouncers.push([96, 141, 77, 110]);
aMessyBouncers.push([77, 110, 80, 62]);
aMessyBouncers.push([80, 62, 112, 21]);
aMessyBouncers.push([112, 21, 171, 10]);
aMessyBouncers.push([171, 10, 224, 22]);
aMessyBouncers.push([230, 65, 231, 96]);
aMessyBouncers.push([197, 163, 226, 124]);
var mb = 0;
while (mb < aMessyBouncers.length) {
defineVectors(aMessyBouncers[mb], 2, 1, 10, "messybumper" + mb);
aIdleClips.push([this["mb" + mb], "play"]);
mb++;
}
X1 = [208, 194, 251, 211, 187, 276];
X1_vecindex = defineVectors(X1, 1, 1, 0, "*");
X2 = [237, 329, 259, 285, 291, 243, 325, 286, 344, 326];
X2_vecindex = defineVectors(X2, 1, 1, 0, "*");
X3 = [394, 276, 359, 235, 329, 212, 374, 196];
X3_vecindex = defineVectors(X3, 1, 1, 0, "*");
var aTopX_vectors = new Array();
var startPos = X1_vecindex[0];
var amount = ((X1_vecindex[1] - X1_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aTopX_vectors.push(startPos + i);
i++;
}
var startPos = X2_vecindex[0];
var amount = ((X2_vecindex[1] - X2_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aTopX_vectors.push(startPos + i);
i++;
}
var startPos = X3_vecindex[0];
var amount = ((X3_vecindex[1] - X3_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aTopX_vectors.push(startPos + i);
i++;
}
subX1 = [241, 317, 239, 301, 237, 276, 229, 254, 220, 237];
subX1_vecindex = defineVectors(subX1, 1, 1, 0, "*");
subX2 = [208, 169, 208, 195, 235, 171, 344, 171, 371, 195, 373, 164, 216, 160, 208, 169];
subX2_vecindex = defineVectors(subX2, 1, 1, 0, "*");
subX3 = [359, 238, 354, 248, 346, 268, 341, 295, 339, 314];
subX3_vecindex = defineVectors(subX3, 1, 1, 0, "*");
var aBottomX_vectors = new Array();
var startPos = subX1_vecindex[0];
var amount = ((subX1_vecindex[1] - subX1_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aBottomX_vectors.push(startPos + i);
i++;
}
var startPos = subX2_vecindex[0];
var amount = ((subX2_vecindex[1] - subX2_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aBottomX_vectors.push(startPos + i);
i++;
}
var startPos = subX3_vecindex[0];
var amount = ((subX3_vecindex[1] - subX3_vecindex[0]) + 1);
var i = 0;
while (i < amount) {
aBottomX_vectors.push(startPos + i);
i++;
}
Xtrigger1a = [207, 195, 207, 172];
defineVectors(Xtrigger1a, 1, 1, 0, "*triggerX1a");
Xtrigger2a = [158, 276, 180, 303, 196, 320, 213, 331, 236, 343, 244, 343];
defineVectors(Xtrigger2a, 1, 1, 0, "*triggerX2a");
Xtrigger3a = [334, 343, 347, 348, 365, 341, 387, 319, 400, 296, 405, 279, 401, 272];
defineVectors(Xtrigger3a, 1, 1, 0, "*triggerX3a");
Xtrigger4a = [375, 196, 375, 173];
defineVectors(Xtrigger4a, 1, 1, 0, "*triggerX4a");
Xtrigger1b = [216, 196, 215, 173];
defineVectors(Xtrigger1b, 1, 1, 0, "*triggerX1b");
Xtrigger2b = [236, 328, 215, 313, 197, 297, 186, 278];
defineVectors(Xtrigger2b, 1, 1, 0, "*triggerX2b");
Xtrigger3b = [339, 336, 347, 335, 394, 278];
defineVectors(Xtrigger3b, 1, 1, 0, "*triggerX3b");
Xtrigger4b = [367, 196, 366, 172];
defineVectors(Xtrigger4b, 1, 1, 0, "*triggerX4b");
topRightPhoneIsland = [470, 102, 458, 124, 446, 128, 440, 155, 446, 157, 468, 146, 485, 109, 482, 70, 462, 42, 443, 29, 433, 28, 436, 57, 455, 61, 466, 78, 470, 102];
defineVectors(topRightPhoneIsland, 1, 1, 0, null);
toprightSmallBit1 = [371, 44, 371, 70, 378, 68, 378, 46, 371, 44];
defineVectors(toprightSmallBit1, 1, 1, 0, null);
toprightSmallBit2 = [391, 38, 391, 63, 399, 59, 399, 42, 391, 38];
defineVectors(toprightSmallBit2, 1, 1, 0, null);
toprightSmallBit3 = [413, 35, 413, 54, 419, 58, 418, 30, 413, 35];
defineVectors(toprightSmallBit3, 1, 1, 0, null);
middleTopRightSmallIsland = [348, 50, 324, 89, 333, 99, 347, 105, 354, 105, 352, 89, 355, 74, 354, 56, 348, 50];
defineVectors(middleTopRightSmallIsland, 1, 1, 0, null);
leftNextToFlipper = [68, 371, 69, 432, 122, 458, 124, 452, 73, 427, 74, 374, 68, 371];
defineVectors(leftNextToFlipper, 1, 1, 0, null);
rightNextToFlipper = [507, 370, 506, 427, 454, 452, 459, 459, 513, 433, 512, 365, 507, 370];
defineVectors(rightNextToFlipper, 1, 1, 0, null);
bottomTriangle1 = [92, 373, 93, 419, 128, 436, 133, 432, 98, 372, 92, 373];
defineVectors(bottomTriangle1, 1, 1, 0, null);
bottomTriangle2 = [249, 375, 215, 433, 219, 437, 256, 420, 256, 377, 249, 375];
defineVectors(bottomTriangle2, 1, 1, 0, null);
bottomTriangle3 = [323, 375, 322, 421, 357, 438, 364, 434, 329, 374, 323, 375];
defineVectors(bottomTriangle3, 1, 1, 0, null);
bottomTriangle4 = [448, 430, 483, 372, 489, 375, 490, 418, 452, 436, 448, 430];
defineVectors(bottomTriangle4, 1, 1, 0, null);
bottomTriangleBounce1 = [100, 370, 135, 429];
defineVectors(bottomTriangleBounce1, 2, 1, 10, "trianglebumper1");
bottomTriangleBounce2 = [245, 374, 213, 430];
defineVectors(bottomTriangleBounce2, 2, 1, 10, "trianglebumper2");
bottomTriangleBounce3 = [331, 373, 366, 431];
defineVectors(bottomTriangleBounce3, 2, 1, 10, "trianglebumper3");
bottomTriangleBounce4 = [479, 372, 446, 426];
defineVectors(bottomTriangleBounce4, 2, 1, 10, "trianglebumper4");
ballLostTrigger = [0, 505, 590, 505];
defineVectors(ballLostTrigger, 0, 1, 0, "ballLost");
ratchet1 = [258, 105, 290, 91];
ratchet2 = [319, 106, 290, 91];
ratchetTriggerTop1 = [308, 66, 266, 65, 240, 74, 245, 119, 256, 85, 269, 73, 308, 66];
ratchetTriggerTop2 = [309, 73, 326, 83, 326, 116, 340, 79, 315, 63, 309, 73];
game.ratchets.vecIndex1 = defineVectors(ratchet1, 1, 1, 0, "*");
game.ratchets.vecIndex2 = defineVectors(ratchet2, 1, 1, 0, "*");
defineVectors(ratchetTriggerTop1, 1, 1, 0, "*topRatchet1");
defineVectors(ratchetTriggerTop2, 1, 1, 0, "*topRatchet2");
ratchetfallback = [262, 153, 314, 156];
defineVectors(ratchetfallback, 1, 1, 15, "*ratchetfallback");
var aTopFlippers = new Array();
var aLeftFlippers = new Array();
var aRightFlippers = new Array();
aChatterBoxBumpers = new Array();
aMrmessyBumbers = new Array();
aMrbumpBumbers = new Array();
aMrbumpBumberVectors = new Array();
aPlugholes = new Array();
bPlugHoleOK = true;
muteIdleClips();
this.onEnterFrame = mainLoop;
Instance of Symbol 162 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "A1";
}
Instance of Symbol 162 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "A2";
}
Instance of Symbol 164 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "B1";
}
Instance of Symbol 164 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "B2";
}
Instance of Symbol 162 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "C2";
}
Instance of Symbol 162 MovieClip in Frame 7
onClipEvent (load) {
this.sID = "C1";
}
Frame 8
firstRun();
Frame 17
stop();
Symbol 3 MovieClip [hitChecker_dupe] Frame 1
stop();
Symbol 544 MovieClip [__Packages.com.digitaloutlook.gameElements.SoundFXmanager] Frame 0
class com.digitaloutlook.gameElements.SoundFXmanager
{
var mcTimeline, aSoundsToLoad, aSoundRefs, bSoundOn, mcToggleSound;
function SoundFXmanager (_timeline, soundstoload, soundOnAtstart, soundOnOff) {
mcTimeline = _timeline;
aSoundsToLoad = soundstoload;
aSoundRefs = new Array();
var _local2 = 0;
while (_local2 < aSoundsToLoad.length) {
aSoundRefs.push(new com.digitaloutlook.gameElements.SoundFX(mcTimeline, this, aSoundsToLoad[_local2]));
_local2++;
}
bSoundOn = soundOnAtstart;
mcToggleSound = soundOnOff;
mcToggleSound.ref = this;
mcToggleSound.onRelease = function () {
this.ref.toggleSound();
};
if (bSoundOn) {
mcToggleSound.gotoAndStop("sound_on");
} else {
mcToggleSound.gotoAndStop("sound_off");
}
}
function playSound(id, wait, vol, loop) {
if ((((id != 24) && (id != 25)) && (id != 26)) && (vol != undefined)) {
vol = 30;
}
aSoundRefs[id].playSound(wait, vol, loop);
}
function stopSound(id) {
trace("STOPSOUND: " + id);
aSoundRefs[id].stopSound();
}
function setSoundVolume(id, n) {
aSoundRefs[id].changeVolume(n, !bSoundOn);
}
function fadeSoundVolume(id, n) {
trace("FADE");
aSoundRefs[id].fadeSoundVolume(n);
}
function stopAllSoundFX() {
var _local2 = 0;
while (_local2 < aSoundRefs.length) {
aSoundRefs[_local2].stopSound();
_local2++;
}
}
function toggleSound() {
bSoundOn = !bSoundOn;
var _local2 = 0;
while (_local2 < aSoundRefs.length) {
if (bSoundOn) {
aSoundRefs[_local2].changeVolume();
} else {
aSoundRefs[_local2].changeVolume(0);
}
_local2++;
}
if (bSoundOn) {
mcToggleSound.gotoAndStop("sound_on");
} else {
mcToggleSound.gotoAndStop("sound_off");
}
}
function getSoundOn() {
return(bSoundOn);
}
}
Symbol 545 MovieClip [__Packages.com.digitaloutlook.gameElements.SoundFX] Frame 0
class com.digitaloutlook.gameElements.SoundFX
{
var sSoundID, mcTimeline, soundManager, soundEffect, nStartVolume, nCurVol, nFadeTarget, nUpdateID;
function SoundFX (_timeline, sndmanager, soundID) {
sSoundID = soundID;
mcTimeline = _timeline;
soundManager = sndmanager;
var _local2 = mcTimeline.createEmptyMovieClip(soundID + "sound", mcTimeline.getNextHighestDepth());
soundEffect = new Sound(_local2);
soundEffect.attachSound(soundID);
soundEffect.onSoundComplete = mx.utils.Delegate.create(this, soundComplete);
}
function soundComplete() {
mcTimeline.soundComplete(sSoundID);
}
function playSound(wait, vol, loop) {
if (wait) {
if ((soundEffect.position == soundEffect.duration) || (soundEffect.position == 0)) {
if (loop) {
soundEffect.start(0, 10000);
} else {
soundEffect.start();
}
}
} else if (loop) {
soundEffect.start(0, 10000);
} else {
soundEffect.start();
}
if (vol != undefined) {
nStartVolume = vol;
} else {
nStartVolume = 100;
}
nCurVol = nStartVolume;
if (soundManager.getSoundOn()) {
if (vol != undefined) {
soundEffect.setVolume(vol);
} else {
soundEffect.setVolume(100);
}
} else {
soundEffect.setVolume(0);
}
}
function stopSound() {
soundEffect.stop();
mcTimeline[sSoundID + "sound"].removeMovieClip();
var _local2 = mcTimeline.createEmptyMovieClip(sSoundID + "sound", mcTimeline.getNextHighestDepth());
soundEffect = new Sound(_local2);
soundEffect.attachSound(sSoundID);
}
function changeVolume(n, b) {
if (b) {
nCurVol = n;
} else if (n != undefined) {
soundEffect.setVolume(n);
nCurVol = n;
} else if (nFadeTarget != undefined) {
trace("nFadeTarget: " + nFadeTarget);
soundEffect.setVolume(nFadeTarget);
nCurVol = nFadeTarget;
} else {
trace("nStartVolume: " + nStartVolume);
soundEffect.setVolume(nStartVolume);
nCurVol = nStartVolume;
}
}
function fadeit(targetVol) {
nCurVol = nCurVol + ((targetVol - nCurVol) * 0.09);
if (Math.abs(nCurVol - targetVol) < 2) {
nCurVol = targetVol;
clearInterval(nUpdateID);
}
if (soundManager.getSoundOn()) {
soundEffect.setVolume(nCurVol);
}
}
function fadeSoundVolume(n) {
nFadeTarget = n;
nCurVol = soundEffect.getVolume();
clearInterval(nUpdateID);
nUpdateID = setInterval(this, "fadeit", 40, n);
}
}
Symbol 546 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 547 MovieClip [__Packages.com.digitaloutlook.functions.MyMath] Frame 0
class com.digitaloutlook.functions.MyMath
{
function MyMath () {
}
static function DegreesToRadians(__angle) {
return((__angle * Math.PI) / 180);
}
static function RadiansToDegrees(__rad) {
return((__rad * 180) / Math.PI);
}
static function GetDistanceBetweenPoints(p1, p2) {
var _local1 = p1.subtract(p2);
var _local2 = _local1.length;
return(_local2);
}
static function GetAngleFromPoints(p1, p2, rad) {
if (p2 == undefined) {
var _local1 = p1.x;
var _local2 = p1.y;
} else {
var _local1 = p1.x - p2.x;
var _local2 = p1.y - p2.y;
}
if (rad) {
return(Math.atan2(_local2, _local1));
}
return(RadiansToDegrees(Math.atan2(_local2, _local1)));
}
static function RemoveItemFromArray(item, _ar) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _ar.length) {
if (_ar[_local1] != item) {
_local3.push(_ar[_local1]);
}
_local1++;
}
return(_local3);
}
static function CheckIfInTriangle(_pointToCheck, _triangleCorner1, _triangleCorner2, _triangleCorner3) {
var _local6 = ((_pointToCheck.y - _triangleCorner1.y) * (_triangleCorner2.x - _triangleCorner1.x)) - ((_pointToCheck.x - _triangleCorner1.x) * (_triangleCorner2.y - _triangleCorner1.y));
var _local7 = ((_pointToCheck.y - _triangleCorner3.y) * (_triangleCorner1.x - _triangleCorner3.x)) - ((_pointToCheck.x - _triangleCorner3.x) * (_triangleCorner1.y - _triangleCorner3.y));
var _local5 = ((_pointToCheck.y - _triangleCorner2.y) * (_triangleCorner3.x - _triangleCorner2.x)) - ((_pointToCheck.x - _triangleCorner2.x) * (_triangleCorner3.y - _triangleCorner2.y));
if (((_local6 * _local5) > 0) && ((_local5 * _local7) > 0)) {
return(true);
}
return(false);
}
static function GetAreaFromTriangle(p1, p2, p3) {
var _local4 = 0.5 * Math.abs(((p1.x * (p3.y - p2.y)) + (p2.x * (p1.y - p3.y))) + (p3.x * (p2.y - p1.y)));
return(_local4);
}
static function GetPointofIntersection(p1, p2, p3, p4, useInfiniteLines) {
var _local5 = ((p4.y - p3.y) * (p2.x - p1.x)) - ((p4.x - p3.x) * (p2.y - p1.y));
if (_local5 == 0) {
return(new flash.geom.Point(0, 0));
}
var _local11 = ((p4.x - p3.x) * (p1.y - p3.y)) - ((p4.y - p3.y) * (p1.x - p3.x));
var _local10 = ((p2.x - p1.x) * (p1.y - p3.y)) - ((p2.y - p1.y) * (p1.x - p3.x));
var _local4 = _local11 / _local5;
var _local7 = _local10 / _local5;
if (useInfiniteLines || (((_local4 >= 0) && (_local4 < 1)) && ((_local7 >= 0) && (_local7 < 1)))) {
var _local9 = p1.x + (_local4 * (p2.x - p1.x));
var _local8 = p1.y + (_local4 * (p2.y - p1.y));
return(new flash.geom.Point(_local9, _local8));
}
return(new flash.geom.Point(0, 0));
}
}
Symbol 548 MovieClip [__Packages.com.digitaloutlook.Launchball] Frame 0
class com.digitaloutlook.Launchball extends MovieClip
{
var sState, nReleaseY, _parent, mcPlunger, nStartY, _y, nMaxForce, _visible, nDy, nYpos, nLaunchForce, _x;
function Launchball () {
super();
}
function onLoad() {
sState = "none";
nReleaseY = _parent.launchLine_mc._y;
_parent.launchLine_mc._visible = false;
mcPlunger = _parent.plunger_mc;
nStartY = _y;
nMaxForce = -45;
deActivate();
}
function deActivate() {
_visible = false;
_parent._parent.strongFlash_mc._visible = false;
_parent._parent.strongFlash_mc.gotoAndStop(1);
_parent.glow_mc.gotoAndStop(1);
sState = "none";
}
function onEnterFrame() {
if (!(sState === "onplunger")) {
} else {
nDy = nDy + 1.1;
nYpos = nYpos + nDy;
if (nYpos > mcPlunger._y) {
nDy = nDy * -0.5;
nYpos = mcPlunger._y;
}
if (nYpos < nReleaseY) {
deActivate();
if (_parent._parent.bTopFlipperToTheRigth) {
var _local2 = nLaunchForce * 8;
} else {
var _local2 = nLaunchForce * -8;
}
_parent._parent.SFX.playSound(2);
_parent._parent.bell_mc.play();
trace((("LAUNCH: " + nDy) + " ") + _local2);
if (nDy > -13) {
nDy = -13;
}
_parent._parent.resumeBall(_x, nReleaseY, _local2, nDy);
}
_y = nYpos;
}
}
function activate() {
_parent.glow_mc.play();
_parent._parent.strongFlash_mc._visible = true;
_parent._parent.strongFlash_mc.play();
_visible = true;
nYpos = nStartY;
_y = nYpos;
nDy = 0;
sState = "onplunger";
}
function launch(_force) {
_parent._parent.SFX.playSound(9);
nLaunchForce = Math.abs((0.5 * _force) + 0.5);
nYpos = mcPlunger._y;
nDy = nLaunchForce * nMaxForce;
}
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 9
gotoAndPlay ("jiggle");
Symbol 29 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 11
stop();
Symbol 38 MovieClip Frame 1
stop();
if (notfirstrun && (!this._parent.isInIdleMode)) {
this._parent.happyTriggersFinished();
}
notfirstrun = true;
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
if (notfirstrun && (!this._parent.isInIdleMode)) {
this._parent.funnyTriggersFinished();
}
notfirstrun = true;
Symbol 52 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
if (notfirstrun && (!this._parent.isInIdleMode)) {
this._parent.midrightTriggersFinished();
}
notfirstrun = true;
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 11
stop();
Symbol 66 MovieClip Frame 1
stop();
if (notfirstrun && (!this._parent.isInIdleMode)) {
this._parent.sunshineTriggersFinished();
}
notfirstrun = true;
Symbol 66 MovieClip Frame 2
Symbol 73 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
if (notfirstrun && (!this._parent.isInIdleMode)) {
this._parent.naughtyTriggersFinished();
}
notfirstrun = true;
Symbol 79 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
if (notfirstrun) {
this._parent.chatterTriggersFinished();
}
notfirstrun = true;
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 9
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
if (firstrun == undefined) {
var r = 13;
var a = new Array();
var cnt = 0;
var steps = 5;
var i = 0;
while (i < steps) {
a.push((this._x + (Math.cos(cnt) * r)) - this._parent.game.xOffset);
a.push((this._y + (Math.sin(cnt) * r)) - this._parent.game.yOffset);
cnt = cnt + ((Math.PI*2) / steps);
i++;
}
a.push((this._x + (1 * r)) - this._parent.game.xOffset);
a.push((this._y + (0 * r)) - this._parent.game.yOffset);
this._parent.registerCircleBumper("mrbump", this, a);
firstrun = false;
}
stop();
Symbol 132 MovieClip Frame 2
_parent.bumpglow_mc.play();
Symbol 135 MovieClip Frame 1
if (firstrun == undefined) {
var r = 13;
var a = new Array();
var cnt = (Math.random() * (Math.PI*2));
var steps = 7;
var i = 0;
while (i < steps) {
a.push((this._x + (Math.cos(cnt) * r)) - this._parent.game.xOffset);
a.push((this._y + (Math.sin(cnt) * r)) - this._parent.game.yOffset);
cnt = cnt + ((Math.PI*2) / steps);
i++;
}
a.push(a[0]);
a.push(a[1]);
this._parent.registerCircleBumper("misschatterbox", this, a, 1.5);
firstrun = false;
}
stop();
Symbol 138 MovieClip Frame 1
if (firstrun == undefined) {
var r = 13;
var a = new Array();
var cnt = 0;
var steps = 7;
var i = 0;
while (i < steps) {
a.push((this._x + (Math.cos(cnt) * r)) - this._parent.game.xOffset);
a.push((this._y + (Math.sin(cnt) * r)) - this._parent.game.yOffset);
cnt = cnt + ((Math.PI*2) / steps);
i++;
}
a.push((this._x + (1 * r)) - this._parent.game.xOffset);
a.push((this._y + (0 * r)) - this._parent.game.yOffset);
this._parent.registerCircleBumper("mrmessy", this, a, 2);
firstrun = false;
}
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
this.gotoAndStop(this._parent.sID);
Symbol 159 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
if (firstrun == undefined) {
var r = (this._width * 0.3);
var a = new Array();
a.push((this._x - r) - this._parent.game.xOffset);
a.push(this._y - this._parent.game.yOffset);
a.push((this._x + r) - this._parent.game.xOffset);
a.push(this._y - this._parent.game.yOffset);
a.push(this._x - this._parent.game.xOffset);
a.push((this._y - r) - this._parent.game.yOffset);
a.push(this._x - this._parent.game.xOffset);
a.push((this._y + r) - this._parent.game.yOffset);
this._parent.registerPlughole(sID, this, a);
firstrun = false;
}
stop();
Symbol 162 MovieClip Frame 2
if (this._parent.bCrazyTickleMode) {
ball_mc.ball_mc.gotoAndStop(2);
}
Symbol 162 MovieClip Frame 28
this._parent.plugholedone("hide", sID);
this.gotoAndStop(1);
Symbol 162 MovieClip Frame 29
if (this._parent.bCrazyTickleMode) {
ball_mc.ball_mc.gotoAndStop(2);
}
Symbol 162 MovieClip Frame 40
this._parent.SFX.playSound(7);
Symbol 162 MovieClip Frame 51
this._parent.plugholedone("show", sID);
Symbol 164 MovieClip Frame 1
if (firstrun == undefined) {
var r = (this._width * 0.3);
var a = new Array();
a.push((this._x - r) - this._parent.game.xOffset);
a.push(this._y - this._parent.game.yOffset);
a.push((this._x + r) - this._parent.game.xOffset);
a.push(this._y - this._parent.game.yOffset);
a.push(this._x - this._parent.game.xOffset);
a.push((this._y - r) - this._parent.game.yOffset);
a.push(this._x - this._parent.game.xOffset);
a.push((this._y + r) - this._parent.game.yOffset);
this._parent.registerPlughole(sID, this, a);
firstrun = false;
}
stop();
Symbol 164 MovieClip Frame 2
if (this._parent.bCrazyTickleMode) {
ball_mc.ball_mc.gotoAndStop(2);
}
Symbol 164 MovieClip Frame 28
this._parent.plugholedone("hide", sID);
this.gotoAndStop(1);
Symbol 164 MovieClip Frame 29
if (this._parent.bCrazyTickleMode) {
ball_mc.ball_mc.gotoAndStop(2);
}
Symbol 164 MovieClip Frame 40
this._parent.SFX.playSound(7);
Symbol 164 MovieClip Frame 51
this._parent.plugholedone("show", sID);
Symbol 167 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 170 MovieClip [Launch ball] Frame 1
#initclip 6
Object.registerClass("Launch ball", com.digitaloutlook.Launchball);
#endinitclip
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
this.onEnterFrame = function () {
if (this._parent.bIsPauzed) {
stop();
} else {
play();
}
};
Symbol 172 MovieClip Frame 3
this._parent.SFX.playSound(27);
Symbol 172 MovieClip Frame 30
this._parent.SFX.playSound(19);
Symbol 172 MovieClip Frame 45
this._parent.greedyBallCaptureDone();
delete this.onEnterFrame;
Symbol 180 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
this.startY = this._y;
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
this.onEnterFrame = function () {
if (this._parent._parent.bIsPauzed) {
stop();
} else {
play();
}
};
Symbol 184 MovieClip Frame 229
this._parent._parent.tickleCrazyBallFinished();
delete this.onEnterFrame;
Symbol 188 MovieClip Frame 1
this._visible = false;
Symbol 191 MovieClip Frame 1
stop();
if (firstrun == undefined) {
firstrun = false;
this._parent._parent.registerFlipper(this, "top");
}
Symbol 194 MovieClip Frame 1
stop();
if (firstrun == undefined) {
this._parent._parent.registerFlipper(this, "left");
firstrun = false;
}
Symbol 195 MovieClip Frame 1
stop();
if (firstrun == undefined) {
this._parent._parent.registerFlipper(this, "right");
firstrun = false;
}
Symbol 196 MovieClip Frame 1
stop();
if (firstrun == undefined) {
this._parent._parent.registerFlipper(this, "right");
firstrun = false;
}
Symbol 197 MovieClip Frame 1
stop();
if (firstrun == undefined) {
this._parent._parent.registerFlipper(this, "left");
firstrun = false;
}
Symbol 206 MovieClip Frame 1
if (firstrun == undefined) {
firstrun = false;
this._parent.registerVectors(this, "rotatingthingy", 2);
this.onEnterFrame = function () {
this._parent.updateRegisteredVectors(this, "rotatingthingy", 2);
};
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._parent.game.ballState == 1) {
this._visible = this._parent.bXisActive;
} else {
this._visible = false;
}
this._x = this._parent.game_mc.ob_mc._x;
this._y = this._parent.game_mc.ob_mc._y;
this._rotation = this._parent.game_mc.ob_mc._rotation;
this.gotoAndStop(this._parent.game_mc.ob_mc._currentframe);
};
Symbol 269 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 7
stop();
Symbol 278 MovieClip Frame 7
stop();
Symbol 279 MovieClip Frame 1
stop();
this._visible = false;
Symbol 280 MovieClip Frame 1
stop();
this._visible = false;
Symbol 326 MovieClip Frame 1
stop();
this._visible = false;
Symbol 326 MovieClip Frame 2
this._parent._parent.SFX.playSound(21, false, 100, false);
this.onEnterFrame = function () {
if (this._parent._parent.bIsPauzed) {
stop();
} else {
play();
}
};
Symbol 326 MovieClip Frame 54
this._parent._parent.SFX.stopSound(21);
Symbol 326 MovieClip Frame 73
this._parent._parent.SFX.playSound(22);
Symbol 326 MovieClip Frame 109
this._parent._parent.stopTickleLeftArmAnimation();
delete this.onEnterFrame;
Symbol 379 MovieClip Frame 1
stop();
this._visible = false;
Symbol 379 MovieClip Frame 2
this._parent._parent.SFX.playSound(21, false, 100, false);
this.onEnterFrame = function () {
if (this._parent._parent.bIsPauzed) {
stop();
} else {
play();
}
};
Symbol 379 MovieClip Frame 60
this._parent._parent.SFX.stopSound(21);
Symbol 379 MovieClip Frame 87
this._parent._parent.SFX.playSound(22);
Symbol 379 MovieClip Frame 123
this._parent._parent.stopTickleRightArmAnimation();
delete this.onEnterFrame;
Symbol 386 MovieClip Frame 10
gotoAndPlay ("loop");
Symbol 393 MovieClip Frame 1
bonus_txt.text = this._parent.bonusScore;
Symbol 394 MovieClip Frame 1
function setScore(s) {
if (s == undefined) {
s = this._parent.getScore();
}
sc = "" + s;
while (sc.length < 8) {
sc = "0" + sc;
}
score_txt.text = sc;
}
stop();
setScore();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 14
stop();
Symbol 403 MovieClip Frame 25
stop();
Symbol 403 MovieClip Frame 38
stop();
Symbol 463 Button
on (release) {
play();
}
Symbol 472 MovieClip Frame 84
gotoAndPlay ("loop");
Symbol 509 MovieClip Frame 1
this._visible = false;
Symbol 509 MovieClip Frame 2
this._visible = true;
Symbol 509 MovieClip Frame 26
if (bShowhelp) {
this.gotoAndPlay("help");
}
Symbol 509 MovieClip Frame 41
play_mc.onRelease = function () {
this._parent._parent.startNewGame();
this._parent.gotoAndStop(1);
};
howto_mc.onRelease = function () {
this._parent.gotoAndPlay("howto");
};
Symbol 509 MovieClip Frame 45
mrBump_mc.gotoAndPlay("loop");
Symbol 509 MovieClip Frame 48
stop();
Symbol 509 MovieClip Frame 67
stop();
Symbol 509 MovieClip Frame 70
play_mc.onRelease = function () {
this._parent._parent.resumeGame();
this._parent.gotoAndStop(1);
};
Symbol 509 MovieClip Frame 79
stop();
Symbol 509 MovieClip Frame 90
function getScore() {
return(this._parent.getScore());
}
this._visible = true;
Symbol 509 MovieClip Frame 115
howto_mc.onRelease = function () {
this._parent.gotoAndPlay("howto2");
};
Symbol 509 MovieClip Frame 119
play_mc.onRelease = function () {
this._parent._parent.startNewGame();
this._parent.gotoAndStop(1);
};
Symbol 509 MovieClip Frame 135
sc = "" + this._parent.getHighScore();
while (sc.length < 7) {
sc = "0" + sc;
}
high_score_txt.text = sc;
Instance of Symbol 508 MovieClip "logo_mc" in Symbol 509 MovieClip Frame 141
/* no clip actions */
Symbol 509 MovieClip Frame 142
stop();
logo_mc.onPress = function () {
getURL ("http://www.mrmen.com", "_blank");
};
Symbol 509 MovieClip Frame 165
stop();
Symbol 543 MovieClip Frame 1
stop();