Frame 1
function clearDepth() {
depths = new Array(100, 200, 300, 1000, 500, 600, 700, 800, 900, 400, 1050, 1100);
depths_scorez = 1500;
}
function myRandom_i(start, end) {
return(start + Math.floor(Math.random() * ((end + 1) - start)));
}
function myRandom_d(start, end) {
return(start + (Math.random() * (end - start)));
}
function myRandom_mp() {
return(((random(2) == 1) ? 1 : -1));
}
function initLevel() {
comboCount = 0;
setTimer();
comboGoal = goalMask[GameLevel - 1];
combo = 0;
hookisBusy = 0;
lastCatchedFish = 0;
catchedFishs = new Array(0);
indent = 1;
timeBonus = 0;
confusion = 0;
ignorePress = 0;
hookMove = 0;
hookVector = HookSpeedDown[hookSpeedLevel];
hookY = 63;
waitForNet = 0;
checkCombo = 0;
coinCatched = 0;
noBurnFish = 0;
sharkAttack = 0;
alreadyAttacking = 0;
lastPosX = 0;
fxManok = 0;
fxManok_time = 0;
fxManok_up = 0;
start_burn = 0;
playMusic("music_game");
allCatchedFishs = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
checkWeight = true;
fishOnHook = new Array();
lastFish = -1;
tempCombo = new Array();
}
function mainProcess() {
if (pause) {
return(0);
}
if (!confusion) {
boatFollowMouse();
}
if (full_screen) {
if (_quality != "MEDIUM") {
_quality = "MEDIUM";
}
} else if (_quality != "HIGH") {
_quality = "HIGH";
}
moveHook();
moveFishes();
launchTimer();
if (checkCombo) {
checkWin();
}
if (coinCatched) {
moveCoin();
}
if (sharkAttack < 0) {
clearMovies();
gotoAndPlay ("game_over_shark");
}
}
function setTimer() {
launchTime = MaxLevelTime;
var _local1 = new Date();
lastTime = _local1.getTime();
}
function launchTimer() {
var _local2 = new Date();
var _local1 = 0;
if ((_local2.getTime() < pauseStart) || (pauseStart == undefined)) {
_local1 = Math.floor(_local2.getTime() / 1000) - Math.floor(lastTime / 1000);
} else {
_local1 = Math.floor(pauseStart / 1000) - Math.floor(lastTime / 1000);
pauseStart = undefined;
}
launchTime = launchTime - _local1;
lastTime = _local2.getTime();
if (LaunchTime < 0) {
clearMovies();
gotoAndPlay ("game_over");
}
if (((launchTime <= 7) && (launchTime >= 1)) && (_local1)) {
playSound("snd_time");
}
if ((fxManok == 1) && (fxManok_up == 0)) {
fxManok_time = fxManok_time - _local1;
if (fxManok_time < 1) {
offManok();
}
}
}
function checkWin() {
if (combo >= comboGoal) {
if (gameType == 0) {
clearMovies();
timeBonus = 35 * Number(launchTime);
TotalScore = TotalScore + timeBonus;
gotoAndPlay ("level_score");
} else if (gameType == 1) {
comboCount++;
if (comboCount >= 3) {
comboCount = 0;
comboGoal++;
addTime = addTime + 3;
}
playSound("snd_upgrade");
launchTime = launchTime + addTime;
combo = 0;
}
} else {
checkCombo = 0;
}
}
function clearMovies() {
var fkind = 1;
var fnum = 0;
while (Number(fkind) <= 12) {
var parentFish = ("fish" + fkind);
while (Number(fnum) < levelMask[GameLevel - 1][fkind - 1]) {
var currentFish = ((parentFish + "_") + fnum);
if (typeof(eval (currentFish)) == "movieclip") {
removeMovieClip(currentFish);
}
fnum = Number(fnum) + 1;
}
fnum = 0;
fkind = Number(fkind) + 1;
}
removeScorez();
if (lastCatchedFish) {
removeMovieClip(eval (("fish" + lastCatchedFish) + "_combo"));
}
}
function boatFollowMouse() {
var _local1 = getProperty(_root, _xmouse);
var my_t = getProperty(_root, _ymouse);
var _local2 = getProperty(fisherman, _x);
var _local3 = getProperty(line, _x);
if (_local1 >= (_local2 + 50)) {
if (speed <= maxSpeed) {
speed = speed + thrust;
}
} else if (_local1 <= (_local2 - 50)) {
if (speed >= (maxSpeed * -1)) {
speed = speed - thrust;
}
} else {
speed = speed * decay;
}
if ((((my_t > 0) && (my_t < 400)) && (_local1 > 0)) && (_local1 < 550)) {
mx = _local1;
var add_speed = speed;
}
var n_fisherman = ((_local2 + ((mx - _local2) * boatAccel)) + add_speed);
var n_line = ((_local3 + ((mx - _local3) * boatAccel)) + add_speed);
var n_hook = (((_local3 + ((mx - _local3) * boatAccel)) - 1) + add_speed);
fisherman._x = n_fisherman;
line._x = n_line;
hook._x = n_hook;
}
function moveHook() {
var _local1 = getProperty(fisherman.boat, _y);
if (hookMove) {
var _local2 = getProperty(line, _height);
if (hookY > ((21 * lengthFeets[LengthLevel]) - Math.pow(LengthLevel, 3))) {
hookVector = HookSpeedUp[hookSpeedLevel];
}
if (((_local2 < 40) || (hookY < 83)) && (hookVector < 0)) {
resetFisherman();
} else {
hookY = hookY + hookVector;
setProperty(line, _height , _local2 + hookVector);
}
}
setProperty(line, _y , 40 + _local1);
setProperty(hook, _y , hookY + _local1);
}
function moveCoin() {
var hx = getProperty(hook, _x);
var hy = getProperty(hook, _y);
if ((!hookMove) && (!waitForNet)) {
trace("coin catched");
setProperty(coin_t, _alpha , 50);
waitForNet = 1;
showBonus();
}
setProperty(coin_t, _y , hy + 3);
setProperty(coin_t, _x , hx);
}
function moveShark() {
trace("moveShark");
var hx = getProperty(hook, _x);
var shy = getProperty(eval (charkAttack), _y);
var attackTime = eval (charkAttack + ".attack");
if (shy < 80) {
if (attackTime >= 2) {
fisherman.boat.gotoAndPlay("jump");
} else {
fisherman.boat.gotoAndPlay("shark");
Set(eval (sharkAttack + ".SpeedY"), -5);
resetFisherman();
}
}
setProperty(coin_t, _y , hy + 3);
setProperty(coin_t, _x , hx);
}
function onManok() {
if (fxManok_buy == 0) {
return(0);
}
if (fxManok == 1) {
return(0);
}
trace("On Manok");
fxManok = 1;
fxManok_up = 0;
fxManok_init();
fxManok_time = fxManok_timeStart;
}
function offManok() {
trace("Off Manok");
fxManok_up = 1;
fxManok_buy = 0;
}
function moveFishes() {
var fkind = 12;
var fnum = 0;
var localHookY = getProperty(hook, _y);
var localHookX = getProperty(hook, _x);
var localFishermanX = getProperty(fisherman, _x);
while (Number(fkind) > 0) {
var parentFish = ("fish" + fkind);
if (levelMask[GameLevel - 1][fkind - 1]) {
while (Number(fnum) < levelMask[GameLevel - 1][fkind - 1]) {
var currentFish = ((parentFish + "_") + fnum);
eval (currentFish)._type = fkind;
if (typeof(eval (currentFish)) == "undefined") {
if ((fkind != 10) || (!noBurnFish)) {
burnNewFish(fkind, fnum);
}
} else {
if (eval (currentFish).anim != undefined) {
if ((_root.full_screen == 1) && (eval (currentFish).anim._currentframe != 1)) {
eval (currentFish).anim.gotoAndStop(1);
} else {
eval (currentFish).anim.play();
}
} else if (fkind != 10) {
}
var isCatched = eval (currentFish + ".catched");
var isConfused = eval (currentFish + ".confused");
if (isCatched) {
if ((!hookMove) && (!waitForNet)) {
playSound("snd_net");
trace("catchedFishs=" + catchedFishs);
var flag1;
var kk = 0;
while (kk < catchedFishs.length) {
if (eval (catchedFishs[kk])._type == lastFish) {
flag1 = true;
} else {
flag1 = false;
break;
}
kk++;
}
if (flag1) {
combo = Number(combo) + catchedFishs.length;
} else {
changeCombo(lastFIsh, eval (catchedFishs[catchedFishs.length - 1])._type);
combo = 1;
}
var jj = 0;
while (jj < catchedFishs.length) {
bonus = scoreMask[eval (catchedFishs[catchedFishs.length - 1])._type];
if ((catchedFishs[i] != "coin_t") && (eval (catchedFishs[jj])._type)) {
TotalFish = Number(TotalFish) + 1;
allCatchedFishs[tempCombo[1] - 1] = allCatchedFishs[tempCombo[1] - 1] + 1;
}
jj++;
}
sum = Number(combo * bonus);
totalScore = totalScore + sum;
lastCatchedFish = fkind;
lastFish = eval (catchedFishs[catchedFishs.length - 1])._type;
setProperty(eval (currentFish), _alpha , 50);
waitForNet = 1;
if (fkind == 10) {
noBurnFish = 1;
}
showBonus();
fishOnHook = new Array();
}
setProperty(eval (currentFish), _x , localHookX);
setProperty(eval (currentFish), _y , localHookY + 3);
} else if (isConfused) {
var now = new Date();
var ct = eval (currentFish + ".confuseTime");
setProperty(eval (currentFish), _y , localHookY + 3);
if ((Math.floor(now.getTime() / 1000) - ct) >= MaxConfuseTime) {
playSound("snd_break");
resetFisherman();
var attack = eval (currentFish + ".attack");
var sp = eval (currentFish + ".xSpeed");
if (attack) {
confusion = 1;
hookIsBusy = 1;
var yBegin = eval (currentFish + ".confused");
sharkAttack = currentFish;
Set(currentFish + ".ySpeed", -10);
Set(currentFish + ".yLength", yBegin - 35);
Set(currentFish + ".xSpeed", 0);
eval (currentFish).gotoAndStop("left");
setProperty(eval (currentFish), _y , yBegin);
setProperty(eval (currentFish), _x , getProperty(eval (currentFish), _width) + localHookX);
} else {
if (sp > 0) {
eval (currentFish).gotoAndStop("right");
} else {
eval (currentFish).gotoAndStop("left");
}
if (fkind == 10) {
setProperty(eval (currentFish), _y , 365);
setProperty(eval (currentFish), _x , eval (currentFish + ".confused"));
} else {
setProperty(eval (currentFish), _y , eval (currentFish + ".confused"));
}
if (fkind == 4) {
setProperty(eval (currentFish), _y , 365);
}
}
Set(currentFish + ".confused", 0);
}
fishOnHook = new Array();
} else {
var tx = eval (currentFish + ".xLength");
var ty = eval (currentFish + ".yLength");
var fx = eval (currentFish)._x;
var fy = eval (currentFish)._y;
var sx = eval (currentFish + ".xSpeed");
var sy = eval (currentFish + ".ySpeed");
if (fy < 100) {
ty = myRandom_i(20, 140);
sy = myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
Set(currentFish + ".ySpeed", sy);
Set(currentFish + ".yLength", ty);
} else if (fy > 350) {
ty = myRandom_i(20, 140);
sy = -myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
Set(currentFish + ".ySpeed", sy);
Set(currentFish + ".yLength", ty);
if (fx_Manok == 1) {
Set(currentFish + ".ySpeed", sy - 10);
}
}
if (fx > 600) {
removeMovieClip(currentFish);
} else if (fx < -50) {
removeMovieClip(currentFish);
} else {
if (directionMask[fkind - 1] && (tx <= 0)) {
if (sx > 0) {
eval (currentFish).gotoAndStop("left");
sx = -myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
} else {
eval (currentFish).gotoAndStop("right");
sx = myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
}
tx = myRandom_i(20, 225);
Set(currentFish + ".xSpeed", sx);
Set(currentFish + ".xLength", tx);
}
if (diagonalMask[fkind - 1]) {
if (ty <= 0) {
if (sy > 0) {
sy = -myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
} else {
sy = myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]);
}
ty = myRandom_i(20, 140);
Set(currentFish + ".yLength", ty);
Set(currentFish + ".ySpeed", sy);
}
setProperty(eval (currentFish), _y , fy + sy);
Set(currentFish + ".yLength", ty - Math.abs(sy));
}
if (fkind == 5) {
var fVector = eval (currentFish + ".vector");
if (Math.abs(tx - fx) < 50) {
if (fVector > 0) {
tx = fx + 200;
eval (currentFish).gotoAndPlay("right");
} else {
tx = fx - 200;
eval (currentFish).gotoAndPlay("left");
}
}
Set(currentFish + ".xLength", tx);
setProperty(eval (currentFish), _x , fx + ((tx - fx) * sx));
} else if (fkind != 10) {
if ((fxManok == 1) && (fkind != 12)) {
if (fx <= (fisherman._x - 30)) {
eval (currentFish).gotoAndStop("right");
sx = myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]) + 1.5;
} else if (fx >= (fisherman._x + 80)) {
eval (currentFish).gotoAndStop("left");
sx = (-myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1])) - 1.5;
}
Set(currentFish + ".xSpeed", sx);
}
setProperty(eval (currentFish), _x , fx + sx);
}
Set(currentFish + ".xLength", tx - Math.abs(sx));
if ((eval (currentFish).hitTest(hook) && ((!hookIsBusy) || (catchedFishs.length < hookB))) && hookMove) {
fishOnHook.push(currentFish);
fishOnHook.push(fkind - 1);
if (fkind == 12) {
hookVector = HookSpeedUp[hookSpeedLevel];
} else if (fkind == 10) {
if (sx > 0) {
if (StrengthLevel >= strengthMask[fkind - 1]) {
hookIsBusy = 1;
Set(currentFish + ".catched", 1);
catchedFishs.push(currentFish);
eval (currentFish).gotoAndPlay("up");
setProperty(eval (currentFish), _x , localHookX);
hookVector = HookSpeedUp[hookSpeedLevel];
duplicateMovieClip ("scorez", "scorez_t", depths_scorez++);
trace(depths_scorez);
indent = Number(indent) + 1;
} else {
eval (currentFish).gotoAndPlay("up");
Set(currentFish + ".confused", getProperty(eval (currentFish), _x));
var now = new Date();
Set(currentFish + ".confuseTime", Math.floor(now.getTime() / 1000) - 3);
fisherman.boat.gotoAndPlay("confusion");
hookMove = 0;
setProperty(eval (currentFish), _y , localHookY + 3);
setProperty(eval (currentFish), _x , localHookX);
hookIsBusy = 1;
confusion = 1;
}
} else {
bonus = scoreMask[fkind - 1];
sum = (combo ? Number(combo * bonus) : bonus);
totalScore = totalScore + sum;
hookIsBusy = 1;
coinCatched = 1;
hookVector = HookSpeedUp[hookSpeedLevel];
duplicateMovieClip ("scorez", "scorez_t", depths_scorez++);
duplicateMovieClip ("coin", "coin_t", depths_scorez++);
setProperty(coin_t, _y , localHookY + 3);
setProperty(coin_t, _x , localHookX);
catchedFishs.push("coin_t");
trace("coin catched");
coin_t.gotoAndStop("up");
}
hookVector = HookSpeedUp[hookSpeedLevel];
} else if (StrengthLevel >= strengthMask[fkind - 1]) {
playSound("snd_catch");
if (lastCatchedFish == fkind) {
flag = 1;
} else {
flag = 2;
tempCombo[0] = lastCatchedFIsh;
tempCombo[1] = fkind;
}
hookIsBusy = 1;
Set(currentFish + ".catched", 1);
catchedFishs.push(currentFish);
eval (currentFish).gotoAndPlay("up");
setProperty(eval (currentFish), _x , localHookX);
hookVector = HookSpeedUp[hookSpeedLevel];
duplicateMovieClip ("scorez", "scorez_t", depths_scorez++);
trace(depths_scorez);
indent = Number(indent) + 1;
} else {
catchedFishs = new Array();
var ii = 0;
while (ii < fishOnHook.length) {
if (fishOnHook[ii + 1] != 9) {
eval (fishOnHook[ii]).gotoAndPlay("up");
Set(fishOnHook[ii] + ".confused", getProperty(eval (fishOnHook[ii]), _y));
Set(fishOnHook[ii] + ".catched", undefined);
if (fkind == 11) {
Set(fishOnHook[ii] + ".attack", Number(eval (fishOnHook[ii] + ".attack")) + 1);
}
var now = new Date();
Set(fishOnHook[ii] + ".confuseTime", Math.floor(now.getTime() / 1000));
fisherman.boat.gotoAndPlay("confusion");
hookMove = 0;
setProperty(eval (fishOnHook[ii]), _y , localHookY + 3);
setProperty(eval (fishOnHook[ii]), _x , localHookX);
hookIsBusy = 1;
confusion = 1;
} else if (coinCatched) {
coinCatched = 0;
coin_t.removeMovieClip();
}
ii = ii + 2;
}
}
}
if (((eval (currentFish).hitTest(fisherman.boat) && confusion) && (fkind == 11)) && (!alreadyAttacking)) {
alreadyAttacking = 1;
trace("Shark Attack");
var attackTimes = eval (currentFish + ".attack");
if (attackTimes == 2) {
setProperty(hook, _visible , false);
setProperty(line, _visible , false);
fisherman.boat.gotoAndPlay("jump");
} else {
fisherman.boat.gotoAndPlay("shark");
}
Set(currentFish + ".xSpeed", -5);
eval (currentFish).gotoAndStop("left");
}
}
}
}
fnum = Number(fnum) + 1;
}
}
fnum = 0;
fkind = Number(fkind) - 1;
}
start_burn = 1;
}
function checkFishWeight() {
trace("checkFishWeight");
trace(fishOnHook);
trace("fishOnHook.length=" + fishOnHook.length);
trace("--------");
if (fishOnHook.length == 2) {
} else {
var _local1 = 1;
while (_local1 < fishOnHook.length) {
if (strengthMask[fishOnHook[_local1]] > StrengthLevel) {
return(false);
}
_local1 = _local1 + 2;
}
return(true);
}
return(undefined);
}
function countFish() {
var _local1 = 0;
while (_local1 < 12) {
_local1++;
}
}
function viewStatus() {
var fkind = 1;
clearDepth();
while (Number(fkind) < 12) {
var parentFish = ("fish" + fkind);
var currentFish = (parentFish + "_na");
duplicateMovieClip (parentFish, currentFish, depths_scorez++);
eval (currentFish).gotoAndStop("right");
eval (currentFish + ".anim").gotoAndStop(100);
if (StrengthLevel < strengthMask[fkind - 1]) {
var f = new Color(eval (currentFish));
f.setRGB(3342438);
}
indent = Number(indent) + 1;
fkind = Number(fkind) + 1;
}
}
function buy(item) {
switch (item) {
case "manok" :
if ((totalFish >= fxManok_Object.price) && (fxManok_buy == 0)) {
fxManok_buy = 1;
totalFish = totalFish - fxManok_Object.price;
_root.magazin_manok._alpha = 100;
trace("Buy: Manok");
} else {
trace("Buy Error: Manok");
}
return;
default :
trace(("Error: " + item) + " not found");
}
}
function hideParentFishes() {
var fkind = 1;
while (Number(fkind) <= 12) {
var parentFish = ("fish" + fkind);
eval (parentFish).gotoAndStop("right");
setProperty(eval (parentFish), _visible , false);
indent = Number(indent) + 1;
fkind = Number(fkind) + 1;
}
setProperty(coin, _visible , false);
}
function hideStatus() {
trace("hideStatus");
var fkind = 1;
while (Number(fkind) <= 12) {
var currentFish = (("fish" + fkind) + "_na");
if (typeof(eval (currentFish)) == "movieclip") {
removeMovieClip(currentFish);
}
fkind = Number(fkind) + 1;
}
}
function changeCombo(oldFish, newFish) {
if (oldFish) {
var fish = (("fish" + oldFish) + "_combo");
removeMovieClip(fish);
}
var parentFish = ("fish" + newFish);
var currentFish = (parentFish + "_combo");
duplicateMovieClip (parentFish, currentFish, depths_scorez++);
eval (currentFish).gotoAndStop("right");
if (_root.full_screen == 1) {
eval (currentFish + ".anim").gotoAndStop(1);
} else {
eval (currentFish + ".anim").play();
}
setProperty(eval (currentFish), _x , 460);
setProperty(eval (currentFish), _y , 32);
setProperty(eval (currentFish), _xscale , 20);
setProperty(eval (currentFish), _yscale , 20);
indent = Number(indent) + 1;
}
function showCombo() {
duplicateMovieClip ("fish" + lastCatchedFish, "scoreFish_s", depths_scorez++);
scoreFish_s.gotoAndStop("right");
setProperty(scoreFish_s, _xscale , (((lastCatchedFish == 5) || (lastCatchedFish == 11)) ? 55 : 100));
setProperty(scoreFish_s, _yscale , (((lastCatchedFish == 5) || (lastCatchedFish == 11)) ? 55 : 100));
var _local1 = new Color("scoreFish_s");
_local1.setRGB(0);
setProperty(scoreFish_s, _x , 390 + Math.floor(getProperty(scoreFish_s, _width) / 2));
setProperty(scoreFish_s, _y , ((lastCatchedFish == 5) ? 100 : 110));
setProperty(scoreFish_s, _alpha , 50);
duplicateMovieClip ("fish" + lastCatchedFish, "scoreFish", depths_scorez++);
scoreFish.gotoAndStop("right");
setProperty(scoreFish, _xscale , (((lastCatchedFish == 5) || (lastCatchedFish == 11)) ? 55 : 100));
setProperty(scoreFish, _yscale , (((lastCatchedFish == 5) || (lastCatchedFish == 11)) ? 55 : 100));
setProperty(scoreFish, _x , 385 + Math.floor(getProperty(scoreFish, _width) / 2));
setProperty(scoreFish, _y , scoreFish_s._y - 5);
setProperty(scoreFish, _alpha , 90);
}
function hideCombo() {
if (typeof(scoreFish) == "movieclip") {
removeMovieClip("scoreFish");
}
if (typeof(scoreFish_s) == "movieclip") {
removeMovieClip("scoreFish_s");
}
}
function showBonus() {
ignorePress = 1;
trace(scorez_t);
if (scorez_t != undefined) {
setProperty(scorez_t, _visible , true);
setProperty(scorez_t, _alpha , 80);
}
var _local2 = 0;
while (_local2 < catchedFishs.length) {
var _local3 = ((catchedFishs[_local2] == "coin_t") ? "coin" : (catchedFishs[_local2].slice(0, catchedFishs[_local2].indexOf("_"))));
var props = new Object();
var props_s = new Object();
var new_name = ("scorez_t.scorez_fish" + (_local2 + 1));
var _local1 = scorez_t.attachMovie(_local3, new_name, depths_scorez++);
_local1._width = 70 / ((catchedFishs.length + 1) / 2.5);
_local1._yscale = _local1._xscale;
_local1._x = ((-(scorez_t._width / 2)) + ((scorez_t._width / (catchedFishs.length + 1)) * (_local2 + 1))) + (_local1._width / 2);
_local1.gotoAndStop("right");
_local1._visible = true;
_local2++;
}
fisherman.boat.gotoAndPlay("net");
}
function removeScorez() {
if (typeof(comboFish) == "movieclip") {
removeMovieClip("comboFish");
}
if (typeof(comboFish_s) == "movieclip") {
removeMovieClip("comboFish_s");
}
if (typeof(scorez_t) == "movieclip") {
removeMovieClip("scorez_t");
}
}
function removeCatchedFishs() {
var _local1 = 0;
while (_local1 < catchedFishs.length) {
removeMovieClip(catchedFishs[_local1]);
trace((_local1 + " : ") + catchedFishs[_local1]);
_local1++;
}
catchedFishs = new Array(0);
}
function hideBonus() {
var _local1 = _root;
ignorePress = 0;
hookIsBusy = 0;
waitForNet = 0;
coinCatched = 0;
removeCatchedFishs();
fisherman.boat.gotoAndStop("normal");
checkCombo = 1;
wait_short_hidebonus = function () {
var _local1 = _root;
trace("Interval : hideBonus()");
_local1.removeScorez();
clearInterval(_local1.hb_intervalID);
delete _local1.hb_intervalID;
};
_local1.hb_intervalID = setInterval(wait_short_hidebonus, waitTime_Bonus);
}
function resetFisherman() {
fisherman.boat.gotoAndStop("normal");
setProperty(line, _height , 20);
hookY = 63;
hookVector = HookSpeedDown[hookSpeedLevel];
confusion = 0;
hookIsBusy = 0;
hookMove = 0;
alreadyAttacking = 0;
}
function burnNewFish(fkind, fnum) {
var parentFish = ("fish" + fkind);
var currentFish = ((parentFish + "_") + fnum);
duplicateMovieClip (parentFish, currentFish, depths[fkind - 1]++);
var fy = 0;
if (fkind == 4) {
fy = myRandom_i(370, 390);
} else if (fkind == 10) {
fy = 365;
} else if (fkind == 12) {
fy = myRandom_i(150, 300);
} else {
fy = myRandom_i(100, 350);
}
var side = myRandom_i(0, 1);
setProperty(eval (currentFish), _y , fy);
Set(currentFish + ".catched", 0);
Set(currentFish + ".confused", 0);
Set(currentFish + ".attack", 0);
Set(currentFish + ".xLength", myRandom_i(20, 225));
Set(currentFish + ".yLength", myRandom_i(20, 140));
Set(currentFish + ".ySpeed", myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]));
if (side) {
setProperty(eval (currentFish), _x , ((start_burn == 0) ? (myRandom_i(50, 500)) : -49));
Set(currentFish + ".xSpeed", myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]));
eval (currentFish).gotoAndStop("right");
if (fkind == 5) {
Set(currentFish + ".xLength", 151);
Set(currentFish + ".vector", 1);
eval (currentFish).gotoAndPlay("right");
}
} else {
setProperty(eval (currentFish), _x , ((start_burn == 0) ? (myRandom_i(50, 500)) : 599));
Set(currentFish + ".xSpeed", -myRandom_d(minFishSpeed[fkind - 1], maxFishSpeed[fkind - 1]));
eval (currentFish).gotoAndStop("left");
if (fkind == 5) {
Set(currentFish + ".xLength", 399);
Set(currentFish + ".vector", -1);
Set(currentFish + ".xSpeed", Math.abs(eval (currentFish + ".xSpeed")));
eval (currentFish).gotoAndPlay("left");
}
}
var startX = myRandom_i(50, 500);
trace(currentFish);
if ((fkind == 12) || (fkind == 10)) {
var startX = ((90 + (fnum * 90)) + myRandom_i(-20, 20));
setProperty(eval (currentFish), _x , startX);
start_burn = 1;
}
indent = Number(indent) + 1;
}
function playSound(snd) {
trace("\tplaySound : " + snd);
if (sound_on) {
var _local1 = new Sound();
_local1.attachSound(snd);
_local1.start(0, 1);
}
}
function playMusic(name) {
var _local1 = name;
var _local2 = _root;
trace("\tplayMusic : " + _local1);
_local2.music = _local1;
if (music_on) {
stopAllSounds();
_local2.music_engine.gotoAndStop(1);
_local2.music_engine.gotoAndStop(_local1);
}
}
function fullScreen() {
var _local1 = _root;
_local1.playSound("snd_click");
if (_local1.full_screen) {
fscommand ("fullscreen", false);
_local1.fullscreen_mc.gotoAndStop(1);
} else {
fscommand ("fullscreen", true);
_local1.fullscreen_mc.gotoAndStop(2);
}
_local1.full_screen = !_local1.full_screen;
}
function initScores() {
gameType = ((_root.gameType == undefined) ? 0 : (_root.gameType));
hiScores = SharedObject.getLocal(("fisherman_" + gameType) + "_hiscores");
if (hiScores.data.hiscores == undefined) {
defaulHiscores();
}
hiScores.data.hiscores.sort(mySort);
hiScores.data.hiscores.length = 10;
}
function defaulHiscores() {
hiScores.data.hiscores = new Array();
var _local2 = new Array("Alex", "Peter", "Anna", "Georege", "Nicole", "Slava", "Mike", "Eclipse", "Junior", "JC Crab", "PopLoop", "September");
var h = new Array();
var _local1 = 0;
while (_local1 < 10) {
h.push({name:_local2[random(_local2.length)], scores:random(60000)});
_local1++;
}
hiScores.data.hiscores = h;
}
function saveScores(scores, name) {
var _local1 = new Object();
_local1.scores = scores;
_local1.name = name;
hiScores.data.hiscores.push(_local1);
hiScores.data.hiscores.sort(mySort);
hiScores.data.hiscores.length = 10;
}
function saveScores2(scores, name) {
var _local3 = scores;
var _local2 = new Object();
_local2.scores = _local3;
_local2.name = name;
var _local1 = 0;
while (_local1 < hiScores.data.hiscores.length) {
if ((hiScores.data.hiscores[_local1].scores == _local3) && (hiScores.data.hiscores[_local1].name == "")) {
hiScores.data.hiscores[_local1] = _local2;
hiScores.data.hiscores.sort(mySort);
hiScores.data.hiscores.length = 10;
return(true);
}
_local1++;
}
return(undefined);
}
function mySort(a, b) {
if (a.scores == b.scores) {
return(0);
}
return(((a.scores > b.scores) ? -1 : 1));
}
function showHiScores() {
hiscores_name = "";
hiscores_score = "";
var _local1 = 0;
while (_local1 < 10) {
hiscores_name = hiscores_name + ((((_local1 + 1) + ". ") + hiScores.data.hiscores[_local1].name) + newline);
hiscores_score = hiscores_score + (hiScores.data.hiscores[_local1].scores + newline);
_local1++;
}
}
function checkHiScores() {
if (TotalScore <= hiScores.data.hiscores[9].scores) {
return(false);
}
return(true);
}
function commit() {
if (username == "") {
username = "Unnamed";
}
if (username.length > 24) {
username.length = 24;
}
saveScores(TotalScore, username);
showHiScores();
}
function getHSPos(value) {
var _local3 = value;
var _local2 = hiScores.data.hiscores;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].scores < _local3) {
_local1++;
return(_local1);
}
_local1++;
}
return(undefined);
}
function initKey() {
var _local1 = _root;
globalListener = new Object();
globalListener.onKeyDown = function () {
var _local1 = _root;
if (Key.isDown(32)) {
_local1.onManok();
}
if (Key.isDown(19)) {
if (_currentframe != 27) {
return;
}
if (!_local1.pause) {
_local1.pauseStart = getTimer();
_local1.pause = true;
_local1.pause_mc.gotoAndStop(2);
} else {
_local1.pause = false;
_local1.lastTime = _local1.pauseStart;
_local1.pause_mc.gotoAndStop(1);
}
}
if (Key.isDown(17)) {
switch (Key.getCode()) {
case 77 :
_local1.money = _local1.money + 10000;
return;
case 71 :
_local1.launchTime = 1;
return;
case 84 :
_local1.launchTime = _local1.launchTime + 20;
return;
case 83 :
_local1.TotalScore = _local1.TotalScore + 100;
return;
case 70 :
_local1.fps._visible = !_local1.fps._visible;
return;
case 80 :
_local1.pauseStart = getTimer();
_local1.pause = !pause;
}
}
};
globalListener.onKeyUp = function () {
var _local1 = _root;
if ((Key.getCode() == 18) && (Key.isDown(13))) {
_local1.fullScreen();
}
if (Key.getCode() == 13) {
if (!(_local1._currentframe === 98)) {
} else if (_local1.new_name._visible == false) {
} else {
_local1.saveScores2(_local1.TotalScore, _local1.new_name.str.text);
_local1.showHiScores();
_local1.new_name._visible = false;
_local1.TotalScore = 0;
}
}
};
Key.removeListener(globalListener);
Key.addListener(globalListener);
}
function init() {
pause = false;
sound_on = ((sound_on == undefined) ? true : (sound_on));
music_on = ((music_on == undefined) ? true : (music_on));
playMusic("music_start");
currentLevel = 1;
GameLevel = 1;
LengthLevel = 0;
StrengthLevel = 0;
lineStrength = strengthPounds[StrengthLevel];
lineLength = lengthFeets[LengthLevel];
TotalScore = 0;
TotalFish = 0;
hookB = 1;
fxManok_buy = 0;
full_screen = 0;
hookSpeedLevel = 0;
motorOn = 0;
money = 0;
allCatchedFishs = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
var waitTime_Titles = 2000;
var waitTime_Bonus = 400;
var waitTime_EndLevel = 2500;
var BoatAccel = 0.03;
var thrust = 0.25;
var decay = 0.98999;
var maxSpeed = 5;
var motor_BoatAccel = 0.07;
var motor_thrust = 0.5;
var motor_decay = 0.7;
var motor_maxSpeed = 8;
var motorCost = 1000;
var MaxLevelTime = 60;
var MaxConfuseTime = 5;
var HookSpeedDown = new Array(5, 12, 20);
var HookSpeedUp = new Array(-12, -20, -25);
var speedCost = new Array(0, 80, 150);
var levelMask = new Array(7);
levelMask[0] = new Array(4, 3, 0, 2, 0, 0, 0, 1, 0, 3, 0, 0);
levelMask[1] = new Array(5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
levelMask[2] = new Array(2, 3, 0, 0, 2, 1, 0, 0, 1, 0, 0, 1);
levelMask[3] = new Array(2, 2, 3, 0, 0, 2, 3, 0, 0, 0, 0, 0);
levelMask[4] = new Array(0, 1, 1, 0, 5, 0, 0, 1, 0, 1, 0, 0);
levelMask[5] = new Array(2, 0, 2, 2, 0, 2, 0, 2, 0, 1, 0, 2);
levelMask[6] = new Array(4, 0, 6, 4, 0, 1, 0, 0, 0, 0, 0, 0);
levelMask[6] = new Array(1, 1, 2, 4, 0, 1, 0, 2, 0, 1, 1, 0);
levelMask[7] = new Array(1, 1, 0, 2, 0, 1, 0, 0, 0, 2, 3, 0);
var goalMask = new Array(3, 3, 3, 4, 5, 2, 7, 4, 3);
var strengthMask = new Array(0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4);
var strengthFish = new Array(0, 25, 60, 170, 300);
var strengthPounds = new Array(5, 10, 25, 100, 200);
var lengthFish = new Array(0, 25, 50, 130, 250);
var lengthFeets = new Array(9, 12, 14, 17, 21);
var minFishSpeed = new Array(0.5, 1, 0.5, 0.25, 0.02, 0.5, 2, 0.5, 2, 0.5, 1, 0);
var maxFishSpeed = new Array(2, 3, 7, 0.5, 0.03, 2, 5, 1.5, 5, 2, 7, 0.5);
var directionMask = new Array(1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1);
var diagonalMask = new Array(1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0);
var scoreMask = new Array(30, 45, 60, 90, 120, 200, 300, 500, 1000, 100, 5000);
var priseMask = new Array(3, 4, 6, 7, 9, 15, 20, 35, 50, 10, 150);
clearDepth();
var fxManok_timeStart = 10;
var fxManok_Object = new Object();
fxManok_Object.price = 1;
fxManok_Object.length = 5;
fxManok_Object.lengthMax = 140;
fxManok_Object.maxRadian = 270;
fxManok_Object.accel = 50;
fxManok_Object.convert = 1.25;
fxManok_Object.mRadian = 1.57;
var shop_engine = new Object();
shop_engine.hook = new Array(10, 35, 85, 150);
shop_engine.manok = 50;
gameType1_levelMask = new Array(4, 3, 4, 2, 3, 1, 2, 1, 0, 3, 0, 0);
gameType1_time = 60;
gameType1_LengthLevel = 4;
gameType1_StrengthLevel = 4;
gameType1_hookSpeedLevel = 2;
gameType1_hookB = 5;
shop_engine.text = new Object();
shop_engine.text.hook = new Object();
shop_engine.text.hook.name = "Fish Hooks";
shop_engine.text.hook.info = "The more fish hooks you have, the more fishes you can pick up at once. Buy additional hooks and you'll become more efficient fisherman.";
shop_engine.text.hook.desc = "<p align='center'><b>History</b></p><p>20,000 years ago, the invention of the fish hook marked the beginning of sport fishing. The first hooks were made of wood or bones. As technology improved, so did the hooks. Records show that copper hooks were made in Banchen 7,000 years ago and artificial flies were used in Egypt 4,000 years ago. Fishing was also a popular form of entertainment in ancient China.\nToday, modern materials and manufacturing techniques have resulted in hundreds of styles of extremely high quality hooks, designed for specific types of fish and fishing methods.</p>";
shop_engine.text.leska_length = new Object();
shop_engine.text.leska_length.name = "Fishing-Line Length";
shop_engine.text.leska_length.info = "Increases lenght of fishing line what allows you to catch a deep-water fish.";
shop_engine.text.leska_length.desc = "<p align='center'><b>Fishing-Line Length</b></p><p>In early 1900s fishing lines were made from linen, silk and cotton. Modern fishing lines are almost entirely made from artificial substances, including nylon, polyethylene and Dacron. The most common kind is monofilament, made of a single strand. There are also cofilament and fused lines.</p>";
shop_engine.text.leska_strength = new Object();
shop_engine.text.leska_strength.name = "Fishing-Line";
shop_engine.text.leska_strength.info = "<p align='center'><b>Maxima Green Mist</b></p><p>This object will allow you to catch heavier fish.</p>";
shop_engine.text.leska_strength.desc = "<p align='center'><b>Maxima's popular Green Mist monofilament fishing line is back!</b></p><br/><p>This super strong, super durable line is available exclusively in large capacity Service Spools. Manufactured under Maxima's world renowned standards for quality, Green Mist is designed especially for salt water fishing. It offers the ultimate in quality, abrasion resistance and knot strength. The Green Mist color blends perfectly in salt water, becoming invisible to any and all fish. Green Mist is also easy to see above the water's surface, allowing you to easily monitor trolling lines and baits.</p>";
shop_engine.text.leska_speed = new Object();
shop_engine.text.leska_speed.name = "Spinning Reel";
shop_engine.text.leska_speed.info = "<p align='center'></p><p>It will increase the speed of picking up the fish.</p>";
shop_engine.text.leska_speed.desc = "<p align='center'><b>Shimano Aero Symetre Spinning Reel</b></p><br/><p>High-performance features like a FluiDrive gear system, a lightweight slim design aluminum frame and four stainless steel bearings provide efficient operation. Aluminum Aerowrap spool design with DynaBalance rotor wraps line tightly without annoying loops. Super Stopper II anti-reverse. Positive click bail and integral InnerBail assure no-fail performance.</p>";
shop_engine.text.manok = new Object();
shop_engine.text.manok.name = "FishMAX";
shop_engine.text.manok.info = "FishMax allures to itself a fish. To activate it just press <font color='#FF0000'><b>spacebar</b></font>. After activation the indicator of time as soon as it will reach 0 will appear, FishMax is deactivated. You have the right to use at one level once (after purchase).";
shop_engine.text.manok.desc = "<p align='center'><b>FishMAX</b></p><p>FishMAX generates four of the five sensory stimulants that attract fish! Attracting more and larger fish can be accomplished by using more of the fishes natural sensory attributes and can be attracted more readily. FishMAX reacts as a catalyst by generation these functions to produce a natural attraction to the fish.</p>";
shop_engine.text.motor = new Object();
shop_engine.text.motor.name = "Mercury Outboards";
shop_engine.text.motor.desc = "<p align='center'><b>Mercury 135 OptiMax</b></p><p>Four back-to-back years of flawless performance (and top honors) at the BASS Masters Classic. Countless tournament wins. Endless racing victories. No wonder it's the power of choice for more of the world's top professional anglers. And the power you can count on for top performance. </p><h2>BUILT TO DOMINATE. PERFORMANCE TO THE MAX. </h2><p>But there's more to the story than just speed. Thanks to its unique 2-stage direct fuel injection process, OptiMax can deliver an amazing 45 percent better fuel economy than traditional 2-Strokes. And all with approximately 82 percent lower emissions, so you get quiet, smoke-free operation. Which is why OptiMax continues to be the power more pros demand. OptiMax also provides reliable turn-key starts, misfire-free running, instant throttle response - for more control and maneuverability - and low idle speed - for easier shifting, trolling and docking.</p>";
shop_engine.text.motor.info = "<p><font size='10'><li> Propshaft Horsepower: 135-hp (101 kW) </li><li> Max RPM (W.O.T.): 5000-5600 </li><li> Cylinders/Configuration: 60 degree V-6 </li><li> Displacement: 153 cu.in. (2507cc) </li><li> Bore & Stroke: 3.5 in. x 2.65 in. (89mm x 67mm) </li><li> Fuel Induction System: 2-Stage Direct </li><li> Fuel Injection </li><li> Exhaust System: Through Prop </li><li> Lubrication System: Electronic multi-point variable ratio oil injection </li><li> Cooling System: Water cooled with thermostat and pressure controlled </li><li> Ignition System: Digital Inductive </li><li> Starting System: Electric (turnkey) </li><li> Alternator: Belt-driven 60 amp (756 watt) with voltage regulator</li><li> Gear Ratio: 2.0:1 </li><li> Gear Shift: F-N-R </li><li> Steering: Remote </li><li> Trim System: Power Trim </li><li> Shaft Length: 20 in. (508mm) </li><li> Weight-Dry: 443 lbs. (201 kg) </li><li> Operator Warning Systems: Overheat, low oil level, water in fuel, </li><li> check engine </li><li> Propeller Options: Black Max, Vengeance, Laser II, Mirage Plus, Tempest Plus, Trophy Plus, High Five, Offshore P.S., QA3, QSS, QS2000, QS3000 </li></font></p>";
downloadURL = "http://www.doublegames.com/fishing-trip.html?fr=fishingtripon";
buyURL = "http://www.doublegames.com/buy-fishing-trip-game.html?fr=fishingtripon";
moreGamesURL = "http://www.doublegames.com/?fr=fishingtripon";
var mx;
var comboGoal;
var combo;
var hookIsBusy;
var lastCatchedFish;
var currentLevel;
var indent;
var lastTime;
var launchTime;
var timeBonus;
var confusion;
var GameLevel;
var LengthLevel;
var StrengthLevel;
var TotalScore;
var TotalFish;
var lineStrength;
var LineLength;
var ignorePress;
var hookMove;
var coinCatched;
var hookVector;
var hookY;
var catchedFish;
var catchedFishs;
var waitForNet;
var checkCombo;
var noBurnFish;
var sharkAttack;
var alreadyAttacking;
var lastPosX;
var fxManok;
var fxManok_buy = 0;
var fxManok_time;
var fxManok_up;
var allCatchedFishs;
var comboCount;
var pauseStart;
var fishOnHook;
var tempScores;
var flag;
var tempCombo;
var lastFish;
stop();
init();
initKey();
initScores();
Instance of Symbol 170 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(15000);
}
Instance of Symbol 173 MovieClip "fps" in Frame 1
onClipEvent (load) {
var elapsedTime = new Array();
_visible = false;
}
onClipEvent (enterFrame) {
elapsedTime.push(getTimer());
if (elapsedTime.length > 10) {
elapsedTime.shift();
elapsedAverage = (elapsedTime[elapsedTime.length - 1] - elapsedTime[0]) / elapsedTime.length;
fps = Math.ceil(1000 / elapsedAverage);
text = fps;
}
}
Instance of Symbol 177 MovieClip "sound_engine" in Frame 1
onClipEvent (load) {
if (_root.sound_on) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 208 MovieClip in Frame 5
onClipEvent (load) {
var scroller = this._parent.inst_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll - 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 214 MovieClip in Frame 5
onClipEvent (load) {
var scroller = this._parent.inst_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll + 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 221 MovieClip "inst_scr" in Frame 5
onClipEvent (load) {
field = this._parent.instructions;
}
Instance of Symbol 250 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 250 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (mouseDown) {
return(undefined);
}
Frame 13
hideParentFishes();
viewStatus();
stop();
Instance of Symbol 343 MovieClip in Frame 13
onClipEvent (load) {
if (_root.GameLevel > 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 348 MovieClip in Frame 13
onClipEvent (load) {
if (_root.GameLevel > 1) {
this._visible = false;
_root.btn_start_level_t1._visible = false;
}
}
Instance of Symbol 42 MovieClip [fish10] "fish10" in Frame 13
/* no clip actions */
Frame 15
function shop_showBuy() {
buy_btn._visible = true;
buy_mc._visible = true;
}
function shop_hideBuy() {
buy_btn._visible = false;
buy_mc._visible = false;
}
function shop_showCost() {
cost_title._visible = true;
cost_price._visible = true;
}
function shop_hideCost() {
cost_title._visible = false;
cost_price._visible = false;
}
function buy() {
var _local1 = _root;
switch (_local1.shop_engine.select) {
case "hook" :
_local1.hookB++;
trace("_root.hookB=" + _local1.hookB);
shop_hook.gotoAndStop(_local1.hookB);
break;
case "manok" :
_local1.shop_manok.gotoAndStop(2);
_local1.fxManok_buy = 1;
break;
case "leska" :
LengthLevel++;
break;
case "strength" :
StrengthLevel++;
_local1.status_wnd._visible = true;
viewStatus();
break;
case "speed" :
hookSpeedLevel++;
shop_speed.gotoAndStop(hookSpeedLevel + 1);
break;
case "motor" :
BoatAccel = motor_BoatAccel;
thrust = motor_thrust;
decay = motor_decay;
maxSpeed = motor_maxSpeed;
motorOn = 1;
shop_motor.gotoAndStop(2);
}
_local1.money = _local1.money - parseInt(cost.slice(1));
_local1.all_money = "$" + _local1.money;
_local1.shop_engine.old_item.setItem(_local1.shop_engine.select);
}
MovieClip.prototype.setItem = function (name) {
var _local1 = _root;
var _local3 = this;
if ((_local1.shop_engine.old_item != undefined) && (_local3 != _local1.shop_engine.old_item)) {
_local1.shop_engine.old_item.gotoAndStop(1);
}
_local1.playSound("snd_click");
_local3.gotoAndStop(2);
_local1.shop_engine.old_item = _local3;
_local1.shop_engine.select = name;
switch (name) {
case "hook" :
var _local2 = _local1.shop_engine.hook;
_local1.cost = (_local1.currentLevel * 2) + _local2[(((_local1.hookB - 1) > (_local2.length - 1)) ? (_local2.length - 1) : (_local1.hookB - 1))];
var add_info = (("<br><br><p align='center'><font color='#FFCC33'>You can catch " + _local1.hookB) + " fish at once.</font></p>");
_local1.info.htmlText = _local1.shop_engine.text.hook.info + add_info;
if (_local1.hookB > 4) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if ((_local1.hookB > 4) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
_local1.cost = "$" + _local1.cost;
break;
case "manok" :
_local1.cost = _local1.currentLevel + _local1.shop_engine.manok;
if (_local1.fxManok_buy == 1) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if ((_local1.fxManok_buy == 1) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
_local1.cost = "$" + _local1.cost;
break;
case "leska" :
_local1.lineStrength = _local1.strengthPounds[_local1.StrengthLevel];
_local1.lineLength = _local1.lengthFeets[_local1.LengthLevel];
_local1.cost = _local1.lengthFish[_local1.LengthLevel + 1];
var add_info = (("<br><br><p align='center'><font color='#FFCC33'>You have a fishing-line of length " + _local1.lineLength) + " feets.</font></p>");
_local1.info.htmlText = _local1.shop_engine.text.leska_length.info + add_info;
if ((_local1.LengthLevel + 2) > _local1.lengthFish.length) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if (((_local1.LengthLevel + 2) > _local1.lengthFish.length) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
if ((_local1.LengthLevel + 2) > _local1.lengthFish.length) {
_local1.shop_leska.gotoAndStop(2);
}
_local1.cost = "$" + _local1.cost;
break;
case "strength" :
_local1.lineStrength = _local1.strengthPounds[_local1.StrengthLevel];
_local1.lineLength = _local1.lengthFeets[_local1.LengthLevel];
_local1.cost = _local1.strengthFish[_local1.StrengthLevel + 1];
var add_info = (("<br><br><p align='center'><font color='#FFCC33'>You have a fishing-line of strength " + _local1.lineStrength) + " pounds.</font></p>");
_local1.info.htmlText = _local1.shop_engine.text.leska_strength.info + add_info;
if ((_local1.StrengthLevel + 2) > _local1.strengthFish.length) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if (((_local1.StrengthLevel + 2) > _local1.strengthFish.length) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
if ((_local1.StrengthLevel + 2) > _local1.strengthFish.length) {
_local1.shop_strength.gotoAndStop(2);
}
_local1.cost = "$" + _local1.cost;
break;
case "speed" :
_local1.cost = _local1.speedCost[_local1.hookSpeedLevel + 1];
if ((_local1.hookSpeedLevel + 2) > _local1.HookSpeedUp.length) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if (((_local1.hookSpeedLevel + 2) > _local1.HookSpeedUp.length) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
_local1.cost = "$" + _local1.cost;
break;
case "motor" :
_local1.cost = _local1.motorCost;
if (_local1.motorOn == 1) {
_local1.shop_hideCost();
} else {
_local1.shop_showCost();
}
if ((_local1.motorOn == 1) || (_local1.money < _local1.cost)) {
_local1.shop_hideBuy();
} else {
_local1.shop_showBuy();
}
_local1.cost = "$" + _local1.cost;
}
info_scr.setPos(1);
info_scr.init();
desc_scr.setPos(1);
desc_scr.init();
};
name.text = "";
info.text = "";
cost = "";
info_scr.setPos(1);
info_scr.init();
desc_scr.setPos(1);
desc_scr.init();
scorez._visible = false;
playMusic("music_shop");
hideStatus();
shop_hideBuy();
var total_money = 0;
var i = 0;
while (i < allCatchedFishs.length) {
var f_num = (i + 1);
var total = allCatchedFishs[i];
var _money = (priseMask[i] * total);
eval ("scorez.fish" + i).gotoAndStop("right");
eval ("scorez.fish" + i).anim.gotoAndStop(1);
_root["scorez.count_f" + f_num] = total;
_root["scorez.total_f" + f_num] = (("x $" + priseMask[i]) + " = ") + _money;
total_money = total_money + _money;
if (total > 0) {
scorez._visible = true;
}
i++;
}
scorez.add_money = "Total: $" + total_money;
money = money + total_money;
all_money = "$" + money;
allCatchedFishs = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
Instance of Symbol 272 MovieClip "item1" in Frame 15
on (release) {
var hook = _root.shop_engine.text.hook;
_root.name.text = hook.name;
_root.info.htmlText = hook.info;
_root.desc.htmlText = hook.desc;
this.setItem("hook");
}
Instance of Symbol 272 MovieClip "item2" in Frame 15
on (release) {
var manok = _root.shop_engine.text.manok;
_root.name.text = manok.name;
_root.info.htmlText = manok.info;
_root.desc.htmlText = manok.desc;
_root.shop_hideBuy();
this.setItem("manok");
}
Instance of Symbol 272 MovieClip "item3" in Frame 15
on (release) {
var leska = _root.shop_engine.text.leska_length;
_root.name.text = leska.name;
_root.desc.htmlText = leska.desc;
this.setItem("leska");
}
Instance of Symbol 272 MovieClip "item5" in Frame 15
on (release) {
var leska = _root.shop_engine.text.leska_speed;
_root.info.htmlText = leska.info;
_root.name.text = leska.name;
_root.desc.htmlText = leska.desc;
this.setItem("speed");
}
Instance of Symbol 272 MovieClip "item4" in Frame 15
on (release) {
var leska = _root.shop_engine.text.leska_strength;
_root.name.text = leska.name;
_root.desc.htmlText = leska.desc;
this.setItem("strength");
}
Instance of Symbol 272 MovieClip "item6" in Frame 15
on (release) {
var motor = _root.shop_engine.text.motor;
_root.name.text = motor.name;
_root.info.htmlText = motor.info;
_root.desc.htmlText = motor.desc;
this.setItem("motor");
}
Instance of Symbol 301 MovieClip "shop_motor" in Frame 15
onClipEvent (load) {
if (_root.motorOn) {
this.gotoAndStop(2);
}
}
Instance of Symbol 282 MovieClip "shop_hook" in Frame 15
onClipEvent (load) {
this.gotoAndStop(_root.hookB);
}
Instance of Symbol 288 MovieClip "shop_leska" in Frame 15
onClipEvent (load) {
if ((_root.LengthLevel + 2) > _root.lengthFish.length) {
this.gotoAndStop(2);
}
}
Instance of Symbol 285 MovieClip "shop_manok" in Frame 15
onClipEvent (load) {
if (_root.fxManok_buy == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 292 MovieClip "shop_strength" in Frame 15
onClipEvent (load) {
if ((_root.StrengthLevel + 2) > _root.strengthFish.length) {
this.gotoAndStop(2);
}
}
Instance of Symbol 298 MovieClip "shop_speed" in Frame 15
onClipEvent (load) {
this.gotoAndStop(_root.hookSpeedLevel + 1);
}
Instance of Symbol 208 MovieClip in Frame 15
onClipEvent (load) {
var scroller = this._parent.desc_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll - 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 214 MovieClip in Frame 15
onClipEvent (load) {
var scroller = this._parent.desc_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll + 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 208 MovieClip in Frame 15
onClipEvent (load) {
var scroller = this._parent.info_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll - 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 214 MovieClip in Frame 15
onClipEvent (load) {
var scroller = this._parent.info_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll + 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 324 MovieClip "info_scr" in Frame 15
onClipEvent (load) {
field = this._parent.info;
}
Instance of Symbol 324 MovieClip "desc_scr" in Frame 15
onClipEvent (load) {
field = this._parent.desc;
}
Instance of Symbol 395 MovieClip "status_wnd" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Frame 21
target = "Catch " add goalMask[GameLevel - 1];
Instance of Symbol 250 MovieClip "pause_mc" in Frame 21
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 22
_root.hideParentFishes();
Frame 24
function wait_short() {
trace("Interval : wait_short.as");
play();
clearInterval(intervalID);
delete intervalID;
}
stop();
intervalID = setInterval(wait_short, waitTime_Titles + 500);
Frame 25
function fxManok_init() {
fxManok_Physics();
manok._visible = true;
manok_line._visible = true;
fxManok_Object.length = 5;
}
function fxManok_Physics() {
var _local1 = _root;
if (fxManok == 0) {
} else {
var FMX = (_local1.fisherman.boat_point.x - _local1.manok._x);
var _local3 = _local1.fisherman.boat_point.y - _local1.manok._y;
var _local2 = Math.atan2(_local3, FMX) / (Math.PI/180);
if ((_local2 >= 0) && (_local2 <= 360)) {
fxManok_Object.mRadian = _local2;
}
if (fxManok_Object.mRadian <= 180) {
fxManok_Object.mRadian = 180;
} else if (fxManok_Object.mRadian >= 350) {
fxManok_Object.mRadian = 350;
}
fxManok_Object.diffPos = (fxManok_Object.diffPos + ((fxManok_Object.maxRadian - fxManok_Object.mRadian) / fxManok_Object.accel)) / fxManok_Object.convert;
fxManok_Object.mRadian = fxManok_Object.mRadian + fxManok_Object.diffPos;
_local1.manok._x = _local1.fisherman.boat_point.x + (Math.cos(fxManok_Object.mRadian * (Math.PI/180)) * fxManok_Object.length);
_local1.manok._y = _local1.fisherman.boat_point.y - (Math.sin(fxManok_Object.mRadian * (Math.PI/180)) * fxManok_Object.length);
_local1.manok._rotation = (fxManok_Object.mRadian - 270) * -1;
_local1.manok_line._x = _local1.fisherman.boat_point.x;
_local1.manok_line._y = _local1.fisherman.boat_point.y;
_local1.manok_line._xscale = _local1.manok._x - _local1.manok_line._x;
_local1.manok_line._yscale = _local1.manok._y - _local1.manok_line._y;
if ((fxManok_Object.length < fxManok_Object.lengthMax) && (fxManok_up == 0)) {
fxManok_Object.length = fxManok_Object.length + 1.5;
} else if (fxManok_up == 1) {
if (fxManok_Object.length <= 5) {
_local1.manok._visible = false;
_local1.manok_line._visible = false;
fxManok = 0;
return(0);
}
fxManok_Object.length = fxManok_Object.length - 2.5;
}
}
return(undefined);
}
initLevel();
Instance of Symbol 454 MovieClip "scorez" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Frame 26
fxManok_Physics();
mainProcess();
Instance of Symbol 473 MovieClip "hook" in Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.hookB);
}
Instance of Symbol 475 MovieClip "manok" in Frame 26
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 477 MovieClip "manok_line" in Frame 26
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
this._x = _root.fisherman._x + 42;
this._y = _root.fisherman._y + 37;
this._xscale = _root.manok._x - this._x;
this._yscale = _root.manok._y - this._y;
}
Instance of Symbol 496 MovieClip "fisherman" in Frame 26
onClipEvent (load) {
var boat_point;
var oldPos;
var Pos;
var newPos = this._x;
this.boat.gotoAndStop("normal");
}
onClipEvent (enterFrame) {
boat_point = new Object();
boat_point.x = _root.fisherman.boat._x;
boat_point.y = _root.fisherman.boat._y;
localToGlobal(boat_point);
boat_point.x = boat_point.x + 42;
boat_point.y = boat_point.y + 37;
oldPos = newPos;
newPos = this._x;
Pos = (newPos - oldPos) / 2;
_root.fxManok_Object.mRadian = _root.fxManok_Object.mRadian - Pos;
}
Frame 27
gotoAndPlay ("level_play");
Frame 28
function wait_endLevel() {
trace("gameType : " + _root.gameType);
hideCombo();
switch (_root.gameType) {
case 0 :
if (currentLevel == 7) {
gotoAndPlay ("game_over");
} else {
gotoAndStop ("shop");
}
break;
case 1 :
gotoAndPlay ("start");
break;
case 2 :
gotoAndPlay ("start");
}
clearInterval(intervalID);
delete intervalID;
}
stop();
_quality = "HIGH";
removeScorez();
showCombo();
GameLevel = ((GameLevel < _root.levelMask.length) ? (Number(GameLevel) + 1) : 1);
currentLevel = Number(currentLevel) + 1;
intervalID = setInterval(wait_endLevel, waitTime_EndLevel);
Frame 37
function wait_short() {
trace("Interval : wait_short.as");
play();
clearInterval(intervalID);
delete intervalID;
}
playMusic("music_hiscores");
_quality = "HIGH";
stop();
intervalID = setInterval(wait_short, waitTime_Titles + 500);
Frame 59
gotoAndStop ("start");
Frame 60
function wait_short() {
trace("Interval : wait_short.as");
play();
clearInterval(intervalID);
delete intervalID;
}
playMusic("music_hiscores");
_quality = "HIGH";
stop();
intervalID = setInterval(wait_short, waitTime_Titles + 500);
Frame 94
gotoAndStop ("start");
Frame 95
stop();
Frame 96
initScores();
if (!checkHiScores()) {
gotoAndStop ("hiscores_show");
new_name._visible = false;
} else {
gotoAndStop ("hiscores_show");
trace(getHSPos(TotalScore));
new_name._y = new_name._y + ((getHSPos(TotalScore) - 1) * 15);
new_name._visible = true;
saveScores(TotalScore, "");
}
showHiScores();
if (gameType == 0) {
hisc_1_mc.gotoAndStop(2);
hisc_2_mc.gotoAndStop(1);
hisc_1_btn._visible = false;
hisc_2_btn._visible = true;
} else {
hisc_1_mc.gotoAndStop(1);
hisc_2_mc.gotoAndStop(2);
hisc_1_btn._visible = true;
hisc_2_btn._visible = false;
}
Instance of Symbol 594 MovieClip "new_name" in Frame 96
onClipEvent (load) {
Selection.setFocus("str");
}
Frame 97
_root.hideStatus();
Frame 98
stop();
fscommand ("trapallkeys", true);
fscommand ("fullscreen", false);
Instance of Symbol 616 MovieClip in Frame 98
onClipEvent (load) {
stop();
i = 1;
mytime = new Date();
startload = _root.getBytesLoaded();
starttime = (((mytime.getHours() * 3600000) + (mytime.getMinutes() * 60000)) + (mytime.getSeconds() * 1000)) + mytime.getMilliseconds();
}
onClipEvent (enterFrame) {
var l = _level0.getBytesLoaded();
var t = _level0.getBytesTotal();
var pv = int((l / t) * 100);
if (pv >= 100) {
pv = 100;
}
if (l >= t) {
_parent.play();
}
this.gotoAndStop(pv);
var mytime = new Date();
var difftime = (((((mytime.getHours() * 3600000) + (mytime.getMinutes() * 60000)) + (mytime.getSeconds() * 1000)) + mytime.getMilliseconds()) - starttime);
if ((i * 500) < difftime) {
i++;
speed = int((10 * ((l - startload) / 1024)) / (difftime / 1000)) / 10;
}
_parent.display = ((("SPEED: " + speed) + " kb/s LOADED: ") + pv) + "%";
}
Symbol 17 MovieClip [available_hint] Frame 16
stop();
Symbol 19 MovieClip [coin] Frame 4
gotoAndPlay ("up");
Symbol 40 MovieClip Frame 22
stop();
Symbol 41 MovieClip Frame 16
stop();
Symbol 42 MovieClip [fish10] Frame 11
gotoAndPlay ("up");
Symbol 47 MovieClip [fish11] Frame 35
gotoAndPlay ("up");
Symbol 53 MovieClip [fish9] Frame 23
gotoAndPlay ("up");
Symbol 61 MovieClip [fish8] Frame 23
gotoAndPlay ("up");
Symbol 71 MovieClip [fish7] Frame 19
gotoAndPlay ("up");
Symbol 76 MovieClip [fish6] Frame 19
gotoAndPlay ("up");
Symbol 78 MovieClip [fish5] Frame 34
stop();
Symbol 78 MovieClip [fish5] Frame 68
stop();
Symbol 78 MovieClip [fish5] Frame 77
gotoAndPlay ("up");
Symbol 84 MovieClip [fish4] Frame 4
gotoAndPlay ("up");
Symbol 90 MovieClip [fish3] Frame 4
gotoAndPlay ("up");
Symbol 96 MovieClip [fish2] Frame 4
gotoAndPlay ("up");
Symbol 103 MovieClip [fish1] Frame 4
gotoAndPlay ("up");
Symbol 160 Button
on (release) {
getURL (downloadURL, "_blank");
}
Symbol 162 Button
on (release) {
getURL (buyURL, "_blank");
}
Symbol 164 Button
on (release) {
getURL (moreGamesURL, "_blank");
}
Symbol 166 Button
on (release) {
_root.playSound("snd_click");
_root.gotoAndStop("choose_type");
}
Symbol 167 Button
on (release) {
_root.playSound("snd_click");
_root.playMusic("music_info");
_root.gotoAndStop("instructions");
}
Symbol 168 Button
on (rollOver) {
_root.attachMovie("available_hint", "available_hint", _root.getNextHighestDepth());
_root.available_hint._x = btn_highscores._x;
_root.available_hint._y = btn_highscores._y + 10;
_root.available_hint.gotoAndPlay(1);
}
on (rollOut) {
if (_root.available_hint != undefined) {
_root.available_hint.removeMovieClip();
}
}
Symbol 175 Button
on (release) {
_root.playSound("snd_click");
if (_root.sound_on) {
nextFrame();
_root.sound_on = false;
} else {
prevFrame();
_root.sound_on = true;
}
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 179 Button
on (release) {
_root.playSound("snd_click");
if (_root.music_on) {
nextFrame();
stopAllSounds();
_root.music_on = false;
this._parent.gotoAndStop(1);
} else {
prevFrame();
_root.music_on = true;
_root.playMusic(_root.music);
}
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Instance of Symbol 181 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
if (_root.music_on) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 207 Button
on (press) {
_root.playSound("snd_click");
mouse_down = true;
}
on (release, releaseOutside) {
mouse_down = false;
}
Symbol 213 Button
on (press) {
_root.playSound("snd_click");
mouse_down = true;
}
on (release, releaseOutside) {
mouse_down = false;
}
Symbol 219 Button
on (press) {
dragging = true;
}
on (release, releaseOutside) {
dragging = false;
}
Symbol 221 MovieClip Frame 1
function drag() {
if ((_ymouse > line._y) && (_ymouse < (line._y + line._height))) {
scroller._y = _ymouse;
var _local1 = (_ymouse - line._y) / line._height;
field.scroll = int(_local1 * field.maxscroll);
if (field.scroll >= field.maxscroll) {
field.scroll = field.maxscroll;
}
} else if (_ymouse <= line._y) {
setPos(1);
} else if (_ymouse >= (line._y + line._height)) {
setPos(field.maxscroll);
}
}
function setPos(num) {
var _local2 = num;
var _local1 = ((((_local2 == 1) ? 0 : (_local2)) * line._height) / field.maxscroll) + line._y;
scroller._y = _local1;
field.scroll = _local2;
}
function init() {
if (field.scroll == field.maxscroll) {
scroller._visible = false;
} else {
scroller._visible = true;
}
}
Instance of Symbol 220 MovieClip "scroller" in Symbol 221 MovieClip Frame 1
onClipEvent (mouseMove) {
if (dragging) {
this._parent.drag();
updateAfterEvent(mouseMove);
}
}
Symbol 225 Button
on (release) {
gotoAndStop ("interface_gen");
}
Symbol 226 Button
on (release) {
gotoAndStop ("fishs");
}
Symbol 227 Button
on (release) {
if (_root.info_select_fish && (_root.inst_fish != undefined)) {
_root.playSound("snd_click");
_root.inst_fish.gotoAndStop(1);
} else {
_root.playSound("snd_click");
_root.hideStatus();
_root.gotoAndStop("start");
}
}
Symbol 248 Button
on (release) {
if (_parent._currentframe != 26) {
return(undefined);
}
if (!_root.pause) {
_root.pauseStart = getTimer();
_root.pause = true;
this.gotoAndStop(2);
} else {
_root.pause = false;
_root.lastTime = _root.pauseStart;
this.gotoAndStop(1);
}
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
stop();
Symbol 254 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 258 Button
on (release) {
gotoAndStop ("interface_game");
}
Symbol 259 Button
on (release) {
gotoAndStop ("interface_shop");
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
item1.onRollOver = (item2.onRollOver = (item3.onRollOver = (item4.onRollOver = (item5.onRollOver = (item6.onRollOver = function () {
desc.gotoAndStop(Number(this._name.substr(4, 1)) + 1);
})))));
item1.onRollOut = (item2.onRollOut = (item3.onRollOut = (item4.onRollOut = (item5.onRollOut = (item6.onRollOut = function () {
desc.gotoAndStop(1);
})))));
Instance of Symbol 42 MovieClip [fish10] "fish10" in Symbol 319 MovieClip Frame 10
/* no clip actions */
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 57
this._parent.nextStep();
Symbol 324 MovieClip Frame 1
function drag() {
if ((_ymouse > line._y) && (_ymouse < (line._y + line._height))) {
scroller._y = _ymouse;
var _local1 = (_ymouse - line._y) / line._height;
field.scroll = int(_local1 * field.maxscroll);
if (field.scroll >= field.maxscroll) {
field.scroll = field.maxscroll;
}
} else if (_ymouse <= line._y) {
setPos(1);
} else if (_ymouse >= (line._y + line._height)) {
setPos(field.maxscroll);
}
}
function setPos(num) {
var _local2 = num;
var _local1 = ((((_local2 == 1) ? 0 : (_local2)) * line._height) / field.maxscroll) + line._y;
scroller._y = _local1;
field.scroll = _local2;
}
function init() {
if (field.scroll == field.maxscroll) {
scroller._visible = false;
} else {
scroller._visible = true;
}
}
Instance of Symbol 220 MovieClip "scroller" in Symbol 324 MovieClip Frame 1
onClipEvent (mouseMove) {
if (dragging) {
this._parent.drag();
updateAfterEvent(mouseMove);
}
}
Symbol 325 MovieClip Frame 1
stop();
_root.info_select_fish = false;
var fadeFish = false;
var selectFish = new Object();
_root.fishNames = new Array("Gold Ram", "Smallmouth Bass", "Paradise fish", "Red Crab", "Squid", "Sole (Solea solea)", "Carp - quenn of coarse fish", "Brook Trout", "Yellow Tang-Hawaii", "Treasure Box ", "Porbeagle Shark");
_root.fishDesc = new Array(11);
_root.fishDesc[0] = "<p align='center'><b>Gold Ram</b></p><p>\tA most prevailing fish. You can catch it for easy. And due to the simple fishing you'll got a less money therefor. Gold Rams are not an overly aggressive fish. They do have personality like any cichlids, but lack the capability to inflict any real damage on most tank mates. Instances of rams injuring other fish, though not unheard of, are very rare. Market price $2-4</p>";
_root.fishDesc[1] = "<p align='center'><b>Smallmouth Bass</b></p><p>\tSmallmouth bass have been observed on spawning nests in June. Most spawning appears to be associated with shallow littoral areas (about 10 feet) which have pea size gravel. After spawning, adult smallmouth bass retreat to deeper water. Juvenile smallmouth bass remain in the protection afforded by boulders, cobble, and talus slopes. Juvenile smallmouth bass eat plankton, immature aquatic insects and crayfish. Adults eat mostly crayfish and fish. Market price $3-5</p>";
_root.fishDesc[2] = "<p align='center'><b>Paradise fish (Macropodus opercularis)</b></p><p>\tInhabits any kind of lowland habitats from heterogeneous structured margins or backwaters of large rivers to small streams and irrigation channels on farmland. Can colonize stagnant water bodies with very low oxygen content (air breather). Found in streams, paddy fields and ditches. Feeds on small aquatic animals including small fish. Market price $5-7</p>";
_root.fishDesc[3] = "<p align='center'><b>Red Crab</b></p><p>\tThe Red Crab is by far the most obvious of the 14 species of land crabs found on Christmas Island. Millions of these bright red land crabs live in their preferred shady sites all over the island.</p><p>\tBright red is the common colour but there are the occasional orange specimens and more rarely some purple animals.</p><p>\tThey are a big crab. An adult body shell (or carapace) may measure up to 116mm across. The carapace is round shouldered and encloses their lungs and gills. Their claws are usually of equal size unless one is a regrowing claw. Males grow larger overall than females, while females have a much broader abdomen and usually have smaller claws than males. However young crabs all have the characteristic narrow abdomen of the male. The broader female abdomen only becomes apparent in the third year of growth.</p><p>\tRed Crabs grow slowly, reaching about 40mm in carapace width after 4-5 years. They are sexually mature at this age and begin to participate in the breeding migrations. Market price $6-8</p>";
_root.fishDesc[4] = "<p align='center'><b>Squid</b></p><p>\tA file-like radula rams food down the throat and esophagus, which passes directly through the brain to the stomach. As an invertebrate, a squid has no bones. A feather-shaped blade, or gladius, helps support the body and serves as a site for muscle attachment. It is made of chitin, like your fingernails. Cartilage (tough, gristle-like tissue) surrounds a squid's brain. The ink congeals into a squid-like shape that holds the enemy's attention while the squid turns pale and jets away. Market price $8-10</p>";
_root.fishDesc[5] = "<p align='center'><b>Sole (Solea solea).</b></p><p>\tThe Sole is a nocturnal flatfish that can be caught close to the shore from sandy beaches as the name suggests it is sole shape in appearance with a hooked shape mouth, Baits: ragworm and lugworm, lugworm left to go stale is a common favourite. Market price $14-16</p>";
_root.fishDesc[6] = "<p align='center'><b>Carp - queen of coarse fish</b></p><p>\tIf the salmon is the king of freshwater fish, carp can claim the title of the queen. Its fighting capabilities and hardiness are legendary, yet the carp is also graceful and cautious, The widespread release of carp into stillwater fisheries has revolutionised coarse angling in Britain, be it for specimen-sized individuals or for much smaller and more obliging fish. Market price $19-21</b>";
_root.fishDesc[7] = "<p align='center'><b>Brook Trout</b></p><p>\tBrook Trout are an introduced fish species that were first stocked in the early 1900's. They are found in all stream systems and most major lakes where water quality is suitable. They are the most prevalent fish in both wilderness and non-wilderness high lakes. Brook Trout grow rapidly when conditions are right. They are also subject to stunting from overpopulation in some lakes. Insect larvae and nymphs make up a large part of their diet, so they are a logical favorite of fly fishers. Market price $34-36</p>";
_root.fishDesc[8] = "<p align='center'><b>Yellow Tang-Hawaii</b></p><p>\tThe Yellow Hawaiian Tang, also known as the Yellow Sailfin Tang, or Yellow Surgeonfish, has an oval bright yellow body. It is widespread throughout Hawaii to Indonesia and the Great Barrier Reef.</p><p>\tA 50 gallon or larger aquarium is necessary to provide plenty of swimming room. It is aggressive towards its own species, or Tangs in general, and it is best to keep only one per tank. If more than one tang is to be kept, introduce simultaneously.</p><p>\tAlthough Tangs will eat meaty foods along with the other fish in the aquarium, it is important that they are offered plenty of marine based seaweed and algae. This will strengthen their immune system, reduce aggression and improve their overall health. Offer dried seaweed tied to a rock or use a lettuce clip, and feed at least 3 times per week. Sea Veggies, Seaweed Salad and Ocean Nutrition are all ideal products and are very easy to use. Market price $49-51</p>";
_root.fishDesc[9] = "<p align='center'><b>Treasure Box </b></p><p>\tIn some lucky cases you can catch not only different fish but old treasures also. It's possible that gold is waiting for you for a long-long years. You have opportunity to get the hole gold or small piece of it only - it's depending of you luck and skill. But be careful - gold is a very heavy thing.</p>";
_root.fishDesc[10] = "<p align='center'><b>Porbeagle Shark</b></p><p>\tThe Porbeagle Shark is less common in Irish waters than it once was, largely due to commercial pressures. It prefers the cooler more northern waters of the North Atlantic and as such is available all year round. A comparatively short rotund shark, it can grow to > 500 lbs (220 kgs) in weight. All the larger sharks are typically caught using chumming... so patience is required! As a slow growing species with very little exchange or migration between the 'resident' populations in different areas, any fish killed takes a long time to be replaced - and these are a slower growing shark too compared with the Blue Shark - so again catch and release is strongly recommended to anglers. The name derives from the French for a Cornish village. Market price $149-151</p>";
var i = 1;
while (i < 12) {
var o = eval ("fish" + i);
o.num = i;
o.gotoAndStop("right");
o.anim.stop();
o.onEnterFrame = function () {
var _local1 = this;
if ((_local1._parent.fadeFish && (_local1._visible == true)) && (selectFish.mc != _local1)) {
_local1._alpha = _local1._alpha - 5;
if (_local1._alpha < 1) {
_local1._visible = false;
_local1._parent.nextFrame();
}
}
};
o.onRelease = function () {
var _local1 = this;
if (_local1._parent.selectFish.mc == undefined) {
_local1._parent.fadeFish = true;
_local1._parent.selectFish = {x:_local1._x, y:_local1._y, mc:_local1, num:_local1.num};
}
};
i++;
}
Instance of Symbol 42 MovieClip [fish10] "fish10" in Symbol 325 MovieClip Frame 1
/* no clip actions */
Symbol 325 MovieClip Frame 2
function preProcessFish() {
fishs.step = 1;
fishs.gotoAndStop(selectFish.num);
fishs._x = selectFish.x;
if (selectFish.num != 10) {
fishs._y = selectFish.y;
} else {
fishs._y = selectFish.y - 150;
}
eval ("fishs.fish" + selectFish.num).gotoAndStop("right");
eval ("fishs.fish" + selectFish.num).anim.stop();
fishs._visible = true;
}
function showName() {
trace("Show name");
fishName.label = _root.fishNames[selectFish.num - 1];
fishName.play();
}
function showDesc() {
trace("Show desc");
desc_txt.htmlText = String(_root.fishDesc[selectFish.num - 1]);
scr_bup._visible = (scr_bdown._visible = (info_scr._visible = true));
}
function nextStep() {
fishs.step++;
fishs._stop = false;
}
trace(selectFish.x);
trace(selectFish.y);
trace(selectFish.num);
fishs._visible = (scr_bup._visible = (scr_bdown._visible = (info_scr._visible = false)));
var center = {x:135, y:70};
var fishPos = {x:131, y:12};
preProcessFish();
_root.info_select_fish = true;
Instance of Symbol 319 MovieClip "fishs" in Symbol 325 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!this._stop) {
switch (this.step) {
case 1 :
if ((this._height < 140) && (this._width < 280)) {
this._x = this._x + ((this._parent.center.x - this._x) / 5);
this._y = this._y + ((this._parent.center.y - this._y) / 5);
this._xscale = (this._yscale = this._yscale + 12);
} else {
this._stop = true;
this._parent.showName();
}
break;
case 2 :
if ((this._width > 280) || (this._height > 62)) {
this._x = this._x + ((this._parent.fishPos.x - this._x) / 10);
this._y = this._y + ((this._parent.fishPos.y - this._y) / 10);
this._xscale = (this._yscale = this._yscale - 12);
} else {
this._stop = true;
this._parent.showDesc();
}
}
}
}
Instance of Symbol 208 MovieClip "scr_bup" in Symbol 325 MovieClip Frame 2
onClipEvent (load) {
var scroller = this._parent.info_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll - 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 214 MovieClip "scr_bdown" in Symbol 325 MovieClip Frame 2
onClipEvent (load) {
var scroller = this._parent.info_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll + 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 324 MovieClip "info_scr" in Symbol 325 MovieClip Frame 2
onClipEvent (load) {
field = this._parent.desc_txt;
}
Symbol 326 Button
on (release) {
if (_currentframe != 9) {
gotoAndStop ("fishs");
} else {
_root.inst_fish.gotoAndStop(1);
}
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 343 MovieClip Frame 3
stop();
Symbol 359 Button
on (release) {
function wait_short() {
trace("Interval : btn_start_level.as");
_root.gotoAndPlay("level_init");
clearInterval(intervalID);
delete intervalID;
}
gameType = 0;
hideStatus();
_root.playSound("snd_click");
_root.gotoAndStop("level_nr");
intervalID = setInterval(wait_short, waitTime_Titles);
}
Symbol 360 Button
on (release) {
_root.gotoAndStop("choose_type");
}
Symbol 361 Button
on (release) {
_root.playSound("snd_click");
gotoAndStop ("shop");
}
Symbol 388 Button
on (release, keyPress "<Space>") {
_root.playSound("snd_coins");
_root.buy();
}
Symbol 389 Button
on (release) {
_root.playSound("snd_click");
gotoAndStop ("level_start");
}
Symbol 394 Button
on (release) {
_root.hideStatus();
this._visible = false;
}
Symbol 399 Button
on (release) {
_visible = false;
}
Symbol 445 MovieClip Frame 2
if (_root.full_screen == 1) {
cloud1._visible = false;
cloud2._visible = false;
cloud3._visible = false;
} else {
cloud1._visible = true;
cloud2._visible = true;
cloud3._visible = true;
}
Symbol 445 MovieClip Frame 3
gotoAndPlay (2);
Symbol 453 Button
on (release) {
_root.removeScorez();
}
Symbol 470 Button
on (press) {
if (((!_root.hookIsBusy) && (!_root.confusion)) && (!_root.IgnorePress)) {
if ((_root.hookVector > 0) && (_root.hookMove)) {
_root.hookVector = _root.HookSpeedUp[_root.hookSpeedLevel];
} else {
_root.playSound("snd_line");
}
_root.hookMove = 1;
_root.canCatch = true;
}
}
Symbol 473 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 1
if (_root.motorOn) {
gotoAndStop (16);
}
Symbol 486 MovieClip Frame 15
gotoAndPlay (1);
Symbol 495 MovieClip Frame 7
_root.playSound("snd_confusion");
Symbol 495 MovieClip Frame 12
_root.playSound("snd_confusion");
Symbol 495 MovieClip Frame 18
_root.playSound("snd_confusion");
Symbol 495 MovieClip Frame 21
gotoAndPlay ("confusion");
Symbol 495 MovieClip Frame 25
_root.hideBonus();
Symbol 495 MovieClip Frame 38
_root.playSound("snd_wow");
Symbol 495 MovieClip Frame 52
_root.resetFisherman();
Symbol 495 MovieClip Frame 57
_root.playSound("snd_woow");
Symbol 495 MovieClip Frame 60
_root.playSound("snd_swim");
Symbol 495 MovieClip Frame 63
_root.sharkAttack = -1;
Symbol 572 Button
on (release) {
_root.playSound("snd_click");
_root.defaulHiscores();
_root.gotoAndStop("hiscores_show");
}
Symbol 573 Button
on (release) {
_root.playSound("snd_click");
_root.gotoAndStop("hiscores_show");
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 595 Button
on (release) {
_root.playSound("snd_click");
if (new_name._visible) {
return(false);
}
_root.gameType = 0;
initScores();
showHiScores();
hisc_1_mc.gotoAndStop(2);
hisc_2_mc.gotoAndStop(1);
hisc_1_btn._visible = false;
hisc_2_btn._visible = true;
}
Symbol 596 Button
on (release) {
_root.playSound("snd_click");
if (new_name._visible) {
return(false);
}
_root.gameType = 1;
initScores();
showHiScores();
hisc_1_mc.gotoAndStop(1);
hisc_2_mc.gotoAndStop(2);
hisc_1_btn._visible = true;
hisc_2_btn._visible = false;
}
Symbol 597 Button
on (release) {
_root.playSound("snd_click");
if (new_name._visible) {
saveScores2(_root.TotalScore, _root.new_name.str.text);
showHiScores();
new_name._visible = false;
return(false);
}
gotoAndStop ("start");
}
Symbol 598 Button
on (release) {
_root.playSound("snd_click");
gotoAndStop ("hiscores_add");
ent_name_mc._visible = false;
clear_mc._visible = true;
}
Symbol 604 Button
on (rollOver) {
_root.attachMovie("available_hint", "available_hint", _root.getNextHighestDepth());
_root.available_hint._x = btn_start_level_t1._x + 50;
_root.available_hint._y = btn_start_level_t1._y + 10;
_root.available_hint.gotoAndPlay(1);
}
on (rollOut) {
if (_root.available_hint != undefined) {
_root.available_hint.removeMovieClip();
}
}
Symbol 605 Button
on (release) {
_root.playSound("snd_click");
_root.gotoAndStop("level_start");
}
Symbol 614 MovieClip Frame 1
if (random(2) == 1) {
play();
} else {
gotoAndPlay (45);
}
Symbol 614 MovieClip Frame 44
gotoAndPlay (1);