Section 1
//Achi1_167 (pirateconflictv1_fla.Achi1_167)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi1_167 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 2
//Achi2_168 (pirateconflictv1_fla.Achi2_168)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi2_168 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 3
//Achi3_169 (pirateconflictv1_fla.Achi3_169)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi3_169 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 4
//Achi4_170 (pirateconflictv1_fla.Achi4_170)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi4_170 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 5
//Achi5_171 (pirateconflictv1_fla.Achi5_171)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi5_171 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 6
//Achi6_172 (pirateconflictv1_fla.Achi6_172)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi6_172 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 7
//Achi7_173 (pirateconflictv1_fla.Achi7_173)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi7_173 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 8
//Achi8_174 (pirateconflictv1_fla.Achi8_174)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Achi8_174 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 9
//Achie_165 (pirateconflictv1_fla.Achie_165)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Achie_165 extends MovieClip {
public var achi8:MovieClip;
public var achi6:MovieClip;
public var achi7:MovieClip;
public var ket:MovieClip;
public var closebtn:SimpleButton;
public var par;
public var achi:Array;
public var achi1:MovieClip;
public var achi2:MovieClip;
public var achi4:MovieClip;
public var achi5:MovieClip;
public var achi3:MovieClip;
public function Achie_165(){
addFrameScript(0, frame1, 5, frame6);
}
public function outAchi(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, followMOUSE);
ket.visible = false;
ket.x = -1000;
ket.y = -1000;
}
public function initBtn():void{
var _local1:Array;
var _local2:*;
achi = new Array();
achi.push(achi1);
achi.push(achi2);
achi.push(achi3);
achi.push(achi4);
achi.push(achi5);
achi.push(achi6);
achi.push(achi7);
achi.push(achi8);
_local1 = new Array();
_local1.push(par.AchiDesShip10);
_local1.push(par.AchiDesShip20);
_local1.push(par.AchiPerf3);
_local1.push(par.AchiPerf7);
_local1.push(par.AchiPerfAll);
_local1.push(par.AchiCalmArea2);
_local1.push(par.AchiMines5);
_local1.push(par.AchiVileMurder);
for (_local2 in achi) {
if (_local1[_local2] == false){
achi[_local2].alpha = 0;
} else {
achi[_local2].alpha = 1;
};
achi[_local2].body.addEventListener(MouseEvent.MOUSE_OVER, overAchi);
achi[_local2].body.addEventListener(MouseEvent.MOUSE_OUT, outAchi);
};
closebtn.addEventListener(MouseEvent.CLICK, closeBTN);
closebtn.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
closebtn.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
}
public function closeBTN(_arg1:MouseEvent):void{
play();
}
function frame6(){
stop();
par = this.parent;
achi = new Array();
initBtn();
}
function frame1(){
stop();
}
public function followMOUSE(_arg1:MouseEvent):void{
ket.x = mouseX;
ket.y = mouseY;
}
public function overAchi(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
stage.addEventListener(MouseEvent.MOUSE_MOVE, followMOUSE);
_local2 = _arg1.currentTarget.parent.name;
_local3 = Number(_local2.substr(4));
ket.pic.gotoAndStop(_local3);
ket.visible = true;
}
}
}//package pirateconflictv1_fla
Section 10
//AllPicCapt_185 (pirateconflictv1_fla.AllPicCapt_185)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class AllPicCapt_185 extends MovieClip {
public var pic6:MovieClip;
public var pic5:MovieClip;
public var pic10:MovieClip;
public var pic:Array;
public var pic2:MovieClip;
public var pic3:MovieClip;
public var pic7:MovieClip;
public var pic1:MovieClip;
public var pic9:MovieClip;
public var pic4:MovieClip;
public var pic8:MovieClip;
public function AllPicCapt_185(){
addFrameScript(0, frame1);
}
function frame1(){
pic = new Array();
pic.push(pic1);
pic.push(pic2);
pic.push(pic3);
pic.push(pic4);
pic.push(pic5);
pic.push(pic6);
pic.push(pic7);
pic.push(pic8);
pic.push(pic9);
pic.push(pic10);
}
}
}//package pirateconflictv1_fla
Section 11
//AllPicShip_208 (pirateconflictv1_fla.AllPicShip_208)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class AllPicShip_208 extends MovieClip {
public var ship10:MovieClip;
public var ship12:MovieClip;
public var ship11:MovieClip;
public var ship1:MovieClip;
public var ship2:MovieClip;
public var ship3:MovieClip;
public var ship7:MovieClip;
public var ship8:MovieClip;
public var ship4:MovieClip;
public var ship9:MovieClip;
public var pic:Array;
public var ship5:MovieClip;
public var ship6:MovieClip;
public function AllPicShip_208(){
addFrameScript(0, frame1);
}
function frame1(){
pic = new Array();
pic.push(ship1);
pic.push(ship2);
pic.push(ship3);
pic.push(ship4);
pic.push(ship5);
pic.push(ship6);
pic.push(ship7);
pic.push(ship8);
pic.push(ship9);
pic.push(ship10);
pic.push(ship11);
pic.push(ship12);
}
}
}//package pirateconflictv1_fla
Section 12
//area_158 (pirateconflictv1_fla.area_158)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class area_158 extends MovieClip {
public var pic:MovieClip;
public function area_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 13
//AreaDesc_161 (pirateconflictv1_fla.AreaDesc_161)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class AreaDesc_161 extends MovieClip {
public var desc:TextField;
public var area:TextField;
public var perf:TextField;
}
}//package pirateconflictv1_fla
Section 14
//AreaShot_244 (pirateconflictv1_fla.AreaShot_244)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class AreaShot_244 extends MovieClip {
public var area:MovieClip;
}
}//package pirateconflictv1_fla
Section 15
//areass_159 (pirateconflictv1_fla.areass_159)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class areass_159 extends MovieClip {
public function areass_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 16
//BG_238 (pirateconflictv1_fla.BG_238)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class BG_238 extends MovieClip {
public function BG_238(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 17
//big1_95 (pirateconflictv1_fla.big1_95)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class big1_95 extends MovieClip {
public function big1_95(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 18
//big2_98 (pirateconflictv1_fla.big2_98)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class big2_98 extends MovieClip {
public function big2_98(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 19
//big3_101 (pirateconflictv1_fla.big3_101)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class big3_101 extends MovieClip {
public function big3_101(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 20
//big4_104 (pirateconflictv1_fla.big4_104)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class big4_104 extends MovieClip {
public function big4_104(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 21
//concede_260 (pirateconflictv1_fla.concede_260)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class concede_260 extends MovieClip {
public function concede_260(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 22
//Concede_276 (pirateconflictv1_fla.Concede_276)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Concede_276 extends MovieClip {
public var par;
public var no:MovieClip;
public var yes:MovieClip;
public function Concede_276(){
addFrameScript(0, frame1, 5, frame6, 8, frame9);
}
public function YEYE(_arg1:MouseEvent):void{
par.main.DEINIT("lose");
gotoAndStop("end");
}
function frame6(){
stop();
par = this.parent;
no.addEventListener(MouseEvent.CLICK, NONO);
no.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
no.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
yes.addEventListener(MouseEvent.CLICK, YEYE);
yes.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
yes.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
public function NONO(_arg1:MouseEvent):void{
play();
}
}
}//package pirateconflictv1_fla
Section 23
//Credit_127 (pirateconflictv1_fla.Credit_127)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Credit_127 extends MovieClip {
public var closebtn:SimpleButton;
public var par;
public function Credit_127(){
addFrameScript(0, frame1, 5, frame6);
}
public function thisCLOSE(_arg1:MouseEvent):void{
play();
}
function frame6(){
stop();
par = this.parent;
closebtn.addEventListener(MouseEvent.CLICK, thisCLOSE);
closebtn.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
closebtn.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 24
//CreditComp_128 (pirateconflictv1_fla.CreditComp_128)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class CreditComp_128 extends MovieClip {
public var logosf:SimpleButton;
public var logogp:SimpleButton;
public function CreditComp_128(){
addFrameScript(0, frame1);
}
public function logoclick2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamepirate.com");
navigateToURL(_local2, "_blank");
}
function frame1(){
logogp.addEventListener(MouseEvent.CLICK, logoclick2);
logosf.addEventListener(MouseEvent.CLICK, logoclick);
}
public function logoclick(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.smallfarmstudio.com");
navigateToURL(_local2, "_blank");
}
}
}//package pirateconflictv1_fla
Section 25
//DiagloxBox_196 (pirateconflictv1_fla.DiagloxBox_196)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class DiagloxBox_196 extends MovieClip {
public var tex:TextField;
public var theText:String;
public var par;
public function DiagloxBox_196(){
addFrameScript(0, frame1, 7, frame8, 54, frame55);
}
function frame1(){
par = this.parent;
stop();
}
function frame8(){
tex.text = theText;
par.npc.gotoAndPlay(1);
}
function frame55(){
par.npc.gotoAndStop(1);
}
}
}//package pirateconflictv1_fla
Section 26
//DisplayStat_255 (pirateconflictv1_fla.DisplayStat_255)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class DisplayStat_255 extends MovieClip {
public var HP:TextField;
public var pice:MovieClip;
public var skill:MovieClip;
public var CREW:TextField;
public var nama:TextField;
public var captinfo:TextField;
public var CANON:TextField;
}
}//package pirateconflictv1_fla
Section 27
//DispSkillPasive_257 (pirateconflictv1_fla.DispSkillPasive_257)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class DispSkillPasive_257 extends MovieClip {
public function DispSkillPasive_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 28
//dock_215 (pirateconflictv1_fla.dock_215)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class dock_215 extends MovieClip {
public var lea:MovieClip;
public var ent:MovieClip;
public var settave:MovieClip;
public var out:MovieClip;
public var setharb:MovieClip;
public var diag:MovieClip;
public var goOut:Boolean;
public var par;
public var equipmenu:MovieClip;
public var leave:Boolean;
public var npc:MovieClip;
public var goWHERE:String;
public function dock_215(){
addFrameScript(0, frame1, 29, frame30, 35, frame36, 42, frame43, 114, frame115, 129, frame130);
}
public function teksOUT(_arg1:MouseEvent):void{
var _local2:*;
par.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0;
}
public function IN(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = false;
par.playVoice("yes");
}
public function OUT(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = true;
par.playVoice("leave");
}
public function outTAVE(_arg1:MouseEvent):void{
if (equipmenu.currentLabel == "idle"){
gogo("tavern");
};
}
public function ooutDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mouseSTOP();
_local2.gotoAndStop(1);
}
public function outHARB(_arg1:MouseEvent):void{
if (equipmenu.currentLabel == "idle"){
gogo("harbor");
};
}
function frame30(){
leave = false;
}
function frame36(){
stop();
ent.addEventListener(MouseEvent.CLICK, IN);
lea.addEventListener(MouseEvent.CLICK, OUT);
ent.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
ent.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
lea.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
lea.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
}
function frame1(){
par = this.parent;
if (par.dock1 == false){
play();
} else {
gotoAndPlay("enter");
};
}
function frame115(){
stop();
goOut = false;
out.addEventListener(MouseEvent.CLICK, outDock);
out.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
out.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
out.gotoAndStop(1);
settave.addEventListener(MouseEvent.CLICK, outTAVE);
settave.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
settave.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
settave.gotoAndStop(1);
setharb.addEventListener(MouseEvent.CLICK, outHARB);
setharb.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
setharb.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setharb.gotoAndStop(1);
}
public function outDock(_arg1:MouseEvent):void{
gogo("map");
}
function frame43(){
stop();
if (leave == true){
par.trans.goToScreen("map");
} else {
play();
par.dock1 = true;
};
}
function frame130(){
stop();
}
public function ooverDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mousePLAY();
_local2.play();
}
public function showText(_arg1:String):void{
if (diag != null){
diag.theText = _arg1;
diag.gotoAndPlay(2);
};
}
public function gogo(_arg1:String):void{
var _local2:Boolean;
_local2 = false;
if ((((((par.SHIP1.MODEL > 0)) && ((par.SHIP1.CAPT > 0)))) && ((par.SHIP1.CREW > 0)))){
_local2 = true;
};
if (_local2 == true){
if (equipmenu.currentLabel == "idle"){
equipmenu.gotoAndPlay("close");
goWHERE = _arg1;
goOut = true;
showText("Aye aye arghhhhh");
out.visible = false;
settave.visible = false;
setharb.visible = false;
play();
par.playVoice("leave");
} else {
equipmenu.play();
};
} else {
showText("There must be a ship, captain and crew who served on the first dock");
};
}
public function teksOVER(_arg1:MouseEvent):void{
var _local2:*;
par.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0.2;
}
}
}//package pirateconflictv1_fla
Section 29
//Duel_267 (pirateconflictv1_fla.Duel_267)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Duel_267 extends MovieClip {
public var pic:MovieClip;
public var par;
public var lagiAnimasi:Boolean;
public function Duel_267(){
addFrameScript(0, frame1);
}
public function STOP():void{
pic.gotoAndStop(1);
lagiAnimasi = false;
par.main.lagiDuel = false;
}
public function PLAY():void{
pic.play();
}
function frame1(){
lagiAnimasi = false;
par = this.parent;
}
public function CALC():void{
par.main.duelGO();
}
}
}//package pirateconflictv1_fla
Section 30
//Ending_295 (pirateconflictv1_fla.Ending_295)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ending_295 extends MovieClip {
public var par;
public function Ending_295(){
addFrameScript(478, frame479);
}
function frame479(){
stop();
par = this.parent;
par.trans.goToScreen("map");
}
}
}//package pirateconflictv1_fla
Section 31
//Enter_217 (pirateconflictv1_fla.Enter_217)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Enter_217 extends MovieClip {
public var peri:MovieClip;
public function Enter_217(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 32
//equipmenu_183 (pirateconflictv1_fla.equipmenu_183)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class equipmenu_183 extends MovieClip {
public var haved:MovieClip;
public var glow1:MovieClip;
public var glow2:MovieClip;
public var crewhave:TextField;
public var btn3:MovieClip;
public var sellCapt;
public var btn2:MovieClip;
public var glow4:MovieClip;
public var i;
public var btn:Array;
public var btn1:MovieClip;
public var btn4:MovieClip;
public var pluscrew:MovieClip;
public var glow3:MovieClip;
public var crewbuy:TextField;
public var par;
public var glow:Array;
public var mincrew:MovieClip;
public var crewcost:TextField;
public var buycap:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
public var whatCapt;
public var indexShop;
public var buycrew:MovieClip;
public function equipmenu_183(){
addFrameScript(0, frame1, 14, frame15, 32, frame33, 43, frame44, 49, frame50, 85, frame86);
}
public function buyCREW(_arg1:MouseEvent):void{
var _local2:*;
if (Number(crewbuy.text) > 0){
if (par.parent.GOLD >= Number(crewcost.text)){
par.parent.GOLD = (par.parent.GOLD - Number(crewcost.text));
par.parent.ALLCREW = (par.parent.ALLCREW + Number(crewbuy.text));
crewhave.text = par.parent.ALLCREW;
_local2 = par.parent.crewFully();
if (_local2 >= 0){
par.showText((("You have recruit " + crewbuy.text) + " Crews\nYou have enough crew now to fulfil all your Ships."));
crewbuy.text = "0";
crewcost.text = "0";
} else {
par.showText((((("You have recruit " + crewbuy.text) + " Crews\nYou need ") + Math.abs(_local2)) + " Crews to fulfil all your Ships."));
};
refreshEQUIP();
par.parent.playVoice("yes");
} else {
par.showText("Go plunder something");
par.parent.playVoice("money");
};
};
}
public function indexUp(_arg1:MouseEvent):void{
if (indexShop > 0){
indexShop--;
};
cekBtnUpDown();
showSellCapt();
}
public function cekBtnUpDown():void{
for (i in btn) {
btn[i].visible = true;
};
if (par.parent.SHOPCAPT.length < 4){
btn4.visible = false;
};
if (par.parent.SHOPCAPT.length < 3){
btn3.visible = false;
};
if (par.parent.SHOPCAPT.length < 2){
btn2.visible = false;
};
if (par.parent.SHOPCAPT.length < 1){
btn1.visible = false;
};
if (par.parent.SHOPCAPT.length <= (indexShop + 4)){
Down.visible = false;
} else {
Down.visible = true;
};
if (indexShop == 0){
Up.visible = false;
} else {
Up.visible = true;
};
}
public function refreshEQUIP():void{
var _local1:*;
par.parent.sortCAPTSHIP();
par.parent.SaveGame();
for (_local1 in haved.piccap.pic) {
haved.piccap.pic[_local1].gotoAndStop(12);
};
for (_local1 in par.parent.BUYCAPT) {
haved.piccap.pic[_local1].gotoAndStop(par.parent.BUYCAPT[_local1]);
};
haved.gold.text = par.parent.GOLD;
}
public function buycapOut(_arg1:MouseEvent):void{
par.parent.mouseSTOP();
buycap.peri.alpha = 0;
}
function frame86(){
stop();
par.parent.trans.goToScreen(par.goWHERE);
}
public function sellCAPT(_arg1:MouseEvent):void{
var _local2:*;
if (sellCapt != 0){
if (par.parent.cekCostCapt(sellCapt) != 0){
for (i in par.parent.BUYCAPT) {
if (par.parent.BUYCAPT[i] == sellCapt){
_local2 = i;
};
};
par.parent.GOLD = (par.parent.GOLD + Math.round((par.parent.cekCostCapt(sellCapt) * 0.7)));
par.parent.BUYCAPT.splice(_local2, 1);
par.parent.SHOPCAPT.push(sellCapt);
par.showText(("You have dismiss " + par.parent.captName(sellCapt)));
sellCapt = 0;
whatCapt = 0;
refreshEQUIP();
indexShop = 0;
showSellCapt();
cekBtnUpDown();
par.parent.playVoice("buy");
for (i in haved.piccap.pic) {
haved.piccap.pic[i].filters = [];
};
} else {
par.showText("ARE YOU CRAZY!!!\nYou can't dismiss yourself!!");
par.parent.playVoice("money");
};
};
}
public function showSellCapt():void{
buycap.visible = false;
for (i in glow) {
glow[i].visible = false;
};
for (i in btn) {
if (par.parent.SHOPCAPT[(indexShop + i)] != null){
btn[i].pic.gotoAndStop(par.parent.SHOPCAPT[(indexShop + i)]);
btn[i].capt.text = par.parent.captName(par.parent.SHOPCAPT[(indexShop + i)]);
btn[i].skill.text = par.parent.cekSkillCapt(par.parent.SHOPCAPT[(indexShop + i)]);
btn[i].cost.text = par.parent.cekCostCapt(par.parent.SHOPCAPT[(indexShop + i)]);
if (btn[i].pic.currentFrame == whatCapt){
glow[i].visible = true;
buycap.visible = true;
};
};
};
}
public function buyCAPT(_arg1:MouseEvent):void{
var _local2:*;
if (whatCapt != 0){
if (par.parent.GOLD >= par.parent.cekCostCapt(whatCapt)){
par.parent.GOLD = (par.parent.GOLD - par.parent.cekCostCapt(whatCapt));
for (i in par.parent.SHOPCAPT) {
if (par.parent.SHOPCAPT[i] == whatCapt){
_local2 = i;
};
};
par.parent.SHOPCAPT.splice(_local2, 1);
par.parent.BUYCAPT.push(whatCapt);
par.showText(("You have recruit " + par.parent.captName(whatCapt)));
sellCapt = 0;
whatCapt = 0;
refreshEQUIP();
indexShop = 0;
showSellCapt();
cekBtnUpDown();
for (i in haved.piccap.pic) {
haved.piccap.pic[i].filters = [];
};
par.parent.playVoice("buy");
} else {
par.showText("Go plunder something");
par.parent.playVoice("money");
};
};
}
function frame1(){
par = this.parent;
}
public function buycapOver(_arg1:MouseEvent):void{
par.parent.mousePLAY();
buycap.peri.alpha = 0.2;
}
public function klikThis(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.name;
_local3 = Number(_local2.substr(3));
for (i in glow) {
glow[i].visible = false;
};
glow[(_local3 - 1)].visible = true;
buycap.visible = true;
_local2 = _arg1.currentTarget;
whatCapt = _local2.pic.currentFrame;
par.showText(par.parent.captBlaBla(whatCapt));
par.parent.playVoice(("capt" + whatCapt));
}
public function plusCREW(_arg1:MouseEvent):void{
var _local2:*;
if (Number(crewbuy.text) < 100){
_local2 = (par.parent.crewFully() + Number(crewbuy.text));
trace(_local2);
if (_local2 < 0){
crewbuy.text = String((Number(crewbuy.text) + 5));
crewcost.text = String((Number(crewbuy.text) * par.parent.CREWcost));
} else {
par.showText("No more space on your ships");
};
};
}
function frame44(){
stop();
buycap.visible = false;
glow = new Array();
glow1.visible = false;
glow2.visible = false;
glow3.visible = false;
glow4.visible = false;
glow.push(glow1);
glow.push(glow2);
glow.push(glow3);
glow.push(glow4);
btn = new Array();
btn.push(btn1);
btn.push(btn2);
btn.push(btn3);
btn.push(btn4);
whatCapt = 0;
sellCapt = 0;
crewhave.text = par.parent.ALLCREW;
crewbuy.text = "0";
crewcost.text = "0";
buycrew.addEventListener(MouseEvent.CLICK, buyCREW);
buycrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
buycrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
pluscrew.addEventListener(MouseEvent.CLICK, plusCREW);
pluscrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
pluscrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
mincrew.addEventListener(MouseEvent.CLICK, minCREW);
mincrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
mincrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
for (i in btn) {
btn[i].addEventListener(MouseEvent.CLICK, klikThis);
btn[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
btn[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
};
indexShop = 0;
Up.addEventListener(MouseEvent.CLICK, indexUp);
Down.addEventListener(MouseEvent.CLICK, indexDown);
Up.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
Up.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
Down.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
Down.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
showSellCapt();
cekBtnUpDown();
for (i in haved.piccap.pic) {
haved.piccap.pic[i].addEventListener(MouseEvent.CLICK, selectInven);
haved.piccap.pic[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
haved.piccap.pic[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
};
haved.sellbtn.addEventListener(MouseEvent.CLICK, sellCAPT);
haved.sellbtn.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
haved.sellbtn.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
buycap.addEventListener(MouseEvent.CLICK, buyCAPT);
buycap.addEventListener(MouseEvent.MOUSE_OVER, buycapOver);
buycap.addEventListener(MouseEvent.MOUSE_OUT, buycapOut);
}
public function minCREW(_arg1:MouseEvent):void{
if (Number(crewbuy.text) > 0){
crewbuy.text = String((Number(crewbuy.text) - 5));
crewcost.text = String((Number(crewbuy.text) * par.parent.CREWcost));
};
}
public function selectInven(_arg1:MouseEvent):void{
var _local2:*;
var _local3:GlowFilter;
for (i in haved.piccap.pic) {
haved.piccap.pic[i].filters = [];
};
_local2 = _arg1.currentTarget;
_local3 = new GlowFilter();
_local3.color = 0xFFCC00;
_local3.alpha = 1;
_local3.blurX = 25;
_local3.blurY = 25;
_local3.strength = 3;
_local3.quality = BitmapFilterQuality.MEDIUM;
_local2.filters = [_local3];
sellCapt = _local2.currentFrame;
par.showText(par.parent.captBlaBla(_local2.currentFrame));
par.parent.playVoice(("capt" + sellCapt));
}
public function indexDown(_arg1:MouseEvent):void{
if (par.parent.SHOPCAPT.length > (indexShop + 4)){
indexShop++;
};
cekBtnUpDown();
showSellCapt();
}
function frame50(){
par.parent.playVoice("paper");
}
function frame33(){
par.parent.playVoice("paper");
}
function frame15(){
refreshEQUIP();
}
}
}//package pirateconflictv1_fla
Section 33
//equipmenu_201 (pirateconflictv1_fla.equipmenu_201)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class equipmenu_201 extends MovieClip {
public var hp:TextField;
public var haved:MovieClip;
public var whatShip;
public var glow1:MovieClip;
public var glow2:MovieClip;
public var attack:TextField;
public var btn3:MovieClip;
public var btn2:MovieClip;
public var menu:MovieClip;
public var speed:TextField;
public var klas:TextField;
public var crew:TextField;
public var btn1:MovieClip;
public var glow3:MovieClip;
public var canondam:TextField;
public var buy:MovieClip;
public var par;
public var canon:TextField;
public var glow:Array;
public var Up:MovieClip;
public var sellShip;
public var Down:MovieClip;
public var i;
public var shipname:TextField;
public var btn:Array;
public var indexShop;
public function equipmenu_201(){
addFrameScript(0, frame1, 14, frame15, 28, frame29, 32, frame33, 43, frame44, 48, frame49, 84, frame85);
}
public function indexUp(_arg1:MouseEvent):void{
if (indexShop > 0){
indexShop--;
};
cekBtnUpDown();
showSellShip();
}
public function cekBtnUpDown():void{
for (i in btn) {
btn[i].visible = true;
};
if (par.parent.SHOPSHIP.length < 3){
btn3.visible = false;
};
if (par.parent.SHOPSHIP.length < 2){
btn2.visible = false;
};
if (par.parent.SHOPSHIP.length < 1){
btn1.visible = false;
};
if (par.parent.SHOPSHIP.length <= (indexShop + 3)){
Down.visible = false;
} else {
Down.visible = true;
};
if (indexShop == 0){
Up.visible = false;
} else {
Up.visible = true;
};
}
public function refreshEQUIP():void{
par.parent.sortCAPTSHIP();
par.parent.SaveGame();
for (i in haved.picship.pic) {
haved.picship.pic[i].gotoAndStop(14);
};
for (i in par.parent.BUYSHIP) {
haved.picship.pic[i].gotoAndStop(par.parent.BUYSHIP[i]);
};
haved.gold.text = par.parent.GOLD;
}
function frame85(){
stop();
par.parent.trans.goToScreen(par.goWHERE);
}
function frame1(){
par = this.parent;
}
function frame29(){
menu.picship.visible = false;
}
public function klikThis(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.name;
_local3 = Number(_local2.substr(3));
for (i in glow) {
glow[i].visible = false;
};
buy.visible = true;
glow[(_local3 - 1)].visible = true;
_local2 = _arg1.currentTarget;
whatShip = _local2.pic.currentFrame;
dispTHIS(whatShip);
if (par.parent.cekLockShip(_local2.pic.currentFrame) == false){
} else {
klas.text = "---";
crew.text = "---";
hp.text = "---";
canon.text = "---";
canondam.text = "---";
speed.text = "---";
attack.text = "---";
};
}
public function buyOver(_arg1:MouseEvent):void{
par.parent.mousePLAY();
buy.peri.alpha = 0.2;
}
function frame44(){
stop();
klas.text = "---";
crew.text = "---";
shipname.text = "---";
hp.text = "---";
canon.text = "---";
canondam.text = "---";
speed.text = "---";
attack.text = "---";
buy.visible = false;
whatShip = 0;
sellShip = 0;
glow = new Array();
glow1.visible = false;
glow2.visible = false;
glow3.visible = false;
glow.push(glow1);
glow.push(glow2);
glow.push(glow3);
btn = new Array();
btn.push(btn1);
btn.push(btn2);
btn.push(btn3);
for (i in btn) {
btn[i].addEventListener(MouseEvent.CLICK, klikThis);
btn[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
btn[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
};
indexShop = 0;
Up.addEventListener(MouseEvent.CLICK, indexUp);
Down.addEventListener(MouseEvent.CLICK, indexDown);
Up.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
Up.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
Down.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
Down.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
showSellShip();
cekBtnUpDown();
for (i in haved.picship.pic) {
haved.picship.pic[i].addEventListener(MouseEvent.CLICK, selectInven);
haved.picship.pic[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
haved.picship.pic[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
};
haved.sellbtn.addEventListener(MouseEvent.CLICK, sellSHIP);
haved.sellbtn.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
haved.sellbtn.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
buy.addEventListener(MouseEvent.CLICK, buySHIP);
buy.addEventListener(MouseEvent.MOUSE_OVER, buyOver);
buy.addEventListener(MouseEvent.MOUSE_OUT, buyOut);
}
public function indexDown(_arg1:MouseEvent):void{
if (par.parent.SHOPSHIP.length > (indexShop + 3)){
indexShop++;
};
cekBtnUpDown();
showSellShip();
}
public function selectInven(_arg1:MouseEvent):void{
var _local2:*;
var _local3:GlowFilter;
for (i in haved.picship.pic) {
haved.picship.pic[i].filters = [];
};
_local2 = _arg1.currentTarget;
_local3 = new GlowFilter();
_local3.color = 0xFFCC00;
_local3.alpha = 1;
_local3.blurX = 25;
_local3.blurY = 25;
_local3.strength = 3;
_local3.quality = BitmapFilterQuality.MEDIUM;
_local2.filters = [_local3];
sellShip = _local2.currentFrame;
par.showText(par.parent.shipBlaBla(_local2.currentFrame));
}
function frame49(){
par.parent.playVoice("paper");
}
public function buySHIP(_arg1:MouseEvent):void{
var _local2:*;
if (whatShip != 0){
if (par.parent.cekLockShip(whatShip) == false){
if (par.parent.GOLD >= par.parent.cekCostShip(whatShip)){
par.parent.GOLD = (par.parent.GOLD - par.parent.cekCostShip(whatShip));
for (i in par.parent.SHOPSHIP) {
if (par.parent.SHOPSHIP[i] == whatShip){
_local2 = i;
};
};
par.showText(("You have bought " + par.parent.shipName(whatShip)));
if (whatShip == 13){
par.parent.getAchi(3);
};
par.parent.SHOPSHIP.splice(_local2, 1);
par.parent.BUYSHIP.push(whatShip);
sellShip = 0;
whatShip = 0;
refreshEQUIP();
indexShop = 0;
showSellShip();
cekBtnUpDown();
klas.text = "---";
crew.text = "---";
shipname.text = "---";
hp.text = "---";
canon.text = "---";
canondam.text = "---";
speed.text = "---";
attack.text = "---";
menu.picship.visible = false;
par.parent.playVoice("buy");
for (i in haved.picship.pic) {
haved.picship.pic[i].filters = [];
};
} else {
par.showText("Need more gold");
par.parent.playVoice("money");
};
} else {
par.showText("This ship is not available");
par.parent.playVoice("money");
};
};
}
function frame33(){
par.parent.playVoice("paper");
}
public function sellSHIP(_arg1:MouseEvent):void{
var _local2:*;
if (sellShip != 0){
for (i in par.parent.BUYSHIP) {
if (par.parent.BUYSHIP[i] == sellShip){
_local2 = i;
};
};
par.showText(("You have sold " + par.parent.shipName(sellShip)));
par.parent.GOLD = (par.parent.GOLD + Math.round((par.parent.cekCostShip(sellShip) * 0.7)));
par.parent.BUYSHIP.splice(_local2, 1);
par.parent.SHOPSHIP.push(sellShip);
sellShip = 0;
whatShip = 0;
refreshEQUIP();
indexShop = 0;
showSellShip();
cekBtnUpDown();
klas.text = "---";
crew.text = "---";
shipname.text = "---";
hp.text = "---";
canon.text = "---";
canondam.text = "---";
speed.text = "---";
attack.text = "---";
menu.picship.visible = false;
par.parent.playVoice("buy");
for (i in haved.picship.pic) {
haved.picship.pic[i].filters = [];
};
};
}
function frame15(){
refreshEQUIP();
}
public function dispTHIS(_arg1:Number):void{
var _local2:*;
menu.picship.visible = true;
menu.picship.gotoAndStop(_arg1);
shipname.text = par.parent.shipName(_arg1);
_local2 = par.parent.cekStatusShip(_arg1);
crew.text = _local2.MAXCREW;
hp.text = _local2.MAXHP;
canon.text = _local2.MAXjumCannon;
canondam.text = _local2.CanonDamage;
speed.text = _local2.maxSPEED;
attack.text = _local2.attack;
if (_arg1 <= 5){
klas.text = "SMALL";
} else {
if (_arg1 >= 10){
klas.text = "BIG";
} else {
klas.text = "MEDIUM";
};
};
}
public function showSellShip():void{
for (i in glow) {
glow[i].visible = false;
};
buy.visible = false;
for (i in btn) {
if (par.parent.SHOPSHIP[(indexShop + i)] != null){
btn[i].locked.visible = false;
btn[i].pic.gotoAndStop(par.parent.SHOPSHIP[(indexShop + i)]);
btn[i].ship.text = par.parent.shipName(par.parent.SHOPSHIP[(indexShop + i)]);
if (par.parent.SHOPSHIP[(indexShop + i)] <= 5){
btn[i].klas.text = "SMALL";
} else {
if (par.parent.SHOPSHIP[(indexShop + i)] >= 10){
btn[i].klas.text = "BIG";
} else {
btn[i].klas.text = "MEDIUM";
};
};
btn[i].cost.text = par.parent.cekCostShip(par.parent.SHOPSHIP[(indexShop + i)]);
if (btn[i].pic.currentFrame == whatShip){
glow[i].visible = true;
buy.visible = true;
};
btn[i].locked.visible = par.parent.cekLockShip(btn[i].pic.currentFrame);
};
};
}
public function buyOut(_arg1:MouseEvent):void{
par.parent.mouseSTOP();
buy.peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 34
//equipmenu_219 (pirateconflictv1_fla.equipmenu_219)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class equipmenu_219 extends MovieClip {
public var haved:MovieClip;
public var menuselect:MovieClip;
public var theSHIP;
public var menuequip:MovieClip;
public var whatShip:Number;
public var ship:MovieClip;
public var glow1:MovieClip;
public var glow2:MovieClip;
public var crew:MovieClip;
public var canWarn:Boolean;
public var glow3:MovieClip;
public var par;
public var i;
public var capt:MovieClip;
public function equipmenu_219(){
addFrameScript(0, frame1, 10, frame11, 14, frame15, 32, frame33, 33, frame34, 36, frame37, 56, frame57, 59, frame60, 83, frame84, 84, frame85, 108, frame109);
}
public function rollCapt(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.showText(par.parent.captBlaBla(_local2.currentFrame));
}
public function setCREWe():void{
var _local1:*;
var _local2:*;
par.parent.SaveGame();
menuequip.allcrew.text = par.parent.ALLCREW;
if (whatShip == 1){
theSHIP = par.parent.SHIP1;
menuselect.text1.crew.text = String(((par.parent.SHIP1.CREW + "/") + par.parent.SHIP1.Status.MAXCREW));
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
};
if (whatShip == 2){
theSHIP = par.parent.SHIP2;
menuselect.text2.crew.text = String(((par.parent.SHIP2.CREW + "/") + par.parent.SHIP2.Status.MAXCREW));
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
};
if (whatShip == 3){
theSHIP = par.parent.SHIP3;
menuselect.text3.crew.text = String(((par.parent.SHIP3.CREW + "/") + par.parent.SHIP3.Status.MAXCREW));
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
};
menuequip.crewship.text = theSHIP.CREW;
_local1 = Math.round(((theSHIP.CREW / theSHIP.Status.MAXCREW) * 100));
_local2 = Math.ceil((theSHIP.Status.MAXjumCannon * (theSHIP.CREW / theSHIP.Status.MAXCREW)));
if (isNaN(_local1) == true){
_local1 = 0;
};
if (isNaN(_local2) == true){
_local2 = 0;
};
menuequip.crewcan.text = String(_local2);
menuequip.crewrec.text = String(_local1);
}
public function showBuy2(_arg1:MouseEvent):void{
play();
}
public function refreshEQUIP():void{
var _local1:*;
par.parent.SaveGame();
for (_local1 in haved.piccap.pic) {
haved.piccap.pic[_local1].gotoAndStop(12);
};
for (_local1 in haved.picship.pic) {
haved.picship.pic[_local1].gotoAndStop(14);
};
for (_local1 in par.parent.BUYSHIP) {
haved.picship.pic[_local1].gotoAndStop(par.parent.BUYSHIP[_local1]);
haved.picship.pic[_local1].addEventListener(MouseEvent.MOUSE_OVER, rollShip);
};
for (_local1 in par.parent.BUYCAPT) {
haved.piccap.pic[_local1].gotoAndStop(par.parent.BUYCAPT[_local1]);
haved.piccap.pic[_local1].addEventListener(MouseEvent.MOUSE_OVER, rollCapt);
};
haved.gold.text = par.parent.GOLD;
}
function frame84(){
if (par.goOut == false){
stop();
gotoAndStop("idle");
};
}
public function outBTN(_arg1:MouseEvent):void{
var _local2:*;
par.parent.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.stop();
}
function frame85(){
par.parent.playVoice("rot");
}
public function showBuy(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.name;
_local3 = _local2.substr(3);
whatShip = Number(_local3);
play();
}
function frame1(){
par = this.parent;
whatShip = 0;
canWarn = false;
}
public function rollShip(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.showText(par.parent.shipBlaBla(_local2.currentFrame));
}
public function goEqThisCapt(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
ship.visible = false;
capt.visible = true;
crew.visible = false;
_local2 = _arg1.currentTarget.currentFrame;
par.parent.playVoice(("capt" + _local2));
_local3 = theSHIP.CAPT;
par.parent.changeShipCapt(whatShip, _local2);
menuequip.piccap.gotoAndStop(theSHIP.CAPT);
menuequip.capt.text = theSHIP.CaptName;
menuequip.skill.text = theSHIP.CaptSkill;
switch (whatShip){
case 1:
menuselect.text1.capt.text = par.parent.SHIP1.CaptName;
menuselect.text1.skill.text = par.parent.SHIP1.CaptSkill;
menuselect.pic1.gotoAndStop(par.parent.SHIP1.CAPT);
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
break;
case 2:
menuselect.text2.capt.text = par.parent.SHIP2.CaptName;
menuselect.text2.skill.text = par.parent.SHIP2.CaptSkill;
menuselect.pic2.gotoAndStop(par.parent.SHIP2.CAPT);
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
break;
case 3:
menuselect.text3.capt.text = par.parent.SHIP3.CaptName;
menuselect.text3.skill.text = par.parent.SHIP3.CaptSkill;
menuselect.pic3.gotoAndStop(par.parent.SHIP3.CAPT);
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
break;
};
par.parent.swapCapt(_local2, _local3);
refreshEQUIP();
}
public function addCREW(_arg1:MouseEvent):void{
if (theSHIP.MODEL != 0){
ship.visible = false;
capt.visible = false;
crew.visible = true;
if ((((theSHIP.CREW < theSHIP.Status.MAXCREW)) && ((par.parent.ALLCREW > 0)))){
par.parent.ALLCREW--;
theSHIP.CREW++;
setCREWe();
};
if ((((theSHIP.CREW < theSHIP.Status.MAXCREW)) && ((par.parent.ALLCREW <= 0)))){
par.showText((("You need " + Math.abs(par.parent.crewFully())) + " Crews to fulfil all your Ships"));
};
} else {
par.showText("Equip the ship first, mate");
};
}
function frame34(){
par.parent.playVoice("rot");
}
function frame37(){
if (whatShip == 1){
theSHIP = par.parent.SHIP1;
};
if (whatShip == 2){
theSHIP = par.parent.SHIP2;
};
if (whatShip == 3){
theSHIP = par.parent.SHIP3;
};
if (theSHIP.CAPT != 0){
menuequip.piccap.gotoAndStop(theSHIP.CAPT);
menuequip.capt.text = theSHIP.CaptName;
menuequip.skill.text = theSHIP.CaptSkill;
} else {
menuequip.piccap.gotoAndStop(12);
menuequip.capt.text = theSHIP.CaptName;
menuequip.skill.text = theSHIP.CaptSkill;
};
if (theSHIP.MODEL != 0){
menuequip.picship.gotoAndStop(theSHIP.MODEL);
menuequip.ship.text = theSHIP.Name;
menuequip.hp.text = String(theSHIP.Status.MAXHP);
menuequip.crew.text = String(theSHIP.Status.MAXCREW);
menuequip.attack.text = String(theSHIP.Status.attack);
if (theSHIP.MODEL <= 5){
menuequip.klas.text = "SMALL";
} else {
if (theSHIP.MODEL >= 10){
menuequip.klas.text = "BIG";
} else {
menuequip.klas.text = "MEDIUM";
};
};
menuequip.speed.text = theSHIP.Status.maxSPEED;
menuequip.canon.text = theSHIP.Status.MAXjumCannon;
menuequip.canondam.text = theSHIP.Status.CanonDamage;
} else {
menuequip.picship.gotoAndStop(14);
menuequip.ship.text = theSHIP.Name;
menuequip.hp.text = String(theSHIP.Status.MAXHP);
menuequip.crew.text = String(theSHIP.Status.MAXCREW);
menuequip.attack.text = String(theSHIP.Status.attack);
menuequip.klas.text = "---";
menuequip.speed.text = theSHIP.Status.maxSPEED;
menuequip.canon.text = theSHIP.Status.MAXjumCannon;
menuequip.canondam.text = theSHIP.Status.CanonDamage;
};
setCREWe();
}
function frame109(){
stop();
par.parent.trans.goToScreen(par.goWHERE);
}
public function subCREW(_arg1:MouseEvent):void{
if (theSHIP.MODEL != 0){
ship.visible = false;
capt.visible = false;
crew.visible = true;
if (theSHIP.CREW > 1){
par.parent.ALLCREW++;
theSHIP.CREW--;
setCREWe();
};
} else {
par.showText("Equip the ship first, mate");
};
}
public function uneqCAPT(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (theSHIP.CAPT > 0){
ship.visible = false;
capt.visible = true;
crew.visible = false;
haved.gotoAndStop(1);
_local2 = menuequip.piccap.currentFrame;
par.parent.playVoice(("capt" + _local2));
_local3 = theSHIP.CAPT;
par.parent.changeShipCapt(whatShip, 0);
menuequip.piccap.gotoAndStop(12);
menuequip.capt.text = "NONE";
menuequip.skill.text = "NONE";
switch (whatShip){
case 1:
menuselect.text1.capt.text = par.parent.SHIP1.CaptName;
menuselect.text1.skill.text = par.parent.SHIP1.CaptSkill;
menuselect.pic1.gotoAndStop(12);
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
break;
case 2:
menuselect.text2.capt.text = par.parent.SHIP2.CaptName;
menuselect.text2.skill.text = par.parent.SHIP2.CaptSkill;
menuselect.pic2.gotoAndStop(12);
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
break;
case 3:
menuselect.text3.capt.text = par.parent.SHIP3.CaptName;
menuselect.text3.skill.text = par.parent.SHIP3.CaptSkill;
menuselect.pic3.gotoAndStop(12);
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
break;
};
par.parent.addCapt(_local3);
refreshEQUIP();
};
}
function frame11(){
par.parent.playVoice("rot");
}
public function minCREW(_arg1:MouseEvent):void{
if (theSHIP.MODEL != 0){
ship.visible = false;
capt.visible = false;
crew.visible = true;
par.parent.ALLCREW = (par.parent.ALLCREW + (theSHIP.CREW - 1));
theSHIP.CREW = 1;
setCREWe();
} else {
par.showText("Equip the ship first, mate");
};
}
function frame33(){
stop();
menuselect.btn1.addEventListener(MouseEvent.CLICK, showBuy);
menuselect.btn2.addEventListener(MouseEvent.CLICK, showBuy);
menuselect.btn3.addEventListener(MouseEvent.CLICK, showBuy);
menuselect.ctr1.addEventListener(MouseEvent.CLICK, showBuy);
menuselect.ctr2.addEventListener(MouseEvent.CLICK, showBuy);
menuselect.ctr3.addEventListener(MouseEvent.CLICK, showBuy);
if (par.settave != null){
par.settave.visible = true;
par.setharb.visible = true;
};
glow1.visible = false;
glow2.visible = false;
glow3.visible = false;
if (whatShip == 1){
glow1.visible = true;
};
if (whatShip == 2){
glow2.visible = true;
};
if (whatShip == 3){
glow3.visible = true;
};
menuselect.btn1.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.btn2.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.btn3.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.btn1.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.btn2.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.btn3.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.ctr1.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.ctr2.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.ctr3.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuselect.ctr1.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.ctr2.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.ctr3.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuselect.btn1.stop();
menuselect.btn2.stop();
menuselect.btn3.stop();
}
public function shipss(_arg1:MouseEvent):void{
ship.visible = true;
capt.visible = false;
crew.visible = false;
haved.gotoAndStop(2);
}
public function uneqSHIP(_arg1:MouseEvent):void{
var _local2:*;
if (theSHIP.MODEL > 0){
if (par.parent.BUYSHIP.length < 12){
ship.visible = true;
capt.visible = false;
crew.visible = false;
haved.gotoAndStop(2);
_local2 = theSHIP.MODEL;
par.parent.changeShipModel(whatShip, 0);
menuequip.picship.gotoAndStop(14);
menuequip.ship.text = theSHIP.Name;
menuequip.hp.text = String(theSHIP.Status.MAXHP);
menuequip.crew.text = String(theSHIP.Status.MAXCREW);
if (theSHIP.MODEL <= 5){
menuequip.klas.text = "SMALL";
} else {
if (theSHIP.MODEL >= 10){
menuequip.klas.text = "BIG";
} else {
menuequip.klas.text = "MEDIUM";
};
};
menuequip.speed.text = theSHIP.Status.maxSPEED;
menuequip.canon.text = theSHIP.Status.MAXjumCannon;
menuequip.canondam.text = theSHIP.Status.CanonDamage;
menuequip.attack.text = String(theSHIP.Status.attack);
switch (whatShip){
case 1:
menuselect.text1.ship.text = par.parent.SHIP1.Name;
menuselect.text1.hp.text = String(((par.parent.SHIP1.Status.MAXHP + "/") + par.parent.SHIP1.Status.MAXHP));
menuselect.text1.crew.text = String(((par.parent.SHIP1.CREW + "/") + par.parent.SHIP1.Status.MAXCREW));
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
break;
case 2:
menuselect.text2.ship.text = par.parent.SHIP2.Name;
menuselect.text2.hp.text = String(((par.parent.SHIP2.Status.MAXHP + "/") + par.parent.SHIP2.Status.MAXHP));
menuselect.text2.crew.text = String(((par.parent.SHIP2.CREW + "/") + par.parent.SHIP2.Status.MAXCREW));
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
break;
case 3:
menuselect.text3.ship.text = par.parent.SHIP3.Name;
menuselect.text3.hp.text = String(((par.parent.SHIP3.Status.MAXHP + "/") + par.parent.SHIP3.Status.MAXHP));
menuselect.text3.crew.text = String(((par.parent.SHIP3.CREW + "/") + par.parent.SHIP3.Status.MAXCREW));
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
break;
};
par.parent.ALLCREW = (par.parent.ALLCREW + theSHIP.CREW);
theSHIP.CREW = 0;
setCREWe();
par.parent.addShip(_local2);
refreshEQUIP();
} else {
par.showText("Your yard is full");
par.parent.playVoice("money");
};
};
}
public function maxCREW(_arg1:MouseEvent):void{
if (theSHIP.MODEL != 0){
ship.visible = false;
capt.visible = false;
crew.visible = true;
par.parent.ALLCREW = (par.parent.ALLCREW + theSHIP.CREW);
theSHIP.CREW = 0;
if (par.parent.ALLCREW >= theSHIP.Status.MAXCREW){
theSHIP.CREW = theSHIP.Status.MAXCREW;
par.parent.ALLCREW = (par.parent.ALLCREW - theSHIP.Status.MAXCREW);
} else {
theSHIP.CREW = par.parent.ALLCREW;
par.parent.ALLCREW = (par.parent.ALLCREW - theSHIP.CREW);
par.showText((("You need " + Math.abs(par.parent.crewFully())) + " Crews to fulfil all your Ships"));
};
setCREWe();
} else {
par.showText("Equip the ship first, mate");
};
}
public function captss(_arg1:MouseEvent):void{
ship.visible = false;
capt.visible = true;
crew.visible = false;
haved.gotoAndStop(1);
}
public function goEqThisShip(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
ship.visible = true;
capt.visible = false;
crew.visible = false;
_local2 = _arg1.currentTarget.currentFrame;
_local3 = theSHIP.MODEL;
par.parent.changeShipModel(whatShip, _local2);
menuequip.picship.gotoAndStop(theSHIP.MODEL);
menuequip.ship.text = theSHIP.Name;
menuequip.hp.text = String(theSHIP.Status.MAXHP);
menuequip.crew.text = String(theSHIP.Status.MAXCREW);
if (theSHIP.MODEL <= 5){
menuequip.klas.text = "SMALL";
} else {
if (theSHIP.MODEL >= 10){
menuequip.klas.text = "BIG";
} else {
menuequip.klas.text = "MEDIUM";
};
};
menuequip.speed.text = theSHIP.Status.maxSPEED;
menuequip.canon.text = theSHIP.Status.MAXjumCannon;
menuequip.canondam.text = theSHIP.Status.CanonDamage;
menuequip.attack.text = String(theSHIP.Status.attack);
switch (whatShip){
case 1:
menuselect.text1.ship.text = par.parent.SHIP1.Name;
menuselect.text1.hp.text = String(((par.parent.SHIP1.Status.MAXHP + "/") + par.parent.SHIP1.Status.MAXHP));
menuselect.text1.crew.text = String(((par.parent.SHIP1.CREW + "/") + par.parent.SHIP1.Status.MAXCREW));
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
break;
case 2:
menuselect.text2.ship.text = par.parent.SHIP2.Name;
menuselect.text2.hp.text = String(((par.parent.SHIP2.Status.MAXHP + "/") + par.parent.SHIP2.Status.MAXHP));
menuselect.text2.crew.text = String(((par.parent.SHIP2.CREW + "/") + par.parent.SHIP2.Status.MAXCREW));
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
break;
case 3:
menuselect.text3.ship.text = par.parent.SHIP3.Name;
menuselect.text3.hp.text = String(((par.parent.SHIP3.Status.MAXHP + "/") + par.parent.SHIP3.Status.MAXHP));
menuselect.text3.crew.text = String(((par.parent.SHIP3.CREW + "/") + par.parent.SHIP3.Status.MAXCREW));
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
break;
};
par.parent.ALLCREW = (par.parent.ALLCREW + theSHIP.CREW);
theSHIP.CREW = 0;
setCREWe();
par.parent.swapShip(_local2, _local3);
refreshEQUIP();
}
function frame57(){
if (par.goOut == false){
stop();
};
canWarn = true;
ship.visible = false;
capt.visible = false;
crew.visible = false;
par.settave.visible = false;
par.setharb.visible = false;
menuequip.clobtn.addEventListener(MouseEvent.CLICK, showBuy2);
menuequip.clobtn.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuequip.clobtn.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuequip.clobtn.stop();
menuequip.uneqship.addEventListener(MouseEvent.CLICK, uneqSHIP);
menuequip.uneqcapt.addEventListener(MouseEvent.CLICK, uneqCAPT);
menuequip.uneqship.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuequip.uneqship.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
menuequip.uneqcapt.addEventListener(MouseEvent.MOUSE_OUT, outBTN);
menuequip.uneqcapt.addEventListener(MouseEvent.MOUSE_OVER, overBTN);
for (i in haved.piccap.pic) {
haved.piccap.pic[i].addEventListener(MouseEvent.CLICK, goEqThisCapt);
haved.piccap.pic[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
haved.piccap.pic[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
};
for (i in haved.picship.pic) {
haved.picship.pic[i].addEventListener(MouseEvent.CLICK, goEqThisShip);
haved.picship.pic[i].addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
haved.picship.pic[i].addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
};
menuequip.maxcrew.addEventListener(MouseEvent.CLICK, maxCREW);
menuequip.mincrew.addEventListener(MouseEvent.CLICK, minCREW);
menuequip.addcrew.addEventListener(MouseEvent.CLICK, addCREW);
menuequip.subcrew.addEventListener(MouseEvent.CLICK, subCREW);
menuequip.maxcrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.maxcrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menuequip.mincrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.mincrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menuequip.addcrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.addcrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menuequip.subcrew.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.subcrew.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menuequip.shipselec.addEventListener(MouseEvent.CLICK, shipss);
menuequip.captselec.addEventListener(MouseEvent.CLICK, captss);
menuequip.shipselec.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.shipselec.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menuequip.captselec.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menuequip.captselec.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
}
function frame15(){
canWarn = false;
refreshEQUIP();
menuselect.lock2.visible = false;
menuselect.lock3.visible = false;
menuselect.text1.ship.text = par.parent.SHIP1.Name;
menuselect.text1.hp.text = String(((par.parent.SHIP1.Status.MAXHP + "/") + par.parent.SHIP1.Status.MAXHP));
menuselect.text1.crew.text = String(((par.parent.SHIP1.CREW + "/") + par.parent.SHIP1.Status.MAXCREW));
menuselect.text1.skill.text = par.parent.SHIP1.CaptSkill;
menuselect.pic1.gotoAndStop(par.parent.SHIP1.CAPT);
menuselect.text1n.visible = false;
menuselect.text1.visible = true;
if (par.parent.SHIP1.Name == "NONE"){
menuselect.text1.visible = false;
menuselect.text1n.visible = true;
} else {
if (((!((par.parent.SHIP1.CaptName == "NONE"))) && ((par.parent.SHIP1.CREW > 0)))){
menuselect.text1.capt.text = "READY FOR SAIL";
} else {
menuselect.text1.capt.text = "NOT READY";
};
};
menuselect.text2.ship.text = par.parent.SHIP2.Name;
menuselect.text2.hp.text = String(((par.parent.SHIP2.Status.MAXHP + "/") + par.parent.SHIP2.Status.MAXHP));
menuselect.text2.crew.text = String(((par.parent.SHIP2.CREW + "/") + par.parent.SHIP2.Status.MAXCREW));
menuselect.text2.skill.text = par.parent.SHIP2.CaptSkill;
if (par.parent.SHIP2.CAPT != 0){
menuselect.pic2.gotoAndStop(par.parent.SHIP2.CAPT);
} else {
menuselect.pic2.gotoAndStop(12);
};
menuselect.text2n.visible = false;
menuselect.text2.visible = true;
if (par.parent.SHIP2.Name == "NONE"){
menuselect.text2.visible = false;
menuselect.text2n.visible = true;
} else {
if (((!((par.parent.SHIP2.CaptName == "NONE"))) && ((par.parent.SHIP2.CREW > 0)))){
menuselect.text2.capt.text = "READY FOR SAIL";
} else {
menuselect.text2.capt.text = "NOT READY";
};
};
menuselect.text3.ship.text = par.parent.SHIP3.Name;
menuselect.text3.hp.text = String(((par.parent.SHIP3.Status.MAXHP + "/") + par.parent.SHIP3.Status.MAXHP));
menuselect.text3.crew.text = String(((par.parent.SHIP3.CREW + "/") + par.parent.SHIP3.Status.MAXCREW));
menuselect.text3.skill.text = par.parent.SHIP3.CaptSkill;
if (par.parent.SHIP3.CAPT != 0){
menuselect.pic3.gotoAndStop(par.parent.SHIP3.CAPT);
} else {
menuselect.pic3.gotoAndStop(12);
};
menuselect.text3n.visible = false;
menuselect.text3.visible = true;
if (par.parent.SHIP3.Name == "NONE"){
menuselect.text3.visible = false;
menuselect.text3n.visible = true;
} else {
if (((!((par.parent.SHIP3.CaptName == "NONE"))) && ((par.parent.SHIP3.CREW > 0)))){
menuselect.text3.capt.text = "READY FOR SAIL";
} else {
menuselect.text3.capt.text = "NOT READY";
};
};
}
public function overBTN(_arg1:MouseEvent):void{
var _local2:*;
par.parent.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.play();
}
function frame60(){
for (i in haved.piccap.pic) {
haved.piccap.pic[i].removeEventListener(MouseEvent.DOUBLE_CLICK, goEqThisCapt);
};
for (i in haved.picship.pic) {
haved.picship.pic[i].removeEventListener(MouseEvent.DOUBLE_CLICK, goEqThisShip);
};
haved.warn.visible = false;
par.parent.playVoice("rot");
}
}
}//package pirateconflictv1_fla
Section 35
//gpirate_Symbool3_111 (pirateconflictv1_fla.gpirate_Symbool3_111)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gpirate_Symbool3_111 extends MovieClip {
public var par;
public function gpirate_Symbool3_111(){
addFrameScript(94, frame95);
}
function frame95(){
stop();
par = this.parent;
par.gotoAndStop("splashss");
}
}
}//package pirateconflictv1_fla
Section 36
//Harborbuy_214 (pirateconflictv1_fla.Harborbuy_214)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Harborbuy_214 extends MovieClip {
public var peri:MovieClip;
}
}//package pirateconflictv1_fla
Section 37
//Harborent_199 (pirateconflictv1_fla.Harborent_199)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Harborent_199 extends MovieClip {
public var peri:MovieClip;
public function Harborent_199(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 38
//Harborlea_200 (pirateconflictv1_fla.Harborlea_200)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Harborlea_200 extends MovieClip {
public var peri:MovieClip;
public function Harborlea_200(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 39
//harbour_197 (pirateconflictv1_fla.harbour_197)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class harbour_197 extends MovieClip {
public var lea:MovieClip;
public var ent:MovieClip;
public var settave:MovieClip;
public var out:MovieClip;
public var diag:MovieClip;
public var setsail:MovieClip;
public var par;
public var shipmenu:MovieClip;
public var leave:Boolean;
public var npc:MovieClip;
public var goWHERE:String;
public function harbour_197(){
addFrameScript(0, frame1, 29, frame30, 35, frame36, 43, frame44, 115, frame116, 130, frame131);
}
public function teksOUT(_arg1:MouseEvent):void{
var _local2:*;
par.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0;
}
public function IN(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = false;
par.playVoice("yes3");
}
public function OUT(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = true;
par.playVoice("leave3");
}
public function outTAVE(_arg1:MouseEvent):void{
gogo("tavern");
}
public function outSAIL(_arg1:MouseEvent):void{
gogo("dock");
}
public function ooutDock(_arg1:MouseEvent):void{
var _local2:*;
par.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.gotoAndStop(1);
}
function frame30(){
leave = false;
}
function frame1(){
par = this.parent;
stop();
if (par.harbor1 == false){
play();
} else {
gotoAndPlay("enter");
};
}
function frame36(){
stop();
ent.addEventListener(MouseEvent.CLICK, IN);
lea.addEventListener(MouseEvent.CLICK, OUT);
ent.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
ent.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
lea.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
lea.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
}
function frame116(){
stop();
out.addEventListener(MouseEvent.CLICK, outDock);
out.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
out.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
out.gotoAndStop(1);
setsail.addEventListener(MouseEvent.CLICK, outSAIL);
setsail.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
setsail.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setsail.gotoAndStop(1);
settave.addEventListener(MouseEvent.CLICK, outTAVE);
settave.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
settave.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
settave.gotoAndStop(1);
}
public function ooverDock(_arg1:MouseEvent):void{
var _local2:*;
par.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.play();
}
public function outDock(_arg1:MouseEvent):void{
gogo("map");
}
function frame44(){
stop();
if (leave == true){
par.trans.goToScreen("map");
} else {
play();
par.harbor1 = true;
};
}
function frame131(){
stop();
}
public function showText(_arg1:String):void{
if (diag != null){
diag.theText = _arg1;
diag.gotoAndPlay(2);
};
}
public function gogo(_arg1:String):void{
goWHERE = _arg1;
shipmenu.play();
out.visible = false;
setsail.visible = false;
settave.visible = false;
showText("Don't forget to change your Ship at Docks");
play();
par.playVoice("leave2");
}
public function teksOVER(_arg1:MouseEvent):void{
var _local2:*;
par.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0.2;
}
}
}//package pirateconflictv1_fla
Section 40
//inventory_184 (pirateconflictv1_fla.inventory_184)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class inventory_184 extends MovieClip {
public var piccap:MovieClip;
public var gold:TextField;
public var sellbtn:MovieClip;
public function inventory_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 41
//inventory_207 (pirateconflictv1_fla.inventory_207)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class inventory_207 extends MovieClip {
public var gold:TextField;
public var sellbtn:MovieClip;
public var picship:MovieClip;
public function inventory_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 42
//inventory_226 (pirateconflictv1_fla.inventory_226)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class inventory_226 extends MovieClip {
public var piccap:MovieClip;
public var a:MovieClip;
public var warn:MovieClip;
public var gold:TextField;
public var par;
public var picship:MovieClip;
public function inventory_226(){
addFrameScript(0, frame1, 1, frame2);
}
public function cekVis(_arg1:Number=0):void{
if (par.canWarn == false){
warn.visible = false;
} else {
warn.visible = false;
if (_arg1 == 1){
if (par.parent.parent.BUYCAPT.length > 0){
warn.visible = true;
};
} else {
if (par.parent.parent.BUYSHIP.length > 0){
warn.visible = true;
};
};
};
}
public function bla(_arg1:MouseEvent):void{
play();
}
function frame1(){
stop();
par = this.parent;
a.addEventListener(MouseEvent.CLICK, bla);
a.addEventListener(MouseEvent.MOUSE_OVER, par.parent.parent.mousePlay);
a.addEventListener(MouseEvent.MOUSE_OUT, par.parent.parent.mouseStop);
piccap.visible = true;
picship.visible = false;
cekVis(1);
}
function frame2(){
stop();
piccap.visible = false;
picship.visible = true;
cekVis(2);
}
}
}//package pirateconflictv1_fla
Section 43
//KetOn_175 (pirateconflictv1_fla.KetOn_175)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class KetOn_175 extends MovieClip {
public var pic:MovieClip;
}
}//package pirateconflictv1_fla
Section 44
//KetZoom_155 (pirateconflictv1_fla.KetZoom_155)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class KetZoom_155 extends MovieClip {
public var xt:TextField;
}
}//package pirateconflictv1_fla
Section 45
//KetZoom2_278 (pirateconflictv1_fla.KetZoom2_278)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class KetZoom2_278 extends MovieClip {
public var xt:TextField;
}
}//package pirateconflictv1_fla
Section 46
//Leave_218 (pirateconflictv1_fla.Leave_218)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Leave_218 extends MovieClip {
public var peri:MovieClip;
public function Leave_218(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 47
//ledakanMeriam2_31 (pirateconflictv1_fla.ledakanMeriam2_31)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class ledakanMeriam2_31 extends MovieClip {
public function ledakanMeriam2_31(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package pirateconflictv1_fla
Section 48
//Main_237 (pirateconflictv1_fla.Main_237)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Main_237 extends MovieClip {
public const key1:Number = 49;
public const key2:Number = 50;
public const key3:Number = 51;
public const key4:Number = 52;
public const key5:Number = 53;
public const key6:Number = 54;
public const key8:Number = 56;
public const keyA:Number = 65;
public const keyB:Number = 66;
public const keyD:Number = 68;
public const keyF:Number = 70;
public const keyG:Number = 71;
public const keyI:Number = 73;
public const keyM:Number = 77;
public const keyH:Number = 72;
public const keyQ:Number = 81;
public const keyR:Number = 82;
public const keyS:Number = 83;
public const keyV:Number = 86;
public const keyX:Number = 88;
public const keyY:Number = 89;
public const keyZ:Number = 90;
public const keyU:Number = 85;
public const keyE:Number = 69;
public const keyW:Number = 87;
public const keyP:Number = 80;
public const key7:Number = 55;
public const keyT:Number = 84;
public const keyC:Number = 67;
public const keyf1:Number = 112;
public const keyf2:Number = 113;
public var afterWind:Number;
public var testrot:MovieClip;
public var shipDestroyEnemy:Number;
public var dKeyIsDown:Boolean;
public var pict:MovieClip;
public var bg:MovieClip;
public var mine:Array;
public var vKeyIsDown:Boolean;
public var GOLD:Number;
public var efekawan:MovieClip;
public var TARGETENEMY:Array;
public var key2IsDown:Boolean;
public var theTurn:Number;
public var par;
public var clue:Array;
public var whatCTR:Number;
public var fog:MovieClip;
public var keyPressed:uint;
public var theWay;
public var crewMurder:Number;
public var aKeyIsDown:Boolean;
public var zKeyIsDown:Boolean;
public var checkZOOM:Boolean;
public var winmate:MovieClip;
public var points:Array;
public var sKeyIsDown:Boolean;
public var peluru:Array;
public var efek:MovieClip;
public var waitGo:String;
public var crewKilled:Number;
public var waitFornexte:Number;
public var looted:Boolean;
public var moveNot:Boolean;
public var eKeyIsDown:Boolean;
public var tempCREWEnemy:Array;
public var cekBonus:Boolean;
public var BatasKanan:MovieClip;
public var key1IsDown:Boolean;
public var rightKeyIsDown:Boolean;
public var wKeyIsDown:Boolean;
public var playerE:Player;
public var StageWidth:Number;
public var StageHeight:Number;
public var downKeyIsDown:Boolean;
public var disp:MovieClip;
public var p1;
public var spaceKeyIsDown:Boolean;
public var PAUSE:Boolean;
public var p2;
public var playerSpeed:Number;
public var mineBLOWED:Number;
public var shipDestroy:Number;
public var ctr:Array;
public var ctr0:MovieClip;
public var ctr1:MovieClip;
public var ctr2:MovieClip;
public var SHIPke1:MovieClip;
public var SHIPke2:MovieClip;
public var SHIPke3:MovieClip;
public var fKeyIsDown:Boolean;
public var ase:MovieClip;
public var tempCREWPlayer:Array;
public var ctrClue;
public var itungPATH:Boolean;
public var clue1:MovieClip;
public var clue2:MovieClip;
public var clue3:MovieClip;
public var xKeyIsDown:Boolean;
public var lagiDuel:Boolean;
public var qKeyIsDown:Boolean;
public var player:Array;
public var awan:Array;
public var playerTurn:Boolean;
public var key4IsDown:Boolean;
public var cKeyIsDown:Boolean;
public var BatasAtas:MovieClip;
public var StageHeightB:Number;
public var gKeyIsDown:Boolean;
public var enemy:Array;
public var moveBulet:Boolean;
public var BatasBawah:MovieClip;
public var BatasKiri:MovieClip;
public var aniZOOM:Boolean;
public var StageWidthB:Number;
public var key3IsDown:Boolean;
public var pointsE:Array;
public var speedAwan:Array;
public var upKeyIsDown:Boolean;
public var rKeyIsDown:Boolean;
public var ctrCheckZoom:Number;
public var leftKeyIsDown:Boolean;
public function Main_237(){
addFrameScript(0, frame1, 1, frame2, 5, frame6, 10, frame11, 15, frame16, 20, frame21, 25, frame26, 30, frame31, 35, frame36, 40, frame41, 45, frame46, 50, frame51, 55, frame56, 60, frame61, 65, frame66, 70, frame71);
}
public function WaitForNext(_arg1:Event):void{
var _local2:*;
if (waitFornexte >= 100){
for (var _local5 in player) {
_local2 = _local5;
_local5;
if (player[_local2] != null){
player[_local2].removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
player[_local2].removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
removeChild(player[_local2]);
};
};
for (_local5 in enemy) {
_local2 = _local5;
_local5;
if (enemy[_local2] != null){
enemy[_local2].removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
enemy[_local2].removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
removeChild(enemy[_local2]);
};
};
for (_local5 in mine) {
_local2 = _local5;
_local5;
if (mine[_local2] != null){
removeChild(mine[_local2]);
};
};
removeEventListener(Event.ENTER_FRAME, WaitForNext);
par.winlose.Play(waitGo);
} else {
waitFornexte++;
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function STOPDRAG(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
stopDrag();
}
public function ZOOMIN(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
if (PAUSE == false){
if (scaleX < 0.9){
_local2 = x;
_local3 = y;
(scaleX = (scaleX + 0.1));
(scaleY = (scaleY + 0.1));
(x = (x + (_local2 * 0.1)));
(y = (y + (_local3 * 0.1)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
}
public function setEnemy():void{
var _local1:Number;
var _local2:*;
var _local3:*;
_local1 = 0;
for (var _local6 in enemy) {
_local2 = _local6;
_local6;
(TARGETENEMY[_local2] = player[_local1]);
var _temp1 = _local1;
_local1 = (_local1 + 1);
_temp1;
if (_local1 >= player.length){
_local1 = 0;
_local1;
};
};
switch (par.playStage){
case 1:
enemy[0].setKAPAL(par.cekStatusShip(1), 1, par.cekStatusShip(1).MAXCREW);
break;
case 2:
enemy[0].setKAPAL(par.cekStatusShip(1), 1, par.cekStatusShip(1).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(1), 1, par.cekStatusShip(1).MAXCREW);
break;
case 3:
enemy[0].setKAPAL(par.cekStatusShip(3), 3, par.cekStatusShip(3).MAXCREW);
enemy[0].setSkill(4);
break;
case 4:
enemy[0].setKAPAL(par.cekStatusShip(3), 3, par.cekStatusShip(3).MAXCREW);
enemy[0].setSkill(4);
enemy[1].setKAPAL(par.cekStatusShip(2), 2, par.cekStatusShip(2).MAXCREW);
break;
case 5:
enemy[0].setKAPAL(par.cekStatusShip(4), 4, par.cekStatusShip(4).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(6), 6, par.cekStatusShip(6).MAXCREW);
break;
case 6:
enemy[0].setKAPAL(par.cekStatusShip(4), 4, par.cekStatusShip(4).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(6), 6, par.cekStatusShip(6).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(6), 6, par.cekStatusShip(6).MAXCREW);
enemy[2].setSkill(1);
break;
case 7:
enemy[0].setKAPAL(par.cekStatusShip(5), 5, par.cekStatusShip(5).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(6), 6, par.cekStatusShip(6).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(4), 4, par.cekStatusShip(4).MAXCREW);
enemy[3].setKAPAL(par.cekStatusShip(7), 7, par.cekStatusShip(7).MAXCREW);
break;
case 8:
enemy[0].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[0].setPatrol(player);
enemy[0].setSkill(5);
enemy[1].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[1].setPatrol(player);
enemy[1].setSkill(5);
enemy[2].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[2].setPatrol(player);
enemy[2].setSkill(5);
enemy[3].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[3].setPatrol(player);
enemy[3].setSkill(5);
enemy[4].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[4].setPatrol(player);
enemy[4].setSkill(5);
enemy[5].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[5].setPatrol(player);
enemy[5].setSkill(5);
enemy[6].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[6].setPatrol(player);
enemy[6].setSkill(5);
enemy[7].setKAPAL(par.cekStatusShip(4), 4, 25);
enemy[7].setPatrol(player);
enemy[7].setSkill(5);
enemy[8].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[8].setSkill(1);
enemy[9].setKAPAL(par.cekStatusShip(7), 7, par.cekStatusShip(7).MAXCREW);
enemy[9].setSkill(1);
enemy[10].setKAPAL(par.cekStatusShip(7), 7, par.cekStatusShip(7).MAXCREW);
enemy[10].setSkill(1);
break;
case 9:
enemy[0].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(10), 10, par.cekStatusShip(10).MAXCREW);
enemy[2].setSkill(4);
break;
case 10:
enemy[0].setKAPAL(par.cekStatusShip(7), 7, par.cekStatusShip(7).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(7), 7, par.cekStatusShip(7).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setSkill(3);
enemy[3].setKAPAL(par.cekStatusShip(10), 10, par.cekStatusShip(10).MAXCREW);
enemy[3].setSkill(2);
break;
case 11:
enemy[0].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(10), 10, par.cekStatusShip(10).MAXCREW);
enemy[2].setSkill(3);
enemy[3].setKAPAL(par.cekStatusShip(10), 10, par.cekStatusShip(10).MAXCREW);
enemy[3].setSkill(4);
break;
case 12:
enemy[0].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[3].setKAPAL(par.cekStatusShip(10), 10, par.cekStatusShip(10).MAXCREW);
enemy[3].setSkill(1);
enemy[4].setKAPAL(par.cekStatusShip(11), 11, par.cekStatusShip(11).MAXCREW);
enemy[4].setSkill(4);
break;
case 13:
enemy[0].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[2].setSkill(2);
enemy[3].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[3].setSkill(2);
enemy[4].setKAPAL(par.cekStatusShip(12), 12, par.cekStatusShip(12).MAXCREW);
enemy[4].setSkill(1);
enemy[5].setKAPAL(par.cekStatusShip(11), 11, par.cekStatusShip(11).MAXCREW);
enemy[5].setSkill(4);
break;
case 14:
enemy[0].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[3].setKAPAL(par.cekStatusShip(11), 11, par.cekStatusShip(11).MAXCREW);
enemy[3].setSkill(1);
enemy[4].setKAPAL(par.cekStatusShip(12), 12, par.cekStatusShip(12).MAXCREW);
enemy[4].setSkill(2);
enemy[5].setKAPAL(par.cekStatusShip(11), 11, par.cekStatusShip(11).MAXCREW);
enemy[5].setSkill(4);
break;
case 15:
enemy[0].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[0].setSkill(1);
enemy[1].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[1].setSkill(1);
enemy[2].setKAPAL(par.cekStatusShip(8), 8, par.cekStatusShip(8).MAXCREW);
enemy[2].setSkill(1);
enemy[3].setKAPAL(par.cekStatusShip(9), 9, par.cekStatusShip(9).MAXCREW);
enemy[3].setSkill(1);
enemy[4].setKAPAL(par.cekStatusShip(12), 12, par.cekStatusShip(12).MAXCREW);
enemy[4].setSkill(4);
enemy[5].setKAPAL(par.cekStatusShip(13), 13, par.cekStatusShip(13).MAXCREW);
enemy[5].setSkill(1);
enemy[6].setKAPAL(par.cekStatusShip(12), 12, par.cekStatusShip(12).MAXCREW);
enemy[6].setSkill(2);
enemy[7].setKAPAL(par.cekStatusShip(12), 12, par.cekStatusShip(12).MAXCREW);
enemy[7].setSkill(4);
break;
};
(tempCREWEnemy = new Array());
for (_local6 in enemy) {
_local2 = _local6;
_local6;
(tempCREWEnemy[_local2] = enemy[_local2].CREW);
_local3 = new Indikator();
addChild(_local3);
_local3.follow(enemy[_local2]);
};
}
function frame11(){
INITGAME();
}
function frame16(){
INITGAME();
}
function frame1(){
stop();
(par = this.parent);
(PAUSE = false);
(aniZOOM = false);
(checkZOOM = false);
(ctrCheckZoom = 0);
(cekBonus = false);
(StageHeight = (960 * 2));
(StageWidth = (0x0500 * 2));
(StageHeightB = 2220);
(StageWidthB = 2860);
(afterWind = -1);
(playerTurn = true);
(theWay = 0);
(ctrClue = 0);
(lagiDuel = false);
(theTurn = 75);
(itungPATH = false);
(moveNot = false);
(points = new Array());
(pointsE = new Array());
(playerSpeed = 200);
(whatCTR = -1);
(ctr = new Array());
ctr.push(ctr0);
ctr.push(ctr1);
ctr.push(ctr2);
(clue = new Array());
clue.push(clue1);
clue.push(clue2);
clue.push(clue3);
(TARGETENEMY = new Array());
(moveBulet = false);
(looted = false);
goSTAGE();
}
function frame6(){
INITGAME();
}
function frame2(){
INITGAME();
}
function frame26(){
INITGAME();
}
function frame21(){
INITGAME();
}
function frame31(){
INITGAME();
}
function frame36(){
INITGAME();
}
public function goMOUSE(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (playerTurn == true){
if (itungPATH == true){
(itungPATH = false);
if (moveNot == false){
ctr[whatCTR].showAll(player[whatCTR].reloadANCHOR, player[whatCTR].reloadREPAIR, player[whatCTR].reloadSKILL);
};
if (ctr[whatCTR].pic.currentFrame == 7){
player[whatCTR].RIDETHEWIND();
(afterWind = 1);
} else {
if (afterWind > 0){
afterWind--;
};
if (afterWind == 0){
(afterWind = -1);
player[whatCTR].WINDOFF();
_local2 = (Math.cos(((player[whatCTR].rotation * Math.PI) / 180)) * 200);
_local3 = (Math.sin(((player[whatCTR].rotation * Math.PI) / 180)) * 200);
(ctr[whatCTR].x = (player[whatCTR].x + _local2));
(ctr[whatCTR].y = (player[whatCTR].y + _local3));
(points[whatCTR] = new Array());
(points[whatCTR][0] = {x:player[whatCTR].x, y:player[whatCTR].y});
_local2 = (Math.cos(((player[whatCTR].rotation * Math.PI) / 180)) * (theTurn - 50));
_local2;
_local3 = (Math.sin(((player[whatCTR].rotation * Math.PI) / 180)) * (theTurn - 50));
_local3;
(points[whatCTR][1] = {x:(player[whatCTR].x + _local2), y:(player[whatCTR].y + _local3)});
_local2 = (Math.cos(((player[whatCTR].rotation * Math.PI) / 180)) * theTurn);
_local2;
_local3 = (Math.sin(((player[whatCTR].rotation * Math.PI) / 180)) * theTurn);
_local3;
(ctr[whatCTR].rotation = player[whatCTR].rotation);
(points[whatCTR][2] = {x:(player[whatCTR].x + _local2), y:(player[whatCTR].y + _local3)});
(points[whatCTR][3] = {x:ctr[whatCTR].x, y:ctr[whatCTR].y});
drawPath();
};
};
stage.removeEventListener(MouseEvent.MOUSE_MOVE, directPATH);
stage.removeEventListener(MouseEvent.MOUSE_UP, goMOUSE);
};
};
}
function frame46(){
INITGAME();
}
function frame41(){
INITGAME();
}
function frame51(){
INITGAME();
}
function frame56(){
INITGAME();
}
public function releaseKey(_arg1:KeyboardEvent):void{
var _local2:uint;
var _local3:*;
var _local4:*;
_local2 = _arg1.keyCode;
switch (_local2){
case Keyboard.RIGHT:
(rightKeyIsDown = false);
break;
case Keyboard.LEFT:
(leftKeyIsDown = false);
break;
case Keyboard.UP:
(upKeyIsDown = false);
break;
case Keyboard.DOWN:
(downKeyIsDown = false);
break;
case keyA:
(aKeyIsDown = false);
break;
case keyD:
(dKeyIsDown = false);
break;
case keyQ:
(qKeyIsDown = false);
break;
case keyE:
(eKeyIsDown = false);
break;
case keyW:
(wKeyIsDown = false);
break;
case keyS:
(sKeyIsDown = false);
break;
case keyR:
(rKeyIsDown = false);
break;
case keyT:
break;
case keyY:
break;
case keyU:
break;
case keyI:
break;
case key1:
if (playerTurn == true){
if (SHIPke1 != null){
if (SHIPke1.isDEAD == false){
for (var _local7 in player) {
_local3 = _local7;
_local7;
if (player[_local3] == SHIPke1){
_local4 = new Point(ctr[_local3].x, ctr[_local3].y);
_local4 = this.localToGlobal(_local4);
_local4;
(x = (x - (_local4.x - 320)));
(y = (y - (_local4.y - 240)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
};
};
};
(key1IsDown = false);
break;
case key2:
if (playerTurn == true){
if (SHIPke2 != null){
if (SHIPke2.isDEAD == false){
for (_local7 in player) {
_local3 = _local7;
_local7;
if (player[_local3] == SHIPke2){
_local4 = new Point(ctr[_local3].x, ctr[_local3].y);
_local4;
_local4 = this.localToGlobal(_local4);
_local4;
(x = (x - (_local4.x - 320)));
(y = (y - (_local4.y - 240)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
};
};
};
(key2IsDown = false);
break;
case key3:
if (playerTurn == true){
if (SHIPke3 != null){
if (SHIPke3.isDEAD == false){
for (_local7 in player) {
_local3 = _local7;
_local7;
if (player[_local3] == SHIPke3){
_local4 = new Point(ctr[_local3].x, ctr[_local3].y);
_local4;
_local4 = this.localToGlobal(_local4);
_local4;
(x = (x - (_local4.x - 320)));
(y = (y - (_local4.y - 240)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
};
};
};
(key3IsDown = false);
break;
case key4:
(key4IsDown = false);
break;
case key6:
break;
case key5:
break;
case key7:
break;
case key8:
break;
case keyF:
(fKeyIsDown = false);
break;
case keyf2:
break;
case keyH:
break;
case keyG:
(gKeyIsDown = false);
break;
case keyM:
break;
case keyP:
break;
case Keyboard.SPACE:
if ((((PAUSE == false)) && ((aniZOOM == false)))){
if (par.targets8.visible == false){
nextMove();
};
};
break;
};
}
function frame61(){
INITGAME();
}
function frame66(){
INITGAME();
}
public function initMove(_arg1:Boolean=false):void{
var _local2:*;
var _local3:*;
var _local4:*;
(par.spend.visible = true);
for (var _local7 in player) {
_local2 = _local7;
_local7;
(ctr[_local2].visible = true);
(clue[_local2].visible = true);
_local3 = (Math.cos(((player[_local2].rotation * Math.PI) / 180)) * player[_local2].maxSPEED);
_local4 = (Math.sin(((player[_local2].rotation * Math.PI) / 180)) * player[_local2].maxSPEED);
(ctr[_local2].x = (player[_local2].x + _local3));
(ctr[_local2].y = (player[_local2].y + _local4));
(points[_local2] = new Array());
(points[_local2][0] = {x:player[_local2].x, y:player[_local2].y});
_local3 = (Math.cos(((player[_local2].rotation * Math.PI) / 180)) * (theTurn - 50));
_local3;
_local4 = (Math.sin(((player[_local2].rotation * Math.PI) / 180)) * (theTurn - 50));
_local4;
(points[_local2][1] = {x:(player[_local2].x + _local3), y:(player[_local2].y + _local4)});
_local3 = (Math.cos(((player[_local2].rotation * Math.PI) / 180)) * theTurn);
_local3;
_local4 = (Math.sin(((player[_local2].rotation * Math.PI) / 180)) * theTurn);
_local4;
(ctr[_local2].rotation = player[_local2].rotation);
(points[_local2][2] = {x:(player[_local2].x + _local3), y:(player[_local2].y + _local4)});
(points[_local2][3] = {x:ctr[_local2].x, y:ctr[_local2].y});
(clue[_local2].point = points[_local2]);
};
drawPath();
if (_arg1 == false){
if (par.autoZOOM == true){
(aniZOOM = true);
(checkZOOM = true);
(ctrCheckZoom = 0);
addEventListener(Event.ENTER_FRAME, AUTOZOOM);
};
};
}
public function INITGAME():void{
var _local1:*;
var _local2:Boolean;
var _local3:DisplayObject;
var _local4:Number;
var _local5:*;
var _local6:*;
var _local7:*;
cekBonus = false;
waitGo = "";
waitFornexte = 0;
crewKilled = 0;
crewMurder = 0;
shipDestroy = 0;
shipDestroyEnemy = 0;
GOLD = 0;
mineBLOWED = 0;
par.ALLCREW = 0;
par.targets8.visible = false;
par.tutor.visible = false;
if (par.playStage == 8){
winmate.visible = false;
};
par.stintro.dispStage(par.playStage);
if (par.playStage <= 3){
bg.gotoAndStop(1);
} else {
if (par.playStage <= 6){
bg.gotoAndStop(2);
} else {
if (par.playStage <= 9){
bg.gotoAndStop(3);
} else {
if (par.playStage <= 12){
bg.gotoAndStop(4);
} else {
bg.gotoAndStop(5);
};
};
};
};
randomAwan();
testrot.mouseEnabled = false;
fog.mouseEnabled = false;
fog.alpha = 0;
enemy = new Array();
enemy = getAllEnemy();
player = new Array();
player = getAllPlayer();
player[0].setKAPAL(par.SHIP1.Status, par.SHIP1.MODEL, par.SHIP1.CREW);
player[0].setCAPT(par.SHIP1.CAPT);
SHIPke1 = player[0];
_local1 = new IndikatorPlayer();
addChild(_local1);
_local1.follow(SHIPke1);
_local2 = false;
if (((((!((par.SHIP2.CAPT == 0))) && (!((par.SHIP2.MODEL == 0))))) && (!((par.SHIP2.CREW == 0))))){
_local6 = new Player();
_local7 = new Point((player[0].body.x - 50), (player[0].body.y - 100));
_local7 = player[0].localToGlobal(_local7);
_local7 = this.globalToLocal(_local7);
_local6.x = _local7.x;
_local6.y = _local7.y;
_local6.rotation = player[0].rotation;
_local3 = getChildByName("playerE");
_local4 = getChildIndex(_local3);
addChildAt(_local6, _local4);
_local6.setKAPAL(par.SHIP2.Status, par.SHIP2.MODEL, par.SHIP2.CREW);
_local6.setCAPT(par.SHIP2.CAPT);
_local6.noShip = 2;
_local2 = true;
SHIPke2 = _local6;
_local1 = new IndikatorPlayer();
addChild(_local1);
_local1.follow(SHIPke2);
};
if (((((!((par.SHIP3.CAPT == 0))) && (!((par.SHIP3.MODEL == 0))))) && (!((par.SHIP3.CREW == 0))))){
_local6 = new Player();
_local7 = new Point((player[0].body.x - 50), (player[0].body.y + 100));
_local7 = player[0].localToGlobal(_local7);
_local7 = this.globalToLocal(_local7);
_local6.x = _local7.x;
_local6.y = _local7.y;
_local6.rotation = player[0].rotation;
_local3 = getChildByName("playerE");
_local4 = getChildIndex(_local3);
addChildAt(_local6, _local4);
_local6.setKAPAL(par.SHIP3.Status, par.SHIP3.MODEL, par.SHIP3.CREW);
_local6.setCAPT(par.SHIP3.CAPT);
_local6.noShip = 3;
_local2 = true;
SHIPke3 = _local6;
_local1 = new IndikatorPlayer();
addChild(_local1);
_local1.follow(SHIPke3);
};
if (_local2 == true){
player = getAllPlayer();
};
setEnemy();
disp.mouseEnabled = false;
disp.mouseChildren = false;
ase.mouseEnabled = false;
ase.mouseChildren = false;
tempCREWPlayer = new Array();
for (_local5 in player) {
ctr[_local5].addEventListener(MouseEvent.MOUSE_DOWN, downMOUSE);
ctr[_local5].addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
ctr[_local5].addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
ctr[_local5].theSkill = player[_local5].theSkill;
ctr[_local5].resetPic();
clue[_local5].range = player[_local5].range;
clue[_local5].area.area.width = (player[_local5].range * 20);
clue[_local5].pic.gotoAndStop(player[_local5].currentFrame);
tempCREWPlayer[_local5] = player[_local5].CREW;
};
initMove(true);
enemy = new Array();
enemy = getAllEnemy();
player = new Array();
player = getAllPlayer();
addEventListener(Event.ENTER_FRAME, loopMain, false, 0, true);
par.panel.go.addEventListener(MouseEvent.CLICK, nextMoveClick);
par.panel.opt.addEventListener(MouseEvent.CLICK, goOut);
par.panel.soun.addEventListener(MouseEvent.CLICK, goSound);
par.panel.zoomout.addEventListener(MouseEvent.CLICK, ZOOMOUT);
par.panel.zoomin.addEventListener(MouseEvent.CLICK, ZOOMIN);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressKey);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseKey);
for (_local5 in enemy) {
};
}
public function scUp(_arg1:Boolean=false):void{
if (_arg1 == false){
if ((((PAUSE == false)) && ((aniZOOM == false)))){
if (par.targets8.visible == false){
if (BatasAtas.hitTestObject(par.BatasAtas) == false){
(this.y = (this.y + 20));
};
};
};
} else {
if (par.targets8.visible == false){
if (BatasAtas.hitTestObject(par.BatasAtas) == false){
(this.y = (this.y + 20));
(ctrCheckZoom = 0);
};
};
};
}
public function goSound(_arg1:MouseEvent):void{
if (PAUSE == false){
par.opt.play();
};
}
public function DEINIT(_arg1:String="OUT"):void{
var _local2:*;
removeEventListener(Event.ENTER_FRAME, movingBox);
removeEventListener(Event.ENTER_FRAME, loopMain);
(enemy = new Array());
(enemy = getAllEnemy());
par.panel.go.removeEventListener(MouseEvent.CLICK, nextMoveClick);
par.panel.opt.removeEventListener(MouseEvent.CLICK, goOut);
par.panel.soun.removeEventListener(MouseEvent.CLICK, goSound);
par.panel.zoomout.removeEventListener(MouseEvent.CLICK, ZOOMOUT);
par.panel.zoomin.removeEventListener(MouseEvent.CLICK, ZOOMIN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressKey);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseKey);
for (var _local5 in ctr) {
_local2 = _local5;
_local5;
ctr[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, downMOUSE);
ctr[_local2].removeEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
ctr[_local2].removeEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
};
(waitGo = _arg1);
if (_arg1 != "OUT"){
if (_arg1 == "win"){
(par.SHIP1.CREW = 1);
(par.SHIP2.CREW = 0);
(par.SHIP3.CREW = 0);
for (_local5 in player) {
_local2 = _local5;
_local5;
if (player[_local2].noShip == 1){
(par.SHIP1.CREW = player[_local2].CREW);
};
if (player[_local2].noShip == 2){
(par.SHIP2.CREW = player[_local2].CREW);
};
if (player[_local2].noShip == 3){
(par.SHIP3.CREW = player[_local2].CREW);
};
if (player[_local2].HP != player[_local2].MAXHP){
(cekBonus = true);
};
};
if (cekBonus == false){
if (par.STAGEPERFECT[par.playStage] == 0){
(par.STAGEPERFECT[par.playStage] = 1);
};
(GOLD = (GOLD + 500));
};
if (par.playStage == 8){
if (enemy.length <= 0){
par.getAchi(1);
};
};
if (mineBLOWED >= 5){
par.getAchi(2);
};
if (par.playStage == par.STAGE){
(GOLD = (GOLD + par.stageBounty[par.STAGE]));
par.STAGE++;
(par.clueShip = par.cekLockStage());
};
};
addEventListener(Event.ENTER_FRAME, WaitForNext);
} else {
for (_local5 in player) {
_local2 = _local5;
_local5;
if (player[_local2] != null){
removeChild(player[_local2]);
};
};
for (_local5 in enemy) {
_local2 = _local5;
_local5;
if (enemy[_local2] != null){
removeChild(enemy[_local2]);
};
};
par.trans.goToScreen("map");
};
}
function frame71(){
INITGAME();
}
public function downMOUSE(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (PAUSE == false){
_local2 = _arg1.currentTarget.name;
_local3 = _local2.substr(3);
(whatCTR = Number(_local3));
if (playerTurn == true){
(itungPATH = true);
(moveNot = false);
stage.addEventListener(MouseEvent.MOUSE_MOVE, directPATH);
stage.addEventListener(MouseEvent.MOUSE_UP, goMOUSE);
};
};
}
public function getAllPlayer():Array{
var _local1:Array;
var _local2:*;
var _local3:*;
(disp.visible = false);
(ase.visible = false);
(looted = false);
_local1 = new Array();
_local2 = 0;
while (_local2 < this.numChildren) {
_local3 = this.getChildAt(_local2);
if ((_local3 is Player)){
_local3.removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
_local3.removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
_local1.push(_local3);
_local3.addEventListener(MouseEvent.ROLL_OUT, goHIDE);
_local3.addEventListener(MouseEvent.ROLL_OVER, goSHOW);
par.panel.mini.addMINI("player", _local3);
if (_local3.CASH == true){
(looted = true);
};
};
_local2++;
};
return (_local1);
}
public function goOut(_arg1:MouseEvent):void{
if (PAUSE == false){
par.concede.play();
};
}
public function nextMove():void{
var _local1:*;
(par.spend.visible = false);
if (theWay == 0){
if (playerTurn == true){
(tempCREWPlayer = new Array());
for (var _local4 in player) {
_local1 = _local4;
_local4;
(tempCREWPlayer[_local1] = player[_local1].CREW);
player[_local1].pathFinder(points[_local1]);
if (ctr[_local1].pic.currentFrame != 1){
switch (ctr[_local1].pic.currentFrame){
case 2:
player[_local1].NOSAIL();
break;
case 3:
player[_local1].REPAIR();
break;
case 4:
player[_local1].PUP();
break;
case 5:
player[_local1].BERSERK();
break;
case 6:
player[_local1].SHADOW();
break;
case 7:
player[_local1].RIDETHEWIND(2);
playSoundEfek("fast");
break;
case 8:
player[_local1].CAPTREPAIR();
break;
case 9:
player[_local1].GOGHOST();
break;
case 10:
player[_local1].SHIELD();
break;
};
};
};
};
if (playerTurn == false){
(tempCREWEnemy = new Array());
for (_local4 in enemy) {
_local1 = _local4;
_local4;
(tempCREWEnemy[_local1] = enemy[_local1].CREW);
enemy[_local1].pathFinder(pointsE[_local1]);
};
};
for (_local4 in ctr) {
_local1 = _local4;
_local4;
(clue[_local1].visible = false);
(ctr[_local1].visible = false);
ctr[_local1].hideAll();
ctr[_local1].resetPic();
};
pict.graphics.clear();
playSoundEfek("move");
addEventListener(Event.ENTER_FRAME, movingBox, false, 0, true);
};
}
public function getAllMine():Array{
var _local1:Array;
var _local2:*;
var _local3:*;
_local1 = new Array();
_local2 = 0;
while (_local2 < this.numChildren) {
_local3 = this.getChildAt(_local2);
if ((_local3 is Mine)){
_local1.push(_local3);
};
_local2++;
};
return (_local1);
}
public function efekSkill(_arg1:String, _arg2:MovieClip):void{
var _local3:*;
var _local4:DisplayObject;
var _local5:Number;
switch (_arg1){
case "rage":
_local3 = new Rage();
_local3;
break;
case "invur":
_local3 = new Invur();
_local3;
break;
case "repair":
_local3 = new Repair();
_local3;
break;
case "anchor":
_local3 = new Anchor();
_local3;
break;
case "capt":
_local3 = new RepairCapt();
_local3;
break;
};
(_local3.mouseEnabled = false);
(_local3.mouseChildren = false);
_local4 = getChildByName("pict");
_local4;
_local5 = getChildIndex(_local4);
_local5;
addChildAt(_local3, _local5);
_local3.FollowThis(_arg2);
}
public function scRight(_arg1:Boolean=false):void{
if (_arg1 == false){
if ((((PAUSE == false)) && ((aniZOOM == false)))){
if (par.targets8.visible == false){
if (BatasKanan.hitTestObject(par.BatasKanan) == false){
(this.x = (this.x - 20));
};
};
};
} else {
if (par.targets8.visible == false){
if (BatasKanan.hitTestObject(par.BatasKanan) == false){
(this.x = (this.x - 20));
(ctrCheckZoom = 0);
};
};
};
}
public function playSoundEfek(_arg1:String):void{
par.playVoice(_arg1);
}
public function AUTOZOOM(_arg1:Event):void{
var _local2:Boolean;
var _local3:Boolean;
var _local4:*;
var _local5:Number;
var _local6:Number;
_local2 = false;
_local3 = true;
_local4 = new Point(player[(player.length - 1)].x, player[(player.length - 1)].y);
_local4 = this.localToGlobal(_local4);
_local4;
if ((((((((_local4.x > 310)) && ((_local4.x < 330)))) && ((_local4.y > 230)))) && ((_local4.y < 250)))){
_local3 = false;
_local3;
};
if (ctrCheckZoom > 3){
(checkZOOM = false);
} else {
ctrCheckZoom++;
};
trace(ctrCheckZoom);
if (_local3){
if (checkZOOM == true){
if (_local4.x < 310){
scLeft(true);
};
if (_local4.x > 330){
scRight(true);
};
if (_local4.y < 230){
scUp(true);
};
if (_local4.y > 250){
scDown(true);
};
if (scaleX < 0.9){
_local5 = x;
_local6 = y;
(scaleX = (scaleX + 0.02));
(scaleY = (scaleY + 0.02));
(x = (x + (_local5 * 0.02)));
(y = (y + (_local6 * 0.02)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
};
if (checkZOOM == false){
if (player.length > 1){
if (scaleX > 0.6){
_local5 = x;
_local5;
_local6 = y;
_local6;
(scaleX = (scaleX - 0.02));
(scaleY = (scaleY - 0.02));
(x = (x - (_local5 * 0.02)));
(y = (y - (_local6 * 0.02)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
if (cekOnScrenn() == true){
_local2 = true;
_local2;
};
} else {
_local2 = true;
_local2;
};
} else {
_local2 = true;
_local2;
};
};
if (_local2 == false){
} else {
removeEventListener(Event.ENTER_FRAME, AUTOZOOM);
(aniZOOM = false);
};
}
public function goHIDE(_arg1:MouseEvent):void{
(disp.visible = false);
(ase.visible = false);
}
public function randomAwan():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:DisplayObject;
var _local5:Number;
(awan = new Array());
(speedAwan = new Array());
_local2 = 0;
while (_local2 <= 40) {
_local3 = randRange(1, 6);
if (bg.currentFrame == 2){
_local3 = (_local3 + 6);
_local3;
};
switch (_local3){
case 1:
_local1 = new Cloud1();
_local1;
break;
case 2:
_local1 = new Cloud2();
_local1;
break;
case 3:
_local1 = new Cloud3();
_local1;
break;
case 4:
_local1 = new Cloud4();
_local1;
break;
case 5:
_local1 = new Cloud5();
_local1;
break;
case 6:
_local1 = new Cloud6();
_local1;
break;
case 7:
_local1 = new Cloud7();
_local1;
break;
case 8:
_local1 = new Cloud8();
_local1;
break;
case 9:
_local1 = new Cloud9();
_local1;
break;
case 10:
_local1 = new Cloud10();
_local1;
break;
case 11:
_local1 = new Cloud11();
_local1;
break;
case 12:
_local1 = new Cloud12();
_local1;
break;
};
(_local1.x = randRange(0, StageWidth));
(_local1.y = randRange(0, StageHeight));
(_local1.mouseEnabled = false);
_local4 = getChildByName("efekawan");
_local4;
_local5 = getChildIndex(_local4);
_local5;
addChildAt(_local1, _local5);
speedAwan.push((Math.random() + 0.2));
awan.push(_local1);
_local2++;
};
}
public function playEfek(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:*;
var _local6:Number;
var _local7:DisplayObject;
var _local8:Number;
_local6 = 1;
switch (_arg1){
case "air":
_local6 = 2;
_local6;
_local5 = new EfekAir();
_local5;
break;
case "air2":
_local6 = 2;
_local6;
_local5 = new EfekAir2();
_local5;
break;
case "air3":
_local6 = 2;
_local6;
_local5 = new EfekAir3();
_local5;
break;
case "fire":
_local5 = new EfekBlow();
_local5;
break;
case "hit":
_local5 = new EfekHit();
_local5;
break;
case "kayu":
_local6 = 2;
_local6;
_local5 = new Kayu();
_local5;
_arg4 = randRange(-180, 180);
_arg4;
(_local5.width = (_local5.width + randRange(-2, 2)));
break;
case "ship1":
_local6 = 2;
_local6;
_local5 = new Ship1Dead();
_local5;
break;
case "ship2":
_local6 = 2;
_local6;
_local5 = new Ship2Dead();
_local5;
break;
case "ship3":
_local6 = 2;
_local6;
_local5 = new Ship3Dead();
_local5;
break;
case "ship4":
_local6 = 2;
_local6;
_local5 = new Ship4Dead();
_local5;
break;
case "ship5":
_local6 = 2;
_local6;
_local5 = new Ship5Dead();
_local5;
break;
case "ship6":
_local6 = 2;
_local6;
_local5 = new Ship6Dead();
_local5;
break;
case "ship7":
_local6 = 2;
_local6;
_local5 = new Ship7Dead();
_local5;
break;
case "ship8":
_local6 = 2;
_local6;
_local5 = new Ship8Dead();
_local5;
break;
case "ship9":
_local6 = 2;
_local6;
_local5 = new Ship9Dead();
_local5;
break;
case "ship10":
_local6 = 2;
_local6;
_local5 = new Ship10Dead();
_local5;
break;
case "ship11":
_local6 = 2;
_local6;
_local5 = new Ship11Dead();
_local5;
break;
case "ship12":
_local6 = 2;
_local6;
_local5 = new Ship12Dead();
_local5;
break;
case "ship13":
_local6 = 2;
_local6;
_local5 = new Ship13Dead();
_local5;
break;
case "ship1E":
_local6 = 2;
_local6;
_local5 = new Ship1DeadE();
_local5;
break;
case "ship2E":
_local6 = 2;
_local6;
_local5 = new Ship2DeadE();
_local5;
break;
case "ship3E":
_local6 = 2;
_local6;
_local5 = new Ship3DeadE();
_local5;
break;
case "ship4E":
_local6 = 2;
_local6;
_local5 = new Ship4DeadE();
_local5;
break;
case "ship5E":
_local6 = 2;
_local6;
_local5 = new Ship5DeadE();
_local5;
break;
case "ship6E":
_local6 = 2;
_local6;
_local5 = new Ship6DeadE();
_local5;
break;
case "ship7E":
_local6 = 2;
_local6;
_local5 = new Ship7DeadE();
_local5;
break;
case "ship8E":
_local6 = 2;
_local6;
_local5 = new Ship8DeadE();
_local5;
break;
case "ship9E":
_local6 = 2;
_local6;
_local5 = new Ship9DeadE();
_local5;
break;
case "ship10E":
_local6 = 2;
_local6;
_local5 = new Ship10DeadE();
_local5;
break;
case "ship11E":
_local6 = 2;
_local6;
_local5 = new Ship11DeadE();
_local5;
break;
case "ship12E":
_local6 = 2;
_local6;
_local5 = new Ship12DeadE();
_local5;
break;
case "ship13E":
_local6 = 2;
_local6;
_local5 = new Ship13DeadE();
_local5;
break;
case "mineblow":
_local5 = new BlowMine();
_local5;
break;
default:
_local5 = new EfekAir();
_local5;
};
(_local5.x = _arg2);
(_local5.y = _arg3);
(_local5.rotation = _arg4);
_local7 = getChildByName("efek");
_local7;
_local8 = getChildIndex(_local7);
_local8;
if (_local6 == 2){
addChildAt(_local5, _local8);
} else {
addChild(_local5);
};
}
public function countCrewLost(_arg1:MovieClip, _arg2:Number):void{
if ((_arg1 is Player)){
crewKilled = (crewKilled + _arg2);
};
if ((_arg1 is Enemy)){
crewMurder = (crewMurder + _arg2);
};
}
public function scLeft(_arg1:Boolean=false):void{
if (_arg1 == false){
if ((((PAUSE == false)) && ((aniZOOM == false)))){
if (par.targets8.visible == false){
if (BatasKiri.hitTestObject(par.BatasKiri) == false){
(this.x = (this.x + 20));
};
};
};
} else {
if (par.targets8.visible == false){
if (BatasKiri.hitTestObject(par.BatasKiri) == false){
(this.x = (this.x + 20));
(ctrCheckZoom = 0);
};
};
};
}
public function ZOOMOUT(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
if (PAUSE == false){
if (scaleX > 0.6){
_local2 = x;
_local3 = y;
(scaleX = (scaleX - 0.1));
(scaleY = (scaleY - 0.1));
(x = (x - (_local2 * 0.1)));
(y = (y - (_local3 * 0.1)));
startDrag(false, new Rectangle((0 + (150 * scaleX)), (0 + (150 * scaleY)), (640 - (StageWidthB * scaleX)), (480 - (StageHeightB * scaleY))));
stage.addEventListener(MouseEvent.MOUSE_MOVE, STOPDRAG);
};
};
}
public function loopMain(_arg1:Event):void{
var _local2:*;
var _local3:Boolean;
var _local4:*;
var _local5:*;
if (par.muteBGM == false){
par.panel.soun.gotoAndStop(1);
} else {
par.panel.soun.gotoAndStop(2);
};
if (PAUSE == false){
if (lagiDuel == false){
(peluru = new Array());
(peluru = getAllPeluru());
for (var _local8 in peluru) {
_local2 = _local8;
_local8;
peluru[_local2].Move();
};
if (peluru.length > 0){
(moveBulet = true);
} else {
(moveBulet = false);
};
(mine = new Array());
(mine = getAllMine());
for (_local8 in mine) {
_local2 = _local8;
_local8;
mine[_local2].CEK(player, enemy);
};
_local3 = false;
for (_local8 in player) {
_local2 = _local8;
_local8;
if (player[_local2].isDEAD == true){
_local3 = true;
_local3;
if (player[_local2].theClone != null){
removeChild(player[_local2].theClone);
(player[_local2].theClone = null);
};
playSoundEfek("sink");
player[_local2].removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
player[_local2].removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
playEfek(("ship" + String(player[_local2].currentFrame)), player[_local2].x, player[_local2].y, player[_local2].rotation);
(cekBonus = true);
removeChild(player[_local2]);
(shipDestroy = (shipDestroy + 1));
} else {
_local4 = new Path(clue[_local2].point[0].x, clue[_local2].point[0].y);
_local4.lineTo(clue[_local2].point[1].x, clue[_local2].point[1].y);
_local4.curveTo(clue[_local2].point[2].x, clue[_local2].point[2].y, clue[_local2].point[3].x, clue[_local2].point[3].y);
_local4.traverse(clue[_local2], ctrClue, true);
if (par.playStage == 8){
if (winmate.body.hitTestObject(player[_local2].body)){
DEINIT("win");
return;
};
};
};
};
if (_local3 == true){
(player = new Array());
(player = getAllPlayer());
(tempCREWPlayer = new Array());
for (_local8 in player) {
_local2 = _local8;
_local8;
ctr[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, downMOUSE);
ctr[_local2].addEventListener(MouseEvent.MOUSE_DOWN, downMOUSE);
(ctr[_local2].theSkill = player[_local2].theSkill);
ctr[_local2].resetPic();
(clue[_local2].range = player[_local2].range);
(clue[_local2].area.area.width = (player[_local2].range * 20));
clue[_local2].pic.gotoAndStop(player[_local2].currentFrame);
(tempCREWPlayer[_local2] = player[_local2].CREW);
(tempCREWPlayer[_local2] = player[_local2].CREW);
};
};
_local3 = false;
_local3;
for (_local8 in enemy) {
_local2 = _local8;
_local8;
if (enemy[_local2].isDEAD == true){
_local3 = true;
_local3;
enemy[_local2].removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
enemy[_local2].removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
playEfek((("ship" + String(enemy[_local2].currentFrame)) + "E"), enemy[_local2].x, enemy[_local2].y, enemy[_local2].rotation);
playSoundEfek("sink");
if ((((enemy[_local2].HP <= 0)) || ((enemy[_local2].CREW <= 0)))){
(shipDestroyEnemy = (shipDestroyEnemy + 1));
if (looted == true){
(GOLD = (GOLD + (par.cekBounty(enemy[_local2].currentFrame) * 2)));
} else {
(GOLD = (GOLD + par.cekBounty(enemy[_local2].currentFrame)));
};
};
if (par.playStage == 8){
if (enemy[_local2].currentFrame == 8){
(winmate.visible = true);
par.targets8.gotoAndStop(2);
(par.targets8.visible = true);
};
};
removeChild(enemy[_local2]);
} else {
for (var _local10 in clue) {
_local5 = _local10;
_local10;
if (clue[_local5].visible == true){
clue[_local5].cekRange(enemy[_local2], ctrClue);
};
};
};
};
if (_local3 == true){
(enemy = new Array());
(enemy = getAllEnemy());
(tempCREWEnemy = new Array());
for (_local8 in enemy) {
_local2 = _local8;
_local8;
(tempCREWEnemy[_local2] = enemy[_local2].CREW);
};
};
animasiAwan();
(par.panel.alpha = 1);
for (_local8 in ctr) {
_local2 = _local8;
_local8;
if (((ctr[_local2].hitTestObject(par.panel)) && (par.panel.hitTestPoint(stage.mouseX, stage.mouseY, true)))){
(par.panel.alpha = 0.5);
};
};
if (((dKeyIsDown) || (rightKeyIsDown))){
scRight();
};
if (((aKeyIsDown) || (leftKeyIsDown))){
scLeft();
};
if (((sKeyIsDown) || (downKeyIsDown))){
scDown();
};
if (((wKeyIsDown) || (upKeyIsDown))){
scUp();
};
if (player.length <= 0){
DEINIT("lose");
return;
};
if (enemy.length <= 0){
if (par.playStage != 8){
DEINIT("win");
return;
};
};
(ctrClue = (ctrClue + 0.02));
if (ctrClue > 1){
(ctrClue = 0);
};
};
};
}
public function nextMoveClick(_arg1:MouseEvent):void{
if ((((PAUSE == false)) && ((aniZOOM == false)))){
nextMove();
};
}
public function movingBox(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:Boolean;
if (PAUSE == false){
if (lagiDuel == false){
if (theWay < 1){
if (playerTurn == true){
for (var _local7 in player) {
_local2 = _local7;
_local7;
player[_local2].Move(theWay, enemy);
};
} else {
for (_local7 in enemy) {
_local2 = _local7;
_local7;
enemy[_local2].Move(theWay, player);
};
};
};
(theWay = (theWay + 0.02));
if (theWay > 1){
_local4 = false;
if (playerTurn == true){
for (_local7 in player) {
_local2 = _local7;
_local7;
player[_local2].setUlang();
};
for (_local7 in player) {
_local2 = _local7;
_local7;
if (player[_local2].cekTumpuk(player)){
_local4 = true;
_local4;
};
};
} else {
(fog.alpha = 0);
for (_local7 in enemy) {
_local2 = _local7;
_local7;
enemy[_local2].setUlang();
};
for (_local7 in enemy) {
_local2 = _local7;
_local7;
if (enemy[_local2].cekTumpuk(enemy)){
_local4 = true;
_local4;
};
};
};
if ((((_local4 == false)) && ((moveBulet == false)))){
for (_local7 in mine) {
_local2 = _local7;
_local7;
mine[_local2].goHIDE();
};
(theWay = 0);
if (playerTurn == true){
for (_local7 in enemy) {
_local2 = _local7;
_local7;
enemy[_local2].standBy();
};
} else {
for (_local7 in player) {
_local2 = _local7;
_local7;
player[_local2].standBy();
};
};
for (_local7 in enemy) {
_local2 = _local7;
_local7;
if (enemy[_local2].CREW != tempCREWEnemy[_local2]){
_local3 = new WarnCrew();
_local3;
addChild(_local3);
_local3.Show(enemy[_local2], (enemy[_local2].CREW - tempCREWEnemy[_local2]));
};
};
for (_local7 in player) {
_local2 = _local7;
_local7;
if (player[_local2].CREW != tempCREWPlayer[_local2]){
_local3 = new WarnCrew();
_local3;
addChild(_local3);
_local3.Show(player[_local2], (player[_local2].CREW - tempCREWPlayer[_local2]));
};
};
removeEventListener(Event.ENTER_FRAME, movingBox);
if (playerTurn == false){
(playerTurn = true);
initMove();
} else {
(playerTurn = false);
countEnemy();
};
};
};
} else {
if (par.duelani.lagiAnimasi == false){
(par.duelani.pic.damage1 = Math.round((p1.DUELDAMAGE() / p2.SKILLDUEL)));
(par.duelani.pic.damage2 = Math.round((p2.DUELDAMAGE() / p1.SKILLDUEL)));
(par.duelani.pic.duel1 = p1.SKILLDUEL);
(par.duelani.pic.duel2 = p2.SKILLDUEL);
(par.duelani.pic.crew1 = p1.CREW);
(par.duelani.pic.crew2 = p2.CREW);
(par.duelani.pic.capt1 = p1.PICCAPT);
(par.duelani.pic.capt2 = p2.PICCAPT);
par.duelani.PLAY();
};
};
};
}
public function animasiAwan():void{
var _local1:*;
for (var _local4 in awan) {
_local1 = _local4;
_local4;
(awan[_local1].x = (awan[_local1].x + speedAwan[_local1]));
(awan[_local1].y = (awan[_local1].y + speedAwan[_local1]));
if ((((awan[_local1].x >= StageWidth)) || ((awan[_local1].y >= StageHeight)))){
(awan[_local1].x = randRange((StageWidth * -1), StageWidth));
(awan[_local1].y = -150);
(speedAwan[_local1] = (Math.random() + 0.2));
};
};
}
public function goSTAGE(){
var _local1:String;
_local1 = ("stage" + String(par.playStage));
gotoAndStop(_local1);
}
public function scDown(_arg1:Boolean=false):void{
if (_arg1 == false){
if ((((PAUSE == false)) && ((aniZOOM == false)))){
if (par.targets8.visible == false){
if (BatasBawah.hitTestObject(par.BatasBawah) == false){
(this.y = (this.y - 20));
};
};
};
} else {
if (par.targets8.visible == false){
if (BatasBawah.hitTestObject(par.BatasBawah) == false){
(this.y = (this.y - 20));
(ctrCheckZoom = 0);
};
};
};
}
public function pressKey(_arg1:KeyboardEvent):void{
(keyPressed = _arg1.keyCode);
switch (keyPressed){
case Keyboard.RIGHT:
(rightKeyIsDown = true);
break;
case Keyboard.LEFT:
(leftKeyIsDown = true);
break;
case Keyboard.UP:
(upKeyIsDown = true);
break;
case Keyboard.DOWN:
(downKeyIsDown = true);
break;
case keyQ:
(qKeyIsDown = true);
break;
case keyE:
(eKeyIsDown = true);
break;
case keyW:
(wKeyIsDown = true);
break;
case keyR:
(rKeyIsDown = true);
break;
case keyA:
(aKeyIsDown = true);
break;
case keyS:
(sKeyIsDown = true);
break;
case keyD:
(dKeyIsDown = true);
break;
case keyF:
(fKeyIsDown = true);
break;
case keyG:
(gKeyIsDown = true);
break;
case key1:
(key1IsDown = true);
break;
case key2:
(key2IsDown = true);
break;
case key3:
(key3IsDown = true);
break;
case key4:
(key4IsDown = true);
break;
case keyX:
(xKeyIsDown = true);
break;
case keyZ:
(zKeyIsDown = true);
break;
case keyC:
(cKeyIsDown = true);
break;
case keyV:
(vKeyIsDown = true);
break;
case Keyboard.SPACE:
(spaceKeyIsDown = true);
break;
};
}
public function playTrail(_arg1:MovieClip):void{
var _local2:*;
var _local3:DisplayObject;
var _local4:Number;
_local2 = new TrailEfek();
_local2;
(_local2.x = _arg1.x);
(_local2.y = _arg1.y);
(_local2.rotation = _arg1.rotation);
_local3 = getChildByName("efek");
_local3;
_local4 = getChildIndex(_local3);
_local4;
addChildAt(_local2, _local4);
_local2.gotoAndStop(_arg1.currentFrame);
_local2.letDie();
}
public function getAllPeluru():Array{
var _local1:Array;
var _local2:*;
var _local3:*;
_local1 = new Array();
_local2 = 0;
while (_local2 < this.numChildren) {
_local3 = this.getChildAt(_local2);
if ((_local3 is Roket)){
_local1.push(_local3);
};
_local2++;
};
return (_local1);
}
public function drawPath():void{
var _local1:*;
var _local2:*;
pict.graphics.clear();
for (var _local5 in player) {
_local1 = _local5;
_local5;
_local2 = new Path(points[_local1][0].x, points[_local1][0].y);
_local2.lineTo(points[_local1][1].x, points[_local1][1].y);
_local2.curveTo(points[_local1][2].x, points[_local1][2].y, points[_local1][3].x, points[_local1][3].y);
_local2.draw(pict);
};
}
public function directPATH(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
(moveNot = true);
_local2 = (mouseX - player[whatCTR].x);
_local2;
_local3 = (mouseY - player[whatCTR].y);
_local3;
_local4 = Math.atan2(_local3, _local2);
_local4;
_local5 = ((_local4 * 180) / Math.PI);
_local5;
_local6 = Math.round(Math.sqrt((Math.pow((player[whatCTR].x - mouseX), 2) + Math.pow((player[whatCTR].y - mouseY), 2))));
if (_local6 > (player[whatCTR].maxSPEED * player[whatCTR].FAST)){
_local6 = (player[whatCTR].maxSPEED * player[whatCTR].FAST);
_local6;
};
if (_local6 < (player[whatCTR].minSPEED * player[whatCTR].FAST)){
_local6 = (player[whatCTR].minSPEED * player[whatCTR].FAST);
_local6;
};
_local7 = (_local5 - player[whatCTR].rotation);
_local7 = ((_local7 + 360) % 360);
_local7;
if ((((_local7 < 90)) || ((_local7 > 270)))){
if ((((_local7 > 45)) && ((_local7 < 90)))){
_local7 = 45;
_local7;
};
if ((((_local7 < 315)) && ((_local7 > 270)))){
_local7 = -45;
_local7;
};
} else {
_local7 = (_local7 - 180);
_local7;
_local7 = (_local7 * -1);
_local7;
if (_local7 < -45){
_local7 = -45;
_local7;
};
if (_local7 > 45){
_local7 = 45;
_local7;
};
};
_local8 = (Math.cos((((_local7 + player[whatCTR].rotation) * Math.PI) / 180)) * _local6);
_local9 = (Math.sin((((_local7 + player[whatCTR].rotation) * Math.PI) / 180)) * _local6);
_local10 = (player[whatCTR].x + _local8);
_local11 = (player[whatCTR].y + _local9);
(ctr[whatCTR].x = _local10);
(ctr[whatCTR].y = _local11);
(points[whatCTR][3].x = _local10);
(points[whatCTR][3].y = _local11);
(clue[whatCTR].point = points[whatCTR]);
_local12 = new Path(points[whatCTR][0].x, points[whatCTR][0].y);
_local12.lineTo(points[whatCTR][1].x, points[whatCTR][1].y);
_local12.curveTo(points[whatCTR][2].x, points[whatCTR][2].y, points[whatCTR][3].x, points[whatCTR][3].y);
_local12.traverse(testrot, 1, true);
(ctr[whatCTR].rotation = testrot.rotation);
drawPath();
}
public function changeTargetThis(_arg1:MovieClip, _arg2:MovieClip):void{
var _local3:*;
for (var _local6 in enemy) {
_local3 = _local6;
_local6;
if (enemy[_local3] == _arg1){
(TARGETENEMY[_local3] = _arg2);
};
};
}
public function BLOWEDMINE():void{
mineBLOWED++;
}
public function countEnemy():void{
var _local1:*;
var _local2:*;
var _local3:*;
for (var _local6 in TARGETENEMY) {
_local1 = _local6;
_local6;
if ((((TARGETENEMY[_local1].isDEAD == true)) || ((TARGETENEMY[_local1] == null)))){
_local3 = null;
for (var _local8 in player) {
_local2 = _local8;
_local8;
if (player[_local2] != null){
if (_local3 == null){
_local3 = player[_local2];
_local3;
} else {
if (_local3.HP > player[_local2]){
_local3 = player[_local2];
_local3;
};
};
};
};
(TARGETENEMY[_local1] = _local3);
};
};
for (_local6 in enemy) {
_local1 = _local6;
_local6;
(pointsE[_local1] = new Array());
(pointsE[_local1] = enemy[_local1].chaseThis(TARGETENEMY[_local1], theTurn));
};
nextMove();
}
public function cekOnScrenn():Boolean{
var _local1:Number;
var _local2:*;
var _local3:*;
_local1 = 0;
for (var _local6 in player) {
_local2 = _local6;
_local6;
_local3 = new Point(player[_local2].x, player[_local2].y);
_local3 = this.localToGlobal(_local3);
_local3;
if ((((((((_local3.x > 0)) && ((_local3.x < 640)))) && ((_local3.y > 0)))) && ((_local3.y < 480)))){
var _temp1 = _local1;
_local1 = (_local1 + 1);
_temp1;
};
};
if (_local1 >= 2){
return (true);
};
return (false);
}
public function DUELTIME(_arg1:MovieClip, _arg2:MovieClip):void{
if ((((_arg1.isDEAD == false)) && ((_arg2.isDEAD == false)))){
(lagiDuel = true);
(p1 = _arg1);
(p2 = _arg2);
};
}
public function getAllEnemy():Array{
var _local1:Array;
var _local2:*;
var _local3:*;
(disp.visible = false);
(ase.visible = false);
_local1 = new Array();
_local2 = 0;
while (_local2 < this.numChildren) {
_local3 = this.getChildAt(_local2);
if ((_local3 is Enemy)){
_local3.removeEventListener(MouseEvent.ROLL_OUT, goHIDE);
_local3.removeEventListener(MouseEvent.ROLL_OVER, goSHOW);
_local1.push(_local3);
_local3.addEventListener(MouseEvent.ROLL_OUT, goHIDE);
_local3.addEventListener(MouseEvent.ROLL_OVER, goSHOW);
par.panel.mini.addMINI("enemy", _local3);
};
_local2++;
};
return (_local1);
}
public function duelGO():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = p1.DUELDAMAGE();
_local2 = p2.DUELDAMAGE();
if ((p1 is Player)){
(crewKilled = (crewKilled + p2.DUELDAMAGE()));
} else {
(crewMurder = (crewMurder + p2.DUELDAMAGE()));
};
if ((p2 is Player)){
(crewKilled = (crewKilled + p1.DUELDAMAGE()));
} else {
(crewMurder = (crewMurder + p1.DUELDAMAGE()));
};
p1.DAMAGE(Math.floor((p2.CREW * 0.1)));
p2.DAMAGE(Math.floor((p1.CREW * 0.1)));
p1.DEALDUEL(_local2);
p2.DEALDUEL(_local1);
if ((p1 is Player)){
if (p1.CREW <= 0){
(crewKilled = (crewKilled + p1.CREW));
};
} else {
if (p1.CREW <= 0){
(crewMurder = (crewMurder + p1.CREW));
};
};
if ((p2 is Player)){
if (p2.CREW <= 0){
(crewKilled = (crewKilled + p2.CREW));
};
} else {
if (p2.CREW <= 0){
(crewMurder = (crewMurder + p2.CREW));
};
};
_local3 = randRange(0, 1);
while (p1.body.hitTestObject(p2.body)) {
if (_local3 == 1){
_local4 = -3;
_local4;
} else {
_local4 = 3;
_local4;
};
(p1.rotation = (p1.rotation + _local4));
(p2.rotation = (p2.rotation - _local4));
(p1.x = (p1.x + (Math.cos(((p1.rotation * Math.PI) / 180)) * 5)));
(p1.y = (p1.y + (Math.sin(((p1.rotation * Math.PI) / 180)) * 5)));
(p2.x = (p2.x + (Math.cos(((p2.rotation * Math.PI) / 180)) * 5)));
(p2.y = (p2.y + (Math.sin(((p2.rotation * Math.PI) / 180)) * 5)));
};
}
public function goSHOW(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
(disp.visible = true);
(disp.HP.text = String(((_local2.HP + "/") + _local2.MAXHP)));
(disp.CREW.text = String(((_local2.CREW + "/") + _local2.MAXCREW)));
(disp.CANON.text = String(((_local2.jumCannon + "/") + _local2.MAXjumCannon)));
disp.pice.gotoAndStop(_local2.PICCAPT);
disp.skill.gotoAndStop(4);
(disp.nama.text = par.shipName(_local2.currentFrame));
if (_local2.CASH == true){
disp.skill.gotoAndStop(2);
};
if (_local2.DEF == true){
disp.skill.gotoAndStop(3);
};
if (_local2.SKILLDUEL > 1){
disp.skill.gotoAndStop(1);
};
(disp.x = mouseX);
(disp.y = mouseY);
if ((_local2 is Player)){
(disp.captinfo.text = par.cekSkillCapt(_local2.PICCAPT));
};
if ((_local2 is Enemy)){
(disp.captinfo.text = _local2.KetSKill);
};
if (theWay == 0){
(ase.visible = true);
(ase.x = _local2.x);
(ase.y = _local2.y);
(ase.rotation = (_local2.rotation + 90));
(ase.area.width = ((_local2.range * 2) * 10));
};
}
}
}//package pirateconflictv1_fla
Section 49
//MainMenu_118 (pirateconflictv1_fla.MainMenu_118)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainMenu_118 extends MovieClip {
public var logosf:MovieClip;
public var menu:MovieClip;
public var title:MovieClip;
public var par;
public function MainMenu_118(){
addFrameScript(0, frame1);
}
function frame1(){
par = this.parent;
logosf.addEventListener(MouseEvent.CLICK, par.logoclick);
logosf.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
logosf.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
}
}
}//package pirateconflictv1_fla
Section 50
//MainTimeline (pirateconflictv1_fla.MainTimeline)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const keyA:Number = 65;
public const keyK:Number = 75;
public const keyF:Number = 70;
public const keyI:Number = 73;
public const keyT:Number = 84;
public const keyU:Number = 85;
public var panel:MovieClip;
public var autoZOOM:Boolean;
public var tavern1:Boolean;
public var warnachi:MovieClip;
public var playStage:Number;
public var BUYCAPT:Array;
public var SHOPSHIP:Array;
public var GOLD:Number;
public var ALLCREW:Number;
public var dock1:Boolean;
public var AchiMines5:Boolean;
public var so:SharedObject;
public var preloader:MovieClip;
public var loader2:URLLoader;
public var AchiDesShip10:Boolean;
public var MOUSE:MovieClip;
public var clueShip:Boolean;
public var achi:MovieClip;
public var docks:MovieClip;
public var trans:MovieClip;
public var splashpr:MovieClip;
public var stintro:MovieClip;
public var CREWcost:Number;
public var AchiDesShip20:Boolean;
public var opt:MovieClip;
public var AchiCalmArea2:Boolean;
public var keyPressed:uint;
public var soundChannelMain:SoundChannel;
public var STAGE:Number;
public var concede:MovieClip;
public var theCHEAT:Number;
public var winlose:MovieClip;
public var credit:MovieClip;
public var splashsf:MovieClip;
public var soundSFX:Number;
public var mapSound:Boolean;
public var theCOUNT:Number;
public var harbor1:Boolean;
public var BatasAtas:MovieClip;
public var sound:Sound;
public var tutor:MovieClip;
public var soundBGM:Number;
public var SHOPCAPT:Array;
public var stageBounty:Array;
public var STAGEPERFECT:Array;
public var menu:MovieClip;
public var BatasKanan:MovieClip;
public var AchiPerf7:Boolean;
public var spend:MovieClip;
public var AchiPerf3:Boolean;
public var SHIP1;
public var targets8:MovieClip;
public var SHIP3;
public var customContextMenu:ContextMenu;
public var request2:URLRequest;
public var SHIP2;
public var BatasBawah:MovieClip;
public var BatasKiri:MovieClip;
public var variables2:URLVariables;
public var BUYSHIP:Array;
public var muteSFX:Boolean;
public var AchiPerfAll:Boolean;
public var ENEMYSHIPDESTROY:Number;
public var main:MovieClip;
public var AchiVileMurder:Boolean;
public var temp;
public var duelani:MovieClip;
public var muteBGM:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 13, frame14, 17, frame18, 25, frame26, 29, frame30, 33, frame34, 37, frame38, 41, frame42, 42, frame43);
}
public function clikfarm(_arg1:ContextMenuEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.smallfarmstudio.com");
navigateToURL(_local2, "_blank");
}
public function LoadGame():void{
dock1 = so.data.dock1;
tavern1 = so.data.tavern1;
harbor1 = so.data.harbor1;
SHIP1 = so.data.SHIP1;
SHIP2 = so.data.SHIP2;
SHIP3 = so.data.SHIP3;
GOLD = so.data.GOLD;
STAGE = so.data.STAGE;
BUYSHIP = so.data.BUYSHIP;
BUYCAPT = so.data.BUYCAPT;
SHOPSHIP = so.data.SHOPSHIP;
SHOPCAPT = so.data.SHOPCAPT;
ALLCREW = so.data.ALLCREW;
ENEMYSHIPDESTROY = so.data.ENEMYSHIPDESTROY;
STAGEPERFECT = so.data.STAGEPERFECT;
AchiDesShip10 = so.data.AchiDesShip10;
AchiDesShip20 = so.data.AchiDesShip20;
AchiPerf3 = so.data.AchiPerf3;
AchiPerf7 = so.data.AchiPerf7;
AchiPerfAll = so.data.AchiPerfAll;
AchiCalmArea2 = so.data.AchiCalmArea2;
AchiMines5 = so.data.AchiMines5;
AchiVileMurder = so.data.AchiVileMurder;
}
public function captBlaBla(_arg1:Number=0):String{
var _local2:*;
switch (_arg1){
case 0:
_local2 = "NONE";
break;
case 1:
_local2 = "Calico Jack\nHis ship can endure more damage";
break;
case 2:
_local2 = "Benito de Soto\nYou get double Gold if he command one of your ship";
break;
case 3:
_local2 = "John Nutt\nAll his Crew can fight better on duel";
break;
case 4:
_local2 = "Lawrence Prince\nHis ship can throw mines";
break;
case 5:
_local2 = "Nathaniel Butler\nHe can make his ship's cannon deal double damage";
break;
case 6:
_local2 = "Thomas Paine\nHe can make a decoy ship";
break;
case 7:
_local2 = "Edward England\nHis Ship can move faster for a while";
break;
case 8:
_local2 = "Barbarossa\nHe can repair his Ship";
break;
case 9:
_local2 = "Mary de Belleville\nShe can make her ship dissaper";
break;
case 10:
_local2 = "Long John Silver\nHis ship can endure any cannon damage for a while";
break;
};
return (_local2);
}
public function mouseSTOP():void{
MOUSE.pic.gotoAndStop(1);
}
public function onComplete(_arg1:Event):void{
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
play();
}
public function goDrag(_arg1:MouseEvent):void{
if (main.PAUSE == false){
if (main.aniZOOM == false){
stage.addEventListener(MouseEvent.MOUSE_UP, StopDrag);
main.startDrag(false, new Rectangle((0 + (150 * main.scaleX)), (0 + (150 * main.scaleY)), (640 - (main.StageWidthB * main.scaleX)), (480 - (main.StageHeightB * main.scaleY))));
};
};
}
function frame10(){
stop();
splashpr.addEventListener(MouseEvent.CLICK, logoclick2);
splashpr.buttonMode = true;
}
function frame14(){
stop();
splashsf.addEventListener(MouseEvent.CLICK, logoclick);
splashsf.buttonMode = true;
}
public function cekLockStage():Boolean{
var _local1:Boolean;
_local1 = false;
switch (STAGE){
case 1:
_local1 = false;
break;
case 2:
_local1 = true;
break;
case 3:
_local1 = true;
break;
case 4:
_local1 = true;
break;
case 5:
_local1 = true;
break;
case 6:
_local1 = true;
break;
case 7:
_local1 = false;
break;
case 8:
_local1 = false;
break;
case 9:
_local1 = true;
break;
case 10:
_local1 = true;
break;
case 11:
_local1 = true;
break;
case 12:
_local1 = true;
break;
case 13:
_local1 = true;
break;
case 14:
_local1 = false;
break;
case 15:
_local1 = false;
break;
};
return (_local1);
}
public function CHOSE(_arg1:Event):void{
theCOUNT--;
if (theCOUNT <= 0){
theCOUNT = -1;
theCHEAT = 0;
};
}
public function mouseStop(_arg1:MouseEvent):void{
mouseSTOP();
}
public function playVoice(_arg1:String):void{
var _local2:Sound;
switch (_arg1){
case "capt1":
_local2 = new Voice1();
break;
case "capt2":
_local2 = new Voice2();
break;
case "capt3":
_local2 = new Voice3();
break;
case "capt4":
_local2 = new Voice4();
break;
case "capt5":
_local2 = new Voice5();
break;
case "capt6":
_local2 = new Voice6();
break;
case "capt7":
_local2 = new Voice7();
break;
case "capt8":
_local2 = new Voice8();
break;
case "capt9":
_local2 = new Voice9();
break;
case "capt10":
_local2 = new Voice10();
break;
case "yes":
_local2 = new Yes();
break;
case "yes2":
_local2 = new Yes2();
break;
case "yes3":
_local2 = new Yes3();
break;
case "leave":
_local2 = new Leave();
break;
case "leave2":
_local2 = new Leave2();
break;
case "leave3":
_local2 = new Leave3();
break;
case "fire":
_local2 = new Fire();
break;
case "hit":
_local2 = new Hit();
break;
case "move":
_local2 = new ShipMove();
break;
case "sink":
_local2 = new ShipSink();
break;
case "sword":
_local2 = new Sword();
break;
case "fix":
_local2 = new FixSound();
break;
case "rot":
_local2 = new Spin();
break;
case "slam":
_local2 = new Shut();
break;
case "fast":
_local2 = new FastSound();
break;
case "mine":
_local2 = new MineSound();
break;
case "paper":
_local2 = new Paper();
break;
case "money":
_local2 = new Money();
break;
case "buy":
_local2 = new Buyed();
break;
case "klik":
_local2 = new Buttonklik();
break;
};
if (muteBGM == false){
_local2.play(0, 1, new SoundTransform(soundSFX));
};
}
public function swapShip(_arg1:Number, _arg2:Number):void{
var _local3:*;
var _local4:*;
for (_local4 in BUYSHIP) {
if (BUYSHIP[_local4] == _arg1){
_local3 = _local4;
};
};
if (_arg2 != 0){
BUYSHIP[_local3] = _arg2;
} else {
BUYSHIP.splice(_local3, 1);
};
}
function frame26(){
stop();
SaveGame();
if (mapSound == false){
mapSound = true;
if (soundChannelMain != null){
soundChannelMain.stop();
};
if (muteBGM == false){
sound = new Map();
soundChannelMain = sound.play(0, 99999, new SoundTransform(soundBGM));
};
};
cheatOFF();
}
public function cekStatusShip(_arg1:Number=0):Object{
var _local2:*;
_local2 = {};
switch (_arg1){
case 0:
_local2.range = 0;
_local2.speed = 0;
_local2.minSPEED = 0;
_local2.maxSPEED = 0;
_local2.MAXjumCannon = 0;
_local2.MAXHP = 0;
_local2.CanonDamage = 0;
_local2.attack = 0;
_local2.MINIMDUELDAMAGE = 0;
_local2.MAXCREW = 0;
_local2.efekKe = 0;
break;
case 1:
_local2.range = 10;
_local2.speed = 5;
_local2.minSPEED = 100;
_local2.maxSPEED = 300;
_local2.MAXjumCannon = 4;
_local2.MAXHP = 100;
_local2.CanonDamage = 15;
_local2.attack = 15;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 50;
_local2.efekKe = 1;
break;
case 2:
_local2.range = 20;
_local2.speed = 5;
_local2.minSPEED = 75;
_local2.maxSPEED = 200;
_local2.MAXjumCannon = 4;
_local2.MAXHP = 75;
_local2.CanonDamage = 10;
_local2.attack = 15;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 50;
_local2.efekKe = 1;
break;
case 3:
_local2.range = 12;
_local2.speed = 5;
_local2.minSPEED = 100;
_local2.maxSPEED = 300;
_local2.MAXjumCannon = 4;
_local2.MAXHP = 150;
_local2.CanonDamage = 15;
_local2.attack = 20;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 75;
_local2.efekKe = 1;
break;
case 4:
_local2.range = 10;
_local2.speed = 5;
_local2.minSPEED = 100;
_local2.maxSPEED = 350;
_local2.MAXjumCannon = 4;
_local2.MAXHP = 175;
_local2.CanonDamage = 25;
_local2.attack = 15;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 75;
_local2.efekKe = 1;
break;
case 5:
_local2.range = 12;
_local2.speed = 5;
_local2.minSPEED = 100;
_local2.maxSPEED = 275;
_local2.MAXjumCannon = 6;
_local2.MAXHP = 200;
_local2.CanonDamage = 20;
_local2.attack = 20;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 75;
_local2.efekKe = 1;
break;
case 6:
_local2.range = 16;
_local2.speed = 4;
_local2.minSPEED = 70;
_local2.maxSPEED = 150;
_local2.MAXjumCannon = 6;
_local2.MAXHP = 300;
_local2.CanonDamage = 30;
_local2.attack = 30;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 125;
_local2.efekKe = 3;
break;
case 7:
_local2.range = 20;
_local2.speed = 4;
_local2.minSPEED = 100;
_local2.maxSPEED = 200;
_local2.MAXjumCannon = 6;
_local2.MAXHP = 250;
_local2.CanonDamage = 15;
_local2.attack = 25;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 150;
_local2.efekKe = 3;
break;
case 8:
_local2.range = 25;
_local2.speed = 4;
_local2.minSPEED = 125;
_local2.maxSPEED = 250;
_local2.MAXjumCannon = 6;
_local2.MAXHP = 250;
_local2.CanonDamage = 25;
_local2.attack = 25;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 175;
_local2.efekKe = 3;
break;
case 9:
_local2.range = 20;
_local2.speed = 4;
_local2.minSPEED = 150;
_local2.maxSPEED = 350;
_local2.MAXjumCannon = 8;
_local2.MAXHP = 275;
_local2.CanonDamage = 25;
_local2.attack = 25;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 150;
_local2.efekKe = 3;
break;
case 10:
_local2.range = 25;
_local2.speed = 3;
_local2.minSPEED = 100;
_local2.maxSPEED = 250;
_local2.MAXjumCannon = 8;
_local2.MAXHP = 350;
_local2.CanonDamage = 30;
_local2.attack = 20;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 250;
_local2.efekKe = 3;
break;
case 11:
_local2.range = 15;
_local2.speed = 3;
_local2.minSPEED = 70;
_local2.maxSPEED = 250;
_local2.MAXjumCannon = 10;
_local2.MAXHP = 250;
_local2.CanonDamage = 15;
_local2.attack = 50;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 350;
_local2.efekKe = 3;
break;
case 12:
_local2.range = 25;
_local2.speed = 3;
_local2.minSPEED = 150;
_local2.maxSPEED = 275;
_local2.MAXjumCannon = 8;
_local2.MAXHP = 400;
_local2.CanonDamage = 45;
_local2.attack = 35;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 275;
_local2.efekKe = 3;
break;
case 13:
_local2.range = 35;
_local2.speed = 3;
_local2.minSPEED = 100;
_local2.maxSPEED = 250;
_local2.MAXjumCannon = 10;
_local2.MAXHP = 550;
_local2.CanonDamage = 40;
_local2.attack = 50;
_local2.MINIMDUELDAMAGE = 25;
_local2.MAXCREW = 500;
_local2.efekKe = 3;
break;
};
return (_local2);
}
public function cekACHI():void{
var _local1:Boolean;
var _local2:Number;
var _local3:*;
_local1 = false;
if (AchiDesShip10 == false){
if (ENEMYSHIPDESTROY >= 10){
AchiDesShip10 = true;
_local1 = true;
};
};
if (AchiDesShip20 == false){
if (ENEMYSHIPDESTROY >= 20){
AchiDesShip20 = true;
_local1 = true;
};
};
_local2 = 0;
for (_local3 in STAGEPERFECT) {
if (STAGEPERFECT[_local3] == 1){
_local2++;
};
};
if (AchiPerf3 == false){
if (_local2 >= 3){
AchiPerf3 = true;
_local1 = true;
};
};
if (AchiPerf7 == false){
if (_local2 >= 7){
AchiPerf7 = true;
_local1 = true;
};
};
if (AchiPerfAll == false){
if (_local2 >= 15){
AchiPerfAll = true;
_local1 = true;
};
};
if (_local1 == true){
warnachi.play();
};
}
function frame1(){
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
preloader.logogp.addEventListener(MouseEvent.CLICK, logoclick2);
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
temp = new ContextMenuItem("Small Farm Studio");
temp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikfarm);
customContextMenu.customItems.push(temp);
contextMenu = customContextMenu;
stage.showDefaultContextMenu = false;
if (loaderInfo.url.substring(0, 4) != "file"){
Security.allowDomain("*");
Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml");
variables2 = new URLVariables();
variables2.id = "pirateconflict";
variables2.ui = loaderInfo.url;
request2 = new URLRequest("http://track.g-bot.net/track.php");
request2.method = "POST";
request2.data = variables2;
loader2 = new URLLoader();
loader2.load(request2);
};
theCHEAT = 0;
theCOUNT = 0;
}
public function changeShipModel(_arg1:Number, _arg2:Number):void{
switch (_arg1){
case 1:
SHIP1.MODEL = _arg2;
SHIP1.Name = shipName(SHIP1.MODEL);
SHIP1.Status = cekStatusShip(SHIP1.MODEL);
break;
case 2:
SHIP2.MODEL = _arg2;
SHIP2.Name = shipName(SHIP2.MODEL);
SHIP2.Status = cekStatusShip(SHIP2.MODEL);
break;
case 3:
SHIP3.MODEL = _arg2;
SHIP3.Name = shipName(SHIP3.MODEL);
SHIP3.Status = cekStatusShip(SHIP3.MODEL);
break;
};
}
public function moveCursor(_arg1:MouseEvent):void{
MOUSE.visible = true;
MOUSE.x = mouseX;
MOUSE.y = mouseY;
}
public function cekSkillCapt(_arg1:Number=0):String{
var _local2:*;
switch (_arg1){
case 0:
_local2 = "NONE";
break;
case 1:
_local2 = "\"HARD BOARD\"";
break;
case 2:
_local2 = "\"LOOTMASTER\"";
break;
case 3:
_local2 = "\"DUELMASTER\"";
break;
case 4:
_local2 = "\"MINES\"";
break;
case 5:
_local2 = "\"RAGE\"";
break;
case 6:
_local2 = "\"DECOY\"";
break;
case 7:
_local2 = "\"RIDE THE WIND\"";
break;
case 8:
_local2 = "\"REGENERATE\"";
break;
case 9:
_local2 = "\"GHOST SHIP\"";
break;
case 10:
_local2 = "\"INVULNERABLE\"";
break;
case 11:
_local2 = "";
break;
};
return (_local2);
}
public function captName(_arg1:Number=0):String{
var _local2:*;
switch (_arg1){
case 0:
_local2 = "NONE";
break;
case 1:
_local2 = "Calico Jack";
break;
case 2:
_local2 = "Benito de Soto";
break;
case 3:
_local2 = "John Nutt";
break;
case 4:
_local2 = "Lawrence Prince";
break;
case 5:
_local2 = "Nathaniel Butler";
break;
case 6:
_local2 = "Thomas Paine";
break;
case 7:
_local2 = "Edward England";
break;
case 8:
_local2 = "Barbarossa";
break;
case 9:
_local2 = "Mary de Belleville";
break;
case 10:
_local2 = "Long John Silver";
break;
};
return (_local2);
}
public function StopDrag(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, StopDrag);
main.stopDrag();
}
public function cekBounty(_arg1:Number=0):Number{
var _local2:*;
_local2 = Math.round((cekCostShip(_arg1) * 0.25));
return (_local2);
}
function frame34(){
stop();
sortCAPTSHIP();
}
public function addShip(_arg1:Number):void{
BUYSHIP.push(_arg1);
}
function frame38(){
stop();
sortCAPTSHIP();
}
function frame30(){
stop();
sortCAPTSHIP();
}
function frame2(){
gotoAndStop("splashpirate");
STAGE = 1;
autoZOOM = true;
clueShip = false;
playStage = 0;
GOLD = 0;
stageBounty = new Array(0, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000);
CREWcost = 5;
dock1 = false;
tavern1 = false;
harbor1 = false;
mapSound = false;
SHIP1 = {};
SHIP1.MODEL = 3;
SHIP1.CAPT = 1;
SHIP1.Name = shipName(SHIP1.MODEL);
SHIP1.Status = cekStatusShip(SHIP1.MODEL);
SHIP1.CaptName = captName(SHIP1.CAPT);
SHIP1.CaptSkill = cekSkillCapt(SHIP1.CAPT);
SHIP1.CREW = SHIP1.Status.MAXCREW;
SHIP2 = {};
SHIP2.MODEL = 0;
SHIP2.CAPT = 0;
SHIP2.CREW = 0;
SHIP2.Name = shipName(SHIP2.MODEL);
SHIP2.Status = cekStatusShip(SHIP2.MODEL);
SHIP2.CaptName = captName(SHIP2.CAPT);
SHIP2.CaptSkill = cekSkillCapt(SHIP2.CAPT);
SHIP3 = {};
SHIP3.MODEL = 0;
SHIP3.CAPT = 0;
SHIP3.CREW = 0;
SHIP3.Name = shipName(SHIP3.MODEL);
SHIP3.Status = cekStatusShip(SHIP3.MODEL);
SHIP3.CaptName = captName(SHIP3.CAPT);
SHIP3.CaptSkill = cekSkillCapt(SHIP3.CAPT);
BUYSHIP = new Array();
BUYCAPT = new Array();
SHOPSHIP = new Array();
SHOPCAPT = new Array();
ALLCREW = 0;
ENEMYSHIPDESTROY = 0;
STAGEPERFECT = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AchiDesShip10 = false;
AchiDesShip20 = false;
AchiPerf3 = false;
AchiPerf7 = false;
AchiPerfAll = false;
AchiCalmArea2 = false;
AchiMines5 = false;
AchiVileMurder = false;
SHOPSHIP.push(1);
SHOPSHIP.push(2);
SHOPSHIP.push(4);
SHOPSHIP.push(5);
SHOPSHIP.push(6);
SHOPSHIP.push(7);
SHOPSHIP.push(8);
SHOPSHIP.push(9);
SHOPSHIP.push(10);
SHOPSHIP.push(11);
SHOPSHIP.push(12);
SHOPSHIP.push(13);
SHOPCAPT.push(2);
SHOPCAPT.push(3);
SHOPCAPT.push(4);
SHOPCAPT.push(5);
SHOPCAPT.push(6);
SHOPCAPT.push(7);
SHOPCAPT.push(8);
SHOPCAPT.push(9);
SHOPCAPT.push(10);
so = SharedObject.getLocal("mm2");
soundSFX = 1;
soundBGM = 1;
muteSFX = false;
muteBGM = false;
}
public function CHEAT():void{
STAGE = 16;
GOLD = 1000000;
cheatOFF();
gotoAndStop("map");
}
public function logoclick(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.smallfarmstudio.com");
navigateToURL(_local2, "_blank");
}
public function changeSoundSFX(_arg1:Number):void{
_arg1 = (_arg1 / 100);
soundSFX = _arg1;
}
function frame43(){
stop();
main.bg.addEventListener(MouseEvent.MOUSE_DOWN, goDrag);
stintro.mouseEnabled = false;
stintro.mouseChildren = false;
winlose.mouseEnabled = false;
winlose.mouseChildren = false;
spend.mouseEnabled = false;
if (soundChannelMain != null){
soundChannelMain.stop();
};
mapSound = false;
if (muteBGM == false){
sound = new Ingame();
soundChannelMain = sound.play(0, 99999, new SoundTransform(soundBGM));
};
}
public function releaseKey(_arg1:KeyboardEvent):void{
var _local2:uint;
_local2 = _arg1.keyCode;
switch (_local2){
case keyT:
if (theCHEAT == 0){
theCOUNT = 24;
theCHEAT = 1;
};
break;
case keyA:
if ((((theCHEAT == 1)) && ((theCOUNT >= 0)))){
theCOUNT = 24;
theCHEAT = 2;
};
break;
case keyU:
if ((((theCHEAT == 2)) && ((theCOUNT >= 0)))){
theCOUNT = 24;
theCHEAT = 3;
};
break;
case keyF:
if ((((theCHEAT == 3)) && ((theCOUNT >= 0)))){
theCOUNT = 24;
theCHEAT = 4;
};
break;
case keyI:
if ((((theCHEAT == 4)) && ((theCOUNT >= 0)))){
theCOUNT = 24;
theCHEAT = 5;
};
break;
case keyK:
if ((((theCHEAT == 5)) && ((theCOUNT >= 0)))){
CHEAT();
};
break;
};
}
public function shipName(_arg1:Number=0):String{
var _local2:*;
switch (_arg1){
case 0:
_local2 = "NONE";
break;
case 1:
_local2 = "Fancy";
break;
case 2:
_local2 = "Calypso's Thunder";
break;
case 3:
_local2 = "Killer's Hangman";
break;
case 4:
_local2 = "Neptune's Hate";
break;
case 5:
_local2 = "The Cry of the Ocean";
break;
case 6:
_local2 = "Pirate's Plunder";
break;
case 7:
_local2 = "Going Merry";
break;
case 8:
_local2 = "The Evil Howl";
break;
case 9:
_local2 = "Posideon's Cry";
break;
case 10:
_local2 = "Thousand Sunny";
break;
case 11:
_local2 = "The Black Lightning";
break;
case 12:
_local2 = "The Foul Hoard of Hell";
break;
case 13:
_local2 = "The Vile Murderer";
break;
};
return (_local2);
}
function frame42(){
gotoAndStop("main");
}
public function crewFully():Number{
var _local1:Number;
_local1 = 0;
if (SHIP1.MODEL != 0){
_local1 = (_local1 + (SHIP1.Status.MAXCREW - SHIP1.CREW));
};
if (SHIP2.MODEL != 0){
_local1 = (_local1 + (SHIP2.Status.MAXCREW - SHIP2.CREW));
};
if (SHIP3.MODEL != 0){
_local1 = (_local1 + (SHIP3.Status.MAXCREW - SHIP3.CREW));
};
_local1 = (ALLCREW - _local1);
return (_local1);
}
public function cekCostShip(_arg1:Number):Number{
var _local2:*;
switch (_arg1){
case 1:
_local2 = 800;
break;
case 2:
_local2 = 1000;
break;
case 3:
_local2 = 1200;
break;
case 4:
_local2 = 1500;
break;
case 5:
_local2 = 2000;
break;
case 6:
_local2 = 2500;
break;
case 7:
_local2 = 2800;
break;
case 8:
_local2 = 3200;
break;
case 9:
_local2 = 5000;
break;
case 10:
_local2 = 7500;
break;
case 11:
_local2 = 10500;
break;
case 12:
_local2 = 20000;
break;
case 13:
_local2 = 50000;
break;
};
return (_local2);
}
public function logoclick2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamepirate.com");
navigateToURL(_local2, "_blank");
}
public function pressKey(_arg1:KeyboardEvent):void{
keyPressed = _arg1.keyCode;
switch (keyPressed){
case keyT:
if (theCHEAT == 0){
};
break;
case keyA:
if (theCHEAT == 1){
} else {
theCHEAT = 0;
};
break;
case keyU:
if (theCHEAT == 2){
} else {
theCHEAT = 0;
};
break;
case keyF:
if (theCHEAT == 3){
} else {
theCHEAT = 0;
};
break;
case keyI:
if (theCHEAT == 4){
} else {
theCHEAT = 0;
};
break;
case keyK:
if (theCHEAT == 5){
} else {
theCHEAT = 0;
};
break;
default:
theCHEAT = 0;
};
}
public function getAchi(_arg1:Number=0):void{
var _local2:Boolean;
_local2 = false;
switch (_arg1){
case 1:
if (AchiCalmArea2 == false){
AchiCalmArea2 = true;
_local2 = true;
};
break;
case 2:
if (AchiMines5 == false){
AchiMines5 = true;
_local2 = true;
};
break;
case 3:
if (AchiVileMurder == false){
AchiVileMurder = true;
_local2 = true;
};
break;
};
if (_local2 == true){
warnachi.play();
};
}
public function addCapt(_arg1:Number):void{
BUYCAPT.push(_arg1);
}
public function changeShipCapt(_arg1:Number, _arg2:Number):void{
switch (_arg1){
case 1:
SHIP1.CAPT = _arg2;
SHIP1.CaptName = captName(SHIP1.CAPT);
SHIP1.CaptSkill = cekSkillCapt(SHIP1.CAPT);
break;
case 2:
SHIP2.CAPT = _arg2;
SHIP2.CaptName = captName(SHIP2.CAPT);
SHIP2.CaptSkill = cekSkillCapt(SHIP2.CAPT);
break;
case 3:
SHIP3.CAPT = _arg2;
SHIP3.CaptName = captName(SHIP3.CAPT);
SHIP3.CaptSkill = cekSkillCapt(SHIP3.CAPT);
break;
};
}
public function swapCapt(_arg1:Number, _arg2:Number):void{
var _local3:*;
var _local4:*;
for (_local4 in BUYCAPT) {
if (BUYCAPT[_local4] == _arg1){
_local3 = _local4;
};
};
if (_arg2 != 0){
BUYCAPT[_local3] = _arg2;
} else {
BUYCAPT.splice(_local3, 1);
};
}
public function SaveGame():void{
so.data.dock1 = dock1;
so.data.tavern1 = tavern1;
so.data.harbor1 = harbor1;
so.data.SHIP1 = SHIP1;
so.data.SHIP2 = SHIP2;
so.data.SHIP3 = SHIP3;
so.data.GOLD = GOLD;
so.data.STAGE = STAGE;
so.data.BUYSHIP = BUYSHIP;
so.data.BUYCAPT = BUYCAPT;
so.data.SHOPSHIP = SHOPSHIP;
so.data.SHOPCAPT = SHOPCAPT;
so.data.ALLCREW = ALLCREW;
so.data.ENEMYSHIPDESTROY = ENEMYSHIPDESTROY;
so.data.STAGEPERFECT = STAGEPERFECT;
so.data.AchiDesShip10 = AchiDesShip10;
so.data.AchiDesShip20 = AchiDesShip20;
so.data.AchiPerf3 = AchiPerf3;
so.data.AchiPerf7 = AchiPerf7;
so.data.AchiPerfAll = AchiPerfAll;
so.data.AchiCalmArea2 = AchiCalmArea2;
so.data.AchiMines5 = AchiMines5;
so.data.AchiVileMurder = AchiVileMurder;
so.flush();
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:*;
_local2 = _arg1.target.bytesLoaded;
_local3 = _arg1.target.bytesTotal;
_local4 = (_local2 / _local3);
_local5 = Math.round((_local4 * 100));
preloader.percen.text = (String(_local5) + "%");
if (_local5 == 0){
_local5 = 1;
};
preloader.gotoAndStop(_local5);
}
function frame18(){
stop();
mapSound = false;
if (soundChannelMain != null){
soundChannelMain.stop();
};
if (muteBGM == false){
sound = new MainMenuSound();
soundChannelMain = sound.play(0, 99999, new SoundTransform(soundBGM));
};
cheatON();
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
stage.addEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler);
}
public function changeSound(_arg1:Number):void{
var _local2:SoundTransform;
_arg1 = (_arg1 / 100);
soundBGM = _arg1;
if (muteBGM == false){
_local2 = new SoundTransform(soundBGM);
soundChannelMain.soundTransform = _local2;
} else {
_local2 = new SoundTransform(0);
soundChannelMain.soundTransform = _local2;
};
}
public function cekLockShip(_arg1:Number):Boolean{
var _local2:Boolean;
_local2 = true;
switch (_arg1){
case 1:
if (STAGE >= 1){
_local2 = false;
};
break;
case 2:
if (STAGE >= 2){
_local2 = false;
};
break;
case 3:
if (STAGE >= 1){
_local2 = false;
};
break;
case 4:
if (STAGE >= 3){
_local2 = false;
};
break;
case 5:
if (STAGE >= 4){
_local2 = false;
};
break;
case 6:
if (STAGE >= 5){
_local2 = false;
};
break;
case 7:
if (STAGE >= 6){
_local2 = false;
};
break;
case 8:
if (STAGE >= 9){
_local2 = false;
};
break;
case 9:
if (STAGE >= 10){
_local2 = false;
};
break;
case 10:
if (STAGE >= 11){
_local2 = false;
};
break;
case 11:
if (STAGE >= 12){
_local2 = false;
};
break;
case 12:
if (STAGE >= 13){
_local2 = false;
};
break;
case 13:
if (STAGE >= 16){
_local2 = false;
};
break;
};
return (_local2);
}
public function mousePlay(_arg1:MouseEvent):void{
mousePLAY();
}
public function MuteSoundAll():void{
var _local1:SoundTransform;
muteBGM = !(muteBGM);
if (muteBGM == false){
_local1 = new SoundTransform(soundBGM);
soundChannelMain.soundTransform = _local1;
} else {
_local1 = new SoundTransform(0);
soundChannelMain.soundTransform = _local1;
};
}
public function mousePLAY():void{
MOUSE.pic.gotoAndPlay(2);
}
public function cheatOFF():void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressKey);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseKey);
removeEventListener(Event.ENTER_FRAME, CHOSE);
}
public function ResetGame():void{
STAGE = 1;
GOLD = 0;
dock1 = false;
tavern1 = false;
harbor1 = false;
SHIP1 = {};
SHIP1.MODEL = 3;
SHIP1.CAPT = 1;
SHIP1.Name = shipName(SHIP1.MODEL);
SHIP1.Status = cekStatusShip(SHIP1.MODEL);
SHIP1.CaptName = captName(SHIP1.CAPT);
SHIP1.CaptSkill = cekSkillCapt(SHIP1.CAPT);
SHIP1.CREW = SHIP1.Status.MAXCREW;
SHIP2 = {};
SHIP2.MODEL = 0;
SHIP2.CAPT = 0;
SHIP2.CREW = 0;
SHIP2.Name = shipName(SHIP2.MODEL);
SHIP2.Status = cekStatusShip(SHIP2.MODEL);
SHIP2.CaptName = captName(SHIP2.CAPT);
SHIP2.CaptSkill = cekSkillCapt(SHIP2.CAPT);
SHIP3 = {};
SHIP3.MODEL = 0;
SHIP3.CAPT = 0;
SHIP3.CREW = 0;
SHIP3.Name = shipName(SHIP3.MODEL);
SHIP3.Status = cekStatusShip(SHIP3.MODEL);
SHIP3.CaptName = captName(SHIP3.CAPT);
SHIP3.CaptSkill = cekSkillCapt(SHIP3.CAPT);
BUYSHIP = new Array();
BUYCAPT = new Array();
SHOPSHIP = new Array();
SHOPCAPT = new Array();
ALLCREW = 0;
SHOPSHIP.push(1);
SHOPSHIP.push(2);
SHOPSHIP.push(4);
SHOPSHIP.push(5);
SHOPSHIP.push(6);
SHOPSHIP.push(7);
SHOPSHIP.push(8);
SHOPSHIP.push(9);
SHOPSHIP.push(10);
SHOPSHIP.push(11);
SHOPSHIP.push(12);
SHOPSHIP.push(13);
SHOPCAPT.push(2);
SHOPCAPT.push(3);
SHOPCAPT.push(4);
SHOPCAPT.push(5);
SHOPCAPT.push(6);
SHOPCAPT.push(7);
SHOPCAPT.push(8);
SHOPCAPT.push(9);
SHOPCAPT.push(10);
ENEMYSHIPDESTROY = 0;
STAGEPERFECT = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AchiDesShip10 = false;
AchiDesShip20 = false;
AchiPerf3 = false;
AchiPerf7 = false;
AchiPerfAll = false;
AchiCalmArea2 = false;
AchiMines5 = false;
AchiVileMurder = false;
SaveGame();
}
public function sortCAPTSHIP():void{
BUYCAPT.sort(Array.NUMERIC);
BUYSHIP.sort(Array.NUMERIC);
SHOPCAPT.sort(Array.NUMERIC);
SHOPSHIP.sort(Array.NUMERIC);
}
public function cekCostCapt(_arg1:Number):Number{
var _local2:*;
switch (_arg1){
case 1:
_local2 = 0;
break;
case 2:
_local2 = 4000;
break;
case 3:
_local2 = 5000;
break;
case 4:
_local2 = 2000;
break;
case 5:
_local2 = 3500;
break;
case 6:
_local2 = 3500;
break;
case 7:
_local2 = 2500;
break;
case 8:
_local2 = 3000;
break;
case 9:
_local2 = 4500;
break;
case 10:
_local2 = 4500;
break;
};
return (_local2);
}
public function shipBlaBla(_arg1:Number=0):String{
var _local2:*;
switch (_arg1){
case 0:
_local2 = "NONE";
break;
case 1:
_local2 = "Fancy\nType : Small";
break;
case 2:
_local2 = "Calypso's Thunder\nType : Small";
break;
case 3:
_local2 = "Killer's Hangman\nType : Small";
break;
case 4:
_local2 = "Neptune's Hate\nType : Small";
break;
case 5:
_local2 = "The Cry of the Ocean\nType : Small";
break;
case 6:
_local2 = "Pirate's Plunder\nType : Medium";
break;
case 7:
_local2 = "Going Merry\nType : Medium";
break;
case 8:
_local2 = "The Evil Howl\nType : Medium";
break;
case 9:
_local2 = "Posideon's Cry\nType : Medium";
break;
case 10:
_local2 = "Thousand Sunny\nType : Big";
break;
case 11:
_local2 = "The Black Lightning\nType : Big";
break;
case 12:
_local2 = "The Foul Hoard of Hell\nType : Big";
break;
case 13:
_local2 = "The Vile Murderer\nType : Big";
break;
};
return (_local2);
}
public function mouseLeaveHandler(_arg1:Event):void{
MOUSE.visible = false;
}
public function cheatON():void{
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressKey);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseKey);
addEventListener(Event.ENTER_FRAME, CHOSE);
}
}
}//package pirateconflictv1_fla
Section 51
//medium1_83 (pirateconflictv1_fla.medium1_83)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class medium1_83 extends MovieClip {
public function medium1_83(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 52
//medium2_86 (pirateconflictv1_fla.medium2_86)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class medium2_86 extends MovieClip {
public function medium2_86(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 53
//medium3_89 (pirateconflictv1_fla.medium3_89)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class medium3_89 extends MovieClip {
public function medium3_89(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 54
//medium4_92 (pirateconflictv1_fla.medium4_92)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class medium4_92 extends MovieClip {
public function medium4_92(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 55
//mines_45 (pirateconflictv1_fla.mines_45)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class mines_45 extends MovieClip {
public function mines_45(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
stop();
}
}
}//package pirateconflictv1_fla
Section 56
//Minimap_263 (pirateconflictv1_fla.Minimap_263)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Minimap_263 extends MovieClip {
public var bg:MovieClip;
public function Minimap_263(){
addFrameScript(0, frame1);
}
function frame1(){
}
public function addMINI(_arg1:String, _arg2:MovieClip=null):void{
var _local3:*;
var _local4:DisplayObject;
var _local5:Number;
switch (_arg1){
case "enemy":
_local3 = new MiniA();
break;
case "player":
_local3 = new MiniB();
break;
};
_local3.Target = _arg2;
_local4 = getChildByName("bg");
_local5 = getChildIndex(_local4);
addChildAt(_local3, (_local5 + 1));
}
}
}//package pirateconflictv1_fla
Section 57
//minus_265 (pirateconflictv1_fla.minus_265)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class minus_265 extends MovieClip {
public function minus_265(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 58
//mouse_139 (pirateconflictv1_fla.mouse_139)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class mouse_139 extends MovieClip {
public var pic:MovieClip;
}
}//package pirateconflictv1_fla
Section 59
//mousemuter_140 (pirateconflictv1_fla.mousemuter_140)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class mousemuter_140 extends MovieClip {
public function mousemuter_140(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndPlay(2);
}
}
}//package pirateconflictv1_fla
Section 60
//Opening_143 (pirateconflictv1_fla.Opening_143)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Opening_143 extends MovieClip {
public var skipbtn:MovieClip;
public var par;
public function Opening_143(){
addFrameScript(0, frame1, 724, frame725);
}
function frame725(){
stop();
par.trans.goToScreen("map");
}
function frame1(){
par = this.parent;
skipbtn.addEventListener(MouseEvent.CLICK, SKIP);
skipbtn.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
skipbtn.addEventListener(MouseEvent.MOUSE_OUT, par.mousePlay);
}
public function SKIP(_arg1:MouseEvent):void{
gotoAndStop("end");
}
}
}//package pirateconflictv1_fla
Section 61
//Opt_277 (pirateconflictv1_fla.Opt_277)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Opt_277 extends MovieClip {
public var closebtn:MovieClip;
public var addqual:MovieClip;
public var qual:TextField;
public var par;
public var subqual:MovieClip;
public var auto:MovieClip;
public function Opt_277(){
addFrameScript(0, frame1, 5, frame6);
}
public function closeOUT(_arg1:MouseEvent):void{
var _local2:*;
par.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.alpha = 0;
}
function frame6(){
stop();
par = this.parent;
closebtn.addEventListener(MouseEvent.CLICK, goHide);
subqual.addEventListener(MouseEvent.CLICK, subQUAL);
addqual.addEventListener(MouseEvent.CLICK, addQUAL);
closebtn.addEventListener(MouseEvent.MOUSE_OVER, closeOVER);
closebtn.alpha = 0;
closebtn.addEventListener(MouseEvent.MOUSE_OUT, closeOUT);
subqual.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
subqual.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
addqual.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
addqual.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
auto.addEventListener(MouseEvent.CLICK, AUTOZ);
auto.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
auto.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
auto.xt.visible = par.autoZOOM;
}
public function goHide(_arg1:MouseEvent):void{
play();
}
function frame1(){
stop();
}
public function addQUAL(_arg1:MouseEvent):void{
if (stage.quality == "LOW"){
stage.quality = "MEDIUM";
} else {
if (stage.quality == "MEDIUM"){
stage.quality = "HIGH";
} else {
if (stage.quality == "HIGH"){
stage.quality = "LOW";
};
};
};
qual.text = stage.quality;
}
public function AUTOZ(_arg1:MouseEvent):void{
par.autoZOOM = !(par.autoZOOM);
auto.xt.visible = par.autoZOOM;
}
public function subQUAL(_arg1:MouseEvent):void{
if (stage.quality == "LOW"){
stage.quality = "HIGH";
} else {
if (stage.quality == "MEDIUM"){
stage.quality = "LOW";
} else {
if (stage.quality == "HIGH"){
stage.quality = "MEDIUM";
};
};
};
qual.text = stage.quality;
}
public function closeOVER(_arg1:MouseEvent):void{
var _local2:*;
par.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.alpha = 0.2;
}
}
}//package pirateconflictv1_fla
Section 62
//option_261 (pirateconflictv1_fla.option_261)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class option_261 extends MovieClip {
public function option_261(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 63
//Panel_259 (pirateconflictv1_fla.Panel_259)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Panel_259 extends MovieClip {
public var soun:MovieClip;
public var zoomin:MovieClip;
public var mini:MovieClip;
public var warn:TextField;
public var par;
public var zoomout:MovieClip;
public var opt:MovieClip;
public var go:MovieClip;
public function Panel_259(){
addFrameScript(0, frame1);
}
public function stopANIM(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
_local2.gotoAndStop(1);
par.mouseSTOP();
warn.text = "";
}
function frame1(){
go.addEventListener(MouseEvent.ROLL_OUT, stopANIM);
go.addEventListener(MouseEvent.ROLL_OVER, goANIM);
opt.addEventListener(MouseEvent.ROLL_OUT, stopANIM);
opt.addEventListener(MouseEvent.ROLL_OVER, goANIM);
soun.addEventListener(MouseEvent.ROLL_OUT, stopANIM);
soun.addEventListener(MouseEvent.ROLL_OVER, goANIM);
zoomout.addEventListener(MouseEvent.ROLL_OUT, stopANIM);
zoomout.addEventListener(MouseEvent.ROLL_OVER, goANIM);
zoomin.addEventListener(MouseEvent.ROLL_OUT, stopANIM);
zoomin.addEventListener(MouseEvent.ROLL_OVER, goANIM);
par = this.parent;
mouseEnabled = false;
warn.text = "";
warn.mouseEnabled = false;
mini.mouseEnabled = false;
}
public function goANIM(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mousePLAY();
if (_local2.name == "go"){
warn.text = "End Turn";
_local2.play();
};
if (_local2.name == "opt"){
warn.text = "Concede";
_local2.play();
};
if (_local2.name == "soun"){
warn.text = "Option";
};
if ((((_local2.name == "zoomout")) || ((_local2.name == "zoomin")))){
_local2.play();
};
}
}
}//package pirateconflictv1_fla
Section 64
//papanpanelmenu1_120 (pirateconflictv1_fla.papanpanelmenu1_120)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class papanpanelmenu1_120 extends MovieClip {
public var btncre:SimpleButton;
public var modePLAY:Number;
public var menu:MovieClip;
public var btnplay:SimpleButton;
public var btncont:SimpleButton;
public var par;
public var btnmore:SimpleButton;
public var logogp:SimpleButton;
public function papanpanelmenu1_120(){
addFrameScript(36, frame37, 70, frame71);
}
function frame71(){
if (modePLAY == 1){
par.parent.ResetGame();
par.parent.gotoAndStop("opening");
};
if (modePLAY == 2){
par.parent.LoadGame();
par.parent.trans.goToScreen("map");
};
}
public function CONT(_arg1:MouseEvent):void{
modePLAY = 2;
par.parent.playVoice("klik");
par.title.gotoAndPlay("end");
play();
}
public function PLAY(_arg1:MouseEvent):void{
modePLAY = 1;
par.parent.playVoice("klik");
par.title.gotoAndPlay("end");
play();
}
public function CRED(_arg1:MouseEvent):void{
par.parent.playVoice("klik");
par.parent.credit.play();
}
public function MORE(_arg1:MouseEvent):void{
var _local2:URLRequest;
par.parent.playVoice("klik");
_local2 = new URLRequest("http://www.gamepirate.com");
navigateToURL(_local2, "_blank");
}
function frame37(){
stop();
par = this.parent;
menu.btnplay.addEventListener(MouseEvent.CLICK, PLAY);
menu.btncre.addEventListener(MouseEvent.CLICK, CRED);
menu.btnmore.addEventListener(MouseEvent.CLICK, MORE);
menu.btnplay.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menu.btnplay.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menu.btncre.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menu.btncre.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menu.btnmore.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menu.btnmore.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
menu.logogp.addEventListener(MouseEvent.CLICK, par.parent.logoclick2);
modePLAY = 0;
if (((!((par.parent.so.data.STAGE == null))) && ((par.parent.so.data.STAGE > 1)))){
menu.btncont.enabled = true;
menu.btncont.alpha = 1;
menu.btncont.addEventListener(MouseEvent.CLICK, CONT);
menu.btncont.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
menu.btncont.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
} else {
menu.btncont.enabled = false;
menu.btncont.alpha = 0.5;
};
}
}
}//package pirateconflictv1_fla
Section 65
//perang_268 (pirateconflictv1_fla.perang_268)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class perang_268 extends MovieClip {
public var bar:MovieClip;
public var duel1:Number;
public var skipbtn:MovieClip;
public var capt2:Number;
public var duel2:Number;
public var par;
public var capt1:Number;
public var damage1:Number;
public var damage2:Number;
public var crew2:Number;
public var crew1:Number;
public function perang_268(){
addFrameScript(0, frame1, 1, frame2, 20, frame21, 50, frame51, 52, frame53, 54, frame55, 85, frame86, 87, frame88, 89, frame90, 114, frame115, 116, frame117, 118, frame119, 150, frame151, 226, frame227);
}
function frame151(){
if ((crew1 - Math.round(((damage2 * 3) / 3))) > 0){
bar.hp1.text = String((crew1 - Math.round(((damage2 * 3) / 3))));
} else {
bar.hp1.text = String(0);
};
if ((crew2 - Math.round(((damage1 * 3) / 3))) > 0){
bar.hp2.text = String((crew2 - Math.round(((damage1 * 3) / 3))));
} else {
bar.hp2.text = String(0);
};
par.CALC();
}
public function skipDuel(_arg1:MouseEvent):void{
gotoAndPlay("ending");
}
function frame86(){
changeRed();
}
function frame88(){
if ((crew1 - Math.round(((damage2 * 2) / 3))) > 0){
bar.hp1.text = String((crew1 - Math.round(((damage2 * 2) / 3))));
} else {
bar.hp1.text = String(0);
gotoAndPlay("ending");
};
if ((crew2 - Math.round(((damage1 * 2) / 3))) > 0){
bar.hp2.text = String((crew2 - Math.round(((damage1 * 2) / 3))));
} else {
bar.hp2.text = String(0);
gotoAndPlay("ending");
};
}
function frame90(){
changeWhite();
}
function frame227(){
stop();
par.STOP();
}
function frame1(){
stop();
par = this.parent;
}
public function changeWhite():void{
var _local1:TextFormat;
_local1 = new TextFormat();
_local1.color = 0xFFFFFF;
bar.hp1.setTextFormat(_local1);
bar.hp2.setTextFormat(_local1);
}
function frame2(){
par.lagiAnimasi = true;
}
function frame117(){
if ((crew1 - Math.round(((damage2 * 3) / 3))) > 0){
bar.hp1.text = String((crew1 - Math.round(((damage2 * 3) / 3))));
} else {
bar.hp1.text = String(0);
gotoAndPlay("ending");
};
if ((crew2 - Math.round(((damage1 * 3) / 3))) > 0){
bar.hp2.text = String((crew2 - Math.round(((damage1 * 3) / 3))));
} else {
bar.hp2.text = String(0);
gotoAndPlay("ending");
};
}
function frame115(){
changeRed();
}
function frame21(){
bar.hp1.text = String(crew1);
bar.hp2.text = String(crew2);
bar.pice.gotoAndStop(capt1);
bar.picee.gotoAndStop(capt2);
if (duel1 > 1){
bar.t1.visible = true;
} else {
bar.t1.visible = false;
};
if (duel2 > 1){
bar.t2.visible = true;
} else {
bar.t2.visible = false;
};
skipbtn.addEventListener(MouseEvent.CLICK, skipDuel);
}
function frame119(){
changeWhite();
}
public function changeRed():void{
var _local1:TextFormat;
_local1 = new TextFormat();
_local1.color = 0xFF0000;
bar.hp1.setTextFormat(_local1);
bar.hp2.setTextFormat(_local1);
par.parent.playVoice("sword");
}
function frame51(){
changeRed();
}
function frame55(){
changeWhite();
}
function frame53(){
if ((crew1 - Math.round(((damage2 * 1) / 3))) > 0){
bar.hp1.text = String((crew1 - Math.round(((damage2 * 1) / 3))));
} else {
bar.hp1.text = String(0);
gotoAndPlay("ending");
};
if ((crew2 - Math.round(((damage1 * 1) / 3))) > 0){
bar.hp2.text = String((crew2 - Math.round(((damage1 * 1) / 3))));
} else {
bar.hp2.text = String(0);
gotoAndPlay("ending");
};
}
}
}//package pirateconflictv1_fla
Section 66
//PicCapt_221 (pirateconflictv1_fla.PicCapt_221)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class PicCapt_221 extends MovieClip {
public function PicCapt_221(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 67
//PicCapt2_256 (pirateconflictv1_fla.PicCapt2_256)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class PicCapt2_256 extends MovieClip {
public function PicCapt2_256(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 68
//PicShip_204 (pirateconflictv1_fla.PicShip_204)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class PicShip_204 extends MovieClip {
public var pic:MovieClip;
public function PicShip_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 69
//PictCaptDock_186 (pirateconflictv1_fla.PictCaptDock_186)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class PictCaptDock_186 extends MovieClip {
public function PictCaptDock_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 70
//PictCaptDock2_231 (pirateconflictv1_fla.PictCaptDock2_231)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class PictCaptDock2_231 extends MovieClip {
public function PictCaptDock2_231(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 71
//plus_264 (pirateconflictv1_fla.plus_264)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class plus_264 extends MovieClip {
public function plus_264(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 72
//Pointer_248 (pirateconflictv1_fla.Pointer_248)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Pointer_248 extends MovieClip {
public var isShown:Boolean;
public var reloadSkill:Number;
public var thePic:Array;
public var pic:MovieClip;
public var reloadRepair:Number;
public var theSkill:Number;
public var reloadAnchor:Number;
public var pic2:MovieClip;
public var pic3:MovieClip;
public var pic1:MovieClip;
public function Pointer_248(){
addFrameScript(0, frame1);
}
public function showAll(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:*;
reloadAnchor = _arg1;
reloadRepair = _arg2;
reloadSkill = _arg3;
if (isShown == false){
isShown = true;
reArrange();
for (_local4 in thePic) {
if (_local4 != 0){
thePic[_local4].visible = true;
thePic[_local4].addEventListener(MouseEvent.MOUSE_UP, klikThis);
};
};
} else {
hideAll();
};
}
function frame1(){
stop();
thePic = new Array();
isShown = false;
thePic.push(pic);
thePic.push(pic1);
thePic.push(pic2);
thePic.push(pic3);
resetPic();
hideAll();
addEventListener(Event.ENTER_FRAME, cekROT);
}
public function klikThis(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget;
_local3 = _local2.currentFrame;
_local2.gotoAndStop(thePic[0].currentFrame);
thePic[0].gotoAndStop(_local3);
}
public function resetPic():void{
pic.gotoAndStop(1);
pic1.gotoAndStop(2);
pic2.gotoAndStop(3);
pic3.gotoAndStop(theSkill);
}
public function cekROT(_arg1:Event):void{
var _local2:*;
for (_local2 in thePic) {
thePic[_local2].rotation = (0 - rotation);
};
}
public function reArrange():void{
var _local1:*;
pic1.gotoAndStop(2);
pic2.gotoAndStop(3);
pic3.gotoAndStop(theSkill);
for (_local1 in thePic) {
if (_local1 != 0){
if (thePic[_local1].currentFrame == thePic[0].currentFrame){
thePic[_local1].gotoAndStop(1);
};
};
};
if (reloadAnchor > 0){
pic1.gotoAndStop(11);
};
if (reloadRepair > 0){
pic2.gotoAndStop(11);
};
if (reloadSkill > 0){
if (pic3.currentFrame != 1){
pic3.gotoAndStop(11);
};
};
}
public function hideAll():void{
var _local1:*;
isShown = false;
reArrange();
for (_local1 in thePic) {
if (_local1 != 0){
thePic[_local1].visible = false;
thePic[_local1].removeEventListener(MouseEvent.MOUSE_UP, klikThis);
};
};
}
}
}//package pirateconflictv1_fla
Section 73
//Preloader_1 (pirateconflictv1_fla.Preloader_1)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Preloader_1 extends MovieClip {
public var percen:TextField;
public var logogp:SimpleButton;
public function Preloader_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 74
//rute_156 (pirateconflictv1_fla.rute_156)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class rute_156 extends MovieClip {
public var path:MovieClip;
public var btn3:MovieClip;
public var btn7:MovieClip;
public var btn2:MovieClip;
public var btn4:MovieClip;
public var btn8:MovieClip;
public var btn6:MovieClip;
public var btn:Array;
public var btn1:MovieClip;
public var btn5:MovieClip;
public var btn9:MovieClip;
public var btn10:MovieClip;
public var btn11:MovieClip;
public var btn14:MovieClip;
public var btn12:MovieClip;
public var btn15:MovieClip;
public var par;
public var btn13:MovieClip;
public function rute_156(){
addFrameScript(0, frame1);
}
public function initBtn():void{
var _local1:*;
btn = new Array();
btn.push(btn1);
btn.push(btn2);
btn.push(btn3);
btn.push(btn4);
btn.push(btn5);
btn.push(btn6);
btn.push(btn7);
btn.push(btn8);
btn.push(btn9);
btn.push(btn10);
btn.push(btn11);
btn.push(btn12);
btn.push(btn13);
btn.push(btn14);
btn.push(btn15);
for (_local1 in btn) {
btn[_local1].visible = false;
btn[_local1].pic.addEventListener(MouseEvent.CLICK, goThis);
btn[_local1].pic.addEventListener(MouseEvent.MOUSE_OVER, overBtn);
btn[_local1].pic.addEventListener(MouseEvent.MOUSE_OUT, outBtn);
};
_local1 = 0;
while (_local1 < par.parent.STAGE) {
if (_local1 < 15){
btn[_local1].gotoAndStop(2);
btn[_local1].visible = true;
};
_local1++;
};
if (par.parent.STAGE <= 15){
btn[(par.parent.STAGE - 1)].gotoAndStop(1);
};
path.gotoAndStop(par.parent.STAGE);
}
public function outBtn(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent.name;
_local3 = Number(_local2.substr(3));
btn[(_local3 - 1)].pic.gotoAndStop(1);
par.hidePopUp();
par.parent.mouseSTOP();
}
function frame1(){
par = this.parent;
btn = new Array();
initBtn();
}
public function goThis(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent.name;
_local3 = Number(_local2.substr(3));
par.goThisTo(_local3);
}
public function overBtn(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent.name;
_local3 = Number(_local2.substr(3));
btn[(_local3 - 1)].pic.gotoAndStop(2);
par.showPopUp(_local3);
par.parent.mousePLAY();
}
}
}//package pirateconflictv1_fla
Section 75
//Scrollwinlose_291 (pirateconflictv1_fla.Scrollwinlose_291)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Scrollwinlose_291 extends MovieClip {
public var bonus:MovieClip;
public var cl:TextField;
public var sl:TextField;
public var lg:TextField;
public var ecl:TextField;
public var par;
public var esl:TextField;
public var warnship:MovieClip;
public function Scrollwinlose_291(){
addFrameScript(23, frame24, 38, frame39);
}
function frame24(){
par = this.parent;
par.par.playVoice("paper");
}
function frame39(){
stop();
cl.text = par.par.main.crewKilled;
ecl.text = par.par.main.crewMurder;
sl.text = par.par.main.shipDestroy;
esl.text = par.par.main.shipDestroyEnemy;
lg.text = par.par.main.GOLD;
par.par.GOLD = (par.par.GOLD + par.par.main.GOLD);
warnship.visible = par.par.clueShip;
par.par.ENEMYSHIPDESTROY = (par.par.ENEMYSHIPDESTROY + par.par.main.shipDestroyEnemy);
if (par.par.clueShip == true){
par.par.clueShip = false;
};
par.par.cekACHI();
bonus.visible = !(par.par.main.cekBonus);
par.callEnd();
}
}
}//package pirateconflictv1_fla
Section 76
//setSailButton_162 (pirateconflictv1_fla.setSailButton_162)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class setSailButton_162 extends MovieClip {
public function setSailButton_162(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay(2);
}
}
}//package pirateconflictv1_fla
Section 77
//setSailButton_262 (pirateconflictv1_fla.setSailButton_262)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class setSailButton_262 extends MovieClip {
public function setSailButton_262(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 78
//ShipIconDock_209 (pirateconflictv1_fla.ShipIconDock_209)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class ShipIconDock_209 extends MovieClip {
public function ShipIconDock_209(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 79
//shipyard_152 (pirateconflictv1_fla.shipyard_152)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class shipyard_152 extends MovieClip {
public function shipyard_152(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay(2);
}
}
}//package pirateconflictv1_fla
Section 80
//shopButton_194 (pirateconflictv1_fla.shopButton_194)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class shopButton_194 extends MovieClip {
public function shopButton_194(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay(2);
}
}
}//package pirateconflictv1_fla
Section 81
//small1_55 (pirateconflictv1_fla.small1_55)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class small1_55 extends MovieClip {
public function small1_55(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 82
//small2_58 (pirateconflictv1_fla.small2_58)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class small2_58 extends MovieClip {
public function small2_58(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 83
//small3_74 (pirateconflictv1_fla.small3_74)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class small3_74 extends MovieClip {
public function small3_74(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 84
//small4_77 (pirateconflictv1_fla.small4_77)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class small4_77 extends MovieClip {
public function small4_77(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 85
//small5_80 (pirateconflictv1_fla.small5_80)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class small5_80 extends MovieClip {
public function small5_80(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package pirateconflictv1_fla
Section 86
//splasha_115 (pirateconflictv1_fla.splasha_115)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class splasha_115 extends MovieClip {
public var par;
public function splasha_115(){
addFrameScript(0, frame1, 103, frame104);
}
function frame1(){
addEventListener(MouseEvent.CLICK, clickMore);
}
function frame104(){
stop();
par = this.parent;
par.gotoAndStop("mainmenu");
}
public function clickMore(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.smallfarmstudio.com");
navigateToURL(_local2, "_blank");
}
}
}//package pirateconflictv1_fla
Section 87
//StageIntro_274 (pirateconflictv1_fla.StageIntro_274)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class StageIntro_274 extends MovieClip {
public var pic:MovieClip;
public var par;
public function StageIntro_274(){
addFrameScript(0, frame1, 79, frame80);
}
function frame80(){
par.main.PAUSE = false;
if (par.playStage == 8){
par.targets8.visible = true;
};
if (par.STAGE == 1){
par.tutor.visible = true;
};
}
function frame1(){
stop();
par = this.parent;
}
public function dispStage(_arg1:Number):void{
par.main.PAUSE = true;
switch (_arg1){
case 1:
pic.head.text = "South East Sea";
pic.area.text = "Blue sea";
break;
case 2:
pic.head.text = "South East Sea";
pic.area.text = "Rock harbor";
break;
case 3:
pic.head.text = "South East Sea";
pic.area.text = "Pirate bay";
break;
case 4:
pic.head.text = "Midle Ocean";
pic.area.text = "Red sea";
break;
case 5:
pic.head.text = "Midle Ocean";
pic.area.text = "Stone harbor";
break;
case 6:
pic.head.text = "Midle Ocean";
pic.area.text = "Red depths";
break;
case 7:
pic.head.text = "Calm Realm";
pic.area.text = "Bone reef";
break;
case 8:
pic.head.text = "Calm Realm";
pic.area.text = "Treasure trove";
break;
case 9:
pic.head.text = "Calm Realm";
pic.area.text = "Sand haven";
break;
case 10:
pic.head.text = "Glacier Sea";
pic.area.text = "Pearl bay";
break;
case 11:
pic.head.text = "Glacier Sea";
pic.area.text = "Pearl reef";
break;
case 12:
pic.head.text = "Glacier Sea";
pic.area.text = "Pearl heaven";
break;
case 13:
pic.head.text = "Dark Realm";
pic.area.text = "Blue depths";
break;
case 14:
pic.head.text = "Dark Realm";
pic.area.text = "Shark bay";
break;
case 15:
pic.head.text = "Dark Realm";
pic.area.text = "Shark ridge";
break;
};
play();
}
}
}//package pirateconflictv1_fla
Section 88
//Stageintrocomp_275 (pirateconflictv1_fla.Stageintrocomp_275)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Stageintrocomp_275 extends MovieClip {
public var area:TextField;
public var head:TextField;
}
}//package pirateconflictv1_fla
Section 89
//Symbol1_119 (pirateconflictv1_fla.Symbol1_119)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Symbol1_119 extends MovieClip {
public function Symbol1_119(){
addFrameScript(134, frame135, 179, frame180);
}
function frame180(){
stop();
}
function frame135(){
gotoAndPlay("loop");
}
}
}//package pirateconflictv1_fla
Section 90
//Symbol3_157 (pirateconflictv1_fla.Symbol3_157)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Symbol3_157 extends MovieClip {
public function Symbol3_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 91
//TargetText_284 (pirateconflictv1_fla.TargetText_284)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
public dynamic class TargetText_284 extends MovieClip {
public function TargetText_284(){
addFrameScript(0, frame1);
}
public function HIDE2(_arg1:MouseEvent):void{
removeEventListener(MouseEvent.CLICK, HIDE2);
addEventListener(MouseEvent.CLICK, HIDE);
}
function frame1(){
addEventListener(MouseEvent.CLICK, HIDE2);
stop();
}
public function HIDE(_arg1:MouseEvent):void{
removeEventListener(MouseEvent.CLICK, HIDE);
addEventListener(MouseEvent.CLICK, HIDE2);
visible = false;
}
}
}//package pirateconflictv1_fla
Section 92
//tavern_150 (pirateconflictv1_fla.tavern_150)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class tavern_150 extends MovieClip {
public function tavern_150(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay(2);
}
}
}//package pirateconflictv1_fla
Section 93
//tavern_177 (pirateconflictv1_fla.tavern_177)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class tavern_177 extends MovieClip {
public var lea:MovieClip;
public var ent:MovieClip;
public var out:MovieClip;
public var setharb:MovieClip;
public var diag:MovieClip;
public var crewmenu:MovieClip;
public var setsail:MovieClip;
public var par;
public var leave:Boolean;
public var npc:MovieClip;
public var goWHERE:String;
public function tavern_177(){
addFrameScript(0, frame1, 29, frame30, 35, frame36, 43, frame44, 115, frame116, 130, frame131);
}
public function teksOUT(_arg1:MouseEvent):void{
var _local2:*;
par.mouseSTOP();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0;
}
public function IN(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = false;
par.playVoice("yes2");
}
public function OUT(_arg1:MouseEvent):void{
npc.gotoAndStop(1);
play();
leave = true;
par.playVoice("leave2");
}
public function outHARB(_arg1:MouseEvent):void{
gogo("harbor");
}
public function outSAIL(_arg1:MouseEvent):void{
gogo("dock");
}
public function ooutDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mouseSTOP();
_local2.gotoAndStop(1);
}
function frame1(){
par = this.parent;
stop();
if (par.tavern1 == false){
play();
} else {
gotoAndPlay("enter");
};
}
function frame30(){
leave = false;
}
function frame36(){
stop();
ent.addEventListener(MouseEvent.CLICK, IN);
lea.addEventListener(MouseEvent.CLICK, OUT);
ent.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
ent.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
lea.addEventListener(MouseEvent.MOUSE_OUT, teksOUT);
lea.addEventListener(MouseEvent.MOUSE_OVER, teksOVER);
}
function frame116(){
stop();
out.addEventListener(MouseEvent.CLICK, outDock);
out.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
out.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
out.gotoAndStop(1);
setsail.addEventListener(MouseEvent.CLICK, outSAIL);
setsail.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
setsail.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setsail.gotoAndStop(1);
setharb.addEventListener(MouseEvent.CLICK, outHARB);
setharb.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
setharb.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setharb.gotoAndStop(1);
}
public function outDock(_arg1:MouseEvent):void{
gogo("map");
}
function frame44(){
stop();
if (leave == true){
par.trans.goToScreen("map");
} else {
play();
par.tavern1 = true;
};
}
public function ooverDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mousePLAY();
_local2.play();
}
function frame131(){
stop();
}
public function showText(_arg1:String):void{
if (diag != null){
diag.theText = _arg1;
diag.gotoAndPlay(2);
};
}
public function gogo(_arg1:String):void{
goWHERE = _arg1;
crewmenu.play();
out.visible = false;
setsail.visible = false;
setharb.visible = false;
showText("Don't forget to assign your Captain and Crews at Docks");
play();
par.playVoice("leave2");
}
public function teksOVER(_arg1:MouseEvent):void{
var _local2:*;
par.mousePLAY();
_local2 = _arg1.currentTarget;
_local2.peri.alpha = 0.2;
}
}
}//package pirateconflictv1_fla
Section 94
//Tavernno_182 (pirateconflictv1_fla.Tavernno_182)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Tavernno_182 extends MovieClip {
public var peri:MovieClip;
public function Tavernno_182(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 95
//TavernRecCap_192 (pirateconflictv1_fla.TavernRecCap_192)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class TavernRecCap_192 extends MovieClip {
public var peri:MovieClip;
}
}//package pirateconflictv1_fla
Section 96
//TavernShop_189 (pirateconflictv1_fla.TavernShop_189)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class TavernShop_189 extends MovieClip {
public var skill:TextField;
public var pic:MovieClip;
public var cost:TextField;
public var capt:TextField;
}
}//package pirateconflictv1_fla
Section 97
//Tavernyes_180 (pirateconflictv1_fla.Tavernyes_180)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Tavernyes_180 extends MovieClip {
public var peri:MovieClip;
public function Tavernyes_180(){
addFrameScript(0, frame1);
}
function frame1(){
peri.alpha = 0;
}
}
}//package pirateconflictv1_fla
Section 98
//TestDrive_247 (pirateconflictv1_fla.TestDrive_247)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class TestDrive_247 extends MovieClip {
public var ctr:Number;
public var range;
public var pic:Player;
public var point;
public var area:MovieClip;
public function TestDrive_247(){
addFrameScript(0, frame1);
}
function frame1(){
area.visible = false;
ctr = 0;
}
public function cekRange(_arg1:MovieClip, _arg2:Number=0):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (ctr != _arg2){
area.visible = false;
};
_local3 = 1;
while (_local3 <= range) {
_local5 = new Point(0, (_local3 * -10));
_local5 = localToGlobal(_local5);
if (_arg1.body.hitTestPoint(_local5.x, _local5.y)){
area.visible = true;
ctr = _arg2;
break;
};
_local3++;
};
_local4 = 1;
while (_local4 <= range) {
_local6 = new Point(0, (_local4 * 10));
_local6 = localToGlobal(_local6);
if (_arg1.body.hitTestPoint(_local6.x, _local6.y)){
area.visible = true;
ctr = _arg2;
break;
};
_local4++;
};
}
}
}//package pirateconflictv1_fla
Section 99
//TextDock_223 (pirateconflictv1_fla.TextDock_223)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class TextDock_223 extends MovieClip {
public var hp:TextField;
public var ship:TextField;
public var skill:TextField;
public var crew:TextField;
public var capt:TextField;
}
}//package pirateconflictv1_fla
Section 100
//TextHarbor_212 (pirateconflictv1_fla.TextHarbor_212)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class TextHarbor_212 extends MovieClip {
public var locked:MovieClip;
public var ship:TextField;
public var klas:TextField;
public var pic:MovieClip;
public var cost:TextField;
}
}//package pirateconflictv1_fla
Section 101
//ThePoint_249 (pirateconflictv1_fla.ThePoint_249)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class ThePoint_249 extends MovieClip {
public function ThePoint_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 102
//Transisi_134 (pirateconflictv1_fla.Transisi_134)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Transisi_134 extends MovieClip {
public var par;
public var where:String;
public function Transisi_134(){
addFrameScript(0, frame1, 14, frame15, 19, frame20);
}
function frame15(){
par.playVoice("slam");
}
function frame1(){
stop();
par = this.parent;
}
function frame20(){
par.gotoAndStop(where);
}
public function goToScreen(_arg1:String):void{
where = _arg1;
play();
par.playVoice("rot");
}
}
}//package pirateconflictv1_fla
Section 103
//Tutor_288 (pirateconflictv1_fla.Tutor_288)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Tutor_288 extends MovieClip {
public function Tutor_288(){
addFrameScript(0, frame1);
}
public function Hide(_arg1:MouseEvent):void{
visible = false;
}
function frame1(){
addEventListener(MouseEvent.CLICK, Hide);
}
}
}//package pirateconflictv1_fla
Section 104
//Tween15_203 (pirateconflictv1_fla.Tween15_203)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Tween15_203 extends MovieClip {
public var picship:MovieClip;
}
}//package pirateconflictv1_fla
Section 105
//Tween15_220 (pirateconflictv1_fla.Tween15_220)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Tween15_220 extends MovieClip {
public var ctr1:MovieClip;
public var ctr2:MovieClip;
public var ctr3:MovieClip;
public var btn3:MovieClip;
public var btn2:MovieClip;
public var btn1:MovieClip;
public var text2n:MovieClip;
public var lock2:MovieClip;
public var text1n:MovieClip;
public var lock3:MovieClip;
public var text3n:MovieClip;
public var text3:MovieClip;
public var text2:MovieClip;
public var text1:MovieClip;
public var pic2:MovieClip;
public var pic3:MovieClip;
public var pic1:MovieClip;
}
}//package pirateconflictv1_fla
Section 106
//Tween18_230 (pirateconflictv1_fla.Tween18_230)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween18_230 extends MovieClip {
public var hp:TextField;
public var piccap:MovieClip;
public var crewship:TextField;
public var ship:TextField;
public var attack:TextField;
public var speed:TextField;
public var skill:TextField;
public var klas:TextField;
public var crew:TextField;
public var clobtn:MovieClip;
public var canondam:TextField;
public var addcrew:MovieClip;
public var allcrew:TextField;
public var subcrew:MovieClip;
public var crewrec:TextField;
public var uneqcapt:MovieClip;
public var canon:TextField;
public var mincrew:MovieClip;
public var uneqship:MovieClip;
public var shipselec:MovieClip;
public var maxcrew:MovieClip;
public var picship:MovieClip;
public var crewcan:TextField;
public var captselec:MovieClip;
public var capt:TextField;
}
}//package pirateconflictv1_fla
Section 107
//Tween29_272 (pirateconflictv1_fla.Tween29_272)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween29_272 extends MovieClip {
public var pice:MovieClip;
public var hp1:TextField;
public var hp2:TextField;
public var t2:TextField;
public var t1:TextField;
public var picee:MovieClip;
}
}//package pirateconflictv1_fla
Section 108
//Tween5_125 (pirateconflictv1_fla.Tween5_125)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Tween5_125 extends MovieClip {
public var btncre:SimpleButton;
public var btnplay:SimpleButton;
public var btncont:SimpleButton;
public var btnmore:SimpleButton;
public var logogp:SimpleButton;
}
}//package pirateconflictv1_fla
Section 109
//WarnAchi_141 (pirateconflictv1_fla.WarnAchi_141)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class WarnAchi_141 extends MovieClip {
public function WarnAchi_141(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pirateconflictv1_fla
Section 110
//WarnCrewLost_164 (pirateconflictv1_fla.WarnCrewLost_164)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class WarnCrewLost_164 extends MovieClip {
public var no:MovieClip;
public var yes:MovieClip;
}
}//package pirateconflictv1_fla
Section 111
//Warncrewtext_108 (pirateconflictv1_fla.Warncrewtext_108)
package pirateconflictv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Warncrewtext_108 extends MovieClip {
public var teks:TextField;
}
}//package pirateconflictv1_fla
Section 112
//Winlose_289 (pirateconflictv1_fla.Winlose_289)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Winlose_289 extends MovieClip {
public var rtm:MovieClip;
public var ret:MovieClip;
public var par;
public var logogp:SimpleButton;
public function Winlose_289(){
addFrameScript(0, frame1, 1, frame2, 25, frame26, 26, frame27, 50, frame51);
}
public function endThis(_arg1:MouseEvent):void{
if (par.playStage == 15){
par.trans.goToScreen("ending");
} else {
par.trans.goToScreen("map");
};
stage.removeEventListener(MouseEvent.CLICK, endThis);
}
public function klikrtm(_arg1:MouseEvent):void{
par.trans.goToScreen("map");
}
public function Play(_arg1:String):void{
gotoAndPlay(_arg1);
}
function frame26(){
stop();
par.removeChild(par.main);
}
function frame1(){
stop();
par = this.parent;
mouseChildren = false;
}
function frame2(){
if (par.soundChannelMain != null){
par.soundChannelMain.stop();
};
if (par.muteBGM == false){
par.sound = new Win();
par.soundChannelMain = par.sound.play(0, 1, new SoundTransform(par.soundBGM));
};
}
function frame27(){
if (par.soundChannelMain != null){
par.soundChannelMain.stop();
};
if (par.muteBGM == false){
par.sound = new GameOver();
par.soundChannelMain = par.sound.play(0, 1, new SoundTransform(par.soundBGM));
};
}
public function callEnd():void{
stage.addEventListener(MouseEvent.CLICK, endThis);
}
public function klikret(_arg1:MouseEvent):void{
par.trans.goToScreen("retry");
}
function frame51(){
stop();
mouseChildren = true;
ret.addEventListener(MouseEvent.CLICK, klikret);
ret.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
ret.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
rtm.addEventListener(MouseEvent.CLICK, klikrtm);
rtm.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
rtm.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
logogp.addEventListener(MouseEvent.CLICK, par.logoclick2);
par.removeChild(par.main);
}
}
}//package pirateconflictv1_fla
Section 113
//Winmate_258 (pirateconflictv1_fla.Winmate_258)
package pirateconflictv1_fla {
import flash.display.*;
public dynamic class Winmate_258 extends MovieClip {
public var body:MovieClip;
}
}//package pirateconflictv1_fla
Section 114
//volume_279 (pirateconflictv1_fla.volume_279)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class volume_279 extends MovieClip {
public var bar:MovieClip;
public var Value:Number;
public var par;
public var cors:MovieClip;
public function volume_279(){
addFrameScript(0, frame1);
}
function frame1(){
cors.addEventListener(MouseEvent.MOUSE_DOWN, doThis);
Value = 0;
par = this.parent;
stop();
cors.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
cors.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
}
public function cekThat(_arg1:MouseEvent):void{
Value = Math.round(Math.abs((cors.y - 40)));
par.parent.changeSound(Value);
bar.height = (10 + Value);
}
public function doThis(_arg1:MouseEvent):void{
if (par.parent.main.PAUSE == false){
stage.addEventListener(MouseEvent.MOUSE_UP, doThat);
stage.addEventListener(MouseEvent.MOUSE_MOVE, cekThat);
cors.startDrag(false, new Rectangle(-20, 40, 0, -100));
};
}
public function doThat(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, doThat);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, cekThat);
cors.stopDrag();
}
}
}//package pirateconflictv1_fla
Section 115
//volumeSfx_282 (pirateconflictv1_fla.volumeSfx_282)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class volumeSfx_282 extends MovieClip {
public var bar:MovieClip;
public var Value:Number;
public var par;
public var cors:MovieClip;
public function volumeSfx_282(){
addFrameScript(0, frame1);
}
function frame1(){
cors.addEventListener(MouseEvent.MOUSE_DOWN, doThis);
Value = 0;
par = this.parent;
stop();
cors.addEventListener(MouseEvent.MOUSE_OVER, par.parent.mousePlay);
cors.addEventListener(MouseEvent.MOUSE_OUT, par.parent.mouseStop);
}
public function cekThat(_arg1:MouseEvent):void{
Value = Math.round(Math.abs((cors.y - 40)));
par.parent.changeSoundSFX(Value);
bar.height = (10 + Value);
}
public function doThis(_arg1:MouseEvent):void{
if (par.parent.main.PAUSE == false){
stage.addEventListener(MouseEvent.MOUSE_UP, doThat);
stage.addEventListener(MouseEvent.MOUSE_MOVE, cekThat);
cors.startDrag(false, new Rectangle(-20, 40, 0, -100));
};
}
public function doThat(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, doThat);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, cekThat);
cors.stopDrag();
}
}
}//package pirateconflictv1_fla
Section 116
//WorldMap_146 (pirateconflictv1_fla.WorldMap_146)
package pirateconflictv1_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class WorldMap_146 extends MovieClip {
public var goldt:TextField;
public var path:MovieClip;
public var pope:MovieClip;
public var settave:MovieClip;
public var setharb:MovieClip;
public var setsail:MovieClip;
public var warncrewlost:MovieClip;
public var par;
public var auto:MovieClip;
public var sign:worldmapSign;
public var logogp:SimpleButton;
public var goWHERE:String;
public function WorldMap_146(){
addFrameScript(0, frame1);
}
public function notYet(_arg1:MouseEvent):void{
warncrewlost.visible = false;
}
public function goPlay(_arg1:MouseEvent):void{
par.trans.goToScreen("main");
}
public function setTAVE(_arg1:MouseEvent):void{
gogo("tavern");
}
public function BTM(_arg1:MouseEvent):void{
par.playVoice("klik");
par.trans.goToScreen("mainmenu");
}
public function ooutDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
_local2.gotoAndStop(1);
par.mouseSTOP();
}
public function setHARB(_arg1:MouseEvent):void{
gogo("harbor");
}
function frame1(){
stop();
par = this.parent;
setsail.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setsail.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
settave.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
settave.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
setharb.addEventListener(MouseEvent.MOUSE_OUT, ooutDock);
setharb.addEventListener(MouseEvent.MOUSE_OVER, ooverDock);
logogp.addEventListener(MouseEvent.CLICK, par.logoclick2);
logogp.visible = false;
if (par.STAGE > 3){
logogp.visible = true;
};
goldt.text = (String(par.GOLD) + " G");
sign.btm.addEventListener(MouseEvent.CLICK, BTM);
sign.achi.addEventListener(MouseEvent.CLICK, ACHI);
sign.btm.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
sign.btm.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
sign.achi.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
sign.achi.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
setsail.gotoAndStop(1);
settave.gotoAndStop(1);
setharb.gotoAndStop(1);
setsail.addEventListener(MouseEvent.CLICK, setDock);
settave.addEventListener(MouseEvent.CLICK, setTAVE);
setharb.addEventListener(MouseEvent.CLICK, setHARB);
warncrewlost.visible = false;
warncrewlost.yes.addEventListener(MouseEvent.CLICK, goPlay);
warncrewlost.no.addEventListener(MouseEvent.CLICK, notYet);
warncrewlost.yes.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
warncrewlost.yes.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
warncrewlost.no.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
warncrewlost.no.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
pope.visible = false;
auto.addEventListener(MouseEvent.CLICK, AUTOZ);
auto.addEventListener(MouseEvent.MOUSE_OUT, par.mouseStop);
auto.addEventListener(MouseEvent.MOUSE_OVER, par.mousePlay);
auto.xt.visible = par.autoZOOM;
}
public function AUTOZ(_arg1:MouseEvent):void{
par.autoZOOM = !(par.autoZOOM);
auto.xt.visible = par.autoZOOM;
}
public function hidePopUp():void{
pope.visible = false;
}
public function setDock(_arg1:MouseEvent):void{
gogo("dock");
}
public function ACHI(_arg1:MouseEvent):void{
par.playVoice("klik");
par.achi.play();
}
public function goThisTo(_arg1:Number):void{
par.playStage = _arg1;
par.playVoice("klik");
if (par.ALLCREW <= 0){
par.trans.goToScreen("main");
} else {
warncrewlost.visible = true;
};
}
public function ooverDock(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
par.mousePLAY();
_local2.play();
}
public function showPopUp(_arg1:Number):void{
pope.visible = true;
pope.perf.visible = false;
if (par.STAGEPERFECT[_arg1] == 1){
pope.perf.visible = true;
};
switch (_arg1){
case 1:
pope.area.text = "Blue sea";
pope.desc.text = "Fancy";
break;
case 2:
pope.area.text = "Rock harbor";
pope.desc.text = "Fancy x2";
break;
case 3:
pope.area.text = "Pirate bay";
pope.desc.text = "Killer's Hangman";
break;
case 4:
pope.area.text = "Red sea";
pope.desc.text = "Killer's Hangman\nCalypso's Thunder";
break;
case 5:
pope.area.text = "Stone harbor";
pope.desc.text = "Neptune's Hate\nPirate's Plunder";
break;
case 6:
pope.area.text = "Red depths";
pope.desc.text = "Neptune's Hate\nPirate's Plunder x2";
break;
case 7:
pope.area.text = "Bone reef";
pope.desc.text = "Neptune's Hate\nThe Cry of the Ocean\nPirate's Plunder\nGoing Merry";
break;
case 8:
pope.area.text = "Treasure trove";
pope.desc.text = "The Evil Howl\nGoing Merry x2\nNeptune's Hate x8";
break;
case 9:
pope.area.text = "Sand haven";
pope.desc.text = "The Evil Howl x2\nThousand Sunny";
break;
case 10:
pope.area.text = "Pearl bay";
pope.desc.text = "The Evil Howl\nThousand Sunny\nGoing Merry";
break;
case 11:
pope.area.text = "Pearl reef";
pope.desc.text = "The Evil Howl x2\nThousand Sunny x2";
break;
case 12:
pope.area.text = "Pearl heaven";
pope.desc.text = "The Evil Howl x2\nPosideon's Cry\nThousand Sunny\nThe Black Lightning";
break;
case 13:
pope.area.text = "Blue depths";
pope.desc.text = "The Evil Howl x2\nPosideon's Cry x2\nThe Black Lightning\nThe Foul Hoard of Hell";
break;
case 14:
pope.area.text = "Shark bay";
pope.desc.text = "The Evil Howl\nPosideon's Cry x2\nThe Black Lightning x2\nThe Foul Hoard of Hell";
break;
case 15:
pope.area.text = "Shark ridge";
pope.desc.text = "The Evil Howl x2\nPosideon's Cry x2\nThe Foul Hoard of Hell x3\nThe Vile Murderer";
break;
};
}
public function gogo(_arg1:String):void{
par.playVoice("klik");
par.trans.goToScreen(_arg1);
}
}
}//package pirateconflictv1_fla
Section 117
//Anchor (Anchor)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Anchor extends MovieClip {
public var Target;
public function Anchor(){
addFrameScript(0, frame1);
}
public function goShow(_arg1:Event):void{
var _local2:*;
_local2 = this.parent;
x = Target.x;
y = Target.y;
if (Target.ANCHOR == false){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
if (Target.isDEAD){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
}
public function FollowThis(_arg1:MovieClip):void{
Target = _arg1;
addEventListener(Event.ENTER_FRAME, goShow);
}
function frame1(){
}
}
}//package
Section 118
//BlowMine (BlowMine)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class BlowMine extends MovieClip {
public var par;
public function BlowMine(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 119
//Buttonklik (Buttonklik)
package {
import flash.media.*;
public dynamic class Buttonklik extends Sound {
}
}//package
Section 120
//Buyed (Buyed)
package {
import flash.media.*;
public dynamic class Buyed extends Sound {
}
}//package
Section 121
//Clone (Clone)
package {
import flash.display.*;
public dynamic class Clone extends MovieClip {
public var HP:Number;
public var CREW:Number;
public var pic:Player;
public function Clone(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
HP = 4;
CREW = 1;
}
}
}//package
Section 122
//Cloud1 (Cloud1)
package {
import flash.display.*;
public dynamic class Cloud1 extends MovieClip {
}
}//package
Section 123
//Cloud10 (Cloud10)
package {
import flash.display.*;
public dynamic class Cloud10 extends MovieClip {
}
}//package
Section 124
//Cloud11 (Cloud11)
package {
import flash.display.*;
public dynamic class Cloud11 extends MovieClip {
}
}//package
Section 125
//Cloud12 (Cloud12)
package {
import flash.display.*;
public dynamic class Cloud12 extends MovieClip {
}
}//package
Section 126
//Cloud2 (Cloud2)
package {
import flash.display.*;
public dynamic class Cloud2 extends MovieClip {
}
}//package
Section 127
//Cloud3 (Cloud3)
package {
import flash.display.*;
public dynamic class Cloud3 extends MovieClip {
}
}//package
Section 128
//Cloud4 (Cloud4)
package {
import flash.display.*;
public dynamic class Cloud4 extends MovieClip {
}
}//package
Section 129
//Cloud5 (Cloud5)
package {
import flash.display.*;
public dynamic class Cloud5 extends MovieClip {
}
}//package
Section 130
//Cloud6 (Cloud6)
package {
import flash.display.*;
public dynamic class Cloud6 extends MovieClip {
}
}//package
Section 131
//Cloud7 (Cloud7)
package {
import flash.display.*;
public dynamic class Cloud7 extends MovieClip {
}
}//package
Section 132
//Cloud8 (Cloud8)
package {
import flash.display.*;
public dynamic class Cloud8 extends MovieClip {
}
}//package
Section 133
//Cloud9 (Cloud9)
package {
import flash.display.*;
public dynamic class Cloud9 extends MovieClip {
}
}//package
Section 134
//EfekAir (EfekAir)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EfekAir extends MovieClip {
public var par;
public function EfekAir(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 135
//EfekAir2 (EfekAir2)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EfekAir2 extends MovieClip {
public var par;
public function EfekAir2(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 136
//EfekAir3 (EfekAir3)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EfekAir3 extends MovieClip {
public var par;
public function EfekAir3(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 137
//EfekBlow (EfekBlow)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EfekBlow extends MovieClip {
public var par;
public function EfekBlow(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 138
//EfekHit (EfekHit)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EfekHit extends MovieClip {
public var tempPoint;
public var par;
public function EfekHit(){
addFrameScript(9, frame10, 16, frame17);
}
function frame10(){
par = this.parent;
tempPoint = new Point(-27, 1);
tempPoint = this.localToGlobal(tempPoint);
tempPoint = par.globalToLocal(tempPoint);
par.playEfek("kayu", (tempPoint.x + par.randRange(-3, 3)), (tempPoint.y + par.randRange(-1, 1)), rotation);
}
function frame17(){
stop();
par.removeChild(this);
}
}
}//package
Section 139
//Enemy (Enemy)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy extends Unit {
var skillE:String;// = ""
var patrolCTR:Number;// = 1
public var KetSKill:String;// = ""
var patrolOn:Boolean;// = false
public var pic:MovieClip;
var ENEMY:Array;
public var body:MovieClip;
var consSpeed:Number;
var pointPatrol:Point;
public function Enemy():void{
skillE = "";
patrolOn = false;
patrolCTR = 1;
KetSKill = "";
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, init);
super();
}
override function fireShot(_arg1:Number=0):void{
if (skillE == "rage"){
if ((((reloadSKILL <= 0)) && ((reloadREPAIR <= 0)))){
BERSERK();
};
};
super.fireShot(_arg1);
}
function frame1(){
stop();
}
function init(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, init);
mypic = pic;
mybody = body;
efekKe = 1;
PICCAPT = 11;
standBy();
consSpeed = randRange(-5, 5);
}
public function setSkill(_arg1:Number=0):void{
switch (_arg1){
case 0:
skillE = "";
KetSKill = "";
break;
case 1:
skillE = "rage";
KetSKill = "\"RAGE\"";
break;
case 2:
skillE = "wind";
KetSKill = "\"RIDE THE WIND\"";
break;
case 3:
skillE = "repa";
KetSKill = "\"REGENERATE\"";
break;
case 4:
DUELMASTER();
KetSKill = "\"DUELMASTER\"";
break;
case 5:
skillE = "kamikaze";
KetSKill = "\"KAMIKAZE\"";
break;
};
}
public function setPatrol(_arg1:Array):void{
var _local2:*;
var _local3:*;
ENEMY = new Array();
ENEMY = _arg1;
patrolOn = true;
_local2 = (Math.cos((((this.rotation + 90) * Math.PI) / 180)) * 250);
_local3 = (Math.sin((((this.rotation + 90) * Math.PI) / 180)) * 250);
pointPatrol = new Point((x + _local2), (y + _local3));
}
public function chaseThis(_arg1:MovieClip, _arg2:Number=0):Array{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:Boolean;
var _local11:Number;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:*;
var _local21:*;
_local3 = this.parent;
if (patrolOn == true){
for (_local4 in ENEMY) {
if (ENEMY[_local4] != null){
if ((((ENEMY[_local4].INVIS == false)) && ((INVIS == false)))){
_local5 = Math.round(Math.sqrt((Math.pow((ENEMY[_local4].x - x), 2) + Math.pow((ENEMY[_local4].y - y), 2))));
if (_local5 < 400){
patrolOn = false;
_local3.changeTargetThis(this, ENEMY[_local4]);
};
};
};
};
};
if (patrolOn == false){
if (reloadREPAIR <= 0){
if (_local3.parent.playStage > 2){
if (Math.round(((HP / MAXHP) * 100)) < 60){
REPAIR();
};
};
};
if (skillE == "repa"){
if (reloadSKILL <= 0){
if (Math.round(((HP / MAXHP) * 100)) < 60){
CAPTREPAIR();
};
};
};
_local9 = (maxSPEED * FAST);
_local6 = new Array();
_local6[0] = {x:x, y:y};
_local7 = (Math.cos(((rotation * Math.PI) / 180)) * (_arg2 - 50));
_local8 = (Math.sin(((rotation * Math.PI) / 180)) * (_arg2 - 50));
_local6[1] = {x:(x + _local7), y:(y + _local8)};
_local7 = (Math.cos(((rotation * Math.PI) / 180)) * _arg2);
_local8 = (Math.sin(((rotation * Math.PI) / 180)) * _arg2);
_local6[2] = {x:(x + _local7), y:(y + _local8)};
_local10 = false;
if (_arg1.theClone != null){
_arg1 = _arg1.theClone;
_local10 = true;
};
if (skillE != "kamikaze"){
if (((((!((_arg1 == null))) && ((_arg1.INVIS == false)))) || ((_local10 == true)))){
_local11 = 100;
_local12 = Math.round(Math.sqrt((Math.pow((_arg1.x - x), 2) + Math.pow((_arg1.y - y), 2))));
if (skillE == "wind"){
if (_local12 > (maxSPEED + 100)){
if (reloadSKILL <= 0){
RIDETHEWIND(2);
};
};
};
_local9 = (maxSPEED * FAST);
if (_local12 < _local9){
if (_local12 > 150){
_local9 = (_local12 * FAST);
} else {
_local9 = 150;
};
};
_local7 = (Math.cos((((_arg1.rotation - 45) * Math.PI) / 180)) * _local11);
_local8 = (Math.sin((((_arg1.rotation - 45) * Math.PI) / 180)) * _local11);
_local13 = Math.round(Math.sqrt((Math.pow(((_arg1.x + _local7) - x), 2) + Math.pow(((_arg1.y + _local8) - y), 2))));
_local7 = (Math.cos((((_arg1.rotation + 45) * Math.PI) / 180)) * _local11);
_local8 = (Math.sin((((_arg1.rotation + 45) * Math.PI) / 180)) * _local11);
_local14 = Math.round(Math.sqrt((Math.pow(((_arg1.x + _local7) - x), 2) + Math.pow(((_arg1.y + _local8) - y), 2))));
_local15 = 0;
if (_local13 < _local14){
_local15 = -45;
} else {
_local15 = 45;
};
_local7 = (Math.cos((((_arg1.rotation + _local15) * Math.PI) / 180)) * _local11);
_local8 = (Math.sin((((_arg1.rotation + _local15) * Math.PI) / 180)) * _local11);
_local16 = ((_arg1.x + _local7) - x);
_local17 = ((_arg1.y + _local8) - y);
_local18 = Math.atan2(_local17, _local16);
_local19 = ((_local18 * 180) / Math.PI);
_local20 = Math.abs((_local19 - rotation));
if (_local20 > 45){
if (_local20 >= (360 - 45)){
_local19 = (rotation + 45);
} else {
_local19 = (rotation - 45);
};
_local20 = 65;
};
_local21 = ((_local9 + consSpeed) * ((100 - _local20) / 100));
_local7 = (Math.cos(((_local19 * Math.PI) / 180)) * _local21);
_local8 = (Math.sin(((_local19 * Math.PI) / 180)) * _local21);
_local6[3] = {x:(x + _local7), y:(y + _local8)};
return (_local6);
} else {
_local7 = (Math.cos(((rotation * Math.PI) / 180)) * _local9);
_local8 = (Math.sin(((rotation * Math.PI) / 180)) * _local9);
_local6[3] = {x:(x + _local7), y:(y + _local8)};
return (_local6);
};
} else {
_local16 = (_arg1.x - x);
_local17 = (_arg1.y - y);
_local18 = Math.atan2(_local17, _local16);
_local19 = ((_local18 * 180) / Math.PI);
_local20 = Math.abs((_local19 - rotation));
if (_local20 > 45){
if (_local20 >= (360 - 45)){
_local19 = (rotation + 45);
} else {
_local19 = (rotation - 45);
};
_local20 = 65;
};
_local21 = ((_local9 + consSpeed) * ((100 - _local20) / 100));
_local7 = (Math.cos(((_local19 * Math.PI) / 180)) * _local21);
_local8 = (Math.sin(((_local19 * Math.PI) / 180)) * _local21);
_local6[3] = {x:(x + _local7), y:(y + _local8)};
return (_local6);
};
//unresolved jump
};
_local6 = new Array();
_local6[0] = {x:x, y:y};
_local7 = (Math.cos(((rotation * Math.PI) / 180)) * (_arg2 - 50));
_local8 = (Math.sin(((rotation * Math.PI) / 180)) * (_arg2 - 50));
_local6[1] = {x:(x + _local7), y:(y + _local8)};
_local7 = (Math.cos(((rotation * Math.PI) / 180)) * _arg2);
_local8 = (Math.sin(((rotation * Math.PI) / 180)) * _arg2);
_local6[2] = {x:(x + _local7), y:(y + _local8)};
_local9 = (maxSPEED * FAST);
_local16 = (pointPatrol.x - x);
_local17 = (pointPatrol.y - y);
_local18 = Math.atan2(_local17, _local16);
_local19 = ((_local18 * 180) / Math.PI);
_local20 = Math.abs((_local19 - rotation));
if (_local20 > 45){
if (_local20 >= (360 - 45)){
_local19 = (rotation + 45);
} else {
_local19 = (rotation - 45);
};
_local20 = 65;
};
_local21 = ((_local9 + consSpeed) * ((100 - _local20) / 100));
_local7 = (Math.cos(((_local19 * Math.PI) / 180)) * _local21);
_local8 = (Math.sin(((_local19 * Math.PI) / 180)) * _local21);
_local6[3] = {x:(x + _local7), y:(y + _local8)};
return (_local6);
}
override public function Move(_arg1:Number=0, _arg2:Array=null):void{
var _local3:*;
var _local4:Array;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
par = this.parent;
if (isDEAD == false){
if (canMove == true){
if (ANCHOR == false){
thisPath.traverse(this, _arg1, true);
if (ctrEfek >= 3){
ctrEfek = 0;
if (efekKe == 1){
par.playEfek("air", x, y, rotation);
};
if (efekKe == 2){
par.playEfek("air2", x, y, rotation);
};
if (efekKe == 3){
par.playEfek("air3", x, y, rotation);
};
} else {
ctrEfek++;
};
};
if (CLONE == true){
cloneWay = (cloneWay + 0.02);
clonePath.traverse(theClone, cloneWay, true);
} else {
if (theClone != null){
par.removeChild(theClone);
theClone = null;
};
};
if (INVIS == true){
if (mypic.alpha > 0.4){
mypic.alpha = (mypic.alpha - 0.02);
};
par.fog.alpha = 1;
par.fog.x = x;
par.fog.y = y;
par.fog.rotation = rotation;
} else {
if (mypic.alpha < 1){
mypic.alpha = (mypic.alpha + 0.04);
};
};
if (FAST > 1){
_local3 = new BlurFilter(3, 3, 1);
_local4 = new Array();
_local4.push(_local3);
filters = _local4;
if (ctrEfek >= 3){
par.playTrail(this);
};
};
if (y > par.StageHeight){
canMove = false;
isDEAD = true;
};
if (x > par.StageWidth){
canMove = false;
isDEAD = true;
};
if (y < 0){
canMove = false;
isDEAD = true;
};
if (x < 0){
canMove = false;
isDEAD = true;
};
if (MINES == false){
if (_arg2 != null){
for (_local5 in _arg2) {
if ((((_arg2[_local5].INVIS == false)) && ((INVIS == false)))){
if (patrolOn == true){
_local6 = Math.round(Math.sqrt((Math.pow((_arg2[_local5].x - x), 2) + Math.pow((_arg2[_local5].y - y), 2))));
if (_local6 < 400){
patrolOn = false;
par.changeTargetThis(this, _arg2[_local5]);
};
};
if (leftAmmo > 0){
_local7 = 1;
while (_local7 <= range) {
_local8 = new Point(0, (_local7 * -10));
_local8 = localToGlobal(_local8);
if (_arg2[_local5].body.hitTestPoint(_local8.x, _local8.y)){
targetFire = _arg2;
fireShot(1);
break;
};
if (_arg2[_local5].theClone != null){
if (_arg2[_local5].theClone.pic.body.hitTestPoint(_local8.x, _local8.y)){
targetFire = _arg2;
fireShot(1);
break;
};
};
_local7++;
};
};
if (rightAmmo > 0){
_local9 = 1;
while (_local9 <= range) {
_local10 = new Point(0, (_local9 * 10));
_local10 = localToGlobal(_local10);
if (_arg2[_local5].body.hitTestPoint(_local10.x, _local10.y)){
targetFire = _arg2;
fireShot(2);
break;
};
if (_arg2[_local5].theClone != null){
if (_arg2[_local5].theClone.pic.body.hitTestPoint(_local10.x, _local10.y)){
targetFire = _arg2;
fireShot(2);
break;
};
};
_local9++;
};
};
if (mybody.hitTestObject(_arg2[_local5].body)){
canMove = false;
if (skillE != "kamikaze"){
par.DUELTIME(this, _arg2[_local5]);
} else {
_arg2[_local5].DAMAGE((CanonDamage * 20));
isDEAD = true;
par.playEfek("mineblow", x, y, rotation);
par.playEfek("mineblow", (x + randRange(1, 5)), (y + randRange(1, 5)), rotation);
par.playEfek("mineblow", (x - randRange(1, 5)), (y - randRange(1, 5)), rotation);
};
};
};
};
};
} else {
mineShot();
};
};
};
}
}
}//package
Section 140
//FastSound (FastSound)
package {
import flash.media.*;
public dynamic class FastSound extends Sound {
}
}//package
Section 141
//Fire (Fire)
package {
import flash.media.*;
public dynamic class Fire extends Sound {
}
}//package
Section 142
//FixSound (FixSound)
package {
import flash.media.*;
public dynamic class FixSound extends Sound {
}
}//package
Section 143
//GameOver (GameOver)
package {
import flash.media.*;
public dynamic class GameOver extends Sound {
}
}//package
Section 144
//Hit (Hit)
package {
import flash.media.*;
public dynamic class Hit extends Sound {
}
}//package
Section 145
//Indikator (Indikator)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Indikator extends MovieClip {
public var pic:Enemy;
public var target;
public var par;
public function Indikator(){
addFrameScript(0, frame1);
}
function frame1(){
par = this.parent;
visible = false;
mouseEnabled = false;
mouseChildren = false;
}
public function loopMain(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:*;
if (target.isDEAD == false){
_local2 = new Point(target.x, target.y);
_local2 = par.localToGlobal(_local2);
if ((((((((_local2.x < 0)) || ((_local2.y < 0)))) || ((_local2.x > 640)))) || ((_local2.y > 480)))){
visible = true;
} else {
visible = false;
};
if (visible == true){
_local3 = (_local2.x - 320);
_local4 = (_local2.y - 240);
_local5 = Math.atan2(_local4, _local3);
_local6 = ((_local5 * 180) / Math.PI);
rotation = _local6;
_local7 = par.globalToLocal(_local2);
x = _local7.x;
y = _local7.y;
if (_local2.x < 0){
_local7 = new Point(0, 0);
_local7 = par.globalToLocal(_local7);
x = _local7.x;
};
if (_local2.y < 0){
_local7 = new Point(0, 0);
_local7 = par.globalToLocal(_local7);
y = _local7.y;
};
if (_local2.x > 640){
_local7 = new Point(640, 0);
_local7 = par.globalToLocal(_local7);
x = _local7.x;
};
if (_local2.y > 480){
_local7 = new Point(0, 480);
_local7 = par.globalToLocal(_local7);
y = _local7.y;
};
};
} else {
removeEventListener(Event.ENTER_FRAME, loopMain);
par.removeChild(this);
};
}
public function follow(_arg1:MovieClip):void{
target = _arg1;
pic.gotoAndStop(_arg1.currentFrame);
addEventListener(Event.ENTER_FRAME, loopMain);
}
}
}//package
Section 146
//IndikatorPlayer (IndikatorPlayer)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class IndikatorPlayer extends MovieClip {
public var pic:Player;
public var target;
public var par;
public function IndikatorPlayer(){
addFrameScript(0, frame1);
}
function frame1(){
par = this.parent;
visible = false;
mouseEnabled = false;
mouseChildren = false;
}
public function loopMain(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:*;
if (target.isDEAD == false){
_local2 = new Point(target.x, target.y);
_local2 = par.localToGlobal(_local2);
if ((((((((_local2.x < 0)) || ((_local2.y < 0)))) || ((_local2.x > 640)))) || ((_local2.y > 480)))){
visible = true;
} else {
visible = false;
};
if (visible == true){
_local3 = (_local2.x - 320);
_local4 = (_local2.y - 240);
_local5 = Math.atan2(_local4, _local3);
_local6 = ((_local5 * 180) / Math.PI);
rotation = _local6;
_local7 = par.globalToLocal(_local2);
x = _local7.x;
y = _local7.y;
if (_local2.x < 0){
_local7 = new Point(0, 0);
_local7 = par.globalToLocal(_local7);
x = _local7.x;
};
if (_local2.y < 0){
_local7 = new Point(0, 0);
_local7 = par.globalToLocal(_local7);
y = _local7.y;
};
if (_local2.x > 640){
_local7 = new Point(640, 0);
_local7 = par.globalToLocal(_local7);
x = _local7.x;
};
if (_local2.y > 480){
_local7 = new Point(0, 480);
_local7 = par.globalToLocal(_local7);
y = _local7.y;
};
};
} else {
removeEventListener(Event.ENTER_FRAME, loopMain);
par.removeChild(this);
};
}
public function follow(_arg1:MovieClip):void{
target = _arg1;
pic.gotoAndStop(_arg1.currentFrame);
addEventListener(Event.ENTER_FRAME, loopMain);
}
}
}//package
Section 147
//Ingame (Ingame)
package {
import flash.media.*;
public dynamic class Ingame extends Sound {
}
}//package
Section 148
//Invur (Invur)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Invur extends MovieClip {
public var Target;
public function Invur(){
addFrameScript(0, frame1);
}
public function goShow(_arg1:Event):void{
var _local2:*;
_local2 = this.parent;
x = Target.x;
y = Target.y;
if (Target.INVUR <= 0){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
if (Target.isDEAD){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
}
public function FollowThis(_arg1:MovieClip):void{
Target = _arg1;
addEventListener(Event.ENTER_FRAME, goShow);
}
function frame1(){
}
}
}//package
Section 149
//Kayu (Kayu)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Kayu extends MovieClip {
public var ctrframe:Number;
public var par;
public function Kayu(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, fade);
par = this.parent;
ctrframe = 20;
}
public function fade(_arg1:Event):void{
ctrframe--;
if (ctrframe <= 0){
alpha = (alpha - 0.05);
if (alpha <= 0){
removeEventListener(Event.ENTER_FRAME, fade);
par.removeChild(this);
};
};
}
}
}//package
Section 150
//Leave (Leave)
package {
import flash.media.*;
public dynamic class Leave extends Sound {
}
}//package
Section 151
//Leave2 (Leave2)
package {
import flash.media.*;
public dynamic class Leave2 extends Sound {
}
}//package
Section 152
//Leave3 (Leave3)
package {
import flash.media.*;
public dynamic class Leave3 extends Sound {
}
}//package
Section 153
//MainMenuSound (MainMenuSound)
package {
import flash.media.*;
public dynamic class MainMenuSound extends Sound {
}
}//package
Section 154
//Map (Map)
package {
import flash.media.*;
public dynamic class Map extends Sound {
}
}//package
Section 155
//Mine (Mine)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Mine extends MovieClip {
var BLOWN:Boolean;// = false
var damage:Number;
public var pic:MovieClip;
public function Mine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
BLOWN = false;
super();
addFrameScript(0, frame1, 8, frame9);
x = _arg1;
y = _arg2;
rotation = _arg3;
damage = _arg4;
}
public function CEK(_arg1, _arg2):void{
var _local3:*;
var _local4:Boolean;
var _local5:*;
_local3 = this.parent;
_local4 = false;
if (BLOWN == true){
delBulet();
return;
};
_local4 = true;
if (_local4){
if (currentFrame != 1){
for (_local5 in _arg1) {
if (this.hitTestObject(_arg1[_local5].body)){
BLOWN = true;
_arg1[_local5].DAMAGE(damage);
_local3.playEfek("mineblow", x, y, rotation);
return;
};
};
for (_local5 in _arg2) {
if (this.hitTestObject(_arg2[_local5].body)){
BLOWN = true;
_arg2[_local5].DAMAGE(damage);
_local3.BLOWEDMINE();
_local3.playEfek("mineblow", x, y, rotation);
return;
};
};
};
};
}
function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1);
return (_local3);
}
public function goHIDE():void{
if (currentFrame == 1){
pic.play();
play();
};
}
function frame1(){
stop();
}
function frame9(){
stop();
}
function delBulet():void{
var _local1:*;
_local1 = this.parent;
_local1.removeChild(this);
}
}
}//package
Section 156
//MineSound (MineSound)
package {
import flash.media.*;
public dynamic class MineSound extends Sound {
}
}//package
Section 157
//MiniA (MiniA)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MiniA extends MovieClip {
public var par;
public var Target;
public function MiniA(){
addFrameScript(0, frame1);
}
function frame1(){
par = this.parent;
addEventListener(Event.ENTER_FRAME, Folow);
}
public function Folow(_arg1:Event):void{
if (Target != null){
if (Target.isDEAD == false){
y = Math.round((Target.y / 21.3333));
x = Math.round((Target.x / 28.4444));
} else {
visible = false;
};
if (visible == false){
removeEventListener(Event.ENTER_FRAME, Folow);
par.removeChild(this);
};
};
}
}
}//package
Section 158
//MiniB (MiniB)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MiniB extends MovieClip {
public var par;
public var Target;
public function MiniB(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
par = this.parent;
addEventListener(Event.ENTER_FRAME, Folow);
}
function frame9(){
gotoAndPlay(2);
}
public function Folow(_arg1:Event):void{
if (Target != null){
if (Target.isDEAD == false){
y = Math.round((Target.y / 21.3333));
x = Math.round((Target.x / 28.4444));
} else {
visible = false;
};
if (visible == false){
removeEventListener(Event.ENTER_FRAME, Folow);
par.removeChild(this);
};
};
}
}
}//package
Section 159
//Money (Money)
package {
import flash.media.*;
public dynamic class Money extends Sound {
}
}//package
Section 160
//Paper (Paper)
package {
import flash.media.*;
public dynamic class Paper extends Sound {
}
}//package
Section 161
//Path (Path)
package {
public class Path {
var curveToAccuracy:Number;
public var _length:Number;
var _position:Object;
var _segments:Array;
public function Path(_arg1, _arg2){
init(_arg1, _arg2);
}
public function circleCCWTo(_arg1, _arg2, _arg3){
this.circleTo(_arg1, _arg2, _arg3, "CCW");
}
public function draw(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = this._segments;
_local3 = _local2.length;
_arg1.graphics.lineStyle(1, 0);
_local4 = 0;
while (_local4 < _local3) {
switch (_local2[_local4].type){
case "L":
_arg1.graphics.moveTo(_local2[_local4].start._x, _local2[_local4].start._y);
_arg1.graphics.lineTo(_local2[_local4].end._x, _local2[_local4].end._y);
break;
case "C":
if (_local2[_local4].dir == "CW"){
this.mcCircleTo(_arg1, _local2[_local4].o._x, _local2[_local4].o._y, _local2[_local4].a1, _local2[_local4].a2, _local2[_local4].r);
} else {
this.mcCircleTo(_arg1, _local2[_local4].o._x, _local2[_local4].o._y, _local2[_local4].a2, _local2[_local4].a1, _local2[_local4].r);
};
break;
case "B":
_arg1.graphics.moveTo(_local2[_local4].start._x, _local2[_local4].start._y);
_arg1.graphics.curveTo(_local2[_local4].con._x, _local2[_local4].con._y, _local2[_local4].end._x, _local2[_local4].end._y);
break;
};
_local4++;
};
return (this);
}
public function circleTo(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
if (_arg4 == undefined){
_arg4 = "CW";
};
if (_arg3 == undefined){
_arg3 = 0.5;
};
if (_arg3 > 1){
_arg3 = 1;
} else {
if (_arg3 <= 0){
return (this.lineTo(_arg1, _arg2));
};
};
if (_arg4 == "CCW"){
_arg3 = (1 - _arg3);
};
_local5 = {_x:((this._position._x + _arg1) / 2), _y:((this._position._y + _arg2) / 2)};
_local6 = (_arg1 - this._position._x);
_local7 = (_arg2 - this._position._y);
_local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
_local9 = (_local8 / 2);
_local10 = (_local9 / Math.tan((_arg3 * Math.PI)));
_local11 = (_local9 / Math.sin((_arg3 * Math.PI)));
_local12 = (Math.atan2(_local7, _local6) + (Math.PI / 2));
_local5._x = (_local5._x + (Math.cos(_local12) * _local10));
_local5._y = (_local5._y + (Math.sin(_local12) * _local10));
_local13 = Math.atan2((this._position._y - _local5._y), (this._position._x - _local5._x));
_local14 = Math.atan2((_arg2 - _local5._y), (_arg1 - _local5._x));
if (_arg4 == "CW"){
if (_local14 < _local13){
_local14 = (_local14 + (Math.PI * 2));
};
} else {
if (_local13 < _local14){
_local13 = (_local13 + (Math.PI * 2));
};
};
_local8 = (_local11 * Math.abs((_local14 - _local13)));
this._segments[this._segments.length] = {d:_local8, r:_local11, a1:_local13, a2:_local14, o:_local5, dir:_arg4, type:"C"};
this._length = (this._length + _local8);
this._position = {_x:_arg1, _y:_arg2};
return (this);
}
public function moveTo(_arg1, _arg2){
_position = {_x:_arg1, _y:_arg2};
return (this);
}
function clear(){
this.init(0, 0);
}
public function circleCWTo(_arg1, _arg2, _arg3, _arg4){
this.circleTo(_arg1, _arg2, _arg3, _arg4);
}
public function curveTo(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
_local5 = this.divideBezier(this._position._x, this._position._y, _arg1, _arg2, _arg3, _arg4);
this._segments[this._segments.length] = {d:_local5.d, start:this._position, con:{_x:_arg1, _y:_arg2}, end:{_x:_arg3, _y:_arg4}, segs:_local5, type:"B"};
this._length = (this._length + _local5.d);
this._position = {_x:_arg3, _y:_arg4};
return (this);
}
public function traverse(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
if (_arg2 < 0){
_arg2 = 0;
} else {
if (_arg2 > 1){
_arg2 = 1;
};
};
_local4 = (this._length * _arg2);
_local6 = 0;
_local7 = (this._segments.length + 1);
_local8 = 1;
while (_local8 < _local7) {
_local5 = this._segments[(_local8 - 1)];
if ((((_local8 == _local7)) || (((_local6 + _local5.d) >= _local4)))){
break;
};
_local6 = (_local6 + _local5.d);
_local8++;
};
_arg2 = ((_local4 - _local6) / _local5.d);
switch (_local5.type){
case "L":
_local9 = (_local5.end._x - _local5.start._x);
_local10 = (_local5.end._y - _local5.start._y);
_arg1.x = (_local5.start._x + (_local9 * _arg2));
_arg1.y = (_local5.start._y + (_local10 * _arg2));
if (_arg3){
_arg1.rotation = ((Math.atan2(_local10, _local9) * 180) / Math.PI);
};
break;
case "C":
_local11 = _local5.a1;
_local12 = _local5.a2;
_local13 = (_local11 + ((_local12 - _local11) * _arg2));
_arg1.x = (_local5.o._x + (Math.cos(_local13) * _local5.r));
_arg1.y = (_local5.o._y + (Math.sin(_local13) * _local5.r));
if (_arg3){
_arg1.rotation = ((_local5.dir)=="CW") ? (((_local13 * 180) / Math.PI) + 90) : (((_local13 * 180) / Math.PI) - 90);
};
break;
case "B":
this.setInBezier(_arg1, _arg2, _local5.segs, _arg3);
break;
};
return (this);
}
function setInBezier(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
if (_arg2 < 0){
_arg2 = 0;
} else {
if (_arg2 > 1){
_arg2 = 1;
};
};
_local5 = (_arg3.d * _arg2);
_local7 = 0;
_local8 = (_arg3.length + 1);
_local9 = 1;
while (_local9 < _local8) {
_local6 = _arg3[(_local9 - 1)];
if ((((_local9 == _local8)) || (((_local7 + _local6.d) >= _local5)))){
break;
};
_local7 = (_local7 + _local6.d);
_local9++;
};
_arg2 = ((_local5 - _local7) / _local6.d);
_local10 = (_local6.end._x - _local6.start._x);
_local11 = (_local6.end._y - _local6.start._y);
_arg1.x = (_local6.start._x + (_local10 * _arg2));
_arg1.y = (_local6.start._y + (_local11 * _arg2));
if (_arg4){
_arg1.rotation = (((_local6.a.base + (_local6.a.d * _arg2)) * 180) / Math.PI);
};
}
public function lineTo(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = (_arg1 - this._position._x);
_local4 = (_arg2 - this._position._y);
_local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
this._segments[this._segments.length] = {d:_local5, start:this._position, end:{_x:_arg1, _y:_arg2}, type:"L"};
this._length = (this._length + _local5);
this._position = {_x:_arg1, _y:_arg2};
return (this);
}
function init(_arg1, _arg2){
curveToAccuracy = 10;
_segments = [];
_length = 0;
if (arguments.length){
this.moveTo(_arg1, _arg2);
} else {
this.moveTo(0, 0);
};
}
function divideBezier(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:*;
var _local28:*;
var _local29:*;
var _local30:*;
_local17 = [];
_local18 = {_x:_arg1, _y:_arg2};
_local19 = (_arg3 - _arg1);
_local20 = (_arg4 - _arg2);
_local21 = (_arg5 - _arg3);
_local22 = (_arg6 - _arg4);
_local23 = Math.atan2;
_local24 = Math.sqrt;
_local25 = 0;
_local29 = _local23(_local20, _local19);
_local30 = 1;
while (_local30 < this.curveToAccuracy) {
_local7 = (_local30 / this.curveToAccuracy);
_local8 = (_arg1 + (_local19 * _local7));
_local10 = ((_arg3 + (_local21 * _local7)) - _local8);
_local9 = (_arg2 + (_local20 * _local7));
_local11 = ((_arg4 + (_local22 * _local7)) - _local9);
_local14 = (_local8 + (_local10 * _local7));
_local15 = (_local9 + (_local11 * _local7));
_local12 = (_local14 - _local18._x);
_local13 = (_local15 - _local18._y);
_local16 = _local24(((_local12 * _local12) + (_local13 * _local13)));
_local25 = (_local25 + _local16);
_local28 = _local23(_local11, _local10);
_local27 = (_local28 - _local29);
if (_local27 > Math.PI){
_local27 = (_local27 - (Math.PI * 2));
} else {
if (_local27 < -(Math.PI)){
_local27 = (_local27 + (Math.PI * 2));
};
};
_local17[_local17.length] = {d:_local16, start:_local18, end:{_x:_local14, _y:_local15}, a:{base:_local29, d:_local27}};
_local29 = _local28;
_local18 = {_x:_local14, _y:_local15};
_local30++;
};
_local12 = (_arg5 - _local18._x);
_local13 = (_arg6 - _local18._y);
_local16 = _local24(((_local12 * _local12) + (_local13 * _local13)));
_local25 = (_local25 + _local16);
_local28 = _local23(_local22, _local21);
_local17[_local17.length] = {d:_local16, start:_local18, end:{_x:_arg5, _y:_arg6}, a:{base:_local29, d:(_local28 - _local29)}};
_local17.d = _local25;
return (_local17);
}
public function mcCircleTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
_local7 = Math.cos;
_local8 = Math.sin;
_local9 = Math.abs((_arg5 - _arg4));
_local10 = (Math.floor((_local9 / (Math.PI / 4))) + 1);
_local11 = (_local9 / _local10);
_local12 = (_local11 / 2);
_local13 = (_arg6 / _local7(_local12));
_arg1.graphics.moveTo((_arg2 + (_local7(_arg4) * _arg6)), (_arg3 + (_local8(_arg4) * _arg6)));
_local14 = 0;
while (_local14 < _local10) {
_arg5 = (_arg4 + _local12);
_arg4 = (_arg4 + _local11);
_arg1.graphics.curveTo((_arg2 + (_local7(_arg5) * _local13)), (_arg3 + (_local8(_arg5) * _local13)), (_arg2 + (_local7(_arg4) * _arg6)), (_arg3 + (_local8(_arg4) * _arg6)));
_local14++;
};
return (this);
}
}
}//package
Section 162
//Peluru1 (Peluru1)
package {
public class Peluru1 extends Roket {
public function Peluru1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array=null, _arg5:Number=0, _arg6:Number=0, _arg7:Number=50):void{
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
}
}
}//package
Section 163
//Peluru2 (Peluru2)
package {
public class Peluru2 extends Roket {
public function Peluru2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array, _arg5:Number=0, _arg6:Number=0, _arg7:Number=50):void{
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
}
}
}//package
Section 164
//Player (Player)
package {
import flash.display.*;
import flash.events.*;
public class Player extends Unit {
public var pic:MovieClip;
public var body:MovieClip;
public function Player():void{
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, init);
super();
}
function frame1(){
stop();
}
function init(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, init);
mypic = pic;
mybody = body;
efekKe = 2;
standBy();
}
}
}//package
Section 165
//Rage (Rage)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Rage extends MovieClip {
public var Target;
public function Rage(){
addFrameScript(0, frame1);
}
public function goShow(_arg1:Event):void{
var _local2:*;
_local2 = this.parent;
x = Target.x;
y = Target.y;
if (Target.RAGE <= 1){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
if (Target.isDEAD){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
}
public function FollowThis(_arg1:MovieClip):void{
Target = _arg1;
addEventListener(Event.ENTER_FRAME, goShow);
}
function frame1(){
}
}
}//package
Section 166
//Repair (Repair)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Repair extends MovieClip {
public var Target;
public function Repair(){
addFrameScript(0, frame1);
}
public function goShow(_arg1:Event):void{
var _local2:*;
_local2 = this.parent;
x = Target.x;
y = Target.y;
if (Target.RECOVERY == false){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
if (Target.isDEAD){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
}
public function FollowThis(_arg1:MovieClip):void{
var _local2:*;
Target = _arg1;
addEventListener(Event.ENTER_FRAME, goShow);
_local2 = this.parent;
_local2.playSoundEfek("fix");
}
function frame1(){
}
}
}//package
Section 167
//RepairCapt (RepairCapt)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class RepairCapt extends MovieClip {
public var Target;
public function RepairCapt(){
addFrameScript(0, frame1);
}
public function goShow(_arg1:Event):void{
var _local2:*;
_local2 = this.parent;
x = Target.x;
y = Target.y;
if (Target.CAPTRECOVERY == false){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
if (Target.isDEAD){
removeEventListener(Event.ENTER_FRAME, goShow);
_local2.removeChild(this);
};
}
public function FollowThis(_arg1:MovieClip):void{
var _local2:*;
Target = _arg1;
addEventListener(Event.ENTER_FRAME, goShow);
_local2 = this.parent;
_local2.playSoundEfek("fix");
}
function frame1(){
}
}
}//package
Section 168
//Roket (Roket)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Roket extends MovieClip {
var crewChance:Number;
var yf:Number;
var ySpeed:Number;
var speed:Number;
var damage:Number;
var target;
var xSpeed:Number;
var Target;
var lifeTime:Number;
var xf:Number;
public function Roket(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array=null, _arg5:Number=0, _arg6:Number=0, _arg7:Number=50):void{
x = _arg1;
y = _arg2;
xf = _arg1;
yf = _arg2;
lifeTime = _arg7;
speed = 10;
rotation = _arg3;
xSpeed = (Math.cos(((rotation * Math.PI) / 180)) * speed);
ySpeed = (Math.sin(((rotation * Math.PI) / 180)) * speed);
Target = _arg4;
damage = _arg5;
crewChance = _arg6;
}
public function Move():void{
var _local1:Boolean;
var _local2:*;
var _local3:*;
_local1 = false;
if (lifeTime < 0){
delBulet();
return;
};
_local1 = true;
if (_local1){
lifeTime--;
x = (x + xSpeed);
y = (y + ySpeed);
for (_local2 in Target) {
if (this.hitTestObject(Target[_local2].body)){
_local3 = this.parent;
deleteBullet();
Target[_local2].DAMAGE(damage, crewChance);
_local3.playEfek("hit", x, y, rotation);
break;
};
if (Target[_local2].theClone != null){
if (this.hitTestObject(Target[_local2].theClone.pic.body)){
_local3 = this.parent;
deleteBullet();
Target[_local2].theClone.HP = (Target[_local2].theClone.HP - damage);
_local3.playEfek("hit", x, y, rotation);
break;
};
};
};
};
}
function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1);
return (_local3);
}
function delBulet():void{
var _local1:*;
_local1 = this.parent;
_local1.removeChild(this);
}
public function deleteBullet():void{
lifeTime = -1;
}
}
}//package
Section 169
//Ship10Dead (Ship10Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship10Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship10Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 170
//Ship10DeadE (Ship10DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship10DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship10DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 171
//Ship11Dead (Ship11Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship11Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship11Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 172
//Ship11DeadE (Ship11DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship11DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship11DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 173
//Ship12Dead (Ship12Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship12Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship12Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 174
//Ship12DeadE (Ship12DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship12DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship12DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 175
//Ship13Dead (Ship13Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship13Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship13Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 176
//Ship13DeadE (Ship13DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship13DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship13DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 177
//Ship1Dead (Ship1Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship1Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship1Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 178
//Ship1DeadE (Ship1DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship1DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship1DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 179
//Ship2Dead (Ship2Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship2Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship2Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 180
//Ship2DeadE (Ship2DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship2DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship2DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 181
//Ship3Dead (Ship3Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship3Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship3Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 182
//Ship3DeadE (Ship3DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship3DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship3DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 183
//Ship4Dead (Ship4Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship4Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship4Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 184
//Ship4DeadE (Ship4DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship4DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship4DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 185
//Ship5Dead (Ship5Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship5Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship5Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 186
//Ship5DeadE (Ship5DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship5DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship5DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 187
//Ship6Dead (Ship6Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship6Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship6Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 188
//Ship6DeadE (Ship6DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship6DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship6DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 189
//Ship7Dead (Ship7Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship7Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship7Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 190
//Ship7DeadE (Ship7DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship7DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship7DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 191
//Ship8Dead (Ship8Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship8Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship8Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 192
//Ship8DeadE (Ship8DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship8DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship8DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 193
//Ship9Dead (Ship9Dead)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship9Dead extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship9Dead(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 194
//Ship9DeadE (Ship9DeadE)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ship9DeadE extends MovieClip {
public var pic:MovieClip;
public var par;
public function Ship9DeadE(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 6, frame7, 8, frame9, 60, frame61);
}
function frame7(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame1(){
par = this.parent;
}
function frame4(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame9(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame2(){
par.playEfek("hit", (x + par.randRange(-10, 10)), (y + par.randRange(-10, 10)), par.randRange(-180, 180));
}
function frame61(){
stop();
par.removeChild(this);
}
}
}//package
Section 195
//ShipMove (ShipMove)
package {
import flash.media.*;
public dynamic class ShipMove extends Sound {
}
}//package
Section 196
//ShipSink (ShipSink)
package {
import flash.media.*;
public dynamic class ShipSink extends Sound {
}
}//package
Section 197
//Shut (Shut)
package {
import flash.media.*;
public dynamic class Shut extends Sound {
}
}//package
Section 198
//Spin (Spin)
package {
import flash.media.*;
public dynamic class Spin extends Sound {
}
}//package
Section 199
//Spin2 (Spin2)
package {
import flash.media.*;
public dynamic class Spin2 extends Sound {
}
}//package
Section 200
//Sword (Sword)
package {
import flash.media.*;
public dynamic class Sword extends Sound {
}
}//package
Section 201
//TrailEfek (TrailEfek)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class TrailEfek extends MovieClip {
public function TrailEfek(){
addFrameScript(0, frame1);
}
function frame1(){
}
public function goDIE(_arg1:Event){
var _local2:*;
alpha = (alpha - 0.08);
if (alpha <= 0){
removeEventListener(Event.ENTER_FRAME, goDIE);
_local2 = this.parent;
_local2.removeChild(this);
};
}
public function letDie():void{
addEventListener(Event.ENTER_FRAME, goDIE);
}
}
}//package
Section 202
//Unit (Unit)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.filters.*;
public class Unit extends MovieClip {
public var jumCannon:Number;// = 10
public var INVUR:Number;// = 0
public var reloadSKILL:Number;// = 0
var cloneWay:Number;// = 0
public var speed:Number;// = 3
var MINES:Boolean;// = false
public var FAST:Number;// = 1
var mypic:MovieClip;
public var theSkill:Number;// = 1
public var reloadREPAIR:Number;// = 0
public var CAPTRECOVERY:Boolean;// = false
public var isDEAD:Boolean;// = false
var par;
public var MAXCREW:Number;// = 100
public var SKILLDUEL:Number;// = 1
public var ANCHOR:Boolean;// = false
public var INVIS:Boolean;// = false
var efekKe:Number;// = 1
var ctrEfek:Number;// = 10
var mineCTR:Number;
public var flagTabrak:Boolean;// = false
var DUEL:Number;// = 0
public var HP:Number;
public var minSPEED:Number;// = 100
var rightAmmo:Number;// = 0
var clonePath;
public var CASH:Boolean;// = false
public var range:Number;// = 15
public var maxSPEED:Number;// = 200
var CLONE:Boolean;// = false
public var MAXHP:Number;// = 500
public var RAGE:Number;// = 1
var mybody;
public var PICCAPT:Number;// = 0
public var MAXjumCannon:Number;// = 10
var targetFire;
public var CREW:Number;// = 100
public var theClone:MovieClip;
var leftAmmo:Number;// = 0
public var reloadANCHOR:Number;// = 0
public var RECOVERY:Boolean;// = false
public var noShip:Number;// = 1
var MINIMDUELDAMAGE:Number;// = 25
public var canMove:Boolean;// = false
var CanonDamage:Number;// = 15
var thisPath;
public var DEF:Boolean;// = false
public function Unit():void{
thisPath = new Path(x, y);
range = 15;
canMove = false;
ctrEfek = 10;
efekKe = 1;
leftAmmo = 0;
rightAmmo = 0;
speed = 3;
clonePath = new Path(x, y);
cloneWay = 0;
flagTabrak = false;
minSPEED = 100;
maxSPEED = 200;
jumCannon = 10;
MAXjumCannon = 10;
isDEAD = false;
MAXHP = 500;
HP = MAXHP;
CanonDamage = 15;
MINIMDUELDAMAGE = 25;
noShip = 1;
ANCHOR = false;
CREW = 100;
MAXCREW = 100;
INVIS = false;
RAGE = 1;
INVUR = 0;
MINES = false;
CLONE = false;
FAST = 1;
DUEL = 0;
SKILLDUEL = 1;
RECOVERY = false;
CAPTRECOVERY = false;
CASH = false;
DEF = false;
theSkill = 1;
PICCAPT = 0;
reloadSKILL = 0;
reloadREPAIR = 0;
reloadANCHOR = 0;
super();
}
function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1);
return (_local3);
}
public function setKAPAL(_arg1:Object, _arg2:Number, _arg3:Number):void{
range = _arg1.range;
speed = _arg1.speed;
minSPEED = _arg1.minSPEED;
maxSPEED = _arg1.maxSPEED;
MAXjumCannon = _arg1.MAXjumCannon;
MAXHP = _arg1.MAXHP;
CanonDamage = _arg1.CanonDamage;
MINIMDUELDAMAGE = _arg1.attack;
MAXCREW = _arg1.MAXCREW;
efekKe = _arg1.efekKe;
DUEL = _arg1.attack;
CREW = _arg3;
HP = MAXHP;
setCannon();
gotoAndStop(_arg2);
}
function fireShot(_arg1:Number=0):void{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:*;
var _local6:*;
if ((((RECOVERY == false)) && ((INVIS == false)))){
par.playSoundEfek("fire");
if (_arg1 == 1){
leftAmmo--;
};
if (_arg1 == 2){
rightAmmo--;
};
_local4 = 0;
_local5 = (jumCannon / 2);
_local6 = -(_local5);
while (_local6 < _local5) {
if (_arg1 == 1){
_local3 = new Point((_local6 * 3), randRange(-10, -5));
_local3 = this.localToGlobal(_local3);
_local3 = par.globalToLocal(_local3);
_local2 = new Peluru1(_local3.x, _local3.y, ((rotation - 90) + randRange(-5, 5)), targetFire, (CanonDamage * RAGE), (DUEL * RAGE), range);
};
if (_arg1 == 2){
_local3 = new Point((_local6 * 3), randRange(5, 10));
_local3 = this.localToGlobal(_local3);
_local3 = par.globalToLocal(_local3);
_local2 = new Peluru1(_local3.x, _local3.y, ((rotation + 90) + randRange(-5, 5)), targetFire, (CanonDamage * RAGE), (DUEL * RAGE), range);
};
par.addChild(_local2);
if (_local4 <= 0){
par.playEfek("fire", _local2.x, _local2.y, _local2.rotation);
_local4 = 1;
} else {
_local4--;
};
_local6++;
};
};
}
public function CASHON():void{
CASH = true;
}
public function WINDOFF():void{
FAST = 1;
}
public function DUELDAMAGE():Number{
var _local1:*;
_local1 = Math.round(((CREW + ((DUEL / 100) * CREW)) * 0.5));
if (_local1 >= MINIMDUELDAMAGE){
return ((_local1 * SKILLDUEL));
};
return ((MINIMDUELDAMAGE * SKILLDUEL));
}
public function setCAPT(_arg1:Number=0):void{
theSkill = _arg1;
PICCAPT = _arg1;
DUELMASTEROFF();
DEFOFF();
CASHOFF();
if (_arg1 == 1){
theSkill = 11;
DEFON();
};
if (_arg1 == 2){
CASHON();
theSkill = 11;
};
if (_arg1 == 3){
DUELMASTER();
theSkill = 11;
};
}
public function DEFON():void{
DEF = true;
}
public function GOGHOST():void{
reloadSKILL = 3;
INVIS = true;
}
public function setUlang():void{
flagTabrak = false;
}
public function pathFinder(_arg1):void{
INVUR--;
thisPath = new Path(_arg1[0].x, _arg1[0].y);
thisPath.lineTo(_arg1[1].x, _arg1[1].y);
thisPath.curveTo(_arg1[2].x, _arg1[2].y, _arg1[3].x, _arg1[3].y);
}
public function standBy():void{
if (reloadSKILL > 0){
reloadSKILL--;
};
if (reloadREPAIR > 0){
reloadREPAIR--;
};
if (reloadANCHOR > 0){
reloadANCHOR--;
};
canMove = true;
leftAmmo = 1;
rightAmmo = 1;
FAST = 1;
RAGE = 1;
RECOVERY = false;
CAPTRECOVERY = false;
INVIS = false;
ANCHOR = false;
MINES = false;
if (CLONE == true){
theClone.HP--;
if (theClone.HP <= 0){
CLONE = false;
};
};
}
public function PUP():void{
reloadSKILL = 6;
MINES = true;
mineCTR = 0;
}
public function CAPTREPAIR():void{
reloadSKILL = 5;
par = this.parent;
CAPTRECOVERY = true;
par.efekSkill("capt", this);
HP = (HP + 100);
if (HP > MAXHP){
HP = MAXHP;
};
}
public function BERSERK():void{
par = this.parent;
reloadSKILL = 4;
RAGE = 2;
par.efekSkill("rage", this);
}
public function SHADOW():void{
var _local1:*;
var _local2:*;
reloadSKILL = 4;
par = this.parent;
CLONE = true;
theClone = new Clone();
_local1 = Math.cos(((rotation * Math.PI) / 180));
_local2 = Math.sin(((rotation * Math.PI) / 180));
cloneWay = 0;
clonePath = new Path(x, y);
clonePath.lineTo((x + (_local1 * 25)), (y + (_local2 * 25)));
clonePath.curveTo((x + (_local1 * 75)), (y + (_local2 * 25)), (x + (_local1 * 200)), (y + (_local2 * 200)));
theClone.x = x;
theClone.y = y;
theClone.rotation = rotation;
theClone.pic.gotoAndStop(currentFrame);
par.addChild(theClone);
}
public function cekTumpuk(_arg1:Array):Boolean{
var _local2:*;
var _local3:*;
var _local4:*;
filters = [];
if (flagTabrak == false){
for (_local2 in _arg1) {
if (_arg1[_local2] == this){
} else {
if (_arg1[_local2].body.hitTestObject(mybody)){
_local3 = randRange(0, 1);
if (_local3 == 1){
_local4 = -3;
} else {
_local4 = 3;
};
rotation = (rotation + _local4);
x = (x + (Math.cos(((rotation * Math.PI) / 180)) * speed));
y = (y + (Math.sin(((rotation * Math.PI) / 180)) * speed));
flagTabrak = true;
_arg1[_local2].rotation = (_arg1[_local2].rotation - _local4);
_arg1[_local2].x = (_arg1[_local2].x + (Math.cos(((_arg1[_local2].rotation * Math.PI) / 180)) * _arg1[_local2].speed));
_arg1[_local2].y = (_arg1[_local2].y + (Math.sin(((_arg1[_local2].rotation * Math.PI) / 180)) * _arg1[_local2].speed));
_arg1[_local2].flagTabrak = true;
return (true);
};
};
};
};
return (false);
}
public function NOSAIL():void{
reloadANCHOR = 3;
par = this.parent;
ANCHOR = true;
par.efekSkill("anchor", this);
}
public function CASHOFF():void{
CASH = false;
}
public function DUELMASTER():void{
SKILLDUEL = 2;
}
public function DEALDUEL(_arg1):void{
CREW = (CREW - Math.round((_arg1 / SKILLDUEL)));
setCannon();
if (CREW <= 0){
isDEAD = true;
};
CREW = Math.round(CREW);
}
public function SHIELD():void{
reloadSKILL = 4;
par = this.parent;
INVUR = 1;
par.efekSkill("invur", this);
}
public function DAMAGE(_arg1:Number, _arg2:Number=0):void{
var _local3:*;
if (DEF == true){
_arg1 = (_arg1 * 0.8);
};
if (INVUR <= 0){
HP = (HP - _arg1);
if (HP <= 0){
isDEAD = true;
};
HP = Math.round(HP);
par = this.parent;
par.playSoundEfek("hit");
if (randRange(1, 100) <= _arg2){
_local3 = randRange(0, 2);
par.countCrewLost(this, _local3);
DEALDUEL(_local3);
};
};
}
public function DEFOFF():void{
DEF = false;
}
function RepairShip():void{
HP = (HP + Math.ceil((50 * (CREW / MAXCREW))));
if (HP > MAXHP){
HP = MAXHP;
};
}
public function REPAIR():void{
reloadREPAIR = 5;
par = this.parent;
RECOVERY = true;
par.efekSkill("repair", this);
RepairShip();
}
public function DUELMASTEROFF():void{
SKILLDUEL = 1;
}
public function RIDETHEWIND(_arg1:Number=1):void{
FAST = 2;
if (_arg1 == 1){
} else {
reloadSKILL = 3;
};
}
function mineShot():void{
var _local1:*;
var _local2:*;
if ((((RECOVERY == false)) && ((INVIS == false)))){
if (mineCTR > 0){
mineCTR--;
} else {
mineCTR = 10;
_local2 = new Point(-50, 0);
_local2 = this.localToGlobal(_local2);
_local2 = par.globalToLocal(_local2);
_local1 = new Mine(_local2.x, _local2.y, rotation, ((CanonDamage * RAGE) * 5));
_local1.mouseEnabled = false;
par.addChild(_local1);
par.playSoundEfek("mine");
};
};
}
public function Move(_arg1:Number=0, _arg2:Array=null):void{
var _local3:*;
var _local4:Array;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
par = this.parent;
if (isDEAD == false){
if (canMove == true){
if (ANCHOR == false){
thisPath.traverse(this, _arg1, true);
if (ctrEfek >= 3){
ctrEfek = 0;
if (efekKe == 1){
par.playEfek("air", x, y, rotation);
};
if (efekKe == 2){
par.playEfek("air2", x, y, rotation);
};
if (efekKe == 3){
par.playEfek("air3", x, y, rotation);
};
} else {
ctrEfek++;
};
};
if (CLONE == true){
cloneWay = (cloneWay + 0.02);
clonePath.traverse(theClone, cloneWay, true);
} else {
if (theClone != null){
par.removeChild(theClone);
theClone = null;
};
};
if (INVIS == true){
if (mypic.alpha > 0.4){
mypic.alpha = (mypic.alpha - 0.02);
};
par.fog.alpha = 1;
par.fog.x = x;
par.fog.y = y;
par.fog.rotation = rotation;
} else {
if (mypic.alpha < 1){
mypic.alpha = (mypic.alpha + 0.04);
};
};
if (FAST > 1){
_local3 = new BlurFilter(3, 3, 1);
_local4 = new Array();
_local4.push(_local3);
filters = _local4;
if (ctrEfek >= 3){
par.playTrail(this);
};
};
if (y > par.StageHeight){
canMove = false;
isDEAD = true;
};
if (x > par.StageWidth){
canMove = false;
isDEAD = true;
};
if (y < 0){
canMove = false;
isDEAD = true;
};
if (x < 0){
canMove = false;
isDEAD = true;
};
if (MINES == false){
if (_arg2 != null){
for (_local5 in _arg2) {
if ((((_arg2[_local5].INVIS == false)) && ((INVIS == false)))){
if (leftAmmo > 0){
_local6 = 1;
while (_local6 <= range) {
_local7 = new Point(0, (_local6 * -10));
_local7 = localToGlobal(_local7);
if (_arg2[_local5].body.hitTestPoint(_local7.x, _local7.y)){
targetFire = _arg2;
fireShot(1);
break;
};
if (_arg2[_local5].theClone != null){
if (_arg2[_local5].theClone.pic.body.hitTestPoint(_local7.x, _local7.y)){
targetFire = _arg2;
fireShot(1);
break;
};
};
_local6++;
};
};
if (rightAmmo > 0){
_local8 = 1;
while (_local8 <= range) {
_local9 = new Point(0, (_local8 * 10));
_local9 = localToGlobal(_local9);
if (_arg2[_local5].body.hitTestPoint(_local9.x, _local9.y)){
targetFire = _arg2;
fireShot(2);
break;
};
if (_arg2[_local5].theClone != null){
if (_arg2[_local5].theClone.pic.body.hitTestPoint(_local9.x, _local9.y)){
targetFire = _arg2;
fireShot(2);
break;
};
};
_local8++;
};
};
if (mybody.hitTestObject(_arg2[_local5].body)){
canMove = false;
par.DUELTIME(this, _arg2[_local5]);
};
};
};
};
} else {
mineShot();
};
};
};
}
function setCannon():void{
jumCannon = Math.ceil((MAXjumCannon * (CREW / MAXCREW)));
}
}
}//package
Section 203
//WarnCrew (WarnCrew)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class WarnCrew extends MovieClip {
public var target;
public var teks:MovieClip;
public var par;
public function WarnCrew(){
addFrameScript(0, frame1, 32, frame33);
}
public function Show(_arg1:MovieClip, _arg2:Number):void{
target = _arg1;
teks.teks.text = String(_arg2);
addEventListener(Event.ENTER_FRAME, follow);
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame33(){
stop();
par = this.parent;
removeEventListener(Event.ENTER_FRAME, follow);
par.removeChild(this);
}
public function follow(_arg1:Event):void{
x = target.x;
y = target.y;
}
}
}//package
Section 204
//Win (Win)
package {
import flash.media.*;
public dynamic class Win extends Sound {
}
}//package
Section 205
//Voice1 (Voice1)
package {
import flash.media.*;
public dynamic class Voice1 extends Sound {
}
}//package
Section 206
//Voice10 (Voice10)
package {
import flash.media.*;
public dynamic class Voice10 extends Sound {
}
}//package
Section 207
//Voice2 (Voice2)
package {
import flash.media.*;
public dynamic class Voice2 extends Sound {
}
}//package
Section 208
//Voice3 (Voice3)
package {
import flash.media.*;
public dynamic class Voice3 extends Sound {
}
}//package
Section 209
//Voice4 (Voice4)
package {
import flash.media.*;
public dynamic class Voice4 extends Sound {
}
}//package
Section 210
//Voice5 (Voice5)
package {
import flash.media.*;
public dynamic class Voice5 extends Sound {
}
}//package
Section 211
//Voice6 (Voice6)
package {
import flash.media.*;
public dynamic class Voice6 extends Sound {
}
}//package
Section 212
//Voice7 (Voice7)
package {
import flash.media.*;
public dynamic class Voice7 extends Sound {
}
}//package
Section 213
//Voice8 (Voice8)
package {
import flash.media.*;
public dynamic class Voice8 extends Sound {
}
}//package
Section 214
//Voice9 (Voice9)
package {
import flash.media.*;
public dynamic class Voice9 extends Sound {
}
}//package
Section 215
//worldmapSign (worldmapSign)
package {
import flash.display.*;
public dynamic class worldmapSign extends MovieClip {
public var btm:SimpleButton;
public var achi:SimpleButton;
}
}//package
Section 216
//Yes (Yes)
package {
import flash.media.*;
public dynamic class Yes extends Sound {
}
}//package
Section 217
//Yes2 (Yes2)
package {
import flash.media.*;
public dynamic class Yes2 extends Sound {
}
}//package
Section 218
//Yes3 (Yes3)
package {
import flash.media.*;
public dynamic class Yes3 extends Sound {
}
}//package