Section 1
//alertScore_66 (survivor10_fla.alertScore_66)
package survivor10_fla {
import flash.display.*;
import flash.text.*;
public dynamic class alertScore_66 extends MovieClip {
public var score:TextField;
}
}//package survivor10_fla
Section 2
//bat_87 (survivor10_fla.bat_87)
package survivor10_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class bat_87 extends MovieClip {
public const maxRatio:Number = 100;
public const dRatio:Number = 0.1;
public const type:String = "flyer";
public const flySpeed:Number = 1.3;
public const chaseSpeed:Number = 6.5;
public var ratio:Number;
public var noise:Number;
public var expresi_mc:MovieClip;
public var lastStat:String;
public var action:String;
public var stat:String;
public var target_y:Number;
public var statReset:Number;
public var hearLimit:MovieClip;
public var sudut:Number;
public var target_x:Number;
public var default_y:Number;
public var lastAction:String;
public var newFacing:String;
public var noiseMeter:MovieClip;
public var dummy:MovieClip;
public var isAlive:Boolean;
public var velocity:Number;
public var facing:String;
public var attack_mc:MovieClip;
public function bat_87(){
addFrameScript(0, frame1);
}
public function init(_arg1){
velocity = 0;
action = ("fly" + _arg1);
lastAction = "fly";
facing = _arg1;
newFacing = _arg1;
isAlive = true;
stat = "calm";
noise = 0;
default_y = this.y;
}
public function chasing(_arg1){
var _local2:Number;
var _local3:Number;
if ((((Math.abs((target_x - this.x)) < 10)) && ((Math.abs((target_y - this.y)) < 10)))){
action = "back";
_local2 = 0;
while (_local2 < _arg1.objCount) {
if ((((_arg1[_arg1.obj[_local2]].type == "cliff")) && (this.dummy.hitTestObject(_arg1[_arg1.obj[_local2]])))){
if (Math.abs((this.x - _arg1[_arg1.obj[_local2]].x)) < Math.abs((this.x - (_arg1[_arg1.obj[_local2]].x + _arg1[_arg1.obj[_local2]].width)))){
this.x = ((_arg1[_arg1.obj[_local2]].x - this.dummy.width) - 1);
} else {
this.x = (((_arg1[_arg1.obj[_local2]].x + _arg1[_arg1.obj[_local2]].width) + this.dummy.width) + 1);
};
break;
};
_local2++;
};
} else {
_local3 = Math.atan(((target_y - this.y) / (target_x - this.x)));
if (target_x < this.x){
_local3 = (_local3 + Math.PI);
};
sudut = ((_local3 + sudut) / 2);
this.x = (this.x + (velocity * Math.cos(sudut)));
this.y = (this.y + (velocity * Math.sin(sudut)));
_local2 = 0;
while (_local2 < _arg1.objCount) {
if ((((_arg1[_arg1.obj[_local2]].type == "cliff")) && (this.dummy.hitTestObject(_arg1[_arg1.obj[_local2]])))){
action = "back";
this.x = (this.x - ((velocity * 2) * Math.cos(sudut)));
this.y = (this.y - ((velocity * 2) * Math.sin(sudut)));
break;
};
_local2++;
};
if (velocity < 15){
velocity = (velocity + 0.1);
};
};
}
function frame1(){
}
public function refreshExpression(){
expresi_mc.gotoAndStop(stat);
}
public function actionChangeChecker(){
lastStat = stat;
if (((!((action == lastAction))) || (!((newFacing == facing))))){
lastAction = action;
facing = newFacing;
if ((((action == "flyLeft")) || ((((((action == "fly")) || ((action == "back")))) && ((facing == "Left")))))){
gotoAndStop("flyLeft");
} else {
if ((((action == "flyRight")) || ((((((action == "fly")) || ((action == "back")))) && ((facing == "Right")))))){
gotoAndStop("flyRight");
} else {
if (action == "chase"){
gotoAndStop(("chase" + facing));
} else {
if (action == "attack"){
gotoAndStop(("attack" + facing));
};
};
};
};
};
}
}
}//package survivor10_fla
Section 3
//batAttack_90 (survivor10_fla.batAttack_90)
package survivor10_fla {
import flash.display.*;
public dynamic class batAttack_90 extends MovieClip {
public var weaponDummy:MovieClip;
public var isFinish:Boolean;
public function batAttack_90(){
addFrameScript(0, frame1, 120, frame121);
}
function frame1(){
isFinish = false;
}
function frame121(){
stop();
isFinish = true;
}
}
}//package survivor10_fla
Section 4
//batChasing_91 (survivor10_fla.batChasing_91)
package survivor10_fla {
import flash.display.*;
public dynamic class batChasing_91 extends MovieClip {
public function batChasing_91(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package survivor10_fla
Section 5
//batHit_92 (survivor10_fla.batHit_92)
package survivor10_fla {
import flash.display.*;
public dynamic class batHit_92 extends MovieClip {
public var isFinish:Boolean;
public function batHit_92(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
isFinish = false;
}
function frame20(){
isFinish = true;
stop();
}
}
}//package survivor10_fla
Section 6
//dummy_ceil_83 (survivor10_fla.dummy_ceil_83)
package survivor10_fla {
import flash.display.*;
public dynamic class dummy_ceil_83 extends MovieClip {
public const type:String = "ceil";
public function dummy_ceil_83(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package survivor10_fla
Section 7
//dummy_cliff_45 (survivor10_fla.dummy_cliff_45)
package survivor10_fla {
import flash.display.*;
public dynamic class dummy_cliff_45 extends MovieClip {
public const type:String = "cliff";
public function dummy_cliff_45(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package survivor10_fla
Section 8
//dummy_floor_46 (survivor10_fla.dummy_floor_46)
package survivor10_fla {
import flash.display.*;
public dynamic class dummy_floor_46 extends MovieClip {
public const type:String = "floor";
public function dummy_floor_46(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package survivor10_fla
Section 9
//dummy_ground_44 (survivor10_fla.dummy_ground_44)
package survivor10_fla {
import flash.display.*;
public dynamic class dummy_ground_44 extends MovieClip {
public const type:String = "ground";
public function dummy_ground_44(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package survivor10_fla
Section 10
//dummy_pintu_47 (survivor10_fla.dummy_pintu_47)
package survivor10_fla {
import flash.display.*;
public dynamic class dummy_pintu_47 extends MovieClip {
public const type:String = "exit";
public function dummy_pintu_47(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package survivor10_fla
Section 11
//dummythrowing_52 (survivor10_fla.dummythrowing_52)
package survivor10_fla {
import flash.display.*;
public dynamic class dummythrowing_52 extends MovieClip {
public var isFinish:Boolean;
public function dummythrowing_52(){
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
isFinish = false;
}
function frame50(){
isFinish = true;
stop();
}
}
}//package survivor10_fla
Section 12
//end_95 (survivor10_fla.end_95)
package survivor10_fla {
import flash.display.*;
public dynamic class end_95 extends MovieClip {
public var isFinish:Boolean;
public function end_95(){
addFrameScript(0, frame1, 139, frame140);
}
function frame1(){
}
function frame140(){
isFinish = true;
stop();
}
}
}//package survivor10_fla
Section 13
//gripBar_56 (survivor10_fla.gripBar_56)
package survivor10_fla {
import flash.display.*;
public dynamic class gripBar_56 extends MovieClip {
public var line:MovieClip;
public function gripBar_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function updateBar(_arg1){
line.width = (_arg1 * 200);
}
}
}//package survivor10_fla
Section 14
//gripBar_79 (survivor10_fla.gripBar_79)
package survivor10_fla {
import flash.display.*;
public dynamic class gripBar_79 extends MovieClip {
public var line:MovieClip;
public function gripBar_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function updateBar(_arg1){
line.width = (_arg1 * 200);
}
}
}//package survivor10_fla
Section 15
//growl_54 (survivor10_fla.growl_54)
package survivor10_fla {
import flash.media.*;
import flash.display.*;
public dynamic class growl_54 extends MovieClip {
public const type:String = "ravager";
public var noise:Number;
public var expresi_mc:MovieClip;
public var lastStat:String;
public var sound:SoundChannel;
public var action:String;
public var stat:String;
public var statReset:Number;
public var hearLimit:MovieClip;
public var lastAction:String;
public var newFacing:String;
public var noiseMeter:MovieClip;
public var dummy:MovieClip;
public var isAlive:Boolean;
public var velocity:Number;
public var facing:String;
public var attack_mc:MovieClip;
public function growl_54(){
addFrameScript(0, frame1);
}
public function walkRight(){
gotoAndStop("walkRight");
}
public function init(_arg1){
action = "land";
lastAction = "stand";
facing = _arg1;
newFacing = _arg1;
isAlive = true;
stat = "calm";
velocity = 0;
noise = 0;
}
public function deadRight(){
gotoAndStop("deadRight");
}
public function runLeft(){
gotoAndStop("runLeft");
}
public function runRight(){
gotoAndStop("runRight");
}
function frame1(){
}
public function walkLeft(){
gotoAndStop("walkLeft");
}
public function actionChangeChecker(){
lastStat = stat;
if (((!((action == lastAction))) || (!((facing == newFacing))))){
if (action == "stand"){
if (newFacing == "Right"){
standRight();
} else {
standLeft();
};
} else {
if (action == "walk"){
if (newFacing == "Right"){
walkRight();
} else {
walkLeft();
};
} else {
if (action == "run"){
if (newFacing == "Right"){
runRight();
} else {
runLeft();
};
} else {
if ((((((action == "land")) && ((facing == "Right")))) || ((action == "landRight")))){
landRight();
} else {
if ((((((action == "land")) && ((facing == "Left")))) || ((action == "landLeft")))){
landLeft();
} else {
if (action == "attack"){
if (facing == "Right"){
attackRight();
} else {
attackLeft();
};
} else {
if (action == "dead"){
if (facing == "Right"){
deadRight();
} else {
deadLeft();
};
};
};
};
};
};
};
};
};
lastAction = action;
facing = newFacing;
}
public function attackLeft(){
gotoAndStop("attackLeft");
}
public function landLeft(){
gotoAndStop("landLeft");
}
public function deadLeft(){
gotoAndStop("deadLeft");
}
public function attackRight(){
gotoAndStop("attackRight");
}
public function refreshExpression(){
expresi_mc.gotoAndStop(stat);
}
public function standRight(){
gotoAndStop("standRight");
}
public function landRight(){
gotoAndStop("landRight");
}
public function standLeft(){
gotoAndStop("standLeft");
}
}
}//package survivor10_fla
Section 16
//growlAttack_58 (survivor10_fla.growlAttack_58)
package survivor10_fla {
import flash.display.*;
public dynamic class growlAttack_58 extends MovieClip {
public var weaponDummy:MovieClip;
public var isFinish:Boolean;
public function growlAttack_58(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
isFinish = true;
}
function frame1(){
isFinish = false;
}
}
}//package survivor10_fla
Section 17
//growlDeath_40 (survivor10_fla.growlDeath_40)
package survivor10_fla {
import flash.display.*;
public dynamic class growlDeath_40 extends MovieClip {
public function growlDeath_40(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package survivor10_fla
Section 18
//growlLand_62 (survivor10_fla.growlLand_62)
package survivor10_fla {
import flash.display.*;
public dynamic class growlLand_62 extends MovieClip {
public function growlLand_62(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package survivor10_fla
Section 19
//helpMovie_28 (survivor10_fla.helpMovie_28)
package survivor10_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class helpMovie_28 extends MovieClip {
public var next_btn:SimpleButton;
public var isFinish:Boolean;
public var reply_btn:SimpleButton;
public function helpMovie_28(){
addFrameScript(0, frame1, 1, frame2, 60, frame61, 91, frame92, 219, frame220, 234, frame235, 0x0101, frame258, 316, frame317, 443, frame444, 511, frame512);
}
function frame317(){
stop();
}
function frame444(){
stop();
}
function frame220(){
stop();
}
function frame1(){
this.addEventListener(KeyboardEvent.KEY_DOWN, skipTutorial);
isFinish = false;
next_btn.addEventListener(MouseEvent.CLICK, nextTutorial);
reply_btn.addEventListener(MouseEvent.CLICK, replyTutorial);
stop();
}
public function nextTutorial(_arg1:MouseEvent){
play();
}
public function replyTutorial(_arg1:MouseEvent){
gotoAndStop("start");
}
function frame92(){
stop();
}
function frame512(){
stop();
isFinish = true;
}
function frame235(){
stop();
}
function frame2(){
stop();
}
function frame258(){
stop();
}
function frame61(){
stop();
}
public function skipTutorial(_arg1:KeyboardEvent){
if (_arg1.keyCode == Keyboard.SPACE){
gotoAndStop("finish");
};
}
}
}//package survivor10_fla
Section 20
//intro_26 (survivor10_fla.intro_26)
package survivor10_fla {
import flash.display.*;
public dynamic class intro_26 extends MovieClip {
public var isFinish:Boolean;
public function intro_26(){
addFrameScript(0, frame1, 114, frame115);
}
function frame1(){
}
function frame115(){
isFinish = true;
stop();
}
}
}//package survivor10_fla
Section 21
//killScore_65 (survivor10_fla.killScore_65)
package survivor10_fla {
import flash.display.*;
import flash.text.*;
public dynamic class killScore_65 extends MovieClip {
public var score:TextField;
}
}//package survivor10_fla
Section 22
//MainTimeline (survivor10_fla.MainTimeline)
package survivor10_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const gripSpeed:Number = 1;
public const enRunSpeed:Number = 4;
public const runSpeed:Number = 4;
public const jumpSpeed:Number = 2;
public const enWalkSpeed:Number = 1.3;
public const maxResetCount:Number = 100;
public const attackNoise:Number = 50;
public const gravitation:Number = 0.3;
public const climbSpeed:Number = 3;
public const diffHeightLandHang:Number = 0;
public const walkNoise:Number = 0.5;
public const jumpForceFactor:Number = 15;
public const runNoise:Number = 8;
public const maxGripPower:Number = 400;
public const landNoise:Number = 5;
public const walkSpeed:Number = 1.3;
public var credit_btn:SimpleButton;
public var hikingFrame:Number;
public var SFXstat:String;
public var retry_btn:SimpleButton;
public var intro_mc:MovieClip;
public var mainMenu_btn:SimpleButton;
public var recentAction:String;
public var growlAttackSE:growlAttackSound;
public var lastAction:String;
public var BGM:Array;
public var allObjectCount:Number;
public var off2_btn:SimpleButton;
public var gripPower:Number;
public var velocity:Number;
public var resetCount:Number;
public var hard_btn:SimpleButton;
public var light:MovieClip;
public var redeem_btn:SimpleButton;
public var off1_btn:SimpleButton;
public var maxTryRun:Number;
public var miniMap:MovieClip;
public var currentLevel:Number;
public var lastHittedObjectType:String;
public var newFacing:String;
public var maxTryGrip:Number;
public var totalScore:Number;
public var actionChannel:SoundChannel;
public var runSFX:runSound;
public var counter:Number;
public var walkSFX:walkSound;
public var worldKill:Array;
public var musicStat:TextField;
public var worldScore:Array;
public var worldRetry:Array;
public var garukSFX:garukSound;
public var on2_btn:SimpleButton;
public var enemyCount:Array;
public var more_btn:SimpleButton;
public var more2_btn:SimpleButton;
public var slimeContainer:MovieClip;
public var slimes:Array;
public var on1_btn:SimpleButton;
public var tryRun:Number;
public var play_btn:SimpleButton;
public var summaryBoard:MovieClip;
public var BGMstat:String;
public var normal_btn:SimpleButton;
public var back_btn:SimpleButton;
public var playerAttackSFX:playerAttackSound;
public var help_mc:MovieClip;
public var BGMchannel:SoundChannel;
public var jumpForce:Number;
public var gripBar:MovieClip;
public var end_mc:MovieClip;
public var effectStat:TextField;
public var world:MovieClip;
public var option_btn:SimpleButton;
public var skip_btn:SimpleButton;
public var worldbusted:Array;
public var tryGrip:Number;
public var difficulty:String;
public var facing:String;
public var enLastHittedObjectType:String;
public var btnClickSound:clickSound;
public var playerDeadSE:playerDeadSound;
public var diffStat:TextField;
public function MainTimeline(){
addFrameScript(0, frame1, 5, frame6, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 19, frame20, 22, frame23, 25, frame26, 96, frame97, 113, frame114, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 221, frame222, 222, frame223, 223, frame224, 224, frame225, 225, frame226, 261, frame262, 262, frame263, 263, frame264, 264, frame265, 265, frame266, 301, frame302, 302, frame303, 303, frame304, 304, frame305, 305, frame306, 341, frame342, 342, frame343, 343, frame344, 344, frame345, 345, frame346, 381, frame382, 382, frame383, 383, frame384, 384, frame385, 385, frame386, 421, frame422, 422, frame423, 423, frame424, 424, frame425, 425, frame426, 461, frame462, 462, frame463, 463, frame464, 464, frame465, 465, frame466, 501, frame502, 502, frame503, 503, frame504, 504, frame505, 505, frame506, 541, frame542, 542, frame543, 554, frame555, 594, frame595, 597, frame598, 604, frame605);
}
public function getScoreWorld(_arg1){
stop();
summaryBoard.initBoard(String(world.level), ((worldKill[(_arg1 - 1)] + "/") + enemyCount[(_arg1 - 1)]), worldbusted[(_arg1 - 1)], worldRetry[(_arg1 - 1)], calculateRank(_arg1), calculateMock(_arg1));
}
function frame605(){
stop();
removeEventListener("enterFrame", summaryMainLoop);
removeEventListener("enterFrame", mainLoop);
removeEventListener("enterFrame", endMainLoop);
removeEventListener("enterFrame", introMainLoop);
removeEventListener("enterFrame", checkPiracy);
redeem_btn.addEventListener(MouseEvent.CLICK, redeemClicked);
}
public function tryMove(_arg1):Boolean{
var _local2:Boolean;
_local2 = false;
if (_arg1 == "Left"){
world.player.x = (world.player.x - 5);
if (((!((hitObject("cliff") == null))) && (!((hitObject("cliff").y == world.player.y))))){
_local2 = false;
} else {
_local2 = true;
};
world.player.x = (world.player.x + 5);
} else {
world.player.x = (world.player.x + 5);
if (((!((hitObject("cliff") == null))) && (!((hitObject("cliff").y == world.player.y))))){
_local2 = false;
} else {
_local2 = true;
};
world.player.x = (world.player.x - 5);
};
return (_local2);
}
function frame11(){
lastHittedObjectType = "";
enLastHittedObjectType = "";
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
if (BGMstat == "on"){
BGMchannel = BGM[0].play(0, 999);
};
}
function frame10(){
}
public function moving(){
var _local1:Number;
if (recentAction == "dead"){
if ((((((hitObject("ground") == null)) && ((hitObject("cliff") == null)))) && ((world.player.y < world.areaHeight)))){
world.player.y = (world.player.y + velocity);
velocity = (velocity + gravitation);
};
if (((!((world.player.death_mc == null))) && (world.player.death_mc.isFinish))){
world.isLost = true;
};
} else {
if ((((((recentAction == "hang")) || ((recentAction == "hangRight")))) || ((recentAction == "hangLeft")))){
gripPower--;
if (gripPower <= 0){
world.player.y++;
recentAction = "land";
velocity = 0;
};
gripBar.updateBar((gripPower / maxGripPower));
} else {
if (gripPower < maxGripPower){
gripPower = (gripPower + 5);
gripBar.updateBar((gripPower / maxGripPower));
};
};
if ((((((recentAction == "land")) || ((recentAction == "landRight")))) || ((recentAction == "landLeft")))){
if (world.player.y < world.areaHeight){
world.player.y = (world.player.y + velocity);
velocity = (velocity + gravitation);
if ((((((recentAction == "landLeft")) && (tryMove("Left")))) && (((world.player.x - (world.player.dummy.width / 2)) > 0)))){
world.player.x = (world.player.x - jumpSpeed);
} else {
if ((((((recentAction == "landRight")) && (tryMove("Right")))) && (((world.player.x + (world.player.dummy.width / 2)) < world.areaWidth)))){
world.player.x = (world.player.x + jumpSpeed);
};
};
if ((((lastAction == "jump")) || ((lastAction == ("jump" + facing))))){
if (!tryMove("Left")){
world.player.x = (world.player.x + 3);
};
if (!tryMove("Right")){
world.player.x = (world.player.x - 3);
};
};
if (((!((hitObject("ground") == null))) || (!((hitObject("cliff") == null))))){
world.player.y = hitObject(lastHittedObjectType).y;
provokeEnemy((landNoise * velocity));
recentAction = "stand";
};
if ((((tryGrip > 0)) && (!((hitObject("floor") == null))))){
recentAction = "hang";
world.player.y = (hitObject("floor").y + world.player.dummy.height);
};
} else {
recentAction = "dead";
};
} else {
if ((((((lastAction == "jump")) || ((lastAction == "jumpRight")))) || ((lastAction == "jumpLeft")))){
world.player.y = (world.player.y - velocity);
velocity = (velocity - gravitation);
if ((((((lastAction == "jumpLeft")) && (tryMove("Left")))) && (((world.player.x - (world.player.dummy.width / 2)) > 0)))){
world.player.x = (world.player.x - jumpSpeed);
} else {
if ((((((lastAction == "jumpRight")) && (tryMove("Right")))) && (((world.player.x + (world.player.dummy.width / 2)) < world.areaWidth)))){
world.player.x = (world.player.x + jumpSpeed);
};
};
if (velocity <= 0){
if (lastAction == "jump"){
recentAction = "land";
};
if (lastAction == "jumpRight"){
recentAction = "landRight";
};
if (lastAction == "jumpLeft"){
recentAction = "landLeft";
};
};
if (((!((hitObject("ceil") == null))) || (((!((hitObject("cliff") == null))) && ((world.player.y > (hitObject("cliff").y + hitObject("cliff").height))))))){
if (recentAction == "jump"){
recentAction = "land";
} else {
if (recentAction == ("jump" + facing)){
recentAction = ("land" + facing);
};
};
world.player.y = (world.player.y + velocity);
velocity = 0;
};
if ((((tryGrip > 0)) && (!((hitObject("floor") == null))))){
recentAction = "hang";
world.player.y = (hitObject("floor").y + world.player.dummy.height);
};
} else {
if (facing == "Left"){
if (lastAction == "run"){
if (((tryMove("Left")) && (((world.player.x - (world.player.dummy.width / 2)) > 0)))){
world.player.x = (world.player.x - runSpeed);
};
};
if ((((((lastAction == "walk")) || ((lastAction == "hangLeft")))) && (((world.player.x - (world.player.dummy.width / 2)) > 0)))){
if (((tryMove("Left")) && (((world.player.x - (world.player.dummy.width / 2)) > 0)))){
if (lastAction == "walk"){
world.player.x = (world.player.x - walkSpeed);
} else {
world.player.x = (world.player.x - gripSpeed);
};
};
};
if ((((hitObject("cliff") == null)) && ((hitObject("ground") == null)))){
if ((((recentAction == "hang")) || ((recentAction == ("hang" + facing))))){
} else {
recentAction = "land";
world.player.x = (world.player.x - 5);
velocity = 0;
};
};
if ((((lastAction == "throw")) && (world.player.throw_mc.isFinish))){
world.player.throw_mc.isFinish = false;
recentAction = "stand";
};
} else {
if (facing == "Right"){
if ((((lastAction == "run")) && (((world.player.x + (world.player.dummy.width / 2)) < world.areaWidth)))){
if (tryMove("Right")){
world.player.x = (world.player.x + runSpeed);
};
};
if ((((((lastAction == "walk")) || ((lastAction == "hangRight")))) && (((world.player.x + (world.player.dummy.width / 2)) < world.areaWidth)))){
if (tryMove("Right")){
if (lastAction == "walk"){
world.player.x = (world.player.x + walkSpeed);
} else {
world.player.x = (world.player.x + gripSpeed);
};
};
};
if ((((hitObject("cliff") == null)) && ((hitObject("ground") == null)))){
if ((((recentAction == "hang")) || ((recentAction == ("hang" + facing))))){
} else {
recentAction = "land";
world.player.x = (world.player.x + 5);
velocity = 0;
};
};
if ((((lastAction == "throw")) && (world.player.throw_mc.isFinish))){
world.player.throw_mc.isFinish = false;
recentAction = "stand";
};
};
};
};
};
if ((((((((lastAction == "stand")) || ((lastAction == "walk")))) || ((lastAction == "run")))) && (hitObject("exit")))){
world.isWin = "true";
};
if (lastAction == "attack"){
if (world.player.attack_mc.isFinish){
recentAction = "stand";
world.player.attack_mc.gotoAndPlay("startFrame");
provokeEnemy(attackNoise);
} else {
_local1 = 0;
while (_local1 < world.enemyCount) {
if (world.player.attack_mc.weaponDummy.hitTestObject(world[world.enemyList[_local1]].dummy)){
world[world.enemyList[_local1]].action = "dead";
world[world.enemyList[_local1]].stat = "calm";
world[world.enemyList[_local1]].refreshExpression();
if (((!((world[world.enemyList[_local1]].lastAction == "dead"))) && ((world[world.enemyList[_local1]].action == "dead")))){
world.enemyKilled++;
};
};
_local1++;
};
};
};
};
}
function frame1(){
stop();
stage.showDefaultContextMenu = false;
addEventListener("enterFrame", checkPiracy);
btnClickSound = new clickSound();
runSFX = new runSound();
walkSFX = new walkSound();
playerAttackSFX = new playerAttackSound();
playerDeadSE = new playerDeadSound();
growlAttackSE = new growlAttackSound();
garukSFX = new garukSound();
BGM = new Array();
BGM.push(new BGMintro());
BGM.push(new BGM1());
BGM.push(new BGM2());
BGM.push(new BGM3());
BGM.push(new BGM4());
BGM.push(new BGM5());
}
function frame12(){
}
function frame13(){
stop();
stage.frameRate = 30;
play_btn.addEventListener(MouseEvent.CLICK, playClick);
option_btn.addEventListener(MouseEvent.CLICK, optionClick);
more_btn.addEventListener(MouseEvent.CLICK, moreClick);
more2_btn.addEventListener(MouseEvent.CLICK, moreClick);
credit_btn.addEventListener(MouseEvent.CLICK, creditClick);
}
function frame6(){
BGMstat = "on";
SFXstat = "on";
difficulty = "normal";
totalScore = 0;
worldScore = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
worldKill = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
worldbusted = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
worldRetry = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
enemyCount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
lastAction = "stand";
recentAction = "land";
facing = "Right";
newFacing = "Right";
resetCount = 0;
gripPower = 0;
velocity = 0;
tryGrip = 0;
maxTryGrip = 5;
tryRun = 0;
maxTryRun = 10;
hikingFrame = 0;
}
function frame20(){
stop();
back_btn.addEventListener(MouseEvent.CLICK, backClick);
on1_btn.addEventListener(MouseEvent.CLICK, on1Click);
off1_btn.addEventListener(MouseEvent.CLICK, off1Click);
on2_btn.addEventListener(MouseEvent.CLICK, on2Click);
off2_btn.addEventListener(MouseEvent.CLICK, off2Click);
normal_btn.addEventListener(MouseEvent.CLICK, normalClick);
hard_btn.addEventListener(MouseEvent.CLICK, hardClick);
musicStat.text = BGMstat;
effectStat.text = SFXstat;
diffStat.text = difficulty;
}
function frame505(){
stop();
init();
}
function frame23(){
stop();
back_btn.addEventListener(MouseEvent.CLICK, backClick);
}
public function initSummary(){
addEventListener(KeyboardEvent.KEY_DOWN, summarykeyDown);
addEventListener(KeyboardEvent.KEY_UP, summarykeyUp);
if (actionChannel != null){
actionChannel.stop();
};
worldKill[(currentLevel - 1)] = world.enemyKilled;
worldbusted[(currentLevel - 1)] = world.alert;
getScoreWorld(currentLevel);
counter = 0;
removeEventListener("enterFrame", mainLoop);
removeEventListener("enterFrame", endMainLoop);
removeEventListener("enterFrame", introMainLoop);
removeEventListener("enterFrame", checkPiracy);
addEventListener("enterFrame", summaryMainLoop);
}
function frame506(){
removeEventListener("enterFrame", mainLoop);
}
public function finalizeHelp(){
removeEventListener("enterFrame", helpMainLoop);
}
public function initHelp(){
removeEventListener("enterFrame", summaryMainLoop);
removeEventListener("enterFrame", mainLoop);
removeEventListener("enterFrame", endMainLoop);
removeEventListener("enterFrame", checkPiracy);
removeEventListener("enterFrame", introMainLoop);
addEventListener("enterFrame", helpMainLoop);
}
function frame502(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
public function playerEngine(){
if (((!((recentAction == lastAction))) || (!((facing == newFacing))))){
if (actionChannel != null){
actionChannel.stop();
};
lastAction = recentAction;
facing = newFacing;
if (recentAction == "stand"){
if (newFacing == "Right"){
world.player.standRight();
} else {
world.player.standLeft();
};
} else {
if (recentAction == "walk"){
if (SFXstat == "on"){
actionChannel = walkSFX.play(0, 999);
actionChannel.soundTransform.volume = 0.2;
};
if (newFacing == "Right"){
world.player.walkRight();
} else {
world.player.walkLeft();
};
} else {
if (recentAction == "run"){
if (SFXstat == "on"){
actionChannel = runSFX.play(0, 999);
actionChannel.soundTransform.volume = 1;
};
if (newFacing == "Right"){
world.player.runRight();
} else {
world.player.runLeft();
};
} else {
if ((((((recentAction == "jump")) && ((facing == "Right")))) || ((recentAction == "jumpRight")))){
world.player.jumpRight();
} else {
if ((((((recentAction == "jump")) && ((facing == "Left")))) || ((recentAction == "jumpLeft")))){
world.player.jumpLeft();
} else {
if ((((((recentAction == "land")) && ((facing == "Right")))) || ((recentAction == "landRight")))){
world.player.landRight();
} else {
if ((((((recentAction == "land")) && ((facing == "Left")))) || ((recentAction == "landLeft")))){
world.player.landLeft();
} else {
if (recentAction == "hang"){
world.player.hang(facing);
} else {
if (recentAction == "hangLeft"){
world.player.hangLeft();
} else {
if (recentAction == "hangRight"){
world.player.hangRight();
} else {
if (recentAction == "climbLeft"){
hikingFrame = 0;
world.player.climbLeft();
} else {
if (recentAction == "climbRight"){
hikingFrame = 0;
world.player.climbRight();
} else {
if (recentAction == "climbUp"){
world.player.climbUp();
} else {
if (recentAction == "climbUpRight"){
world.player.climbUpRight();
} else {
if (recentAction == "climbUpLeft"){
world.player.climbUpLeft();
} else {
if (recentAction == "attack"){
if (SFXstat == "on"){
actionChannel = playerAttackSFX.play(0, 1);
};
if (facing == "Right"){
world.player.attackRight();
} else {
world.player.attackLeft();
};
} else {
if (recentAction == "throw"){
if (facing == "Right"){
world.player.throwRight();
} else {
world.player.throwLeft();
};
} else {
if (recentAction == "dead"){
if (SFXstat == "on"){
actionChannel = playerDeadSE.play();
};
if (facing == "Right"){
world.player.deadRight();
} else {
world.player.deadLeft();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (recentAction == "attack"){
if (facing == "Right"){
world.player.attackRight();
} else {
world.player.attackLeft();
};
};
};
moving();
if (resetCount > 0){
resetCount--;
};
if (resetCount == 0){
if ((((recentAction == "walk")) || ((recentAction == "run")))){
recentAction = "stand";
};
if ((((recentAction == "hangLeft")) || ((recentAction == "hangRight")))){
recentAction = "hang";
};
};
if (tryGrip > 0){
tryGrip--;
};
}
function frame504(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
public function flyerAI(_arg1){
if (_arg1.action != "dead"){
if ((((((_arg1.action == "back")) || ((_arg1.action == "chase")))) || ((_arg1.action == "attack")))){
_arg1.noise = 0;
_arg1.statReset = 0;
};
if ((((_arg1.noise > 0)) && ((_arg1.noise <= 50)))){
_arg1.stat = "curious";
_arg1.statReset = 50;
} else {
if (_arg1.noise > 50){
_arg1.stat = "aggresive";
_arg1.statReset = 100;
};
};
if (_arg1.statReset > 0){
_arg1.statReset = (_arg1.statReset - 0.5);
};
if (_arg1.statReset <= 0){
_arg1.stat = "calm";
} else {
if (_arg1.statReset <= 50){
_arg1.stat = "curious";
};
};
if (_arg1.action == "dead"){
_arg1.stat = "calm";
};
_arg1.refreshExpression();
if ((((((((_arg1.stat == "calm")) && (!((_arg1.action == "chase"))))) && (!((_arg1.action == "attack"))))) && (!((_arg1.action == "back"))))){
_arg1.action = ("fly" + _arg1.facing);
} else {
if ((((((((_arg1.stat == "curious")) && (!((_arg1.action == "chase"))))) && (!((_arg1.action == "attack"))))) && (!((_arg1.action == "back"))))){
_arg1.action = "fly";
if (_arg1.x <= world.player.x){
_arg1.newFacing = "Right";
} else {
_arg1.newFacing = "Left";
};
} else {
if ((((((((_arg1.stat == "aggresive")) && (!((_arg1.action == "chase"))))) && (!((_arg1.action == "attack"))))) && (!((_arg1.action == "back"))))){
if (_arg1.x <= world.player.x){
_arg1.newFacing = "Right";
} else {
_arg1.newFacing = "Left";
};
_arg1.action = "chase";
_arg1.velocity = 0;
_arg1.ratio = 0;
_arg1.sudut = (Math.PI / 2);
_arg1.target_x = world.player.x;
_arg1.target_y = (world.player.y - (world.player.dummy.height / 2));
};
};
};
if (_arg1.action == "attack"){
if (_arg1.attack_mc.weaponDummy.hitTestObject(world.player.dummy)){
recentAction = "dead";
velocity = 0;
};
if (_arg1.attack_mc.isFinish){
_arg1.attack_mc.isFinish = false;
_arg1.action = "back";
_arg1.stat = "curious";
_arg1.noise = 50;
};
};
if (((_arg1.dummy.hitTestObject(world.player.dummy)) && (!((recentAction == "dead"))))){
_arg1.action = "attack";
if (_arg1.x < world.player.x){
_arg1.newFacing = "Right";
newFacing = "Left";
} else {
_arg1.newFacing = "Left";
newFacing = "Right";
};
};
};
}
function frame26(){
stop();
initIntro();
skip_btn.addEventListener(MouseEvent.CLICK, toprelevel);
}
function frame503(){
initSummary();
stop();
}
public function hitObject(_arg1:String):Object{
var _local2:Object;
var _local3:Number;
lastHittedObjectType = "";
_local2 = null;
_local3 = 0;
while (_local3 < world.objCount) {
if ((((world[world.obj[_local3]].type == _arg1)) && (world.player.dummy.hitTestObject(world[world.obj[_local3]])))){
lastHittedObjectType = _arg1;
_local2 = world[world.obj[_local3]];
break;
};
_local3++;
};
return (_local2);
}
public function spitterAI(_arg1){
var _local2:Number;
var _local3:slime;
if (_arg1.action != "dead"){
if ((((_arg1.noise > 0)) && ((_arg1.noise <= 50)))){
_arg1.stat = "curious";
_arg1.statReset = 50;
} else {
if (_arg1.noise > 50){
_arg1.stat = "aggresive";
_arg1.statReset = 100;
};
};
if (_arg1.statReset > 0){
_arg1.statReset = (_arg1.statReset - 0.5);
};
if (_arg1.statReset <= 0){
_arg1.stat = "calm";
} else {
if (_arg1.statReset <= 50){
_arg1.stat = "curious";
};
};
if (_arg1.action == "dead"){
_arg1.stat = "calm";
};
_arg1.refreshExpression();
if ((((_arg1.stat == "curious")) || ((_arg1.stat == "aggresive")))){
_local2 = (world.player.y - (world.player.dummy.height / 2));
_arg1.sudut = Math.atan(((_local2 - _arg1.kepala_y) / (world.player.x - _arg1.kepala_x)));
if (world.player.x < _arg1.kepala_x){
_arg1.sudut = (_arg1.sudut + Math.PI);
};
_arg1.chasing();
};
if ((((_arg1.stat == "aggresive")) && ((_arg1.coolDown == 0)))){
_arg1.lastAction = "stand";
_arg1.action = "spit";
_local3 = new slime();
_local3.x = _arg1.kepala_x;
_local3.y = _arg1.kepala_y;
_local3.init(_arg1.sudut);
_local3.rotation = ((_arg1.sudut * 360) / Math.PI);
slimes.push(_local3);
world.addChildAt(slimes[(slimes.length - 1)], ((allObjectCount + slimes.length) - 1));
_arg1.coolDown = _arg1.coolDownMax;
} else {
if (_arg1.coolDown == 0){
_arg1.action = "stand";
};
};
if (_arg1.coolDown > 0){
_arg1.coolDown--;
};
};
}
public function calculateRank(_arg1):String{
var _local2:String;
_local2 = "regular geek";
_arg1--;
if ((((worldKill[_arg1] == 0)) && ((worldbusted[_arg1] == 0)))){
_local2 = "ninja";
} else {
if (worldbusted[_arg1] > enemyCount[_arg1]){
_local2 = "morron";
} else {
if (worldKill[_arg1] == enemyCount[_arg1]){
_local2 = "murderer";
} else {
if (worldRetry[_arg1] > 3){
_local2 = "obsessed?";
};
};
};
};
return (_local2);
}
public function backClick(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndStop("mainMenu");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
function frame422(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
public function normalClick(_arg1:MouseEvent){
var _local2:SoundChannel;
difficulty = "normal";
diffStat.text = difficulty;
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
function frame304(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame306(){
removeEventListener("enterFrame", mainLoop);
}
function frame542(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
public function finalizeIntro(){
removeEventListener("enterFrame", introMainLoop);
stage.frameRate = 30;
}
function frame302(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame425(){
stop();
init();
}
function frame543(){
initSummary();
stop();
}
function frame423(){
initSummary();
stop();
}
function frame305(){
stop();
init();
}
function frame303(){
initSummary();
stop();
}
function frame424(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame426(){
removeEventListener("enterFrame", mainLoop);
}
function frame555(){
stop();
initEnd();
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
if (BGMstat == "on"){
BGMchannel = BGM[0].play(0, 999);
};
}
public function init(){
var _local1:Number;
allObjectCount = ((world.enemyCount + world.objCount) + 1);
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
if (BGMstat == "on"){
BGMchannel = BGM[(world.level % BGM.length)].play(0, 999);
};
currentLevel = world.level;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, summarykeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, summarykeyUp);
enemyCount[(world.level - 1)] = world.enemyCount;
world.init();
world.player.attackRight();
world.player.attackLeft();
world.player.stand;
slimeContainer = new MovieClip();
slimeContainer.name = "slimeContainer";
slimeContainer.width = 640;
slimeContainer.height = 480;
world.addChild(slimeContainer);
slimeContainer.x = 0;
slimeContainer.y = 0;
recentAction = "land";
lastAction = "stand";
velocity = 0;
worldKill[(world.level - 1)] = 0;
worldbusted[(world.level - 1)] = 0;
gripPower = maxGripPower;
_local1 = 0;
while (_local1 < world.enemyCount) {
world[world.enemyList[_local1]].init(world.enemyPos[_local1]);
_local1++;
};
jumpForce = (world.player.dummy.height / jumpForceFactor);
stage.addEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.addEventListener(KeyboardEvent.KEY_UP, userInputUp);
removeEventListener("enterFrame", summaryMainLoop);
removeEventListener("enterFrame", endMainLoop);
removeEventListener("enterFrame", introMainLoop);
removeEventListener("enterFrame", checkPiracy);
addEventListener("enterFrame", mainLoop);
slimes = new Array();
stop();
miniMap.init(world);
if (difficulty == "hard"){
miniMap.alpha = 0;
} else {
miniMap.alpha = 1;
};
}
public function summarykeyDown(_arg1:KeyboardEvent){
}
function frame97(){
finalizeIntro();
}
function frame462(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame342(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame223(){
initSummary();
stop();
}
function frame226(){
removeEventListener("enterFrame", mainLoop);
}
function frame463(){
initSummary();
stop();
}
function frame222(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame344(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame224(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
public function provokeEnemy(_arg1){
var _local2:Number;
_local2 = 0;
while (_local2 < world.enemyCount) {
if (((!((world[world.enemyList[_local2]].action == "dead"))) && (world.player.dummy.hitTestObject(world[world.enemyList[_local2]].hearLimit)))){
if (world[world.enemyList[_local2]].type == "ravager"){
if (world[world.enemyList[_local2]].x < world.player.x){
world[world.enemyList[_local2]].newFacing = "Right";
} else {
world[world.enemyList[_local2]].newFacing = "Left";
};
};
world[world.enemyList[_local2]].noise = (world[world.enemyList[_local2]].noise + _arg1);
if (world[world.enemyList[_local2]].noise > 100){
world[world.enemyList[_local2]].noise = 100;
};
};
_local2++;
};
}
public function summarykeyUp(_arg1:KeyboardEvent){
}
function frame465(){
stop();
init();
}
function frame345(){
stop();
init();
}
function frame225(){
stop();
init();
}
function frame343(){
initSummary();
stop();
}
function frame466(){
removeEventListener("enterFrame", mainLoop);
}
function frame598(){
stop();
retry_btn.addEventListener(MouseEvent.CLICK, retryClick);
mainMenu_btn.addEventListener(MouseEvent.CLICK, mainMenuClick);
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame346(){
removeEventListener("enterFrame", mainLoop);
}
function frame114(){
initHelp();
stop();
}
function frame464(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame595(){
finalizeEnd();
}
public function mainMenuClick(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndPlay("mainMenu");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
if (BGMstat == "on"){
BGMchannel = BGM[0].play();
};
}
public function userInputUp(_arg1:KeyboardEvent){
resetCount = 0;
if (tryRun == 0){
tryRun = maxTryRun;
};
}
public function initEnd(){
end_mc.isFinish = false;
stage.frameRate = 12;
removeEventListener("enterFrame", summaryMainLoop);
removeEventListener("enterFrame", mainLoop);
removeEventListener("enterFrame", introMainLoop);
removeEventListener("enterFrame", checkPiracy);
addEventListener("enterFrame", endMainLoop);
}
public function summaryMainLoop(_arg1:Event){
counter++;
if (summaryBoard.isFinish){
summaryBoard.retry_btn.addEventListener(MouseEvent.CLICK, retryClick);
summaryBoard.next_btn.addEventListener(MouseEvent.CLICK, nextClick);
removeEventListener("enterFrame", summaryMainLoop);
};
}
public function ravagerAI(_arg1){
if (_arg1.action != "dead"){
if ((((_arg1.noise > 0)) && ((_arg1.noise <= 50)))){
_arg1.stat = "curious";
if (_arg1.x <= world.player.x){
_arg1.newFacing = "Right";
} else {
_arg1.newFacing = "Left";
};
_arg1.statReset = 50;
} else {
if (_arg1.noise > 50){
_arg1.stat = "aggresive";
if (_arg1.statReset <= 0){
if (_arg1.x <= world.player.x){
_arg1.newFacing = "Right";
} else {
_arg1.newFacing = "Left";
};
};
_arg1.statReset = 100;
};
};
if (_arg1.statReset > 0){
_arg1.statReset--;
};
if (_arg1.statReset <= 0){
_arg1.stat = "calm";
} else {
if (_arg1.statReset <= 50){
_arg1.stat = "curious";
};
};
if (_arg1.action == "dead"){
_arg1.stat = "calm";
};
_arg1.refreshExpression();
if (_arg1.stat == "calm"){
if ((((((_arg1.action == "walk")) || ((_arg1.action == "stand")))) || ((_arg1.action == "run")))){
_arg1.action = "walk";
if ((((enTryMove(_arg1, _arg1.facing) == "jatuh")) || ((enTryMove(_arg1, _arg1.facing) == "nabrak")))){
if (_arg1.facing == "Left"){
_arg1.newFacing = "Right";
} else {
_arg1.newFacing = "Left";
};
};
};
} else {
if (_arg1.stat == "curious"){
if ((((_arg1.action == "stand")) && ((Math.abs((_arg1.x - world.player.x)) > 60)))){
_arg1.action = "walk";
};
if ((((_arg1.action == "walk")) || ((_arg1.action == "run")))){
_arg1.action = "walk";
if ((((enTryMove(_arg1, _arg1.facing) == "jatuh")) || ((enTryMove(_arg1, _arg1.facing) == "nabrak")))){
_arg1.action = "stand";
};
if (Math.abs((_arg1.x - world.player.x)) < 20){
_arg1.action = "stand";
};
};
} else {
if (_arg1.stat == "aggresive"){
if ((((((_arg1.action == "walk")) || ((_arg1.action == "stand")))) || ((_arg1.action == "run")))){
_arg1.action = "run";
if (enTryMove(_arg1, _arg1.facing) == "nabrak"){
_arg1.action = "stand";
};
};
};
};
};
if (_arg1.action == "attack"){
if (_arg1.attack_mc.weaponDummy.hitTestObject(world.player.dummy)){
recentAction = "dead";
if (_arg1.facing == "Left"){
newFacing = "Right";
} else {
newFacing = "Left";
};
velocity = 0;
};
if (_arg1.attack_mc.isFinish){
_arg1.attack_mc.isFinish = false;
if ((((enHitObject(_arg1, "cliff") == null)) && ((enHitObject(_arg1, "ground") == null)))){
_arg1.action = "land";
} else {
_arg1.action = "land";
};
_arg1.stat = "curious";
_arg1.noise = 50;
};
};
if (((((((!((_arg1.action == "land"))) && ((Math.abs((_arg1.y - world.player.y)) < 30)))) && (((_arg1.dummy.hitTestObject(world.player.dummy)) || ((Math.abs((_arg1.x - world.player.x)) < ((_arg1.dummy.width / 2) + 5))))))) && (!((recentAction == "dead"))))){
if ((((((_arg1.x > world.player.x)) && ((_arg1.facing == "Left")))) || ((((_arg1.x <= world.player.x)) && ((_arg1.facing == "Right")))))){
_arg1.action = "attack";
};
};
} else {
_arg1.stat = "calm";
if (_arg1.sound != null){
_arg1.sound.stop();
};
};
}
function frame382(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame262(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndPlay("gameOver");
};
}
function frame384(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame143(){
finalizeHelp();
}
function frame144(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame266(){
removeEventListener("enterFrame", mainLoop);
}
function frame146(){
removeEventListener("enterFrame", mainLoop);
}
function frame383(){
initSummary();
stop();
}
function frame263(){
initSummary();
stop();
}
function frame264(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame265(){
stop();
init();
}
function frame145(){
stop();
init();
}
function frame385(){
stop();
init();
}
public function endMainLoop(_arg1:Event){
if (end_mc.isFinish){
play();
};
}
public function off1Click(_arg1:MouseEvent){
var _local2:SoundChannel;
BGMstat = "off";
musicStat.text = BGMstat;
BGMchannel.stop();
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function enHitObject(_arg1:Object, _arg2:String):Object{
var _local3:Object;
var _local4:Number;
_local3 = null;
_local4 = 0;
while (_local4 < world.objCount) {
if ((((world[world.obj[_local4]].type == _arg2)) && (_arg1.dummy.hitTestObject(world[world.obj[_local4]])))){
enLastHittedObjectType = _arg2;
_local3 = world[world.obj[_local4]];
};
_local4++;
};
return (_local3);
}
public function optionClick(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndStop("option screen");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function creditClick(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndStop("credit");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
function frame386(){
removeEventListener("enterFrame", mainLoop);
}
public function calculateMock(_arg1):String{
var _local2:String;
_local2 = "dump";
return (_local2);
}
public function toprelevel(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndPlay("finalizeIntro");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function nextClick(_arg1:MouseEvent){
var _local2:SoundChannel;
play();
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function helpMainLoop(_arg1:Event){
if (help_mc.isFinish){
play();
};
}
function frame183(){
initSummary();
stop();
}
function frame184(){
if (BGMchannel != null){
BGMchannel.stop();
};
if (actionChannel != null){
actionChannel.stop();
};
}
function frame185(){
stop();
init();
}
function frame186(){
removeEventListener("enterFrame", mainLoop);
}
function frame182(){
if (world.isLost){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, userInput);
stage.removeEventListener(KeyboardEvent.KEY_UP, userInputUp);
gotoAndStop("gameOver");
};
}
public function on1Click(_arg1:MouseEvent){
var _local2:SoundChannel;
if (BGMstat == "off"){
BGMchannel = BGM[0].play(0, 999);
};
BGMstat = "on";
musicStat.text = BGMstat;
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function introMainLoop(_arg1:Event){
if (intro_mc.isFinish){
play();
};
}
public function off2Click(_arg1:MouseEvent){
var _local2:SoundChannel;
SFXstat = "off";
effectStat.text = SFXstat;
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function playClick(_arg1:MouseEvent){
var _local2:SoundChannel;
gotoAndStop("intro");
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function userInput(_arg1:KeyboardEvent){
if (!world.isWin){
switch (_arg1.keyCode){
case Keyboard.LEFT:
if ((((((recentAction == "stand")) || ((recentAction == "walk")))) || ((recentAction == "run")))){
if (tryMove("Left")){
if ((((tryRun > 0)) || ((recentAction == "run")))){
recentAction = "run";
tryRun = 0;
provokeEnemy(runNoise);
} else {
recentAction = "walk";
provokeEnemy(walkNoise);
};
resetCount = maxResetCount;
} else {
while (hitObject("cliff") == null) {
world.player.x--;
};
recentAction = "climbLeft";
};
newFacing = "Left";
if (((!((newFacing == facing))) && ((recentAction == "run")))){
recentAction = "walk";
tryRun = 0;
};
} else {
if ((((recentAction == "hang")) || ((recentAction == ("hang" + facing))))){
newFacing = "Left";
recentAction = ("hang" + newFacing);
resetCount = maxResetCount;
if (hitObject("floor") == null){
recentAction = "land";
world.player.y++;
velocity = 0;
};
} else {
if (recentAction == "climbRight"){
if (hikingFrame == 0){
newFacing = "Left";
recentAction = "stand";
world.player.x--;
} else {
world.player.x--;
facing = "Left";
newFacing = "Left";
recentAction = "land";
velocity = 0;
hikingFrame = 0;
};
};
};
};
break;
case Keyboard.RIGHT:
if ((((((recentAction == "stand")) || ((recentAction == "walk")))) || ((recentAction == "run")))){
if (tryMove("Right")){
if ((((tryRun > 0)) || ((recentAction == "run")))){
recentAction = "run";
provokeEnemy(runNoise);
tryRun = 0;
} else {
recentAction = "walk";
provokeEnemy(walkNoise);
};
resetCount = maxResetCount;
} else {
while (hitObject("cliff") == null) {
world.player.x++;
};
recentAction = "climbRight";
};
newFacing = "Right";
if (((!((newFacing == facing))) && ((recentAction == "run")))){
recentAction = "walk";
tryRun = 0;
};
} else {
if (recentAction == "climbLeft"){
if (hikingFrame == 0){
newFacing = "Right";
recentAction = "stand";
world.player.x++;
} else {
world.player.x++;
facing = "Right";
newFacing = "Right";
recentAction = "land";
velocity = 0;
hikingFrame = 0;
};
} else {
if ((((recentAction == "hang")) || ((recentAction == ("hang" + facing))))){
newFacing = "Right";
recentAction = ("hang" + newFacing);
resetCount = maxResetCount;
if (hitObject("floor") == null){
recentAction = "land";
world.player.y++;
velocity = 0;
};
};
};
};
break;
case Keyboard.UP:
if (recentAction == "stand"){
recentAction = "jump";
velocity = jumpForce;
} else {
if ((((recentAction == "walk")) || ((recentAction == "run")))){
recentAction = ("jump" + facing);
velocity = jumpForce;
} else {
if ((((((((((((recentAction == "jump")) || ((recentAction == "jumpRight")))) || ((recentAction == "jumpLeft")))) || ((recentAction == "land")))) || ((recentAction == "landRight")))) || ((recentAction == "landLeft")))){
tryGrip = maxTryGrip;
} else {
if ((((((recentAction == "climbLeft")) || ((recentAction == "climbRight")))) && ((hitObject("ceil") == null)))){
world.player.y = (world.player.y - climbSpeed);
world.player.climb_mc.hiking(hikingFrame);
hikingFrame++;
};
};
};
};
break;
case Keyboard.DOWN:
if ((((recentAction == "hang")) || ((recentAction == ("hang" + facing))))){
world.player.y = (world.player.y + 2);
recentAction = "land";
velocity = 0;
} else {
if ((((recentAction == "climbLeft")) || ((recentAction == "climbRight")))){
hikingFrame--;
if (hikingFrame < 0){
if (recentAction == "climbLeft"){
world.player.x++;
} else {
world.player.x--;
};
recentAction = "stand";
hikingFrame = 0;
} else {
world.player.y = (world.player.y + climbSpeed);
world.player.climb_mc.hiking(hikingFrame);
};
};
};
break;
case Keyboard.SPACE:
if ((((((recentAction == "stand")) || ((recentAction == "walk")))) || ((recentAction == "run")))){
recentAction = "attack";
};
break;
};
};
}
public function enTryFly(_arg1, _arg2):Boolean{
var _local3:Boolean;
_local3 = false;
if (_arg2 == "Left"){
_arg1.x = (_arg1.x - 5);
if (enHitObject(_arg1, "cliff") != null){
_local3 = false;
} else {
_local3 = true;
};
_arg1.x = (_arg1.x + 5);
} else {
_arg1.x = (_arg1.x + 5);
if (enHitObject(_arg1, "cliff") != null){
_local3 = false;
} else {
_local3 = true;
};
_arg1.x = (_arg1.x - 5);
};
return (_local3);
}
public function redeemClicked(_arg1:MouseEvent){
var _local2:URLRequest;
var _local3:SoundChannel;
_local2 = new URLRequest("http://www.freshnewgames.com");
navigateToURL(_local2);
if (SFXstat == "on"){
_local3 = btnClickSound.play(0, 1);
};
}
public function on2Click(_arg1:MouseEvent){
var _local2:SoundChannel;
SFXstat = "on";
effectStat.text = SFXstat;
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function moreClick(_arg1:MouseEvent){
var _local2:URLRequest;
var _local3:SoundChannel;
_local2 = new URLRequest("http://www.freshnewgames.com");
navigateToURL(_local2);
if (SFXstat == "on"){
_local3 = btnClickSound.play(0, 1);
};
}
public function initIntro(){
intro_mc.isFinish = false;
stage.frameRate = 12;
removeEventListener("enterFrame", summaryMainLoop);
removeEventListener("enterFrame", mainLoop);
removeEventListener("enterFrame", endMainLoop);
removeEventListener("enterFrame", checkPiracy);
addEventListener("enterFrame", introMainLoop);
}
public function enTryMove(_arg1, _arg2):String{
var _local3:String;
_local3 = "nabrak";
if (_arg2 == "Left"){
_arg1.x = (_arg1.x - 4);
if (((!((enHitObject(_arg1, "cliff") == null))) && (!((enHitObject(_arg1, "cliff").y == _arg1.y))))){
_local3 = "nabrak";
} else {
if ((((enHitObject(_arg1, "cliff") == null)) && ((enHitObject(_arg1, "ground") == null)))){
_local3 = "jatuh";
} else {
_local3 = "ok";
};
};
_arg1.x = (_arg1.x + 4);
} else {
_arg1.x = (_arg1.x + 4);
if (((!((enHitObject(_arg1, "cliff") == null))) && (!((enHitObject(_arg1, "cliff").y == _arg1.y))))){
_local3 = "nabrak";
} else {
if ((((enHitObject(_arg1, "cliff") == null)) && ((enHitObject(_arg1, "ground") == null)))){
_local3 = "jatuh";
} else {
_local3 = "ok";
};
};
_arg1.x = (_arg1.x - 4);
};
return (_local3);
}
public function hardClick(_arg1:MouseEvent){
var _local2:SoundChannel;
difficulty = "hard";
diffStat.text = difficulty;
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function enemyMove(_arg1){
if ((((_arg1.stat == "aggresive")) && (!((_arg1.lastStat == "aggresive"))))){
world.alert++;
};
if (((!((_arg1.action == _arg1.lastAction))) && ((SFXstat == "on")))){
if (_arg1.sound != null){
_arg1.sound.stop();
};
if ((((_arg1.action == "stand")) && ((_arg1.type == "ravager")))){
_arg1.sound = garukSFX.play(0, 999);
};
if (_arg1.action == "attack"){
_arg1.sound = growlAttackSE.play();
};
};
_arg1.actionChangeChecker();
if ((((_arg1.facing == "Left")) && ((_arg1.x > 0)))){
if (enTryMove(_arg1, _arg1.facing) != "nabrak"){
if (_arg1.action == "walk"){
_arg1.x = (_arg1.x - enWalkSpeed);
} else {
if (_arg1.action == "run"){
_arg1.x = (_arg1.x - enRunSpeed);
};
};
};
if ((((((((((_arg1.action == "walk")) || ((_arg1.action == "run")))) && ((enHitObject(_arg1, "cliff") == null)))) && ((enHitObject(_arg1, "floor") == null)))) && ((enHitObject(_arg1, "ground") == null)))){
_arg1.action = "land";
_arg1.x = (_arg1.x - 5);
velocity = 0;
};
if (_arg1.x <= 0){
_arg1.newFacing = "Right";
};
} else {
if ((((_arg1.facing == "Right")) && ((_arg1.x < world.areaWidth)))){
if (enTryMove(_arg1, _arg1.facing) != "nabrak"){
if (_arg1.action == "walk"){
_arg1.x = (_arg1.x + enWalkSpeed);
} else {
if (_arg1.action == "run"){
_arg1.x = (_arg1.x + enRunSpeed);
};
};
};
if ((((((((((_arg1.action == "walk")) || ((_arg1.action == "run")))) && ((enHitObject(_arg1, "cliff") == null)))) && ((enHitObject(_arg1, "floor") == null)))) && ((enHitObject(_arg1, "ground") == null)))){
_arg1.action = "land";
_arg1.x = (_arg1.x + 5);
_arg1.velocity = 0;
};
if (_arg1.x >= world.areaWidth){
_arg1.x = world.areaWidth;
_arg1.newFacing = "Left";
};
};
};
if ((((_arg1.action == "land")) || ((_arg1.action == ("land" + _arg1.facing))))){
_arg1.y = (_arg1.y + _arg1.velocity);
_arg1.velocity = (_arg1.velocity + gravitation);
if (_arg1.y >= world.areaHeight){
_arg1.action = "dead";
};
if ((((_arg1.action == "landLeft")) && (enTryMove(_arg1, "Left")))){
_arg1.x = (_arg1.x - runSpeed);
} else {
if ((((_arg1.action == "landRight")) && (enTryMove(_arg1, "Right")))){
_arg1.x = (_arg1.x + runSpeed);
};
};
if (((!((enHitObject(_arg1, "ground") == null))) || (!((enHitObject(_arg1, "cliff") == null))))){
_arg1.y = enHitObject(_arg1, enLastHittedObjectType).y;
_arg1.action = "stand";
};
};
if (_arg1.action == "flyLeft"){
if ((((((enHitObject(_arg1, "cliff") == null)) && (enTryFly(_arg1, "Left")))) && ((_arg1.x > 0)))){
_arg1.x = (_arg1.x - _arg1.flySpeed);
} else {
_arg1.action = "flyRight";
_arg1.newFacing = "Right";
};
} else {
if (_arg1.action == "flyRight"){
if ((((((enHitObject(_arg1, "cliff") == null)) && (enTryFly(_arg1, "Right")))) && ((_arg1.x < world.areaWidth)))){
_arg1.x = (_arg1.x + _arg1.flySpeed);
} else {
_arg1.action = "flyLeft";
_arg1.newFacing = "Left";
};
} else {
if (_arg1.action == "chase"){
_arg1.chasing(world);
} else {
if (_arg1.action == "back"){
if (enHitObject(_arg1, "cliff") == null){
if (_arg1.y > _arg1.default_y){
_arg1.y = (_arg1.y - (_arg1.flySpeed * 4));
} else {
_arg1.action = ("fly" + facing);
};
} else {
_arg1.y = (_arg1.y + (_arg1.flySpeed * 4));
_arg1.default_y = _arg1.y;
_arg1.action = ("fly" + facing);
};
};
};
};
};
if ((((_arg1.action == "dead")) && (!((_arg1.type == "spitter"))))){
if ((((((enHitObject(_arg1, "cliff") == null)) && ((enHitObject(_arg1, "ground") == null)))) && ((_arg1.y <= world.areaHeight)))){
_arg1.y = (_arg1.y + _arg1.velocity);
_arg1.velocity = (_arg1.velocity + gravitation);
};
};
}
public function checkPiracy(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Number;
var _local6:Number;
_local2 = (loaderInfo.url.indexOf("://") + 3);
_local3 = loaderInfo.url.indexOf("/", _local2);
_local4 = loaderInfo.url.substring(_local2, _local3);
_local5 = (_local4.lastIndexOf(".") - 1);
_local6 = (_local4.lastIndexOf(".", _local5) + 1);
_local4 = _local4.substring(_local6, _local4.length);
}
public function retryClick(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3 = worldRetry;
var _local4 = (currentLevel - 1);
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
gotoAndPlay(("beforeWorld" + currentLevel));
if (SFXstat == "on"){
_local2 = btnClickSound.play(0, 1);
};
}
public function finalizeEnd(){
removeEventListener("enterFrame", endMainLoop);
stage.frameRate = 30;
gotoAndPlay("startScreen");
}
public function enemyEngine(){
var _local1:*;
_local1 = 0;
while (_local1 < world.enemyCount) {
if (world[world.enemyList[_local1]].isAlive){
if (world[world.enemyList[_local1]].type == "ravager"){
ravagerAI(world[world.enemyList[_local1]]);
} else {
if (world[world.enemyList[_local1]].type == "spitter"){
spitterAI(world[world.enemyList[_local1]]);
} else {
if (world[world.enemyList[_local1]].type == "flyer"){
flyerAI(world[world.enemyList[_local1]]);
};
};
};
};
enemyMove(world[world.enemyList[_local1]]);
if (world[world.enemyList[_local1]].noise > 0){
world[world.enemyList[_local1]].noise = (world[world.enemyList[_local1]].noise - 0.6);
};
world[world.enemyList[_local1]].noiseMeter.updateBar((world[world.enemyList[_local1]].noise / 100));
_local1++;
};
}
public function mainLoop(_arg1:Event){
var _local2:Number;
light.x = world.player.x;
light.y = (world.player.y - (world.player.dummy.height / 2));
miniMap.run(world);
if (tryRun > 0){
tryRun--;
};
if (((!(world.isWin)) && (!(world.isLost)))){
enemyEngine();
playerEngine();
_local2 = 0;
while (_local2 < slimes.length) {
if ((((slimes[_local2].stat == "explode")) && (slimes[_local2].dummy.hitTestObject(world.player.dummy)))){
recentAction = "dead";
};
slimes[_local2].moving(world, recentAction);
if (slimes[_local2].dieTimer <= 0){
world.removeChildAt((allObjectCount + _local2));
slimes.splice(_local2, 1);
break;
};
_local2++;
};
} else {
_local2 = 0;
while (_local2 < world.enemyCount) {
if (world[world.enemyList[_local2]].sound != null){
world[world.enemyList[_local2]].sound.stop();
};
_local2++;
};
actionChannel.stop();
if (world.isWin){
world.player.gotoAndStop(("stand" + facing));
};
gotoAndPlay(("toSummary" + world.level));
};
}
}
}//package survivor10_fla
Section 23
//miniMap_63 (survivor10_fla.miniMap_63)
package survivor10_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class miniMap_63 extends MovieClip {
public var creatureList:Array;
public function miniMap_63(){
addFrameScript(0, frame1);
}
public function init(_arg1){
var _local2:greenDot;
var _local3:Number;
var _local4:redDot;
creatureList = new Array();
_local2 = new greenDot();
_local2.x = (_arg1.player.x / 5);
_local2.y = ((_arg1.player.y / 5) - 2);
creatureList.push(_local2);
addChildAt(creatureList[0], 0);
_local3 = 0;
while (_local3 < _arg1.enemyCount) {
_local4 = new redDot();
_local4.x = (_arg1[_arg1.enemyList[_local3]].x / 5);
_local4.y = ((_arg1[_arg1.enemyList[_local3]].y / 5) - 2);
creatureList.push(_local4);
addChildAt(creatureList[(_local3 + 1)], (_local3 + 1));
_local3++;
};
}
function frame1(){
}
public function run(_arg1){
var _local2:Number;
creatureList[0].x = (_arg1.player.x / 5);
creatureList[0].y = ((_arg1.player.y / 5) - 2);
_local2 = 0;
while (_local2 < _arg1.enemyCount) {
creatureList[(_local2 + 1)].x = (_arg1[_arg1.enemyList[_local2]].x / 5);
creatureList[(_local2 + 1)].y = ((_arg1[_arg1.enemyList[_local2]].y / 5) - 2);
_local2++;
};
}
}
}//package survivor10_fla
Section 24
//player_48 (survivor10_fla.player_48)
package survivor10_fla {
import flash.display.*;
public dynamic class player_48 extends MovieClip {
public var death_mc:player_death;
public var climb_mc:MovieClip;
public var throw_mc:MovieClip;
public var dummy:MovieClip;
public var isAlive:Boolean;
public var attack_mc:player_attack;
public function player_48(){
addFrameScript(0, frame1, 21, frame22);
}
public function throwLeft(){
gotoAndStop("throwLeft");
}
public function climbUp(){
gotoAndStop("climbUp");
}
public function runLeft(){
gotoAndStop("runLeft");
}
public function deadRight(){
gotoAndStop("deadRight");
}
public function climbUpLeft(){
gotoAndStop("climbUpLeft");
}
public function climbLeft(){
gotoAndStop("climbLeft");
}
public function runRight(){
gotoAndStop("runRight");
}
function frame1(){
stop();
}
public function jumpLeft(){
gotoAndStop("jumpLeft");
}
public function walkLeft(){
gotoAndStop("walkLeft");
}
public function climbRight(){
gotoAndStop("climbRight");
}
function frame22(){
attack_mc.gotoAndPlay(5);
}
public function attackLeft(){
gotoAndStop("attackLeft");
}
public function hang(_arg1){
gotoAndStop(("hangStand" + _arg1));
}
public function deadLeft(){
gotoAndStop("deadLeft");
}
public function jumpRight(){
gotoAndStop("jumpRight");
}
public function landLeft(){
gotoAndStop("landLeft");
}
public function hangLeft(){
gotoAndStop("hangLeft");
}
public function attackRight(){
gotoAndStop("attackRight");
}
public function hangRight(){
gotoAndStop("hangRight");
}
public function climbUpRight(){
gotoAndStop("climbUpRight");
}
public function walkRight(){
gotoAndStop("walkRight");
}
public function throwRight(){
gotoAndStop("throwRight");
}
public function standRight(){
gotoAndStop("standRight");
}
public function landRight(){
gotoAndStop("landRight");
}
public function standLeft(){
gotoAndStop("standLeft");
}
}
}//package survivor10_fla
Section 25
//player_climb_51 (survivor10_fla.player_climb_51)
package survivor10_fla {
import flash.display.*;
public dynamic class player_climb_51 extends MovieClip {
public function player_climb_51(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function hiking(_arg1){
_arg1 = ((_arg1 % 6) + 1);
gotoAndStop(_arg1);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package survivor10_fla
Section 26
//player_jump_50 (survivor10_fla.player_jump_50)
package survivor10_fla {
import flash.display.*;
public dynamic class player_jump_50 extends MovieClip {
public function player_jump_50(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package survivor10_fla
Section 27
//prefmi_loader_freshnewgames_1 (survivor10_fla.prefmi_loader_freshnewgames_1)
package survivor10_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class prefmi_loader_freshnewgames_1 extends MovieClip {
public var freloaderbar:MovieClip;
public var url_btn:SimpleButton;
public var play_btn:SimpleButton;
public var url_back_btn:SimpleButton;
public function prefmi_loader_freshnewgames_1(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 74, frame75);
}
function frame75(){
MovieClip(root).play();
stop();
}
public function gotoURL(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freshnewgames.com");
navigateToURL(_local2);
}
public function updateLoader(_arg1:ProgressEvent):void{
if ((_arg1.bytesLoaded / _arg1.bytesTotal) >= 1){
gotoAndPlay(3);
} else {
freloaderbar.gotoAndStop(int(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)));
trace(int(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)));
gotoAndPlay(1);
};
}
function frame10(){
stop();
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, updateLoader);
play_btn.addEventListener(MouseEvent.CLICK, playClicked);
}
public function playClicked(_arg1:MouseEvent){
play();
}
function frame1(){
url_btn.addEventListener(MouseEvent.CLICK, gotoURL);
url_back_btn.addEventListener(MouseEvent.CLICK, gotoURL);
}
function frame2(){
loaderInfo.addEventListener(ProgressEvent.PROGRESS, updateLoader);
}
}
}//package survivor10_fla
Section 28
//rankScore_68 (survivor10_fla.rankScore_68)
package survivor10_fla {
import flash.display.*;
import flash.text.*;
public dynamic class rankScore_68 extends MovieClip {
public var score:TextField;
}
}//package survivor10_fla
Section 29
//retryScore_67 (survivor10_fla.retryScore_67)
package survivor10_fla {
import flash.display.*;
import flash.text.*;
public dynamic class retryScore_67 extends MovieClip {
public var score:TextField;
}
}//package survivor10_fla
Section 30
//spitter_74 (survivor10_fla.spitter_74)
package survivor10_fla {
import flash.display.*;
public dynamic class spitter_74 extends MovieClip {
public const type:String = "spitter";
public const coolDownMax:Number = 100;
public var noise:Number;
public var expresi_mc:MovieClip;
public var lastStat:String;
public var action:String;
public var stat:String;
public var pos:String;
public var statReset:Number;
public var hearLimit:MovieClip;
public var sudut:Number;
public var head_mc:MovieClip;
public var kepala_x:Number;
public var lastAction:String;
public var newFacing:String;
public var noiseMeter:MovieClip;
public var dummy:MovieClip;
public var coolDown:Number;
public var kepala_y:Number;
public var isAlive:Boolean;
public var facing:String;
public function spitter_74(){
addFrameScript(0, frame1);
}
public function init(_arg1){
action = "stand";
lastAction = "idle";
isAlive = true;
pos = _arg1;
if (pos == "Left"){
kepala_x = (this.x - head_mc.y);
kepala_y = this.y;
} else {
if (pos == "Right"){
kepala_x = (this.x + head_mc.y);
kepala_y = this.y;
} else {
if (pos == "Top"){
kepala_x = this.x;
kepala_y = (this.y + head_mc.y);
} else {
if (pos == "Bottom"){
kepala_x = this.x;
kepala_y = (this.y - head_mc.y);
};
};
};
};
stat = "calm";
noise = 0;
coolDown = 0;
}
public function chasing(){
if (action != "dead"){
head_mc.rotation = ((sudut / Math.PI) * 180);
};
}
function frame1(){
}
public function actionChangeChecker(){
lastStat = stat;
if (action != lastAction){
if (action == "stand"){
gotoAndStop("stand");
} else {
if (action == "spit"){
gotoAndStop("spit");
};
};
if (action == "dead"){
gotoAndStop("dead");
};
};
lastAction = action;
}
public function refreshExpression(){
expresi_mc.gotoAndStop(stat);
}
}
}//package survivor10_fla
Section 31
//spitterdeath_81 (survivor10_fla.spitterdeath_81)
package survivor10_fla {
import flash.display.*;
public dynamic class spitterdeath_81 extends MovieClip {
public function spitterdeath_81(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package survivor10_fla
Section 32
//summaryBoard_64 (survivor10_fla.summaryBoard_64)
package survivor10_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class summaryBoard_64 extends MovieClip {
public var next_btn:SimpleButton;
public var kill_mc:MovieClip;
public var mockString:String;
public var retry_btn:SimpleButton;
public var isFinish:Boolean;
public var alert_mc:MovieClip;
public var level:String;
public var rank_mc:MovieClip;
public var alertScore:String;
public var retry_mc:MovieClip;
public var retryScore:String;
public var rankScore:String;
public var lvl_txt:TextField;
public var killScore:String;
public function summaryBoard_64(){
addFrameScript(0, frame1, 1, frame2, 30, frame31, 60, frame61, 90, frame91, 195, frame196);
}
function frame91(){
rank_mc.score.text = rankScore;
}
function frame1(){
isFinish = false;
}
function frame2(){
kill_mc.score.text = killScore;
lvl_txt.text = level;
}
function frame196(){
stop();
isFinish = true;
}
function frame31(){
alert_mc.score.text = alertScore;
}
public function initBoard(_arg1="level?", _arg2="bunuh?", _arg3="ketauan?", _arg4="ulang?", _arg5="rank?", _arg6="mock?"){
level = _arg1;
killScore = _arg2;
alertScore = _arg3;
retryScore = _arg4;
rankScore = _arg5;
mockString = _arg6;
isFinish = false;
play();
}
function frame61(){
retry_mc.score.text = retryScore;
}
}
}//package survivor10_fla
Section 33
//world1_43 (survivor10_fla.world1_43)
package survivor10_fla {
import flash.display.*;
public dynamic class world1_43 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 5;
public const enemyCount:Number = 2;
public const level:Number = 1;
public const enemyList:Array;
public const enemyPos:Array;
public var enemyKilled:Number;
public var grip1:MovieClip;
public var grip2:MovieClip;
public var alert:Number;
public var cliff1:MovieClip;
public var isLost:Boolean;
public var isWin:Boolean;
public var ground:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world1_43(){
obj = ["ground", "cliff1", "grip1", "grip2", "exit1"];
enemyList = ["enemy1", "enemy2"];
enemyPos = ["Right", "Left"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
}
}
}//package survivor10_fla
Section 34
//world10_94 (survivor10_fla.world10_94)
package survivor10_fla {
import flash.display.*;
public dynamic class world10_94 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 11;
public const level = 10;
public const enemyPos:Array;
public const enemyList:Array;
public const enemyCount:Number = 7;
public var enemyKilled:Number;
public var grip1:MovieClip;
public var grip2:MovieClip;
public var cliff1:MovieClip;
public var cliff3:MovieClip;
public var isLost:Boolean;
public var cliff2:MovieClip;
public var ground1:MovieClip;
public var alert:Number;
public var ground2:MovieClip;
public var enemy4:MovieClip;
public var enemy7:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var enemy6:MovieClip;
public var ground3:MovieClip;
public var enemy3:MovieClip;
public var enemy5:MovieClip;
public var ceil1:MovieClip;
public var ceil2:MovieClip;
public var exit1:MovieClip;
public var isWin:Boolean;
public var player:MovieClip;
public function world10_94(){
obj = ["ground1", "ground2", "ground3", "cliff1", "cliff2", "cliff3", "ceil1", "ceil2", "grip1", "grip2", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4", "enemy5", "enemy6", "enemy7"];
enemyPos = ["Right", "Left", "Right", "Left", "Right", "Right", "Right"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 35
//world2_71 (survivor10_fla.world2_71)
package survivor10_fla {
import flash.display.*;
public dynamic class world2_71 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 5;
public const enemyCount:Number = 3;
public const level:Number = 2;
public const enemyList:Array;
public const enemyPos:Array;
public var enemyKilled:Number;
public var alert:Number;
public var cliff1:MovieClip;
public var isLost:Boolean;
public var cliff2:MovieClip;
public var ground1:MovieClip;
public var isWin:Boolean;
public var floor1:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var enemy3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world2_71(){
obj = ["ground1", "cliff1", "cliff2", "floor1", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3"];
enemyPos = ["Left", "Right", "Left"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 36
//world3_72 (survivor10_fla.world3_72)
package survivor10_fla {
import flash.display.*;
public dynamic class world3_72 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 10;
public const enemyCount:Number = 3;
public const level:Number = 3;
public const enemyPos:Array;
public const enemyList:Array;
public var enemyKilled:Number;
public var cliff4:MovieClip;
public var cliff1:MovieClip;
public var cliff3:MovieClip;
public var isLost:Boolean;
public var cliff2:MovieClip;
public var ground1:MovieClip;
public var alert:Number;
public var isWin:Boolean;
public var ground2:MovieClip;
public var enemy1:MovieClip;
public var floor1:MovieClip;
public var floor2:MovieClip;
public var enemy2:MovieClip;
public var enemy3:MovieClip;
public var ground3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world3_72(){
obj = ["ground1", "ground2", "ground3", "cliff1", "cliff2", "cliff3", "cliff4", "floor1", "floor2", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3"];
enemyPos = ["Right", "Left", "Right"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 37
//world4_73 (survivor10_fla.world4_73)
package survivor10_fla {
import flash.display.*;
public dynamic class world4_73 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 7;
public const enemyCount:Number = 2;
public const level = 4;
public const enemyPos:Array;
public const enemyList:Array;
public var enemyKilled:Number;
public var alert:Number;
public var cliff1:MovieClip;
public var isLost:Boolean;
public var isWin:Boolean;
public var ground1:MovieClip;
public var ground2:MovieClip;
public var floor1:MovieClip;
public var ground4:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var ground3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world4_73(){
obj = ["ground1", "ground2", "ground3", "ground4", "cliff1", "floor1", "exit1"];
enemyList = ["enemy1", "enemy2"];
enemyPos = ["Right", "Left"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 38
//world5_82 (survivor10_fla.world5_82)
package survivor10_fla {
import flash.display.*;
public dynamic class world5_82 extends MovieClip {
public const areaHeight:Number = 480;
public const enemyList:Array;
public const objCount:Number = 19;
public const enemyCount:Number = 4;
public const obj:Array;
public const areaWidth:Number = 640;
public const level = 5;
public const enemyPos:Array;
public var enemyKilled:Number;
public var cliff2:MovieClip;
public var cliff1:MovieClip;
public var isWin:Boolean;
public var cliff4:MovieClip;
public var cliff3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public var alert:Number;
public var isLost:Boolean;
public var ground1:MovieClip;
public var ground2:MovieClip;
public var ground5:MovieClip;
public var ground6:MovieClip;
public var ground7:MovieClip;
public var ground8:MovieClip;
public var ground9:MovieClip;
public var ground3:MovieClip;
public var ground4:MovieClip;
public var floor3:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var enemy4:MovieClip;
public var floor2:MovieClip;
public var enemy3:MovieClip;
public var floor1:MovieClip;
public var ceil1:MovieClip;
public var ceil3:MovieClip;
public function world5_82(){
obj = ["ground1", "ground2", "ground3", "ground4", "ground5", "ground6", "ground7", "ground8", "ground9", "cliff1", "cliff2", "cliff3", "cliff4", "floor1", "floor2", "floor3", "ceil1", "ceil3", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4"];
enemyPos = ["Right", "Right", "Right", "Right"];
super();
addFrameScript(0, frame1);
}
function frame1(){
isWin = false;
isLost = false;
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
}
}//package survivor10_fla
Section 39
//world6_84 (survivor10_fla.world6_84)
package survivor10_fla {
import flash.display.*;
public dynamic class world6_84 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 14;
public const enemyCount:Number = 5;
public const level = 6;
public const enemyPos:Array;
public const enemyList:Array;
public var enemyKilled:Number;
public var alert:Number;
public var cliff1:MovieClip;
public var cliff3:MovieClip;
public var isLost:Boolean;
public var cliff2:MovieClip;
public var ground1:MovieClip;
public var floor3:MovieClip;
public var floor4:MovieClip;
public var enemy4:MovieClip;
public var ground4:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var floor2:MovieClip;
public var ground3:MovieClip;
public var enemy3:MovieClip;
public var floor1:MovieClip;
public var enemy5:MovieClip;
public var ceil1:MovieClip;
public var ceil2:MovieClip;
public var ground2:MovieClip;
public var exit1:MovieClip;
public var isWin:Boolean;
public var player:MovieClip;
public function world6_84(){
obj = ["ground1", "ground2", "ground3", "ground4", "cliff1", "cliff2", "cliff3", "floor1", "floor2", "floor3", "floor4", "ceil1", "ceil2", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4", "enemy5"];
enemyPos = ["Right", "Right", "Right", "Left", "Right"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 40
//world7_85 (survivor10_fla.world7_85)
package survivor10_fla {
import flash.display.*;
public dynamic class world7_85 extends MovieClip {
public const areaHeight:Number = 480;
public const enemyList:Array;
public const objCount:Number = 21;
public const enemyCount:Number = 5;
public const obj:Array;
public const areaWidth:Number = 640;
public const level = 7;
public const enemyPos:Array;
public var enemyKilled:Number;
public var cliff2:MovieClip;
public var cliff1:MovieClip;
public var isWin:Boolean;
public var cliff4:MovieClip;
public var cliff5:MovieClip;
public var cliff6:MovieClip;
public var cliff3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public var alert:Number;
public var isLost:Boolean;
public var ground1:MovieClip;
public var ground2:MovieClip;
public var ground5:MovieClip;
public var ground6:MovieClip;
public var ground7:MovieClip;
public var ground3:MovieClip;
public var ground4:MovieClip;
public var floor2:MovieClip;
public var floor3:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var enemy4:MovieClip;
public var enemy3:MovieClip;
public var floor1:MovieClip;
public var enemy5:MovieClip;
public var ceil1:MovieClip;
public var ceil2:MovieClip;
public var ceil3:MovieClip;
public var ceil4:MovieClip;
public function world7_85(){
obj = ["ground1", "ground2", "ground3", "ground4", "ground5", "ground6", "ground7", "cliff1", "cliff2", "cliff3", "cliff4", "cliff5", "cliff6", "floor1", "floor2", "floor3", "ceil1", "ceil2", "ceil3", "ceil4", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4", "enemy5"];
enemyPos = ["Right", "Right", "Right", "Left", "Right"];
super();
addFrameScript(0, frame1);
}
function frame1(){
isWin = false;
isLost = false;
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
}
}//package survivor10_fla
Section 41
//world8_86 (survivor10_fla.world8_86)
package survivor10_fla {
import flash.display.*;
public dynamic class world8_86 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 15;
public const enemyCount:Number = 4;
public const level = 8;
public const enemyPos:Array;
public const enemyList:Array;
public var grip4:MovieClip;
public var enemyKilled:Number;
public var grip1:MovieClip;
public var grip3:MovieClip;
public var alert:Number;
public var grip2:MovieClip;
public var cliff1:MovieClip;
public var isLost:Boolean;
public var cliff2:MovieClip;
public var ground1:MovieClip;
public var ground7:MovieClip;
public var ground5:MovieClip;
public var ground2:MovieClip;
public var ground6:MovieClip;
public var enemy4:MovieClip;
public var ground4:MovieClip;
public var enemy1:MovieClip;
public var enemy2:MovieClip;
public var isWin:Boolean;
public var ground3:MovieClip;
public var enemy3:MovieClip;
public var ceil1:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world8_86(){
obj = ["ground1", "ground2", "ground3", "ground4", "ground5", "ground6", "ground7", "cliff1", "cliff2", "grip1", "grip2", "grip3", "grip4", "ceil1", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4"];
enemyPos = ["Right", "Left", "Right", "Left"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 42
//world9_93 (survivor10_fla.world9_93)
package survivor10_fla {
import flash.display.*;
public dynamic class world9_93 extends MovieClip {
public const obj:Array;
public const areaHeight:Number = 480;
public const areaWidth:Number = 640;
public const objCount:Number = 12;
public const enemyCount:Number = 5;
public const level = 9;
public const enemyPos:Array;
public const enemyList:Array;
public var grip4:MovieClip;
public var grip5:MovieClip;
public var grip3:MovieClip;
public var alert:Number;
public var grip2:MovieClip;
public var enemyKilled:Number;
public var isLost:Boolean;
public var ground1:MovieClip;
public var ground7:MovieClip;
public var ground5:MovieClip;
public var isWin:Boolean;
public var ground2:MovieClip;
public var ground6:MovieClip;
public var enemy1:MovieClip;
public var enemy4:MovieClip;
public var enemy5:MovieClip;
public var ground4:MovieClip;
public var enemy2:MovieClip;
public var ground3:MovieClip;
public var enemy3:MovieClip;
public var exit1:MovieClip;
public var player:MovieClip;
public function world9_93(){
obj = ["ground1", "ground2", "ground3", "ground4", "ground5", "ground6", "ground7", "grip2", "grip3", "grip4", "grip5", "exit1"];
enemyList = ["enemy1", "enemy2", "enemy3", "enemy4", "enemy5"];
enemyPos = ["Right", "Left", "Right", "Left", "Right"];
super();
addFrameScript(0, frame1);
}
public function init(){
isWin = false;
isLost = false;
enemyKilled = 0;
alert = 0;
}
function frame1(){
isWin = false;
isLost = false;
}
}
}//package survivor10_fla
Section 43
//BGM1 (BGM1)
package {
import flash.media.*;
public dynamic class BGM1 extends Sound {
}
}//package
Section 44
//BGM2 (BGM2)
package {
import flash.media.*;
public dynamic class BGM2 extends Sound {
}
}//package
Section 45
//BGM3 (BGM3)
package {
import flash.media.*;
public dynamic class BGM3 extends Sound {
}
}//package
Section 46
//BGM4 (BGM4)
package {
import flash.media.*;
public dynamic class BGM4 extends Sound {
}
}//package
Section 47
//BGM5 (BGM5)
package {
import flash.media.*;
public dynamic class BGM5 extends Sound {
}
}//package
Section 48
//BGMintro (BGMintro)
package {
import flash.media.*;
public dynamic class BGMintro extends Sound {
}
}//package
Section 49
//blueLine (blueLine)
package {
import flash.display.*;
public dynamic class blueLine extends MovieClip {
}
}//package
Section 50
//blueRect (blueRect)
package {
import flash.display.*;
public dynamic class blueRect extends MovieClip {
}
}//package
Section 51
//clickSound (clickSound)
package {
import flash.media.*;
public dynamic class clickSound extends Sound {
}
}//package
Section 52
//garukSound (garukSound)
package {
import flash.media.*;
public dynamic class garukSound extends Sound {
}
}//package
Section 53
//greenDot (greenDot)
package {
import flash.display.*;
public dynamic class greenDot extends MovieClip {
}
}//package
Section 54
//growlAttackSound (growlAttackSound)
package {
import flash.media.*;
public dynamic class growlAttackSound extends Sound {
}
}//package
Section 55
//player_attack (player_attack)
package {
import flash.display.*;
public dynamic class player_attack extends MovieClip {
public var weaponDummy:MovieClip;
public var isFinish:Boolean;
public function player_attack(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
isFinish = false;
}
function frame19(){
stop();
isFinish = true;
}
}
}//package
Section 56
//player_death (player_death)
package {
import flash.display.*;
public dynamic class player_death extends MovieClip {
public var isFinish:Boolean;
public function player_death(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
isFinish = false;
}
function frame33(){
isFinish = true;
stop();
}
}
}//package
Section 57
//playerAttackSound (playerAttackSound)
package {
import flash.media.*;
public dynamic class playerAttackSound extends Sound {
}
}//package
Section 58
//playerDeadSound (playerDeadSound)
package {
import flash.media.*;
public dynamic class playerDeadSound extends Sound {
}
}//package
Section 59
//redDot (redDot)
package {
import flash.display.*;
public dynamic class redDot extends MovieClip {
}
}//package
Section 60
//runSound (runSound)
package {
import flash.media.*;
public dynamic class runSound extends Sound {
}
}//package
Section 61
//slime (slime)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class slime extends MovieClip {
public const speed:Number = 4;
public const dieTime:Number = 20;
public const unstickG:Number = 0.2;
public const stickG:Number = 0.08;
public var arah:Number;
public var stat:String;
public var dummy:MovieClip;
public var dieTimer:Number;
public var velocity:Number;
public var customG:Number;
public function slime(){
addFrameScript(0, frame1);
}
public function init(_arg1){
arah = _arg1;
dieTimer = dieTime;
stat = "solid";
gotoAndStop(stat);
dieTimer = dieTime;
}
public function moving(_arg1, _arg2){
var _local3:Number;
var _local4:Boolean;
if (stat == "solid"){
x = (x + (speed * Math.cos(arah)));
y = (y + (speed * Math.sin(arah)));
_local3 = 0;
while (_local3 < _arg1.objCount) {
if ((((((((stat == "solid")) && (this.dummy.hitTestObject(_arg1[_arg1.obj[_local3]])))) && (!((_arg1[_arg1.obj[_local3]].type == "floor"))))) && (!((_arg1[_arg1.obj[_local3]].type == "exit"))))){
stat = "liquid";
x = (x - ((speed * 2) * Math.cos(arah)));
y = (y - (speed * Math.sin(arah)));
dieTimer = dieTime;
gotoAndStop(stat);
velocity = 0;
customG = stickG;
};
_local3++;
};
if (((this.dummy.hitTestObject(_arg1.player.dummy)) && (!((_arg2 == "dead"))))){
stat = "explode";
dieTimer = dieTime;
gotoAndStop(stat);
};
if ((((((((x < 0)) || ((y < 0)))) || ((x > _arg1.areaWidth)))) || ((y > _arg1.areaHeight)))){
dieTimer = 0;
};
} else {
if (dieTimer > 0){
dieTimer--;
};
if ((((dieTimer < 18)) && ((stat == "explode")))){
stat = "liquid";
velocity = 0;
gotoAndStop("liquid");
customG = unstickG;
};
if (dieTimer < 16){
alpha = (alpha - 0.0625);
};
_local4 = true;
_local3 = 0;
while (_local3 < _arg1.objCount) {
if ((((((stat == "liquid")) && (!((_arg1[_arg1.obj[_local3]].type == "floor"))))) && (!((_arg1[_arg1.obj[_local3]].type == "exit"))))){
if (this.dummy.hitTestObject(_arg1[_arg1.obj[_local3]])){
_local4 = false;
};
};
_local3++;
};
if (((_local4) && ((stat == "liquid")))){
y = (y + velocity);
velocity = (velocity + customG);
};
};
}
function frame1(){
}
}
}//package
Section 62
//walkSound (walkSound)
package {
import flash.media.*;
public dynamic class walkSound extends Sound {
}
}//package