Frame 1
stop();
Instance of Symbol 703 MovieClip in Frame 1
onClipEvent (load) {
var percent = 0;
var percent_txt = (percent + "%");
onEnterFrame = function () {
percent = Math.round((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100);
percent_txt = percent + "%";
if (percent >= 100) {
percent_txt = "100%";
_parent.play();
delete onEnterFrame;
}
};
}
Frame 2
function showhelp(goframe) {
_root.helpmenu._visible = true;
_root.helpmenu.gotoAndStop(goframe);
_global.sndfxlib.playsfx(6);
}
MovieClip.prototype.toObject = function (options, obj) {
var _local3 = new Object();
for (var _local6 in this) {
var _local2 = true;
if (String(options).indexOf("z") > 0) {
if ((this[_local6] instanceof Function) && (_local2)) {
_local2 = false;
}
}
if (String(options).indexOf("y") > 0) {
if ((this[_local6] instanceof MovieClip) && (_local2)) {
_local2 = false;
}
}
if (String(options).indexOf("x") > 0) {
if ((this[_local6] instanceof Tween) && (_local2)) {
_local2 = false;
}
}
if (String(options).indexOf("w") > 0) {
if ((this[_local6] instanceof Object) && (_local2)) {
_local2 = false;
}
}
if (_local2) {
_local3[_local6] = this[_local6];
}
}
if (String(options).indexOf("c") > 0) {
_local3._name = this._name;
}
if (String(options).indexOf("d") > 0) {
_local3._xscale = this._xscale;
_local3._yscale = this._yscale;
}
if (String(options).indexOf("e") > 0) {
_local3._x = this._x;
_local3._y = this._y;
}
if (String(options).indexOf("f") > 0) {
_local3._width = this._width;
_local3._height = this._height;
}
if (String(options).indexOf("g") > 0) {
_local3.bodyparts = new Object();
_local3.bodyparts.topfin = this.bodyparts.topfin;
_local3.bodyparts.bodyfin = this.bodyparts.bodyfin;
_local3.bodyparts.backfin = this.bodyparts.backfin;
_local3.bodyparts.eye = this.bodyparts.eye;
}
if (String(options).indexOf("h") > 0) {
_local3.mom = this.mom;
_local3.dad = this.dad;
_local3.momdad = this.momdad;
_local3.mommom = this.mommom;
_local3.dadmom = this.dadmom;
_local3.daddad = this.daddad;
}
if (String(options).indexOf("i") > 0) {
_local3.speed = this.speed;
_local3.moving = this.moving;
_local3.alive = this.alive;
_local3.fishname = this.fishname;
_local3.hasItches = this.hasItches;
_local3.hasMold = this.hasMold;
_local3.health = this.health;
_local3.fed = this.fed;
_local3.hardiness = this.hardiness;
_local3.growMult = this.growMult;
_local3.pureBred = this.pureBred;
_local3.age = this.age;
_local3.price = this.price;
_local3.baseprice = this.baseprice;
_local3.normalprice = this.normalprice;
}
if (obj) {
for (var _local6 in obj) {
_local3[_local6] = obj[_local6];
}
}
return(_local3);
};
String.prototype.slashToDot = function () {
var _local2 = this;
var _local3;
while (_local3 = _local2.indexOf("/") , _local3 >= 0) {
_local2 = _local2.substr(0, _local3);
_local2 = _local2 + ".";
_local2 = _local2 + this.substr(_local3 + 1, this.length);
}
return("_level0" + _local2);
};
Array.prototype.findIndexOf = function (id) {
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] == id) {
return(_local2);
}
_local2++;
}
return(-1);
};
Array.prototype.popByName = function (id_name) {
var _local3 = [];
var _local4;
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] != id_name) {
_local3.push(this[_local2]);
} else {
_local4 = this[_local2];
}
_local2++;
}
while (this.length) {
this.pop();
}
_local2 = 0;
while (_local2 < _local3.length) {
this.push(_local3[_local2]);
_local2++;
}
return(_local4);
};
var fishglow = sampleFish.filters;
var iconglow = sampleicon.filters;
var deadfish = sampleDeadFish.filters;
var deadfishglow = sampleDeadGlowFish.filters;
var nofishglow = [];
this.helpmenu._visible = false;
Frame 11
var deathArray = new Array();
deathArray[0] = "Your fish died because it was over fed!";
deathArray[1] = "Your fish died from too much medicine!";
var soundOn = true;
var cashout = 0;
var newgame = false;
var playingGame = false;
_global.goHome = true;
Frame 12
stop();
trace((("root frame 12 as level: " + _global.FishTank.OptionsView._x) + " ") + _global.FishTank.OptionsView._visible);
Symbol 11 MovieClip [FishFood] Frame 7
stop();
trace(this._name);
removeMovieClip(this);
Symbol 14 MovieClip [Medicine] Frame 8
stop();
this.removeMovieClip();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 4
stop();
Symbol 86 MovieClip Frame 5
stop();
Symbol 86 MovieClip Frame 6
stop();
Symbol 86 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 8
stop();
Symbol 86 MovieClip Frame 9
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 11
stop();
Symbol 86 MovieClip Frame 12
stop();
Symbol 86 MovieClip Frame 13
stop();
Symbol 86 MovieClip Frame 14
stop();
Symbol 86 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 16
stop();
Symbol 86 MovieClip Frame 17
stop();
Symbol 86 MovieClip Frame 18
stop();
Symbol 86 MovieClip Frame 19
stop();
Symbol 86 MovieClip Frame 20
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 4
stop();
Symbol 125 MovieClip Frame 5
gotoAndStop (1);
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 3
stop();
Symbol 129 MovieClip Frame 4
stop();
Symbol 129 MovieClip Frame 5
stop();
Symbol 129 MovieClip Frame 6
stop();
Symbol 129 MovieClip Frame 7
stop();
Symbol 129 MovieClip Frame 8
stop();
Symbol 129 MovieClip Frame 9
stop();
Symbol 129 MovieClip Frame 10
stop();
Symbol 129 MovieClip Frame 11
stop();
Symbol 129 MovieClip Frame 12
stop();
Symbol 129 MovieClip Frame 13
stop();
Symbol 129 MovieClip Frame 14
stop();
Symbol 129 MovieClip Frame 15
stop();
Symbol 129 MovieClip Frame 16
stop();
Symbol 129 MovieClip Frame 17
stop();
Symbol 129 MovieClip Frame 18
stop();
Symbol 129 MovieClip Frame 19
stop();
Symbol 129 MovieClip Frame 20
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 3
stop();
Symbol 243 MovieClip Frame 4
stop();
Symbol 243 MovieClip Frame 5
stop();
Symbol 243 MovieClip Frame 6
stop();
Symbol 243 MovieClip Frame 7
stop();
Symbol 243 MovieClip Frame 8
stop();
Symbol 243 MovieClip Frame 9
stop();
Symbol 243 MovieClip Frame 10
stop();
Symbol 243 MovieClip Frame 11
stop();
Symbol 243 MovieClip Frame 12
stop();
Symbol 243 MovieClip Frame 13
stop();
Symbol 243 MovieClip Frame 14
stop();
Symbol 243 MovieClip Frame 15
stop();
Symbol 243 MovieClip Frame 16
stop();
Symbol 243 MovieClip Frame 17
stop();
Symbol 243 MovieClip Frame 18
stop();
Symbol 243 MovieClip Frame 19
stop();
Symbol 243 MovieClip Frame 20
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 3
stop();
Symbol 300 MovieClip Frame 4
stop();
Symbol 300 MovieClip Frame 5
stop();
Symbol 300 MovieClip Frame 6
stop();
Symbol 300 MovieClip Frame 7
stop();
Symbol 300 MovieClip Frame 8
stop();
Symbol 300 MovieClip Frame 9
stop();
Symbol 300 MovieClip Frame 10
stop();
Symbol 300 MovieClip Frame 11
stop();
Symbol 300 MovieClip Frame 12
stop();
Symbol 300 MovieClip Frame 13
stop();
Symbol 300 MovieClip Frame 14
stop();
Symbol 300 MovieClip Frame 15
stop();
Symbol 300 MovieClip Frame 16
stop();
Symbol 300 MovieClip Frame 17
stop();
Symbol 300 MovieClip Frame 18
stop();
Symbol 300 MovieClip Frame 19
stop();
Symbol 300 MovieClip Frame 20
stop();
Symbol 305 MovieClip [FlyingFish] Frame 1
#initclip 100
Object.registerClass("FlyingFish", FlyingFish);
#endinitclip
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
stop();
Symbol 306 MovieClip Frame 3
stop();
Symbol 306 MovieClip Frame 4
stop();
Symbol 306 MovieClip Frame 5
stop();
Symbol 306 MovieClip Frame 6
stop();
Symbol 306 MovieClip Frame 7
stop();
Symbol 306 MovieClip Frame 8
stop();
Symbol 306 MovieClip Frame 9
stop();
Symbol 306 MovieClip Frame 10
stop();
Symbol 306 MovieClip Frame 11
stop();
Symbol 306 MovieClip Frame 12
stop();
Symbol 306 MovieClip Frame 13
stop();
Symbol 306 MovieClip Frame 14
stop();
Symbol 306 MovieClip Frame 15
stop();
Symbol 306 MovieClip Frame 16
stop();
Symbol 306 MovieClip Frame 17
stop();
Symbol 306 MovieClip Frame 18
stop();
Symbol 306 MovieClip Frame 19
stop();
Symbol 306 MovieClip Frame 20
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 2
stop();
Symbol 308 MovieClip Frame 3
stop();
Symbol 308 MovieClip Frame 4
stop();
Symbol 308 MovieClip Frame 5
stop();
Symbol 308 MovieClip Frame 6
stop();
Symbol 308 MovieClip Frame 7
stop();
Symbol 308 MovieClip Frame 8
stop();
Symbol 308 MovieClip Frame 9
stop();
Symbol 308 MovieClip Frame 10
stop();
Symbol 308 MovieClip Frame 11
stop();
Symbol 308 MovieClip Frame 12
stop();
Symbol 308 MovieClip Frame 13
stop();
Symbol 308 MovieClip Frame 14
stop();
Symbol 308 MovieClip Frame 15
stop();
Symbol 308 MovieClip Frame 16
stop();
Symbol 308 MovieClip Frame 17
stop();
Symbol 308 MovieClip Frame 18
stop();
Symbol 308 MovieClip Frame 19
stop();
Symbol 308 MovieClip Frame 20
stop();
Symbol 309 MovieClip [GaribaldiFish] Frame 1
#initclip 62
Object.registerClass("GaribaldiFish", GaribaldiFish);
#endinitclip
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 3
stop();
Symbol 310 MovieClip Frame 4
stop();
Symbol 310 MovieClip Frame 5
stop();
Symbol 310 MovieClip Frame 6
stop();
Symbol 310 MovieClip Frame 7
stop();
Symbol 310 MovieClip Frame 8
stop();
Symbol 310 MovieClip Frame 9
stop();
Symbol 310 MovieClip Frame 10
stop();
Symbol 310 MovieClip Frame 11
stop();
Symbol 310 MovieClip Frame 12
stop();
Symbol 310 MovieClip Frame 13
stop();
Symbol 310 MovieClip Frame 14
stop();
Symbol 310 MovieClip Frame 15
stop();
Symbol 310 MovieClip Frame 16
stop();
Symbol 310 MovieClip Frame 17
stop();
Symbol 310 MovieClip Frame 18
stop();
Symbol 310 MovieClip Frame 19
stop();
Symbol 310 MovieClip Frame 20
stop();
Symbol 312 MovieClip [TangFish] Frame 1
#initclip 63
Object.registerClass("TangFish", TangFish);
#endinitclip
Symbol 314 MovieClip [ParotFish] Frame 1
#initclip 64
Object.registerClass("ParotFish", ParotFish);
#endinitclip
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 3
stop();
Symbol 315 MovieClip Frame 4
stop();
Symbol 315 MovieClip Frame 5
stop();
Symbol 315 MovieClip Frame 6
stop();
Symbol 315 MovieClip Frame 7
stop();
Symbol 315 MovieClip Frame 8
stop();
Symbol 315 MovieClip Frame 9
stop();
Symbol 315 MovieClip Frame 10
stop();
Symbol 315 MovieClip Frame 11
stop();
Symbol 315 MovieClip Frame 12
stop();
Symbol 315 MovieClip Frame 13
stop();
Symbol 315 MovieClip Frame 14
stop();
Symbol 315 MovieClip Frame 15
stop();
Symbol 315 MovieClip Frame 16
stop();
Symbol 315 MovieClip Frame 17
stop();
Symbol 315 MovieClip Frame 18
stop();
Symbol 315 MovieClip Frame 19
stop();
Symbol 315 MovieClip Frame 20
stop();
Symbol 317 MovieClip [AnithiusFish] Frame 1
#initclip 65
Object.registerClass("AnithiusFish", AnithiusFish);
#endinitclip
Symbol 319 MovieClip [ShrimpFish] Frame 1
#initclip 66
Object.registerClass("ShrimpFish", ShrimpFish);
#endinitclip
Symbol 321 MovieClip [BoxFish] Frame 1
#initclip 67
Object.registerClass("BoxFish", BoxFish);
#endinitclip
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 4
stop();
Symbol 322 MovieClip Frame 5
stop();
Symbol 322 MovieClip Frame 6
stop();
Symbol 322 MovieClip Frame 7
stop();
Symbol 322 MovieClip Frame 8
stop();
Symbol 322 MovieClip Frame 9
stop();
Symbol 322 MovieClip Frame 10
stop();
Symbol 322 MovieClip Frame 11
stop();
Symbol 322 MovieClip Frame 12
stop();
Symbol 322 MovieClip Frame 13
stop();
Symbol 322 MovieClip Frame 14
stop();
Symbol 322 MovieClip Frame 15
stop();
Symbol 322 MovieClip Frame 16
stop();
Symbol 322 MovieClip Frame 17
stop();
Symbol 322 MovieClip Frame 18
stop();
Symbol 322 MovieClip Frame 19
stop();
Symbol 322 MovieClip Frame 20
stop();
Symbol 324 MovieClip [AngelFish] Frame 1
#initclip 68
Object.registerClass("AngelFish", AngelFish);
#endinitclip
Symbol 326 MovieClip [FightingFish] Frame 1
#initclip 69
Object.registerClass("FightingFish", FightingFish);
#endinitclip
Symbol 328 MovieClip [GrammaFish] Frame 1
#initclip 70
Object.registerClass("GrammaFish", GrammaFish);
#endinitclip
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 3
stop();
Symbol 329 MovieClip Frame 4
stop();
Symbol 329 MovieClip Frame 5
stop();
Symbol 329 MovieClip Frame 6
stop();
Symbol 329 MovieClip Frame 7
stop();
Symbol 329 MovieClip Frame 8
stop();
Symbol 329 MovieClip Frame 9
stop();
Symbol 329 MovieClip Frame 10
stop();
Symbol 329 MovieClip Frame 11
stop();
Symbol 329 MovieClip Frame 12
stop();
Symbol 329 MovieClip Frame 13
stop();
Symbol 329 MovieClip Frame 14
stop();
Symbol 329 MovieClip Frame 15
stop();
Symbol 329 MovieClip Frame 16
stop();
Symbol 329 MovieClip Frame 17
stop();
Symbol 329 MovieClip Frame 18
stop();
Symbol 329 MovieClip Frame 19
stop();
Symbol 329 MovieClip Frame 20
stop();
Symbol 331 MovieClip [SwordtailFish] Frame 1
#initclip 71
Object.registerClass("SwordtailFish", SwordtailFish);
#endinitclip
Symbol 333 MovieClip [TriggerFish] Frame 1
#initclip 72
Object.registerClass("TriggerFish", TriggerFish);
#endinitclip
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 3
stop();
Symbol 334 MovieClip Frame 4
stop();
Symbol 334 MovieClip Frame 5
stop();
Symbol 334 MovieClip Frame 6
stop();
Symbol 334 MovieClip Frame 7
stop();
Symbol 334 MovieClip Frame 8
stop();
Symbol 334 MovieClip Frame 9
stop();
Symbol 334 MovieClip Frame 10
stop();
Symbol 334 MovieClip Frame 11
stop();
Symbol 334 MovieClip Frame 12
stop();
Symbol 334 MovieClip Frame 13
stop();
Symbol 334 MovieClip Frame 14
stop();
Symbol 334 MovieClip Frame 15
stop();
Symbol 334 MovieClip Frame 16
stop();
Symbol 334 MovieClip Frame 17
stop();
Symbol 334 MovieClip Frame 18
stop();
Symbol 334 MovieClip Frame 19
stop();
Symbol 334 MovieClip Frame 20
stop();
Symbol 336 MovieClip [ClownFish] Frame 1
#initclip 73
Object.registerClass("ClownFish", ClownFish);
#endinitclip
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 3
stop();
Symbol 337 MovieClip Frame 4
stop();
Symbol 337 MovieClip Frame 5
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 337 MovieClip Frame 7
stop();
Symbol 337 MovieClip Frame 8
stop();
Symbol 337 MovieClip Frame 9
stop();
Symbol 337 MovieClip Frame 10
stop();
Symbol 337 MovieClip Frame 11
stop();
Symbol 337 MovieClip Frame 12
stop();
Symbol 337 MovieClip Frame 13
stop();
Symbol 337 MovieClip Frame 14
stop();
Symbol 337 MovieClip Frame 15
stop();
Symbol 337 MovieClip Frame 16
stop();
Symbol 337 MovieClip Frame 17
stop();
Symbol 337 MovieClip Frame 18
stop();
Symbol 337 MovieClip Frame 19
stop();
Symbol 337 MovieClip Frame 20
stop();
Symbol 339 MovieClip [TrumpetFish] Frame 1
#initclip 74
Object.registerClass("TrumpetFish", TrumpetFish);
#endinitclip
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 3
stop();
Symbol 341 MovieClip Frame 4
stop();
Symbol 341 MovieClip Frame 5
stop();
Symbol 341 MovieClip Frame 6
stop();
Symbol 341 MovieClip Frame 7
stop();
Symbol 341 MovieClip Frame 8
stop();
Symbol 341 MovieClip Frame 9
stop();
Symbol 341 MovieClip Frame 10
stop();
Symbol 341 MovieClip Frame 11
stop();
Symbol 341 MovieClip Frame 12
stop();
Symbol 341 MovieClip Frame 13
stop();
Symbol 341 MovieClip Frame 14
stop();
Symbol 341 MovieClip Frame 15
stop();
Symbol 341 MovieClip Frame 16
stop();
Symbol 341 MovieClip Frame 17
stop();
Symbol 341 MovieClip Frame 18
stop();
Symbol 341 MovieClip Frame 19
stop();
Symbol 341 MovieClip Frame 20
stop();
Symbol 342 MovieClip [LionFish] Frame 1
#initclip 75
Object.registerClass("LionFish", LionFish);
#endinitclip
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 3
stop();
Symbol 344 MovieClip Frame 4
stop();
Symbol 344 MovieClip Frame 5
stop();
Symbol 344 MovieClip Frame 6
stop();
Symbol 344 MovieClip Frame 7
stop();
Symbol 344 MovieClip Frame 8
stop();
Symbol 344 MovieClip Frame 9
stop();
Symbol 344 MovieClip Frame 10
stop();
Symbol 344 MovieClip Frame 11
stop();
Symbol 344 MovieClip Frame 12
stop();
Symbol 344 MovieClip Frame 13
stop();
Symbol 344 MovieClip Frame 14
stop();
Symbol 344 MovieClip Frame 15
stop();
Symbol 344 MovieClip Frame 16
stop();
Symbol 344 MovieClip Frame 17
stop();
Symbol 344 MovieClip Frame 18
stop();
Symbol 344 MovieClip Frame 19
stop();
Symbol 344 MovieClip Frame 20
stop();
Symbol 345 MovieClip [MoorishIdolFish] Frame 1
#initclip 76
Object.registerClass("MoorishIdolFish", MoorishIdolFish);
#endinitclip
Symbol 347 MovieClip [LampFish] Frame 1
#initclip 77
Object.registerClass("LampFish", LampFish);
#endinitclip
Symbol 349 MovieClip [SeaHorseFish] Frame 1
#initclip 78
Object.registerClass("SeaHorseFish", SeaHorseFish);
#endinitclip
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 3
stop();
Symbol 351 MovieClip Frame 4
stop();
Symbol 351 MovieClip Frame 5
stop();
Symbol 351 MovieClip Frame 6
stop();
Symbol 351 MovieClip Frame 7
stop();
Symbol 351 MovieClip Frame 8
stop();
Symbol 351 MovieClip Frame 9
stop();
Symbol 351 MovieClip Frame 10
stop();
Symbol 351 MovieClip Frame 11
stop();
Symbol 351 MovieClip Frame 12
stop();
Symbol 351 MovieClip Frame 13
stop();
Symbol 351 MovieClip Frame 14
stop();
Symbol 351 MovieClip Frame 15
stop();
Symbol 351 MovieClip Frame 16
stop();
Symbol 351 MovieClip Frame 17
stop();
Symbol 351 MovieClip Frame 18
stop();
Symbol 351 MovieClip Frame 19
stop();
Symbol 351 MovieClip Frame 20
stop();
Symbol 352 MovieClip [CrabFish] Frame 1
#initclip 79
Object.registerClass("CrabFish", CrabFish);
#endinitclip
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 3
gotoAndStop (1);
Symbol 358 MovieClip [GoldFish] Frame 1
#initclip 80
Object.registerClass("GoldFish", GoldFish);
#endinitclip
Symbol 360 MovieClip [StoreMedicine1] Frame 1
#initclip 81
Object.registerClass("StoreMedicine1", StoreSupply);
#endinitclip
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
stop();
Symbol 380 MovieClip Frame 3
stop();
Symbol 380 MovieClip Frame 4
stop();
Symbol 380 MovieClip Frame 5
stop();
Symbol 380 MovieClip Frame 6
stop();
Symbol 380 MovieClip Frame 7
stop();
Symbol 380 MovieClip Frame 8
stop();
Symbol 380 MovieClip Frame 9
stop();
Symbol 380 MovieClip Frame 10
stop();
Symbol 380 MovieClip Frame 11
stop();
Symbol 380 MovieClip Frame 12
stop();
Symbol 380 MovieClip Frame 13
gotoAndStop (1);
Symbol 382 Button
on (release) {
if (_parent.activeTank == this) {
_parent.FishStats.fishPtr.Selected._visible = false;
_parent.FishStats.moveOutOfView();
} else {
_parent.moveIsolationTankToView();
}
}
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
stop();
Symbol 407 MovieClip Frame 3
stop();
Symbol 407 MovieClip Frame 4
stop();
Symbol 407 MovieClip Frame 5
stop();
Symbol 407 MovieClip Frame 6
stop();
Symbol 407 MovieClip Frame 7
stop();
Symbol 407 MovieClip Frame 8
stop();
Symbol 407 MovieClip Frame 9
stop();
Symbol 407 MovieClip Frame 10
stop();
Symbol 407 MovieClip Frame 11
stop();
Symbol 407 MovieClip Frame 12
stop();
Symbol 407 MovieClip Frame 13
gotoAndStop (1);
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 3
stop();
Symbol 426 MovieClip Frame 4
stop();
Symbol 426 MovieClip Frame 5
stop();
Symbol 426 MovieClip Frame 6
stop();
Symbol 426 MovieClip Frame 7
stop();
Symbol 426 MovieClip Frame 8
stop();
Symbol 426 MovieClip Frame 9
stop();
Symbol 426 MovieClip Frame 10
stop();
Symbol 426 MovieClip Frame 11
stop();
Symbol 426 MovieClip Frame 12
stop();
Symbol 426 MovieClip Frame 13
stop();
Symbol 426 MovieClip Frame 14
gotoAndStop (1);
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
stop();
Symbol 442 MovieClip Frame 3
stop();
Symbol 442 MovieClip Frame 4
stop();
Symbol 442 MovieClip Frame 5
stop();
Symbol 442 MovieClip Frame 6
stop();
Symbol 442 MovieClip Frame 7
stop();
Symbol 442 MovieClip Frame 8
stop();
Symbol 442 MovieClip Frame 9
stop();
Symbol 442 MovieClip Frame 10
stop();
Symbol 442 MovieClip Frame 11
stop();
Symbol 442 MovieClip Frame 12
stop();
Symbol 442 MovieClip Frame 13
stop();
Symbol 442 MovieClip Frame 14
gotoAndStop (1);
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
stop();
Symbol 475 MovieClip Frame 4
stop();
Symbol 475 MovieClip Frame 5
stop();
Symbol 475 MovieClip Frame 6
stop();
Symbol 475 MovieClip Frame 7
stop();
Symbol 475 MovieClip Frame 8
stop();
Symbol 475 MovieClip Frame 9
stop();
Symbol 475 MovieClip Frame 10
stop();
Symbol 475 MovieClip Frame 11
stop();
Symbol 475 MovieClip Frame 12
stop();
Symbol 475 MovieClip Frame 13
stop();
Symbol 475 MovieClip Frame 14
gotoAndStop (1);
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
stop();
Symbol 483 MovieClip Frame 3
stop();
Symbol 483 MovieClip Frame 4
stop();
Symbol 483 MovieClip Frame 5
stop();
Symbol 483 MovieClip Frame 6
stop();
Symbol 483 MovieClip Frame 7
stop();
Symbol 483 MovieClip Frame 8
stop();
Symbol 483 MovieClip Frame 9
stop();
Symbol 483 MovieClip Frame 10
stop();
Symbol 483 MovieClip Frame 11
stop();
Symbol 483 MovieClip Frame 12
stop();
Symbol 483 MovieClip Frame 13
stop();
Symbol 483 MovieClip Frame 14
gotoAndStop (1);
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 2
stop();
Symbol 491 MovieClip Frame 3
stop();
Symbol 491 MovieClip Frame 4
stop();
Symbol 491 MovieClip Frame 5
stop();
Symbol 491 MovieClip Frame 6
stop();
Symbol 491 MovieClip Frame 7
stop();
Symbol 491 MovieClip Frame 8
stop();
Symbol 491 MovieClip Frame 9
stop();
Symbol 491 MovieClip Frame 10
stop();
Symbol 491 MovieClip Frame 11
stop();
Symbol 491 MovieClip Frame 12
stop();
Symbol 491 MovieClip Frame 13
stop();
Symbol 491 MovieClip Frame 14
gotoAndStop (1);
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 2
stop();
Symbol 496 MovieClip Frame 3
stop();
Symbol 496 MovieClip Frame 4
stop();
Symbol 496 MovieClip Frame 5
stop();
Symbol 496 MovieClip Frame 6
stop();
Symbol 496 MovieClip Frame 7
stop();
Symbol 496 MovieClip Frame 8
stop();
Symbol 496 MovieClip Frame 9
stop();
Symbol 496 MovieClip Frame 10
stop();
Symbol 496 MovieClip Frame 11
stop();
Symbol 496 MovieClip Frame 12
stop();
Symbol 496 MovieClip Frame 13
stop();
Symbol 496 MovieClip Frame 14
gotoAndStop (1);
Symbol 511 MovieClip [IsolationTank] Frame 1
#initclip 82
Object.registerClass("IsolationTank", IsolationTank);
#endinitclip
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 512 Button
on (release) {
if (_parent.activeTank == this) {
_parent.FishStats.fishPtr.Selected._visible = false;
_parent.FishStats.moveOutOfView();
} else {
_parent.moveSellTankToView();
}
}
Symbol 523 MovieClip [SellTank] Frame 1
#initclip 83
Object.registerClass("SellTank", SellTank);
#endinitclip
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 524 Button
on (release) {
trace(this);
if (_parent.activeTank == this) {
trace("active tank: " + this);
_parent.FishStats.fishPtr.Selected._visible = false;
_parent.FishStats.moveOutOfView();
} else {
trace("making new tank: " + this);
var i = 0;
while (i < _parent.regularTanks.length) {
if (_parent.regularTanks[i]._name == this._name) {
_parent.moveRegularTankToView(i);
}
i++;
}
}
}
Symbol 525 MovieClip [RegularTank] Frame 1
#initclip 84
Object.registerClass("RegularTank", RegularTank);
#endinitclip
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 531 Button
on (release) {
_parent.FishStats.fishPtr.Selected._visible = false;
_parent.FishStats.moveOutOfView();
}
Symbol 537 Button
on (release) {
if (_parent.activeTank == this) {
_parent.FishStats.fishPtr.Selected._visible = false;
_parent.FishStats.moveOutOfView();
} else {
_parent.moveSellTankToView();
}
}
Symbol 548 MovieClip [SupplyRow] Frame 1
#initclip 85
Object.registerClass("SupplyRow", SupplyRow);
#endinitclip
Symbol 549 MovieClip [SupplyColumn] Frame 1
#initclip 86
Object.registerClass("SupplyColumn", SupplyColumn);
#endinitclip
Symbol 551 MovieClip [Medicine1] Frame 1
#initclip 87
Object.registerClass("Medicine1", Medicine);
#endinitclip
Symbol 557 MovieClip [Food] Frame 1
#initclip 88
Object.registerClass("Food", Food);
#endinitclip
Symbol 560 MovieClip [Egg] Frame 1
#initclip 89
Object.registerClass("Egg", Egg);
#endinitclip
Symbol 565 MovieClip [FoodDeluxe] Frame 1
#initclip 90
Object.registerClass("FoodDeluxe", FoodDeluxe);
#endinitclip
Symbol 570 MovieClip [FoodSuper] Frame 1
#initclip 91
Object.registerClass("FoodSuper", FoodSuper);
#endinitclip
Symbol 575 MovieClip [FoodGrow] Frame 1
#initclip 92
Object.registerClass("FoodGrow", FoodGrow);
#endinitclip
Symbol 587 MovieClip [MedFungus] Frame 1
#initclip 93
Object.registerClass("MedFungus", MedFungus);
#endinitclip
Symbol 593 MovieClip [MedVit] Frame 1
#initclip 94
Object.registerClass("MedVit", MedVit);
#endinitclip
Symbol 601 MovieClip [MedIches] Frame 1
#initclip 95
Object.registerClass("MedIches", MedIches);
#endinitclip
Symbol 602 MovieClip [sndfxlib] Frame 1
#initclip 96
Object.registerClass("sndfxlib", sndfxlib);
#endinitclip
Symbol 610 MovieClip Frame 7
stop();
Symbol 612 Button
on (release) {
_global.FishTank.switchSections("OptionsView");
}
Symbol 614 Button
on (release) {
_global.FishTank.StoreView.StoreTank.openStore();
}
Symbol 616 Button
on (release) {
_global.goHome = true;
_global.FishTank.switchSections("SuppliesView");
_global.FishTank.SuppliesView.deselectAll();
}
Symbol 618 Button
on (release) {
_global.FishTank.TankOptionsView.setdecorations();
_global.FishTank.switchSections("TankOptionsView");
}
Symbol 633 Button
on (release) {
_global.FishTank.fishPtr.deselect();
this.moveOutOfView();
}
Symbol 635 Button
on (release) {
_global.FishTank.SpeciesView.reload(_global.FishTank.fishPtr);
_global.FishTank.switchSections("SpeciesView");
}
Symbol 644 Button
on (release) {
_root.showhelp("careandfeeding");
}
Symbol 653 Button
on (release) {
_global.FishTank.fishPtr.flushMe();
_global.sndfxlib.playsfx(4);
}
Symbol 656 MovieClip [FishStats] Frame 1
#initclip 97
Object.registerClass("FishStats", FishStats);
#endinitclip
stop();
Symbol 656 MovieClip [FishStats] Frame 8
stop();
Symbol 665 Button
on (release) {
_global.FishTank.switchSections("HomeView");
}
Symbol 673 MovieClip Frame 1
this._visible = false;
Symbol 678 MovieClip Frame 1
var fishname;
var fishdescription;
fishdescripbox.autoSize = true;
fishdescripbox.multiline = true;
fishdescripbox.wordWrap = true;
Symbol 693 MovieClip [DummyFish] Frame 1
#initclip 98
Object.registerClass("DummyFish", DummyFish);
#endinitclip
this.description._visible = false;
this.Selected._visible = false;
Symbol 693 MovieClip [DummyFish] Frame 2
stop();
this.description.fishname = this.translateName("AngelFish");
this.description.fishdescription = "adult size: 8 inches \rhabitat: rocky shallows \rfishy fact: It swims away, but it always comes back.";
Symbol 693 MovieClip [DummyFish] Frame 11
stop();
this.description.fishname = this.translateName("AnithiusFish");
this.description.fishdescription = "adult size: 8 inches \rhabitat: seaweed forests \rfishy fact: This fish is as sweet as bubblegum!";
Symbol 693 MovieClip [DummyFish] Frame 22
stop();
this.description.fishname = this.translateName("BoxFish");
this.description.fishdescription = "adult size: 8 inches \rhabitat: sheltered coves \rfishy fact: This fish has plenty of pucker power.";
Symbol 693 MovieClip [DummyFish] Frame 33
stop();
this.description.fishname = this.translateName("ClownFish");
this.description.fishdescription = "adult size: 3 inches \rhabitat: among sea anemones \rfishy fact: Clownfish are immune to anemones\u2019 stinging tentacles.";
Symbol 693 MovieClip [DummyFish] Frame 44
stop();
this.description.fishname = this.translateName("FightingFish");
this.description.fishdescription = "adult size: 6 inches \rhabitat: underwater volcanoes \rfishy fact: This fiery fish makes a warm friend.";
Symbol 693 MovieClip [DummyFish] Frame 55
stop();
this.description.fishname = this.translateName("GaribaldiFish");
this.description.fishdescription = "adult size: 8 inches \rhabitat: seaweed forests \rfishy fact: This fish has a big heart.";
Symbol 693 MovieClip [DummyFish] Frame 66
stop();
this.description.fishname = this.translateName("GrammaFish");
this.description.fishdescription = "adult size: 3 inches \rhabitat: coral reefs \rfishy fact: This sunny little cutie is like two fish in one.";
Symbol 693 MovieClip [DummyFish] Frame 77
stop();
this.description.fishname = this.translateName("LampFish");
this.description.fishdescription = "adult size: 7 inches \rhabitat: deep ocean \rfishy fact: This far-out fish lights up any party.";
Symbol 693 MovieClip [DummyFish] Frame 88
stop();
this.description.fishname = this.translateName("LionFish");
this.description.fishdescription = "adult size: 12 inches \rhabitat: exotic island bays \rfishy fact: It\u2019s pretty as a picture and sharp as a tack.";
Symbol 693 MovieClip [DummyFish] Frame 99
stop();
this.description.fishname = this.translateName("MoorishIdolFish");
this.description.fishdescription = "adult size: 7 inches \rhabitat: coral reefs \rfishy fact: This fish is nosy but nice.";
Symbol 693 MovieClip [DummyFish] Frame 110
stop();
this.description.fishname = this.translateName("ParotFish");
this.description.fishdescription = "adult size: 11 inches \rhabitat: sandy shallows \rfishy fact: This parrot likes fish food, not crackers.";
Symbol 693 MovieClip [DummyFish] Frame 121
stop();
this.description.fishname = this.translateName("ShrimpFish");
this.description.fishdescription = "adult size: 2 inches \rhabitat: coastal shallows \rfishy fact: It may be shrimpy, but it swims like a champ.";
Symbol 693 MovieClip [DummyFish] Frame 132
stop();
this.description.fishname = this.translateName("SwordtailFish");
this.description.fishdescription = "adult size: 7 inches \rhabitat: open ocean \rfishy fact: This peace-loving fish never raises its sword.";
Symbol 693 MovieClip [DummyFish] Frame 143
stop();
this.description.fishname = this.translateName("TangFish");
this.description.fishdescription = "adult size: 11 inches \rhabitat: moonlit shallows \rfishy fact: It\u2019s got the moon on its tail and stars in its eyes.";
Symbol 693 MovieClip [DummyFish] Frame 154
stop();
this.description.fishname = this.translateName("TriggerFish");
this.description.fishdescription = "adult size: 12 inches \rhabitat: coral reef \rfishy fact: Diamondfish are a girl\u2019s best friend.";
Symbol 693 MovieClip [DummyFish] Frame 165
stop();
this.description.fishname = this.translateName("TrumpetFish");
this.description.fishdescription = "adult size: 11 inches \rhabitat: rocky reefs \rfishy fact: It\u2019s slim and sleek and so unique.";
Symbol 693 MovieClip [DummyFish] Frame 176
stop();
this.description.fishname = this.translateName("SeaHorseFish");
this.description.fishdescription = "adult size: 7 inches \rhabitat: coral reef \rfishy fact: Some horses like corrals, but this one prefers corals.";
Symbol 693 MovieClip [DummyFish] Frame 187
stop();
this.description.fishname = this.translateName("CrabFish");
this.description.fishdescription = "adult size: 8 inches \rhabitat: tidepools \rfishy fact: Mixing it with fish produces some crazy crabby combos.";
Symbol 693 MovieClip [DummyFish] Frame 198
stop();
this.description.fishname = this.translateName("GoldFish");
this.description.fishdescription = "adult size: 7 inches \rhabitat: waters near Hollywood \rfishy fact: Its tail and fins are naturally curly.";
Symbol 693 MovieClip [DummyFish] Frame 209
stop();
this.description.fishname = this.translateName("FlyingFish");
this.description.fishdescription = "adult size: 12 inches \rhabitat: open ocean \rfishy fact: It flies through the water with the greatest of ease.";
Symbol 694 MovieClip [SpeciesView] Frame 1
#initclip 99
Object.registerClass("SpeciesView", SpeciesView);
#endinitclip
Symbol 1716 MovieClip [__Packages.Fish] Frame 0
class Fish extends MovieClip
{
var health, fed, alive, age, growMult, hasItches, hasMold, generation, isMagic, ichimmune, fungimmune, fungus, iches, sparkles, hardiness, _parent, _xscale, _yscale, bodyparts, species, pureBred, normalprice, baseprice, price, _x, _width, _y, _height, fishXTween, fishYTween, lastxrand, eye, filters, removeMovieClip, previous_x, previous_y, cause_of_death, swapDepths, startDrag, stopDrag, _droptarget, my_txt, mom, dad, momdad, mommom, dadmom, daddad, bodyfin, topfin, backfin;
function Fish () {
super();
((health == undefined) ? ((health = 100)) : null);
((fed == undefined) ? ((fed = 70)) : null);
((alive == undefined) ? ((alive = true)) : null);
((age == undefined) ? ((age = 0)) : null);
((growMult == undefined) ? ((growMult = 1)) : null);
((speed == undefined) ? ((speed = 2)) : null);
((alive == undefined) ? ((alive = true)) : null);
((hasItches == undefined) ? ((hasItches = false)) : null);
((hasMold == undefined) ? ((hasMold = false)) : null);
((generation == undefined) ? ((generation = 0)) : null);
((isMagic == undefined) ? ((isMagic = false)) : null);
((ichimmune == undefined) ? ((ichimmune = 0)) : null);
((fungimmune == undefined) ? ((fungimmune = 0)) : null);
fungus._visible = hasMold;
iches._visible = hasItches;
sparkles._visible = isMagic;
inTank(true);
fishMovement();
}
function onUnload() {
_global.HomeView.FishStats.moveOutOfView();
}
function faketime(timeset) {
if (alive) {
if (fungimmune > 0) {
fungimmune = fungimmune - (IMMUNE_DEGEN * timeset);
((fungimmune < 0) ? ((fungimmune = 0)) : null);
}
if (ichimmune > 0) {
ichimmune = ichimmune - (IMMUNE_DEGEN * timeset);
((ichimmune < 0) ? ((ichimmune = 0)) : null);
}
if (!_global.FishTank.fishSitter) {
var _local11 = fed;
if (fed > 0) {
fed = fed - (FEED_DROP * timeset);
} else {
health = health - (HEALTH_DROP * timeset);
}
if (fed < (MAX_FED * 0.5)) {
var _local12 = (_local11 + fed) / 2;
if (_local12 < (MAX_FED * 0.5)) {
health = health - ((((MAX_FED * 0.5) - fed) / 25000) * timeset);
} else {
health = health - ((((MAX_FED * 0.5) - fed) / 50000) * timeset);
}
}
if (hasItches) {
health = health - (HEALTH_DROP * timeset);
}
if (hasMold) {
health = health - (HEALTH_DROP * timeset);
}
if (health < MAX_HEALTH) {
health = health + ((HEAL_HEALTH * hardiness) * timeset);
}
var _local8 = 10;
var _local7 = 4;
var _local3 = Math.round(_parent.tankTemperature);
var _local4 = 0;
while (_local4 < Math.floor(timeset / 3600)) {
if ((((_local3 < 77) || (_local3 > 83)) && (!hasItches)) && (ichimmune <= 0)) {
var _local6;
_local6 = ((_local3 < 77) ? (77 - _local3) : (_local3 - 83));
if ((random(_local7) + _local6) > hardiness) {
hasItches = true;
iches._visible = true;
status = (hasMold ? "Very sick" : "Itchy");
health = health - ICHES_HEALTH;
}
}
if (((_parent.tankHygiene < 70) && (!hasMold)) && (fungimmune <= 0)) {
if ((random(_local8) + (80 - _parent.tankHygiene)) > (hardiness * 9)) {
hasMold = true;
fungus._visible = true;
status = (hasItches ? "Very sick" : "Fungas Disease");
health = health - MOLD_HEALTH;
}
}
_local4++;
}
}
age = age + (1 * timeset);
if (Math.abs(_xscale) < MAX_SCALE) {
var _local10 = 12;
var _local9 = ((NORMAL_GROWTH * growMult) * timeset) - (GROW_MULT_SLOW * timeset);
_yscale = _yscale + (_local9 * (fed / 100));
((_xscale < 0) ? (_local9 = _local9 * -1) : null);
_xscale = _xscale + (_local9 * (fed / 100));
if (growMult > _local10) {
health = health - ((GROW_MULT_KILL * (growMult - _local10)) * timeset);
}
}
if (Math.abs(_xscale) > MAX_SCALE) {
((_xscale < 0) ? ((_xscale = MAX_SCALE * -1)) : ((_xscale = MAX_SCALE)));
_yscale = MAX_SCALE;
}
if (growMult > 1) {
growMult = growMult - (GROW_MULT_SLOW * timeset);
}
if (health > MAX_HEALTH) {
health = MAX_HEALTH;
}
if ((health < 0) && (_parent.goldseahorsePurchased == false)) {
death(0);
}
}
}
function figureBreed() {
var _local6 = new Array();
var _local5 = 0;
var _local3 = new Array("bodyfin", "topfin", "backfin", "eye");
var _local4 = 0;
while (_local4 < _local3.length) {
_local5 = 0;
var _local2 = 0;
while (_local2 < _local3.length) {
if (bodyparts[_local3[_local4]] == bodyparts[_local3[_local2]]) {
_local5++;
}
_local2++;
}
if (bodyparts[_local3[_local4]] == translateSpecies(species)) {
_local5++;
}
_local6.push(_local5);
_local4++;
}
_local6.sort(Array.NUMERIC, Array.DESCENDING);
pureBred = _local6[0];
}
function figurePrice(setPrice) {
normalprice = (isMagic ? (baseprice * 5) : (baseprice * Math.ceil(pureBred / 2)));
if (setPrice) {
price = normalprice;
}
}
function inTank(userandom) {
var _local4 = _parent.SwimArea._y + 40;
var _local2 = _parent.SwimArea._y + _parent.SwimArea._height;
var _local5 = _parent.SwimArea._x;
var _local3 = _parent.SwimArea._x + _parent.SwimArea._width;
if (((!_x) || (_x > _local3)) || (_x < _local5)) {
if (userandom) {
_x = random(_parent.SwimArea._width) + _parent.SwimArea._x;
((_x > (_local3 - _width)) ? ((_x = _local3 - _width)) : null);
((_x < (_local5 + _width)) ? ((_x = _local5 + _width)) : null);
trace(((" " + _x) + " ") + _parent.SwimArea._x);
} else {
((_x > _local3) ? ((_x = _local3)) : null);
((_x < _local5) ? ((_x = _local5)) : null);
}
}
if (((!_y) || (_y < _local4)) || (_y > _local2)) {
if (userandom) {
_y = random(_parent.SwimArea._height) - (_height / 2);
((_y < (_local4 + (_height / 2))) ? ((_y = _local4 + (_height / 2))) : null);
((_y > (_local2 - (_height / 2))) ? ((_y = _local2 - (_height / 2))) : null);
} else {
((_y < _local4) ? ((_y = _local4)) : null);
((_y > _local2) ? ((_y = _local2)) : null);
}
}
}
function fishMovement() {
inTank(false);
var _local7 = _parent.SwimArea._y + 40;
var _local4 = _parent.SwimArea._y + _parent.SwimArea._height;
var _local8 = _parent.SwimArea._x;
var _local5 = _parent.SwimArea._x + _parent.SwimArea._width;
fishXTween.stop();
fishYTween.stop();
if (alive) {
if (_yscale < 0) {
_yscale = _yscale * -1;
}
lastxrand = _x;
var _local2 = random(_parent.SwimArea._width) + _parent.SwimArea._x;
var _local3 = random(_parent.SwimArea._height);
if (Math.abs(_local2 - _x) < 50) {
((_local2 > _x) ? (_local2 = _local2 + 50) : (_local2 = _local2 - 50));
}
((_local2 > (_local5 - _width)) ? (_local2 = _local5 - _width) : null);
((_local2 < (_local8 + _width)) ? (_local2 = _local8 + _width) : null);
((_local3 < (_local7 + (_height / 2))) ? (_local3 = _local7 + (_height / 2)) : null);
((_local3 > (_local4 - (_height / 2))) ? (_local3 = _local4 - (_height / 2)) : null);
var _local6 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local3, 2));
if (((_x < _local2) && (_xscale > 0)) || ((_x > _local2) && (_xscale < 0))) {
_xscale = _xscale * -1;
}
fishXTween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, _x, _local2, _local6 / speed, false);
fishYTween = new mx.transitions.Tween(this, "_y", mx.transitions.easing.None.easeNone, _y, _local3, _local6 / speed, false);
fishXTween.onMotionFinished = function () {
if (this.obj.moving) {
this.obj.fishMovement();
}
};
} else {
floatToTop();
}
}
function fishMovementCenter() {
fishXTween.stop();
fishYTween.stop();
moving = false;
lastxrand = _x;
var _local2 = 340;
var _local4 = 175;
var _local3 = 0.5;
var _local5 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local4, 2));
if (((_x < _local2) && (_xscale > 0)) || ((_x > _local2) && (_xscale < 0))) {
_xscale = _xscale * -1;
}
fishXTween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, _x, _local2, _local3, true);
fishYTween = new mx.transitions.Tween(this, "_y", mx.transitions.easing.None.easeNone, _y, _local4, _local3, true);
}
function floatToTop() {
fishXTween.stop();
fishYTween.stop();
inTank(false);
var _local4 = _parent.SwimArea._y + 40;
var _local10 = _parent.SwimArea._y + _parent.SwimArea._height;
var _local7 = _parent.SwimArea._x;
var _local6 = _parent.SwimArea._x + _parent.SwimArea._width;
((_yscale > 0) ? ((_yscale = _yscale * -1)) : null);
eye.eyemove.stop();
filters = _root.deadfish;
trace("The dead fish is at: " + _y);
if ((_y - (_height / 2)) > ((_local4 + (_height / 2)) - 1)) {
lastxrand = _x;
var _local5 = random(200);
var _local3 = ((_local5 < 101) ? (_x - _local5) : (_x + (_local5 - 100)));
((_local3 > (_local6 - _width)) ? (_local3 = _local6 - _width) : null);
((_local3 < (_local7 + _width)) ? (_local3 = _local7 + _width) : null);
var _local8 = _local4 + (_height / 2);
trace((("The dead fish is going to: " + _local8) + " Top of tank: ") + _local4);
var _local9 = 10;
fishXTween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, _x, _local3, _local9, true);
fishYTween = new mx.transitions.Tween(this, "_y", mx.transitions.easing.None.easeNone, _y, _local8, _local9, true);
}
}
function getMoving() {
if ((moving == false) && (alive == true)) {
moving = true;
fishMovement();
}
}
function updateFish() {
if (alive) {
(isMagic ? ((sparkles._visible = true)) : ((sparkles._visible = false)));
if (fungimmune > 0) {
fungimmune = fungimmune - IMMUNE_DEGEN;
((fungimmune < 0) ? ((fungimmune = 0)) : null);
}
if (ichimmune > 0) {
ichimmune = ichimmune - IMMUNE_DEGEN;
((ichimmune < 0) ? ((ichimmune = 0)) : null);
}
if (!_global.FishTank.fishSitter) {
if (fed < (MAX_FED * 0.5)) {
health = health - (((MAX_FED * 0.5) - fed) / 25000);
}
if (fed > 0) {
fed = fed - FEED_DROP;
} else {
health = health - HEALTH_DROP;
}
if (hasItches) {
health = health - HEALTH_DROP;
}
if (hasMold) {
health = health - HEALTH_DROP;
}
if (health < MAX_HEALTH) {
health = health + (HEAL_HEALTH * hardiness);
}
var _local9 = 10;
var _local7 = 6;
var _local3 = Math.round(_parent.tankTemperature);
if ((((_local3 < 77) || (_local3 > 83)) && (!hasItches)) && (ichimmune <= 0)) {
var _local8;
_local8 = ((_local3 < 77) ? (77 - _local3) : (_local3 - 83));
var _local6 = random(_local7) + _local8;
if (_local6 > hardiness) {
hasItches = true;
iches._visible = true;
status = (hasMold ? "Very sick" : "Itchy");
health = health - ICHES_HEALTH;
}
}
if (((_parent.tankHygiene < 70) && (!hasMold)) && (fungimmune <= 0)) {
if ((random(_local9) + (80 - _parent.tankHygiene)) > (hardiness * 9)) {
hasMold = true;
fungus._visible = true;
status = (hasItches ? "Very sick" : "Fungas Disease");
health = health - MOLD_HEALTH;
}
}
}
age = age + 1;
if (Math.abs(_xscale) < MAX_SCALE) {
var _local5 = 12;
var _local4 = NORMAL_GROWTH * growMult;
_yscale = _yscale + (_local4 * (fed / 100));
((_xscale < 0) ? (_local4 = _local4 * -1) : null);
_xscale = _xscale + (_local4 * (fed / 100));
if (growMult > _local5) {
health = health - (GROW_MULT_KILL * (growMult - _local5));
}
}
if (growMult > 1) {
growMult = growMult - GROW_MULT_SLOW;
}
if (health > MAX_HEALTH) {
health = MAX_HEALTH;
}
if (health < 0) {
death(0);
}
}
}
function feedMe(amt) {
if (alive) {
if ((fed + amt) < MAX_FED) {
fed = fed + amt;
} else if ((fed + 3) < MAX_FED) {
fed = MAX_FED;
} else {
health = health - (((fed + amt) - MAX_FED) / 2);
fed = MAX_FED;
if (health <= 0) {
fed = 0;
death(0);
}
}
}
}
function healMe(amt) {
if (alive) {
if (health < MAX_HEALTH) {
health = health + amt;
} else {
health = MAX_HEALTH;
}
}
}
function growMe(amt) {
growMult = growMult + amt;
}
function cureIches() {
if (hasItches) {
iches._visible = false;
hasItches = false;
health = health + ICHES_HEALTH;
}
ichimmune = ichimmune + (hardiness * IMMUNE_MULTIPLIER);
}
function cureFungus() {
if (hasMold) {
fungus._visible = false;
hasMold = false;
health = health + MOLD_HEALTH;
}
fungimmune = fungimmune + (hardiness * IMMUNE_MULTIPLIER);
}
function moveFish(target, statx) {
if (!statx) {
statx = false;
}
deselect();
fishXTween.stop();
fishYTween.stop();
if (target instanceof RegularTank) {
var _local6 = _global.HomeView.regularTanks.findIndexOf(target);
if (_local6 >= 0) {
if (_global.HomeView.regularTanks[_local6].transferFish(_parent.fish.popByName(this), statx)) {
(removeMovieClip());// not popped
}
}
} else if (target instanceof StoreTank) {
if (_global.FishTank.StoreView.StoreTank.transferFish(_parent.fish.popByName(this), statx)) {
(removeMovieClip());// not popped
}
} else if (target instanceof SellTank) {
if (_global.HomeView.SellTankPtr.transferFish(_parent.fish.popByName(this), statx)) {
(removeMovieClip());// not popped
}
} else if (target instanceof IsolationTank) {
if (!alive) {
_x = previous_x;
_y = previous_y;
} else if (_level0.FishTank.HomeView.IsolationTank.fish.length > 0) {
if (_global.FishTank.HomeView.IsolationTankPtr.createMagic(this, _level0.FishTank.HomeView.IsolationTank.fish[0])) {
layeggs(true);
} else {
var _local3 = 0;
while (_local3 < (random(4) + 2)) {
layeggs(false);
_local3++;
}
}
while (_global.FishTank.HomeView.IsolationTankPtr.fish.length > 0) {
_global.FishTank.HomeView.IsolationTankPtr.fish[_global.FishTank.HomeView.IsolationTankPtr.fish.length - 1].moveFish(_global.FishTank.HomeView.RegularTank1, true);
}
_x = previous_x;
_y = previous_y;
fishMovement();
} else if (_global.HomeView.IsolationTankPtr.transferFish(_parent.fish.popByName(this), statx)) {
(removeMovieClip());// not popped
}
}
}
function death(id) {
alive = false;
fishXTween.stop();
fishYTween.stop();
fed = 0;
health = 0;
fishMovement = function () {
};
status = "Dead";
_yscale = _yscale * -1;
filters = _root.deadfish;
floatToTop();
eye.eyemove.stop();
cause_of_death = id;
}
function onPress() {
previous_x = _x;
previous_y = _y;
moving = false;
_global.FishTank.fishPtr = this;
fishXTween.stop();
fishYTween.stop();
var _local3 = 0;
while (_local3 < _parent.fish.length) {
if (_parent.fish[_local3] != this) {
_parent.fish[_local3].deselect();
}
_local3++;
}
_parent.swapDepths(_parent._parent.getNextHighestDepth());
swapDepths(_parent.getNextHighestDepth());
startDrag();
}
function onRelease() {
(stopDrag());// not popped
trace((("Generation: " + generation) + " Normal Price: ") + normalprice);
var target = new String(_droptarget);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
}
if (target instanceof Tank) {
if (target == _parent) {
if ((_parent == _global.FishTank.HomeView.activeTank) || (_parent == _global.FishTank.StoreView.StoreTank)) {
selectMe();
} else if (_parent instanceof IsolationTank) {
_global.FishTank.HomeView.moveIsolationTankToView();
} else if (_parent instanceof SellTank) {
_global.FishTank.HomeView.moveSellTankToView();
} else if (_parent instanceof RegularTank) {
_global.FishTank.HomeView.moveRegularTankToView(_parent.id);
}
} else if (target instanceof Tank) {
_global.sndfxlib.playsfx(7);
moveFish(target);
}
} else {
_x = previous_x;
_y = previous_y;
fishXTween.stop();
fishYTween.stop();
deselect();
fishMovement();
}
}
function selectMe() {
fishMovementCenter();
_global.sndfxlib.playsfx(1);
glowMe();
_global.FishTank.fishPtr = this;
var _local3 = 0;
while (_local3 < _parent.fish.length) {
if (_parent.fish[_local3] != this) {
_parent.fish[_local3].deselect();
}
_local3++;
}
if (_global.FishTank.HomeView._x != 1000) {
_global.FishStats.moveToView();
} else if (_global.FishTank.StoreView._x != 1000) {
_global.SellStats.moveToView();
}
}
function saveFish() {
var _local2 = {};
_local2.my_text = my_txt;
_local2.price = price;
_local2.baseprice = baseprice;
_local2.normalprice = normalprice;
_local2.status = status;
_local2.speed = speed;
_local2.species = species;
_local2.growMult = growMult;
_local2.cause_of_death = cause_of_death;
_local2.pureBred = pureBred;
_local2.moving = moving;
_local2.generation = generation;
_local2.isMagic = isMagic;
_local2.bodyparts = bodyparts;
_local2.alive = alive;
_local2.fishname = fishname;
_local2.age = age;
_local2.hasItches = hasItches;
_local2.hasMold = hasMold;
_local2.health = health;
_local2.fed = fed;
_local2.hardiness = hardiness;
_local2.fungimmune = fungimmune;
_local2.ichimmune = ichimmune;
_local2.mom = mom;
_local2.dad = dad;
_local2.momdad = momdad;
_local2.mommom = mommom;
_local2.dadmom = dadmom;
_local2.daddad = daddad;
_local2._xscale = _xscale;
_local2._yscale = _yscale;
return(_local2);
}
function copyMe(obj) {
my_txt = obj.my_text;
price = obj.price;
baseprice = obj.baseprice;
normalprice = obj.normalprice;
status = obj.status;
speed = obj.speed;
species = obj.species;
growMult = obj.growMult;
cause_of_death = obj.cause_of_death;
pureBred = obj.pureBred;
moving = obj.moving;
generation = obj.generation;
isMagic = obj.isMagic;
bodyparts = obj.bodyparts;
alive = obj.alive;
fishname = obj.fishname;
age = obj.age;
hasItches = obj.hasItches;
hasMold = obj.hasMold;
health = obj.health;
fed = obj.fed;
hardiness = obj.hardiness;
fungimmune = obj.fungimmune;
ichimmune = obj.ichimmune;
mom = obj.mom;
dad = obj.dad;
momdad = obj.momdad;
mommom = obj.mommom;
dadmom = obj.dadmom;
daddad = obj.daddad;
giveBodyParts();
if (!alive) {
death(0);
}
_xscale = obj._xscale;
_yscale = obj._yscale;
fishMovement();
}
function getBreedLevel() {
return(pureBred);
}
function autoPopulateAncestry() {
mom = new Array();
dad = new Array();
mommom = new Array();
momdad = new Array();
dadmom = new Array();
daddad = new Array();
var _local2 = 0;
while (_local2 < 5) {
mom.push(species);
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
dad.push(species);
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
mommom.push(species);
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
momdad.push(species);
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
dadmom.push(species);
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
daddad.push(species);
_local2++;
}
}
function receiveAncestry(momin, dadin, momdadin, mommomin, daddadin, dadmomin, generationin) {
var _local2 = 0;
while (_local2 < 5) {
mom[_local2] = momin[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
dad[_local2] = dadin[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
mommom[_local2] = mommomin[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
momdad[_local2] = momdadin[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
dadmom[_local2] = dadmomin[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
daddad[_local2] = daddadin[_local2];
_local2++;
}
generation = generationin;
}
function layeggs(makeMagic) {
var _local3 = _level0.FishTank.HomeView.IsolationTank.fish[0];
if ((((alive && (_local3.alive)) && (age >= 86400)) && (_local3.age >= 86400)) && (_level0.FishTank.HomeView.IsolationTank.eggs.length < 12)) {
var _local5 = Array();
var _local6 = Array();
var _local7 = Array();
var _local9 = Array();
var _local8 = Array();
var _local10 = 0;
if (generation <= _local3.generation) {
_local10 = generation + 1;
}
if (generation > _local3.generation) {
_local10 = _local3.generation + 1;
}
var _local4 = 0;
while (_local4 < 10) {
_local5.push(species);
_local5.push(_local3.species);
_local4++;
}
_local4 = 0;
while (_local4 < 10) {
_local6.push(_local3.bodyparts.topfin);
_local6.push(bodyparts.topfin);
_local4++;
}
_local4 = 0;
while (_local4 < 10) {
_local7.push(_local3.bodyparts.bodyfin);
_local7.push(bodyparts.bodyfin);
_local4++;
}
_local4 = 0;
while (_local4 < 10) {
_local8.push(_local3.bodyparts.backfin);
_local8.push(bodyparts.backfin);
_local4++;
}
_local4 = 0;
while (_local4 < 10) {
_local9.push(_local3.bodyparts.eye);
_local9.push(bodyparts.eye);
_local4++;
}
var _local14 = _local5[random(_local5.length - 1)];
var _local15 = _local6[random(_local6.length - 1)];
var _local11 = _local8[random(_local8.length - 1)];
var _local13 = _local7[random(_local7.length - 1)];
var _local12 = _local9[random(_local9.length - 1)];
_level0.FishTank.HomeView.IsolationTank.newEgg(_local14, _local15, _local11, _local13, _local12, this, _local3, _local10, makeMagic);
} else if ((age < 86400) || (_local3.age < 86400)) {
_root.showhelp("tooyoung");
}
}
function giveBodyParts() {
bodyfin.gotoAndStop(bodyparts.bodyfin);
topfin.gotoAndStop(bodyparts.topfin);
backfin.gotoAndStop(bodyparts.backfin);
eye.gotoAndStop(bodyparts.eye);
figureBreed();
givename();
((normalprice == price) ? (figurePrice(true)) : (figurePrice(false)));
}
function givename() {
if (pureBred == 5) {
fishname = translateName(species);
} else {
var _local5 = 0;
var _local2 = 0;
while (_local2 < speciestypes.length) {
if (species == speciestypes[_local2]) {
_local5 = _local2;
break;
}
_local2++;
}
var _local3 = 0;
_local2 = 0;
while (_local2 < speciestranslate.length) {
if (bodyparts.backfin == speciestranslate[_local2]) {
_local3 = _local2;
break;
}
_local2++;
}
var _local4 = 0;
_local2 = 0;
while (_local2 < speciestranslate.length) {
if (bodyparts.topfin == speciestranslate[_local2]) {
_local4 = _local2;
break;
}
_local2++;
}
fishname = (((finnames[_local4] + " ") + tailnames[_local3]) + " ") + bodynames[_local5];
}
}
function deselect() {
if (alive) {
getMoving();
filters = _root.nofishglow;
} else {
filters = _root.deadfish;
floatToTop();
}
if (_global.FishTank.fishPtr == this) {
_global.FishTank.fishPtr = undefined;
}
}
function translateSpecies(species) {
var _local2 = species;
var _local1 = 0;
while (_local1 < speciestypes.length) {
if (species == speciestypes[_local1]) {
_local2 = speciestranslate[_local1];
}
_local1++;
}
return(_local2);
}
function translateName(species) {
var _local2 = species;
var _local1 = 0;
while (_local1 < speciestypes.length) {
if (species == speciestypes[_local1]) {
_local2 = purenames[_local1];
}
_local1++;
}
return(_local2);
}
function flushMe() {
var _local2 = _parent.fish.popByName(this);
_local2.removeMovieClip();
}
function glowMe() {
if (alive) {
filters = _root.fishglow;
} else {
filters = _root.deadfishglow;
}
}
static var speciestypes = new Array("AngelFish", "AnithiusFish", "BoxFish", "ClownFish", "CrabFish", "FightingFish", "FlyingFish", "GaribaldiFish", "GoldFish", "GrammaFish", "LampFish", "LionFish", "MoorishIdolFish", "ParotFish", "SeaHorseFish", "ShrimpFish", "SwordtailFish", "TangFish", "TriggerFish", "TrumpetFish");
static var speciestranslate = new Array("angel", "anithius", "box", "clown", "crab", "fighting", "flying", "garibaldi", "gold", "gramma", "lamp", "lion", "moorishIdol", "parot", "seahorse", "shrimp", "swordtail", "tang", "trigger", "trumpet");
static var purenames = new Array("Boomerang Trianglefish", "Crescent-tail Bubblegum Fish", "Yellow Brushtail Kissyface", "Rooster-top Clownfish", "Orange Eggbody Crab", "Fringefin Firetail Bigsnout", "Redwing V-tail Jetfish", "Tangerine Heart-tail", "Glamourtail Goldfish", "Twinfin Sunsetfish", "Leafback Martianfish", "Elegant Spiny Tigerfish", "Ribbon-top Needlenose", "Wavetail Parrotfish", "Blue-Crown Wingtail Seahorse", "Pink Bugeye Shrimp", "Bananafin Swordtail Spotty Dotty", "Moon-tail Teardrop Tang", "Ruffleback Curlicue Diamondfish", "Gatorback Snubtail Slimjim");
static var bodynames = new Array("Trianglefish", "Bubblegum Fish", "Kissyface", "Clownfish", "Eggbody", "Bigsnout", "Jetfish", "Tangerinefish", "Goldfish", "Sunsetfish", "Martianfish", "Tigerfish", "Needlenose", "Parrotfish", "Seahorse", "Shrimpfish", "Spotty Dotty", "Teardrop Tang", "Diamondfish", "Slimjim");
static var finnames = new Array("Longfin", "Pinkfin", "Yellowfin", "Rooster-top", "Crabby", "Fringefin", "Redwing", "Bannerfin", "Fancyfin", "Twinfin", "Leafback", "Spiny", "Ribbon-top", "Ridgefin", "Blue-Crown", "No-fin", "Bananafin", "Swoopfin", "Ruffleback", "Gatorback");
static var tailnames = new Array("Boomerang", "Crescent-tail", "Brushtail", "Short-tailed", "No-Tail", "Firetail", "V-tail", "Heart-tailed", "Glamourtail", "Feathertail", "Greentail", "Spiketailed", "Sharktail", "Wavetail", "Wingtail", "Pinktail", "Swordtail", "Moon-tail", "Curlicue", "Snubtail");
static var FEED_DROP = 0.00035;
static var HEALTH_DROP = 0.000347;
static var HEAL_HEALTH = 3.4E-5;
static var NORMAL_GROWTH = 0.000248;
static var ICHES_HEALTH = 30;
static var MOLD_HEALTH = 40;
static var GROW_MULT_SLOW = 4.7E-5;
static var GROW_MULT_KILL = 4.7E-5;
static var IMMUNE_DEGEN = 0.015;
static var IMMUNE_MULTIPLIER = 6;
var MAX_FED = 100;
var MAX_HEALTH = 100;
var MAX_SCALE = 220;
var status = "Normal";
var speed = 5;
var default_scale = 100;
var moving = true;
var fishname = "No given name";
}
Symbol 1717 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1718 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1719 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1720 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1721 MovieClip [__Packages.Tank] Frame 0
class Tank extends MovieClip
{
var fish, decor, tankHygiene, posNext, posCurrent, _parent, posOut, tankTemperature, bkrnd, lb, lf, ml, mr, rb, rf, sand, tankairPurchased, filterPurchased, heaterPurchased, goldseahorsePurchased, plasticSign, orn1, orn2, orn3, orn4, neonSign, flyer, radioAd, tvAd, _x, _y, removeMovieClip, waterinst, sandinst, tankleft, tankleftF, tankmiddle, tankmiddleR, tankright, tankrightF, tankicon, tankair, filter, heater, goldseahorse, plasticSignmc, _name, orn1mc, orn2mc, orn3mc, orn4mc, neonSignmc, flyermc, radioAdmc, tvAdmc, tanktopAlphaTween, tanktop, posXTween, posYTween, posYSCALETween, _yscale, posXSCALETween, _xscale, _xmouse, _ymouse, attachMovie, getNextHighestDepth;
function Tank () {
super();
fish = [];
decor = [];
((tankHygiene == undefined) ? ((tankHygiene = 100)) : null);
posNext = {x:_parent._width + posCurrent.x, y:posCurrent.y};
posOut = {x:_parent._parent._width - posCurrent.x, y:posCurrent.y};
((tankTemperature == undefined) ? ((tankTemperature = 80)) : null);
((bkrnd == undefined) ? ((bkrnd = 1)) : null);
((lb == undefined) ? ((lb = 1)) : null);
((lf == undefined) ? ((lf = 1)) : null);
((ml == undefined) ? ((ml = 1)) : null);
((mr == undefined) ? ((mr = 1)) : null);
((rb == undefined) ? ((rb = 1)) : null);
((rf == undefined) ? ((rf = 1)) : null);
((sand == undefined) ? ((sand = 1)) : null);
((tankairPurchased == undefined) ? ((tankairPurchased = false)) : null);
((filterPurchased == undefined) ? ((filterPurchased = false)) : null);
((heaterPurchased == undefined) ? ((heaterPurchased = false)) : null);
((goldseahorsePurchased == undefined) ? ((goldseahorsePurchased = false)) : null);
((plasticSign == undefined) ? ((plasticSign = false)) : null);
((orn1 == undefined) ? ((orn1 = false)) : null);
((orn2 == undefined) ? ((orn2 = false)) : null);
((orn3 == undefined) ? ((orn3 = false)) : null);
((orn4 == undefined) ? ((orn4 = false)) : null);
((neonSign == undefined) ? ((neonSign = false)) : null);
((flyer == undefined) ? ((flyer = false)) : null);
((radioAd == undefined) ? ((radioAd = false)) : null);
((tvAd == undefined) ? ((tvAd = false)) : null);
_x = _global.HomeView.defaultTankSpot.x;
_y = _global.HomeView.defaultTankSpot.y;
showAll();
}
function pushFish(obj) {
fish.push(obj);
}
function pushDecor(obj) {
decor.push(obj);
}
function tankHealth() {
}
function destroyMe() {
removeMovieClip();
return(undefined);
}
function setDecoration(obj) {
bkrnd = obj.bkrnd;
lb = obj.lb;
lf = obj.lf;
ml = obj.ml;
mr = obj.mr;
rb = obj.rb;
rf = obj.rf;
sand = obj.sand;
showDecoration();
}
function showDecoration() {
waterinst.gotoAndStop(bkrnd);
sandinst.gotoAndStop(sand);
tankleft.gotoAndStop(lb);
tankleftF.gotoAndStop(lf);
tankmiddle.gotoAndStop(ml);
tankmiddleR.gotoAndStop(mr);
tankright.gotoAndStop(rb);
tankrightF.gotoAndStop(rf);
_global.HomeView[tankicon].waterinst.gotoAndStop(bkrnd);
_global.HomeView[tankicon].sandinst.gotoAndStop(sand);
_global.HomeView[tankicon].tankleft.gotoAndStop(lb);
_global.HomeView[tankicon].tankleftF.gotoAndStop(lf);
_global.HomeView[tankicon].tankmiddle.gotoAndStop(ml);
_global.HomeView[tankicon].tankmiddleR.gotoAndStop(mr);
_global.HomeView[tankicon].tankright.gotoAndStop(rb);
_global.HomeView[tankicon].tankrightF.gotoAndStop(rf);
}
function showItems() {
tankair._visible = tankairPurchased;
filter._visible = filterPurchased;
heater._visible = heaterPurchased;
goldseahorse._visible = goldseahorsePurchased;
_global.HomeView[tankicon].tankair._visible = tankairPurchased;
_global.HomeView[tankicon].filter._visible = filterPurchased;
_global.HomeView[tankicon].heater._visible = heaterPurchased;
_global.HomeView[tankicon].goldseahorse._visible = goldseahorsePurchased;
plasticSignmc._visible = plasticSign;
}
function showAll() {
showDecoration();
showItems();
showAds();
_global.HomeView[tankicon]._x = _global.HomeView[_name + "Pos"]._x;
_global.HomeView[tankicon]._y = _global.HomeView[_name + "Pos"]._y;
_global.HomeView[tankicon]._height = _global.HomeView[_name + "Pos"]._height;
_global.HomeView[tankicon]._width = _global.HomeView[_name + "Pos"]._width;
}
function showAds() {
plasticSignmc._visible = plasticSign;
orn1mc._visible = orn1;
orn2mc._visible = orn2;
orn3mc._visible = orn3;
orn4mc._visible = orn4;
neonSignmc._visible = neonSign;
flyermc._visible = flyer;
radioAdmc._visible = radioAd;
tvAdmc._visible = tvAd;
_global.HomeView[tankicon].orn1mc._visible = orn1;
_global.HomeView[tankicon].orn2mc._visible = orn2;
_global.HomeView[tankicon].orn3mc._visible = orn3;
_global.HomeView[tankicon].orn4mc._visible = orn4;
_global.HomeView[tankicon].neonSignmc._visible = neonSign;
_global.HomeView[tankicon].flyermc._visible = flyer;
_global.HomeView[tankicon].radioAdmc._visible = radioAd;
_global.HomeView[tankicon].tvAdmc._visible = tvAd;
neonSignmc.gotoAndPlay(1);
_global.HomeView[tankicon].neonSignmc.gotoAndPlay(1);
}
function faketime(timeset) {
var _local2 = 0;
while (_local2 < fish.length) {
if (fish[_local2].alive) {
} else {
tankHygiene = tankHygiene - (DEAD_FISH * timeset);
}
tankHygiene = tankHygiene - (LIVE_FISH * timeset);
_local2++;
}
if (filterPurchased) {
if (tankHygiene < 100) {
tankHygiene = tankHygiene + (FILTER_BONUS * timeset);
((tankHygiene > 100) ? ((tankHygiene = 100)) : null);
}
}
if (tankairPurchased) {
if (tankHygiene < 100) {
tankHygiene = tankHygiene + (AIR_BONUS * timeset);
((tankHygiene > 100) ? ((tankHygiene = 100)) : null);
}
}
var _local4 = 10;
if (fish.length < _local4) {
_local2 = _local4;
while (_local2 > fish.length) {
if (tankTemperature > 72) {
tankTemperature = tankTemperature - (TEMP_BAD * timeset);
}
_local2--;
}
}
if (fish.length > _local4) {
_local2 = _local4;
while (_local2 < fish.length) {
if (tankTemperature < 88) {
tankTemperature = tankTemperature + (TEMP_BAD * timeset);
}
_local2++;
}
}
((tankTemperature < 72) ? ((tankTemperature = 72)) : null);
((tankTemperature > 88) ? ((tankTemperature = 88)) : null);
if (heaterPurchased) {
if (tankTemperature < 80) {
tankTemperature = tankTemperature + (TEMP_FIX * timeset);
((tankTemperature > 80) ? ((tankTemperature = 80)) : null);
} else if (tankTemperature > 80) {
tankTemperature = tankTemperature - (TEMP_FIX * timeset);
((tankTemperature < 80) ? ((tankTemperature = 80)) : null);
}
}
if (tankHygiene > 70) {
status = "CLEAN";
} else {
status = "DIRTY";
}
if (tankHygiene < 30) {
status = "FILTHY";
((tankHygiene < 0) ? ((tankHygiene = 0)) : null);
}
_local2 = 0;
while (_local2 < fish.length) {
if (fish[_local2].alive) {
fish[_local2].faketime(timeset);
}
_local2++;
}
if (goldseahorsePurchased) {
tankHygiene = 100;
tankTemperature = 80;
_local2 = 0;
while (_local2 < fish.length) {
if (fish[_local2].alive) {
fish[_local2].fed = fish[_local2].MAX_FED;
fish[_local2].health = fish[_local2].MAX_HEALTH;
fish[_local2].cureIches();
fish[_local2].cureFungus();
}
_local2++;
}
}
}
function moveToView() {
_y = _global.HomeView.inViewTankSpot.y;
_global.sndfxlib.playsfx(8);
moveThis(_global.HomeView.inViewTankSpot.x, _global.HomeView.inViewTankSpot.y, _global.HomeView.inViewTankSpot._xscale, _global.HomeView.inViewTankSpot._yscale, 100);
tanktopAlphaTween = new mx.transitions.Tween(tanktop, "_alpha", mx.transitions.easing.Regular.easeOut, tanktop._alpha, 0, 0.6, true);
_global.HomeView[tankicon].filters = _root.iconglow;
}
function moveToDefault() {
var _local4 = 0;
while (_local4 < fish.length) {
fish[_local4].deselect();
_local4++;
}
_global.FishTank.HomeView.FishStats.moveOutOfView();
moveThis(_global.HomeView[_name + "Pos"]._x, _global.HomeView[_name + "Pos"]._y, _global.HomeView[_name + "Pos"]._xscale, _global.HomeView[_name + "Pos"]._yscale, 50);
tanktopAlphaTween = new mx.transitions.Tween(tanktop, "_alpha", mx.transitions.easing.Regular.easeOut, tanktop._alpha, 100, 0.6, true);
posXTween.onMotionFinished = function () {
this.obj._y = _global.HomeView.defaultTankSpot.y;
};
_global.HomeView[tankicon].filters = _root.nofishglow;
}
function moveThis(x, y, xscale, yscale, alpha) {
posXTween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, x, 0.6, true);
posYTween = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeOut, _y, y, 0.6, true);
posYSCALETween = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut, _yscale, yscale, 0.6, true);
posXSCALETween = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut, _xscale, xscale, 0.6, true);
}
function transferFish(fishObj, startx) {
var _local5 = getNextAvailableFishName(fishObj.species);
var _local7 = _xmouse;
var _local6 = _ymouse;
if (startx) {
_local7 = 340;
_local6 = 175;
}
if (fish.push(attachMovie(fishObj.species, _local5, getNextHighestDepth(), fishObj.toObject("zyxwdgh", {_x:_local7, _y:_local6})))) {
_global.FishTank.setFishPtr(fish[fish.length - 1]);
fish[fish.length - 1].bodyparts.topfin = fishObj.bodyparts.topfin;
fish[fish.length - 1].bodyparts.bodyfin = fishObj.bodyparts.bodyfin;
fish[fish.length - 1].bodyparts.backfin = fishObj.bodyparts.backfin;
fish[fish.length - 1].bodyparts.eye = fishObj.bodyparts.eye;
fish[fish.length - 1].mcname = _local5;
fish[fish.length - 1].giveBodyParts();
fish[fish.length - 1].autoPopulateAncestry();
var _local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].mom[_local4] = fishObj.mom[_local4];
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].dad[_local4] = fishObj.dad[_local4];
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].mommom[_local4] = fishObj.mommom[_local4];
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].momdad[_local4] = fishObj.momdad[_local4];
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].dadmom[_local4] = fishObj.dadmom[_local4];
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
fish[fish.length - 1].daddad[_local4] = fishObj.daddad[_local4];
_local4++;
}
return(true);
}
return(false);
}
function getNextAvailableFishName(species) {
var _local2 = 0;
while (this[species + _local2]) {
_local2++;
}
return(species + _local2);
}
function saveTank() {
var _local3 = {};
_local3.tankHygiene = tankHygiene;
_local3.tankTemperature = tankTemperature;
_local3.bkrnd = bkrnd;
_local3.lb = lb;
_local3.lf = lf;
_local3.ml = ml;
_local3.mr = mr;
_local3.rb = rb;
_local3.rf = rf;
_local3.sand = sand;
_local3.tankairPurchased = tankairPurchased;
_local3.filterPurchased = filterPurchased;
_local3.heaterPurchased = heaterPurchased;
_local3.goldseahorsePurchased = goldseahorsePurchased;
_local3.plasticSign = plasticSign;
_local3.orn1 = orn1;
_local3.orn2 = orn2;
_local3.orn3 = orn3;
_local3.orn4 = orn4;
_local3.neonSign = neonSign;
_local3.flyer = flyer;
_local3.radioAd = radioAd;
_local3.tvAd = tvAd;
var _local2 = 0;
while (_local2 < fish.length) {
_local3["fish" + _local2] = fish[_local2].saveFish();
_local2++;
}
return(_local3);
}
function loadTank(obj) {
tankHygiene = obj.tankHygiene;
tankTemperature = obj.tankTemperature;
bkrnd = obj.bkrnd;
lb = obj.lb;
lf = obj.lf;
ml = obj.ml;
mr = obj.mr;
rb = obj.rb;
rf = obj.rf;
sand = obj.sand;
tankairPurchased = obj.tankairPurchased;
filterPurchased = obj.filterPurchased;
heaterPurchased = obj.heaterPurchased;
goldseahorsePurchased = obj.goldseahorsePurchased;
plasticSign = obj.plasticSign;
orn1 = obj.orn1;
orn2 = obj.orn2;
orn3 = obj.orn3;
orn4 = obj.orn4;
neonSign = obj.neonSign;
flyer = obj.flyer;
radioAd = obj.radioAd;
tvAd = obj.tvAd;
for (var _local3 in obj) {
if (String(_local3).substr(0, 4) == "fish") {
fish.push(attachMovie(obj[_local3].species, getNextAvailableFishName(obj[_local3].species), getNextHighestDepth()));
fish[fish.length - 1].copyMe(obj[_local3]);
}
}
showAll();
}
function updateTank(amt) {
var _local2 = 0;
while (_local2 < fish.length) {
if (fish[_local2].alive) {
fish[_local2].updateFish();
} else {
tankHygiene = tankHygiene - DEAD_FISH;
}
tankHygiene = tankHygiene - LIVE_FISH;
_local2++;
}
if (filterPurchased) {
if (tankHygiene < 100) {
tankHygiene = tankHygiene + FILTER_BONUS;
((tankHygiene > 100) ? ((tankHygiene = 100)) : null);
}
}
if (tankairPurchased) {
if (tankHygiene < 100) {
tankHygiene = tankHygiene + AIR_BONUS;
((tankHygiene > 100) ? ((tankHygiene = 100)) : null);
}
}
var _local3 = 10;
if (fish.length < _local3) {
_local2 = _local3;
while (_local2 > fish.length) {
if (tankTemperature > 72) {
tankTemperature = tankTemperature - TEMP_BAD;
}
_local2--;
}
}
if (fish.length > _local3) {
_local2 = _local3;
while (_local2 < fish.length) {
if (tankTemperature < 88) {
tankTemperature = tankTemperature + TEMP_BAD;
}
_local2++;
}
}
((tankTemperature < 72) ? ((tankTemperature = 72)) : null);
((tankTemperature > 88) ? ((tankTemperature = 88)) : null);
if (heaterPurchased) {
if (tankTemperature < 80) {
tankTemperature = tankTemperature + TEMP_FIX;
} else if (tankTemperature > 80) {
tankTemperature = tankTemperature - TEMP_FIX;
}
}
if (tankHygiene > 70) {
status = "CLEAN";
} else {
status = "DIRTY";
}
if (tankHygiene < 30) {
status = "FILTHY";
((tankHygiene < 0) ? ((tankHygiene = 0)) : null);
}
if (goldseahorsePurchased) {
tankHygiene = 100;
tankTemperature = 80;
_local2 = 0;
while (_local2 < fish.length) {
if (fish[_local2].alive) {
fish[_local2].fed = fish[_local2].MAX_FED;
fish[_local2].health = fish[_local2].MAX_HEALTH;
fish[_local2].cureIches();
fish[_local2].cureFungus();
}
_local2++;
}
}
}
function deleteTank() {
removeMovieClip();
}
function feedFish(amt) {
var _local2 = 0;
while (_local2 < fish.length) {
fish[_local2].feedMe(amt);
_local2++;
}
}
function healFish(amt) {
trace("Healing fish in " + _name);
var _local2 = 0;
while (_local2 < fish.length) {
fish[_local2].healMe(amt);
_local2++;
}
}
function growFish(amt) {
var _local2 = 0;
while (_local2 < fish.length) {
fish[_local2].growMe(amt);
_local2++;
}
}
function treatIch() {
var _local2 = 0;
while (_local2 < fish.length) {
fish[_local2].cureIches();
_local2++;
}
}
function treatFungus(amt) {
var _local2 = 0;
while (_local2 < fish.length) {
fish[_local2].cureFungus();
_local2++;
}
}
static var DEAD_FISH = 0.000925;
static var LIVE_FISH = 9.25E-5;
static var FILTER_BONUS = 0.0013875;
static var AIR_BONUS = 0.000925;
static var TEMP_BAD = 1.93E-6;
static var TEMP_FIX = 3.86E-5;
var status = "Clean";
var xvalue = MovieClip.prototype._x;
}
Symbol 1722 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1723 MovieClip [__Packages.RegularTank] Frame 0
class RegularTank extends Tank
{
var fish, attachMovie, getNextAvailableFishName, getNextHighestDepth;
function RegularTank () {
super();
trace("RegularTank created.");
}
function newTankAddFish(startFish) {
var _local2 = 0;
while (_local2 < startFish.length) {
fish.push(attachMovie(startFish[_local2], getNextAvailableFishName(startFish[_local2]), getNextHighestDepth()));
var _local3 = fish[fish.length - 1].MAX_SCALE - 20;
fish[fish.length - 1]._yscale = _local3;
((fish[fish.length - 1]._xscale < 0) ? (_local3 = _local3 * -1) : null);
fish[fish.length - 1]._xscale = _local3;
fish[fish.length - 1].fishMovement();
fish[fish.length - 1].age = 604800 /* 0x093A80 */;
_local2++;
}
}
function addaFish(newfish) {
fish.push(attachMovie(newfish, getNextAvailableFishName(newfish), getNextHighestDepth()));
var _local2 = fish[fish.length - 1].MAX_SCALE - 20;
fish[fish.length - 1]._yscale = _local2;
((fish[fish.length - 1]._xscale < 0) ? (_local2 = _local2 * -1) : null);
fish[fish.length - 1]._xscale = _local2;
fish[fish.length - 1].fishMovement();
fish[fish.length - 1].age = 604800 /* 0x093A80 */;
}
}
Symbol 1724 MovieClip [__Packages.SellTank] Frame 0
class SellTank extends Tank
{
var _name, tankicon, showAll, waterinst, bkrnd, sandinst, sand, tankleft, tankleftF, tankmiddle, tankmiddleR, tankright, tankrightF;
function SellTank () {
super();
_name = "SellTank";
tankicon = "sellicon";
showAll();
}
function showDecoration() {
var _local3 = 13;
waterinst.gotoAndStop(bkrnd);
sandinst.gotoAndStop(sand);
tankleft.gotoAndStop(_local3);
tankleftF.gotoAndStop(_local3);
tankmiddle.gotoAndStop(_local3);
tankmiddleR.gotoAndStop(_local3);
tankright.gotoAndStop(_local3);
tankrightF.gotoAndStop(_local3);
_global.HomeView[tankicon].waterinst.gotoAndStop(bkrnd);
_global.HomeView[tankicon].sandinst.gotoAndStop(sand);
_global.HomeView[tankicon].tankleft.gotoAndStop(_local3);
_global.HomeView[tankicon].tankleftF.gotoAndStop(_local3);
_global.HomeView[tankicon].tankmiddle.gotoAndStop(_local3);
_global.HomeView[tankicon].tankmiddleR.gotoAndStop(_local3);
_global.HomeView[tankicon].tankright.gotoAndStop(_local3);
_global.HomeView[tankicon].tankrightF.gotoAndStop(_local3);
}
}
Symbol 1725 MovieClip [__Packages.StoreTank] Frame 0
class StoreTank extends SellTank
{
var _name, plasticSign, orn1, orn2, orn3, orn4, neonSign, flyer, radioAd, tvAd, tankHygiene, tankTemperature, showDecoration, plasticSignmc, orn1mc, orn2mc, orn3mc, orn4mc, neonSignmc, flyermc, radioAdmc, tvAdmc, bkrnd, lb, lf, ml, mr, rb, rf, sand, tankairPurchased, filterPurchased, heaterPurchased, goldseahorsePurchased, fish, attachMovie, getNextAvailableFishName, getNextHighestDepth, showItems;
function StoreTank () {
super();
_name = "StoreTank";
((plasticSign == undefined) ? ((plasticSign = false)) : null);
((orn1 == undefined) ? ((orn1 = false)) : null);
((orn2 == undefined) ? ((orn2 = false)) : null);
((orn3 == undefined) ? ((orn3 = false)) : null);
((orn4 == undefined) ? ((orn4 = false)) : null);
((neonSign == undefined) ? ((neonSign = false)) : null);
((flyer == undefined) ? ((flyer = false)) : null);
((radioAd == undefined) ? ((radioAd = false)) : null);
((tvAd == undefined) ? ((tvAd = false)) : null);
}
function openStore() {
while (_global.HomeView.SellTankPtr.fish.length > 0) {
_global.HomeView.SellTankPtr.fish[_global.HomeView.SellTankPtr.fish.length - 1].moveFish(this);
}
tankHygiene = _global.HomeView.SellTankPtr.tankHygiene;
tankTemperature = _global.HomeView.SellTankPtr.tankTemperature;
showAds();
showDecoration();
_global.FishTank.switchSections("StoreView");
_global.FishTank.StoreView.storeOpen();
}
function showAds() {
plasticSignmc._visible = plasticSign;
orn1mc._visible = orn1;
orn2mc._visible = orn2;
orn3mc._visible = orn3;
orn4mc._visible = orn4;
neonSignmc._visible = neonSign;
flyermc._visible = flyer;
radioAdmc._visible = radioAd;
tvAdmc._visible = tvAd;
}
function closeStore(gohere) {
while (_global.FishTank.StoreView.StoreTank.fish.length > 0) {
_global.FishTank.StoreView.StoreTank.fish[_global.FishTank.StoreView.StoreTank.fish.length - 1].moveFish(_global.HomeView.SellTankPtr);
}
_global.HomeView.SellTankPtr.tankHygiene = tankHygiene;
_global.HomeView.SellTankPtr.tankTemperature = tankTemperature;
_global.FishTank.StoreView.storeClose();
_global.FishTank.switchSections(gohere);
}
function killStore() {
plasticSign = false;
orn1 = false;
orn2 = false;
orn3 = false;
orn4 = false;
neonSign = false;
flyer = false;
radioAd = false;
tvAd = false;
showAds();
}
function saveTank() {
var _local3 = {};
_local3.tankHygiene = tankHygiene;
_local3.tankTemperature = tankTemperature;
_local3.bkrnd = bkrnd;
_local3.lb = lb;
_local3.lf = lf;
_local3.ml = ml;
_local3.mr = mr;
_local3.rb = rb;
_local3.rf = rf;
_local3.sand = sand;
_local3.tankairPurchased = tankairPurchased;
_local3.filterPurchased = filterPurchased;
_local3.heaterPurchased = heaterPurchased;
_local3.goldseahorsePurchased = goldseahorsePurchased;
_local3.plasticSign = plasticSign;
_local3.orn1 = orn1;
_local3.orn2 = orn2;
_local3.orn3 = orn3;
_local3.orn4 = orn4;
_local3.neonSign = neonSign;
_local3.flyer = flyer;
_local3.radioAd = radioAd;
_local3.tvAd = tvAd;
var _local2 = 0;
while (_local2 < fish.length) {
_local3["fish" + _local2] = fish[_local2].saveFish();
_local2++;
}
return(_local3);
}
function loadTank(obj) {
tankHygiene = obj.tankHygiene;
tankTemperature = obj.tankTemperature;
bkrnd = obj.bkrnd;
lb = obj.lb;
lf = obj.lf;
ml = obj.ml;
mr = obj.mr;
rb = obj.rb;
rf = obj.rf;
sand = obj.sand;
tankairPurchased = obj.tankairPurchased;
filterPurchased = obj.filterPurchased;
heaterPurchased = obj.heaterPurchased;
goldseahorsePurchased = obj.goldseahorsePurchased;
plasticSign = obj.plasticSign;
orn1 = obj.orn1;
orn2 = obj.orn2;
orn3 = obj.orn3;
orn4 = obj.orn4;
neonSign = obj.neonSign;
flyer = obj.flyer;
radioAd = obj.radioAd;
tvAd = obj.tvAd;
for (var _local4 in obj) {
if (String(_local4).substr(0, 4) == "fish") {
fish.push(attachMovie(obj[_local4].species, getNextAvailableFishName(obj[_local4].species), getNextHighestDepth()));
fish[fish.length - 1].copyMe(obj[_local4]);
}
}
while (_global.FishTank.StoreView.StoreTank.fish.length > 0) {
_global.FishTank.StoreView.StoreTank.fish[_global.FishTank.StoreView.StoreTank.fish.length - 1].moveFish(_global.HomeView.SellTankPtr);
}
showItems();
showDecoration();
showAds();
}
}
Symbol 1726 MovieClip [__Packages.IsolationTank] Frame 0
class IsolationTank extends Tank
{
var eggs, _name, tankicon, showAll, magic_unlocked, eggstoMagic, eggsSoFar, attachMovie, getNextHighestDepth, tankHygiene, tankTemperature, bkrnd, lb, lf, ml, mr, rb, rf, sand, tankairPurchased, filterPurchased, heaterPurchased, goldseahorsePurchased, magicmessage, fish, getNextAvailableFishName;
function IsolationTank () {
super();
eggs = [];
trace("Isolation Tank created. Egg length: " + eggs.length);
_name = "IsolationTank";
tankicon = "mixicon";
showAll();
((magic_unlocked == undefined) ? ((magic_unlocked = false)) : null);
((eggstoMagic == undefined) ? ((eggstoMagic = 0)) : null);
((eggsSoFar == undefined) ? ((eggsSoFar = 0)) : null);
}
function createMagic(fish1, fish2) {
var _local2 = false;
if (magic_unlocked) {
if (((eggsSoFar >= eggstoMagic) && (fish1.generation >= 4)) && (fish2.generation >= 4)) {
_local2 = true;
}
} else if ((fish1.generation >= 4) && (fish2.generation >= 4)) {
_local2 = true;
magic_unlocked = true;
}
if (_local2) {
resetEggs();
}
return(_local2);
}
function resetEggs() {
eggsSoFar = 0;
var _local3 = 30;
var _local2 = 7;
eggstoMagic = _local3 + random(_local2);
}
function newEgg(eggspecies, eggtopfin, eggbackfin, eggbodyfin, eggeye, momfish, dadfish, newgen, makeMagic) {
eggs.push(attachMovie("Egg", "egg" + eggs.length, getNextHighestDepth()));
var _local2 = eggs.length - 1;
eggs[_local2].species = eggspecies;
eggs[_local2].topfin = eggtopfin;
eggs[_local2].backfin = eggbackfin;
eggs[_local2].bodyfin = eggbodyfin;
eggs[_local2].eye = eggeye;
eggs[_local2].mom[0] = momfish.species;
eggs[_local2].mom[1] = momfish.bodyparts.bodyfin;
eggs[_local2].mom[2] = momfish.bodyparts.topfin;
eggs[_local2].mom[3] = momfish.bodyparts.backfin;
eggs[_local2].mom[4] = momfish.bodyparts.eye;
eggs[_local2].dad[0] = dadfish.species;
eggs[_local2].dad[1] = dadfish.bodyparts.bodyfin;
eggs[_local2].dad[2] = dadfish.bodyparts.topfin;
eggs[_local2].dad[3] = dadfish.bodyparts.backfin;
eggs[_local2].dad[4] = dadfish.bodyparts.eye;
var _local3 = 0;
while (_local3 < 5) {
eggs[_local2].momdad[_local3] = momfish.dad[_local3];
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
eggs[_local2].mommom[_local3] = momfish.mom[_local3];
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
eggs[_local2].dadmom[_local3] = dadfish.mom[_local3];
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
eggs[_local2].daddad[_local3] = dadfish.dad[_local3];
_local3++;
}
eggs[_local2].generation = newgen;
eggs[_local2].isMagic = makeMagic;
eggsSoFar++;
}
function updateEggs() {
var _local2 = 0;
while (_local2 < eggs.length) {
eggs[_local2].updateEgg();
if ((eggs[_local2].species == undefined) && (_local2 == 0)) {
eggs.shift();
}
_local2++;
}
if (eggs.length == 0) {
clearEggs();
} else {
trace("Number eggs: " + eggs.length);
}
}
function faketimeEggs(timeset) {
var _local2 = 0;
while (_local2 < eggs.length) {
trace("Making update attempt for egg " + _local2);
eggs[_local2].faketimeEgg(timeset);
_local2++;
}
_local2 = 0;
while (_local2 < eggs.length) {
if ((eggs[_local2].species == undefined) && (_local2 == 0)) {
eggs.shift();
}
_local2++;
}
}
function getNextAvailableEggName() {
var _local2 = 0;
while (this["egg" + _local2]) {
_local2++;
}
return("egg" + _local2);
}
function clearEggs() {
var _local2 = 12;
while (_local2 >= 0) {
this["egg" + _local2].removeMovieClip();
_local2--;
}
}
function saveTank() {
var _local3 = {};
_local3.tankHygiene = tankHygiene;
_local3.tankTemperature = tankTemperature;
_local3.bkrnd = bkrnd;
_local3.lb = lb;
_local3.lf = lf;
_local3.ml = ml;
_local3.mr = mr;
_local3.rb = rb;
_local3.rf = rf;
_local3.sand = sand;
_local3.tankairPurchased = tankairPurchased;
_local3.filterPurchased = filterPurchased;
_local3.heaterPurchased = heaterPurchased;
_local3.goldseahorsePurchased = goldseahorsePurchased;
_local3.magic_unlocked = magic_unlocked;
_local3.magicmessage = magicmessage;
_local3.eggstoMagic = eggstoMagic;
_local3.eggsSoFar = eggsSoFar;
var _local2 = 0;
while (_local2 < fish.length) {
_local3["fish" + _local2] = fish[_local2].saveFish();
_local2++;
}
_local2 = 0;
while (_local2 < eggs.length) {
_local3["eggs" + _local2] = eggs[_local2].saveEggs();
_local2++;
}
return(_local3);
}
function loadTank(obj) {
tankHygiene = obj.tankHygiene;
tankTemperature = obj.tankTemperature;
bkrnd = obj.bkrnd;
lb = obj.lb;
lf = obj.lf;
ml = obj.ml;
mr = obj.mr;
rb = obj.rb;
rf = obj.rf;
sand = obj.sand;
tankairPurchased = obj.tankairPurchased;
filterPurchased = obj.filterPurchased;
heaterPurchased = obj.heaterPurchased;
goldseahorsePurchased = obj.goldseahorsePurchased;
magic_unlocked = obj.magic_unlocked;
magicmessage = obj.magicmessage;
eggstoMagic = obj.eggstoMagic;
eggsSoFar = obj.eggsSoFar;
for (var _local3 in obj) {
if (String(_local3).substr(0, 4) == "fish") {
fish.push(attachMovie(obj[_local3].species, getNextAvailableFishName(obj[_local3].species), getNextHighestDepth(), obj[_local3]));
fish[fish.length - 1].copyMe(obj[_local3]);
}
if (String(_local3).substr(0, 4) == "eggs") {
if ((obj[_local3].incubation != undefined) && (!isNaN(obj[_local3].incubation))) {
eggs.push(attachMovie("Egg", "egg" + eggs.length, getNextHighestDepth()));
eggs[eggs.length - 1].copyMe(obj[_local3]);
}
}
}
showAll();
}
var numeggs = 0;
}
Symbol 1727 MovieClip [__Packages.GaribaldiFish] Frame 0
class GaribaldiFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function GaribaldiFish () {
super();
species = "GaribaldiFish";
baseprice = 8;
hardiness = 8;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "garibaldi";
bodyparts.topfin = "garibaldi";
bodyparts.backfin = "garibaldi";
bodyparts.eye = "garibaldi";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1728 MovieClip [__Packages.TangFish] Frame 0
class TangFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function TangFish () {
super();
species = "TangFish";
baseprice = 12;
hardiness = 6;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "tang";
bodyparts.topfin = "tang";
bodyparts.backfin = "tang";
bodyparts.eye = "tang";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1729 MovieClip [__Packages.ParotFish] Frame 0
class ParotFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function ParotFish () {
super();
species = "ParotFish";
baseprice = 11;
hardiness = 6;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "parot";
bodyparts.topfin = "parot";
bodyparts.backfin = "parot";
bodyparts.eye = "parot";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1730 MovieClip [__Packages.AnithiusFish] Frame 0
class AnithiusFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function AnithiusFish () {
super();
species = "AnithiusFish";
baseprice = 8;
hardiness = 8;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "anithius";
bodyparts.topfin = "anithius";
bodyparts.backfin = "anithius";
bodyparts.eye = "anithius";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1731 MovieClip [__Packages.ShrimpFish] Frame 0
class ShrimpFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function ShrimpFish () {
super();
species = "ShrimpFish";
baseprice = 6;
hardiness = 9;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "shrimp";
bodyparts.topfin = "shrimp";
bodyparts.backfin = "shrimp";
bodyparts.eye = "shrimp";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1732 MovieClip [__Packages.BoxFish] Frame 0
class BoxFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function BoxFish () {
super();
species = "BoxFish";
baseprice = 8;
hardiness = 9;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "box";
bodyparts.topfin = "box";
bodyparts.backfin = "box";
bodyparts.eye = "box";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1733 MovieClip [__Packages.AngelFish] Frame 0
class AngelFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function AngelFish () {
super();
species = "AngelFish";
baseprice = 10;
hardiness = 7;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "angel";
bodyparts.topfin = "angel";
bodyparts.backfin = "angel";
bodyparts.eye = "angel";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1734 MovieClip [__Packages.FightingFish] Frame 0
class FightingFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function FightingFish () {
super();
species = "FightingFish";
baseprice = 15;
hardiness = 3;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "fighting";
bodyparts.topfin = "fighting";
bodyparts.backfin = "fighting";
bodyparts.eye = "fighting";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1735 MovieClip [__Packages.GrammaFish] Frame 0
class GrammaFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function GrammaFish () {
super();
species = "GrammaFish";
baseprice = 13;
hardiness = 5;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "gramma";
bodyparts.topfin = "gramma";
bodyparts.backfin = "gramma";
bodyparts.eye = "gramma";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1736 MovieClip [__Packages.SwordtailFish] Frame 0
class SwordtailFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function SwordtailFish () {
super();
species = "SwordtailFish";
baseprice = 12;
hardiness = 7;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "swordtail";
bodyparts.topfin = "swordtail";
bodyparts.backfin = "swordtail";
bodyparts.eye = "swordtail";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1737 MovieClip [__Packages.TriggerFish] Frame 0
class TriggerFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function TriggerFish () {
super();
species = "TriggerFish";
baseprice = 12;
hardiness = 5;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "trigger";
bodyparts.topfin = "trigger";
bodyparts.backfin = "trigger";
bodyparts.eye = "trigger";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1738 MovieClip [__Packages.ClownFish] Frame 0
class ClownFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function ClownFish () {
super();
species = "ClownFish";
baseprice = 11;
hardiness = 7;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "clown";
bodyparts.topfin = "clown";
bodyparts.backfin = "clown";
bodyparts.eye = "clown";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1739 MovieClip [__Packages.TrumpetFish] Frame 0
class TrumpetFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function TrumpetFish () {
super();
species = "TrumpetFish";
baseprice = 10;
hardiness = 7;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "trumpet";
bodyparts.topfin = "trumpet";
bodyparts.backfin = "trumpet";
bodyparts.eye = "trumpet";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1740 MovieClip [__Packages.LionFish] Frame 0
class LionFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function LionFish () {
super();
species = "LionFish";
baseprice = 18;
hardiness = 2;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "lion";
bodyparts.topfin = "lion";
bodyparts.backfin = "lion";
bodyparts.eye = "lion";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1741 MovieClip [__Packages.MoorishIdolFish] Frame 0
class MoorishIdolFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function MoorishIdolFish () {
super();
species = "MoorishIdolFish";
baseprice = 10;
hardiness = 8;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "moorishIdol";
bodyparts.topfin = "moorishIdol";
bodyparts.backfin = "moorishIdol";
bodyparts.eye = "moorishIdol";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1742 MovieClip [__Packages.LampFish] Frame 0
class LampFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function LampFish () {
super();
species = "LampFish";
baseprice = 11;
hardiness = 7;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "lamp";
bodyparts.topfin = "lamp";
bodyparts.backfin = "lamp";
bodyparts.eye = "lamp";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1743 MovieClip [__Packages.SeaHorseFish] Frame 0
class SeaHorseFish extends Fish
{
var species, baseprice, hardiness, speed, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function SeaHorseFish () {
super();
species = "SeaHorseFish";
baseprice = 8;
hardiness = 8;
speed = 8;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "seahorse";
bodyparts.topfin = "seahorse";
bodyparts.backfin = "seahorse";
bodyparts.eye = "seahorse";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1744 MovieClip [__Packages.CrabFish] Frame 0
class CrabFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function CrabFish () {
super();
species = "CrabFish";
baseprice = 8;
hardiness = 9;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "crab";
bodyparts.topfin = "crab";
bodyparts.backfin = "crab";
bodyparts.eye = "crab";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1745 MovieClip [__Packages.GoldFish] Frame 0
class GoldFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function GoldFish () {
super();
species = "GoldFish";
baseprice = 9;
hardiness = 8;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "gold";
bodyparts.topfin = "gold";
bodyparts.backfin = "gold";
bodyparts.eye = "gold";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1746 MovieClip [__Packages.StoreSupply] Frame 0
class StoreSupply extends MovieClip
{
var x, _x, y, _y, _parent;
function StoreSupply () {
super();
x = _x;
y = _y;
}
function onRelease() {
_parent.active_item = this;
}
}
Symbol 1747 MovieClip [__Packages.SupplyRow] Frame 0
class SupplyRow extends MovieClip
{
var x, _x, y, id, _height, bkrnd, itemnamebox, supply, attachMovie, getNextHighestDepth, itemclass, itemname, _y, _parent;
function SupplyRow () {
super();
updateXY();
}
function updateXY() {
x = _x;
y = ((_height - ROW_SPACING) * id) * -1;
bkrnd._visible = false;
itemnamebox._visible = false;
}
function insertSupply(idname) {
supply = attachMovie(idname, "item", getNextHighestDepth());
itemclass = idname;
var _local2 = 0;
while (_local2 < itemClassArray.length) {
if (itemClassArray[_local2] == idname) {
itemname = itemNameArray[_local2];
break;
}
_local2++;
}
}
function showMe() {
_x = x;
_y = y;
bkrnd._visible = true;
itemnamebox._visible = true;
}
function hideMe() {
_x = 0;
_y = 0;
bkrnd._visible = false;
itemnamebox._visible = false;
}
function activeByChild() {
_parent.myRollOver();
}
function inactiveByChild() {
_parent.myRollOut();
}
function destroy() {
_parent.removeRow(this);
}
function loadRow(obj) {
trace("SupplyRow, loadRow. " + obj.supply.type);
id = obj.id;
insertSupply(obj.supply.type);
for (var _local3 in obj.supply) {
if (_local3 == "type") {
supply[_local3] = obj.supply[_local3];
}
}
}
function saveRow() {
var _local2 = {};
_local2.id = id;
_local2.supply = supply.saveSupply();
return(_local2);
}
var itemClassArray = new Array("Food", "FoodDeluxe", "FoodSuper", "FoodGrow", "MedVit", "MedFungus", "MedIches");
var itemNameArray = new Array("Regular Food", "Fishy Feast", "Cater-to-'Em", "Turbo Grow", "Vita-Fish", "Fungus Fighter", "Ich Fix");
var ROW_SPACING = 12;
}
Symbol 1748 MovieClip [__Packages.SupplyColumn] Frame 0
class SupplyColumn extends MovieClip
{
var supplyRows, _x, _width, id, _y, attachMovie, getNextHighestDepth, onEnterFrame, swapDepths, _parent;
function SupplyColumn () {
super();
supplyRows = new Array();
_x = STARTX + (id * (_width + SPACING));
_y = STARTY;
}
function insertSupply(idname) {
if (supplyRows.length < MAX_ROWS) {
supplyRows.push(attachMovie("SupplyRow", nextAvailRownName(), getNextHighestDepth(), {id:supplyRows.length}));
supplyRows[supplyRows.length - 1].insertSupply(idname);
}
}
function myRollOver() {
delete onEnterFrame;
swapDepths(_parent.getNextHighestDepth());
var _local2 = 0;
while (_local2 < supplyRows.length) {
supplyRows[_local2].showMe();
_local2++;
}
}
function myRollOut() {
var birth = getTimer();
onEnterFrame = function () {
if (getTimer() > (birth + 500)) {
var _local2 = 0;
while (_local2 < this.supplyRows.length) {
this.supplyRows[_local2].hideMe();
_local2++;
}
delete this.onEnterFrame;
}
};
}
function nextAvailRownName() {
var _local2 = 0;
while (this["SupplyRow" + _local2]) {
_local2++;
}
return("SupplyRow" + _local2);
}
function removeRow(mc) {
myRollOut();
var _local3 = supplyRows.length;
var _local2 = 0;
while (_local2 < _local3) {
if (supplyRows[_local2] == mc) {
mc.removeMovieClip();
while (_local2 < _local3) {
supplyRows[_local2] = supplyRows[_local2 + 1];
supplyRows[_local2].id--;
supplyRows[_local2].updateXY();
_local2++;
}
supplyRows.pop();
}
_local2++;
}
}
function loadColumn(obj) {
id = obj.id;
var _local2 = 0;
while (_local2 < obj.supplyRows.length) {
insertSupply(obj.supplyRows[_local2].supply.type);
supplyRows[_local2].item.uses = obj.supplyRows[_local2].supply.uses;
trace((("SupplyColumn, loadColumn, item: " + obj.supplyRows[_local2].supply.type) + " uses: ") + supplyRows[_local2].item.uses);
_local2++;
}
}
function saveColumn() {
var _local3 = {};
_local3.id = id;
_local3.supplyRows = [];
var _local2 = 0;
while (_local2 < supplyRows.length) {
_local3.supplyRows[_local2] = supplyRows[_local2].saveRow();
_local2++;
}
return(_local3);
}
var MAX_ROWS = 4;
var SPACING = 90;
var STARTX = 133;
var STARTY = 369;
}
Symbol 1749 MovieClip [__Packages.Supply] Frame 0
class Supply extends MovieClip
{
var x, y, onPress, active, _parent, startDrag, _x, _y;
function Supply () {
super();
x = 0;
y = 0;
onPress = myPress;
active = false;
}
function onRollOver() {
_parent.activeByChild();
}
function onRollOut() {
_parent.inactiveByChild();
}
function onRelease() {
onPress = myPress;
}
function myPress() {
dragMe();
}
function dragMe() {
_parent._parent.swapDepths(_parent._parent._parent.getNextHighestDepth());
_parent.swapDepths(_parent._parent.getNextHighestDepth());
startDrag();
dropMe();
}
function dropMe() {
onRelease = function () {
this.itemDrop();
};
}
function setStartSpot(x, y) {
this.x = x;
this.y = y;
}
function toStartSpot() {
_x = x;
_y = y;
}
function itemDrop() {
}
function saveSupply() {
}
function showFood(target, isFood) {
var _local1 = "";
if (isFood) {
_local1 = "FishFood";
} else {
_local1 = "Medicine";
}
target.attachMovie(_local1, _local1 + "_new", target.getNextHighestDepth(), {_x:target._xmouse, _y:target._ymouse});
}
}
Symbol 1750 MovieClip [__Packages.Medicine] Frame 0
class Medicine extends Supply
{
var usesAmount, toStartSpot, stopDrag, hitTest, _parent, removeMovieClip;
function Medicine () {
super();
usesAmount = 3;
}
function itemDrop() {
useMedicine();
toStartSpot();
stopDrag();
}
function useMedicine() {
var _local3 = 0;
while (_local3 < _global.HomeView.regularTanks.length) {
if (hitTest(_global.HomeView.regularTanks[_local3])) {
if (usesAmount > 0) {
_global.HomeView.regularTanks[_local3].healFish(20);
usesAmount = usesAmount - 1;
} else {
_parent.destroy();
(removeMovieClip());// not popped
}
break;
}
_local3++;
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "Medicine1";
_local2.usesAmount = usesAmount;
return(_local2);
}
}
Symbol 1751 MovieClip [__Packages.Food] Frame 0
class Food extends Supply
{
var uses, toStartSpot, stopDrag, _droptarget, showFood;
function Food () {
super();
uses = 1;
}
function itemDrop() {
useFood();
toStartSpot();
stopDrag();
}
function useFood() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(2);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
}
if (target instanceof Tank) {
target.feedFish(20);
_global.FishTank.StoreView.playsfx(2);
showFood(target, true);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "Food";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1752 MovieClip [__Packages.Egg] Frame 0
class Egg extends MovieClip
{
var _x, _y, mom, dad, momdad, mommom, dadmom, daddad, incubation, generation, isMagic, _name, species, topfin, bodyfin, backfin, eye, removeMovieClip;
function Egg () {
super();
_x = random(40) + 200;
_y = random(5) + 288;
mom = new Array();
dad = new Array();
momdad = new Array();
mommom = new Array();
dadmom = new Array();
daddad = new Array();
incubation = 0;
((generation == undefined) ? ((generation = 0)) : null);
((isMagic == undefined) ? ((isMagic = false)) : null);
}
function updateEgg() {
incubation++;
if (incubation > MAX_INCUBATION) {
hatch();
}
}
function faketimeEgg(timeset) {
trace((((("incubation: " + incubation) + " timeset: ") + timeset) + " for ") + _name);
var _local3 = incubation;
incubation = incubation + timeset;
if (incubation > MAX_INCUBATION) {
faketimeHatch(timeset - (MAX_INCUBATION - _local3));
}
}
function faketimeHatch(timeset) {
trace("faketimeHatch: " + timeset);
var _local5 = _global.HomeView.regularTanks[0];
var _local6 = _local5.getNextAvailableFishName(species);
_local5.fish.push(_local5.attachMovie(species, _local5.getNextAvailableFishName(species), _local5.getNextHighestDepth()));
var _local4 = 0;
while (_local4 < _local5.fish.length) {
if (_local5.fish[_local4]._name == _local6) {
_local5.fish[_local4].bodyparts.topfin = topfin;
_local5.fish[_local4].bodyparts.bodyfin = bodyfin;
_local5.fish[_local4].bodyparts.backfin = backfin;
_local5.fish[_local4].bodyparts.eye = eye;
_local5.fish[_local4].isMagic = isMagic;
_local5.fish[_local4].giveBodyParts();
_local5.fish[_local4].receiveAncestry(mom, dad, momdad, mommom, daddad, dadmom, generation);
_local5.fish[_local4].faketime(timeset);
if ((!_global.FishTank.HomeView.IsolationTankPtr.magicmessage) && (_local5.fish[_local4].isMagic)) {
_global.FishTank.HomeView.IsolationTankPtr.magicmessage = true;
_root.showhelp("newsparkle");
_global.FishTank.HomeView.moveRegularTankToView(0);
_local5.fish[_local4].selectMe();
}
}
_local4++;
}
(removeMovieClip());// not popped
}
function hatch() {
var _local5 = _global.HomeView.regularTanks[0];
var _local6 = _local5.getNextAvailableFishName(species);
_local5.fish.push(_local5.attachMovie(species, _local5.getNextAvailableFishName(species), _local5.getNextHighestDepth()));
var _local4 = 0;
while (_local4 < _local5.fish.length) {
if (_local5.fish[_local4]._name == _local6) {
_local5.fish[_local4].bodyparts.topfin = topfin;
_local5.fish[_local4].bodyparts.bodyfin = bodyfin;
_local5.fish[_local4].bodyparts.backfin = backfin;
_local5.fish[_local4].bodyparts.eye = eye;
_local5.fish[_local4].isMagic = isMagic;
_local5.fish[_local4].giveBodyParts();
_local5.fish[_local4].receiveAncestry(mom, dad, momdad, mommom, daddad, dadmom, generation);
if ((!_global.FishTank.HomeView.IsolationTankPtr.magicmessage) && (_local5.fish[_local4].isMagic)) {
_global.FishTank.HomeView.IsolationTankPtr.magicmessage = true;
_root.showhelp("newsparkle");
_global.FishTank.HomeView.moveRegularTankToView(0);
_local5.fish[_local4].selectMe();
}
}
_local4++;
}
(removeMovieClip());// not popped
}
function saveEggs() {
var _local2 = {};
_local2.incubation = incubation;
_local2.species = species;
_local2.topfin = topfin;
_local2.backfin = backfin;
_local2.bodyfin = bodyfin;
_local2.eye = eye;
_local2.mom = mom;
_local2.dad = dad;
_local2.momdad = momdad;
_local2.mommom = mommom;
_local2.dadmom = dadmom;
_local2.daddad = daddad;
_local2.generation = generation;
_local2.isMagic = isMagic;
return(_local2);
}
function copyMe(obj) {
trace("Copy sequence for " + _name);
incubation = obj.incubation;
species = obj.species;
topfin = obj.topfin;
backfin = obj.backfin;
bodyfin = obj.bodyfin;
eye = obj.eye;
mom = obj.mom;
dad = obj.dad;
momdad = obj.momdad;
mommom = obj.mommom;
dadmom = obj.dadmom;
daddad = obj.daddad;
generation = obj.generation;
isMagic = obj.isMagic;
trace("incubation: " + incubation);
}
var MAX_INCUBATION = 300;
}
Symbol 1753 MovieClip [__Packages.FoodDeluxe] Frame 0
class FoodDeluxe extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function FoodDeluxe () {
super();
uses = 3;
}
function itemDrop() {
useFood();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useFood() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(2);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
uses--;
target.feedFish(30);
target.healFish(3);
_global.FishTank.StoreView.playsfx(2);
showFood(target, true);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "FoodDeluxe";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1754 MovieClip [__Packages.FoodSuper] Frame 0
class FoodSuper extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function FoodSuper () {
super();
uses = 3;
}
function itemDrop() {
useFood();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useFood() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(2);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
uses--;
target.feedFish(40);
target.healFish(7);
_global.FishTank.StoreView.playsfx(2);
showFood(target, true);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "FoodSuper";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1755 MovieClip [__Packages.FoodGrow] Frame 0
class FoodGrow extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function FoodGrow () {
super();
uses = 3;
}
function itemDrop() {
useFood();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useFood() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(2);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
uses--;
target.feedFish(20);
target.growFish(4);
_global.FishTank.StoreView.playsfx(2);
showFood(target, true);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "FoodGrow";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1756 MovieClip [__Packages.MedFungus] Frame 0
class MedFungus extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function MedFungus () {
super();
uses = 3;
}
function itemDrop() {
useMed();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useMed() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(6);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
target.treatFungus();
uses--;
_global.FishTank.StoreView.playsfx(2);
showFood(target, false);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "MedFungus";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1757 MovieClip [__Packages.MedVit] Frame 0
class MedVit extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function MedVit () {
super();
uses = 3;
}
function itemDrop() {
useMed();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useMed() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(6);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
uses--;
target.healFish(20);
_global.FishTank.StoreView.playsfx(2);
showFood(target, false);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "MedVit";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1758 MovieClip [__Packages.MedIches] Frame 0
class MedIches extends Supply
{
var uses, toStartSpot, _parent, stopDrag, _droptarget, showFood;
function MedIches () {
super();
uses = 3;
}
function itemDrop() {
useMed();
toStartSpot();
if (uses == 0) {
_parent.destroy();
}
stopDrag();
}
function useMed() {
var target = new String(_droptarget);
_global.sndfxlib.playsfx(6);
target = eval (target.slashToDot());
var maxloop = 6;
var loopat = 0;
while ((!(target instanceof Tank)) && (loopat < maxloop)) {
target = target._parent;
loopat++;
trace(target);
}
if (target instanceof Tank) {
uses--;
target.treatIch();
_global.FishTank.StoreView.playsfx(2);
showFood(target, false);
}
}
function saveSupply() {
var _local2 = {};
_local2.type = "MedIches";
_local2.uses = uses;
return(_local2);
}
}
Symbol 1759 MovieClip [__Packages.sndfxlib] Frame 0
class sndfxlib extends MovieClip
{
var _name, cashreg, selectFishSnd, foodShakeSnd, toiletSnd, slideSnd, dripSnd, sploshSnd, tankSnd;
function sndfxlib () {
super();
_name = "sndfxlib";
_global[_name] = this;
cashreg = new Sound();
selectFishSnd = new Sound();
foodShakeSnd = new Sound();
toiletSnd = new Sound();
slideSnd = new Sound();
dripSnd = new Sound();
sploshSnd = new Sound();
tankSnd = new Sound();
cashreg.attachSound("cash_register");
selectFishSnd.attachSound("lt_splash");
foodShakeSnd.attachSound("fish_food");
toiletSnd.attachSound("flush");
slideSnd.attachSound("thump");
dripSnd.attachSound("drip");
sploshSnd.attachSound("splosh");
tankSnd.attachSound("tankshift");
}
function playsfx(item) {
if (_root.soundOn) {
switch (item) {
case 1 :
selectFishSnd.start();
break;
case 2 :
foodShakeSnd.start();
break;
case 3 :
cashreg.start();
break;
case 4 :
toiletSnd.start();
break;
case 5 :
slideSnd.start();
break;
case 6 :
dripSnd.start();
break;
case 7 :
sploshSnd.start();
break;
case 8 :
tankSnd.start();
}
}
}
}
Symbol 1760 MovieClip [__Packages.FishStats] Frame 0
class FishStats extends MovieClip
{
var _name, _parent, swapDepths, _visible, interval_id, _x, _y, fishname, fishprice, health_bar, fed_bar, status, fed, health, age, gotoAndStop;
function FishStats () {
super();
_name = "FishStats";
_global[_name] = this;
moveOutOfView();
}
function moveToView() {
updateStats();
_parent.swapDepths(_parent.getNextHighestDepth());
swapDepths(_parent.getNextHighestDepth());
_visible = true;
if (_global.FishTank.fishPtr) {
_global.FishTank.fishPtr.Selected._visible = true;
if (interval_id) {
clearInterval(interval_id);
interval_id = undefined;
}
}
interval_id = setInterval(this, "updateStats", 100);
_x = inView.x;
_y = inView.y;
fishname = _global.FishTank.fishPtr.fishname;
fishprice = _global.FishTank.fishPtr.price;
}
function moveOutOfView() {
clearInterval(interval_id);
interval_id = undefined;
_global.FishTank.fishPtr.deselect();
_x = outOfView.x;
_y = outOfView.y;
_visible = false;
}
function updateStats() {
health_bar.BarMask._xscale = Math.floor(_global.FishTank.fishPtr.health);
fed_bar.BarMask._xscale = Math.floor(_global.FishTank.fishPtr.fed);
status = _global.FishTank.fishPtr.status;
fed = Math.floor(_global.FishTank.fishPtr.fed);
health = Math.floor(_global.FishTank.fishPtr.health);
age = Math.floor(_global.FishTank.fishPtr.age / 86400);
if (age == 1) {
daydays = "Day";
} else {
daydays = "Days";
}
fishprice = _global.FishTank.fishPtr.price;
fishname = _global.FishTank.fishPtr.fishname;
if (_global.FishTank.fishPtr.alive) {
gotoAndStop("livefish");
} else {
gotoAndStop("deadfish");
}
}
var inView = {x:-114, y:278};
var outOfView = {x:1000, y:1000};
var daydays = "Days";
}
Symbol 1761 MovieClip [__Packages.DummyFish] Frame 0
class DummyFish extends MovieClip
{
var bodyparts, species, gotoAndStop, topfin, backfin, eye, bodyfin;
function DummyFish () {
super();
bodyparts = new Object();
}
function showPureFish(species) {
var _local2 = translateSpecies(species);
this.species = species;
bodyparts.bodyfin = _local2;
bodyparts.topfin = _local2;
bodyparts.backfin = _local2;
bodyparts.eye = _local2;
(gotoAndStop(_local2));// not popped
topfin.gotoAndStop(_local2);
backfin.gotoAndStop(_local2);
eye.gotoAndStop(_local2);
bodyfin.gotoAndStop(_local2);
}
function showMutt(fishparts) {
species = fishparts[0];
bodyparts.bodyfin = translateSpecies(fishparts[1]);
bodyparts.topfin = translateSpecies(fishparts[2]);
bodyparts.backfin = translateSpecies(fishparts[3]);
bodyparts.eye = translateSpecies(fishparts[4]);
(gotoAndStop(translateSpecies(fishparts[0])));// not popped
bodyfin.gotoAndStop(translateSpecies(fishparts[1]));
topfin.gotoAndStop(translateSpecies(fishparts[2]));
backfin.gotoAndStop(translateSpecies(fishparts[3]));
eye.gotoAndStop(translateSpecies(fishparts[4]));
}
function showMuttStrings(species, topfin, backfin, bodyfin, eye) {
(gotoAndStop(translateSpecies(species)));// not popped
this.topfin.gotoAndStop(translateSpecies(topfin));
this.backfin.gotoAndStop(translateSpecies(backfin));
this.eye.gotoAndStop(translateSpecies(eye));
this.bodyfin.gotoAndStop(translateSpecies(bodyfin));
}
function getName() {
var _local6 = new Array();
var _local5 = 0;
var _local3 = new Array("bodyfin", "topfin", "backfin", "eye");
var _local4 = 0;
while (_local4 < _local3.length) {
_local5 = 0;
var _local2 = 0;
while (_local2 < _local3.length) {
if (bodyparts[_local3[_local4]] == bodyparts[_local3[_local2]]) {
_local5++;
}
_local2++;
}
if (bodyparts[_local3[_local4]] == translateSpecies(species)) {
_local5++;
}
_local6.push(_local5);
_local4++;
}
_local6.sort(Array.NUMERIC, Array.DESCENDING);
trace(_local6);
var _local10 = _local6[0];
if (_local10 == 5) {
return(translateName(species));
}
trace((((("This species: " + species) + "bacfin: ") + bodyparts.backfin) + " topfin: ") + bodyparts.topfin);
var _local9 = 0;
_local4 = 0;
while (_local4 < speciestypes.length) {
if (species == speciestypes[_local4]) {
trace("speciesid: " + _local4);
_local9 = _local4;
break;
}
_local4++;
}
var _local7 = 0;
_local4 = 0;
while (_local4 < speciestranslate.length) {
if (bodyparts.backfin == speciestranslate[_local4]) {
trace("tailid: " + _local4);
_local7 = _local4;
break;
}
_local4++;
}
var _local8 = 0;
_local4 = 0;
while (_local4 < speciestranslate.length) {
if (bodyparts.topfin == speciestranslate[_local4]) {
trace("finid: " + _local4);
_local8 = _local4;
break;
}
_local4++;
}
return((((finnames[_local8] + " ") + tailnames[_local7]) + " ") + bodynames[_local9]);
}
function translateSpecies(species) {
var _local2 = species;
var _local1 = 0;
while (_local1 < speciestypes.length) {
if (species == speciestypes[_local1]) {
_local2 = speciestranslate[_local1];
}
_local1++;
}
return(_local2);
}
function translateName(species) {
var _local2 = species;
var _local1 = 0;
while (_local1 < speciestypes.length) {
if (species == speciestypes[_local1]) {
_local2 = purenames[_local1];
}
_local1++;
}
return(_local2);
}
static var speciestypes = new Array("AngelFish", "AnithiusFish", "BoxFish", "ClownFish", "CrabFish", "FightingFish", "FlyingFish", "GaribaldiFish", "GoldFish", "GrammaFish", "LampFish", "LionFish", "MoorishIdolFish", "ParotFish", "SeaHorseFish", "ShrimpFish", "SwordtailFish", "TangFish", "TriggerFish", "TrumpetFish");
static var speciestranslate = new Array("angel", "anithius", "box", "clown", "crab", "fighting", "flying", "garibaldi", "gold", "gramma", "lamp", "lion", "moorishIdol", "parot", "seahorse", "shrimp", "swordtail", "tang", "trigger", "trumpet");
static var purenames = new Array("Boomerang Trianglefish", "Crescent-tail Bubblegum Fish", "Yellow Brushtail Kissyface", "Rooster-top Clownfish", "Orange Eggbody Crab", "Fringefin Firetail Bigsnout", "Redwing V-tail Jetfish", "Tangerine Heart-tail", "Glamourtail Goldfish", "Twinfin Sunsetfish", "Leafback Martianfish", "Elegant Spiny Tigerfish", "Ribbon-top Needlenose", "Wavetail Parrotfish", "Blue-Crown Wingtail Seahorse", "Pink Bugeye Shrimp", "Bananafin Swordtail Spotty Dotty", "Moon-tail Teardrop Tang", "Ruffleback Curlicue Diamondfish", "Gatorback Snubtail Slimjim");
static var bodynames = new Array("Trianglefish", "Bubblegum Fish", "Kissyface", "Clownfish", "Eggbody", "Bigsnout", "Jetfish", "Tangerinefish", "Goldfish", "Sunsetfish", "Martianfish", "Tigerfish", "Needlenose", "Parrotfish", "Seahorse", "Shrimpfish", "Spotty Dotty", "Teardrop Tang", "Diamondfish", "Slimjim");
static var finnames = new Array("Longfin", "Pinkfin", "Yellowfin", "Rooster-top", "Crabby", "Fringefin", "Redwing", "Bannerfin", "Fancyfin", "Twinfin", "Leafback", "Spiny", "Ribbon-top", "Ridgefin", "Blue-Crown", "No-fin", "Bananafin", "Swoopfin", "Ruffleback", "Gatorback");
static var tailnames = new Array("Boomerang", "Crescent-tail", "Brushtail", "Short-tailed", "No-Tail", "Firetail", "V-tail", "Heart-tailed", "Glamourtail", "Feathertail", "Greentail", "Spiketailed", "Sharktail", "Wavetail", "Wingtail", "Pinktail", "Swordtail", "Moon-tail", "Curlicue", "Snubtail");
}
Symbol 1762 MovieClip [__Packages.SectionClass] Frame 0
class SectionClass extends MovieClip
{
var _name, _x, _y;
function SectionClass () {
super();
}
function init(__name) {
_name = __name;
_global[_name] = this;
moveToDefaultSpot();
}
function moveToDefaultSpot() {
_x = defaultSectionSpot.x;
_y = defaultSectionSpot.y;
}
var defaultSectionSpot = {x:1000, y:1000};
}
Symbol 1763 MovieClip [__Packages.SpeciesView] Frame 0
class SpeciesView extends SectionClass
{
var init, fishname, me, mom, dad, mommom, momdad, dadmom, daddad, momname, dadname;
function SpeciesView () {
super();
init("SpeciesView");
}
function reload(fish) {
var _local3 = new Array(fish.species, fish.bodyparts.bodyfin, fish.bodyparts.topfin, fish.bodyparts.backfin, fish.bodyparts.eye);
fishname = fish.fishname;
me.showMutt(_local3);
mom.showMutt(fish.mom);
dad.showMutt(fish.dad);
mommom.showMutt(fish.mommom);
momdad.showMutt(fish.momdad);
dadmom.showMutt(fish.dadmom);
daddad.showMutt(fish.daddad);
momname = mom.getName();
dadname = dad.getName();
}
}
Symbol 1764 MovieClip [__Packages.FlyingFish] Frame 0
class FlyingFish extends Fish
{
var species, baseprice, hardiness, mom, autoPopulateAncestry, bodyparts, giveBodyParts, pureBred, figureBreed, price, normalprice, figurePrice;
function FlyingFish () {
super();
species = "FlyingFish";
baseprice = 12;
hardiness = 6;
((mom == undefined) ? (autoPopulateAncestry()) : null);
if (!bodyparts) {
bodyparts = new Object();
bodyparts.bodyfin = "flying";
bodyparts.topfin = "flying";
bodyparts.backfin = "flying";
bodyparts.eye = "flying";
}
giveBodyParts();
((pureBred == undefined) ? (figureBreed()) : null);
((normalprice == price) ? (figurePrice(true)) : null);
}
}
Symbol 1765 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 1766 MovieClip [__Packages.TankOptionsView] Frame 0
class TankOptionsView extends SectionClass
{
var init, _x, defaultSectionSpot, _y, tankdectitle, btntext;
function TankOptionsView () {
super();
init("TankOptionsView");
}
function moveToDefaultSpot() {
_x = defaultSectionSpot.x;
_y = defaultSectionSpot.y;
_global.FishTank.TankOptionsView.resetdecorations();
figureSpot();
}
function newgame() {
tankdectitle.gotoAndStop("gameopen");
btntext = "NEXT";
}
function oldgame() {
tankdectitle.gotoAndStop("gamestarted");
btntext = "DONE";
}
function figureSpot() {
if (_global.newgame) {
newgame();
} else {
oldgame();
}
}
}
Symbol 1767 MovieClip [__Packages.GameOptionsView] Frame 0
class GameOptionsView extends SectionClass
{
var init, soundon, soundoff, slowspeed, medspeed, fastspeed, gotoAndStop, sitterFrame;
function GameOptionsView () {
super();
init("GameOptionsView");
updateOptions();
}
function updateOptions() {
soundon._visible = _root.soundOn;
soundoff._visible = (_root.soundOn ? false : true);
((_global.FishTank.game_speed == slow_speed) ? ((slowspeed._visible = true)) : ((slowspeed._visible = false)));
((_global.FishTank.game_speed == med_speed) ? ((medspeed._visible = true)) : ((medspeed._visible = false)));
((_global.FishTank.game_speed == fast_speed) ? ((fastspeed._visible = true)) : ((fastspeed._visible = false)));
}
function turnoffSound() {
trace("GameOptionsView turnoffSound()");
_root.soundOn = false;
updateOptions();
}
function turnonSound() {
trace("GameOptionsView turnonSound() sound on: " + _root.soundOn);
_root.soundOn = true;
updateOptions();
}
function setfastspeed() {
_global.FishTank.game_speed = fast_speed;
updateOptions();
if (_root.playingGame) {
_global.FishTank.resetTime();
}
}
function setmedspeed() {
_global.FishTank.game_speed = med_speed;
updateOptions();
if (_root.playingGame) {
_global.FishTank.resetTime();
}
}
function setslowspeed() {
_global.FishTank.game_speed = slow_speed;
updateOptions();
if (_root.playingGame) {
_global.FishTank.resetTime();
}
}
function hireFishSitter(charchoice) {
if ((_global.FishTank.money >= 20) && (_global.FishTank.money != undefined)) {
_global.FishTank.money = _global.FishTank.money - 20;
_global.FishTank.fishSitter = true;
gotoAndStop("sitterhired");
sitterFrame.gotoAndStop(charchoice);
sitterFrame.sitters.gotoAndStop(charchoice);
_global.FishTank.sitterChoice = charchoice;
}
}
function fireFishSitter(charchoice) {
_global.FishTank.fishSitter = false;
gotoAndStop("sitterfired");
}
function updateSitter() {
trace("GameOptionsView, updateSitter()");
if (_global.FishTank.fishSitter) {
gotoAndStop("sitterhired");
sitterFrame.gotoAndStop(_global.FishTank.sitterChoice);
sitterFrame.sitters.gotoAndStop(_global.FishTank.sitterChoice);
} else {
gotoAndStop("sitterfired");
}
}
var fast_speed = 500;
var med_speed = 1000;
var slow_speed = 2000;
}
Symbol 1768 MovieClip [__Packages.SuppliesView2] Frame 0
class SuppliesView2 extends SectionClass
{
var inventory, init, selecteditem, prodname, description, cost, costbox, curmoney, nomoney;
function SuppliesView2 () {
super();
inventory = new Array();
init("SuppliesView2");
deselectAll();
}
function newSuppliesView() {
}
function selectItem(id) {
_global.sndfxlib.playsfx(1);
if ((selecteditem != 0) && (selecteditem != id)) {
this["item" + id]._visible = true;
this["item" + selecteditem]._visible = false;
selecteditem = id;
id = id - 1;
prodname = prodnameArray[id];
description = descriptionArray[id];
cost = costArray[id];
costbox._visible = true;
} else if (selecteditem == id) {
this["item" + selecteditem]._visible = false;
selecteditem = 0;
prodname = "";
description = "";
cost = 0;
costbox._visible = false;
} else {
this["item" + id]._visible = true;
selecteditem = id;
id = id - 1;
prodname = prodnameArray[id];
description = descriptionArray[id];
cost = costArray[id];
costbox._visible = true;
}
if (cost > curmoney) {
nomoney._visible = true;
} else {
nomoney._visible = false;
}
}
function buyItem() {
var _local3 = false;
if (cost > _global.FishTank.money) {
noMoney();
} else if (selecteditem == 0) {
} else {
_global.FishTank.HomeView.regularTanks[0].addaFish(availSpecies[selecteditem - 1]);
_global.FishTank.money = _global.FishTank.money - cost;
_global.sndfxlib.playsfx(3);
curmoney = _global.FishTank.money;
}
}
function noMoney() {
nomoney._visible = true;
}
function deselectAll() {
var _local3 = 1;
while (_local3 <= 20) {
this["item" + _local3]._visible = false;
_local3++;
}
cost = 0;
selecteditem = 0;
description = "";
prodname = "";
curmoney = _global.FishTank.money;
nomoney._visible = false;
costbox._visible = false;
}
function addsupply(addingitem, columnid) {
var _local4 = false;
var _local2 = 0;
while (_local2 < _global.FishTank.HomeView.supplyColumns[columnid].supplyRows.length) {
if (_global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].itemclass == addingitem) {
_local4 = true;
_global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].supply.uses = _global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].supply.uses + 3;
}
_local2++;
}
if (!_local4) {
_global.FishTank.HomeView.supplyColumns[columnid].insertSupply(addingitem);
}
}
var prodnameArray = new Array("Boomerang Trianglefish", "Crescent-tail Bubblegum Fish", "Yellow Brushtail Kissyface", "Rooster-top Clownfish", "Fringefin Firetail Bigsnout", "Tangerine Heart-tail", "Twinfin Sunsetfish", "Leafback Martianfish", "Elegant Spiny Tigerfish", "Ribbon-top Needlenose", "Wavetail Parrotfish", "Pink Bugeye Shrimp", "Bananafin Swordtail Spotty Dotty", "Moon-tail Teardrop Tang", "Ruffleback Curlicue Diamondfish", "Gatorback Snubtail Slimjim", "Blue-Crown Wingtail Seahorse", "Orange Eggbody Crab", "Glamourtail Goldfish", "Redwing V-tail Jetfish");
var availSpecies = new Array("AngelFish", "AnithiusFish", "BoxFish", "ClownFish", "FightingFish", "GaribaldiFish", "GrammaFish", "LampFish", "LionFish", "MoorishIdolFish", "ParotFish", "ShrimpFish", "SwordtailFish", "TangFish", "TriggerFish", "TrumpetFish", "SeaHorseFish", "CrabFish", "GoldFish", "FlyingFish");
var descriptionArray = new Array("adult size: 8 inches habitat: rocky shallows \rfishy fact: It swims away, but it always comes back.", "adult size: 8 inches habitat: seaweed forests \rfishy fact: This fish is as sweet as bubblegum!", "adult size: 8 inches habitat: sheltered coves \rfishy fact: This fish has plenty of pucker power.", "adult size: 3 inches habitat: among sea anemones \rfishy fact: In the ocean, clownfish take shelter among sea anemones\u2019 tentacles.", "adult size: 6 inches habitat: underwater volcanoes \rfishy fact: This fiery fish makes a warm friend.", "adult size: 8 inches habitat: seaweed forests \rfishy fact: This fish has a big heart.", "adult size: 3 inches habitat: coral reefs \rfishy fact: This sunny little cutie is like two fish in one.", "adult size: 7 inches habitat: deep ocean \rfishy fact: This far-out fish lights up any party.", "adult size: 12 inches habitat: exotic island bays \rfishy fact: It\u2019s pretty as a picture and sharp as a tack.", "adult size: 7 inches habitat: coral reefs \rfishy fact: This fish is nosy but nice.", "adult size: 11 inches habitat: sandy shallows \rfishy fact: This parrot likes fish food, not crackers.", "adult size: 2 inches habitat: coastal shallows \rfishy fact: It may be shrimpy, but it swims like a champ.", "adult size: 7 inches habitat: open ocean \rfishy fact: This peace-loving fish never raises its sword.", "adult size: 11 inches habitat: moonlit shallows \rfishy fact: It\u2019s got the moon on its tail and stars in its eyes.", "adult size: 12 inches habitat: coral reef \rfishy fact: Diamondfish are a girl\u2019s best friend.", "adult size: 11 inches habitat: rocky reefs \rfishy fact: It\u2019s slim and sleek and so unique.", "adult size: 7 inches habitat: coral reef \rfishy fact: Some horses like corrals, but this one prefers corals.", "adult size: 8 inches habitat: coastal waters and tidepools \rfishy fact: Mixing it with fish produces some crazy crabby combos.", "adult size: 7 inches habitat: waters near Hollywood \rfishy fact: Its tail and fins are naturally curly.", "adult size: 12 inches habitat: open ocean \rfishy fact: This fish flies through the water with the greatest of ease.");
var costArray = new Array("30", "24", "24", "33", "45", "24", "39", "33", "54", "30", "33", "18", "36", "36", "36", "30", "24", "24", "27", "36");
}
Symbol 1769 MovieClip [__Packages.SellStats] Frame 0
class SellStats extends FishStats
{
var _name, moveOutOfView;
function SellStats () {
super();
_name = "SellStats";
_global[_name] = this;
moveOutOfView();
}
}
Symbol 1770 MovieClip [__Packages.StoreView] Frame 0
class StoreView extends SectionClass
{
var custPresent, lastSell, init, numSellableFish, totalThisTime, totalCash, cust_interval, opensign, yasin, Yasmin, cloin, Cloe, jadin, Jade, sasin, Sasha, custWants, StoreTank;
function StoreView () {
super();
custPresent = false;
((lastSell == undefined) ? ((lastSell = 0)) : null);
init("StoreView");
}
function storeOpen() {
_global.SellStats.moveOutOfView();
numSellableFish = _global.FishTank.StoreView.StoreTank.fish.length;
totalThisTime = 0;
totalCash = _global.FishTank.money;
lastSell = 0;
cust_interval = 0;
storeopen = true;
custCountdown = 10;
opensign = "STORE OPEN";
}
function storeClose() {
storeopen = false;
opensign = "STORE CLOSED";
_global.SellStats.moveOutOfView();
}
function storeUpdate() {
if (storeopen) {
cust_interval++;
if (cust_interval == intervalOffset) {
custCheck();
cust_interval = 0;
}
} else {
(yasin ? (Yasmin.play()) : null);
(cloin ? (Cloe.play()) : null);
(jadin ? (Jade.play()) : null);
(sasin ? (Sasha.play()) : null);
}
}
function upCost() {
_global.FishTank.fishPtr.price++;
}
function downCost() {
_global.FishTank.fishPtr.price--;
}
function custCheck() {
if (custCountdown == 0) {
if (numSellableFish > 0) {
var _local8 = random(RANDOM_CUST_CHANCE);
_local8 = _local8 + testChance();
if (_local8 >= MAX_CUST_CHANCE) {
custPresent = true;
} else {
var _local3 = new Array();
var _local6 = 0;
while (_local6 < _local8) {
_local3.push(true);
_local6++;
}
while (_local3.length < MAX_CUST_CHANCE) {
_local3.push(false);
}
_local6 = 0;
while (_local6 < MAX_CUST_CHANCE) {
var _local5 = random(MAX_CUST_CHANCE - 1);
var _local4 = random(MAX_CUST_CHANCE - 1);
var _local7 = _local3[_local5];
_local3[_local5] = _local3[_local4];
_local3[_local4] = _local7;
_local6++;
}
custPresent = _local3[random(_local3.length - 1)];
}
if (custPresent) {
custWants = random(_global.StoreView.StoreTank.fish.length - 1);
_global.StoreView.StoreTank.fish[custWants].figurePrice(false);
var _local9 = _global.StoreView.StoreTank.fish[custWants].normalprice - (Math.ceil((_global.StoreView.StoreTank.fish[custWants].health - _global.StoreView.StoreTank.fish[custWants].MAX_HEALTH) / 10) * -3);
trace((("StoreView mark 8: decentPrice: " + (_local9 + pricevariance)) + " ") + _global.StoreView.StoreTank.fish[custWants].price);
if (((_local9 > 0) && (_global.StoreView.StoreTank.fish[custWants].price <= (_local9 + pricevariance))) && (_global.StoreView.StoreTank.fish[custWants].alive)) {
lastSell = _global.StoreView.StoreTank.fish[custWants].price;
totalThisTime = totalThisTime + lastSell;
_global.FishTank.money = _global.FishTank.money + lastSell;
totalCash = _global.FishTank.money;
var _local10 = _global.FishTank.StoreView.StoreTank.fish[custWants].mcname;
if (_global.FishTank.StoreView.StoreTank.fish[custWants] == _global.FishTank.fishPtr) {
_global.SellStats.moveOutOfView();
}
_global.FishTank.StoreView.StoreTank.fish.popByName(_global.FishTank.StoreView.StoreTank.fish[custWants]);
_global.FishTank.StoreView.StoreTank[_local10].removeMovieClip();
numSellableFish = _global.FishTank.StoreView.StoreTank.fish.length;
_global.sndfxlib.playsfx(3);
}
custPresent = false;
}
} else {
testChance();
}
} else {
custCountdown--;
}
}
function testChance() {
var _local3 = 0;
_local3 = numSellableFish;
pricevariance = 4;
if (_local3 > 0) {
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.plasticSign ? 3 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.orn1 ? 4 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.orn2 ? 5 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.orn3 ? 7 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.orn4 ? 8 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.flyer ? 10 : 0);
_local3 = _local3 + (_global.FishTank.StoreView.StoreTank.neonSign ? 11 : 0);
pricevariance = pricevariance + (_local3 - numSellableFish);
}
var _local4 = 0;
((_local3 == 0) ? (_local4 = 0) : (_local4 = Math.floor((_local3 / MAX_CUST_CHANCE) * 4) + 1));
switch (_local4) {
case 0 :
(yasin ? (Yasmin.play()) : null);
(cloin ? (Cloe.play()) : null);
(jadin ? (Jade.play()) : null);
(sasin ? (Sasha.play()) : null);
break;
case 1 :
((!yasin) ? (Yasmin.play()) : null);
(cloin ? (Cloe.play()) : null);
(jadin ? (Jade.play()) : null);
(sasin ? (Sasha.play()) : null);
break;
case 2 :
((!yasin) ? (Yasmin.play()) : null);
((!cloin) ? (Cloe.play()) : null);
(jadin ? (Jade.play()) : null);
(sasin ? (Sasha.play()) : null);
break;
case 3 :
((!yasin) ? (Yasmin.play()) : null);
((!cloin) ? (Cloe.play()) : null);
((!jadin) ? (Jade.play()) : null);
(sasin ? (Sasha.play()) : null);
break;
case 4 :
((!yasin) ? (Yasmin.play()) : null);
((!cloin) ? (Cloe.play()) : null);
((!jadin) ? (Jade.play()) : null);
((!sasin) ? (Sasha.play()) : null);
break;
default :
((!yasin) ? (Yasmin.play()) : null);
((!cloin) ? (Cloe.play()) : null);
((!jadin) ? (Jade.play()) : null);
((!sasin) ? (Sasha.play()) : null);
}
return(_local3);
}
function saveStoreView() {
var _local2 = {};
_local2.lastSell = lastSell;
_local2.StoreTank = StoreTank.saveTank();
return(_local2);
}
function loadStoreView(obj) {
lastSell = obj.lastSell;
if (obj.StoreTank) {
StoreTank.loadTank(obj.StoreTank);
}
}
var MAX_CUST_CHANCE = 44;
var RANDOM_CUST_CHANCE = 5;
var intervalOffset = 3;
var storeopen = false;
var pricevariance = 4;
var custCountdown = 0;
}
Symbol 1771 MovieClip [__Packages.HireSitterView] Frame 0
class HireSitterView extends SectionClass
{
var init;
function HireSitterView () {
super();
init("HireSitterView");
}
}
Symbol 1772 MovieClip [__Packages.PickFish] Frame 0
class PickFish extends SectionClass
{
var init;
function PickFish () {
super();
init("PickFish");
}
}
Symbol 1773 MovieClip [__Packages.HomeView] Frame 0
class HomeView extends SectionClass
{
var regularTanks, supplyColumns, extraicon, init, attachMovie, getNextHighestDepth, SellTankPtr, IsolationTankPtr, TankMenu, activeTank, num_fish, tankStatus, tanktemp;
function HomeView () {
super();
regularTanks = [];
supplyColumns = [];
extraicon._visible = false;
init("HomeView");
}
function newHomeView(startFish) {
cleanGame();
regularTanks.push(attachMovie("RegularTank", "RegularTank1", getNextHighestDepth(), {id:0}));
regularTanks[0].tankicon = "mainicon";
regularTanks[0].showAll();
SellTankPtr = attachMovie("SellTank", "SellTank", getNextHighestDepth());
IsolationTankPtr = attachMovie("IsolationTank", "IsolationTank", getNextHighestDepth());
regularTanks[0].newTankAddFish(startFish);
moveRegularTankToView(0);
var _local2 = 0;
while (_local2 < 2) {
supplyColumns.push(attachMovie("SupplyColumn", "SupplyColumn" + supplyColumns.length, getNextHighestDepth(), {id:supplyColumns.length}));
_local2++;
}
supplyColumns[0].insertSupply("Food");
}
function cleanGame() {
while (regularTanks.length) {
regularTanks[regularTanks.length - 1].deleteTank();
regularTanks.pop();
}
SellTankPtr.deleteTank();
IsolationTankPtr.deleteTank();
SellTankPtr = undefined;
IsolationTankPtr = undefined;
extraicon._visible = false;
_global.FishTank.StoreView.StoreTank.plasticSign = false;
_global.FishTank.StoreView.StoreTank.orn1 = false;
_global.FishTank.StoreView.StoreTank.orn2 = false;
_global.FishTank.StoreView.StoreTank.orn3 = false;
_global.FishTank.StoreView.StoreTank.orn4 = false;
_global.FishTank.StoreView.StoreTank.neonSign = false;
_global.FishTank.StoreView.StoreTank.flyer = false;
_global.FishTank.StoreView.StoreTank.radioAd = false;
_global.FishTank.StoreView.StoreTank.tvAd = false;
while (supplyColumns.length) {
supplyColumns[supplyColumns.length - 1].removeMovieClip();
supplyColumns.pop();
}
}
function faketime(timeset) {
var _local2 = 0;
while (_local2 < regularTanks.length) {
regularTanks[_local2].faketime(timeset);
_local2++;
}
SellTankPtr.faketime(timeset);
IsolationTankPtr.faketime(timeset);
IsolationTankPtr.faketimeEggs(timeset);
updateStats();
}
function addBoughtSupplyToUser(active_item) {
supplyColumns[1].insertSupply(active_item);
}
function moveRegularTankToView(id) {
TankMenu.decor_btn._alpha = 100;
TankMenu.decor_btn.real_btn.enabled = true;
regularTanks[id].swapDepths(getNextHighestDepth());
if (regularTanks[id]) {
SellTankPtr.moveToDefault();
IsolationTankPtr.moveToDefault();
var _local2 = 0;
while (_local2 < regularTanks.length) {
if (_local2 == id) {
activeTank = regularTanks[id];
activeTank.moveToView();
updateStats();
} else {
regularTanks[_local2].moveToDefault();
}
_local2++;
}
}
}
function moveSellTankToView() {
IsolationTankPtr.moveToDefault();
TankMenu.decor_btn._alpha = 50;
TankMenu.decor_btn.real_btn.enabled = false;
var _local2 = 0;
while (_local2 < regularTanks.length) {
regularTanks[_local2].moveToDefault();
_local2++;
}
activeTank = SellTankPtr;
activeTank.moveToView();
updateStats();
}
function moveIsolationTankToView() {
SellTankPtr.moveToDefault();
TankMenu.decor_btn._alpha = 100;
TankMenu.decor_btn.real_btn.enabled = true;
var _local2 = 0;
while (_local2 < regularTanks.length) {
regularTanks[_local2].moveToDefault();
_local2++;
}
activeTank = IsolationTankPtr;
activeTank.moveToView();
updateStats();
}
function saveHomeView() {
var _local3 = {};
_local3.supplyColumns = [];
var _local2 = 0;
while (_local2 < supplyColumns.length) {
_local3.supplyColumns[_local2] = supplyColumns[_local2].saveColumn();
_local2++;
}
_local3.activeTank = activeTank;
_local3.SellTank = SellTankPtr.saveTank();
_local3.IsolationTank = IsolationTankPtr.saveTank();
_local2 = 0;
while (_local2 < regularTanks.length) {
_local3[regularTanks[_local2]._name] = regularTanks[_local2].saveTank();
_local2++;
}
return(_local3);
}
function loadHomeView(obj) {
if (obj.SellTank) {
SellTankPtr = attachMovie("SellTank", "SellTank", getNextHighestDepth());
SellTankPtr.loadTank(obj.SellTank);
}
if (obj.IsolationTank) {
IsolationTankPtr = attachMovie("IsolationTank", "IsolationTank", getNextHighestDepth());
IsolationTankPtr.loadTank(obj.IsolationTank);
}
for (var _local2 in obj) {
if (String(_local2).substr(0, 12) == "RegularTank1") {
regularTanks.push(attachMovie("RegularTank", "RegularTank1", getNextHighestDepth(), {id:0}));
regularTanks[regularTanks.length - 1].tankicon = "mainicon";
regularTanks[regularTanks.length - 1].loadTank(obj[_local2]);
}
}
for (var _local2 in obj) {
if (String(_local2).substr(0, 12) == "RegularTank2") {
regularTanks.push(attachMovie("RegularTank", "RegularTank2", getNextHighestDepth(), {id:1}));
regularTanks[regularTanks.length - 1].tankicon = "extraicon";
this[regularTanks[regularTanks.length - 1].tankicon]._visible = true;
regularTanks[regularTanks.length - 1].loadTank(obj[_local2]);
}
}
moveRegularTankToView(0);
var _local2 = 0;
while (_local2 < obj.supplyColumns.length) {
supplyColumns[_local2] = attachMovie("SupplyColumn", "SupplyColumn" + obj.supplyColumns[_local2].id, getNextHighestDepth(), {id:obj.supplyColumns[_local2].id});
supplyColumns[_local2].loadColumn(obj.supplyColumns[_local2]);
_local2++;
}
}
function updateStats() {
tankHygiene = activeTank.tankHygiene;
num_fish = activeTank.fish.length.toString();
tankStatus = activeTank.status;
tanktemp = Math.round(activeTank.tankTemperature).toString();
}
function updateHomeView() {
var _local2 = 0;
while (_local2 < regularTanks.length) {
regularTanks[_local2].updateTank();
_local2++;
}
SellTankPtr.updateTank();
IsolationTankPtr.updateTank();
IsolationTankPtr.updateEggs();
updateStats();
}
var tankHygiene = 0;
var inViewTankSpot = {x:4.5, y:0, _xscale:100, _yscale:100};
}
Symbol 1774 MovieClip [__Packages.OptionsView] Frame 0
class OptionsView extends SectionClass
{
var init, _x, _y, defaultSectionSpot, origbtns, morebtns;
function OptionsView () {
super();
init("OptionsView");
_x = 0;
_y = 0;
trace((("OptionsView xy: " + _x) + " ") + _y);
}
function newOptionsView() {
}
function moveToDefaultSpot() {
_x = defaultSectionSpot.x;
_y = defaultSectionSpot.y;
setGameScreen();
}
function setGameScreen() {
origbtns._visible = false;
morebtns._visible = true;
}
function setOrigScreen() {
origbtns._visible = true;
morebtns._visible = false;
}
}
Symbol 1775 MovieClip [__Packages.FishTank] Frame 0
class FishTank extends MovieClip
{
var my_so, last_section, current_section, last_section_move, fishSitter, sitterChoice, game_speed, _name, start_time, money, interval_id, fishPtr, save_time, _x;
function FishTank () {
super();
my_so = SharedObject.getLocal("FishTank");
last_section = undefined;
current_section = "OptionsView";
last_section_move = 1;
((fishSitter == undefined) ? ((fishSitter = false)) : null);
((sitterChoice == undefined) ? ((sitterChoice = 1)) : null);
((game_speed == undefined) ? ((game_speed = 1000)) : null);
init("FishTank");
}
function init(__name) {
_name = __name;
_global[_name] = this;
}
function newGame() {
var _local4 = new Date();
start_time = _local4.getTime();
my_so.clear();
_global.HomeView.newHomeView(startFish);
money = 100;
my_so.data.savedObject = retGameSaveObject();
my_so.flush(1000);
interval_id = setInterval(this, "FishTankRefresh", game_speed);
switchSections("HomeView");
_root.helpmenu._visible = true;
_root.helpmenu.gotoAndPlay("quicktips");
_global.FishTank.GameOptionsView.updateOptions();
}
function FishTankRefresh() {
_global.HomeView.updateHomeView();
_root.cashout = _global.FishTank.money;
_global.StoreView.storeUpdate();
saveGame();
}
function resetTime() {
clearInterval(interval_id);
interval_id = setInterval(this, "FishTankRefresh", game_speed);
}
function setFishPtr(fishObj) {
fishPtr = fishObj;
}
function loadGame() {
var _local3 = my_so.data.savedObject;
game_speed = _local3.FishTank.game_speed;
money = _local3.FishTank.money;
start_time = _local3.FishTank.start_time;
save_time = _local3.FishTank.save_time;
fishSitter = _local3.FishTank.fishSitter;
sitterChoice = _local3.FishTank.sitterChoice;
_global.HomeView.loadHomeView(_local3.HomeView);
_global.FishTank.StoreView.loadStoreView(_local3.StoreView);
var _local6 = new Date();
var _local4 = _local6.getTime();
var _local5 = Math.abs(_local4 - save_time);
faketime(Math.floor(_local5 / game_speed));
interval_id = setInterval(this, "FishTankRefresh", game_speed);
if (fishSitter) {
switchSections("GameOptionsView");
_global.FishTank.GameOptionsView.updateOptions();
_global.FishTank.GameOptionsView.updateSitter();
} else {
switchSections("HomeView");
_global.FishTank.GameOptionsView.updateOptions();
}
}
function retGameSaveObject() {
var _local4 = new Date();
save_time = _local4.getTime();
var _local3 = new Object();
_local3.FishTank = new Object();
_local3.FishTank.game_speed = game_speed;
_local3.FishTank.sitterChoice = sitterChoice;
_local3.FishTank.money = money;
_local3.FishTank.start_time = start_time;
_local3.FishTank.save_time = save_time;
_local3.FishTank.fishSitter = fishSitter;
_local3.HomeView = _global.HomeView.saveHomeView();
_local3.StoreView = _global.FishTank.StoreView.saveStoreView();
return(_local3);
}
function saveGame() {
my_so.data.savedObject = retGameSaveObject();
my_so.flush(1000);
}
function gameOptions() {
}
function faketime(timeset) {
_global.HomeView.faketime(timeset);
}
function switchSections(id) {
if (!_global.section_tween_in_motion) {
if (last_section_move > 0) {
_global[id]._x = Stage.width * last_section_move;
} else {
_global[id]._x = 0;
}
_global[id]._y = 0;
last_section = current_section;
current_section = id;
((current_section == "TankOptionsView") ? (this[current_section].figureSpot()) : null);
animateSwitchSection();
last_section_move = last_section_move * -1;
}
}
function moveToLastSection() {
if (!_global.section_tween_in_motion) {
if (last_section_move > 0) {
_global[last_section]._x = Stage.width * last_section_move;
} else {
_global[last_section]._x = 0;
}
_global[last_section]._y = 0;
var _local3 = last_section;
last_section = current_section;
current_section = _local3;
animateSwitchSection(_local3);
last_section_move = last_section_move * -1;
}
}
function moveLastSectionToDefault() {
}
function animateSwitchSection() {
_global.sndfxlib.playsfx(5);
_global.section_tween_in_motion = true;
var _local3 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, _x - (Stage.width * last_section_move), 0.6, true);
_local3.onMotionFinished = function () {
_global.section_tween_in_motion = false;
_global[this.obj.last_section].moveToDefaultSpot();
};
}
var startFish = new Array();
}
Symbol 1776 MovieClip [__Packages.SuppliesView] Frame 0
class SuppliesView extends SectionClass
{
var inventory, init, selecteditem, prodname, description, cost, costbox, curmoney, nomoney;
function SuppliesView () {
super();
inventory = new Array();
init("SuppliesView");
deselectAll();
}
function newSuppliesView() {
}
function selectItem(id) {
_global.sndfxlib.playsfx(1);
if ((selecteditem != 0) && (selecteditem != id)) {
this["item" + id]._visible = true;
this["item" + selecteditem]._visible = false;
selecteditem = id;
id = id - 1;
prodname = prodnameArray[id];
description = descriptionArray[id];
cost = costArray[id];
costbox._visible = true;
} else if (selecteditem == id) {
this["item" + selecteditem]._visible = false;
selecteditem = 0;
prodname = "";
description = "";
cost = 0;
costbox._visible = false;
} else {
this["item" + id]._visible = true;
selecteditem = id;
id = id - 1;
prodname = prodnameArray[id];
description = descriptionArray[id];
cost = costArray[id];
costbox._visible = true;
}
if (cost > curmoney) {
nomoney._visible = true;
} else {
nomoney._visible = false;
}
}
function buyItem() {
var _local3 = false;
if (cost > _global.FishTank.money) {
noMoney();
} else {
switch (selecteditem) {
case 1 :
addsupply("FoodDeluxe", 0);
_local3 = true;
break;
case 2 :
addsupply("FoodGrow", 0);
_local3 = true;
break;
case 3 :
addsupply("MedVit", 1);
_local3 = true;
break;
case 4 :
addsupply("FoodSuper", 0);
_local3 = true;
break;
case 5 :
addsupply("MedFungus", 1);
_local3 = true;
break;
case 6 :
addsupply("MedIches", 1);
_local3 = true;
break;
case 7 :
if (!_global.FishTank.HomeView.regularTanks[0].filterPurchased) {
_global.FishTank.HomeView.regularTanks[0].filterPurchased = true;
_global.FishTank.HomeView.regularTanks[0].showItems();
_global.FishTank.HomeView.regularTanks[0].tankHygiene = 100;
_global.FishTank.HomeView.SellTank.filterPurchased = true;
_global.FishTank.HomeView.SellTank.showItems();
_global.FishTank.HomeView.SellTank.tankHygiene = 100;
_global.FishTank.HomeView.IsolationTank.filterPurchased = true;
_global.FishTank.HomeView.IsolationTank.showItems();
_global.FishTank.HomeView.IsolationTank.tankHygiene = 100;
_global.FishTank.StoreView.StoreTank.filterPurchased = true;
_global.FishTank.StoreView.StoreTank.showItems();
_global.FishTank.StoreView.StoreTank.tankHygiene = 100;
if (_global.FishTank.HomeView.regularTanks[1]) {
_global.FishTank.HomeView.regularTanks[1].filterPurchased = true;
_global.FishTank.HomeView.regularTanks[1].showItems();
_global.FishTank.HomeView.regularTanks[1].tankHygiene = 100;
}
_local3 = true;
}
break;
case 8 :
if (!_global.FishTank.HomeView.regularTanks[0].tankairPurchased) {
_global.FishTank.HomeView.regularTanks[0].tankairPurchased = true;
_global.FishTank.HomeView.regularTanks[0].showItems();
_global.FishTank.HomeView.regularTanks[0].tankHygiene = 100;
_global.FishTank.HomeView.SellTank.tankairPurchased = true;
_global.FishTank.HomeView.SellTank.showItems();
_global.FishTank.HomeView.SellTank.tankHygiene = 100;
_global.FishTank.HomeView.IsolationTank.tankairPurchased = true;
_global.FishTank.HomeView.IsolationTank.showItems();
_global.FishTank.HomeView.IsolationTank.tankHygiene = 100;
_global.FishTank.StoreView.StoreTank.tankairPurchased = true;
_global.FishTank.StoreView.StoreTank.showItems();
_global.FishTank.StoreView.StoreTank.tankHygiene = 100;
if (_global.FishTank.HomeView.regularTanks[1]) {
_global.FishTank.HomeView.regularTanks[1].tankairPurchased = true;
_global.FishTank.HomeView.regularTanks[1].showItems();
_global.FishTank.HomeView.regularTanks[1].tankHygiene = 100;
}
_local3 = true;
}
break;
case 9 :
if (!_global.FishTank.HomeView.regularTanks[0].heaterPurchased) {
_global.FishTank.HomeView.regularTanks[0].heaterPurchased = true;
_global.FishTank.HomeView.regularTanks[0].showItems();
_global.FishTank.HomeView.regularTanks[0].tankTemperature = 80;
_global.FishTank.HomeView.SellTank.heaterPurchased = true;
_global.FishTank.HomeView.SellTank.showItems();
_global.FishTank.HomeView.SellTank.tankTemperature = 80;
_global.FishTank.HomeView.IsolationTank.heaterPurchased = true;
_global.FishTank.HomeView.IsolationTank.showItems();
_global.FishTank.HomeView.IsolationTank.tankTemperature = 80;
_global.FishTank.StoreView.StoreTank.heaterPurchased = true;
_global.FishTank.StoreView.StoreTank.showItems();
_global.FishTank.StoreView.StoreTank.tankTemperature = 80;
if (_global.FishTank.HomeView.regularTanks[1]) {
_global.FishTank.HomeView.regularTanks[1].heaterPurchased = true;
_global.FishTank.HomeView.regularTanks[1].showItems();
_global.FishTank.HomeView.regularTanks[1].tankTemperature = 80;
}
_local3 = true;
}
break;
case 10 :
if (!_global.FishTank.HomeView.regularTanks[0].goldseahorsePurchased) {
_global.FishTank.HomeView.regularTanks[0].goldseahorsePurchased = true;
_global.FishTank.HomeView.regularTanks[0].showItems();
_global.FishTank.HomeView.SellTank.goldseahorsePurchased = true;
_global.FishTank.HomeView.SellTank.showItems();
_global.FishTank.HomeView.IsolationTank.goldseahorsePurchased = true;
_global.FishTank.HomeView.IsolationTank.showItems();
_global.FishTank.StoreView.StoreTank.goldseahorsePurchased = true;
_global.FishTank.StoreView.StoreTank.showItems();
if (_global.FishTank.HomeView.regularTanks[1] != undefined) {
_global.FishTank.HomeView.regularTanks[1].goldseahorsePurchased = true;
_global.FishTank.HomeView.regularTanks[1].showItems();
}
_local3 = true;
}
break;
case 11 :
if (!_global.FishTank.StoreView.StoreTank.orn2) {
_global.FishTank.StoreView.StoreTank.orn2 = true;
_global.FishTank.StoreView.StoreTank.showAds();
_global.FishTank.HomeView.SellTank.orn2 = true;
_global.FishTank.HomeView.SellTank.showAds();
_local3 = true;
}
break;
case 12 :
if (!_global.FishTank.StoreView.StoreTank.orn3) {
_global.FishTank.StoreView.StoreTank.orn3 = true;
_global.FishTank.StoreView.StoreTank.showAds();
_global.FishTank.HomeView.SellTank.orn3 = true;
_global.FishTank.HomeView.SellTank.showAds();
_local3 = true;
}
break;
case 13 :
if (!_global.FishTank.StoreView.StoreTank.orn4) {
_global.FishTank.StoreView.StoreTank.orn4 = true;
_global.FishTank.StoreView.StoreTank.showAds();
_global.FishTank.HomeView.SellTank.orn4 = true;
_global.FishTank.HomeView.SellTank.showAds();
_local3 = true;
}
break;
case 14 :
if (!_global.FishTank.StoreView.StoreTank.plasticSign) {
_global.FishTank.StoreView.StoreTank.plasticSign = true;
_global.FishTank.StoreView.StoreTank.showAds();
_local3 = true;
}
break;
case 15 :
if (!_global.FishTank.StoreView.StoreTank.flyer) {
_global.FishTank.StoreView.StoreTank.flyer = true;
_global.FishTank.StoreView.StoreTank.showAds();
_local3 = true;
}
break;
case 16 :
if (!_global.FishTank.StoreView.StoreTank.neonSign) {
_global.FishTank.StoreView.StoreTank.neonSign = true;
_global.FishTank.StoreView.StoreTank.showAds();
_global.FishTank.HomeView.SellTank.neonSign = true;
_global.FishTank.HomeView.SellTank.showAds();
_local3 = true;
}
break;
case 17 :
if (_global.FishTank.HomeView.regularTanks[1] != undefined) {
break;
}
_global.FishTank.HomeView.regularTanks.push(_global.FishTank.HomeView.attachMovie("RegularTank", "RegularTank2", _global.FishTank.HomeView.getNextHighestDepth(), {id:1}));
_global.FishTank.HomeView.regularTanks[1].tankairPurchased = _global.FishTank.HomeView.regularTanks[0].tankairPurchased;
_global.FishTank.HomeView.regularTanks[1].filterPurchased = _global.FishTank.HomeView.regularTanks[0].filterPurchased;
_global.FishTank.HomeView.regularTanks[1].heaterPurchased = _global.FishTank.HomeView.regularTanks[0].heaterPurchased;
_global.FishTank.HomeView.regularTanks[1].goldseahorsePurchased = _global.FishTank.HomeView.regularTanks[0].goldseahorsePurchased;
_global.FishTank.HomeView.regularTanks[1].tankicon = "extraicon";
_global.FishTank.HomeView[_global.FishTank.HomeView.regularTanks[1].tankicon]._visible = true;
_global.FishTank.HomeView.regularTanks[1].showAll();
_global.FishTank.HomeView.moveRegularTankToView(1);
_local3 = true;
}
if (_local3) {
_global.FishTank.money = _global.FishTank.money - cost;
_global.sndfxlib.playsfx(3);
curmoney = _global.FishTank.money;
}
}
}
function noMoney() {
nomoney._visible = true;
}
function deselectAll() {
var _local3 = 1;
while (_local3 <= 18) {
this["item" + _local3]._visible = false;
_local3++;
}
cost = 0;
selecteditem = 0;
description = "";
prodname = "";
curmoney = _global.FishTank.money;
nomoney._visible = false;
costbox._visible = false;
}
function addsupply(addingitem, columnid) {
var _local4 = false;
var _local2 = 0;
while (_local2 < _global.FishTank.HomeView.supplyColumns[columnid].supplyRows.length) {
if (_global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].itemclass == addingitem) {
_local4 = true;
_global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].supply.uses = _global.FishTank.HomeView.supplyColumns[columnid].supplyRows[_local2].supply.uses + 3;
}
_local2++;
}
if (!_local4) {
_global.FishTank.HomeView.supplyColumns[columnid].insertSupply(addingitem);
}
}
var prodnameArray = new Array("Fishy Feast Deluxe Fish Food", "Grow Great Fish Food", "Vita-Fish Vitamins", "Health Fin-atic Super Deluxe Fish Food", "Green-B-Gone Anti-fungal Medicine ", "Ich Fix Anti-Ich Medicine", "Fish-Fresh Water Filter", "Treasure-It Aeration System", "Comfy Temp Fish Tank Heater", "Magic Mermaid", "Plant Ornament for Sell Tank", "Block Ornament for Sell Tank", "Oyster Ornament for Sell Tank", "Plastic \"For Sale\" Sign", "Flyer", "Neon \"For Sale\" Sign", "Additional Tank");
var descriptionArray = new Array("This deluxe food is more nutritious and filling than ordinary fish food. Each bottle contains three doses.", "This specially fortified food helps baby fish grow big and strong. Each bottle contains three doses.", "Vitalize your fishy friends! Vita-Fish vitamins make fish healthier. Each bottle contains three doses.", "It\u2019s health food for fish! With this food, fish stay healthier and don\u2019t have to eat as often. Each bottle contains three doses.", "Fish looking a bit green? This medicine cures fungal disease, which forms green spots on fish. Each bottle contains three doses.", "Ich? Ick! This medicine cures ich, a disease that forms white spots on fish. Each bottle contains three doses.", "Freshen up! This filtration system helps keep the water in your tanks clean.", "This system\u2019s a real jewel! It helps keep water clean and has a bubbling treasure chest to liven up your tank.", "This heater stabilizes the temperature in your tanks, which helps keep your fish healthy.", "With the Magic Mermaid casting her spell, you\u2019ll never need to worry about your fish again.", "Put this big, colorful plant in your Sell Tank to attract more customers.", "This fun Bratz\u2122 block ornament is sure to get your Sell Tank noticed by plenty of customers.", "This lovely ornament is guaranteed to draw a crowd of customers to your Sell Tank.", "Fish for sale? A bargain for getting your message across, this sign attracts a few customers to your Sell Tank.", "It pays to advertise! This flyer brings lots of customers to the fish store.", "Bling blink! Install this blinking neon sign and you\u2019ll have no trouble selling fish.", "Fish packed in like sardines? Buy another tank! Your fish will be healthier if they\u2019re not too crowded.");
var costArray = new Array("20", "30", "20", "40", "15", "15", "50", "40", "50", "1000", "20", "30", "40", "10", "75", "100", "75");
}
Symbol 710 Button
on (release) {
_root.helpmenu.gotoAndStop("gettingnewfish");
}
Symbol 711 Button
on (release) {
_root.helpmenu.gotoAndStop("sellingfish");
}
Symbol 712 Button
on (release) {
_root.helpmenu.gotoAndStop("interiordecorating");
}
Symbol 713 Button
on (release) {
_root.helpmenu.gotoAndStop("hiringafishsitter");
}
Symbol 714 Button
on (release) {
_root.helpmenu.gotoAndStop("settinggamespeed");
}
Symbol 715 Button
on (release) {
_root.helpmenu.gotoAndStop("tankmaintenance");
}
Symbol 716 Button
on (release) {
_root.helpmenu.gotoAndStop("careandfeeding");
}
Symbol 717 Button
on (release) {
_root.helpmenu.gotoAndStop("general");
}
Symbol 726 Button
on (release) {
this._visible = false;
}
Symbol 732 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 735 MovieClip Frame 1
var left = this._x40;
var right = (this._x + 430);
var tween;
onRelease = function () {
this.stopDrag();
var _local4 = 0;
while (_local4 < _parent.buttons.length) {
if ((this._x > (_parent.buttons[_local4]._x - 5)) && (this._x < ((_parent.buttons[_local4]._x + _parent.buttons[_local4]._width) + 5))) {
_global.Movies.gotoMovie(_local4);
this.tween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Elastic.easeOut, this._x, _parent.buttons[_local4]._x + 20, 1, true);
}
_local4++;
}
};
onPress = function () {
this.tween.stop();
this.startDrag(false, left, this._y, right, this._y);
};
Symbol 736 MovieClip Frame 1
var top = _y;
var bot = (_y + 175);
var scroll_speed = 10;
onPress = function () {
this.startDrag(false, _x, top, _x, bot);
onMouseMove = function () {
sendPercent();
};
};
onRelease = function () {
this.stopDrag();
delete onMouseMove;
};
onReleaseOutside = onRelease;
var scrollUp = function () {
if ((_y - scroll_speed) > top) {
_y = (_y - scroll_speed);
} else {
_y = top;
}
sendPercent();
};
var scrollDown = function () {
if ((_y + scroll_speed) < bot) {
_y = (_y + scroll_speed);
} else {
_y = bot;
}
sendPercent();
};
var sendPercent = function () {
_parent.TextArea.scrollTo(((_y - top) / (top - bot)) * -1);
};
Symbol 760 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 765 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 783 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 792 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 802 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 810 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 813 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 817 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 822 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 824 Button
on (release) {
_root.helpmenu._visible = false;
}
Symbol 829 MovieClip Frame 1
var scrollTo = function (percent) {
_y = (y - (((_height - max_visible) + 90) * percent));
};
Symbol 830 MovieClip Frame 1
stop();
safety.useHandCursor = false;
stop();
scrollGrabber._y = 92;
Instance of Symbol 829 MovieClip "TextArea" in Symbol 830 MovieClip Frame 1
onClipEvent (load) {
var max_visible = 300;
var y = _y;
}
Symbol 830 MovieClip Frame 10
stop();
Symbol 832 MovieClip Frame 1
stop();
safety.useHandCursor = false;
scrollGrabber._y = 89.2;
Instance of Symbol 732 MovieClip "TextArea" in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
var max_visible = 320;
var y = _y;
}
Symbol 832 MovieClip Frame 10
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 760 MovieClip "TextArea" in Symbol 832 MovieClip Frame 10
onClipEvent (load) {
var max_visible = 340;
var y = _y;
}
Symbol 832 MovieClip Frame 20
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 765 MovieClip "TextArea" in Symbol 832 MovieClip Frame 20
onClipEvent (load) {
var max_visible = 340;
var y = _y;
}
Symbol 832 MovieClip Frame 30
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 783 MovieClip "TextArea" in Symbol 832 MovieClip Frame 30
onClipEvent (load) {
var max_visible = 315;
var y = _y;
}
Symbol 832 MovieClip Frame 40
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 792 MovieClip "TextArea" in Symbol 832 MovieClip Frame 40
onClipEvent (load) {
var max_visible = 330;
var y = _y;
}
Symbol 832 MovieClip Frame 49
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 802 MovieClip "TextArea" in Symbol 832 MovieClip Frame 49
onClipEvent (load) {
var max_visible = 325;
var y = _y;
}
Symbol 832 MovieClip Frame 58
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 810 MovieClip "TextArea" in Symbol 832 MovieClip Frame 58
onClipEvent (load) {
var max_visible = 320;
var y = _y;
}
Symbol 832 MovieClip Frame 67
stop();
scrollGrabber._y = 89.2;
Instance of Symbol 813 MovieClip "TextArea" in Symbol 832 MovieClip Frame 67
onClipEvent (load) {
var max_visible = 322;
var y = _y;
}
Instance of Symbol 817 MovieClip "TextArea" in Symbol 832 MovieClip Frame 76
onClipEvent (load) {
var max_visible = 322;
var y = _y;
}
Instance of Symbol 822 MovieClip "TextArea" in Symbol 832 MovieClip Frame 85
onClipEvent (load) {
var max_visible = 322;
var y = _y;
}
Symbol 832 MovieClip Frame 93
stop();
Symbol 834 MovieClip Frame 1
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 842 Button
on (release) {
this.buyItem();
}
Symbol 872 MovieClip Frame 1
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 874 Button
on (release) {
this.selectItem(1);
}
Symbol 875 Button
on (release) {
this.selectItem(2);
}
Symbol 876 Button
on (release) {
this.selectItem(3);
}
Symbol 877 Button
on (release) {
this.selectItem(4);
}
Symbol 878 Button
on (release) {
this.selectItem(5);
}
Symbol 879 Button
on (release) {
this.selectItem(6);
}
Symbol 880 Button
on (release) {
this.selectItem(8);
}
Symbol 881 Button
on (release) {
this.selectItem(9);
}
Symbol 882 Button
on (release) {
this.selectItem(7);
}
Symbol 883 Button
on (release) {
this.selectItem(10);
}
Symbol 884 Button
on (release) {
this.selectItem(11);
}
Symbol 885 Button
on (release) {
this.selectItem(12);
}
Symbol 886 Button
on (release) {
this.selectItem(13);
}
Symbol 887 Button
on (release) {
this.selectItem(14);
}
Symbol 888 Button
on (release) {
this.selectItem(15);
}
Symbol 889 Button
on (release) {
this.selectItem(16);
}
Symbol 890 Button
on (release) {
this.selectItem(17);
}
Symbol 894 Button
on (release) {
_root.showhelp("tankmaintenance");
}
Symbol 896 Button
on (release) {
_global.FishTank.switchSections("SuppliesView2");
_global.FishTank.SuppliesView2.deselectAll();
}
Symbol 899 Button
on (release) {
if (_global.goHome) {
_global.FishTank.switchSections("HomeView");
} else {
_global.FishTank.StoreView.StoreTank.openStore();
}
}
Symbol 905 MovieClip [SuppliesView] Frame 1
#initclip 112
Object.registerClass("SuppliesView", SuppliesView);
#endinitclip
Symbol 907 Button
on (release) {
if (_global.newgame) {
_global.newgame = false;
_global.FishTank.newGame();
}
_global.FishTank.HomeView.activeTank.setDecoration(tankdecor);
_global.FishTank.switchSections("HomeView");
}
Symbol 916 Button
on (release) {
if (tankdecor.bkrnd == (boy.waterinst._totalframes - 1)) {
boy.waterinst.gotoAndStop(1);
topfinvar.gotoAndStop(1);
tankdecor.bkrnd = 1;
} else {
boy.waterinst.nextFrame();
topfinvar.nextFrame();
tankdecor.bkrnd++;
}
}
Symbol 917 Button
on (release) {
if (tankdecor.bkrnd == 1) {
boy.waterinst.gotoAndStop(boy.waterinst._totalframes - 1);
topfinvar.gotoAndStop(boy.waterinst._totalframes - 1);
tankdecor.bkrnd = boy.waterinst._totalframes - 1;
} else {
boy.waterinst.prevFrame();
topfinvar.prevFrame();
tankdecor.bkrnd--;
}
}
Symbol 932 MovieClip Frame 1
stop();
Symbol 932 MovieClip Frame 2
stop();
Symbol 932 MovieClip Frame 3
stop();
Symbol 932 MovieClip Frame 4
stop();
Symbol 932 MovieClip Frame 5
stop();
Symbol 932 MovieClip Frame 6
stop();
Symbol 932 MovieClip Frame 7
stop();
Symbol 932 MovieClip Frame 8
stop();
Symbol 932 MovieClip Frame 9
stop();
Symbol 932 MovieClip Frame 10
stop();
Symbol 932 MovieClip Frame 11
stop();
Symbol 932 MovieClip Frame 12
stop();
Symbol 932 MovieClip Frame 13
stop();
Symbol 932 MovieClip Frame 14
gotoAndStop (1);
Symbol 934 Button
on (release) {
if (tankdecor.sand == (boy.sandinst._totalframes - 1)) {
boy.sandinst.gotoAndStop(1);
finsvar.gotoAndStop(1);
tankdecor.sand = 1;
} else {
boy.sandinst.nextFrame();
finsvar.nextFrame();
tankdecor.sand++;
}
}
Symbol 935 Button
on (release) {
if (tankdecor.sand == 1) {
boy.sandinst.gotoAndStop(boy.sandinst._totalframes - 1);
finsvar.gotoAndStop(boy.sandinst._totalframes - 1);
tankdecor.sand = boy.sandinst._totalframes - 1;
} else {
boy.sandinst.prevFrame();
finsvar.prevFrame();
tankdecor.sand--;
}
}
Symbol 937 Button
on (release) {
if (tankdecor.rb == (boy.tankright._totalframes - 1)) {
boy.tankright.gotoAndStop(1);
eyesvar.gotoAndStop(1);
tankdecor.rb = 1;
} else {
boy.tankright.nextFrame();
eyesvar.nextFrame();
tankdecor.rb++;
}
}
Symbol 938 Button
on (release) {
if (tankdecor.rb == 1) {
boy.tankright.gotoAndStop(boy.tankright._totalframes - 1);
eyesvar.gotoAndStop(boy.tankright._totalframes - 1);
tankdecor.rb = boy.tankright._totalframes - 1;
} else {
boy.tankright.prevFrame();
eyesvar.prevFrame();
tankdecor.rb--;
}
}
Symbol 940 Button
on (release) {
if (tankdecor.rf == (boy.tankrightF._totalframes - 1)) {
boy.tankrightF.gotoAndStop(1);
eyesvarF.gotoAndStop(1);
tankdecor.rf = 1;
} else {
boy.tankrightF.nextFrame();
eyesvarF.nextFrame();
tankdecor.rf++;
}
}
Symbol 941 Button
on (release) {
if (tankdecor.rf == 1) {
boy.tankrightF.gotoAndStop(boy.tankrightF._totalframes - 1);
eyesvarF.gotoAndStop(boy.tankrightF._totalframes - 1);
tankdecor.rf = boy.tankrightF._totalframes - 1;
} else {
boy.tankrightF.prevFrame();
eyesvarF.prevFrame();
tankdecor.rf--;
}
}
Symbol 943 Button
on (release) {
if (tankdecor.mr == (boy.tankmiddleR._totalframes - 1)) {
boy.tankmiddleR.gotoAndStop(1);
tailvarR.gotoAndStop(1);
tankdecor.mr = 1;
} else {
boy.tankmiddleR.nextFrame();
tailvarR.nextFrame();
tankdecor.mr++;
}
}
Symbol 944 Button
on (release) {
if (tankdecor.mr == 1) {
boy.tankmiddleR.gotoAndStop(boy.tankmiddleR._totalframes - 1);
tailvarR.gotoAndStop(boy.tankmiddleR._totalframes - 1);
tankdecor.mr = boy.tankmiddleR._totalframes - 1;
} else {
boy.tankmiddleR.prevFrame();
tailvarR.prevFrame();
tankdecor.mr--;
}
}
Symbol 946 Button
on (release) {
if (tankdecor.ml == (boy.tankmiddle._totalframes - 1)) {
boy.tankmiddle.gotoAndStop(1);
tailvar.gotoAndStop(1);
tankdecor.ml = 1;
} else {
boy.tankmiddle.nextFrame();
tailvar.nextFrame();
tankdecor.ml++;
}
}
Symbol 947 Button
on (release) {
if (tankdecor.ml == 1) {
boy.tankmiddle.gotoAndStop(boy.tankmiddle._totalframes - 1);
tailvar.gotoAndStop(boy.tankmiddle._totalframes - 1);
tankdecor.ml = boy.tankmiddle._totalframes - 1;
} else {
boy.tankmiddle.prevFrame();
tailvar.prevFrame();
tankdecor.ml--;
}
}
Symbol 949 Button
on (release) {
if (tankdecor.lf == (boy.tankleftF._totalframes - 1)) {
boy.tankleftF.gotoAndStop(1);
bodyvarF.gotoAndStop(1);
tankdecor.lf = 1;
} else {
boy.tankleftF.nextFrame();
bodyvarF.nextFrame();
tankdecor.lf++;
}
}
Symbol 950 Button
on (release) {
if (tankdecor.lf == 1) {
boy.tankleftF.gotoAndStop(boy.tankleftF._totalframes - 1);
bodyvarF.gotoAndStop(boy.tankleftF._totalframes - 1);
tankdecor.lf = boy.tankleftF._totalframes - 1;
} else {
boy.tankleftF.prevFrame();
bodyvarF.prevFrame();
((tankdecor.lf == 1) ? null : (--tankdecor.lf));
}
}
Symbol 952 Button
on (release) {
if (tankdecor.lb == (boy.tankleft._totalframes - 1)) {
boy.tankleft.gotoAndStop(1);
bodyvar.gotoAndStop(1);
tankdecor.lb = 1;
} else {
boy.tankleft.nextFrame();
bodyvar.nextFrame();
tankdecor.lb++;
}
}
Symbol 953 Button
on (release) {
if (tankdecor.lb == 1) {
boy.tankleft.gotoAndStop(boy.tankleft._totalframes - 1);
bodyvar.gotoAndStop(bodyvar._totalframes - 1);
tankdecor.lb = bodyvar._totalframes - 1;
} else {
boy.tankleft.prevFrame();
bodyvar.prevFrame();
tankdecor.lb--;
}
}
Symbol 954 MovieClip Frame 1
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 956 Button
on (release) {
_root.showhelp("interiordecorating");
}
Symbol 961 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 6
stop();
Symbol 962 MovieClip [TankOptionsView] Frame 1
#initclip 101
Object.registerClass("TankOptionsView", TankOptionsView);
#endinitclip
function setdecorations() {
if (_global.newgame) {
tankdecor.bkrnd = 1;
tankdecor.lb = 1;
tankdecor.lf = 1;
tankdecor.ml = 1;
tankdecor.mr = 1;
tankdecor.rb = 1;
tankdecor.rf = 1;
tankdecor.sand = 1;
} else {
tankdecor.bkrnd = _global.FishTank.HomeView.activeTank.bkrnd;
tankdecor.lb = _global.FishTank.HomeView.activeTank.lb;
tankdecor.lf = _global.FishTank.HomeView.activeTank.lf;
tankdecor.ml = _global.FishTank.HomeView.activeTank.ml;
tankdecor.mr = _global.FishTank.HomeView.activeTank.mr;
tankdecor.rb = _global.FishTank.HomeView.activeTank.rb;
tankdecor.rf = _global.FishTank.HomeView.activeTank.rf;
tankdecor.sand = _global.FishTank.HomeView.activeTank.sand;
trace((((((((((((((tankdecor.bkrnd + " ") + tankdecor.lb) + " ") + tankdecor.lf) + " ") + tankdecor.ml) + " ") + tankdecor.mr) + " ") + tankdecor.rb) + " ") + tankdecor.rf) + " ") + tankdecor.sand);
boy.waterinst.gotoAndStop(tankdecor.bkrnd);
topfinvar.gotoAndStop(tankdecor.bkrnd);
boy.sandinst.gotoAndStop(tankdecor.sand);
finsvar.gotoAndStop(tankdecor.sand);
boy.tankleft.gotoAndStop(tankdecor.lb);
bodyvar.gotoAndStop(tankdecor.lb);
boy.tankleftF.gotoAndStop(tankdecor.lf);
bodyvarF.gotoAndStop(tankdecor.lf);
boy.tankmiddle.gotoAndStop(tankdecor.ml);
tailvar.gotoAndStop(tankdecor.ml);
boy.tankmiddleR.gotoAndStop(tankdecor.mr);
tailvarR.gotoAndStop(tankdecor.mr);
boy.tankright.gotoAndStop(tankdecor.rb);
eyesvar.gotoAndStop(tankdecor.rb);
boy.tankrightF.gotoAndStop(tankdecor.rf);
eyesvarF.gotoAndStop(tankdecor.rf);
}
}
function resetdecorations() {
tankdecor.bkrnd = 1;
tankdecor.lb = 1;
tankdecor.lf = 1;
tankdecor.ml = 1;
tankdecor.mr = 1;
tankdecor.rb = 1;
tankdecor.rf = 1;
tankdecor.sand = 1;
boy.waterinst.gotoAndStop(tankdecor.bkrnd);
topfinvar.gotoAndStop(tankdecor.bkrnd);
boy.sandinst.gotoAndStop(tankdecor.sand);
finsvar.gotoAndStop(tankdecor.sand);
boy.tankleft.gotoAndStop(tankdecor.lb);
bodyvar.gotoAndStop(tankdecor.lb);
boy.tankleftF.gotoAndStop(tankdecor.lf);
bodyvarF.gotoAndStop(tankdecor.lf);
boy.tankmiddle.gotoAndStop(tankdecor.ml);
tailvar.gotoAndStop(tankdecor.ml);
boy.tankmiddleR.gotoAndStop(tankdecor.mr);
tailvarR.gotoAndStop(tankdecor.mr);
boy.tankright.gotoAndStop(tankdecor.rb);
eyesvar.gotoAndStop(tankdecor.rb);
boy.tankrightF.gotoAndStop(tankdecor.rf);
eyesvarF.gotoAndStop(tankdecor.rf);
}
var tankdecor = new Object();
Symbol 971 Button
on (release) {
this.setfastspeed();
}
Symbol 973 Button
on (release) {
this.setslowspeed();
}
Symbol 975 Button
on (release) {
this.setmedspeed();
}
Symbol 977 Button
on (release) {
this.turnonSound();
}
Symbol 979 Button
on (release) {
this.turnoffSound();
}
Symbol 988 MovieClip Frame 7
stop();
Symbol 989 Button
on (release) {
_global.FishTank.switchSections("HireSitterView");
_global.FishTank.HireSitterView.updatecash();
}
Symbol 991 Button
on (release) {
_global.FishTank.switchSections("OptionsView");
trace("playing Game: " + _root.playingGame);
if (!_root.playingGame) {
trace("If statement in");
_global.FishTank.OptionsView.setOrigScreen();
}
}
Symbol 998 Button
on (release) {
this.fireFishSitter();
}
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 2
stop();
Symbol 1015 MovieClip Frame 3
stop();
Symbol 1015 MovieClip Frame 4
stop();
Symbol 1020 MovieClip Frame 1
stop();
Symbol 1020 MovieClip Frame 2
stop();
Symbol 1020 MovieClip Frame 3
stop();
Symbol 1020 MovieClip Frame 4
stop();
Symbol 1021 MovieClip [GameOptionsView] Frame 1
#initclip 102
Object.registerClass("GameOptionsView", GameOptionsView);
#endinitclip
stop();
Symbol 1021 MovieClip [GameOptionsView] Frame 6
stop();
Symbol 1025 Button
on (release) {
this.selectItem(18);
}
Symbol 1026 Button
on (release) {
this.selectItem(19);
}
Symbol 1027 Button
on (release) {
this.selectItem(20);
}
Symbol 1029 Button
on (release) {
_global.FishTank.switchSections("SuppliesView");
_global.FishTank.SuppliesView.deselectAll();
}
Symbol 1031 MovieClip [SuppliesView2] Frame 1
#initclip 103
Object.registerClass("SuppliesView2", SuppliesView2);
#endinitclip
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[0]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[2]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[4]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[6]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[8]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[10]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[12]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[14]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[16]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[1]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[3]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[5]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[7]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[9]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[11]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[13]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[15]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[17]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[19]);
}
Instance of Symbol 693 MovieClip [DummyFish] in Symbol 1031 MovieClip [SuppliesView2] Frame 1
onClipEvent (load) {
this.showPureFish(_parent.availSpecies[18]);
}
Symbol 1035 MovieClip Frame 1
stop();
_parent.yasin = false;
Symbol 1035 MovieClip Frame 59
stop();
_parent.yasin = true;
Symbol 1035 MovieClip Frame 130
Symbol 1039 MovieClip Frame 1
stop();
_parent.sasin = false;
Symbol 1039 MovieClip Frame 16
stop();
_parent.sasin = true;
Symbol 1039 MovieClip Frame 31
Symbol 1043 MovieClip Frame 1
stop();
_parent.jadin = false;
Symbol 1043 MovieClip Frame 21
stop();
_parent.jadin = true;
Symbol 1043 MovieClip Frame 44
Symbol 1047 MovieClip Frame 1
stop();
_parent.cloin = false;
Symbol 1047 MovieClip Frame 34
stop();
_parent.cloin = true;
Symbol 1047 MovieClip Frame 70
Symbol 1052 Button
on (release) {
_global.FishTank.StoreView.StoreTank.closeStore("HomeView");
}
Symbol 1053 Button
on (release) {
_global.goHome = false;
_global.FishTank.SuppliesView.deselectAll();
_global.FishTank.StoreView.StoreTank.closeStore("SuppliesView");
}
Symbol 1055 Button
on (release) {
_parent.SellStats.fishPtr.deselect();
_parent.SellStats.moveOutOfView();
}
Symbol 1056 Button
on (release) {
_root.showhelp("sellingfish");
}
Symbol 1088 MovieClip [StoreTank] Frame 1
#initclip 104
Object.registerClass("StoreTank", StoreTank);
#endinitclip
var setHue = function (percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
};
var setBrightness = function (amount) {
amount = amount * 100;
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, amount]);
_local2 = _local2.concat([0, 1, 0, 0, amount]);
_local2 = _local2.concat([0, 0, 1, 0, amount]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local4 = new flash.filters.ColorMatrixFilter(_local2);
this.applyFilter = new Array(_local4);
};
stop();
Symbol 1104 Button
on (release) {
_parent.upCost();
}
on (keyPress "<Up>") {
_parent.upCost();
}
Symbol 1105 Button
on (release) {
_parent.downCost();
}
on (keyPress "<Down>") {
_parent.downCost();
}
Symbol 1106 MovieClip [SellStats] Frame 1
#initclip 105
Object.registerClass("SellStats", SellStats);
#endinitclip
Symbol 1110 MovieClip [StoreView] Frame 1
#initclip 106
Object.registerClass("StoreView", StoreView);
#endinitclip
Symbol 1115 Button
on (release) {
_global.FishTank.GameOptionsView.hireFishSitter(charchoice);
_global.FishTank.switchSections("GameOptionsView");
}
Symbol 1117 Button
on (release) {
_global.FishTank.switchSections("GameOptionsView");
}
Symbol 1128 Button
on (release) {
makeChoice(1);
}
Symbol 1129 Button
on (release) {
makeChoice(2);
}
Symbol 1130 Button
on (release) {
makeChoice(3);
}
Symbol 1131 Button
on (release) {
makeChoice(4);
}
Symbol 1137 MovieClip [HireSitterView] Frame 1
#initclip 107
Object.registerClass("HireSitterView", HireSitterView);
#endinitclip
function makeChoice(charnum) {
charchoice = charnum;
var _local2 = 0;
while (_local2 < characters.length) {
if (_local2 == charnum) {
if (_local2 == 0) {
} else {
this[characters[_local2]].filters = glowfilter;
this[characters[_local2] + "words"].filters = glowletters;
}
} else {
this[characters[_local2]].filters = nofilter;
this[characters[_local2] + "words"].filters = whiteletters;
}
this[characters[_local2]].refresh();
this[characters[_local2] + "words"].refresh();
_local2++;
}
}
function updatecash() {
if (_global.FishTank.money != undefined) {
curcash = _global.FishTank.money;
} else {
curcash = 0;
}
}
var characters = new Array("", "sasha", "cloe", "yasmin", "jade");
var charchoice = 0;
var glowfilter = sasha.filters;
var nofilter = [];
var glowletters = sashawords.filters;
var whiteletters = cloewords.filters;
var curcash = 0;
makeChoice(0);
Symbol 1149 Button
on (release) {
if (selectedFish.length == MAX_FISH) {
while (_global.FishTank.startFish.length > 0) {
_global.FishTank.startFish.pop();
}
var i = 0;
while (i < selectedFish.length) {
_global.FishTank.startFish.push(selectedFish[i]);
i++;
}
while (selectedFish.length > 0) {
selectedFish.pop();
}
_global.FishTank.switchSections("TankOptionsView");
_global.FishTank.TankOptionsView.setdecorations();
clearItems();
}
}
Symbol 1153 Button
on (release) {
selectFish(1);
}
on (rollOver) {
showdesc(1);
}
on (rollOut) {
hidedesc(1);
}
Symbol 1154 Button
on (release) {
selectFish(2);
}
on (rollOver) {
showdesc(2);
}
on (rollOut) {
hidedesc(2);
}
Symbol 1155 Button
on (release) {
selectFish(3);
}
on (rollOver) {
showdesc(3);
}
on (rollOut) {
hidedesc(3);
}
Symbol 1156 Button
on (release) {
selectFish(4);
}
on (rollOver) {
showdesc(4);
}
on (rollOut) {
hidedesc(4);
}
Symbol 1157 Button
on (release) {
selectFish(5);
}
on (rollOver) {
showdesc(5);
}
on (rollOut) {
hidedesc(5);
}
Symbol 1158 Button
on (release) {
selectFish(7);
}
on (rollOver) {
showdesc(7);
}
on (rollOut) {
hidedesc(7);
}
Symbol 1159 Button
on (release) {
selectFish(6);
}
on (rollOver) {
showdesc(6);
}
on (rollOut) {
hidedesc(6);
}
Symbol 1160 Button
on (release) {
selectFish(8);
}
on (rollOver) {
showdesc(8);
}
on (rollOut) {
hidedesc(8);
}
Symbol 1161 Button
on (release) {
selectFish(9);
}
on (rollOver) {
showdesc(9);
}
on (rollOut) {
hidedesc(9);
}
Symbol 1162 Button
on (release) {
selectFish(10);
}
on (rollOver) {
showdesc(10);
}
on (rollOut) {
hidedesc(10);
}
Symbol 1163 Button
on (release) {
selectFish(11);
}
on (rollOver) {
showdesc(11);
}
on (rollOut) {
hidedesc(11);
}
Symbol 1164 Button
on (release) {
selectFish(12);
}
on (rollOver) {
showdesc(12);
}
on (rollOut) {
hidedesc(12);
}
Symbol 1165 Button
on (release) {
selectFish(13);
}
on (rollOver) {
showdesc(13);
}
on (rollOut) {
hidedesc(13);
}
Symbol 1166 Button
on (release) {
selectFish(14);
}
on (rollOver) {
showdesc(14);
}
on (rollOut) {
hidedesc(14);
}
Symbol 1167 Button
on (release) {
selectFish(15);
}
on (rollOver) {
showdesc(15);
}
on (rollOut) {
hidedesc(15);
}
Symbol 1168 Button
on (release) {
selectFish(16);
}
on (rollOver) {
showdesc(16);
}
on (rollOut) {
hidedesc(16);
}
Symbol 1169 Button
on (release) {
selectFish(17);
}
on (rollOver) {
showdesc(17);
}
on (rollOut) {
hidedesc(17);
}
Symbol 1170 Button
on (release) {
selectFish(18);
}
on (rollOver) {
showdesc(18);
}
on (rollOut) {
hidedesc(18);
}
Symbol 1171 Button
on (release) {
selectFish(19);
}
on (rollOver) {
showdesc(19);
}
on (rollOut) {
hidedesc(19);
}
Symbol 1172 Button
on (release) {
selectFish(20);
}
on (rollOver) {
showdesc(20);
}
on (rollOut) {
hidedesc(20);
}
Symbol 1173 MovieClip Frame 1
function selectFish(item) {
var _local8 = false;
var _local5 = 0;
while (_local5 < selectedFish.length) {
if (availSpecies[item - 1] == selectedFish[_local5]) {
_local8 = true;
}
_local5++;
}
if ((!_local8) && (selectedFish.length < MAX_FISH)) {
_global.sndfxlib.playsfx(1);
this["choice" + item].filters = _root.fishglow;
this["choice" + item].refresh();
selectedFish.push(availSpecies[item - 1]);
if ((prevchoiceid != 0) && (prevchoiceid != item)) {
prevchoiceid = item;
} else {
prevchoiceid = item;
}
} else {
_local5 = 0;
while (_local5 < selectedFish.length) {
if (selectedFish[_local5] == availSpecies[item - 1]) {
_global.sndfxlib.playsfx(1);
var _local4 = _local5;
while (_local4 > 0) {
var _local6 = selectedFish[_local4];
selectedFish[_local4] = selectedFish[_local4 - 1];
selectedFish[_local4 - 1] = _local6;
_local4--;
}
selectedFish.shift();
}
_local5++;
}
this["choice" + item].filters = _root.nofishglow;
this["choice" + item].refresh();
}
if (selectedFish.length < MAX_FISH) {
nextbtn._alpha = 50;
} else {
nextbtn._alpha = 100;
}
}
function clearItems() {
for (var _local3 in availSpecies) {
this["choice" + _local3].filters = _root.nofishglow;
}
}
function showdesc(item) {
this["choice" + item].description._visible = true;
}
function hidedesc(item) {
this["choice" + item].description._visible = false;
}
var selectedFish = new Array();
var availSpecies = new Array("AnithiusFish", "AngelFish", "CrabFish", "ClownFish", "MoorishIdolFish", "GrammaFish", "LionFish", "GoldFish", "ShrimpFish", "TrumpetFish", "FlyingFish", "FightingFish", "ParotFish", "GaribaldiFish", "SeaHorseFish", "LampFish", "SwordtailFish", "TangFish", "BoxFish", "TriggerFish");
var prevchoiceid = 0;
var MAX_FISH = 4;
nextbtn._alpha = 50;
Instance of Symbol 693 MovieClip [DummyFish] "choice1" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[0];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice2" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[1];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice3" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[2];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice4" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[3];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice5" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[4];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice7" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[6];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice6" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[5];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice8" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[7];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice9" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[8];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice10" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[9];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice11" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[10];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice12" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[11];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice13" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[12];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice14" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[13];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice15" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[14];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice16" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[15];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice17" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[16];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice18" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[17];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice19" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[18];
this.showPureFish(breed);
}
Instance of Symbol 693 MovieClip [DummyFish] "choice20" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
var breed = _parent.availSpecies[19];
this.showPureFish(breed);
}
Symbol 1174 MovieClip [PickFish] Frame 1
#initclip 108
Object.registerClass("PickFish", PickFish);
#endinitclip
Symbol 1207 Button
on (release) {
_root.showhelp("gettingnewfish");
}
Symbol 1208 MovieClip [HomeView] Frame 1
#initclip 109
Object.registerClass("HomeView", HomeView);
#endinitclip
Symbol 1215 Button
on (release) {
_root.showhelp("general");
}
Symbol 1217 Button
on (release) {
_global.FishTank.GameOptionsView.updateOptions();
_global.FishTank.switchSections("GameOptionsView");
}
Symbol 1219 Button
on (release) {
this._parent.popup._visible = true;
_global.sndfxlib.playsfx(6);
}
Symbol 1221 Button
on (release) {
_global.FishTank.switchSections("HomeView");
}
Symbol 1226 Button
on (release) {
gotoAndStop ("recheck");
}
Symbol 1229 Button
on (release) {
if (!_root.playingGame) {
_root.playingGame = true;
_global.FishTank.TankOptionsView.oldgame();
_global.FishTank.loadGame();
} else {
trace("skipped opening the game");
_global.FishTank.switchSections("HomeView");
}
this._visible = false;
gotoAndStop (1);
}
Symbol 1231 Button
on (release) {
_global.newgame = true;
_global.FishTank.TankOptionsView.newgame();
_root.playingGame = true;
_global.FishTank.switchSections("PickFish");
this._visible = false;
this.gotoAndStop("start");
}
Symbol 1234 MovieClip Frame 1
stop();
safety.useHandCursor = false;
Symbol 1234 MovieClip Frame 5
stop();
safety.useHandCursor = false;
Symbol 1266 Button
on (release) {
if (_global.FishTank.my_so.getSize() > 1300) {
this._parent.popup._visible = true;
_global.sndfxlib.playsfx(6);
} else {
_global.newgame = true;
_root.playingGame = true;
_global.FishTank.switchSections("PickFish");
}
}
Symbol 1268 Button
on (release) {
_root.showhelp("general");
}
Instance of Symbol 1284 MovieClip in Symbol 1292 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (Math.sin(getTimer() / 300) * 100);
_x = ((Math.sin(getTimer() / 300) * 90) + 3);
}
Instance of Symbol 1289 MovieClip in Symbol 1292 MovieClip Frame 1
onClipEvent (load) {
init("right");
}
Symbol 1296 Button
on (release) {
getURL ("javascript:openPop2()");
}
Symbol 1707 MovieClip Frame 13
stop();
Symbol 1708 Button
on (release) {
getURL ("javascript:openPop1()");
}
Symbol 1712 Button
on (release) {
getURL ("javascript:MM_openBrWindow('/games/pop_up.html','Party_Points','width=433,height=309,scrollbars=no',433,309)");
}
Symbol 1713 Button
on (release) {
getURL (("javascript:party_points('" + _root.country) + "')");
}
Symbol 1714 MovieClip [OptionsView] Frame 1
#initclip 110
Object.registerClass("OptionsView", OptionsView);
#endinitclip
this.popup._visible = false;
this.entername._visible = true;
morebtns._visible = false;
play();
Symbol 1714 MovieClip [OptionsView] Frame 33
stop();
promcopy = "Turn your virtual fish tank into a funky, fishy fashion show! Choose your fish, decorate your tank, then log in every day to feed your fish and watch them grow. \r\r The game for girls with a passion for fashion... and fish!";
Symbol 1715 MovieClip [FishTank] Frame 1
#initclip 111
Object.registerClass("FishTank", FishTank);
#endinitclip
stop();