Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("056fceb7", this, 10301, true);
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) {
_root.enablestuff = 2;
_root.onNG = 2;
} else {
_root.enablestuff = 2;
}
}
function clickdan() {
_root.getURL("http://www.hexep.com/developer.html", "_BLANK");
}
function hexepsettingspage() {
_root.dest = 5;
_root.transit.play();
}
function visitmusicauthor() {
_root.getURL("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
function visitsponsor() {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
var CPMStarContentSpotID = "7968QB8545BAF";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
urls_allowed = ["newgrounds.com", "uploads.ungrounded.net"];
sitelock(urls_allowed);
var savefile = SharedObject.getLocal("HEXEPSAVEFILE");
if (savefile.data.levelsunlocked == undefined) {
trace("NO DATA FOUND");
_root.levelsunlocked = 1;
_root.secondsplayed = 0;
_root.resetsamount = 0;
_root.levelsmade = 0;
__com_mochibot__("8ea7ad8e", this, 10301, true);
} else {
trace("we found data");
_root.levelsmade = savefile.data.levelsmade;
_root.levelsunlocked = savefile.data.levelsunlocked;
_root.levelleftat = savefile.data.levelsunlocked;
_root.secondsplayed = savefile.data.secondsplayed;
_root.resetsamount = savefile.data.resetsamount;
_root.playername = savefile.data.playername;
_root.partytheme = savefile.data.partytheme;
_root.letter11 = savefile.data.letter11;
_root.letter22 = savefile.data.letter22;
_root.letter33 = savefile.data.letter33;
_root.letter44 = savefile.data.letter44;
_root.letter55 = savefile.data.letter55;
_root.letter66 = savefile.data.letter66;
_root.letter77 = savefile.data.letter77;
_root.letter88 = savefile.data.letter88;
}
_root.invertall = 1;
_root.showmouse = 0;
_root.maxvolume = 4;
_root.totalcolours = 9;
_root.randomalpha = 35;
_root.minalpha = 80;
_root.musicstatus = 2;
_root.alphastate = 90;
_root.resetnow = 2;
_root.colour2 = 2;
_root.colour = 3;
_root.partymode = 0;
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var hexepoptions = new ContextMenuItem("HEXEP Options", hexepsettingspage);
var programcredit = new ContextMenuItem("Programmed and Developed by Daniel Cherbanich", clickdan);
programcredit.separatorBefore = true;
var musiccredit = new ContextMenuItem("Music by Morgan McSweeney", visitmusicauthor);
var sponsorcredit = new ContextMenuItem("Sponsored by Spiked Math", visitsponsor);
_root.menu = myMenu;
Instance of Symbol 94 MovieClip in Frame 1
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour2);
_root.menutimer = _root.menutimer + 1;
if (_root.menutimer > 350) {
_root.menutimer = random(100);
}
}
Instance of Symbol 171 MovieClip in Frame 1
onClipEvent (load) {
_root.loadprogress = 0;
}
onClipEvent (enterFrame) {
_root.loadprogress = _root.loadprogress + 0.25;
}
Instance of Symbol 173 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loadprogress = loaded * 100;
}
Instance of Symbol 85 MovieClip [APIConnector] in Frame 1
//component parameters
onClipEvent (construct) {
apiId = "21776:cgyTZoKV";
encryptionKey = "l8C6uSI7meOJVBRRR9pjlS8NqdE5Tz18";
debugMode = "Simulate Logged-in User";
movieVersion = "";
connectorType = "Invisible";
redirectOnNewVersion = true;
redirectOnHostBlocked = true;
adType = "Video";
}
Instance of Symbol 199 MovieClip "mouse" in Frame 1
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 2
var brightsound = new Sound();
brightsound.attachSound("brightsound");
var beepsound = new Sound();
beepsound.attachSound("beepsound");
var resetsound = new Sound();
resetsound.attachSound("resetsound");
var transitsound = new Sound();
transitsound.attachSound("transitsound");
var passsound = new Sound();
passsound.attachSound("passsound");
var soundpass = new Sound();
soundpass.attachSound("soundpass");
var passsound2 = new Sound();
passsound2.attachSound("passsound2");
var soundpass2 = new Sound();
soundpass2.attachSound("soundpass2");
if (_root.invertall == 1) {
_root.iholdmusic.play();
} else {
_root.iholdmusic.gotoAndPlay(3546);
}
myMenu.customItems.push(hexepoptions);
myMenu.customItems.push(programcredit);
myMenu.customItems.push(musiccredit);
myMenu.customItems.push(sponsorcredit);
play();
_root.tipnum = 0;
Instance of Symbol 239 MovieClip "iholdmusic" in Frame 2
onClipEvent (load) {
xx = _x;
sss = 0;
}
onClipEvent (enterFrame) {
sss = sss + 1;
if (sss == 30) {
sss = 1;
_root.secondsplayed = _root.secondsplayed + 1;
}
if (_root.invertall == 0) {
if (this._alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
}
if ((_root.secondsplayed == 7200) || (_root.secondsplayed == 7210)) {
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("\"Invest\" 2 hours in the game");
}
}
}
Instance of Symbol 248 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.partymode == 1) {
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 280 MovieClip [MedalPopup] in Frame 2
//component parameters
onClipEvent (construct) {
alwaysOnTop = "true";
}
onClipEvent (load) {
if (_root.onNG != 2) {
}
}
Frame 3
stop();
_root.colour = random(7) + 1;
_root.colour2 = random(7) + 1;
Instance of Symbol 94 MovieClip in Frame 3
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour2);
_root.menutimer = _root.menutimer + 1;
if (_root.menutimer > 350) {
_root.menutimer = random(100);
}
}
Instance of Symbol 298 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.statcounter = _root.secondsplayed;
}
Instance of Symbol 298 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.statcounter = _root.resetsamount;
}
Frame 4
stop();
_root.colour = random(7) + 1;
_root.colour2 = random(7) + 1;
Instance of Symbol 94 MovieClip in Frame 4
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour2);
_root.menutimer = _root.menutimer + 1;
if (_root.menutimer > 350) {
_root.menutimer = random(100);
}
}
Instance of Symbol 333 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(32) && (Key.isDown(65))) {
_root.levelsunlocked = 30;
_root.secondsplayed = 999999 /* 0x0F423F */;
_root.resetsamount = 13370;
_root.dest = 3;
_root.transit.play();
}
}
Frame 5
stop();
_root.colour = random(7) + 1;
_root.colour2 = random(7) + 1;
Frame 6
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 7
stop();
Frame 8
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 9
stop();
Frame 10
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 11
stop();
Frame 12
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 13
stop();
Frame 14
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 15
stop();
Frame 16
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 17
stop();
Frame 18
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 19
stop();
Frame 20
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 21
stop();
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Beat Level 7");
}
Frame 22
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 23
stop();
Frame 24
if (_root.levelsunlocked == 10) {
if (_root.levelleftat != 10) {
__com_mochibot__("8424cef0", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 25
stop();
Frame 26
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 27
stop();
Frame 28
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 29
stop();
Frame 30
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 31
stop();
Frame 32
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 33
stop();
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Beat Level 13");
}
Frame 34
if (_root.levelsunlocked == 15) {
if (_root.levelleftat != 15) {
__com_mochibot__("87a51e94", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 35
stop();
Frame 36
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 37
stop();
Frame 38
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 39
stop();
Frame 40
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 41
stop();
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Beat Level 17");
}
Frame 42
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = 5;
_root.numberorder = 1;
play();
Frame 43
stop();
Frame 44
if (_root.levelsunlocked == 20) {
if (_root.levelleftat != 20) {
__com_mochibot__("b9f4c20c", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 45
stop();
Frame 46
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 47
stop();
Frame 48
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 49
stop();
Frame 50
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 51
stop();
Frame 52
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 53
stop();
Frame 54
if (_root.levelsunlocked == 25) {
if (_root.levelleftat != 25) {
__com_mochibot__("d3f54bbe", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 55
stop();
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Beat Level 24");
}
Frame 56
if (_root.levelsunlocked == 26) {
if (_root.levelleftat != 26) {
__com_mochibot__("d16cb1e3", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 57
stop();
Frame 58
if (_root.levelsunlocked == 27) {
if (_root.levelleftat != 27) {
__com_mochibot__("54537b5b", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 59
stop();
Frame 60
if (_root.levelsunlocked == 28) {
if (_root.levelleftat != 28) {
__com_mochibot__("11316e9b", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 61
stop();
Frame 62
if (_root.levelsunlocked == 29) {
if (_root.levelleftat != 29) {
__com_mochibot__("8081750e", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 63
stop();
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Beat Level 28");
}
Frame 64
if (_root.levelsunlocked == 27) {
if (_root.levelleftat != 30) {
__com_mochibot__("81428549", this, 10301, true);
}
}
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
play();
Frame 65
stop();
Frame 66
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.colour = random(_root.totalcolours) + 1;
_root.numberorder = 1;
gotoAndStop (69);
Frame 67
if (_root.partytheme != 2) {
__com_mochibot__("02092e21", this, 10301, true);
}
function sendScore(GameName, SubmitterName, ScoreVar, Type, DeveloperName, Mode, Password) {
if (sentScore != ScoreVar) {
sentScore = ScoreVar.toString();
sentScore = Base64.Encode(sentScore);
GameName = GameName.split(" ");
GameName = GameName.join("_");
_root.loadVariables((((((((("http://www.casualcollision.com/send_score.php?game=" + GameName) + "&name=") + SubmitterName) + "&developer=") + DeveloperName) + "&mode=") + Mode) + "&password=") + Password, "POST");
getURL ((((((("http://www.casualcollision.com/scores.php?game=" + GameName) + "&type=") + Type) + "&developer=") + DeveloperName) + "&mode=") + Mode, "_blank");
}
}
stop();
_root.colour = random(_root.totalcolours) + 1;
_root.playername = ((((((_root.letter11 + _root.letter22) + _root.letter33) + _root.letter44) + _root.letter55) + _root.letter66) + _root.letter77) + _root.letter88;
Instance of Symbol 94 MovieClip in Frame 67
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (load) {
this.gotoAndStop(random(8) + 1);
}
Instance of Symbol 94 MovieClip in Frame 67
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (load) {
this.gotoAndStop(random(8) + 1);
}
Instance of Symbol 94 MovieClip in Frame 67
onClipEvent (load) {
_root.menutimer = 0;
}
onClipEvent (load) {
this.gotoAndStop(random(8) + 1);
}
Instance of Symbol 712 MovieClip in Frame 67
onClipEvent (load) {
_root.finishsecondsplayed = _root.secondsplayed;
this.statcounter = _root.secondsplayed;
}
Instance of Symbol 714 MovieClip in Frame 67
onClipEvent (load) {
_root.finishresetsamount = _root.resetsamount;
this.statcounter = _root.resetsamount;
}
Frame 68
stop();
_root.partytheme = 2;
_root.savefile.data.partytheme = _root.partytheme;
_root.savefile.flush();
_root.colour = random(_root.totalcolours) + 1;
Frame 69
stop();
_root.colour = random(_root.totalcolours) + 1;
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Complete HEXEP");
}
Frame 70
stop();
_root.colour = 1;
Frame 71
stop();
_root.colour = 1;
_root.alphastate = random(randomalpha) + minalpha;
_root.collected = 0;
_root.amounttocollect = 0;
_root.numberorder = 1;
_root.whoslevel = 1;
_root.activehex._x = -200;
Instance of Symbol 804 MovieClip "testbutton" in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 3) {
trace(_root.testing);
if (ttt > 0) {
ttt = ttt - 1;
} else {
_root.testing = 0;
}
}
}
onClipEvent (load) {
ttt = 2;
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
trace("exporting, tstatus = " + tstatus);
_root.tile1 = tstatus;
}
if (_root.testing == 2) {
trace("importing, istatus = " + istatus);
istatus = _root.tile1;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile2 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile2;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile3 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile3;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile4 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile4;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile5 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile5;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile6 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile6;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile7 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile7;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile8 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile8;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile9 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile9;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile10 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile10;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile11 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile11;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile12 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile12;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile13 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile13;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile14 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile14;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile15 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile15;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile16 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile16;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile17 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile17;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile18 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile18;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile19 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile19;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile20 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile20;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile21 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile21;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile22 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile22;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile23 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile23;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile24 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile24;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile25 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile25;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile26 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile26;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile27 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile27;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile28 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile28;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile29 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile29;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile30 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile30;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile31 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile31;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile33 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile33;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile34 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile34;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile35 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile35;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile36 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile36;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile37 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile37;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile38 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile38;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile39 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile39;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile40 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile40;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile41 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile41;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile42 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile42;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile43 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile43;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile44 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile44;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile45 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile45;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile46 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile46;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile47 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile47;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile48 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile48;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile49 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile49;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile50 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile50;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile51 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile51;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile52 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile52;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile53 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile53;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile54 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile54;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile55 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile55;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile56 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile56;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile57 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile57;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile58 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile58;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile59 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile59;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile60 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile60;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile61 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile61;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile62 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile62;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile63 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile63;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile64 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile64;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile65 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile65;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile66 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile66;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile68 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile68;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile69 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile69;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile70 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile70;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile71 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile71;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile72 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile72;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile73 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile73;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile74 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile74;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile75 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile75;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile76 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile76;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile77 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile77;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile78 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile78;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile79 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile79;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile80 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile80;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile81 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile81;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile82 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile82;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile83 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile83;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile67 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile67;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile84 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile84;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile85 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile85;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile86 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile86;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile87 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile87;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile88 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile88;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile89 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile89;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile90 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile90;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile91 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile91;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile92 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile92;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile93 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile93;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile94 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile94;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile95 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile95;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile96 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile96;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile97 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile97;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile98 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile98;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile99 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile99;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile100 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile100;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile101 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile101;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile103 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile103;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile104 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile104;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile105 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile105;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile106 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile106;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile107 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile107;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile108 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile108;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile109 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile109;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile110 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile110;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile111 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile111;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile112 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile112;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile113 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile113;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile114 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile114;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile115 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile115;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile116 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile116;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile117 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile117;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile118 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile118;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile102 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile102;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile119 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile119;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile120 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile120;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile121 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile121;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile122 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile122;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile123 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile123;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile124 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile124;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile125 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile125;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile126 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile126;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile127 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile127;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile128 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile128;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile129 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile129;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile130 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile130;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile131 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile131;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile132 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile132;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile133 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile133;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile134 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile134;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile135 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile135;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile136 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile136;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile138 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile138;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile139 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile139;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile140 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile140;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile141 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile141;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile142 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile142;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile143 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile143;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile144 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile144;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile145 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile145;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile146 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile146;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile147 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile147;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile148 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile148;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile149 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile149;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile150 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile150;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile151 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile151;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile152 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile152;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile153 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile153;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile137 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile137;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile154 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile154;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile155 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile155;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile156 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile156;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile157 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile157;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile158 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile158;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile159 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile159;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile160 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile160;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile161 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile161;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile162 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile162;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile163 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile163;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile164 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile164;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile165 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile165;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile166 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile166;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile167 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile167;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile168 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile168;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile169 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile169;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile170 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile170;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile171 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile171;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile173 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile173;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile174 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile174;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile175 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile175;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile176 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile176;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile177 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile177;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile178 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile178;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile179 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile179;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile180 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile180;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile181 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile181;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile182 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile182;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile183 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile183;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile184 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile184;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile185 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile185;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile186 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile186;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile187 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile187;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile188 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile188;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile172 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile172;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile189 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile189;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile190 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile190;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile191 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile191;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile192 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile192;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile193 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile193;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile194 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile194;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile195 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile195;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile196 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile196;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile197 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile197;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile198 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile198;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile199 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile199;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile200 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile200;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile201 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile201;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile202 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile202;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile203 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile203;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile204 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile204;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile205 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile205;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile206 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile206;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile208 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile208;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile209 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile209;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile210 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile210;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile211 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile211;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile212 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile212;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile213 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile213;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile214 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile214;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile215 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile215;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile216 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile216;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile217 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile217;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile218 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile218;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile219 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile219;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile220 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile220;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile221 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile221;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile222 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile222;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile223 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile223;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile207 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile207;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile224 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile224;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile225 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile225;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile226 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile226;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile227 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile227;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile228 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile228;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile229 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile229;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile230 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile230;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile231 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile231;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile232 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile232;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile233 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile233;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile234 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile234;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile235 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile235;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile236 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile236;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile237 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile237;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile238 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile238;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile239 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile239;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile240 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile240;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile241 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile241;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile243 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile243;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile244 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile244;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile245 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile245;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile246 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile246;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile247 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile247;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile248 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile248;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile249 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile249;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile250 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile250;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile251 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile251;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile252 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile252;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile253 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile253;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile254 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile254;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile255 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile255;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile256 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile256;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile257 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile257;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile258 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile258;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile242 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile242;
}
}
Instance of Symbol 812 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.testing == 1) {
_root.tile32 = tstatus;
}
if (_root.testing == 2) {
istatus = _root.tile32;
}
}
Instance of Symbol 817 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.showing == 2) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
}
if (Key.isDown(72)) {
if (asd != 2) {
if (_root.showing == 2) {
_root.showing = 1;
} else {
_root.showing = 2;
}
asd = 2;
}
} else {
asd = 1;
}
}
Frame 72
stop();
_root.colour = random(_root.totalcolours) + 1;
Instance of Symbol 824 MovieClip "editbutton" in Frame 72
onClipEvent (enterFrame) {
if (_root.whoslevel == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (_root.testing == 2) {
if (ttt > 0) {
ttt = ttt - 1;
} else {
_root.testing = 3;
trace(_root.testing);
}
}
}
onClipEvent (load) {
_root.testing = 2;
ttt = 1;
}
Frame 73
stop();
if (_root.whoslevel == 2) {
_root.gotoAndStop(76);
}
Frame 74
function onFileLoaded(event) {
if (event.__get__success()) {
var _local2 = event.__get__data();
trace("File loaded: " + _local2.__get__name());
_root.newleveldata = _local2.data;
trace("file.data check: " + _local2.__get__data());
trace("data retrieval check: " + _root.newleveldata);
LevelDataArray = _root.newleveldata.split("#");
_root.tile1 = LevelDataArray[1];
_root.tile2 = LevelDataArray[2];
_root.tile3 = LevelDataArray[3];
_root.tile4 = LevelDataArray[4];
_root.tile5 = LevelDataArray[5];
_root.tile6 = LevelDataArray[6];
_root.tile7 = LevelDataArray[7];
_root.tile8 = LevelDataArray[8];
_root.tile9 = LevelDataArray[9];
_root.tile10 = LevelDataArray[10];
_root.tile11 = LevelDataArray[11];
_root.tile12 = LevelDataArray[12];
_root.tile13 = LevelDataArray[13];
_root.tile14 = LevelDataArray[14];
_root.tile15 = LevelDataArray[15];
_root.tile16 = LevelDataArray[16];
_root.tile17 = LevelDataArray[17];
_root.tile18 = LevelDataArray[18];
_root.tile19 = LevelDataArray[19];
_root.tile20 = LevelDataArray[20];
_root.tile21 = LevelDataArray[21];
_root.tile22 = LevelDataArray[22];
_root.tile23 = LevelDataArray[23];
_root.tile24 = LevelDataArray[24];
_root.tile25 = LevelDataArray[25];
_root.tile26 = LevelDataArray[26];
_root.tile27 = LevelDataArray[27];
_root.tile28 = LevelDataArray[28];
_root.tile29 = LevelDataArray[29];
_root.tile30 = LevelDataArray[30];
_root.tile31 = LevelDataArray[31];
_root.tile32 = LevelDataArray[32];
_root.tile33 = LevelDataArray[33];
_root.tile34 = LevelDataArray[34];
_root.tile35 = LevelDataArray[35];
_root.tile36 = LevelDataArray[36];
_root.tile37 = LevelDataArray[37];
_root.tile38 = LevelDataArray[38];
_root.tile39 = LevelDataArray[39];
_root.tile40 = LevelDataArray[40];
_root.tile41 = LevelDataArray[41];
_root.tile42 = LevelDataArray[42];
_root.tile43 = LevelDataArray[43];
_root.tile44 = LevelDataArray[44];
_root.tile45 = LevelDataArray[45];
_root.tile46 = LevelDataArray[46];
_root.tile47 = LevelDataArray[47];
_root.tile48 = LevelDataArray[48];
_root.tile49 = LevelDataArray[49];
_root.tile50 = LevelDataArray[50];
_root.tile51 = LevelDataArray[51];
_root.tile52 = LevelDataArray[52];
_root.tile53 = LevelDataArray[53];
_root.tile54 = LevelDataArray[54];
_root.tile55 = LevelDataArray[55];
_root.tile56 = LevelDataArray[56];
_root.tile57 = LevelDataArray[57];
_root.tile58 = LevelDataArray[58];
_root.tile59 = LevelDataArray[59];
_root.tile60 = LevelDataArray[60];
_root.tile61 = LevelDataArray[61];
_root.tile62 = LevelDataArray[62];
_root.tile63 = LevelDataArray[63];
_root.tile64 = LevelDataArray[64];
_root.tile65 = LevelDataArray[65];
_root.tile66 = LevelDataArray[66];
_root.tile67 = LevelDataArray[67];
_root.tile68 = LevelDataArray[68];
_root.tile69 = LevelDataArray[69];
_root.tile70 = LevelDataArray[70];
_root.tile71 = LevelDataArray[71];
_root.tile72 = LevelDataArray[72];
_root.tile73 = LevelDataArray[73];
_root.tile74 = LevelDataArray[74];
_root.tile75 = LevelDataArray[75];
_root.tile76 = LevelDataArray[76];
_root.tile77 = LevelDataArray[77];
_root.tile78 = LevelDataArray[78];
_root.tile79 = LevelDataArray[79];
_root.tile80 = LevelDataArray[80];
_root.tile81 = LevelDataArray[81];
_root.tile82 = LevelDataArray[82];
_root.tile83 = LevelDataArray[83];
_root.tile84 = LevelDataArray[84];
_root.tile85 = LevelDataArray[85];
_root.tile86 = LevelDataArray[86];
_root.tile87 = LevelDataArray[87];
_root.tile88 = LevelDataArray[88];
_root.tile89 = LevelDataArray[89];
_root.tile90 = LevelDataArray[90];
_root.tile91 = LevelDataArray[91];
_root.tile92 = LevelDataArray[92];
_root.tile93 = LevelDataArray[93];
_root.tile94 = LevelDataArray[94];
_root.tile95 = LevelDataArray[95];
_root.tile96 = LevelDataArray[96];
_root.tile97 = LevelDataArray[97];
_root.tile98 = LevelDataArray[98];
_root.tile99 = LevelDataArray[99];
_root.tile100 = LevelDataArray[100];
_root.tile101 = LevelDataArray[101];
_root.tile102 = LevelDataArray[102];
_root.tile103 = LevelDataArray[103];
_root.tile104 = LevelDataArray[104];
_root.tile105 = LevelDataArray[105];
_root.tile106 = LevelDataArray[106];
_root.tile107 = LevelDataArray[107];
_root.tile108 = LevelDataArray[108];
_root.tile109 = LevelDataArray[109];
_root.tile110 = LevelDataArray[110];
_root.tile111 = LevelDataArray[111];
_root.tile112 = LevelDataArray[112];
_root.tile113 = LevelDataArray[113];
_root.tile114 = LevelDataArray[114];
_root.tile115 = LevelDataArray[115];
_root.tile116 = LevelDataArray[116];
_root.tile117 = LevelDataArray[117];
_root.tile118 = LevelDataArray[118];
_root.tile119 = LevelDataArray[119];
_root.tile120 = LevelDataArray[120];
_root.tile121 = LevelDataArray[121];
_root.tile122 = LevelDataArray[122];
_root.tile123 = LevelDataArray[123];
_root.tile124 = LevelDataArray[124];
_root.tile125 = LevelDataArray[125];
_root.tile126 = LevelDataArray[126];
_root.tile127 = LevelDataArray[127];
_root.tile128 = LevelDataArray[128];
_root.tile129 = LevelDataArray[129];
_root.tile130 = LevelDataArray[130];
_root.tile131 = LevelDataArray[131];
_root.tile132 = LevelDataArray[132];
_root.tile133 = LevelDataArray[133];
_root.tile134 = LevelDataArray[134];
_root.tile135 = LevelDataArray[135];
_root.tile136 = LevelDataArray[136];
_root.tile137 = LevelDataArray[137];
_root.tile138 = LevelDataArray[138];
_root.tile139 = LevelDataArray[139];
_root.tile140 = LevelDataArray[140];
_root.tile141 = LevelDataArray[141];
_root.tile142 = LevelDataArray[142];
_root.tile143 = LevelDataArray[143];
_root.tile144 = LevelDataArray[144];
_root.tile145 = LevelDataArray[145];
_root.tile146 = LevelDataArray[146];
_root.tile147 = LevelDataArray[147];
_root.tile148 = LevelDataArray[148];
_root.tile149 = LevelDataArray[149];
_root.tile150 = LevelDataArray[150];
_root.tile151 = LevelDataArray[151];
_root.tile152 = LevelDataArray[152];
_root.tile153 = LevelDataArray[153];
_root.tile154 = LevelDataArray[154];
_root.tile155 = LevelDataArray[155];
_root.tile156 = LevelDataArray[156];
_root.tile157 = LevelDataArray[157];
_root.tile158 = LevelDataArray[158];
_root.tile159 = LevelDataArray[159];
_root.tile160 = LevelDataArray[160];
_root.tile161 = LevelDataArray[161];
_root.tile162 = LevelDataArray[162];
_root.tile163 = LevelDataArray[163];
_root.tile164 = LevelDataArray[164];
_root.tile165 = LevelDataArray[165];
_root.tile166 = LevelDataArray[166];
_root.tile167 = LevelDataArray[167];
_root.tile168 = LevelDataArray[168];
_root.tile169 = LevelDataArray[169];
_root.tile170 = LevelDataArray[170];
_root.tile171 = LevelDataArray[171];
_root.tile172 = LevelDataArray[172];
_root.tile173 = LevelDataArray[173];
_root.tile174 = LevelDataArray[174];
_root.tile175 = LevelDataArray[175];
_root.tile176 = LevelDataArray[176];
_root.tile177 = LevelDataArray[177];
_root.tile178 = LevelDataArray[178];
_root.tile179 = LevelDataArray[179];
_root.tile180 = LevelDataArray[180];
_root.tile181 = LevelDataArray[181];
_root.tile182 = LevelDataArray[182];
_root.tile183 = LevelDataArray[183];
_root.tile184 = LevelDataArray[184];
_root.tile185 = LevelDataArray[185];
_root.tile186 = LevelDataArray[186];
_root.tile187 = LevelDataArray[187];
_root.tile188 = LevelDataArray[188];
_root.tile189 = LevelDataArray[189];
_root.tile190 = LevelDataArray[190];
_root.tile191 = LevelDataArray[191];
_root.tile192 = LevelDataArray[192];
_root.tile193 = LevelDataArray[193];
_root.tile194 = LevelDataArray[194];
_root.tile195 = LevelDataArray[195];
_root.tile196 = LevelDataArray[196];
_root.tile197 = LevelDataArray[197];
_root.tile198 = LevelDataArray[198];
_root.tile199 = LevelDataArray[199];
_root.tile200 = LevelDataArray[200];
_root.tile201 = LevelDataArray[201];
_root.tile202 = LevelDataArray[202];
_root.tile203 = LevelDataArray[203];
_root.tile204 = LevelDataArray[204];
_root.tile205 = LevelDataArray[205];
_root.tile206 = LevelDataArray[206];
_root.tile207 = LevelDataArray[207];
_root.tile208 = LevelDataArray[208];
_root.tile209 = LevelDataArray[209];
_root.tile210 = LevelDataArray[210];
_root.tile211 = LevelDataArray[211];
_root.tile212 = LevelDataArray[212];
_root.tile213 = LevelDataArray[213];
_root.tile214 = LevelDataArray[214];
_root.tile215 = LevelDataArray[215];
_root.tile216 = LevelDataArray[216];
_root.tile217 = LevelDataArray[217];
_root.tile218 = LevelDataArray[218];
_root.tile219 = LevelDataArray[219];
_root.tile220 = LevelDataArray[220];
_root.tile221 = LevelDataArray[221];
_root.tile222 = LevelDataArray[222];
_root.tile223 = LevelDataArray[223];
_root.tile224 = LevelDataArray[224];
_root.tile225 = LevelDataArray[225];
_root.tile226 = LevelDataArray[226];
_root.tile227 = LevelDataArray[227];
_root.tile228 = LevelDataArray[228];
_root.tile229 = LevelDataArray[229];
_root.tile230 = LevelDataArray[230];
_root.tile231 = LevelDataArray[231];
_root.tile232 = LevelDataArray[232];
_root.tile233 = LevelDataArray[233];
_root.tile234 = LevelDataArray[234];
_root.tile235 = LevelDataArray[235];
_root.tile236 = LevelDataArray[236];
_root.tile237 = LevelDataArray[237];
_root.tile238 = LevelDataArray[238];
_root.tile239 = LevelDataArray[239];
_root.tile240 = LevelDataArray[240];
_root.tile241 = LevelDataArray[241];
_root.tile242 = LevelDataArray[242];
_root.tile243 = LevelDataArray[243];
_root.tile244 = LevelDataArray[244];
_root.tile245 = LevelDataArray[245];
_root.tile246 = LevelDataArray[246];
_root.tile247 = LevelDataArray[247];
_root.tile248 = LevelDataArray[248];
_root.tile249 = LevelDataArray[249];
_root.tile250 = LevelDataArray[250];
_root.tile251 = LevelDataArray[251];
_root.tile252 = LevelDataArray[252];
_root.tile253 = LevelDataArray[253];
_root.tile254 = LevelDataArray[254];
_root.tile255 = LevelDataArray[255];
_root.tile256 = LevelDataArray[256];
_root.tile257 = LevelDataArray[257];
_root.tile258 = LevelDataArray[258];
_root.newname = LevelDataArray[259];
trace(_root.newname);
_root.dest = 72;
_root.transit.play();
}
}
stop();
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, onFileLoaded);
var file = wipethis.data;
Instance of Symbol 972 MovieClip [SaveBrowser] in Frame 74
//component parameters
onClipEvent (construct) {
saveGroupName = "";
title = "Select a level to load:";
sortDescending = true;
sortField = "createdOn";
customSortField = "";
}
Frame 75
stop();
_root.collected = 0;
_root.amounttocollect = 0;
_root.numberorder = 1;
_root.activehex._x = -200;
_root.showing = 2;
_root.savefile.data.levelsmade = _root.levelsmade;
_root.savefile.flush();
_root.whoslevel = 2;
Instance of Symbol 1045 MovieClip [VoteBar] in Frame 76
//component parameters
onClipEvent (construct) {
title = "Rate the level:";
ratingName = "Rating";
fileMode = "Use Current File";
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 27 MovieClip [Preloader] Frame 1
function enterFrameHandler() {
var _local2 = 0;
_local2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (loadingBar) {
loadingBar.gotoAndStop(int(_local2 * (loadingBar._totalframes - 1)) + 1);
}
if (_local2 >= 1) {
onEnterFrame = null;
gotoAndStop ("loaded");
}
}
stop();
var autoPlay;
var className;
onEnterFrame = enterFrameHandler;
Symbol 27 MovieClip [Preloader] Frame 10
function _onPlayClick() {
_root.nextFrame();
_root.play();
_parent._onLoaded();
}
if (playButton) {
playButton.onRelease = _onPlayClick;
playButton.stop();
}
if (autoPlay) {
_onPlayClick(null);
}
Symbol 29 MovieClip [Newgrounds API Classes] Frame 1
#initclip 28
Object.registerClass("Newgrounds API Classes", com.newgrounds.shims.APIShim);
#endinitclip
Symbol 84 MovieClip [FlashAd] Frame 1
#initclip 29
Object.registerClass("FlashAd", com.newgrounds.components.FlashAdBase);
#endinitclip
stop();
Symbol 84 MovieClip [FlashAd] Frame 30
function onPlayClick() {
removeAd();
_visible = false;
}
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
}
Symbol 85 MovieClip [APIConnector] Frame 1
function _onLoaded() {
gotoAndStop ("invisible");
if (_redirect) {
com.newgrounds.API.loadOfficialVersion();
return(undefined);
}
}
function _apiConnect() {
var _local2 = com.newgrounds.API;
if (_local2 && (!_local2.connected)) {
if (!apiId) {
com.newgrounds.Logger.logError("No API ID entered in the API Connector component.", "You can create an API ID for this submission at http://newgrounds.com/account/flashapi", "Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).");
return(undefined);
}
switch (debugMode) {
case "Off" :
default :
_local2.debugMode = _local2.RELEASE_MODE;
break;
case "Simulate Logged-in User" :
_local2.debugMode = _local2.DEBUG_MODE_LOGGED_IN;
break;
case "Simulate Logged-out User" :
_local2.debugMode = _local2.DEBUG_MODE_LOGGED_OUT;
break;
case "Simulate New Version" :
_local2.debugMode = _local2.DEBUG_MODE_NEW_VERSION;
break;
case "Simulate Host Blocked" :
_local2.debugMode = _local2.DEBUG_MODE_HOST_BLOCKED;
}
_local2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
_local2.connect(_root, apiId, encryptionKey, movieVersion);
}
}
function _onConnected(event) {
if ((redirectOnNewVersion && (event.__get__success())) && (event.__get__data().newVersion)) {
_redirect = true;
}
if ((redirectOnHostBlocked && (!event.__get__success())) && (event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED)) {
_redirect = true;
}
if (_redirect) {
gotoAndStop ("adPreloader");
forceAlwaysOnTop();
}
}
function forceAlwaysOnTop() {
var _local2 = getNextHighestDepth();
swapDepths(_local2);
if (Stage) {
_x = ((Stage.width - _width) / 2);
_y = ((Stage.height - _height) / 2);
_visible = true;
}
if (_root && (_root instanceof MovieClip)) {
MovieClip(_root).stop();
}
}
stop();
if (_root && (_root instanceof MovieClip)) {
MovieClip(_root).stop();
}
var apiId;
var encryptionKey;
var movieVersion;
var debugMode;
var connectorType;
var redirectOnHostBlocked;
var redirectOnNewVersion;
var adType;
var className;
var _redirect;
_x = int(_x);
_y = int(_y);
if (!debugMode) {
debugMode = "Simulate Logged-in User";
}
if (!connectorType) {
connectorType = "Flash Ad + Preloader";
}
if (!adType) {
adType = "Video";
}
if (ad) {
ad.adType = adType;
}
switch (connectorType) {
case "Flash Ad + Preloader" :
gotoAndStop ("adPreloader");
break;
case "Flash Ad Only" :
gotoAndStop ("ad");
break;
case "Invisible" :
gotoAndStop ("invisible");
}
_apiConnect();
Instance of Symbol 84 MovieClip [FlashAd] "ad" in Symbol 85 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
apiId = "";
showBorder = true;
adType = "Video";
}
Instance of Symbol 27 MovieClip [Preloader] "loader" in Symbol 85 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
autoPlay = false;
mainClass = "";
}
Symbol 95 MovieClip Frame 1
stop();
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
if ((_root.showmouse == 1) && (_root._currentframe != 1)) {
Mouse.hide();
}
}
onClipEvent (enterFrame) {
this.coloured.gotoAndStop(_root.colour);
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (mouseDown) {
this.play();
}
Symbol 109 MovieClip Frame 11
stop();
Symbol 115 MovieClip Frame 11
stop();
Symbol 118 MovieClip Frame 11
stop();
Symbol 123 MovieClip Frame 11
stop();
Symbol 126 MovieClip Frame 11
stop();
Symbol 129 MovieClip Frame 11
stop();
Symbol 132 MovieClip Frame 11
stop();
Symbol 135 MovieClip Frame 11
stop();
Instance of Symbol 136 MovieClip "highlighter" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 11
stop();
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 2;
_root.transit.play();
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
if (this.highlighter.colanimation._currentframe == 1) {
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 2;
_root.transit.play();
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 2;
_root.transit.play();
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 2;
_root.transit.play();
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 2;
_root.transit.play();
}
}
Instance of Symbol 147 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress < 99) {
this._alpha = 25;
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 136 MovieClip "highlighter" in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour2);
}
Instance of Symbol 138 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.loadprogress > 99) && (_currentframe == 1)) {
this.play();
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 10) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 20) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 30) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 40) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 50) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 55) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 60) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 65) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 70) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 15) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 25) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 35) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 45) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 95) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 90) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 85) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 80) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 99) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 5) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 137 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadprogress > 75) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 200) {
if (_root.menutimer < 211) {
this.highlighter._alpha = (_root.menutimer - 200) * 10;
}
}
if ((_root.menutimer > 260) || (_root.menutimer < 200)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 220) {
if (_root.menutimer < 231) {
this.highlighter._alpha = (_root.menutimer - 220) * 10;
}
}
if ((_root.menutimer > 280) || (_root.menutimer < 220)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 240) {
if (_root.menutimer < 251) {
this.highlighter._alpha = (_root.menutimer - 240) * 10;
}
}
if ((_root.menutimer > 300) || (_root.menutimer < 240)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 230) {
if (_root.menutimer < 241) {
this.highlighter._alpha = (_root.menutimer - 230) * 10;
}
}
if ((_root.menutimer > 290) || (_root.menutimer < 230)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 210) {
if (_root.menutimer < 221) {
this.highlighter._alpha = (_root.menutimer - 210) * 10;
}
}
if ((_root.menutimer > 270) || (_root.menutimer < 210)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 27
_root.savefile.data.secondsplayed = _root.secondsplayed;
_root.savefile.data.resetsamount = _root.resetsamount;
_root.savefile.data.levelsunlocked = _root.levelsunlocked;
_root.savefile.flush();
var showsecondsplayed = new ContextMenuItem(_root.secondsplayed + " seconds played", doNothing);
myMenu.customItems.push(showsecondsplayed);
var showresetsamount = new ContextMenuItem(_root.resetsamount + " levels restarted", doNothing);
myMenu.customItems.push(showresetsamount);
Symbol 237 MovieClip Frame 29
_root.resetnow = 2;
_root.gotoAndStop(_root.dest);
if (_root._currentframe >= 6) {
if (_root.showmouse == 0) {
Mouse.show();
}
}
Symbol 37 MovieClip [__Packages.com.newgrounds.APIConnection] Frame 0
class com.newgrounds.APIConnection
{
var _hostURL, hostDomain, sessionId, publisherId, encryptionKey, userEmail, username, userId, userpageFormat, initialized;
function APIConnection () {
reset();
}
function get hostURL() {
return(_hostURL);
}
function set hostURL(value) {
_hostURL = value;
hostDomain = null;
if (_hostURL) {
var _local2 = _hostURL.split("/");
if ((_local2[0] != "file:") && (_hostURL != "localhost")) {
hostDomain = _local2[2];
}
}
if (!hostDomain) {
hostDomain = "localhost";
}
//return(hostURL);
}
function get sandboxType() {
return(System.security.sandboxType);
}
function get isNetworkHost() {
switch (sandboxType) {
case "localWithFile" :
case "localWithNetwork" :
case "localTrusted" :
case "application" :
return(false);
case "remote" :
}
return(true);
}
function get hasUserSession() {
return(((sessionId != null) && (sessionId != "")) && (publisherId != 0));
}
function get connected() {
return(connectionState == CONNECTED);
}
function reset() {
connectionState = NOT_CONNECTED;
encryptionKey = null;
sessionId = null;
userEmail = null;
username = null;
userId = 0;
userpageFormat = 0;
}
function assertInitialized() {
if (!initialized) {
com.newgrounds.Logger.logError("You must initialized the API using API.connect() before using this command.");
return(false);
}
return(true);
}
function assertConnected() {
if ((!connectionState) == CONNECTED) {
com.newgrounds.Logger.logError("You must establish a connection using API.connect() before using this command.");
return(false);
}
return(true);
}
function sendSimpleCommand(command, completeHandler, parameters, secureParameters) {
if (parameters == undefined) {
parameters = null;
}
if (secureParameters == undefined) {
secureParameters = null;
}
var _local2 = new com.newgrounds.APICommand(command);
_local2.__set__parameters(parameters);
_local2.__set__secureParameters(secureParameters);
if (completeHandler != null) {
_local2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler);
}
_local2.send(this);
}
function sendCommand(command) {
command.send(this);
}
function loadInBrowser(command, newWindow, parameters) {
if (newWindow == undefined) {
newWindow = true;
}
if (parameters == undefined) {
parameters = null;
}
var _local2 = new com.newgrounds.APICommand(command);
_local2.__set__parameters(parameters);
_local2.loadInBrowser(this, newWindow);
}
static var NOT_CONNECTED = "notConnected";
static var CONNECTING = "connecting";
static var CONNECTED = "connected";
var connectionState = NOT_CONNECTED;
var apiURL = "http://www.ngads.com/gateway_v2.php";
}
Symbol 31 MovieClip [__Packages.com.newgrounds.EventDispatcher] Frame 0
class com.newgrounds.EventDispatcher
{
var _listeners;
function EventDispatcher () {
_listeners = {};
}
function addEventListener(type, listener) {
if (!_listeners[type]) {
_listeners[type] = [];
}
if (typeof(listener) == "function") {
_listeners[type].push({target:null, func:listener});
} else {
_listeners[type].push(listener);
}
}
function removeEventListener(type, listener) {
var _local3 = _listeners[type];
if (_local3) {
var _local5 = _local3.length;
var _local2 = 0;
while (_local2 < _local5) {
if ((_local3[_local2].func == listener) || (_local3[_local2] == listener)) {
_local3.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
}
function dispatchEvent(event) {
var _local4 = _listeners[event.__get__type()];
if (_local4) {
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = _local4[_local2];
_local3.func.call(_local3.target, event);
_local2++;
}
}
return(true);
}
}
Symbol 30 MovieClip [__Packages.com.newgrounds.Event] Frame 0
class com.newgrounds.Event
{
var _type;
function Event (type) {
_type = type;
}
function get type() {
return(_type);
}
}
Symbol 32 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
class com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher
{
static var _globalDispatcher;
function APIEventDispatcher () {
super();
}
static function get globalDispatcher() {
return(_globalDispatcher);
}
static function set globalDispatcher(value) {
_globalDispatcher = value;
//return(globalDispatcher);
}
static function initEventQueue() {
setInterval(runEventQueue, 50);
return([]);
}
function dispatchEvent(event) {
_eventQueue.push({dispatcher:this, event:event});
return(true);
}
function actualDispatchEvent(event) {
var _local3 = super.dispatchEvent(event);
if (_globalDispatcher && (this != _globalDispatcher)) {
_globalDispatcher.dispatchEvent(event);
}
}
static function runEventQueue(event) {
var _local3 = _eventQueue.length;
if (_local3) {
var _local4 = _eventQueue;
_eventQueue = [];
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = _local4[_local1];
_local2.dispatcher.actualDispatchEvent(_local2.event);
_local1++;
}
}
}
static var _eventQueue = initEventQueue();
}
Symbol 35 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
class com.newgrounds.encoders.BaseN
{
var _hash, _base, _reverseHash;
function BaseN (hash) {
if (hash) {
_hash = hash;
} else {
_hash = DEFAULT_HASH;
}
_base = _hash.length;
_reverseHash = new Object();
var _local2 = 0;
while (_local2 < _hash.length) {
_reverseHash[_hash.charAt(_local2)] = _local2;
_local2++;
}
}
function encodeUint(number, minimumChars) {
if (minimumChars == undefined) {
minimumChars = 1;
}
var _local2 = "";
var _local3 = number;
while (_local3 != 0) {
_local2 = _hash.charAt(_local3 % _base) + _local2;
_local3 = _local3 / _base;
_local3 = int(_local3);
}
while (_local2.length < minimumChars) {
_local2 = _hash.charAt(0) + _local2;
}
return(_local2);
}
function decodeUint(encodedNumber) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < encodedNumber.length) {
_local3 = _local3 * _base;
_local3 = _local3 + _reverseHash[encodedNumber.charAt(_local2)];
_local2++;
}
return(_local3);
}
static var DEFAULT_HASH = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/";
}
Symbol 41 MovieClip [__Packages.com.newgrounds.APICommand] Frame 0
class com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher
{
static var _throttleTimestamp, bridge;
var _command, _parameters, _secureParameters, _hasTimeout, _preventCache, _files, _loader, _timeoutTimer, dispatchEvent;
function APICommand (command) {
super();
_command = command;
_parameters = new Object();
_secureParameters = new Object();
_hasTimeout = true;
}
static function stopPendingCommands() {
for (var _local2 in _pendingCommands) {
var _local1 = _pendingCommands[_local2];
_local1.close();
}
_pendingCommands = [];
}
static function onThrottleTimer(event) {
if ((getTimer() - _throttleTimestamp) >= THROTTLE_INTERVAL) {
_throttleCount = 0;
_throttleCount = 0;
while (_commandQueue.length && (_throttleCount < THROTTLE_THRESHOLD)) {
var _local1 = _commandQueue.shift();
_local1.command.send(_local1.connection);
_throttleCount++;
}
}
}
static function encryptHex(hexValue) {
var _local4 = hexValue.length % 6;
var _local3 = "";
var _local1 = 0;
while (_local1 < hexValue.length) {
_local3 = _local3 + _encryptor.encodeUint(int("0x" + hexValue.substr(_local1, 6)), 4);
_local1 = _local1 + 6;
}
return(_local4.toString() + _local3);
}
function get command() {
return(_command);
}
function set command(value) {
_command = value;
//return(command);
}
function get hasTimeout() {
return(_hasTimeout);
}
function set hasTimeout(val) {
_hasTimeout = val;
//return(hasTimeout);
}
function get parameters() {
return(_parameters);
}
function set parameters(object) {
_parameters = new Object();
if (object) {
for (var _local3 in object) {
_parameters[_local3] = object[_local3];
}
}
//return(parameters);
}
function get preventCache() {
return(_preventCache);
}
function set preventCache(value) {
_preventCache = value;
//return(preventCache);
}
function get secureParameters() {
return(_secureParameters);
}
function set secureParameters(object) {
_secureParameters = new Object();
if (object) {
for (var _local3 in object) {
_secureParameters[_local3] = object[_local3];
}
}
//return(secureParameters);
}
function get hasSecureParameters() {
for (var _local2 in _secureParameters) {
return(true);
}
return(false);
}
function addFile(filename, data, dataField, contentType) {
if (contentType == undefined) {
contentType = "application/octet-stream";
}
if (!_files) {
_files = new Object();
}
var _local3 = {filename:filename, data:data, dataField:dataField, contentType:contentType};
_files[filename] = _local3;
}
function removeFile(filename) {
if (_files) {
delete _files[filename];
}
}
function clearFiles() {
_files = null;
}
function close() {
if (_loader) {
clearInterval(_timeoutTimer);
var _local2 = 0;
while (_local2 < _pendingCommands.length) {
if (_pendingCommands[_local2] == this) {
_pendingCommands.splice(_local2, 1);
break;
}
_local2++;
}
_loader = null;
}
}
function loadInBrowser(connection, newWindow) {
_parameters.command_id = _command;
_parameters.tracker_id = (connection.apiId ? (connection.apiId) : 1);
if (connection.debug) {
_parameters.debug = 1;
}
var _local3 = (connection.apiURL + "?host=") + escape(connection.hostDomain);
for (var _local4 in _parameters) {
_local3 = _local3 + ((("&" + escape(_local4)) + "=") + escape(_parameters[_local4]));
}
var _local6;
if (newWindow) {
_local6 = "_blank";
} else {
_local6 = "_top";
}
_root.getURL(_local3, _local6);
}
function send(connection) {
if (_throttleCount >= THROTTLE_THRESHOLD) {
_commandQueue.push({connection:connection, command:this});
} else {
sendInternal(connection);
}
}
function sendInternal(connection) {
var _local4;
_local4 = new LoadVars();
_local4.command_id = _command;
_local4.tracker_id = connection.apiId;
if (connection.debug) {
_local4.debug = 1;
}
if (_preventCache) {
_local4.seed = Math.random();
}
var _local2;
var _local3;
var _local7;
for (_local2 in _parameters) {
_local3 = _parameters[_local2];
if (_local3 != null) {
if (typeof(_local3) == "boolean") {
_local4[_local2] = int(_local3);
} else {
_local4[_local2] = _local3;
}
}
}
if (hasSecureParameters) {
var _local6 = new Object();
for (_local2 in _secureParameters) {
_local3 = _secureParameters[_local2];
if (_local3 != null) {
if (typeof(_local3) == "boolean") {
_local6[_local2] = int(_local3);
} else {
_local6[_local2] = _local3;
}
}
}
var _local8 = "";
_local7 = 0;
while (_local7 < 16) {
_local8 = _local8 + ENCRYPTOR_RADIX.charAt(int(Math.random() * ENCRYPTOR_RADIX.length));
_local7++;
}
_local4.command_id = "securePacket";
_local6.command_id = _command;
_local6.as_version = 3;
_local6.session_id = connection.sessionId;
_local6.user_email = connection.userEmail;
_local6.publisher_id = connection.publisherId;
_local6.seed = _local8;
var _local13 = com.newgrounds.crypto.MD5.hash(_local8);
var _local11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(_local6), connection.encryptionKey);
_local4.secure = encryptHex(_local13 + _local11);
}
com.newgrounds.Logger.logInternal("Sending packet:", _local4);
var _local12;
_local12 = "application/x-www-form-urlencoded";
for (_local2 in _local4) {
if (typeof(_local4[_local2]) == "object") {
_local4[_local2] = com.newgrounds.encoders.json.JSON.encode(_local4[_local2]);
}
}
if (_files) {
for (var _local10 in _files) {
var _local5 = _files[_local10];
if (typeof(_local5.data) == "string") {
_local4[_local10] = _local5.data;
} else {
_local4[_local10] = com.newgrounds.encoders.json.JSON.encode(_local5.data);
}
}
}
_pendingCommands.push(this);
_throttleCount++;
_throttleTimestamp = getTimer();
startLoader(connection.apiURL, _local4, _local12);
}
function startLoader(url, data, contentType) {
_loader = LoadVars(data);
_loader.onData = as2CompleteHandler;
_loader.contentType = contentType;
_loader.sendAndLoad(url, _loader, "POST");
if (_hasTimeout) {
setInterval(this, onTimeout, TIMEOUT_INTERVAL);
}
}
function as2CompleteHandler(data) {
var _local3;
var _local2 = 0;
while (_local2 < _pendingCommands.length) {
if (_pendingCommands[_local2]._loader == this) {
_local3 = _pendingCommands[_local2];
break;
}
_local2++;
}
_local3.onComplete(data);
}
function onTimeout(event) {
close();
com.newgrounds.Logger.logError("Command timed out.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT));
}
function onError(error) {
com.newgrounds.Logger.logError("Error when sending command:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN));
close();
}
function onComplete(data) {
try {
if ((!data) || (data == "")) {
throw new Error();
}
com.newgrounds.Logger.logInternal("Received packet:", data);
var _local2 = com.newgrounds.encoders.json.JSON.decode(data);
if (!_local2) {
throw new Error();
}
if (bridge) {
bridge.sendEvent(_local2.command_id, _local2);
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, _local2, ((_local2 && (_local2.success)) ? (com.newgrounds.APIEvent.ERROR_NONE) : (com.newgrounds.APIEvent.ERROR_COMMAND_FAILED))));
} catch(e) {
com.newgrounds.Logger.logError("Invalid response returned from server: " + data);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE));
}
close();
}
static var TIMEOUT_INTERVAL = 10000;
static var THROTTLE_INTERVAL = 10050;
static var THROTTLE_TICK_INTERVAL = 1000;
static var THROTTLE_THRESHOLD = 24;
static var _throttleCount = 0;
static var _commandQueue = [];
static var _throttleTimer = setInterval(onThrottleTimer, THROTTLE_TICK_INTERVAL);
static var ENCRYPTOR_RADIX = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
static var _encryptor = new com.newgrounds.encoders.BaseN(ENCRYPTOR_RADIX);
static var _pendingCommands = [];
static var CRLF = "\r\n";
}
Symbol 36 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
class com.newgrounds.Bridge
{
var _widgetId, _inConnection, _outConnection;
function Bridge (id) {
_widgetId = id;
_inConnection = new LocalConnection();
_outConnection = new LocalConnection();
_inConnection.receiveEvent = receiveEvent;
try {
_inConnection.connect("rec_" + _widgetId);
} catch(error) {
}
com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {target:this, func:onLogMessage});
}
function onLogMessage(event) {
try {
_outConnection.send(_widgetId, "sendEvent", "trace", String(event.__get__data()));
} catch(error) {
}
}
function sendEvent(command, parameters) {
if (_outConnection) {
parameters = {data:parameters};
_outConnection.send(_widgetId, "sendEvent", command, parameters);
}
}
function receiveEvent(event, parameters) {
}
function onStatus(event) {
}
}
Symbol 33 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
class com.newgrounds.APIEvent extends com.newgrounds.Event
{
var _error, _success, _data, __get__type;
function APIEvent (type, data, error) {
super(type);
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
if (((!error) || (error == "")) || (error == ERROR_NONE)) {
_error = ERROR_NONE;
_success = true;
} else {
_error = error;
_success = false;
}
if (data) {
_data = data;
} else {
_data = {};
}
}
function clone() {
return(new com.newgrounds.APIEvent(__get__type(), _data, _error));
}
function get success() {
return(_success);
}
function get data() {
return(_data);
}
function get error() {
return(_error);
}
static var COMMAND_COMPLETE = "commandComplete";
static var MEDAL_UNLOCK_CONFIRMED = "medalUnlockConfirmed";
static var ICON_LOADED = "iconLoaded";
static var API_CONNECTED = "movieConnected";
static var LOG = "log";
static var MEDAL_UNLOCKED = "medalUnlocked";
static var SCORES_LOADED = "scoresLoaded";
static var SCORE_POSTED = "scorePosted";
static var QUERY_COMPLETE = "queryComplete";
static var FILE_LOADED = "fileLoaded";
static var FILE_SAVED = "fileSaved";
static var FILE_REQUESTED = "fileRequested";
static var VOTE_COMPLETE = "voteComplete";
static var ERROR_NONE = "noError";
static var ERROR_UNKNOWN = "unknownError";
static var ERROR_COMMAND_FAILED = "commandFailed";
static var ERROR_NOT_CONNECTED = "notConnected";
static var ERROR_INVALID_ARGUMENT = "invalidArgument";
static var ERROR_TIMED_OUT = "timedOut";
static var ERROR_BAD_FILE = "badFile";
static var ERROR_BAD_RESPONSE = "badResponse";
static var ERROR_SENDING_COMMAND = "errorSendingCommand";
static var ERROR_HOST_BLOCKED = "hostBlocked";
static var ERROR_ALREADY_VOTED = "alreadyVoted";
static var ERROR_NOT_LOGGED_IN = "notLoggedIn";
static var ERROR_WRONG_ENCRYPTION_KEY = "wrongEncryptionKey";
}
Symbol 52 MovieClip [__Packages.com.newgrounds.API] Frame 0
class com.newgrounds.API
{
static var _adFeedURL, _movieVersion, _bridge, _requestedSaveGroupId, _requestedSaveFileId, _movieName, _newVersion, _saveFilePath, _imageFilePath;
function API () {
}
static function get connected() {
return(_connection.__get__connected());
}
static function get isNetworkHost() {
return(_connection.__get__isNetworkHost());
}
static function get apiId() {
_connection.assertInitialized();
return(_connection.apiId);
}
static function get debugMode() {
return(_debugMode);
}
static function set debugMode(val) {
_debugMode = val;
//return(debugMode);
}
static function get publisherId() {
_connection.assertInitialized();
return(_connection.publisherId);
}
static function get sessionId() {
_connection.assertInitialized();
return(_connection.sessionId);
}
static function get hostDomain() {
_connection.assertInitialized();
return(_connection.hostDomain);
}
static function get hostURL() {
_connection.assertInitialized();
return(_connection.__get__hostURL());
}
static function get isNewgrounds() {
return(_connection.publisherId == 1);
}
static function get hasUserSession() {
_connection.assertInitialized();
return(_connection.__get__hasUserSession());
}
static function get username() {
_connection.assertInitialized();
return(_connection.username);
}
static function get userId() {
_connection.assertInitialized();
return(_connection.userId);
}
static function assertConnected(eventType) {
if (eventType == undefined) {
eventType = null;
}
if (_connection.assertConnected()) {
return(true);
}
if (eventType) {
dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
}
return(false);
}
static function get adsApproved() {
return(_adsApproved);
}
static function get adFeedURL() {
return(_adFeedURL);
}
static function get medals() {
return(_medalsArray);
}
static function get scoreBoards() {
return(_scoreBoardsArray);
}
static function get saveGroups() {
return(_saveGroupsArray);
}
static function connect(_root, apiId, encryptionKey, movieVersion) {
if (encryptionKey == undefined) {
encryptionKey = null;
}
if (movieVersion == undefined) {
movieVersion = "";
}
com.newgrounds.APIEventDispatcher.__set__globalDispatcher(_dispatcher);
System.security.loadPolicyFile("http://apifiles.ngfiles.com/crossdomain.xml");
if (_connection.initialized) {
com.newgrounds.Logger.logError("Connection already in progress. Please call API.disconnect() before attempting another connection.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
return(undefined);
}
apiId = trimWhitespace(apiId);
if (encryptionKey) {
encryptionKey = trimWhitespace(encryptionKey);
}
if ((!apiId) || (apiId == "")) {
com.newgrounds.Logger.logError("No apiId given. Please use the API ID from your API settings page.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
com.newgrounds.Logger.logMessage(("====== Newgrounds API v" + VERSION) + " ======");
_connection.connectionState = com.newgrounds.APIConnection.CONNECTING;
_root=_root;//parameter overwritten
_movieVersion = movieVersion;
_connection.apiId = apiId;
var _local4;
_local4 = apiId.indexOf(":");
if (_local4 != -1) {
_connection.trackerId = int(apiId.substring(0, _local4));
} else {
_connection.trackerId = int(apiId);
}
if (!_connection.trackerId) {
com.newgrounds.Logger.logError("Invalid API ID: " + apiId);
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
_connection.encryptionKey = encryptionKey;
_connection.initialized = true;
_connection.__set__hostURL(_root._url);
doConnect(_root);
}
static function doConnect(flashVars) {
if (isNetworkHost && (_debugMode != RELEASE_MODE)) {
com.newgrounds.Logger.logMessage("Live file detected, turning off debug mode.");
_debugMode = RELEASE_MODE;
}
if (flashVars && (flashVars.NewgroundsAPI_SandboxID)) {
_bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID);
com.newgrounds.APICommand.bridge = _bridge;
}
if (_debugMode == RELEASE_MODE) {
if (flashVars) {
if (flashVars.NewgroundsAPI_UserName) {
_connection.username = flashVars.NewgroundsAPI_UserName;
}
if (flashVars.NewgroundsAPI_UserID) {
_connection.userId = flashVars.NewgroundsAPI_UserID;
}
if (flashVars.NewgroundsAPI_PublisherID) {
_connection.publisherId = flashVars.NewgroundsAPI_PublisherID;
}
if (flashVars.NewgroundsAPI_UserpageFormat) {
_connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat;
}
if (flashVars.NewgroundsAPI_SessionID) {
_connection.sessionId = flashVars.NewgroundsAPI_SessionID;
}
if (flashVars.NewgroundsAPI_SaveGroupID) {
_requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID;
}
if (flashVars.NewgroundsAPI_SaveFileID) {
_requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID;
}
}
} else {
_connection.debug = true;
if ((_debugMode == DEBUG_MODE_LOGGED_IN) || (_debugMode == DEBUG_MODE_LOGGED_OUT)) {
_connection.publisherId = 1;
}
if (_debugMode == DEBUG_MODE_LOGGED_IN) {
_connection.sessionId = "D3bu64p1U53R";
_connection.userId = 10;
_connection.username = "API-Debugger";
}
}
_connection.sendSimpleCommand("connectMovie", onConnect, {host:_connection.hostDomain, movie_version:_movieVersion, publisher_id:_connection.publisherId});
}
static function onConnect(event) {
var _local1 = event.__get__data();
if (!event.__get__success()) {
com.newgrounds.Logger.logError("Unable to connect to the API.");
_connection.reset();
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error());
return(undefined);
}
if (debugMode != RELEASE_MODE) {
_adFeedURL = TEST_AD_FEED_URL;
} else if (_local1.ad_url) {
_adFeedURL = unescape(_local1.ad_url);
}
switch (_local1.ad_status) {
case -1 :
com.newgrounds.Logger.logWarning("Your movie is not approved to run Flash Ads.");
break;
case 0 :
com.newgrounds.Logger.logWarning("Your movie is still awaiting approval to run Flash Ads.");
break;
case 1 :
com.newgrounds.Logger.logMessage("Your movie is approved to run Flash Ads!");
}
_adsApproved = _local1.ad_status == 1;
if ((_debugMode == DEBUG_MODE_HOST_BLOCKED) || (_local1.deny_host)) {
com.newgrounds.Logger.logWarning(_connection.hostDomain + " does not have permission to host this movie!", "Update your API configuration to allow this host.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {officialURL:unescape(_local1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED);
_connection.reset();
return(undefined);
}
_movieName = (_local1.movieName ? (_local1.movieName) : "");
com.newgrounds.Logger.logMessage("Connecting to the Newgrounds API Gateway...", ("----- " + _local1.movie_name) + " -----");
if (_debugMode == DEBUG_MODE_NEW_VERSION) {
_local1.movie_version = "Debug Mode";
}
if (_local1.movie_version) {
com.newgrounds.Logger.logMessage("A new version of this movie is available.", "Current version:\t" + _movieVersion, "Newest version:\t" + _local1.movie_version, "Use API.loadOfficialVersion() to link to the latest version.");
_newVersion = true;
} else {
_newVersion = false;
}
if (_local1.request_portal_url) {
_connection.sendSimpleCommand("setPortalID", null, {portal_url:_connection.__get__hostURL()});
}
_connection.sendSimpleCommand("preloadSettings", onMetadataLoaded, {publisher_id:_connection.publisherId, user_id:_connection.userId});
}
static function onMetadataLoaded(event) {
var _local11 = event.__get__data();
var _local1;
var _local7;
if (!event.__get__success()) {
com.newgrounds.Logger.logWarning("Unable to load movie metadata.");
disconnect();
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error());
return(undefined);
}
var _local10 = 0;
if (_local11.medals) {
_local10 = _local11.medals.length;
var _local18;
if (hasUserSession) {
_local18 = loadLocal("medals_unlocked_" + username);
} else {
_local18 = loadLocal("medals_unlocked");
}
_local1 = 0;
while (_local1 < _local10) {
var _local4 = _local11.medals[_local1];
var _local15 = _local4.medal_unlocked;
var _local17 = _local18 && (_local18[_local4.medal_id]);
var _local14 = (hasUserSession ? (_local15) : (_local17));
if (debugMode != RELEASE_MODE) {
_local14 = false;
}
var _local5 = new com.newgrounds.Medal(_connection, _local4.medal_id, _local4.medal_name, _local4.medal_description, Boolean(int(_local4.secret)), _local14, _local4.medal_value, _local4.medal_difficulty, _local4.medal_icon);
_local5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, false, 0, true);
_local5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed, false, 0, true);
_medals[_local5.__get__name()] = _local5;
_medalsArray.push(_local5);
com.newgrounds.Logger.logMessage(_local5);
if ((hasUserSession && (_local17)) && (!_local15)) {
com.newgrounds.Logger.logMessage(("Server missed the \"" + _local5.__get__name()) + "\" unlock. Resending...");
_local5.unlock();
}
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " medal") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.score_boards) {
_local10 = _local11.score_boards.length;
_local1 = 0;
while (_local1 < _local10) {
var _local16 = _local11.score_boards[_local1];
var _local9 = new com.newgrounds.ScoreBoard(_connection, _local16.name, _local16.id);
_scoreBoards[_local9.__get__name()] = _local9;
_scoreBoardsArray.push(_local9);
com.newgrounds.Logger.logMessage(_local9);
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " scoreboard") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.save_groups) {
_local10 = _local11.save_groups.length;
_local1 = 0;
while (_local1 < _local10) {
var _local2 = _local11.save_groups[_local1];
var _local13 = [];
if (_local2.keys) {
_local7 = 0;
while (_local7 < _local2.keys.length) {
var _local6 = _local2.keys[_local7];
_local13.push(new com.newgrounds.SaveKey(_local6.name, _local6.id, _local6.type));
_local7++;
}
}
var _local12 = [];
if (_local2.ratings) {
_local1 = 0;
while (_local1 < _local2.ratings.length) {
var _local3 = _local2.ratings[_local1];
_local12.push(new com.newgrounds.SaveRating(_local3.name, _local3.id, _local3.float, _local3.min, _local3.max));
_local1++;
}
}
var _local8 = new com.newgrounds.SaveGroup(_connection, _local2.group_name, _local2.group_id, _local2.group_type, _local13, _local12);
_saveGroups[_local8.__get__name()] = _local8;
_saveGroupsArray.push(_local8);
com.newgrounds.Logger.logMessage(_local8);
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " save group") + ((_local10 != 1) ? "s" : "")) + " initialized.");
if (_local11.save_file_path) {
_saveFilePath = _local11.save_file_path + "/";
com.newgrounds.SaveFile._saveFilePath = _saveFilePath;
com.newgrounds.Logger.logInternal("Save file path: " + _saveFilePath);
}
if (_local11.image_file_path) {
_imageFilePath = _local11.image_file_path + "/";
com.newgrounds.SaveFile._imageFilePath = _imageFilePath;
com.newgrounds.Logger.logInternal("Image file path: " + _imageFilePath);
}
com.newgrounds.Logger.logMessage("Connection complete!");
_connection.connectionState = com.newgrounds.APIConnection.CONNECTED;
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {movieName:_movieName, newVersion:_newVersion});
if (_requestedSaveFileId && (_requestedSaveGroupId)) {
addEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded);
loadSaveFile(_requestedSaveFileId, false);
}
}
static function disconnect() {
if (!_connection.__get__connected()) {
com.newgrounds.Logger.logWarning("The Newgrounds API is already disconnected.");
return(undefined);
}
_connection.reset();
for (var _local2 in _medals) {
var _local1 = _medals[_local2];
_local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
_local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed);
}
_newVersion = false;
_medals = new Object();
_medalsArray = [];
_scoreBoards = new Object();
_scoreBoardsArray = [];
_saveGroups = new Object();
_saveGroupsArray = [];
_sharedObjects = new Object();
_imageFilePath = null;
_saveFilePath = null;
com.newgrounds.Logger.logMessage("Disconnected from the Newgrounds API.");
}
static function loadNewgrounds() {
_connection.loadInBrowser("loadNewgrounds");
}
static function loadOfficialVersion() {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadOfficialVersion", false);
}
}
static function loadMySite() {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadMySite");
}
}
static function loadCustomLink(linkName) {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadCustomLink", true, {link:linkName});
}
}
static function getMedal(medalName) {
return(_medals[medalName]);
}
static function unlockMedal(medalName) {
if (!assertConnected()) {
return(undefined);
}
var _local1 = _medals[medalName];
if (!_local1) {
com.newgrounds.Logger.logError(("No medal named \"" + medalName) + "\" w.");
return(undefined);
}
_local1.unlock();
}
static function onMedalUnlocked(event) {
if (event.__get__success()) {
var _local2 = com.newgrounds.Medal(event.__get__data());
var _local1;
if (hasUserSession) {
_local1 = loadLocal("medals_unlocked_" + username);
if (!_local1) {
_local1 = new Object();
}
_local1[_local2.__get__id()] = true;
saveLocal("medals_unlocked_" + username, _local1);
} else {
_local1 = loadLocal("medals_unlocked");
if (!_local1) {
_local1 = new Object();
}
_local1[com.newgrounds.Medal(event.__get__data()).__get__id()] = true;
saveLocal("medals_unlocked", _local1);
com.newgrounds.Logger.logMessage(("User instanceof not logged in. Medal \"" + _local2.__get__name()) + "\" unlocked locally.");
}
}
}
static function onMedalUnlockConfirmed(event) {
if (hasUserSession) {
var _local1 = loadLocal("medals_unlocked_" + username);
if (!_local1) {
_local1 = new Object();
} else {
delete _local1[com.newgrounds.Medal(event.__get__data()).__get__id()];
}
saveLocal("medals_unlocked_" + username, _local1);
}
}
static function clearLocalMedals() {
for (var _local2 in _medals) {
var _local1 = _medals[_local2];
_local1.setUnlocked(false);
}
if (!hasUserSession) {
saveLocal("medals_unlocked", new Object());
}
}
static function getScoreBoard(scoreBoardName) {
if (!assertConnected()) {
return(null);
}
return(_scoreBoards[scoreBoardName]);
}
static function loadScores(scoreBoardName, period, firstResult, numResults, tag) {
if (period == undefined) {
period = "All-Time";
}
if (firstResult == undefined) {
firstResult = 1;
}
if (numResults == undefined) {
numResults = 10;
}
if (tag == undefined) {
tag = null;
}
if (!assertConnected()) {
return(null);
}
var _local1 = _scoreBoards[scoreBoardName];
if (!_local1) {
com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w.");
dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(null);
}
_local1.__set__period(period);
_local1.__set__firstResult(firstResult);
_local1.__set__numResults(numResults);
_local1.__set__tag(tag);
_local1.loadScores();
return(_local1);
}
static function postScore(scoreBoardName, numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (!assertConnected()) {
return(undefined);
}
if (!hasUserSession) {
com.newgrounds.Logger.logError("The user must be logged-in to post a score.");
dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN);
return(undefined);
}
var _local1 = _scoreBoards[scoreBoardName];
if (!_local1) {
com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w.");
dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
_local1.postScore(numericScore, tag);
}
static function getSaveGroup(groupName) {
if (!assertConnected()) {
return(null);
}
return(_saveGroups[groupName]);
}
static function getSaveGroupById(id) {
for (var _local3 in _saveGroups) {
var _local1 = _saveGroups[_local3];
if (_local1.__get__id() == id) {
return(_local1);
}
}
return(null);
}
static function createSaveFile(groupName) {
if (!assertConnected()) {
return(null);
}
var _local1 = getSaveGroup(groupName);
if (!_local1) {
com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found.");
return(null);
}
return(new com.newgrounds.SaveFile(_local1));
}
static function loadSaveFile(saveId, loadContents) {
if (loadContents == undefined) {
loadContents = true;
}
_connection.sendSimpleCommand("loadSaveFile", onFileLoaded, {save_id:saveId, get_contents:loadContents});
}
static function onFileLoaded(event) {
var _local2;
if (event.__get__success()) {
_local2 = com.newgrounds.SaveFile.fromObject(getSaveGroupById(event.__get__data().group_id), event.__get__data().file);
if (event.__get__data().get_contents) {
_local2.load();
} else {
dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, _local2);
}
} else {
com.newgrounds.Logger.logError("Unable to load file:", event.__get__error());
dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error());
}
}
static function createSaveQuery(groupName) {
if (!assertConnected()) {
return(null);
}
var _local1 = getSaveGroup(groupName);
if (!_local1) {
com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found.");
return(null);
}
var _local2 = new com.newgrounds.SaveQuery(_local1);
return(_local2);
}
static function createSaveQueryByDate(groupName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var _local1 = createSaveQuery(groupName);
if (!_local1) {
return(null);
}
_local1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending);
return(_local1);
}
static function createSaveQueryByName(groupName, filename, exactMatch, sortDescending) {
if (exactMatch == undefined) {
exactMatch = false;
}
if (sortDescending == undefined) {
sortDescending = false;
}
var _local1 = createSaveQuery(groupName);
_local1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, (exactMatch ? (com.newgrounds.SaveQuery.OPERATOR_EQUAL) : (com.newgrounds.SaveQuery.OPERATOR_CONTAINS)), filename);
return(_local1);
}
static function createSaveQueryByRating(groupName, ratingName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var _local1 = createSaveQuery(groupName);
_local1.sortOn(ratingName, sortDescending);
return(_local1);
}
static function onRequestedFileLoaded(event) {
removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded);
if (event.__get__success()) {
var _local1 = event.__get__data();
if (_local1) {
dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, _local1);
}
}
}
static function addEventListener(eventType, listener, priority, useWeakReference) {
if (priority == undefined) {
priority = 0;
}
if (useWeakReference == undefined) {
useWeakReference = true;
}
_dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference);
}
static function removeEventListener(eventType, listener) {
_dispatcher.removeEventListener(eventType, listener);
}
static function dispatchEvent(event, data, error) {
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
_dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error));
}
static function saveLocal(saveId, saveData) {
try {
var _local3;
var _local2 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey);
if (!_sharedObjects[saveId]) {
_sharedObjects[saveId] = SharedObject.getLocal(_local2);
}
_local3 = _sharedObjects[saveId];
_local3.data.data = encodeData(saveData);
} catch(_local) {
if (Error( /* Error999 */
) != null) {
var error = Error( /* Error999 */
);
com.newgrounds.Logger.logError("Unable to save local data.", error);
return(false);
}
Error( /* Error999 */
);
throw /* Error999 */
;
}
return(true);
}
static function loadLocal(saveId) {
try {
var _local1;
var _local3 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey);
if (!_sharedObjects[saveId]) {
_sharedObjects[saveId] = SharedObject.getLocal(_local3);
}
_local1 = _sharedObjects[saveId];
if ((_local1 && (_local1.data)) && (_local1.data.data)) {
return(decodeData(_local1.data.data));
}
return(null);
} catch(error:Error) {
com.newgrounds.Logger.logError("Unable to load local data.", error);
}
return(null);
}
static function logCustomEvent(eventName) {
if (assertConnected()) {
com.newgrounds.Logger.logMessage("Logged event: " + eventName);
_connection.sendSimpleCommand("logCustomEvent", null, {event:eventName});
}
}
static function encodeData(data) {
if (!_connection.assertInitialized()) {
return(null);
}
return(com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), _connection.encryptionKey));
}
static function decodeData(data) {
if (!_connection.assertInitialized()) {
return(null);
}
try {
return(com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, _connection.encryptionKey)));
} catch(error:Error) {
}
return(null);
}
static function stopPendingCommands() {
com.newgrounds.APICommand.stopPendingCommands();
com.newgrounds.Logger.logMessage("Pending commands stopped.");
}
static function trimWhitespace(string) {
if (!string) {
return(null);
}
var _local3 = 0;
while (string.charAt(_local3) == " ") {
_local3++;
}
var _local1 = string.length - 1;
while ((string.charAt(_local1) == " ") && (_local1 >= 0)) {
_local1--;
}
return(string.slice(_local3, _local1 + 1));
}
static var VERSION = "3.1.0 AS2";
static var RELEASE_MODE = "releaseMode";
static var DEBUG_MODE_LOGGED_IN = "debugModeLoggedIn";
static var DEBUG_MODE_LOGGED_OUT = "debugModeLoggedOut";
static var DEBUG_MODE_NEW_VERSION = "debugModeNewVersion";
static var DEBUG_MODE_HOST_BLOCKED = "debugModeHostBlocked";
static var TEST_AD_FEED_URL = "http://www.ngads.com/adtest.php";
static var _dispatcher = new com.newgrounds.APIEventDispatcher();
static var _connection = new com.newgrounds.APIConnection();
static var _debugMode = DEBUG_MODE_LOGGED_IN;
static var _adsApproved = false;
static var _medals = new Object();
static var _medalsArray = [];
static var _scoreBoards = new Object();
static var _scoreBoardsArray = [];
static var _saveGroups = new Object();
static var _saveGroupsArray = [];
static var _sharedObjects = new Object();
}
Symbol 49 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
class com.newgrounds.encoders.ImageScanner
{
var _baseN, _encodeAlpha, _maxPerChannel;
function ImageScanner (hashLength, charsPerPixel) {
if (hashLength) {
_hash = DEFAULT_HASH.substr(0, hashLength);
}
_baseN = new com.newgrounds.encoders.BaseN(_hash);
if (charsPerPixel) {
_charsPerPixel = charsPerPixel;
}
encodeAlpha = (false);
}
function get encodeAlpha() {
return(_encodeAlpha);
}
function set encodeAlpha(v) {
_encodeAlpha = v;
_maxPerChannel = int(Math.pow(_hash.length, _charsPerPixel / (_encodeAlpha ? 4 : 3)));
if (_maxPerChannel > 256) {
_maxPerChannel = 256;
}
//return(encodeAlpha);
}
function encode(source, callbackFunction, callbackObject) {
var _local4 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, x:0, y:0, output:null};
var _local2 = source.width.toString();
var _local3 = source.height.toString();
while (_local2.length < 3) {
_local2 = "0" + _local2;
}
while (_local3.length < 3) {
_local3 = "0" + _local3;
}
_local4.output = _local2 + _local3;
var _local6 = setInterval(this, "doEncode", WORK_INTERVAL, _local4);
_local4.interval = _local6;
}
function decode(source, callbackFunction, callbackObject) {
var _local2 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, i:6, x:0, y:0, output:null};
var _local5 = int(source.substr(0, 3));
var _local6 = int(source.substr(3, 3));
_local2.output = new flash.display.BitmapData(_local5, _local6, _encodeAlpha);
var _local4 = setInterval(this, "doDecode", WORK_INTERVAL, _local2);
_local2.interval = _local4;
}
function doEncode(state) {
var _local3 = getTimer();
while ((state.y < state.source.height) && ((getTimer() - _local3) < WORK_INTERVAL)) {
state.output = state.output + encodePixel(state.source.getPixel32(state.x, state.y));
state.x++;
if (state.x == state.source.width) {
state.x = 0;
state.y++;
}
}
if (state.y == state.source.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
}
function doDecode(state) {
var _local4 = getTimer();
while ((state.y < state.output.height) && ((getTimer() - _local4) < WORK_INTERVAL)) {
var _local3 = decodePixel(state.source.substr(state.i, _charsPerPixel));
state.output.setPixel32(state.x, state.y, _local3);
state.i = state.i + _charsPerPixel;
state.x++;
if (state.x == state.output.width) {
state.x = 0;
state.y++;
}
}
if (state.y == state.output.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
}
function encodePixel(pixel) {
var _local3 = (pixel >> 24) & 255;
var _local4 = (pixel >> 16) & 255;
var _local5 = (pixel >> 8) & 255;
var _local2 = pixel & 255;
_local3 = int((_local3 / 256) * _maxPerChannel);
_local4 = int((_local4 / 256) * _maxPerChannel);
_local5 = int((_local5 / 256) * _maxPerChannel);
_local2 = int((_local2 / 256) * _maxPerChannel);
var _local7 = (((_local4 * _maxPerChannel) * _maxPerChannel) + (_local5 * _maxPerChannel)) + _local2;
if (_encodeAlpha) {
_local7 = _local7 + (((_local3 * _maxPerChannel) * _maxPerChannel) * _maxPerChannel);
}
return(_baseN.encodeUint(_local7, _charsPerPixel));
}
function decodePixel(encodedPixel) {
var _local3 = 255;
var _local5;
var _local6;
var _local4;
var _local7 = 0;
var _local2 = _baseN.decodeUint(encodedPixel);
_local4 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
_local6 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
_local5 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
if (_encodeAlpha) {
_local3 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
}
return((((_local3 << 24) | (_local5 << 16)) | (_local6 << 8)) | _local4);
}
static var DEFAULT_HASH = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&";
var _hash = DEFAULT_HASH;
var _charsPerPixel = 2;
static var WORK_INTERVAL = 33.3333333333333;
}
Symbol 50 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
class com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher
{
static var _currentFile;
var _iconLoader, _group, _keys, _ratings, _name, _description, _id, _data, _dataLoader, _fileSize, _readOnly, _draft, _authorId, _authorName, _views, _createdDate, _modifiedDate, dispatchEvent, _encodedIcon, _encodedData, _encoderQueue, _encoding, _dataLoaded, _encodingParent, _encodingProperty, _dataURL;
function SaveFile (group) {
super();
_iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, null);
_group = group;
_keys = {};
_ratings = {};
}
static function get currentFile() {
return(_currentFile);
}
static function fromObject(group, fileData) {
var _local4 = new com.newgrounds.SaveFile(group);
_local4._name = fileData.filename;
_local4._description = fileData.description;
_local4._id = fileData.save_id;
_local4._authorId = fileData.user_id;
_local4._authorName = fileData.user_name;
_local4._createdDate = fileData.created;
_local4._modifiedDate = fileData.last_update;
_local4._views = fileData.views;
if (fileData.thumb && (fileData.thumb != "")) {
_local4._iconLoader.__set__url(_imageFilePath + fileData.thumb);
}
_local4._dataURL = _saveFilePath + fileData.file;
_local4._fileSize = fileData.file_size;
_local4._approved = fileData.status != STATUS_UNAPPROVED;
_local4._readOnly = false;
_local4._public = (fileData.status != STATUS_PRIVATE) && (fileData.status != STATUS_UNAPPROVED);
for (var _local8 in fileData.keys) {
var _local6 = fileData.keys[_local8];
var _local2 = group.getKeyById(_local6.id);
if (_local2) {
_local4._keys[_local2.__get__name()] = _local2.validateValue(_local6.value);
}
}
for (var _local9 in fileData.ratings) {
var _local5 = fileData.ratings[_local9];
var _local3 = group.getRatingById(_local5.id);
if (_local3) {
_local4._ratings[_local3.__get__name()] = _local3.validateValue(_local5.score);
}
}
return(_local4);
}
function get group() {
return(_group);
}
function get name() {
return(_name);
}
function set name(val) {
_name = val;
//return(name);
}
function get description() {
return(_description);
}
function set description(val) {
_description = val;
//return(description);
}
function get id() {
return(_id);
}
function get data() {
return(_data);
}
function set data(val) {
_data = val;
//return(data);
}
function get bytesLoaded() {
if (_data) {
return(bytesTotal);
}
if (!_dataLoader) {
return(0);
}
return(_dataLoader.getBytesLoaded());
}
function get bytesTotal() {
return(_fileSize);
}
function get readOnly() {
return(_readOnly);
}
function get draft() {
return(_draft);
}
function set draft(v) {
_draft = v;
//return(draft);
}
function get authorId() {
return(_authorId);
}
function get authorName() {
return(_authorName);
}
function get keys() {
return(_keys);
}
function get ratings() {
return(_ratings);
}
function get views() {
return(_views);
}
function get createdDate() {
return(_createdDate);
}
function get updatedDate() {
return(_modifiedDate);
}
function toString() {
return("Save File: " + _name);
}
function get icon() {
return(_iconLoader.__get__bitmapData());
}
function set icon(v) {
createIcon(v);
//return(icon);
}
function get iconLoaded() {
return(_iconLoader.__get__loaded());
}
function createIcon(source) {
var _local9 = new flash.display.BitmapData(ICON_WIDTH, ICON_HEIGHT, false, 0);
var _local6;
var _local5;
var _local10 = 0;
var _local8 = 0;
if (source instanceof flash.display.BitmapData) {
_local6 = source.width;
_local5 = source.height;
} else if (source instanceof MovieClip) {
_local6 = source._width;
_local5 = source._height;
var _local7 = MovieClip(source).getBounds(source);
_local10 = _local7.xMin;
_local8 = _local7.yMin;
}
var _local3 = new flash.geom.Matrix();
var _local4;
_local4 = Math.min(ICON_WIDTH / _local6, ICON_HEIGHT / _local5);
_local3.translate(-_local10, -_local8);
_local3.scale(_local4, _local4);
_local3.translate((ICON_WIDTH - (_local6 * _local4)) / 2, (ICON_HEIGHT - (_local5 * _local4)) / 2);
_local9.draw(source, _local3);
_iconLoader.__set__bitmapData(_local9);
}
function attachIcon(parent) {
if (_iconLoader) {
return(_iconLoader.attachBitmap(parent));
}
com.newgrounds.Logger.logError("No icon available for this sumbission.");
return(null);
}
function save() {
if (!_group.__get__connection().__get__hasUserSession()) {
com.newgrounds.Logger.logError("The user must be logged-in to save a file.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
return(undefined);
}
com.newgrounds.BitmapLoader._cacheSeed++;
_currentFile = this;
if (iconLoaded) {
ICON_IMAGE_SCANNER.encode(icon, onIconEncoded, this);
} else {
encodeData(true);
}
}
function onIconEncoded(encodedIcon) {
_encodedIcon = encodedIcon;
encodeData(true);
}
function doSave() {
var _local4 = new com.newgrounds.APICommand("saveFile");
_local4.__get__secureParameters().group = _group.id;
_local4.__get__secureParameters().user_name = _group.__get__connection().username;
_local4.__get__secureParameters().filename = _name;
_local4.__get__secureParameters().description = _description;
if (_draft) {
_local4.__get__secureParameters().draft = true;
}
if (_id && (!_readOnly)) {
_local4.__get__secureParameters().overwrite = 1;
_local4.__get__secureParameters().save_id = _id;
}
var _local8 = [];
for (var _local9 in _keys) {
var _local2 = _group.getKey(_local9);
if (_local2) {
_local8.push({id:_local2.__get__id(), value:_local2.validateValue(_keys[_local9])});
} else {
com.newgrounds.Logger.logError(((("No key named \"" + _local9) + "\" in save group \"") + _group.__get__name()) + "\".");
}
}
_local4.__get__secureParameters().keys = _local8;
var _local7 = [];
for (var _local10 in _ratings) {
var _local3 = _group.getRating(_local10);
if (_local3) {
_local7.push({id:_local3.__get__id(), value:_local3.validateValue(_ratings[_local10])});
} else {
com.newgrounds.Logger.logError(((("No rating named \"" + _local10) + "\" in save group \"") + _group.__get__name()) + "\".");
}
}
_local4.__get__secureParameters().ratings = _local7;
if (typeof(_encodedData) == "string") {
_local4.addFile("file", _encodedData, "file");
} else {
_local4.addFile("file", com.newgrounds.encoders.json.JSON.encode(_encodedData), "file");
}
if (iconLoaded) {
_local4.addFile("thumbnail", _encodedIcon, "thumbnail");
}
_local4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {target:this, func:onSaveComplete});
_group.__get__connection().sendCommand(_local4);
}
function encodeData(encode) {
_encoderQueue = [];
_encoding = encode;
if (encode) {
_encodedData = _data;
preEncodeObject(this, "_encodedData");
} else {
preEncodeObject(this, "_data");
}
encodeObject();
}
function preEncodeObject(parent, property) {
var _local3 = parent[property];
var _local5;
try {
if (_encoding) {
_local5 = _local3 instanceof flash.display.BitmapData;
} else {
_local5 = _local3.type == "__bitmap";
}
} catch(error) {
}
var _local2 = _local3;
var _local8;
if (_local5) {
_encoderQueue.push({parent:parent, property:property});
} else if ((typeof(_local3) == "object") && (!_local8)) {
if (_encoding) {
if (_local3 instanceof Array) {
_local2 = [];
} else {
_local2 = {};
}
for (var _local4 in _local3) {
_local2[_local4] = _local3[_local4];
}
parent[property] = _local2;
}
for (var _local4 in _local2) {
preEncodeObject(_local2, _local4);
}
}
}
function encodeObject() {
if (!_encoderQueue.length) {
if (_encoding) {
doSave();
} else {
_dataLoaded = true;
checkLoadComplete();
}
return(undefined);
}
var _local6 = _encoderQueue.pop();
var _local4 = _local6.parent;
var _local3 = _local6.property;
var _local2 = _local4[_local3];
var _local5;
if (_encoding) {
_local5 = {type:"__bitmap", width:_local2.width, height:_local2.height, transparent:_local2.transparent};
_local4[_local3] = _local5;
_encodingParent = _local5;
_encodingProperty = "data";
DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent);
DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(_local2), encodeBitmapComplete, this);
} else {
_encodingParent = _local4;
_encodingProperty = _local3;
DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent);
DATA_IMAGE_SCANNER.decode(String(_local2.data), encodeBitmapComplete, this);
}
}
function encodeBitmapComplete(data) {
_encodingParent[_encodingProperty] = data;
encodeObject();
}
function load() {
_currentFile = this;
_dataLoaded = false;
_data = null;
if (!iconLoaded) {
_iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {target:this, func:onIconLoaded});
_iconLoader.load();
}
_dataLoader = new LoadVars();
var file = this;
_dataLoader.onData = function (data) {
file.onDataLoaded(data);
};
_dataLoader.load(_dataURL);
}
function onIconLoaded(event) {
if ((!event.__get__success()) && (_iconLoader.__get__url())) {
com.newgrounds.Logger.logWarning("Unable to load the icon for this save file.");
}
_iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, onIconLoaded);
checkLoadComplete();
}
function checkLoadComplete() {
if (_dataLoaded && (iconLoaded)) {
com.newgrounds.Logger.logMessage("Data loaded.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this));
}
}
function onDataLoaded(data) {
try {
if (data) {
if (data.charAt(0) == "{") {
_data = com.newgrounds.encoders.json.JSON.decode(String(data));
} else {
_data = String(data);
}
encodeData(false);
}
} catch(error:Error) {
com.newgrounds.Logger.logError("Error while loading data:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
}
}
function onDataError(error) {
com.newgrounds.Logger.logError("Unable to load data:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
}
function onSaveComplete(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage(("File \"" + _name) + "\" saved!");
if (event.__get__data()) {
_id = event.__get__data().save_id;
_dataURL = unescape(event.__get__data().file_url);
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this));
} else {
com.newgrounds.Logger.logError(("Error saving file \"" + _name) + "\":", event.__get__error());
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error()));
}
}
function sendVote(ratingName, vote) {
var _local2 = _group.getRating(ratingName);
if (!_local2) {
com.newgrounds.Logger.logError(("No save rating named \"" + ratingName) + "\" exists for this save group.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
vote = _local2.validateValue(vote);
if (isNaN(vote)) {
com.newgrounds.Logger.logError(((((((("Invalid vote (" + vote) + "). ") + ratingName) + " allows a range of ") + _local2.__get__minimum()) + "-") + _local2.__get__maximum()) + ".");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
com.newgrounds.Logger.logMessage(((((("Voting " + vote) + " for ") + ratingName) + " on ") + _name) + "...");
_group.__get__connection().sendSimpleCommand("rateSaveFile", {target:this, func:onVoteComplete}, null, {group:_group.__get__id(), save_id:_id, rating_id:_local2.__get__id(), vote:vote});
}
function onVoteComplete(event) {
var _local2 = event.__get__error();
if (event.__get__data().already_voted) {
com.newgrounds.Logger.logError("Vote failed. You've already voted on this rating today.");
_local2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED;
}
if (_local2 == com.newgrounds.APIEvent.ERROR_NONE) {
var _local3 = _group.getRatingById(event.__get__data().rating_id);
if (_local3) {
_ratings[_local3.__get__name()] = _local3.validateValue(event.__get__data().score);
}
com.newgrounds.Logger.logMessage("Vote complete!");
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, _local2));
}
function clone() {
var _local3 = new com.newgrounds.SaveFile(_group);
_local3._data = _data;
_local3._description = _description;
_local3._draft = _draft;
_local3._fileSize = _fileSize;
_local3._iconLoader.__set__bitmapData(_iconLoader.bitmapData);
var _local2;
for (_local2 in _keys) {
_local3._keys[_local2] = _keys[_local2];
}
for (_local2 in _ratings) {
_local3._ratings[_local2] = _ratings[_local2];
}
_local3._name = _name;
return(_local3);
}
static var ICON_WIDTH = 90;
static var ICON_HEIGHT = 90;
static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultSaveIcon");
static var STATUS_PRIVATE = 0;
static var STATUS_SHARED = 1;
static var STATUS_UNAPPROVED = 2;
static var STATUS_APPROVED = 3;
static var _imageFilePath = "";
static var _saveFilePath = "";
static var ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner();
static var DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6);
}
Symbol 48 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
class com.newgrounds.SaveGroup
{
var _connection, _id, _name, _type, _keysArray, _ratingsArray, _keys, _ratings;
function SaveGroup (connection, name, id, type, keys, ratings) {
_connection = connection;
_id = id;
_name = name;
_type = type;
_keysArray = keys;
_ratingsArray = ratings;
_keys = new Object();
_ratings = new Object();
var _local11;
for (var _local7 in keys) {
var _local2 = keys[_local7];
_keys[_local2.__get__name()] = _local2;
}
for (var _local6 in ratings) {
var _local3 = ratings[_local6];
_ratings[_local3.__get__name()] = _local3;
}
}
function get connection() {
return(_connection);
}
function get name() {
return(_name);
}
function get type() {
return(_type);
}
function get id() {
return(_id);
}
function get keys() {
return(_keysArray);
}
function get ratings() {
return(_ratingsArray);
}
function getKey(name) {
return(_keys[name]);
}
function getRating(name) {
return(_ratings[name]);
}
function getKeyById(id) {
for (var _local4 in _keys) {
var _local2 = _keys[_local4];
if (_local2.__get__id() == id) {
return(_local2);
}
}
return(null);
}
function getRatingById(id) {
for (var _local4 in _ratings) {
var _local2 = _ratings[_local4];
if (_local2.__get__id() == id) {
return(_local2);
}
}
return(null);
}
function toString() {
return((((("SaveGroup: " + name) + " Keys: ") + _keysArray) + " Ratings: ") + _ratingsArray);
}
static var TYPE_SYSTEM = 0;
static var TYPE_PRIVATE = 1;
static var TYPE_PUBLIC = 2;
static var TYPE_MODERATED = 3;
}
Symbol 46 MovieClip [__Packages.com.newgrounds.SaveKey] Frame 0
class com.newgrounds.SaveKey
{
var _name, _id, _type;
function SaveKey (name, id, type) {
_name = name;
_id = id;
_type = type;
}
function get name() {
return(_name);
}
function get id() {
return(_id);
}
function get type() {
return(_type);
}
function validateValue(value) {
switch (_type) {
case TYPE_INTEGER :
value = Number(value);
if (!isNaN(value)) {
var _local3 = int(value);
if (_local3 != value) {
com.newgrounds.Logger.logWarning(((((("Float value " + value) + " given for integer key \"") + _name) + "\". Clamping to ") + _local3) + ".");
}
return(_local3);
}
break;
case TYPE_FLOAT :
value = Number(value);
if (!isNaN(value)) {
return(isNaN(Number(value)));
}
break;
case TYPE_BOOLEAN :
return(Boolean(value));
case TYPE_STRING :
return((value ? (value.toString()) : ""));
}
return(null);
}
function toString() {
return(_name);
}
static var TYPE_FLOAT = 1;
static var TYPE_INTEGER = 2;
static var TYPE_STRING = 3;
static var TYPE_BOOLEAN = 4;
}
Symbol 47 MovieClip [__Packages.com.newgrounds.SaveRating] Frame 0
class com.newgrounds.SaveRating
{
var _name, _id, _isFloat, _minimum, _maximum;
function SaveRating (name, id, isFloat, minimum, maximum) {
_name = name;
_id = id;
_isFloat = isFloat;
_minimum = minimum;
_maximum = maximum;
}
function get name() {
return(_name);
}
function get id() {
return(_id);
}
function get isFloat() {
return(_isFloat);
}
function get minimum() {
return(_minimum);
}
function get maximum() {
return(_maximum);
}
function validateValue(value) {
var _local2 = Number(value);
if (isNaN(_local2)) {
com.newgrounds.Logger.logError(("Invalid value for rating \"" + _name) + "\".");
return(NaN);
}
if (_local2 < _minimum) {
com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _minimum) + ".");
return(_minimum);
}
if (_local2 > _maximum) {
com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _maximum) + ".");
return(_maximum);
}
if (!isFloat) {
var _local3 = int(_local2);
if (_local3 != _local2) {
com.newgrounds.Logger.logWarning(((((("Float value " + _local2) + " given for integer rating \"") + _name) + "\". Clamping to ") + _local3) + ".");
}
return(_local3);
}
return(_local2);
}
function toString() {
return(_name);
}
}
Symbol 42 MovieClip [__Packages.com.newgrounds.BitmapLoader] Frame 0
class com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher
{
var _bitmapData, _url, _loader, _loaderClip, dispatchEvent;
function BitmapLoader (defaultBitmap, url) {
super();
_bitmapData = defaultBitmap;
_url = url;
}
function get url() {
return(_url);
}
function set url(v) {
_loaded = false;
_url = v;
//return(url);
}
function get bitmapData() {
return(_bitmapData);
}
function set bitmapData(v) {
_bitmapData = v;
_loaded = true;
//return(bitmapData);
}
function get loaded() {
return(_loaded);
}
function disposeLoader() {
if (_loader) {
if (_loaderClip._parent == _root) {
_loader.unloadClip(_loaderClip.bitmap);
_loaderClip.removeMovieClip();
}
_loader = null;
_loaderClip = null;
}
}
function load() {
if ((!_url) || (_url == "")) {
onLoadComplete();
return(undefined);
}
_loaded = false;
if (_bitmapData) {
_bitmapData.dispose();
_bitmapData = null;
}
disposeLoader();
attachBitmap(null);
}
function attachBitmap(parent) {
if (!parent) {
parent = _root;
}
var _local5 = parent.getNextHighestDepth();
var _local3 = parent.createEmptyMovieClip("__bitmap" + _local5, _local5);
if (((!_loaded) && (_url)) && (_url != "")) {
_local3.createEmptyMovieClip("bitmap", 0);
_loader = new MovieClipLoader();
_loaderClip = _local3;
if (parent == _root) {
_loaderClip._visible = false;
}
var thisObj = this;
_loaderClip.onEnterFrame = function () {
thisObj.pollLoad();
};
_loader.addListener({onLoadError:function () {
thisObj.onLoadComplete();
}});
_loader.loadClip(_url, _local3.bitmap);
} else {
_local3.attachBitmap(_bitmapData, 0);
}
return(_local3);
}
function pollLoad() {
if (_loaderClip._width) {
onLoadComplete();
}
}
function onLoadComplete() {
var _local2;
if ((_loader && (_loaderClip)) && (_loaderClip._width)) {
try {
_loaderClip.onEnterFrame = null;
_local2 = new flash.display.BitmapData(_loaderClip._width, _loaderClip._height, true, 0);
_local2.draw(_loaderClip);
_bitmapData = _local2;
_loaded = true;
} catch(error) {
if (_local2) {
_local2.dispose();
}
}
}
disposeLoader();
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, (_loaded ? null : (com.newgrounds.APIEvent.ERROR_BAD_FILE))));
}
static var _cacheSeed = 0;
var _loaded = true;
}
Symbol 51 MovieClip [__Packages.com.newgrounds.SaveQuery] Frame 0
class com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher
{
var _group, _connection, _files, _lookupKeys, _lookupRatings, _fileConditions, _keyConditions, _ratingConditions, _sortFields, dispatchEvent;
function SaveQuery (group) {
super();
_group = group;
_connection = group.connection;
reset();
}
function get group() {
return(_group);
}
function get resultsPerPage() {
return(_resultsPerPage);
}
function set resultsPerPage(val) {
_resultsPerPage = Math.min(Math.max(val, 1), 100);
//return(resultsPerPage);
}
function get page() {
return(_page);
}
function set page(val) {
_page = Math.max(val, 1);
//return(page);
}
function prevPage() {
page = ((page-1));
}
function nextPage() {
page = ((page+1));
}
function get isRandomized() {
return(_isRandomized);
}
function set isRandomized(val) {
_isRandomized = val;
//return(isRandomized);
}
function get files() {
return(_files);
}
function reset() {
_page = 1;
_resultsPerPage = 10;
_isRandomized = false;
_lookupKeys = [];
_lookupRatings = [];
_fileConditions = [];
_keyConditions = [];
_ratingConditions = [];
_sortFields = [];
_files = [];
includeAllFields();
}
function clone() {
var _local2 = new com.newgrounds.SaveQuery(_group);
_local2._page = _page;
_local2._resultsPerPage = _resultsPerPage;
_local2._isRandomized = _isRandomized;
_local2._lookupKeys = _lookupKeys.concat();
_local2._lookupRatings = _lookupRatings.concat();
_local2._fileConditions = _fileConditions.concat();
_local2._keyConditions = _keyConditions.concat();
_local2._ratingConditions = _ratingConditions.concat();
return(_local2);
}
function includeAllFields() {
for (var _local5 in _group.__get__keys()) {
var _local2 = _group.__get__keys()[_local5];
_lookupKeys.push(_local2.__get__id());
}
for (var _local4 in _group.__get__ratings()) {
var _local3 = _group.__get__ratings()[_local4];
_lookupRatings.push(_local3.__get__id());
}
}
function addCondition(field, operator, value) {
var _local2;
_local2 = 0;
while (_local2 < FILE_FIELDS.length) {
if (FILE_FIELDS[_local2] == field) {
break;
}
_local2++;
}
if (_local2 == FILE_FIELDS.length) {
_local2 = -1;
}
if (_local2 >= 0) {
_fileConditions.push({field:_local2, operator:operator, value:value});
} else {
var _local3 = _group.getKey(field);
if (_local3) {
value = _local3.validateValue(value);
_keyConditions.push({key_id:_local3.__get__id(), operator:operator, value:value});
return(undefined);
}
var _local4 = field.split(".");
var _local6 = _group.getRating(_local4[0]);
if (_local6) {
value = _local6.validateValue(value);
_ratingConditions.push({rating_id:_local6.__get__id(), operator:operator, value:value, column:(_local4[1] ? (_local4[1]) : "score")});
return(undefined);
}
com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\".");
}
}
function sortOn(field, sortDescending) {
if (sortDescending == undefined) {
sortDescending = false;
}
var _local2;
_local2 = 0;
while (_local2 < FILE_FIELDS.length) {
if (FILE_FIELDS[_local2] == field) {
break;
}
_local2++;
}
if (_local2 == FILE_FIELDS.length) {
_local2 = -1;
}
if (_local2 >= 0) {
_sortFields.push({table:TABLE_FILES, field:_local2, desc:sortDescending});
} else {
var _local5 = _group.getKey(field);
if (_local5) {
_sortFields.push({table:TABLE_KEYS, field:_local5.__get__id(), desc:sortDescending});
return(undefined);
}
var _local3 = field.split(".");
var _local6 = _group.getRating(_local3[0]);
if (_local6) {
_sortFields.push({table:TABLE_RATINGS, field:_local6.__get__id(), desc:sortDescending, extra:(_local3[1] ? (_local3[1]) : "score")});
return(undefined);
}
com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\".");
}
}
function execute() {
var _local5 = {};
_local5.page = _page;
_local5.num_results = _resultsPerPage;
if (_isRandomized) {
_local5.randomize = 1;
}
if (_lookupKeys && (_lookupKeys.length)) {
_local5.lookup_keys = _lookupKeys;
}
if (_lookupRatings && (_lookupRatings.length)) {
_local5.lookup_ratings = _lookupRatings;
}
if (_fileConditions && (_fileConditions.length)) {
_local5.file_conditions = _fileConditions;
}
if (_keyConditions && (_keyConditions.length)) {
_local5.key_conditions = _keyConditions;
}
if (_ratingConditions && (_ratingConditions.length)) {
_local5.rating_conditions = _ratingConditions;
}
if (_sortFields && (_sortFields.length)) {
_local5.sort_conditions = _sortFields;
}
_connection.sendSimpleCommand("lookupSaveFiles", {target:this, func:onQueryComplete}, {publisher_id:_connection.publisherId, group_id:_group.__get__id(), query:_local5});
}
function onQueryComplete(event) {
if (event.__get__success()) {
var _local4 = event.__get__data();
_files = [];
if (_local4.files) {
var _local2 = 0;
while (_local2 < _local4.files.length) {
var _local3 = com.newgrounds.SaveFile.fromObject(_group, _local4.files[_local2]);
if (_local3) {
_files.push(_local3);
}
_local2++;
}
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this));
} else {
com.newgrounds.Logger.logError("Query failed: " + event.__get__error());
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error()));
}
}
static var FILE_ID = "fileId";
static var AUTHOR_ID = "authorId";
static var AUTHOR_NAME = "authorName";
static var FILE_NAME = "fileName";
static var CREATED_ON = "createdOn";
static var UPDATED_ON = "updatedOn";
static var FILE_VIEWS = "fileViews";
static var FILE_STATUS = "fileStatus";
static var FILE_FIELDS = [FILE_ID, AUTHOR_ID, AUTHOR_NAME, FILE_NAME, CREATED_ON, UPDATED_ON, FILE_VIEWS, FILE_STATUS];
static var OPERATOR_EQUAL = "=";
static var OPERATOR_LESS_THAN = "<";
static var OPERATOR_GREATER_THAN = ">";
static var OPERATOR_NOT_EQUAL = "!=";
static var OPERATOR_LESS_OR_EQUAL = "<=";
static var OPERATOR_GREATER_OR_EQUAL = ">=";
static var OPERATOR_CONTAINS = "*";
static var OPERATOR_NOT_CONTAINS = "!*";
static var OPERATOR_NOT_BEGINS_WITH = "!*=";
static var OPERATOR_NOT_ENDS_WITH = "!=*";
static var OPERATOR_BEGINS_WITH = "*=";
static var OPERATOR_ENDS_WITH = "=*";
static var TABLE_FILES = 1;
static var TABLE_KEYS = 2;
static var TABLE_RATINGS = 3;
var _page = 1;
var _resultsPerPage = 10;
var _isRandomized = false;
}
Symbol 43 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
class com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher
{
var _connection, _id, _name, _description, _secret, _unlocked, _value, _difficulty, _iconLoader, dispatchEvent;
function Medal (connection, id, name, description, secret, unlocked, value, difficultyId, iconURL) {
super();
_connection = connection;
_id = id;
_name = name;
_description = description;
_secret = secret;
_unlocked = unlocked;
_value = value;
_difficulty = DIFFICULTIES[difficultyId];
_iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, iconURL);
_iconLoader.load();
}
function get difficulty() {
return(_difficulty);
}
function get icon() {
return(_iconLoader.__get__bitmapData());
}
function get id() {
return(_id);
}
function get name() {
return(_name);
}
function get description() {
return(_description);
}
function get secret() {
return(_secret);
}
function get unlocked() {
return(_unlocked);
}
function get value() {
return(_value);
}
function toString() {
return((((((("Medal: " + _name) + "\t\t(") + (_unlocked ? "unlocked, " : "locked, ")) + _value) + "pts, ") + _difficulty) + ")");
}
function attachIcon(parent) {
return(_iconLoader.attachBitmap(parent));
}
function unlock() {
if (_unlocked) {
com.newgrounds.Logger.logWarning(("Medal \"" + _name) + "\" is already unlocked.");
return(undefined);
}
com.newgrounds.Logger.logMessage(("Unlocking medal \"" + name) + "\"...");
_unlocked = true;
if (_connection.__get__hasUserSession()) {
_connection.sendSimpleCommand("unlockMedal", {target:this, func:onUnlockConfirmed}, null, {medal_id:id});
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this));
}
function setUnlocked(unlocked) {
_unlocked = unlocked;
}
function onUnlockConfirmed(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage(("Medal \"" + name) + "\" unlocked.");
} else {
com.newgrounds.Logger.logError(("Failed to unlock \"" + name) + "\"!");
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error()));
}
static var ICON_WIDTH = 50;
static var ICON_HEIGHT = 50;
static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultMedalIcon");
static var DIFFICULTY_EASY = "Easy";
static var DIFFICULTY_MODERATE = "Moderate";
static var DIFFICULTY_CHALLENGING = "Challenging";
static var DIFFICULTY_DIFFICULT = "Difficult";
static var DIFFICULTY_BRUTAL = "Brutal";
static var DIFFICULTIES = ["Unknown", DIFFICULTY_EASY, DIFFICULTY_MODERATE, DIFFICULTY_CHALLENGING, DIFFICULTY_DIFFICULT, DIFFICULTY_BRUTAL];
}
Symbol 45 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
class com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher
{
var _connection, _name, _id, _scores, _tag, dispatchEvent;
function ScoreBoard (connection, name, id) {
super();
_connection = connection;
_name = name;
_id = id;
}
function get name() {
return(_name);
}
function get scores() {
return(_scores);
}
function get period() {
return(_period);
}
function set period(val) {
_period = val;
//return(period);
}
function get firstResult() {
return(_firstResult);
}
function set firstResult(val) {
_firstResult = Math.max(1, val);
//return(firstResult);
}
function get numResults() {
return(_numResults);
}
function set numResults(val) {
_numResults = val;
//return(numResults);
}
function get tag() {
return(_tag);
}
function set tag(val) {
_tag = val;
//return(tag);
}
function get page() {
return(Math.ceil((_firstResult - 1) / _numResults) + 1);
}
function prevPage() {
if (firstResult > _numResults) {
firstResult = firstResult - _numResults;
}
}
function nextPage() {
firstResult = firstResult + _numResults;
}
function loadScores() {
_connection.sendSimpleCommand("loadScores", {target:this, func:onScoresLoaded}, {publisher_id:_connection.publisherId, board:_id, page:((_firstResult - 1) / _numResults) + 1, num_results:_numResults, period:_period, tag:_tag});
}
function postScore(numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (isNaN(numericScore)) {
com.newgrounds.Logger.logError("Cannot post invalid score: " + numericScore);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
com.newgrounds.Logger.logMessage(((((("Posting a score of " + numericScore) + " by ") + _connection.username) + " to scoreboard \"") + _name) + "\"...");
_connection.sendSimpleCommand("postScore", {target:this, func:onScorePosted}, null, {user_name:_connection.username, board:_id, value:numericScore, tag:tag});
}
function onScoresLoaded(event) {
var _local4 = event.__get__data();
_scores = [];
var _local5;
if (_local4.first_result) {
_local5 = _local4.first_result;
} else {
_local5 = _firstResult;
}
if (_local4.scores) {
var _local3 = 0;
while (_local3 < _local4.scores.length) {
var _local2 = _local4.scores[_local3];
if (_local2) {
_scores[_local3] = new com.newgrounds.Score(_local5, _local2.username, _local2.value, _local2.numeric_value, _local2.tag);
}
_local3++;
_local5++;
}
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this));
}
function onScorePosted(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage("Score posted!");
var _local4 = event.__get__data();
var _local2 = {};
_local2.score = _local4.value;
_local2.scoreBoard = this;
} else {
com.newgrounds.Logger.logError("Error posting score: " + event.__get__error());
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, _local2, event.__get__error()));
}
function toString() {
return("Scoreboard: " + _name);
}
static var TODAY = "Today";
static var THIS_WEEK = "This Week";
static var THIS_MONTH = "This Month";
static var THIS_YEAR = "This Year";
static var ALL_TIME = "All-Time";
var _period = ALL_TIME;
var _firstResult = 1;
var _numResults = 10;
}
Symbol 34 MovieClip [__Packages.com.newgrounds.Logger] Frame 0
class com.newgrounds.Logger
{
function Logger () {
}
static function logInternal() {
var _local2 = arguments;
log(PRIORITY_INTERNAL, _local2);
}
static function logMessage() {
var _local2 = arguments;
log(PRIORITY_MESSAGE, _local2);
}
static function logWarning() {
var _local2 = arguments;
log(PRIORITY_WARNING, _local2);
}
static function logError() {
var _local2 = arguments;
log(PRIORITY_ERROR, _local2);
}
static function log(priority, messages) {
if (priority == undefined) {
priority = PRIORITY_MESSAGE;
}
if (messages == undefined) {
messages = null;
}
if (priority >= _messageLevel) {
var _local1 = 0;
while (_local1 < messages.length) {
trace(HEADER + messages[_local1]);
_eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[_local1]));
_local1++;
}
}
if (priority >= _throwLevel) {
throw new Error(messages.join(newline));
}
}
static function addEventListener(event, listener) {
_eventDispatcher.addEventListener(event, listener, false, 0, false);
}
static var PRIORITY_INTERNAL = 0;
static var PRIORITY_MESSAGE = 1;
static var PRIORITY_WARNING = 2;
static var PRIORITY_ERROR = 3;
static var PRIORITY_MAX = 4;
static var HEADER = "[Newgrounds API] :: ";
static var _eventDispatcher = new com.newgrounds.EventDispatcher();
static var _messageLevel = PRIORITY_MESSAGE;
static var _throwLevel = PRIORITY_MAX;
}
Symbol 53 MovieClip [__Packages.com.newgrounds.components.FlashAdBase] Frame 0
class com.newgrounds.components.FlashAdBase extends MovieClip
{
var _x, _y, stop, onUnload, _adListener, adContainer, newgroundsButton, _fullScreen, clear, _ad, showPlayButton, gotoAndStop, _adFeedLoader, _width, _height, beginFill, moveTo, lineTo, endFill;
function FlashAdBase () {
super();
try {
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
} catch(error) {
}
_x = int(_x);
_y = int(_y);
stop();
if (_newgroundsButton) {
_newgroundsButton.onRelease = onNGClick;
}
onUnload = removeAd;
var _local4 = this;
_adListener = {onLoadError:function (target, error, httpStatus) {
target._parent.onAdError(target, error, httpStatus);
}};
if (fullScreen) {
drawFullScreenRect();
}
if (com.newgrounds.API.__get__adFeedURL()) {
loadAdFeed();
} else {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {target:this, func:loadAdFeed});
}
}
function get _adContainer() {
return(adContainer);
}
function get _newgroundsButton() {
return(newgroundsButton);
}
function get fullScreen() {
return(_fullScreen);
}
function set fullScreen(v) {
_fullScreen = v;
if (v) {
drawFullScreenRect();
} else {
clear();
}
//return(fullScreen);
}
function get showBorder() {
return(_showBorder);
}
function set showBorder(value) {
_showBorder = value;
if (_showBorder) {
if (_ad) {
var _local2 = _ad.getProgress(_adContainer);
if (_local2.bytesLoaded >= _local2.bytesTotal) {
if (showPlayButton) {
gotoAndStop("loadedPlay");
} else {
gotoAndStop("loaded");
}
} else {
gotoAndStop("loading");
}
} else {
gotoAndStop("idle");
}
} else {
gotoAndStop("noBorder");
}
//return(showBorder);
}
function loadAdFeed(event) {
if (event == undefined) {
event = null;
}
_adFeedLoader = new LoadVars();
var target = this;
_adFeedLoader.onData = function (data) {
target.onAdFeedLoaded(data);
};
_adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), _adFeedLoader);
}
function onAdFeedLoaded(data) {
if (data && (data != "")) {
loadAd(data);
} else {
onAdError();
}
}
function loadAd(adURL) {
if (showPlayButton) {
gotoAndStop("loadedPlay");
}
if (adType != VIDEO_ADS) {
if (adURL.indexOf("?") >= 0) {
adURL = adURL + "&";
} else {
adURL = adURL + "?";
}
adURL = adURL + "blockoverlays=1";
}
_ad = new MovieClipLoader();
_ad.addListener(_adListener);
_adContainer._lockroot = true;
_ad.loadClip(adURL, _adContainer);
}
function removeAd() {
_adFeedLoader.onData = null;
_adFeedLoader = null;
_ad.removeListener(_adListener);
if (_adContainer) {
_ad.unloadClip(_adContainer);
}
_ad = null;
}
function onAdError(target, error, httpStatus) {
com.newgrounds.Logger.logError("Unable to load ad.");
removeAd();
}
function onNGClick() {
com.newgrounds.API.loadNewgrounds();
}
function drawFullScreenRect() {
_x = (Stage.width - _width) / 2;
_y = (Stage.height - _height) / 2;
beginFill(0);
moveTo(-Stage.width, -Stage.height);
lineTo(Stage.width, -Stage.height);
lineTo(Stage.width, Stage.height);
lineTo(-Stage.width, Stage.height);
lineTo(-Stage.width, -Stage.height);
endFill();
}
var _showBorder = true;
var adType = com.newgrounds.components.FlashAdBase.prototype.VIDEO_ADS;
var VIDEO_ADS = "Video";
var SIMPLE_ADS = "Simple";
}
Symbol 1046 MovieClip [__Packages.Base64] Frame 0
class Base64 extends Object
{
static var _CharsReverseLookup;
var _base64Str, _base64Count;
function Base64 () {
super();
}
static function Encode(str) {
var _local1 = new Base64();
return(_local1.encodeBase64(str));
}
static function Decode(str) {
var _local1 = new Base64();
return(_local1.decodeBase64(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setBase64Str(str) {
_base64Str = str;
_base64Count = 0;
}
function readBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charCodeAt(_base64Count) & 255;
_base64Count++;
return(_local2);
}
function encodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readBase64())) != _EndOfInput)) {
_local2[1] = readBase64();
_local2[2] = readBase64();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
while (true) {
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charAt(_base64Count);
_base64Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseBase64())) != _EndOfInput)) && (((_local2[1] = readReverseBase64())) != _EndOfInput)) {
_local2[2] = readReverseBase64();
_local2[3] = readReverseBase64();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 1047 MovieClip [__Packages.LZW] Frame 0
class LZW
{
function LZW () {
}
static function compress(str) {
var _local3 = new Array();
var _local9 = (xmlsafe ? 5 : 0);
var _local4 = 0;
while (_local4 < 256) {
_local3[String.fromCharCode(_local4)] = _local4;
_local4++;
}
if (xmlsafe) {
_local3["<"] = 256;
_local3[">"] = 257;
_local3["&"] = 258;
_local3["\""] = 259;
_local3["'"] = 260;
}
var _local6 = "";
var _local10 = str;
var _local7 = _local10.split("");
var _local8 = _local7.length;
var _local5 = 256 + _local9;
var _local2 = "";
_local4 = 0;
while (_local4 <= _local8) {
var _local1 = _local7[_local4];
if (!(_local3[_local2 + _local1] === undefined)) {
_local2 = _local2 + _local1;
} else {
_local6 = _local6 + String.fromCharCode(_local3[_local2]);
_local3[_local2 + _local1] = _local5;
_local5++;
_local2 = _local1;
}
_local4++;
}
return(_local6);
}
static function decompress(str) {
var _local4 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local6 = 0;
while (_local6 < 256) {
var _local9 = String.fromCharCode(_local6);
_local4[_local6] = _local9;
_local6++;
}
if (xmlsafe) {
_local4[256] = "<";
_local4[257] = ">";
_local4[258] = "&";
_local4[259] = "\"";
_local4[260] = "'";
}
var _local11 = str;
var _local13 = _local11.split("");
var _local12 = _local13.length;
var _local7 = 256 + _local10;
var _local1 = "";
var _local2 = "";
var _local8 = "";
_local6 = 0;
while (_local6 < _local12) {
var _local5 = _local11.charCodeAt(_local6);
var _local3 = _local4[_local5];
if (_local1 == "") {
_local1 = _local3;
_local8 = _local8 + _local3;
} else if (_local5 <= (255 + _local10)) {
_local8 = _local8 + _local3;
_local2 = _local1 + _local3;
_local4[_local7] = _local2;
_local7++;
_local1 = _local3;
} else {
_local2 = _local4[_local5];
if (_local2 == undefined) {
_local2 = _local1 + _local1.slice(0, 1);
}
_local8 = _local8 + _local2;
_local4[_local7] = _local1 + _local2.slice(0, 1);
_local7++;
_local1 = _local2;
}
_local6++;
}
return(_local8);
}
static function compress_fp6(str) {
var _local3 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local4 = 0;
while (_local4 < 256) {
_local3[String(_local4)] = _local4;
_local4++;
}
if (xmlsafe) {
var _local14 = String(new String("<").charCodeAt(0));
var _local11 = String(new String(">").charCodeAt(0));
var _local13 = String(new String("&").charCodeAt(0));
var _local15 = String(new String("\"").charCodeAt(0));
var _local12 = String(new String("'").charCodeAt(0));
_local3[_local14] = 256;
_local3[_local11] = 257;
_local3[_local13] = 258;
_local3[_local15] = 259;
_local3[_local12] = 260;
}
var _local7 = "";
var _local16 = str;
var _local8 = _local16.split("");
var _local9 = _local8.length;
var _local6 = 256 + _local10;
var _local1 = new Array();
_local4 = 0;
while (_local4 <= _local9) {
var _local2 = _local8[_local4];
if (_local1.length == 0) {
var _local5 = String(_local2.charCodeAt(0));
} else {
var _local5 = (_local1.join("-") + "-") + String(_local2.charCodeAt(0));
}
if (!(_local3[_local5] === undefined)) {
_local1.push(_local2.charCodeAt(0));
} else {
_local7 = _local7 + String.fromCharCode(_local3[_local1.join("-")]);
_local3[_local5] = _local6;
_local6++;
_local1 = new Array();
_local1.push(_local2.charCodeAt(0));
}
_local4++;
}
return(_local7);
}
static var xmlsafe = false;
}
Symbol 28 MovieClip [__Packages.com.newgrounds.shims.APIShim] Frame 0
class com.newgrounds.shims.APIShim extends MovieClip
{
function APIShim () {
super();
}
}
Symbol 38 MovieClip [__Packages.com.newgrounds.crypto.MD5] Frame 0
class com.newgrounds.crypto.MD5
{
function MD5 () {
}
static function hash(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 39 MovieClip [__Packages.com.newgrounds.crypto.RC4] Frame 0
class com.newgrounds.crypto.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function encryptbin(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(_local2);
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 40 MovieClip [__Packages.com.newgrounds.encoders.json.JSON] Frame 0
class com.newgrounds.encoders.json.JSON
{
static var start, cache, interval;
function JSON () {
}
static function encode(arg, noquotes) {
var _local3;
var _local2;
var _local6;
var _local1 = "";
var _local4;
if (arg.isSServerVar()) {
var _local8 = "sservervariable";
} else {
var _local8 = typeof(arg);
}
switch (_local8) {
case "sservervariable" :
return("?" + arg.getEncodedValue());
case "object" :
if (arg) {
if (arg instanceof Array) {
_local2 = 0;
while (_local2 < arg.length) {
_local4 = encode(arg[_local2]);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + _local4;
_local2++;
}
return(("[" + _local1) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local2 in arg) {
_local4 = arg[_local2];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = encode(_local4);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + ((encode(_local2) + ":") + _local4);
}
}
return(("{" + _local1) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local6 = arg.length;
if (noquotes) {
var _local7 = "";
} else {
var _local7 = "\"";
}
_local1 = _local7;
_local2 = 0;
while (_local2 < _local6) {
_local3 = arg.charAt(_local2);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
} else {
switch (_local3) {
case "\b" :
_local1 = _local1 + "\\b";
break;
case "\f" :
_local1 = _local1 + "\\f";
break;
case newline :
_local1 = _local1 + "\\n";
break;
case "\r" :
_local1 = _local1 + "\\r";
break;
case "\t" :
_local1 = _local1 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local2 = _local2 + 1;
}
return(_local1 + _local7);
case "boolean" :
return(String(arg));
}
return("null");
}
static function background_encode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping encode");
return(false);
}
busy = true;
var _local2 = new Date();
start = _local2.getTime();
cache = {busy:false, complete:false, arg:arg, target:arg, parents:[], encoded:"", callback:callback, encode_chunk:function () {
com.newgrounds.encoders.json.JSON.encode_chunk();
}};
if (getType(arg) == "object") {
cache.encoded = "{";
} else if (getType(arg) == "array") {
cache.encoded = "[";
}
interval = setInterval(cache, "encode_chunk", 25);
return(true);
}
static function background_decode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping decode");
return(false);
}
busy = true;
var _local1 = new Date();
start = _local1.getTime();
cache = {busy:false, callback:callback, complete:false, arg:arg, pos:0, parents:["root"], target:null, scratch:"", decode_chunk:function () {
com.newgrounds.encoders.json.JSON.decode_chunk();
}};
interval = setInterval(cache, "decode_chunk", 25);
return(true);
}
static function decode(text) {
var at = 0;
var ch = " ";
var _value;
var _error = function (m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
};
var _next = function () {
ch = text.charAt(at);
at = at + 1;
return(ch);
};
var _white = function () {
while (ch) {
if (ch <= " ") {
_next();
} else if (ch == "/") {
switch (_next()) {
case "/" :
while ((_next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
_next();
for(;;){
if (ch) {
if (ch == "*") {
if (_next() == "/") {
_next();
// unexpected jump
}
} else {
_next();
}
} else {
_error("Unterminated comment");
}
};
break;
default :
_error("Syntax error");
}
} else {
return;
}
}
};
var _string = function () {
var _local4;
var _local1 = "";
var _local3;
var _local2;
var _local5 = false;
if (ch == "\"") {
while (_next()) {
if (ch == "\"") {
_next();
return(_local1);
}
if (ch == "\\") {
switch (_next()) {
case "b" :
_local1 = _local1 + "\b";
break;
case "f" :
_local1 = _local1 + "\f";
break;
case "n" :
_local1 = _local1 + newline;
break;
case "r" :
_local1 = _local1 + "\r";
break;
case "t" :
_local1 = _local1 + "\t";
break;
case "u" :
_local2 = 0;
_local4 = 0;
while (_local4 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)) {
_local5 = true;
break;
}
_local2 = (_local2 * 16) + _local3;
_local4 = _local4 + 1;
}
if (_local5) {
_local5 = false;
break;
}
_local1 = _local1 + String.fromCharCode(_local2);
break;
default :
_local1 = _local1 + ch;
}
} else {
_local1 = _local1 + ch;
}
}
}
_error("Bad string");
};
var _array = function () {
var _local1 = [];
if (ch == "[") {
_next();
_white();
if (ch == "]") {
_next();
return(_local1);
}
while (ch) {
_local1.push(_value());
_white();
if (ch == "]") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad array");
};
var _object = function () {
var _local2;
var _local1 = {};
if (ch == "{") {
_next();
_white();
if (ch == "}") {
_next();
return(_local1);
}
while (ch) {
_local2 = _string();
_white();
if (ch != ":") {
break;
}
_next();
_local1[_local2] = _value();
_white();
if (ch == "}") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad object");
};
var _number = function () {
var _local1 = "";
var _local2;
if (ch == "-") {
_local1 = "-";
_next();
}
while ((ch >= "0") && (ch <= "9")) {
_local1 = _local1 + ch;
_next();
}
if (ch == ".") {
_local1 = _local1 + ".";
while ((_next() && (ch >= "0")) && (ch <= "9")) {
_local1 = _local1 + ch;
}
}
_local2 = 1 * _local1;
if (!isFinite(_local2)) {
_error("Bad number");
} else {
return(_local2);
}
};
var _word = function () {
switch (ch) {
case "t" :
if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) {
_next();
return(true);
}
break;
case "f" :
if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) {
_next();
return(false);
}
break;
case "n" :
if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) {
break;
}
_next();
return(null);
}
_error("Syntax error");
};
_value = function () {
_white();
switch (ch) {
case "{" :
return(_object());
case "[" :
return(_array());
case "\"" :
return(_string());
case "-" :
return(_number());
}
return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word())));
};
return(_value());
}
static function getType(v) {
if (v instanceof Array) {
return("array");
}
return(typeof(v));
}
static function decode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < decode_chunks) {
chunk_decoder();
if (cache.complete) {
break;
}
_local1++;
}
trace(Math.round((cache.pos / cache.arg.length) * 100) + "% decoded");
cache.busy = false;
}
if (cache.complete) {
var _local2 = new Date();
busy = false;
clearInterval(interval);
cache.callback(cache.root, _local2.getTime() - start);
cache.arg = "";
}
}
static function encode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < encode_chunks) {
chunk_encoder();
if (cache.complete) {
break;
}
_local1++;
}
cache.busy = false;
}
if (cache.complete) {
var _local3 = new Date();
var _local2 = _local3.getTime();
busy = false;
clearInterval(interval);
cache.callback(cache.encoded, _local2 - start);
cache.encoded = "";
}
}
static function chunk_decoder() {
function _object() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "object";
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
_setTargetValue({});
} else if (_local1 == ",") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
} else if (_local1 == "}") {
_useParent();
} else if (_local1 == "\"") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != ":") {
throw "Malformed object notation. Object keys and values must be separated by colons(:)";
}
_addParent(com.newgrounds.encoders.json.JSON.cache.scratch);
com.newgrounds.encoders.json.JSON.cache.mode = null;
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
}
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _array() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "array";
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
_setTargetValue([]);
if (_local1 != "]") {
_addArrayKey();
} else {
_useParent();
}
return(undefined);
}
if (_local1 == ",") {
_addArrayKey();
} else if (_local1 == "]") {
_useParent();
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _boolean() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 == "t") {
_setTargetValue(true);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 3;
} else if (_local1 == "f") {
_setTargetValue(false);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 4;
} else {
throw "Bool values must be true or false";
}
_useParent();
}
function _null() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 == "n") {
_setTargetValue(null);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 2;
} else {
throw "Null values must be null";
}
_useParent();
}
function _string() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
if (_local1 != "\"") {
throw "Strings must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
com.newgrounds.encoders.json.JSON.cache.mode = "string";
} else if (_local1 == "\"") {
_setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch);
_useParent();
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
switch (_local1) {
case "n" :
_local1 = newline;
break;
case "r" :
_local1 = newline;
break;
case "t" :
_local1 = "\t";
break;
case "u" :
_local1 = "\\" + _local1;
}
}
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _number() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
var _local2 = "01234567890.-";
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "number";
com.newgrounds.encoders.json.JSON.cache.scratch = "";
}
if (_local2.indexOf(_local1) < 0) {
_setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch));
_useParent();
} else {
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
com.newgrounds.encoders.json.JSON.cache.pos++;
}
}
function _setTargetValue(newval) {
var _local2 = _getParent().obj;
var _local1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1];
_local2[_local1] = newval;
}
function _useParent() {
com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType(_getParent().obj);
com.newgrounds.encoders.json.JSON.cache.parents.pop();
}
function _getParent() {
var _local2 = com.newgrounds.encoders.json.JSON.cache;
var _local1 = 0;
while (_local1 < (com.newgrounds.encoders.json.JSON.cache.parents.length - 1)) {
_local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]});
}
function _getCurrent() {
var _local2 = com.newgrounds.encoders.json.JSON.cache;
var _local1 = 0;
while (_local1 < com.newgrounds.encoders.json.JSON.cache.parents.length) {
_local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]});
}
function _addParent(child) {
com.newgrounds.encoders.json.JSON.cache.parents.push(child);
}
function _addArrayKey() {
var _local1 = _getCurrent().obj.length;
com.newgrounds.encoders.json.JSON.cache.parents.push(_local1);
com.newgrounds.encoders.json.JSON.cache.mode = null;
}
if (cache.pos >= cache.arg.length) {
cache.complete = true;
return(undefined);
}
if (cache.mode) {
eval ("_" + cache.mode)();
} else {
var char = cache.arg.charAt(cache.pos);
switch (char) {
case "{" :
_object();
return;
case "[" :
_array();
return;
case "\"" :
_string();
return;
case "n" :
_null();
return;
case "t" :
_boolean();
return;
case "f" :
_boolean();
return;
default :
_number();
}
}
}
static function chunk_encoder() {
if (cache.complete) {
return(undefined);
}
var _local2 = getType(cache.target);
switch (_local2) {
case "number" :
cache.encoded = cache.encoded + cache.target;
getParent();
break;
case "string" :
cache.encoded = cache.encoded + (("\"" + cache.target.split("\"").join("\\\"")) + "\"");
getParent();
break;
case "boolean" :
cache.encoded = cache.encoded + ((cache.target == true) ? "true" : "false");
getParent();
break;
case "null" :
cache.encoded = cache.encoded + "null";
getParent();
break;
case "array" :
if (cache.target.length < 1) {
cache.encoded = cache.encoded + "]";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[0];
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
case "object" :
for (var _local1 in cache.target) {
break;
}
if (_local1 === undefined) {
cache.encoded = cache.encoded + "}";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[_local1];
cache.encoded = cache.encoded + (("\"" + _local1.split("\"").join("\\\"")) + "\":");
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
default :
cache.encoded = cache.encoded + "null";
getParent();
}
}
static function getParent() {
if (cache.parents.length > 0) {
var _local1 = cache.parents.pop();
if (getType(_local1) == "array") {
_local1.shift();
} else {
for (var _local3 in _local1) {
delete _local1[_local3];
break;
}
}
if ((getType(_local1) == "object") or (getType(_local1) == "array")) {
for (var _local2 in _local1) {
break;
}
if (!(_local2 === undefined)) {
cache.encoded = cache.encoded + ",";
}
}
cache.target = _local1;
} else {
cache.complete = true;
}
}
static var encode_chunks = 20000;
static var decode_chunks = 20000;
static var busy = false;
}
Symbol 44 MovieClip [__Packages.com.newgrounds.Score] Frame 0
class com.newgrounds.Score
{
var _rank, _username, _score, _numericValue, _tag;
function Score (rank, username, score, numericValue, tag) {
(_rank = rank);
(_username = username);
_score = score;
_numericValue = numericValue;
_tag = tag;
}
function get numericValue() {
return(_numericValue);
}
function get rank() {
return(_rank);
}
function get score() {
return(_score);
}
function get tag() {
return(_tag);
}
function get username() {
return(_username);
}
function toString() {
return((((_rank + ".\t") + _username) + "\t") + _score);
}
}
Symbol 239 MovieClip Frame 3545
gotoAndPlay (1);
Symbol 239 MovieClip Frame 7529
gotoAndPlay (3546);
Symbol 239 MovieClip Frame 7530
stop();
Symbol 247 MovieClip Frame 721
gotoAndPlay (123);
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Instance of Symbol 247 MovieClip in Symbol 248 MovieClip Frame 2
onClipEvent (load) {
tt = 0;
}
onClipEvent (enterFrame) {
tt = tt + 1;
if (tt > 30) {
tt = 0;
_root.colour = random(8) + 1;
}
}
Symbol 280 MovieClip [MedalPopup] Frame 1
gotoAndStop ("hidden");
if (_root.onNG == 2) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
var alwaysOnTop;
_x = int(_x);
_y = int(_y);
var _unlockedMedal;
var _medalQueue = [];
var _alwaysOnTop = true;
if (alwaysOnTop) {
_alwaysOnTop = alwaysOnTop == "true";
}
}
Symbol 280 MovieClip [MedalPopup] Frame 15
Symbol 280 MovieClip [MedalPopup] Frame 23
if (_unlockedMedal && (medalIcon)) {
_unlockedMedal.attachIcon(medalIcon);
}
Symbol 280 MovieClip [MedalPopup] Frame 84
if (_medalScrollRect) {
stop();
}
Symbol 280 MovieClip [MedalPopup] Frame 105
stop();
_unlockedMedal = null;
showNextUnlock();
Symbol 283 MovieClip Frame 20
stop();
Instance of Symbol 286 MovieClip "highlighter" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 290 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 290 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (_root.musicstatus == 2) {
_root.iholdmusic.gotoAndStop(7530);
_root.musicstatus = 1;
} else {
if (_root.invertall == 1) {
_root.iholdmusic.gotoAndPlay(1);
} else {
_root.iholdmusic.gotoAndPlay(3546);
}
_root.musicstatus = 2;
}
_root.transitsound.start(0, 0);
}
}
Instance of Symbol 287 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 287 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 287 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 287 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_root.transit.play();
_root.dest = 4;
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
}
Instance of Symbol 170 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 200) {
if (_root.menutimer < 211) {
this.highlighter._alpha = (_root.menutimer - 200) * 10;
}
}
if ((_root.menutimer > 260) || (_root.menutimer < 200)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 220) {
if (_root.menutimer < 231) {
this.highlighter._alpha = (_root.menutimer - 220) * 10;
}
}
if ((_root.menutimer > 280) || (_root.menutimer < 220)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 240) {
if (_root.menutimer < 251) {
this.highlighter._alpha = (_root.menutimer - 240) * 10;
}
}
if ((_root.menutimer > 300) || (_root.menutimer < 240)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 230) {
if (_root.menutimer < 241) {
this.highlighter._alpha = (_root.menutimer - 230) * 10;
}
}
if ((_root.menutimer > 290) || (_root.menutimer < 230)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 210) {
if (_root.menutimer < 221) {
this.highlighter._alpha = (_root.menutimer - 210) * 10;
}
}
if ((_root.menutimer > 270) || (_root.menutimer < 210)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 287 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_root.transit.play();
_root.dest = 5;
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.hexep.com/developer.html", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
}
Instance of Symbol 289 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
getURL ("http://www.youtube.com/user/ThunderBeatsMusic", "_BLANK");
}
}
Instance of Symbol 287 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
getURL ("http://spikedmath.com/math-games/", "_BLANK");
}
}
Symbol 320 MovieClip Frame 1
stop();
if (_root.levelsunlocked >= this._name) {
gotoAndStop (2);
}
Instance of Symbol 317 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.lvlnumber = _parent._name;
}
Symbol 320 MovieClip Frame 2
stop();
Instance of Symbol 287 MovieClip in Symbol 320 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_root.dest = 4 + (_parent._name * 2);
_root.transit.play();
}
}
Instance of Symbol 319 MovieClip in Symbol 320 MovieClip Frame 2
onClipEvent (load) {
this.lvlnumber = _parent._name;
trace((_parent._name + " / ") + this.lvlnumber);
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 200) {
if (_root.menutimer < 211) {
this.highlighter._alpha = (_root.menutimer - 200) * 10;
}
}
if ((_root.menutimer > 250) || (_root.menutimer < 200)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 220) {
if (_root.menutimer < 231) {
this.highlighter._alpha = (_root.menutimer - 220) * 10;
}
}
if ((_root.menutimer > 270) || (_root.menutimer < 220)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 240) {
if (_root.menutimer < 251) {
this.highlighter._alpha = (_root.menutimer - 240) * 10;
}
}
if ((_root.menutimer > 290) || (_root.menutimer < 240)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 230) {
if (_root.menutimer < 241) {
this.highlighter._alpha = (_root.menutimer - 230) * 10;
}
}
if ((_root.menutimer > 280) || (_root.menutimer < 230)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 210) {
if (_root.menutimer < 221) {
this.highlighter._alpha = (_root.menutimer - 210) * 10;
}
}
if ((_root.menutimer > 260) || (_root.menutimer < 210)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 100) {
if (_root.menutimer < 111) {
this.highlighter._alpha = (_root.menutimer - 100) * 10;
}
}
if ((_root.menutimer > 130) || (_root.menutimer < 100)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 110) {
if (_root.menutimer < 121) {
this.highlighter._alpha = (_root.menutimer - 110) * 10;
}
}
if ((_root.menutimer > 140) || (_root.menutimer < 110)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 120) {
if (_root.menutimer < 131) {
this.highlighter._alpha = (_root.menutimer - 120) * 10;
}
}
if ((_root.menutimer > 150) || (_root.menutimer < 120)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 290 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 3;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 358 MovieClip Frame 10
stop();
Symbol 360 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 2
stop();
Instance of Symbol 347 MovieClip in Symbol 361 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.resetsound.start();
_root.levelsunlocked = undefined;
_root.letter11 = undefined;
_root.letter22 = undefined;
_root.letter33 = undefined;
_root.letter44 = undefined;
_root.letter55 = undefined;
_root.letter66 = undefined;
_root.letter77 = undefined;
_root.letter88 = undefined;
_root.savefile.data.levelsunlocked = undefined;
_root.savefile.flush();
_root.dest = 1;
_root.transit.play();
}
}
Instance of Symbol 348 MovieClip in Symbol 361 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
_parent.gotoAndStop(3);
}
}
Symbol 361 MovieClip Frame 3
stop();
Symbol 367 MovieClip Frame 2
stop();
Instance of Symbol 366 MovieClip "letter1" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter11 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter11;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter11 = this.letterholder.letter;
} else {
_root.letter11 = " ";
}
}
Instance of Symbol 366 MovieClip "letter2" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter22 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter22;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter22 = this.letterholder.letter;
} else {
_root.letter22 = " ";
}
}
Instance of Symbol 366 MovieClip "letter3" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter33 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter33;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter33 = this.letterholder.letter;
} else {
_root.letter33 = " ";
}
}
Instance of Symbol 366 MovieClip "letter4" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter44 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter44;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter44 = this.letterholder.letter;
} else {
_root.letter44 = " ";
}
}
Instance of Symbol 366 MovieClip "letter5" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter55 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter55;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter55 = this.letterholder.letter;
} else {
_root.letter55 = " ";
}
}
Instance of Symbol 366 MovieClip "letter6" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter66 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter66;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter66 = this.letterholder.letter;
} else {
_root.letter66 = " ";
}
}
Instance of Symbol 366 MovieClip "letter7" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter77 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter77;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter77 = this.letterholder.letter;
} else {
_root.letter77 = " ";
}
}
Instance of Symbol 366 MovieClip "letter8" in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
if (_root.letter88 == undefined) {
this.letterholder.letter = "-";
letterset = 0;
} else {
this.letterholder.letter = _root.letter88;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (aaa != 2) {
this.letterholder.letter = "";
letterset = 1;
this.letterholder._alpha = 50;
aaa = 2;
}
}
if (this.letterholder.letter != "-") {
this.letterholder._alpha = 50;
_root.letter88 = this.letterholder.letter;
} else {
_root.letter88 = " ";
}
}
Instance of Symbol 287 MovieClip in Symbol 372 MovieClip Frame 2
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
if (_root.partymode == 0) {
_root.partymode = 1;
} else {
_root.partymode = 0;
}
}
}
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.partymode == 0) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour2);
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour2);
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour2);
}
Instance of Symbol 170 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 230) {
if (_root.menutimer < 241) {
this.highlighter._alpha = (_root.menutimer - 230) * 10;
}
}
if ((_root.menutimer > 300) || (_root.menutimer < 230)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 170 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.menutimer > 210) {
if (_root.menutimer < 221) {
this.highlighter._alpha = (_root.menutimer - 210) * 10;
}
}
if ((_root.menutimer > 280) || (_root.menutimer < 210)) {
if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
}
Instance of Symbol 290 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.playername = ((((((_root.letter11 + _root.letter22) + _root.letter33) + _root.letter44) + _root.letter55) + _root.letter66) + _root.letter77) + _root.letter88;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 3;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.invertall == 1) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
if (_root.musicstatus == 2) {
_root.iholdmusic.gotoAndPlay(3546);
}
_root.invertall = 0;
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.invertall == 0) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
if (_root.musicstatus == 2) {
_root.iholdmusic.gotoAndPlay(1);
}
_root.invertall = 1;
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.showmouse == 1) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
_root.showmouse = 0;
Mouse.show();
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.showmouse == 0) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
_root.showmouse = 1;
Mouse.hide();
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
_parent.erasedataconfirm.gotoAndStop(2);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
_parent.erasedataconfirm.gotoAndStop(2);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.maxvolume == 1) {
if (_root.mouse.hitTest(this) == false) {
highlighter._alpha = 75;
}
}
if (_root.maxvolume != 1) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (_root.maxvolume >= 1) {
highlighter._alpha = 50;
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.maxvolume = 1;
_root.beepsound.start(0, 0);
_root.beepsound.setVolume(_root.maxvolume * 20);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.maxvolume == 2) {
if (_root.mouse.hitTest(this) == false) {
highlighter._alpha = 75;
}
}
if (_root.maxvolume != 2) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (_root.maxvolume >= 2) {
highlighter._alpha = 50;
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.maxvolume = 2;
_root.beepsound.start(0, 0);
_root.beepsound.setVolume(_root.maxvolume * 20);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.maxvolume == 3) {
if (_root.mouse.hitTest(this) == false) {
highlighter._alpha = 75;
}
}
if (_root.maxvolume != 3) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (_root.maxvolume >= 3) {
highlighter._alpha = 50;
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.maxvolume = 3;
_root.beepsound.start(0, 0);
_root.beepsound.setVolume(_root.maxvolume * 20);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.maxvolume == 4) {
if (_root.mouse.hitTest(this) == false) {
highlighter._alpha = 75;
}
}
if (_root.maxvolume != 4) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (_root.maxvolume >= 4) {
highlighter._alpha = 50;
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.maxvolume = 4;
_root.beepsound.start(0, 0);
_root.beepsound.setVolume(_root.maxvolume * 20);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.maxvolume == 5) {
if (_root.mouse.hitTest(this) == false) {
highlighter._alpha = 75;
}
}
if (_root.maxvolume != 5) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (_root.maxvolume >= 5) {
highlighter._alpha = 50;
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.maxvolume = 5;
_root.beepsound.start(0, 0);
_root.beepsound.setVolume(_root.maxvolume * 20);
}
}
Instance of Symbol 372 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.partytheme == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 287 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.invertall == 1) {
if (_root.mouse.hitTest(this)) {
if (highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
highlighter._alpha = highlighter._alpha + 10;
}
} else if (highlighter._alpha > 0) {
highlighter._alpha = highlighter._alpha - 10;
}
} else {
highlighter._alpha = 50;
}
}
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beepsound.start(0, 0);
if (_root.musicstatus == 2) {
_root.iholdmusic.gotoAndPlay(3546);
}
_root.invertall = 0;
}
}
Symbol 406 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 406 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) {
xdist = Math.round((_root.activehex._x + (_root.activehex._width / 2)) - _root._xmouse);
ydist = Math.round((_root.activehex._y + (_root.activehex._height / 2)) - _root._ymouse);
dist = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if ((_root._currentframe < 40) || (_root._currentframe > 66)) {
if (dist < 150) {
_parent._x = _parent._x + (((_root.activehex._x + (_root.activehex._width / 2)) - _parent._x) / 5);
_parent._y = _parent._y + (((_root.activehex._y + (_root.activehex._height / 2)) - _parent._y) / 5);
} else {
_parent._x = _parent._x + ((_root.mouse._x - _parent._x) / 2);
_parent._y = _parent._y + ((_root.mouse._y - _parent._y) / 2);
}
} else if (dist < 75) {
_parent._x = _parent._x + (((_root.activehex._x + (_root.activehex._width / 2)) - _parent._x) / 10);
_parent._y = _parent._y + (((_root.activehex._y + (_root.activehex._height / 2)) - _parent._y) / 10);
} else {
_parent._x = _parent._x + ((_root.mouse._x - _parent._x) / 4);
_parent._y = _parent._y + ((_root.mouse._y - _parent._y) / 4);
}
this.coloured.gotoAndStop(_root.colour);
if (_root.amounttocollect > 0) {
if (_root.collected >= _root.amounttocollect) {
ak = random(2);
sl = random(20);
if (ak == 1) {
if (sl == 1) {
_root.passsound.start(0, 0);
} else {
_root.passsound2.start(0, 0);
}
} else if (sl == 1) {
_root.soundpass.start(0, 0);
} else {
_root.soundpass2.start(0, 0);
}
_root.dest = _root._currentframe + 1;
_root.transit.play();
if (_root.levelsunlocked < ((_root._currentframe - 3) / 2)) {
_root.levelsunlocked = (_root._currentframe - 3) / 2;
}
this.play();
_root.collected = 0;
}
}
}
onClipEvent (load) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
Symbol 421 MovieClip Frame 10
stop();
Instance of Symbol 136 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 136 MovieClip in Symbol 426 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 427 MovieClip Frame 10
stop();
Symbol 438 MovieClip Frame 10
stop();
Symbol 439 MovieClip Frame 10
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(3);
}
}
Symbol 446 MovieClip Frame 3
stop();
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 446 MovieClip Frame 4
stop();
Instance of Symbol 425 MovieClip in Symbol 446 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(_parent.hitme)) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndStop(1);
_root.brightsound.start(0, 0);
_root.collected = _root.collected + 1;
_parent.gotoAndStop(5);
}
}
Symbol 446 MovieClip Frame 5
stop();
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 2;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(7);
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.numberorder >= 2) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 3;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(9);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.numberorder >= 3) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 4;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(11);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.numberorder >= 4) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 5;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(13);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 13
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.numberorder >= 5) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 6;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(15);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 15
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 446 MovieClip Frame 16
stop();
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(17);
}
}
Symbol 446 MovieClip Frame 17
stop();
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 17
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 438 MovieClip in Symbol 446 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.mouse.hitTest(_parent.hitme)) {
if (_root.activehex.hitTest(_parent.hitme2)) {
if (_root.activehex.hitTest(this) == false) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(18);
}
}
}
}
Symbol 446 MovieClip Frame 18
stop();
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.numberorder >= 6) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 7;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(20);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.numberorder >= 7) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 8;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(22);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 22
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 417 MovieClip in Symbol 446 MovieClip Frame 23
onClipEvent (enterFrame) {
if (_root.numberorder >= 8) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.mouse.hitTest(_parent.hitme) && (this.hitTest(_root.activehex))) {
_root.activehex._x = _parent._parent._x;
_root.activehex._y = _parent._parent._y;
_root.activehex.gotoAndPlay(1);
_root.collected = _root.collected + 1;
_root.numberorder = 9;
_root.beepsound.start(0, 0);
_parent.gotoAndStop(24);
}
} else {
this._alpha = 49;
}
}
Instance of Symbol 136 MovieClip in Symbol 446 MovieClip Frame 24
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 447 MovieClip Frame 1
if ((_root._currentframe > 39) && (_root._currentframe > 6)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
stop();
Instance of Symbol 446 MovieClip in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
startingalpha = _parent._alpha;
}
onClipEvent (enterFrame) {
if (_root.resetnow == 2) {
this.gotoAndStop(1);
}
if (_root.resetnow == 3) {
this.gotoAndStop(1);
if (_root.route.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(2);
}
if (_root.startpoint.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(4);
}
if (_root.activate1.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(6);
}
if (_root.activate2.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(8);
}
if (_root.activate3.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(10);
}
if (_root.activate4.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(12);
}
if (_root.activate5.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(14);
}
if (_root.activate6.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(19);
}
if (_root.activate7.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(21);
}
if (_root.activate8.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(21);
}
if (_root.doubleindicate.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
_root.amounttocollect = _root.amounttocollect + 1;
this.gotoAndStop(16);
}
if (_currentframe != 1) {
_root.amounttocollect = _root.amounttocollect + 1;
}
if (_root.moregamesbutton.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
_parent._alpha = 0;
} else {
_parent._alpha = _root.alphastate;
}
}
}
Symbol 447 MovieClip Frame 2
stop();
Instance of Symbol 446 MovieClip in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
startingalpha = _parent._alpha;
}
onClipEvent (enterFrame) {
if (_root.resetnow == 2) {
this.gotoAndStop(1);
}
if (_root.resetnow == 3) {
this.gotoAndStop(1);
if (_root.route.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(2);
}
if (_root.startpoint.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(4);
}
if (_root.activate1.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(6);
}
if (_root.activate2.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(8);
}
if (_root.activate3.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(10);
}
if (_root.activate4.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(12);
}
if (_root.activate5.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(14);
}
if (_root.activate6.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(19);
}
if (_root.activate7.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(21);
}
if (_root.activate8.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
this.gotoAndStop(21);
}
if (_root.doubleindicate.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
_root.amounttocollect = _root.amounttocollect + 1;
this.gotoAndStop(16);
}
if (_currentframe != 1) {
_root.amounttocollect = _root.amounttocollect + 1;
}
if (_root.moregamesbutton.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
_parent._alpha = 0;
} else {
_parent._alpha = _root.alphastate;
}
}
}
Instance of Symbol 290 MovieClip in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.resetsamount = _root.resetsamount + 1;
_root.dest = 3;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 453 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.resetnow == 3) {
_root.resetnow = 1;
}
}
onClipEvent (mouseDown) {
if (savecounter != 1) {
savecounter = 1;
_root.savefile.data.secondsplayed = _root.secondsplayed;
_root.savefile.data.resetsamount = _root.resetsamount;
_root.savefile.data.levelsunlocked = _root.levelsunlocked;
_root.savefile.flush();
} else {
savecounter = 2;
}
if (_root.mouse.hitTest(_root.musicbutton) == false) {
if (_root.mouse.hitTest(_root.menubutton) == false) {
if (_root.mouse.hitTest(_root.editbutton) == false) {
if (_root._currentframe > 12) {
trace("k");
_root.activehex._x = -100;
_root.activehex._y = -100;
_root.amounttocollect = 0;
_root.collected = 0;
_root.numberorder = 1;
ttt = 0;
_root.resetsound.start(0, 0);
_root.resetnow = 2;
_root.colour = random(_root.totalcolours) + 1;
_root.resetsamount = _root.resetsamount + 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.resetnow == 2) {
if (ttt < 10) {
ttt = ttt + 1;
} else {
_root.resetnow = 3;
}
}
}
Instance of Symbol 286 MovieClip "highlighter" in Symbol 469 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 469 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.beforehelp = _root._currentframe - 1;
_root.dest = 70;
_root.transit.play();
}
}
Symbol 473 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._alpha = _root.alphastate + 5;
}
Instance of Symbol 475 MovieClip in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
this.leveldisplay = (_root._currentframe - 5) / 2;
_root.route._visible = false;
}
Symbol 482 MovieClip Frame 10
stop();
Symbol 484 MovieClip Frame 1
stop();
_alpha = 0;
Symbol 492 MovieClip Frame 1
_alpha = 0;
Symbol 517 MovieClip Frame 1
_alpha = 0;
Symbol 527 MovieClip Frame 1
_alpha = 0;
Symbol 528 MovieClip Frame 1
_alpha = 0;
Instance of Symbol 469 MovieClip in Symbol 535 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 469 MovieClip in Symbol 535 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Symbol 538 MovieClip Frame 1
stop();
Instance of Symbol 535 MovieClip in Symbol 538 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._alpha = _root.alphastate + 5;
if (_root._currentframe > 39) {
_parent.gotoAndStop(2);
}
}
Symbol 538 MovieClip Frame 2
stop();
Instance of Symbol 535 MovieClip in Symbol 538 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._alpha = _root.alphastate + 5;
if ((_root._currentframe > 39) == false) {
_parent.gotoAndStop(1);
}
}
Symbol 542 MovieClip Frame 1
_alpha = 0;
Symbol 545 MovieClip Frame 1
_alpha = 0;
Symbol 547 MovieClip Frame 1
_alpha = 0;
Symbol 549 MovieClip Frame 1
_alpha = 0;
Symbol 553 MovieClip Frame 1
_alpha = 0;
Symbol 563 MovieClip Frame 1
_alpha = 0;
Symbol 569 MovieClip Frame 1
_alpha = 0;
Symbol 571 MovieClip Frame 1
_alpha = 0;
Symbol 575 MovieClip Frame 1
_alpha = 0;
Symbol 579 MovieClip Frame 1
_alpha = 0;
Symbol 581 MovieClip Frame 1
_alpha = 0;
Symbol 583 MovieClip Frame 1
_alpha = 0;
Symbol 591 MovieClip Frame 1
_alpha = 0;
Symbol 594 MovieClip Frame 1
_alpha = 0;
Symbol 598 MovieClip Frame 1
_alpha = 0;
Symbol 600 MovieClip Frame 1
_alpha = 0;
Symbol 602 MovieClip Frame 1
_alpha = 0;
Symbol 606 MovieClip Frame 1
_alpha = 0;
Symbol 610 MovieClip Frame 1
_alpha = 0;
Symbol 612 MovieClip Frame 1
_alpha = 0;
Symbol 616 MovieClip Frame 1
_alpha = 0;
Symbol 620 MovieClip Frame 1
_alpha = 0;
Symbol 624 MovieClip Frame 1
_alpha = 0;
Symbol 628 MovieClip Frame 1
_alpha = 0;
Symbol 634 MovieClip Frame 1
_alpha = 0;
Symbol 638 MovieClip Frame 1
_alpha = 0;
Symbol 642 MovieClip Frame 1
_alpha = 0;
Symbol 646 MovieClip Frame 1
_alpha = 0;
Symbol 650 MovieClip Frame 1
_alpha = 0;
Symbol 652 MovieClip Frame 1
_alpha = 0;
Symbol 656 MovieClip Frame 1
_alpha = 0;
Symbol 658 MovieClip Frame 1
_alpha = 0;
Instance of Symbol 95 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (enterFrame) {
this.coloured.gotoAndStop(_root.colour);
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (mouseDown) {
this.play();
}
Symbol 662 MovieClip Frame 11
stop();
Symbol 666 MovieClip Frame 11
stop();
Symbol 668 MovieClip Frame 11
stop();
Symbol 672 MovieClip Frame 11
stop();
Symbol 674 MovieClip Frame 11
stop();
Symbol 676 MovieClip Frame 11
stop();
Symbol 678 MovieClip Frame 11
stop();
Symbol 680 MovieClip Frame 11
stop();
Instance of Symbol 681 MovieClip "highlighter" in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour);
}
Instance of Symbol 682 MovieClip in Symbol 686 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (_root.musicstatus == 2) {
_root.iholdmusic.gotoAndStop(7530);
_root.musicstatus = 1;
} else {
if (_root.invertall == 1) {
_root.iholdmusic.gotoAndPlay(1);
} else {
_root.iholdmusic.gotoAndPlay(3546);
}
_root.musicstatus = 2;
}
_root.transitsound.start(0, 0);
}
}
Instance of Symbol 681 MovieClip "highlighter" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.colour);
}
Symbol 708 MovieClip Frame 1
stop();
Instance of Symbol 687 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 687 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 687 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Symbol 708 MovieClip Frame 2
_root.savefile.data.levelsunlocked = _root.levelsunlocked;
_root.savefile.flush();
_root.sendScore("HEXEP", _root.playername, _root.finishsecondsplayed, "ascending", "dan674", "Seconds", "s58jg6d40z");
Symbol 708 MovieClip Frame 11
stop();
Symbol 709 MovieClip Frame 1
stop();
Instance of Symbol 687 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 687 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 687 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Symbol 709 MovieClip Frame 2
_root.sendScore("HEXEP", _root.playername, _root.finishresetsamount, "ascending", "dan674", "Restarts", "s58jg6d40z");
Symbol 709 MovieClip Frame 11
stop();
Instance of Symbol 708 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
if (_root.partytheme == 2) {
this.gotoAndStop(11);
}
}
Instance of Symbol 709 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
if (_root.partytheme == 2) {
this.gotoAndStop(11);
}
}
Instance of Symbol 682 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 68;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 3;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) {
if (okgo == 2) {
_root.playername = ((((((_root.nameset.letter1.letterholder.letter + _root.nameset.letter2.letterholder.letter) + _root.nameset.letter3.letterholder.letter) + _root.nameset.letter4.letterholder.letter) + _root.nameset.letter5.letterholder.letter) + _root.nameset.letter6.letterholder.letter) + _root.nameset.letter7.letterholder.letter) + _root.nameset.letter8.letterholder.letter;
_root.savefile.data.playername = _root.playername;
_root.savefile.data.letter11 = _root.letter11;
_root.savefile.data.letter22 = _root.letter22;
_root.savefile.data.letter33 = _root.letter33;
_root.savefile.data.letter44 = _root.letter44;
_root.savefile.data.letter55 = _root.letter55;
_root.savefile.data.letter66 = _root.letter66;
_root.savefile.data.letter77 = _root.letter77;
_root.savefile.data.letter88 = _root.letter88;
_root.savefile.flush();
_root.dest = 67;
_root.transit.play();
}
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
okgo = 2;
}
}
Instance of Symbol 755 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
tt = -220;
_alpha = 0;
}
onClipEvent (enterFrame) {
tt = tt + 1;
if (tt > 0) {
if (_alpha < 50) {
_alpha = (_alpha + 5);
}
}
}
Instance of Symbol 290 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = _root.beforehelp;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 770 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
tt = -30;
_alpha = 0;
}
onClipEvent (enterFrame) {
tt = tt + 1;
if (tt > 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
}
}
Instance of Symbol 783 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
tt = -100;
_alpha = 0;
}
onClipEvent (enterFrame) {
tt = tt + 1;
if (tt > 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
}
}
Instance of Symbol 798 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
tt = -340;
_alpha = 0;
}
onClipEvent (enterFrame) {
tt = tt + 1;
if (tt > 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
}
}
Symbol 800 MovieClip Frame 1
stop();
Instance of Symbol 406 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (enterFrame) {
xdist = Math.round((_root.activehex._x + (_root.activehex._width / 2)) - _root._xmouse);
ydist = Math.round((_root.activehex._y + (_root.activehex._height / 2)) - _root._ymouse);
dist = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if ((_root._currentframe < 40) || (_root._currentframe > 66)) {
if (dist < 150) {
_parent._x = _parent._x + (((_root.activehex._x + (_root.activehex._width / 2)) - _parent._x) / 5);
_parent._y = _parent._y + (((_root.activehex._y + (_root.activehex._height / 2)) - _parent._y) / 5);
} else {
_parent._x = _parent._x + ((_root.mouse._x - _parent._x) / 2);
_parent._y = _parent._y + ((_root.mouse._y - _parent._y) / 2);
}
} else if (dist < 75) {
_parent._x = _parent._x + (((_root.activehex._x + (_root.activehex._width / 2)) - _parent._x) / 10);
_parent._y = _parent._y + (((_root.activehex._y + (_root.activehex._height / 2)) - _parent._y) / 10);
} else {
_parent._x = _parent._x + ((_root.mouse._x - _parent._x) / 4);
_parent._y = _parent._y + ((_root.mouse._y - _parent._y) / 4);
}
this.coloured.gotoAndStop(_root.colour);
if (_root.amounttocollect > 0) {
if (_root.collected >= _root.amounttocollect) {
ak = random(2);
sl = random(20);
if (ak == 1) {
if (sl == 1) {
_root.passsound.start(0, 0);
} else {
_root.passsound2.start(0, 0);
}
} else if (sl == 1) {
_root.soundpass.start(0, 0);
} else {
_root.soundpass2.start(0, 0);
}
_root.dest = _root._currentframe + 1;
_root.transit.play();
if (_root._currentframe < 70) {
if (_root.levelsunlocked < ((_root._currentframe - 3) / 2)) {
_root.levelsunlocked = (_root._currentframe - 3) / 2;
}
}
this.play();
_root.collected = 0;
}
}
}
onClipEvent (load) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
Instance of Symbol 290 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
if (_root.clearall == 2) {
_root.clearall = 0;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.testing = 1;
_root.dest = 72;
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 807 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
if (_root.clearall == 2) {
_root.clearall = 0;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.clearall = 2;
_root.transitsound.start(0, 0);
}
}
Symbol 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 2
stop();
Symbol 811 MovieClip Frame 11
stop();
Symbol 812 MovieClip Frame 1
stop();
Instance of Symbol 811 MovieClip in Symbol 812 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe == 72) {
_parent.gotoAndStop(2);
}
}
onClipEvent (load) {
tstatus = 0;
touchedyet = 0;
spacedyet = 0;
numberedyet = 0;
greenyet = 0;
_parent.tstatus = 1;
}
onClipEvent (enterFrame) {
if (_parent.tstatus == undefined) {
_parent.tstatus = 1;
}
if (_root.testing == 3) {
_parent.tstatus = _parent.istatus;
trace(_parent.tstatus);
gotoAndStop(_parent.tstatus);
}
if (_root.clearall == 2) {
gotoAndStop (1);
_parent.tstatus = _currentframe;
}
if (Key.isDown(1)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (touchedyet == 0) {
if (_currentframe == 1) {
gotoAndStop (2);
_parent.tstatus = _currentframe;
touchedyet = 1;
} else {
gotoAndStop (1);
_parent.tstatus = _currentframe;
touchedyet = 1;
}
}
}
} else {
touchedyet = 0;
}
if (Key.isDown(65) || (Key.isDown(4))) {
if (_root.mouse.hitTest(this.hitbox)) {
if (greenyet == 0) {
if (_currentframe != 12) {
gotoAndStop (12);
_parent.tstatus = _currentframe;
greenyet = 1;
}
}
} else {
greenyet = 0;
}
}
if (Key.isDown(32)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (spacedyet == 0) {
if (_currentframe != 11) {
gotoAndStop (11);
_parent.tstatus = _currentframe;
spacedyet = 1;
}
}
} else {
spacedyet = 0;
}
}
if (Key.isDown(49)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 3) {
gotoAndStop (3);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(50)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 4) {
gotoAndStop (4);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(51)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 5) {
gotoAndStop (5);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(52)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 6) {
gotoAndStop (6);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(53)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 7) {
gotoAndStop (7);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(54)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 8) {
gotoAndStop (8);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(55)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 9) {
gotoAndStop (9);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
if (Key.isDown(56)) {
if (_root.mouse.hitTest(this.hitbox)) {
if (numberedyet == 0) {
if (_currentframe != 10) {
gotoAndStop (10);
_parent.tstatus = _currentframe;
numberedyet = 1;
}
}
} else {
numberedyet = 0;
}
}
}
Symbol 812 MovieClip Frame 2
stop();
Instance of Symbol 446 MovieClip in Symbol 812 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root._currentframe == 71) {
_parent.gotoAndStop(1);
}
}
onClipEvent (load) {
startingalpha = _parent._alpha;
}
onClipEvent (enterFrame) {
if (_parent.istatus == undefined) {
_parent.istatus = 1;
}
if (_root.resetnow == 2) {
this.gotoAndStop(1);
}
if (_root.resetnow == 3) {
this.gotoAndStop(1);
if (_parent.istatus == 2) {
this.gotoAndStop(2);
}
if (_parent.istatus == 12) {
this.gotoAndStop(4);
}
if (_parent.istatus == 3) {
this.gotoAndStop(6);
}
if (_parent.istatus == 4) {
this.gotoAndStop(8);
}
if (_parent.istatus == 5) {
this.gotoAndStop(10);
}
if (_parent.istatus == 6) {
this.gotoAndStop(12);
}
if (_parent.istatus == 7) {
this.gotoAndStop(14);
}
if (_parent.istatus == 8) {
this.gotoAndStop(19);
}
if (_parent.istatus == 9) {
this.gotoAndStop(21);
}
if (_parent.istatus == 10) {
this.gotoAndStop(23);
}
if (_parent.istatus == 11) {
_root.amounttocollect = _root.amounttocollect + 1;
this.gotoAndStop(16);
}
if (_currentframe != 1) {
_root.amounttocollect = _root.amounttocollect + 1;
}
if (_root.moregamesbutton.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2), true)) {
_parent._alpha = 0;
} else {
_parent._alpha = _root.alphastate;
}
}
}
Instance of Symbol 290 MovieClip in Symbol 820 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
if (_root.clearall == 2) {
_root.clearall = 0;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 71;
_root.transit.play();
}
}
Instance of Symbol 290 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
if (_root.clearall == 2) {
_root.clearall = 0;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.testing = 0;
_root.dest = 75;
_root.transit.play();
}
}
Symbol 839 MovieClip Frame 6
stop();
Instance of Symbol 838 MovieClip in Symbol 839 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.beatlvl.tileg.tiletemplate.colour);
}
Symbol 840 MovieClip Frame 1
stop();
Instance of Symbol 839 MovieClip in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(9) + 1);
}
Symbol 854 MovieClip Frame 1
stop();
Instance of Symbol 687 MovieClip in Symbol 854 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 687 MovieClip in Symbol 854 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.transitsound.start(0, 0);
_parent.play();
}
}
Instance of Symbol 841 MovieClip "icontemplate" in Symbol 854 MovieClip Frame 1
onClipEvent (load) {
colour = random(9) + 1;
}
Symbol 854 MovieClip Frame 2
if (_root.enablestuff == 2) {
com.newgrounds.API.unlockMedal("Make a level");
}
Symbol 854 MovieClip Frame 3
var newleveldata = new String();
_root.newleveldata = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((("0#" + _root.tile1) + "#") + _root.tile2) + "#") + _root.tile3) + "#") + _root.tile4) + "#") + _root.tile5) + "#") + _root.tile6) + "#") + _root.tile7) + "#") + _root.tile8) + "#") + _root.tile9) + "#") + _root.tile10) + "#") + _root.tile11) + "#") + _root.tile12) + "#") + _root.tile13) + "#") + _root.tile14) + "#") + _root.tile15) + "#") + _root.tile16) + "#") + _root.tile17) + "#") + _root.tile18) + "#") + _root.tile19) + "#") + _root.tile20) + "#") + _root.tile21) + "#") + _root.tile22) + "#") + _root.tile23) + "#") + _root.tile24) + "#") + _root.tile25) + "#") + _root.tile26) + "#") + _root.tile27) + "#") + _root.tile28) + "#") + _root.tile29) + "#") + _root.tile30) + "#") + _root.tile31) + "#") + _root.tile32) + "#") + _root.tile33) + "#") + _root.tile34) + "#") + _root.tile35) + "#") + _root.tile36) + "#") + _root.tile37) + "#") + _root.tile38) + "#") + _root.tile39) + "#") + _root.tile40) + "#") + _root.tile41) + "#") + _root.tile42) + "#") + _root.tile43) + "#") + _root.tile44) + "#") + _root.tile45) + "#") + _root.tile46) + "#") + _root.tile47) + "#") + _root.tile48) + "#") + _root.tile49) + "#") + _root.tile50) + "#") + _root.tile51) + "#") + _root.tile52) + "#") + _root.tile53) + "#") + _root.tile54) + "#") + _root.tile55) + "#") + _root.tile56) + "#") + _root.tile57) + "#") + _root.tile58) + "#") + _root.tile59) + "#") + _root.tile60) + "#") + _root.tile61) + "#") + _root.tile62) + "#") + _root.tile63) + "#") + _root.tile64) + "#") + _root.tile65) + "#") + _root.tile66) + "#") + _root.tile67) + "#") + _root.tile68) + "#") + _root.tile69) + "#") + _root.tile70) + "#") + _root.tile71) + "#") + _root.tile72) + "#") + _root.tile73) + "#") + _root.tile74) + "#") + _root.tile75) + "#") + _root.tile76) + "#") + _root.tile77) + "#") + _root.tile78) + "#") + _root.tile79) + "#") + _root.tile80) + "#") + _root.tile81) + "#") + _root.tile82) + "#") + _root.tile83) + "#") + _root.tile84) + "#") + _root.tile85) + "#") + _root.tile86) + "#") + _root.tile87) + "#") + _root.tile88) + "#") + _root.tile89) + "#") + _root.tile90) + "#") + _root.tile91) + "#") + _root.tile92) + "#") + _root.tile93) + "#") + _root.tile94) + "#") + _root.tile95) + "#") + _root.tile96) + "#") + _root.tile97) + "#") + _root.tile98) + "#") + _root.tile99) + "#") + _root.tile100) + "#") + _root.tile101) + "#") + _root.tile102) + "#") + _root.tile103) + "#") + _root.tile104) + "#") + _root.tile105) + "#") + _root.tile106) + "#") + _root.tile107) + "#") + _root.tile108) + "#") + _root.tile109) + "#") + _root.tile110) + "#") + _root.tile111) + "#") + _root.tile112) + "#") + _root.tile113) + "#") + _root.tile114) + "#") + _root.tile115) + "#") + _root.tile116) + "#") + _root.tile117) + "#") + _root.tile118) + "#") + _root.tile119) + "#") + _root.tile120) + "#") + _root.tile121) + "#") + _root.tile122) + "#") + _root.tile123) + "#") + _root.tile124) + "#") + _root.tile125) + "#") + _root.tile126) + "#") + _root.tile127) + "#") + _root.tile128) + "#") + _root.tile129) + "#") + _root.tile130) + "#") + _root.tile131) + "#") + _root.tile132) + "#") + _root.tile133) + "#") + _root.tile134) + "#") + _root.tile135) + "#") + _root.tile136) + "#") + _root.tile137) + "#") + _root.tile138) + "#") + _root.tile139) + "#") + _root.tile140) + "#") + _root.tile141) + "#") + _root.tile142) + "#") + _root.tile143) + "#") + _root.tile144) + "#") + _root.tile145) + "#") + _root.tile146) + "#") + _root.tile147) + "#") + _root.tile148) + "#") + _root.tile149) + "#") + _root.tile150) + "#") + _root.tile151) + "#") + _root.tile152) + "#") + _root.tile153) + "#") + _root.tile154) + "#") + _root.tile155) + "#") + _root.tile156) + "#") + _root.tile157) + "#") + _root.tile158) + "#") + _root.tile159) + "#") + _root.tile160) + "#") + _root.tile161) + "#") + _root.tile162) + "#") + _root.tile163) + "#") + _root.tile164) + "#") + _root.tile165) + "#") + _root.tile166) + "#") + _root.tile167) + "#") + _root.tile168) + "#") + _root.tile169) + "#") + _root.tile170) + "#") + _root.tile171) + "#") + _root.tile172) + "#") + _root.tile173) + "#") + _root.tile174) + "#") + _root.tile175) + "#") + _root.tile176) + "#") + _root.tile177) + "#") + _root.tile178) + "#") + _root.tile179) + "#") + _root.tile180) + "#") + _root.tile181) + "#") + _root.tile182) + "#") + _root.tile183) + "#") + _root.tile184) + "#") + _root.tile185) + "#") + _root.tile186) + "#") + _root.tile187) + "#") + _root.tile188) + "#") + _root.tile189) + "#") + _root.tile190) + "#") + _root.tile191) + "#") + _root.tile192) + "#") + _root.tile193) + "#") + _root.tile194) + "#") + _root.tile195) + "#") + _root.tile196) + "#") + _root.tile197) + "#") + _root.tile198) + "#") + _root.tile199) + "#") + _root.tile200) + "#") + _root.tile201) + "#") + _root.tile202) + "#") + _root.tile203) + "#") + _root.tile204) + "#") + _root.tile205) + "#") + _root.tile206) + "#") + _root.tile207) + "#") + _root.tile208) + "#") + _root.tile209) + "#") + _root.tile210) + "#") + _root.tile211) + "#") + _root.tile212) + "#") + _root.tile213) + "#") + _root.tile214) + "#") + _root.tile215) + "#") + _root.tile216) + "#") + _root.tile217) + "#") + _root.tile218) + "#") + _root.tile219) + "#") + _root.tile220) + "#") + _root.tile221) + "#") + _root.tile222) + "#") + _root.tile223) + "#") + _root.tile224) + "#") + _root.tile225) + "#") + _root.tile226) + "#") + _root.tile227) + "#") + _root.tile228) + "#") + _root.tile229) + "#") + _root.tile230) + "#") + _root.tile231) + "#") + _root.tile232) + "#") + _root.tile233) + "#") + _root.tile234) + "#") + _root.tile235) + "#") + _root.tile236) + "#") + _root.tile237) + "#") + _root.tile238) + "#") + _root.tile239) + "#") + _root.tile240) + "#") + _root.tile241) + "#") + _root.tile242) + "#") + _root.tile243) + "#") + _root.tile244) + "#") + _root.tile245) + "#") + _root.tile246) + "#") + _root.tile247) + "#") + _root.tile248) + "#") + _root.tile249) + "#") + _root.tile250) + "#") + _root.tile251) + "#") + _root.tile252) + "#") + _root.tile253) + "#") + _root.tile254) + "#") + _root.tile255) + "#") + _root.tile256) + "#") + _root.tile257) + "#") + _root.tile258) + "#") + _root.beatlvl.lvlsubmitanimation.lvlnameholder.lvlname;
trace(_root.newleveldata);
_root.levelsmade = _root.levelsmade + 1;
_root.savefile.data.levelsmade = _root.levelsmade;
_root.savefile.flush();
_parent.lvlsubmitanimation.play();
var file = com.newgrounds.API.createSaveFile("Levels");
file.__set__name(_root.beatlvl.lvlsubmitanimation.lvlnameholder.lvlname);
if (_root.partytheme == 2) {
file.__set__description(("By " + _root.playername) + ", who's beat the game!");
} else if (isNaN(_root.playername)) {
file.__set__description("From someone who's on level " + Math.round(_root.levelsunlocked));
} else {
file.__set__description((("By " + _root.playername) + ", who's on level ") + Math.round(_root.levelsunlocked));
}
file.__set__data(_root.newleveldata);
var icon = _root.beatlvl.tileg.icontemplate;
file.createIcon(icon);
file.save();
Symbol 854 MovieClip Frame 11
stop();
Instance of Symbol 881 MovieClip "line2" in Symbol 884 MovieClip Frame 1
onClipEvent (load) {
gogo = random(3);
gotoAndStop(gogo + 1);
}
Symbol 888 MovieClip Frame 1
if (isNaN(_root.playername) || (_root.playername == undefined)) {
lvlname = "My Level";
} else {
lvlname = _root.playername + "'s level";
}
Symbol 907 MovieClip Frame 1
stop();
Instance of Symbol 888 MovieClip "lvlnameholder" in Symbol 907 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if ((this.lvlname == "My Level") || (_root.playername + "'s level")) {
if (asd != 2) {
this.lvlname = "";
asd = 2;
}
}
}
}
Symbol 907 MovieClip Frame 21
stop();
var compressedcode = LZW.compress(_root.newleveldata);
codeholder.urlvlcode = compressedcode;
Instance of Symbol 682 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 826 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.texts.line2._currentframe < 3) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 826 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.texts.line2._currentframe < 3) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 682 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 72;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Symbol 912 MovieClip Frame 1
lvlnameholder.lvlname = _root.playername + "'s level";
Instance of Symbol 682 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Symbol 926 MovieClip Frame 1
stop();
var icon;
icon = null;
Symbol 926 MovieClip Frame 7
var file;
if (((!icon) && (file)) && (iconContainer)) {
icon = file.attachIcon(iconContainer);
}
Symbol 944 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
stop();
mouseChildren = false;
Symbol 953 MovieClip Frame 1
function setListItems(listItems) {
if (!listItems) {
_listItems = [];
} else {
_listItems = listItems.concat();
}
var _local1 = 0;
while (_local1 < _listItems.length) {
if (typeof(_listItems[_local1]) == "string") {
_listItems[_local1] = {label:_listItems[_local1], data:_listItems[_local1]};
}
_local1++;
}
setSelectedIndex(0);
}
function setSelectedItem(data) {
var _local1 = 0;
while (_local1 < _listItems.length) {
if (_listItems[_local1].data == data) {
setSelectedIndex(_local1);
return(undefined);
}
_local1++;
}
}
function setSelectedIndex(i) {
if (i < _listItems.length) {
_selectedItem = _listItems[i];
if (currentItem && (currentItem.label)) {
currentItem.label.text = _selectedItem.label;
}
}
}
function hideList() {
_listDown = false;
gotoAndStop ("sortUP");
}
function _onListClick() {
_listDown = !_listDown;
if (_listDown) {
gotoAndStop ("sortDOWN");
} else {
gotoAndStop ("sortUP");
}
}
stop();
if (listButton) {
listButton.onRelease = _onListClick;
}
if (currentItem) {
currentItem.onRelease = _onListClick;
if (currentItem.label) {
if (_selectedItem) {
currentItem.label.text = _selectedItem.label;
} else {
currentItem.label.text = "";
}
}
}
var _listItems;
var _listDown;
var _selectedItem;
if (!_listItems) {
_listItems = [];
}
Symbol 953 MovieClip Frame 10
function _onItemClick() {
var _local3 = MovieClip(this);
if (_local3.item) {
setSelectedItem(_local3.item.data);
}
if (((_local3 && _parent) && (_parent instanceof MovieClip)) && (MovieClip(_parent)._onListChange)) {
MovieClip(_parent)._onListChange(_local3.item);
}
}
var i = 0;
var itemClip = item0;
while (itemClip) {
if (i < _listItems.length) {
itemClip.item = _listItems[i];
itemClip.label.text = _listItems[i].label;
itemClip.onRelease = _onItemClick;
} else {
itemClip._visible = false;
}
i++;
itemClip = this["item" + i];
}
Symbol 972 MovieClip [SaveBrowser] Frame 1
function loadFiles() {
_saveGroup = com.newgrounds.API.getSaveGroup(saveGroupName);
if (!_saveGroup) {
if (!com.newgrounds.API.__get__saveGroups()[0]) {
com.newgrounds.Logger.logError("No save group created for this movie. You can create save groups on your API Settings page at http://www.newgrounds.com/account/flashapi");
gotoAndPlay ("error");
return(undefined);
}
_saveGroup = com.newgrounds.API.__get__saveGroups()[0];
this.saveGroupName = _saveGroup.name;
com.newgrounds.Logger.logWarning(("No save group name set in the Save Browser component. Defaulting to save group \"" + _saveGroup.__get__name()) + "\".");
}
if (_customQuery) {
_currentQuery = _customQuery.clone();
} else {
_currentQuery = com.newgrounds.API.createSaveQuery(saveGroupName);
}
if (!_currentQuery) {
gotoAndPlay ("error");
return(undefined);
}
_currentQuery.__set__resultsPerPage(_numIcons);
_currentQuery.__set__page(_page);
_currentQuery.addEventListener(com.newgrounds.APIEvent.QUERY_COMPLETE, _onQueryComplete);
if (sortField) {
_currentQuery.sortOn(sortField, sortDescending);
}
if (pageText) {
pageText.text = "Page " + _currentQuery.__get__page();
}
if (orderText) {
orderText.text = (("Sorted by " + _sortLabel) + ", ") + (sortDescending ? "Descending" : "Ascending");
}
if (orderButton) {
if (sortDescending) {
orderButton.gotoAndStop("sortDESC");
} else {
orderButton.gotoAndStop("sortASC");
}
}
_loading = true;
gotoAndStop ("loading");
_clearFiles();
_currentQuery.execute();
}
function setQuery(query) {
_customQuery = query;
}
function _onQueryComplete(event) {
_loading = false;
if (listBox) {
listBox.mouseChildren = true;
}
if (event.__get__success()) {
_currentQuery.removeEventListener(com.newgrounds.APIEvent.QUERY_COMPLETE, _onQueryComplete);
if (_currentQuery.__get__files().length) {
gotoAndStop ("files");
} else {
gotoAndPlay ("noResults");
}
} else {
gotoAndPlay ("error");
}
}
function _onPageClick() {
var _local2 = this;
if (_saveGroup && (!_loading)) {
if (_local2 == prevButton) {
_page--;
} else {
_page++;
}
if (_page < 1) {
_page = 1;
}
loadFiles();
}
}
function _onListChange(selection) {
if (_saveGroup) {
sortField = selection.data;
_sortLabel = selection.label;
loadFiles();
}
}
function _onOrderClick() {
sortDescending = !sortDescending;
loadFiles();
}
function _clearFiles() {
if (!iconList) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _numIcons) {
var _local1 = iconList["icon" + _local2];
if (_local1) {
_local1.gotoAndStop("empty");
_local1.file = null;
_local1.onRelease = null;
_local1.onRollOver = null;
_local1.onRollOut = null;
_local1.enabled = false;
}
_local2++;
}
}
var title;
var saveGroupName;
var sortField;
var customSortField;
var sortDescending;
if (!title) {
title = "Select a file:";
}
if (customSortField) {
sortField = customSortField;
} else if (!sortField) {
sortField = com.newgrounds.SaveQuery.CREATED_ON;
}
var _sortLabel = "Date";
var _saveGroup;
var _currentQuery;
var _customQuery;
var _loading;
var _numIcons = 12;
var _page = 1;
var _initialized;
_x = int(_x);
_y = int(_y);
if (titleText) {
titleText.text = title;
}
if (prevButton) {
prevButton.onRelease = _onPageClick;
}
if (nextButton) {
nextButton.onRelease = _onPageClick;
}
if (orderButton) {
orderButton.onRelease = _onOrderClick;
}
gotoAndPlay ("error");
loadFiles();
Symbol 972 MovieClip [SaveBrowser] Frame 2
if (listBox) {
listBox.hideList();
var items = [{label:"Date", data:com.newgrounds.SaveQuery.CREATED_ON}, {label:"Name", data:com.newgrounds.SaveQuery.FILE_NAME}, {label:"Views", data:com.newgrounds.SaveQuery.FILE_VIEWS}];
var i;
i = 0;
while (i < _saveGroup.keys.length) {
items.push(_saveGroup.keys[i].name);
i++;
}
i = 0;
while (i < _saveGroup.ratings.length) {
items.push(_saveGroup.ratings[i].name);
i++;
}
listBox.setListItems(items);
listBox.setSelectedItem(sortField);
}
Symbol 972 MovieClip [SaveBrowser] Frame 10
function _onFileOver() {
var _local6 = MovieClip(this);
if ((!_loading) && (_local6)) {
var _local2 = com.newgrounds.SaveFile(_local6.file);
_local6.gotoAndStop("fileHover");
if (((!_loading) && (infoBox)) && (_saveGroup)) {
infoBox._visible = true;
if (infoBox.filenameText) {
infoBox.filenameText.text = _local2.name;
}
var _local3 = ("by " + _local2.__get__authorName()) + newline;
_local3 = _local3 + (_local2.__get__description() + newline);
var _local7 = 0;
for (var _local4 in _local2.__get__keys()) {
_local3 = _local3 + (((_local4 + ": ") + _local2.__get__keys()[_local4]) + newline);
}
for (var _local5 in _local2.__get__ratings()) {
_local3 = _local3 + (((_local5 + ": ") + _local2.__get__ratings()[_local5]) + newline);
}
if (infoBox.infoText) {
infoBox.infoText.text = _local3;
}
}
}
}
function _onFileOut() {
var _local2 = MovieClip(this);
if ((!_loading) && (_local2)) {
_local2.gotoAndStop("file");
}
if (infoBox) {
infoBox._visible = false;
}
}
function _onFileClick() {
var _local2 = MovieClip(this);
if (((!_loading) && (_local2)) && (_local2.file)) {
_loading = true;
_local2.gotoAndStop("file");
_local2.file.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, _onFileLoaded);
gotoAndStop ("loading");
_local2.file.load();
}
}
function _onFileLoaded(event) {
_loading = false;
gotoAndStop ("files");
}
if (infoBox) {
infoBox.startDrag(true);
infoBox.enabled = false;
infoBox._visible = false;
}
if (iconList && (_currentQuery)) {
i = 0;
while (i < _numIcons) {
var iconClip = iconList["icon" + i];
var file = com.newgrounds.SaveFile(_currentQuery.files[i]);
if ((iconClip && (file)) && (!iconClip.file)) {
iconClip.file = file;
iconClip.gotoAndStop("file");
iconClip.onRollOver = _onFileOver;
iconClip.onRollOut = _onFileOut;
iconClip.onRelease = _onFileClick;
iconClip.enabled = true;
}
i++;
}
}
Symbol 972 MovieClip [SaveBrowser] Frame 20
function _onReloadClick() {
loadFiles();
}
if (reloadButton) {
reloadButton.onRelease = _onReloadClick;
}
Symbol 972 MovieClip [SaveBrowser] Frame 28
stop();
Symbol 972 MovieClip [SaveBrowser] Frame 29
if (reloadButton) {
reloadButton.onRelease = _onReloadClick;
}
Symbol 972 MovieClip [SaveBrowser] Frame 37
stop();
Instance of Symbol 681 MovieClip "highlighter" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colour);
}
Symbol 992 MovieClip Frame 1
inputdata = "Paste level code here";
Symbol 1008 MovieClip Frame 1
lvlnameholder.lvlname = _root.playername + "'s level";
Instance of Symbol 682 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 72;
_root.transitsound.start(0, 0);
_root.transit.play();
if (asd != 2) {
_root.decompressthis = _parent.inputlvldata.inputdata;
_root.decompressedcode = LZW.decompress(_root.decompressthis);
trace("Code you've entered: " + _root.decompressthis);
trace("Decompressed to: " + _root.decompressedcode);
var LevelDataArray = new Array();
LevelDataArray = _root.decompressedcode.split("#");
_root.tile1 = LevelDataArray[1];
_root.tile2 = LevelDataArray[2];
_root.tile3 = LevelDataArray[3];
_root.tile4 = LevelDataArray[4];
_root.tile5 = LevelDataArray[5];
_root.tile6 = LevelDataArray[6];
_root.tile7 = LevelDataArray[7];
_root.tile8 = LevelDataArray[8];
_root.tile9 = LevelDataArray[9];
_root.tile10 = LevelDataArray[10];
_root.tile11 = LevelDataArray[11];
_root.tile12 = LevelDataArray[12];
_root.tile13 = LevelDataArray[13];
_root.tile14 = LevelDataArray[14];
_root.tile15 = LevelDataArray[15];
_root.tile16 = LevelDataArray[16];
_root.tile17 = LevelDataArray[17];
_root.tile18 = LevelDataArray[18];
_root.tile19 = LevelDataArray[19];
_root.tile20 = LevelDataArray[20];
_root.tile21 = LevelDataArray[21];
_root.tile22 = LevelDataArray[22];
_root.tile23 = LevelDataArray[23];
_root.tile24 = LevelDataArray[24];
_root.tile25 = LevelDataArray[25];
_root.tile26 = LevelDataArray[26];
_root.tile27 = LevelDataArray[27];
_root.tile28 = LevelDataArray[28];
_root.tile29 = LevelDataArray[29];
_root.tile30 = LevelDataArray[30];
_root.tile31 = LevelDataArray[31];
_root.tile32 = LevelDataArray[32];
_root.tile33 = LevelDataArray[33];
_root.tile34 = LevelDataArray[34];
_root.tile35 = LevelDataArray[35];
_root.tile36 = LevelDataArray[36];
_root.tile37 = LevelDataArray[37];
_root.tile38 = LevelDataArray[38];
_root.tile39 = LevelDataArray[39];
_root.tile40 = LevelDataArray[40];
_root.tile41 = LevelDataArray[41];
_root.tile42 = LevelDataArray[42];
_root.tile43 = LevelDataArray[43];
_root.tile44 = LevelDataArray[44];
_root.tile45 = LevelDataArray[45];
_root.tile46 = LevelDataArray[46];
_root.tile47 = LevelDataArray[47];
_root.tile48 = LevelDataArray[48];
_root.tile49 = LevelDataArray[49];
_root.tile50 = LevelDataArray[50];
_root.tile51 = LevelDataArray[51];
_root.tile52 = LevelDataArray[52];
_root.tile53 = LevelDataArray[53];
_root.tile54 = LevelDataArray[54];
_root.tile55 = LevelDataArray[55];
_root.tile56 = LevelDataArray[56];
_root.tile57 = LevelDataArray[57];
_root.tile58 = LevelDataArray[58];
_root.tile59 = LevelDataArray[59];
_root.tile60 = LevelDataArray[60];
_root.tile61 = LevelDataArray[61];
_root.tile62 = LevelDataArray[62];
_root.tile63 = LevelDataArray[63];
_root.tile64 = LevelDataArray[64];
_root.tile65 = LevelDataArray[65];
_root.tile66 = LevelDataArray[66];
_root.tile67 = LevelDataArray[67];
_root.tile68 = LevelDataArray[68];
_root.tile69 = LevelDataArray[69];
_root.tile70 = LevelDataArray[70];
_root.tile71 = LevelDataArray[71];
_root.tile72 = LevelDataArray[72];
_root.tile73 = LevelDataArray[73];
_root.tile74 = LevelDataArray[74];
_root.tile75 = LevelDataArray[75];
_root.tile76 = LevelDataArray[76];
_root.tile77 = LevelDataArray[77];
_root.tile78 = LevelDataArray[78];
_root.tile79 = LevelDataArray[79];
_root.tile80 = LevelDataArray[80];
_root.tile81 = LevelDataArray[81];
_root.tile82 = LevelDataArray[82];
_root.tile83 = LevelDataArray[83];
_root.tile84 = LevelDataArray[84];
_root.tile85 = LevelDataArray[85];
_root.tile86 = LevelDataArray[86];
_root.tile87 = LevelDataArray[87];
_root.tile88 = LevelDataArray[88];
_root.tile89 = LevelDataArray[89];
_root.tile90 = LevelDataArray[90];
_root.tile91 = LevelDataArray[91];
_root.tile92 = LevelDataArray[92];
_root.tile93 = LevelDataArray[93];
_root.tile94 = LevelDataArray[94];
_root.tile95 = LevelDataArray[95];
_root.tile96 = LevelDataArray[96];
_root.tile97 = LevelDataArray[97];
_root.tile98 = LevelDataArray[98];
_root.tile99 = LevelDataArray[99];
_root.tile100 = LevelDataArray[100];
_root.tile101 = LevelDataArray[101];
_root.tile102 = LevelDataArray[102];
_root.tile103 = LevelDataArray[103];
_root.tile104 = LevelDataArray[104];
_root.tile105 = LevelDataArray[105];
_root.tile106 = LevelDataArray[106];
_root.tile107 = LevelDataArray[107];
_root.tile108 = LevelDataArray[108];
_root.tile109 = LevelDataArray[109];
_root.tile110 = LevelDataArray[110];
_root.tile111 = LevelDataArray[111];
_root.tile112 = LevelDataArray[112];
_root.tile113 = LevelDataArray[113];
_root.tile114 = LevelDataArray[114];
_root.tile115 = LevelDataArray[115];
_root.tile116 = LevelDataArray[116];
_root.tile117 = LevelDataArray[117];
_root.tile118 = LevelDataArray[118];
_root.tile119 = LevelDataArray[119];
_root.tile120 = LevelDataArray[120];
_root.tile121 = LevelDataArray[121];
_root.tile122 = LevelDataArray[122];
_root.tile123 = LevelDataArray[123];
_root.tile124 = LevelDataArray[124];
_root.tile125 = LevelDataArray[125];
_root.tile126 = LevelDataArray[126];
_root.tile127 = LevelDataArray[127];
_root.tile128 = LevelDataArray[128];
_root.tile129 = LevelDataArray[129];
_root.tile130 = LevelDataArray[130];
_root.tile131 = LevelDataArray[131];
_root.tile132 = LevelDataArray[132];
_root.tile133 = LevelDataArray[133];
_root.tile134 = LevelDataArray[134];
_root.tile135 = LevelDataArray[135];
_root.tile136 = LevelDataArray[136];
_root.tile137 = LevelDataArray[137];
_root.tile138 = LevelDataArray[138];
_root.tile139 = LevelDataArray[139];
_root.tile140 = LevelDataArray[140];
_root.tile141 = LevelDataArray[141];
_root.tile142 = LevelDataArray[142];
_root.tile143 = LevelDataArray[143];
_root.tile144 = LevelDataArray[144];
_root.tile145 = LevelDataArray[145];
_root.tile146 = LevelDataArray[146];
_root.tile147 = LevelDataArray[147];
_root.tile148 = LevelDataArray[148];
_root.tile149 = LevelDataArray[149];
_root.tile150 = LevelDataArray[150];
_root.tile151 = LevelDataArray[151];
_root.tile152 = LevelDataArray[152];
_root.tile153 = LevelDataArray[153];
_root.tile154 = LevelDataArray[154];
_root.tile155 = LevelDataArray[155];
_root.tile156 = LevelDataArray[156];
_root.tile157 = LevelDataArray[157];
_root.tile158 = LevelDataArray[158];
_root.tile159 = LevelDataArray[159];
_root.tile160 = LevelDataArray[160];
_root.tile161 = LevelDataArray[161];
_root.tile162 = LevelDataArray[162];
_root.tile163 = LevelDataArray[163];
_root.tile164 = LevelDataArray[164];
_root.tile165 = LevelDataArray[165];
_root.tile166 = LevelDataArray[166];
_root.tile167 = LevelDataArray[167];
_root.tile168 = LevelDataArray[168];
_root.tile169 = LevelDataArray[169];
_root.tile170 = LevelDataArray[170];
_root.tile171 = LevelDataArray[171];
_root.tile172 = LevelDataArray[172];
_root.tile173 = LevelDataArray[173];
_root.tile174 = LevelDataArray[174];
_root.tile175 = LevelDataArray[175];
_root.tile176 = LevelDataArray[176];
_root.tile177 = LevelDataArray[177];
_root.tile178 = LevelDataArray[178];
_root.tile179 = LevelDataArray[179];
_root.tile180 = LevelDataArray[180];
_root.tile181 = LevelDataArray[181];
_root.tile182 = LevelDataArray[182];
_root.tile183 = LevelDataArray[183];
_root.tile184 = LevelDataArray[184];
_root.tile185 = LevelDataArray[185];
_root.tile186 = LevelDataArray[186];
_root.tile187 = LevelDataArray[187];
_root.tile188 = LevelDataArray[188];
_root.tile189 = LevelDataArray[189];
_root.tile190 = LevelDataArray[190];
_root.tile191 = LevelDataArray[191];
_root.tile192 = LevelDataArray[192];
_root.tile193 = LevelDataArray[193];
_root.tile194 = LevelDataArray[194];
_root.tile195 = LevelDataArray[195];
_root.tile196 = LevelDataArray[196];
_root.tile197 = LevelDataArray[197];
_root.tile198 = LevelDataArray[198];
_root.tile199 = LevelDataArray[199];
_root.tile200 = LevelDataArray[200];
_root.tile201 = LevelDataArray[201];
_root.tile202 = LevelDataArray[202];
_root.tile203 = LevelDataArray[203];
_root.tile204 = LevelDataArray[204];
_root.tile205 = LevelDataArray[205];
_root.tile206 = LevelDataArray[206];
_root.tile207 = LevelDataArray[207];
_root.tile208 = LevelDataArray[208];
_root.tile209 = LevelDataArray[209];
_root.tile210 = LevelDataArray[210];
_root.tile211 = LevelDataArray[211];
_root.tile212 = LevelDataArray[212];
_root.tile213 = LevelDataArray[213];
_root.tile214 = LevelDataArray[214];
_root.tile215 = LevelDataArray[215];
_root.tile216 = LevelDataArray[216];
_root.tile217 = LevelDataArray[217];
_root.tile218 = LevelDataArray[218];
_root.tile219 = LevelDataArray[219];
_root.tile220 = LevelDataArray[220];
_root.tile221 = LevelDataArray[221];
_root.tile222 = LevelDataArray[222];
_root.tile223 = LevelDataArray[223];
_root.tile224 = LevelDataArray[224];
_root.tile225 = LevelDataArray[225];
_root.tile226 = LevelDataArray[226];
_root.tile227 = LevelDataArray[227];
_root.tile228 = LevelDataArray[228];
_root.tile229 = LevelDataArray[229];
_root.tile230 = LevelDataArray[230];
_root.tile231 = LevelDataArray[231];
_root.tile232 = LevelDataArray[232];
_root.tile233 = LevelDataArray[233];
_root.tile234 = LevelDataArray[234];
_root.tile235 = LevelDataArray[235];
_root.tile236 = LevelDataArray[236];
_root.tile237 = LevelDataArray[237];
_root.tile238 = LevelDataArray[238];
_root.tile239 = LevelDataArray[239];
_root.tile240 = LevelDataArray[240];
_root.tile241 = LevelDataArray[241];
_root.tile242 = LevelDataArray[242];
_root.tile243 = LevelDataArray[243];
_root.tile244 = LevelDataArray[244];
_root.tile245 = LevelDataArray[245];
_root.tile246 = LevelDataArray[246];
_root.tile247 = LevelDataArray[247];
_root.tile248 = LevelDataArray[248];
_root.tile249 = LevelDataArray[249];
_root.tile250 = LevelDataArray[250];
_root.tile251 = LevelDataArray[251];
_root.tile252 = LevelDataArray[252];
_root.tile253 = LevelDataArray[253];
_root.tile254 = LevelDataArray[254];
_root.tile255 = LevelDataArray[255];
_root.tile256 = LevelDataArray[256];
_root.tile257 = LevelDataArray[257];
_root.tile258 = LevelDataArray[258];
_root.newname = LevelDataArray[259];
trace("Info extracted, name is: " + _root.newname);
asd = 2;
}
}
}
Instance of Symbol 974 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 74;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 974 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 74;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 974 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 71;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 974 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 71;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 682 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 3;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 989 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (load) {
trace(_root.levelsmade);
this.lvlscounter = _root.levelsmade;
}
Instance of Symbol 992 MovieClip "inputlvldata" in Symbol 1008 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
if (asd != 2) {
this.inputdata = "";
asd = 2;
}
}
}
Instance of Symbol 287 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 287 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.getURL("http://spikedmath.com/math-games/", "_BLANK");
}
}
Instance of Symbol 682 MovieClip in Symbol 1014 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.highlighter._alpha < 5) {
this.highlighter.colanimation.gotoAndStop(1);
}
if (_root.mouse.hitTest(this)) {
if (this.highlighter._alpha < 100) {
if (this.highlighter.colanimation._currentframe == 1) {
this.highlighter.colanimation.play();
}
this.highlighter._alpha = this.highlighter._alpha + 10;
}
} else if (this.highlighter._alpha > 0) {
this.highlighter._alpha = this.highlighter._alpha - 10;
}
}
onClipEvent (mouseDown) {
if (_root.mouse.hitTest(this)) {
_root.dest = 75;
_root.transitsound.start(0, 0);
_root.transit.play();
}
}
Instance of Symbol 1013 MovieClip "lvlnameholder" in Symbol 1014 MovieClip Frame 1
onClipEvent (load) {
this.lvlname = _root.newname;
}
Symbol 1045 MovieClip [VoteBar] Frame 1
function start() {
if (saveFile) {
_rating = saveFile.__get__group().getRating(ratingName);
if (!ratingName) {
if (saveFile.__get__group() && (saveFile.__get__group().__get__ratings().length)) {
_rating = saveFile.__get__group().__get__ratings()[0];
ratingName = _rating.name;
com.newgrounds.Logger.logWarning(("No rating name set in Vote Bar. Defaulting to \"" + ratingName) + "\".");
} else {
com.newgrounds.Logger.logError(("The save group \"" + saveFile.__get__group()) + "\" has no ratings to vote on. You can create ratings on you API Settings page at http://www.newgrounds.com/account/flashapi");
return(undefined);
}
}
gotoAndStop ("ballot");
}
}
function _onNewFile(event) {
if (event.__get__success()) {
saveFile = event.data;
start();
}
}
var title;
var fileMode;
var ratingName;
var saveFile;
var _numButtons = 6;
var _rating;
_x = int(_x);
_y = int(_y);
if (!title) {
title = "Submit your vote!";
}
if (!fileMode) {
fileMode = "Use Current File";
}
if (fileMode == "Use Current File") {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, _onNewFile);
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_SAVED, _onNewFile);
if (com.newgrounds.SaveFile.__get__currentFile()) {
saveFile = com.newgrounds.SaveFile.currentFile;
start();
}
}
Symbol 1045 MovieClip [VoteBar] Frame 2
function _onVoteClick() {
var _local3 = this;
if (!voteMenu) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _numButtons) {
if (_local3 == voteMenu["voteButton" + _local2]) {
break;
}
_local2++;
}
if (_local2 < _numButtons) {
var _local4 = _rating.minimum + ((_local2 * (_rating.maximum - _rating.minimum)) / (_numButtons - 1));
if (_local4 == 6) {
_local4 = 5;
}
saveFile.sendVote(ratingName, _local4);
gotoAndStop ("voting");
saveFile.addEventListener(com.newgrounds.APIEvent.VOTE_COMPLETE, _onVoteComplete);
}
}
function _onVoteComplete(event) {
if (event.__get__success()) {
gotoAndPlay ("voteComplete");
} else {
gotoAndStop ("hidden");
}
}
if (!saveFile) {
gotoAndStop ("hidden");
}
if (titleText) {
titleText.text = title;
}
if (voteMenu) {
var i = 0;
while (i < _numButtons) {
var voteButton = voteMenu["voteButton" + i];
if (voteButton) {
voteButton.onRelease = _onVoteClick;
}
i++;
}
}
Symbol 1045 MovieClip [VoteBar] Frame 59
stop();