Combined Code
movieClip 1 FlashAd {
frame 1 {
function initPlayButton() {
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
if (!this.showPlayButton) {
this.playButton._visible = false;
}
}
}
function onPlayClick() {
removeAd();
_visible = false;
}
stop();
}
frame 2 {
initPlayButton();
}
frame 10 {
initPlayButton();
}
frame 20 {
initPlayButton();
}
}
movieClip 2 Preloader {
frame 1 {
function enterFrameHandler() {
var v2 = 0;
v2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (loadingBar) {
loadingBar.gotoAndStop(int(v2 * (loadingBar._totalframes - 1)) + 1);
}
if (v2 >= 1) {
onEnterFrame = null;
gotoAndStop('loaded');
}
}
stop();
var autoPlay;
var className;
onEnterFrame = enterFrameHandler;
}
frame 10 {
function _onPlayClick() {
_root.nextFrame();
_root.play();
_parent._onLoaded();
}
if (playButton) {
playButton.onRelease = _onPlayClick;
playButton.stop();
}
if (autoPlay) {
_onPlayClick(null);
}
}
}
movieClip 3 APIConnector {
frame 1 {
function _onLoaded() {
gotoAndStop('invisible');
if (_redirect) {
com.newgrounds.API.loadOfficialVersion();
return undefined;
}
}
function _apiConnect() {
var v2 = com.newgrounds.API;
if (v2 && !v2.connected) {
if (!apiId) {
com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).');
return undefined;
}
switch (debugMode) {
case 'Off':
default:
v2.debugMode = v2.RELEASE_MODE;
goto 1299;
case 'Simulate Logged-in User':
//Invalid switch }
v2.debugMode = v2.DEBUG_MODE_LOGGED_IN;
goto 1299;
case 'Off':
v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT;
goto 1299;
case 'Simulate Logged-in User':
v2.debugMode = v2.DEBUG_MODE_NEW_VERSION;
goto 1299;
case 'Simulate Logged-out User':
v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED;
label 1299:
v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
v2.connect(_root, apiId, encryptionKey, movieVersion);
}
}
function _onConnected(event) {
if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) {
_redirect = true;
}
if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) {
_redirect = true;
}
if (_redirect) {
gotoAndStop('adPreloader');
forceAlwaysOnTop();
}
}
function forceAlwaysOnTop() {
var v2 = getNextHighestDepth();
swapDepths(v2);
if (Stage) {
_x = (Stage.width - _width) / 2;
_y = (Stage.height - _height) / 2;
_visible = true;
}
if (_root && _root instanceof MovieClip) {
(MovieClip(_root)).stop();
}
}
stop();
if (_root && _root instanceof MovieClip) {
(MovieClip(_root)).stop();
}
var apiId;
var encryptionKey;
var movieVersion;
var debugMode;
var connectorType;
var redirectOnHostBlocked;
var redirectOnNewVersion;
var adType;
var className;
var _redirect;
_x = int(_x);
_y = int(_y);
if (!debugMode) {
debugMode = 'Simulate Logged-in User';
}
if (!connectorType) {
connectorType = 'Flash Ad + Preloader';
}
if (!adType) {
adType = 'Video';
}
if (ad) {
ad.adType = adType;
}
switch (connectorType) {
case 'Flash Ad + Preloader':
gotoAndStop('adPreloader');
break;
case 'Flash Ad Only':
gotoAndStop('ad');
break;
case 'Invisible':
gotoAndStop('invisible');
}
_apiConnect();
}
instance ad of movieClip 1 FlashAd {
onClipEvent (construct) {
apiId = '';
showBorder = true;
adType = 'Video';
}
}
instance loader of movieClip 2 Preloader {
onClipEvent (construct) {
autoPlay = false;
mainClass = '';
}
}
}
movieClip 12 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2892 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -160 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 177) {
+= 121;
true;
}
if ( == 713) {
+= 93;
}
if ( == 540) {
+= 246;
}
if ( == 922) {
-= 382;
if ( != 983) break;
for (;;) {
-= 147;
} else {
+= 208;
if ( == 724) {
if (!'') {
}
-= 219;
}
if ( == 886) {
+= 89;
if ('') break;
continue;
-= 763;
}
if ( == 786) {
-= 786;
}
if ( == 173) {
+= 713;
}
if ( == 501) {
+= 421;
if (!'') {
break;
}
-= 382;
}
if ( == 174) {
+= 632;
}
if ( == 331) {
+= 170;
}
if ( != 836) break;
-= 505;
if ( == 806) {
-= 131;
}
if ( == 675) {
+= 308;
// An attempt to read a value from empty stack
var eval(undefined) = eval('' ::: !'');
}
if ( != 975) break;
-= 763;
if ( == 932) {
-= 219;
}
if ( != 987) break;
-= 263;
if ( == 477) {
+= 510;
}
if ( != 212) break;
+= 775;
-= 327;
+= 46;
-= 421;
+= 250;
}
eval('' ::: !'');
true;
!= 500;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
movieClip 14 {
frame 10 {
stop();
}
}
movieClip 16 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 18 {
}
movieClip 20 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 27 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (737 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 9 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 235) {
+= 132;
true;
}
if ( == 894) {
-= 891;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
if ( != 434) break;
+= 345;
// An attempt to read a value from empty stack
if (undefined) break;
goto 286;
+= 29;
label 286:
if ( == 268) {
+= 166;
// An attempt to read a value from empty stack
for (;;) {
if ( == 465) {
+= 77;
}
if ( != 313) break;
+= 206;
if ( == 718) {
-= 422;
}
if ( == 542) {
-= 355;
}
if ( != 367) break;
-= 135;
if (!true) {
goto 651;
}
+= 252;
label 651:
if ( != 561) break;
-= 235;
if ( == 296) {
-= 105;
}
if ( == 856) {
-= 669;
}
if ( == 779) {
+= 29;
}
if ( == 484) {
-= 171;
}
if ( == 191) {
-= 128;
if (!undefined) break;
continue;
+= 556;
}
if ( != 3) break;
+= 953;
if ( == 808) {
-= 490;
}
if ( == 63) {
+= 556;
}
-= 54;
if ( == 519) {
goto 1352;
}
+= 77;
label 1352:
-= 408;
+= 401;
+= 185;
+= 252;
+= 541;
+= 568;
-= 293;
-= 318;
-= 688;
-= 425;
}
!undefined;
'';
true;
'';
eval(1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2142 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 78 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 176) {
+= 609;
true;
}
if ( == 293) {
+= 436;
}
if ( == 306) {
+= 231;
}
if ( == 832) {
+= 5;
true;
}
if ( == 890) {
for (;;) {
+= 93;
if ( != 361) break;
+= 176;
if ( != 424) break;
+= 286;
if ( == 784) {
-= 784;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 537) {
+= 356;
true;
}
if ( == 45) {
+= 909;
'';
}
if ( != 710) break;
-= 455;
if ( == 180) {
+= 716;
}
if ( == 896) {
-= 447;
continue;
}
if ( == 317) {
+= 515;
}
if ( != 368) break;
+= 342;
if ( == 0) {
+= 890;
if (1) goto 1112;
continue;
label 1112:
+= 93;
}
if ( == 893) {
-= 600;
if (!1) {
} else {
+= 436;
}
}
if ( == 255) {
-= 210;
var = 1;
}
-= 347;
if ( == 785) {
continue;
}
-= 121;
-= 25;
-= 224;
-= 252;
-= 791;
-= 170;
-= 121;
-= 150;
-= 549;
-= 124;
-= 859;
}
'';
eval(1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 33 NewgroundsAPIAsset_Login_Warning {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2309 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 253 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 518) {
-= 105;
true;
}
if ( == 39) {
+= 855;
'';
}
if ( != 413) break;
+= 520;
// An attempt to read a value from empty stack
if (undefined) break;
goto 291;
-= 739;
label 291:
if ( == 194) {
+= 184;
for (;;) {
if ( == 913) {
-= 889;
}
if ( != 482) break;
-= 443;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
if ( == 894) {
-= 669;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( == 954) {
-= 472;
'';
1;
}
if ( != 491) break;
+= 117;
if ( == 38) {
+= 423;
}
if ( == 225) {
+= 503;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 524) {
-= 308;
true;
}
if ( != 380) break;
+= 574;
if ( == 933) {
-= 739;
}
if ( != 682) goto 1022;
+= 231;
label 1022:
-= 419;
+= 63;
-= 24;
+= 346;
if ( == 943) {
-= 46;
for (;;) {
}
}
+= 151;
+= 275;
-= 2;
-= 338;
}
!= 227;
true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 36 NewgroundsAPIAsset_Connection_Error {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1793 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 705 + ();
// An attempt to read a value from empty stack
while (!undefined) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 568;
continue;
if ( == 764) {
+= 3;
continue;
}
if ( != 920) break;
-= 156;
continue;
if ( == 28) {
+= 917;
continue;
}
if ( != 698) break;
for (;;) {
-= 334;
if ( == 277) {
+= 421;
}
if ( == 537) {
-= 509;
if ( != 397) break;
+= 266;
} else {
if (!(!true ::: eval(!true))) {
}
+= 62;
}
if ( != 364) break;
+= 482;
if (!(!true ::: eval(!true))) {
goto 676;
}
-= 724;
label 676:
if ( != 725) break;
+= 39;
if ( == 151) {
+= 216;
}
if ( == 945) {
-= 595;
// An attempt to read a value from empty stack
var eval(undefined) = != 965;
}
if ( != 767) break;
-= 616;
if ( == 965) {
goto 915;
}
+= 216;
label 915:
if ( == 367) {
-= 339;
}
if ( == 663) {
+= 62;
}
if ( != 350) break;
-= 73;
if ( == 846) {
-= 724;
}
if ( != 122) break;
+= 346;
goto 1293;
if ( == 468) {
-= 468;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1293:
Unknown action: 0xfc
'';
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 57 NewgroundsAPIAsset_big_popup_background {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (827 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 669 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 985) {
-= 86;
true;
}
if ( == 4) {
+= 812;
}
if ( != 545) break;
+= 156;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
-= 450;
if ( == 497) {
-= 229;
// An attempt to read a value from empty stack
for (;;) {
if ( == 702) {
-= 400;
}
if ( == 701) {
-= 450;
}
if ( == 899) {
+= 77;
if (!undefined) break;
continue;
-= 534;
}
if ( == 816) {
-= 377;
}
if ( == 251) {
+= 565;
}
if ( == 923) {
-= 221;
}
if ( != 439) break;
-= 116;
if (!undefined) break;
goto 809;
+= 234;
label 809:
if ( == 976) {
-= 534;
}
if ( == 323) {
+= 234;
}
if ( != 968) break;
-= 553;
if ( == 557) {
+= 145;
}
if ( == 442) {
-= 96;
}
if ( == 250) {
+= 96;
if ( != 302) break;
+= 666;
// An attempt to read a value from empty stack
if (undefined) break;
} else {
-= 553;
}
+= 162;
+= 199;
+= 165;
-= 47;
-= 105;
+= 166;
var = 1;
-= 111;
-= 30;
+= 364;
-= 18;
-= 779;
}
!= 415;
true;
;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
button 61 {
on (release) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2726 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 118 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 289) {
+= 703;
if ( != 628) break;
-= 63;
if (true) break;
goto 235;
+= 53;
label 235:
if ( == 859) {
+= 37;
// An attempt to read a value from empty stack
!undefined;
}
} else {
-= 852;
// An attempt to read a value from empty stack
if ( == 896) {
for (;;) {
if (!undefined) {
+= 682;
if ( != 618) break;
-= 553;
if ( == 279) {
-= 15;
}
if ( == 19) {
+= 840;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( != 726) break;
+= 107;
if ( == 732) {
-= 319;
}
if ( != 857) break;
-= 280;
if ( == 827) {
-= 74;
// An attempt to read a value from empty stack
if (!undefined) {
goto 793;
}
-= 21;
label 793:
}
if ( != 712) break;
+= 115;
if ( == 397) {
+= 315;
}
if ( == 264) {
+= 448;
}
if ( == 413) {
+= 215;
}
if ( != 577) break;
-= 481;
if ( == 617) {
-= 40;
}
if ( != 549) break;
-= 136;
if ( == 260) {
+= 357;
}
if ( != 565) break;
+= 53;
-= 355;
var eval(true) = != 595;
-= 221;
-= 732;
+= 183;
-= 21;
-= 243;
+= 530;
+= 682;
-= 833;
}
true;
'';
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
button 67 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 69 NewgroundsAsset_New_Version_Available {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (980 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -291 + ();
// An attempt to read a value from empty stack
while (!undefined) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 237;
continue;
if ( == 100) {
+= 80;
if (!true) {
goto 235;
}
+= 713;
label 235:
continue;
}
if ( == 893) {
-= 86;
goto 1292;
}
if ( == 844) {
for (;;) {
-= 744;
if ( != 678) break;
-= 541;
if (true) {
goto 424;
}
-= 116;
label 424:
if ( == 111) {
+= 96;
}
if ( == 121) {
+= 723;
}
if ( == 993) {
-= 947;
// An attempt to read a value from empty stack
var eval(undefined) = != 178 ::: eval( != 178);
}
if ( == 21) {
+= 553;
}
if ( == 415) {
+= 317;
if (!( != 178 ::: eval( != 178))) {
break;
}
+= 16;
}
if ( == 574) {
+= 419;
}
if ( != 180) break;
+= 713;
if ( == 732) {
+= 16;
}
if ( == 748) {
-= 541;
}
if ( == 207) {
+= 471;
}
if ( != 807) break;
-= 807;
if ( == 46) {
+= 75;
}
if ( != 906) break;
-= 332;
if ( == 137) {
-= 116;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1292:
Unknown action: 0xfc
!= 178;
true;
}
}
button 70 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 74 NewgroundsAsset_Illegal_Host {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2307 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -142 + ();
// An attempt to read a value from empty stack
while (!undefined) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 383;
continue;
if ( == 505) {
+= 45;
continue;
}
if ( != 418) break;
+= 276;
continue;
if ( == 661) {
-= 104;
var eval( != 121) = !true;
continue;
}
if ( == 134) {
for (;;) {
+= 305;
if ( != 439) break;
+= 176;
goto 1292;
if ( == 301) {
+= 243;
}
if ( == 544) {
+= 6;
}
if ( != 694) break;
-= 560;
if (true) {
} else {
+= 305;
}
if ( == 557) {
+= 388;
}
if ( == 550) {
+= 359;
}
if ( == 567) {
+= 409;
}
if ( == 945) {
-= 527;
}
if ( != 6) break;
+= 561;
if ( == 909) {
-= 903;
}
if ( != 615) break;
-= 615;
if ( == 976) {
-= 315;
}
if ( == 887) {
+= 89;
}
if ( == 504) {
-= 203;
if (!( != 121 ::: eval( != 121))) {
break;
}
+= 243;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1292:
Unknown action: 0xfc
!= 121;
!true;
}
}
movieClip 75 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
mochi.as2.MochiServices.connect('375dea50b63843cc');
Stage.showMenu = false;
Stage.scaleMode = 'noScale';
passwort = '';
stop();
}
frame 1 {
stop();
}
movieClip 109 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 110 {
}
movieClip 111 {
frame 1 {
var CPMStarPoolID = 30539;
var CPMStarSubPoolID = 1;
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?poolid=' + CPMStarPoolID + '&subpoolid=' + CPMStarSubPoolID);
}
}
movieClip 116 {
}
button 117 {
on (press) {
_root.play();
}
}
movieClip 118 {
frame 1 {
totalbytes = _root.getBytesTotal();
bytesloaded = _root.getBytesLoaded();
percent = int((bytesloaded / totalbytes) * 100);
if (percent < 0) {
percent = 0;
}
_root.ladescreen.loader.gotoAndStop(percent / 2);
}
frame 2 {
if (bytesloaded >= totalbytes) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
}
frame 3 {
stop();
}
}
movieClip 122 {
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 128 {
}
movieClip 129 {
}
movieClip 130 {
}
movieClip 134 {
}
movieClip 135 {
}
button 139 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
instance of movieClip 75 API Connector (NewgroundsAPI) {
onClipEvent (construct) {
api_id = '28378:R8KLmy5D';
encryption_key = 'I34UBUYBE1NjUySDogD5pilVgpHNmZAu';
version = '1.03';
fake_session = false;
debug = false;
error_screens = false;
medal_popups = false;
}
}
movieClip 144 {
}
movieClip 78 __Packages.com.newgrounds.Bridge {
#initclip
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1997 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -85 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 379) {
-= 70;
true;
}
if ( == 745) {
+= 224;
'';
1;
}
if ( == 565) {
-= 487;
goto 1468;
}
if ( == 127) {
+= 618;
}
if ( == 969) {
for (;;) {
-= 490;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
if ( != 751) break;
-= 518;
if ( == 786) {
-= 35;
}
if ( == 233) {
-= 154;
if (true) break;
continue;
+= 366;
}
if ( != 79) break;
+= 366;
if ( == 479) {
+= 383;
}
if ( == 445) {
+= 300;
}
if ( == 862) {
-= 287;
}
if ( == 575) {
-= 102;
}
if ( != 124) break;
+= 627;
if ( == 473) {
+= 192;
if (true ::: eval(true) ::: !(true ::: eval(true))) goto 970;
continue;
label 970:
-= 100;
}
if ( != 89) break;
+= 35;
if ( == 309) {
-= 220;
if (true ::: eval(true) ::: !(true ::: eval(true))) goto 1108;
continue;
label 1108:
+= 35;
}
if ( != 665) break;
-= 100;
if ( == 78) {
-= 78;
}
}
true ::: eval(true) ::: !(true ::: eval(true));
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1468:
Unknown action: 0xfc
#endinitclip
}
movieClip 82 __Packages.com.newgrounds.APIEvent {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1375 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 491 + ();
// An attempt to read a value from empty stack
while (!undefined) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 510;
continue;
if ( == 74) {
+= 788;
continue;
}
if ( != 123) break;
+= 790;
if (true) break;
goto 290;
-= 824;
continue;
label 290:
if ( == 744) {
for (;;) {
-= 302;
if ( != 180) break;
-= 28;
if ( == 95) {
+= 369;
}
if ( == 89) {
+= 599;
}
if ( != 186) break;
-= 112;
if (!'') {
goto 595;
}
+= 788;
label 595:
if ( == 913) {
-= 824;
}
if ( == 846) {
-= 155;
}
if ( == 691) {
-= 596;
}
if ( != 152) break;
+= 34;
if ( == 308) {
-= 185;
}
if ( == 334) {
-= 49;
if (!(true ::: !true)) {
goto 1689;
}
-= 105;
label 1689:
}
if ( == 533) {
+= 313;
if (!(true ::: !true)) {
break;
}
-= 155;
}
if ( != 285) break;
-= 105;
if ( == 810) {
-= 658;
}
if ( != 442) break;
-= 134;
-= 99;
+= 280;
var eval( != 632) = true;
-= 230;
+= 43;
-= 625;
-= 688;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 844;
#endinitclip
}
movieClip 94 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (595 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 240 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 324) {
+= 240;
true;
}
if ( == 635) {
+= 101;
}
if ( == 513) {
+= 17;
goto 1602;
}
if ( == 245) {
+= 436;
}
if ( == 303) {
for (;;) {
+= 433;
if ( != 861) break;
+= 89;
if ( != 736) break;
-= 505;
if ( == 575) {
-= 62;
}
if ( == 976) {
-= 158;
if (!1) {
goto 980;
}
-= 515;
label 980:
}
if ( != 564) break;
-= 288;
if (!1) {
break;
}
-= 31;
if ( == 530) {
-= 530;
}
if ( == 818) {
-= 515;
}
if ( != 950) break;
-= 668;
if ( == 231) {
+= 630;
var = ;
}
if ( == 282) {
+= 168;
}
if ( != 450) break;
+= 125;
if (!( ::: !)) {
} else {
-= 62;
}
if ( == 681) {
+= 295;
}
if ( != 674) break;
+= 7;
if ( == 276) {
-= 31;
}
}
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1602:
Unknown action: 0xfc
#endinitclip
}
movieClip 79 __Packages.com.newgrounds.SaveFile {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1727 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -55 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 139) {
+= 289;
true;
}
if ( == 270) {
+= 502;
}
if ( == 326) {
+= 446;
}
if ( == 951) {
-= 253;
}
if ( == 772) {
for (;;) {
-= 546;
if ( != 698) break;
-= 85;
if ( != 574) break;
+= 39;
if ( == 603) {
+= 170;
}
if ( == 224) {
+= 307;
}
if ( == 226) {
+= 725;
if (!(true ::: eval(true))) {
} else {
-= 253;
}
}
if ( == 297) {
-= 268;
if (true ::: eval(true)) break;
break;
+= 99;
}
if ( == 773) {
-= 476;
}
if ( != 433) break;
+= 392;
if ( == 727) {
-= 457;
}
if ( == 29) {
+= 99;
}
if ( != 343) break;
+= 384;
if (!(true ::: eval(true) ::: !(true ::: eval(true)))) {
} else {
-= 457;
}
if ( != 112) break;
+= 491;
if ( == 428) {
+= 155;
if (!'') {
break;
}
-= 135;
}
-= 669;
-= 191;
-= 135;
-= 188;
-= 550;
+= 561;
+= 83;
+= 781;
-= 44;
var eval(true) = true;
+= 453;
-= 581;
}
'';
!= 825;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 85 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
label -26758:
Unknown action: 0xfc
function () {
= (2740 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 685 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
// An attempt to read a value from empty stack
}
}
}
}
}
}
}
}
}
}
}
}
}
( != 870) ? undefined;
#endinitclip
}
movieClip 84 __Packages.com.newgrounds.encoders.BaseN {
#initclip
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (263 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 299 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 562) {
+= 403;
true;
}
if ( != 245) break;
+= 52;
if ( == 200) {
+= 325;
}
if ( != 46) break;
+= 833;
for (;;) {
if ( == 29) {
+= 527;
}
if ( == 297) {
+= 269;
var = 1 ::: eval(1);
}
if ( == 965) {
-= 765;
if (1 ::: eval(1)) break;
continue;
+= 325;
}
if ( == 525) {
+= 470;
} else {
+= 332;
if ( == 165) {
}
if ( == 556) {
+= 41;
}
if ( == 597) {
+= 149;
if (!(1 ::: eval(1) ::: !(1 ::: eval(1)))) {
} else {
-= 581;
}
}
if ( == 566) {
-= 537;
}
if ( == 722) {
-= 676;
if (1 ::: eval(1) ::: !(1 ::: eval(1))) break;
continue;
+= 833;
}
if ( == 418) {
+= 577;
}
if ( != 133) break;
+= 112;
if ( == 995) {
-= 273;
}
if ( == 746) {
-= 581;
}
if ( != 879) break;
-= 634;
if ( == 497) {
-= 497;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
'';
1 ::: eval(1) ::: (1 ::: eval(1) ::: !(1 ::: eval(1)));
#endinitclip
}
movieClip 80 __Packages.com.newgrounds.SaveGroup {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1082 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 33) {
+= 408;
true;
}
if ( == 462) {
-= 333;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 36;
}
if ( != 165) break;
+= 281;
if ( == 869) {
-= 224;
for (;;) {
if ( != 129) break;
+= 36;
if ( == 795) {
+= 148;
true;
}
if ( == 740) {
-= 150;
}
if ( == 364) {
+= 281;
if ( != 441) break;
+= 299;
// An attempt to read a value from empty stack
} else {
if (!undefined) {
}
-= 150;
}
if ( == 919) {
-= 293;
// An attempt to read a value from empty stack
if (undefined) break;
continue;
-= 262;
}
if ( != 744) break;
-= 282;
if ( == 626) {
-= 262;
}
if ( == 105) {
+= 690;
}
if ( == 645) {
+= 266;
}
if ( == 590) {
+= 205;
}
if ( != 943) break;
-= 883;
if (true) break;
continue;
+= 192;
if ( == 88) {
+= 5;
'';
}
if ( != 60) break;
+= 192;
-= 741;
-= 301;
+= 473;
-= 823;
var eval( != 866) = true;
-= 327;
// An attempt to read a value from empty stack
+= 240;
+= 492;
-= 250;
+= 878;
-= 18;
-= 125;
}
eval(!undefined);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 89 __Packages.com.newgrounds.Medal {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1006 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 522) {
+= 73;
true;
}
if ( != 157) break;
+= 134;
if ( == 438) {
-= 431;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 261;
}
if ( == 595) {
-= 475;
// An attempt to read a value from empty stack
if (!undefined) {
for (;;) {
continue;
+= 495;
if ( == 290) {
-= 141;
if ( == 603) {
-= 165;
}
if ( != 152) break;
+= 159;
} else {
+= 145;
if ( == 149) {
if (!'') {
}
+= 686;
}
true;
'';
}
if ( == 615) {
-= 325;
}
if ( != 443) break;
-= 291;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
if ( == 311) {
+= 488;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( != 291) break;
+= 152;
if ( == 7) {
+= 261;
}
if ( == 691) {
-= 379;
}
if ( == 799) {
-= 775;
}
if ( == 24) {
+= 952;
if (!(1 ::: !1)) {
break;
}
-= 285;
}
if ( != 268) break;
+= 23;
if ( == 976) {
-= 285;
}
-= 295;
-= 377;
-= 312;
+= 686;
+= 237;
+= 495;
}
'';
1 ::: !1;
!= 898;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 90 __Packages.com.newgrounds.ScoreBoard {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1967 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -285 + ();
// An attempt to read a value from empty stack
while (!undefined) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 13;
continue;
if ( == 389) {
-= 92;
continue;
}
if ( != 470) break;
-= 190;
continue;
if ( == 868) {
-= 291;
continue;
}
if ( == 871) {
for (;;) {
-= 482;
if ( != 202) break;
+= 73;
if ( != 707) break;
-= 318;
if ( == 97) {
+= 610;
}
if ( == 280) {
+= 45;
}
if ( == 325) {
-= 228;
if (!true) {
break;
}
+= 610;
}
if ( == 140) {
-= 133;
}
if ( == 749) {
-= 487;
}
if ( == 895) {
-= 318;
}
if ( != 829) break;
-= 80;
if ( == 300) {
-= 134;
}
if ( == 262) {
+= 367;
}
if ( == 67) {
+= 135;
if (!(true ::: !true)) {
break;
}
+= 73;
}
if ( == 297) {
+= 554;
var eval( != 149) = true ::: !true;
}
if ( == 275) {
+= 474;
}
if ( == 851) {
+= 137;
}
-= 75;
-= 538;
-= 510;
-= 26;
+= 834;
+= 189;
-= 688;
+= 615;
-= 622;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 149;
true;
#endinitclip
}
movieClip 4517 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 4518 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.9.4 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
mochi.as2.MochiServices.onError('NotConnected');
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError('IOError');
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError(errorCode);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._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);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError('IOError');
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError('NotConnected');
}
if (args.options != null && args.options.onError != null) {
args.options.onError('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);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
break;
case 'b':
case 'c':
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer());
v7.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 v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.CONNECTED = 'onConnected';
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 4519 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.getAchievements = function (properties) {
mochi.as2.MochiServices.send('events_getAchievements', properties);
};
v1.unlockAchievement = function (properties) {
mochi.as2.MochiServices.send('events_unlockAchievement', properties);
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.showAwards = function (options) {
mochi.as2.MochiServices.send('events_showAwards', options, null, null);
};
v1.setNotifications = function (style) {
mochi.as2.MochiServices.send('events_setNotifications', style, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startPlay = function (tag) {
if (tag == undefined) {
tag = 'gameplay';
}
mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null);
};
v1.endPlay = function () {
mochi.as2.MochiServices.send('events_clearRoundID', null, null, null);
};
v1.trackEvent = function (tag, value) {
mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null);
};
v1.ACHIEVEMENTS_OWNED = 'AchievementOwned';
v1.ACHIEVEMENT_NEW = 'AchievementReceived';
v1.GAME_ACHIEVEMENTS = 'GameAchievements';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.IO_PENDING = 'IOPending';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1.FORMAT_NONE = 'NoForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 4520 __Packages.mochi.as2.MochiCoins {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiCoins) {
var v1 = function () {};
mochi.as2.MochiCoins = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showStore = function (options) {
mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null);
};
v1.showItem = function (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);
};
v1.showVideo = function (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);
};
v1.getStoreItems = function () {
mochi.as2.MochiServices.send('coins_getStoreItems');
};
v1.requestFunding = function (properties) {
mochi.as2.MochiServices.send('social_requestFunding', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate);
};
v1.STORE_SHOW = 'StoreShow';
v1.STORE_HIDE = 'StoreHide';
v1.ITEM_OWNED = 'ItemOwned';
v1.ITEM_NEW = 'ItemNew';
v1.STORE_ITEMS = 'StoreItems';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1);
}
#endinitclip
}
movieClip 4521 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('social_hideLoginWidget');
};
v1.requestLogin = function (properties) {
mochi.as2.MochiServices.send('social_requestLogin', properties);
};
v1.getFriendsList = function (properties) {
mochi.as2.MochiServices.send('social_getFriendsList', properties);
};
v1.showProfile = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showProfile', options);
};
v1.postToStream = function (properties) {
mochi.as2.MochiServices.send('social_postToStream', properties);
};
v1.inviteFriends = function (properties) {
mochi.as2.MochiServices.send('social_inviteFriends', properties);
};
v1.requestFan = function (properties) {
mochi.as2.MochiServices.send('social_requestFan', properties);
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('social_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.FRIEND_LIST = 'FriendsList';
v1.PROFILE_DATA = 'ProfileData';
v1.GAMEPLAY_DATA = 'GameplayData';
v1.ACTION_CANCELED = 'onCancel';
v1.ACTION_COMPLETE = 'onComplete';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 4522 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 4523 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
movieClip 76 __Packages.com.newgrounds.APIError {
#initclip
label -10077:
Unknown action: 0xfc
function () {
= (678 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 334 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 501) {
+= 48;
true;
}
if ( != 215) break;
+= 492;
for (;;) {
if ( == 895) {
-= 713;
goto -10077;
} else {
-= 296;
// An attempt to read a value from empty stack
if ( == 549) {
if (!undefined) {
}
+= 405;
}
}
if ( == 362) {
+= 614;
goto 2254;
goto 2250;
}
if ( == 896) {
-= 866;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 182) {
+= 525;
}
#endinitclip
}
movieClip 4 __Packages.com.newgrounds.components.APIConnector {
#initclip
label -14065:
label -3076:
label -1083:
Unknown action: 0xfc
function () {
= (2421 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -320 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 57) {
+= 233;
true;
}
if ( == 608) {
-= 3;
// An attempt to read a value from empty stack
for (;;) {
if ( == 269) {
+= 360;
}
if ( != 290) break;
-= 110;
if (!eval(undefined)) {
continue;
}
+= 810;
if ( == 731) {
-= 470;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 69;
}
if ( == 411) {
+= 197;
'';
}
if ( == 259) {
+= 218;
goto -3076;
}
if ( != 440) break;
+= 141;
if ( != 605) break;
-= 340;
if ( == 180) {
+= 810;
goto -1083;
}
if ( == 425) {
-= 14;
// An attempt to read a value from empty stack
var eval(undefined) = !true;
}
if ( == 229) {
+= 40;
break;
}
if ( == 990) {
-= 374;
}
if ( == 876) {
-= 617;
if (true) {
goto 930;
}
+= 218;
label 930:
}
if ( == 581) {
-= 352;
if (true) {
goto 1013;
}
+= 40;
label 1013:
}
if ( == 665) {
-= 158;
goto 2882;
break;
}
if ( == 629) {
+= 247;
}
if ( == 477) {
-= 2;
}
if ( == 265) {
-= 68;
if (true) {
break;
}
+= 468;
}
if ( == 197) {
+= 468;
}
if ( == 151) {
+= 478;
}
if ( != 733) break;
-= 117;
if ( == 616) {
+= 115;
}
if ( == 123) {
+= 317;
}
if ( == 330) {
+= 110;
}
if ( == 261) {
+= 69;
goto -14065;
}
+= 291;
-= 50;
-= 507;
}
!true;
!= 184;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 2882:
#endinitclip
}
movieClip 77 __Packages.com.newgrounds.API {
#initclip
label -12511:
label -7191:
Unknown action: 0xfc
function () {
= (1221 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -124 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 75) {
-= 2;
true;
}
if ( != 34) break;
+= 873;
for (;;) {
goto -12511;
if ( != 644) break;
-= 166;
if ( == 774) {
-= 198;
goto -7191;
}
if ( == 291) {
-= 23;
}
if ( != 478) break;
-= 2;
if ( == 268) {
+= 506;
goto 507;
label 507:
}
if ( != 982) break;
-= 165;
if ( != 73) break;
for (;;) {
-= 39;
}
if ( != 809) break;
-= 518;
if ( == 907) {
-= 616;
}
if ( != 413) break;
+= 404;
if ( != 249) break;
+= 30;
if ( == 576) {
-= 168;