Frame 1
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.thepoxbox.com", "_top");
}
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) {
}
}
function load_game() {
savefile = SharedObject.getLocal("savegame");
if (savefile.data.mm1 != undefined) {
_root.mmm1 = savefile.data.mm1;
_root.mmm2 = savefile.data.mm2;
_root.mmm3 = savefile.data.mm3;
_root.mmm4 = savefile.data.mm4;
_root.mmm5 = savefile.data.mm5;
_root.mmm6 = savefile.data.mm6;
_root.mmm7 = savefile.data.mm7;
_root.mmm8 = savefile.data.mm8;
_root.mmm9 = savefile.data.mm9;
_root.mmm10 = savefile.data.mm10;
_root.mmm11 = savefile.data.mm11;
_root.mmm12 = savefile.data.mm12;
_root.instructions = savefile.data.instructionss;
return(true);
}
return(false);
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2011 poxpower", deadClick);
var mySiteLink = new ContextMenuItem("www.thepoxbox.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
_root.totalbubbles = 0;
_root.maxbubbles = 300;
_root.bubblecounter = 0;
_root.totalbubbles2 = 0;
_root.maxbubbles2 = 3000;
_root.bubblecounter2 = 0;
_root.highqual = true;
_root.medqual = false;
_root.lowqual = false;
_root.autolevel = false;
urls_allowed = ["www.flashgamelicense.com", "www.flashgamelicense.com", "www.thepoxbox.com"];
sitelock(urls_allowed);
_root.mmm1 = savefile.data.mm1;
_root.mmm2 = savefile.data.mm2;
_root.mmm3 = savefile.data.mm3;
_root.mmm4 = savefile.data.mm4;
_root.mmm5 = savefile.data.mm5;
_root.mmm6 = savefile.data.mm6;
_root.mmm7 = savefile.data.mm7;
_root.mmm8 = savefile.data.mm8;
_root.mmm9 = savefile.data.mm9;
_root.mmm10 = savefile.data.mm10;
_root.mmm11 = savefile.data.mm11;
_root.mmm12 = savefile.data.mm12;
_root.instructions = savefile.data.instructionss;
var savefile;
savefile = SharedObject.getLocal("savegame");
mochi.as2.MochiServices.connect("935c98011faec445");
Instance of Symbol 79 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.bubblecounter++;
if ((_root.bubblecounter == 2) && (_root.totalbubbles < _root.maxbubbles)) {
tar4 = _root.loaderthing.bawbbles.attachMovie("bubbleanim", "bubble", -(random(1000) + 2));
_root.bubblerandomizer = random(3) + 1;
tar4._x = random(700);
tar4._y = random(500) + 100;
tar4._xscale = tar4._xscale * _root.bubblerandomizer;
tar4._yscale = tar4._yscale * _root.bubblerandomizer;
_root.bubblerandomizer = 0;
_root.bubblecounter = 0;
_root.totalbubbles = _root.totalbubbles + 1;
tar4.onEnterFrame = function () {
if (this._y < 100) {
this._xscale = this._xscale * 0.5;
}
};
}
_root.bubblecounter2++;
if ((_root.bubblecounter2 == 1) && (_root.totalbubbles2 < _root.maxbubbles2)) {
tar4 = _root.loaderthing.attachMovie("bubbleanim", "bubble", -(random(1000) + 2));
_root.bubblerandomizer2 = random(3) + 1;
tar4._x = _root.loaderthing.bubblestream._x + random(30);
tar4._y = _root.loaderthing.bubblestream._y + random(10);
tar4._xscale = tar4._xscale * _root.bubblerandomizer2;
tar4._yscale = tar4._yscale * _root.bubblerandomizer2;
_root.bubblerandomizer2 = 0;
_root.bubblecounter2 = 0;
_root.totalbubbles2 = _root.totalbubbles2 + 1;
tar4.onEnterFrame = function () {
};
}
}
Instance of Symbol 150 MovieClip "loaderthing" in Frame 1
onClipEvent (enterFrame) {
_root.bt = _root.getBytesTotal();
_root.bl = _root.getBytesLoaded();
_root.perc = (_root.bl / _root.bt) * 100;
_root.loaderthing.gotoAndStop(Math.round(_root.perc));
}
Instance of Symbol 77 MovieClip [APIConnector] in Frame 1
//component parameters
onClipEvent (construct) {
adType = "Simple";
apiId = "28844:dVXCq9Y0";
connectorType = "Invisible";
debugMode = "Simulate Host Blocked";
encryptionKey = "gUc6NmVqf8iipXOm5ttFKMYprfgdBU9d";
movieVersion = "";
redirectOnHostBlocked = true;
redirectOnNewVersion = true;
}
Frame 28
Instance of Symbol 355 MovieClip "shooter" in Frame 28
onClipEvent (enterFrame) {
_root.randompick5 = random(5000);
if (((_root.randompick5 == 10) && (!_root.aquarium)) && (_root.hazards)) {
_root.randompick5 = 0;
barrl = _root.backgrounda.attachMovie("barreller", ("barel" + random(10)) + 1, random(1000) - 10000);
barrl._y = _root.backgrounda.shooter._y - 150;
barrl._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
}
Frame 43
gotoAndPlay ("soundcode");
Frame 44
play();
Frame 54
stop();
Frame 65
function playEffect(sname) {
sname.start();
sname.setVolume(bgvolume);
}
_root.reminder = true;
_root.reminder2 = true;
this.createEmptyMovieClip("sfx", 1);
this.createEmptyMovieClip("bgloop", 0);
_root.bgvolume = 100;
_root.soundoff = false;
bitefx = new Sound(sfx);
bitefx.attachSound("bitefx");
unicron = new Sound(sfx);
unicron.attachSound("unicron");
unicron = new Sound(sfx);
unicron.attachSound("unicron");
vomit = new Sound(sfx);
vomit.attachSound("vomit");
whip = new Sound(sfx);
whip.attachSound("whip");
netclose = new Sound(sfx);
netclose.attachSound("netclose");
barrelsound = new Sound(sfx);
barrelsound.attachSound("barrelsound");
selectdifficulty = new Sound(sfx);
selectdifficulty.attachSound("selectdifficulty");
doorshut = new Sound(sfx);
doorshut.attachSound("doorshut");
bubbles = new Sound(sfx);
bubbles.attachSound("bubbles");
dundun = new Sound(sfx);
dundun.attachSound("dundun");
ocean = new Sound(sfx);
ocean.attachSound("ocean");
diff1 = new Sound(sfx);
diff1.attachSound("diff1");
diff2 = new Sound(sfx);
diff2.attachSound("diff2");
diff3 = new Sound(sfx);
diff3.attachSound("diff3");
splash = new Sound(sfx);
splash.attachSound("splash");
underwater = new Sound(sfx);
underwater.attachSound("underwater");
sonar = new Sound(sfx);
sonar.attachSound("sonar");
powerupwoop = new Sound(sfx);
powerupwoop.attachSound("powerupwoop");
powerupwoop2 = new Sound(sfx);
powerupwoop2.attachSound("powerupwoop2");
pauseess = new Sound(sfx);
pauseess.attachSound("pauseess");
slam3 = new Sound(sfx);
slam3.attachSound("slam3");
ching = new Sound(sfx);
ching.attachSound("ching");
burp = new Sound(sfx);
burp.attachSound("burp");
shieldhit = new Sound(sfx);
shieldhit.attachSound("shieldhit");
outro = new Sound(sfx);
outro.attachSound("outro");
menububble = new Sound(sfx);
menububble.attachSound("menububble");
levelupp = new Sound(sfx);
levelupp.attachSound("levelupp");
invisibleee = new Sound(sfx);
invisibleee.attachSound("invisibleee");
evolve = new Sound(sfx);
evolve.attachSound("evolve");
dundun = new Sound(sfx);
dundun.attachSound("dundun");
biteending = new Sound(sfx);
biteending.attachSound("biteending");
biggong = new Sound(sfx);
biggong.attachSound("biggong");
var fishEaten = new Array();
i = 0;
while (i < 76) {
fishEaten[i] = false;
i++;
}
play();
Frame 74
gotoAndStop ("main");
Frame 75
stop();
Frame 87
stop();
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
_root.invincible = false;
_root.totalbubbles = 0;
_root.bubblezzz = true;
_root.maxbubbles = 300;
_root.invisible = false;
_root.barrelspin = true;
_root.qualitybtn._visible = true;
_root.soundbtn._visible = true;
_root.musicbtn._visible = true;
_root.bubblecounter = 0;
_root.aquarium = false;
_root.keyone = 49;
_root.keym = 77;
_root.keymusic = false;
_root.keytwo = 50;
_root.keythree = 51;
_root.counter = 0;
_root.spacekey = 32;
_root.pkey = 80;
_root.keyquality = 81;
_root.arrowright = 39;
_root.arrowup = 38;
_root.arrowleft = 37;
_root.arrowdown = 40;
if (!_root.morphfishcheat) {
fish = _root.attachMovie("evolvo1", "fish", -10000);
_root.fish._width = 38.9;
_root.fish._height = 17.9;
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._visible = false;
}
if (_root.morphfishcheat) {
fish = _root.attachMovie("badfish" + _root.morphnumber, "fish", -10000);
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._xscale = _root.fish._xscale * -1;
_root.fish._visible = false;
}
if (_root.tryagain) {
_root.gotoAndStop("game");
_root.tryagain = false;
}
_root.exitbtn.unloadMovie();
_root.exitbtn.removeMovieClip();
Instance of Symbol 79 MovieClip in Frame 87
onClipEvent (enterFrame) {
_root.bubblecounter++;
if ((_root.bubblecounter == 2) && (_root.totalbubbles < _root.maxbubbles)) {
tar4 = _root.attachMovie("bubbleanim", "bubble", -(random(1000) + 2));
_root.bubblerandomizer = random(3) + 1;
tar4._x = random(700);
tar4._y = random(500) + 100;
tar4._xscale = tar4._xscale * _root.bubblerandomizer;
tar4._yscale = tar4._yscale * _root.bubblerandomizer;
_root.bubblerandomizer = 0;
_root.bubblecounter = 0;
_root.totalbubbles = _root.totalbubbles + 1;
tar4.onEnterFrame = function () {
if (this._y < 100) {
this._xscale = this._xscale * 0.5;
}
};
}
if (_root.soundoff) {
stopAllSounds();
_root.loopstarted1 = false;
}
if (!_root.soundoff) {
if (!_root.loopstarted1) {
_root.loop1 = new Sound(_root.bgloop);
_root.loop1.attachSound("cobaltsphere");
_root.loop1.start(0, 999);
_root.loop1.setVolume(_root.bgvolume);
_root.loopstarted1 = true;
}
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (!_root.soundoff)) {
_root.soundoff = true;
_root.keymusic = true;
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (_root.soundoff)) {
_root.soundoff = false;
_root.keymusic = true;
}
if (!Key.isDown(_root.keym)) {
_root.keymusic = false;
}
}
Frame 95
stop();
randdd = 0;
effcv = 1;
_root.labelz = true;
_root.finalending = false;
_root.fish._visible = true;
_root.fisheatentotal = 0;
_root.megaballs = false;
_root.powerupwoopstarted = false;
_root.hazards = true;
_root.netisclosed = false;
_root.hookedonline = 0;
_root.netishere = false;
_root.fish.swapDepths(_root.backgrounda.getNextHighestDepth());
_root.waves.swapDepths(_root.fish.getNextHighestDepth());
_root.scores.swapDepths(_root.waves.getNextHighestDepth());
_root.supersize.swapDepths(_root.scores.getNextHighestDepth());
_root.invinciballs.swapDepths(_root.supersize.getNextHighestDepth());
_root.pausescreen.swapDepths(_root.invinciballs.getNextHighestDepth());
_root.levelupscreen.swapDepths(_root.pausescreen.getNextHighestDepth());
_root.jaws.swapDepths(_root.levelupscreen.getNextHighestDepth());
_root.endpop.swapDepths(_root.jaws.getNextHighestDepth());
_root.window.swapDepths(_root.endpop.getNextHighestDepth());
_root.caged.swapDepths(_root.window.getNextHighestDepth());
_root.netted.swapDepths(_root.caged.getNextHighestDepth());
_root.gameisover = false;
if (_root.aquarium) {
_root.exitbtn.swapDepths(_root.window.getNextHighestDepth());
}
if (!_root.aquarium) {
_root.exitbtn.unloadMovie();
_root.exitbtn.removeMovieClip();
}
if (!_root.morphfishcheat) {
_root.cheater = false;
}
_root.morphfishcheat = false;
if (_root.reminder2 && (_root.aquarium)) {
_root.window.gotoAndStop(2);
}
_root.endless = false;
_root.fishname = 0;
_root.badfishdepth = 0;
_root.leftright = 0;
_root.faceright = true;
_root.faceleft = false;
_root.totalfish = 0;
_root.bubblecounter = 0;
_root.fishsize = 0;
_root.bubblecount = 0;
_root.labelcounter = 0;
_root.bubblecountage = 0;
_root.splashcount = 0;
_root.deathcounter == 0;
_root.ysaved = 0;
_root.xsaved = 0;
_root.heightsave = 0;
_root.widthsave = 0;
_root.sparklecount = 0;
_root.sparklerandomizer = 0;
_root.sparklecountage = 0;
_root.points = 0;
_root.speed = 1;
_root.agility = 1;
_root.fishfriction = 0.96;
_root.fishvelocity = 0.9;
_root.maxdepth = 480;
_root.mindepth = 65;
_root.maxfish = 15;
_root.maxenemyspeed = 3;
_root.growthrate = 0.02;
_root.fishsizes = 300;
_root.spawnrate = 5;
_root.death = "arggle";
_root.pausee = false;
_root.nextlevel = 10;
_root.level = 1;
_root.evolution = 1;
_root.bgmax = 550;
var diversity = 0;
_root.scores.bluebar._visible = false;
_root.scores.redbar._visible = false;
_root.score = 0;
_root.shield = false;
_root.blurbtext = "nothing";
_root.labels = true;
_root.fish.xvel = 0;
_root.fish.yvel = 0;
_root.fish.xvel2 = 0;
_root.fish.yvel2 = 0;
Instance of Symbol 1937 MovieClip in Frame 95
onClipEvent (enterFrame) {
function fisheat(who) {
if (_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) {
if (((((((((((!_root.pausee) && (!_root.invisible)) && (who.body.hitTest(_root.fish))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width)))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body1.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body2.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body3.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body4.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body5.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body6.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) or ((((!_root.pausee) && (!_root.invisible)) && (who.body7.hitTest(_root.fish.bodies1))) && ((who.bb._height + who.bb._width) > (0.6 * (_root.fish._height + _root.fish._width))))) {
if (((_root.evolution == 4) && (!_root.shield)) && (_root.scores.redbar.redbar2._x == 29)) {
_root.scores.redbar.redbar2._x = -200;
if (!_root.soundoff) {
_root.playEffect(_root.shieldhit);
}
}
if ((_root.evolution == 4) && (!_root.shield)) {
_root.death = "saved";
} else if (!_root.invincible) {
_root.death = "dead";
who._xscale = who._xscale * 1.5;
who._yscale = who._yscale * 1.5;
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.jaws.gotoAndStop("chomp");
if (!_root.soundoff) {
_root.playEffect(_root.burp);
}
}
}
if ((((((((((!_root.pausee) && (who.body.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height)))) or (((!_root.pausee) && (who.body1.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body2.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body3.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body4.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body5.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body6.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) or (((!_root.pausee) && (who.body7.hitTest(_root.fish.mouth))) && ((who.bb._width + who.bb._height) <= (0.6 * (_root.fish._width + _root.fish._height))))) {
_root.fish.body1.gotoAndPlay("eat");
if (!_root.aquarium) {
if (!_root.soundoff) {
_root.playEffect(_root.bitefx);
}
}
_root.fisheatentotal = _root.fisheatentotal + 1;
_root.fishEaten[who.fishkind + 1] = true;
_root.diversity = 0;
i = 0;
while (i < _root.fishEaten.length) {
if (_root.fishEaten[i] == true) {
_root.diversity++;
}
i++;
}
_root.score = _root.points * (_root.diversity + 1);
if (_root.level <= 23) {
_root.nextlevel = _root.nextlevel - 1;
}
_root.growage = 1 + (_root.growthrate * (1 / ((_root.fish._width + _root.fish._height) / (who._width + who._height))));
if (_root.growage <= 1) {
_root.growage = 1;
}
if (_root.growage >= 2) {
_root.growage = 2;
}
_root.fish._yscale = _root.fish._yscale * _root.growage;
_root.fish._xscale = _root.fish._xscale * _root.growage;
_root.points = _root.points + Math.round(who._height + who._width);
if (((who._x > _root.fish.mouth._x) && (_root.faceleft)) && (!Key.isDown(_root.arrowleft))) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = false;
_root.faceright = true;
}
if (((who._x < _root.fish.mouth._x) && (_root.faceright)) && (!Key.isDown(_root.arrowright))) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = true;
_root.faceright = false;
}
_root.fishsize = who._width;
who.unloadMovie();
who.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
}
}
if (_root.diversity == 76) {
_root.mmm9 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.fisheatentotal > 199) {
_root.mmm11 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
_root.deathcounter = _root.deathcounter + 1;
if (_root.deathcounter >= 30) {
_root.death = "";
_root.deathcounter = 0;
}
if (_root.evolution > 3) {
_root.scores.redbar._visible = true;
}
if (_root.evolution > 2) {
_root.scores.bluebar._visible = true;
}
if (_root.evolution > 1) {
_root.bgmax = 2065;
}
if (_root.cheater) {
_root.points = 0;
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
_root.cheatactive._alpha = 100;
}
if (!_root.cheater) {
_root.cheatactive._alpha = 0;
}
var fishPoint = (new flash.geom.Point(_root.fish._x, _root.fish._y));
_root.backgrounda.globalToLocal(fishPoint);
if (!_root.pausee) {
_root.fish._x = _root.fish._x + _root.fish.xvel;
_root.fish._y = _root.fish._y + _root.fish.yvel;
_root.fish._x = _root.fish._x - _root.fish.xvel2;
_root.fish._y = _root.fish._y - _root.fish.yvel2;
_root.fish.xvel = _root.fish.xvel * _root.fishfriction;
_root.fish.yvel = _root.fish.yvel * _root.fishfriction;
_root.fish.xvel2 = _root.fish.xvel2 * _root.fishfriction;
_root.fish.yvel2 = _root.fish.yvel2 * _root.fishfriction;
var absxvel = Math.abs(_root.fish.xvel);
var absxvel2 = Math.abs(_root.fish.xvel2);
var absyvel = Math.abs(_root.fish.yvel);
var absyvel2 = Math.abs(_root.fish.yvel2);
if (absxvel < 0.5) {
_root.fish.xvel = 0;
}
if (absyvel < 0.5) {
_root.fish.yvel = 0;
}
if (absxvel2 < 0.5) {
_root.fish.xvel2 = 0;
}
if (absyvel2 < 0.5) {
_root.fish.yvel2 = 0;
}
if (Key.isDown(_root.arrowleft) && (!_root.faceleft)) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = true;
_root.faceright = false;
}
if (Key.isDown(_root.arrowright) && (!_root.faceright)) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = false;
_root.faceright = true;
}
if (Key.isDown(_root.arrowleft)) {
_root.fish._x = _root.fish._x - _root.speed;
if (_root.evolution == 1) {
_root.fish.gotoAndStop("move");
}
if (_root.evolution == 2) {
_root.fish.gotoAndStop("move2");
}
if (_root.evolution == 3) {
_root.fish.gotoAndStop("move3");
}
if (_root.evolution == 4) {
_root.fish.gotoAndStop("move4");
}
_root.fish.xvel2 = _root.fish.xvel2 + _root.fishvelocity;
}
if (Key.isDown(_root.arrowup)) {
_root.fish._y = _root.fish._y - _root.speed;
if (_root.evolution == 1) {
_root.fish.gotoAndStop("move");
}
if (_root.evolution == 2) {
_root.fish.gotoAndStop("move2");
}
if (_root.evolution == 3) {
_root.fish.gotoAndStop("move3");
}
if (_root.evolution == 4) {
_root.fish.gotoAndStop("move4");
}
_root.fish.yvel2 = _root.fish.yvel2 + _root.fishvelocity;
}
if (Key.isDown(_root.arrowdown)) {
_root.fish._y = _root.fish._y + _root.speed;
if (_root.evolution == 1) {
_root.fish.gotoAndStop("move");
}
if (_root.evolution == 2) {
_root.fish.gotoAndStop("move2");
}
if (_root.evolution == 3) {
_root.fish.gotoAndStop("move3");
}
if (_root.evolution == 4) {
_root.fish.gotoAndStop("move4");
}
_root.fish.yvel = _root.fish.yvel + _root.fishvelocity;
}
if (Key.isDown(_root.arrowright)) {
_root.fish._x = _root.fish._x + _root.speed;
if (_root.evolution == 1) {
_root.fish.gotoAndStop("move");
}
if (_root.evolution == 2) {
_root.fish.gotoAndStop("move2");
}
if (_root.evolution == 3) {
_root.fish.gotoAndStop("move3");
}
if (_root.evolution == 4) {
_root.fish.gotoAndStop("move4");
}
_root.fish.xvel = _root.fish.xvel + _root.fishvelocity;
}
if ((((!Key.isDown(_root.arrowright)) && (!Key.isDown(_root.arrowleft))) && (!Key.isDown(_root.arrowup))) && (!Key.isDown(_root.arrowdown))) {
if (_root.evolution == 1) {
_root.fish.gotoAndStop("idle");
}
if (_root.evolution == 2) {
_root.fish.gotoAndStop("idle2");
}
if (_root.evolution == 3) {
_root.fish.gotoAndStop("idle3");
}
if (_root.evolution == 4) {
_root.fish.gotoAndStop("idle4");
}
}
}
if (_root.fish._x > (700 + (_root.fish._width * 0.8))) {
_root.fish._x = -(_root.fish._width * 0.8);
}
if (_root.fish._x < (-(_root.fish._width * 0.8))) {
_root.fish._x = 700 + (_root.fish._width * 0.8);
}
if (((_root.fish._y < 200) && (_root.backgrounda._y >= 500)) && (!(_root.backgrounda._y === _root.bgmax))) {
_root.fish._y = 200;
_root.backgrounda._y = _root.backgrounda._y + _root.fish.yvel2;
}
if ((_root.fish._y < (_root.mindepth + (_root.fish._height * 0.25))) && (_root.backgrounda._y == _root.bgmax)) {
_root.fish._y = _root.mindepth + (_root.fish._height * 0.25);
_root.fish.yvel2 = 0;
_root.fish.yvel = 0;
}
if (_root.backgrounda._y >= (_root.bgmax + 0.3)) {
_root.backgrounda._y = _root.bgmax;
}
if ((_root.backgrounda._y >= 2065) && (_root.fish._y < 101)) {
_root.fish._y = _root.fish._y - _root.fish.yvel2;
}
if ((_root.backgrounda._y > 500) && (_root.fish._y > 300)) {
_root.fish._y = 300;
_root.backgrounda._y = _root.backgrounda._y - _root.fish.yvel;
}
if ((_root.fish._y > (_root.maxdepth - (_root.fish._height * 0.4))) && (_root.backgrounda._y == 500)) {
_root.fish._y = _root.maxdepth - (_root.fish._height * 0.4);
_root.fish.yvel2 = 0;
_root.fish.yvel = 0;
}
if (_root.backgrounda._y < 500) {
_root.backgrounda._y = 500;
}
_root.counter++;
_root.badfishdepth = 0;
_root.leftright = random(2);
if (_root.counter >= _root.spawnrate) {
_root.badfishdepth = fishPoint.y + (random(500) - 250);
}
if (_root.badfishdepth < -1990) {
_root.badfishkind = 76;
}
if ((_root.badfishdepth >= -1990) && (_root.badfishdepth <= -1200)) {
_root.badfishkind = random(18) + 58;
}
if ((_root.badfishdepth >= -1200) && (_root.badfishdepth <= -550)) {
_root.badfishkind = random(45) + 13;
}
if ((_root.badfishdepth >= -550) && (_root.badfishdepth <= -55)) {
randdd = random(6);
if (randdd == 1) {
_root.badfishkind = 5;
}
if (randdd == 0) {
_root.badfishkind = 7;
}
if (randdd > 1) {
_root.badfishkind = random(10) + 3;
}
}
if (_root.badfishdepth >= -55) {
_root.badfishkind = random(2) + 1;
}
if (((((_root.leftright == 1) && (_root.counter >= _root.spawnrate)) && (_root.badfishdepth < -50)) && (_root.badfishdepth > -2000)) && (_root.totalfish <= _root.maxfish)) {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
_root.newfishscale = random(_root.fishsizes);
tar._yscale = tar._yscale + _root.newfishscale;
tar.fishkind = _root.badfishkind;
tar._xscale = tar._xscale + (_root.newfishscale * 0.6);
tar._x = 250 + tar._width;
tar.bb.xscale = tar.bb.xscale + (_root.newfishscale * 0.6);
tar.bb.yscale = tar.bb.yscale + _root.newfishscale;
tar._y = _root.badfishdepth;
fishlabel(this);
if (tar._y < -1000) {
tar._y = tar._y + (tar._height / 2);
}
if (tar._y > -500) {
tar._y = tar._y - (tar._height / 2);
}
tar.onEnterFrame = function () {
if (_root.labelz) {
if ((tar.bb._height + tar.bb._width) < (0.59 * (_root.fish._height + _root.fish._width))) {
tar.el._alpha = 100;
} else {
tar.el._alpha = 0;
}
}
if (!_root.labelz) {
tar.el._alpha = 0;
}
if (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if (!_root.pausee) {
this._x = this._x - this.speed;
}
fisheat(this);
if (this._x < (-300 - this._width)) {
this.unloadMovie();
this.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
};
_root.fishname = _root.fishname + 1;
_root.counter = 0;
_root.totalfish = _root.totalfish + 1;
}
if (((((_root.leftright == 0) && (_root.counter >= _root.spawnrate)) && (_root.badfishdepth < -50)) && (_root.badfishdepth > -2000)) && (_root.totalfish <= _root.maxfish)) {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
_root.newfishscale = random(_root.fishsizes);
tar._yscale = tar._yscale + _root.newfishscale;
tar.fishkind = _root.badfishkind;
tar._xscale = tar._xscale + (_root.newfishscale * 0.6);
tar.bb.xscale = tar.bb.xscale + (_root.newfishscale * 0.6);
tar.bb.yscale = tar.bb.yscale + _root.newfishscale;
tar._xscale = tar._xscale * -1;
tar.el._xscale = tar.el._xscale * -1;
tar._x = -300 - tar._width;
tar._y = _root.badfishdepth;
if (tar._y < -1000) {
tar._y = tar._y + (tar._height / 2);
}
if (tar._y > -500) {
tar._y = tar._y - (tar._height / 2);
}
tar.onEnterFrame = function () {
if (_root.labelz) {
if ((this.bb._height + this.bb._width) < (0.6 * (_root.fish._height + _root.fish._width))) {
this.el._alpha = 100;
} else {
this.el._alpha = 0;
}
}
if (!_root.labelz) {
this.el._alpha = 0;
}
if (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if (!_root.pausee) {
this._x = this._x + this.speed;
}
fisheat(this);
if (this._x > (350 + this._width)) {
this.unloadMovie();
this.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
};
_root.fishname = _root.fishname + 1;
_root.counter = 0;
_root.totalfish = _root.totalfish + 1;
}
if ((Key.isDown(_root.pkey) && (!_root.pausee)) && (!_root.keydownpause)) {
_root.pausescreen.gotoAndPlay("pause");
_root.pausee = true;
_root.keydownpause = true;
}
if ((Key.isDown(_root.pkey) && (_root.pausee)) && (!_root.keydownpause)) {
_root.pausescreen.gotoAndPlay("unpause");
_root.pausee = false;
_root.keydownpause = true;
}
if (!Key.isDown(_root.pkey)) {
_root.keydownpause = false;
}
if (_root.bubblezzz) {
if (!_root.aquarium) {
_root.bubblecount2 = _root.bubblecount2 + 1;
_root.bubblecountage = _root.bubblecountage + 1;
if (((Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowright)) or Key.isDown(_root.arrowup)) or Key.isDown(_root.arrowdown)) {
if (_root.bubblecount2 >= 3) {
bloop = _root.backgrounda.attachMovie("bubbleanim", "bubble2" + _root.bubblecountage, -(random(1000) + 1000));
_root.bubblerandomizer2 = random(3) + 1;
if (_root.faceright) {
bloop._x = (fishPoint.x + random(20)) - (_root.fish._width / 3);
}
if (!_root.faceright) {
bloop._x = (fishPoint.x + random(20)) + (_root.fish._width / 3);
}
bloop._y = fishPoint.y + random(20);
bloop._xscale = bloop._xscale * _root.bubblerandomizer2;
bloop._yscale = bloop._yscale * _root.bubblerandomizer2;
_root.bubblerandomizer2 = 0;
_root.bubblecount2 = 0;
bloop.onEnterFrame = function () {
if (this._y < -1800) {
this._xscale = this._xscale * 0.5;
}
};
}
}
}
}
_root.waves._y = _root.backgrounda._y - 1895;
if (!_root.aquarium) {
_root.splashcount = _root.splashcount + 1;
if (Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowright)) {
if ((_root.splashcount >= 3) && ((_root.fish._y - (_root.fish._height / 2)) < 70)) {
splash = _root.backgrounda.attachMovie("splash1", "splash", -(random(1000) + 2000));
splash._x = fishPoint.x;
splash._y = -2000;
_root.splashcount = 0;
}
}
}
if (!_root.aquarium) {
_root.dirtcount = _root.dirtcount + 1;
if (Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowright)) {
if ((_root.dirtcount >= 3) && ((_root.fish._y + (_root.fish._height / 2)) > 470)) {
splash = _root.backgrounda.attachMovie("dirt" + (random(3) + 1), "dirt", -(random(1000) + 2000));
_root.splashscale = random(6) / 5;
splash._x = fishPoint.x;
splash._y = -10;
splash._yscale = splash._yscale * _root.splashscale;
splash._xscale = splash._xscale * _root.splashscale;
_root.dirtcount = 0;
_root.splashscale = 0;
}
}
}
if (!_root.autolevel) {
if ((_root.nextlevel <= 0) && (_root.level <= 23)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = 10 + (_root.level * 2);
_root.levelupscreen.gotoAndStop("levelup");
}
if ((_root.nextlevel <= 0) && (_root.level == 23)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = "N/A";
_root.levelupscreen.gotoAndStop("levelup");
}
if (_root.level == 24) {
_root.nextlevel = "N/A";
}
if (!Key.isDown(_root.keyone)) {
_root.keyonee = false;
}
if (!Key.isDown(_root.keytwo)) {
_root.keytwoo = false;
}
if (!Key.isDown(_root.keythree)) {
_root.keythreee = false;
}
}
if (_root.autolevel) {
if ((_root.nextlevel <= 0) && (_root.level <= 23)) {
_root.level = _root.level + 1;
_root.nextlevel = 10 + (_root.level * 2);
if ((_root.level == 2) or (_root.level == 3)) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Agility +1!";
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
if (_root.level == 4) {
if (_root.evolution < 4) {
_root.evolution = _root.evolution + 1;
}
_root.bgmax = 2065;
if (_root.evolution < 4) {
_root.blurbtext = "level up! You Evolved!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10001);
bla._y = fishPoint.y - 40;
bla._x = fishPoint.x;
if (_root.evolution < 4) {
_root.blurbtext = "You can swim to the surface!";
}
if (!_root.soundoff) {
_root.playEffect(_root.evolve);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if ((_root.level == 5) or (_root.level == 6)) {
_root.speed = _root.speed + 1;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Speed +1!";
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
if (_root.level == 7) {
if (_root.agility < 7) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Agility +1!";
}
if (_root.agility > 7) {
_root.speed = _root.speed + 1;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Speed +1!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
if (_root.level == 8) {
if (_root.evolution < 4) {
_root.evolution = _root.evolution + 1;
}
_root.scores.bluebar._visible = true;
if (_root.evolution < 4) {
_root.blurbtext = "level up! You Evolved!";
}
if (!_root.soundoff) {
_root.playEffect(_root.evolve);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10001);
bla._y = fishPoint.y - 40;
bla._x = fishPoint.x;
if (_root.evolution < 4) {
_root.blurbtext = "Press SPACE to become Invisible!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (((_root.level == 9) or (_root.level == 10)) or (_root.level == 11)) {
if (_root.agility < 7) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Agility +1!";
}
if (_root.agility > 7) {
_root.speed = _root.speed + 1;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Speed +1!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
if (_root.level == 12) {
if (_root.evolution < 4) {
_root.evolution = _root.evolution + 1;
}
_root.scores.redbar._visible = true;
if (!_root.soundoff) {
_root.playEffect(_root.evolve);
}
if (_root.evolution < 4) {
_root.blurbtext = "level up! You Evolved!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10001);
bla._y = fishPoint.y - 40;
bla._x = fishPoint.x;
if (_root.evolution < 4) {
_root.blurbtext = "Shield protects you from one hit!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (_root.level > 13) {
if (_root.agility < 7) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Agility +1!";
}
if (_root.agility > 7) {
_root.speed = _root.speed + 1;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.blurbtext = "level up! Speed +1!";
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
}
if ((_root.nextlevel <= 0) && (_root.level == 23)) {
_root.level = _root.level + 1;
_root.nextlevel = "N/A";
_root.blurbtext = "level up!";
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 15;
bla._x = fishPoint.x;
}
if (_root.level == 24) {
_root.nextlevel = "N/A";
}
}
if ((_root.evolution >= 3) && (!_root.pausee)) {
if ((_root.scores.bluebar.bluebar2._x <= 0) && (!_root.invisible)) {
_root.scores.bluebar.bluebar2._x = _root.scores.bluebar.bluebar2._x + 0.5;
}
if (Key.isDown(_root.spacekey) && (_root.scores.bluebar.bluebar2._x > -130)) {
_root.fish._alpha = 20;
if ((!_root.soundoff) && (!_root.invisiblesound)) {
_root.fuckingsound.gotoAndPlay("go");
}
_root.invisible = true;
_root.scores.bluebar.bluebar2._x = _root.scores.bluebar.bluebar2._x - 2;
}
if (!Key.isDown(_root.spacekey)) {
_root.fish._alpha = 100;
_root.invisible = false;
}
if ((_root.scores.bluebar.bluebar2._x <= -130) && (_root.invisible)) {
_root.scores.bluebar.bluebar2._x = -200;
_root.invisible = false;
_root.fish._alpha = 100;
_root.spacekey = 1231;
}
if ((_root.scores.bluebar.bluebar2._x >= -130) && (_root.spacekey == 1231)) {
_root.spacekey = 32;
}
_root.sparklecount = _root.sparklecount + 1;
_root.sparklecountage = _root.sparklecountage + 1;
if (_root.invisible) {
if (_root.sparklecount >= 1) {
blip = _root.backgrounda.attachMovie("sparkle", "sparkle" + _root.sparklecountage, -(random(1000) + 4000));
_root.sparklerandomizer = random(3) + 1;
blip._y = (fishPoint.y + random(40)) - 20;
blip._x = (fishPoint.x + random(40)) - 20;
blip._xscale = blip._xscale * _root.sparklerandomizer;
blip._yscale = blip._yscale * _root.sparklerandomizer;
_root.sparklerandomizer = 0;
_root.sparklecount = 0;
}
}
}
if ((_root.evolution == 4) && (!_root.pausee)) {
if (_root.scores.redbar.redbar2._x <= 28) {
_root.scores.redbar.redbar2._x = _root.scores.redbar.redbar2._x + 1;
}
if (_root.scores.redbar.redbar2._x == 29) {
_root.shield = false;
}
_root.shieldcounter = _root.shieldcounter + 1;
if (((_root.scores.redbar.redbar2._x <= -150) && (_root.shieldcounter >= 4)) && (_root.fish._alpha == 100)) {
_root.fish._alpha = 0;
_root.shieldcounter = 0;
}
if (((_root.scores.redbar.redbar2._x <= -150) && (_root.shieldcounter >= 4)) && (_root.fish._alpha == 0)) {
_root.fish._alpha = 60;
_root.shieldcounter = 0;
}
if (((!_root.invisible) && (_root.scores.redbar.redbar2._x >= -100)) && (_root.scores.redbar.redbar2._x <= 28)) {
_root.fish._alpha = 100;
_root.shield = true;
}
}
if (_root.soundoff) {
stopAllSounds();
_root.loopstarted1 = false;
}
if (!_root.soundoff) {
if (!_root.loopstarted1) {
_root.loop1 = new Sound(_root.bgloop);
_root.loop1.attachSound("cobaltsphere");
_root.loop1.start(0, 999);
_root.loop1.setVolume(_root.bgvolume);
_root.loopstarted1 = true;
}
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (!_root.soundoff)) {
_root.soundoff = true;
_root.keymusic = true;
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (_root.soundoff)) {
_root.soundoff = false;
_root.keymusic = true;
}
if (!Key.isDown(_root.keym)) {
_root.keymusic = false;
}
if (((!_root.endless) && (_root.fish._width >= 1201)) && (!_root.gameisover)) {
stopAllSounds();
_root.endingfader.play();
_root.pausee = true;
_root.keydownpause = true;
_root.gameisover = true;
}
if (_root.aquarium) {
_root.scores._visible = false;
_root.fish._visible = false;
_root.bgmax = 2065;
_root.invisible = true;
_root.labels = false;
_root.pkey = 2321;
_root.musicbtn._visible = false;
_root.pausebtn._visible = false;
_root.qualitybtn._visible = false;
_root.difficultyselect.unloadMovie();
_root.difficultyselect.removeMovieClip();
}
}
Frame 101
stop();
_root.fishnumber = 1;
Frame 108
stop();
Instance of Symbol 79 MovieClip in Frame 108
onClipEvent (enterFrame) {
_root.bubblecounter++;
if ((_root.bubblecounter == 2) && (_root.totalbubbles < _root.maxbubbles)) {
tar4 = _root.jaws.endbubbles.attachMovie("bubbleanim", "bubble", -(random(1000) + 2));
_root.bubblerandomizer = random(3) + 1;
tar4._x = random(700);
tar4._y = random(500) + 100;
tar4._xscale = tar4._xscale * _root.bubblerandomizer;
tar4._yscale = tar4._yscale * _root.bubblerandomizer;
_root.bubblerandomizer = 0;
_root.bubblecounter = 0;
_root.totalbubbles = _root.totalbubbles + 1;
tar4.onEnterFrame = function () {
if (this._y < 100) {
this._xscale = this._xscale * 0.5;
}
};
}
}
Frame 115
stop();
Frame 124
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
_root.invincible = false;
_root.totalbubbles = 0;
_root.maxbubbles = 300;
_root.invisible = false;
_root.qualitybtn._visible = true;
_root.soundbtn._visible = true;
_root.musicbtn._visible = true;
_root.bubblecounter = 0;
_root.aquarium = false;
_root.keyone = 49;
_root.keym = 77;
_root.keymusic = false;
_root.keytwo = 50;
_root.keythree = 51;
_root.counter = 0;
_root.spacekey = 32;
_root.pkey = 80;
_root.keyquality = 81;
_root.arrowright = 39;
_root.arrowup = 38;
_root.arrowleft = 37;
_root.arrowdown = 40;
if (!_root.morphfishcheat) {
fish = _root.attachMovie("evolvo1", "fish", -10000);
_root.fish._width = 38.9;
_root.fish._height = 17.9;
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._visible = false;
}
if (_root.morphfishcheat) {
fish = _root.attachMovie("badfish" + _root.morphnumber, "fish", -10000);
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._xscale = _root.fish._xscale * -1;
_root.fish._visible = false;
}
_root.loopstarted1 = false;
_root.gotoAndStop("game");
Frame 133
stop();
_root.mmm6 = 43;
_root.medalz.gotoAndPlay("medalcheck");
stopAllSounds();
Frame 144
stop();
_root.mmm8 = 43;
_root.medalz.gotoAndPlay("medalcheck");
stopAllSounds();
Frame 155
stop();
stopAllSounds();
Frame 167
stop();
Frame 169
play();
Frame 181
stop();
Frame 209
stop();
Instance of Symbol 79 MovieClip in Frame 209
onClipEvent (enterFrame) {
if (_root.soundoff) {
stopAllSounds();
_root.loopstarted4 = false;
}
if (!_root.soundoff) {
if (!_root.loopstarted4) {
_root.loop4 = new Sound(_root.bgloop);
_root.loop4.attachSound("credits");
_root.loop4.start(0, 999);
_root.loop4.setVolume(_root.bgvolume);
_root.loopstarted4 = true;
}
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (!_root.soundoff)) {
_root.soundoff = true;
_root.keymusic = true;
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (_root.soundoff)) {
_root.soundoff = false;
_root.keymusic = true;
}
if (!Key.isDown(_root.keym)) {
_root.keymusic = false;
}
}
Symbol 8 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 19 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 19 MovieClip [Preloader] Frame 10
function _onPlayClick() {
_root.nextFrame();
_root.play();
_parent._onLoaded();
}
if (playButton) {
playButton.onRelease = _onPlayClick;
playButton.stop();
}
if (autoPlay) {
_onPlayClick(null);
}
Symbol 21 MovieClip [Newgrounds API Classes] Frame 1
#initclip 33
Object.registerClass("Newgrounds API Classes", com.newgrounds.shims.APIShim);
#endinitclip
Symbol 76 MovieClip [FlashAd] Frame 1
#initclip 34
Object.registerClass("FlashAd", com.newgrounds.components.FlashAdBase);
#endinitclip
stop();
Symbol 76 MovieClip [FlashAd] Frame 30
function onPlayClick() {
removeAd();
_visible = false;
}
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
}
Symbol 77 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 76 MovieClip [FlashAd] "ad" in Symbol 77 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
adType = "Video";
apiId = "";
showBorder = true;
}
Symbol 83 MovieClip [bubbleanim] Frame 50
stop();
_root.totalbubbles = -1;
this.unloadMovie();
this.removeMovieClip();
Symbol 84 MovieClip [bubbleanim2] Frame 50
stop();
_root.totalbubbles = _root.totalbubbles - 1;
this.unloadMovie();
this.removeMovieClip();
Symbol 148 Button
on (release) {
_root.gotoAndPlay(26);
}
Symbol 149 MovieClip Frame 28
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 100
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
play();
Symbol 154 MovieClip Frame 20
_root.play();
Symbol 163 Button
on (release) {
getURL ("http://www.thepoxbox.com", "_blank");
}
Symbol 170 Button
on (release) {
getURL ("http://www.thepoxbox.com/what.php?id=meatcake", "_blank");
}
Symbol 179 Button
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=springposter", "_blank");
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 210 MovieClip [medalpopper] Frame 89
this.unloadMovie();
this.removeMovieClip();
Symbol 212 MovieClip [medalpop] Frame 1
stop();
Symbol 212 MovieClip [medalpop] Frame 12
if (((_root.mmm1 > 4) && (_root.savefile.data.mm1 != 1)) && (!_root.cheater)) {
var medal_name = "Evolver";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm1 = 1;
_root.savefile.data.mm1 = 1;
midilz = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz._x = 307;
midilz._y = 510;
midilz.winmedalname = "Evolver";
midilz.winmedaldescription = "Evolve ";
midilz.panel.iconn.gotoAndStop(1);
}
Symbol 212 MovieClip [medalpop] Frame 14
if (((_root.mmm2 > 4) && (_root.savefile.data.mm2 != 1)) && (!_root.cheater)) {
var medal_name = "Easy Going";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm2 = 1;
_root.savefile.data.mm2 = 1;
midilz2 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz2._x = 307;
midilz2._y = 510;
midilz2.winmedalname = "Easy Going";
midilz2.winmedaldescription = "Win the game on EASY.";
midilz2.panel.iconn.gotoAndStop(2);
}
Symbol 212 MovieClip [medalpop] Frame 16
if (((_root.mmm3 > 4) && (_root.savefile.data.mm3 != 1)) && (!_root.cheater)) {
var medal_name = "Medium Rare";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm3 = 1;
_root.savefile.data.mm3 = 1;
midilz3 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz3._x = 307;
midilz3._y = 510;
midilz3.winmedalname = "Medium Rare";
midilz3.winmedaldescription = "Beat the game on MEDIUM.";
midilz3.panel.iconn.gotoAndStop(3);
}
Symbol 212 MovieClip [medalpop] Frame 18
if (((_root.mmm4 > 4) && (_root.savefile.data.mm4 != 1)) && (!_root.cheater)) {
var medal_name = "High Strung";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm4 = 1;
_root.savefile.data.mm4 = 1;
midilz4 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz4._x = 307;
midilz4._y = 510;
midilz4.winmedalname = "High Strung";
midilz4.winmedaldescription = "Beat the game on HIGH.";
midilz4.panel.iconn.gotoAndStop(4);
}
Symbol 212 MovieClip [medalpop] Frame 20
if (((_root.mmm5 > 4) && (_root.savefile.data.mm5 != 1)) && (!_root.cheater)) {
var medal_name = "Xpert";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm5 = 1;
_root.savefile.data.mm5 = 1;
midilz5 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz5._x = 307;
midilz5._y = 510;
midilz5.winmedalname = "Xpert";
midilz5.winmedaldescription = "Beat the game on EXPERT.";
midilz5.panel.iconn.gotoAndStop(5);
}
Symbol 212 MovieClip [medalpop] Frame 22
if ((_root.mmm6 > 4) && (_root.savefile.data.mm6 != 1)) {
var medal_name = "Got Crabs";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm6 = 1;
_root.savefile.data.mm6 = 1;
midilz6 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz6._x = 307;
midilz6._y = 510;
midilz6.winmedalname = "Got Crabs";
midilz6.winmedaldescription = "Get caught in a crab trap.";
midilz6.panel.iconn.gotoAndStop(6);
}
Symbol 212 MovieClip [medalpop] Frame 24
if ((_root.mmm7 > 4) && (_root.savefile.data.mm7 != 1)) {
var medal_name = "Wasted";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm7 = 1;
_root.savefile.data.mm7 = 1;
midilz7 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz7._x = 307;
midilz7._y = 510;
midilz7.winmedalname = "Wasted";
midilz7.winmedaldescription = "Get hit by toxic waste.";
midilz7.panel.iconn.gotoAndStop(7);
}
Symbol 212 MovieClip [medalpop] Frame 26
if ((_root.mmm8 > 4) && (_root.savefile.data.mm8 != 1)) {
var medal_name = "Bagged";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm8 = 1;
_root.savefile.data.mm8 = 1;
midilz8 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz8._x = 307;
midilz8._y = 510;
midilz8.winmedalname = "Bagged";
midilz8.winmedaldescription = "Get caught in a net.";
midilz8.panel.iconn.gotoAndStop(8);
}
Symbol 212 MovieClip [medalpop] Frame 28
if (((_root.mmm9 > 4) && (_root.savefile.data.mm9 != 1)) && (!_root.cheater)) {
var medal_name = "Gourmet";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm9 = 1;
_root.savefile.data.mm9 = 1;
midilz9 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz9._x = 307;
midilz9._y = 510;
midilz9.winmedalname = "Gourmet";
midilz9.winmedaldescription = "Eat all 76 kinds of fish.";
midilz9.panel.iconn.gotoAndStop(9);
}
Symbol 212 MovieClip [medalpop] Frame 30
if (((_root.mmm10 > 4) && (_root.savefile.data.mm10 != 1)) && (!_root.cheater)) {
var medal_name = "Monstar";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm10 = 1;
_root.savefile.data.mm10 = 1;
midilz10 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz10._x = 307;
midilz10._y = 510;
midilz10.winmedalname = "Monstar";
midilz10.winmedaldescription = "Achieve the rank of Sea Monster.";
midilz10.panel.iconn.gotoAndStop(10);
}
Symbol 212 MovieClip [medalpop] Frame 32
if (((_root.mmm11 > 4) && (_root.savefile.data.mm11 != 1)) && (!_root.cheater)) {
var medal_name = "Sushi";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm11 = 1;
_root.savefile.data.mm11 = 1;
midilz11 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz11._x = 307;
midilz11._y = 510;
midilz11.winmedalname = "Sushi";
midilz11.winmedaldescription = "Eat 200 fish in one game.";
midilz11.panel.iconn.gotoAndStop(11);
}
Symbol 212 MovieClip [medalpop] Frame 34
if ((_root.mmm12 > 4) && (_root.savefile.data.mm12 != 1)) {
var medal_name = "Cheater";
com.newgrounds.API.unlockMedal(medal_name);
_root.mm12 = 1;
_root.savefile.data.mm12 = 1;
midilz12 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100);
_root.efffcv++;
midilz12._x = 307;
midilz12._y = 510;
midilz12.winmedalname = "Cheater";
midilz12.winmedaldescription = "Use a cheat.";
midilz12.panel.iconn.gotoAndStop(12);
}
Symbol 29 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 23 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 22 MovieClip [__Packages.com.newgrounds.Event] Frame 0
class com.newgrounds.Event
{
var _type;
function Event (type) {
_type = type;
}
function get type() {
return(_type);
}
}
Symbol 24 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 27 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 33 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 28 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 25 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 44 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 41 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 42 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 40 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 38 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 39 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 34 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 43 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 35 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 37 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 26 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 2662 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 2663 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.2 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2664 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2665 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2666 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 45 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 2667 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 2668 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 20 MovieClip [__Packages.com.newgrounds.shims.APIShim] Frame 0
class com.newgrounds.shims.APIShim extends MovieClip
{
function APIShim () {
super();
}
}
Symbol 30 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 31 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 32 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 36 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);
}
}
Instance of Symbol 217 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_root.invisible) && (!_root.invincible)) {
if ((this._width * this._height) > (_root.fish._width * _root.fish._height)) {
if (this.hitTest(_root.fish.body)) {
_root.catchwidth = _root.fish.width;
_root.catchheight = _root.fish.height;
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
fishy = this.attachMovie("evolvo1", "caught", this.getNextHighestDepth() + 2);
fishy._x = this._x;
fishy._y = this._y;
if (_root.evolution == 2) {
fishy.gotoAndStop("second");
}
if (_root.evolution == 3) {
fishy.gotoAndStop("third");
}
if (_root.evolution == 4) {
fishy.gotoAndStop("fourth");
}
fishy._height = _root.catchheight;
fishy._width = _root.catchwidth;
_root.caugthed = true;
_root.pausee = true;
_root.caged.gotoAndPlay("start");
}
}
}
}
Symbol 236 MovieClip [dirt2] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 245 MovieClip [dirt3] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 247 MovieClip [dirt1] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 234 MovieClip in Symbol 248 MovieClip [crabcage2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee && (!_root.caugthed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_root.caugthed)) {
_parent.play();
}
}
Symbol 248 MovieClip [crabcage2] Frame 521
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 234 MovieClip in Symbol 249 MovieClip [crabcage3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee && (!_root.caugthed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_root.caugthed)) {
_parent.play();
}
}
Symbol 249 MovieClip [crabcage3] Frame 521
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip [poopggfd] Frame 1
onClipEvent (enterFrame) {
nettage._y = nettage._y + 1;
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 7
play();
_root.bite = true;
Symbol 269 MovieClip Frame 11
gotoAndStop (1);
_root.bite = false;
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 10
play();
_root.bite = true;
Symbol 289 MovieClip Frame 15
gotoAndStop ("idle");
_root.bite = false;
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 8
play();
_root.bite = true;
Symbol 306 MovieClip Frame 14
_root.bite = false;
gotoAndStop (1);
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 9
play();
_root.bite = true;
Symbol 330 MovieClip Frame 18
gotoAndStop (1);
_root.bite = false;
Symbol 338 MovieClip [evolvo1] Frame 1
stop();
Symbol 338 MovieClip [evolvo1] Frame 10
stop();
Symbol 338 MovieClip [evolvo1] Frame 22
play();
Symbol 338 MovieClip [evolvo1] Frame 23
_root.mmm1 = 43;
_root.medalz.gotoAndPlay("medalcheck");
stop();
Symbol 338 MovieClip [evolvo1] Frame 32
stop();
Symbol 338 MovieClip [evolvo1] Frame 44
play();
Symbol 338 MovieClip [evolvo1] Frame 45
stop();
Symbol 338 MovieClip [evolvo1] Frame 54
stop();
Symbol 338 MovieClip [evolvo1] Frame 66
play();
Symbol 338 MovieClip [evolvo1] Frame 67
stop();
Symbol 338 MovieClip [evolvo1] Frame 76
stop();
Symbol 339 MovieClip [evolvo2] Frame 1
stop();
Symbol 339 MovieClip [evolvo2] Frame 10
stop();
Symbol 340 MovieClip [evolvo3] Frame 1
stop();
Symbol 340 MovieClip [evolvo3] Frame 10
stop();
Symbol 342 MovieClip [evolvo4] Frame 1
stop();
Symbol 342 MovieClip [evolvo4] Frame 10
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 343 MovieClip Frame 23
stop();
Symbol 343 MovieClip Frame 40
stop();
Symbol 343 MovieClip Frame 53
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.netclose);
}
Instance of Symbol 217 MovieClip in Symbol 347 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((!_root.invisible) && (!_root.invincible)) && (!_root.slacked)) {
if ((2 * (this._width * this._height)) > (_root.fish._width * _root.fish._height)) {
if (this.hitTest(_root.fish.body)) {
_root.catchwidth = _root.fish.width;
_root.catchheight = _root.fish.height;
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_parent.caughtfish.gotoAndStop("first");
if (_root.evolution == 2) {
_parent.caughtfish.gotoAndStop("second");
}
if (_root.evolution == 3) {
_parent.caughtfish.gotoAndStop("third");
}
if (_root.evolution == 4) {
_parent.caughtfish.gotoAndStop("fourth");
}
_root.caugthed = true;
_root.pausee = true;
_root.netted.gotoAndPlay("start");
}
}
}
}
Symbol 347 MovieClip Frame 3
play();
Symbol 347 MovieClip Frame 4
play();
Symbol 347 MovieClip Frame 8
_root.slacked = true;
if (!_root.soundoff) {
_root.playEffect(_root.whip);
}
Symbol 347 MovieClip Frame 24
stop();
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip Frame 24
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent._parent.nettage._y = _parent._parent.nettage._y - 6;
if (_parent._parent.nettage._y < -2500) {
_parent._parent.nettage.unloadMovie();
_parent._parent.nettage.removeMovieClip();
_root.netishere = false;
this.unloadMovie();
this.removeMovieClip();
}
}
}
Symbol 352 MovieClip Frame 89
stop();
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 89
onClipEvent (enterFrame) {
if ((!_root.pausee) && (!_root.netisclosed)) {
_parent._parent.nettage.gotoAndPlay("close");
}
_root.netisclosed = true;
}
Instance of Symbol 349 MovieClip in Symbol 353 MovieClip [netdown] Frame 1
onClipEvent (enterFrame) {
if (!_root.netisclosed) {
_root.pickarandom = random(500);
}
if (((_root.pickarandom == 33) && (!_root.pausee)) && (!_root.netisclosed)) {
_parent.nettage.gotoAndPlay("close");
_root.netisclosed = true;
_parent.stop();
}
if (_root.pausee && (!_root.netisclosed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_root.netisclosed)) {
_parent.play();
}
}
Symbol 353 MovieClip [netdown] Frame 785
stop();
Instance of Symbol 349 MovieClip in Symbol 353 MovieClip [netdown] Frame 785
onClipEvent (enterFrame) {
if (!_root.netisclosed) {
_root.pickarandom = random(500);
}
if (_root.pickarandom == 33) {
_parent.net.gotoAndPlay("close");
_root.netisclosed = true;
_parent.stop();
}
}
Symbol 365 MovieClip Frame 10
stop();
Symbol 366 MovieClip Frame 1
stop();
Instance of Symbol 363 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish.body) && (!_root.invincible)) {
_root.invinciballs.gotoAndPlay("yay");
_parent.gotoAndPlay("bloop");
}
}
Symbol 366 MovieClip Frame 7
play();
Symbol 366 MovieClip Frame 17
stop();
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip [powerup2] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 370 MovieClip [powerup2] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 377 MovieClip Frame 1
stop();
Instance of Symbol 363 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish.body) && (!_root.megaballs)) {
_root.supersize.gotoAndPlay("yay");
_parent.gotoAndPlay("bloop");
_root.megaballs = true;
}
}
Symbol 377 MovieClip Frame 7
play();
Symbol 377 MovieClip Frame 17
stop();
Instance of Symbol 369 MovieClip in Symbol 379 MovieClip [powerup3] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 379 MovieClip [powerup3] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 363 MovieClip in Symbol 385 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish.body) && (!_root.megaballs)) {
if (!_root.soundoff) {
_root.playEffect(_root.powerupwoop2);
}
_root.evolution = _root.evolution + 1;
_parent.gotoAndPlay("bloop");
}
}
Symbol 385 MovieClip Frame 7
play();
Symbol 385 MovieClip Frame 17
stop();
Instance of Symbol 369 MovieClip in Symbol 387 MovieClip [powerup1] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 387 MovieClip [powerup1] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 389 MovieClip [levelup] Frame 39
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 431 MovieClip Frame 1
stop();
Symbol 1061 MovieClip [grow] Frame 1
play();
Symbol 1061 MovieClip [grow] Frame 2
_root.fish._xscale = _root.fish._xscale * 1.1;
_root.fish._yscale = _root.fish._yscale * 1.1;
_root.bite.start();
Symbol 1061 MovieClip [grow] Frame 7
_root.fish._xscale = _root.fish._xscale * 0.909;
_root.fish._yscale = _root.fish._yscale * 0.909;
if ((_root.fish._width > 1200) && (!_root.endless)) {
_root.endpop.gotoAndStop("end");
_root.pausee = true;
}
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1069 MovieClip [splash1] Frame 10
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1072 MovieClip [sparkle] Frame 19
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1075 MovieClip [blurbs] Frame 46
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1079 MovieClip [blood] Frame 40
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1080 MovieClip [eaten] Frame 1
play();
splat = _root.attachMovie("blood1", "fuckyou" + random(1000), random(10000) + 10000);
splat._xscale = splat._xscale * 2;
splat._yscale = splat._yscale * 2;
splat._x = fishPoint.x;
splat._y = fishPoint.y;
Symbol 1080 MovieClip [eaten] Frame 10
stop();
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 1096 MovieClip in Symbol 1097 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.barrelspin) {
_parent.barrrrr.stop();
}
}
Symbol 1107 MovieClip Frame 7
stop();
Symbol 1120 MovieClip Frame 24
stop();
Symbol 1121 MovieClip Frame 25
stop();
Instance of Symbol 1167 MovieClip in Symbol 1187 MovieClip Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish.body1)) {
if (((!_root.invincible) && (!_root.invisible)) && (!_root.poisonnn)) {
_root.getgetspeed = _root.speed;
_root.getgetagility = _root.agility;
_root.poisonnn = true;
if (!_root.soundoff) {
_root.playEffect(_root.vomit);
}
_root.mmm7 = 43;
_root.medalz.gotoAndPlay("medalcheck");
_root.poisonned.gotoAndPlay("go");
}
}
}
Symbol 1187 MovieClip Frame 163
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1200 MovieClip Frame 24
stop();
Symbol 1201 MovieClip Frame 25
stop();
Instance of Symbol 1100 MovieClip in Symbol 1202 MovieClip [barreller] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 1202 MovieClip [barreller] Frame 10
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1202 MovieClip [barreller] Frame 717
_root.barrelspin = false;
if (!_root.soundoff) {
_root.playEffect(_root.barrelsound);
}
Symbol 1202 MovieClip [barreller] Frame 785
_root.barrelspin = true;
Symbol 1202 MovieClip [barreller] Frame 786
stop();
Symbol 1202 MovieClip [barreller] Frame 794
stop();
Symbol 1202 MovieClip [barreller] Frame 796
stop();
Symbol 1206 MovieClip Frame 50
_root.play();
Symbol 1211 Button
on (release) {
getURL ("http://www.thepoxbox.com/", (target = "blank"));
}
Symbol 1215 MovieClip Frame 220
_root.gotoAndPlay("soundcode");
Symbol 1221 Button
on (press) {
stopAllSounds();
gotoAndPlay ("main");
}
Symbol 1227 MovieClip Frame 114
if (!_root.soundoff) {
_root.playEffect(_root.ocean);
}
Symbol 1227 MovieClip Frame 129
_parent.gotoAndStop(2);
Symbol 1255 MovieClip Frame 13
stop();
Symbol 1277 MovieClip Frame 35
stop();
Symbol 1278 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.underwater);
}
Symbol 1278 MovieClip Frame 40
if (!_root.soundoff) {
_root.playEffect(_root.bubbles);
}
Symbol 1278 MovieClip Frame 117
if (!_root.soundoff) {
_root.playEffect(_root.bubbles);
}
Symbol 1278 MovieClip Frame 157
if (!_root.soundoff) {
_root.playEffect(_root.underwater);
}
Symbol 1278 MovieClip Frame 354
if (!_root.soundoff) {
_root.playEffect(_root.dundun);
}
Symbol 1278 MovieClip Frame 382
_root.gotoAndStop("main");
Symbol 1279 MovieClip Frame 116
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1279 MovieClip Frame 117
if (!_root.soundoff) {
_root.playEffect(_root.bubbles);
}
Symbol 1279 MovieClip Frame 124
if (!_root.soundoff) {
_root.playEffect(_root.underwater);
}
stop();
Symbol 1280 MovieClip Frame 1
stop();
if (!_root.soundoff) {
_root.playEffect(_root.unicron);
}
Symbol 1280 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 48
stop();
Symbol 1336 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.gotoAndStop("game");
}
Symbol 1342 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.tutorial.gotoAndStop(2);
}
Symbol 1348 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.aquarium = true;
_root.gotoAndStop("game");
}
Symbol 1354 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.gotoAndStop("gallery");
}
Symbol 1360 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.thepoxbox.com/what.php?id=evolvo", "_blank");
}
Symbol 1363 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=artmain", "_blank");
}
Symbol 1367 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
play();
}
Symbol 1415 Button
on (release) {
gotoAndPlay ("close");
}
Symbol 1428 MovieClip Frame 1
stop();
medalname = "Medal Name";
medaldescription = "Medal Description";
Symbol 1428 MovieClip Frame 3
if (_root.savefile.data.mm1 == 1) {
graystuff.m1._alpha = 0;
}
if (_root.savefile.data.mm2 == 1) {
graystuff.m2._alpha = 0;
}
if (_root.savefile.data.mm3 == 1) {
graystuff.m3._alpha = 0;
}
if (_root.savefile.data.mm4 == 1) {
graystuff.m4._alpha = 0;
}
if (_root.savefile.data.mm5 == 1) {
graystuff.m5._alpha = 0;
}
if (_root.savefile.data.mm6 == 1) {
graystuff.m6._alpha = 0;
}
if (_root.savefile.data.mm7 == 1) {
graystuff.m7._alpha = 0;
}
if (_root.savefile.data.mm8 == 1) {
graystuff.m8._alpha = 0;
}
if (_root.savefile.data.mm9 == 1) {
graystuff.m9._alpha = 0;
}
if (_root.savefile.data.mm10 == 1) {
graystuff.m10._alpha = 0;
}
if (_root.savefile.data.mm11 == 1) {
graystuff.m11._alpha = 0;
}
if (_root.savefile.data.mm12 == 1) {
graystuff.m12._alpha = 0;
}
Symbol 1428 MovieClip Frame 7
stop();
Instance of Symbol 1416 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Evolver";
_parent.medaldescription = "Evolve Once.";
}
Instance of Symbol 1417 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Easy Going";
_parent.medaldescription = "Beat the game on EASY.";
}
Instance of Symbol 1418 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Medium Rare";
_parent.medaldescription = "Beat the game on MEDIUM.";
}
Instance of Symbol 1419 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "High Strung";
_parent.medaldescription = "Beat the game on HIGH.";
}
Instance of Symbol 1420 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Xpert";
_parent.medaldescription = "Beat the game on EXPERT.";
}
Instance of Symbol 1421 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Got Crabs";
_parent.medaldescription = "Get caught in a crab trap.";
}
Instance of Symbol 1422 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Wasted";
_parent.medaldescription = "Get hit by toxic waste.";
}
Instance of Symbol 1423 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Bagged";
_parent.medaldescription = "Get caught in a net.";
}
Instance of Symbol 1424 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Gourmet";
_parent.medaldescription = "Eat all 76 kinds of fish.";
}
Instance of Symbol 1425 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Monstar";
_parent.medaldescription = "Achieve the rank of Sea Monster.";
}
Instance of Symbol 1426 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Sushi";
_parent.medaldescription = "Eat 200 fish in one game.";
}
Instance of Symbol 1427 MovieClip in Symbol 1428 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Cheater";
_parent.medaldescription = "Use a cheat.";
}
Symbol 1430 MovieClip Frame 11
stop();
Symbol 1433 Button
on (press) {
nextFrame();
}
Symbol 1439 MovieClip Frame 1
stop();
_root._quality = "BEST";
Instance of Symbol 1435 MovieClip in Symbol 1439 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root.keyquality) && (!_root.keyq)) {
_parent.nextFrame();
_root.keyq = true;
}
if (!Key.isDown(_root.keyquality)) {
_root.keyq = false;
}
}
Symbol 1439 MovieClip Frame 2
stop();
_root._quality = "MEDIUM";
Symbol 1439 MovieClip Frame 3
stop();
_root._quality = "LOW";
Symbol 1439 MovieClip Frame 4
gotoAndStop (1);
Symbol 1442 Button
on (press) {
_root.soundoff = true;
}
Symbol 1445 Button
on (press) {
_root.soundoff = false;
}
Instance of Symbol 1444 MovieClip in Symbol 1448 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundoff) {
_parent.gotoAndStop(5);
}
}
Instance of Symbol 1446 MovieClip in Symbol 1448 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.soundoff) {
_parent.gotoAndStop(1);
}
}
Symbol 1449 MovieClip Frame 31
stop();
Symbol 1488 Button
on (press) {
gotoAndStop (1);
}
Symbol 1489 MovieClip Frame 1
stop();
Symbol 1489 MovieClip Frame 2
stop();
Instance of Symbol 1495 MovieClip "crabber" in Symbol 1496 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick2 = random(20000);
if (((_root.randompick2 == 45) && (!_root.aquarium)) && (_root.hazards)) {
_root.randompick2 = 0;
krab2 = _root.backgrounda.attachMovie("crabcage3", ("crabbage" + random(100)) + 1, random(1000) - 10000);
krab2._xscale = krab2._xscale * -1;
krab2._y = -1060;
krab2._x = 20;
}
if ((_root.randompick2 == 10) && (!_root.aquarium)) {
_root.randompick2 = 0;
krabl = _root.backgrounda.attachMovie("crabcage2", ("crabbage" + random(100)) + 1, random(1000) - 10000);
krabl._y = -1060;
krabl._x = -60;
}
}
Instance of Symbol 355 MovieClip "shooter" in Symbol 1496 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick5 = random(5000);
if (((_root.randompick5 == 10) && (!_root.aquarium)) && (_root.hazards)) {
_root.randompick5 = 0;
barrl = _root.backgrounda.attachMovie("barreller", ("barel" + random(10)) + 1, random(1000) - 10000);
barrl._y = _root.backgrounda.shooter._y - 150;
barrl._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
}
Instance of Symbol 355 MovieClip "shooter" in Symbol 1496 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick8 = random(5000);
if ((((_root.randompick8 == 14) && (!_root.aquarium)) && (_root.hazards)) && (!_root.netishere)) {
_root.netishere = true;
_root.slacked = false;
_root.backgrounda.fishcatcher.unloadMovie();
_root.backgrounda.fishcatcher.removeMovieClip();
_root.backgrounda.nettt.unloadMovie();
_root.backgrounda.nettt.removeMovieClip();
_root.netisclosed = false;
nettt = _root.backgrounda.attachMovie("netdown", "fishcatcher", random(100) - 10000);
nettt._y = -1090;
nettt._x = random(550) - 275;
}
}
Instance of Symbol 355 MovieClip "shooter22" in Symbol 1496 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick51 = random(4000);
if (((_root.randompick51 == 43) && (!_root.aquarium)) && (_root.evolution < 4)) {
ppup = _root.backgrounda.attachMovie("powerup1", ("power" + random(1000)) + 1, random(1000) - 10000);
ppup._y = _root.backgrounda.shooter22._y;
ppup._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
if ((_root.randompick51 == 23) && (!_root.aquarium)) {
ppup2 = _root.backgrounda.attachMovie("powerup2", ("power" + random(1000)) + 1, random(1000) - 10000);
ppup2._y = _root.backgrounda.shooter22._y;
ppup2._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
if ((_root.randompick51 == 13) && (!_root.aquarium)) {
ppup3 = _root.backgrounda.attachMovie("powerup3", ("power" + random(1000)) + 1, random(1000) - 10000);
ppup3._y = _root.backgrounda.shooter22._y;
ppup3._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
}
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1546 MovieClip Frame 4
stop();
Instance of Symbol 1535 MovieClip in Symbol 1546 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.fish._x = _root.hookcatchx + random(3);
_root.fish._y = _root.hookcatchy + random(3);
_root.arrowright = 399;
_root.arrowup = 378;
_root.arrowleft = 357;
_root.arrowdown = 450;
_root.yvel = 0;
_root.xvel = 0;
_root.xvel2 = 0;
_root.yvel2 = 0;
_root.invincible = true;
}
Symbol 1546 MovieClip Frame 17
play();
Symbol 1546 MovieClip Frame 45
_root.gotoAndStop("netted2");
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1555 MovieClip Frame 9
_root.catchfishwidth123231 = _root.fish._width;
_root.catchfishheight123231 = _root.fish._height;
_root.fish._width = _root.fish._width * 5;
_root.fish._height = _root.fish._height * 5;
if (_root.faceleft) {
_root.fish._xscale = _root.fish._xscale * -1;
}
_root.endless = true;
if ((!_root.soundoff) && (!_root.powerupwoopstarted)) {
_root.playEffect(_root.powerupwoop);
_root.playEffect(_root.powerupwoop2);
_root.powerupwoopstarted = true;
_root.megaballs = true;
}
Instance of Symbol 1554 MovieClip in Symbol 1555 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 1555 MovieClip Frame 159
_root.fish._width = _root.catchfishwidth123231;
_root.fish._height = _root.catchfishheight123231;
if (_root.faceleft) {
_root.fish._xscale = _root.fish._xscale * -1;
}
_root.megaballs = false;
_root.endless = false;
_root.powerupwoopstarted = false;
Symbol 1561 MovieClip Frame 1
stop();
Symbol 1561 MovieClip Frame 9
_root.invincible = true;
if ((!_root.soundoff) && (!_root.powerupwoopstarted)) {
_root.playEffect(_root.powerupwoop);
_root.playEffect(_root.powerupwoop2);
_root.powerupwoopstarted = true;
}
Instance of Symbol 1560 MovieClip in Symbol 1561 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 1561 MovieClip Frame 159
_root.invincible = false;
_root.powerupwoopstarted = false;
Symbol 1572 Button
on (press) {
_root.soundoff = false;
}
Symbol 1575 Button
on (press) {
_root.soundoff = true;
}
Symbol 1576 MovieClip Frame 1
stop();
Instance of Symbol 1569 MovieClip in Symbol 1576 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.soundoff) {
_parent.gotoAndStop(5);
}
}
Symbol 1576 MovieClip Frame 5
stop();
Instance of Symbol 1573 MovieClip in Symbol 1576 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.soundoff) {
_parent.gotoAndStop(1);
}
}
Symbol 1579 Button
on (press) {
_root._quality = "MEDIUM";
}
Symbol 1582 Button
on (press) {
_root._quality = "LOW";
}
Symbol 1584 Button
on (press) {
_root._quality = "BEST";
}
Symbol 1585 MovieClip Frame 1
stop();
Instance of Symbol 1578 MovieClip in Symbol 1585 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._quality == "BEST") {
_parent.gotoAndStop(1);
}
if (_root._quality == "MEDIUM") {
_parent.gotoAndStop(5);
}
if (_root._quality == "LOW") {
_parent.gotoAndStop(9);
}
}
Symbol 1585 MovieClip Frame 5
stop();
Instance of Symbol 1581 MovieClip in Symbol 1585 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root._quality == "BEST") {
_parent.gotoAndStop(1);
}
if (_root._quality == "MEDIUM") {
_parent.gotoAndStop(5);
}
if (_root._quality == "LOW") {
_parent.gotoAndStop(9);
}
}
Symbol 1585 MovieClip Frame 9
stop();
Instance of Symbol 1583 MovieClip in Symbol 1585 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root._quality == "BEST") {
_parent.gotoAndStop(1);
}
if (_root._quality == "MEDIUM") {
_parent.gotoAndStop(5);
}
if (_root._quality == "LOW") {
_parent.gotoAndStop(9);
}
}
Symbol 1589 Button
on (press) {
_root.autolevel = true;
}
Symbol 1592 Button
on (press) {
_root.autolevel = false;
}
Symbol 1594 MovieClip Frame 1
stop();
Instance of Symbol 1587 MovieClip in Symbol 1594 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.autolevel) {
_parent.gotoAndStop(5);
}
}
Symbol 1594 MovieClip Frame 5
stop();
Instance of Symbol 1591 MovieClip in Symbol 1594 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.autolevel) {
_parent.gotoAndStop(1);
}
}
Symbol 1595 Button
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=evolvo", "_blank");
}
Symbol 1596 Button
on (release) {
getURL ("http://pianoforte.newgrounds.com/", "_blank");
}
Symbol 1605 Button
on (press) {
surequit.gotoAndStop(2);
}
Symbol 1606 Button
on (release) {
_root.labelz = false;
}
Symbol 1607 Button
on (release) {
_root.labelz = true;
}
Symbol 1608 MovieClip Frame 1
stop();
Instance of Symbol 1578 MovieClip in Symbol 1608 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.labelz) {
_parent.gotoAndStop(5);
}
}
Symbol 1608 MovieClip Frame 5
stop();
Instance of Symbol 1581 MovieClip in Symbol 1608 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.labelz) {
_parent.gotoAndStop(1);
}
}
Symbol 1616 Button
on (press) {
if ((_root.cheat != "ULTRAVOLVO") or (_root.cheat != "INVINCIVOLVO")) {
outcome.gotoAndPlay("wrong");
}
if (_root.cheat == "INVINCIVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("invincible");
}
if (_root.cheat == "CHANGEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("custom");
}
if (_root.cheat == "SAFEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("safe");
}
if (_root.cheat == "ETERNIVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("endless");
}
if (_root.cheat == "FISHOLVO") {
outcome.gotoAndPlay("morph");
}
if (_root.cheat == "ENDINGVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("ending");
}
if (_root.cheat == "ULTRAVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
outcome.gotoAndPlay("maxevolve");
}
}
Symbol 1634 Button
on (release) {
_root.pausescreen.gotoAndPlay("unpause");
}
Symbol 1658 MovieClip Frame 1
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
stop();
Symbol 1658 MovieClip Frame 10
_root.cheat = "-------------------";
play();
Symbol 1658 MovieClip Frame 24
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 25
_root.cheat = "-------------------";
_root.invincible = true;
_root.cheater = true;
play();
Symbol 1658 MovieClip Frame 75
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 76
_root.cheat = "-------------------";
_root.cheater = true;
_root.evolution = 4;
_root.fish._xscale = _root.fish._xscale * 3;
_root.fish._yscale = _root.fish._yscale * 3;
_root.scores.bluebar._visible = true;
_root.scores.redbar._visible = true;
_root.bgmax = 2065;
play();
Symbol 1658 MovieClip Frame 121
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 122
_root.cheat = "-------------------";
_root.fish._width = 1200;
_root.fish._height = 600;
_root.cheater = true;
_root.endless = false;
play();
Symbol 1658 MovieClip Frame 158
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 159
_root.cheat = "-------------------";
_root.cheater = true;
_root.endless = true;
play();
Symbol 1658 MovieClip Frame 200
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 201
_root.cheat = "-------------------";
_root.cheater = true;
_parent.newfish.gotoAndStop("select");
play();
Symbol 1658 MovieClip Frame 240
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 241
_root.cheat = "-------------------";
_root.cheater = true;
_parent.custommenu.gotoAndStop("select");
play();
Symbol 1658 MovieClip Frame 275
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1658 MovieClip Frame 276
_root.cheat = "-------------------";
_root.cheater = true;
_root.hazards = false;
play();
Symbol 1658 MovieClip Frame 319
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 1659 MovieClip Frame 7
stop();
Symbol 1663 MovieClip Frame 65
stop();
Symbol 1679 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 1689 Button
on (press) {
gotoAndStop (1);
}
Symbol 1691 MovieClip Frame 1
stop();
Symbol 1691 MovieClip Frame 2
stop();
Symbol 1701 Button
on (press) {
_parent.gotoAndStop("idle");
}
Symbol 1706 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = random(77) + 1;
_root.gotoAndStop("main");
}
Symbol 1709 MovieClip Frame 10
stop();
Symbol 1712 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 1;
_root.gotoAndStop("main");
}
Symbol 1713 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 2;
_root.gotoAndStop("main");
}
Symbol 1714 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 3;
_root.gotoAndStop("main");
}
Symbol 1715 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 4;
_root.gotoAndStop("main");
}
Symbol 1716 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 5;
_root.gotoAndStop("main");
}
Symbol 1717 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 6;
_root.gotoAndStop("main");
}
Symbol 1718 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 7;
_root.gotoAndStop("main");
}
Symbol 1719 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 8;
_root.gotoAndStop("main");
}
Symbol 1720 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 9;
_root.gotoAndStop("main");
}
Symbol 1721 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 10;
_root.gotoAndStop("main");
}
Symbol 1722 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 11;
_root.gotoAndStop("main");
}
Symbol 1723 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 12;
_root.gotoAndStop("main");
}
Symbol 1724 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 13;
_root.gotoAndStop("main");
}
Symbol 1725 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 14;
_root.gotoAndStop("main");
}
Symbol 1726 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 15;
_root.gotoAndStop("main");
}
Symbol 1727 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 16;
_root.gotoAndStop("main");
}
Symbol 1728 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 17;
_root.gotoAndStop("main");
}
Symbol 1729 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 18;
_root.gotoAndStop("main");
}
Symbol 1730 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 19;
_root.gotoAndStop("main");
}
Symbol 1731 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 20;
_root.gotoAndStop("main");
}
Symbol 1732 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 21;
_root.gotoAndStop("main");
}
Symbol 1733 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 22;
_root.gotoAndStop("main");
}
Symbol 1734 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 23;
_root.gotoAndStop("main");
}
Symbol 1735 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 24;
_root.gotoAndStop("main");
}
Symbol 1736 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 25;
_root.gotoAndStop("main");
}
Symbol 1737 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 26;
_root.gotoAndStop("main");
}
Symbol 1738 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 27;
_root.gotoAndStop("main");
}
Symbol 1739 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 28;
_root.gotoAndStop("main");
}
Symbol 1740 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 29;
_root.gotoAndStop("main");
}
Symbol 1741 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 30;
_root.gotoAndStop("main");
}
Symbol 1742 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 31;
_root.gotoAndStop("main");
}
Symbol 1743 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 32;
_root.gotoAndStop("main");
}
Symbol 1744 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 33;
_root.gotoAndStop("main");
}
Symbol 1745 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 34;
_root.gotoAndStop("main");
}
Symbol 1746 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 35;
_root.gotoAndStop("main");
}
Symbol 1747 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 36;
_root.gotoAndStop("main");
}
Symbol 1748 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 37;
_root.gotoAndStop("main");
}
Symbol 1749 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 38;
_root.gotoAndStop("main");
}
Symbol 1750 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 39;
_root.gotoAndStop("main");
}
Symbol 1751 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 40;
_root.gotoAndStop("main");
}
Symbol 1752 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 41;
_root.gotoAndStop("main");
}
Symbol 1753 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 42;
_root.gotoAndStop("main");
}
Symbol 1754 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 43;
_root.gotoAndStop("main");
}
Symbol 1755 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 44;
_root.gotoAndStop("main");
}
Symbol 1756 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 45;
_root.gotoAndStop("main");
}
Symbol 1757 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 46;
_root.gotoAndStop("main");
}
Symbol 1758 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 47;
_root.gotoAndStop("main");
}
Symbol 1759 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 48;
_root.gotoAndStop("main");
}
Symbol 1760 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 49;
_root.gotoAndStop("main");
}
Symbol 1761 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 50;
_root.gotoAndStop("main");
}
Symbol 1762 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 51;
_root.gotoAndStop("main");
}
Symbol 1763 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 52;
_root.gotoAndStop("main");
}
Symbol 1764 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 53;
_root.gotoAndStop("main");
}
Symbol 1765 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 54;
_root.gotoAndStop("main");
}
Symbol 1766 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 55;
_root.gotoAndStop("main");
}
Symbol 1767 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 56;
_root.gotoAndStop("main");
}
Symbol 1768 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 57;
_root.gotoAndStop("main");
}
Symbol 1769 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 58;
_root.gotoAndStop("main");
}
Symbol 1770 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 59;
_root.gotoAndStop("main");
}
Symbol 1771 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 60;
_root.gotoAndStop("main");
}
Symbol 1772 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 61;
_root.gotoAndStop("main");
}
Symbol 1773 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 62;
_root.gotoAndStop("main");
}
Symbol 1774 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 63;
_root.gotoAndStop("main");
}
Symbol 1775 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 64;
_root.gotoAndStop("main");
}
Symbol 1776 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 65;
_root.gotoAndStop("main");
}
Symbol 1777 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 66;
_root.gotoAndStop("main");
}
Symbol 1778 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 67;
_root.gotoAndStop("main");
}
Symbol 1779 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 68;
_root.gotoAndStop("main");
}
Symbol 1780 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 69;
_root.gotoAndStop("main");
}
Symbol 1781 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 70;
_root.gotoAndStop("main");
}
Symbol 1782 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 71;
_root.gotoAndStop("main");
}
Symbol 1783 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 72;
_root.gotoAndStop("main");
}
Symbol 1784 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 73;
_root.gotoAndStop("main");
}
Symbol 1785 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 74;
_root.gotoAndStop("main");
}
Symbol 1786 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 75;
_root.gotoAndStop("main");
}
Symbol 1787 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 76;
_root.gotoAndStop("main");
}
Symbol 1791 MovieClip Frame 1
stop();
Symbol 1791 MovieClip Frame 4
stop();
Symbol 1812 MovieClip Frame 1
slider._x = (_root.speed * 10) - 9;
slider.onPress = function () {
this.startDrag(true, sliderbar._x, sliderbar._y, sliderbar._x + 300, sliderbar._y);
};
slider.onRelease = function () {
this.stopDrag();
};
slider.onMouseMove = function () {
_root.speed = Math.round(0.1 * slider._x) + 1;
};
Symbol 1813 MovieClip Frame 1
slider._x = (_root.agility * 10) - 9;
slider.onPress = function () {
this.startDrag(true, sliderbar._x, sliderbar._y, sliderbar._x + 300, sliderbar._y);
};
slider.onRelease = function () {
this.stopDrag();
};
slider.onMouseMove = function () {
_root.agility = Math.round(0.1 * slider._x) + 1;
};
Symbol 1814 MovieClip Frame 1
slider._x = _root.maxenemyspeed * 30;
slider.onPress = function () {
this.startDrag(true, sliderbar._x, sliderbar._y, sliderbar._x + 300, sliderbar._y);
};
slider.onRelease = function () {
this.stopDrag();
};
slider.onMouseMove = function () {
_root.maxenemyspeed = Math.round(0.03 * slider._x);
};
Symbol 1815 MovieClip Frame 1
slider._x = _root.maxfish * 5;
slider.onPress = function () {
this.startDrag(true, sliderbar._x, sliderbar._y, sliderbar._x + 300, sliderbar._y);
};
slider.onRelease = function () {
this.stopDrag();
};
slider.onMouseMove = function () {
_root.maxfish = Math.round(0.2 * slider._x);
};
Symbol 1816 MovieClip Frame 1
slider._x = 100 * _root.growthrate;
slider.onPress = function () {
this.startDrag(true, sliderbar._x, sliderbar._y, sliderbar._x + 300, sliderbar._y);
};
slider.onRelease = function () {
this.stopDrag();
};
slider.onMouseMove = function () {
_root.growthrate = 0.01 * slider._x;
};
Symbol 1823 Button
on (press) {
gotoAndPlay ("deselect");
}
Symbol 1838 MovieClip Frame 1
stop();
Symbol 1838 MovieClip Frame 7
stop();
Symbol 1838 MovieClip Frame 17
play();
Symbol 1838 MovieClip Frame 25
gotoAndStop (1);
Symbol 1840 MovieClip Frame 1
stop();
Symbol 1840 MovieClip Frame 5
play();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
Symbol 1840 MovieClip Frame 12
stop();
Symbol 1840 MovieClip Frame 13
play();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "";
Symbol 1840 MovieClip Frame 35
gotoAndStop ("idle");
_root.pausee = false;
Symbol 1842 MovieClip Frame 20
stop();
Symbol 1857 Button
on (press) {
_root.speed = _root.speed + 1;
_root.levelupscreen.gotoAndStop(1);
_root.pausee = false;
}
Symbol 1863 MovieClip Frame 1
stop();
Instance of Symbol 1853 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root.keyone) && (!_root.keyonee)) {
_root.speed = _root.speed + 1;
_root.levelupscreen.gotoAndStop(1);
_root.pausee = false;
_root.keyonee = true;
}
}
Instance of Symbol 1860 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.speed == 15) {
_parent.gotoAndStop(2);
}
}
Symbol 1863 MovieClip Frame 2
stop();
Symbol 1866 Button
on (press) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
_root.levelupscreen.gotoAndStop(1);
_root.pausee = false;
}
Symbol 1869 MovieClip Frame 1
stop();
Instance of Symbol 1853 MovieClip in Symbol 1869 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root.keytwo) && (!_root.keytwoo)) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
_root.levelupscreen.gotoAndStop(1);
_root.pausee = false;
_root.keytwoo = true;
}
}
Instance of Symbol 1860 MovieClip in Symbol 1869 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.agility == 7) {
_parent.gotoAndStop(2);
}
}
Symbol 1869 MovieClip Frame 2
stop();
Symbol 1872 Button
on (press) {
_root.levelupscreen.gotoAndStop("evolve");
}
Symbol 1881 MovieClip Frame 1
stop();
Instance of Symbol 1876 MovieClip in Symbol 1881 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.level <= 3) && (_root.evolution == 1)) {
_parent.gotoAndStop("blop");
}
if ((_root.level <= 7) && (_root.evolution == 2)) {
_parent.gotoAndStop("bloop");
}
if ((_root.level <= 11) && (_root.evolution == 3)) {
_parent.gotoAndStop("blooop");
}
if (_root.evolution == 4) {
_parent.gotoAndStop("bloooop");
}
}
Symbol 1881 MovieClip Frame 4
stop();
Symbol 1881 MovieClip Frame 8
stop();
Symbol 1881 MovieClip Frame 12
stop();
Symbol 1884 MovieClip Frame 1
stop();
Instance of Symbol 1853 MovieClip in Symbol 1884 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root.keythree) && (!_root.keythreee)) {
_root.levelupscreen.gotoAndStop("evolve");
_root.keythreee = true;
}
}
Instance of Symbol 1860 MovieClip in Symbol 1884 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.evolution == 4) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 1) && (_root.level <= 3)) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 2) && (_root.level <= 7)) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 3) && (_root.level <= 11)) {
_parent.gotoAndStop(2);
}
}
Symbol 1884 MovieClip Frame 2
stop();
Instance of Symbol 1860 MovieClip in Symbol 1884 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.evolution == 4) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 1) && (_root.level <= 2)) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 2) && (_root.level <= 6)) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 3) && (_root.level <= 11)) {
_parent.gotoAndStop(2);
}
}
Symbol 1905 Button
on (press) {
_root.autolevel = true;
}
Symbol 1913 MovieClip Frame 1
stop();
Instance of Symbol 1907 MovieClip in Symbol 1913 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.autolevel) {
_parent.gotoAndStop(4);
}
}
Symbol 1913 MovieClip Frame 4
stop();
Instance of Symbol 1907 MovieClip in Symbol 1913 MovieClip Frame 4
onClipEvent (enterFrame) {
if (!_root.autolevel) {
_parent.gotoAndStop(1);
}
}
Symbol 1915 MovieClip Frame 8
stop();
Symbol 1918 MovieClip Frame 83
stop();
Symbol 1922 MovieClip Frame 85
stop();
Symbol 1926 MovieClip Frame 80
stop();
Symbol 1930 MovieClip Frame 1
stop();
if (_root.evolution == 1) {
gotoAndStop ("firste");
}
if (_root.evolution == 2) {
gotoAndStop ("seconde");
}
if (_root.evolution == 3) {
gotoAndStop ("thirde");
}
Symbol 1930 MovieClip Frame 2
stop();
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.fish.gotoAndStop("idle2");
Symbol 1930 MovieClip Frame 10
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle3");
_root.scores.bluebar._visible = true;
Symbol 1930 MovieClip Frame 20
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle4");
_root.scores.redbar._visible = false;
Symbol 1934 Button
on (press) {
_root.pausee = false;
_root.levelupscreen.gotoAndStop(1);
}
Symbol 1935 MovieClip Frame 1
play();
Symbol 1935 MovieClip Frame 24
stop();
_root.pkey = 80;
_root.pausee = false;
Symbol 1935 MovieClip Frame 25
stop();
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.pkey = 1111;
Symbol 1935 MovieClip Frame 31
stop();
Instance of Symbol 1932 MovieClip in Symbol 1935 MovieClip Frame 31
onClipEvent (enterFrame) {
if (Key.isDown(_root.spacekey)) {
_root.pausee = false;
_root.levelupscreen.gotoAndStop(1);
}
}
Symbol 1940 Button
on (press) {
if (!_root.pausee) {
_root.pausee = true;
_root.pausescreen.gotoAndStop("pause");
} else {
_root.pausee = false;
_root.pausescreen.gotoAndStop("unpause");
}
}
Symbol 1944 MovieClip Frame 1
stop();
_root.invisiblesound = false;
Symbol 1944 MovieClip Frame 5
play();
_root.invisiblesound = true;
if (!_root.soundoff) {
_root.playEffect(_root.invisibleee);
}
Symbol 1944 MovieClip Frame 31
gotoAndStop (1);
Symbol 1946 MovieClip Frame 1
if (_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:255, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
if (!_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
Symbol 1946 MovieClip Frame 2
if (_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
}
if (!_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
Symbol 1946 MovieClip Frame 3
if (_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:255};
myColor.setTransform(myColorTransform);
}
if (!_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
Symbol 1946 MovieClip Frame 4
if (_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
if (!_root.invincible) {
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
Symbol 1948 MovieClip Frame 1
stop();
Symbol 1948 MovieClip Frame 6
play();
Instance of Symbol 1947 MovieClip in Symbol 1948 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
_root.speed = 1;
_root.agility = 1;
_root.fish.xvel2 = 5;
_root.fish.xvel = 5;
_root.fish.yvel2 = 5;
_root.fish.yvel = 5;
}
Symbol 1948 MovieClip Frame 7
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 9
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 11
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 13
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 15
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 17
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 19
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 21
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 23
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 25
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 27
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 29
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 32
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 34
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 36
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 38
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 40
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 42
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 44
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 46
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 48
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 50
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 52
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 54
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 57
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 59
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 61
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 63
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 65
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 67
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 69
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 71
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 73
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 75
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 77
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 79
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 82
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 84
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 86
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 88
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 90
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 92
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 94
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 96
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 98
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 100
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 102
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 104
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 1948 MovieClip Frame 105
_root.speed = _root.getgetspeed;
_root.agility = _root.getgetagility;
_root.poisonnn = false;
Symbol 1953 MovieClip Frame 1
stop();
Symbol 1953 MovieClip Frame 2
play();
_root.pkey = 23423;
Symbol 1953 MovieClip Frame 20
stopAllSounds();
Symbol 1953 MovieClip Frame 21
if (!_root.soundoff) {
_root.playEffect(_root.underwater);
}
Symbol 1953 MovieClip Frame 42
_root.gotoAndStop("lose");
Symbol 1957 MovieClip Frame 1
stop();
Symbol 1957 MovieClip Frame 5
play();
stopAllSounds();
Symbol 1957 MovieClip Frame 6
_root.playEffect(_root.biteending);
Symbol 1957 MovieClip Frame 85
stop();
_root.gotoAndStop("ending");
Symbol 1965 Button
on (press) {
gotoAndStop (1);
_root.reminder2 = false;
}
Symbol 1966 MovieClip Frame 1
stop();
Symbol 1966 MovieClip Frame 2
stop();
Symbol 2007 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.difficultyselect.gotoAndPlay("go");
_root.maxfish = 15;
_root.maxenemyspeed = 2;
_root.easymode = true;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = false;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
}
Symbol 2015 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.difficultyselect.gotoAndPlay("go");
_root.maxfish = 20;
_root.maxenemyspeed = 3;
_root.easymode = false;
_root.normalmode = true;
_root.hardmode = false;
_root.insanemode = false;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
}
Symbol 2025 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.difficultyselect.gotoAndPlay("go");
_root.maxfish = 25;
_root.maxenemyspeed = 4;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = true;
_root.insanemode = false;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
}
Symbol 2039 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.difficultyselect.gotoAndPlay("go");
_root.maxfish = 30;
_root.maxenemyspeed = 5;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = true;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
}
Instance of Symbol 1997 MovieClip in Symbol 2044 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.pausee = true;
_root.pkey = 21;
}
Symbol 2044 MovieClip Frame 2
if (!_root.soundoff) {
if (!_root.aquarium) {
}
}
Symbol 2044 MovieClip Frame 8
stop();
Symbol 2044 MovieClip Frame 9
play();
Symbol 2044 MovieClip Frame 15
_root.pausee = false;
_root.pkey = 80;
Symbol 2044 MovieClip Frame 16
stop();
Symbol 2045 MovieClip Frame 1
stop();
Symbol 2045 MovieClip Frame 2
play();
Symbol 2045 MovieClip Frame 30
_root.gotoAndStop("caged");
Symbol 2046 MovieClip Frame 1
stop();
Symbol 2046 MovieClip Frame 2
play();
Symbol 2046 MovieClip Frame 30
_root.gotoAndStop("netted2");
Symbol 2050 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 2053 Button
on (press) {
gotoAndStop (1);
}
Symbol 2054 MovieClip Frame 1
if ((_root.savefile.data.instructionss == 1) or _root.aquarium) {
stop();
} else {
play();
}
Symbol 2054 MovieClip Frame 2
_root.savefile.data.instructionss = 1;
stop();
Symbol 2055 MovieClip Frame 1
stop();
Symbol 2055 MovieClip Frame 6
if (!_root.soundoff) {
_root.playEffect(_root.biteending);
}
Symbol 2055 MovieClip Frame 69
_root.gotoAndStop("ending");
Symbol 2074 MovieClip Frame 5
stop();
Symbol 2150 MovieClip Frame 1
stop();
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fishEaten[2]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.fishEaten[3]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.fishEaten[4]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.fishEaten[5]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.fishEaten[6]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.fishEaten[7]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.fishEaten[8]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.fishEaten[9]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.fishEaten[10]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.fishEaten[11]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.fishEaten[12]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.fishEaten[13]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.fishEaten[14]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.fishEaten[15]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_root.fishEaten[16]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.fishEaten[17]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.fishEaten[18]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.fishEaten[19]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.fishEaten[20]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.fishEaten[21]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.fishEaten[22]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 22
onClipEvent (enterFrame) {
if (_root.fishEaten[23]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 23
onClipEvent (enterFrame) {
if (_root.fishEaten[24]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.fishEaten[25]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.fishEaten[26]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 26
onClipEvent (enterFrame) {
if (_root.fishEaten[27]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 27
onClipEvent (enterFrame) {
if (_root.fishEaten[28]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.fishEaten[29]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.fishEaten[30]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.fishEaten[31]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 31
onClipEvent (enterFrame) {
if (_root.fishEaten[32]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 32
onClipEvent (enterFrame) {
if (_root.fishEaten[33]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.fishEaten[34]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 34
onClipEvent (enterFrame) {
if (_root.fishEaten[35]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 35
onClipEvent (enterFrame) {
if (_root.fishEaten[36]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 36
onClipEvent (enterFrame) {
if (_root.fishEaten[37]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.fishEaten[38]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 38
onClipEvent (enterFrame) {
if (_root.fishEaten[39]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 39
onClipEvent (enterFrame) {
if (_root.fishEaten[40]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 40
onClipEvent (enterFrame) {
if (_root.fishEaten[41]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.fishEaten[42]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 42
onClipEvent (enterFrame) {
if (_root.fishEaten[43]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 43
onClipEvent (enterFrame) {
if (_root.fishEaten[44]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 44
onClipEvent (enterFrame) {
if (_root.fishEaten[45]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.fishEaten[46]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 46
onClipEvent (enterFrame) {
if (_root.fishEaten[47]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 47
onClipEvent (enterFrame) {
if (_root.fishEaten[48]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 48
onClipEvent (enterFrame) {
if (_root.fishEaten[49]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.fishEaten[50]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 50
onClipEvent (enterFrame) {
if (_root.fishEaten[51]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 51
onClipEvent (enterFrame) {
if (_root.fishEaten[52]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 52
onClipEvent (enterFrame) {
if (_root.fishEaten[53]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.fishEaten[54]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 54
onClipEvent (enterFrame) {
if (_root.fishEaten[55]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 55
onClipEvent (enterFrame) {
if (_root.fishEaten[56]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 56
onClipEvent (enterFrame) {
if (_root.fishEaten[57]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.fishEaten[58]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 58
onClipEvent (enterFrame) {
if (_root.fishEaten[59]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 59
onClipEvent (enterFrame) {
if (_root.fishEaten[60]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 60
onClipEvent (enterFrame) {
if (_root.fishEaten[61]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.fishEaten[62]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 62
onClipEvent (enterFrame) {
if (_root.fishEaten[63]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 63
onClipEvent (enterFrame) {
if (_root.fishEaten[64]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 64
onClipEvent (enterFrame) {
if (_root.fishEaten[65]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.fishEaten[66]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 66
onClipEvent (enterFrame) {
if (_root.fishEaten[67]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 67
onClipEvent (enterFrame) {
if (_root.fishEaten[68]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_root.fishEaten[69]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.fishEaten[70]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 70
onClipEvent (enterFrame) {
if (_root.fishEaten[71]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 71
onClipEvent (enterFrame) {
if (_root.fishEaten[72]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 72
onClipEvent (enterFrame) {
if (_root.fishEaten[73]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.fishEaten[74]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 74
onClipEvent (enterFrame) {
if (_root.fishEaten[75]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 75
onClipEvent (enterFrame) {
if (_root.fishEaten[76]) {
this._alpha = 0;
}
}
Instance of Symbol 2073 MovieClip "lock" in Symbol 2150 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.fishEaten[77]) {
this._alpha = 0;
}
}
Symbol 2155 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 2164 Button
on (press) {
_root.reminder = false;
gotoAndStop (1);
}
Symbol 2165 MovieClip Frame 1
stop();
Symbol 2165 MovieClip Frame 2
stop();
Symbol 2166 MovieClip Frame 1
if (_root.reminder) {
reminderwindow.gotoAndStop(2);
}
Instance of Symbol 2158 MovieClip in Symbol 2166 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(_root.arrowleft) && (_root.fishnumber > 1)) && (!_root.leftdown)) {
_root.fishnumber = _root.fishnumber - 1;
_root.gallery.fishes.prevFrame();
_root.leftdown = true;
}
if (!Key.isDown(_root.arrowleft)) {
_root.leftdown = false;
}
if (!Key.isDown(_root.arrowright)) {
_root.rightdown = false;
}
if ((Key.isDown(_root.arrowright) && (_root.fishnumber < 76)) && (!_root.rightdown)) {
_root.fishnumber = _root.fishnumber + 1;
_root.gallery.fishes.nextFrame();
_root.rightdown = true;
}
}
Symbol 2178 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
_root.tryagain = true;
_root.gotoAndStop("main");
}
Symbol 2183 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
stopAllSounds();
_root.loopstarted1 = false;
_root.loopstarted2 = false;
_root.loopstarted3 = false;
_root.loopstarted4 = false;
_cobaltsphere.start();
_root.gotoAndStop("main");
}
Symbol 2188 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=evolvo", "_blank");
}
Symbol 2247 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracude";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.ranking = "Cheater!!!";
_root.score = 0;
}
if (_root.easymode) {
_root.scoremultiplier = 0.5;
}
if (_root.normalmode) {
_root.scoremultiplier = 0.75;
}
if (_root.hardmode) {
_root.scoremultiplier = 1;
}
if (_root.insanemode) {
_root.scoremultiplier = 1.5;
}
_root.getscore = Math.round((_root.score = _root.score * _root.scoremultiplier));
_root.getdiversity = _root.diversity;
_root.getranking = _root.ranking;
Instance of Symbol 2198 MovieClip in Symbol 2247 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = random(100000000) + 100;
_root.ranking = random(100000000) + 100;
}
Symbol 2247 MovieClip Frame 35
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2247 MovieClip Frame 35
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2247 MovieClip Frame 47
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2247 MovieClip Frame 47
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2247 MovieClip Frame 60
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2247 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = _root.getranking;
}
Symbol 2247 MovieClip Frame 68
stop();
Symbol 2250 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracude";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.score = 0;
_root.ranking = "Cheater!!!";
}
Symbol 2250 MovieClip Frame 50
stop();
_root.loopstarted1 = false;
Symbol 2260 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracude";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.score = 0;
_root.ranking = "Cheater!!!";
}
if (!_root.soundoff) {
_root.playEffect(_root.doorshut);
}
Symbol 2260 MovieClip Frame 50
stop();
_root.loopstarted1 = false;
Symbol 2266 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracude";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.score = 0;
_root.ranking = "Cheater!!!";
}
Symbol 2266 MovieClip Frame 50
stop();
_root.loopstarted1 = false;
Symbol 2273 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracude";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.score = 0;
_root.ranking = "Cheater!!!";
}
Symbol 2273 MovieClip Frame 50
stop();
_root.loopstarted1 = false;
Symbol 2282 Button
on (release) {
var o = {n:[12, 8, 0, 0, 0, 7, 9, 6, 10, 9, 11, 3, 6, 11, 9, 3], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_root.score});
}
Symbol 2340 MovieClip Frame 1
if (_root.score < 400) {
_root.ranking = "Loser";
}
if (_root.score > 399) {
_root.ranking = "Plankton";
}
if (_root.score > 799) {
_root.ranking = "Shrimp";
}
if (_root.score > 1399) {
_root.ranking = "Sardine";
}
if (_root.score > 9999) {
_root.ranking = "Fugu";
}
if (_root.score > 29999) {
_root.ranking = "Scorpion Fish";
}
if (_root.score > 59999) {
_root.ranking = "Cod";
}
if (_root.score > 119999) {
_root.ranking = "Salmon";
}
if (_root.score > 239999) {
_root.ranking = "Red Tuna";
}
if (_root.score > 499999) {
_root.ranking = "Barracuda";
}
if (_root.score > 999999) {
_root.ranking = "Marlin";
}
if (_root.score > 1999999) {
_root.ranking = "Shark";
}
if (_root.score > 3999999) {
_root.ranking = "Top Predator";
}
if (_root.score > 4999999) {
_root.mmm10 = 43;
_root.medalz.gotoAndPlay("medalcheck");
_root.ranking = "Sea Monster";
}
if (_root.cheater) {
_root.ranking = "Cheater!!!";
}
if (_root.easymode) {
_root.mmm2 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.insanemode) {
_root.mmm5 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.normalmode) {
_root.mmm3 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.hardmode) {
_root.mmm4 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
_root.getscore = _root.score;
_root.getdiversity = _root.diversity;
_root.getranking = _root.ranking;
Instance of Symbol 2198 MovieClip in Symbol 2340 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = random(100000000) + 100;
_root.ranking = random(100000000) + 100;
}
Symbol 2340 MovieClip Frame 35
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2340 MovieClip Frame 35
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2340 MovieClip Frame 47
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2340 MovieClip Frame 47
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2340 MovieClip Frame 60
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2198 MovieClip in Symbol 2340 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = _root.getranking;
}
Symbol 2340 MovieClip Frame 68
stop();
Symbol 2373 MovieClip Frame 82
gotoAndPlay ("reloop");
Symbol 2376 MovieClip Frame 14
stop();
Symbol 2377 MovieClip Frame 40
stop();
Symbol 2377 MovieClip Frame 41
play();
Symbol 2377 MovieClip Frame 55
_parent.gotoAndStop("movie");
Symbol 2379 Button
on (press) {
_root.gotoAndStop("movie");
}
Symbol 2380 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip in Symbol 2380 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundoff) {
stopAllSounds();
_root.loopstarted3 = false;
}
if (!_root.soundoff) {
if (!_root.loopstarted3) {
_root.loop3 = new Sound(_root.bgloop);
_root.loop3.attachSound("winloop");
_root.loop3.start(0, 999);
_root.loop3.setVolume(_root.bgvolume);
_root.loopstarted3 = true;
}
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (!_root.soundoff)) {
_root.soundoff = true;
_root.keymusic = true;
}
if ((Key.isDown(_root.keym) && (!_root.keymusic)) && (_root.soundoff)) {
_root.soundoff = false;
_root.keymusic = true;
}
if (!Key.isDown(_root.keym)) {
_root.keymusic = false;
}
}
Symbol 2634 MovieClip Frame 1
stopAllSounds();
Symbol 2634 MovieClip Frame 2
Symbol 2634 MovieClip Frame 3
if (_root.soundoff) {
stopAllSounds();
}
Symbol 2634 MovieClip Frame 927
if (!_root.soundoff) {
_root.playEffect(_root.sonar);
}
Symbol 2634 MovieClip Frame 991
_parent.gotoAndStop("credits");
Symbol 2635 Button
on (press) {
gotoAndStop ("credits");
}
Symbol 2646 MovieClip Frame 42
stop();
Symbol 2652 Button
on (press) {
stopAllSounds();
_root.loopstarted1 = false;
_root.loopstarted2 = false;
_root.loopstarted3 = false;
_root.loopstarted4 = false;
_cobaltsphere.start();
_root.gotoAndStop("main");
}
Symbol 2660 MovieClip Frame 20
stop();
Symbol 2661 MovieClip Frame 141
stop();