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 initGame() {
_root.reminder = true;
_root.reminder2 = true;
_root.christmas = false;
_root.gameexists = false;
_root.evolution = 1;
_root.cheater = false;
_root.level = 1;
_root.nextlevel = 10;
_root.agility = 1;
_root.speed = 1;
_root.fishfriction = 0.95;
_root.boxes = false;
_root.labelz = true;
_root.bossfightt = false;
_root.diffselected = false;
_root.instructionss = false;
_root.morphfishcheat = false;
_root.morphnumber = 0;
_root.cheatinvincible = false;
_root.fishEaten = new Array();
i = 0;
while (i < 99) {
_root.fishEaten[i] = false;
i++;
}
}
function createSaveFile() {
savefile.data.fileCreated = true;
initGame();
savemydata();
}
function loadmydata() {
_root.fishEaten = savefile.data.fishEaten.concat();
_root.reminder2 = savefile.data.reminder2;
_root.reminder = savefile.data.reminder;
_root.christmas = savefile.data.christmas;
_root.instructions = savefile.data.instructionss;
_root.boxes = savefile.data.boxess;
_root.labelz = savefile.data.labelz;
_root.autolevel = savefile.data.autolevell;
_root.soundoff = savefile.data.soundofff;
_root.cheater = savefile.data.cheaterr;
_root.evolution = savefile.data.evolution;
_root.level = savefile.data.level;
_root.nextlevel = savefile.data.nextlevel;
_root.agility = savefile.data.agility;
_root.speed = savefile.data.speed;
_root.fishfriction = savefile.data.fishfriction;
_root.gameexists = savefile.data.gameexists;
_root.bossfightt = savefile.data.bossfightt;
_root.diffselected = savefile.data.diffselected;
_root.easymode = savefile.data.easymode;
_root.normalmode = savefile.data.normalmode;
_root.hardmode = savefile.data.hardmode;
_root.insanemode = savefile.data.insanemode;
_root.instructionss = savefile.data.instructionss;
_root.morphfishcheat = savefile.data.morphfishcheat;
_root.morphnumber = savefile.data.morphnumber;
_root.cheatinvincible = savefile.data.cheatinvincible;
}
function savemydata() {
_root.savefile.data.reminder = _root.reminder;
_root.savefile.data.reminder2 = _root.reminder2;
_root.savefile.data.labelz = _root.labelz;
_root.savefile.data.christmas = _root.christmas;
_root.savefile.data.boxess = _root.boxes;
_root.savefile.data.autolevell = _root.autolevel;
_root.savefile.data.soundofff = _root.soundoff;
_root.savefile.data.cheaterr = _root.cheater;
_root.savefile.data.evolution = _root.evolution;
_root.savefile.data.diversity = _root.diversity;
_root.savefile.data.fishEaten = _root.fishEaten.concat();
_root.savefile.data.fishfriction = _root.fishfriction;
_root.savefile.data.level = _root.level;
_root.savefile.data.nextlevel = _root.nextlevel;
_root.savefile.data.agility = _root.agility;
_root.savefile.data.speed = _root.speed;
_root.savefile.data.gameexists = _root.gameexists;
_root.savefile.data.bossfightt = _root.bossfightt;
_root.savefile.data.diffselected = _root.diffselected;
_root.savefile.data.easymode = _root.easymode;
_root.savefile.data.normalmode = _root.normalmode;
_root.savefile.data.hardmode = _root.hardmode;
_root.savefile.data.insanemode = _root.insanemode;
_root.savefile.data.instructionss = _root.instructionss;
_root.savefile.data.morphfishcheat = _root.morphfishcheat;
_root.savefile.data.morphnumber = _root.morphnumber;
_root.savefile.data.cheatinvincible = _root.cheatinvincible;
_root.savefile.flush();
}
function cleardata() {
_root.christmas = false;
_root.evolution = 1;
_root.cheater = false;
_root.gameexists = false;
_root.level = 1;
_root.nextlevel = 10;
_root.agility = 1;
_root.speed = 1;
_root.fishfriction = 0.95;
_root.boxes = false;
_root.labelz = true;
_root.bossfightt = false;
_root.diffselected = false;
_root.morphfishcheat = false;
_root.morphnumber = 0;
_root.cheatinvincible = false;
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2013 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.gameexists = false;
trace(_root.gameexists);
urls_allowed = ["www.flashgamelicense.com", "www.thepoxbox.com", "www.newgrounds.com", "www.newgrounds.com/"];
sitelock(urls_allowed);
_root.betta.swapDepths(10000000);
var savefile = SharedObject.getLocal("savegame");
if (!savefile.data.fileCreated) {
trace("creating save file");
createSaveFile();
}
loadmydata();
if (_root.fishEaten[i] == true) {
_root.diversity++;
}
mochi.as2.MochiAd.showPreGameAd({id:"3bbed794af5316e1", res:"700x500"});
mochi.as2.MochiServices.connect("3bbed794af5316e1");
Frame 2
stop();
Instance of Symbol 79 MovieClip in Frame 2
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 108 MovieClip "loaderthing" in Frame 2
onClipEvent (enterFrame) {
_root.bt = _root.getBytesTotal();
_root.bl = _root.getBytesLoaded();
_root.perc = (_root.bl / _root.bt) * 100;
_root.loaderthing.gotoAndStop(Math.round(_root.perc));
}
Frame 6
Instance of Symbol 362 MovieClip "shooter" in Frame 6
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 14
Frame 15
stop();
Instance of Symbol 79 MovieClip in Frame 15
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;
}
};
}
}
Frame 25
function playEffect(sname) {
sname.start();
sname.setVolume(bgvolume);
}
this.createEmptyMovieClip("sfx", 1);
this.createEmptyMovieClip("bgloop", 0);
_root.bgvolume = 100;
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");
boss_bigmetal = new Sound(sfx);
boss_bigmetal.attachSound("boss_bigmetal");
boss_chargedrop = new Sound(sfx);
boss_chargedrop.attachSound("boss_chargedrop");
boss_explosion = new Sound(sfx);
boss_explosion.attachSound("boss_explosion");
boss_missile = new Sound(sfx);
boss_missile.attachSound("boss_missile");
boss_propeler = new Sound(sfx);
boss_propeler.attachSound("boss_propeler");
boss_sonar = new Sound(sfx);
boss_sonar.attachSound("boss_sonar");
boss_torpedo = new Sound(sfx);
boss_torpedo.attachSound("boss_torpedo");
boss_alarm = new Sound(sfx);
boss_alarm.attachSound("boss_alarm");
boss_splat1 = new Sound(sfx);
boss_splat1.attachSound("boss_splat1");
boss_splat2 = new Sound(sfx);
boss_splat2.attachSound("boss_splat2");
boss_splat3 = new Sound(sfx);
boss_splat3.attachSound("boss_splat3");
boss_hatchclose = new Sound(sfx);
boss_hatchclos.attachSound("boss_hatchclos");
boss_hatchopen = new Sound(sfx);
boss_hatchopen.attachSound("boss_hatchopen");
a_angel = new Sound(sfx);
a_angel.attachSound("a_angel");
a_clock = new Sound(sfx);
a_clock.attachSound("a_clock");
a_current = new Sound(sfx);
a_current.attachSound("a_current");
a_death = new Sound(sfx);
a_death.attachSound("a_death");
a_ink = new Sound(sfx);
a_ink.attachSound("a_ink");
a_oil = new Sound(sfx);
a_oil.attachSound("a_oil");
a_redwave = new Sound(sfx);
a_redwave.attachSound("a_redwave");
a_shootelectricity = new Sound(sfx);
a_shootelectricity.attachSound("a_shootelectricity");
a_warning = new Sound(sfx);
a_warning.attachSound("a_warning");
a_zap = new Sound(sfx);
a_zap.attachSound("a_zap");
play();
Frame 29
gotoAndStop ("main");
Frame 33
stop();
if (com.newgrounds.API.__get__hasUserSession()) {
logbutton._x = logbutton._x + 1000;
}
_root.gameisover = false;
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
_root.bossfight = false;
_root.invincible = false;
_root.currentsize = 4;
_root.totalbubbles = 0;
_root.bubblezzz = true;
_root.deadstarted = false;
_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;
_root.arrowleft2 = 65;
_root.arrowright2 = 68;
_root.arrowup2 = 87;
_root.arrowdown2 = 83;
if (!_root.morphfishcheat) {
fish = _root.attachMovie("evolvo1", "fish", -10000);
_root.fish._width = 52.2;
_root.fish._height = 23.65;
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._visible = false;
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.evolution == 5) {
_root.fish.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("idle6");
}
}
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.yourfishsize = _root.fish._height + _root.fish._width;
if (_root.tryagain) {
_root.loopstarted1 = false;
_root.gotoAndStop("game");
_root.tryagain = false;
}
_root.exitbtn.unloadMovie();
_root.exitbtn.removeMovieClip();
if (_root.newgameloop) {
_root.newgameloop = false;
_root.gotoAndStop("game");
}
Instance of Symbol 79 MovieClip in Frame 33
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 41
stop();
_root.spillrate = 2000;
_root.slowtimer = 0;
_root.oilsoundstarted = false;
_root.wavesoundstarted = false;
_root.currentstarted = false;
_root.aar = 0;
_root.currentrate = 20;
_root.currenttotal = 0;
_root.maxcurrents = 10;
_root.fishtransformed = false;
_root.tidecounter2 = 0;
_root.tidecounter = 0;
_root.tidedown2 = false;
_root.tidedown = false;
_root.tidehere = false;
_root.tidehere2 = false;
_root.poisonfishcount = 0;
_root.poisonnn = false;
_root.gameexists = true;
_root.stopleveling = false;
_root.savemydata();
_root.electrified = false;
_root.electrifiedcounter = 0;
_root.electricspawned = false;
randdd = 0;
effcv = 1;
_root.maxagility = 6;
_root.maxspeed = 300;
_root.slowdown = false;
_root.ppget = false;
_root.scores.bluebar._alpha = 0;
_root.scores.redbar._alpha = 0;
_root.loopstarted2 = false;
_root.eatratio = 1;
_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.klocks.swapDepths(_root.invinciballs.getNextHighestDepth());
_root.pausescreen.swapDepths(_root.klocks.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.difficultyselect.swapDepths(_root.netted.getNextHighestDepth());
_root.tutorial.swapDepths(_root.difficultyselect.getNextHighestDepth());
_root.endingfader.swapDepths(500);
_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.morphfishcheat = false;
}
if (_root.reminder2 && (_root.aquarium)) {
_root.window.gotoAndStop(2);
}
_root.endless = false;
_root.fishname = 0;
_root.ppget = false;
_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.bbsize = 0;
_root.points = 0;
_root.fishvelocity = 0.7;
_root.maxdepth = 480;
_root.mindepth = 65;
_root.maxfish = 20;
_root.yourfishsize = 0;
_root.fishsizes = 33;
_root.spawnrate = 10;
_root.death = "arggle";
_root.datide = false;
_root.pausee = false;
_root.evolock = true;
_root.bgmax = 550;
var diversity = _root.savefile.data.diversity;
_root.scores.bluebar._visible = false;
_root.scores.redbar._visible = false;
_root.score = 0;
_root.shield = false;
_root.blurbtext = "nothing";
_root.labels = true;
_root.purate = 4000;
_root.netrate = 5000;
_root.barrelrate = 5000;
_root.cagerate = 20000;
_root.fish.xvel = 0;
_root.fish.yvel = 0;
_root.fish.xvel2 = 0;
_root.fish.yvel2 = 0;
Instance of Symbol 2558 MovieClip in Frame 41
onClipEvent (load) {
function colorchange() {
myColor = new Color(tar);
myColorTransform = new Object();
myColorTransform = {rb:random(50), gb:random(50), bb:random(50)};
myColor.setTransform(myColorTransform);
}
function gethit() {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_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";
_root.pkey = 2321;
_root.pausee = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.alert1.unloadMovie();
_root.alert1.removeMovieClip();
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
if (!_root.fishtransformed) {
_root.fishtransformed = true;
_root.fish._yscale = _root.fish._yscale * -1;
_root.fish.eyes._alpha = 100;
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:150, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
}
}
function autolevelf() {
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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
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 < _root.maxagility) {
_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 >= _root.maxagility) {
_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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
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 < _root.maxagility) {
_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 >= _root.maxagility) {
_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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (((_root.level == 13) or (_root.level == 14)) or (_root.level == 15)) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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 == 16) {
if (_root.evolution < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if ((((_root.level == 17) or (_root.level == 18)) or (_root.level == 19)) or (_root.level == 20)) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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 == 21) {
if (_root.evolution < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (_root.level > 21) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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;
}
}
function endthegame() {
stopAllSounds();
_root.endingfader.gotoAndPlay(1);
_root.endingfader._visible = true;
_root.pkey = 2321;
_root.pausee = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.bossfightt = true;
_root.savemydata();
}
function sparklespawn() {
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;
}
function spawnfish() {
if (_root.badfishdepth < -1990) {
_root.badfishkind = 99;
}
if ((_root.badfishdepth >= -1990) && (_root.badfishdepth <= -1200)) {
_root.badfishkind = random(33) + 65;
if ((((_root.badfishkind == 74) or (_root.badfishkind == 73)) or (_root.badfishkind == 72)) or (_root.badfishkind == 92)) {
_root.badfishkind = random(33) + 65;
}
if ((((_root.badfishkind == 74) or (_root.badfishkind == 73)) or (_root.badfishkind == 72)) or (_root.badfishkind == 92)) {
_root.badfishkind = random(33) + 65;
}
if ((((_root.badfishkind == 84) or (_root.badfishkind == 93)) or (_root.badfishkind == 94)) or ((_root.badfishkind == 95) && (_root.evolution < 4))) {
_root.badfishkind = random(33) + 50;
}
}
if ((_root.badfishdepth >= -1200) && (_root.badfishdepth <= -550)) {
_root.badfishkind = random(44) + 20;
if (((_root.badfishkind == 62) or (_root.badfishkind == 63)) or (_root.badfishkind == 64)) {
_root.badfishkind = random(44) + 20;
}
if (((_root.badfishkind == 62) or (_root.badfishkind == 63)) or (_root.badfishkind == 64)) {
_root.badfishkind = random(44) + 20;
}
}
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) {
randdd = random(15);
if (randdd == 3) {
_root.badfishkind = random(17) + 3;
} else {
_root.badfishkind = random(13) + 3;
}
}
if ((_root.badfishkind == 13) && (_root.evolution < 4)) {
_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)) && (!_root.pausee)) && (!_root.slowdown)) {
if (((((_root.badfishkind == 5) or (_root.badfishkind == 7)) or (_root.badfishkind == 52)) or (_root.badfishkind == 53)) or (_root.badfishkind == 54)) {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
} else {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname + 10000);
}
_root.newfishscale = random(_root.fishsizes);
if (_root.aquarium) {
tar.poison._alpha = 0;
}
colorchange();
tar._yscale = tar._yscale + _root.newfishscale;
tar.fishkind = _root.badfishkind;
tar._xscale = tar._xscale + (_root.newfishscale * 0.6);
tar.sizee = tar._height + tar._width;
tar._x = 300 + tar._width;
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 (this.fishkind == 71) {
randdd = random(200);
if (randdd == 29) {
if (!_root.soundoff) {
_root.playEffect(_root.a_ink);
}
inky = _root.backgrounda.attachMovie("inkcloud", "rinky" + random(10000), _root.fishname + 20000);
inky._x = this._x;
inky._y = this._y;
randdd = this._width / inky._width;
inky._xscale = inky._xscale * (randdd * 0.8);
inky._yscale = inky._yscale * randdd;
}
}
if (_root.labelz && (!_root.aquarium)) {
if (this.sizee <= (_root.eatratio * _root.yourfishsize)) {
this.el._alpha = 100;
}
if (this.sizee > (_root.eatratio * _root.yourfishsize)) {
if (!_root.megaballs) {
this.el._alpha = 0;
}
}
}
if ((!_root.labelz) or _root.aquarium) {
tar.el._alpha = 0;
}
if (_root.labelz && (_root.megaballs)) {
this.el._alpha = 100;
}
if (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if ((!_root.pausee) && (!_root.slowdown)) {
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)) && (!_root.pausee)) && (!_root.slowdown)) {
if (((((_root.badfishkind == 5) or (_root.badfishkind == 7)) or (_root.badfishkind == 52)) or (_root.badfishkind == 53)) or (_root.badfishkind == 54)) {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
} else {
tar = _root.backgrounda.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname + 10000);
}
_root.newfishscale = random(_root.fishsizes);
if (_root.aquarium) {
tar.poison._alpha = 0;
}
tar._yscale = tar._yscale + _root.newfishscale;
tar.fishkind = _root.badfishkind;
colorchange();
tar._xscale = tar._xscale + (_root.newfishscale * 0.6);
tar.sizee = tar._height + tar._width;
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 (this.fishkind == 71) {
randdd = random(200);
if (randdd == 29) {
inky = _root.backgrounda.attachMovie("inkcloud", "rinky" + random(10000), _root.fishname + 20000);
inky._x = this._x;
inky._y = this._y;
randdd = this._width / inky._width;
inky._xscale = inky._xscale * (randdd * 0.8);
inky._yscale = inky._yscale * randdd;
}
}
if (_root.labelz && (!_root.aquarium)) {
if (this.sizee <= (_root.eatratio * _root.yourfishsize)) {
this.el._alpha = 100;
}
if (this.sizee > (_root.eatratio * _root.yourfishsize)) {
if (!_root.megaballs) {
this.el._alpha = 0;
}
}
}
if ((!_root.labelz) or _root.aquarium) {
tar.el._alpha = 0;
}
if (_root.labelz && (_root.megaballs)) {
this.el._alpha = 100;
}
if (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if ((!_root.pausee) && (!_root.slowdown)) {
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;
}
}
function fisheat(who) {
if ((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) {
if (((((!_root.pausee) && (!_root.invisible)) && (!_root.megaballs)) && (who.fmouth.hitTest(_root.fish.body))) && (who.sizee > (_root.eatratio * _root.yourfishsize))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_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;
if (who.fishkind == 92) {
_root.mmm14 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
if (!_root.soundoff) {
_root.playEffect(_root.burp);
}
}
}
if (((!_root.pausee) && (who.hitTest(_root.fish.fmouth))) && (!_root.gameisover)) {
if ((who.sizee <= (_root.eatratio * _root.yourfishsize)) or _root.megaballs) {
_root.fish.body1.gotoAndPlay("eat");
if (!_root.aquarium) {
if (!_root.soundoff) {
_root.playEffect(_root.bitefx);
}
}
if (((((who.fishkind == 70) or (who.fishkind == 8)) or (who.fishkind == 9)) or (who.fishkind == 51)) or (who.fishkind == 36)) {
_root.poisonfishcount = _root.poisonfishcount + 1;
if (((!_root.poisonnn) && (_root.evolution < 5)) && (!_root.aquarium)) {
_root.poisonnn = true;
pois = _root.attachMovie("poisonscreen", "skreen" + _root.sparklecountage, 4444);
pois._height = 500;
pois._width = 700;
pois._y = 250;
pois._x = 350;
if (!_root.soundoff) {
_root.playEffect(_root.vomit);
}
_root.poisonned.gotoAndPlay("go");
}
}
_root.fisheatentotal = _root.fisheatentotal + 1;
_root.totalfish = _root.totalfish - 1;
if (!_root.bite) {
_root.fish.dabody.gotoAndPlay("eat");
}
if (!_root.pausee) {
_root.fishEaten[who.fishkind + 1] = true;
_root.diversity = 0;
if (((((who.fishkind == 13) or (who.fishkind == 84)) or (who.fishkind == 93)) or (who.fishkind == 94)) or ((who.fishkind == 95) && (!_root.cheater))) {
_root.mmm15 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (!_root.cheater) {
i = 0;
while (i < _root.fishEaten.length) {
if (_root.fishEaten[i] == true) {
_root.diversity++;
}
i++;
}
_root.score = _root.points * 33;
if (_root.diversity == 100) {
_root.mmm18 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.diversity == 50) {
_root.mmm9 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.fisheatentotal > 199) {
_root.mmm11 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.poisonfishcount >= 10) {
_root.mmm13 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
}
_root.savemydata;
if (_root.level <= 24) {
_root.nextlevel = _root.nextlevel - 1;
}
_root.growage = 1 + (_root.growthrate * (1 / (_root.yourfishsize / (who._width + who._height))));
if (_root.growage <= 1) {
_root.growage = 1;
}
if (_root.growage >= 2) {
_root.growage = 2;
}
if (!_root.megaballs) {
_root.fish._yscale = _root.fish._yscale * _root.growage;
_root.fish._xscale = _root.fish._xscale * _root.growage;
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
_root.points = _root.points + Math.round(who._height + who._width);
if ((((who._x > _root.fish.mouth._x) && (_root.faceleft)) && (!Key.isDown(_root.arrowleft))) && (!Key.isDown(_root.arrowleft2))) {
_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))) && (!Key.isDown(_root.arrowright2))) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = true;
_root.faceright = false;
}
if ((_root.level > 24) && (!_root.cheater)) {
_root.mmm17 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
}
_root.fishsize = who._width;
who.unloadMovie();
who.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
}
}
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
_root.speed = _root.savefile.data.speed;
_root.diversity = 0;
i = 0;
while (i < _root.fishEaten.length) {
if (_root.fishEaten[i] == true) {
_root.diversity++;
}
i++;
}
if (_root.morphfishcheat) {
_root.fish.stop();
_root.fish.poison._alpha = 0;
_root.fish.poizon._alpha = 0;
}
if (_root.evolution > 1) {
_root.bgmax = 2065;
}
if (_root.morphfishcheat) {
_root.fish.el._alpha = 0;
}
if ((!_root.diffselected) && (!_root.instructionss)) {
_root.difficultyselect.gotoAndPlay(2);
}
if (_root.diffselected) {
_root.diffselected = true;
if (_root.easymode) {
_root.maxfish = 15;
_root.currentsize = 5;
_root.growthrate = 0.025;
_root.minerate = 2000;
_root.maxenemyspeed = 2;
_root.easymode = true;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 4000;
_root.netrate = 5000;
_root.barrelrate = 5000;
_root.cagerate = 20000;
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.normalmode) {
_root.maxfish = 20;
_root.growthrate = 0.02;
_root.maxenemyspeed = 3;
_root.easymode = false;
_root.minerate = 1500;
_root.currentsize = 4;
_root.normalmode = true;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 5000;
_root.netrate = 4000;
_root.barrelrate = 4000;
_root.cagerate = 17000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.85;
_root.fish._xscale = _root.fish._xscale * 0.85;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.hardmore) {
_root.maxfish = 25;
_root.growthrate = 0.015;
_root.currentsize = 3;
_root.maxenemyspeed = 4;
_root.minerate = 1200;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = true;
_root.insanemode = false;
_root.purate = 6000;
_root.netrate = 3000;
_root.barrelrate = 3000;
_root.cagerate = 14000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.7;
_root.fish._xscale = _root.fish._xscale * 0.7;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.insanemode) {
_root.maxfish = 30;
_root.growthrate = 0.01;
_root.minerate = 1000;
_root.currentsize = 2;
_root.maxenemyspeed = 5;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = true;
_root.purate = 7000;
_root.netrate = 2000;
_root.barrelrate = 2000;
_root.cagerate = 10000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.5;
_root.fish._xscale = _root.fish._xscale * 0.5;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
}
trace(_root.currentsize);
}
onClipEvent (enterFrame) {
if (_root.soundoff) {
_root.loopstarted1 = false;
stopAllSounds();
}
if (_root.gameisover) {
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.evolution > 3) {
_root.scores.redbar._visible = true;
_root.scores.redbar._alpha = 100;
}
if (_root.evolution > 2) {
_root.scores.bluebar._visible = true;
_root.scores.bluebar._alpha = 100;
}
if (_root.speed > _root.maxspeed) {
_root.speed = _root.maxspeed;
}
if (_root.cheatinvincible) {
_root.invincible = true;
}
if (_root.score > 4999999) {
_root.mmm10 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
_root.deathcounter = _root.deathcounter + 1;
if (_root.deathcounter >= 30) {
_root.death = "";
_root.deathcounter = 0;
}
if (_root.electrified && (!_root.aquarium)) {
_root.electrifiedcounter = _root.electrifiedcounter + 1;
if (!_root.electricspawned) {
_root.electricspawned = true;
zap = _root.backgrounda.attachMovie("electricity", "zzap", 4);
zap._width = _root.fish._width * 1.3;
zap._height = _root.fish._height * 1.3;
zap._x = fishPoint.x;
zap._y = fishPoint.y;
zappy = _root.attachMovie("zapscreen", "skreen" + _root.sparklecountage, 4434);
zappy._height = 500;
zappy._width = 700;
zappy._y = 250;
zappy._x = 350;
}
if (_root.electrifiedcounter > 90) {
zap.unloadMovie();
zap.removeMovieClip();
_root.electrifiedcounter = 0;
_root.electricspawned = false;
_root.electrified = false;
}
}
if (_root.cheater) {
_root.points = 0;
_root.scores.scoring._alpha = 0;
_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) {
if (!_root.electrified) {
_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) or Key.isDown(_root.arrowleft2)) {
if (!_root.faceleft) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = true;
_root.faceright = false;
}
}
if (Key.isDown(_root.arrowright) or Key.isDown(_root.arrowright2)) {
if (!_root.faceright) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = false;
_root.faceright = true;
}
}
if (Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowleft2)) {
if (!_root.electrified) {
_root.fish._x = _root.fish._x - (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
if ((!_root.electrified) && (!_root.poisonnn)) {
_root.fish.xvel2 = _root.fish.xvel2 + _root.fishvelocity;
}
}
if (Key.isDown(_root.arrowup) or Key.isDown(_root.arrowup2)) {
if (!_root.electrified) {
_root.fish._y = _root.fish._y - (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
if ((!_root.electrified) && (!_root.poisonnn)) {
_root.fish.yvel2 = _root.fish.yvel2 + _root.fishvelocity;
}
}
if (Key.isDown(_root.arrowdown) or Key.isDown(_root.arrowdown2)) {
if (!_root.electrified) {
_root.fish._y = _root.fish._y + (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
if ((!_root.electrified) && (!_root.poisonnn)) {
_root.fish.yvel = _root.fish.yvel + _root.fishvelocity;
}
}
if (Key.isDown(_root.arrowright) or Key.isDown(_root.arrowright2)) {
if (!_root.electrified) {
_root.fish._x = _root.fish._x + (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
if ((!_root.electrified) && (!_root.poisonnn)) {
_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))) && (!Key.isDown(_root.arrowright2))) && (!Key.isDown(_root.arrowleft2))) && (!Key.isDown(_root.arrowup2))) && (!Key.isDown(_root.arrowdown2))) {
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.evolution == 5) {
_root.fish.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("idle6");
}
}
}
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.evolock) {
if (((_root.fish._y < 70) && (_root.backgrounda._y >= 500)) && (!(_root.backgrounda._y === _root.bgmax))) {
_root.fish._y = 70;
_root.backgrounda._y = _root.backgrounda._y + _root.fish.yvel2;
}
}
if ((_root.bgmax == 2065) && (_root.fish._y > 200)) {
_root.evolock = false;
}
if (!_root.evolock) {
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);
}
spawnfish();
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)) or Key.isDown(_root.arrowleft2)) or Key.isDown(_root.arrowright2)) or Key.isDown(_root.arrowup2)) or Key.isDown(_root.arrowdown2)) {
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)) or Key.isDown(_root.arrowleft2)) or Key.isDown(_root.arrowright2)) {
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)) or Key.isDown(_root.arrowleft2)) or Key.isDown(_root.arrowright2)) {
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 < 24)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = 10 + (_root.level * 2);
_root.levelupscreen.gotoAndStop("levelup");
}
if ((_root.nextlevel <= 0) && (_root.level == 24)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = "MAX LEVEL REACHED!!";
_root.levelupscreen.gotoAndStop("levelup");
}
if (_root.level == 25) {
_root.nextlevel = "MAX LEVEL REACHED!!";
}
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 <= 24)) {
_root.nextlevel = 10 + (_root.level * 2);
_root.level = _root.level + 1;
autolevelf();
}
if (_root.level == 25) {
_root.nextlevel = "Max Level Reached!";
}
}
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) {
sparklespawn();
}
}
}
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.endless) && (_root.fish._width >= 1201)) && (!_root.gameisover)) && (!_root.pausee)) && (!_root.aquarium)) {
endthegame();
}
if ((((!_root.gameisover) && (!_root.pausee)) && (_root.bossfightt)) && (!_root.aquarium)) {
endthegame();
}
if (_root.aquarium) {
_root.fish._height = 0.1;
_root.fish._width = 0.1;
_root.scores._visible = false;
_root.fish._visible = false;
_root.bgmax = 2065;
_root.invisible = true;
_root.pkey = 2321;
_root.musicbtn._visible = false;
_root.pausebtn._visible = false;
_root.qualitybtn._visible = false;
_root.difficultyselect.unloadMovie();
_root.difficultyselect.removeMovieClip();
}
if (((((((_root.evolution >= 2) && (!_root.tidehere)) && (!_root.datide)) && (_root.backgrounda.redtide._y >= 105)) && (_root.evolution <= 5)) && (!_root.pausee)) && (!_root.aquarium)) {
randdd = random(_root.spillrate);
if (randdd == 10) {
_root.tidehere = true;
_root.datide = true;
_root.backgrounda.redtide.gotoAndStop(2);
if (!_root.wavesoundstarted) {
_root.wavesound.gotoAndPlay(2);
_root.wavesoundstarted = true;
}
warning = _root.attachMovie("redalert", "alert1", 20114);
warning._x = 350;
warning._y = 74;
}
}
if ((_root.tidehere && (_root.backgrounda.redtide._y > -1035)) && (!_root.pausee)) {
_root.backgrounda.redtide._y = _root.backgrounda.redtide._y - 3;
_root.datide = true;
_root.tidecounter2 = 0;
}
if (((_root.backgrounda.redtide._y <= -1035) && (!_root.tidedown)) && (!_root.pausee)) {
_root.tidehere = false;
_root.datide = true;
_root.wavesound.gotoAndStop(1);
_root.wavesoundstarted = false;
_root.tidecounter2 = _root.tidecounter2 + 1;
}
if ((_root.tidecounter2 > 450) && (!_root.pausee)) {
_root.tidehere = false;
_root.tidedown = true;
if (!_root.wavesoundstarted) {
_root.wavesound.gotoAndPlay(2);
_root.wavesoundstarted = true;
}
_root.datide = true;
_root.backgrounda.redtide._y = _root.backgrounda.redtide._y + 3;
}
if (((_root.backgrounda.redtide._y > 105) && (_root.tidedown)) && (!_root.pausee)) {
_root.tidedown = false;
_root.datide = false;
_root.tidecounter2 = 0;
_root.wavesound.gotoAndStop(1);
_root.wavesoundstarted = false;
_root.backgrounda.redtide.gotoAndStop(1);
}
if ((((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) && (_root.evolution < 5)) && (!_root.pausee)) {
if ((!_root.pausee) && (_root.backgrounda.redtide.hitarea.hitTest(_root.fish.body))) {
gethit();
}
}
if (((((((_root.evolution >= 2) && (!_root.tidehere2)) && (!_root.datide)) && (_root.backgrounda.oilspill._y <= -2115)) && (!_root.pausee)) && (_root.evolution <= 5)) && (!_root.aquarium)) {
randdd = random(_root.spillrate);
if (randdd == 11) {
_root.datide = true;
_root.tidehere2 = true;
_root.backgrounda.oilspill.gotoAndStop(2);
warning = _root.attachMovie("spillalert", "alert1", 20114);
warning._x = 350;
warning._y = 74;
}
}
if ((_root.tidehere2 && (_root.backgrounda.oilspill._y < -815)) && (!_root.pausee)) {
_root.backgrounda.oilspill._y = _root.backgrounda.oilspill._y + 3;
_root.datide = true;
_root.tidecounter = 0;
if (!_root.oilsoundstarted) {
_root.oilsound.gotoAndPlay(2);
_root.oilsoundstarted = true;
}
}
if (((_root.backgrounda.oilspill._y >= -815) && (!_root.tidedown2)) && (!_root.pausee)) {
_root.tidehere2 = false;
_root.datide = true;
if (_root.oilsoundstarted) {
_root.oilsound.gotoAndStop(1);
_root.oilsoundstarted = false;
}
_root.tidecounter = _root.tidecounter + 1;
}
if ((_root.tidecounter > 450) && (!_root.pausee)) {
_root.tidehere2 = false;
_root.tidedown2 = true;
if (!_root.oilsoundstarted) {
_root.oilsound.gotoAndPlay(2);
_root.oilsoundstarted = true;
}
_root.datide = true;
_root.backgrounda.oilspill._y = _root.backgrounda.oilspill._y - 3;
}
if (((_root.backgrounda.oilspill._y <= -2115) && (_root.tidedown2)) && (!_root.pausee)) {
_root.datide = false;
_root.tidecounter = 0;
_root.tidedown2 = false;
if (_root.oilsoundstarted) {
_root.oilsound.gotoAndStop(1);
_root.oilsoundstarted = false;
}
_root.backgrounda.oilspill.gotoAndStop(1);
}
if ((((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) && (_root.evolution < 5)) && (!_root.pausee)) {
if ((!_root.pausee) && (_root.backgrounda.oilspill.hitarea.hitTest(_root.fish.body))) {
gethit();
}
}
rand = random(_root.currentrate);
if ((((rand == 1) && (!_root.pausee)) && (_root.currenttotal < _root.maxcurrents)) && (!_root.aquarium)) {
_root.currenttotal = _root.currenttotal + 1;
_root.aar = _root.aar + 1;
curr = _root.backgrounda.attachMovie("current", "curr" + _root.aar, 13114 + _root.aar);
curr._x = 5 + random(700);
curr._y = 470 - random(1900);
}
if (_root.christmas) {
_root.purate = 100;
_root.fish.hat._alpha = 100;
_root.fish.dabody.hat._alpha = 100;
}
if (_root.slowtimer > 0) {
_root.slowtimer = _root.slowtimer - 1;
}
if (_root.slowtimer < 0) {
_root.slowdown = false;
}
}
Frame 47
stop();
_root.fishnumber = 1;
Frame 54
stop();
if (_root.score > 4999999) {
_root.mmm10 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
_root.savemydata();
Instance of Symbol 79 MovieClip in Frame 54
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 61
stop();
Frame 70
_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.newgameloop) {
_root.newgameloop = false;
_root.gotoAndStop("game");
} else {
_root.gotoAndStop("main");
}
Frame 79
stop();
Frame 81
play();
Frame 93
stop();
Frame 121
stop();
Instance of Symbol 79 MovieClip in Frame 121
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;
}
}
Frame 131
stop();
_root.bossdeadtimer = 0;
_root.bossdeadstart = false;
_root.deadstarted = false;
_root.randum = 0;
_root.endingplaying = false;
_root.growthrate = 0.1;
_root.scores2.bluebar._alpha = 0;
_root.scores2.redbar._alpha = 0;
_root.gamewon = false;
_root.bossfaceleft = true;
_root.faceright = true;
_root.faceleft = false;
_root.bossbubblecount2 = 0;
_root.bossbubblecountage = 0;
_root.growage = 0;
if (!_root.morphfishcheat) {
fish = _root.attachMovie("evolvo1", "fish", -10000);
_root.fish._width = 52.2;
_root.fish._height = 23.65;
_root.fish._x = 360;
_root.fish._y = 385;
_root.fish._visible = true;
}
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 = true;
_root.fish.el._alpha = 0;
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.evolution == 5) {
_root.fish.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("idle6");
}
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
_root.fish.swapDepths(_root.daboss.getNextHighestDepth());
_root.scores2.swapDepths(_root.fish.getNextHighestDepth());
_root.levelupscreen.swapDepths(_root.scores2.getNextHighestDepth());
_root.pausescreen2.swapDepths(_root.levelupscreen.getNextHighestDepth());
_root.jaws.swapDepths(_root.pausescreen2.getNextHighestDepth());
_root.remind.swapDepths(_root.jaws.getNextHighestDepth());
_root.bossmode.swapDepths(_root.remind.getNextHighestDepth());
_root.endingfader2.swapDepths(_root.bossmode.getNextHighestDepth());
_root.fish.xvel = 0;
_root.fish.yvel = 0;
_root.fish.xvel2 = 0;
_root.fish.yvel2 = 0;
_root.smaller = 400;
_root.bossfight = true;
_root.bossstopped = false;
stop();
randdd = 0;
effcv = 1;
_root.leftright = 0;
_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.sparklecount = 0;
_root.sparklerandomizer = 0;
_root.sparklecountage = 0;
_root.fishsizes = 300;
_root.spawnrate = 10;
_root.death = "arggle";
_root.blurbtext = "nothing";
if ((!_root.diffselected) && (!_root.instructionss)) {
_root.difficultyselect.gotoAndPlay(2);
}
if (_root.diffselected) {
_root.diffselected = true;
if (_root.easymode) {
_root.maxfish = 15;
_root.maxenemyspeed = 2;
_root.easymode = true;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 4000;
_root.netrate = 5000;
_root.barrelrate = 5000;
_root.cagerate = 20000;
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.normalmode) {
_root.maxfish = 20;
_root.maxenemyspeed = 3;
_root.easymode = false;
_root.normalmode = true;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 5000;
_root.netrate = 4000;
_root.barrelrate = 4000;
_root.cagerate = 17000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.85;
_root.fish._xscale = _root.fish._xscale * 0.85;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.hardmore) {
_root.maxfish = 25;
_root.maxenemyspeed = 4;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = true;
_root.insanemode = false;
_root.purate = 6000;
_root.netrate = 3000;
_root.barrelrate = 3000;
_root.cagerate = 14000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.7;
_root.fish._xscale = _root.fish._xscale * 0.7;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.insanemode) {
_root.maxfish = 30;
_root.maxenemyspeed = 5;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = true;
_root.purate = 7000;
_root.netrate = 2000;
_root.barrelrate = 2000;
_root.cagerate = 10000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.5;
_root.fish._xscale = _root.fish._xscale * 0.5;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
}
_root.savemydata();
Instance of Symbol 2558 MovieClip in Frame 131
onClipEvent (load) {
function youdie() {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_root.scores2.redbar.redbar2._x == 29)) {
_root.scores2.redbar.redbar2._x = -200;
if (!_root.soundoff) {
_root.playEffect(_root.shieldhit);
}
}
if ((_root.evolution >= 4) && (!_root.shield)) {
_root.death = "saved";
} else if (!_root.invincible) {
split = _root.attachMovie("bloodz", "bloodz" + _root.fishname, _root.fishname);
split._x = _root.fish._x;
split._y = _root.fish._y;
split._xscale = split._xscale * (_root.fish.sizee / 150);
split._yscale = split._yscale * (_root.fish.sizee / 150);
if (!_root.soundoff) {
randum = random(3);
if (randum == 0) {
_root.playEffect(_root.boss_splat1);
}
if (randum == 1) {
_root.playEffect(_root.boss_splat2);
}
if (randum == 2) {
_root.playEffect(_root.boss_splat3);
}
}
_root.gameisover = true;
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.jaws.gotoAndPlay("chomp");
}
}
function fisheat(who) {
if (_root.fish.body.hitTest(_root.hitarea2) && (!_root.pausee)) {
if ((((!_root.pausee) && (!_root.invisible)) && (!_root.megabals)) && (sub.body.hitTest(_root.fish.body))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_root.scores2.redbar.redbar2._x == 29)) {
_root.scores2.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.endingfader2._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
if (!_root.soundoff) {
_root.playEffect(_root.burp);
}
}
}
if ((!_root.pausee) && (who.body.hitTest(_root.fish.body))) {
_root.fish.body1.gotoAndPlay("eat");
if (!_root.aquarium) {
if (!_root.soundoff) {
_root.playEffect(_root.bitefx);
}
}
if (!_root.bite) {
_root.fish.dabody.gotoAndPlay("eat");
}
_root.fisheatentotal = _root.fisheatentotal + 1;
_root.fishEaten[who.fishkind + 1] = true;
if (_root.level <= 24) {
_root.nextlevel = _root.nextlevel - 1;
}
_root.growage = 1 + (_root.growthrate * (1 / (_root.yourfishsize / (who._width + who._height))));
if (_root.growage <= 1) {
_root.growage = 1.5;
}
if (_root.growage >= 2) {
_root.growage = 2;
}
_root.fish._yscale = _root.fish._yscale * _root.growage;
_root.fish._xscale = _root.fish._xscale * _root.growage;
_root.yourfishsize = _root.fish._height + _root.fish._width;
_root.score = _root.score + 200;
if ((((who._x > _root.fish.mouth._x) && (_root.faceleft)) && (!Key.isDown(_root.arrowleft))) && (!Key.isDown(_root.arrowleft2))) {
_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))) && (!Key.isDown(_root.arrowright2))) {
_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;
}
}
}
function spawnfish() {
_root.badfishdepth = random(500);
_root.badfishkind = random(99) + 1;
if (((_root.badfishkind == 1) or (_root.badfishkind == 2)) or (_root.badfishkind == 99)) {
_root.badfishkind = 65;
}
if ((((_root.leftright == 1) && (_root.counter >= _root.spawnrate)) && (_root.totalfish <= _root.maxfish)) && (!_root.pausee)) {
tar = _root.backgrounda22.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
_root.newfishscale = random(_root.fishsizes);
tar._yscale = tar._yscale * (_root.newfishscale / _root.smaller);
tar.fishkind = _root.badfishkind;
tar._xscale = tar._xscale * (_root.newfishscale / _root.smaller);
tar.sizee = tar._height + tar._width;
tar.poison._alpha = 0;
tar.poizon._alpha = 0;
tar.el._alpha = 0;
tar._x = 800 + tar._width;
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 (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if (!_root.pausee) {
this._x = this._x - this.speed;
}
if ((((((((this.hitTest(_root.daboss.sub.body) or this.hitTest(_root.daboss.sub.body1)) or this.hitTest(_root.daboss.charge1.charge.hitarea)) or this.hitTest(_root.daboss.torpedo1.torpedo.hitarea)) or this.hitTest(_root.daboss.missile1.missile.hitarea)) or this.hitTest(_root.daboss.torpedo2.torpedo.hitarea)) or this.hitTest(_root.daboss.torpedo3.torpedo.hitarea)) or this.hitTest(_root.daboss.missile2.missile.hitarea)) or this.hitTest(_root.daboss.missile3.missile.hitarea)) {
if (!_root.gameisover) {
split = _root.attachMovie("bloodz", "bloodz" + _root.fishname, _root.fishname);
split._x = this._x;
split._y = this._y;
split._xscale = split._xscale * (this.sizee / 150);
split._yscale = split._yscale * (this.sizee / 150);
if (!_root.soundoff) {
randum = random(3);
if (randum == 0) {
_root.playEffect(_root.boss_splat1);
}
if (randum == 1) {
_root.playEffect(_root.boss_splat2);
}
if (randum == 2) {
_root.playEffect(_root.boss_splat3);
}
}
this.unloadMovie();
this.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
}
fisheat(this);
if (this._x < (-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.totalfish <= _root.maxfish)) && (!_root.pausee)) {
tar = _root.backgrounda22.attachMovie("badfish" + _root.badfishkind, "badfish" + _root.fishname, _root.fishname);
_root.newfishscale = random(_root.fishsizes);
tar._yscale = tar._yscale * (_root.newfishscale / _root.smaller);
tar.fishkind = _root.badfishkind;
tar._xscale = tar._xscale * (_root.newfishscale / _root.smaller);
tar.sizee = tar._height + tar._width;
tar.poison._alpha = 0;
tar.poizon._alpha = 0;
tar._xscale = tar._xscale * -1;
tar.el._alpha = 0;
tar._x = -100 - 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 (!this.speedselected) {
this.speed = random(_root.maxenemyspeed) + 1;
this.speedselected = true;
}
if (!_root.pausee) {
this._x = this._x + this.speed;
}
if ((((((this.hitTest(_root.daboss.sub.body) or this.hitTest(_root.daboss.sub.body1)) or this.hitTest(_root.daboss.charge1.charge.hitarea)) or this.hitTest(_root.daboss.torpedo1.torpedo.hitarea)) or this.hitTest(_root.daboss.missile1.missile.hitarea)) or this.hitTest(_root.daboss.torpedo2.torpedo.hitarea)) or this.hitTest(_root.daboss.torpedo3.torpedo.hitarea)) {
split = _root.attachMovie("bloodz", "bloodz" + _root.fishname, _root.fishname);
split._x = this._x;
split._y = this._y;
split._xscale = split._xscale * (this.sizee / 150);
split._yscale = split._yscale * (this.sizee / 150);
if (!_root.soundoff) {
randum = random(3);
if (randum == 0) {
_root.playEffect(_root.boss_splat1);
}
if (randum == 1) {
_root.playEffect(_root.boss_splat2);
}
if (randum == 2) {
_root.playEffect(_root.boss_splat3);
}
}
this.unloadMovie();
this.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
fisheat(this);
if (this._x > (700 + this._width)) {
this.unloadMovie();
this.removeMovieClip();
_root.totalfish = _root.totalfish - 1;
}
};
_root.fishname = _root.fishname + 1;
_root.counter = 0;
_root.totalfish = _root.totalfish + 1;
}
}
function sparklespawn() {
blip = _root.backgrounda22.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;
}
function autolevelf() {
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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
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 < _root.maxagility) {
_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 >= _root.maxagility) {
_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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
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 < _root.maxagility) {
_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 >= _root.maxagility) {
_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 < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (((_root.level == 13) or (_root.level == 14)) or (_root.level == 15)) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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 == 16) {
if (_root.evolution < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if ((((_root.level == 17) or (_root.level == 18)) or (_root.level == 19)) or (_root.level == 20)) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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 == 21) {
if (_root.evolution < 6) {
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.speed = _root.speed + 1;
if (_root.evolution == 2) {
_root.blurbtext = "level up! You can swim to the surface!";
}
if (_root.evolution == 3) {
_root.blurbtext = "Press SPACE to turn invisible!";
}
if (_root.evolution == 4) {
_root.blurbtext = "Shield up!";
}
if (_root.evolution == 5) {
_root.blurbtext = "Immune to POISON, OIL, RED TIDE, ELECTRICITY";
}
if (_root.evolution == 6) {
_root.blurbtext = "You can eat with your entire body!";
}
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
bla = _root.backgrounda.attachMovie("blurbs", "blar", 10000);
bla._y = fishPoint.y - 10;
bla._x = fishPoint.x;
} else {
if (_root.agility < _root.maxagility) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.stopleveling = true;
_root.blurbtext = "level up! Agility +1!";
}
if ((_root.agility >= _root.maxagility) && (!_root.stopleveling)) {
_root.speed = _root.speed + 1;
_root.stopleveling = false;
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;
}
}
leveluped = _root.backgrounda.attachMovie("levelup", "blur", 10002);
leveluped._y = fishPoint.y;
leveluped._x = fishPoint.x;
if (_root.level > 21) {
if (_root.agility < _root.maxagility) {
_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 >= _root.maxagility) {
_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;
}
}
zzz = 0;
if ((!_root.diffselected) && (!_root.instructionss)) {
_root.difficultyselect.gotoAndPlay(2);
}
if (_root.diffselected) {
_root.diffselected = true;
if (_root.easymode) {
_root.maxfish = 15;
_root.maxenemyspeed = 2;
_root.easymode = true;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 4000;
_root.netrate = 5000;
_root.barrelrate = 5000;
_root.cagerate = 20000;
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.normalmode) {
_root.maxfish = 20;
_root.maxenemyspeed = 3;
_root.easymode = false;
_root.normalmode = true;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 5000;
_root.netrate = 4000;
_root.barrelrate = 4000;
_root.cagerate = 17000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.85;
_root.fish._xscale = _root.fish._xscale * 0.85;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.hardmore) {
_root.maxfish = 25;
_root.maxenemyspeed = 4;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = true;
_root.insanemode = false;
_root.purate = 6000;
_root.netrate = 3000;
_root.barrelrate = 3000;
_root.cagerate = 14000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.7;
_root.fish._xscale = _root.fish._xscale * 0.7;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
if (_root.insanemode) {
_root.maxfish = 30;
_root.maxenemyspeed = 5;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = true;
_root.purate = 7000;
_root.netrate = 2000;
_root.barrelrate = 2000;
_root.cagerate = 10000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.5;
_root.fish._xscale = _root.fish._xscale * 0.5;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
}
}
_root.fish.fmouth._alpha = 0;
_root.fish.body._alpha = 0;
_root.fish.poison._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.cheatinvincible) {
_root.invincible = true;
}
_root.deathcounter = _root.deathcounter + 1;
if (_root.deathcounter >= 30) {
_root.death = "";
_root.deathcounter = 0;
}
if (_root.evolution > 3) {
_root.scores2.redbar._alpha = 100;
}
if (_root.evolution > 2) {
_root.scores2.bluebar._alpha = 100;
}
if (_root.evolution > 1) {
_root.bgmax = 2065;
}
if (_root.cheater) {
_root.points = 0;
_root.scores2.scoring._alpha = 0;
_root.cheatactive._alpha = 100;
}
if (!_root.cheater) {
_root.cheatactive._alpha = 0;
}
var fishPoint = (new flash.geom.Point(_root.fish._x, _root.fish._y));
_root.backgrounda22.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) or Key.isDown(_root.arrowleft2)) {
if (!_root.faceleft) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = true;
_root.faceright = false;
}
}
if (Key.isDown(_root.arrowright) or Key.isDown(_root.arrowright2)) {
if (!_root.faceright) {
_root.fish._xscale = _root.fish._xscale * -1;
_root.faceleft = false;
_root.faceright = true;
}
}
if (Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowleft2)) {
_root.fish._x = _root.fish._x - (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
_root.fish.xvel2 = _root.fish.xvel2 + _root.fishvelocity;
}
if (Key.isDown(_root.arrowup) or Key.isDown(_root.arrowup2)) {
_root.fish._y = _root.fish._y - (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
_root.fish.yvel2 = _root.fish.yvel2 + _root.fishvelocity;
}
if (Key.isDown(_root.arrowdown) or Key.isDown(_root.arrowdown2)) {
_root.fish._y = _root.fish._y + (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
_root.fish.yvel = _root.fish.yvel + _root.fishvelocity;
}
if (Key.isDown(_root.arrowright) or Key.isDown(_root.arrowright2)) {
_root.fish._x = _root.fish._x + (0.5 * _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");
}
if (_root.evolution == 5) {
_root.fish.gotoAndStop("move5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("move6");
}
_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))) && (!Key.isDown(_root.arrowright2))) && (!Key.isDown(_root.arrowleft2))) && (!Key.isDown(_root.arrowup2))) && (!Key.isDown(_root.arrowdown2))) {
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.evolution == 5) {
_root.fish.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
_root.fish.gotoAndStop("idle6");
}
}
}
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 < (0 + (_root.fish._height * 0.25))) {
_root.fish._y = 0 + (_root.fish._height * 0.25);
_root.fish.yvel2 = 0;
_root.fish.yvel = 0;
}
if (_root.fish._y > (500 - (_root.fish._height * 0.1))) {
_root.fish._y = 500 - (_root.fish._height * 0.1);
_root.fish.yvel2 = 0;
_root.fish.yvel = 0;
}
_root.counter++;
_root.badfishdepth = 0;
_root.leftright = random(2);
if (_root.counter >= _root.spawnrate) {
spawnfish();
}
if ((Key.isDown(_root.pkey) && (!_root.pausee)) && (!_root.keydownpause)) {
_root.pausescreen2.gotoAndPlay("pause");
_root.pausee = true;
_root.keydownpause = true;
}
if ((Key.isDown(_root.pkey) && (_root.pausee)) && (!_root.keydownpause)) {
_root.pausescreen2.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)) or Key.isDown(_root.arrowleft2)) or Key.isDown(_root.arrowright2)) or Key.isDown(_root.arrowup2)) or Key.isDown(_root.arrowdown2)) {
if (_root.bubblecount2 >= 3) {
bloop = _root.backgrounda22.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.bossbubblecount2 = _root.bossbubblecount2 + 1;
_root.bossbubblecountage = _root.bossbubblecountage + 1;
if (_root.bossbubblecount2 >= 1) {
bloop = _root.daboss.attachMovie("bubbleanim", "bubble2" + _root.bubblecountage, -(random(1000) + 1000));
_root.bubblerandomizer2 = random(3) + 1;
if (_root.bossfaceleft) {
bloop._y = (_root.daboss.sub._y + random(20)) + 74;
bloop._x = (_root.daboss.sub._x + random(20)) + 472;
}
if (!_root.bossfaceleft) {
bloop._y = (_root.daboss.sub._y + random(20)) + 74;
bloop._x = (_root.daboss.sub._x + random(20)) - 472;
}
bloop._xscale = bloop._xscale * _root.bubblerandomizer2;
bloop._yscale = bloop._yscale * _root.bubblerandomizer2;
_root.bubblerandomizer2 = 0;
_root.bossbubblecount2 = 0;
}
if (!_root.autolevel) {
if ((_root.nextlevel <= 0) && (_root.level < 24)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = 10 + (_root.level * 2);
_root.levelupscreen.gotoAndStop("levelup");
}
if ((_root.nextlevel <= 0) && (_root.level == 24)) {
_root.pausee = true;
_root.level = _root.level + 1;
_root.nextlevel = "MAX LEVEL REACHED!!";
_root.levelupscreen.gotoAndStop("levelup");
}
if (_root.level == 25) {
_root.nextlevel = "MAX LEVEL REACHED!!";
}
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 <= 24)) {
_root.nextlevel = 10 + (_root.level * 2);
_root.level = _root.level + 1;
autolevelf();
}
if (_root.level == 25) {
_root.nextlevel = "Max Level Reached!";
}
}
if ((_root.evolution >= 3) && (!_root.pausee)) {
if ((_root.scores2.bluebar.bluebar2._x <= 0) && (!_root.invisible)) {
_root.scores2.bluebar.bluebar2._x = _root.scores2.bluebar.bluebar2._x + 0.5;
}
if (Key.isDown(_root.spacekey) && (_root.scores2.bluebar.bluebar2._x > -130)) {
_root.fish._alpha = 20;
if ((!_root.soundoff) && (!_root.invisiblesound)) {
_root.fuckingsound.gotoAndPlay("go");
}
_root.invisible = true;
_root.scores2.bluebar.bluebar2._x = _root.scores2.bluebar.bluebar2._x - 2;
}
if (!Key.isDown(_root.spacekey)) {
_root.fish._alpha = 100;
_root.invisible = false;
}
if ((_root.scores2.bluebar.bluebar2._x <= -130) && (_root.invisible)) {
_root.scores2.bluebar.bluebar2._x = -200;
_root.invisible = false;
_root.fish._alpha = 100;
_root.spacekey = 1231;
}
if ((_root.scores2.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) {
sparklespawn();
}
}
}
if ((_root.evolution >= 4) && (!_root.pausee)) {
if (_root.scores2.redbar.redbar2._x <= 28) {
_root.scores2.redbar.redbar2._x = _root.scores2.redbar.redbar2._x + 1;
}
if (_root.scores2.redbar.redbar2._x == 29) {
_root.shield = false;
}
_root.shieldcounter = _root.shieldcounter + 1;
if (((_root.scores2.redbar.redbar2._x <= -150) && (_root.shieldcounter >= 4)) && (_root.fish._alpha == 100)) {
_root.fish._alpha = 0;
_root.shieldcounter = 0;
}
if (((_root.scores2.redbar.redbar2._x <= -150) && (_root.shieldcounter >= 4)) && (_root.fish._alpha == 0)) {
_root.fish._alpha = 60;
_root.shieldcounter = 0;
}
if (((!_root.invisible) && (_root.scores2.redbar.redbar2._x >= -100)) && (_root.scores2.redbar.redbar2._x <= 28)) {
_root.fish._alpha = 100;
_root.shield = true;
}
}
_root.loopstarted1 = false;
if (_root.soundoff) {
stopAllSounds();
_root.loopstarted2 = false;
}
if (!_root.soundoff) {
if (!_root.loopstarted2) {
_root.loop2 = new Sound(_root.bgloop);
_root.loop2.attachSound("boss_loop");
_root.loop2.start(0, 999);
_root.loop2.setVolume(_root.bgvolume);
_root.loopstarted2 = 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.yourfishsize > (_root.daboss.sub.bb._width + _root.daboss.sub.bb._height))) {
_root.daboss.sub.el._alpha = 100;
if (_root.fish.body.hitTest(_root.daboss.sub.body) or (_root.fish.body.hitTest(_root.daboss.sub.body1) && (!_root.gamewon))) {
if ((_root.morphnumber == 5) or (_root.morphnumber == 61)) {
_root.mmm16 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (!_root.cheater) {
if (_root.easymode) {
_root.mmm2 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.normalmode) {
_root.mmm3 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.hardmode) {
_root.mmm3 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.insanemode) {
_root.mmm4 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
}
stopAllSounds();
_root.fishEaten[101] = true;
daend = _root.attachMovie("endingfader2", "bareel" + zzz, 4444444);
daend._x = -61.65;
daend._y = -58.8;
_root.bossdeadtimer = 90;
_root.bossdeadstart = true;
_root.pausee = true;
_root.gamewon = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.bossfightt = false;
_root.daboss.unloadMovie();
_root.daboss.removeMovieClip();
_root.savemydata();
}
}
if (_root.pausee) {
_root.bossstopped = true;
_root.daboss.stop();
}
if ((!_root.pausee) && (_root.bossstopped)) {
_root.bossstopped = false;
_root.daboss.play();
}
if (((((!_root.invincible) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.invisible)) && (_root.fish.body.hitTest(_root.hitarea2))) {
if ((((((_root.fish.body.hitTest(_root.daboss.charge1.charge.hitarea) or _root.fish.body.hitTest(_root.daboss.torpedo1.torpedo.hitarea)) or _root.fish.body.hitTest(_root.daboss.missile1.missile.hitarea)) or _root.fish.body.hitTest(_root.daboss.torpedo2.torpedo.hitarea)) or _root.fish.body.hitTest(_root.daboss.torpedo3.torpedo.hitarea)) or _root.fish.body.hitTest(_root.daboss.missile2.missile.hitarea)) or _root.fish.body.hitTest(_root.daboss.missile3.missile.hitarea)) {
youdie();
}
}
if ((((((!_root.invincible) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.invisible)) && (_root.yourfishsize <= (_root.daboss.sub.bb._width + _root.daboss.sub.bb._height))) && (_root.fish.body.hitTest(_root.hitarea2))) {
if (_root.fish.body.hitTest(_root.daboss.sub.body) or _root.fish.body.hitTest(_root.daboss.sub.body1)) {
youdie();
}
}
randompick55 = random(50);
if ((((randompick55 == 10) && (!_root.aquarium)) && (_root.hazards)) && (!_root.pausee)) {
randompick55 = 0;
minez = _root.backgrounda22.attachMovie("mines2", "bareel" + zzz, random(1000) - zzz);
zzz = zzz + 1;
minez._xscale = minez._xscale * 0.5;
minez._yscale = minez._yscale * 0.5;
minez._y = _root.backgrounda22._y - 150;
minez._x = 5 + random(700);
}
if (_root.score > 4999999) {
_root.mmm10 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
if (_root.christmas) {
_root.purate = 100;
_root.fish.hat._alpha = 100;
_root.fish.dabody.hat._alpha = 100;
}
if ((!_root.deadstarted) && (_root.gamewon)) {
stopAllSounds();
_root.fishEaten[101] = true;
daend = _root.attachMovie("endingfader2", "endfade", 4444444);
daend._x = -61.65;
daend._y = -58.8;
_root.bossdeadtimer = 90;
_root.bossdeadstart = true;
_root.pausee = true;
_root.deadstarted = true;
_root.gamewon = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.bossfightt = false;
_root.daboss.unloadMovie();
_root.daboss.removeMovieClip();
_root.savemydata();
}
if (_root.bossdeadstart) {
_root.bossdeadtimer = _root.bossdeadtimer - 1;
if (_root.bossdeadtimer < 1) {
_root.endfade.unloadMovie();
_root.endfade.removeMovieClip();
_root.gotoAndPlay("reloop");
}
}
}
Frame 151
_root.pausescreen2.unloadMovie();
_root.pausescreen2.removeMovieClip();
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.daboss.unloadMovie();
_root.daboss.removeMovieClip();
_root.endingfader2.unloadMovie();
_root.endingfader2.removeMovieClip();
_root.bossmode.unloadMovie();
_root.bossmode.removeMovieClip();
_root.scores2.unloadMovie();
_root.scores2.removeMovieClip();
_root.hitarea2.unloadMovie();
_root.hitarea2.removeMovieClip();
_root.backgrounda.unloadMovie();
_root.backgrounda.removeMovieClip();
_root.remind.unloadMovie();
_root.remind.removeMovieClip();
stopAllSounds();
_root.loopstared2 = false;
_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;
Frame 157
if (!_root.gamewon) {
gotoAndStop ("main");
}
if (_root.gamewon) {
_root.gamewon = false;
_root.gotoAndPlay("ending");
}
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) && (haltComplete != true)) {
onEnterFrame = null;
gotoAndStop ("loaded");
}
}
stop();
var autoPlay;
var className;
var haltComplete;
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 34
Object.registerClass("Newgrounds API Classes", com.newgrounds.shims.APIShim);
#endinitclip
Symbol 76 MovieClip [FlashAd] Frame 1
#initclip 35
Object.registerClass("FlashAd", com.newgrounds.components.FlashAdBase);
#endinitclip
function initPlayButton() {
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
if (!this.showPlayButton) {
this.playButton._visible = false;
}
}
}
function onPlayClick() {
removeAd();
_visible = false;
}
stop();
Symbol 76 MovieClip [FlashAd] Frame 2
initPlayButton();
Symbol 76 MovieClip [FlashAd] Frame 10
initPlayButton();
Symbol 76 MovieClip [FlashAd] Frame 20
initPlayButton();
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;
}
if (loader) {
loader.haltComplete = true;
}
_local2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
_local2.connect(_root, apiId, encryptionKey, movieVersion);
}
}
function _onConnected(event) {
if (loader) {
loader.haltComplete = false;
}
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;
}
Instance of Symbol 19 MovieClip [Preloader] "loader" in Symbol 77 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
autoPlay = false;
mainClass = "";
}
Symbol 30 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.splice(0, 3).join("/");
}
}
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) {
com.newgrounds.Logger.logInternal("Received packet:", data);
try {
if ((!data) || (data == "")) {
throw new Error();
}
var _local2 = com.newgrounds.encoders.json.JSON.decode(data);
if (!_local2) {
throw new Error();
}
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))));
if (bridge) {
bridge.sendEvent(_local2.command_id, _local2);
}
} 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 29 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
class com.newgrounds.Bridge extends com.newgrounds.EventDispatcher
{
var _widgetId, _inConnection, _outConnection, dispatchEvent;
function Bridge (id) {
super();
_widgetId = id;
_inConnection = new LocalConnection();
_outConnection = new LocalConnection();
var me = this;
_inConnection.receiveEvent = function () {
me.receiveEvent.apply(me, arguments);
};
_inConnection.allowDomain = (_inConnection.allowInsecureDomain = function (d) {
return(((d == "www.newgrounds.com") || (d == "newgrounds.com")) || (d == "uploads.ungrounded.net"));
});
_inConnection.connect("_rec_" + _widgetId);
com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {target:this, func:onLogMessage});
}
function get widgetId() {
return(_widgetId);
}
function onLogMessage(event) {
try {
_outConnection.send(_widgetId, "sendEvent", "trace", String(event.__get__data()));
} catch(error) {
}
}
function sendEvent(command, parameters) {
if (_outConnection) {
parameters = {data:parameters};
try {
_outConnection.send(_widgetId, "sendEvent", command, parameters);
} catch(error) {
}
}
}
function receiveEvent(responseData) {
var _local2;
try {
_local2 = com.newgrounds.encoders.json.JSON.decode(responseData);
} catch(error) {
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, _local2, ((_local2 == null) ? (com.newgrounds.APIEvent.ERROR_UNKNOWN) : null)));
}
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 BRIDGE_EVENT_RECEIVED = "brdigeEventReceived";
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_DELETED = "fileDeleted";
static var FILE_REQUESTED = "fileRequested";
static var VOTE_COMPLETE = "voteComplete";
static var USER_SIGNED_IN = "userSignedIn";
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";
static var ERROR_SIGN_IN_FAILED = "signInFailed";
}
Symbol 44 MovieClip [__Packages.com.newgrounds.API] Frame 0
class com.newgrounds.API
{
static var _serverTime, _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 serverTime() {
return(_serverTime);
}
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;
} else {
_bridge = new com.newgrounds.Bridge(com.newgrounds.crypto.MD5.hash(String(Math.random())));
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;
}
_serverTime = new Date(int(_local1.time) * 1000);
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 _local4;
var _local1;
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");
}
_local4 = 0;
while (_local4 < _local10) {
var _local5 = _local11.medals[_local4];
var _local15 = _local5.medal_unlocked;
var _local17 = _local18 && (_local18[_local5.medal_id]);
var _local14 = (hasUserSession ? (_local15) : (_local17));
if (debugMode != RELEASE_MODE) {
_local14 = false;
}
var _local6 = new com.newgrounds.Medal(_connection, _local5.medal_id, _local5.medal_name, _local5.medal_description, Boolean(int(_local5.secret)), _local14, _local5.medal_value, _local5.medal_difficulty, _local5.medal_icon);
_local6.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, false, 0, true);
_local6.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed, false, 0, true);
_medals[_local6.__get__name()] = _local6;
_medalsArray.push(_local6);
com.newgrounds.Logger.logMessage(_local6);
if ((hasUserSession && (_local17)) && (!_local15)) {
com.newgrounds.Logger.logMessage(("Server missed the \"" + _local6.__get__name()) + "\" unlock. Resending...");
_local6.unlock();
}
_local4++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " medal") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.score_boards) {
_local10 = _local11.score_boards.length;
_local4 = 0;
while (_local4 < _local10) {
var _local16 = _local11.score_boards[_local4];
var _local9 = new com.newgrounds.ScoreBoard(_connection, _local16.name, _local16.id);
_scoreBoards[_local9.__get__name()] = _local9;
_scoreBoardsArray.push(_local9);
com.newgrounds.Logger.logMessage(_local9);
_local4++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " scoreboard") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.save_groups) {
_local10 = _local11.save_groups.length;
_local4 = 0;
while (_local4 < _local10) {
var _local2 = _local11.save_groups[_local4];
var _local13 = [];
if (_local2.keys) {
_local1 = 0;
while (_local1 < _local2.keys.length) {
var _local7 = _local2.keys[_local1];
_local13.push(new com.newgrounds.SaveKey(_local7.name, _local7.id, _local7.type));
_local1++;
}
}
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);
_local4++;
}
}
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 promptSignIn() {
if (_connection.assertInitialized()) {
getURL (PASSPORT_URL + _bridge.__get__widgetId(), "_blank");
_bridge.addEventListener(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, onUserSignedIn, false, 0, true);
}
}
static function onUserSignedIn(e) {
_bridge.removeEventListener(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, onUserSignedIn);
var _local1 = e.__get__data();
if (e.__get__success()) {
try {
if (_local1.NewgroundsAPI_UserName) {
_connection.username = _local1.NewgroundsAPI_UserName;
}
if (_local1.NewgroundsAPI_UserID) {
_connection.userId = _local1.NewgroundsAPI_UserID;
}
if (_local1.NewgroundsAPI_PublisherID) {
_connection.publisherId = _local1.NewgroundsAPI_PublisherID;
}
if (_local1.NewgroundsAPI_SessionID) {
_connection.sessionId = _local1.NewgroundsAPI_SessionID;
}
_connection.sendSimpleCommand("preloadSettings", onMetadataLoaded, {publisher_id:_connection.publisherId, user_id:_connection.userId});
} catch(error) {
}
com.newgrounds.Logger.logMessage(("User " + _connection.username) + " signed in.");
}
dispatchEvent(com.newgrounds.APIEvent.USER_SIGNED_IN, null, (e.__get__success() ? null : (com.newgrounds.APIEvent.ERROR_SIGN_IN_FAILED)));
}
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.2 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 PASSPORT_URL = "https://www.newgrounds.com/login/remote/";
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 _local4 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, i:6, x:0, y:0, output:null};
var _local3 = source.substr(0, 3);
var _local2 = source.substr(3, 3);
while (_local3.charAt(0) == "0") {
_local3 = _local3.substr(1);
}
while (_local2.charAt(0) == "0") {
_local2 = _local2.substr(1);
}
var _local7 = int(_local3);
var _local8 = int(_local2);
_local4.output = new flash.display.BitmapData(_local7, _local8, _encodeAlpha);
var _local6 = setInterval(this, "doDecode", WORK_INTERVAL, _local4);
_local4.interval = _local6;
}
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, _numVotes, _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 = {};
_numVotes = {};
}
static function get currentFile() {
return(_currentFile);
}
static function fromObject(group, fileData) {
var _local3 = new com.newgrounds.SaveFile(group);
_local3._name = fileData.filename;
_local3._description = fileData.description;
_local3._id = fileData.save_id;
_local3._authorId = fileData.user_id;
_local3._authorName = fileData.user_name;
_local3._createdDate = fileData.created;
_local3._modifiedDate = fileData.last_update;
_local3._views = fileData.views;
if (fileData.thumb && (fileData.thumb != "")) {
_local3._iconLoader.__set__url(_imageFilePath + fileData.thumb);
}
_local3._dataURL = _saveFilePath + fileData.file;
_local3._fileSize = fileData.file_size;
_local3._approved = fileData.status != STATUS_UNAPPROVED;
_local3._readOnly = false;
_local3._public = (fileData.status != STATUS_PRIVATE) && (fileData.status != STATUS_UNAPPROVED);
for (var _local8 in fileData.keys) {
var _local6 = fileData.keys[_local8];
var _local4 = group.getKeyById(_local6.id);
if (_local4) {
_local3._keys[_local4.__get__name()] = _local4.validateValue(_local6.value);
}
}
for (var _local9 in fileData.ratings) {
var _local5 = fileData.ratings[_local9];
var _local2 = group.getRatingById(_local5.id);
if (_local2) {
_local3._ratings[_local2.__get__name()] = _local2.validateValue(_local5.score);
_local3._numVotes[_local2.__get__name()] = int(_local5.votes);
}
}
return(_local3);
}
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 numVotes() {
return(_numVotes);
}
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 _local7;
var _local6;
var _local10 = 0;
var _local8 = 0;
if (source instanceof flash.display.BitmapData) {
_local7 = source.width;
_local6 = source.height;
} else if (source instanceof MovieClip) {
var _local2 = MovieClip(source).getBounds(source);
_local7 = _local2.xMax - _local2.xMin;
_local6 = _local2.yMax - _local2.yMin;
_local10 = _local2.xMin;
_local8 = _local2.yMin;
}
var _local4 = new flash.geom.Matrix();
var _local5;
_local5 = Math.min(ICON_WIDTH / _local7, ICON_HEIGHT / _local6);
_local4.translate(-_local10, -_local8);
_local4.scale(_local5, _local5);
_local4.translate((ICON_WIDTH - (_local7 * _local5)) / 2, (ICON_HEIGHT - (_local6 * _local5)) / 2);
_local9.draw(source, _local4);
_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 deleteFile() {
if (!_group.__get__connection().__get__hasUserSession()) {
com.newgrounds.Logger.logError("The user must be logged-in to delete a file.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
return(undefined);
}
if (!_id) {
com.newgrounds.Logger.logError("The file does not exist.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
return(undefined);
}
var _local2 = new com.newgrounds.APICommand("deleteSaveFile");
_local2.__get__secureParameters().save_id = _id;
_local2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {target:this, func:onFileDeleted});
_group.__get__connection().sendCommand(_local2);
}
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 + "&random=") + Math.random());
}
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 onFileDeleted(event) {
if (event.__get__success()) {
_id = 0;
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, this, event.__get__error()));
}
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];
}
for (_local2 in _numVotes) {
_local3._numVotes[_local2] = _numVotes[_local2];
}
_local3._name = _name;
return(_local3);
}
static var ICON_WIDTH = 90;
static var ICON_HEIGHT = 90;
static var DEFAULT_ICON = new flash.display.BitmapData(ICON_WIDTH, ICON_HEIGHT, false, 0);
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) && (int(value) != 0));
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 _local4 = _group.getKey(field);
if (_local4) {
value = _local4.validateValue(value);
_keyConditions.push({key_id:_local4.__get__id(), operator:operator, value:value});
return(undefined);
}
var _local3 = field.split(".");
var _local6 = _group.getRating(_local3[0]);
if (_local6) {
if (_local3[1] != "votes") {
value = _local6.validateValue(value);
}
_ratingConditions.push({rating_id:_local6.__get__id(), operator:operator, value:value, column:(_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 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 3452 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 3453 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 3454 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.5 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) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
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) {
onError("NotConnected");
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("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(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("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("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("NotConnected");
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
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 3455 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, 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 ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
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 FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 3456 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 3457 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 showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
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 gotoAndStop, _x, _y, stop, onUnload, _adListener, adContainer, newgroundsButton, _fullScreen, clear, _ad, _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) {
}
gotoAndStop("idle");
_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) {
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 (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 3458 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 3459 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 28 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 31 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 32 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 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);
}
}
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 92 Button
on (release) {
_root.play();
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
play();
Symbol 111 MovieClip Frame 20
_root.play();
Symbol 114 Button
on (release) {
_root.savefile.clear();
_root.cleardata();
}
Symbol 118 Button
on (release) {
getURL ("http://www.newgrounds.com/", "_blank");
}
Symbol 124 Button
on (release) {
getURL ("http://www.thepoxbox.com/what.php?id=fancypizza", "_blank");
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 179 MovieClip [medalpopper] Frame 89
this.unloadMovie();
this.removeMovieClip();
Symbol 181 MovieClip [medalpop] Frame 1
stop();
Symbol 181 MovieClip [medalpop] Frame 12
if (((_root.mmm1 > 4) && (_root.savefile.data.mm1 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Evolver");
_root.mm1 = 1;
_root.savefile.data.mm1 = 1;
midilz = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz._x = 307;
midilz._y = 510;
midilz.winmedalname = "Evolver";
midilz.winmedaldescription = "Evolve ";
midilz.panel.iconn.gotoAndStop(1);
}
Symbol 181 MovieClip [medalpop] Frame 14
if (((_root.mmm2 > 4) && (_root.savefile.data.mm2 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Easy Going");
_root.mm2 = 1;
_root.savefile.data.mm2 = 1;
midilz2 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 16
if (((_root.mmm3 > 4) && (_root.savefile.data.mm3 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Medium Rare");
_root.mm3 = 1;
_root.savefile.data.mm3 = 1;
midilz3 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 18
if (((_root.mmm4 > 4) && (_root.savefile.data.mm4 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("High Strung");
_root.mm4 = 1;
_root.savefile.data.mm4 = 1;
midilz4 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 20
if (((_root.mmm5 > 4) && (_root.savefile.data.mm5 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Xpert");
_root.mm5 = 1;
_root.savefile.data.mm5 = 1;
midilz5 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz5._x = 307;
midilz5._y = 510;
midilz5.winmedalname = "Xpert";
midilz5.winmedaldescription = "Beat the game on EXPERT.";
midilz5.panel.iconn.gotoAndStop(5);
}
Symbol 181 MovieClip [medalpop] Frame 22
if ((_root.mmm6 > 4) && (_root.savefile.data.mm6 != 1)) {
com.newgrounds.API.unlockMedal("Got Crabs");
_root.mm6 = 1;
_root.savefile.data.mm6 = 1;
midilz6 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 24
if ((_root.mmm7 > 4) && (_root.savefile.data.mm7 != 1)) {
com.newgrounds.API.unlockMedal("Wasted");
_root.mm7 = 1;
_root.savefile.data.mm7 = 1;
midilz7 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz7._x = 307;
midilz7._y = 510;
midilz7.winmedalname = "Wasted";
midilz7.winmedaldescription = "Get hit by toxic waste.";
midilz7.panel.iconn.gotoAndStop(7);
}
Symbol 181 MovieClip [medalpop] Frame 26
if ((_root.mmm8 > 4) && (_root.savefile.data.mm8 != 1)) {
com.newgrounds.API.unlockMedal("Bagged");
_root.mm8 = 1;
_root.savefile.data.mm8 = 1;
midilz8 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz8._x = 307;
midilz8._y = 510;
midilz8.winmedalname = "Bagged";
midilz8.winmedaldescription = "Get caught in a net.";
midilz8.panel.iconn.gotoAndStop(8);
}
Symbol 181 MovieClip [medalpop] Frame 28
if (((_root.mmm9 > 4) && (_root.savefile.data.mm9 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Gourmet");
_root.mm9 = 1;
_root.savefile.data.mm9 = 1;
midilz9 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz9._x = 307;
midilz9._y = 510;
midilz9.winmedalname = "Gourmet";
midilz9.winmedaldescription = "Eat 50 kinds of fish. ( Boss Fight Doesn't Count)";
midilz9.panel.iconn.gotoAndStop(9);
}
Symbol 181 MovieClip [medalpop] Frame 30
if (((_root.mmm10 > 4) && (_root.savefile.data.mm10 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Monstar");
_root.mm10 = 1;
_root.savefile.data.mm10 = 1;
midilz10 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 32
if (((_root.mmm11 > 4) && (_root.savefile.data.mm11 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Sushi");
_root.mm11 = 1;
_root.savefile.data.mm11 = 1;
midilz11 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_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 181 MovieClip [medalpop] Frame 34
if ((_root.mmm12 > 4) && (_root.savefile.data.mm12 != 1)) {
com.newgrounds.API.unlockMedal("Cheater");
_root.mm12 = 1;
_root.savefile.data.mm12 = 1;
midilz12 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz12._x = 307;
midilz12._y = 510;
midilz12.winmedalname = "Cheater";
midilz12.winmedaldescription = "Use a cheat.";
midilz12.panel.iconn.gotoAndStop(12);
}
Symbol 181 MovieClip [medalpop] Frame 36
if ((_root.mmm13 > 4) && (_root.savefile.data.mm13 != 1)) {
com.newgrounds.API.unlockMedal("Fugu Breath");
_root.mm13 = 1;
_root.savefile.data.mm13 = 1;
midilz13 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz13._x = 307;
midilz13._y = 510;
midilz13.winmedalname = "Fugu Breath";
midilz13.winmedaldescription = "Eat 10 poisonous fish in one game";
midilz13.panel.iconn.gotoAndStop(13);
}
Symbol 181 MovieClip [medalpop] Frame 38
if ((_root.mmm14 > 4) && (_root.savefile.data.mm14 != 1)) {
com.newgrounds.API.unlockMedal("Hehehe");
_root.mm14 = 1;
_root.savefile.data.mm14 = 1;
midilz14 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz14._x = 307;
midilz14._y = 510;
midilz14.winmedalname = "Hehehe";
midilz14.winmedaldescription = "Get eaten by a mermaid";
midilz14.panel.iconn.gotoAndStop(14);
}
Symbol 181 MovieClip [medalpop] Frame 40
if (((_root.mmm15 > 4) && (_root.savefile.data.mm15 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Ahab");
_root.mm15 = 1;
_root.savefile.data.mm15 = 1;
midilz15 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz15._x = 307;
midilz15._y = 510;
midilz15.winmedalname = "Ahab";
midilz15.winmedaldescription = "Eat a whale";
midilz15.panel.iconn.gotoAndStop(15);
}
Symbol 181 MovieClip [medalpop] Frame 42
if ((_root.mmm16 > 4) && (_root.savefile.data.mm16 != 1)) {
com.newgrounds.API.unlockMedal("Replay");
_root.mm16 = 1;
_root.savefile.data.mm16 = 1;
midilz16 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz16._x = 307;
midilz16._y = 510;
midilz16.winmedalname = "Replay";
midilz16.winmedaldescription = "Complete the game as a Shrimp using the FISHOLVO cheat";
midilz16.panel.iconn.gotoAndStop(16);
}
Symbol 181 MovieClip [medalpop] Frame 44
if (((_root.mmm17 > 4) && (_root.savefile.data.mm17 != 1)) && (!_root.cheater)) {
com.newgrounds.API.unlockMedal("Fat Fish");
_root.mm17 = 1;
_root.savefile.data.mm17 = 1;
midilz17 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz17._x = 307;
midilz17._y = 510;
midilz17.winmedalname = "Fat Fish";
midilz17.winmedaldescription = "Reach level 25";
midilz17.panel.iconn.gotoAndStop(17);
}
Symbol 181 MovieClip [medalpop] Frame 46
if ((_root.mmm18 > 4) && (_root.savefile.data.mm18 != 1)) {
com.newgrounds.API.unlockMedal("Cousteau");
_root.mm18 = 1;
_root.savefile.data.mm18 = 1;
midilz18 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz18._x = 307;
midilz18._y = 510;
midilz18.winmedalname = "Cousteau";
midilz18.winmedaldescription = "Eat all 100 kinds of fish";
midilz18.panel.iconn.gotoAndStop(18);
}
Symbol 181 MovieClip [medalpop] Frame 48
if ((_root.mmm19 > 4) && (_root.savefile.data.mm19 != 1)) {
com.newgrounds.API.unlockMedal("Treasure Medal");
_root.mm19 = 1;
_root.savefile.data.mm19 = 1;
midilz19 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz19._x = 307;
midilz19._y = 510;
midilz19.winmedalname = "Treasure Medal";
midilz19.winmedaldescription = "Find all 3 secret medals to unlock a special surprise!";
midilz19.panel.iconn.gotoAndStop(19);
}
Symbol 181 MovieClip [medalpop] Frame 50
if ((_root.mmm20 > 4) && (_root.savefile.data.mm20 != 1)) {
com.newgrounds.API.unlockMedal("Battleship Medal");
_root.mm20 = 1;
_root.savefile.data.mm20 = 1;
midilz20 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz20._x = 307;
midilz20._y = 510;
midilz20.winmedalname = "Battleship Medal";
midilz20.winmedaldescription = "Find all 3 secret medals to unlock a special surprise!";
midilz20.panel.iconn.gotoAndStop(20);
}
Symbol 181 MovieClip [medalpop] Frame 52
if ((_root.mmm21 > 4) && (_root.savefile.data.mm21 != 1)) {
com.newgrounds.API.unlockMedal("Aquarium Medal");
_root.mm21 = 1;
_root.savefile.data.mm21 = 1;
midilz21 = _root.attachMovie("medalpopper", "cloccudaa" + _root.efffcv, _root.efffcv + 100000);
_root.efffcv++;
midilz21._x = 307;
midilz21._y = 510;
midilz21.winmedalname = "Aquarium Medal";
midilz21.winmedaldescription = "Find all 3 secret medals to unlock a special surprise!";
midilz21.panel.iconn.gotoAndStop(21);
}
Instance of Symbol 189 MovieClip in Symbol 197 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("idle2");
}
if (_root.evolution == 3) {
fishy.gotoAndStop("idle3");
}
if (_root.evolution == 4) {
fishy.gotoAndStop("idle4");
}
if (_root.evolution == 5) {
fishy.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
fishy.gotoAndStop("idle6");
}
_root.mmm6 = 43;
_root.medalz.gotoAndPlay("medalcheck");
fishy._height = _root.catchheight;
fishy._width = _root.catchwidth;
_root.caugthed = true;
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
}
}
}
}
Symbol 208 MovieClip [dirt2] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 217 MovieClip [dirt3] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 219 MovieClip [dirt1] Frame 24
stop();
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 206 MovieClip in Symbol 220 MovieClip [crabcage2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee && (!_root.caugthed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_root.caugthed)) {
_parent.play();
}
}
Symbol 220 MovieClip [crabcage2] Frame 521
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 206 MovieClip in Symbol 221 MovieClip [crabcage3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee && (!_root.caugthed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_root.caugthed)) {
_parent.play();
}
}
Symbol 221 MovieClip [crabcage3] Frame 521
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 223 MovieClip in Symbol 224 MovieClip [poopggfd] Frame 1
onClipEvent (enterFrame) {
nettage._y = nettage._y + 1;
}
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 7
play();
_root.bite = true;
Symbol 243 MovieClip Frame 11
gotoAndStop (1);
_root.bite = false;
Symbol 246 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.boxes && (!_root.aquarium)) {
box._alpha = 100;
}
if ((!_root.boxes) or _root.aquarium) {
box._alpha = 0;
}
};
Symbol 251 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.boxes && (!_root.aquarium)) {
box._alpha = 100;
}
if ((!_root.boxes) or _root.aquarium) {
box._alpha = 0;
}
};
Symbol 267 MovieClip Frame 1
_root.bite = false;
stop();
Symbol 267 MovieClip Frame 10
play();
_root.bite = true;
Symbol 267 MovieClip Frame 15
gotoAndStop ("idle");
Symbol 282 MovieClip Frame 1
_root.bite = false;
stop();
Symbol 282 MovieClip Frame 8
play();
_root.bite = true;
Symbol 282 MovieClip Frame 14
_root.bite = false;
gotoAndStop (1);
Symbol 300 MovieClip Frame 1
_root.bite = false;
stop();
Symbol 300 MovieClip Frame 9
play();
_root.bite = true;
Symbol 300 MovieClip Frame 18
gotoAndStop (1);
_root.bite = false;
Symbol 309 MovieClip Frame 1
_root.bite = false;
stop();
Symbol 309 MovieClip Frame 10
play();
_root.bite = true;
Symbol 309 MovieClip Frame 19
gotoAndStop (1);
_root.bite = false;
Symbol 327 MovieClip Frame 1
stop();
_root.bite = false;
Symbol 327 MovieClip Frame 8
play();
_root.bite = true;
Symbol 327 MovieClip Frame 16
gotoAndStop (1);
_root.bite = false;
Symbol 333 MovieClip [evolvo1] Frame 1
stop();
Symbol 333 MovieClip [evolvo1] Frame 10
stop();
Symbol 333 MovieClip [evolvo1] Frame 23
_root.mmm1 = 43;
_root.medalz.gotoAndPlay("medalcheck");
stop();
Symbol 333 MovieClip [evolvo1] Frame 32
stop();
Symbol 333 MovieClip [evolvo1] Frame 44
stop();
Symbol 333 MovieClip [evolvo1] Frame 53
stop();
Symbol 333 MovieClip [evolvo1] Frame 66
stop();
Symbol 333 MovieClip [evolvo1] Frame 75
stop();
Symbol 333 MovieClip [evolvo1] Frame 87
stop();
Symbol 333 MovieClip [evolvo1] Frame 98
stop();
Symbol 333 MovieClip [evolvo1] Frame 107
stop();
Symbol 333 MovieClip [evolvo1] Frame 117
stop();
Symbol 338 MovieClip [evolvo2] Frame 1
stop();
Symbol 338 MovieClip [evolvo2] Frame 10
stop();
Symbol 345 MovieClip [evolvo3] Frame 1
stop();
Symbol 345 MovieClip [evolvo3] Frame 10
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 10
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 23
stop();
Symbol 353 MovieClip Frame 40
stop();
Symbol 353 MovieClip Frame 53
stop();
Symbol 353 MovieClip Frame 70
stop();
Symbol 353 MovieClip Frame 88
stop();
Symbol 357 MovieClip Frame 1
slacked = false;
stop();
Symbol 357 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.netclose);
}
Instance of Symbol 189 MovieClip in Symbol 357 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((!_root.invisible) && (!_root.invincible)) && (!_parent.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) {
fish.gotoAndStop("idle2");
}
if (_root.evolution == 3) {
fish.gotoAndStop("idle3");
}
if (_root.evolution == 4) {
fish.gotoAndStop("idle4");
}
if (_root.evolution == 5) {
fish.gotoAndStop("idle5");
}
if (_root.evolution == 6) {
fish.gotoAndStop("idle6");
}
_root.mmm8 = 43;
_root.medalz.gotoAndPlay("medalcheck");
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
_root.caugthed = true;
_root.pausee = true;
}
}
}
}
Symbol 357 MovieClip Frame 3
play();
Symbol 357 MovieClip Frame 4
play();
Symbol 357 MovieClip Frame 8
slacked = true;
if (!_root.soundoff) {
_root.playEffect(_root.whip);
}
Symbol 357 MovieClip Frame 24
stop();
Instance of Symbol 356 MovieClip in Symbol 357 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();
this.unloadMovie();
this.removeMovieClip();
}
}
}
Symbol 360 MovieClip [netdown] Frame 1
netcounter = 0;
netisclosed = false;
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip [netdown] Frame 1
onClipEvent (enterFrame) {
_parent.netcounter = _parent.netcounter + 1;
if (!_parent.netisclosed) {
pickarandom = random(500);
}
if ((pickarandom == 33) or (_parent.netcounter >= 1500)) {
if ((!_root.pausee) && (!_parent.netisclosed)) {
_parent.nettage.gotoAndPlay("close");
_parent.netisclosed = true;
_parent.stop();
}
}
if (_root.pausee && (!_parent.netisclosed)) {
_parent.stop();
}
if ((!_root.pausee) && (!_parent.netisclosed)) {
_parent.play();
}
}
Symbol 360 MovieClip [netdown] Frame 785
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip [netdown] Frame 785
onClipEvent (enterFrame) {
if (!_parent.netisclosed) {
pickarandom = random(100);
}
if (pickarandom == 33) {
if ((!_root.pausee) && (!_parent.netisclosed)) {
_parent.nettage.gotoAndPlay("close");
_parent.netisclosed = true;
_parent.stop();
}
}
}
Symbol 372 MovieClip Frame 10
stop();
Symbol 373 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.fish.body) && (!_root.invincible)) && (!_root.ppget)) {
_root.ppget = true;
if (!_root.soundoff) {
_root.playEffect(_root.powerupwoop2);
}
_root.invinciballs.gotoAndPlay("yay");
_parent.gotoAndPlay("bloop");
}
}
Symbol 373 MovieClip Frame 7
play();
Symbol 373 MovieClip Frame 17
stop();
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip [powerup2] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 377 MovieClip [powerup2] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.fish.body) && (!_root.megaballs)) && (!_root.ppget)) {
_root.ppget = true;
if (!_root.soundoff) {
_root.playEffect(_root.powerupwoop2);
}
_root.supersize.gotoAndPlay("yay");
_parent.gotoAndPlay("bloop");
_root.megaballs = true;
}
}
Symbol 384 MovieClip Frame 7
play();
Symbol 384 MovieClip Frame 17
stop();
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip [powerup3] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 386 MovieClip [powerup3] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 391 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish.body) && (!_root.ppget)) {
if (!_root.soundoff) {
_root.playEffect(_root.powerupwoop2);
}
_root.slowdown = true;
_root.ppget = true;
_root.klocks.play();
_parent.gotoAndPlay("bloop");
}
}
Symbol 391 MovieClip Frame 7
play();
Symbol 391 MovieClip Frame 17
stop();
Instance of Symbol 376 MovieClip in Symbol 393 MovieClip [powerup1] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 393 MovieClip [powerup1] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 414 MovieClip [eatlabel] Frame 2
stop();
this.onEnterFrame = function () {
if (_root.labelz) {
box._alpha = 100;
}
if (!_root.labelz) {
box._alpha = 0;
}
};
Symbol 423 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip in Symbol 423 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.fish.body) && (!_root.megaballs)) && (!_root.ppget)) {
if (!_root.soundoff) {
_root.playEffect(_root.powerupwoop2);
}
_root.fish._xscale = _root.fish._xscale * 1.1;
_root.fish._yscale = _root.fish._yscale * 1.1;
_parent.gotoAndPlay("bloop");
}
}
Symbol 423 MovieClip Frame 7
play();
Symbol 423 MovieClip Frame 17
stop();
Instance of Symbol 376 MovieClip in Symbol 425 MovieClip [powerup4] Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 425 MovieClip [powerup4] Frame 600
this.unloadMovie();
this.removeMovieClip();
Symbol 427 MovieClip [levelup] Frame 39
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 431 MovieClip [redalert] Frame 3
if (!_root.soundoff) {
_root.playEffect(_root.a_warning);
}
Symbol 431 MovieClip [redalert] Frame 121
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 491 MovieClip Frame 1
stop();
Symbol 547 MovieClip [eatlabel2] Frame 2
stop();
this.onEnterFrame = function () {
if (_root.labelz) {
box._alpha = 100;
}
if (!_root.labelz) {
box._alpha = 0;
}
};
Symbol 563 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (_root.aquarium or (_root.evolution > 5)) {
this.unloadMovie();
this.removeMovieClip();
}
};
Symbol 579 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.evolution >= 5) {
box._alpha = 0;
}
if ((!_root.evolution) >= 5) {
box._alpha = 100;
}
};
Symbol 1055 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (_root.labelz) {
box._alpha = 100;
}
if (!_root.labelz) {
box._alpha = 0;
}
};
Symbol 1259 MovieClip [grow] Frame 1
play();
Symbol 1259 MovieClip [grow] Frame 2
_root.fish._xscale = _root.fish._xscale * 1.1;
_root.fish._yscale = _root.fish._yscale * 1.1;
_root.bite.start();
Symbol 1259 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 1267 MovieClip [splash1] Frame 10
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1270 MovieClip [sparkle] Frame 19
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1273 MovieClip [blurbs] Frame 46
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1277 MovieClip [blood] Frame 40
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1278 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 1278 MovieClip [eaten] Frame 10
stop();
this.unloadMovie();
this.removeMovieClip();
Instance of Symbol 1294 MovieClip in Symbol 1295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.barrelspin) {
_parent.barrrrr.stop();
}
}
Symbol 1305 MovieClip Frame 7
stop();
Symbol 1318 MovieClip Frame 24
stop();
Symbol 1319 MovieClip Frame 25
stop();
Instance of Symbol 1365 MovieClip in Symbol 1385 MovieClip Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
if (((!_root.invincible) && (!_root.invisible)) && (!_root.poisonnn)) {
_root.poisonnn = true;
pois = _root.attachMovie("poisonscreen", "skreen" + _root.sparklecountage, 4444);
pois._height = 500;
pois._width = 700;
pois._y = 250;
pois._x = 350;
if (!_root.soundoff) {
_root.playEffect(_root.vomit);
}
_root.mmm7 = 43;
_root.medalz.gotoAndPlay("medalcheck");
_root.poisonned.gotoAndPlay("go");
}
}
}
Symbol 1385 MovieClip Frame 163
stop();
this.unloadMovie();
this.removeMovieClip();
Symbol 1398 MovieClip Frame 24
stop();
Symbol 1399 MovieClip Frame 25
stop();
Instance of Symbol 1298 MovieClip in Symbol 1400 MovieClip [barreller] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 1400 MovieClip [barreller] Frame 10
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1400 MovieClip [barreller] Frame 717
_root.barrelspin = false;
if (!_root.soundoff) {
_root.playEffect(_root.barrelsound);
}
Symbol 1400 MovieClip [barreller] Frame 785
_root.barrelspin = true;
Symbol 1400 MovieClip [barreller] Frame 786
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 1400 MovieClip [barreller] Frame 794
stop();
Symbol 1400 MovieClip [barreller] Frame 796
stop();
Symbol 1516 MovieClip [badfish67] Frame 90
if ((!_root.soundoff) && (!_root.aquarium)) {
_root.playEffect(_root.a_shootelectricity);
}
Instance of Symbol 1515 MovieClip "danger" in Symbol 1516 MovieClip [badfish67] Frame 90
onClipEvent (enterFrame) {
if (((this.hitTest(_root.fish.dabody) && (_root.evolution <= 4)) && (!_root.invincible)) && (!_root.pausee)) {
if (!_root.electrified) {
_root.electrified = true;
}
}
}
Symbol 1525 MovieClip [badfish97] Frame 300
stop();
Symbol 1574 MovieClip [inkcloud] Frame 206
this.unloadMovie();
this.removeMovieClip();
Symbol 1582 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.a_zap);
}
Symbol 1595 MovieClip [badfish40] Frame 90
if ((!_root.soundoff) && (!_root.aquarium)) {
_root.playEffect(_root.a_shootelectricity);
}
Instance of Symbol 1594 MovieClip "danger" in Symbol 1595 MovieClip [badfish40] Frame 90
onClipEvent (enterFrame) {
if (((this.hitTest(_root.fish.dabody) && (_root.evolution <= 4)) && (!_root.invincible)) && (!_root.pausee)) {
if (!_root.electrified) {
_root.electrified = true;
}
}
}
Symbol 1601 Button
on (release) {
_root.mmm19 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
Symbol 1602 Button
on (release) {
_root.mmm19 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
Symbol 1604 MovieClip Frame 1
stop();
Symbol 1604 MovieClip Frame 8
stop();
Instance of Symbol 1603 MovieClip in Symbol 1604 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.mmm19 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
}
Instance of Symbol 1298 MovieClip in Symbol 1606 MovieClip [treasurechest] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 1606 MovieClip [treasurechest] Frame 10
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1606 MovieClip [treasurechest] Frame 717
if (!_root.soundoff) {
_root.playEffect(_root.barrelsound);
}
Symbol 1606 MovieClip [treasurechest] Frame 750
barrr.barrrr.gotoAndStop("open");
Symbol 1606 MovieClip [treasurechest] Frame 856
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 1610 MovieClip [spillalert] Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.a_warning);
}
Symbol 1610 MovieClip [spillalert] Frame 114
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 1647 MovieClip Frame 1
stop();
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1647 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_parent.gotoAndPlay("explode");
}
}
Symbol 1647 MovieClip Frame 74
if (!_root.soundoff) {
_root.playEffect(_root.boss_explosion);
}
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1647 MovieClip Frame 74
onClipEvent (enterFrame) {
if (((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.pausee)) {
if ((!_root.pausee) && (this.hitTest(_root.fish.body))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_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";
_root.pkey = 2321;
_root.pausee = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.alert1.unloadMovie();
_root.alert1.removeMovieClip();
if (!_root.fishtransformed) {
_root.fishtransformed = true;
_root.fish._yscale = _root.fish._yscale * -1;
_root.fish.eyes._alpha = 100;
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:150, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
}
}
}
}
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1647 MovieClip Frame 82
onClipEvent (enterFrame) {
if (((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.pausee)) {
if ((!_root.pausee) && (this.hitTest(_root.fish.body))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_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";
_root.pkey = 2321;
_root.pausee = true;
_root.keydownpause = true;
_root.gameisover = true;
_root.alert1.unloadMovie();
_root.alert1.removeMovieClip();
if (!_root.fishtransformed) {
_root.fishtransformed = true;
_root.fish._yscale = _root.fish._yscale * -1;
_root.fish.eyes._alpha = 100;
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:150, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
_root.endingfader._alpha = 0;
_root.jaws.gotoAndPlay("chomp");
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
}
}
}
}
Symbol 1647 MovieClip Frame 89
_parent.unloadMovie();
_parent.removeMovieClip();
stop();
Instance of Symbol 1298 MovieClip in Symbol 1648 MovieClip [mines] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 1648 MovieClip [mines] Frame 10
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1648 MovieClip [mines] Frame 717
if (!_root.soundoff) {
_root.playEffect(_root.barrelsound);
}
Symbol 1648 MovieClip [mines] Frame 750
Symbol 1648 MovieClip [mines] Frame 825
stop();
barrr.gotoAndPlay("explode");
Symbol 1648 MovieClip [mines] Frame 940
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 1652 MovieClip [current] Frame 1
turnedon = false;
rand = random(4);
randscale = random(10) + _root.currentsize;
scale = 2 / randscale;
if (rand == 0) {
this._rotation = 0;
}
if (rand == 1) {
this._rotation = 90;
}
if (rand == 2) {
this._rotation = 180;
}
if (rand == 3) {
this._rotation = 270;
}
stream._xscale = stream._xscale * scale;
stream._yscale = stream._yscale * (scale * (random(10) + 1));
go = true;
go2 = false;
this.onEnterFrame = function () {
if (go && (stream._alpha < 100)) {
stream._alpha = stream._alpha + 2;
}
if (go2 && (stream._alpha > 0)) {
stream._alpha = stream._alpha - 2;
}
if (stream.hitTest(_root.fish.body) && (turnedon)) {
if (!_root.currentstarted) {
_root.currentstarted = true;
_root.currentsound.gotoAndPlay(2);
}
if (rand == 0) {
_root.fish.yvel2 = _root.fish.yvel2 + scale;
}
if (rand == 1) {
_root.fish.xvel = _root.fish.xvel + scale;
}
if (rand == 2) {
_root.fish.yvel = _root.fish.yvel + scale;
}
if (rand == 3) {
_root.fish.xvel2 = _root.fish.xvel2 + scale;
}
}
};
Symbol 1652 MovieClip [current] Frame 50
turnedon = true;
go = false;
Symbol 1652 MovieClip [current] Frame 401
turnedon = false;
go2 = true;
go = false;
Symbol 1652 MovieClip [current] Frame 452
_root.currenttotal = _root.currenttotal - 1;
this.unloadMovie();
this.removeMovieClip();
Symbol 1662 MovieClip Frame 1
stop();
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1662 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_parent.gotoAndPlay("explode");
}
}
Symbol 1662 MovieClip Frame 28
if (!_root.soundoff) {
_root.playEffect(_root.boss_explosion);
}
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1662 MovieClip Frame 28
onClipEvent (enterFrame) {
if (((_root.fish.body.hitTest(_root.hitarea2) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.pausee)) {
if ((!_root.pausee) && (this.hitTest(_root.fish.body))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_root.scores2.redbar.redbar2._x == 29)) {
_root.scores2.redbar.redbar2._x = -200;
if (!_root.soundoff) {
_root.playEffect(_root.shieldhit);
}
}
if ((_root.evolution >= 4) && (!_root.shield)) {
_root.death = "saved";
} else if (!_root.invincible) {
split = _root.attachMovie("bloodz", "bloodz" + _root.fishname, _root.fishname);
split._x = _root.fish._x;
split._y = _root.fish._y;
split._xscale = split._xscale * (_root.fish.sizee / 150);
split._yscale = split._yscale * (_root.fish.sizee / 150);
if (!_root.soundoff) {
randum = random(3);
if (randum == 0) {
_root.playEffect(_root.boss_splat1);
}
if (randum == 1) {
_root.playEffect(_root.boss_splat2);
}
if (randum == 2) {
_root.playEffect(_root.boss_splat3);
}
}
_root.gameisover = true;
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.jaws.gotoAndPlay("chomp");
}
}
}
}
Instance of Symbol 1614 MovieClip "hitarea" in Symbol 1662 MovieClip Frame 36
onClipEvent (enterFrame) {
if (((_root.fish.body.hitTest(_root.hitarea) && (!_root.pausee)) && (!_root.gameisover)) && (!_root.pausee)) {
if ((!_root.pausee) && (this.hitTest(_root.fish.body))) {
if ((((_root.evolution >= 4) && (!_root.shield)) && (!_root.invincible)) && (_root.scores2.redbar.redbar2._x == 29)) {
_root.scores2.redbar.redbar2._x = -200;
if (!_root.soundoff) {
_root.playEffect(_root.shieldhit);
}
}
if ((_root.evolution >= 4) && (!_root.shield)) {
_root.death = "saved";
} else if (!_root.invincible) {
split = _root.attachMovie("bloodz", "bloodz" + _root.fishname, _root.fishname);
split._x = _root.fish._x;
split._y = _root.fish._y;
split._xscale = split._xscale * (_root.fish.sizee / 150);
split._yscale = split._yscale * (_root.fish.sizee / 150);
if (!_root.soundoff) {
randum = random(3);
if (randum == 0) {
_root.playEffect(_root.boss_splat1);
}
if (randum == 1) {
_root.playEffect(_root.boss_splat2);
}
if (randum == 2) {
_root.playEffect(_root.boss_splat3);
}
}
_root.gameisover = true;
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
_root.jaws.gotoAndPlay("chomp");
}
}
}
}
Symbol 1662 MovieClip Frame 43
_parent.unloadMovie();
_parent.removeMovieClip();
stop();
Instance of Symbol 1298 MovieClip in Symbol 1663 MovieClip [mines2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 1663 MovieClip [mines2] Frame 10
if (!_root.soundoff) {
_root.playEffect(_root.splash);
}
Symbol 1663 MovieClip [mines2] Frame 666
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 1664 MovieClip [endingfader2] Frame 6
if (!_root.soundoff) {
_root.playEffect(_root.biteending);
}
Symbol 1664 MovieClip [endingfader2] Frame 70
_root.gotoAndPlay("reloop");
this.unloadMovie();
this.removeMovieClip();
Symbol 1672 MovieClip [bloodz] Frame 57
this.unloadMovie();
this.removeMovieClip();
Symbol 1675 MovieClip [poisonscreen] Frame 20
this.unloadMovie();
this.removeMovieClip();
Symbol 1685 MovieClip [zapscreen] Frame 22
this.unloadMovie();
this.removeMovieClip();
Symbol 1689 Button
on (release) {
getURL ("http://www.newgrounds.com/", "_blank");
}
Symbol 1691 MovieClip Frame 168
_root.gotoAndPlay("soundcode");
Symbol 1712 MovieClip Frame 35
stop();
Symbol 1747 Button
on (release) {
_root.infos.gotoAndPlay(2);
}
Symbol 1754 MovieClip Frame 48
stop();
Symbol 1765 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
if (!_root.gameexists) {
_root.gameexists = true;
_root.gotoAndStop("game");
} else {
_root.ngame.gotoAndStop(2);
}
}
Symbol 1771 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.tutorial.gotoAndStop(2);
}
Symbol 1777 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.aquarium = true;
_root.gotoAndStop("game");
}
Symbol 1783 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.gotoAndStop("gallery");
}
Symbol 1789 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.thepoxbox.com/what.php?id=evolvoplus", "_blank");
}
Symbol 1792 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.newgrounds.com/", "_blank");
}
Symbol 1796 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
play();
}
Symbol 1812 Button
on (rollOver) {
_parent._parent.medalname = "Treasure Medal";
_parent._parent.medaldescription = "You found a secret medal! Find all 3 to get a super special secret prize!";
}
Symbol 1813 MovieClip Frame 1
stop();
Symbol 1813 MovieClip Frame 2
stop();
Symbol 1817 Button
on (rollOver) {
_parent._parent.medalname = "Ship Medal";
_parent._parent.medaldescription = "You found a secret medal! Find all 3 to get a super special secret prize!";
}
Symbol 1818 MovieClip Frame 1
stop();
Symbol 1818 MovieClip Frame 2
stop();
Symbol 1822 Button
on (rollOver) {
_parent._parent.medalname = "Gallery Medal";
_parent._parent.medaldescription = "You found a secret medal! Find all 3 to get a super special secret prize!";
}
Symbol 1823 MovieClip Frame 1
stop();
Symbol 1823 MovieClip Frame 2
stop();
Symbol 1831 Button
on (rollOver) {
_parent._parent.medalname = "SECRET BUTTON";
_parent._parent.medaldescription = "Click to play a beta CHALLENGE version of Evolvo!";
}
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=evolvochallenge", (target = "blank"));
}
Symbol 1832 MovieClip Frame 1
stop();
Symbol 1832 MovieClip Frame 2
stop();
Symbol 1896 Button
on (release) {
gotoAndPlay ("close");
}
Symbol 1919 Button
on (release) {
_root.mmm1 = 2;
_root.mmm2 = 2;
_root.mmm3 = 2;
_root.mmm4 = 2;
_root.mmm5 = 2;
_root.mmm6 = 2;
_root.mmm7 = 2;
_root.mmm8 = 2;
_root.mmm9 = 2;
_root.mmm10 = 2;
_root.mmm11 = 2;
_root.mmm12 = 2;
_root.mmm13 = 2;
_root.mmm14 = 2;
_root.mmm15 = 2;
_root.mmm16 = 2;
_root.mmm17 = 2;
_root.mmm18 = 2;
_root.mmm19 = 2;
_root.mmm20 = 2;
_root.mmm21 = 2;
_root.savefile.data.mm1 = 2;
_root.savefile.data.mm2 = 2;
_root.savefile.data.mm3 = 2;
_root.savefile.data.mm4 = 2;
_root.savefile.data.mm5 = 2;
_root.savefile.data.mm6 = 2;
_root.savefile.data.mm7 = 2;
_root.savefile.data.mm8 = 2;
_root.savefile.data.mm9 = 2;
_root.savefile.data.mm10 = 2;
_root.savefile.data.mm11 = 2;
_root.savefile.data.mm12 = 2;
_root.savefile.data.mm13 = 2;
_root.savefile.data.mm14 = 2;
_root.savefile.data.mm15 = 2;
_root.savefile.data.mm16 = 2;
_root.savefile.data.mm17 = 2;
_root.savefile.data.mm18 = 2;
_root.savefile.data.mm19 = 2;
_root.savefile.data.mm20 = 2;
_root.savefile.data.mm21 = 2;
}
Symbol 1920 MovieClip Frame 1
stop();
medalname = "Medal Name";
medaldescription = "Medal Description";
Symbol 1920 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;
}
if (_root.savefile.data.mm13 == 1) {
graystuff.m13._alpha = 0;
}
if (_root.savefile.data.mm14 == 1) {
graystuff.m14._alpha = 0;
}
if (_root.savefile.data.mm15 == 1) {
graystuff.m15._alpha = 0;
}
if (_root.savefile.data.mm16 == 1) {
graystuff.m16._alpha = 0;
}
if (_root.savefile.data.mm17 == 1) {
graystuff.m17._alpha = 0;
}
if (_root.savefile.data.mm18 == 1) {
graystuff.m18._alpha = 0;
}
if (_root.savefile.data.mm19 == 1) {
secrets.secret1.gotoAndStop(2);
}
if (_root.savefile.data.mm20 == 1) {
secrets.secret2.gotoAndStop(2);
}
if (_root.savefile.data.mm21 == 1) {
secrets.secret3.gotoAndStop(2);
}
if (((_root.savefile.data.mm21 == 1) && (_root.savefile.data.mm20 == 1)) && (_root.savefile.data.mm19 == 1)) {
secrets.secret4.gotoAndStop(2);
}
Symbol 1920 MovieClip Frame 7
stop();
Instance of Symbol 1897 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Evolver";
_parent.medaldescription = "Evolve Once.";
}
Instance of Symbol 1898 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Easy Going";
_parent.medaldescription = "Beat the game on EASY.";
}
Instance of Symbol 1899 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Medium Rare";
_parent.medaldescription = "Beat the game on MEDIUM.";
}
Instance of Symbol 1900 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "High Strung";
_parent.medaldescription = "Beat the game on HIGH.";
}
Instance of Symbol 1901 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Xpert";
_parent.medaldescription = "Beat the game on EXPERT.";
}
Instance of Symbol 1902 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Got Crabs";
_parent.medaldescription = "Get caught in a crab trap.";
}
Instance of Symbol 1903 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Wasted";
_parent.medaldescription = "Get hit by toxic waste.";
}
Instance of Symbol 1904 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Bagged";
_parent.medaldescription = "Get caught in a net.";
}
Instance of Symbol 1905 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Gourmet";
_parent.medaldescription = "Eat all 76 kinds of fish.";
}
Instance of Symbol 1906 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Monstar";
_parent.medaldescription = "Achieve the rank of Sea Monster.";
}
Instance of Symbol 1907 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Sushi";
_parent.medaldescription = "Eat 200 fish in one game.";
}
Instance of Symbol 1908 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Cheater";
_parent.medaldescription = "Use a cheat.";
}
Instance of Symbol 1909 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Fugu Breath";
_parent.medaldescription = "Eat 10 poisonous fish in one game";
}
Instance of Symbol 1910 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Hehehe";
_parent.medaldescription = "Get eaten by a mermaid";
}
Instance of Symbol 1911 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Ahab";
_parent.medaldescription = "Eat a whale";
}
Instance of Symbol 1912 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Replay";
_parent.medaldescription = "Complete the game as a Shrimp using the FISHOLVO cheat";
}
Instance of Symbol 1913 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Fat Fish";
_parent.medaldescription = "Reach level 23";
}
Instance of Symbol 1914 MovieClip in Symbol 1920 MovieClip Frame 7
on (rollOver) {
_parent.medalname = "Cousteau";
_parent.medaldescription = "Eat all 100 kinds of fish";
}
Symbol 1925 Button
on (release) {
getURL ("http://www.facebook.com/sharer.php?u=http://www.thepoxbox.com/what.php?id=evolvoplus&t=EvolvoPLUS", "_blank");
}
Symbol 1929 Button
on (release) {
getURL ("https://twitter.com/poxpower1", "_blank");
}
Symbol 1935 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.gotoAndStop("game");
}
Symbol 1941 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
_root.cleardata();
_root.newgameloop = true;
_root.gotoAndStop("tryagain");
}
Symbol 1946 MovieClip Frame 1
stop();
Symbol 1957 Button
on (release) {
_parent.gotoAndPlay("close");
}
Symbol 1959 MovieClip Frame 1
stop();
Symbol 1959 MovieClip Frame 9
stop();
Symbol 1960 MovieClip Frame 11
stop();
Symbol 1963 Button
on (press) {
nextFrame();
}
Symbol 1969 MovieClip Frame 1
stop();
_root._quality = "BEST";
Instance of Symbol 1965 MovieClip in Symbol 1969 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 1969 MovieClip Frame 2
stop();
_root._quality = "MEDIUM";
Symbol 1969 MovieClip Frame 3
stop();
_root._quality = "LOW";
Symbol 1969 MovieClip Frame 4
gotoAndStop (1);
Symbol 1972 Button
on (press) {
_root.soundoff = true;
}
Symbol 1975 Button
on (press) {
_root.soundoff = false;
}
Instance of Symbol 1974 MovieClip in Symbol 1978 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundoff) {
_parent.gotoAndStop(5);
}
}
Instance of Symbol 1976 MovieClip in Symbol 1978 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.soundoff) {
_parent.gotoAndStop(1);
}
}
Symbol 1979 MovieClip Frame 31
stop();
Symbol 2020 Button
on (press) {
if (!_root.diffselected) {
_root.difficultyselect.gotoAndPlay(2);
}
gotoAndStop (1);
}
Symbol 2021 MovieClip Frame 1
stop();
Symbol 2021 MovieClip Frame 2
stop();
Symbol 2033 MovieClip Frame 1
stop();
Symbol 2039 MovieClip Frame 1
stop();
Symbol 2041 Button
on (release) {
if (!_root.soundoff) {
_root.playEffect(_root.a_death);
}
}
Instance of Symbol 2027 MovieClip "crabber" in Symbol 2042 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick2 = random(_root.cagerate);
if ((((_root.randompick2 == 45) && (!_root.aquarium)) && (_root.hazards)) && (!_root.pausee)) {
_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 362 MovieClip "shooter" in Symbol 2042 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randompick5 = random(_root.barrelrate);
if ((((_root.randompick5 == 10) && (!_root.aquarium)) && (_root.hazards)) && (!_root.pausee)) {
_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 362 MovieClip "shooter2" in Symbol 2042 MovieClip Frame 1
onClipEvent (enterFrame) {
randompick5 = random(20000);
if (((((randompick5 == 10) && (!_root.aquarium)) && (_root.savefile.data.mm19 != 1)) && (!_root.cheater)) && (!_root.pausee)) {
trisure = _root.backgrounda.attachMovie("treasurechest", ("barrrel" + random(10)) + 1, random(10) - 10240);
trisure._y = _root.backgrounda.shooter2._y - 150;
trisure._x = (_root.backgrounda.shooter2._x + random(520)) + 1;
}
}
Instance of Symbol 362 MovieClip "shooter" in Symbol 2042 MovieClip Frame 1
onClipEvent (load) {
netts = 0;
}
onClipEvent (enterFrame) {
_root.randompick8 = random(_root.netrate);
if ((((_root.randompick8 == 14) && (!_root.aquarium)) && (_root.hazards)) && (!_root.pausee)) {
nettt = _root.backgrounda.attachMovie("netdown", "fishcatcher" + netts, -10000 - netts);
netts = netts + 1;
nettt._y = -1090;
nettt._x = random(550) - 275;
}
}
Instance of Symbol 362 MovieClip "shooter22" in Symbol 2042 MovieClip Frame 1
onClipEvent (load) {
arr = 0;
}
onClipEvent (enterFrame) {
if (!_root.pausee) {
_root.randompick51 = random(_root.purate);
if ((_root.randompick51 == 45) && (!_root.aquarium)) {
ppup1 = _root.backgrounda.attachMovie("powerup4", "power" + arr, -9000 - arr);
arr = arr + 1;
ppup1._y = _root.backgrounda.shooter22._y;
ppup1._x = (_root.backgrounda.shooter._x + random(520)) + 1;
ppup1._xscale = ppup1._xscale * 0.9;
}
if ((_root.randompick51 == 43) && (!_root.aquarium)) {
ppup = _root.backgrounda.attachMovie("powerup1", "power" + arr, -9000 - arr);
arr = arr + 1;
ppup._y = _root.backgrounda.shooter22._y;
ppup._x = (_root.backgrounda.shooter._x + random(520)) + 1;
ppup._xscale = ppup._xscale * 0.9;
}
if ((_root.randompick51 == 23) && (!_root.aquarium)) {
ppup2 = _root.backgrounda.attachMovie("powerup2", "power" + arr, -9000 - arr);
arr = arr + 1;
ppup2._y = _root.backgrounda.shooter22._y;
ppup2._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
if ((_root.randompick51 == 24) && (!_root.aquarium)) {
ppup3 = _root.backgrounda.attachMovie("powerup3", "power" + arr, -9000 - arr);
arr = arr + 1;
ppup3._y = _root.backgrounda.shooter22._y;
ppup3._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
}
}
Instance of Symbol 362 MovieClip "shooter" in Symbol 2042 MovieClip Frame 1
onClipEvent (enterFrame) {
randompick5 = random(_root.minerate);
if ((((randompick5 == 10) && (!_root.aquarium)) && (_root.hazards)) && (!_root.pausee)) {
randompick5 = 0;
minez = _root.backgrounda.attachMovie("mines", ("bareel" + random(108214)) + 1, random(1000) - 10405);
minez._xscale = minez._xscale * 0.8;
minez._y = _root.backgrounda.shooter._y - 150;
minez._x = (_root.backgrounda.shooter._x + random(520)) + 1;
}
}
Symbol 2093 MovieClip Frame 1
stop();
Symbol 2093 MovieClip Frame 4
stop();
Instance of Symbol 2082 MovieClip in Symbol 2093 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 2093 MovieClip Frame 17
play();
Symbol 2093 MovieClip Frame 45
_root.gotoAndStop("netted2");
Symbol 2102 MovieClip Frame 1
stop();
Symbol 2102 MovieClip Frame 9
wsave = _root.fish._width;
hsave = _root.fish._height;
_root.fish._width = _root.fish._width * 5;
_root.fish._height = _root.fish._height * 5;
_root.yourfishsize = _root.fish._height + _root.fish._width;
if (_root.faceleft && (!_root.morphfishcheat)) {
_root.fish._xscale = _root.fish._xscale * -1;
}
_root.endless = true;
_root.invincible = true;
if ((!_root.soundoff) && (!_root.powerupwoopstarted)) {
_root.playEffect(_root.powerupwoop);
_root.playEffect(_root.powerupwoop2);
_root.powerupwoopstarted = true;
_root.megaballs = true;
}
Instance of Symbol 2101 MovieClip in Symbol 2102 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 2102 MovieClip Frame 159
_root.fish._width = _root.fish._width / 5;
_root.fish._height = _root.fish._height / 5;
if (_root.faceleft && (!_root.morphfishcheat)) {
_root.fish._xscale = _root.fish._xscale * -1;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
_root.megaballs = false;
_root.powerupwoopstarted = false;
Symbol 2102 MovieClip Frame 181
_root.endless = false;
_root.ppget = false;
_root.invincible = false;
Symbol 2108 MovieClip Frame 1
stop();
Symbol 2108 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 2107 MovieClip in Symbol 2108 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 2108 MovieClip Frame 159
_root.invincible = false;
_root.ppget = false;
_root.powerupwoopstarted = false;
Symbol 2119 Button
on (press) {
_root.soundoff = false;
}
Symbol 2122 Button
on (press) {
_root.soundoff = true;
}
Symbol 2123 MovieClip Frame 1
stop();
Instance of Symbol 2116 MovieClip in Symbol 2123 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.soundoff) {
_parent.gotoAndStop(5);
}
}
Symbol 2123 MovieClip Frame 5
stop();
Instance of Symbol 2120 MovieClip in Symbol 2123 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.soundoff) {
_parent.gotoAndStop(1);
}
}
Symbol 2126 Button
on (press) {
_root._quality = "MEDIUM";
}
Symbol 2129 Button
on (press) {
_root._quality = "LOW";
}
Symbol 2131 Button
on (press) {
_root._quality = "BEST";
}
Symbol 2132 MovieClip Frame 1
stop();
Instance of Symbol 2125 MovieClip in Symbol 2132 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 2132 MovieClip Frame 5
stop();
Instance of Symbol 2128 MovieClip in Symbol 2132 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 2132 MovieClip Frame 9
stop();
Instance of Symbol 2130 MovieClip in Symbol 2132 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 2136 Button
on (press) {
_root.autolevel = true;
}
Symbol 2139 Button
on (press) {
_root.autolevel = false;
}
Symbol 2141 MovieClip Frame 1
stop();
Instance of Symbol 2134 MovieClip in Symbol 2141 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.autolevel) {
_parent.gotoAndStop(5);
}
}
Symbol 2141 MovieClip Frame 5
stop();
Instance of Symbol 2138 MovieClip in Symbol 2141 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.autolevel) {
_parent.gotoAndStop(1);
}
}
Symbol 2142 Button
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=evolvo", "_blank");
}
Symbol 2143 Button
on (release) {
getURL ("http://pianoforte.newgrounds.com/", "_blank");
}
Symbol 2152 Button
on (press) {
surequit.gotoAndStop(2);
}
Symbol 2153 Button
on (release) {
_root.labelz = false;
}
Symbol 2154 Button
on (release) {
_root.labelz = true;
}
Symbol 2155 MovieClip Frame 1
stop();
Instance of Symbol 2125 MovieClip in Symbol 2155 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.labelz) {
_parent.gotoAndStop(5);
}
}
Symbol 2155 MovieClip Frame 5
stop();
Instance of Symbol 2128 MovieClip in Symbol 2155 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.labelz) {
_parent.gotoAndStop(1);
}
}
Symbol 2156 Button
on (release) {
_root.boxes = false;
}
Symbol 2157 Button
on (release) {
_root.boxes = true;
}
Symbol 2158 MovieClip Frame 1
stop();
Instance of Symbol 2125 MovieClip in Symbol 2158 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.boxes) {
_parent.gotoAndStop(5);
}
}
Symbol 2158 MovieClip Frame 5
stop();
Instance of Symbol 2128 MovieClip in Symbol 2158 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.boxes) {
_parent.gotoAndStop(1);
}
}
Symbol 2166 Button
on (press) {
if (((((((_root.cheat != "ULTRAVOLVO") && (_root.cheat != "INVINCIVOLVO")) && (_root.cheat != "CHANGEOLVO")) && (_root.cheat != "SAFEOLVO")) && (_root.cheat != "ETERNIVOLVO")) && (_root.cheat != "FISHOLVO")) && (_root.cheat != "SANTAVOLVO")) {
outcome.gotoAndPlay("wrong");
}
if (_root.cheat == "SANTAVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("christmas");
}
if (_root.cheat == "INVINCIVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("invincible");
}
if (_root.cheat == "CHANGEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("custom");
}
if (_root.cheat == "SAFEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("safe");
}
if (_root.cheat == "ETERNIVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("endless");
}
if (_root.cheat == "FISHOLVO") {
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("morph");
}
if (_root.cheat == "ENDINGVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("ending");
}
if (_root.cheat == "ULTRAVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("maxevolve");
}
}
Symbol 2184 Button
on (release) {
_root.pausescreen.gotoAndPlay("unpause");
}
Symbol 2210 MovieClip Frame 1
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
stop();
Symbol 2210 MovieClip Frame 10
_root.cheat = "-------------------";
play();
Symbol 2210 MovieClip Frame 24
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 25
_root.cheat = "-------------------";
_root.cheatinvincible = true;
_root.cheater = true;
play();
Symbol 2210 MovieClip Frame 75
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 76
_root.cheat = "-------------------";
_root.cheater = true;
_root.evolution = 6;
_root.fish._xscale = _root.fish._xscale * 2;
_root.fish._yscale = _root.fish._yscale * 2;
_root.yourfishsize = _root.fish._height + _root.fish._width;
_root.scores.bluebar._visible = true;
_root.scores.redbar._visible = true;
_root.bgmax = 2065;
play();
Symbol 2210 MovieClip Frame 121
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 122
_root.cheat = "-------------------";
ratio = 1220 / _root.fish._width;
_root.fish._yscale = _root.fish._yscale * ratio;
_root.fish._xscale = _root.fish._xscale * ratio;
_root.yourfishsize = _root.fish._width + _root.fish._height;
if (_root.faceleft) {
_root.fish._xscale = _root.fish._xscale * -1;
}
_root.cheater = true;
_root.endless = false;
play();
Symbol 2210 MovieClip Frame 158
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 159
_root.cheat = "-------------------";
_root.cheater = true;
_root.endless = true;
play();
Symbol 2210 MovieClip Frame 200
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 201
_root.cheat = "-------------------";
_root.cheater = true;
_parent.newfish.gotoAndStop("select");
play();
Symbol 2210 MovieClip Frame 240
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 241
_root.cheat = "-------------------";
_root.cheater = true;
_parent.custommenu.gotoAndStop("select");
play();
Symbol 2210 MovieClip Frame 275
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 276
_root.cheat = "-------------------";
_root.cheater = true;
_root.hazards = false;
play();
Symbol 2210 MovieClip Frame 319
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2210 MovieClip Frame 320
_root.cheat = "-------------------";
_root.cheater = true;
_root.christmas = true;
play();
Symbol 2210 MovieClip Frame 363
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
gotoAndPlay ("start");
Symbol 2211 MovieClip Frame 7
stop();
Symbol 2215 MovieClip Frame 65
stop();
Symbol 2231 Button
on (press) {
if (_root.bossfight) {
_root.gotoAndPlay("reloop");
} else {
_root.gotoAndStop("main");
}
}
Symbol 2241 Button
on (press) {
gotoAndStop (1);
}
Symbol 2243 MovieClip Frame 1
stop();
Symbol 2243 MovieClip Frame 2
stop();
Symbol 2253 Button
on (press) {
_parent.gotoAndStop("idle");
}
Symbol 2258 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = random(99) + 1;
_root.gotoAndStop("main");
}
Symbol 2266 MovieClip Frame 10
stop();
Symbol 2269 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 1;
_root.gotoAndStop("main");
}
Symbol 2270 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 2;
_root.gotoAndStop("main");
}
Symbol 2271 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 3;
_root.gotoAndStop("main");
}
Symbol 2272 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 4;
_root.gotoAndStop("main");
}
Symbol 2273 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 5;
_root.gotoAndStop("main");
}
Symbol 2274 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 6;
_root.gotoAndStop("main");
}
Symbol 2275 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 7;
_root.gotoAndStop("main");
}
Symbol 2276 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 8;
_root.gotoAndStop("main");
}
Symbol 2277 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 9;
_root.gotoAndStop("main");
}
Symbol 2278 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 10;
_root.gotoAndStop("main");
}
Symbol 2279 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 11;
_root.gotoAndStop("main");
}
Symbol 2280 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 12;
_root.gotoAndStop("main");
}
Symbol 2281 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 20;
_root.gotoAndStop("main");
}
Symbol 2282 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 21;
_root.gotoAndStop("main");
}
Symbol 2283 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 22;
_root.gotoAndStop("main");
}
Symbol 2284 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 23;
_root.gotoAndStop("main");
}
Symbol 2285 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 24;
_root.gotoAndStop("main");
}
Symbol 2286 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 25;
_root.gotoAndStop("main");
}
Symbol 2287 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 26;
_root.gotoAndStop("main");
}
Symbol 2288 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 27;
_root.gotoAndStop("main");
}
Symbol 2289 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 28;
_root.gotoAndStop("main");
}
Symbol 2290 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 29;
_root.gotoAndStop("main");
}
Symbol 2291 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 30;
_root.gotoAndStop("main");
}
Symbol 2292 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 31;
_root.gotoAndStop("main");
}
Symbol 2293 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 32;
_root.gotoAndStop("main");
}
Symbol 2294 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 33;
_root.gotoAndStop("main");
}
Symbol 2295 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 34;
_root.gotoAndStop("main");
}
Symbol 2296 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 35;
_root.gotoAndStop("main");
}
Symbol 2297 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 36;
_root.gotoAndStop("main");
}
Symbol 2298 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 37;
_root.gotoAndStop("main");
}
Symbol 2299 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 38;
_root.gotoAndStop("main");
}
Symbol 2300 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 39;
_root.gotoAndStop("main");
}
Symbol 2301 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 40;
_root.gotoAndStop("main");
}
Symbol 2302 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 41;
_root.gotoAndStop("main");
}
Symbol 2303 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 42;
_root.gotoAndStop("main");
}
Symbol 2304 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 43;
_root.gotoAndStop("main");
}
Symbol 2305 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 44;
_root.gotoAndStop("main");
}
Symbol 2306 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 45;
_root.gotoAndStop("main");
}
Symbol 2307 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 46;
_root.gotoAndStop("main");
}
Symbol 2308 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 47;
_root.gotoAndStop("main");
}
Symbol 2309 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 48;
_root.gotoAndStop("main");
}
Symbol 2310 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 49;
_root.gotoAndStop("main");
}
Symbol 2311 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 50;
_root.gotoAndStop("main");
}
Symbol 2312 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 51;
_root.gotoAndStop("main");
}
Symbol 2313 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 52;
_root.gotoAndStop("main");
}
Symbol 2314 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 53;
_root.gotoAndStop("main");
}
Symbol 2315 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 54;
_root.gotoAndStop("main");
}
Symbol 2316 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 55;
_root.gotoAndStop("main");
}
Symbol 2317 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 56;
_root.gotoAndStop("main");
}
Symbol 2318 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 57;
_root.gotoAndStop("main");
}
Symbol 2319 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 58;
_root.gotoAndStop("main");
}
Symbol 2320 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 59;
_root.gotoAndStop("main");
}
Symbol 2321 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 60;
_root.gotoAndStop("main");
}
Symbol 2322 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 61;
_root.gotoAndStop("main");
}
Symbol 2323 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 62;
_root.gotoAndStop("main");
}
Symbol 2324 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 63;
_root.gotoAndStop("main");
}
Symbol 2325 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 64;
_root.gotoAndStop("main");
}
Symbol 2326 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 88;
_root.gotoAndStop("main");
}
Symbol 2327 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 75;
_root.gotoAndStop("main");
}
Symbol 2328 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 76;
_root.gotoAndStop("main");
}
Symbol 2329 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 77;
_root.gotoAndStop("main");
}
Symbol 2330 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 78;
_root.gotoAndStop("main");
}
Symbol 2331 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 79;
_root.gotoAndStop("main");
}
Symbol 2332 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 80;
_root.gotoAndStop("main");
}
Symbol 2333 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 81;
_root.gotoAndStop("main");
}
Symbol 2334 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 82;
_root.gotoAndStop("main");
}
Symbol 2335 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 83;
_root.gotoAndStop("main");
}
Symbol 2336 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 84;
_root.gotoAndStop("main");
}
Symbol 2337 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 85;
_root.gotoAndStop("main");
}
Symbol 2338 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 86;
_root.gotoAndStop("main");
}
Symbol 2339 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 87;
_root.gotoAndStop("main");
}
Symbol 2340 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 89;
_root.gotoAndStop("main");
}
Symbol 2341 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 91;
_root.gotoAndStop("main");
}
Symbol 2342 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 92;
_root.gotoAndStop("main");
}
Symbol 2343 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 99;
_root.gotoAndStop("main");
}
Symbol 2344 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 65;
_root.gotoAndStop("main");
}
Symbol 2345 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 13;
_root.gotoAndStop("main");
}
Symbol 2346 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 14;
_root.gotoAndStop("main");
}
Symbol 2347 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 15;
_root.gotoAndStop("main");
}
Symbol 2348 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 16;
_root.gotoAndStop("main");
}
Symbol 2349 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 17;
_root.gotoAndStop("main");
}
Symbol 2350 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 93;
_root.gotoAndStop("main");
}
Symbol 2351 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 94;
_root.gotoAndStop("main");
}
Symbol 2352 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 95;
_root.gotoAndStop("main");
}
Symbol 2353 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 96;
_root.gotoAndStop("main");
}
Symbol 2354 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 66;
_root.gotoAndStop("main");
}
Symbol 2355 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 67;
_root.gotoAndStop("main");
}
Symbol 2356 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 97;
_root.gotoAndStop("main");
}
Symbol 2357 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 68;
_root.gotoAndStop("main");
}
Symbol 2358 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 18;
_root.gotoAndStop("main");
}
Symbol 2359 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 19;
_root.gotoAndStop("main");
}
Symbol 2360 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 98;
_root.gotoAndStop("main");
}
Symbol 2361 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 69;
_root.gotoAndStop("main");
}
Symbol 2362 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 70;
_root.gotoAndStop("main");
}
Symbol 2363 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 71;
_root.gotoAndStop("main");
}
Symbol 2364 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 72;
_root.gotoAndStop("main");
}
Symbol 2365 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 73;
_root.gotoAndStop("main");
}
Symbol 2366 Button
on (press) {
_root.morphfishcheat = true;
_root.morphnumber = 74;
_root.gotoAndStop("main");
}
Symbol 2370 MovieClip Frame 1
stop();
Symbol 2370 MovieClip Frame 4
stop();
Symbol 2391 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 2392 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 2393 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 2394 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 2395 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 2402 Button
on (press) {
gotoAndPlay ("deselect");
}
Symbol 2417 MovieClip Frame 1
stop();
Symbol 2417 MovieClip Frame 7
stop();
Symbol 2417 MovieClip Frame 17
play();
Symbol 2417 MovieClip Frame 25
gotoAndStop (1);
Symbol 2419 MovieClip Frame 1
stop();
Symbol 2419 MovieClip Frame 5
play();
_root.savemydata();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
Symbol 2419 MovieClip Frame 12
stop();
Symbol 2419 MovieClip Frame 13
play();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "";
_root.savemydata();
Symbol 2419 MovieClip Frame 35
gotoAndStop ("idle");
_root.pausee = false;
Symbol 2427 MovieClip Frame 20
stop();
Symbol 2442 Button
on (press) {
_root.speed = _root.speed + 1;
_root.levelupscreen.gotoAndPlay(2);
_root.pausee = false;
}
Symbol 2448 MovieClip Frame 1
stop();
Instance of Symbol 2438 MovieClip in Symbol 2448 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 2445 MovieClip in Symbol 2448 MovieClip Frame 1
onClipEvent (load) {
if (_root.speed >= _root.maxspeed) {
_parent.gotoAndStop(2);
}
}
Symbol 2448 MovieClip Frame 2
stop();
Instance of Symbol 2445 MovieClip in Symbol 2448 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.speed == 15) {
_parent.gotoAndStop(2);
}
}
Symbol 2451 Button
on (press) {
_root.agility = _root.agility + 1;
_root.fishfriction = _root.fishfriction - 0.01;
_root.levelupscreen.gotoAndPlay(2);
_root.pausee = false;
}
Symbol 2454 MovieClip Frame 1
stop();
Instance of Symbol 2438 MovieClip in Symbol 2454 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 2445 MovieClip in Symbol 2454 MovieClip Frame 1
onClipEvent (load) {
if (_root.agility >= _root.maxagility) {
_parent.gotoAndStop(2);
}
}
Symbol 2454 MovieClip Frame 2
stop();
Instance of Symbol 2445 MovieClip in Symbol 2454 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.agility == 7) {
_parent.gotoAndStop(2);
}
}
Symbol 2457 Button
on (press) {
_root.speed = _root.speed + 1;
_root.levelupscreen.gotoAndStop("evolve");
}
Symbol 2468 MovieClip Frame 1
stop();
Instance of Symbol 2461 MovieClip in Symbol 2468 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.level <= 15) && (_root.evolution == 4)) {
_parent.gotoAndStop("bloooop");
}
if ((_root.level <= 20) && (_root.evolution == 5)) {
_parent.gotoAndStop("blooooop");
}
if (_root.evolution == 6) {
_parent.gotoAndStop("bloooooop");
}
}
Symbol 2468 MovieClip Frame 4
stop();
Symbol 2468 MovieClip Frame 8
stop();
Symbol 2468 MovieClip Frame 12
stop();
Symbol 2468 MovieClip Frame 15
stop();
Symbol 2468 MovieClip Frame 19
stop();
Symbol 2471 MovieClip Frame 1
stop();
Instance of Symbol 2438 MovieClip in Symbol 2471 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root.keythree) && (!_root.keythreee)) {
_root.speed = _root.speed + 1;
_root.levelupscreen.gotoAndStop("evolve");
_root.keythreee = true;
}
}
Instance of Symbol 2445 MovieClip in Symbol 2471 MovieClip Frame 1
onClipEvent (load) {
if (_root.evolution == 6) {
_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);
}
if ((_root.evolution == 4) && (_root.level <= 15)) {
_parent.gotoAndStop(2);
}
if ((_root.evolution == 5) && (_root.level <= 20)) {
_parent.gotoAndStop(2);
}
}
Symbol 2471 MovieClip Frame 2
stop();
Instance of Symbol 2445 MovieClip in Symbol 2471 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 2492 Button
on (press) {
_root.autolevel = true;
}
Symbol 2500 MovieClip Frame 1
stop();
Instance of Symbol 2494 MovieClip in Symbol 2500 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.autolevel) {
_parent.gotoAndStop(4);
}
}
Symbol 2500 MovieClip Frame 4
stop();
Instance of Symbol 2494 MovieClip in Symbol 2500 MovieClip Frame 4
onClipEvent (enterFrame) {
if (!_root.autolevel) {
_parent.gotoAndStop(1);
}
}
Symbol 2502 MovieClip Frame 8
stop();
Symbol 2506 MovieClip Frame 1
stop();
Symbol 2507 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_angel);
}
Symbol 2507 MovieClip Frame 83
stop();
Symbol 2511 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_angel);
}
Symbol 2511 MovieClip Frame 85
stop();
Symbol 2515 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_angel);
}
Symbol 2515 MovieClip Frame 80
stop();
Symbol 2523 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_angel);
}
Symbol 2523 MovieClip Frame 80
stop();
Symbol 2530 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_angel);
}
Symbol 2530 MovieClip Frame 80
stop();
Symbol 2534 MovieClip Frame 1
stop();
if (_root.evolution == 1) {
gotoAndStop ("firste");
}
if (_root.evolution == 2) {
gotoAndStop ("seconde");
}
if (_root.evolution == 3) {
gotoAndStop ("thirde");
}
if (_root.evolution == 4) {
gotoAndStop ("fourthe");
}
if (_root.evolution == 5) {
gotoAndStop ("fifthe");
}
Symbol 2534 MovieClip Frame 2
stop();
_root.evolution = _root.evolution + 1;
_root.bgmax = 2065;
_root.fish.gotoAndStop("idle2");
Symbol 2534 MovieClip Frame 10
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle3");
_root.scores.bluebar._visible = true;
Symbol 2534 MovieClip Frame 20
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle4");
_root.scores.redbar._visible = false;
Symbol 2534 MovieClip Frame 29
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle5");
Symbol 2534 MovieClip Frame 39
stop();
_root.evolution = _root.evolution + 1;
_root.fish.gotoAndStop("idle6");
Symbol 2538 Button
on (press) {
_root.levelupscreen.gotoAndPlay(2);
}
Symbol 2539 MovieClip Frame 1
stop();
Symbol 2539 MovieClip Frame 2
_root.savemydata();
play();
Symbol 2539 MovieClip Frame 41
stop();
_root.fish.xvel = 0;
_root.fish.yvel = 0;
_root.fish.xvel2 = 0;
_root.fish.yvel2 = 0;
_root.pkey = 80;
_root.pausee = false;
Symbol 2539 MovieClip Frame 42
stop();
if (!_root.soundoff) {
_root.playEffect(_root.levelupp);
}
_root.pkey = 1111;
Symbol 2539 MovieClip Frame 48
stop();
Instance of Symbol 2536 MovieClip in Symbol 2539 MovieClip Frame 48
onClipEvent (enterFrame) {
if (Key.isDown(_root.spacekey)) {
_root.levelupscreen.gotoAndPlay(2);
}
}
Symbol 2542 Button
on (press) {
if (!_root.pausee) {
_root.pausee = true;
_root.pausescreen.gotoAndStop("pause");
} else {
_root.pausee = false;
_root.pausescreen.gotoAndStop("unpause");
}
}
Symbol 2546 MovieClip Frame 1
stop();
_root.invisiblesound = false;
Symbol 2546 MovieClip Frame 5
play();
_root.invisiblesound = true;
if (!_root.soundoff) {
_root.playEffect(_root.invisibleee);
}
Symbol 2546 MovieClip Frame 31
gotoAndStop (1);
Symbol 2548 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 2548 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 2548 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 2548 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 2550 MovieClip Frame 1
stop();
Symbol 2550 MovieClip Frame 6
play();
Instance of Symbol 2549 MovieClip in Symbol 2550 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.pausee) {
_parent.stop();
}
if (!_root.pausee) {
_parent.play();
}
}
Symbol 2550 MovieClip Frame 7
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 9
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 11
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 13
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 15
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 17
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 19
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 21
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 23
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 25
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 27
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 29
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 32
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 34
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 36
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 38
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 40
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 42
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 44
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 46
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 48
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 50
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 52
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 54
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 57
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 59
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 61
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 63
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 65
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 67
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 69
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 71
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 73
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 75
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 77
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 79
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 82
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 84
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 86
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 88
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 90
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 92
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 94
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 96
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 98
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 100
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 102
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:255, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 104
myColor = new Color(_root.fish);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
Symbol 2550 MovieClip Frame 105
_root.poisonnn = false;
Symbol 2552 MovieClip Frame 1
stop();
Symbol 2552 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.a_current);
}
Symbol 2552 MovieClip Frame 37
_root.currentstarted = false;
Symbol 2554 MovieClip Frame 1
stop();
Symbol 2554 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.a_oil);
}
Symbol 2554 MovieClip Frame 58
gotoAndPlay (2);
Symbol 2556 MovieClip Frame 1
stop();
Symbol 2556 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.a_redwave);
}
Symbol 2556 MovieClip Frame 111
gotoAndPlay (2);
Symbol 2563 MovieClip Frame 1
stop();
Symbol 2563 MovieClip Frame 2
play();
_root.pkey = 23423;
Symbol 2563 MovieClip Frame 20
stopAllSounds();
_root.fish.unloadMovie();
_root.fish.removeMovieClip();
Symbol 2563 MovieClip Frame 21
if (!_root.soundoff) {
_root.playEffect(_root.underwater);
}
Symbol 2563 MovieClip Frame 42
_root.gotoAndStop("lose");
Symbol 2579 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Instance of Symbol 2578 MovieClip in Symbol 2579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.pausee) {
_parent.play();
}
if (_root.pausee) {
_parent.stop();
}
}
Symbol 2579 MovieClip Frame 14
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 27
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 40
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 53
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 66
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 79
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 92
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 105
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 118
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 131
if (!_root.soundoff) {
_root.playEffect(_root.a_clock);
}
Symbol 2579 MovieClip Frame 141
stop();
Symbol 2580 MovieClip Frame 1
stop();
Symbol 2580 MovieClip Frame 2
_root.slowtimer = 150;
Symbol 2580 MovieClip Frame 141
_root.slowdown = false;
_root.ppget = false;
Symbol 2588 Button
on (press) {
gotoAndStop (1);
_root.reminder2 = false;
}
Symbol 2589 MovieClip Frame 1
stop();
Symbol 2589 MovieClip Frame 2
stop();
Symbol 2630 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.maxfish = 15;
_root.growthrate = 0.025;
_root.maxenemyspeed = 2;
_root.easymode = true;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 4000;
_root.netrate = 5000;
_root.barrelrate = 5000;
_root.cagerate = 20000;
_root.yourfishsize = _root.fish._height + _root.fish._width;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
_root.difficultyselect.gotoAndPlay("go");
}
Symbol 2638 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.maxfish = 20;
_root.growthrate = 0.02;
_root.maxenemyspeed = 3;
_root.easymode = false;
_root.normalmode = true;
_root.hardmode = false;
_root.insanemode = false;
_root.purate = 5000;
_root.netrate = 4000;
_root.barrelrate = 4000;
_root.cagerate = 17000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.85;
_root.fish._xscale = _root.fish._xscale * 0.85;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
_root.difficultyselect.gotoAndPlay("go");
}
Symbol 2648 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.maxfish = 25;
_root.growthrate = 0.015;
_root.maxenemyspeed = 4;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = true;
_root.insanemode = false;
_root.purate = 6000;
_root.netrate = 3000;
_root.barrelrate = 3000;
_root.cagerate = 14000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.7;
_root.fish._xscale = _root.fish._xscale * 0.7;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
_root.difficultyselect.gotoAndPlay("go");
}
Symbol 2662 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.diff1);
}
}
on (press) {
_root.maxfish = 30;
_root.growthrate = 0.01;
_root.maxenemyspeed = 5;
_root.easymode = false;
_root.normalmode = false;
_root.hardmode = false;
_root.insanemode = true;
_root.purate = 7000;
_root.netrate = 2000;
_root.barrelrate = 2000;
_root.cagerate = 10000;
if ((_root.fish._height + _root.fish._width) >= 60) {
_root.fish._yscale = _root.fish._yscale * 0.5;
_root.fish._xscale = _root.fish._xscale * 0.5;
}
_root.yourfishsize = _root.fish._height + _root.fish._width;
if (!_root.soundoff) {
_root.playEffect(_root.diff3);
}
_root.difficultyselect.gotoAndPlay("go");
}
Symbol 2667 MovieClip Frame 1
stop();
Symbol 2667 MovieClip Frame 2
if (!_root.soundoff) {
if (!_root.aquarium) {
}
}
Instance of Symbol 2620 MovieClip in Symbol 2667 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.pausee = true;
_root.pkey = 21;
}
Symbol 2667 MovieClip Frame 8
stop();
Symbol 2667 MovieClip Frame 9
play();
Symbol 2667 MovieClip Frame 15
_root.diffselected = true;
_root.savemydata();
_root.pausee = false;
_root.pkey = 80;
Symbol 2667 MovieClip Frame 16
stop();
Symbol 2668 MovieClip Frame 1
stop();
Symbol 2668 MovieClip Frame 2
play();
Symbol 2668 MovieClip Frame 30
_root.gotoAndStop("caged");
Symbol 2669 MovieClip Frame 1
stop();
Symbol 2669 MovieClip Frame 2
play();
Symbol 2669 MovieClip Frame 30
_root.gotoAndStop("netted2");
Symbol 2673 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 2675 Button
on (press) {
if (!_root.diffselected) {
_root.difficultyselect.gotoAndPlay(2);
}
gotoAndStop (1);
}
Symbol 2676 MovieClip Frame 1
if (_root.instructionss or _root.aquarium) {
if (!_root.diffselected) {
_root.difficultyselect.gotoAndPlay(2);
}
stop();
} else {
play();
}
Symbol 2676 MovieClip Frame 2
_root.instructionss = true;
stop();
Symbol 2687 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.boss_alarm);
}
Symbol 2687 MovieClip Frame 25
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 2687 MovieClip Frame 40
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 2687 MovieClip Frame 49
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 2687 MovieClip Frame 56
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 2687 MovieClip Frame 64
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 2687 MovieClip Frame 70
stop();
Symbol 2688 MovieClip Frame 1
stop();
Symbol 2688 MovieClip Frame 2
stopAllSounds();
_root.loopstared1 = false;
Symbol 2688 MovieClip Frame 6
if (!_root.soundoff) {
_root.playEffect(_root.biteending);
}
Symbol 2688 MovieClip Frame 120
_root.loopstared1 = false;
_root.gotoAndStop("bossfight");
Symbol 2709 MovieClip Frame 6
stop();
Symbol 2711 Button
on (release) {
_root.mmm21 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
Symbol 2837 MovieClip Frame 1
stop();
Symbol 2837 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.boss_hatchopen);
}
Symbol 2837 MovieClip Frame 15
stop();
if (!_root.soundoff) {
_root.playEffect(_root.boss_hatchclose);
}
Symbol 2845 MovieClip Frame 1
stop();
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 1
onClipEvent (load) {
if (_root.fishEaten[2]) {
this._x = 10000;
}
}
Instance of Symbol 2709 MovieClip in Symbol 2845 MovieClip Frame 1
onClipEvent (load) {
if (_root.fishEaten[2]) {
this._x = 10000;
}
}
Instance of Symbol 2712 MovieClip in Symbol 2845 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.savefile.data.mm21 == 1) {
this._x = this._x + 10000;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.fishEaten[3]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.fishEaten[4]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.fishEaten[5]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.fishEaten[6]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.fishEaten[7]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.fishEaten[8]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.fishEaten[9]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.fishEaten[10]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.fishEaten[11]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.fishEaten[12]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.fishEaten[13]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.fishEaten[14]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.fishEaten[15]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_root.fishEaten[16]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.fishEaten[17]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.fishEaten[18]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.fishEaten[19]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.fishEaten[20]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.fishEaten[21]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.fishEaten[22]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 22
onClipEvent (enterFrame) {
if (_root.fishEaten[23]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 23
onClipEvent (enterFrame) {
if (_root.fishEaten[24]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.fishEaten[25]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.fishEaten[26]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 26
onClipEvent (enterFrame) {
if (_root.fishEaten[27]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 27
onClipEvent (enterFrame) {
if (_root.fishEaten[28]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.fishEaten[29]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.fishEaten[30]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.fishEaten[31]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 31
onClipEvent (enterFrame) {
if (_root.fishEaten[32]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 32
onClipEvent (enterFrame) {
if (_root.fishEaten[33]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 33
onClipEvent (enterFrame) {
if (_root.fishEaten[34]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 34
onClipEvent (enterFrame) {
if (_root.fishEaten[35]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 35
onClipEvent (enterFrame) {
if (_root.fishEaten[36]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 36
onClipEvent (enterFrame) {
if (_root.fishEaten[37]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.fishEaten[38]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 38
onClipEvent (enterFrame) {
if (_root.fishEaten[39]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 39
onClipEvent (enterFrame) {
if (_root.fishEaten[40]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 40
onClipEvent (enterFrame) {
if (_root.fishEaten[41]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 41
onClipEvent (enterFrame) {
if (_root.fishEaten[42]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 42
onClipEvent (enterFrame) {
if (_root.fishEaten[43]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 43
onClipEvent (enterFrame) {
if (_root.fishEaten[44]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 44
onClipEvent (enterFrame) {
if (_root.fishEaten[45]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 45
onClipEvent (enterFrame) {
if (_root.fishEaten[46]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 46
onClipEvent (enterFrame) {
if (_root.fishEaten[47]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 47
onClipEvent (enterFrame) {
if (_root.fishEaten[48]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 48
onClipEvent (enterFrame) {
if (_root.fishEaten[49]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 49
onClipEvent (enterFrame) {
if (_root.fishEaten[50]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 50
onClipEvent (enterFrame) {
if (_root.fishEaten[51]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 51
onClipEvent (enterFrame) {
if (_root.fishEaten[52]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 52
onClipEvent (enterFrame) {
if (_root.fishEaten[53]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 53
onClipEvent (enterFrame) {
if (_root.fishEaten[54]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 54
onClipEvent (enterFrame) {
if (_root.fishEaten[55]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 55
onClipEvent (enterFrame) {
if (_root.fishEaten[56]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 56
onClipEvent (enterFrame) {
if (_root.fishEaten[57]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.fishEaten[58]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 58
onClipEvent (enterFrame) {
if (_root.fishEaten[59]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 59
onClipEvent (enterFrame) {
if (_root.fishEaten[60]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 60
onClipEvent (enterFrame) {
if (_root.fishEaten[61]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.fishEaten[62]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 62
onClipEvent (enterFrame) {
if (_root.fishEaten[63]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 63
onClipEvent (enterFrame) {
if (_root.fishEaten[64]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 64
onClipEvent (enterFrame) {
if (_root.fishEaten[65]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 65
onClipEvent (enterFrame) {
if (_root.fishEaten[66]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 66
onClipEvent (enterFrame) {
if (_root.fishEaten[67]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 67
onClipEvent (enterFrame) {
if (_root.fishEaten[68]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_root.fishEaten[69]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 69
onClipEvent (enterFrame) {
if (_root.fishEaten[70]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 70
onClipEvent (enterFrame) {
if (_root.fishEaten[71]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 71
onClipEvent (enterFrame) {
if (_root.fishEaten[72]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 72
onClipEvent (enterFrame) {
if (_root.fishEaten[73]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 73
onClipEvent (enterFrame) {
if (_root.fishEaten[74]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 74
onClipEvent (enterFrame) {
if (_root.fishEaten[75]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 75
onClipEvent (enterFrame) {
if (_root.fishEaten[76]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 76
onClipEvent (enterFrame) {
if (_root.fishEaten[77]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 77
onClipEvent (enterFrame) {
if (_root.fishEaten[78]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 78
onClipEvent (enterFrame) {
if (_root.fishEaten[79]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 79
onClipEvent (enterFrame) {
if (_root.fishEaten[80]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 80
onClipEvent (enterFrame) {
if (_root.fishEaten[81]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 81
onClipEvent (enterFrame) {
if (_root.fishEaten[82]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 82
onClipEvent (enterFrame) {
if (_root.fishEaten[83]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 83
onClipEvent (enterFrame) {
if (_root.fishEaten[84]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 84
onClipEvent (enterFrame) {
if (_root.fishEaten[85]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 85
onClipEvent (enterFrame) {
if (_root.fishEaten[86]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 86
onClipEvent (enterFrame) {
if (_root.fishEaten[87]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 87
onClipEvent (enterFrame) {
if (_root.fishEaten[88]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 88
onClipEvent (enterFrame) {
if (_root.fishEaten[89]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 89
onClipEvent (enterFrame) {
if (_root.fishEaten[90]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 90
onClipEvent (enterFrame) {
if (_root.fishEaten[91]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 91
onClipEvent (enterFrame) {
if (_root.fishEaten[92]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 92
onClipEvent (enterFrame) {
if (_root.fishEaten[93]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 93
onClipEvent (enterFrame) {
if (_root.fishEaten[94]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 94
onClipEvent (enterFrame) {
if (_root.fishEaten[95]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 95
onClipEvent (enterFrame) {
if (_root.fishEaten[96]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 96
onClipEvent (enterFrame) {
if (_root.fishEaten[97]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 97
onClipEvent (enterFrame) {
if (_root.fishEaten[98]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 98
onClipEvent (enterFrame) {
if (_root.fishEaten[99]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 99
onClipEvent (enterFrame) {
if (_root.fishEaten[100]) {
this._alpha = 0;
}
}
Instance of Symbol 2708 MovieClip "lock" in Symbol 2845 MovieClip Frame 100
onClipEvent (enterFrame) {
if (_root.fishEaten[101]) {
this._alpha = 0;
}
}
Symbol 2850 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 2859 Button
on (press) {
_root.reminder = false;
gotoAndStop (1);
}
Symbol 2860 MovieClip Frame 1
stop();
Symbol 2860 MovieClip Frame 2
stop();
Symbol 2861 MovieClip Frame 1
if (_root.reminder) {
reminderwindow.gotoAndStop(2);
}
Instance of Symbol 2853 MovieClip in Symbol 2861 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fishes.fish.el._x = _parent.fishes.fish.el._x + 10000;
_parent.fishes.fish.body._x = _parent.fishes.fish.body._x + 10000;
_parent.fishes.fish.fmouth._x = _parent.fishes.fish.fmouth._x + 10000;
_parent.fishes.fish.poison._x = _parent.fishes.fish.poison._x + 10000;
if (Key.isDown(_root.arrowleft) or Key.isDown(_root.arrowleft2)) {
if ((_root.fishnumber > 1) && (!_root.leftdown)) {
_root.fishnumber = _root.fishnumber - 1;
_root.gallery.fishes.prevFrame();
_root.leftdown = true;
}
}
if ((!Key.isDown(_root.arrowleft)) && (!Key.isDown(_root.arrowleft2))) {
_root.leftdown = false;
}
if ((!Key.isDown(_root.arrowright)) && (!Key.isDown(_root.arrowright2))) {
_root.rightdown = false;
}
if (Key.isDown(_root.arrowright) or Key.isDown(_root.arrowright2)) {
if ((_root.fishnumber < 100) && (!_root.rightdown)) {
_root.fishnumber = _root.fishnumber + 1;
_root.gallery.fishes.nextFrame();
_root.rightdown = true;
}
}
}
Symbol 2875 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
_root.tryagain = true;
_root.gotoAndStop("main");
}
Symbol 2880 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (press) {
stopAllSounds();
_root.loopstarted1 = false;
_root.morhfishcheat = false;
_root.loopstarted2 = false;
_root.loopstarted3 = false;
_root.loopstarted4 = false;
_cobaltsphere.start();
_root.gotoAndStop("main");
}
Symbol 2885 Button
on (rollOver) {
if (!_root.soundoff) {
_root.playEffect(_root.menububble);
}
}
on (release) {
getURL ("http://www.thepoxbox.com/art.php?id=evolvo", "_blank");
}
Symbol 2892 Button
on (release) {
getURL ("http://www.newgrounds.com/wiki/help-information/web-browser-requirements/disabling-ie-sticky-keys", "_blank");
}
Symbol 2950 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 2901 MovieClip in Symbol 2950 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = random(100000000) + 100;
_root.ranking = random(100000000) + 100;
}
Symbol 2950 MovieClip Frame 35
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 2950 MovieClip Frame 35
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2950 MovieClip Frame 47
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 2950 MovieClip Frame 47
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 2950 MovieClip Frame 60
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 2950 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = _root.getranking;
}
Symbol 2950 MovieClip Frame 68
stop();
Symbol 2973 MovieClip Frame 1
gotoAndStop(random(19) + 1);
stop();
Symbol 2974 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 2974 MovieClip Frame 50
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.tryagain = true;
_root.gotoAndStop("main");
}
};
_root.loopstarted1 = false;
Symbol 2983 Button
on (release) {
com.newgrounds.API.postScore("EvolvoPlus", _root.score);
var scoreBrowser = attachMovie("ScoreBrowser", "EvolvoPlus", 0);
}
Symbol 3041 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 2901 MovieClip in Symbol 3041 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = random(100000000) + 100;
_root.ranking = random(100000000) + 100;
}
Symbol 3041 MovieClip Frame 35
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 3041 MovieClip Frame 35
onClipEvent (enterFrame) {
_root.score = random(100000000) + 100;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 3041 MovieClip Frame 47
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 3041 MovieClip Frame 47
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = random(100000000) + 100;
}
Symbol 3041 MovieClip Frame 60
if (!_root.soundoff) {
_root.playEffect(_root.slam3);
}
Instance of Symbol 2901 MovieClip in Symbol 3041 MovieClip Frame 60
onClipEvent (enterFrame) {
_root.score = _root.getscore;
_root.diversity = _root.getdiversity;
_root.ranking = _root.getranking;
}
Symbol 3041 MovieClip Frame 68
stop();
Symbol 3074 MovieClip Frame 82
gotoAndPlay ("reloop");
Symbol 3077 MovieClip Frame 14
stop();
Symbol 3078 Button
on (release) {
var o = {n:[6, 14, 13, 2, 4, 1, 4, 12, 15, 6, 7, 0, 3, 14, 10, 8], 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, name:playername});
}
Symbol 3079 MovieClip Frame 2
if (_root.cheater) {
}
Symbol 3079 MovieClip Frame 40
stop();
Symbol 3079 MovieClip Frame 41
play();
Symbol 3079 MovieClip Frame 55
_parent.gotoAndStop("movie");
Symbol 3085 Button
on (press) {
_root.gotoAndStop("movie");
}
Symbol 3086 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip in Symbol 3086 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 3227 Button
on (release) {
_root.mmm20 = 43;
_root.medalz.gotoAndPlay("medalcheck");
}
Symbol 3341 MovieClip Frame 1
stopAllSounds();
Symbol 3341 MovieClip Frame 2
Symbol 3341 MovieClip Frame 3
if (_root.soundoff) {
stopAllSounds();
}
Instance of Symbol 3228 MovieClip in Symbol 3341 MovieClip Frame 319
onClipEvent (enterFrame) {
if (_root.savefile.data.mm20 == 1) {
this._alpha = 0;
this._x = this._x + 10000;
}
}
Symbol 3341 MovieClip Frame 927
if (!_root.soundoff) {
_root.playEffect(_root.sonar);
}
Symbol 3341 MovieClip Frame 991
_parent.gotoAndStop("credits");
Symbol 3342 Button
on (press) {
gotoAndStop ("credits");
}
Symbol 3353 MovieClip Frame 42
stop();
Symbol 3359 Button
on (press) {
stopAllSounds();
_root.loopstarted1 = false;
_root.loopstarted2 = false;
_root.loopstarted3 = false;
_root.loopstarted4 = false;
_cobaltsphere.start();
_root.gotoAndStop("main");
}
Symbol 3367 MovieClip Frame 20
stop();
Symbol 3368 MovieClip Frame 141
stop();
Symbol 3412 MovieClip Frame 101
stop();
Symbol 3414 MovieClip Frame 1
stop();
Symbol 3414 MovieClip Frame 18
if (!_root.soundoff) {
_root.playEffect(_root.boss_missile);
}
Symbol 3437 MovieClip Frame 1
if (!_root.soundoff) {
_root.playEffect(_root.boss_propeler);
}
Symbol 3438 MovieClip Frame 1
_root.bossfaceleft = true;
Symbol 3438 MovieClip Frame 56
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 299
_root.bossfaceleft = false;
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 321
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 339
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 403
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 431
_root.daboss.sub.sub.hatch4.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 448
_root.daboss.sub.sub.hatch5.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 454
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 458
_root.daboss.sub.sub.hatch6.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 468
_root.daboss.sub.sub.hatch5.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 472
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 495
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 499
_root.daboss.sub.sub.hatch4.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 506
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 518
_root.daboss.sub.sub.hatch6.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 631
_root.bossfaceleft = true;
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
Symbol 3438 MovieClip Frame 655
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 668
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 681
if (!_root.soundoff) {
_root.playEffect(_root.boss_torpedo);
}
Symbol 3438 MovieClip Frame 815
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 845
_root.daboss.sub.sub.hatch1.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 861
_root.daboss.missile1.gotoAndPlay(1);
Symbol 3438 MovieClip Frame 875
_root.daboss.sub.sub.hatch2.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 892
_root.daboss.missile2.gotoAndPlay(1);
_root.daboss.sub.sub.hatch1.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 913
_root.daboss.sub.sub.hatch3.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 941
_root.daboss.missile3.gotoAndPlay(1);
_root.daboss.sub.sub.hatch2.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 973
_root.daboss.sub.sub.hatch3.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1031
_root.bossfaceleft = false;
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
Symbol 3438 MovieClip Frame 1047
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 1074
_root.daboss.sub.sub.hatch1.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1090
_root.daboss.missile1.gotoAndPlay(1);
Symbol 3438 MovieClip Frame 1110
_root.daboss.sub.sub.hatch2.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1131
_root.daboss.missile2.gotoAndPlay(1);
_root.daboss.sub.sub.hatch1.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1149
_root.daboss.sub.sub.hatch3.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1167
_root.daboss.missile3.gotoAndPlay(1);
_root.daboss.sub.sub.hatch2.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1185
_root.daboss.sub.sub.hatch3.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1266
_root.bossfaceleft = true;
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
Symbol 3438 MovieClip Frame 1274
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 1311
_root.daboss.sub.sub.hatch4.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1331
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 1356
_root.daboss.sub.sub.hatch5.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1363
_root.daboss.sub.sub.hatch4.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1373
_root.daboss.sub.sub.hatch6.gotoAndPlay("open");
Symbol 3438 MovieClip Frame 1381
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 1394
_root.daboss.sub.sub.hatch5.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1405
if (!_root.soundoff) {
_root.playEffect(_root.boss_chargedrop);
}
Symbol 3438 MovieClip Frame 1416
_root.daboss.sub.sub.hatch6.gotoAndPlay("close");
Symbol 3438 MovieClip Frame 1558
_root.bossfaceleft = false;
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
Symbol 3438 MovieClip Frame 1571
if (!_root.soundoff) {
_root.playEffect(_root.boss_sonar);
}
Symbol 3438 MovieClip Frame 1756
_root.daboss.sub.el._xscale = _root.daboss.sub.el._xscale * -1;
Symbol 3440 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);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("invincible");
}
if (_root.cheat == "CHANGEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("custom");
}
if (_root.cheat == "SAFEOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("safe");
}
if (_root.cheat == "ETERNIVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("endless");
}
if (_root.cheat == "FISHOLVO") {
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("morph");
}
if (_root.cheat == "ENDINGVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("ending");
}
if (_root.cheat == "ULTRAVOLVO") {
if (!_root.soundoff) {
_root.playEffect(_root.ching);
}
_root.mmm12 = 43;
_root.medalz.gotoAndPlay("medalcheck");
outcome.gotoAndPlay("maxevolve");
}
}
Symbol 3441 Button
on (release) {
_root.pausescreen2.gotoAndPlay("unpause");
}
Symbol 3445 MovieClip Frame 1
stop();
Symbol 3445 MovieClip Frame 5
play();
_root.savemydata();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "TYPE CHEAT HERE IN ALL CAPS";
Symbol 3445 MovieClip Frame 12
stop();
Symbol 3445 MovieClip Frame 13
play();
if (!_root.soundoff) {
_root.playEffect(_root.pauseess);
}
_root.cheat = "";
_root.savemydata();
Symbol 3445 MovieClip Frame 35
gotoAndStop ("idle");
_root.pausee = false;
Symbol 3450 MovieClip Frame 95
stop();
Symbol 3451 MovieClip Frame 2
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 3451 MovieClip Frame 11
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 3451 MovieClip Frame 19
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 3451 MovieClip Frame 24
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 3451 MovieClip Frame 28
_root.pausee = false;
_root.pausee = false;
_root.keydownpause = false;
_root.gameisover = false;
_root.pkey = 80;
Symbol 3451 MovieClip Frame 31
if (!_root.soundoff) {
_root.playEffect(_root.boss_bigmetal);
}
Symbol 3451 MovieClip Frame 71
_root.pkey = 80;
this.unloadMovie();
this.removeMovieClip();
stop();