Section 1
//AGlogo_mc_6 (fishing_fla.AGlogo_mc_6)
package fishing_fla {
import flash.display.*;
public dynamic class AGlogo_mc_6 extends MovieClip {
public var agButton_btn:SimpleButton;
}
}//package fishing_fla
Section 2
//AGteaser_mc_3 (fishing_fla.AGteaser_mc_3)
package fishing_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class AGteaser_mc_3 extends MovieClip {
public var smash:Smash;
public var timer:Timer;
public var p_in;
public var AGpresented_mc:MovieClip;
public var AGclick_btn:SimpleButton;
public var AGlogo_mc:MovieClip;
public function AGteaser_mc_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
smash = new Smash();
AGpresented_mc.alpha = 0;
AGclick_btn.visible = false;
AGlogo_mc.y = -70;
timer = new Timer(4000);
timer.addEventListener(TimerEvent.TIMER, done);
timer.start();
p_in = new Tween(AGpresented_mc, "alpha", Strong.easeIn, 0, 100, 12, false);
p_in.addEventListener(TweenEvent.MOTION_FINISH, logo);
AGclick_btn.addEventListener(MouseEvent.CLICK, loadAG);
}
public function done(_arg1:Event){
timer.stop();
}
public function loadAG(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.addictinggames.com");
navigateToURL(_local2, "_blank");
}
public function logo(_arg1:TweenEvent){
var logo_in:*;
var crunch:Function;
var event = _arg1;
crunch = function (_arg1:TweenEvent){
smash.play();
AGclick_btn.visible = true;
new Tween(AGlogo_mc, "y", Bounce.easeOut, 60, 85, 6, false);
new Tween(AGlogo_mc, "x", Bounce.easeOut, 30, 50, 6, false);
new Tween(AGpresented_mc, "y", Bounce.easeOut, 15, 25, 6, false);
new Tween(AGpresented_mc, "x", Bounce.easeOut, 110, 100, 6, false);
};
logo_in = new Tween(AGlogo_mc, "y", Strong.easeIn, -75, 85, 12, false);
logo_in.addEventListener(TweenEvent.MOTION_FINISH, crunch);
}
}
}//package fishing_fla
Section 3
//arafuruSea_71 (fishing_fla.arafuruSea_71)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arafuruSea_71 extends MovieClip {
public const fishName:Array;
public const seaName:String = "papua";
public const minCatch:Number = 5;
public const target:Number = 2000;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function arafuruSea_71(){
fishName = ["Big Eye Tuna", "Black Fin Tuna", "Mackaro", "King Mackarel", "Marlin"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
var _local6:Number;
var _local7:Number;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.2){
_local5 = new Tuna1();
} else {
if (Math.random() < 0.4){
_local5 = new Tuna2();
} else {
if (Math.random() < 0.6){
_local5 = new Mackarel1();
} else {
if (Math.random() < 0.8){
_local5 = new Mackarel2();
} else {
_local5 = new Marlin();
};
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
_local6 = 0;
_local7 = 0;
while (_local7 < record["weight"].length) {
_local6 = (_local6 + int(record["weight"][_local7]));
if (_local6 > target){
_local6 = target;
};
_local7++;
};
weightCount_txt.text = ((_local6 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
if ((((_local6 >= target)) && ((catchCount >= minCatch)))){
record["next"] = "secret spot";
qualified++;
};
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
var _local2:Number;
var _local3:Number;
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
catchCount = record["nama"].length;
_local2 = 0;
_local3 = 0;
while (_local3 < record["weight"].length) {
_local2 = (_local2 + int(record["weight"][_local3]));
if (_local2 > target){
_local2 = target;
};
_local3++;
};
if ((((_local2 >= target)) && ((catchCount >= minCatch)))){
qualified = 2;
};
weightCount_txt.text = ((_local2 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 4
//baliSea_67 (fishing_fla.baliSea_67)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class baliSea_67 extends MovieClip {
public const fishName:Array;
public const seaName:String = "bali";
public const minCatch:Number = 4;
public const target:Number = 700;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function baliSea_67(){
fishName = ["Plane Snapper", "Permit", "Horse Eye Jack", "Big Eye Tuna"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
var _local6:Number;
var _local7:Number;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.25){
_local5 = new Kakap3();
} else {
if (Math.random() < 0.5){
_local5 = new Kuwe1();
} else {
if (Math.random() < 0.75){
_local5 = new Kuwe2();
} else {
_local5 = new Tuna1();
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
_local6 = 0;
_local7 = 0;
while (_local7 < record["weight"].length) {
_local6 = (_local6 + int(record["weight"][_local7]));
if (_local6 > target){
_local6 = target;
};
_local7++;
};
weightCount_txt.text = ((_local6 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
trace(catchCount);
fishCount_txt.text = ((catchCount + " / ") + minCatch);
if ((((_local6 >= target)) && ((catchCount >= minCatch)))){
record["next"] = "manado";
qualified++;
};
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
var _local2:Number;
var _local3:Number;
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
catchCount = record["nama"].length;
_local2 = 0;
_local3 = 0;
while (_local3 < record["weight"].length) {
_local2 = (_local2 + int(record["weight"][_local3]));
if (_local2 > target){
_local2 = target;
};
_local3++;
};
if ((((_local2 >= target)) && ((catchCount >= minCatch)))){
qualified = 2;
};
weightCount_txt.text = ((_local2 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 5
//BG3_27 (fishing_fla.BG3_27)
package fishing_fla {
import flash.display.*;
public dynamic class BG3_27 extends MovieClip {
public function BG3_27(){
addFrameScript(48, frame49);
}
function frame49(){
gotoAndPlay("loop");
}
}
}//package fishing_fla
Section 6
//dodgeMeter_55 (fishing_fla.dodgeMeter_55)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dodgeMeter_55 extends MovieClip {
public var dodgeArea:MovieClip;
public var dodgeCursor:MovieClip;
public var tenseBar:MovieClip;
public var masker:MovieClip;
public var maxMeter:Number;
public var xCursor:Number;
public var xMeter:Number;
public function dodgeMeter_55(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
maxMeter = masker.width;
xMeter = masker.x;
xCursor = _arg3;
dodgeArea.x = (xMeter + ((_arg1 * maxMeter) / 100));
dodgeArea.width = ((_arg2 * maxMeter) / 100);
dodgeCursor.x = (xMeter + ((_arg3 * maxMeter) / 100));
tenseBar.setBar(20);
}
public function isHit():Boolean{
var _local1:Boolean;
_local1 = false;
if (dodgeArea.hitTestObject(dodgeCursor)){
_local1 = true;
};
return (_local1);
}
function frame1(){
}
public function updateCursor(_arg1){
dodgeCursor.x = (xMeter + ((_arg1 * maxMeter) / 100));
}
public function isLoose():Boolean{
var _local1:Boolean;
_local1 = false;
if (((!(dodgeArea.hitTestObject(dodgeCursor))) && ((dodgeCursor.x < dodgeArea.x)))){
_local1 = true;
};
return (_local1);
}
public function isToMuch():Boolean{
var _local1:Boolean;
_local1 = false;
if (((!(dodgeArea.hitTestObject(dodgeCursor))) && ((dodgeCursor.x > dodgeArea.x)))){
_local1 = true;
};
return (_local1);
}
public function updateArea(_arg1){
dodgeArea.x = (xMeter + ((_arg1 * maxMeter) / 100));
}
}
}//package fishing_fla
Section 7
//highscore_38 (fishing_fla.highscore_38)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class highscore_38 extends MovieClip {
public const recOnPage:Number = 4;
public var next_btn:SimpleButton;
public var pointer:Number;
public var prev_btn:SimpleButton;
public var fish:Array;
public var fishfoto:Array;
public var record:Array;
public var rec1:MovieClip;
public var rec2:MovieClip;
public var loc:Array;
public var rec3:MovieClip;
public var rec0:MovieClip;
public var img0:MovieClip;
public var img1:MovieClip;
public var img2:MovieClip;
public var img3:MovieClip;
public function highscore_38(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:Number;
prev_btn.addEventListener(MouseEvent.CLICK, prevPage);
next_btn.addEventListener(MouseEvent.CLICK, nextPage);
record = _arg2;
fish = _arg1;
loc = _arg3;
pointer = 0;
fishfoto = new Array(4);
_local4 = 0;
while (_local4 < 4) {
if (((!((fishfoto[_local4] == null))) && ((this[("img" + _local4)].numChildren > 0)))){
this[("img" + _local4)].removeChild(fishfoto[_local4]);
};
this[("rec" + _local4)].name_txt.text = "";
this[("rec" + _local4)].weight_txt.text = "";
this[("rec" + _local4)].loc_txt.text = "";
_local4++;
};
_local4 = pointer;
while ((((_local4 < (pointer + recOnPage))) && ((_local4 < fish.length)))) {
trace(fish[_local4]);
if (record[fish[_local4]] == 0){
fishfoto[(_local4 - pointer)] = new MbohFish();
this[("img" + (_local4 - pointer))].addChild(fishfoto[(_local4 - pointer)]);
this[("rec" + (_local4 - pointer))].name_txt.text = "???";
this[("rec" + (_local4 - pointer))].weight_txt.text = "??? kg";
this[("rec" + (_local4 - pointer))].loc_txt.text = "???";
} else {
fishfoto[(_local4 - pointer)] = getFishFoto(fish[_local4]);
this[("img" + (_local4 - pointer))].addChild(fishfoto[(_local4 - pointer)]);
this[("rec" + (_local4 - pointer))].name_txt.text = fish[_local4];
this[("rec" + (_local4 - pointer))].weight_txt.text = (record[fish[_local4]] + " kg");
this[("rec" + (_local4 - pointer))].loc_txt.text = loc[fish[_local4]];
};
_local4++;
};
}
public function finalize(){
prev_btn.removeEventListener(MouseEvent.CLICK, prevPage);
next_btn.removeEventListener(MouseEvent.CLICK, nextPage);
}
public function nextPage(_arg1:MouseEvent){
var _local2:Number;
if ((pointer + recOnPage) < fish.length){
pointer = (pointer + recOnPage);
};
_local2 = 0;
while (_local2 < 4) {
if (((!((fishfoto[_local2] == null))) && ((this[("img" + _local2)].numChildren > 0)))){
this[("img" + _local2)].removeChild(fishfoto[_local2]);
};
this[("rec" + _local2)].name_txt.text = "";
this[("rec" + _local2)].weight_txt.text = "";
this[("rec" + _local2)].loc_txt.text = "";
_local2++;
};
_local2 = pointer;
while ((((_local2 < (pointer + recOnPage))) && ((_local2 < fish.length)))) {
trace(fish[_local2]);
if (record[fish[_local2]] == 0){
fishfoto[(_local2 - pointer)] = new MbohFish();
this[("img" + (_local2 - pointer))].addChild(fishfoto[(_local2 - pointer)]);
this[("rec" + (_local2 - pointer))].name_txt.text = "???";
this[("rec" + (_local2 - pointer))].weight_txt.text = "??? kg";
this[("rec" + (_local2 - pointer))].loc_txt.text = "???";
} else {
fishfoto[(_local2 - pointer)] = getFishFoto(fish[_local2]);
this[("img" + (_local2 - pointer))].addChild(fishfoto[(_local2 - pointer)]);
this[("rec" + (_local2 - pointer))].name_txt.text = fish[_local2];
this[("rec" + (_local2 - pointer))].weight_txt.text = (record[fish[_local2]] + " kg");
this[("rec" + (_local2 - pointer))].loc_txt.text = loc[fish[_local2]];
};
_local2++;
};
}
function frame1(){
}
public function prevPage(_arg1:MouseEvent){
var _local2:Number;
if ((pointer - recOnPage) >= 0){
pointer = (pointer - recOnPage);
};
_local2 = 0;
while (_local2 < 4) {
if (((!((fishfoto[_local2] == null))) && ((this[("img" + _local2)].numChildren > 0)))){
this[("img" + _local2)].removeChild(fishfoto[_local2]);
};
this[("rec" + _local2)].name_txt.text = "";
this[("rec" + _local2)].weight_txt.text = "";
this[("rec" + _local2)].loc_txt.text = "";
_local2++;
};
_local2 = pointer;
while ((((_local2 < (pointer + recOnPage))) && ((_local2 < fish.length)))) {
trace(fish[_local2]);
if (record[fish[_local2]] == 0){
fishfoto[(_local2 - pointer)] = new MbohFish();
this[("img" + (_local2 - pointer))].addChild(fishfoto[(_local2 - pointer)]);
this[("rec" + (_local2 - pointer))].name_txt.text = "???";
this[("rec" + (_local2 - pointer))].weight_txt.text = "??? kg";
this[("rec" + (_local2 - pointer))].loc_txt.text = "???";
} else {
fishfoto[(_local2 - pointer)] = getFishFoto(fish[_local2]);
this[("img" + (_local2 - pointer))].addChild(fishfoto[(_local2 - pointer)]);
this[("rec" + (_local2 - pointer))].name_txt.text = fish[_local2];
this[("rec" + (_local2 - pointer))].weight_txt.text = (record[fish[_local2]] + " kg");
this[("rec" + (_local2 - pointer))].loc_txt.text = loc[fish[_local2]];
};
_local2++;
};
}
public function getFishFoto(_arg1):Object{
var _local2:Object;
if (_arg1 == "Marlin"){
_local2 = new ImgMarlin();
} else {
if (_arg1 == "Red Snapper"){
_local2 = new ImgRedSnap();
} else {
if (_arg1 == "Dog Snapper"){
_local2 = new ImgDogSnap();
} else {
if (_arg1 == "Cooper Snapper"){
_local2 = new ImgCopSnap();
} else {
if (_arg1 == "Plane Snapper"){
_local2 = new ImgPlaSnap();
} else {
if (_arg1 == "Permit"){
_local2 = new ImgPermit();
} else {
if (_arg1 == "Horse Eye Jack"){
_local2 = new ImgHorEyeJack();
} else {
if (_arg1 == "Big Eye Tuna"){
_local2 = new ImgBigEyeTuna();
} else {
if (_arg1 == "Black Fin Tuna"){
_local2 = new ImgBlackFinTuna();
} else {
if (_arg1 == "Mackaro"){
_local2 = new ImgMack();
} else {
if (_arg1 == "King Mackarel"){
_local2 = new ImgKingMack();
} else {
if (_arg1 == "Barracuda"){
_local2 = new ImgBarra();
} else {
if (_arg1 == "Unknown"){
_local2 = new ImgUnknown();
} else {
_local2 = new MbohFish();
};
};
};
};
};
};
};
};
};
};
};
};
};
return (_local2);
}
}
}//package fishing_fla
Section 8
//highscoreRecordText_42 (fishing_fla.highscoreRecordText_42)
package fishing_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscoreRecordText_42 extends MovieClip {
public var weight_txt:TextField;
public var name_txt:TextField;
public var loc_txt:TextField;
}
}//package fishing_fla
Section 9
//jakartaSea_65 (fishing_fla.jakartaSea_65)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class jakartaSea_65 extends MovieClip {
public const fishName:Array;
public const seaName:String = "jakarta";
public const minCatch:Number = 4;
public const target:Number = 200;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function jakartaSea_65(){
fishName = ["Red Snapper", "Dog Snapper", "Plane Snapper", "Cooper Snapper"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
var _local6:Number;
var _local7:Number;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.25){
_local5 = new Kakap1();
} else {
if (Math.random() < 0.5){
_local5 = new Kakap2();
} else {
if (Math.random() < 0.75){
_local5 = new Kakap3();
} else {
_local5 = new Kakap4();
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
_local6 = 0;
_local7 = 0;
while (_local7 < record["weight"].length) {
_local6 = (_local6 + int(record["weight"][_local7]));
if (_local6 > target){
_local6 = target;
};
_local7++;
};
weightCount_txt.text = ((_local6 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
if ((((_local6 >= target)) && ((catchCount >= minCatch)))){
record["next"] = "krakatau";
qualified++;
};
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
var _local2:Number;
var _local3:Number;
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
catchCount = record["nama"].length;
_local2 = 0;
_local3 = 0;
while (_local3 < record["weight"].length) {
_local2 = (_local2 + int(record["weight"][_local3]));
if (_local2 > target){
_local2 = target;
};
_local3++;
};
if ((((_local2 >= target)) && ((catchCount >= minCatch)))){
qualified = 2;
};
weightCount_txt.text = ((_local2 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 10
//krakatauSea_44 (fishing_fla.krakatauSea_44)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class krakatauSea_44 extends MovieClip {
public const fishName:Array;
public const seaName:String = "krakatau";
public const minCatch:Number = 4;
public const target:Number = 300;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function krakatauSea_44(){
fishName = ["Red Snapper", "Dog Snapper", "Plane Snapper", "Cooper Snapper", "Permit", "Horse Eye Jack"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.125){
_local5 = new Kakap1();
} else {
if (Math.random() < 0.25){
_local5 = new Kakap2();
} else {
if (Math.random() < 0.375){
_local5 = new Kakap3();
} else {
if (Math.random() < 0.5){
_local5 = new Kakap4();
} else {
if (Math.random() < 0.75){
_local5 = new Kuwe1();
} else {
_local5 = new Kuwe2();
};
};
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
_local6 = 0;
_local7 = 0;
while (_local7 < record["weight"].length) {
_local8 = _local6;
_local6 = (_local6 + int(record["weight"][_local7]));
trace(((((((_local7 + ":") + _local8) + "+") + record["weight"][_local7]) + "=") + _local6));
if (_local6 > target){
_local6 = target;
};
_local7++;
};
weightCount_txt.text = ((_local6 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
if ((((_local6 >= target)) && ((catchCount >= minCatch)))){
record["next"] = "bali";
qualified++;
};
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
var _local2:Number;
var _local3:Number;
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
catchCount = record["nama"].length;
_local2 = 0;
_local3 = 0;
while (_local3 < record["weight"].length) {
_local2 = (_local2 + int(record["weight"][_local3]));
if (_local2 > target){
_local2 = target;
};
_local3++;
};
if ((((_local2 >= target)) && ((catchCount >= minCatch)))){
qualified = 2;
};
weightCount_txt.text = ((_local2 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 11
//MainTimeline (fishing_fla.MainTimeline)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const fish:Array;
public const maxBubble:Number = 100;
public const secretX:Array;
public const secretY:Array;
public const railSpeed:Number = 5;
public var baitType:String;
public var credit_btn:SimpleButton;
public var musicStat:TextField;
public var high_btn:SimpleButton;
public var bubbleFinish:Number;
public var on2_btn:SimpleButton;
public var help_btn:SimpleButton;
public var sea:MovieClip;
public var Teaser:MovieClip;
public var bar1:MovieClip;
public var cookies:SharedObject;
public var jakarta:ShineDotBtn;
public var agButton_btn:SimpleButton;
public var BGM:Array;
public var secret;
public var off2_btn:SimpleButton;
public var statBuff:String;
public var on1_btn:SimpleButton;
public var opt_btn:SimpleButton;
public var play_btn:SimpleButton;
public var gameRecord:Array;
public var krakatau:ShineDotBtn;
public var BGMstat:String;
public var back_btn:SimpleButton;
public var HS:MovieClip;
public var next_btn:SimpleButton;
public var manado:ShineDotBtn;
public var BGMindex:Number;
public var redeem_btn:SimpleButton;
public var off1_btn:SimpleButton;
public var bubbleArray:Array;
public var blackScreen:MovieClip;
public var BGMchannel:SoundChannel;
public var gameStat:String;
public var papua:ShineDotBtn;
public var percent_txt:TextField;
public var effectStat:TextField;
public var menuOut:String;
public var SEstat:String;
public var bait:Object;
public var strike:Strike;
public var difficulty:String;
public var ret_btn:SimpleButton;
public var AGskip_btn:SimpleButton;
public var nylonString:Object;
public var bubbleSE:SE_bubble;
public var bubbleCount:Number;
public var bubbleCont:MovieClip;
public var btnClickSE:clickSE;
public var bali:ShineDotBtn;
public function MainTimeline(){
fish = ["Red Snapper", "Dog Snapper", "Plane Snapper", "Cooper Snapper", "Permit", "Horse Eye Jack", "Big Eye Tuna", "Black Fin Tuna", "Mackaro", "King Mackarel", "Marlin", "Barracuda", "Unknown"];
secretX = [340, 180, 75, 220, 520];
secretY = [190, 200, 240, 330, 200];
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 8, frame9, 21, frame22, 48, frame49, 60, frame61, 65, frame66, 70, frame71, 75, frame76, 80, frame81, 81, frame82, 82, frame83, 98, frame99, 99, frame100, 115, frame116, 116, frame117, 132, frame133, 133, frame134, 149, frame150, 150, frame151, 166, frame167, 167, frame168, 243, frame244);
}
function frame151(){
stop();
initGame();
}
public function off1Click(_arg1:MouseEvent){
var _local2:SoundChannel;
BGMstat = "off";
musicStat.text = BGMstat;
if (BGMchannel != null){
BGMchannel.stop();
BGMchannel = null;
};
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
}
function frame150(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
function frame167(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
function frame168(){
stop();
initGame();
}
public function initCredit(){
stop();
ret_btn.addEventListener(MouseEvent.CLICK, creditToMenu);
}
public function initLocSel(){
var _local1:Number;
stop();
if ((((BGMstat == "on")) && ((BGMchannel == null)))){
BGMchannel = BGM[0].play();
};
jakarta.btn.addEventListener(MouseEvent.CLICK, toJakarta);
krakatau.btn.addEventListener(MouseEvent.CLICK, toKrakatau);
bali.btn.addEventListener(MouseEvent.CLICK, toBali);
manado.btn.addEventListener(MouseEvent.CLICK, toManado);
papua.btn.addEventListener(MouseEvent.CLICK, toPapua);
jakarta.shine.alpha = 1;
if (gameRecord["jakarta"]["next"] == "krakatau"){
krakatau.shine.alpha = 1;
krakatau.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
} else {
krakatau.shine.alpha = 0;
krakatau.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 128, 128, 128);
};
if (gameRecord["krakatau"]["next"] == "bali"){
bali.shine.alpha = 1;
bali.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
} else {
bali.shine.alpha = 0;
bali.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 128, 128, 128);
};
if (gameRecord["bali"]["next"] == "manado"){
manado.shine.alpha = 1;
manado.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
} else {
manado.shine.alpha = 0;
manado.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 128, 128, 128);
};
if (gameRecord["manado"]["next"] == "papua"){
papua.shine.alpha = 1;
papua.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
} else {
papua.shine.alpha = 0;
papua.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 128, 128, 128);
};
if (gameRecord["papua"]["next"] == "secret spot"){
secret = new ShineDotBtn();
_local1 = Math.round((Math.random() * 4));
secret.x = 160;
secret.y = 90;
secret.shine.alpha = 1;
secret.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
this.addChild(secret);
secret.btn.addEventListener(MouseEvent.CLICK, toSecret);
};
}
public function finalizeOption(){
musicStat.text = BGMstat;
effectStat.text = SEstat;
on1_btn.removeEventListener(MouseEvent.CLICK, on1Click);
off1_btn.removeEventListener(MouseEvent.CLICK, off1Click);
on2_btn.removeEventListener(MouseEvent.CLICK, on2Click);
off2_btn.removeEventListener(MouseEvent.CLICK, off2Click);
back_btn.removeEventListener(MouseEvent.CLICK, optToMainMenu);
}
public function updateLoader(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = Math.floor(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal));
bar1.updateBar((_local2 / 100));
percent_txt.text = String(_local2);
if (_arg1.bytesLoaded >= _arg1.bytesTotal){
gotoAndPlay("AGTeaserMC");
};
}
public function gotoCredit(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:SoundChannel;
finalizeMenu();
menuOut = "credit";
setChildIndex(blackScreen, (numChildren - 1));
setChildIndex(bubbleCont, (numChildren - 1));
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
Mouse.hide();
addEventListener("enterFrame", createBubble);
if (SEstat == "on"){
_local3 = bubbleSE.play(0, 1);
};
}
function frame3(){
SEstat = "on";
BGMstat = "on";
btnClickSE = new clickSE();
bubbleSE = new SE_bubble();
BGM = new Array();
BGM.push(new BGMintro());
BGM.push(new Pantai1());
BGM.push(new Pantai2());
BGM.push(new StrikeBGM());
difficulty = "normal";
gameStat = "";
statBuff = "";
baitType = "squid";
cookies = SharedObject.getLocal("fishMeUp");
loadLocalData();
}
function frame1(){
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, updateLoader);
addEventListener("enterFrame", checkPiracy);
stage.showDefaultContextMenu = false;
}
function frame22(){
}
public function initHelp(){
stop();
ret_btn.addEventListener(MouseEvent.CLICK, helpToMenu);
}
function frame9(){
}
function frame2(){
stop();
AGskip_btn.addEventListener(MouseEvent.CLICK, done1);
}
public function on1Click(_arg1:MouseEvent){
var _local2:SoundChannel;
if (BGMstat == "off"){
BGMchannel = BGM[0].play(0, 999);
};
BGMstat = "on";
musicStat.text = BGMstat;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
}
public function finalizeHelp(){
ret_btn.removeEventListener(MouseEvent.CLICK, helpToMenu);
}
public function gameKeyUp(_arg1:KeyboardEvent){
if (sea.player.action == "move"){
sea.player.routine("stand", sea.player.facing);
};
if (sea.gameStat == "normalRail"){
bait.routine("idle");
};
if (sea.isPulling){
sea.isPulling = false;
};
}
public function toKrakatau(_arg1:MouseEvent){
if (gameRecord["jakarta"]["next"] == "krakatau"){
finalizeLocSel();
gotoAndStop("prekrakatau");
};
}
public function finalizeMenu(){
play_btn.removeEventListener(MouseEvent.CLICK, playGame);
opt_btn.removeEventListener(MouseEvent.CLICK, gotoOption);
help_btn.removeEventListener(MouseEvent.CLICK, gotoHelp);
credit_btn.removeEventListener(MouseEvent.CLICK, gotoCredit);
high_btn.removeEventListener(MouseEvent.CLICK, gotoHigh);
agButton_btn.removeEventListener(MouseEvent.MOUSE_DOWN, goToAG);
}
public function off2Click(_arg1:MouseEvent){
var _local2:SoundChannel;
SEstat = "off";
effectStat.text = SEstat;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
}
public function createBubble(_arg1:Event){
var _local2:Number;
var _local3:BigBubble;
trace(((bubbleCount + "-") + bubbleFinish));
if ((((bubbleCount < maxBubble)) && ((Math.random() < 0.8)))){
_local2 = 0;
while (_local2 < 2) {
_local3 = new BigBubble();
_local3.init();
bubbleArray.push(_local3);
bubbleCont.addChild(bubbleArray[(bubbleArray.length - 1)]);
bubbleCount++;
_local2++;
};
};
blackScreen.alpha = (bubbleCount / maxBubble);
_local2 = 0;
while (_local2 < bubbleArray.length) {
if (bubbleArray[_local2].isFinish){
bubbleFinish++;
bubbleCont.removeChild(bubbleArray[_local2]);
bubbleArray.splice(_local2, 1);
_local2--;
};
_local2++;
};
if (bubbleFinish == maxBubble){
Mouse.show();
removeEventListener("enterFrame", createBubble);
gotoAndPlay(menuOut);
};
}
public function initMenu(){
stop();
menuOut = "";
bubbleCount = 0;
bubbleFinish = 0;
blackScreen.alpha = 0;
bubbleArray = new Array();
agButton_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToAG);
play_btn.addEventListener(MouseEvent.CLICK, playGame);
opt_btn.addEventListener(MouseEvent.CLICK, gotoOption);
help_btn.addEventListener(MouseEvent.CLICK, gotoHelp);
credit_btn.addEventListener(MouseEvent.CLICK, gotoCredit);
high_btn.addEventListener(MouseEvent.CLICK, gotoHigh);
if ((((BGMstat == "on")) && ((BGMchannel == null)))){
BGMchannel = BGM[0].play(0, 1000);
};
}
public function finalizeLocSel(){
if (gameRecord["papua"]["next"] == "secret spot"){
this.removeChild(secret);
secret.btn.removeEventListener(MouseEvent.CLICK, toSecret);
};
jakarta.btn.removeEventListener(MouseEvent.CLICK, toJakarta);
krakatau.btn.removeEventListener(MouseEvent.CLICK, toKrakatau);
bali.btn.removeEventListener(MouseEvent.CLICK, toBali);
manado.btn.removeEventListener(MouseEvent.CLICK, toManado);
papua.btn.removeEventListener(MouseEvent.CLICK, toPapua);
if (BGMchannel != null){
BGMchannel.stop();
BGMchannel = null;
};
}
function frame49(){
initMenu();
}
public function finalizeCredit(){
ret_btn.removeEventListener(MouseEvent.CLICK, creditToMenu);
}
public function creditToMenu(_arg1:MouseEvent){
var _local2:SoundChannel;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
finalizeCredit();
gotoAndStop("main menu");
}
function frame61(){
initOption();
}
public function goToAG(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.addictinggames.com");
navigateToURL(_local2);
}
function frame66(){
initCredit();
}
public function done1(_arg1:Event){
Teaser.timer.stop();
gotoAndPlay("global variable and property");
}
public function initHighscore(){
stop();
HS.init(fish, gameRecord["best"], gameRecord["bestLoc"]);
ret_btn.addEventListener(MouseEvent.CLICK, highToMainMenu);
}
public function redeemClicked(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.flashgamelicense.com");
navigateToURL(_local2);
}
function frame71(){
initHelp();
}
function frame76(){
initLocSel();
}
public function on2Click(_arg1:MouseEvent){
var _local2:SoundChannel;
SEstat = "on";
effectStat.text = SEstat;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
}
public function toSecret(_arg1:MouseEvent){
finalizeLocSel();
gotoAndStop("presecret spot");
}
public function helpToMenu(_arg1:MouseEvent){
var _local2:SoundChannel;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
finalizeHelp();
gotoAndStop("main menu");
}
public function initGame(){
sea.init(gameRecord[sea.seaName]);
addEventListener("enterFrame", mainLoop);
addEventListener(KeyboardEvent.KEY_DOWN, gameKeyDown);
addEventListener(KeyboardEvent.KEY_UP, gameKeyUp);
addEventListener(MouseEvent.CLICK, gameMouseClick);
sea.gameStat = "start";
BGMindex = (Math.round(Math.random()) + 1);
if (BGMstat == "on"){
BGMchannel = BGM[BGMindex].play(0, 1000);
};
}
public function toBali(_arg1:MouseEvent){
if (gameRecord["krakatau"]["next"] == "bali"){
finalizeLocSel();
gotoAndStop("prebali");
};
}
function frame82(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
function frame83(){
stop();
initGame();
}
public function finalizeGame(){
var _local1:Number;
var _local2:Number;
if (((!((BGMchannel == null))) && ((BGMstat == "on")))){
BGMchannel.stop();
BGMchannel = null;
};
removeEventListener("enterFrame", mainLoop);
removeEventListener(KeyboardEvent.KEY_DOWN, gameKeyDown);
removeEventListener(KeyboardEvent.KEY_UP, gameKeyUp);
removeEventListener(MouseEvent.CLICK, gameMouseClick);
gameRecord[sea.seaName] = sea.record;
_local1 = 0;
while (_local1 < sea.fishName.length) {
_local2 = gameRecord["best"][sea.fishName[_local1]];
if (sea.record["best"][sea.fishName[_local1]] == null){
sea.record["best"][sea.fishName[_local1]] = 0;
};
gameRecord["best"][sea.fishName[_local1]] = Math.max(_local2, Math.round(sea.record["best"][sea.fishName[_local1]]));
if (_local2 != gameRecord["best"][sea.fishName[_local1]]){
gameRecord["bestLoc"][sea.fishName[_local1]] = sea.seaName;
};
_local1++;
};
cookies.data.gameRecord = gameRecord;
sea.finalize();
}
function frame81(){
initHighscore();
trace("masuk highscore");
}
public function next_click(_arg1:MouseEvent){
next_btn.removeEventListener(MouseEvent.CLICK, next_click);
play();
}
public function gotoHelp(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:SoundChannel;
finalizeMenu();
menuOut = "help";
setChildIndex(blackScreen, (numChildren - 1));
setChildIndex(bubbleCont, (numChildren - 1));
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
Mouse.hide();
addEventListener("enterFrame", createBubble);
if (SEstat == "on"){
_local3 = bubbleSE.play(0, 1);
};
}
public function cekMenu(_arg1:Event){
if (sea.popupMenu.isFinish){
sea.menuCont.removeChild(sea.popupMenu);
removeEventListener("enterFrame", cekMenu);
addEventListener(KeyboardEvent.KEY_DOWN, gameKeyDown);
addEventListener(KeyboardEvent.KEY_UP, gameKeyUp);
addEventListener(MouseEvent.CLICK, gameMouseClick);
addEventListener("enterFrame", mainLoop);
stage.focus = this;
if (sea.popupMenu.action == "exit"){
finalizeGame();
gotoAndStop("main menu");
} else {
if (sea.popupMenu.action == "changeLoc"){
finalizeGame();
gotoAndPlay("locSel");
};
};
};
}
public function playGame(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:SoundChannel;
finalizeMenu();
menuOut = "locSel";
setChildIndex(blackScreen, (numChildren - 1));
setChildIndex(bubbleCont, (numChildren - 1));
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
Mouse.hide();
addEventListener("enterFrame", createBubble);
if (SEstat == "on"){
_local3 = bubbleSE.play(0, 1);
};
}
public function gameKeyDown(_arg1:KeyboardEvent){
var _local2:Number;
switch (_arg1.keyCode){
case Keyboard.LEFT:
if ((((sea.gameStat == "start")) && (((sea.player.x - (sea.player.width / 2)) > -20)))){
sea.player.x = (sea.player.x - sea.player.boatspeed);
sea.player.routine("move", "Left");
};
break;
case Keyboard.RIGHT:
if ((((sea.gameStat == "start")) && (((sea.player.x + (sea.player.width / 2)) < 660)))){
sea.player.x = (sea.player.x + sea.player.boatspeed);
sea.player.routine("move", "Right");
};
break;
case Keyboard.UP:
if (sea.gameStat == "normalRail"){
if (sea.deepsea.y < 100){
if (bait.y > 150){
bait.y = (bait.y - railSpeed);
bait.routine("up");
} else {
sea.vScroll(-(railSpeed));
sea.poleY = (sea.poleY + railSpeed);
bait.routine("up");
};
};
} else {
if (sea.gameStat == "fight"){
sea.isPulling = true;
};
};
break;
case Keyboard.DOWN:
if (sea.gameStat == "normalRail"){
if (sea.deepsea.y > -380){
sea.vScroll(railSpeed);
sea.poleY = (sea.poleY - railSpeed);
bait.routine("down");
} else {
if (bait.y < 400){
bait.y = (bait.y + railSpeed);
nylonString.y = bait.y;
bait.routine("down");
};
};
};
break;
case Keyboard.SPACE:
if (sea.gameStat == "start"){
if (baitType == "squid"){
sea.player.routine("cast1", sea.player.facing);
};
sea.gameStat = "cast";
};
if (sea.gameStat == "normalRail"){
sea.baitCont.removeChild(bait);
sea.baitCont.removeChild(nylonString);
sea.gameStat = "toSurface";
sea.player.routine("stand", sea.player.facing);
_local2 = 0;
while (_local2 < sea.fishes.length) {
if ((((sea.fishes[_local2].action == "fight")) || ((sea.fishes[_local2].action == "up")))){
sea.fishes[_local2].adjustImage("swim", sea.fishes[_local2].facing);
};
_local2++;
};
};
if (sea.gameStat == "showResult"){
sea.reinit();
sea.player.routine("stand", sea.player.facing);
sea.gameStat = "start";
sea.resultDisp.alpha = 0;
if (BGMstat == "on"){
if (BGMchannel != null){
BGMchannel.stop();
};
BGMchannel = BGM[BGMindex].play(0, 1000);
};
if (sea.qualified == 1){
sea.objConf.alpha = 1;
sea.gameStat = "confirm";
sea.objConf.init();
};
};
break;
case Keyboard.ESCAPE:
if (sea.gameStat != "cast"){
removeEventListener("enterFrame", mainLoop);
removeEventListener(KeyboardEvent.KEY_DOWN, gameKeyDown);
removeEventListener(KeyboardEvent.KEY_UP, gameKeyUp);
removeEventListener(MouseEvent.CLICK, gameMouseClick);
sea.popupMenu = new MenuCont();
sea.menuCont.addChild(sea.popupMenu);
sea.popupMenu.setData(sea.record);
addEventListener("enterFrame", cekMenu);
};
break;
};
}
function frame99(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
public function optToMainMenu(_arg1:MouseEvent){
var _local2:SoundChannel;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
finalizeOption();
gotoAndStop("main menu");
}
public function loadLocalData(){
var _local1:Number;
if (cookies.size != 0){
gameRecord = cookies.data.gameRecord;
} else {
gameRecord = new Array();
gameRecord["jakarta"] = new Array();
gameRecord["krakatau"] = new Array();
gameRecord["bali"] = new Array();
gameRecord["manado"] = new Array();
gameRecord["papua"] = new Array();
gameRecord["best"] = new Array();
gameRecord["bestLoc"] = new Array();
_local1 = 0;
while (_local1 < fish.length) {
gameRecord["best"][fish[_local1]] = 0;
gameRecord["bestLoc"][fish[_local1]] = "";
_local1++;
};
gameRecord["jakarta"]["next"] = "";
gameRecord["krakatau"]["next"] = "";
gameRecord["bali"]["next"] = "";
gameRecord["manado"]["next"] = "";
gameRecord["papua"]["next"] = "";
};
}
function frame100(){
stop();
initGame();
}
public function gameMouseClick(_arg1:MouseEvent){
stage.focus = this;
}
public function toJakarta(_arg1:MouseEvent){
finalizeLocSel();
gotoAndStop("prejakarta");
}
function frame116(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
function frame117(){
stop();
initGame();
}
public function toManado(_arg1:MouseEvent){
if (gameRecord["bali"]["next"] == "manado"){
finalizeLocSel();
gotoAndStop("premanado");
};
}
public function checkPiracy(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Number;
var _local6:Number;
_local2 = (loaderInfo.url.indexOf("://") + 3);
_local3 = loaderInfo.url.indexOf("/", _local2);
_local4 = loaderInfo.url.substring(_local2, _local3);
_local5 = (_local4.lastIndexOf(".") - 1);
_local6 = (_local4.lastIndexOf(".", _local5) + 1);
_local4 = _local4.substring(_local6, _local4.length);
}
public function highToMainMenu(_arg1:MouseEvent){
var _local2:SoundChannel;
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
finalizeHighscore();
gotoAndStop("main menu");
}
public function gotoHigh(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:SoundChannel;
finalizeMenu();
menuOut = "highscore";
setChildIndex(blackScreen, (numChildren - 1));
setChildIndex(bubbleCont, (numChildren - 1));
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
Mouse.hide();
addEventListener("enterFrame", createBubble);
if (SEstat == "on"){
_local3 = bubbleSE.play(0, 1);
};
}
public function initOption(){
stop();
musicStat.text = BGMstat;
effectStat.text = SEstat;
on1_btn.addEventListener(MouseEvent.CLICK, on1Click);
off1_btn.addEventListener(MouseEvent.CLICK, off1Click);
on2_btn.addEventListener(MouseEvent.CLICK, on2Click);
off2_btn.addEventListener(MouseEvent.CLICK, off2Click);
back_btn.addEventListener(MouseEvent.CLICK, optToMainMenu);
}
public function toPapua(_arg1:MouseEvent){
if (gameRecord["manado"]["next"] == "papua"){
finalizeLocSel();
gotoAndStop("prepapua");
};
}
public function finalizeHighscore(){
HS.finalize();
ret_btn.removeEventListener(MouseEvent.CLICK, highToMainMenu);
}
function frame244(){
redeem_btn.addEventListener(MouseEvent.CLICK, redeemClicked);
}
function frame134(){
stop();
initGame();
}
public function gotoOption(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:SoundChannel;
finalizeMenu();
menuOut = "option";
setChildIndex(blackScreen, (numChildren - 1));
setChildIndex(bubbleCont, (numChildren - 1));
if (SEstat == "on"){
_local2 = btnClickSE.play(0, 1);
};
Mouse.hide();
addEventListener("enterFrame", createBubble);
if (SEstat == "on"){
_local3 = bubbleSE.play(0, 1);
};
}
function frame133(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_click);
}
public function waitForStrike(_arg1:Event){
if (strike.isFinish){
this.removeChild(strike);
sea.gameStat = "fight";
removeEventListener("enterFrame", waitForStrike);
addEventListener("enterFrame", mainLoop);
};
}
public function mainLoop(_arg1:Event){
var _local2:String;
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
_local2 = sea.gameStat;
if (SEstat == "on"){
_local3 = true;
} else {
_local3 = false;
};
sea.routine(bait, _local3);
if (bait != null){
bait.updateLine(nylonString, sea.poleX, sea.poleY);
};
if (sea.gameStat == "cast"){
if (((!((sea.player.fisherman == null))) && (sea.player.fisherman.isFinish))){
nylonString = new NylonString();
sea.baitCont.addChild(nylonString);
sea.player.routine("fishing", sea.player.facing);
if (baitType == "squid"){
bait = new SquidBait();
bait.init((sea.player.x + (sea.player.facingDec * sea.player.xBait)), 150);
sea.baitCont.addChild(bait);
};
nylonString.x = bait.x;
nylonString.y = bait.y;
sea.poleX = (sea.player.x + (sea.player.poleX[0] * sea.player.facingDec));
sea.poleY = (sea.player.y + sea.player.poleY[0]);
_local4 = Math.atan(((sea.poleY - nylonString.y) / (sea.poleX - nylonString.x)));
if (sea.poleX < nylonString.x){
_local4 = (_local4 + Math.PI);
};
_local5 = Math.round(((_local4 * 360) / (2 * Math.PI)));
nylonString.rotation = 0;
nylonString.width = Math.sqrt((Math.pow((nylonString.y - sea.poleY), 2) + Math.pow((sea.poleX - nylonString.x), 2)));
nylonString.rotation = _local5;
bait.poleX = sea.poleX;
bait.poleY = sea.poleY;
sea.gameStat = "normalRail";
};
} else {
if (sea.gameStat == "toSurface"){
if (sea.deepsea.y < 100){
sea.vScroll(-10);
} else {
sea.gameStat = "start";
};
} else {
if (sea.gameStat == "normalRail"){
if (bait.action == "bitten"){
sea.fightMeter.alpha = 1;
sea.gameStat = "fight";
};
} else {
if ((((sea.gameStat == "fight")) && ((sea.fightMeter.alpha == 1)))){
if (sea.fightMeter.isHit()){
sea.fightStat = "isHit";
} else {
if (sea.fightMeter.isLoose()){
sea.fightStat = "isLoose";
} else {
if (sea.fightMeter.isToMuch()){
sea.fightStat = "isTooMuch";
};
};
};
} else {
if (sea.gameStat == "confirm"){
if (sea.objConf.cmd == "next"){
finalizeGame();
gotoAndStop(("pre" + sea.record["next"]));
} else {
if (sea.objConf.cmd == "stay"){
sea.gameStat = "start";
};
};
};
};
};
};
};
if (((((!((sea == null))) && (!((_local2 == "fight"))))) && ((sea.gameStat == "fight")))){
if (BGMstat == "on"){
if (BGMchannel != null){
BGMchannel.stop();
};
BGMchannel = BGM[3].play(0, 1000);
};
strike = new Strike();
strike.x = 320;
strike.y = 240;
this.addChild(strike);
sea.gameStat = "wait";
removeEventListener("enterFrame", mainLoop);
addEventListener("enterFrame", waitForStrike);
};
if (((((!((sea == null))) && ((_local2 == "fight")))) && ((((sea.gameStat == "loose")) || ((sea.gameStat == "lineBreak")))))){
if (BGMstat == "on"){
if (BGMchannel != null){
BGMchannel.stop();
};
BGMchannel = BGM[BGMindex].play(0, 1000);
};
};
}
}
}//package fishing_fla
Section 12
//manadoSea_69 (fishing_fla.manadoSea_69)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manadoSea_69 extends MovieClip {
public const fishName:Array;
public const seaName:String = "manado";
public const minCatch:Number = 5;
public const target:Number = 1000;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function manadoSea_69(){
fishName = ["Permit", "Horse Eye Jack", "Big Eye Tuna", "Black Fin Tuna", "Mackaro"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
var _local6:Number;
var _local7:Number;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.2){
_local5 = new Kuwe1();
} else {
if (Math.random() < 0.4){
_local5 = new Kuwe2();
} else {
if (Math.random() < 0.6){
_local5 = new Tuna1();
} else {
if (Math.random() < 0.8){
_local5 = new Tuna2();
} else {
_local5 = new Mackarel1();
};
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
_local6 = 0;
_local7 = 0;
while (_local7 < record["weight"].length) {
_local6 = (_local6 + int(record["weight"][_local7]));
if (_local6 > target){
_local6 = target;
};
_local7++;
};
weightCount_txt.text = ((_local6 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
if ((((_local6 >= target)) && ((catchCount >= minCatch)))){
record["next"] = "papua";
qualified++;
};
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
var _local2:Number;
var _local3:Number;
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
catchCount = record["nama"].length;
_local2 = 0;
_local3 = 0;
while (_local3 < record["weight"].length) {
_local2 = (_local2 + int(record["weight"][_local3]));
if (_local2 > target){
_local2 = target;
};
_local3++;
};
if ((((_local2 >= target)) && ((catchCount >= minCatch)))){
qualified = 2;
};
weightCount_txt.text = ((_local2 + " / ") + target);
if (catchCount > minCatch){
catchCount = minCatch;
};
fishCount_txt.text = ((catchCount + " / ") + minCatch);
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 13
//nextCon_62 (fishing_fla.nextCon_62)
package fishing_fla {
import flash.events.*;
import flash.display.*;
public dynamic class nextCon_62 extends MovieClip {
public var n_btn:SimpleButton;
public var isFinish:Boolean;
public var s_btn:SimpleButton;
public var cmd:String;
public function nextCon_62(){
addFrameScript(0, frame1);
}
public function init(){
x = 320;
y = 240;
isFinish = false;
cmd = "";
n_btn.addEventListener(MouseEvent.CLICK, nextL);
s_btn.addEventListener(MouseEvent.CLICK, stayH);
}
public function finalize(){
y = -500;
alpha = 0;
isFinish = true;
n_btn.removeEventListener(MouseEvent.CLICK, nextL);
s_btn.removeEventListener(MouseEvent.CLICK, stayH);
}
public function stayH(_arg1:MouseEvent){
cmd = "stay";
finalize();
}
function frame1(){
}
public function nextL(_arg1:MouseEvent){
cmd = "next";
finalize();
}
}
}//package fishing_fla
Section 14
//player_46 (fishing_fla.player_46)
package fishing_fla {
import flash.display.*;
public dynamic class player_46 extends MovieClip {
public const boatspeed:Number = 5;
public const poleY:Array;
public const poleX:Array;
public const xBait:Number = 85;
public var activeFrame:String;
public var fisherman:MovieClip;
public var action:String;
public var facingDec:Number;
public var facing:String;
public function player_46(){
poleX = [72, -43.6, 16.1];
poleY = [-100, -93.9, -91.5];
super();
addFrameScript(0, frame1);
}
public function init(){
action = "stand";
facing = "Right";
facingDec = 1;
gotoAndStop((action + facing));
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
if (_arg1 != action){
action = _arg1;
gotoAndStop((action + facing));
};
if (_arg2 != facing){
facingDec = (facingDec * -1);
facing = _arg2;
gotoAndStop((action + facing));
};
}
}
}//package fishing_fla
Section 15
//playercast_50 (fishing_fla.playercast_50)
package fishing_fla {
import flash.display.*;
public dynamic class playercast_50 extends MovieClip {
public var isFinish:Boolean;
public function playercast_50(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
isFinish = true;
}
function frame1(){
isFinish = false;
}
}
}//package fishing_fla
Section 16
//playercast2_52 (fishing_fla.playercast2_52)
package fishing_fla {
import flash.display.*;
public dynamic class playercast2_52 extends MovieClip {
public var isFinish:Boolean;
public function playercast2_52(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
isFinish = true;
}
function frame1(){
isFinish = false;
}
}
}//package fishing_fla
Section 17
//playercast3_53 (fishing_fla.playercast3_53)
package fishing_fla {
import flash.display.*;
public dynamic class playercast3_53 extends MovieClip {
public var isFinish:Boolean;
public function playercast3_53(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
isFinish = true;
}
function frame1(){
isFinish = false;
}
}
}//package fishing_fla
Section 18
//progressBar_1 (fishing_fla.progressBar_1)
package fishing_fla {
import flash.display.*;
public dynamic class progressBar_1 extends MovieClip {
public var line:MovieClip;
public function progressBar_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function updateBar(_arg1){
line.width = (_arg1 * 200);
}
}
}//package fishing_fla
Section 19
//resultDisplay_60 (fishing_fla.resultDisplay_60)
package fishing_fla {
import flash.display.*;
import flash.text.*;
public dynamic class resultDisplay_60 extends MovieClip {
public var foto:MovieClip;
public var time_txt:TextField;
public var weight_txt:TextField;
public var fishfoto;
public var name_txt:TextField;
public function resultDisplay_60(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:Number;
var _local5:Number;
var _local6:Number;
name_txt.text = _arg1;
name_txt.alpha = 1;
weight_txt.text = (Math.round(_arg2) + " kg");
_local4 = (_arg3 % stage.frameRate);
_local4 = Math.round(((_local4 * 100) / stage.frameRate));
_local5 = Math.floor((_arg3 / stage.frameRate));
_local6 = Math.floor((_local5 / 60));
_local5 = (_local5 % 60);
time_txt.text = ((((_local6 + " : ") + _local5) + " . ") + _local4);
if (_arg1 == "Marlin"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageMarlin();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Red Snapper"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageKakapMerah();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Dog Snapper"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageDogSnapper();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Cooper Snapper"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageCooperSnapper();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Plane Snapper"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImagePlaneSnapper();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Permit"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImagePermit();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Horse Eye Jack"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageHorseEyeJack();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Big Eye Tuna"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageBigEyeTuna();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Black Fin Tuna"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageBlackFinTuna();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Mackaro"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageMackaro();
foto.addChild(fishfoto);
} else {
if (_arg1 == "King Mackarel"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageKingMackeral();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Barracuda"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageBarracuda();
foto.addChild(fishfoto);
} else {
if (_arg1 == "Unknown"){
if (fishfoto != null){
foto.removeChild(fishfoto);
};
fishfoto = new ImageUnknown();
foto.addChild(fishfoto);
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
}
}
}//package fishing_fla
Section 20
//secretspot_73 (fishing_fla.secretspot_73)
package fishing_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class secretspot_73 extends MovieClip {
public const fishName:Array;
public const seaName:String = "secret spot";
public const minCatch:Number = 5;
public const target:Number = 2000000;
public var backBubbleCont:MovieClip;
public var popupMenu;
public var record:Array;
public var fightStat:String;
public var qualified:Number;
public var dummy:MovieClip;
public var objConf:MovieClip;
public var player:MovieClip;
public var frontBubbleCont:MovieClip;
public var isPulling:Boolean;
public var putusSE:SE_putus;
public var fishes:Array;
public var catchCount:Number;
public var menuCont:MovieClip;
public var poleInstability:Number;
public var resultDisp:MovieClip;
public var gameStat:String;
public var bubbles:Array;
public var fightMeter:MovieClip;
public var PoleY:Number;
public var msg;
public var lineTense:Number;
public var poleX:Number;
public var weightCount_txt:TextField;
public var fishCont:MovieClip;
public var poleSEchannel:SoundChannel;
public var fishCount_txt:TextField;
public var deepsea:MovieClip;
public var poleMinReelSpeed:Number;
public var baitCont:MovieClip;
public function secretspot_73(){
fishName = ["Red Snapper", "Dog Snapper", "Plane Snapper", "Cooper Snapper", "Permit", "Horse Eye Jack", "Big Eye Tuna", "Black Fin Tuna", "Mackaro", "King Mackarel", "Marlin", "Barracuda", "Unknown"];
super();
addFrameScript(0, frame1);
}
public function finalize(){
}
function frame1(){
putusSE = new SE_putus();
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:*;
var _local5:Object;
if (gameStat != "pause"){
if (Math.random() < 0.1){
_local4 = new Bubble();
_local4.init(deepsea.y, deepsea.height);
bubbles.push(_local4);
if (Math.random() < 0.5){
frontBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
} else {
backBubbleCont.addChild(bubbles[(bubbles.length - 1)]);
};
};
_local3 = 0;
while (_local3 < bubbles.length) {
bubbles[_local3].routine();
if (bubbles[_local3].isNoMore){
if (frontBubbleCont.contains(bubbles[_local3])){
frontBubbleCont.removeChild(bubbles[_local3]);
} else {
if (backBubbleCont.contains(bubbles[_local3])){
backBubbleCont.removeChild(bubbles[_local3]);
};
};
bubbles.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < fishes.length) {
fishes[_local3].routine(_arg1, this);
_local3++;
};
if (fishes.length < 5){
if (Math.random() < 0.05){
_local5 = new Kakap1();
} else {
if (Math.random() < 0.1){
_local5 = new Kakap2();
} else {
if (Math.random() < 0.15){
_local5 = new Kakap3();
} else {
if (Math.random() < 0.2){
_local5 = new Kakap4();
} else {
if (Math.random() < 0.25){
_local5 = new Kuwe1();
} else {
if (Math.random() < 0.3){
_local5 = new Kuwe2();
} else {
if (Math.random() < 0.35){
_local5 = new Tuna1();
} else {
if (Math.random() < 0.4){
_local5 = new Tuna2();
} else {
if (Math.random() < 0.45){
_local5 = new Mackarel1();
} else {
if (Math.random() < 0.5){
_local5 = new Mackarel2();
} else {
if (Math.random() < 0.7){
_local5 = new Marlin();
} else {
if (Math.random() < 0.85){
_local5 = new Barracuda();
} else {
_local5 = new Unknown();
};
};
};
};
};
};
};
};
};
};
};
};
_local5.init();
fishes.push(_local5);
fishCont.addChild(fishes[(fishes.length - 1)]);
};
if (gameStat == "fight"){
if (((isPulling) && ((fightMeter.xCursor < 100)))){
fightMeter.xCursor = (fightMeter.xCursor + (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor > 100){
fightMeter.xCursor = 100;
};
fightMeter.updateCursor(fightMeter.xCursor);
} else {
if (((!(isPulling)) && ((fightMeter.xCursor > 0)))){
fightMeter.xCursor = (fightMeter.xCursor - (poleMinReelSpeed + (Math.random() * poleInstability)));
if (fightMeter.xCursor < 0){
fightMeter.xCursor = 0;
};
fightMeter.updateCursor(fightMeter.xCursor);
};
};
if (lineTense <= 0){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "loose";
msg = new Loose();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
} else {
if (lineTense >= 100){
if (_arg2){
poleSEchannel = putusSE.play(0, 1);
};
gameStat = "lineBreak";
msg = new LineBreak();
msg.x = 320;
msg.y = 240;
this.addChild(msg);
fightMeter.alpha = 0;
};
};
} else {
if ((((gameStat == "loose")) || ((gameStat == "lineBreak")))){
if (msg.isFinish){
trace(("before:" + numChildren));
this.removeChild(msg);
trace(("before:" + numChildren));
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
gameStat = "toSurface";
player.routine("stand", player.facing);
lineTense = 10;
};
} else {
if (gameStat == "catch"){
baitCont.removeChildAt(1);
baitCont.removeChildAt(1);
_local3 = 0;
while (_local3 < fishes.length) {
if (fishes[_local3].isCatched){
catchCount++;
if (record["best"][fishes[_local3].nama] == null){
record["best"][fishes[_local3].nama] = fishes[_local3].weight;
} else {
record["best"][fishes[_local3].nama] = Math.max(fishes[_local3].weight, record["best"][fishes[_local3].nama]);
};
resultDisp.init(fishes[_local3].nama, fishes[_local3].weight, fishes[_local3].timer);
fishCont.removeChild(fishes[_local3]);
if (record["nama"].length < 5){
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
} else {
if ((((fishes[_local3].weight > record["weight"][4])) || ((((fishes[_local3].weight == record["weight"][4])) && ((fishes[_local3].timer < record["time"][4])))))){
record["nama"].pop();
record["weight"].pop();
record["time"].pop();
record["nama"].push(fishes[_local3].nama);
record["weight"].push(Math.round(fishes[_local3].weight));
record["time"].push(fishes[_local3].timer);
};
};
sortRecord();
fishes.splice(_local3, 1);
break;
};
_local3++;
};
gameStat = "showResult";
resultDisp.alpha = 1;
};
};
};
};
}
public function vScroll(_arg1){
var _local2:Number;
deepsea.y = (deepsea.y - _arg1);
_local2 = 0;
while (_local2 < bubbles.length) {
bubbles[_local2].y = (bubbles[_local2].y - _arg1);
_local2++;
};
_local2 = 0;
while (_local2 < fishes.length) {
fishes[_local2].y = (fishes[_local2].y - _arg1);
fishes[_local2].defY = (fishes[_local2].defY - _arg1);
_local2++;
};
player.y = (player.y - _arg1);
}
public function init(_arg1){
qualified = 0;
if (_arg1 != null){
record = _arg1;
if (record["weight"] == null){
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
};
} else {
record = new Array();
record["nama"] = new Array();
record["weight"] = new Array();
record["time"] = new Array();
record["best"] = new Array();
record["next"] = "";
};
sortRecord();
weightCount_txt.text = "- / -";
fishCount_txt.text = "- / -";
bubbles = new Array();
fishes = new Array();
player.init();
fightMeter.alpha = 0;
isPulling = false;
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
}
public function sortRecord(){
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:String;
var _local6:String;
_local1 = record["weight"];
_local2 = 0;
while (_local2 < (_local1.length - 1)) {
_local3 = (_local2 + 1);
while (_local3 < _local1.length) {
if ((((int(_local1[_local2]) < int(_local1[_local3]))) || ((((int(_local1[_local2]) == int(_local1[_local3]))) && ((int(record["time"][_local2]) > int(record["time"][_local3]))))))){
_local4 = record["nama"][_local2];
_local5 = _local1[_local2];
_local6 = record["time"][_local2];
record["nama"][_local2] = record["nama"][_local3];
_local1[_local2] = _local1[_local3];
record["time"][_local2] = record["time"][_local3];
record["nama"][_local3] = _local4;
_local1[_local3] = _local5;
record["time"][_local3] = _local6;
};
_local3++;
};
_local2++;
};
record["weight"] = new Array();
record["weight"] = _local1;
}
public function reinit(){
fightStat = "";
lineTense = 10;
poleInstability = 1;
poleMinReelSpeed = 2;
fightMeter.alpha = 0;
isPulling = false;
}
}
}//package fishing_fla
Section 21
//shakingHS_23 (fishing_fla.shakingHS_23)
package fishing_fla {
import flash.display.*;
public dynamic class shakingHS_23 extends MovieClip {
public function shakingHS_23(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndPlay("loop");
}
}
}//package fishing_fla
Section 22
//squidbaitdown_83 (fishing_fla.squidbaitdown_83)
package fishing_fla {
import flash.display.*;
public dynamic class squidbaitdown_83 extends MovieClip {
public function squidbaitdown_83(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package fishing_fla
Section 23
//squidbaitup_85 (fishing_fla.squidbaitup_85)
package fishing_fla {
import flash.display.*;
public dynamic class squidbaitup_85 extends MovieClip {
public function squidbaitup_85(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package fishing_fla
Section 24
//subrec_77 (fishing_fla.subrec_77)
package fishing_fla {
import flash.display.*;
import flash.text.*;
public dynamic class subrec_77 extends MovieClip {
public var time_txt:TextField;
public var weight_txt:TextField;
public var name_txt:TextField;
public function subrec_77(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2, _arg3){
var _local4:Number;
var _local5:Number;
var _local6:Number;
name_txt.text = _arg1;
weight_txt.text = (Math.round(_arg2) + "kg");
_local4 = (_arg3 % stage.frameRate);
_local4 = Math.round(((_local4 * 100) / stage.frameRate));
_local5 = Math.floor((_arg3 / stage.frameRate));
_local6 = Math.floor((_local5 / 60));
_local5 = (_local5 % 60);
time_txt.text = ((((_local6 + ".") + _local5) + ".") + _local4);
}
function frame1(){
}
}
}//package fishing_fla
Section 25
//tenseBar_56 (fishing_fla.tenseBar_56)
package fishing_fla {
import flash.display.*;
public dynamic class tenseBar_56 extends MovieClip {
public function tenseBar_56(){
addFrameScript(0, frame1);
}
public function setBar(_arg1){
gotoAndStop(_arg1);
}
function frame1(){
}
}
}//package fishing_fla
Section 26
//Bounce (fl.transitions.easing.Bounce)
package fl.transitions.easing {
public class Bounce {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
}
}//package fl.transitions.easing
Section 27
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 28
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 29
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 30
//Barracuda (Barracuda)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Barracuda extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const instability:Number = 3;
public const changeOfInstability:Number = 0.15;
public const minSpamY:Number = 480;
public const tenseUp:Number = 3;
public const varSpamY:Number = 20;
public const relaxDown:Number = 1;
public const minWeight:Number = 100;
public const maxSwimSpd:Number = 30;
public const nama:String = "Barracuda";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 700;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 20;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Barracuda(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 31
//BGMintro (BGMintro)
package {
import flash.media.*;
public dynamic class BGMintro extends Sound {
}
}//package
Section 32
//BigBubble (BigBubble)
package {
import flash.display.*;
public dynamic class BigBubble extends MovieClip {
public var isFinish:Boolean;
public function BigBubble(){
addFrameScript(0, frame1, 35, frame36);
}
public function init(){
x = ((Math.random() * 600) + 20);
y = 480;
}
function frame1(){
isFinish = false;
}
function frame36(){
stop();
isFinish = true;
}
}
}//package
Section 33
//Bubble (Bubble)
package {
import flash.display.*;
public dynamic class Bubble extends MovieClip {
public const dxmod:Number = 1;
public var defX:Number;
public var baitDepth;
public var isNoMore:Boolean;
public var dy:Number;
public var dx;
public var lifeTime;
public function Bubble(){
addFrameScript(0, frame1, 19, frame20);
}
public function init(_arg1, _arg2){
lifeTime = ((Math.random() * 20) + 60);
baitDepth = _arg1;
x = ((Math.random() * 600) + 20);
defX = x;
y = ((_arg2 + baitDepth) - ((Math.random() * 100) + 20));
dx = (((Math.floor((Math.random() * 2)) * 2) - 1) * 3);
isNoMore = false;
}
public function finalize(){
}
function frame1(){
}
function frame20(){
stop();
}
public function routine(){
dy = -(((Math.random() * 5) + 2));
lifeTime--;
if (lifeTime <= 0){
isNoMore = true;
};
y = (y + dy);
x = (x + dx);
if (x > defX){
dx = (dx - dxmod);
} else {
if (x < defX){
dx = (dx + dxmod);
};
};
}
}
}//package
Section 34
//clickSE (clickSE)
package {
import flash.media.*;
public dynamic class clickSE extends Sound {
}
}//package
Section 35
//ImageBarracuda (ImageBarracuda)
package {
import flash.display.*;
public dynamic class ImageBarracuda extends MovieClip {
}
}//package
Section 36
//ImageBigEyeTuna (ImageBigEyeTuna)
package {
import flash.display.*;
public dynamic class ImageBigEyeTuna extends MovieClip {
}
}//package
Section 37
//ImageBlackFinTuna (ImageBlackFinTuna)
package {
import flash.display.*;
public dynamic class ImageBlackFinTuna extends MovieClip {
}
}//package
Section 38
//ImageCooperSnapper (ImageCooperSnapper)
package {
import flash.display.*;
public dynamic class ImageCooperSnapper extends MovieClip {
}
}//package
Section 39
//ImageDogSnapper (ImageDogSnapper)
package {
import flash.display.*;
public dynamic class ImageDogSnapper extends MovieClip {
}
}//package
Section 40
//ImageHorseEyeJack (ImageHorseEyeJack)
package {
import flash.display.*;
public dynamic class ImageHorseEyeJack extends MovieClip {
}
}//package
Section 41
//ImageKakapMerah (ImageKakapMerah)
package {
import flash.display.*;
public dynamic class ImageKakapMerah extends MovieClip {
}
}//package
Section 42
//ImageKingMackeral (ImageKingMackeral)
package {
import flash.display.*;
public dynamic class ImageKingMackeral extends MovieClip {
}
}//package
Section 43
//ImageMackaro (ImageMackaro)
package {
import flash.display.*;
public dynamic class ImageMackaro extends MovieClip {
}
}//package
Section 44
//ImageMarlin (ImageMarlin)
package {
import flash.display.*;
public dynamic class ImageMarlin extends MovieClip {
}
}//package
Section 45
//ImagePermit (ImagePermit)
package {
import flash.display.*;
public dynamic class ImagePermit extends MovieClip {
}
}//package
Section 46
//ImagePlaneSnapper (ImagePlaneSnapper)
package {
import flash.display.*;
public dynamic class ImagePlaneSnapper extends MovieClip {
}
}//package
Section 47
//ImageUnknown (ImageUnknown)
package {
import flash.display.*;
public dynamic class ImageUnknown extends MovieClip {
}
}//package
Section 48
//ImgBarra (ImgBarra)
package {
import flash.display.*;
public dynamic class ImgBarra extends MovieClip {
}
}//package
Section 49
//ImgBigEyeTuna (ImgBigEyeTuna)
package {
import flash.display.*;
public dynamic class ImgBigEyeTuna extends MovieClip {
}
}//package
Section 50
//ImgBlackFinTuna (ImgBlackFinTuna)
package {
import flash.display.*;
public dynamic class ImgBlackFinTuna extends MovieClip {
}
}//package
Section 51
//ImgCopSnap (ImgCopSnap)
package {
import flash.display.*;
public dynamic class ImgCopSnap extends MovieClip {
}
}//package
Section 52
//ImgDogSnap (ImgDogSnap)
package {
import flash.display.*;
public dynamic class ImgDogSnap extends MovieClip {
}
}//package
Section 53
//ImgHorEyeJack (ImgHorEyeJack)
package {
import flash.display.*;
public dynamic class ImgHorEyeJack extends MovieClip {
}
}//package
Section 54
//ImgKingMack (ImgKingMack)
package {
import flash.display.*;
public dynamic class ImgKingMack extends MovieClip {
}
}//package
Section 55
//ImgMack (ImgMack)
package {
import flash.display.*;
public dynamic class ImgMack extends MovieClip {
}
}//package
Section 56
//ImgMarlin (ImgMarlin)
package {
import flash.display.*;
public dynamic class ImgMarlin extends MovieClip {
}
}//package
Section 57
//ImgPermit (ImgPermit)
package {
import flash.display.*;
public dynamic class ImgPermit extends MovieClip {
}
}//package
Section 58
//ImgPlaSnap (ImgPlaSnap)
package {
import flash.display.*;
public dynamic class ImgPlaSnap extends MovieClip {
}
}//package
Section 59
//ImgRedSnap (ImgRedSnap)
package {
import flash.display.*;
public dynamic class ImgRedSnap extends MovieClip {
}
}//package
Section 60
//ImgUnknown (ImgUnknown)
package {
import flash.display.*;
public dynamic class ImgUnknown extends MovieClip {
}
}//package
Section 61
//Kakap1 (Kakap1)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kakap1 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 1;
public const changeOfInstability:Number = 0.05;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 20;
public const maxSwimSpd:Number = 15;
public const nama:String = "Red Snapper";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 80;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kakap1(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 62
//Kakap2 (Kakap2)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kakap2 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const instability:Number = 1;
public const changeOfInstability:Number = 0.05;
public const minSpamY:Number = 480;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 20;
public const maxSwimSpd:Number = 15;
public const nama:String = "Cooper Snapper";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 80;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kakap2(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 63
//Kakap3 (Kakap3)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kakap3 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const instability:Number = 1;
public const changeOfInstability:Number = 0.05;
public const minSpamY:Number = 480;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 20;
public const maxSwimSpd:Number = 15;
public const nama:String = "Plane Snapper";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 80;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kakap3(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 64
//Kakap4 (Kakap4)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kakap4 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 1;
public const changeOfInstability:Number = 0.05;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 20;
public const maxSwimSpd:Number = 15;
public const nama:String = "Dog Snapper";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 80;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kakap4(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 65
//Kuwe1 (Kuwe1)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kuwe1 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2;
public const changeOfInstability:Number = 0.3;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 80;
public const maxSwimSpd:Number = 20;
public const nama:String = "Permit";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 120;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kuwe1(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 66
//Kuwe2 (Kuwe2)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kuwe2 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2;
public const changeOfInstability:Number = 0.3;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 80;
public const maxSwimSpd:Number = 15;
public const nama:String = "Horse Eye Jack";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 120;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 30;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Kuwe2(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 20));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 67
//LineBreak (LineBreak)
package {
import flash.display.*;
public dynamic class LineBreak extends MovieClip {
public var isFinish:Boolean;
public function LineBreak(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
isFinish = false;
}
function frame22(){
isFinish = true;
}
}
}//package
Section 68
//Loose (Loose)
package {
import flash.display.*;
public dynamic class Loose extends MovieClip {
public var isFinish:Boolean;
public function Loose(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
isFinish = false;
}
function frame22(){
isFinish = true;
}
}
}//package
Section 69
//Mackarel1 (Mackarel1)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Mackarel1 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2.5;
public const changeOfInstability:Number = 0.15;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 150;
public const maxSwimSpd:Number = 25;
public const nama:String = "Mackaro";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 350;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 25;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Mackarel1(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 70
//Mackarel2 (Mackarel2)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Mackarel2 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 3;
public const changeOfInstability:Number = 0.1;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 200;
public const maxSwimSpd:Number = 25;
public const nama:String = "King Mackarel";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 400;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 25;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Mackarel2(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 71
//Marlin (Marlin)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Marlin extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2;
public const changeOfInstability:Number = 0.1;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 100;
public const maxSwimSpd:Number = 25;
public const nama:String = "Marlin";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 1100;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 20;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Marlin(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 72
//MbohFish (MbohFish)
package {
import flash.display.*;
public dynamic class MbohFish extends MovieClip {
}
}//package
Section 73
//MenuCont (MenuCont)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MenuCont extends MovieClip {
public var action:String;
public var summary_btn:SimpleButton;
public var isFinish:Boolean;
public var record:Array;
public var change_btn:SimpleButton;
public var exit_btn:SimpleButton;
public var ret_btn:SimpleButton;
public var summHolder;
public var summCont:MovieClip;
public function MenuCont(){
addFrameScript(0, frame1, 22, frame23, 45, frame46);
}
public function mouseClick(_arg1:MouseEvent){
}
public function init(){
change_btn.addEventListener(MouseEvent.CLICK, changeLoc);
summary_btn.addEventListener(MouseEvent.CLICK, showSummary);
exit_btn.addEventListener(MouseEvent.CLICK, toMainMenu);
ret_btn.addEventListener(MouseEvent.CLICK, backToGame);
addEventListener(MouseEvent.CLICK, mouseClick);
}
public function finalize(){
change_btn.removeEventListener(MouseEvent.CLICK, changeLoc);
summary_btn.removeEventListener(MouseEvent.CLICK, showSummary);
exit_btn.removeEventListener(MouseEvent.CLICK, toMainMenu);
ret_btn.removeEventListener(MouseEvent.CLICK, backToGame);
removeEventListener(MouseEvent.CLICK, mouseClick);
}
public function setData(_arg1){
record = _arg1;
gotoAndPlay(1);
}
public function toMainMenu(_arg1:MouseEvent){
action = "exit";
finalize();
play();
}
public function changeLoc(_arg1:MouseEvent){
action = "changeLoc";
finalize();
play();
}
function frame23(){
stop();
init();
}
function frame1(){
isFinish = false;
action = "";
}
function frame46(){
isFinish = true;
stop();
}
public function checkSummClosed(_arg1:Event){
if (summHolder.isFinish){
summCont.removeChild(summHolder);
};
}
public function backToGame(_arg1:MouseEvent){
finalize();
play();
}
public function showSummary(_arg1:MouseEvent){
summHolder = new Summary();
summCont.addChild(summHolder);
summHolder.setData(record);
addEventListener(Event.ENTER_FRAME, checkSummClosed);
}
}
}//package
Section 74
//NylonString (NylonString)
package {
import flash.display.*;
public dynamic class NylonString extends MovieClip {
}
}//package
Section 75
//Pantai1 (Pantai1)
package {
import flash.media.*;
public dynamic class Pantai1 extends Sound {
}
}//package
Section 76
//Pantai2 (Pantai2)
package {
import flash.media.*;
public dynamic class Pantai2 extends Sound {
}
}//package
Section 77
//SE_bubble (SE_bubble)
package {
import flash.media.*;
public dynamic class SE_bubble extends Sound {
}
}//package
Section 78
//SE_putus (SE_putus)
package {
import flash.media.*;
public dynamic class SE_putus extends Sound {
}
}//package
Section 79
//ShineDotBtn (ShineDotBtn)
package {
import flash.display.*;
public dynamic class ShineDotBtn extends MovieClip {
public var btn:SimpleButton;
public var shine:MovieClip;
}
}//package
Section 80
//Smash (Smash)
package {
import flash.media.*;
public dynamic class Smash extends Sound {
}
}//package
Section 81
//SquidBait (SquidBait)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class SquidBait extends MovieClip {
public var noise:MovieClip;
public var action:String;
public var pullAngle:Number;
public var poleY:Number;
public var poleX;
public var dummy:MovieClip;
public function SquidBait(){
addFrameScript(0, frame1);
}
public function init(_arg1, _arg2){
x = _arg1;
y = _arg2;
action = "idle";
pullAngle = 0;
gotoAndStop(action);
}
public function finalize(){
}
public function updateLine(_arg1, _arg2, _arg3){
var _local4:Number;
var _local5:Number;
poleX = _arg2;
poleY = _arg3;
_arg1.x = x;
_arg1.y = y;
_local4 = Math.atan(((_arg1.y - poleY) / (_arg1.x - poleX)));
if (poleX < _arg1.x){
_local4 = (_local4 + Math.PI);
};
_local5 = Math.round(((_local4 * 360) / (2 * Math.PI)));
pullAngle = _local4;
_arg1.rotation = 0;
_arg1.width = Math.sqrt((Math.pow((_arg1.y - poleY), 2) + Math.pow((poleX - _arg1.x), 2)));
_arg1.rotation = _local5;
}
function frame1(){
}
public function routine(_arg1){
if (action != _arg1){
action = _arg1;
gotoAndStop(action);
};
}
}
}//package
Section 82
//Strike (Strike)
package {
import flash.display.*;
public dynamic class Strike extends MovieClip {
public var isFinish:Boolean;
public function Strike(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
isFinish = false;
}
function frame20(){
isFinish = true;
}
}
}//package
Section 83
//StrikeBGM (StrikeBGM)
package {
import flash.media.*;
public dynamic class StrikeBGM extends Sound {
}
}//package
Section 84
//Summary (Summary)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Summary extends MovieClip {
public var isFinish:Boolean;
public var close_btn:SimpleButton;
public var rec1:MovieClip;
public var rec2:MovieClip;
public var rec5:MovieClip;
public var rec4:MovieClip;
public var rec3:MovieClip;
public function Summary(){
addFrameScript(0, frame1, 24, frame25, 49, frame50);
}
public function init(){
close_btn.addEventListener(MouseEvent.CLICK, backToCaller);
}
public function finalize(){
close_btn.removeEventListener(MouseEvent.CLICK, backToCaller);
}
public function setData(_arg1){
var _local2:Number;
_local2 = 0;
while (_local2 < _arg1["nama"].length) {
this[("rec" + (_local2 + 1))].init(_arg1["nama"][_local2], _arg1["weight"][_local2], _arg1["time"][_local2]);
_local2++;
};
gotoAndPlay(1);
}
function frame1(){
isFinish = false;
}
function frame25(){
stop();
init();
}
function frame50(){
isFinish = true;
}
public function backToCaller(_arg1:MouseEvent){
finalize();
play();
}
}
}//package
Section 85
//Tuna1 (Tuna1)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Tuna1 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2;
public const changeOfInstability:Number = 0.1;
public const tenseUp:Number = 2;
public const varSpamY:Number = 20;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 100;
public const maxSwimSpd:Number = 20;
public const nama:String = "Big Eye Tuna";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 1100;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 20;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Tuna1(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 86
//Tuna2 (Tuna2)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Tuna2 extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 2;
public const changeOfInstability:Number = 0.1;
public const tenseUp:Number = 2;
public const varSpamY:Number = 22;
public const relaxDown:Number = 0.5;
public const minWeight:Number = 100;
public const maxSwimSpd:Number = 15;
public const nama:String = "Black Fin Tuna";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 1100;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 20;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Tuna2(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package
Section 87
//Unknown (Unknown)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Unknown extends MovieClip {
public const varAngle:Number = 1.5707963267949;
public const minSpamY:Number = 480;
public const instability:Number = 3;
public const changeOfInstability:Number = 0.15;
public const tenseUp:Number = 3;
public const varSpamY:Number = 20;
public const relaxDown:Number = 1;
public const minWeight:Number = 500;
public const maxSwimSpd:Number = 25;
public const nama:String = "Unknown";
public const startAngle:Number = 0.785398163397448;
public const varWeight:Number = 1500;
public const minSwimSpd:Number = 0;
public const hitTolerance:Number = 10;
public var swimSpd:Number;
public var tolerancePos:Number;
public var isCatched:Boolean;
public var defY:Number;
public var aggArea:MovieClip;
public var action;
public var timer:Number;
public var weight:Number;
public var dy:Number;
public var angle:Number;
public var facing:String;
public var bite:MovieClip;
public function Unknown(){
addFrameScript(0, frame1);
}
public function init(){
timer = 0;
weight = (minWeight + (Math.random() * varWeight));
isCatched = false;
action = "swim";
angle = (startAngle - (Math.random() * varAngle));
swimSpd = (maxSwimSpd - (Math.random() * 15));
if (Math.random() < 0.5){
facing = "Left";
x = 740;
} else {
facing = "Right";
x = -100;
};
gotoAndStop((action + facing));
y = Math.round((minSpamY + (Math.floor((Math.random() * varSpamY)) * 20)));
defY = y;
tolerancePos = (50 - (hitTolerance / 2));
}
public function adjustImage(_arg1, _arg2){
if (action != _arg1){
action = _arg1;
gotoAndStop((action + facing));
};
if (facing != _arg2){
facing = _arg2;
gotoAndStop((action + facing));
};
}
public function finalize(){
}
function frame1(){
}
public function routine(_arg1, _arg2){
var _local3:Number;
var _local4:Number;
if (action == "swim"){
if (((((!((_arg1 == null))) && (aggArea.hitTestObject(_arg1.dummy)))) && (!((_arg1.action == "bitten"))))){
if (_arg2.deepsea.y > -100){
if (facing == "Left"){
adjustImage("return", "Right");
} else {
adjustImage("return", "Left");
};
} else {
_local3 = (Math.sqrt((Math.pow(((x + bite.x) - _arg1.x), 2) + Math.pow(((y + bite.y) - _arg1.y), 2))) / 3);
_local4 = Math.atan(((_arg1.y - (y + bite.y)) / (_arg1.x - (x + bite.x))));
if (_arg1.x < (x + bite.x)){
_local4 = (_local4 + Math.PI);
};
x = (x + (_local3 * Math.cos(_local4)));
y = (y + (_local3 * Math.sin(_local4)));
if (bite.hitTestObject(_arg1.dummy)){
adjustImage("fight", facing);
_arg1.routine("bitten");
timer = 0;
_arg2.fightMeter.init(tolerancePos, hitTolerance, (tolerancePos + (hitTolerance / 2)));
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
};
};
} else {
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (aggArea.hitTestObject(_arg1.noise)))){
if (facing == "Left"){
adjustImage("run", "Right");
} else {
adjustImage("run", "Left");
};
} else {
if (facing == "Left"){
x = (x - (swimSpd * Math.cos(angle)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (swimSpd * Math.cos(angle)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + (swimSpd * Math.sin(angle)));
if ((y - _arg2.deepsea.y) < 200){
angle = (angle + Math.abs((angle * 2)));
};
if ((y - _arg2.deepsea.y) > 800){
angle = (angle - Math.abs((angle * 2)));
};
swimSpd = (swimSpd - 0.2);
if (swimSpd <= 0){
swimSpd = (maxSwimSpd - (Math.random() * 15));
angle = (startAngle - (Math.random() * varAngle));
};
};
};
} else {
if ((((action == "fight")) || ((action == "up")))){
timer++;
if (Math.random() < changeOfInstability){
if (facing == "Left"){
adjustImage(action, "Right");
} else {
adjustImage(action, "Left");
};
};
if (x < _arg1.poleX){
if ((((facing == "Left")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
} else {
if ((((facing == "Right")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
};
};
} else {
if ((((facing == "Left")) && ((tolerancePos < (100 - hitTolerance))))){
tolerancePos = (tolerancePos + instability);
} else {
if ((((facing == "Right")) && ((tolerancePos > 0)))){
tolerancePos = (tolerancePos - instability);
};
};
};
if (facing == "Left"){
x = (x - instability);
} else {
x = (x + instability);
};
_arg2.fightMeter.updateArea(tolerancePos);
if (_arg2.fightStat == "isHit"){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
adjustImage("up", facing);
} else {
if (_arg2.fightStat == "isLoose"){
_arg2.lineTense = (_arg2.lineTense - relaxDown);
if (_arg2.lineTense >= 0){
x = (x + (-10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y > -380){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
_arg2.vScroll(Math.round((-10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((-10 * Math.sin(_arg1.pullAngle))));
} else {
if (_arg1.y < 400){
y = (y - (10 * Math.sin(_arg1.pullAngle)));
if (y > 400){
y = 400;
};
};
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("fight", facing);
} else {
adjustImage("return", facing);
};
} else {
if (_arg2.fightStat == "isTooMuch"){
_arg2.lineTense = (_arg2.lineTense + tenseUp);
if (_arg2.lineTense <= 100){
x = (x + (10 * Math.cos(_arg1.pullAngle)));
if (_arg2.deepsea.y < 100){
if (_arg1.y > 150){
y = (y + (10 * Math.sin(_arg1.pullAngle)));
if (_arg1.y < 150){
_arg2.vScroll((_arg1.y - 150));
_arg2.poleY = (_arg2.poleY - (_arg1.y - 150));
_arg1.y = 150;
};
} else {
_arg2.vScroll(Math.round((10 * Math.sin(_arg1.pullAngle))));
_arg2.poleY = (_arg2.poleY - Math.round((10 * Math.sin(_arg1.pullAngle))));
};
} else {
_arg2.gameStat = "catch";
isCatched = true;
};
_arg2.fightMeter.tenseBar.setBar(Math.round(_arg2.lineTense));
adjustImage("up", facing);
} else {
adjustImage("return", facing);
};
};
};
};
_arg1.x = (x + bite.x);
_arg1.y = (y + bite.y);
} else {
if (action == "return"){
if (y < defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y + 5);
if (y > defY){
y = defY;
};
} else {
if (y > defY){
if (facing == "Left"){
x = (x - (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x <= -100){
adjustImage(action, "Right");
};
} else {
if (facing == "Right"){
x = (x + (minSwimSpd + (Math.random() * maxSwimSpd)));
if (x >= 740){
adjustImage(action, "Left");
};
};
};
y = (y - (0.8 * 5));
if (y < defY){
y = defY;
};
} else {
if (y == defY){
adjustImage("swim", facing);
};
};
};
} else {
if (action == "run"){
if (facing == "Left"){
x = (x - (maxSwimSpd * 2));
} else {
x = (x + (maxSwimSpd * 2));
};
if (((((((!((_arg1 == null))) && (!(aggArea.hitTestObject(_arg1.dummy))))) && ((_arg1.action == "bitten")))) && (!(aggArea.hitTestObject(_arg1.noise))))){
adjustImage("swim", facing);
};
};
};
};
};
}
}
}//package