Frame 1
function timeout() {
if (!lv_lv.loaded) {
vc_lv.onLoad = null;
delete vc_lv;
trace("loadvars cancelled");
play();
}
clearInterval(tOIntId);
delete tOIntId;
}
stop();
var i = -1;
while (getInstanceAtDepth(i)) {
i--;
}
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:142, td:"kempt.142.memecounter.com"};
System.security.allowDomain(kv_mc.kv_v.td);
kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/");
kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv;
kv_mc.kv_v.c_so.data.u = true;
kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", 0);
kv_mc.kv_v.l_mcl = new MovieClipLoader();
if (kv_mc.kv_v.l_mcl.loadClip) {
kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
} else {
loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
}
_global.startTime = getTimer();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_global.root = this;
_global.master_domain = "http://swarm.killerviral.com/";
_global.highscoresUrl = "http://highscores.killerviral.com/fishforgirls/";
_global.assets_path = _global.master_domain + "fishforgirls/";
_global.isJavascriptEnabled = _root.jsEnabled != undefined;
_global.isMaster = _root._url.indexOf(_global.master_domain) >= 0;
_global.domain = ((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]));
_global.playerVersion = Number(getVersion().substr(getVersion().indexOf(" ") + 1).split(",")[0]);
_global.movieVersion = 7;
_global.ori_dom = (_root.ori_dom ? (_root.ori_dom) : (domain));
System.security.allowDomain(_global.assets_path, _global.master_domain);
var game_version = 5;
if (movieVersion >= 7) {
if (playerVersion < 7) {
trace("player version too old - load error swf");
loadMovie (_global.assets_path + "error.swf", _root);
} else if (isMaster) {
trace("is master - skip version checking");
play();
} else {
trace("check version...");
var vc_lv = new LoadVars();
vc_lv.onLoad = function (success) {
clearInterval(tOIntId);
delete tOIntId;
if (success) {
if (Number(vc_lv.v) > game_version) {
trace("version checking succeeded - not the latest version");
loadMovie ((_global.assets_path + "game.swf?ori_dom=") + ori_dom, _root);
} else {
trace("version checking succeeded - latest version");
play();
}
} else {
trace("version checking failed");
play();
}
delete vc_lv;
};
tOIntId = setInterval(timeout, 2000);
vc_lv.load(_global.assets_path + "v.php");
}
} else {
trace("movie version 7");
play();
}
Frame 2
preloader._visible = true;
preloader.anim.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * this._totalframes));
} else {
play();
}
};
fishEvent_mc.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(271);
}
};
kvEvent_mc.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(272);
}
};
stop();
Frame 3
function xmlloaded() {
play();
}
function xmlloaderror() {
error_txt.text = "Error: Loading assets failed - please check your network connection\n" + error_txt.text;
}
function xmlloadretry(r, mr) {
error_txt.text = ((((("Error: Loading assets failed - retrying ( attempt " + r) + " of ") + mr) + " )") + newline) + error_txt.text;
}
function kvGetUrl(id, window, method) {
_root.kvClick(id);
trace([_global.lang["url_" + id]].concat(arguments.slice(1)));
getURL.apply(this, [_global.lang["url_" + id]].concat(arguments.slice(1)));
}
stop();
_global.lang = new Language();
_global.lang.init("en", xmlloaded, xmlloaderror, xmlloadretry);
Frame 4
stop();
Frame 5
_root.soundControl.tgtVolume = 40;
stop();
Instance of Symbol 364 MovieClip "soundControl" in Frame 5
onClipEvent (load) {
function switchSnd() {
var _local1 = sTheme.position;
var _local3 = sTheme.position;
sTheme.stop();
if (themeName == "startTheme") {
themeName = "gameTheme";
} else {
themeName = "startTheme";
}
trace("theme = " + themeName);
trace((("currPos = " + _local1) + " sTheme = ") + sTheme);
sTheme.attachSound(themeName);
if (_local1 >= sTheme.duration) {
var _local2 = (_local1 - sTheme.duration) / 1000;
} else {
var _local2 = _local1 / 1000;
}
sTheme.start(_local2);
}
this._visible = 0;
themeName = "startTheme";
sTheme = new Sound(this);
sTheme.attachSound(themeName);
sTheme.onSoundComplete = function () {
sTheme.start(0, 999);
};
sTheme.start(0, 999);
sTheme.setVolume(20);
tgtVolume = 40;
}
onClipEvent (enterFrame) {
if (sTheme.getVolume() > tgtVolume) {
sTheme.setVolume(sTheme.getVolume() - 3);
} else if (sTheme.getVolume() < tgtVolume) {
sTheme.setVolume(sTheme.getVolume() + 1);
}
}
Frame 6
_root.soundControl.tgtVolume = 40;
Frame 7
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 8
_root.play();
stop();
Symbol 742 MovieClip [__Packages.Language] Frame 0
class Language
{
var loadStatus, prog, xml, lang, onLoad, onLoadError, onLoadRetry, intId;
function Language () {
loadStatus = "loading";
prog = 0;
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = Delegate.create(this, onXMLLoad);
}
function init(lang, onload, onloaderror, onloadretry) {
this.lang = lang;
onLoad = onload;
onLoadError = onloaderror;
onLoadRetry = onloadretry;
_global.ASSetPropFlags(this, "onLoad", 1);
intId = setInterval(this, "monitorProgress", 50);
xml.load((path + lang) + ".xml");
}
function parse() {
var _local4 = xml.firstChild;
var _local3;
var _local2 = 0;
while (_local2 < _local4.childNodes.length) {
_local3 = _local4.childNodes[_local2];
this[_local3.attributes.id] = _local3.firstChild.nodeValue;
_local2++;
}
}
function translate(id, vals) {
var _local2 = this[id];
var _local4 = "";
var _local3;
while (_local3 = _local2.indexOf("{") , _local3 > -1) {
_local4 = _local4 + _local2.substr(0, _local3);
_local2 = _local2.substr(_local3 + 1);
_local3 = _local2.indexOf("}");
_local4 = _local4 + vals[_local2.substr(0, _local3)];
_local2 = _local2.substr(_local3 + 1);
}
return(_local4 + _local2);
}
function onXMLLoad(success) {
if (intId) {
clearInterval(intId);
delete intId;
}
if (success) {
loadStatus = "complete";
xml.loaded = true;
prog = 1;
parse();
onLoad();
} else if (lang == defaultLang) {
if ((retries++) < maxLoadRetries) {
onLoadRetry(retries, maxLoadRetries);
init(lang, onLoad, onLoadError, onLoadRetry);
} else {
loadStatus = "error";
onLoadError();
}
} else {
trace("getting default lang");
init(defaultLang, onLoad, onLoadError, onLoadRetry);
}
}
function monitorProgress() {
prog = xml.getBytesLoaded() / xml.getBytesTotal();
if (prog == 1) {
clearInterval(intId);
delete intId;
}
}
var retries = 0;
static var maxLoadRetries = 3;
static var defaultLang = "en";
var path = "http://swarm.killerviral.com/fishforgirls/xml/";
}
Symbol 743 MovieClip [__Packages.Delegate] Frame 0
class Delegate
{
function Delegate () {
}
static function create(target, handler) {
var _local3 = arguments.slice(2);
var _local2 = function () {
return(arguments.callee.handler.apply(arguments.callee.target, arguments.concat(arguments.callee.extraArgs)));
};
_local2.extraArgs = _local3;
_local2.handler = handler;
_local2.target = target;
return(_local2);
}
}
Symbol 24 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 91
_parent.play();
Instance of Symbol 40 MovieClip in Symbol 41 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_parent._parent.catchArray[_parent._parent.catchIndex].cutscene);
}
Symbol 70 Button
on (release) {
_root.kvGetUrl(297, "_blank");
}
Symbol 72 Button
on (press) {
_root.kvGetUrl(273, "_blank");
}
Symbol 94 Button
on (press) {
_root.kvGetUrl(275, "_blank");
}
Symbol 105 Button
on (release) {
gotoAndPlay ("end");
}
Symbol 110 Button
on (release) {
if (!_global.soundMute) {
_global.soundMute = true;
new Sound().setVolume(0);
} else {
_global.soundMute = false;
new Sound().setVolume(100);
}
}
Symbol 111 Button
on (release) {
if (!_global.soundMute) {
_global.soundMute = true;
new Sound().setVolume(0);
} else {
_global.soundMute = true;
new Sound().setVolume(100);
}
}
Symbol 112 MovieClip Frame 38
stop();
Symbol 112 MovieClip Frame 56
_parent.mainMenu.gotoAndPlay("start");
stop();
Symbol 124 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 128 Button
on (release) {
_root.kvGetUrl(277, "_blank");
}
Symbol 132 Button
on (release) {
_root.kvGetUrl(274, "_blank");
}
Symbol 136 Button
on (release) {
_root.kvGetUrl(278, "_blank");
}
Symbol 140 Button
on (release) {
_root.kvGetUrl(280, "_blank");
}
Symbol 144 Button
on (release) {
_root.kvGetUrl(276, "_blank");
}
Symbol 153 Button
on (release) {
_parent.startGame = true;
_parent.gotoAndPlay("close");
}
Symbol 167 Button
on (release) {
_parent.gotoAndPlay("close");
}
Symbol 172 Button
on (release) {
_root.kvGetUrl(281, "_blank");
}
Symbol 181 Button
on (release) {
gotoAndPlay ("instructions1");
}
Symbol 193 MovieClip Frame 23
_global.game.splash.play();
_global.game.ripple.play();
Symbol 193 MovieClip Frame 32
stop();
Symbol 200 MovieClip Frame 1
stop();
Instance of Symbol 188 MovieClip "sprite" in Symbol 200 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 200 MovieClip Frame 4
stop();
Symbol 200 MovieClip Frame 7
stop();
Symbol 213 Button
on (release) {
gotoAndPlay ("instructions2");
}
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 229 MovieClip "lineSnapDanger" in Symbol 230 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Symbol 231 Button
on (release) {
gotoAndPlay ("instructions3");
}
Symbol 234 Button
on (release) {
gotoAndPlay ("home");
}
Symbol 262 Button
on (release) {
play();
}
Symbol 268 Button
on (release) {
stopAllSounds();
_parent._parent.play();
}
Symbol 276 Button
on (release) {
submitHighScore = true;
play();
}
Symbol 282 Button
on (release) {
submitHighScore = true;
play();
}
Symbol 313 MovieClip Frame 1
function onRelease() {
play();
_value = !_value;
}
stop();
Symbol 313 MovieClip Frame 2
stop();
Symbol 319 Button
on (release) {
_parent._parent.play();
}
Symbol 320 MovieClip Frame 1
function onhttpstatus(httpStatus) {
var _local1;
if (httpStatus < 100) {
_local1 = "flashError";
} else if (httpStatus < 200) {
_local1 = "informational";
} else if (httpStatus < 300) {
_local1 = "successful";
} else if (httpStatus < 400) {
_local1 = "redirection";
} else if (httpStatus < 500) {
_local1 = "clientError";
} else if (httpStatus < 600) {
_local1 = "serverError";
}
trace((("HTTP stauts code: " + httpStatus) + ", type: ") + _local1);
}
function onload(success) {
if (success) {
if (this.status == "saved") {
trace("game saved");
feedback_txt.text = "Score submitted successfully!";
_parent._parent.whichgal = "saved";
_parent._parent.play();
} else {
feedback_txt.text = this.feedback;
}
} else {
trace("save game failed");
feedback_txt.text = "Unable to submit score - please check your internet connection.";
}
}
save_btn.onRelease = function () {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.score = (isNaN(_global.submitScore) ? 0 : (_global.submitScore));
_local2.level = (isNaN(_global.submitLevel) ? 1 : (_global.submitLevel));
trace(_global.submitScore);
trace(_global.submitLevel);
_local2.email = email_txt.text;
_local2.username = username_txt.text;
_local2.optIn1st = (optIn1st_mc._value ? true : false);
_local2.optInKV = (optInKV_mc._value ? true : false);
_local3.onLoad = onload;
_local3.onHTTPStatus = onhttpstatus;
feedback_txt.text = "Submitting score...";
_local2.sendAndLoad("http://highscores.killerviral.com/fishforgirls/save.php?var=" + Math.random(), _local3);
};
Symbol 352 Button
on (release) {
_root.kvGetUrl(282, "_blank");
}
Symbol 353 Button
on (release) {
stopAllSounds();
_parent._parent.gotoAndStop("intro");
}
Symbol 359 Button
on (release) {
_root.kvGetUrl(282, "_blank");
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 4
if (_root.soundControl.themeName != "startTheme") {
_root.soundControl.switchSnd();
}
Symbol 360 MovieClip Frame 75
gotoAndPlay(endOfLevelResult);
Symbol 360 MovieClip Frame 76
trace("endOfLevelResult not set");
Symbol 360 MovieClip Frame 90
stop();
Symbol 360 MovieClip Frame 107
trace("submitHighScore=" + submitHighScore);
if (submitHighScore) {
submitHighScore = false;
gotoAndPlay ("submitHighScore");
} else {
_parent.retryLevel();
gotoAndStop ("off");
}
Symbol 360 MovieClip Frame 108
if (_parent.currentLevel == (_parent.levelArray.length - 1)) {
gotoAndPlay ("completed");
gameCompleted = true;
}
Symbol 360 MovieClip Frame 162
_parent.nextLevel();
gotoAndStop ("off");
Symbol 360 MovieClip Frame 173
stop();
Symbol 360 MovieClip Frame 199
if (gameCompleted) {
gameCompleted = false;
gotoAndPlay ("completed");
} else {
_parent.retryLevel();
gotoAndStop ("off");
}
Symbol 360 MovieClip Frame 264
stop();
Symbol 360 MovieClip Frame 273
if (submitHighScore) {
gotoAndPlay ("submitHighScore");
}
Symbol 360 MovieClip Frame 308
if (gameCompleted) {
gameCompleted = false;
gotoAndPlay ("completed");
} else {
_parent.retryLevel();
gotoAndStop ("off");
}
Symbol 361 MovieClip Frame 8
stop();
Symbol 361 MovieClip Frame 28
stop();
Symbol 361 MovieClip Frame 45
stop();
Symbol 361 MovieClip Frame 60
stop();
Symbol 361 MovieClip Frame 81
stop();
Symbol 361 MovieClip Frame 119
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 9
startGame = false;
stop();
Symbol 362 MovieClip Frame 15
if (!startGame) {
_parent.startPage.gotoAndPlay("open");
gotoAndStop ("pause");
}
Symbol 362 MovieClip Frame 19
_parent.play();
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 411 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
chosenPot = Math.floor(Math.random() * propPot._totalframes) + 1;
Instance of Symbol 380 MovieClip "propPot" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 380 MovieClip in Symbol 413 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(_parent.chosenPot);
}
Instance of Symbol 380 MovieClip in Symbol 413 MovieClip Frame 32
onClipEvent (load) {
gotoAndStop(_parent.chosenPot);
}
Instance of Symbol 411 MovieClip in Symbol 413 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop(_parent.chosenPot);
}
Symbol 413 MovieClip Frame 116
_parent.gotoAndPlay("fishin");
Symbol 428 MovieClip Frame 1
_global.game.sunkSwimmer(this);
Symbol 428 MovieClip Frame 11
gotoAndPlay ("f0");
Symbol 428 MovieClip Frame 15
gotoAndPlay ("f1");
Symbol 428 MovieClip Frame 18
gotoAndPlay ("f2");
Symbol 428 MovieClip Frame 21
gotoAndPlay ("f3");
Symbol 428 MovieClip Frame 22
gotoAndPlay ("f0");
Symbol 428 MovieClip Frame 24
gotoAndPlay ("f1");
Symbol 429 MovieClip Frame 1
Symbol 429 MovieClip Frame 3
stop();
Symbol 429 MovieClip Frame 6
stop();
Symbol 429 MovieClip Frame 13
stop();
Symbol 431 MovieClip Frame 1
Symbol 431 MovieClip Frame 3
stop();
Symbol 431 MovieClip Frame 6
stop();
Symbol 431 MovieClip Frame 10
stop();
Symbol 433 MovieClip Frame 1
Symbol 433 MovieClip Frame 3
stop();
Symbol 433 MovieClip Frame 6
stop();
Symbol 433 MovieClip Frame 10
stop();
Symbol 435 MovieClip Frame 1
Symbol 435 MovieClip Frame 3
stop();
Symbol 435 MovieClip Frame 6
stop();
Symbol 435 MovieClip Frame 10
stop();
Symbol 436 MovieClip Frame 1
Symbol 436 MovieClip Frame 3
stop();
Symbol 436 MovieClip Frame 6
stop();
Symbol 436 MovieClip Frame 10
stop();
Symbol 438 MovieClip Frame 1
Symbol 438 MovieClip Frame 3
stop();
Symbol 438 MovieClip Frame 6
stop();
Symbol 438 MovieClip Frame 10
stop();
Symbol 440 MovieClip Frame 1
Symbol 440 MovieClip Frame 3
stop();
Symbol 440 MovieClip Frame 6
stop();
Symbol 440 MovieClip Frame 10
stop();
Symbol 442 MovieClip Frame 1
Symbol 442 MovieClip Frame 3
stop();
Symbol 442 MovieClip Frame 6
stop();
Symbol 442 MovieClip Frame 10
stop();
Symbol 444 MovieClip Frame 1
Symbol 444 MovieClip Frame 3
stop();
Symbol 444 MovieClip Frame 6
stop();
Symbol 444 MovieClip Frame 10
stop();
Symbol 446 MovieClip Frame 1
Symbol 446 MovieClip Frame 3
stop();
Symbol 446 MovieClip Frame 6
stop();
Symbol 446 MovieClip Frame 10
stop();
Symbol 447 MovieClip Frame 1
stop();
Instance of Symbol 429 MovieClip "z6" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 3);
}
Instance of Symbol 431 MovieClip "z8" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 433 MovieClip "z5" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 435 MovieClip "z7" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 433 MovieClip "z1" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 436 MovieClip "z4" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 436 MovieClip "z9" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 435 MovieClip "z3" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 431 MovieClip "z2" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Symbol 447 MovieClip Frame 2
stop();
Instance of Symbol 429 MovieClip "e" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 3);
}
Instance of Symbol 435 MovieClip "t" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 431 MovieClip "r" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 436 MovieClip "o" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 429 MovieClip "i" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 3);
}
Instance of Symbol 433 MovieClip "w" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 436 MovieClip "q" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 433 MovieClip "u" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 435 MovieClip "p" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 438 MovieClip "y" in Symbol 447 MovieClip Frame 2
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 1);
}
Symbol 447 MovieClip Frame 3
stop();
Instance of Symbol 438 MovieClip "n" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 1);
}
Instance of Symbol 440 MovieClip "c" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 2);
}
Instance of Symbol 429 MovieClip "v" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 3);
}
Instance of Symbol 433 MovieClip "x" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 435 MovieClip "b" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 436 MovieClip "z" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 431 MovieClip "m" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 442 MovieClip "l" in Symbol 447 MovieClip Frame 3
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 9);
}
Symbol 447 MovieClip Frame 4
stop();
Instance of Symbol 438 MovieClip "y" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 1);
}
Instance of Symbol 440 MovieClip "r" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 2);
}
Instance of Symbol 429 MovieClip "q" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 3);
}
Instance of Symbol 431 MovieClip "i" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 433 MovieClip "u" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 435 MovieClip "o" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 431 MovieClip "e" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 444 MovieClip "t" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 8);
}
Instance of Symbol 446 MovieClip "w" in Symbol 447 MovieClip Frame 4
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 10);
}
Symbol 447 MovieClip Frame 5
stop();
Instance of Symbol 438 MovieClip "c" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 1);
}
Instance of Symbol 440 MovieClip "z" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 2);
}
Instance of Symbol 433 MovieClip "v" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 435 MovieClip "k" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 7);
}
Instance of Symbol 436 MovieClip "b" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 5);
}
Instance of Symbol 431 MovieClip "n" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 444 MovieClip "m" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 8);
}
Instance of Symbol 446 MovieClip "l" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 10);
}
Instance of Symbol 442 MovieClip "x" in Symbol 447 MovieClip Frame 5
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 9);
}
Symbol 447 MovieClip Frame 6
stop();
Instance of Symbol 438 MovieClip "y" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 1);
}
Instance of Symbol 440 MovieClip "t" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 2);
}
Instance of Symbol 433 MovieClip "r" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 6);
}
Instance of Symbol 431 MovieClip "e" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 4);
}
Instance of Symbol 444 MovieClip "q" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 8);
}
Instance of Symbol 446 MovieClip "w" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 10);
}
Instance of Symbol 442 MovieClip "u" in Symbol 447 MovieClip Frame 6
onClipEvent (load) {
_global.game.addToSwimmerArray(this, 9);
}
Symbol 447 MovieClip Frame 7
stop();
Symbol 447 MovieClip Frame 8
stop();
Symbol 447 MovieClip Frame 9
stop();
Symbol 447 MovieClip Frame 10
stop();
Symbol 447 MovieClip Frame 11
gotoAndPlay(_parent.currentLevel + 1);
Symbol 457 MovieClip Frame 1
stop();
Instance of Symbol 206 MovieClip "targetArrow" in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
startX = _x;
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 32
gotoAndStop (1);
Symbol 491 MovieClip Frame 2
stop();
Symbol 491 MovieClip Frame 6
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
_parent.setUpRain();
Symbol 533 MovieClip Frame 22
_parent.gotoAndStop("reelin");
Symbol 533 MovieClip Frame 36
gotoAndStop (1);
Symbol 537 Button
on (release) {
_root.kvGetUrl(298, "_blank");
}
Symbol 538 MovieClip Frame 6
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 100
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 39
_parent.gotoAndStop("theCatch");
Symbol 570 MovieClip Frame 79
_parent.gotoAndStop("theCatch");
Symbol 570 MovieClip Frame 120
_parent.gotoAndStop("theCatch");
Symbol 570 MovieClip Frame 157
_parent.gotoAndStop("theCatch");
Symbol 570 MovieClip Frame 183
_parent.gotoAndStop("theCatch");
Symbol 622 MovieClip Frame 32
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 66
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 100
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 134
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 167
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 198
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 232
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 263
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 296
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 329
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 362
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 395
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 427
_parent.gotoAndStop("cutscene");
Instance of Symbol 604 MovieClip in Symbol 622 MovieClip Frame 428
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * _totalframes) + 1);
}
Symbol 622 MovieClip Frame 459
_parent.gotoAndStop("cutscene");
Instance of Symbol 607 MovieClip in Symbol 622 MovieClip Frame 460
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * _totalframes) + 1);
}
Symbol 622 MovieClip Frame 491
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 523
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 555
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 587
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 619
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 651
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 683
_parent.gotoAndStop("cutscene");
Symbol 622 MovieClip Frame 715
_parent.gotoAndStop("cutscene");
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 678 MovieClip Frame 3
stop();
Symbol 678 MovieClip Frame 8
stop();
Symbol 678 MovieClip Frame 14
stop();
Symbol 678 MovieClip Frame 21
stop();
Symbol 678 MovieClip Frame 28
stop();
Symbol 678 MovieClip Frame 34
stop();
Symbol 678 MovieClip Frame 44
stop();
Symbol 678 MovieClip Frame 53
stop();
Symbol 703 MovieClip Frame 19
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 79
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 139
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 201
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 263
gotoAndPlay ("notHappy");
Symbol 703 MovieClip Frame 328
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 390
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 454
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 531
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 591
gotoAndPlay ("happy");
Symbol 703 MovieClip Frame 652
gotoAndPlay ("happy");
Instance of Symbol 678 MovieClip "girl" in Symbol 703 MovieClip Frame 692
onClipEvent (load) {
gotoAndPlay(_parent._parent.catchArray[_parent._parent.catchIndex].cutscene);
}
Symbol 703 MovieClip Frame 725
celebration = Math.floor(Math.random() * 5);
if (celebration != 0) {
gotoAndPlay("celebration" + celebration);
}
Symbol 703 MovieClip Frame 729
_parent.gotoAndStop("scoring");
Symbol 703 MovieClip Frame 743
_parent.gotoAndStop("scoring");
Symbol 703 MovieClip Frame 756
_parent.gotoAndStop("scoring");
Symbol 703 MovieClip Frame 769
_parent.gotoAndStop("scoring");
Symbol 703 MovieClip Frame 784
_parent.gotoAndStop("scoring");
Instance of Symbol 678 MovieClip "girl" in Symbol 703 MovieClip Frame 805
onClipEvent (load) {
gotoAndPlay(_parent._parent.catchArray[_parent._parent.catchIndex].cutscene);
}
Symbol 703 MovieClip Frame 830
_parent.gotoAndStop("scoring");
Symbol 703 MovieClip Frame 871
_parent.endOfAnimations();
Symbol 723 MovieClip Frame 1
stop();
Instance of Symbol 723 MovieClip in Symbol 726 MovieClip Frame 3
onClipEvent (load) {
trace("oldman2Board gotoandstop=" + (_global.game.oldman2Score + 1));
gotoAndStop(_global.game.oldman2Score + 1);
}
Symbol 726 MovieClip Frame 4
stop();
Instance of Symbol 723 MovieClip in Symbol 733 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_global.game.oldman1Score + 1);
}
Symbol 733 MovieClip Frame 10
stop();
Symbol 738 MovieClip Frame 7
stop();
Instance of Symbol 723 MovieClip in Symbol 738 MovieClip Frame 7
onClipEvent (load) {
trace("oldman3Board gotoandstop=" + (_global.game.oldman3Score + 1));
gotoAndStop(_global.game.oldman3Score + 1);
}
Symbol 739 MovieClip Frame 1
Symbol 739 MovieClip Frame 60
_parent.endOfAnimations();
Symbol 741 MovieClip Frame 1
function onEnterFrame() {
mainGameLoop();
timer();
}
function timer() {
if (timerOn) {
framesGoneBy++;
displayTime = Math.floor((totalLevelTime - framesGoneBy) / 25);
if (framesGoneBy == totalLevelTime) {
endTheLevel();
}
}
}
function endTheLevel() {
trace("==== timer() - END OF LEVEL!!! =====================================================================================================");
gameState = "gameOver";
level._visible = false;
powerBar._visible = false;
lineSnap._visible = false;
gotoAndStop ("endLevel");
delete mainGameLoop;
timerOn = false;
powerBar._visible = false;
lineSnap._visible = false;
dropText.gotoAndPlay("timeUp");
delete mainGameLoop;
mainGameLoop = setTextBox;
if ((score - startOfRoundScore) >= levelArray[currentLevel].targetScore) {
dropText.endOfLevelResult = "nextLevel";
} else {
dropText.endOfLevelResult = "tryAgain";
}
}
function setTextBox() {
dropText.scoreHolder.displayLevel = ("Level " + (currentLevel + 1)) + "'s target:";
if ((currentLevel + 1) == (levelArray.length - 1)) {
dropText.scoreHolder.displayLevelsLeft = "Last level!";
} else {
dropText.scoreHolder.displayLevelsLeft = ("There are " + (levelArray.length - (currentLevel + 1))) + " levels to go!";
}
dropText.scoreHolder.displayTotalScore = score;
dropText.scoreHolder.displayScore = score - startOfRoundScore;
dropText.scoreHolder.displayTargetScore = levelArray[currentLevel].targetScore;
trace((("setTextBox level=" + dropText.scoreHolder.displayLevel) + " levels Left=") + dropText.scoreHolder.displayLevelsLeft);
}
function sunkSwimmer(t) {
t.choices = 7;
t.totalAnims = 5;
t.nextBubble = Math.floor(Math.random() * t.choices);
if (t.nextBubble < t.totalAnims) {
t.gotoAndPlay("f" + t.nextBubble);
} else {
stop();
}
}
function setupSwimmer(t, rank) {
trace("setupSwimmer()");
swimmerArray[swimmerIndex] = new Object();
swimmerArray[swimmerIndex].ref = t;
swimmerArray[swimmerIndex].rank = rank;
swimmerArray[swimmerIndex].caught = false;
swimmerIndex++;
}
function makeSwimmerArray() {
trace("makeSwimmerArray");
swi = 0;
}
function addToSwimmerArray(t, r) {
trace("addToSwimmerArray! " + t);
if (!swimmerArray) {
swimmerArray = new Array();
swi = 0;
}
swimmerArray[swi] = new Object();
swimmerArray[swi].ref = t;
swimmerArray[swi].rank = r;
swimmerArray[swi].caught = false;
trace((("swimmerArray[" + swi) + "].ref=") + swimmerArray[swi].ref);
trace((("swimmerArray[" + swi) + "].rank =") + swimmerArray[swi].rank);
swimmerArray[swi].ref.gotoAndStop("beforeCast");
trace((("swimmerArray[" + swi) + "].ref.currentframe =") + eval (swimmerArray[swi].ref)._currentframe);
swi++;
}
function areSwimmersCaught() {
allCaught = true;
i = 0;
while (i < swimmerArray.length) {
trace((((("i=" + i) + " ref=") + swimmerArray[i].ref) + " is caught = ") + swimmerArray[i].caught);
if (swimmerArray[i].caught) {
swimmerArray[i].ref.gotoAndStop("off");
} else {
allCaught = false;
}
i++;
}
if (allCaught) {
endTheLevel();
}
}
function patrickShuffle(d) {
var _local2 = _global.game.patrick.sprite._currentframe;
if (v == 1) {
_local2--;
if (_local2 == 0) {
_local2 = _global.game.patrick.sprite._totalframes;
}
} else {
_local2++;
if (_local2 > _global.game.patrick.sprite._totalframes) {
_local2 = 1;
}
}
patrick.sprite.gotoAndStop(_local2);
}
function keyInput() {
if (gameState == "fishin") {
if (Key.isDown(39)) {
targetAimX = targetAimX - 10;
patrickShuffle(-1);
} else if (Key.isDown(37)) {
targetAimX = targetAimX + 10;
patrickShuffle(1);
} else if (Key.isDown(83)) {
}
}
}
function startFishin() {
if (_root.soundControl.themeName != "gameTheme") {
_root.soundControl.switchSnd();
}
trace("startFishin()");
instructionsFadeOut = false;
startOfRound();
gameState = "fishin";
delete this.mainGameLoop;
this.mainGameLoop = fishinGameLoop;
instructions.gotoAndStop(1);
aimX = 0;
targetAimX = 0;
poolStartX = pool._x;
sunStartX = sun._x;
horizonStartX = horizon._x;
targetStartX = target._x;
wedgeStartWidth = wedge._width;
wedgeStartX = wedge._x;
key39Up = true;
key37Up = true;
if (!keyListenerDone) {
keyListener();
}
keyListenerDone = true;
}
function keyListener() {
var _local2 = new Object();
_local2.t = this;
_local2.onKeyDown = function () {
if (gameState == "castin") {
if (Key.getCode() == 32) {
instructionsFadeOut = true;
arrowSpeed = 0;
timerOn = false;
calculateAccuracy();
}
}
if (gameState == "reelin") {
if (Key.getCode() == 39) {
if (key39Up) {
playerInputTension = playerInputTension + playerTension;
screenJump++;
key39Up = false;
}
} else if (Key.getCode() == 37) {
if (key37Up) {
playerInputTension = playerInputTension + playerTension;
screenJump++;
key37Up = false;
}
}
}
};
_local2.onKeyUp = function () {
if (gameState == "fishin") {
if (Key.getCode() == 32) {
patrick.gotoAndStop("aiming");
checkSwimmerHits();
startCastin();
}
} else if (gameState == "reelin") {
if (Key.getCode() == 39) {
key39Up = true;
} else if (Key.getCode() == 37) {
key37Up = true;
}
}
};
Key.addListener(_local2);
}
function moveObjects() {
if (targetAimX > 190) {
targetAimX = 190;
} else if (targetAimX < -230) {
targetAimX = -230;
}
aimX = (targetAimX + aimX) / 2;
wedge._x = wedgeStartX;
pool._x = poolStartX + aimX;
level._x = levelStartX + aimX;
horizon._x = horizonStartX + (aimX * 0.3);
sun._x = sunStartX + (aimX * 0.1);
}
function fishinGameLoop() {
keyInput();
moveObjects();
}
function checkSwimmerHits() {
delete targetSwimmers;
targetSwimmers = new Array();
targetIndex = 0;
i = 0;
while (i <= swimmerArray.length) {
lg = new Object();
lg.x = swimmerArray[i].ref._x;
lg.y = swimmerArray[i].ref._y;
swimmerArray[i].ref._parent.localToGlobal(lg);
if (!swimmerArray[i].caught) {
if (wedge.hitTest(lg.x, lg.y, true)) {
targetSwimmers[targetIndex] = new Object();
targetSwimmers[targetIndex] = swimmerArray[i];
targetSwimmers[targetIndex].swimmerIndex = i;
targetIndex++;
}
}
i++;
}
}
function setupPowerBar() {
instructions.gotoAndStop("aim");
powerBar._visible = 1;
_global.game.powerBar.targetArrow.startX = _global.game.powerBar.targetArrow._x;
arrowSpeed = 1;
arrowAcc = 1.1;
}
function startCastin() {
traceArray(swimmerArray);
gameState = "castin";
setupPowerBar();
maxPowerVariance = 1;
powerVariance = Math.random() * maxPowerVariance;
delete this.mainGameLoop;
this.mainGameLoop = castinGameLoop;
}
function castinGameLoop() {
arrowSpeed = arrowSpeed * arrowAcc;
if ((_global.game.powerBar.targetArrow._x + arrowSpeed) > powerBar.barOutline._width) {
arrowSpeed = -1;
}
if ((_global.game.powerBar.targetArrow._x + arrowSpeed) < (powerBar.barOutline._x - 15)) {
arrowSpeed = 1;
}
_global.game.powerBar.targetArrow._x = _global.game.powerBar.targetArrow._x + arrowSpeed;
}
function calculateAccuracy() {
if (_global.game.powerBar.targetArrow._x < _global.game.powerBar.targetBar._x) {
var _local2 = (_global.game.powerBar.targetArrow._x - (_global.game.powerBar.targetBar._x - _global.game.powerBar.targetBar.zeroPercent._x)) / _global.game.powerBar.targetBar.zeroPercent._x;
} else {
var _local2 = 1 - ((_global.game.powerBar.targetArrow._x - _global.game.powerBar.targetBar._x) / _global.game.powerBar.targetBar.zeroPercent._x);
}
if (_local2 < 0) {
var _local2 = 0;
notCaughtBoot = false;
}
trace("ACCURACY===" + _local2);
_global.game.powerBar.targetArrow._x = _global.game.powerBar.targetArrow.startX;
calculateCatch(_local2);
}
function calculateCatch(a) {
trace("targetSwimmers.length===" + targetSwimmers.length);
caughtSwimmerRank = 0;
caughtSwimmerRef = 0;
caughtSwimmerIndex = 0;
cast = a * catchArray.length;
trace("cast===" + cast);
i = 0;
while (i < targetSwimmers.length) {
trace((((("checking swimmer " + i) + " ") + targetSwimmers[i].rank) + "; cast=") + cast);
if (cast > targetSwimmers[i].rank) {
if (caughtSwimmerRank < targetSwimmers[i].rank) {
caughtSwimmerRank = targetSwimmers[i].rank;
caughtSwimmerRef = targetSwimmers[i].ref;
caughtSwimmerIndex = targetSwimmers[i].swimmerIndex;
trace("CAUGHTSWIMMERINDEX=" + caughtSwimmerIndex);
notCaughtBoot = true;
}
}
i++;
}
catchIndex = caughtSwimmerRank;
_global.game.powerBar._visible = 0;
gameState = "castAnim";
delete this.mainGameLoop;
_global.game.patrick.gotoAndStop("cast");
}
function startReelin() {
timerOn = true;
lineTension = 0;
playerLineTension = 0;
maxCatchTension = 0.4;
catchVariance = 1;
catchVarianceAngle = 0;
minCatchTension = 0.01;
screenJump = 0;
gameStartY = _global.game.lineSnap._y;
maxConstantCatchTension = -0.42;
constantCatchTension = (catchIndex / catchArray.length) * maxConstantCatchTension;
danger = 0;
catchAngle = 0;
displayTension = 0.5;
playerTension = 0.05;
playerInputTension = 0;
totalPlayerTension = 0.3;
totalCatchTension = 0;
minPlayerTension = -0.1;
constantTension = 0.01;
scoreTension = 1.1;
lowestTension = 1.1;
gameState = "reelin";
rampUpConstantTension = 0;
catchDistance = 0;
newRandMod();
catchGirlDistance = 100;
i = 0;
while (i < swimmerArray.length) {
if (!swimmerArray[i].caught) {
swimmerArray[i].ref.gotoAndStop("afterCast");
}
i++;
}
_global.game.lineSnap._visible = true;
delete this.mainGameLoop;
this.mainGameLoop = reelinGameLoop;
}
function reelinGameLoop() {
catchAngle = catchAngle - 0.1;
varCatchTension = Math.sin(catchAngle) * constantCatchTension;
totalPlayerTension = totalPlayerTension + playerInputTension;
totalPlayerTension = totalPlayerTension - constantTension;
if (totalPlayerTension < minPlayerTension) {
totalPlayerTension = minPlayerTension;
}
if (totalPlayerTension > 0.05) {
totalPlayerTension = 0.05;
}
varCatchTension = varCatchTension * 0.5;
if (varCatchTension > 0.025) {
varCatchTension = 0.025;
}
finalTension = totalPlayerTension + varCatchTension;
if (finalTension < (-0.2 + constantCatchTension)) {
finalTension = -0.2 + constantCatchTension;
}
displayTension = ((displayTension + finalTension) + (displayTension * 4)) / 5;
reelSpeed = displayTension;
catchDistance = catchDistance + reelSpeed;
playerInputTension = 0;
_global.game.lineSnap._y = gameStartY - screenJump;
screenJump = screenJump * 0.5;
_global.game.lineSnap.lineSnapMask._xscale = displayTension * 100;
if (displayTension >= 1.1) {
successfulCatch(false);
}
if (displayTension <= -0.15) {
successfulCatch(false);
}
scoreTension = ((scoreTension * 6) + displayTension) / 7;
_global.game.patrick.gotoAndStop(Math.floor(displayTension * _global.game.patrick._totalframes) + 1);
_global.game.reelAnim.gotoAndStop(Math.floor((catchDistance / catchGirlDistance) * _global.game.reelAnim._totalframes) + 1);
if (catchDistance < 0) {
successfulCatch(false);
} else if (catchDistance > catchGirlDistance) {
successfulCatch(true);
}
}
function successfulCatch(v) {
delete this.mainGameLoop;
_global.game.lineSnap._visible = false;
if (!v) {
gotAway = true;
} else {
swimmerArray[caughtSwimmerIndex].caught = true;
if (notCaughtBoot) {
oldman1Score = Math.floor((swimmerArray[caughtSwimmerIndex].rank / catchArray.length) * 10) + 1;
} else {
oldMan1Score = 0;
}
if (isNaN(oldman1Score)) {
oldman1Score = 0;
}
oldman2Score = Math.floor((scoreTension / 1) * 10) + 1;
if (oldman2Score > 10) {
oldman2Score = 10;
}
trace((((("levelTime=" + totalLevelTime) + " timeTaken=") + timeTaken) + " thisTurnTime=") + thisTurnTime);
timeTaken = framesGoneBy - startRoundTime;
trace("timeTaken=" + timeTaken);
timeTaken = timeTaken - 150;
trace("timeTaken=" + timeTaken);
if (timeTaken <= 0) {
oldman3Score = 10;
} else {
oldman3Score = Math.floor(10 - ((timeTaken / 250) * 10));
}
if (oldman2Score <= 0) {
oldman2Score = 1;
}
if (oldman3Score <= 0) {
oldman3Score = 1;
}
trace((((("OLD MEN SAY; " + oldman1Score) + ", ") + oldman2Score) + ", ") + oldman3Score);
oldman2Score = Math.ceil((oldman1Score + oldman2Score) / 2);
oldman3Score = Math.ceil((oldman1Score + oldman3Score) / 2);
if (oldman1Score) {
score = score + ((oldman1Score + oldman2Score) + oldman3Score);
}
gotAway = false;
}
_global.submitScore = score;
_global.submitLevel = currentLevel + 1;
endOfRound();
gotoAndPlay ("reaction");
}
function endOfRound() {
trace("endOfRound()");
level._visible = false;
level._x = levelStartX;
timerOn = false;
}
function startOfRound() {
trace("startRound()");
trace("level ref=" + level);
areSwimmersCaught();
updateDisplayScore();
startRoundTime = framesGoneBy;
setSwimmerAnimations();
timerOn = true;
level._visible = true;
}
function updateDisplayScore() {
displayScore = score - startOfRoundScore;
displayTargetScore = levelArray[currentLevel].targetScore;
}
function setSwimmerAnimations() {
i = 0;
while (i < swimmerArray.length) {
if (swimmerArray[i].caught) {
swimmerArray[i].ref.gotoAndStop("off");
} else {
swimmerArray[i].ref.gotoAndStop("beforeCast");
}
i++;
}
}
function endOfAnimations() {
trace("endOfAnimations()");
gotoAndStop ("fishin");
}
function nextLevel() {
trace("newLevel1");
delete swimmerArray;
newLevel(true);
}
function retryLevel() {
trace("newLevel2");
newLevel();
}
function traceArray(a, s) {
trace("traceArray =======================");
if (s) {
trace("tracing:" + s);
}
i = 0;
while (i < a.length) {
trace((("traceArray[" + i) + "].ref=") + a[i].ref);
trace((("traceArray[" + i) + "].rank=") + a[i].rank);
trace((("traceArray[" + i) + "].caught=") + a[i].caught);
i++;
}
trace("===================================");
}
function setUpRain() {
var _local7 = 20;
var _local5 = 1.3;
var _local6 = 1;
var _local2 = 20;
var _local4 = 2;
i = 0;
while (i < _local7) {
duplicateMovieClip (rain, "rain" + i, this.getNextHighestDepth());
mc = this["rain" + i];
mc._y = mc._y - ((Math.random() * _local2) + (_local2 * i));
mc._x = (600 - mc._width) * Math.random();
var _local3 = (Math.random() / 2) + 0.5;
mc.waitOffset = _local4 * i;
mc.waitCount = 0;
mc.grav = _local5;
mc.startGrav = _local6;
mc.onEnterFrame = doRain;
i++;
}
}
function doRain() {
if (this.waitCount >= this.waitOffset) {
this._y = this._y + ((this.startGrav = this.startGrav * this.grav));
this._xscale = (this._yscale = this._yscale * 1.01);
if (this._y > 400) {
this.removeMovieClip();
}
} else {
this.waitCount++;
}
}
function newLevel(nxtLvl) {
trace(("newLevel(" + nxtLvl) + ")");
caughtIndex = 0;
swimmerIndex = 0;
framesGoneBy = 0;
level._x = levelStartX;
levelScore = score;
updateDisplayScore();
if (nxtLvl) {
trace("newLevel() next level");
instructionsFadeOut = false;
startOfRoundScore = score;
currentLevel++;
trace("currentLevel=" + currentLevel);
trace("level=" + level);
delete caughtArray;
caughtArray = new Array();
_root.kvEvent(223 + currentLevel);
trace(((("kv event: " + (223 + currentLevel)) + " (") + currentLevel) + ")");
totalLevelTime = levelArray[currentLevel].levelTime * 25;
level.gotoAndStop(currentLevel + 1);
targetScore = levelArray[currentLevel].targetScore;
gotoAndPlay ("intro");
} else {
delete caughtArray;
caughtArray = new Array();
level.gotoAndPlay("off");
trace("startOfRoundScore=" + startOfRoundScore);
score = startOfRoundScore;
trace("newLevel() retry");
gotoAndPlay ("fishin");
}
makeSwimmerArray();
}
_global.game = this;
currentLevel = -1;
_global.submitScore = 0;
_global.submitLevel = 0;
score = 0;
levelScore = 0;
startOfRoundScore = 0;
totalRoundTime = 250;
currentRound = 0;
levelStartX = level._x;
levelArray = new Array();
levelArray[0] = new Object();
levelArray[0].targetScore = 20;
levelArray[0].levelTime = 35;
levelArray[1] = new Object();
levelArray[1].targetScore = 25;
levelArray[1].levelTime = 35;
levelArray[2] = new Object();
levelArray[2].targetScore = 30;
levelArray[2].levelTime = 30;
levelArray[3] = new Object();
levelArray[3].targetScore = 35;
levelArray[3].levelTime = 30;
levelArray[4] = new Object();
levelArray[4].targetScore = 35;
levelArray[4].levelTime = 30;
levelArray[5] = new Object();
levelArray[5].targetScore = 75;
levelArray[5].levelTime = 50;
catchArray = new Array();
catchArray[0] = new Object();
catchArray[0].reaction = "confused";
catchArray[0].theCatch = "noCatch";
catchArray[0].cutscene = "noCatch";
catchArray[1] = new Object();
catchArray[1].reaction = "shock";
catchArray[1].theCatch = "fatty";
catchArray[1].cutscene = "fatty";
catchArray[2] = new Object();
catchArray[2].reaction = "shock";
catchArray[2].theCatch = "oldLady";
catchArray[2].cutscene = "oldLady";
catchArray[3] = new Object();
catchArray[3].reaction = "sad";
catchArray[3].theCatch = "roadie";
catchArray[3].cutscene = "roadie";
catchArray[4] = new Object();
catchArray[4].reaction = "sad";
catchArray[4].theCatch = "geek";
catchArray[4].cutscene = "geek";
catchArray[5] = new Object();
catchArray[5].reaction = "happy";
catchArray[5].theCatch = "redGirl";
catchArray[5].cutscene = "redGirl";
catchArray[6] = new Object();
catchArray[6].reaction = "happy";
catchArray[6].theCatch = "blueGirl";
catchArray[6].cutscene = "blueGirl";
catchArray[7] = new Object();
catchArray[7].reaction = "happy";
catchArray[7].theCatch = "pinkGirl";
catchArray[7].cutscene = "pinkGirl";
catchArray[8] = new Object();
catchArray[8].reaction = "happy";
catchArray[8].theCatch = "greenGirl";
catchArray[8].cutscene = "greenGirl";
catchArray[9] = new Object();
catchArray[9].reaction = "happy";
catchArray[9].theCatch = "silverMermaid";
catchArray[9].cutscene = "silverMermaid";
catchArray[10] = new Object();
catchArray[10].reaction = "happy";
catchArray[10].theCatch = "goldMermaid";
catchArray[10].cutscene = "goldMermaid";
catchIndex = 0;
Instance of Symbol 230 MovieClip "lineSnap" in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 447 MovieClip "level" in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 457 MovieClip "powerBar" in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 741 MovieClip Frame 2
trace("newLevel0");
newLevel(true);
Symbol 741 MovieClip Frame 4
stop();
Symbol 741 MovieClip Frame 8
startFishin();
Instance of Symbol 461 MovieClip "sun" in Symbol 741 MovieClip Frame 8
onClipEvent (load) {
a = 0;
}
onClipEvent (enterFrame) {
a = a + 0.05;
_rotation = (_rotation + (Math.sin(a) * 0.1));
}
Instance of Symbol 491 MovieClip "instructions" in Symbol 741 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_alpha > 0) {
if (_parent.instructionsFadeOut) {
this._alpha = this._alpha - 5;
}
}
}
Instance of Symbol 538 MovieClip in Symbol 741 MovieClip Frame 8
onClipEvent (load) {
gotoAndPlay (4);
}
Symbol 741 MovieClip Frame 9
stop();
Symbol 741 MovieClip Frame 12
startReelin();
Symbol 741 MovieClip Frame 16
stop();
Instance of Symbol 570 MovieClip in Symbol 741 MovieClip Frame 17
onClipEvent (load) {
if (!_global.game.gotAway) {
gotoAndPlay(_parent.catchArray[_parent.catchIndex].reaction);
} else {
gotoAndPlay ("lost");
}
}
Symbol 741 MovieClip Frame 18
stop();
Instance of Symbol 622 MovieClip in Symbol 741 MovieClip Frame 24
onClipEvent (load) {
if (!_global.game.gotAway) {
gotoAndPlay(_parent.catchArray[_parent.catchIndex].theCatch);
} else {
gotoAndPlay(_parent.catchArray[_parent.catchIndex].theCatch + "Lost");
}
}
Symbol 741 MovieClip Frame 26
stop();
Instance of Symbol 703 MovieClip in Symbol 741 MovieClip Frame 32
onClipEvent (load) {
if (!_global.game.gotAway) {
gotoAndPlay(_parent.catchArray[_parent.catchIndex].cutscene);
} else {
gotoAndPlay ("noCatch");
}
}
Symbol 741 MovieClip Frame 35
stop();
Symbol 741 MovieClip Frame 44
stop();
Instance of Symbol 461 MovieClip "sun" in Symbol 741 MovieClip Frame 49
onClipEvent (load) {
a = 0;
}
onClipEvent (enterFrame) {
a = a + 0.05;
_rotation = (_rotation + (Math.sin(a) * 0.1));
}
Instance of Symbol 538 MovieClip in Symbol 741 MovieClip Frame 49
onClipEvent (load) {
gotoAndPlay (3);
}
Symbol 741 MovieClip Frame 53
stop();