Combined Code
movieClip 10 {
}
movieClip 12 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 24 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 34 {
}
movieClip 37 {
frame 10 {
stop();
}
}
movieClip 38 mcBellb {
frame 1 {
stop();
}
}
movieClip 41 {
}
movieClip 44 {
frame 10 {
stop();
}
}
movieClip 45 mcBellc {
frame 1 {
stop();
}
}
movieClip 50 {
}
movieClip 53 {
frame 10 {
stop();
}
}
movieClip 54 mcBellg {
frame 1 {
stop();
}
}
movieClip 59 {
}
movieClip 62 {
frame 10 {
stop();
}
}
movieClip 63 mcBell {
frame 1 {
stop();
}
instance capsize of movieClip 59 {
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
}
}
movieClip 66 mcScoreAdd {
frame 1 {
var timeLeft = 12;
this.onEnterFrame = function () {
--this.timeLeft;
this._y -= 5;
if (this.timeLeft == 0) {
this.removeMovieClip();
}
};
}
}
movieClip 68 mcBird {
}
movieClip 77 mcFinalStats {
}
movieClip 80 mcBelld {
}
movieClip 85 mcbellf {
}
movieClip 94 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
+= 121;
+= 93;
+= 246;
-= 382;
-= 147;
+= 208;
+= 89;
-= 786;
+= 713;
+= 421;
+= 632;
+= 170;
-= 505;
-= 131;
+= 308;
var = 1;
-= 763;
-= 219;
-= 263;
+= 510;
+= 775;
-= 327;
+= 46;
-= 421;
+= 250;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 177;
true;
'';
eval(!true);
true;
}
}
movieClip 96 {
frame 10 {
stop();
}
}
movieClip 98 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 100 {
}
movieClip 102 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 109 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
+= 132;
-= 891;
var eval( != 235) = true;
+= 345;
+= 166;
// An attempt to read a value from empty stack
+= 77;
+= 206;
-= 422;
-= 355;
-= 135;
-= 235;
-= 105;
-= 669;
+= 29;
-= 171;
-= 128;
+= 953;
-= 490;
+= 556;
-= 54;
-= 408;
+= 401;
+= 185;
+= 252;
+= 541;
+= 568;
-= 293;
-= 318;
-= 688;
-= 425;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!undefined;
true;
true;
'';
true;
'';
eval(1);
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
+= 609;
+= 436;
+= 231;
+= 5;
+= 93;
+= 176;
+= 286;
-= 784;
+= 356;
+= 909;
-= 455;
+= 716;
-= 447;
+= 515;
+= 342;
+= 890;
-= 600;
-= 210;
var eval(1) = true;
-= 347;
-= 25;
-= 224;
-= 252;
-= 791;
-= 170;
-= 121;
-= 150;
-= 549;
-= 124;
-= 859;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 176;
true;
!true;
true;
'';
;
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 115 NewgroundsAPIAsset_Login_Warning {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
-= 105;
+= 855;
+= 520;
+= 184;
-= 889;
-= 443;
var eval(true) = '';
-= 669;
-= 472;
+= 117;
+= 423;
+= 503;
-= 308;
+= 574;
-= 739;
+= 231;
-= 419;
+= 63;
-= 24;
+= 346;
-= 46;
+= 151;
+= 275;
-= 2;
-= 338;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval( != 518);
'';
!1;
true;
true;
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 118 NewgroundsAPIAsset_Connection_Error {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1793 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 705 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 568;
+= 3;
-= 156;
+= 917;
-= 334;
+= 421;
-= 509;
+= 266;
+= 482;
+= 39;
+= 216;
-= 595;
var = eval(!1);
-= 616;
-= 339;
+= 62;
-= 73;
-= 724;
+= 346;
-= 468;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 965;
true;
true;
'';
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 120 {
}
movieClip 122 {
}
movieClip 124 {
}
movieClip 126 {
}
movieClip 128 {
}
movieClip 130 {
}
movieClip 132 {
}
movieClip 134 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 139 NewgroundsAPIAsset_big_popup_background {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
-= 86;
+= 812;
+= 156;
-= 229;
-= 400;
-= 450;
+= 77;
-= 377;
+= 565;
-= 221;
-= 116;
-= 534;
+= 234;
-= 553;
+= 145;
-= 96;
+= 96;
+= 666;
+= 162;
+= 199;
+= 165;
-= 47;
-= 105;
+= 166;
var = 1;
-= 111;
-= 30;
+= 364;
-= 18;
-= 779;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 985;
!true;
true;
true;
true;
;
}
}
button 143 {
on (release) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
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 (;;) {
+= 703;
-= 63;
+= 37;
-= 852;
-= 553;
-= 15;
+= 840;
+= 107;
-= 319;
-= 280;
-= 74;
+= 115;
+= 315;
+= 448;
+= 215;
-= 481;
-= 40;
-= 136;
+= 357;
+= 53;
-= 355;
var eval(true) = true;
-= 221;
-= 732;
+= 183;
-= 21;
-= 243;
+= 530;
+= 682;
-= 833;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 289;
eval(!true);
true;
'';
'';
1;
}
}
button 149 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 151 NewgroundsAsset_New_Version_Available {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (980 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -291 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 237;
+= 80;
-= 86;
-= 744;
-= 541;
+= 96;
+= 723;
-= 947;
var eval( != 178) = eval(!true);
+= 553;
+= 317;
+= 419;
+= 713;
+= 16;
-= 541;
+= 471;
-= 807;
+= 75;
-= 332;
-= 116;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
true;
'';
}
}
button 152 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 156 NewgroundsAsset_Illegal_Host {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2307 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -142 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 383;
+= 45;
+= 276;
-= 104;
var eval( != 121) = !true;
+= 305;
+= 176;
+= 243;
+= 6;
-= 560;
+= 388;
+= 359;
+= 409;
-= 527;
+= 561;
-= 903;
-= 615;
-= 315;
+= 89;
-= 203;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
eval(true);
'';
1;
}
}
movieClip 157 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
quitonce = false;
firsthiscore = false;
firsthiscoresave = 0;
musicplayed = false;
senthiscore = false;
achievershown = false;
keysac = false;
loadGame();
stop();
}
frame 1 {
mochi.as2.MochiServices.connect('7b0608eb9aee8264');
}
frame 1 {
}
frame 1 {
function mindscore(urls_mindjolt) {
mindJolt = false;
domain_jolts = _url.split('://');
real_domain_jolt = domain_jolts[1].split('/');
domainJolt.text = real_domain_jolt[0];
for (x in urls_mindjolt) {
if (urls_mindjolt[x] == real_domain_jolt[0]) {
mindJolt = true;
}
}
if (mindJolt) {
trace('mindjolton');
} else {
trace('offMindJolt');
}
}
urls_mindjolt = ['www.newgrounds.com', 'newgrounds.com', 'uploads.ungrounded.net'];
mindscore(urls_mindjolt);
}
frame 1 {
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
showAds();
fakeBox._visible = false;
}
}
function showAds() {
trace('showing');
var v1 = '2718Q36685467';
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + v1);
}
urls_allowed = ['www.kongregate.com', 'kongregate.com', 'www.addictinggames.com', 'addictinggames.com'];
sitelock(urls_allowed);
}
frame 1 {
function onEnterFrame() {
percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + '%';
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 1 && timer <= 0) {
clearInterval(countdownInterval);
delete this.onEnterFrame;
loadingbox._visible = true;
playbtn._visible = true;
}
}
loadingbox._visible = false;
playbtn._visible = false;
stop();
timer = 10;
countdown = function () {
--timer;
if (timer == 0) {
clearInterval(countdownInterval);
}
};
countdownInterval = setInterval(countdown, 1000);
}
button 189 {
on (release) {
_root.gotoAndStop(2);
}
}
instance of movieClip 157 API Connector (NewgroundsAPI) {
onClipEvent (construct) {
api_id = '14281:kQbEjAdz';
encryption_key = '4uBjX2Ijf75BJz3bIaBixEJVegmR9C7e';
version = '';
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
}
movieClip 192 {
}
movieClip 196 {
}
movieClip 197 {
}
instance longlogo of movieClip 197 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=mainlogo', '_blank');
}
}
instance capsize of movieClip 59 {
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
}
movieClip 546 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 547 __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.7 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) {
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);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
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()) {
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.apply(null, ['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.apply(null, [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 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['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.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);
}
}
}
};
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':
break;
case '8':
case '9':
case 'a':
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://x.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._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.servicesSync = new mochi.as2.MochiSync();
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 548 __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 549 __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.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.trigger = function (kind, obj) {
if (obj == undefined) {
obj = {};
} else {
if (obj.kind != undefined) {
trace('WARNING: optional arguements package contains key \'id\', it will be overwritten');
obj.kind = kind;
}
}
mochi.as2.MochiServices.send('events_triggerEvent', {'eventObject': obj}, null, null);
};
v1.setNotifications = function (clip, style) {
var v2 = {};
for (var v3 in style) {
v2[v3] = style[v3];
}
v2.clip = clip;
mochi.as2.MochiServices.send('events_setNotifications', v2, 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.startGame = function () {
mochi.as2.MochiEvents.gameStart = (new Date()).getTime();
mochi.as2.MochiEvents.trigger('start_game');
};
v1.endGame = function () {
var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.gameStart;
mochi.as2.MochiEvents.trigger('end_game', {'time': v1});
};
v1.startLevel = function () {
mochi.as2.MochiEvents.levelStart = (new Date()).getTime();
mochi.as2.MochiEvents.trigger('start_level');
};
v1.endLevel = function () {
var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.levelStart;
mochi.as2.MochiEvents.trigger('end_level', {'time': v1});
};
v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived';
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._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 550 __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('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.requestLogin = function () {
mochi.as2.MochiServices.send('coins_requestLogin');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_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.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 160 __Packages.com.newgrounds.Bridge {
#initclip
label -31572:
label -28625:
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;
}
// An attempt to read a value from empty stack
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
( != 745) ? undefined;
#endinitclip
}
movieClip 158 __Packages.com.newgrounds.APIError {
#initclip
label -30980:
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;
}
#endinitclip
}
movieClip 159 __Packages.com.newgrounds.API {
#initclip
label -18522:
label -12511:
label -7191:
Unknown action: 0xfc
function () {
= (1221 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -124 + ();
// 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 (;;) {
-= 2;
continue;
if ( == 34) {
for (;;) {
+= 873;
goto -12511;
if ( == 644) {
-= 166;
}
if ( != 774) break;
-= 198;
goto -7191;
if ( == 291) {
-= 23;
}
if ( == 478) {
-= 2;
}
if ( == 268) {
+= 506;
goto 507;
label 507:
}
if ( == 982) {
-= 165;
}
if ( == 73) {
-= 39;
}
if ( != 809) break;
-= 518;
if ( != 907) goto 787;
-= 616;
label 787:
if ( == 413) {
+= 404;
}
+= 30;
if ( == 249) {
-= 168;
}
if ( == 482) {
-= 233;
if (!(true ::: eval(true))) {
goto 8011;
}
+= 30;
label 8011:
}
if ( == 476) {
+= 6;
}
if ( == 979) {
-= 571;
}
if ( != 408) break;
-= 371;
if ( != 37) break;
-= 24;
if (!true) {
goto 8263;
}
+= 400;
label 8263:
if ( == 13) {
+= 400;
goto -18522;
}
if ( == 954) {
-= 310;
var eval( != 75) = true ::: eval(true) ::: !(true ::: eval(true));
}
if ( != 817) break;
+= 137;
if ( != 279) break;
-= 108;
goto 8550;
goto 8546;
if ( == 171) {
-= 171;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 8546:
Unknown action: 0xfc
label 8550:
!= 75;
true;
#endinitclip
}
movieClip 161 __Packages.com.newgrounds.SaveFile {
#initclip
label -22969:
label -20996:
label -5110:
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) break;
for (;;) {
+= 502;
if ( == 326) {
+= 446;
}
if ( == 951) {
-= 253;
goto -20996;
}
if ( != 772) break;
-= 546;
if ( == 698) {
-= 85;
}
if ( == 574) {
+= 39;
}
if ( != 603) goto 558;
+= 170;
label 558:
+= 307;
if ( == 224) {
for (;;) {
+= 725;
}
}
if ( == 297) {
-= 268;
goto 801;
label 801:
}
if ( != 773) break;
-= 476;
if ( != 433) goto 907;
+= 392;
label 907:
if ( == 727) {
-= 457;
goto -5110;
if ( == 29) {
+= 99;
}
} else {
+= 384;
if ( == 343) {
if (eval(true)) {
}
-= 457;
}
}
if ( == 112) {
+= 491;
}
if ( == 428) {
+= 155;
if (!eval(true)) break;
goto 4294;
-= 135;
label 4294:
}
#endinitclip
}
movieClip 162 __Packages.com.newgrounds.SaveGroup {
#initclip
label -29350:
label -22291:
label -17921:
label -6182:
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) {
for (;;) {
-= 333;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 36;
if ( == 165) {
+= 281;
}
if ( != 869) break;
-= 224;
if ( == 129) {
+= 36;
goto -29350;
}
if ( == 795) {
+= 148;
true;
}
if ( == 740) {
-= 150;
goto -6182;
}
if ( == 364) {
+= 281;
}
if ( == 441) {
+= 299;
}
if ( != 919) break;
-= 293;
// An attempt to read a value from empty stack
if (!undefined) {
}
-= 262;
if ( == 744) {
-= 282;
true;
}
if ( == 626) {
-= 262;
goto -22291;
}
if ( == 105) {
+= 690;
}
if ( == 645) {
+= 266;
'';
1;
}
if ( == 590) {
+= 205;
}
if ( == 943) {
-= 883;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
+= 192;
}
// An attempt to read a value from empty stack
}
( != 88) ? undefined;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
label 2627:
#endinitclip
}
movieClip 165 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
label -28856:
label -15528:
Unknown action: 0xfc
function () {
= (1695 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 421 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 583) {
+= 204;
true;
}
if ( != 661) break;
for (;;) {
-= 34;
if ( == 868) {
-= 762;
}
if ( != 787) break;
+= 171;
if (!1) {
goto 346;
}
-= 90;
label 346:
if ( == 958) {
-= 90;
goto -15528;
}
if ( == 440) {
-= 70;
goto 3633;
goto 3629;
}
if ( == 415) {
-= 309;
}
if ( == 151) {
+= 788;
}
if ( == 106) {
+= 231;
}
if ( != 30) goto 699;
+= 121;
label 699:
if ( == 337) {
+= 346;
for (;;) {
}
}
if ( == 282) {
-= 252;
}
-= 512;
goto -28856;
if ( != 683) break;
+= 490;
if ( == 644) {
+= 17;
}
if ( != 627) break;
-= 345;
// An attempt to read a value from empty stack
var eval(undefined) = eval('' ::: !'');
if ( == 939) {
-= 552;
// An attempt to read a value from empty stack
if (!undefined) {
goto 1135;
}
+= 53;
label 1135:
}
if ( == 387) {
+= 53;
}
if ( == 370) {
-= 370;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 3629:
Unknown action: 0xfc
label 3633:
#endinitclip
}
movieClip 167 __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 (;;) {
if ( == 870) {
-= 455;
true;
}
if ( == 269) {
for (;;) {
+= 296;
if ( == 415) {
-= 41;
// An attempt to read a value from empty stack
if (undefined) break;
goto 1324;
-= 61;
label 1324:
}
if ( == 837) {
-= 568;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 296;
}
if ( != 374) break;
-= 61;
goto -26758;
if ( == 112) {
+= 883;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
if ( != 263) break;
+= 688;
// An attempt to read a value from empty stack
if ( == 313) {
-= 151;
}
if ( == 951) {
-= 114;
}
if ( == 19) {
+= 143;
}
if ( == 995) {
-= 732;
}
if ( == 565) {
+= 82;
} else {
goto 1978;
-= 50;
if (!1) {
-= 647;
}
label 1978:
Unknown action: 0xfc
}
}
eval(undefined) ::: !eval(undefined);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 166 __Packages.com.newgrounds.encoders.BaseN {
#initclip
label -6485:
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;
}
#endinitclip
}
movieClip 176 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
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;
}
// An attempt to read a value from empty stack
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
( != 635) ? undefined;
#endinitclip
}
movieClip 164 __Packages.com.newgrounds.APIEvent {
#initclip
label -25688:
label -8852:
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 (;;) {
for (;;) {
for (;;) {
-= 510;
continue;
if ( == 74) {
for (;;) {
+= 788;
goto -25688;
if ( == 123) {
+= 790;
if (!true) {
goto 290;
}
-= 824;
label 290:
}
if ( != 744) break;
-= 302;
if ( == 180) {
-= 28;
}
if ( == 95) {
+= 369;
}
if ( == 89) {
+= 599;
goto 2294;
goto 2290;
}
if ( == 186) {
-= 112;
if ('') goto 572;
continue;
label 572:
+= 788;
}
if ( == 913) {
-= 824;
}
if ( == 846) {
-= 155;
} else {
-= 596;
if ( == 691) {
+= 34;
}
-= 185;
if ( == 308) break;
-= 49;
if (!'') {
continue;
-= 105;
} else {
+= 313;
if ( == 533) {
if (!true) {
}
-= 155;
}
}
if ( == 285) {
-= 105;
goto -8852;
}
if ( == 810) {
-= 658;
}
if ( != 442) break;
-= 134;
if ( == 632) {
-= 99;
}
if ( == 464) {
+= 280;
var eval( != 844) = eval(true);
}
if ( == 862) {
-= 230;
}
if ( != 589) break;
+= 43;
if ( != 720) break;
-= 625;
if ( == 688) {
-= 688;
}
label 2290:
Unknown action: 0xfc
label 2294:
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 844;
true;
#endinitclip
}
movieClip 551 __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()).stop();
};
}
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 552 __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 86 __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 163 __Packages.com.newgrounds.ValidationTools {
#initclip
label -18260:
Unknown action: 0xfc
function () {
= (872 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 209 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 570) {
+= 407;
true;
}
if ( != 588) break;
+= 333;
for (;;) {
goto 1415;
goto 1411;
if ( == 945) {
-= 518;
true;
}
if ( == 643) {
+= 302;
}
if ( == 977) {
+= 2;
// An attempt to read a value from empty stack
if (!undefined) {
goto 395;
}
-= 336;
label 395:
}
if ( == 490) {
+= 455;
}
#endinitclip
}
movieClip 168 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
label -8740:
label -7850:
Unknown action: 0xfc
function () {
= (2879 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -58 + ();
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 ( == 266) {
+= 423;
true;
}
if ( == 650) {
-= 578;
for (;;) {
if ( == 370) {
-= 583;
// An attempt to read a value from empty stack
if ( == 694) {
if (!undefined) {
}
+= 400;
}
if ( == 511) {
+= 259;
}
} else {}
+= 10;
// An attempt to read a value from empty stack
} else {
+= 400;
if ( == 111) {
}
if ( != 72) break;
+= 729;
if ( == 531) {
-= 272;
}
if ( == 250) {
+= 664;
goto 2191;
break;
}
-= 434;
if ( == 684) {
+= 39;
}
if ( == 678) {
-= 390;
goto -8740;
}
if ( == 799) {
-= 88;
if (!(1 ::: !1)) {
} else {
-= 61;
}
}
if ( != 187) break;
-= 115;
if ( == 259) {
+= 419;
if (!(1 ::: !1)) {
} else {
-= 390;
}
}
if ( == 307) {
+= 145;
}
if ( == 801) {
-= 169;
var = 1 ::: !1;
}
if ( == 711) {
-= 61;
goto -7850;
}
if ( == 419) {
+= 265;
if (!(1 ::: !1)) {
} else {
-= 434;
}
}
if ( == 460) {
-= 20;
break;
}
if ( != 824) goto 1700;
-= 54;
label 1700:
+= 85;
if ( == 446) {
+= 29;
}
if ( == 689) {
-= 229;
}
if ( != 288) break;
+= 164;
if ( != 452) goto 2025;
+= 242;
label 2025:
+= 91;
-= 262;
-= 914;
}
eval(undefined);
'';
1 ::: !1;
true;
!= 440;
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 2191:
#endinitclip
}
movieClip 169 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
label -12747:
label -4687:
Unknown action: 0xfc
function () {
= (1433 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -183 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 228) {
+= 628;
true;
}
if ( == 878) {
-= 425;
for (;;) {
if ( == 301) {
-= 203;
}
if ( == 209) {
-= 88;
} else {
-= 233;
// An attempt to read a value from empty stack
if ( == 856) {
if (!undefined) {
}
-= 322;
}
}
if ( == 581) {
+= 297;
// An attempt to read a value from empty stack
if (undefined) break;
goto 487;
+= 11;
label 487:
}
if ( == 623) {
-= 322;
goto -12747;
}
} else {}
+= 11;
if ( == 546) {
if ( == 640) {
-= 542;
}
if ( == 953) {
-= 744;
goto -4687;
}
if ( == 351) {
-= 108;
}
if ( == 98) {
+= 412;
true;
}
if ( == 889) {
-= 786;
}
if ( == 510) {
+= 443;
// An attempt to read a value from empty stack
if (!undefined) {
goto 1443;
}
-= 744;
label 1443:
}
if ( == 857) {
-= 491;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 121) {
+= 460;
true;
}
if ( == 492) {
-= 389;
}
if ( == 103) {
+= 581;
'';
1;
}
if ( == 684) {
-= 448;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
if ( == 559) {
+= 298;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( == 366) {
-= 15;
for (;;) {
}
}
if ( == 236) {
+= 323;
'';
}
if ( == 243) {
+= 481;
goto 2050;
} else {
if ( == 724) {
-= 724;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
label 2050:
#endinitclip
}
movieClip 170 __Packages.com.newgrounds.encoders.LZW {
#initclip
label -29567:
label -18054:
Unknown action: 0xfc
function () {
= (423 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 264 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 687) {
-= 521;
true;
}
if ( == 239) {
-= 183;
for (;;) {
if ( == 166) {
-= 96;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
+= 343;
}
if ( == 154) {
-= 30;
// An attempt to read a value from empty stack
if (undefined) break;
goto 581;
+= 21;
label 581:
}
if ( == 28) {
+= 239;
true;
}
if ( == 291) {
-= 52;
// An attempt to read a value from empty stack
if (!undefined) {
goto 719;
-= 183;
label 719:
if ( == 269) {
+= 165;
if ( == 56) {
goto 1776;
}
if ( == 755) {
-= 601;
true;
}
if ( != 823) break;
-= 666;
if ( == 70) {
+= 343;
goto -29567;
}
if ( == 962) {
-= 139;
// An attempt to read a value from empty stack
var eval(undefined) = '';
}
if ( == 776) {
-= 589;
}
if ( == 187) {
+= 775;
}
if ( == 124) {
+= 21;
goto -18054;
}
if ( == 732) {
+= 23;
}
if ( == 413) {
-= 385;
}
if ( == 554) {
+= 201;
}
if ( == 157) {
+= 712;
}
if ( == 860) {
-= 832;
}
if ( != 267) break;
+= 2;
if (!('' ::: )) {
} else {
+= 463;
}
if ( == 145) {
+= 42;
}
if ( == 869) {
-= 578;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 221) {
-= 221;
}
} else {}
+= 463;
} else {
label 1776:
Unknown action: 0xfc
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 171 __Packages.com.newgrounds.Medal {
#initclip
label -22556:
label -8216:
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 ( == 120) {
+= 134;
for (;;) {
if ( == 438) {
-= 431;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
+= 261;
}
if ( != 595) break;
-= 475;
// An attempt to read a value from empty stack
if (undefined) break;
goto 381;
+= 495;
label 381:
if ( == 290) {
-= 141;
true;
}
if ( == 603) {
-= 165;
true;
}
if ( == 152) {
+= 159;
'';
}
if ( == 149) {
+= 145;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
+= 686;
}
if ( == 615) {
-= 325;
}
if ( == 443) {
-= 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) {
+= 152;
'';
1;
}
if ( == 7) {
+= 261;
goto -8216;
}
if ( != 691) break;
-= 379;
goto 2266;
goto 2262;
if ( == 799) {
-= 775;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 24) break;
+= 952;
// An attempt to read a value from empty stack
if (!undefined) {
goto 1087;
}
-= 285;
label 1087:
if ( != 268) break;
+= 23;
if ( == 976) {
-= 285;
}
if ( != 898) break;
-= 295;
if ( == 980) {
-= 377;
}
if ( != 312) break;
-= 312;
if ( == 294) {
+= 686;
goto -22556;
}
if ( == 53) {
+= 237;
}
} else {}
+= 495;
if ( == 157) {
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 2262:
Unknown action: 0xfc
label 2266:
#endinitclip
}
movieClip 172 __Packages.com.newgrounds.ScoreBoard {
#initclip
label -30880:
label -3364:
label -2396:
Unknown action: 0xfc
function () {
= (1967 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -285 + ();
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 ( == 149) {
-= 13;
true;
}
if ( == 389) {
-= 92;
for (;;) {
if ( == 470) {
-= 190;
}
if ( == 868) {
-= 291;
}
if ( != 871) break;
-= 482;
if ( == 202) {
+= 73;
goto -2396;
}
if ( == 707) {
-= 318;
}
if ( != 97) goto 608;
+= 610;
goto -30880;
label 608:
if ( == 280) {
+= 45;
}
for (;;) {
if ( != 325) goto 746;
-= 228;
}
label 746:
if ( == 140) {
-= 133;
}
if ( == 749) {
-= 487;
}
if ( == 895) {
-= 318;
}
if ( == 829) {
-= 80;
}
if ( == 300) {
-= 134;
}
if ( == 262) {
+= 367;
}
if ( != 67) break;
+= 135;
if ( == 297) {
+= 554;
var = 1 ::: !1;
}
if ( == 275) {
+= 474;
}
if ( == 851) {
+= 137;
}
if ( == 970) {
-= 75;
break;
}
-= 538;
-= 510;
if (true) break;
-= 26;
goto 1942;
label 1942:
if ( == 136) {
+= 834;
if ( != 818) goto 2002;
break;
label 2002:
-= 75;
}
if ( == 629) {
+= 189;
goto -3364;
}
-= 688;
for (;;) {
for (;;) {
+= 615;
}
}
-= 622;
}
'';
1 ::: !1;
!= 818;
eval( != 988);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 173 __Packages.com.newgrounds.Score {
#initclip
label -24638:
label -11263:
Unknown action: 0xfc
function () {
= (145 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 543 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 688) {
-= 276;
true;
}
if ( == 715) {
-= 668;
for (;;) {
if ( == 704) {
+= 197;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 236) break;
+= 63;
if ( == 846) {
+= 104;
goto -11263;
}
if ( == 412) {
+= 303;
// An attempt to read a value from empty stack
if (!undefined) {
} else {
+= 9;
}
}
if ( == 567) {
+= 278;
goto 1901;
goto 1897;
}
if ( == 421) {
+= 425;
// An attempt to read a value from empty stack
if (!undefined) {
}
+= 104;
}
if ( != 805) break;
-= 569;
goto -24638;
if ( != 241) break;
+= 564;
// An attempt to read a value from empty stack
if (undefined) break;
continue;
-= 569;
if ( != 724) break;
-= 231;
if ( == 230) {
+= 337;
}
if ( == 950) {
-= 664;
}
if ( == 876) {
-= 590;
}
if ( != 901) break;
-= 671;
// An attempt to read a value from empty stack
if (!undefined) {
goto 1376;
}
+= 337;
label 1376:
if ( == 687) {
-= 570;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
if ( == 493) {
-= 72;
true;
}
if ( == 299) {
+= 388;
'';
1;
}
if ( == 286) {
-= 45;
true;
}
if ( != 117) break;
+= 196;
if ( == 869) {
-= 376;
}
if ( == 313) {
+= 391;
}
if ( == 845) {
-= 845;
}
} else {}
+= 9;
if ( == 967) {
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1897:
Unknown action: 0xfc
label 1901:
'' ::: ;
#endinitclip
}
movieClip 174 __Packages.com.newgrounds.encoders.RC4 {
#initclip
label -11626:
label -6204:
Unknown action: 0xfc
function () {
= (38 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 295 + ();
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 ( == 333) {
+= 438;
true;
}
if ( == 783) {
-= 417;
// An attempt to read a value from empty stack
if (!undefined) {
for (;;) {
continue;
+= 254;
if ( == 61) {
+= 722;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 144) {
+= 847;
}
if ( == 47) {
+= 97;
goto -6204;
}
if ( == 563) {
+= 39;
'';
}
if ( == 566) {
+= 22;
break;
}
if ( != 135) break;
+= 428;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
if ( != 263) break;
for (;;) {
+= 303;
}
if ( != 184) break;
+= 807;
if ( == 588) {
-= 62;
}
if ( == 991) {
-= 542;
true;
}
if ( != 449) break;
-= 291;
// An attempt to read a value from empty stack
if (!undefined) {
goto 902;
}
+= 282;
label 902:
if ( == 853) {
-= 806;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 97;
}
if ( != 602) break;
-= 541;
// An attempt to read a value from empty stack
if ( == 366) {
+= 254;
}
if ( == 978) {
-= 361;
goto 33429;
}
if ( == 930) {
-= 404;
}
if ( == 158) {
+= 282;
goto -11626;
}
if ( == 526) {
+= 327;
}
if ( == 291) {
-= 28;
}
if ( != 440) goto 1700;
+= 441;
label 1700:
if ( != 117) break;
+= 764;
if ( == 771) {
+= 207;
if (eval(undefined)) goto 1832;
continue;
label 1832:
-= 361;
}
if ( == 881) {
-= 746;
}
if ( == 620) {
-= 478;
goto 2149;
break;
}
-= 142;
-= 351;
-= 326;
}
eval(undefined);
!= 142;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 2149:
#endinitclip
}
movieClip 175 __Packages.com.newgrounds.encoders.JSON {
#initclip
label -24047:
label -20489:
Unknown action: 0xfc
function () {
= (1418 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 14 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 410) {
-= 391;
true;
}
if ( == 832) {
+= 143;
for (;;) {
if ( == 539) {
-= 505;
}
if ( == 315) {
+= 112;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 19) break;
+= 627;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
-= 198;
if ( == 82) {
+= 233;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( != 646) break;
-= 198;
goto -24047;
if ( == 653) {
-= 587;
true;
}
if ( == 803) {
-= 212;
}
-= 179;
} else {}
-= 195;
if ( == 448) {
-= 765;
if ( == 843) {
}
if ( == 422) {
-= 340;
}
if ( == 462) {
-= 40;
// An attempt to read a value from empty stack
var eval(undefined) = true;
}
if ( == 396) {
+= 447;
if (true) goto 2516;
goto 2539;
label 2516:
-= 765;
label 2539:
}
if ( == 347) {
-= 157;
}
if ( == 204) {
-= 25;
goto -20489;
}
+= 575;
if ( == 78) {
+= 272;
}
if ( == 427) {
+= 112;
}
if ( == 66) {
+= 138;
for (;;) {
}
}
if ( == 179) {
+= 11;
}
if ( == 34) {
+= 400;
goto 3104;
} else {
if ( == 434) {
-= 434;
}
}
}
true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
label 3104:
#endinitclip
}
movieClip 177 __Packages.com.newgrounds.encoders.MD5 {
#initclip
label -11414:
label -3695:
Unknown action: 0xfc
function () {
= (2764 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 750 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 959) {
-= 281;
true;
}
if ( != 419) break;
-= 77;
// An attempt to read a value from empty stack
for (;;) {
if ( == 816) {
-= 462;
goto -3695;
}
if ( == 678) {
-= 340;
if (!eval(undefined)) {
break;
}
-= 261;
}
if ( == 338) {
-= 261;
goto -11414;
}
if ( == 185) {
+= 234;
}
if ( == 191) {
+= 177;
}
if ( != 658) break;
+= 132;
if ( == 823) {
for (;;) {
-= 632;
}
}
if ( == 928) {
-= 918;
}
if ( == 864) {
-= 48;
if (eval(undefined)) break;
goto 1035;
-= 462;
label 1035:
}
if ( == 588) {
+= 340;
}
if ( == 354) {
+= 574;
}
if ( != 790) break;
+= 74;
if ( == 10) {
+= 175;
var eval(eval(undefined)) = true;
}
if ( == 77) {
+= 713;
}
if ( == 342) {
+= 481;
} else {
+= 341;
if ( == 368) {
goto 1488;
}
if ( == 709) {
-= 709;
}
label 1488:
Unknown action: 0xfc
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval(undefined);
true ::: !true;
#endinitclip
}
frame 2 {
stop();
totalscore1 = 0;
totalscore2 = 0;
totalscore3 = 0;
totalscore4 = 0;
totalscore5 = 0;
miss = 7;
bronzeon = false;
silveron = false;
goldon = false;
platinumon = false;
gameOver = true;
gameFinal = true;
gameTimer = 9999;
var fireballsound = new Sound();
fireballsound.attachSound('fireballsound');
var elecsound = new Sound();
elecsound.attachSound('elecsound');
var sucksound = new Sound();
sucksound.attachSound('sucksound');
var bgsound = new Sound();
bgsound.attachSound('bgsound5');
if (!musicplayed) {
_root.bgsound.start(0, 999);
musicplayed = true;
}
}
frame 2 {
function saveGame() {
myLSO = SharedObject.getLocal('captcha2');
if (myLSO.data.myObj == undefined) {
trace('Saved Game');
} else {
trace('Overwrote Saved Game');
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = unlock1;
myObj.objArray[1] = unlock2;
myObj.objArray[2] = unlock3;
myObj.objArray[3] = unlock4;
myObj.objArray[4] = unlock5;
myObj.objArray[5] = unlock6;
myObj.objArray[6] = unlock7;
myObj.objArray[7] = unlock8;
myObj.objArray[8] = unlock9;
myObj.objArray[9] = unlock10;
myObj.objArray[10] = unlock11;
myObj.objArray[11] = unlock12;
myObj.objArray[13] = unlock13;
myObj.objArray[14] = unlock14;
myObj.objArray[15] = unlock15;
myObj.objArray[16] = unlock16;
myObj.objArray[12] = firsthiscoresave;
myLSO.data.myObj = myObj;
}
function loadGame() {
myLSO = SharedObject.getLocal('captcha2');
if (myLSO.data.myObj == undefined) {
trace('No Saved Game');
} else {
trace('Loaded Game');
unlock1 = myLSO.data.myObj.objArray[0];
unlock2 = myLSO.data.myObj.objArray[1];
unlock3 = myLSO.data.myObj.objArray[2];
unlock4 = myLSO.data.myObj.objArray[3];
unlock5 = myLSO.data.myObj.objArray[4];
unlock6 = myLSO.data.myObj.objArray[5];
unlock7 = myLSO.data.myObj.objArray[6];
unlock8 = myLSO.data.myObj.objArray[7];
unlock9 = myLSO.data.myObj.objArray[8];
unlock10 = myLSO.data.myObj.objArray[9];
unlock11 = myLSO.data.myObj.objArray[10];
unlock12 = myLSO.data.myObj.objArray[11];
unlock13 = myLSO.data.myObj.objArray[13];
unlock14 = myLSO.data.myObj.objArray[14];
unlock15 = myLSO.data.myObj.objArray[15];
unlock16 = myLSO.data.myObj.objArray[16];
firsthiscoresave = myLSO.data.myObj.objArray[12];
}
}
unlockedtotal = 0;
loadGame();
achieve_mc.onEnterFrame = function () {
if (unlock1 == 1) {
capdet.gotoAndStop(2);
}
if (unlock2 == 1) {
captain.gotoAndStop(2);
}
if (unlock3 == 1) {
capmmander.gotoAndStop(2);
}
if (unlock4 == 1) {
capmmodore.gotoAndStop(2);
}
if (unlock5 == 1) {
magicianc.gotoAndStop(2);
}
if (unlock6 == 1) {
cowboy.gotoAndStop(2);
}
if (unlock7 == 1) {
quitter.gotoAndStop(2);
}
if (unlock8 == 1) {
perfectionist.gotoAndStop(2);
}
if (unlock9 == 1) {
firsthiscorec.gotoAndStop(2);
}
if (unlock10 == 1) {
beatingyourown.gotoAndStop(2);
}
if (unlock11 == 1) {
touchthesky.gotoAndStop(2);
}
if (unlock12 == 1) {
stackburner.gotoAndStop(2);
}
if (unlock13 == 1) {
firstcap.gotoAndStop(2);
}
if (unlock14 == 1) {
achiever.gotoAndStop(2);
}
if (unlock15 == 1) {
notthekeys.gotoAndStop(2);
}
if (unlock16 == 1) {
braggingrights.gotoAndStop(2);
}
if (unlockedtotal >= 7) {
if (!achievershown) {
achieve_mc.gotoAndStop(15);
achievershown = true;
}
}
};
}
frame 2 {
function unlockKeys() {
if (_root.mindJolt) {
var v2 = 'Not the Keys';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockFirstCap() {
if (_root.mindJolt) {
var v2 = 'First Cap';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockCapdet() {
if (_root.mindJolt) {
var v2 = 'Cap-det';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockCaptain() {
if (_root.mindJolt) {
var v2 = 'Cap-tain';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockCapmmander() {
if (_root.mindJolt) {
var v2 = 'Cap-mmander';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockCapmmodore() {
if (_root.mindJolt) {
var v2 = 'Cap-mmodore';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockPerfectionist() {
if (_root.mindJolt) {
var v2 = 'Perfectionist';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockStackBurner() {
if (_root.mindJolt) {
var v2 = 'Stack Burner';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockAchiever() {
if (_root.mindJolt) {
var v2 = 'Achiever';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockQuitter() {
if (_root.mindJolt) {
var v2 = 'Quitter';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockMagician() {
if (_root.mindJolt) {
var v2 = 'Magician';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockCowboy() {
if (_root.mindJolt) {
var v2 = 'Cowboy';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockFirstHiscore() {
if (_root.mindJolt) {
var v2 = 'First Hiscore';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockBeatingyourown() {
if (_root.mindJolt) {
var v2 = 'Beating your own';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockBraggingRights() {
if (_root.mindJolt) {
var v2 = 'Bragging Rights';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
function unlockTouchtheSky() {
if (_root.mindJolt) {
var v2 = 'Touch the Sky';
com.newgrounds.API.unlockMedal(v2, 170, 10);
}
}
}
movieClip 206 {
}
movieClip 207 {
frame 4 {
stop();
}
}
movieClip 208 {
frame 11 {
stop();
}
}
movieClip 213 {
}
movieClip 214 {
frame 1 {
stop();
}
}
instance of movieClip 214 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=moregames', '_blank');
}
}
movieClip 217 {
}
movieClip 218 {
frame 1 {
stop();
}
}
instance of movieClip 218 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
_root.gotoAndStop(9);
}
}
instance longlogo of movieClip 197 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=mainlogo', '_blank');
}
}
movieClip 222 {
frame 14 {
stop();
}
}
movieClip 226 {
frame 1 {
stop();
}
frame 6 {
stop();
}
frame 11 {
stop();
}
}
instance of movieClip 226 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndPlay(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndPlay(6);
}
onClipEvent (releaseOutside) {
this.gotoAndPlay(6);
}
onClipEvent (release) {
stopAllSounds();
_root.nextsnd.start(0, 1);
_root.gotoAndStop(3);
}
}
movieClip 231 {
}
movieClip 234 {
}
movieClip 237 {
}
movieClip 240 {
}
movieClip 246 {
}
movieClip 249 {
frame 1 {
stop();
}
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 255 {
}
movieClip 257 {
frame 1 {
stop();
}
frame 22 {
_root.shocked = false;
}
}
movieClip 270 {
frame 1 {
_root.unlock1 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockCapdet();
}
frame 60 {
stop();
}
}
movieClip 279 {
frame 1 {
_root.unlock2 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockCaptain();
}
frame 60 {
stop();
}
}
movieClip 288 {
frame 1 {
_root.unlock3 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockCapmmander();
}
frame 60 {
stop();
}
}
movieClip 297 {
frame 1 {
_root.unlock4 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockCapmmodore();
}
frame 60 {
stop();
}
}
movieClip 306 {
frame 1 {
_root.unlock5 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockMagician();
}
frame 60 {
if (_root.bronzeon) {
_root.achieve_mc.gotoAndStop(2);
}
if (_root.silveron) {
_root.achieve_mc.gotoAndStop(3);
}
if (_root.goldon) {
_root.achieve_mc.gotoAndStop(4);
}
if (_root.platinumon) {
_root.achieve_mc.gotoAndStop(5);
}
stop();
}
}
movieClip 315 {
frame 1 {
_root.unlock6 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockCowboy();
}
frame 60 {
if (_root.bronzeon) {
_root.achieve_mc.gotoAndStop(2);
}
if (_root.silveron) {
_root.achieve_mc.gotoAndStop(3);
}
if (_root.goldon) {
_root.achieve_mc.gotoAndStop(4);
}
if (_root.platinumon) {
_root.achieve_mc.gotoAndStop(5);
}
stop();
}
}
movieClip 324 {
frame 1 {
_root.unlock7 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockQuitter();
}
frame 60 {
stop();
}
}
movieClip 333 {
frame 1 {
_root.unlock8 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockPerfectionist();
}
frame 60 {
stop();
}
}
movieClip 342 {
frame 1 {
_root.unlock9 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockFirstHiscore();
}
frame 60 {
stop();
}
}
movieClip 351 {
frame 1 {
_root.unlock10 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockBeatingyourown();
}
frame 60 {
stop();
}
}
movieClip 360 {
frame 1 {
_root.unlock11 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockTouchtheSky();
}
frame 60 {
stop();
}
}
movieClip 369 {
frame 1 {
_root.unlock12 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockStackBurner();
}
frame 60 {
stop();
}
}
movieClip 378 {
frame 1 {
_root.unlock13 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockFirstCap();
}
frame 60 {
stop();
}
}
movieClip 387 {
frame 1 {
_root.unlock14 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockAchiever();
}
frame 60 {
stop();
}
}
movieClip 396 {
frame 1 {
_root.unlock15 = 1;
_root.saveGame();
}
frame 12 {
_root.unlockKeys();
}
frame 60 {
stop();
}
}
movieClip 405 {
frame 1 {
_root.unlock16 = 1;
_root.saveGame();
}
frame 13 {
_root.unlockBraggingRights();
}
frame 60 {
stop();
}
}
movieClip 406 {
frame 1 {
stop();
}
}
instance achieve_mc of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.mindJolt) {
this._visible = false;
} else {
if (!_root.mindJolt) {
this._visible = true;
}
}
}
}
frame 3 {
function makeLvl() {
if (gameTimer <= 906) {
++bellTime;
if (bellTime >= bellLimit) {
++bellTotal;
bellHolder.attachMovie('mcBell', 'bell' + bellTotal, bellHolder.getNextHighestDepth());
bellHolder['bell' + bellTotal]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bell' + bellTotal]._x > 410) {
bellHolder['bell' + bellTotal]._x -= 250;
} else {
if (bellHolder['bell' + bellTotal]._x < 10) {
bellHolder['bell' + bellTotal]._x += 250;
}
}
bellHolder['bell' + bellTotal].yspeed = 11;
bellHolder['bell' + bellTotal].capcatch = false;
bellHolder['bell' + bellTotal]._y = bellTop;
bellHolder['bell' + bellTotal].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
this.capsize.stop();
mcMain.head_mc._y -= 7;
_root.sucksound.start(0, 1);
Heightinc += 4;
this._y = 412 - Heightinc;
this.capcatch = true;
if (!myfirstcap) {
achieve_mc.gotoAndStop(14);
myfirstcap = true;
}
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
miss += 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
++bellTime2;
if (bellTime2 >= bellLimit2) {
++bellTotal2;
bellHolder.attachMovie('mcBellb', 'bellb' + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder['bellb' + bellTotal2]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellb' + bellTotal]._x > 410) {
bellHolder['bellb' + bellTotal]._x -= 250;
} else {
if (bellHolder['bellb' + bellTotal]._x < 10) {
bellHolder['bellb' + bellTotal]._x += 250;
}
}
bellHolder['bellb' + bellTotal2].yspeed = 11;
bellHolder['bellb' + bellTotal2].capcatch = false;
bellHolder['bellb' + bellTotal2]._y = bellTop;
bellHolder['bellb' + bellTotal2].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
_root.score += 20;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 20;
this.capsize.stop();
bellHolder['bellb' + bellTotal2].yspeed = 11;
this.capsize.stop();
mcMain.head_mc._y -= 7;
_root.sucksound.start(0, 1);
Heightinc += 4;
this._y = 412 - Heightinc;
this.capcatch = true;
if (!myfirstcap) {
achieve_mc.gotoAndStop(14);
myfirstcap = false;
}
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
miss += 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
}
function showFinalStats() {
attachMovie('mcFinalStats', 'finalstats', _root.getNextHighestDepth());
finalstats._x = 115;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
finalstats.removeMovieClip();
gameOver = false;
startedJumping = false;
score = 0;
scoreInc = 0;
};
}
stop();
var bgsound = new Sound();
bgsound.attachSound('bgsound0');
gameFinal = false;
_root.bgsound.start(0, 1);
cowboyon = false;
level1on = true;
level2on = false;
level3on = false;
level4on = false;
level5on = false;
backtitle = false;
myfirstcap = false;
totalscore1 = 0;
totalscore2 = 0;
totalscore3 = 0;
totalscore4 = 0;
totalscore5 = 0;
bronzeon = false;
silveron = false;
goldon = false;
platinumon = false;
Heightinc = 0;
var gamewononce = false;
var gameTimer = 0;
var mainSpeed = 25;
var mainJumping = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var bellTime = -48;
var bellLimit = 24;
var bellTop = -50;
var bellTotal = 0;
var bellTime2 = -64;
var bellLimit2 = 96;
var bellTop2 = -50;
var bellTotal2 = 0;
var score = 0;
var miss = 0;
var scoreInc = 0;
var gameOver = false;
_root.onEnterFrame = function () {
if (Key.isDown(37) || Key.isDown(65) || Key.isDown(39) || Key.isDown(68) || Key.isDown(38) || Key.isDown(87) || Key.isDown(40) || Key.isDown(83)) {
if (!keysac) {
achieve_mc.gotoAndStop(16);
unlock15 = 1;
saveGame;
keysac = true;
}
}
if (mcMain.head_mc._y <= -760) {
achieve_mc.gotoAndStop(12);
}
if (mcMain.head_mc._y > -80) {
bonusscore1 = 0;
}
if (mcMain.head_mc._y <= -80) {
bronzeon = true;
} else {
bronzeon = false;
}
if (mcMain.head_mc._y <= -180) {
silveron = true;
} else {
silveron = false;
}
if (mcMain.head_mc._y <= -280) {
goldon = true;
} else {
goldon = false;
}
if (bronzeon) {
bronze.gotoAndStop(2);
bonusscore1 = 500;
} else {
bronze.gotoAndStop(1);
}
if (silveron) {
silver.gotoAndStop(2);
bonusscore1 = 1000;
} else {
silver.gotoAndStop(1);
}
if (goldon) {
gold.gotoAndStop(2);
bonusscore1 = 2000;
} else {
gold.gotoAndStop(1);
}
++gameTimer;
if (gameTimer >= 956) {
if (_root.miss == 0) {
_root.achieve_mc.gotoAndStop(9);
}
if (!gamewononce) {
mcMain._x = stage.width - mcMain.width / 2;
gamewon.gotoAndStop(2);
gamewononce = true;
}
}
mcMain._x = _root._xmouse;
if (mcMain._x < 0) {
mcMain._x = 0;
}
if (mcMain._x > Stage.width) {
mcMain._x = Stage.width;
}
mainJump();
makeLvl();
moveScreen();
txtScore.text = 'Score: ' + score;
txtMiss.text = 'Miss: ' + miss;
};
_root.createEmptyMovieClip('bellHolder', _root.getNextHighestDepth());
}
movieClip 413 {
}
movieClip 415 {
frame 1 {
stop();
}
}
movieClip 418 {
frame 1 {
stop();
}
}
movieClip 421 {
frame 1 {
stop();
}
}
movieClip 426 {
instance longlogo of movieClip 197 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=mainlogo', '_blank');
}
}
}
movieClip 434 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance Btn_Mute of movieClip 434 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (release) {
if (_root.bgsound.getVolume() != 0) {
this.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.slider.slidebar.onEnterFrame = null;
_root.bgsound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.slider.slidebar.onEnterFrame = _root.adjustVolume;
_root.bgsound.setVolume(_root.oldVolume);
}
}
}
movieClip 436 {
}
movieClip 440 {
}
movieClip 448 {
frame 1 {
stop();
}
}
movieClip 456 {
}
movieClip 457 {
frame 6 {
bonusscore = _root.bonusscore1;
totalscore = _root.score + _root.bonusscore1;
if (_root.level1on) {
_root.totalscore1 = totalscore;
}
if (_root.level2on) {
_root.totalscore2 = totalscore;
}
if (_root.level3on) {
_root.totalscore3 = totalscore;
}
if (_root.level4on) {
_root.totalscore4 = totalscore;
}
if (_root.level5on) {
_root.totalscore5 = totalscore;
}
}
frame 6 {
stop();
mouseListener = new Object();
mouseListener.onMouseDown = function () {
gotoAndPlay(7);
Mouse.removeListener(mouseListener);
};
Mouse.addListener(mouseListener);
}
instance of movieClip 448 {
onClipEvent (load) {
this.tabEnabled = false;
if (_root.bronzeon) {
this.gotoAndStop(2);
if (!_root.magicianon && !_root.cowboyon) {
_root.achieve_mc.gotoAndStop(2);
}
}
if (_root.silveron) {
this.gotoAndStop(3);
if (!_root.magicianon && !_root.cowboyon) {
_root.achieve_mc.gotoAndStop(3);
}
}
if (_root.goldon) {
this.gotoAndStop(4);
if (!_root.magicianon && !_root.cowboyon) {
_root.achieve_mc.gotoAndStop(4);
}
}
if (_root.platinumon) {
this.gotoAndStop(5);
if (!_root.magicianon && !_root.cowboyon) {
_root.achieve_mc.gotoAndStop(5);
}
}
}
}
instance longlogo of movieClip 197 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=mainlogo', '_blank');
}
}
frame 12 {
stop();
stopAllSounds();
_root.bronzeon = false;
_root.silveron = false;
_root.goldon = false;
_root.platinumon = false;
_root.bronze.gotoAndStop(1);
_root.silver.gotoAndStop(1);
_root.gold.gotoAndStop(1);
_root.platinum.gotoAndStop(1);
_root.gameOver = false;
_root.gameTImer = 0;
_root.gamewononce = false;
_root.nextFrame();
i = 0;
while (i < 199) {
_root.bellHolder['bell' + i].removeMovieClip();
++i;
}
g = 0;
while (g < 199) {
_root.bellHolder['bellb' + g].removeMovieClip();
++g;
}
h = 0;
while (h < 199) {
_root.bellHolder['bellc' + h].removeMovieClip();
++h;
}
j = 0;
while (j < 199) {
_root.bellHolder['belld' + j].removeMovieClip();
++j;
}
gotoAndStop(1);
_root.gameTimer = 0;
_root.mcMain.head_mc._y = -46.9;
_root.mcMain.head_fire._y = -46.9;
_root.gamewon.gotoAndStop(1);
_root.gameOver = false;
_root.score = 0;
_root.scoreInc = 0;
}
}
movieClip 458 {
frame 1 {
stop();
}
}
movieClip 461 {
}
movieClip 462 {
frame 1 {
stop();
}
}
instance of movieClip 462 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndPlay(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndPlay(6);
}
onClipEvent (releaseOutside) {
this.gotoAndPlay(6);
}
onClipEvent (release) {
_root.musicplayed = false;
_root.backtitle = true;
if (!_root.quitonce) {
_root.achieve_mc.gotoAndStop(8);
_root.quitonce = true;
}
_root.gameOver = true;
_root.gameTimer = 9999;
stopAllSounds();
_root.bronzeon = false;
_root.silveron = false;
_root.goldon = false;
_root.platinumon = false;
_root.bronze.gotoAndStop(1);
_root.silver.gotoAndStop(1);
_root.gold.gotoAndStop(1);
_root.platinum.gotoAndStop(1);
_root.gamewononce = false;
i = 0;
while (i < 199) {
_root.bellHolder['bell' + i].removeMovieClip();
++i;
}
g = 0;
while (g < 199) {
_root.bellHolder['bellb' + g].removeMovieClip();
++g;
}
h = 0;
while (h < 199) {
_root.bellHolder['bellc' + h].removeMovieClip();
++h;
}
j = 0;
while (j < 199) {
_root.bellHolder['belld' + j].removeMovieClip();
++j;
}
_root.gameTimer = 0;
_root.mcMain.head_mc._y = -46.9;
_root.mcMain.head_fire._y = -46.9;
_root.mcMain.head_mc._width = -43.3;
_root.gamewon.gotoAndStop(1);
_root.score = 0;
_root.scoreInc = 0;
_root.gotoAndStop(2);
}
}
movieClip 465 {
}
instance of movieClip 465 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=moregames', '_blank');
}
}
frame 4 {
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function makeLvl() {
if (gameTimer <= 906) {
++bellTime;
if (bellTime >= bellLimit) {
++bellTotal;
belloverallTotal += 1;
bellHolder.attachMovie('mcBell', 'bell' + bellTotal, bellHolder.getNextHighestDepth());
bellHolder['bell' + bellTotal]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bell' + bellTotal]._x > 410) {
bellHolder['bell' + bellTotal]._x -= 250;
} else {
if (bellHolder['bell' + bellTotal]._x < 10) {
bellHolder['bell' + bellTotal]._x += 250;
}
}
bellHolder['bell' + bellTotal].yspeed = 11;
bellHolder['bell' + bellTotal].capcatch = false;
bellHolder['bell' + bellTotal]._y = bellTop;
bellHolder['bell' + bellTotal].onEnterFrame = function () {
this._y += this.yspeed;
previousheight = this._y;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal -= 1;
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
this.capsize.stop();
mcMain.head_mc._y -= 7;
mcMain.head_fire._y -= 7;
_root.sucksound.start(0, 1);
Heightinc += 4;
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
miss += 1;
belloverallTotal -= 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
++bellTime2;
if (bellTime2 >= bellLimit2) {
++bellTotal2;
bellHolder.attachMovie('mcBelld', 'bellb' + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder['bellb' + bellTotal2]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellb' + bellTotal]._x > 410) {
bellHolder['bellb' + bellTotal]._x -= 250;
} else {
if (bellHolder['bellb' + bellTotal]._x < 10) {
bellHolder['bellb' + bellTotal]._x += 250;
}
}
bellHolder['bellb' + bellTotal2].yspeed = 11;
bellHolder['bellb' + bellTotal2].capcatch = false;
bellHolder['bellb' + bellTotal2]._y = bellTop;
bellHolder['bellb' + bellTotal2].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_fire)) {
if (!this.capcatch) {
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 'Hit!';
this.capsize.stop();
this._y -= yspeed;
this.capcatch = true;
_root.fireballsound.start(0, 1);
this.removeMovieClip();
mcMain.face_mc.gotoAndPlay(2);
Heightinc = 0;
if (goldon) {
achieve_mc.gotoAndStop(13);
}
i = 0;
while (i < 199) {
if (_root.bellHolder['bell' + i].capcatch) {
_root.bellHolder['bell' + i].gotoAndStop(2);
mcMain.head_mc._y = -46.9;
mcMain.head_fire._y = -46.9;
}
++i;
}
}
}
if (this._y >= Stage.height) {
miss += 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
}
function showFinalStats() {
attachMovie('mcFinalStats', 'finalstats', _root.getNextHighestDepth());
finalstats._x = 115;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
finalstats.removeMovieClip();
gameOver = false;
startedJumping = false;
score = 0;
scoreInc = 0;
};
}
stop();
var bgsound2 = new Sound();
bgsound2.attachSound('bgsound2');
_root.bgsound2.start(0, 1);
level1on = false;
level2on = true;
level3on = false;
level4on = false;
level5on = false;
Heightinc = 0;
var gamewononce = false;
var gameTimer = 0;
var mainSpeed = 25;
var mainJumping = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var belloverallTotal = 0;
var bellTime = -40;
var bellLimit = 12;
var bellTop = -50;
var bellTotal = 0;
var bellTime2 = -64;
var bellLimit2 = 96;
var bellTop2 = -50;
var bellTotal2 = 0;
var score = 0;
var miss = 0;
var scoreInc = 0;
var gameOver = false;
_root.onEnterFrame = function () {
if (Key.isDown(37) || Key.isDown(65) || Key.isDown(39) || Key.isDown(68) || Key.isDown(38) || Key.isDown(87) || Key.isDown(40) || Key.isDown(83)) {
if (!keysac) {
achieve_mc.gotoAndStop(16);
unlock15 = 1;
saveGame;
keysac = true;
}
}
if (mcMain.head_mc._y <= -760) {
achieve_mc.gotoAndStop(12);
}
if (mcMain.head_mc._y > -80) {
bonusscore1 = 0;
}
if (mcMain.head_mc._y <= -80) {
bronzeon = true;
} else {
bronzeon = false;
}
if (mcMain.head_mc._y <= -260) {
silveron = true;
} else {
silveron = false;
}
if (mcMain.head_mc._y <= -440) {
goldon = true;
} else {
goldon = false;
}
if (mcMain.head_mc._y <= -600) {
platinumon = true;
} else {
platinumon = false;
}
if (bronzeon) {
bronze.gotoAndStop(2);
bonusscore1 = 500;
} else {
bronze.gotoAndStop(1);
}
if (silveron) {
silver.gotoAndStop(2);
bonusscore1 = 1000;
} else {
silver.gotoAndStop(1);
}
if (goldon) {
gold.gotoAndStop(2);
bonusscore1 = 2000;
} else {
gold.gotoAndStop(1);
}
if (platinumon) {
platinum.gotoAndStop(2);
bonusscore1 = 5000;
} else {
platinum.gotoAndStop(1);
}
++gameTimer;
if (gameTimer >= 976) {
if (!gamewononce) {
mcMain._x = stage.width - mcMain.width / 2;
gamewon.gotoAndStop(2);
gamewononce = true;
}
}
mcMain._x = _root._xmouse;
if (mcMain._x < 0) {
mcMain._x = 0;
}
if (mcMain._x > Stage.width) {
mcMain._x = Stage.width;
}
mainJump();
makeLvl();
moveScreen();
txtScore.text = 'Score: ' + score;
txtMiss.text = 'Miss: ' + miss;
};
_root.createEmptyMovieClip('bellHolder', _root.getNextHighestDepth());
}
movieClip 469 {
frame 1 {
stop();
}
}
frame 5 {
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function makeLvl() {
if (gameTimer <= 1230) {
++bellTime;
if (bellTime >= bellLimit) {
belloverallTotal += 1;
++bellTotal;
bellHolder.attachMovie('mcBell', 'bell' + bellTotal, bellHolder.getNextHighestDepth());
bellHolder['bell' + bellTotal]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bell' + bellTotal]._x > 410) {
bellHolder['bell' + bellTotal]._x -= 250;
} else {
if (bellHolder['bell' + bellTotal]._x < 10) {
bellHolder['bell' + bellTotal]._x += 250;
}
}
bellHolder['bell' + bellTotal].yspeed = 12;
bellHolder['bell' + bellTotal].capcatch = false;
bellHolder['bell' + bellTotal]._y = bellTop;
bellHolder['bell' + bellTotal].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal -= 1;
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
this.capsize.stop();
_root.sucksound.start(0, 1);
if (tallhatcaught) {
mcMain.head_fire._y -= 32;
mcMain.head_mc._y -= 32;
Heightinc += 29;
magicianon = false;
tallhatcaught = false;
} else {
mcMain.head_mc._y -= 7;
mcMain.head_fire._y -= 7;
Heightinc += 4;
}
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
belloverallTotal -= 1;
miss += 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
++bellTime2;
if (bellTime2 >= bellLimit2) {
++bellTotal2;
bellHolder.attachMovie('mcBelld', 'belld' + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder['belld' + bellTotal2]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['belld' + bellTotal]._x > 410) {
bellHolder['belld' + bellTotal]._x -= 250;
} else {
if (bellHolder['belld' + bellTotal]._x < 10) {
bellHolder['belld' + bellTotal]._x += 250;
}
}
bellHolder['belld' + bellTotal2].yspeed = 11;
bellHolder['belld' + bellTotal2].capcatch = false;
bellHolder['belld' + bellTotal2]._y = bellTop;
bellHolder['belld' + bellTotal2].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_fire)) {
if (!this.capcatch) {
belloverallTotal3 -= 1;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 'Hit!';
this.capsize.stop();
this._y -= yspeed;
this.capcatch = true;
_root.fireballsound.start(0, 1);
this.removeMovieClip();
mcMain.face_mc.gotoAndPlay(2);
tallhatcaught = false;
Heightinc = 0;
mcMain.head_mc._y = -46.9;
mcMain.head_fire._y = -46.9;
if (goldon && !magiciancapon) {
achieve_mc.gotoAndStop(13);
}
i = 0;
while (i < 199) {
if (_root.bellHolder['bell' + i].capcatch) {
_root.bellHolder['bell' + i].gotoAndStop(2);
}
++i;
}
g = 0;
while (g < 199) {
if (_root.bellHolder['bellc' + g].capcatch) {
_root.bellHolder['bellc' + g].gotoAndStop(2);
}
++g;
}
}
}
if (this._y >= Stage.height) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
++bellTime3;
if (bellTime3 >= bellLimit3) {
belloverallTotal3 += 1;
++bellTotal3;
bellHolder.attachMovie('mcBellc', 'bellc' + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder['bellc' + bellTotal3]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellc' + bellTotal3]._x > 410) {
bellHolder['bellc' + bellTotal3]._x -= 250;
} else {
if (bellHolder['bellc' + bellTotal3]._x < 10) {
bellHolder['bellc' + bellTotal3]._x += 250;
}
}
bellHolder['bellc' + bellTotal3].yspeed = 9;
bellHolder['bellc' + bellTotal3].capcatch = false;
bellHolder['bellc' + bellTotal3]._y = bellTop;
bellHolder['bellc' + bellTotal3].onEnterFrame = function () {
this._y += this.yspeed;
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal3 -= 1;
_root.score += 20;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 20;
this.capsize.stop();
_root.sucksound.start(0, 1);
magicianon = true;
magiciancapon = true;
mcMain.head_mc._y -= 32;
mcMain.head_fire._y -= 32;
if (!tallhatcaught) {
Heightinc += 4;
tallhatcaught = true;
} else {
Heightinc += 29;
}
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this._y >= Stage.height) {
miss += 1;
belloverallTotal3 -= 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
}
function showFinalStats() {
attachMovie('mcFinalStats', 'finalstats', _root.getNextHighestDepth());
finalstats._x = 115;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
finalstats.removeMovieClip();
gameOver = false;
startedJumping = false;
score = 0;
scoreInc = 0;
};
}
stop();
var bgsound = new Sound();
bgsound.attachSound('bgsound');
_root.bgsound.start(0, 1);
magiciancapon = false;
magicianon = false;
level1on = false;
level2on = false;
level3on = true;
level4on = false;
level5on = false;
tallhatcaught = false;
Heightinc = 0;
var belloverallTotal = 0;
var belloverallTotal3 = 0;
var gameTimer = 0;
var mainSpeed = 25;
var mainJumping = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var bellTime = 0;
var bellLimit = 20;
var bellTop = -50;
var bellTotal = 0;
var bellTime2 = -64;
var bellLimit2 = 96;
var bellTop2 = -50;
var bellTotal2 = 0;
var bellTime3 = 0;
var bellLimit3 = 177;
var bellTop3 = -50;
var bellTotal3 = 0;
var score = 0;
var miss = 0;
var scoreInc = 0;
var gameOver = false;
_root.onEnterFrame = function () {
if (Key.isDown(37) || Key.isDown(65) || Key.isDown(39) || Key.isDown(68) || Key.isDown(38) || Key.isDown(87) || Key.isDown(40) || Key.isDown(83)) {
if (!keysac) {
achieve_mc.gotoAndStop(16);
unlock15 = 1;
saveGame;
keysac = true;
}
}
if (mcMain.head_mc._y <= -760) {
achieve_mc.gotoAndStop(12);
}
if (mcMain.head_mc._y > -80) {
bonusscore1 = 0;
}
if (mcMain.head_mc._y <= -80) {
bronzeon = true;
} else {
bronzeon = false;
}
if (mcMain.head_mc._y <= -260) {
silveron = true;
} else {
silveron = false;
}
if (mcMain.head_mc._y <= -440) {
goldon = true;
} else {
goldon = false;
}
if (mcMain.head_mc._y <= -600) {
platinumon = true;
} else {
platinumon = false;
}
if (bronzeon) {
bronze.gotoAndStop(2);
bonusscore1 = 500;
} else {
bronze.gotoAndStop(1);
}
if (silveron) {
silver.gotoAndStop(2);
bonusscore1 = 1000;
} else {
silver.gotoAndStop(1);
}
if (goldon) {
gold.gotoAndStop(2);
bonusscore1 = 2000;
} else {
gold.gotoAndStop(1);
}
if (platinumon) {
platinum.gotoAndStop(2);
bonusscore1 = 5000;
} else {
platinum.gotoAndStop(1);
}
++gameTimer;
if (gameTimer >= 1300) {
if (!gamewononce) {
if (magicianon && !backtitle) {
achieve_mc.gotoAndStop(6);
}
gamewon.gotoAndStop(2);
gamewononce = true;
}
}
mcMain._x = _root._xmouse;
if (mcMain._x < 0) {
mcMain._x = 0;
}
if (mcMain._x > Stage.width) {
mcMain._x = Stage.width;
}
mainJump();
makeLvl();
moveScreen();
txtScore.text = 'Score: ' + score;
txtMiss.text = 'Miss: ' + miss;
};
_root.createEmptyMovieClip('bellHolder', _root.getNextHighestDepth());
play_btn.onRelease = function () {
i = 0;
while (i < 99) {
bellHolder['bell' + i].removeMovieClip();
++i;
}
g = 0;
while (g < 99) {
bellHolder['bellc' + g].removeMovieClip();
++g;
}
stopAllSounds();
_root.gotoAndPlay(4);
gameOver = false;
score = 0;
scoreInc = 0;
};
}
frame 6 {
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function makeLvl() {
if (gameTimer <= 1230) {
++bellTime;
if (bellTime >= bellLimit) {
++bellTotal;
belloverallTotal += 1;
bellHolder.attachMovie('mcBell', 'bell' + bellTotal, bellHolder.getNextHighestDepth());
bellHolder['bell' + bellTotal]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bell' + bellTotal]._x > 410) {
bellHolder['bell' + bellTotal]._x -= 250;
} else {
if (bellHolder['bell' + bellTotal]._x < 10) {
bellHolder['bell' + bellTotal]._x += 250;
}
}
bellHolder['bell' + bellTotal].yspeed = 11;
bellHolder['bell' + bellTotal].capcatch = false;
bellHolder['bell' + bellTotal]._y = bellTop;
bellHolder['bell' + bellTotal].onEnterFrame = function () {
this._y += this.yspeed;
previousheight = this._y;
if (this.capcatch) {
this.yspeed = 0;
if (!shocked) {
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal -= 1;
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
this.capsize.stop();
mcMain.head_fire._y -= 7;
mcMain.head_mc._y -= 7;
_root.sucksound.start(0, 1);
Heightinc += 4;
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
miss += 1;
belloverallTotal -= 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
++bellTime4;
if (bellTime4 >= bellLimit4) {
++bellTotal4;
bellHolder.attachMovie('mcbellf', 'bellf' + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder['bellf' + bellTotal4]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellf' + bellTotal4]._x > 410) {
bellHolder['bellf' + bellTotal4]._x -= 250;
} else {
if (bellHolder['bellf' + bellTotal4]._x < 10) {
bellHolder['bellf' + bellTotal4]._x += 250;
}
}
bellHolder['bellf' + bellTotal4].yspeed = 11;
bellHolder['bellf' + bellTotal4].capcatch = false;
bellHolder['bellf' + bellTotal4]._y = bellTop;
bellHolder['bellf' + bellTotal4].onEnterFrame = function () {
this._y += this.yspeed;
previousheight = this._y;
if (this.hitTest(mcMain.face_mc)) {
if (!this.capcatch) {
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
mcMain.gotoAndPlay(2);
_root.elecsound.start(0, 1);
shocked = true;
this.removeMovieClip();
}
}
if (this._y >= Stage.height) {
miss += 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
++bellTime2;
if (bellTime2 >= bellLimit2) {
++bellTotal2;
bellHolder.attachMovie('mcBelld', 'bellb' + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder['bellb' + bellTotal2]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellb' + bellTotal]._x > 410) {
bellHolder['bellb' + bellTotal]._x -= 250;
} else {
if (bellHolder['bellb' + bellTotal]._x < 10) {
bellHolder['bellb' + bellTotal]._x += 250;
}
}
bellHolder['bellb' + bellTotal2].yspeed = 11;
bellHolder['bellb' + bellTotal2].capcatch = false;
bellHolder['bellb' + bellTotal2]._y = bellTop;
bellHolder['bellb' + bellTotal2].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_fire)) {
if (!this.capcatch) {
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 'Hit!';
this.capsize.stop();
this._y -= yspeed;
this.capcatch = true;
_root.fireballsound.start(0, 1);
this.removeMovieClip();
mcMain.face_mc.gotoAndPlay(2);
Heightinc = 0;
if (goldon) {
achieve_mc.gotoAndStop(13);
}
i = 0;
while (i < 199) {
if (_root.bellHolder['bell' + i].capcatch) {
_root.bellHolder['bell' + i].gotoAndStop(2);
mcMain.head_mc._y = -46.9;
mcMain.head_fire._y = -46.9;
}
++i;
}
}
}
if (this._y >= Stage.height) {
miss += 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
}
function showFinalStats() {
attachMovie('mcFinalStats', 'finalstats', _root.getNextHighestDepth());
finalstats._x = 115;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
finalstats.removeMovieClip();
gameOver = false;
startedJumping = false;
score = 0;
scoreInc = 0;
};
}
stop();
var bgsound2 = new Sound();
bgsound2.attachSound('bgsound4');
_root.bgsound2.start(0, 1);
level1on = false;
level2on = false;
level3on = false;
level4on = true;
level5on = false;
Heightinc = 0;
var shocked = false;
var gamewononce = false;
var gameTimer = 0;
var mainSpeed = 25;
var mainJumping = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var belloverallTotal = 0;
var bellTime = -40;
var bellLimit = 12;
var bellTop = -50;
var bellTotal = 0;
var bellTime2 = -64;
var bellLimit2 = 96;
var bellTop2 = -50;
var bellTotal2 = 0;
var bellTime4 = -4;
var bellLimit4 = 131;
var bellTop4 = -50;
var bellTotal4 = 0;
var score = 0;
var miss = 0;
var scoreInc = 0;
var gameOver = false;
_root.onEnterFrame = function () {
if (Key.isDown(37) || Key.isDown(65) || Key.isDown(39) || Key.isDown(68) || Key.isDown(38) || Key.isDown(87) || Key.isDown(40) || Key.isDown(83)) {
if (!keysac) {
achieve_mc.gotoAndStop(16);
unlock15 = 1;
saveGame;
keysac = true;
}
}
if (mcMain.head_mc._y <= -760) {
achieve_mc.gotoAndStop(12);
}
if (mcMain.head_mc._y > -80) {
bonusscore1 = 0;
}
if (mcMain.head_mc._y <= -80) {
bronzeon = true;
} else {
bronzeon = false;
}
if (mcMain.head_mc._y <= -260) {
silveron = true;
} else {
silveron = false;
}
if (mcMain.head_mc._y <= -440) {
goldon = true;
} else {
goldon = false;
}
if (mcMain.head_mc._y <= -600) {
platinumon = true;
} else {
platinumon = false;
}
if (bronzeon) {
bronze.gotoAndStop(2);
bonusscore1 = 500;
} else {
bronze.gotoAndStop(1);
}
if (silveron) {
silver.gotoAndStop(2);
bonusscore1 = 1000;
} else {
silver.gotoAndStop(1);
}
if (goldon) {
gold.gotoAndStop(2);
bonusscore1 = 2000;
} else {
gold.gotoAndStop(1);
}
if (platinumon) {
platinum.gotoAndStop(2);
bonusscore1 = 5000;
} else {
platinum.gotoAndStop(1);
}
++gameTimer;
if (gameTimer >= 1290) {
if (!gamewononce) {
mcMain._x = stage.width - mcMain.width / 2;
gamewon.gotoAndStop(2);
gamewononce = true;
}
}
if (!shocked) {
mcMain._x = _root._xmouse;
if (mcMain._x < 0) {
mcMain._x = 0;
}
if (mcMain._x > Stage.width) {
mcMain._x = Stage.width;
}
}
mainJump();
makeLvl();
moveScreen();
txtScore.text = 'Score: ' + score;
txtMiss.text = 'Miss: ' + miss;
};
_root.createEmptyMovieClip('bellHolder', _root.getNextHighestDepth());
}
frame 7 {
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function makeLvl() {
if (gameTimer <= 1030) {
++bellTime;
if (bellTime >= bellLimit) {
belloverallTotal += 1;
++bellTotal;
bellHolder.attachMovie('mcBellb', 'bell' + bellTotal, bellHolder.getNextHighestDepth());
bellHolder['bell' + bellTotal]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bell' + bellTotal]._x > 410) {
bellHolder['bell' + bellTotal]._x -= 250;
} else {
if (bellHolder['bell' + bellTotal]._x < 10) {
bellHolder['bell' + bellTotal]._x += 250;
}
}
bellHolder['bell' + bellTotal].yspeed = 12;
bellHolder['bell' + bellTotal].capcatch = false;
bellHolder['bell' + bellTotal]._y = bellTop;
bellHolder['bell' + bellTotal].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
if (!shocked) {
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal -= 1;
_root.scoreInc = 20;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
this.capsize.stop();
_root.sucksound.start(0, 1);
mcMain.head_fire._width = 43.3;
cowboyon = false;
if (tallhatcaught) {
mcMain.head_mc._y -= 32;
mcMain.head_fire._y -= 32;
Heightinc += 29;
tallhatcaught = false;
} else {
mcMain.head_mc._y -= 7;
mcMain.head_fire._y -= 7;
Heightinc += 4;
}
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this._y >= Stage.height) {
belloverallTotal -= 1;
miss += 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
++bellTime4;
if (bellTime4 >= bellLimit4) {
++bellTotal4;
bellHolder.attachMovie('mcbellf', 'bellf' + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder['bellf' + bellTotal4]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellf' + bellTotal4]._x > 410) {
bellHolder['bellf' + bellTotal4]._x -= 250;
} else {
if (bellHolder['bellf' + bellTotal4]._x < 10) {
bellHolder['bellf' + bellTotal4]._x += 250;
}
}
bellHolder['bellf' + bellTotal4].yspeed = 11;
bellHolder['bellf' + bellTotal4].capcatch = false;
bellHolder['bellf' + bellTotal4]._y = bellTop;
bellHolder['bellf' + bellTotal4].onEnterFrame = function () {
this._y += this.yspeed;
previousheight = this._y;
if (this.hitTest(mcMain.face_mc)) {
if (!this.capcatch) {
_root.scoreInc = 10;
_root.score += scoreInc;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = _root.scoreInc;
mcMain.gotoAndPlay(2);
_root.elecsound.start(0, 1);
shocked = true;
this.removeMovieClip();
}
}
if (this._y >= Stage.height) {
miss += 1;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
++bellTime2;
if (bellTime2 >= bellLimit2) {
++bellTotal2;
bellHolder.attachMovie('mcBelld', 'belld' + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder['belld' + bellTotal2]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['belld' + bellTotal]._x > 410) {
bellHolder['belld' + bellTotal]._x -= 250;
} else {
if (bellHolder['belld' + bellTotal]._x < 10) {
bellHolder['belld' + bellTotal]._x += 250;
}
}
bellHolder['belld' + bellTotal2].yspeed = 11;
bellHolder['belld' + bellTotal2].capcatch = false;
bellHolder['belld' + bellTotal2]._y = bellTop;
bellHolder['belld' + bellTotal2].onEnterFrame = function () {
this._y += this.yspeed;
if (this.capcatch) {
this.yspeed = 0;
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal3 -= 1;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 'Hit!';
this.capsize.stop();
this._y -= yspeed;
mcMain.head_mc._y = -46.9;
mcMain.head_fire._y = -46.9;
this.capcatch = true;
_root.fireballsound.start(0, 1);
mcMain.head_fire._width = 43.3;
this.removeMovieClip();
mcMain.face_mc.gotoAndPlay(2);
Heightinc = 0;
tallhatcaught = false;
cowboyon = false;
mcMain.head_mc._y = -46.9;
mcMain.head_fire._y = -46.9;
i = 0;
while (i < 199) {
if (_root.bellHolder['bell' + i].capcatch) {
_root.bellHolder['bell' + i].gotoAndStop(2);
}
++i;
}
g = 0;
while (g < 199) {
if (_root.bellHolder['bellc' + g].capcatch) {
_root.bellHolder['bellc' + g].gotoAndStop(2);
}
++g;
}
}
}
if (this._y >= Stage.height) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
++bellTime3;
if (bellTime3 >= bellLimit3) {
belloverallTotal3 += 1;
++bellTotal3;
bellHolder.attachMovie('mcBellg', 'bellc' + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder['bellc' + bellTotal3]._x = Math.floor(Math.random() * (Stage.width - 20)) + 20;
if (bellHolder['bellc' + bellTotal3]._x > 410) {
bellHolder['bellc' + bellTotal3]._x -= 250;
} else {
if (bellHolder['bellc' + bellTotal3]._x < 10) {
bellHolder['bellc' + bellTotal3]._x += 250;
}
}
bellHolder['bellc' + bellTotal3].yspeed = 9;
bellHolder['bellc' + bellTotal3].capcatch = false;
bellHolder['bellc' + bellTotal3]._y = bellTop;
bellHolder['bellc' + bellTotal3].onEnterFrame = function () {
this._y += this.yspeed;
if (this.hitTest(mcMain.head_mc)) {
if (!this.capcatch) {
belloverallTotal3 -= 1;
_root.score += 20;
bellHolder.attachMovie('mcScoreAdd', 'txt' + this._name, bellHolder.getNextHighestDepth());
bellHolder['txt' + this._name]._x = this._x;
bellHolder['txt' + this._name]._y = this._y;
bellHolder['txt' + this._name].txtScore.text = 20;
this.capsize.stop();
_root.sucksound.start(0, 1);
cowboyon = true;
mcMain.head_mc._y -= 32;
mcMain.head_fire._y -= 32;
mcMain.head_fire._width = 150;
if (!tallhatcaught) {
Heightinc += 4;
tallhatcaught = true;
} else {
Heightinc += 29;
}
this._y = 412 - Heightinc;
this.capcatch = true;
this.swapDepths(parentMC.getNextHighestDepth());
}
}
if (this.capcatch) {
this.yspeed = 0;
if (!shocked) {
this._x = _xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > Stage.width) {
this._x = Stage.width;
}
}
}
if (this._y >= Stage.height) {
miss += 1;
belloverallTotal3 -= 1;
mcMain.face_mc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
}
function showFinalStats() {
attachMovie('mcFinalStats', 'finalstats', _root.getNextHighestDepth());
finalstats._x = 115;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
finalstats.removeMovieClip();
gameOver = false;
startedJumping = false;
score = 0;
scoreInc = 0;
};
}
stop();
var bgsound = new Sound();
bgsound.attachSound('bgsound5');
_root.bgsound.start(0, 1);
cowboyon = false;
level1on = false;
level2on = false;
level3on = false;
level4on = false;
level5on = true;
var shocked = false;
tallhatcaught = false;
Heightinc = 0;
var belloverallTotal = 0;
var belloverallTotal3 = 0;
var gameTimer = 0;
var mainSpeed = 25;
var mainJumping = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var bellTime = 0;
var bellLimit = 12;
var bellTop = -50;
var bellTotal = 0;
var bellTime2 = -64;
var bellLimit2 = 76;
var bellTop2 = -50;
var bellTotal2 = 0;
var bellTime3 = 0;
var bellLimit3 = 133;
var bellTop3 = -50;
var bellTotal3 = 0;
var bellTime4 = -4;
var bellLimit4 = 131;
var bellTop4 = -50;
var bellTotal4 = 0;
var score = 0;
var miss = 0;
var scoreInc = 0;
var gameOver = false;
_root.onEnterFrame = function () {
if (Key.isDown(37) || Key.isDown(65) || Key.isDown(39) || Key.isDown(68) || Key.isDown(38) || Key.isDown(87) || Key.isDown(40) || Key.isDown(83)) {
if (!keysac) {
achieve_mc.gotoAndStop(16);
unlock15 = 1;
saveGame;
keysac = true;
}
}
if (mcMain.head_mc._y <= -760) {
achieve_mc.gotoAndStop(12);
}
if (mcMain.head_mc._y > -80) {
bonusscore1 = 0;
}
if (mcMain.head_mc._y <= -80) {
bronzeon = true;
} else {
bronzeon = false;
}
if (mcMain.head_mc._y <= -260) {
silveron = true;
} else {
silveron = false;
}
if (mcMain.head_mc._y <= -440) {
goldon = true;
} else {
goldon = false;
}
if (mcMain.head_mc._y <= -600) {
platinumon = true;
} else {
platinumon = false;
}
if (bronzeon) {
bronze.gotoAndStop(2);
bonusscore1 = 500;
} else {
bronze.gotoAndStop(1);
}
if (silveron) {
silver.gotoAndStop(2);
bonusscore1 = 1000;
} else {
silver.gotoAndStop(1);
}
if (goldon) {
gold.gotoAndStop(2);
bonusscore1 = 2000;
} else {
gold.gotoAndStop(1);
}
if (platinumon) {
platinum.gotoAndStop(2);
bonusscore1 = 5000;
} else {
platinum.gotoAndStop(1);
}
++gameTimer;
if (gameTimer >= 1100) {
if (!gameFinal) {
if (!gamewononce) {
if (cowboyon && !backtitle) {
achieve_mc.gotoAndStop(7);
}
gamewon.gotoAndStop(2);
gamewononce = true;
gameFinal = true;
}
}
}
if (!shocked) {
mcMain._x = _root._xmouse;
if (mcMain._x < 0) {
mcMain._x = 0;
}
if (mcMain._x > Stage.width) {
mcMain._x = Stage.width;
}
}
mainJump();
makeLvl();
moveScreen();
txtScore.text = 'Score: ' + score;
txtMiss.text = 'Miss: ' + miss;
};
_root.createEmptyMovieClip('bellHolder', _root.getNextHighestDepth());
play_btn.onRelease = function () {
i = 0;
while (i < 99) {
bellHolder['bell' + i].removeMovieClip();
++i;
}
g = 0;
while (g < 99) {
bellHolder['bellc' + g].removeMovieClip();
++g;
}
stopAllSounds();
_root.gotoAndPlay(4);
gameOver = false;
score = 0;
scoreInc = 0;
};
}
frame 8 {
gameOver = true;
gameFinal = true;
if (firsthiscoresave == 1) {
achieve_mc.gotoAndStop(11);
} else {
achieve_mc.gotoAndStop(10);
firsthiscoresave = 1;
saveGame();
}
}
frame 8 {
submitscore.onRelease = function () {
if (!_root.senthiscore) {
_root.achieve_mc.gotoAndStop(17);
_root.unlock16 = 1;
_root.saveGame;
_root.senthiscore = true;
}
var v3 = {'n': [14, 8, 4, 0, 5, 1, 15, 7, 4, 8, 2, 13, 6, 5, 9, 10], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v4 = v3.f(0, '');
mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': grandtotal});
};
}
frame 8 {
grandtotal = totalscore1 + totalscore2 + totalscore3 + totalscore4 + totalscore5;
}
movieClip 488 {
}
movieClip 489 {
frame 6 {
stop();
}
instance of movieClip 488 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://twitter.com/home?status=I just got a high score of ' + _root.grandtotal + ' on Cap Stack. Can you beat me? Play here http://www.longanimalsgames.com/gotogame.php?game=CapStack', '_blank');
}
}
}
instance longlogo of movieClip 197 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
this.gotoAndStop(3);
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=mainlogo', '_blank');
}
}
movieClip 507 {
}
movieClip 508 {
frame 1 {
stop();
}
}
instance submitscore of movieClip 508 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
}
instance of movieClip 214 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
getURL('http://www.longanimalsgames.com?referral=capstack&refmode=moregames', '_blank');
}
}
movieClip 512 {
frame 6 {
stop();
}
}
movieClip 516 {
frame 1 {
stop();
}
frame 6 {
stop();
}
frame 11 {
stop();
}
}
instance of movieClip 516 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndPlay(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndPlay(6);
}
onClipEvent (releaseOutside) {
this.gotoAndPlay(6);
}
onClipEvent (release) {
stopAllSounds();
_root.musicplayed = false;
_root.nextsnd.start(0, 1);
_root.gotoAndStop(2);
_root.bronzeon = false;
_root.silveron = false;
_root.goldon = false;
_root.platinumon = false;
_root.bronze.gotoAndStop(1);
_root.silver.gotoAndStop(1);
_root.gold.gotoAndStop(1);
_root.platinum.gotoAndStop(1);
_root.gameOver = false;
_root.gameTImer = 0;
_root.gamewononce = false;
i = 0;
while (i < 199) {
_root.bellHolder['bell' + i].removeMovieClip();
++i;
}
g = 0;
while (g < 199) {
_root.bellHolder['bellb' + g].removeMovieClip();
++g;
}
h = 0;
while (h < 199) {
_root.bellHolder['bellc' + h].removeMovieClip();
++h;
}
j = 0;
while (j < 199) {
_root.bellHolder['belld' + j].removeMovieClip();
++j;
}
gotoAndStop(1);
_root.gameTimer = 0;
_root.mcMain.head_mc._y = -46.9;
_root.mcMain.head_fire._y = -46.9;
_root.gamewon.gotoAndStop(1);
_root.gameOver = false;
_root.score = 0;
_root.scoreInc = 0;
}
}
frame 9 {
viewhiscores.onRelease = function () {
var v2 = {'n': [14, 8, 4, 0, 5, 1, 15, 7, 4, 8, 2, 13, 6, 5, 9, 10], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v3 = v2.f(0, '');
mochi.as2.MochiScores.showLeaderboard({'boardID': v3});
};
}
frame 9 {
infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
movieClip 520 {
frame 6 {
stop();
}
}
movieClip 525 {
frame 1 {
stop();
}
frame 2 {
_root.unlockedtotal += 1;
}
}
instance capdet of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Earn a Bronze Medal to unlock this achievement!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance captain of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Earn a Silver Medal to unlock this achievement!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance capmmander of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Earn a Gold Medal to unlock this achievement!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance capmmodore of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Earn a Platinum Medal to unlock this achievement!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance perfectionist of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Catch all caps at any one level to unlock this achievement!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance stackburner of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Burn a stack of blue caps at Gold height!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance touchthesky of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Are you hardcore enough? Build a stack of caps and touch top of the screen!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
movieClip 535 {
}
instance firstcap of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Wear your first cap!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance notthekeys of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Figure out the controls!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance braggingrights of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Send your score for the world to see!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance magicianc of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Finish a level with a black magician hat on top of the stack!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance cowboy of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Finish a level with a brown cowboy hat on top of the stack!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance quitter of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Even quitting a level earns you achievement. Now try again harder!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance firsthiscorec of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Earn your very first highscore by beating the game!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance beatingyourown of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Now try to beat your own highscore!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance achiever of movieClip 525 {
onClipEvent (rollOver) {
_root.sucksound.start(0, 1);
_root.infomsg = 'Get at least 7 achievements!';
}
onClipEvent (rollOut) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
onClipEvent (releaseOutside) {
_root.infomsg = 'Topped the Highscore yet? Try getting all these achievements too!';
}
}
instance of movieClip 462 {
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
_root.sucksound.start(0, 1);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
this.gotoAndStop(1);
}
onClipEvent (release) {
_root.gotoAndStop(2);
}
}