Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"569e0433de29e489", res:"850x400"});
stop();
Frame 2
_global.write_game_cookie = function (game_id, playerName, lp, bs) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace(((((((("writing cookie......name : " + game_id) + " ") + playerName) + " ") + lp) + " ") + bs) + " ");
so.data.game_id = game_id;
so.data.playerName = playerName;
so.data.lp = lp;
so.data.bs = bs;
so.flush();
};
_global.reset_game_cookie_variables = function () {
trace("resetting cookie variables");
_global.playerName = "Enter Name";
_global.lp = 222222222222;
_global.bs = 0;
};
_global.read_game_cookie = function (game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
reset_game_cookie_variables();
write_game_cookie(game_id, playerName, lp, bs);
} else {
result = true;
trace("cookie....");
trace("reading cookie....");
_global.game_id = so.data.game_id;
_global.playerName = so.data.playerName;
_global.lp = so.data.lp;
_global.bs = so.data.bs;
trace((((((("reading cookie......name : " + game_id) + " ") + playerName) + " ") + lp) + " ") + bs);
}
return(result);
};
_global.game_id = "9dartfinish_v1.002";
var exists = read_game_cookie(game_id);
if (exists == false) {
write_game_cookie(game_id, "Enter Name", 222222222222, 0);
}
_global.AudioPlaying = true;
_global.calcFPS = function (intitalise) {
if (intitalise) {
_global.startTime = getTimer();
this.frmCtr = 0;
}
this.frmCtr++;
var _local4 = getTimer();
var _local3 = (_local4 - startTime) / 1000;
_global.actualFPS = frmCtr / _local3;
};
Frame 4
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_quality = "high";
var total;
var my_loaded;
var the_perc;
progresss.onEnterFrame = function () {
total = getBytesTotal();
my_loaded = getBytesLoaded();
if (isNaN(my_loaded) || (isNaN(total))) {
the_perc = 0;
} else {
the_perc = (my_loaded / total) * 100;
}
progresss.circ.gotoAndStop(Math.floor(the_perc + 1));
if (the_perc > 99) {
gotoAndPlay ("check4ani");
}
};
progresss.bar._xscale = 0;
stop();
trace("I GOT HERE POPPA");
Frame 8
var my_date = new Date();
var now = my_date.getTime();
var diff = (now - _global.lp);
if (diff < 14000000) {
trace(diff + "welcome");
gotoAndPlay ("welcome");
} else {
trace(diff + "theAni");
gotoAndPlay ("theAni");
}
stop();
Frame 10
play();
Frame 201
play();
Frame 204
playGame.onPress = function () {
gotoAndPlay ("playGame");
};
instro.onPress = function () {
gotoAndPlay ("instro");
};
stop();
function checkAudio() {
if (_global.AudioPlaying) {
sfx.gotoAndStop(1);
trace("audio on");
_global.volLev = 75;
} else {
sfx.gotoAndStop(2);
_global.volLev = 0;
trace("audio off");
}
}
sfx.onPress = function () {
_global.AudioPlaying = !_global.AudioPlaying;
checkAudio();
};
sfx.onRollOver = function () {
sfx.theBut.gotoAndStop(2);
};
sfx.onRollOut = (sfx.onReleaseOutside = function () {
sfx.theBut.gotoAndStop(1);
});
checkAudio();
Frame 205
play();
Frame 208
playGame.onPress = function () {
gotoAndPlay ("playGame");
};
stop();
Frame 209
play();
Frame 212
stop();
function positionArm() {
var _local2 = 149.856598119669;
var _local1 = 1.95378101357928;
var _local3 = hero.clip._rotation / game.PI_RADIANS;
_local1 = _local1 + _local3;
hero.arm._x = hero.clip._x - (_local2 * Math.cos(_local1));
hero.arm._y = hero.clip._y - (_local2 * Math.sin(_local1));
}
function moveArm() {
var _local6 = {x:hero.arm._x, y:hero.arm._y};
torso.localToGlobal(_local6);
var _local10 = _local6.x;
var _local8 = _local6.y;
var _local12 = game.clip._xmouse;
var _local11 = game.clip._ymouse;
var _local13 = hero.clip._rotation / game.PI_RADIANS;
var _local7 = Math.atan2(_local11 - _local8, _local12 - _local10);
var _local1 = returnHyp(_local12 - _local10, _local11 - _local8);
var _local2 = 75;
var _local3 = 60;
_local1 = Math.min(_local1, _local2 + _local3);
_local1 = Math.max(_local1, 15);
var _local16;
cos_ang_F = (((_local1 * _local1) + (_local2 * _local2)) - (_local3 * _local3)) / ((2 * _local1) * _local2);
_local16 = (((_local3 * _local3) + (_local2 * _local2)) - (_local1 * _local1)) / ((2 * _local2) * _local3);
cos_ang_U = (((_local3 * _local3) + (_local1 * _local1)) - (_local2 * _local2)) / ((2 * _local3) * _local1);
var _local9 = Math.acos(cos_ang_F);
var _local19 = Math.acos(cos_ang_U);
var _local5 = Math.acos(_local16);
_local5 = Math.max(_local5, 0.4);
var _local4 = _local7 + _local9;
_local4 = Math.min(_local4, game.PIdiv2);
_local4 = Math.max(_local4, -game.PIdiv2);
var _local15 = _local1 / 2;
var _local18 = returnHyp(_local2, _local15);
var _local14 = _local10 + (_local2 * Math.cos(_local4));
var _local17 = _local8 + (_local2 * Math.sin(_local4));
var _local23 = _local14 + (_local3 * Math.cos(((_local7 + _local9) + _local5) + game.PI));
var _local22 = _local17 + (_local3 * Math.sin(((_local7 + _local9) + _local5) + game.PI));
hero.arm._rotation = (_local4 - _local13) * game.PI_RADIANS;
hero.arm.f_arm._rotation = (_local5 + game.PI) * game.PI_RADIANS;
hero.f_arm_r = ((hero.arm.f_arm._rotation + hero.arm._rotation) + hero.clip._rotation) / game.PI_RADIANS;
}
function holdDart() {
var _local1 = game.currentDart;
var _local2 = {x:hero.arm.f_arm.dot._x, y:hero.arm.f_arm.dot._y};
hero.arm.f_arm.localToGlobal(_local2);
_local1.speed = 0;
_local1.throw_rot = 0;
_local1.rot = hero.f_arm_r + game.PIdiv2;
_local1.xpos = _local2.x;
_local1.ypos = _local2.y;
_local1._x = _local1.xpos;
_local1._y = _local1.ypos;
_local1._rotation = _local1.rot * game.PI_RADIANS;
}
function throwDart() {
var _local1 = game.currentDart;
var _local2 = {x:hero.arm.f_arm.dot._x, y:hero.arm.f_arm.dot._y};
hero.arm.f_arm.localToGlobal(_local2);
var _local3 = Math.atan2(_local2.y - _local1.ypos, _local2.x - _local1.xpos);
var _local4 = returnHyp(_local2.y - _local1.ypos, _local2.x - _local1.xpos);
var _local6;
var _local5;
if (hero.f_arm_r > (-game.PIdiv2)) {
_local6 = _local1.throw_rot * 0.85;
_local5 = _local3 * 0.15;
if (_local1.speed < 0.1) {
game.clicked = false;
}
} else {
_local6 = _local1.throw_rot * 0.5;
_local5 = _local3 * 0.5;
}
if (_local2.x < _local1.xpos) {
_local1.speed = _local1.speed - _local4;
} else {
_local1.speed = _local1.speed + _local4;
_local1.throw_rot = _local6 + _local5;
_local1.rot = hero.f_arm_r + game.PIdiv2;
}
_local1.speed = _local1.speed * 0.65;
_local3 = (_local1.throw_rot * 0.65) + (_local1.rot * 0.35);
_local1.xspeed = _local1.speed * Math.cos(_local3);
_local1.yspeed = _local1.speed * Math.sin(_local3);
_local1.xpos = _local2.x;
_local1.ypos = _local2.y;
_local1._x = _local1.xpos;
_local1._y = _local1.ypos;
_local1._rotation = _local3 * game.PI_RADIANS;
}
function flyDart() {
var _local2 = game.currentDart;
var _local6 = false;
_local2.xspeed = _local2.xspeed * 0.985;
_local2.yspeed = _local2.yspeed + 0.4;
var _local3 = {x:_local2.dot._x, y:_local2.dot._y};
_local2.localToGlobal(_local3);
var _local4 = game.board._x + _local2.xvar;
if ((_local3.y + _local2.yspeed) > 420) {
game.dartFloor++;
_local2.ypos = _local2.ypos + (420 - _local3.y);
_local2.xspeed = (_local2.yspeed = 0);
_local6 = true;
if (_global.AudioPlaying) {
game.gah.start();
}
} else if ((_local3.x + _local2.xspeed) > _local4) {
if (_global.AudioPlaying) {
game["dart" + game.currentDart.sound].start();
}
var _local7 = _local4 - _local3.x;
_local2.xpos = _local2.xpos + _local7;
var _local9 = _local7 / _local2.xspeed;
var _local8 = _local2.yspeed * _local9;
_local2.ypos = _local2.ypos + _local8;
_local2.xspeed = (_local2.yspeed = 0);
_local6 = true;
_local4 = _local3.x + _local7;
var _local5 = _local3.y + _local8;
if (game.board.hA1.hitTest(_local4, _local5, true)) {
game.dartFloor = 0;
game.score = game.score + 100;
game.levScore = game.levScore + 100;
game.lastScore = 100;
game.howDrunk = game.howDrunk + 1;
if (_global.AudioPlaying) {
game.cheer.start();
}
} else if (game.board.hA2.hitTest(_local4, _local5, true)) {
game.dartFloor = 0;
game.score = game.score + 60;
game.levScore = game.levScore + 60;
game.lastScore = 60;
game.howDrunk = game.howDrunk + 0.8;
if (_global.AudioPlaying) {
game.cheer.start();
}
} else if (game.board.hA3.hitTest(_local4, _local5, true)) {
game.dartFloor = 0;
game.score = game.score + 40;
game.levScore = game.levScore + 40;
game.lastScore = 40;
game.howDrunk = game.howDrunk + 0.6;
} else if (game.board.hA4.hitTest(_local4, _local5, true)) {
game.score = game.score + 30;
game.levScore = game.levScore + 30;
game.lastScore = 30;
game.howDrunk = game.howDrunk + 0.4;
} else if (game.board.hA5.hitTest(_local4, _local5, true)) {
game.dartFloor = 0;
game.score = game.score + 20;
game.levScore = game.levScore + 20;
game.lastScore = 20;
game.howDrunk = game.howDrunk + 0.2;
} else if (game.board.hA6.hitTest(_local4, _local5, true)) {
game.dartFloor = 0;
game.score = game.score + 10;
game.levScore = game.levScore + 10;
game.lastScore = 10;
game.howDrunk = game.howDrunk + 0.1;
} else {
game.howDrunk = game.howDrunk + 0.02;
if (_global.AudioPlaying) {
game.gah.start();
}
}
game.howDrunk = Math.min(game.howDrunk, 9);
if (game.howDrunk > 2) {
hero.clip.head.ringf_1._visible = (hero.clip.head.ringb_1._visible = true);
}
if (game.howDrunk > 4) {
hero.clip.head.ringf_2._visible = (hero.clip.head.ringb_2._visible = true);
}
if (game.howDrunk > 6) {
hero.clip.head.ringf_3._visible = (hero.clip.head.ringb_3._visible = true);
}
} else {
_local2.xpos = _local2.xpos + _local2.xspeed;
_local2.ypos = _local2.ypos + _local2.yspeed;
var _local11 = Math.atan2(_local2.yspeed, _local2.xspeed);
var _local10 = _local2.rot;
_local2.rot = (_local11 + _local10) * 0.5;
}
_local2._x = _local2.xpos;
_local2._y = _local2.ypos;
_local2._rotation = _local2.rot * game.PI_RADIANS;
return(_local6);
}
function returnHyp(xx, yy) {
var _local2 = xx * xx;
var _local3 = yy * yy;
var _local1 = _local2 + _local3;
var _local4 = Math.sqrt(_local1);
return(_local4);
}
function movePlayer(pos) {
var _local4;
var _local1;
var _local2;
if (pos == 1) {
_local4 = 0;
_local1 = 95;
_local2 = -25;
} else {
_local4 = -20;
_local1 = 14;
_local2 = -78;
}
var _local5 = hero.clip.head._rotation;
var _local3 = hero.clip.l_arm._rotation;
var _local6 = hero.clip.l_arm.f_arm._rotation;
hero.clip.head._rotation = hero.clip.head._rotation + ((_local4 - _local5) / 14);
hero.clip.l_arm._rotation = hero.clip.l_arm._rotation + ((_local1 - _local3) / 14);
hero.clip.l_arm.f_arm._rotation = hero.clip.l_arm.f_arm._rotation + ((_local2 - _local6) / 14);
hero.clip.l_arm.f_arm.pint.beer._rotation = ((hero.clip.l_arm.f_arm.pint._rotation - hero.clip.l_arm.f_arm._rotation) - hero.clip.l_arm._rotation) - hero.clip._rotation;
if (Math.abs(_local1 - _local3) < 0.85) {
return(true);
}
return(false);
}
function doDrunkItems() {
var _local7 = game.howDrunk / 10;
var _local9 = _local7;
hero.rot = hero.rot + ((_local9 / 2) * hero.rotDir);
var _local8 = hero.maxRot * _local7;
if ((hero.rot > _local8) || (hero.rot < (-_local8))) {
hero.rotDir = hero.rotDir * -1;
}
hero.clip._rotation = hero.rot;
positionArm();
var _local6 = game.howDrunk / 9;
var _local4 = 0;
while (_local4 < game.drunkItems.length) {
var _local1 = game.drunkItems[_local4];
if (_local1.canDrunk) {
var _local2 = (_local6 * Math.abs(Math.cos(_local1.drunkCtr))) * _local1.maxDist;
_local1.d1._x = -_local2;
_local1.d1._y = -_local2;
_local1.d2._x = _local2;
_local1.d2._y = _local2;
var _local3 = ((_local6 * Math.round(_local6 / 2)) * Math.abs(Math.sin(_local1.drunkCtr))) * (_local1.maxDist / 2);
_local1.d3._x = _local3;
_local1.d3._y = -_local3;
_local1.d4._x = -_local3;
_local1.d4._y = _local3;
_local1.drunkCtr = _local1.drunkCtr + (game.ONE_OVER_PI_RADIAN * 1.5);
}
var _local5 = 0.025;
hero.h1_rot = hero.h1_rot + (_local5 * hero.h1_dir);
hero.h2_rot = hero.h2_rot + ((_local5 * 2) * hero.h2_dir);
hero.h3_rot = hero.h3_rot + ((_local5 * -1.5) * hero.h3_dir);
if ((hero.h1_rot > 10) || (hero.h1_rot < -10)) {
hero.h1_dir = hero.h1_dir * -1;
}
if ((hero.h2_rot > 10) || (hero.h2_rot < -10)) {
hero.h2_dir = hero.h2_dir * -1;
}
if ((hero.h3_rot > 10) || (hero.h3_rot < -10)) {
hero.h3_dir = hero.h3_dir * -1;
}
hero.clip.head.ringf_1._rotation = (hero.clip.head.ringb_1._rotation = hero.h1_rot);
hero.clip.head.ringf_2._rotation = (hero.clip.head.ringb_2._rotation = hero.h2_rot);
hero.clip.head.ringf_3._rotation = (hero.clip.head.ringb_3._rotation = hero.h3_rot);
hero.clip.head.ringf_1._y = (hero.clip.head.ringb_1._y = -74 + (Math.sin(hero.h3_rot / game.PI_RADIANS) * 3));
hero.clip.head.ringf_2._y = (hero.clip.head.ringb_2._y = -74 + (Math.sin(hero.h1_rot / game.PI_RADIANS) * 3));
hero.clip.head.ringf_3._y = (hero.clip.head.ringb_3._y = -74 + (Math.cos(hero.h2_rot / game.PI_RADIANS) * 3));
_local4++;
}
}
function checkPlayaName() {
var _local2 = game.clip.game_over.playa;
if ((((((_local2.text.indexOf("Enter ") > -1) || (_local2.text.indexOf("Name") > -1)) || (_local2.text == "")) || (_local2.text == " ")) || (_local2.text == " ")) || (_local2.text.indexOf(" ") > -1)) {
return(false);
}
_global.playerName = _local2.text;
return(true);
}
function setUpLevel() {
game.dartFloor = 0;
game.dart = 0;
game.levScore = (game.levScoreD = 0);
game.clip.levelN.leveller.text = "Level " + game.lev;
var _local1 = [null, 5, 10, 20, 50, 90, 125, 150, 200, 250];
game.minScore = _local1[game.lev];
game.clip.levelN.feedback.text = ((String.fromCharCode(13) + "You need to score ") + game.minScore) + " to continue to the next level...";
game.moveOn = false;
game.setUp = true;
game.clip.levelN._x = 0;
}
function addComment() {
var _local3 = random(3);
var _local2 = random(4);
var _local1;
if (game.dartFloor >= 2) {
_local1 = "You're releasing too late! Let go earlier to aim higher!";
} else if (_local3 == 0) {
if (game.howDrunk > 8) {
if (_local2 == 0) {
_local1 = "He's an absolute drinking machine...";
} else if (_local2 == 1) {
_local1 = "...And he's still playing great darts.";
} else if (_local2 == 2) {
_local1 = "It's an all round amazing performance.";
} else {
_local1 = ((String.fromCharCode(13) + "That scored ") + game.lastScore) + "!";
}
} else if (game.howDrunk > 4) {
if (_local2 == 0) {
_local1 = "He's looking a little wobbly...";
} else if (_local2 == 1) {
_local1 = "I think he may be a little past his best...";
} else if (_local2 == 2) {
_local1 = "I don't think he'll be able to keep this up much longer...";
} else {
_local1 = ((String.fromCharCode(13) + "A nice ") + game.lastScore) + " points!";
}
} else {
_local1 = (String.fromCharCode(13) + game.lastScore) + " points!";
}
} else if (_local3 == 1) {
if (game.lastScore > (game.minScore / 3)) {
if (_local2 == 0) {
_local1 = String.fromCharCode(13) + "That's good progress...";
} else if (_local2 == 1) {
_local1 = "He should make it through to the next round.";
} else if (_local2 == 2) {
_local1 = "If he keeps this up, he could go all the way!";
} else {
_local1 = ("Good shot, " + game.lastScore) + " points scored!";
}
} else if (_local2 == 0) {
_local1 = "That's not going to help him to the next round much!";
} else if (_local2 == 1) {
_local1 = "If he continues like that, he'll be out.";
} else if (_local2 == 2) {
_local1 = "That's not champion material...";
} else {
_local1 = ("Only " + game.lastScore) + " points scored!";
}
} else if (_local3 == 2) {
if (game.lastScore > 60) {
if (_local2 == 0) {
_local1 = String.fromCharCode(13) + "Absolute Dazzler!";
} else if (_local2 == 1) {
_local1 = "That's just fantastic stuff.";
} else if (_local2 == 2) {
_local1 = String.fromCharCode(13) + "What a throw!!";
} else {
_local1 = (("Brilliant!" + String.fromCharCode(13)) + game.lastScore) + " points!";
}
} else if (game.lastScore > 30) {
if (_local2 == 0) {
_local1 = String.fromCharCode(13) + "Pretty good going!";
} else if (_local2 == 1) {
_local1 = String.fromCharCode(13) + "Keep it up!";
} else if (_local2 == 2) {
_local1 = String.fromCharCode(13) + "That's not all bad!";
} else {
_local1 = (("Not bad!" + String.fromCharCode(13)) + game.lastScore) + " points!";
}
} else if (game.lastScore > 5) {
if (_local2 == 0) {
_local1 = String.fromCharCode(13) + "Pick up the pace a bit!";
} else if (_local2 == 1) {
_local1 = "It's good, but we're going to need more...";
} else if (_local2 == 2) {
_local1 = String.fromCharCode(13) + "Good effort!";
} else {
_local1 = (("Average stuff." + String.fromCharCode(13)) + game.lastScore) + " points!";
}
} else if (_local2 == 0) {
_local1 = String.fromCharCode(13) + "Oh dear!";
} else if (_local2 == 1) {
_local1 = "It's not good, not good at all...";
} else if (_local2 == 2) {
_local1 = "I don't know what to make of this performance!";
} else {
_local1 = String.fromCharCode(13) + "Hopeless stuff.";
}
}
game.clip.commentary.theComment.text = _local1;
}
function phaseControl() {
var _local5 = game.clip.commentary._currentframe - 1;
var _local7 = game.clip.commentary._currentframe + 1;
var _local8 = game.clip.commentary._totalframes;
switch (game.phase) {
case 0 :
if (movePlayer(hero.currentPos)) {
if (hero.currentPos == 1) {
hero.currentPos = 2;
} else {
hero.currentPos = 1;
var _local10 = ["hic", "slurp", "burp"];
var _local9 = random(3);
if (_global.AudioPlaying) {
game[_local10[_local9]].start();
}
}
}
var _local4;
if (game.setUp) {
game.dart++;
dispDarts();
_local4 = (("Dart" + game.lev) + "_") + game.dart;
game.currentDart = game.clip.attachMovie("Dart", _local4, (10 * game.dart) + game.lev);
var _local6 = 6;
game.currentDart.xvar = _local6 - ((_local6 * Math.random()) * 2);
game.currentDart.canDrunk = false;
game.currentDart.drunkCtr = 0;
game.currentDart.maxDist = 4;
game.currentDart.sound = 1 + random(4);
holdDart();
game.setUp = false;
} else {
holdDart();
if (game.moveOn) {
var _local3 = 1;
while (_local3 < 4) {
_local4 = (("Dart" + (game.lev - 1)) + "_") + _local3;
game.clip[_local4].removeMovieClip();
_local3++;
}
game.clip.levelN._x = 999;
game.phase = 1;
}
}
break;
case 1 :
if (_local5 > 0) {
game.clip.commentary.gotoAndStop(_local5);
}
movePlayer(1);
moveArm();
holdDart();
if (game.clicked) {
game.phase = 2;
}
break;
case 2 :
if (_local5 > 0) {
game.clip.commentary.gotoAndStop(_local5);
}
movePlayer(1);
moveArm();
throwDart();
if (!game.clicked) {
game.currentDart.canDrunk = true;
game.drunkItems.push(game.currentDart);
game.phase = 3;
game.lastScore = 0;
}
break;
case 3 :
if (_local5 > 0) {
game.clip.commentary.gotoAndStop(_local5);
}
moveArm();
if (flyDart()) {
game.phase = 4;
addComment();
}
break;
case 4 :
if (game.dart > 2) {
if (game.levScore >= game.minScore) {
game.lev++;
if (game.lev >= 10) {
if (_global.AudioPlaying) {
game.bigcheer.start();
}
game.clip.game_comp._x = 0;
game.clip.game_comp.feedback.text = ((((("Amazing, you've won the championship!!!" + String.fromCharCode(13)) + "You've scored ") + _root.game.score) + "!") + String.fromCharCode(13)) + "Enter your name & submit your score, or try again!!";
if (_root.game.score > _global.bs) {
_global.bs = _root.game.score;
}
game.phase = 999;
return(undefined);
}
if (_global.AudioPlaying) {
game.bigcheer.start();
}
setUpLevel();
break;
}
game.clip.game_over._x = 0;
if (_root.game.score == 0) {
game.clip.game_over.feedback.text = ((("Oh Dear!!!" + String.fromCharCode(13)) + "You've scored nothing!") + String.fromCharCode(13)) + "Why don't you try again!!";
game.clip.game_over.submit._y = 999;
game.clip.game_over.menoo._x = 375;
game.clip.game_over.playa._visible = false;
} else {
game.clip.game_over.feedback.text = ((((("Well Done!!!" + String.fromCharCode(13)) + "You've scored ") + _root.game.score) + "!") + String.fromCharCode(13)) + "Enter your name & submit your score, or try again!!";
if (_root.game.score > _global.bs) {
_global.bs = _root.game.score;
}
}
game.phase = 999;
return(undefined);
}
if (movePlayer(2)) {
var _local10 = ["hic", "slurp", "burp"];
var _local9 = random(3);
if (_global.AudioPlaying) {
game[_local10[_local9]].start();
}
game.setUp = true;
game.phase = 0;
}
if (!(game.dart === 0)) {
if (_local7 < _local8) {
game.clip.commentary.gotoAndStop(_local7);
}
}
moveArm();
}
doDrunkItems();
updateDisplays();
}
function updateDisplays() {
var _local11 = Math.floor(game.score);
if (game.scoreD < _local11) {
if (game.scoreD <= (_local11 - 10)) {
game.scoreD = game.scoreD + 10;
} else {
game.scoreD++;
}
} else if (game.scoreD > _local11) {
if (game.scoreD >= (_local11 + 10)) {
game.scoreD = game.scoreD - 10;
} else {
game.scoreD--;
}
}
var _local12 = Math.floor(game.levScore);
if (game.levScoreD < _local12) {
if (game.levScoreD <= (_local12 - 10)) {
game.levScoreD = game.levScoreD + 10;
} else {
game.levScoreD++;
}
} else if (game.levsScoreD > _local12) {
if (game.levScoreD >= (_local12 + 10)) {
game.levScoreD = game.levScoreD - 10;
} else {
game.levScoreD--;
}
}
var _local10 = String(game.scoreD);
var _local5 = [];
var _local9 = String(game.levScoreD);
var _local6 = [];
var _local1 = 0;
while (_local1 < 5) {
var _local4 = Math.pow(10, _local1);
var _local2 = _local10.charAt(_local10.length - (_local1 + 1));
if (_local2) {
_local5[_local1] = _local2;
} else {
_local5[_local1] = 0;
}
var _local8 = "f" + _local5[_local1];
game.clip.disp_score["score" + _local4].gotoAndStop(_local8);
var _local3 = _local9.charAt(_local9.length - (_local1 + 1));
if (_local3) {
_local6[_local1] = _local3;
} else {
_local6[_local1] = 0;
}
var _local7 = "f" + _local6[_local1];
game.clip.disp_levScore["score" + _local4].gotoAndStop(_local7);
_local1++;
}
}
function dispDarts() {
var _local1 = 1;
while (_local1 <= 3) {
if (_local1 > game.dart) {
game.clip.disp_darts["dart" + _local1]._visible = true;
} else {
game.clip.disp_darts["dart" + _local1]._visible = false;
}
_local1++;
}
}
game = {PI:3.14159265, PI_RADIANS:57.2958, ONE_OVER_PI_RADIAN:0.0174532863};
game.PIdiv2 = game.PI / 2;
game.clip = _root.game_stuff;
game.dart = 0;
game.phase = 0;
game.howDrunk = 0;
game.lev = 1;
game.score = (game.scoreD = 0);
game.levScore = (game.levScoreD = 0);
game.minScore = 0;
game.lastScore = 0;
game.clicked = false;
game._button = game.clip.attachMovie("invis", "invis", 1018);
game._button._x = 0;
game._button._y = 0;
game.dart1 = new Sound();
game.dart1.attachSound("dart1");
game.dart2 = new Sound();
game.dart2.attachSound("dart2");
game.dart3 = new Sound();
game.dart3.attachSound("dart3");
game.dart4 = new Sound();
game.dart4.attachSound("dart4");
game.cheer = new Sound();
game.cheer.attachSound("cheer");
game.bigcheer = new Sound();
game.bigcheer.attachSound("bigcheer");
game.gah = new Sound();
game.gah.attachSound("gah");
game.pub = new Sound();
game.pub.attachSound("pub");
game.hic = new Sound();
game.hic.attachSound("hic");
game.slurp = new Sound();
game.slurp.attachSound("slurp");
game.burp = new Sound();
game.burp.attachSound("burp");
game._button.onPress = function () {
game.clicked = true;
};
game._button.onRelease = (game._button.onReleaseOutside = function () {
game.clicked = false;
});
game.drunkItems = [];
game.board = game.clip.attachMovie("Board", "Board", 2);
game.board._x = 750;
game.board._y = 150;
game.board.canDrunk = true;
game.board.drunkCtr = 0;
game.board.maxDist = 15;
game.drunkItems.push(game.board);
game.bgLights = game.clip.attachMovie("BackGroundLights", "BackGroundLights", -21);
game.bgLights._x = -115;
game.bgLights._y = 0;
var i = 1;
while (i <= 6) {
game.bgLights["light" + i].dir = Math.pow(-1, random(2));
game.bgLights["light" + i].maxRot = 10;
game.bgLights["light" + i]._rotation = 10 - (20 * Math.random());
i++;
}
game.whichLite = 1;
game.bg = game.clip.attachMovie("BackGround", "BackGround", -20);
game.bg._x = -15;
game.bg._y = 85;
game.bg.canDrunk = true;
game.bg.drunkCtr = 0;
game.bg.maxDist = 5;
game.drunkItems.push(game.bg);
game.howDrunk = 0;
hero = {};
hero.clip = game.clip.attachMovie("Player", "Player", 100);
hero.clip._x = 150;
hero.clip._y = 400;
hero.rot = (hero.clip._rotation = 0);
hero.clip.l_arm._rotation = 125;
hero.clip.l_arm.f_arm._rotation = -45;
hero.clip.head._rotation = 0;
hero.arm = game.clip.attachMovie("Arm", "Arm", 10);
hero.arm.f_arm.pint._visible = false;
var hedFrame = (random(3) + 1);
hero.clip.head.gotoAndStop(hedFrame);
var myColor = (Math.round(Math.random() * 11184810) + 4473924);
var myColoredObject = new Color(hero.clip.shirt);
myColoredObject.setRGB(myColor);
myColoredObject = new Color(hero.clip.l_arm.sleeve);
myColoredObject.setRGB(myColor);
myColoredObject = new Color(hero.arm.sleeve);
myColoredObject.setRGB(myColor);
hero.h1_dir = 1;
hero.h2_dir = 1;
hero.h3_dir = 1;
hero.h1_rot = 0;
hero.h2_rot = -8;
hero.h3_rot = 8;
hero.clip.head.ringf_1._y = (hero.clip.head.ringb_1._y = -74 + (Math.sin(hero.h3_rot / game.PI_RADIANS) * 3));
hero.clip.head.ringf_2._y = (hero.clip.head.ringb_2._y = -74 + (Math.sin(hero.h1_rot / game.PI_RADIANS) * 3));
hero.clip.head.ringf_3._y = (hero.clip.head.ringb_3._y = -74 + (Math.cos(hero.h2_rot / game.PI_RADIANS) * 3));
hero.clip.head.ringf_1._visible = (hero.clip.head.ringb_1._visible = false);
hero.clip.head.ringf_2._visible = (hero.clip.head.ringb_2._visible = false);
hero.clip.head.ringf_3._visible = (hero.clip.head.ringb_3._visible = false);
hero.rotAm = 0;
hero.rotDir = 1;
hero.maxRot = 5;
hero.currentPos = 1;
positionArm();
moveArm();
var disp_levScore = game.clip.attachMovie("disp_levScore", "disp_levScore", 1015);
disp_levScore._x = 10;
disp_levScore._y = 15;
var disp_score = game.clip.attachMovie("disp_score", "disp_score", 1016);
disp_score._x = (disp_levScore._x + disp_levScore._width) + 20;
disp_score._y = 15;
var disp_darts = game.clip.attachMovie("disp_darts", "disp_darts", 1017);
disp_darts._x = (disp_score._x + disp_score._width) + 20;
disp_darts._y = 15;
dispDarts();
var disp_commentary = game.clip.attachMovie("commentary", "commentary", 1014);
disp_commentary._x = (disp_darts._x + disp_darts._width) + 20;
disp_commentary._y = 15;
disp_commentary.theComment.text = "fuck off and die";
var levelN = game.clip.attachMovie("levelN", "levelN", 1019);
levelN._y = 0;
levelN.feedback.text = "";
game.moveOn = false;
levelN.cont.onRelease = function () {
game.moveOn = true;
};
setUpLevel();
var game_over = game.clip.attachMovie("game_over", "game_over", 1022);
game_over._x = 999;
game_over._y = 0;
game_over.feedback.text = "";
game_over.playa.text = _global.playerName;
var game_comp = game.clip.attachMovie("game_comp", "game_comp", 1023);
game_comp._x = 999;
game_comp._y = 0;
game_comp.feedback.text = "";
game_comp.playa.text = _global.playerName;
game_comp.menoo.onPress = (game_over.menoo.onPress = function () {
_root.gotoAndPlay("welcome");
});
game_comp.submit.onPress = (game_over.submit.onPress = function () {
this._parent.submit._y = 999;
this._parent.menoo._x = 375;
this._parent.playa.type = "dynamic";
var _local4 = "";
if (_root.game.score > 0) {
game_comp.score = Math.round(_root.game.score);
game_comp.playerName = _global.playerName;
game_comp.loadVariables("highscores_dartschampion.php?" + int(Math.random() * 100000), "POST");
_local4 = "Score submitted!";
_local4 = _local4 + String.fromCharCode(13, 13);
_local4 = _local4 + "Click the link beneath the game to view the high score table.";
} else {
_local4 = "Submit a score of zero?!?";
_local4 = _local4 + String.fromCharCode(13, 13);
_local4 = _local4 + "Er, why don't you have another try?";
}
this._parent.feedback.text = _local4;
});
game_comp.playa.onChanged = (game_over.playa.onChanged = function () {
if (checkPlayaName()) {
this._parent.submit._visible = true;
} else {
this._parent.submit._visible = false;
}
});
if (checkPlayaName()) {
game_over.submit._visible = true;
} else {
game_over.submit._visible = false;
}
game_stuff.onEnterFrame = function () {
phaseControl();
var _local5 = game.pub.position;
var _local3 = game.pub.duration;
game.pub.setVolume(_global.volLev);
if (_global.AudioPlaying) {
if ((_local5 > (_local3 - 50)) || (_local5 <= 1)) {
var _local4 = 1 + random(Math.floor(_local3 / 2));
_local4 = _local4 / 1000;
game.pub.start(_local4);
}
}
var _local6 = game.whichLite;
var _local2 = game.bgLights["light" + _local6];
_local2._rotation = _local2._rotation + (0.23 * _local2.dir);
if ((_local2._rotation > _local2.maxRot) || (_local2._rotation < (-_local2.maxRot))) {
_local2._rotation = _local2._rotation - (0.23 * _local2.dir);
_local2.dir = _local2.dir * -1;
}
game.whichLite++;
if (game.whichLite > 6) {
game.whichLite = 1;
}
};
Symbol 208 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 209 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 210 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.2 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 211 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 212 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 213 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 1
var tu = this._url.toLowerCase();
var tu2 = (((((((((((String.fromCharCode(109) + String.fromCharCode(111)) + String.fromCharCode(117)) + String.fromCharCode(115)) + String.fromCharCode(101)) + String.fromCharCode(98)) + String.fromCharCode(114)) + String.fromCharCode(101)) + String.fromCharCode(97)) + String.fromCharCode(107)) + String.fromCharCode(101)) + String.fromCharCode(114));
tu2 = tu2 + (((String.fromCharCode(46) + String.fromCharCode(99)) + String.fromCharCode(111)) + String.fromCharCode(109));
loadedd = tu.indexOf(tu2);
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 99 MovieClip [game_over] Frame 1
nuffin.onPress = function () {
};
nuff.useHandCursor = false;
Symbol 106 MovieClip [levelN] Frame 1
nuffin.onPress = function () {
};
nuff.useHandCursor = false;
Symbol 110 MovieClip [game_comp] Frame 1
nuffin.onPress = function () {
};
nuff.useHandCursor = false;
Symbol 121 MovieClip [commentary] Frame 1
stop();
bubble._visible = false;
theComment._visible = false;
Symbol 121 MovieClip [commentary] Frame 9
bubble._visible = true;
theComment._visible = true;
Symbol 138 MovieClip Frame 7
gotoAndPlay (1);
Symbol 141 MovieClip Frame 32
gotoAndPlay (1);
Symbol 147 MovieClip Frame 1
Symbol 147 MovieClip Frame 19
stop();
Symbol 161 MovieClip Frame 36
gotoAndPlay (1);
Symbol 175 Button
on (release) {
getURL ("http://www.mousebreaker.com/?utm_source=distributiongames&utm_medium=DartsChampion&utm_campaign=email", "_blank");
}
Symbol 179 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 457
meece.gotoAndStop(2);
Symbol 204 MovieClip Frame 484
meece.gotoAndStop(1);