Frame 1
function chooseGameEndProcedure() {
if (tKey == undefined) {
tKey = "sjri5jf85jdor560";
}
gameEndSubmitUrl = "http://freeplay.gamedek.com/gameend.aspx";
if (params == undefined) {
myVariables.load("config.txt");
} else {
decryptParams(params);
crypto = 2;
}
}
function t_fLoadGameEnd() {
mcResign.removeMovieClip();
mcGameOver.removeMovieClip();
if (mcGameEnd != undefined) {
mcGameEnd.removeMovieClip();
}
endContainer.createEmptyMovieClip("mcGameEnd", 100);
endContainer.createEmptyMovieClip("mcGameEndBack", 99);
with (endContainer.mcGameEndBack) {
var backColor = 0;
beginFill(backColor, 100);
lineStyle(1, backColor, 100);
moveTo(0, 0);
lineTo(g_numGameWidth, 0);
lineTo(g_numGameWidth, g_numGameHeight);
lineTo(0, g_numGameHeight);
lineTo(0, 0);
endFill();
}
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
trace(endURL);
var endUrlArray = new Array();
endUrlArray = endURL.split(".");
var subString = endUrlArray[endUrlArray.length - 1];
if ((subString == "aspx") || (subString == "html")) {
getURL (endURL, "_self");
} else {
trace("inside and loading" + endURL);
endContainer.loadMovie(endURL);
endContainer.playAgain = playAgain;
}
}
function postGameLog() {
if (gameLogEnabled == 1) {
var _local1 = new LoadVars();
var _local2 = TEAEncrypt((("freeplayid=" + freeplayid) + "&gameLog=") + gameLog, tKey);
_local1.params = _local2;
_local1.sendAndLoad(gameEndSubmitUrl, result_lv, "POST");
gameLog = "";
}
}
function addToLog(myAddition) {
if (gameLogEnabled == 1) {
gameLog = gameLog + myAddition;
}
}
function trc(theString) {
trace((theString + ": ") + eval (theString));
}
function TEAEncrypt(src, key) {
var _local2 = charsToLongs(strToChars(src));
var k = charsToLongs(strToChars(key));
var n = _local2.length;
if (n == 0) {
return("");
}
if (n == 1) {
_local2[n++] = 0;
}
var _local3 = _local2[n - 1];
var y = _local2[0];
var delta = 2654435769;
var max32 = 4294967295;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = 0;
var sum2 = 0;
while ((q--) > 0) {
sum = sum + delta;
sum = sum >>> 0;
e = (sum >>> 2) & 3;
var _local1 = 0;
while (_local1 < (n - 1)) {
y = _local2[_local1 + 1];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[_local1] = _local2[_local1] + mx;
_local2[_local1] = _local2[_local1] >>> 0;
_local3 = _local2[_local1];
_local1++;
}
y = _local2[0];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[n - 1] = _local2[n - 1] + mx;
_local2[n - 1] = _local2[n - 1] >>> 0;
_local3 = _local2[n - 1];
}
return(charsToHex(longsToChars(_local2)));
}
function TEADecrypt(src, key) {
var v = charsToLongs(hexToChars(src));
var k = charsToLongs(strToChars(key));
var n = v.length;
if (n == 0) {
return("");
}
var _local2 = v[n - 1];
var _local3 = v[0];
var delta = 2654435769;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = (q * delta);
while (sum != 0) {
e = (sum >>> 2) & 3;
var _local1 = n - 1;
while (_local1 > 0) {
_local2 = v[_local1 - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[_local1] = v[_local1] - mx);
_local1--;
}
_local2 = v[n - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[0] = v[0] - mx);
sum = sum - delta;
}
return(charsToStr(longsToChars(v)));
}
function charsToLongs(chars) {
var _local2 = chars;
var _local3 = new Array(Math.ceil(_local2.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((_local2[_local1 * 4] + (_local2[(_local1 * 4) + 1] << 8)) + (_local2[(_local1 * 4) + 2] << 16)) + (_local2[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
function longsToChars(longs) {
var _local2 = longs;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1] & 255, (_local2[_local1] >>> 8) & 255, (_local2[_local1] >>> 16) & 255, (_local2[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
function decryptParams(myParams) {
decPar = TEADecrypt(myParams, tKey);
arrayOfVars = new Array();
arrayOfVars = decPar.split("&");
count = 0;
while (count < arrayOfVars.length) {
varHolder = new Array();
varHolder = arrayOfVars[count].split("=");
Set(varHolder[0], varHolder[1]);
count++;
}
}
function createSound(soundName) {
sndController.createEmptyMovieClip(soundName, numSounds);
Set(soundName, new Sound(eval ("sndController." + soundName)));
eval (soundName).attachSound(soundName);
numSounds++;
}
function g_fSetSoundOn() {
g_sndGlobalSound.setVolume(100);
sndClick.start();
}
function g_fSetSoundOff() {
sndClick.start();
g_sndGlobalSound.setVolume(0);
}
function g_fSetMusicOn() {
musicLoopSound.setVolume(40);
sndClick.start();
}
function g_fSetMusicOff() {
sndClick.start();
musicLoopSound.setVolume(0);
}
_quality = "BEST";
_root.menu.hide();
fscommand ("showmenu", "false");
System.security.allowDomain(domainToAllow);
System.security.allowDomain("http://freeplay.gamedek.com/");
stop();
var crypto = 0;
var gameLog = "";
myVariables = new LoadVars();
myVariables.onLoad = function (success) {
if (success) {
crypto = 1;
_root.decryptParams(this.params);
trace(endURL);
} else {
crypto = 0;
}
};
_root.xmlGameEnd = new XML();
_root.xmlGameEnd.onLoad = function (success) {
var _local1 = _root;
if (success) {
_local1.decryptParams(this.firstChild.firstChild.nodeValue);
_local1.endURL = _local1.gameEndUrl;
_local1.t_fLoadGameEnd();
delete this.onLoad;
}
};
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
trace("whatAmI" + this);
} else {
trace("Error receiving from server.");
}
};
chooseGameEndProcedure();
_root.fishOutOfWaterSoundPlaying = false;
var numSounds = 1;
var g_sndGlobalSound = new Sound();
createSound("bigSplashSound");
createSound("clickSound");
createSound("fishOutOfWaterSound");
createSound("musicLoopSound");
createSound("smallSplashSound");
createSound("caughtFishSound");
createSound("gameOverSound");
createSound("rowingSound");
createSound("endRoundSound");
createSound("youWinSound");
createSound("startIntroSound");
createSound("titleFloatSound");
createSound("moterOnSound");
createSound("reelInFishSound");
createSound("ambientLoop");
createSound("bonus2Sound");
createSound("bonus3Sound");
createSound("bonus4Sound");
createSound("caughtJunkSound");
var blnReelingIn = false;
Frame 5
function CGame(a_root) {
var _local1 = this;
_local1.ROOT = a_root;
_local1.PRICES_DEPTH = 1500;
_local1.UI_DEPTH = 1000;
_local1.MESSAGE_DEPTH = 999;
_local1.MESSAGEPOPUP_DEPTH = 1001;
_local1.KEYBOARD_DEPTH = 998;
_local1.FISH_DEPTH = 100;
_local1.FISH_MOVE_CONTROL_DEPTH = 997;
_local1.CREEL_DEPTH = 996;
_local1.FIELD_WIDTH = 640;
_local1.FIELD_HEIGHT = 480;
_local1.FISH_LEFT_BOUND = -75;
_local1.FISH_RIGHT_BOUND = 720;
_local1.FISH_TOP_BOUND = 230;
_local1.FISH_BOTTOM_BOUND = 370;
_local1.LEVEL_UNDER_WATER = 130;
_local1.FISH_SPEED_X = 50;
_local1.FISH_SPEED_Y = 1;
_local1.CREEL_RADIUS = 100;
_local1.ROUNDS = 11;
_local1.bln_creelProceed = false;
_local1.bln_pause_game = true;
_local1.num_curr_round = 0;
_local1.reelupFish = new Array();
_local1.currentRU = 3;
_root.Game.blnJunkOn = false;
}
function CPlayer() {
this.score = 0;
}
function CBoat() {
var _local1 = this;
_local1.SPEED_WITH_ENGINE = 3;
_local1.SPEED_WITH_OAR = 3;
_local1.LEFT_BOUND = 40;
_local1.RIGHT_BOUND = 470;
_local1.HOOK_ORIGIN_POSITION = 120;
_local1.HOOK_BOTTOM_POSITION = 400;
_local1.line_delta_x;
_local1.line_delta_y;
_local1.bln_motor_run = false;
_local1.bln_oar_run = false;
_local1.gasoline_capacity = (_local1.SPEED_WITH_ENGINE * 2) * 5;
_local1.gasoline = _local1.gasoline_capacity;
_local1.hook_speed = 3;
_local1.line_level = 1;
}
function openCantBuyWindow() {
this.attachMovie("id_wndCantBuy", "wndCantBuy", Game.MESSAGEPOPUP_DEPTH);
centerWindow(wndCantBuy);
}
function openNothingBuyWindow() {
this.attachMovie("id_wndNothingBuy", "wndNothingBuy", Game.MESSAGEPOPUP_DEPTH);
centerWindow(wndNothingBuy);
}
function onBtnWndAreYouShureYes_click() {
fscommand ("quit");
}
function onBtnOk_click(sender) {
sender.removeMovieClip();
}
function onBtnMenuPlay_click() {
gotoAndPlay ("play");
}
function onBtnMenuHelp_click() {
this.attachMovie("id_wndHelp", "wndHelp", Game.MESSAGE_DEPTH);
centerWindow(wndHelp);
}
function onBtnMenuScores_click() {
this.attachMovie("id_wndScores", "wndScores", Game.MESSAGE_DEPTH);
centerWindow(wndScores);
}
function onBtnMenuQuit_click() {
this.attachMovie("id_wndAreYouShure", "wndAreYouShure", Game.MESSAGE_DEPTH);
centerWindow(wndAreYouShure);
}
function openRoundWindow() {
this.attachMovie("id_wndRound", "wndRound", Game.MESSAGE_DEPTH);
centerWindow(wndRound);
wndRound.gotoAndPlay(Game.num_curr_round + 1);
idt_RoundWindow = setInterval(Game, "preinitRound", 6000);
}
function closeRoundWindow() {
clearInterval(idt_RoundWindow);
wndRound.removeMovieClip();
}
function openRoundCompleteWindow() {
timer.stopTimer();
clock.pendulum.stop();
_root.timer.startTimeBonus();
this.attachMovie("id_wndRoundComplete", "wndRoundComplete", Game.MESSAGE_DEPTH);
centerWindow(wndRoundComplete);
endRoundSound.start();
idt_RoundCompleteWindow = setInterval(openShopWindow, 9000);
}
function closeRoundCompleteWindow() {
clearInterval(idt_RoundCompleteWindow);
wndRoundComplete.removeMovieClip();
}
function openShopWindow() {
closeRoundCompleteWindow();
clearInterval(idt_RoundCompleteWindow);
_root.attachMovie("id_wndShop", "wndShop", Game.MESSAGE_DEPTH);
centerWindow(wndShop);
}
function onBtnShopBuy_click(a_spend_money, a_gasoline_select, a_line_select, a_RUToBuy, a_ESToBuy) {
if (a_spend_money > Player.score) {
openCantBuyWindow();
return(undefined);
}
Player.score = Player.score - a_spend_money;
Boat.gasoline = a_gasoline_select;
Boat.hook_speed = a_RUToBuy;
Boat.SPEED_WITH_ENGINE = a_ESToBuy / 2;
Boat.gasoline_capacity = (Boat.SPEED_WITH_ENGINE * 2) * 5;
Boat.spendGasoline(0);
_root.Game.currentRU = a_RUToBuy;
switch (a_line_select) {
case 1 :
Boat.line_level = 2;
Boat.bln_enable_hook_stop = false;
Boat.bln_enable_hook_up = false;
break;
case 2 :
Boat.line_level = 3;
Boat.bln_enable_hook_stop = true;
Boat.bln_enable_hook_up = false;
break;
case 3 :
Boat.line_level = 4;
Boat.bln_enable_hook_stop = false;
Boat.bln_enable_hook_up = true;
}
Game.beginNextRound();
}
function onBtnShopCancel_click() {
wndShop.removeMovieClip();
Game.beginNextRound();
}
function openGameOverWindow() {
Game.bln_pause_game = true;
timer.stopTimer();
this.attachMovie("id_wndGameOver", "wndGameOver", Game.MESSAGE_DEPTH);
centerWindow(wndGameOver);
if ((Game.arrMovedFish.length == 0) && (_root.Game.reelupFish.length < 1)) {
wndGameOver.gotoAndStop(2);
} else {
wndGameOver.gotoAndStop(1);
_root.gameOverSound.start();
}
musicLoopSound.stop();
idt_GameOverWindow = setInterval(Game, "afterGameOver", 5000);
}
function closeGameOverWindow() {
clearInterval(idt_GameOverWindow);
wndGameOver.removeMovieClip();
}
function centerWindow(a_wnd) {
a_wnd._x = 320;
a_wnd._y = 240;
}
stop();
CGame.prototype.beginNextRound = function () {
var _local1 = this;
_local1.reelupFish = new Array();
_local1.num_curr_round++;
closeRoundCompleteWindow();
openRoundWindow();
_root.Game.blnJunkOn = false;
_local1.arrMovedFish = new Array();
_local1.arrMovedJunk = new Array();
_local1.arrFishPriceTable = new Array({t:1, p:100}, {t:2, p:200}, {t:3, p:300}, {t:4, p:400}, {t:5, p:500});
Player.displayScore();
Boat.init();
};
CGame.prototype.preinitRound = function () {
var _local1 = this;
closeRoundWindow();
_local1.bln_pause_game = false;
_local1.distributeFishes();
_local1.showPrices();
_local1.KeyboardOn();
_local1.startMoveFishes();
timer.startTimer();
clock.pendulum.play();
};
CGame.prototype.KeyboardOn = function () {
var _local1 = this;
_local1.ROOT.createEmptyMovieClip("Keyboard", _local1.KEYBOARD_DEPTH);
_local1.ROOT.Keyboard.onEnterFrame = function () {
if (!Game.bln_pause_game) {
if (mc_hook._y <= Boat.HOOK_ORIGIN_POSITION) {
Boat.bln_stop_stop = false;
}
if (((((!Key.isDown(40)) && (mc_hook._y > Boat.HOOK_ORIGIN_POSITION)) && (!Boat.bln_move_hook_up)) && (!Boat.bln_enable_hook_up)) && ((!Boat.bln_enable_hook_stop) || (Boat.bln_stop_stop))) {
Boat.moveHookUpProcess();
} else if (((_root.Game.reelupFish.length <= 0) && (!Boat.bln_stop_stop)) && (!Boat.bln_move_hook_up)) {
Boat.stopFishing();
}
if (Key.isDown(38) && (Boat.bln_enable_hook_up)) {
Boat.moveHookUp();
}
if (Key.isDown(38) && (Boat.bln_enable_hook_stop)) {
Boat.bln_stop_stop = true;
}
if (Key.isDown(40)) {
if (Game.reelupFish.length < 1) {
Boat.moveHookDown();
}
}
if (Key.isDown(37)) {
Boat.move(-1);
}
if (Key.isDown(39)) {
Boat.move(1);
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
Boat.stopRow();
Boat.stopEngine();
}
}
};
};
CGame.prototype.KeyboardOff = function () {
this.ROOT.Keyboard.removeMovieClip();
};
CGame.prototype.addSchool = function (a_fish_type, a_fish_number, a_fish_price, a_min_speed, a_max_speed) {
var _local2 = this;
var _local3;
var _local1;
_local3 = 0;
while (_local3 < a_fish_number) {
_local1 = _local2.ROOT.attachMovie("id_fish" + a_fish_type, "fish" + _local2.arrMovedFish.length, _local2.FISH_DEPTH + _local2.arrMovedFish.length);
_local1.t = a_fish_type;
_local1.mins = a_min_speed;
_local1.maxs = a_max_speed;
_local1._x = -200;
_local2.arrMovedFish.push(_local1);
_local3++;
}
};
CGame.prototype.addJunk = function (a_fish_type, a_fish_number, a_fish_price, a_min_speed, a_max_speed) {
var _local3 = this;
var _local2;
var _local1;
_local2 = 0;
while (_local2 < a_fish_number) {
_root.Game.blnJunkOn = false;
_local1 = _local3.ROOT.attachMovie("id_junk", "junk" + _local2, (_local3.FISH_DEPTH + _local3.arrMovedFish.length) + _local2);
_local1.t = a_fish_type;
_local1.mins = a_min_speed;
_local1.maxs = a_max_speed;
_local1._x = -200;
_local3.arrMovedJunk.push(_local1);
_local2++;
}
};
CGame.prototype.showPrices = function () {
var _local2 = this;
var _local1;
_local1 = 0;
while (_local1 < _local2.arrFishPriceTable.length) {
_local1++;
}
};
CGame.prototype.clearPrices = function () {
};
CGame.prototype.distributeFishes = function () {
var _local1 = this;
var i;
var _local2;
i = 0;
while (i < _local1.arrMovedFish.length) {
_local2 = ((random(2) > 0) ? 1 : -1);
var _local3 = _local1.arrMovedFish[i];
if (_local2 > 0) {
_local3.gotoAndStop("right");
} else {
_local3.gotoAndStop("left");
}
_local3._x = _local1.FISH_LEFT_BOUND + random(_local1.FISH_RIGHT_BOUND - _local1.FISH_LEFT_BOUND);
_local3._y = _local1.FISH_TOP_BOUND + random(_local1.FISH_BOTTOM_BOUND - _local1.FISH_TOP_BOUND);
_local3.delta_x = (_local2 * (random(_local3.maxs) + _local3.mins)) / 5;
_local2 = ((random(2) > 0) ? 1 : -1);
_local3.delta_y = (_local2 * (random(_local1.FISH_SPEED_Y) + 1)) / 5;
i++;
}
i = 0;
while (i < _local1.arrMovedJunk.length) {
_local2 = ((random(2) > 0) ? 1 : -1);
var _local3 = _local1.arrMovedJunk[i];
if (_local2 > 0) {
_local3.gotoAndStop("right");
} else {
_local3.gotoAndStop("left");
}
_local3._x = _local1.FISH_LEFT_BOUND + random(_local1.FISH_RIGHT_BOUND - _local1.FISH_LEFT_BOUND);
_local3._y = _local1.FISH_TOP_BOUND + random(_local1.FISH_BOTTOM_BOUND - _local1.FISH_TOP_BOUND);
_local3.delta_x = (_local2 * (random(_local3.maxs) + _local3.mins)) / 5;
_local2 = ((random(2) > 0) ? 1 : -1);
_local3.delta_y = (_local2 * (random(_local1.FISH_SPEED_Y) + 1)) / 5;
i++;
}
};
CGame.prototype.startMoveFishes = function () {
this.ROOT.createEmptyMovieClip("FishMoveControl", this.FISH_MOVE_CONTROL_DEPTH);
this.ROOT.FishMoveControl.onEnterFrame = function () {
if (!Game.bln_pause_game) {
var _local2;
var _local1;
var distance_x;
var _local3;
_local2 = Game.arrMovedFish.length - 1;
while (_local2 >= 0) {
_local1 = Game.arrMovedFish[_local2];
_local1._x = _local1._x + _local1.delta_x;
_local1._y = _local1._y + _local1.delta_y;
if (_local1._x > Game.FISH_RIGHT_BOUND) {
_local1.gotoAndStop("left");
_local1.delta_x = -_local1.delta_x;
}
if (_local1._x < Game.FISH_LEFT_BOUND) {
_local1.gotoAndStop("right");
_local1.delta_x = -_local1.delta_x;
}
if ((_local1._y < Game.FISH_TOP_BOUND) || (_local1._y > Game.FISH_BOTTOM_BOUND)) {
_local1.delta_y = -_local1.delta_y;
}
distance_x = _local1._x - mc_hook._x;
_local3 = _local1._y - mc_hook._y;
if ((_root.Game.blnJunkOn == false) && (((distance_x * distance_x) + (_local3 * _local3)) <= Game.CREEL_RADIUS)) {
Game.creelProcess(_local1);
Game.arrMovedFish.splice(_local2, 1);
}
_local2--;
}
var distance_x;
_local2 = Game.arrMovedJunk.length - 1;
while (_local2 >= 0) {
_local1 = Game.arrMovedJunk[_local2];
_local1._x = _local1._x + _local1.delta_x;
_local1._y = _local1._y + _local1.delta_y;
if (_local1._x > Game.FISH_RIGHT_BOUND) {
_local1.gotoAndStop("left");
_local1.delta_x = -_local1.delta_x;
}
if (_local1._x < Game.FISH_LEFT_BOUND) {
_local1.gotoAndStop("right");
_local1.delta_x = -_local1.delta_x;
}
if ((_local1._y < Game.FISH_TOP_BOUND) || (_local1._y > Game.FISH_BOTTOM_BOUND)) {
_local1.delta_y = -_local1.delta_y;
}
distance_x = _local1._x - mc_hook._x;
_local3 = _local1._y - mc_hook._y;
if ((_root.Game.blnJunkOn == false) && (((distance_x * distance_x) + (_local3 * _local3)) <= (Game.CREEL_RADIUS + 300))) {
_root.Game.blnJunkOn = true;
Game.creelProcess(_local1);
Game.arrMovedJunk.splice(_local2, 1);
}
_local2--;
}
}
};
};
CGame.prototype.creelProcess = function (a_fish) {
Game.reelupFish.push(a_fish);
creeledFishLength = Game.reelupFish.length;
if ((_root.Game.blnJunkOn == false) && (creeledFishLength > 1)) {
_root.bonusMsgMov._x = a_fish._x;
_root.bonusMsgMov._y = a_fish._y;
_root.bonusMsg = creeledFishLength + "X";
_root.bonusMsgMov.gotoAndPlay(2);
if (creeledFishLength < 5) {
eval (("_root.bonus" + creeledFishLength) + "Sound").start();
} else {
_root.bonus4Sound.start();
}
} else if (_root.Game.blnJunkOn == false) {
_root.caughtFishSound.start();
} else {
_root.caughtJunkSound.start();
}
Game.bln_creelProceed = true;
Boat.moveHookUpProcess();
mc_boat.mcMan1.gotoAndStop(2);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(1);
Boat.placeLine();
if (a_fish.delta_x > 0) {
a_fish.gotoAndStop("topLeft");
} else {
a_fish.gotoAndStop("topRight");
}
this.ROOT.createEmptyMovieClip("CreelProcess", this.CREEL_DEPTH);
this.ROOT.CreelProcess.onEnterFrame = function () {
var _local1 = _root;
if (!Game.bln_pause_game) {
if (_local1.blnReelingIn == false) {
_local1.reelInFishSound.start(0, 99);
_local1.blnReelingIn = true;
}
count = 0;
while (count < _local1.Game.reelupFish.length) {
if (_local1.Game.reelupFish[count]._y > Game.LEVEL_UNDER_WATER) {
_local1.Game.reelupFish[count]._x = mc_hook._x;
_local1.Game.reelupFish[count]._y = mc_hook._y;
if ((_local1.Game.reelupFish[count]._y < 220) && (!_local1.fishOutOfWaterSoundPlaying)) {
_local1.fishOutOfWaterSound.start();
_local1.fishOutOfWaterSoundPlaying = true;
trace("checking bug stuff");
if (this.arrMovedFish.length == 0) {
this.bln_pause_game = true;
}
}
} else {
_local1.fishOutOfWaterSoundPlaying = false;
if (Game.bln_creelProceed) {
var _local2 = _local1.Game.reelupFish.length;
counta = 0;
while (counta < _local2) {
var theCreeledFish = _local1.Game.reelupFish[counta];
theCreeledFish.gotoAndPlay("toBoat");
var _local3 = theCreeledFish.t;
if (_local3 < 6) {
_local3 = _local3 - 1;
thepoints = _local2 * _local1.Game.arrFishPriceTable[_local3].p;
trace("leng" + _local2);
trace("theCreeledFish.t-1 " + _local3);
trace("Table " + _local1.Game.arrFishPriceTable);
trace("whole " + _local1.Game.arrFishPriceTable[0].p);
trace(thepoints);
if (!_local1.Game.blnJunkOn) {
Player.addScore(thepoints);
}
_local1.addToLog(((("FishCaught: " + _local2) + " currentScore:") + Player.score) + newline);
} else if (_local1.Player.score >= 100) {
Player.addScore(-100);
} else {
_local1.Player.score = 0;
_local1.Player.displayScore();
}
Game.bln_creelProceed = false;
mc_boat.mcMan1.gotoAndStop(1);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(0);
counta++;
}
return;
}
}
count++;
}
}
};
};
CGame.prototype.completeCreel = function () {
var _local1 = _root;
var _local3 = this;
var _local2 = _local1.Game.reelupFish.length;
countb = 0;
while (countb < _local2) {
theCreeledFish = _local1.Game.reelupFish[countb];
if (theCreeledFish.t < 6) {
thepoints = _local2 * _local3.arrFishPriceTable[theCreeledFish.t - 1].p;
trace("sect2 " + thepoints);
} else {
_local1.Player.displayScore();
}
theCreeledFish.removeMovieClip();
countb++;
}
_local1.Game.reelupFish = new Array();
CreelProcess.removeMovieClip();
mc_boat.mcMan1.gotoAndStop(1);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(0);
Boat.placeLine();
_local1.Game.blnJunkOn = false;
if (_local3.arrMovedFish.length == 0) {
_local3.bln_pause_game = true;
_local3.roundComplete();
}
};
CGame.prototype.roundComplete = function () {
var _local1 = this;
i = 0;
while (i < _local1.arrMovedJunk.length) {
_local1.arrMovedJunk[i].removeMovieClip();
i++;
}
_root.Game.arrMovedJunk = new Array();
Boat.stopFishing();
Boat.stopEngine();
Boat.stopRow();
_local1.clearPrices();
if (_local1.num_curr_round >= _local1.ROUNDS) {
_local1.gameOver();
} else {
_root.addToLog(((("finishedRound: " + num_curr_round) + " currentScore:") + Player.score) + newline);
openRoundCompleteWindow();
}
};
CGame.prototype.gameOver = function () {
CreelProcess.removeMovieClip();
mc_boat.mcHookUpProcess.removeMovieClip();
Boat.stopFishing();
Boat.stopEngine();
Boat.stopRow();
openGameOverWindow();
this.clearPrices();
};
CGame.prototype.afterGameOver = function () {
var _local2 = this;
var _local3 = _root;
var _local1;
creeledFish.removeMovieClip();
closeGameOverWindow();
_local1 = 0;
while (_local1 < _local2.arrMovedFish.length) {
_local2.arrMovedFish[_local1].removeMovieClip();
_local1++;
}
var leng = _local3.Game.reelupFish.length;
countb = 0;
while (countb < leng) {
theCreeledFish = _local3.Game.reelupFish[countb];
theCreeledFish.removeMovieClip();
countb++;
}
_local3.Game.reelupFish = new Array();
_local1 = 0;
while (_local1 < _local2.arrMovedJunk.length) {
_local2.arrMovedJunk[_local1].removeMovieClip();
_local1++;
}
_local3.Game.arrMovedJunk = new Array();
CreelProcess.removeMovieClip();
_local3.splunge = _local3.Player.score;
gotoAndStop ("gameOverFrame2");
};
CGame.prototype.decreasePrices = function () {
};
CPlayer.prototype.addScore = function (a_score) {
this.score = this.score + a_score;
this.displayScore();
};
CPlayer.prototype.displayScore = function () {
var _local1 = this;
var _local2 = "00000";
_local2 = _local2.substr(0, 5 - String(_local1.score).length) + _local1.score;
txtScoreFront = "$" + _local1.score;
txtScoreBack = "$" + _local1.score;
};
CBoat.prototype.init = function () {
var _local1 = this;
_local1.stopEngine();
_local1.stopRow();
_local1.changeLinePosition(0);
_local1.placeHook();
_local1.placeLine();
_local1.stopFishing();
mc_boat.mcMan1.line_in_hand.gotoAndStop(_local1.line_level);
};
CBoat.prototype.startRow = function () {
mc_boat.mcMan2.play();
this.bln_row_started = true;
gasoline_indicator.gasText.text = 0;
};
CBoat.prototype.stopRow = function () {
mc_boat.mcMan2.gotoAndStop(1);
this.bln_row_started = false;
};
CBoat.prototype.startFishing = function () {
mc_boat.mcMan1.stop();
mc_boat.mcMan1.mc_fm1_hand_left.play();
_root.reelInFishSound.start(0, 99);
_root.blnReelingIn = true;
this.bln_fishing_started = true;
};
CBoat.prototype.stopFishing = function () {
mc_boat.mcMan1.stop();
mc_boat.mcMan1.mc_fm1_hand_left.stop();
_root.reelInFishSound.stop();
_root.blnReelingIn = false;
this.bln_fishing_started = false;
};
CBoat.prototype.move = function (a_delta) {
var _local1 = this;
var _local2 = mc_boat._x;
_local1.spendGasoline(0.02 * _local1.SPEED_WITH_ENGINE);
if (_local1.gasoline > 0) {
_local1.speed = _local1.SPEED_WITH_ENGINE;
} else {
_local1.speed = _local1.SPEED_WITH_OAR;
}
_local2 = _local2 + (a_delta * _local1.speed);
if ((_local2 > _local1.LEFT_BOUND) && (_local2 < _local1.RIGHT_BOUND)) {
mc_boat._x = _local2;
if (_local1.gasoline > 0) {
if (!_local1.bln_engine_started) {
_local1.startEngine();
}
} else {
if (!_local1.bln_row_started) {
_local1.startRow();
}
if (_local1.bln_engine_started) {
_local1.stopEngine();
}
}
_local1.placeLine();
}
};
CBoat.prototype.spendGasoline = function (a_spend_gasoline) {
var _local1 = this;
if (_local1.gasoline > 0) {
_local1.gasoline = _local1.gasoline - a_spend_gasoline;
if (_local1.gasoline < 0) {
_local1.gasoline = 0;
}
gasoline_indicator.bar._x = 7 - (159 - ((159 * _local1.gasoline) / _local1.gasoline_capacity));
gasoline_indicator.gasText.text = Math.floor(_local1.gasoline);
} else {
_local1.gasoline = 0;
}
};
CBoat.prototype.startEngine = function () {
_root.moterOnSound.start(0, 999);
mc_boat.mc_boat_body.mc_engine.gotoAndPlay(1);
mc_boat.mc_boat_body.mcRun.gotoAndPlay(2);
this.bln_engine_started = true;
};
CBoat.prototype.stopEngine = function () {
_root.moterOnSound.stop();
mc_boat.mc_boat_body.mc_engine.gotoAndStop(2);
mc_boat.mc_boat_body.mcRun.gotoAndStop(1);
this.bln_engine_started = false;
gasoline_indicator.gasText.text = Math.floor(this.gasoline);
};
CBoat.prototype.placeLine = function () {
mc_line._x = mc_boat._x + this.line_delta_x;
mc_line._y = mc_boat._y - this.line_delta_y;
mc_hook._x = mc_line._x;
mc_line._height = mc_hook._y - mc_line._y;
};
CBoat.prototype.changeLinePosition = function (a_switcher) {
var _local1 = this;
switch (a_switcher) {
case 0 :
_local1.line_delta_x = 144;
_local1.line_delta_y = 47;
return;
case 1 :
_local1.line_delta_x = 116;
_local1.line_delta_y = 67;
}
};
CBoat.prototype.placeHook = function () {
mc_hook._x = mc_boat._x + 144;
mc_hook._y = this.HOOK_ORIGIN_POSITION;
this.bln_move_hook_up = false;
};
CBoat.prototype.moveHookDown = function () {
var _local1 = this;
if (!_local1.bln_fishing_started) {
_local1.startFishing();
}
if (!_local1.bln_move_hook_up) {
if (!Game.bln_pause_game) {
mc_hook._y = mc_hook._y + _local1.hook_speed;
_local1.placeLine();
if (mc_hook._y > _local1.HOOK_BOTTOM_POSITION) {
_local1.moveHookUpProcess();
}
}
}
};
CBoat.prototype.moveHookUp = function () {
var _local1 = this;
if (!_local1.bln_fishing_started) {
_local1.startFishing();
}
if ((!_local1.bln_move_hook_up) && (mc_hook._y >= _local1.HOOK_ORIGIN_POSITION)) {
if (!Game.bln_pause_game) {
mc_hook._y = mc_hook._y - _local1.hook_speed;
_local1.placeLine();
}
}
};
CBoat.prototype.moveHookUpProcess = function () {
this.bln_move_hook_up = true;
mc_boat.createEmptyMovieClip("mcHookUpProcess", 100);
this.startFishing();
mc_boat.mcHookUpProcess.onEnterFrame = function () {
if (!Game.bln_pause_game) {
if (mc_hook._y > Boat.HOOK_ORIGIN_POSITION) {
mc_hook._y = mc_hook._y - 5;
Boat.placeLine();
} else {
Boat.stopFishing();
mc_hook._y = Boat.HOOK_ORIGIN_POSITION;
Boat.bln_move_hook_up = false;
Boat.placeLine();
mc_boat.mcHookUpProcess.removeMovieClip();
}
}
};
};
i = 0;
while (i < 25) {
this["fish" + i].removeMovieClip();
i++;
}
this.attachMovie("id_panel", "panel", 1000);
panel._x = 320;
panel._y = 240;
gotoAndPlay ("intro");
Frame 10
stop();
musicLoopSound.stop();
musicLoopSound.start(0, 999);
musicLoopSound.setVolume(40);
ambientLoop.stop();
ambientLoop.start(0, 999);
Frame 15
stop();
g_fSetMusicOn();
g_fSetSoundOn();
Frame 20
_quality = "BEST";
stop();
timer.numTaskInterval = 10;
timer.timesRunOut = function () {
clock.pendulum.stop();
Game.gameOver();
};
timer.doTask = function () {
Game.decreasePrices();
};
var Player = new CPlayer();
var Boat = new CBoat();
var Game = new CGame(this);
Game.beginNextRound();
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function playAgain() {
Game.ROOT.gotoAndStop("intro");
trace("tryplayagain");
}
g_fSetGameSize(640, 480);
endContainer.playAgain = function () {
Game.ROOT.gotoAndStop("intro");
trace("tryplayagain");
};
Frame 26
stop();
ambientLoop.stop();
musicLoopSound.stop();
bonusMsgMov.removeMovieClip();
endContainer.g_numScore = splunge;
g_numScore = splunge;
if ((crypto == 2) || (crypto == 0)) {
postGameLog();
_root.xmlGameEnd.load((gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey));
} else {
_root.t_fLoadGameEnd();
}
Symbol 22 MovieClip [id_junk] Frame 1
stop();
Symbol 22 MovieClip [id_junk] Frame 5
stop();
Symbol 22 MovieClip [id_junk] Frame 10
stop();
Symbol 22 MovieClip [id_junk] Frame 15
stop();
Symbol 22 MovieClip [id_junk] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 25 MovieClip [SBGTimer] Frame 1
#initclip 1
SBGTimer = function () {
this.init();
};
SBGTimer.prototype = new MovieClip();
SBGTimer.prototype.init = function () {
var _local1 = this;
_local1.numStart = 0;
_local1.numRemainder = 0;
_local1.numLastTic = 0;
_local1.numTaskInterval = 0;
_local1.numLastTaskTime = 0;
_local1.numWarningTime = 0;
_local1.blnStop = true;
_local1.blnWarning = false;
_local1.blnBonus = false;
_local1.hColorOff = 0;
_local1.hColorOn = 0;
_local1.showTime();
};
SBGTimer.prototype.onEnterFrame = function () {
var _local1 = this;
if (!_local1.blnStop) {
_local1.tick();
} else if (_local1.blnBonus) {
_local1.tick();
}
};
SBGTimer.prototype.tick = function () {
var _local1 = this;
var _local2 = getTimer();
if (_local1.blnBonus) {
_local1.numRemainder = _local1.numRemainder - 1;
_local1.timeBonus();
} else {
_local1.numRemainder = _local1.numRemainder - ((_local2 - _local1.numLastTic) / 1000);
_local1.numLastTic = _local2;
}
_local1.showTime();
if (_local1.numRemainder <= 0) {
_local1.numRemainder = 0;
_local1.stopTimer();
_local1.showTime();
if (!_local1.blnBonus) {
_local1.timesRunOut();
}
_local1.blnBonus = false;
} else if (!_local1.blnBonus) {
if ((Math.floor(_local1.numRemainder) == _local1.numWarningTime) && (!_local1.blnWarning)) {
_local1.blnWarning = true;
_local1.timerWarning();
}
if ((_local1.numTaskInterval > 0) && ((_local1.numLastTaskTime - _local1.numRemainder) >= _local1.numTaskInterval)) {
_local1.numLastTaskTime = _local1.numRemainder;
_local1.doTask();
}
}
};
SBGTimer.prototype.showTime = function () {
var _local3 = this;
var numCurrTime = Math.round(_local3.numRemainder);
var _local2 = Math.floor(numCurrTime / 60);
var strMinutes = ((_local2 < 10) ? ("0" + String(_local2)) : (String(_local2)));
var _local1 = numCurrTime % 60;
var strSeconds = ((_local1 < 10) ? ("0" + String(_local1)) : (String(_local1)));
_local3.txtTime.text = (strMinutes + ":") + strSeconds;
_local3.txtTimeShadow.text = _local3.txtTime.text;
};
SBGTimer.prototype.startTimer = function () {
var _local1 = this;
if (_local1.numRemainder <= 0) {
} else {
_local1.numLastTic = getTimer();
_local1.blnStop = false;
_local1.numLastTaskTime = _local1.numRemainder;
var _local2 = new Color(_local1.txtTime);
_local2.setRGB(_local1.hColorOn, 16);
_local2 = new Color(_local1.mcTime);
_local2.setRGB(_local1.hColorOn, 16);
_local1.showTime();
}
};
SBGTimer.prototype.startTimerAt = function (a_time) {
var _local1 = this;
if (a_time <= 0) {
} else {
_local1.numLastTic = getTimer();
_local1.numRemainder = a_time;
_local1.blnStop = false;
_local1.numLastTaskTime = _local1.numRemainder;
var _local2 = new Color(_local1.txtTime);
_local2.setRGB(_local1.hColorOn);
_local2 = new Color(_local1.mcTime);
_local2.setRGB(_local1.hColorOn, 16);
_local1.showTime();
}
};
SBGTimer.prototype.stopTimer = function () {
var _local1 = this;
_local1.blnStop = true;
var _local2 = new Color(_local1.txtTime);
_local2.setRGB(_local1.hColorOff);
_local2 = new Color(_local1.mcTime);
_local2.setRGB(_local1.hColorOff);
};
SBGTimer.prototype.getTimer = function () {
return(Math.floor(this.numRemainder * 10) / 10);
};
SBGTimer.prototype.setTimer = function (a_time) {
this.numRemainder = a_time;
this.showTime();
};
SBGTimer.prototype.setWarningTime = function (a_time) {
this.numWarningTime = a_time;
};
SBGTimer.prototype.setTaskInterval = function (a_time) {
this.numTaskInterval = a_time;
};
SBGTimer.prototype.startTimeBonus = function () {
this.blnBonus = true;
};
SBGTimer.prototype.timerWarning = function () {
};
SBGTimer.prototype.timesRunOut = function () {
};
SBGTimer.prototype.doTask = function () {
};
SBGTimer.prototype.timeBonus = function () {
_root.Player.score = _root.Player.score + (2 * _root.Game.num_curr_round);
};
Object.registerClass("SBGTimer", SBGTimer);
#endinitclip
Symbol 39 Button
on (release, releaseOutside) {
if (totalPurchase == 0) {
_parent.onBtnShopCancel_click(this);
} else {
_parent.onBtnShopBuy_click(totalPurchase, gasToBuy, line_select, RUToBuy, ESToBuy);
}
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 53 Button
on (release, releaseOutside) {
if (btnLine2._currentframe == 2) {
btnLine2.gotoAndStop(1);
line_spend = 0;
line_select = 0;
totalPurchase = totalPurchase - 3000;
rodCost = rodCost - 3000;
purchaseField.text = "$" + totalPurchase;
} else if (btnLine2._currentframe == 1) {
btnLine2.gotoAndStop(2);
if (btnLine1._currentframe == 2) {
btnLine1.gotoAndStop(1);
totalPurchase = totalPurchase - 1000;
rodCost = rodCost - 1000;
}
if (btnLine3._currentframe == 2) {
btnLine3.gotoAndStop(1);
totalPurchase = totalPurchase - 6000;
rodCost = rodCost - 6000;
}
line_spend = 3000;
totalPurchase = totalPurchase + 3000;
rodCost = rodCost + 3000;
purchaseField.text = "$" + totalPurchase;
line_select = 2;
}
}
Symbol 54 Button
on (release, releaseOutside) {
if (btnLine3._currentframe == 2) {
btnLine3.gotoAndStop(1);
line_spend = 0;
line_select = 0;
totalPurchase = totalPurchase - 6000;
rodCost = rodCost - 6000;
purchaseField.text = "$" + totalPurchase;
} else if (btnLine3._currentframe == 1) {
if (btnLine2._currentframe == 2) {
btnLine2.gotoAndStop(1);
totalPurchase = totalPurchase - 3000;
rodCost = rodCost - 3000;
}
if (btnLine1._currentframe == 2) {
btnLine1.gotoAndStop(1);
totalPurchase = totalPurchase - 1000;
rodCost = rodCost - 1000;
}
btnLine3.gotoAndStop(2);
line_spend = 6000;
totalPurchase = totalPurchase + 6000;
rodCost = rodCost + 6000;
purchaseField.text = "$" + totalPurchase;
line_select = 3;
}
}
Symbol 65 Button
on (press) {
startDrag ("", false, _parent.XBtwSteps * _parent.startingVar, 0, _parent.freeDistance, 0);
}
on (release, releaseOutside) {
stopDrag();
_parent._parent.registerDrag();
_parent._parent.gasSlider.resetMe();
this._x = _parent.XBtwSteps * (this._x / _parent.XBtwSteps);
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
function resetMe() {
var _local1 = _parent;
_local1.maxGas = _local1.ESToBuy * 5;
if (_local1.maxGas < _local1.gasToBuy) {
gasDifference = _local1.gasToBuy - _local1.maxGas;
_local1.gasCost = _local1.gasCost - (10 * gasDifference);
_local1.gasToBuy = _local1.gasToBuy - gasDifference;
} else if (_local1.gasToBuy < _root.Boat.gasoline) {
gasDifference = _root.Boat.gasoline - _local1.gasToBuy;
_local1.gasCost = _local1.gasCost + (10 * gasDifference);
_local1.gasToBuy = _local1.gasToBuy + gasDifference;
}
buyLText = _local1.gasToBuy;
steps = _local1.ESToBuy * 5;
XBtwSteps = this.totalDistance / this.steps;
slider._x = XBtwSteps * _local1.gasToBuy;
bar._x = -169.9 + slider._x;
}
if (totalDistance == undefined) {
totalDistance = 165;
freeDistance = 165;
myVar = "_parent.gasToBuy";
myCostVar = "_parent.gasCost";
cost = 10;
resetMe();
startingVar = _parent.gasToBuy;
slider._x = XBtwSteps * startingVar;
}
Symbol 73 MovieClip Frame 2
Set(myVar, Math.round(slider._x / XBtwSteps));
Set(myCostVar, (eval (myVar) - startingVar) * cost);
myVarText = _parent.gasToBuy;
if (_parent.maxGas != (_parent.ESToBuy * 5)) {
resetMe();
}
Symbol 86 Button
on (release) {
if (this._xmouse < (XBtwSteps * startingVar)) {
slider._x = XBtwSteps * startingVar;
} else if (this._xmouse > freeDistance) {
slider._x = freeDistance;
} else {
slider._x = this._xmouse;
}
_parent.registerDrag();
slider._x = XBtwSteps * (slider._x / XBtwSteps);
_parent.gasSlider.resetMe();
}
Symbol 87 MovieClip Frame 2
Set(myVar, Math.floor(slider._x / XBtwSteps));
Set(myCostVar, (eval (myVar) - startingVar) * cost);
_parent.registerDrag();
Symbol 93 MovieClip [id_wndShop] Frame 1
function registerDrag() {
totalPurchase = ((engineCost + gasCost) + rodCost) + reelCost;
purchaseField.text = "$" + totalPurchase;
}
_quality = "best";
var line_spend = 0;
var gasoline_spend = 0;
var gasoline_select = 0;
stop();
if (_root.Boat.gasoline < 0) {
_root.Boat.gasoline = 0;
} else {
_root.Boat.gasoline = Math.floor(_root.Boat.gasoline);
}
var gasToBuy = _root.Boat.gasoline;
buyLText.text = gasToBuy;
trace("starting bltext" + buyLText.text);
var line_select = 0;
var totalPurchase = 0;
purchaseField.text = "$" + totalPurchase;
var RUToBuy = _root.Game.currentRU;
_root.txtScoreFront = "$" + _root.Player.score;
buyRUText.text = _root.Game.currentRU - 2;
switch (_root.Boat.line_level) {
case 2 :
btnLine1.gotoAndStop(3);
break;
case 3 :
btnLine2.gotoAndStop(3);
break;
case 4 :
btnLine3.gotoAndStop(3);
break;
}
stop();
var ESToBuy = (2 * _root.Boat.SPEED_WITH_ENGINE);
trace(ESToBuy);
var engineCost = 0;
engineSlider.onLoad = function () {
var _local1 = this;
_local1.cost = 1000;
_local1.steps = 25;
_local1.totalDistance = 200;
_local1.freeDistance = 200;
_local1.XBtwSteps = _local1.totalDistance / _local1.steps;
_local1.myVar = "_parent.ESToBuy";
_local1.myCostVar = "_parent.engineCost";
_local1.startingVar = ESToBuy;
_local1.slider._x = _local1.XBtwSteps * _local1.startingVar;
};
gasCost = 0;
var maxGas = (ESToBuy * 5);
reelCost = 0;
reelSlider.onLoad = function () {
var _local1 = this;
_local1.cost = 1000;
_local1.steps = 20;
_local1.totalDistance = 200;
_local1.freeDistance = 200;
_local1.XBtwSteps = _local1.totalDistance / _local1.steps;
_local1.myVar = "_parent.RUToBuy";
_local1.myCostVar = "_parent.reelCost";
_local1.startingVar = RUToBuy;
_local1.slider._x = _local1.XBtwSteps * _local1.startingVar;
};
rodCost = 0;
Instance of Symbol 87 MovieClip "engineSlider" in Symbol 93 MovieClip [id_wndShop] Frame 1
/* no clip actions */
Instance of Symbol 87 MovieClip "reelSlider" in Symbol 93 MovieClip [id_wndShop] Frame 1
/* no clip actions */
Symbol 104 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
if (_local1.getBytesLoaded() < _local1.getBytesTotal()) {
txtLoading = ("loading..." + Math.floor((_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100)) + "%";
} else {
_local1.gotoAndPlay("initialize");
}
};
Symbol 113 Button
on (release, releaseOutside) {
_parent.onBtnWndAreYouShureYes_click();
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 117 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 124 Button
on (release) {
play();
_root.clickSound.start();
}
Symbol 134 Button
on (release, releaseOutside) {
_root.Game.bln_pause_game = false;
_root.timer.startTimer();
_parent.onBtnOk_click(this);
_root.clickSound.start();
}
Symbol 139 Button
on (release) {
play();
_root.clickSound.start();
}
Symbol 150 MovieClip [id_wndHelp] Frame 1
_quality = "BEST";
stop();
Symbol 150 MovieClip [id_wndHelp] Frame 2
stop();
Symbol 153 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
}
Symbol 162 MovieClip [id_fish1] Frame 1
stop();
Symbol 162 MovieClip [id_fish1] Frame 5
stop();
Symbol 162 MovieClip [id_fish1] Frame 10
stop();
Symbol 162 MovieClip [id_fish1] Frame 15
stop();
Symbol 162 MovieClip [id_fish1] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 170 MovieClip [id_fish2] Frame 1
stop();
Symbol 170 MovieClip [id_fish2] Frame 5
stop();
Symbol 170 MovieClip [id_fish2] Frame 10
stop();
Symbol 170 MovieClip [id_fish2] Frame 15
stop();
Symbol 170 MovieClip [id_fish2] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 176 MovieClip [id_fish3] Frame 1
stop();
Symbol 176 MovieClip [id_fish3] Frame 5
stop();
Symbol 176 MovieClip [id_fish3] Frame 10
stop();
Symbol 176 MovieClip [id_fish3] Frame 15
stop();
Symbol 176 MovieClip [id_fish3] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 189 MovieClip [id_fish4] Frame 1
stop();
Symbol 189 MovieClip [id_fish4] Frame 5
stop();
Symbol 189 MovieClip [id_fish4] Frame 10
stop();
Symbol 189 MovieClip [id_fish4] Frame 15
stop();
Symbol 189 MovieClip [id_fish4] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 200 MovieClip [id_fish5] Frame 1
stop();
Symbol 200 MovieClip [id_fish5] Frame 5
stop();
Symbol 200 MovieClip [id_fish5] Frame 10
stop();
Symbol 200 MovieClip [id_fish5] Frame 15
stop();
Symbol 200 MovieClip [id_fish5] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 211 MovieClip [id_wndRound] Frame 2
stop();
fish1.fish.stop();
_parent.Game.addSchool(1, 4, 100, 5, 4);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 211 MovieClip [id_wndRound] Frame 3
stop();
fish1.fish.stop();
fish2.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(80);
Symbol 211 MovieClip [id_wndRound] Frame 4
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
_parent.Game.addSchool(1, 4, 100, 5, 5);
_parent.Game.addSchool(2, 4, 200, 15, 10);
_parent.Game.addSchool(3, 2, 300, 30, 20);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 211 MovieClip [id_wndRound] Frame 5
stop();
fish1.fish.stop();
fish2.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 10, 5);
_parent.Game.addSchool(2, 5, 200, 20, 10);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 211 MovieClip [id_wndRound] Frame 6
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 3, 200, 20, 10);
_parent.Game.addSchool(3, 3, 300, 30, 20);
_parent.Game.addSchool(4, 2, 400, 40, 20);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 211 MovieClip [id_wndRound] Frame 7
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 10, 5);
_parent.Game.addSchool(2, 1, 200, 20, 10);
_parent.Game.addSchool(3, 1, 300, 30, 20);
_parent.Game.addSchool(4, 6, 400, 40, 20);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 211 MovieClip [id_wndRound] Frame 8
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
_parent.Game.addSchool(1, 4, 100, 20, 10);
_parent.Game.addSchool(2, 3, 200, 20, 15);
_parent.Game.addSchool(3, 3, 300, 30, 20);
_parent.Game.addSchool(4, 2, 400, 40, 20);
_parent.Game.addSchool(5, 2, 600, 5, 5);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 211 MovieClip [id_wndRound] Frame 9
stop();
fish1.fish.stop();
fish3.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 20, 15);
_parent.Game.addSchool(3, 5, 300, 40, 30);
_parent.Game.addSchool(5, 6, 600, 5, 5);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 211 MovieClip [id_wndRound] Frame 10
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 5, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(5, 2, 600, 10, 5);
_parent.Game.addJunk(6, 5, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 211 MovieClip [id_wndRound] Frame 11
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 5, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(4, 3, 400, 40, 20);
_parent.Game.addSchool(5, 2, 600, 10, 5);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(60);
Symbol 211 MovieClip [id_wndRound] Frame 12
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(4, 3, 400, 40, 20);
_parent.Game.addSchool(5, 4, 600, 5, 5);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(60);
Symbol 218 MovieClip [id_wndRoundComplete] Frame 1
txtRound = _parent.Game.num_curr_round;
txtScore = "$" + _parent.Player.score;
Symbol 233 MovieClip [id_wndGameOver] Frame 1
stop();
txtRound = _parent.Game.num_curr_round;
txtScore = _parent.Player.score;
Symbol 233 MovieClip [id_wndGameOver] Frame 2
stop();
_parent.youWinSound.start();
_parent.Player.score = _parent.Player.score + 10000;
_parent.Player.displayScore();
txtRound = _parent.Game.num_curr_round;
txtScore = _parent.Player.score;
_root.endRoundSound.start();
Symbol 248 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 249 MovieClip [id_wndCantBuy] Frame 1
stop();
Symbol 251 MovieClip [id_wndNothingBuy] Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 4
Symbol 280 MovieClip Frame 110
stop();
Symbol 281 MovieClip Frame 1
_root.startIntroSound.start();
Symbol 281 MovieClip Frame 24
Symbol 281 MovieClip Frame 71
_parent.gotoAndStop("start");
stop();
Symbol 283 MovieClip Frame 12
stop();
Symbol 284 Button
on (release, releaseOutside) {
onBtnMenuPlay_click();
clickSound.start();
}
on (rollOver) {
smallSplashSound.start();
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 324 MovieClip Frame 5
gotoAndPlay (2);
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 8
_root.rowingSound.start();
Symbol 372 MovieClip Frame 25
gotoAndPlay (7);
Symbol 381 MovieClip Frame 1
_quality = "BEST";
Symbol 385 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
loadBrandMov.loadMovie(_root.logoUrl);
stop();
}
Symbol 385 MovieClip Frame 2
stop();
Symbol 389 Button
on (release) {
_parent.g_fSetSoundOff();
this.gotoAndStop("on");
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 392 Button
on (release) {
_parent.g_fSetSoundOn();
this.gotoAndStop("off");
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 6
stop();
Symbol 396 Button
on (release) {
_parent.g_fSetMusicOff();
this.gotoAndStop("on");
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 399 Button
on (release) {
_parent.g_fSetMusicOn();
this.gotoAndStop("off");
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 6
stop();
Symbol 403 Button
on (release, releaseOutside) {
onBtnMenuHelp_click();
clickSound.start();
Game.bln_pause_game = true;
timer.stopTimer();
}
on (rollOver) {
smallSplashSound.start();
}
Symbol 407 MovieClip Frame 1
if (this.getDepth() != 100000) {
this.swapDepths(100000);
}
stop();