Section 1
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
}
}//package fl.motion
Section 2
//addOnModule_425 (GSEngine_fla.addOnModule_425)
package GSEngine_fla {
import flash.display.*;
public dynamic class addOnModule_425 extends MovieClip {
public function addOnModule_425(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 3
//agButton_4 (GSEngine_fla.agButton_4)
package GSEngine_fla {
import flash.display.*;
public dynamic class agButton_4 extends MovieClip {
public function agButton_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 4
//armor1Icon_11 (GSEngine_fla.armor1Icon_11)
package GSEngine_fla {
import flash.display.*;
public dynamic class armor1Icon_11 extends MovieClip {
public function armor1Icon_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 5
//armorFrameHiglight_444 (GSEngine_fla.armorFrameHiglight_444)
package GSEngine_fla {
import flash.display.*;
public dynamic class armorFrameHiglight_444 extends MovieClip {
public function armorFrameHiglight_444(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 6
//armorHighlight_442 (GSEngine_fla.armorHighlight_442)
package GSEngine_fla {
import flash.display.*;
public dynamic class armorHighlight_442 extends MovieClip {
public function armorHighlight_442(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 7
//armorTAB_247 (GSEngine_fla.armorTAB_247)
package GSEngine_fla {
import flash.display.*;
public dynamic class armorTAB_247 extends MovieClip {
public function armorTAB_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 8
//backToHangar_108 (GSEngine_fla.backToHangar_108)
package GSEngine_fla {
import flash.display.*;
public dynamic class backToHangar_108 extends MovieClip {
public function backToHangar_108(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 9
//boss1_614 (GSEngine_fla.boss1_614)
package GSEngine_fla {
import flash.display.*;
public dynamic class boss1_614 extends MovieClip {
public var periM2:MovieClip;
public var periM3:MovieClip;
public var boss1Cannon:MovieClip;
public var periM1:MovieClip;
public function boss1_614(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 10
//bulletPerimeter_608 (GSEngine_fla.bulletPerimeter_608)
package GSEngine_fla {
import flash.display.*;
public dynamic class bulletPerimeter_608 extends MovieClip {
public var p1:MovieClip;
public function bulletPerimeter_608(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 11
//cargoTAB_245 (GSEngine_fla.cargoTAB_245)
package GSEngine_fla {
import flash.display.*;
public dynamic class cargoTAB_245 extends MovieClip {
public function cargoTAB_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 12
//charAvatar_549 (GSEngine_fla.charAvatar_549)
package GSEngine_fla {
import flash.display.*;
public dynamic class charAvatar_549 extends MovieClip {
public function charAvatar_549(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 13
//continue_459 (GSEngine_fla.continue_459)
package GSEngine_fla {
import flash.display.*;
public dynamic class continue_459 extends MovieClip {
public function continue_459(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 14
//credits_460 (GSEngine_fla.credits_460)
package GSEngine_fla {
import flash.display.*;
public dynamic class credits_460 extends MovieClip {
public function credits_460(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 15
//dArmor0_317 (GSEngine_fla.dArmor0_317)
package GSEngine_fla {
import flash.display.*;
public dynamic class dArmor0_317 extends MovieClip {
public function dArmor0_317(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 16
//dmButCredit_5 (GSEngine_fla.dmButCredit_5)
package GSEngine_fla {
import flash.display.*;
public dynamic class dmButCredit_5 extends MovieClip {
public function dmButCredit_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 17
//equipedShortcutIcon_149 (GSEngine_fla.equipedShortcutIcon_149)
package GSEngine_fla {
import flash.text.*;
import flash.display.*;
public dynamic class equipedShortcutIcon_149 extends MovieClip {
public var Itemquantity:TextField;
public function equipedShortcutIcon_149(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 18
//equipedWeapon_267 (GSEngine_fla.equipedWeapon_267)
package GSEngine_fla {
import flash.display.*;
public dynamic class equipedWeapon_267 extends MovieClip {
public function equipedWeapon_267(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 19
//exitGame_109 (GSEngine_fla.exitGame_109)
package GSEngine_fla {
import flash.display.*;
public dynamic class exitGame_109 extends MovieClip {
public function exitGame_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 20
//highlightArmor_423 (GSEngine_fla.highlightArmor_423)
package GSEngine_fla {
import flash.display.*;
public dynamic class highlightArmor_423 extends MovieClip {
public function highlightArmor_423(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 21
//iconArmor2_302 (GSEngine_fla.iconArmor2_302)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconArmor2_302 extends MovieClip {
public function iconArmor2_302(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 22
//iconArmor3_308 (GSEngine_fla.iconArmor3_308)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconArmor3_308 extends MovieClip {
public function iconArmor3_308(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 23
//iconArmor4_311 (GSEngine_fla.iconArmor4_311)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconArmor4_311 extends MovieClip {
public function iconArmor4_311(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 24
//iconArmor5_314 (GSEngine_fla.iconArmor5_314)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconArmor5_314 extends MovieClip {
public function iconArmor5_314(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 25
//iconArmorEquiped_324 (GSEngine_fla.iconArmorEquiped_324)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconArmorEquiped_324 extends MovieClip {
public function iconArmorEquiped_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 26
//iconCoolDown_150 (GSEngine_fla.iconCoolDown_150)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconCoolDown_150 extends MovieClip {
public function iconCoolDown_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 27
//iconSkill3_136 (GSEngine_fla.iconSkill3_136)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconSkill3_136 extends MovieClip {
public function iconSkill3_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 28
//iconSkill4_139 (GSEngine_fla.iconSkill4_139)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconSkill4_139 extends MovieClip {
public function iconSkill4_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 29
//iconUseableItem_142 (GSEngine_fla.iconUseableItem_142)
package GSEngine_fla {
import flash.display.*;
public dynamic class iconUseableItem_142 extends MovieClip {
public function iconUseableItem_142(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame1(){
this.mouseEnabled = false;
}
function frame2(){
this.mouseEnabled = false;
stop();
}
function frame3(){
this.mouseEnabled = false;
}
function frame4(){
this.mouseEnabled = false;
}
function frame5(){
this.mouseEnabled = false;
}
function frame6(){
this.mouseEnabled = false;
}
function frame7(){
this.mouseEnabled = false;
}
function frame8(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 30
//indikatorWeaponEquiped_299 (GSEngine_fla.indikatorWeaponEquiped_299)
package GSEngine_fla {
import flash.display.*;
public dynamic class indikatorWeaponEquiped_299 extends MovieClip {
public function indikatorWeaponEquiped_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 31
//itemPanelClose_118 (GSEngine_fla.itemPanelClose_118)
package GSEngine_fla {
import flash.display.*;
public dynamic class itemPanelClose_118 extends MovieClip {
public function itemPanelClose_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 32
//learnSkillButton_428 (GSEngine_fla.learnSkillButton_428)
package GSEngine_fla {
import flash.display.*;
public dynamic class learnSkillButton_428 extends MovieClip {
public function learnSkillButton_428(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 33
//likeUs_475 (GSEngine_fla.likeUs_475)
package GSEngine_fla {
import flash.display.*;
public dynamic class likeUs_475 extends MovieClip {
public function likeUs_475(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 34
//LootedItem_44 (GSEngine_fla.LootedItem_44)
package GSEngine_fla {
import flash.display.*;
public dynamic class LootedItem_44 extends MovieClip {
public function LootedItem_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 35
//moreGames_461 (GSEngine_fla.moreGames_461)
package GSEngine_fla {
import flash.display.*;
public dynamic class moreGames_461 extends MovieClip {
public function moreGames_461(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 36
//newGame_458 (GSEngine_fla.newGame_458)
package GSEngine_fla {
import flash.display.*;
public dynamic class newGame_458 extends MovieClip {
public function newGame_458(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 37
//nomorShorthcut_130 (GSEngine_fla.nomorShorthcut_130)
package GSEngine_fla {
import flash.display.*;
public dynamic class nomorShorthcut_130 extends MovieClip {
public function nomorShorthcut_130(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
stop();
}
}
}//package GSEngine_fla
Section 38
//opScene1_162 (GSEngine_fla.opScene1_162)
package GSEngine_fla {
import flash.display.*;
public dynamic class opScene1_162 extends MovieClip {
public function opScene1_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 39
//pauseButton_107 (GSEngine_fla.pauseButton_107)
package GSEngine_fla {
import flash.display.*;
public dynamic class pauseButton_107 extends MovieClip {
public function pauseButton_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 40
//penunjukArr_252 (GSEngine_fla.penunjukArr_252)
package GSEngine_fla {
import flash.display.*;
public dynamic class penunjukArr_252 extends MovieClip {
public function penunjukArr_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 41
//preloader_1 (GSEngine_fla.preloader_1)
package GSEngine_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class preloader_1 extends MovieClip {
public var playA:MovieClip;
public var black:MovieClip;
public var agBut:MovieClip;
public var loadPercent:TextField;
public var pray:PLAYS;
public var dmBut:MovieClip;
public var loading:TextField;
public var url2:String;
public function preloader_1(){
addFrameScript(0, frame1, 51, frame52, 111, frame112, 183, frame184);
}
public function onOver(_arg1:MouseEvent){
_arg1.target.gotoAndStop(2);
}
public function onOut(_arg1:MouseEvent){
_arg1.target.gotoAndStop(1);
}
public function gotoDm(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("https://www.facebook.com/dmaestergames/");
navigateToURL(_local2, "_blank");
}
public function gotoAg(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2, "_blank");
}
public function proceed(_arg1:MouseEvent){
GSEngine.preloadSelesai = true;
}
public function eFrame(_arg1:Event):void{
if ((((((((((((((url2.indexOf("http://games.armorgames.com") > -1)) || ((url2.indexOf("http://preview.armorgames.com") > -1)))) || ((url2.indexOf("http://cache.armorgames.com") > -1)))) || ((url2.indexOf("http://cdn.armorgames.com") > -1)))) || ((url2.indexOf("http://gamemedia.armorgames.com") > -1)))) || ((url2.indexOf("http://files.armorgames.com") > -1)))) || ((url2.indexOf("http://*.armorgames.com") > -1)))){
playA.visible = false;
GSEngine.diWeb = true;
if (GSEngine.percent == 100){
pray.visible = true;
loading.visible = false;
loadPercent.visible = false;
playA.visible = false;
} else {
pray.visible = false;
loading.visible = true;
loadPercent.visible = true;
};
} else {
playA.visible = true;
loading.visible = false;
loadPercent.visible = false;
GSEngine.diWeb = false;
pray.visible = false;
};
loadPercent.text = (Math.floor(GSEngine.percent).toString() + "%");
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
pray.addEventListener(MouseEvent.CLICK, proceed);
pray.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pray.addEventListener(MouseEvent.MOUSE_OUT, onOut);
agBut.addEventListener(MouseEvent.CLICK, gotoAg);
agBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
dmBut.addEventListener(MouseEvent.CLICK, gotoDm);
dmBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
dmBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
playA.addEventListener(MouseEvent.CLICK, gotoAg);
playA.addEventListener(MouseEvent.MOUSE_OVER, onOver);
playA.addEventListener(MouseEvent.MOUSE_OUT, onOut);
black.mouseEnabled = false;
url2 = stage.loaderInfo.url;
}
function frame52(){
if (GSEngine.percent > 33){
gotoAndPlay(53);
} else {
if (GSEngine.percent < 33){
gotoAndPlay(13);
};
};
}
function frame112(){
if (GSEngine.percent < 66){
gotoAndPlay(72);
};
}
function frame184(){
if (GSEngine.percent == 100){
gotoAndPlay(132);
} else {
if (GSEngine.percent < 100){
gotoAndPlay(132);
};
};
}
}
}//package GSEngine_fla
Section 42
//proceedButton_47 (GSEngine_fla.proceedButton_47)
package GSEngine_fla {
import flash.display.*;
public dynamic class proceedButton_47 extends MovieClip {
public function proceedButton_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 43
//pTetapBase_414 (GSEngine_fla.pTetapBase_414)
package GSEngine_fla {
import flash.display.*;
public dynamic class pTetapBase_414 extends MovieClip {
public function pTetapBase_414(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 44
//shipTAB_249 (GSEngine_fla.shipTAB_249)
package GSEngine_fla {
import flash.display.*;
public dynamic class shipTAB_249 extends MovieClip {
public function shipTAB_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 45
//shortCutSlot_123 (GSEngine_fla.shortCutSlot_123)
package GSEngine_fla {
import flash.display.*;
public dynamic class shortCutSlot_123 extends MovieClip {
public var sGlow:MovieClip;
public function shortCutSlot_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 46
//skill1_2_407 (GSEngine_fla.skill1_2_407)
package GSEngine_fla {
import flash.display.*;
public dynamic class skill1_2_407 extends MovieClip {
public function skill1_2_407(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 47
//skill1ICON_321 (GSEngine_fla.skill1ICON_321)
package GSEngine_fla {
import flash.display.*;
public dynamic class skill1ICON_321 extends MovieClip {
public function skill1ICON_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 48
//skill2ICON_322 (GSEngine_fla.skill2ICON_322)
package GSEngine_fla {
import flash.display.*;
public dynamic class skill2ICON_322 extends MovieClip {
public function skill2ICON_322(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 49
//slotUseableItem_140 (GSEngine_fla.slotUseableItem_140)
package GSEngine_fla {
import flash.display.*;
public dynamic class slotUseableItem_140 extends MovieClip {
public var iconEquiped:MovieClip;
public var shortCutNumber:MovieClip;
public var glow:MovieClip;
public function slotUseableItem_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 50
//standartEnemy11_190 (GSEngine_fla.standartEnemy11_190)
package GSEngine_fla {
import flash.display.*;
public dynamic class standartEnemy11_190 extends MovieClip {
public function standartEnemy11_190(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 51
//subWeaponHighlight_420 (GSEngine_fla.subWeaponHighlight_420)
package GSEngine_fla {
import flash.display.*;
public dynamic class subWeaponHighlight_420 extends MovieClip {
public function subWeaponHighlight_420(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 52
//Symbol31_128 (GSEngine_fla.Symbol31_128)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol31_128 extends MovieClip {
public function Symbol31_128(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 53
//Symbol32_132 (GSEngine_fla.Symbol32_132)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol32_132 extends MovieClip {
public function Symbol32_132(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 54
//Symbol33_135 (GSEngine_fla.Symbol33_135)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol33_135 extends MovieClip {
public function Symbol33_135(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 55
//Symbol34_138 (GSEngine_fla.Symbol34_138)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol34_138 extends MovieClip {
public function Symbol34_138(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 56
//Symbol35_141 (GSEngine_fla.Symbol35_141)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol35_141 extends MovieClip {
public function Symbol35_141(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 57
//Symbol36_126 (GSEngine_fla.Symbol36_126)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol36_126 extends MovieClip {
public function Symbol36_126(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 58
//Symbol37_122 (GSEngine_fla.Symbol37_122)
package GSEngine_fla {
import flash.display.*;
public dynamic class Symbol37_122 extends MovieClip {
public function Symbol37_122(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
}
}
}//package GSEngine_fla
Section 59
//tombolEquipWeapon_298 (GSEngine_fla.tombolEquipWeapon_298)
package GSEngine_fla {
import flash.display.*;
public dynamic class tombolEquipWeapon_298 extends MovieClip {
public function tombolEquipWeapon_298(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 60
//tombolupG_255 (GSEngine_fla.tombolupG_255)
package GSEngine_fla {
import flash.display.*;
public dynamic class tombolupG_255 extends MovieClip {
public function tombolupG_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 61
//tutupanArmor_151 (GSEngine_fla.tutupanArmor_151)
package GSEngine_fla {
import flash.display.*;
public dynamic class tutupanArmor_151 extends MovieClip {
public function tutupanArmor_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 62
//upButtonArmor_304 (GSEngine_fla.upButtonArmor_304)
package GSEngine_fla {
import flash.display.*;
public dynamic class upButtonArmor_304 extends MovieClip {
public function upButtonArmor_304(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 63
//uPButtonKecil_306 (GSEngine_fla.uPButtonKecil_306)
package GSEngine_fla {
import flash.display.*;
public dynamic class uPButtonKecil_306 extends MovieClip {
public function uPButtonKecil_306(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 64
//upGBar_254 (GSEngine_fla.upGBar_254)
package GSEngine_fla {
import flash.display.*;
public dynamic class upGBar_254 extends MovieClip {
public function upGBar_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 65
//upgradeButton_262 (GSEngine_fla.upgradeButton_262)
package GSEngine_fla {
import flash.display.*;
public dynamic class upgradeButton_262 extends MovieClip {
public function upgradeButton_262(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 66
//upGStatusBar_253 (GSEngine_fla.upGStatusBar_253)
package GSEngine_fla {
import flash.display.*;
public dynamic class upGStatusBar_253 extends MovieClip {
public function upGStatusBar_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 67
//upProgressFR_264 (GSEngine_fla.upProgressFR_264)
package GSEngine_fla {
import flash.display.*;
public dynamic class upProgressFR_264 extends MovieClip {
public function upProgressFR_264(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 68
//useableSkill_346 (GSEngine_fla.useableSkill_346)
package GSEngine_fla {
import flash.display.*;
public dynamic class useableSkill_346 extends MovieClip {
public function useableSkill_346(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 69
//warningAnim_156 (GSEngine_fla.warningAnim_156)
package GSEngine_fla {
import flash.display.*;
public dynamic class warningAnim_156 extends MovieClip {
public function warningAnim_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 70
//weapon1_268 (GSEngine_fla.weapon1_268)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon1_268 extends MovieClip {
public function weapon1_268(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 71
//weapon1Upgrade0_269 (GSEngine_fla.weapon1Upgrade0_269)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon1Upgrade0_269 extends MovieClip {
public function weapon1Upgrade0_269(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 72
//weapon1Upgrade1_270 (GSEngine_fla.weapon1Upgrade1_270)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon1Upgrade1_270 extends MovieClip {
public function weapon1Upgrade1_270(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 73
//weapon1Upgrade2_271 (GSEngine_fla.weapon1Upgrade2_271)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon1Upgrade2_271 extends MovieClip {
public function weapon1Upgrade2_271(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 74
//weapon1Upgrade3_272 (GSEngine_fla.weapon1Upgrade3_272)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon1Upgrade3_272 extends MovieClip {
public function weapon1Upgrade3_272(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 75
//weapon2_273 (GSEngine_fla.weapon2_273)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon2_273 extends MovieClip {
public function weapon2_273(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 76
//weapon2Upgrade0_274 (GSEngine_fla.weapon2Upgrade0_274)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon2Upgrade0_274 extends MovieClip {
public function weapon2Upgrade0_274(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 77
//weapon2Upgrade1_275 (GSEngine_fla.weapon2Upgrade1_275)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon2Upgrade1_275 extends MovieClip {
public function weapon2Upgrade1_275(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 78
//weapon2Upgrade2_276 (GSEngine_fla.weapon2Upgrade2_276)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon2Upgrade2_276 extends MovieClip {
public function weapon2Upgrade2_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 79
//weapon2Upgrade3_277 (GSEngine_fla.weapon2Upgrade3_277)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon2Upgrade3_277 extends MovieClip {
public function weapon2Upgrade3_277(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 80
//weapon3_278 (GSEngine_fla.weapon3_278)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon3_278 extends MovieClip {
public function weapon3_278(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 81
//weapon3Upgrade0_279 (GSEngine_fla.weapon3Upgrade0_279)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon3Upgrade0_279 extends MovieClip {
public function weapon3Upgrade0_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 82
//weapon3Upgrade1_280 (GSEngine_fla.weapon3Upgrade1_280)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon3Upgrade1_280 extends MovieClip {
public function weapon3Upgrade1_280(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 83
//weapon3Upgrade2_281 (GSEngine_fla.weapon3Upgrade2_281)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon3Upgrade2_281 extends MovieClip {
public function weapon3Upgrade2_281(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 84
//weapon3Upgrade3_282 (GSEngine_fla.weapon3Upgrade3_282)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon3Upgrade3_282 extends MovieClip {
public function weapon3Upgrade3_282(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 85
//weapon4_283 (GSEngine_fla.weapon4_283)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon4_283 extends MovieClip {
public function weapon4_283(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 86
//weapon4Upgrade0_284 (GSEngine_fla.weapon4Upgrade0_284)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon4Upgrade0_284 extends MovieClip {
public function weapon4Upgrade0_284(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 87
//weapon4Upgrade1_285 (GSEngine_fla.weapon4Upgrade1_285)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon4Upgrade1_285 extends MovieClip {
public function weapon4Upgrade1_285(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 88
//weapon4Upgrade2_286 (GSEngine_fla.weapon4Upgrade2_286)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon4Upgrade2_286 extends MovieClip {
public function weapon4Upgrade2_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 89
//weapon4Upgrade3_287 (GSEngine_fla.weapon4Upgrade3_287)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon4Upgrade3_287 extends MovieClip {
public function weapon4Upgrade3_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 90
//weapon5_288 (GSEngine_fla.weapon5_288)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon5_288 extends MovieClip {
public function weapon5_288(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 91
//weapon5Upgrade0_289 (GSEngine_fla.weapon5Upgrade0_289)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon5Upgrade0_289 extends MovieClip {
public function weapon5Upgrade0_289(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 92
//weapon5Upgrade1_290 (GSEngine_fla.weapon5Upgrade1_290)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon5Upgrade1_290 extends MovieClip {
public function weapon5Upgrade1_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 93
//weapon5Upgrade2_291 (GSEngine_fla.weapon5Upgrade2_291)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon5Upgrade2_291 extends MovieClip {
public function weapon5Upgrade2_291(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 94
//weapon5Upgrade3_292 (GSEngine_fla.weapon5Upgrade3_292)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon5Upgrade3_292 extends MovieClip {
public function weapon5Upgrade3_292(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 95
//weapon6_293 (GSEngine_fla.weapon6_293)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon6_293 extends MovieClip {
public function weapon6_293(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 96
//weapon6Upgrade0_294 (GSEngine_fla.weapon6Upgrade0_294)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon6Upgrade0_294 extends MovieClip {
public function weapon6Upgrade0_294(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 97
//weapon6Upgrade1_295 (GSEngine_fla.weapon6Upgrade1_295)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon6Upgrade1_295 extends MovieClip {
public function weapon6Upgrade1_295(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 98
//weapon6Upgrade2_296 (GSEngine_fla.weapon6Upgrade2_296)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon6Upgrade2_296 extends MovieClip {
public function weapon6Upgrade2_296(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 99
//weapon6Upgrade3_297 (GSEngine_fla.weapon6Upgrade3_297)
package GSEngine_fla {
import flash.display.*;
public dynamic class weapon6Upgrade3_297 extends MovieClip {
public function weapon6Upgrade3_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GSEngine_fla
Section 100
//addOnStatus (addOnStatus)
package {
import flash.display.*;
public dynamic class addOnStatus extends MovieClip {
}
}//package
Section 101
//allMC (allMC)
package {
import flash.display.*;
public dynamic class allMC extends MovieClip {
}
}//package
Section 102
//AMAnim (AMAnim)
package {
import flash.display.*;
public dynamic class AMAnim extends MovieClip {
public function AMAnim(){
addFrameScript(8, frame9);
}
function frame9(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 103
//AMAnim2 (AMAnim2)
package {
import flash.display.*;
public dynamic class AMAnim2 extends MovieClip {
public function AMAnim2(){
addFrameScript(8, frame9);
}
function frame9(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 104
//Armor1 (Armor1)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor1 extends MovieClip {
var angleInDegrees:Number;// = 0
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
static var thisTintColour:Color = new Color();
public function Armor1(){
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.phases == "Customize"){
removeA1();
};
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor1HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in GSEngine.eList) {
if (this.hitTestObject(GSEngine.eList[_local3].periM1)){
if (takeDamageCD > 2){
GSEngine.eList[_local3].getHit(1);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList[0] != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor1HP < 1){
removeA1();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA1(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA1();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 105
//Armor2 (Armor2)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor2 extends MovieClip {
var angleInDegrees:Number;// = 51
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor2(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor2HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor2HP = (GSEngine.armor2HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor2HP < 1){
removeA2();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA2(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA2();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 106
//Armor3 (Armor3)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor3 extends MovieClip {
var angleInDegrees:Number;// = 102
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor3(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor3HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor3HP = (GSEngine.armor3HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor3HP < 1){
removeA3();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA3(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA3();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 107
//Armor4 (Armor4)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor4 extends MovieClip {
var angleInDegrees:Number;// = 153
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor4(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor4HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor4HP = (GSEngine.armor4HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor4HP < 1){
removeA4();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA4(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA4();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 108
//Armor5 (Armor5)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor5 extends MovieClip {
var angleInDegrees:Number;// = 204
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor5(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor5HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor5HP = (GSEngine.armor5HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor5HP < 1){
removeA5();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA5(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA5();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 109
//Armor6 (Armor6)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor6 extends MovieClip {
var angleInDegrees:Number;// = 0xFF
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor6(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor6HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor6HP = (GSEngine.armor6HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor6HP < 1){
removeA6();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA6(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA6();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 110
//Armor7 (Armor7)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class Armor7 extends MovieClip {
var angleInDegrees:Number;// = 306
var radius:Number;// = 0
var thisDamage:int;
var thisDefense:int;
var takeDamageCD:int;// = 0
var takeDamageCD2:int;// = 0
var thisTintColour:Color;
public function Armor7(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function beginClass(_arg1:Event):void{
if (GSEngine.armorType == 1){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 2){
thisDamage = 1;
thisDefense = 1;
} else {
if (GSEngine.armorType == 3){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 4){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 5){
thisDamage = 1;
thisDefense = 0.5;
} else {
if (GSEngine.armorType == 6){
thisDamage = 2;
thisDefense = 0.4;
};
};
};
};
};
};
this.gotoAndStop(GSEngine.armorType);
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
this.gotoAndStop(GSEngine.armorType);
if (GSEngine.isPaused == false){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
if ((((GSEngine.attachShield == true)) && ((GSEngine.armor7HP > 0)))){
returnShield();
};
if (GSEngine.assaultMode == true){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Supernova")))){
radius = (radius + 4);
if (radius > 300){
radius = 300;
};
};
if (GSEngine.njurus == false){
if (radius > 79){
radius = (radius - 4);
} else {
if (radius < 71){
radius = (radius + 4);
} else {
if ((((radius > 71)) && ((radius < 79)))){
radius = 75;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (radius > 44){
radius = (radius - 4);
} else {
if (radius < 36){
radius = (radius + 4);
} else {
if ((((radius > 36)) && ((radius < 44)))){
radius = 40;
};
};
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (radius > 30){
radius = (radius - 4);
} else {
if (radius < 26){
radius = (radius + 4);
} else {
if ((((radius > 26)) && ((radius < 34)))){
radius = 30;
};
};
};
};
_local2 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local2)));
this.y = (GSEngine.posY + (radius * Math.sin(_local2)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
for (_local3 in Enemy.eList) {
if (this.hitTestObject(Enemy.eList[_local3].periM1)){
if (takeDamageCD > 2){
Enemy.eList[_local3].getHit(1);
GSEngine.armor7HP = (GSEngine.armor7HP - thisDefense);
diTint();
takeDamageCD = 0;
} else {
takeDamageCD++;
};
break;
};
};
if (GSEngine.bList != null){
for (_local4 in GSEngine.bList) {
if (GSEngine.bList[_local4].bossCode == 101){
checkHitBoss(GSEngine.bList[_local4].boss1);
};
if (GSEngine.bList[_local4].bossCode == 102){
checkHitBoss(GSEngine.bList[_local4].boss2);
};
if (GSEngine.bList[_local4].bossCode == 103){
checkHitBoss(GSEngine.bList[_local4].boss3);
};
};
};
};
if (GSEngine.armor7HP < 1){
removeA7();
};
};
}
function checkHitBoss(_arg1){
var _local2:*;
for (_local2 in GSEngine.bList) {
if (((((this.hitTestObject(_arg1.periM1)) || (this.hitTestObject(_arg1.periM2)))) || (this.hitTestObject(_arg1.periM1)))){
if (takeDamageCD2){
GSEngine.bList[_local2].getHit(thisDamage);
GSEngine.armor1HP = (GSEngine.armor1HP - thisDefense);
diTint();
takeDamageCD2 = 0;
} else {
takeDamageCD2++;
};
break;
};
};
}
public function removeA7(){
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
public function returnShield(){
radius = (radius - 4);
var _local1:Number = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.posX + (radius * Math.cos(_local1)));
this.y = (GSEngine.posY + (radius * Math.sin(_local1)));
angleInDegrees = (angleInDegrees + GSEngine.armorSpeed);
if (radius < 15){
removeA7();
};
}
public function diTint(){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
}
function frame1(){
stop();
}
}
}//package
Section 111
//armorLevel (armorLevel)
package {
import flash.display.*;
public dynamic class armorLevel extends MovieClip {
public function armorLevel(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 112
//armorSkillIcon (armorSkillIcon)
package {
import flash.display.*;
import flash.events.*;
public class armorSkillIcon extends MovieClip {
public var skill4Icons:MovieClip;
public var skill1Icons:MovieClip;
public var skill2Icons:MovieClip;
public var skill3Icons:MovieClip;
public function armorSkillIcon(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function eFrame(_arg1:Event){
}
}
}//package
Section 113
//aShield (aShield)
package {
import flash.display.*;
public dynamic class aShield extends MovieClip {
public function aShield(){
addFrameScript(1, frame2, 25, frame26, 35, frame36);
}
function frame2(){
stop();
}
function frame26(){
stop();
}
function frame36(){
this.gotoAndPlay(1);
GSEngine.njurus = false;
}
}
}//package
Section 114
//asteroid (asteroid)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class asteroid extends MovieClip {
public var peri:MovieClip;
private var _root:MovieClip;
var randomRange:Number;
var asClass:int;
var hp:int;
var tintTimer:int;// = 0
static var thisTintColour:Color = new Color();
public function asteroid(_arg1){
peri.visible = false;
_root = MovieClip(root);
randomRange = Math.random();
addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
asClass = _arg1;
if (asClass == 1){
this.scaleX = 0.5;
this.scaleY = 0.5;
hp = 100;
};
if (asClass == 2){
this.scaleX = 0.9;
this.scaleY = 0.9;
hp = 200;
};
if (asClass == 3){
this.scaleX = 1.3;
this.scaleY = 1.3;
hp = 300;
};
GSEngine.asteroidArray.push(this);
thisTintColour.setTint(68719411200, 0.75);
this.transform.colorTransform = thisTintColour;
trace(asClass);
}
function beginClass(_arg1:Event):void{
}
public function setTints(){
thisTintColour.setTint(68719411200, 0.75);
this.transform.colorTransform = thisTintColour;
tintTimer = 1;
}
function removeThis(){
var _local1:*;
for (_local1 in GSEngine.asteroidArray) {
if ((((GSEngine.asteroidArray[_local1] == this)) && (!((this == null))))){
GSEngine.asteroidArray.splice(_local1, 1);
};
};
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
}
function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:int;
var _local6:MovieClip;
var _local7:int;
var _local8:MovieClip;
if (GSEngine.isPaused == false){
if (tintTimer == 0){
thisTintColour.setTint(0, 0);
this.transform.colorTransform = thisTintColour;
} else {
if (tintTimer > 0){
tintTimer--;
};
};
this.transform.colorTransform = thisTintColour;
if (((!((this == null))) && (!((GSEngine.player == null))))){
this.rotation = (this.rotation - (randomRange * 3));
this.x = (this.x - ((randomRange * 3) + 1));
this.y = (this.y - ((randomRange * 4) - 2));
if (this.peri.hitTestObject(GSEngine.player.playerPeri)){
GSEngine.healthPoint = (GSEngine.healthPoint - 10);
hp = (hp - 10);
GSEngine.tintPlayer();
thisTintColour.setTint(68719411200, 0.75);
this.transform.colorTransform = thisTintColour;
tintTimer = 1;
};
if (GSEngine.ePodArray != null){
for (_local2 in GSEngine.ePodArray) {
if (this.hitTestObject(GSEngine.ePodArray[_local2].kecil)){
hp = (hp - 10);
GSEngine.ePodArray[_local2].takeDamage(2);
};
};
};
};
if (hp < 0){
if (((!((this == null))) && (!((this.parent == null))))){
_local3 = new ledakanBatu2();
stage.addChild(_local3);
_local3.x = this.x;
_local3.y = this.y;
_local3.scaleX = 1.5;
_local3.scaleY = 1.5;
if (this.asClass == 1){
_local4 = new ledakanBatu2();
stage.addChild(_local4);
_local4.x = this.x;
_local4.y = this.y;
_local4.scaleX = 1.5;
_local4.scaleY = 1.5;
removeThis();
};
if (this.asClass == 2){
_local5 = 0;
while (_local5 < 2) {
_local6 = new asteroid(1);
stage.addChild(_local6);
_local6.x = (this.x + ((Math.random() * 50) - 25));
_local6.y = (this.y + ((Math.random() * 50) - 25));
_local6.scaleX = 0.5;
_local6.scaleY = 0.5;
_local5++;
};
removeThis();
};
if (this.asClass == 3){
_local7 = 0;
while (_local7 < 2) {
_local8 = new asteroid(2);
stage.addChild(_local8);
_local8.x = (this.x + ((Math.random() * 50) - 25));
_local8.y = (this.y + ((Math.random() * 50) - 25));
_local8.scaleX = 1;
_local8.scaleY = 1;
_local7++;
};
removeThis();
};
};
};
};
}
}
}//package
Section 115
//Background (Background)
package {
import flash.display.*;
import flash.events.*;
public class Background extends MovieClip {
var speed:Number;
public function Background(){
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED, beginClass);
}
private function beginClass(_arg1:Event):void{
}
private function eFrame(_arg1:Event):void{
if (GSEngine.isPaused == false){
if (this.x < -1000){
} else {
this.x = (this.x - speed);
};
if (GSEngine.shakeTimer > 0){
this.x = (this.x + (Math.round((Math.random() * 2)) - 1));
this.y = (this.y + (Math.round((Math.random() * 2)) - 1));
};
if (GSEngine.shakeTimer == 0){
this.y = 0;
};
};
if ((((GSEngine.phases == "Customize")) || ((GSEngine.phases == "Main")))){
removeThis();
};
}
function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED, beginClass);
};
}
function frame1(){
stop();
}
}
}//package
Section 116
//backGround1 (backGround1)
package {
import flash.display.*;
import flash.events.*;
public class backGround1 extends MovieClip {
var speed:Number;
var posY:int;
public function backGround1(){
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED, beginClass);
speed = 20;
}
private function beginClass(_arg1:Event):void{
posY = this.y;
}
private function eFrame(_arg1:Event):void{
if (GSEngine.isPaused == false){
this.x = (this.x - speed);
if (this.x < -900){
removeThis();
};
if (GSEngine.shakeTimer > 0){
this.x = (this.x + (Math.round((Math.random() * 2)) - 1));
this.y = (this.y + (Math.round((Math.random() * 2)) - 1));
};
if (GSEngine.shakeTimer == 0){
this.y = posY;
};
};
if ((((GSEngine.phases == "Customize")) || ((GSEngine.phases == "Main")))){
removeThis();
};
}
function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED, beginClass);
};
}
}
}//package
Section 117
//BackgroundSound (BackgroundSound)
package {
import flash.media.*;
public dynamic class BackgroundSound extends Sound {
}
}//package
Section 118
//BG (BG)
package {
import flash.display.*;
public dynamic class BG extends MovieClip {
public function BG(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 119
//BGMmenu (BGMmenu)
package {
import flash.media.*;
public dynamic class BGMmenu extends Sound {
}
}//package
Section 120
//bintang (bintang)
package {
import flash.display.*;
public dynamic class bintang extends MovieClip {
}
}//package
Section 121
//blackHole (blackHole)
package {
import flash.display.*;
public dynamic class blackHole extends MovieClip {
public function blackHole(){
addFrameScript(1, frame2, 19, frame20, 30, frame31);
}
function frame2(){
stop();
}
function frame20(){
stop();
}
function frame31(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 122
//blueRay (blueRay)
package {
import flash.display.*;
public dynamic class blueRay extends MovieClip {
public function blueRay(){
addFrameScript(1, frame2, 10, frame11, 17, frame18);
}
function frame2(){
stop();
}
function frame11(){
stop();
}
function frame18(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 123
//Boss (Boss)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.geom.*;
public class Boss extends MovieClip {
public var boss6:MovieClip;
public var boss7:MovieClip;
public var boss8:MovieClip;
public var boss9:MovieClip;
public var boss10:MovieClip;
public var boss1_2:MovieClip;
public var boss1:MovieClip;
public var boss2:MovieClip;
public var boss3:MovieClip;
public var boss4:MovieClip;
public var boss5:MovieClip;
var flagChange1:Boolean;// = false
var flagChange2:Boolean;// = false
var flagChange3:Boolean;// = false
var lockDownTimer:int;
var loot:int;
var bitMovTimer:int;
var bit1SpeedX:int;
var bit1SpeedY:int;
var bit2SpeedX:int;
var bit2SpeedY:int;
var bit3SpeedX:int;
var bit3SpeedY:int;
var bit4SpeedX:int;
var bit4SpeedY:int;
var bit5SpeedX:int;
var bit5SpeedY:int;
var bit6SpeedX:int;
var bit6SpeedY:int;
var bit7SpeedX:int;
var bit7SpeedY:int;
var bit8SpeedX:int;
var bit8SpeedY:int;
var bitChangePos:int;// = 1
var bit1Hp:int;
var bit2Hp:int;
var bit3Hp:int;
var bit4Hp:int;
var bit5Hp:int;
var bit6Hp:int;
var bit7Hp:int;
var bit8Hp:int;
private var _root:MovieClip;
private var health:Number;
private var maxHealth:Number;
private var healthPercent:Number;
var thisTintColour:Color;
var thisTintColour1:Color;
var thisTintColour2:Color;
var thisTintColour3:Color;
var thisTintColour4:Color;
var thisTintColour5:Color;
var thisTintColour6:Color;
var thisTintColour7:Color;
var thisTintColour8:Color;
private var shootTimer:Number;
private var shootTimer2:Number;
private var shootTimer3:Number;
private var shootTimer4:Number;
private var shootTimer5:Number;
private var shootTimer6:Number;
private var shootTimer7:Number;
private var shootTimer8:Number;
var tintTimer:int;
var tintTimer1:int;
var tintTimer2:int;
var tintTimer3:int;
var tintTimer4:int;
var tintTimer5:int;
var tintTimer6:int;
var tintTimer7:int;
var tintTimer8:int;
private var initThis:Boolean;
private var nextMoveTimer:int;
private var itungMTimer:Boolean;// = false
var damageDelay:int;// = 0
public var bossCode:Number;
var dx:Number;
var dy:Number;
var angle:Number;
var xSpeed:Number;
var ySpeed:Number;
var threshold1:int;// = 0
var threshold2:int;// = 0
var threshold3:int;// = 0
var threshold4:int;// = 0
var threshold5:int;// = 0
var threshold6:int;// = 0
var threshold7:int;// = 0
var threshold8:int;// = 0
var bossAgresive:int;
var bossMove:int;
var bMovementType:Number;
var boss1MovementArray:Array;
var boss2MovementArray:Array;
var boss3MovementArray:Array;
var boss4MovementArray:Array;
var boss5MovementArray:Array;
var startPosX:Number;
var startPosY:Number;
var startPosition:Point;
var changePos:int;// = 1
var deathAnim:int;// = 0
var angleInDegrees:Number;// = 0
var angleInDegreesB2:Number;// = 45
var angleInDegreesB3:Number;// = 90
var angleInDegreesB4:Number;// = 135
var angleInDegreesB5:Number;// = 180
var angleInDegreesB6:Number;// = 225
var angleInDegreesB7:Number;// = 270
var angleInDegreesB8:Number;// = 315
var angleInDegrees2:Number;// = 180
var radius:Number;// = 0
var tembakRot:int;// = 0
static var bList:Array = new Array();
static var CBoss:Number;
static var bulletType:Number;
public function Boss(_arg1:int){
thisTintColour = new Color();
thisTintColour1 = new Color();
thisTintColour2 = new Color();
thisTintColour3 = new Color();
thisTintColour4 = new Color();
thisTintColour5 = new Color();
thisTintColour6 = new Color();
thisTintColour7 = new Color();
thisTintColour8 = new Color();
boss1MovementArray = new Array();
boss2MovementArray = new Array();
boss3MovementArray = new Array();
boss4MovementArray = new Array();
boss5MovementArray = new Array();
super();
addFrameScript(0, frame1);
bitMovTimer = 0;
boss1.visible = false;
boss2.visible = false;
boss3.visible = false;
boss4.visible = false;
boss5.visible = false;
boss6.visible = false;
boss7.visible = false;
boss8.visible = false;
boss9.visible = false;
boss10.visible = false;
boss1_2.visible = false;
this.bossCode = _arg1;
initThis = true;
boss1MovementArray = [[1, 2, 3], [3, 3, 2, 4], [3, 2, 4, 4, 3, 4, 3]];
boss2MovementArray = [[1, 2, 3], [3, 3, 2, 4], [3, 3, 4, 4, 3, 4, 3]];
boss3MovementArray = [[1, 2, 3], [3, 3, 2, 4], [3, 3, 4, 4, 3, 4, 3]];
boss4MovementArray = [[1, 2, 3], [3, 3, 2, 4], [3, 3, 4, 4, 3, 4, 3]];
boss5MovementArray = [[1, 2, 3], [3, 3, 2, 4], [3, 3, 4, 4, 3, 4, 3]];
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
health = 100;
bossAgresive = 1;
bMovementType = 1;
shootTimer = 0;
shootTimer2 = 0;
shootTimer3 = 0;
shootTimer4 = 0;
shootTimer5 = 0;
shootTimer6 = 0;
shootTimer7 = 0;
shootTimer8 = 0;
CBoss = bossCode;
GSEngine.bList.push(this);
}
private function beginClass(_arg1:Event):void{
_root = MovieClip(root);
if (bossCode == 101){
boss1.visible = true;
bossStat(3500, 3500);
boss1.periM1.visible = false;
boss1.periM2.visible = false;
boss1.periM3.visible = false;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 102){
boss2.visible = true;
bossStat(5000, 5000);
boss2.periM1.visible = false;
boss2.periM2.visible = false;
boss2.periM3.visible = false;
removeChild(boss1);
removeChild(boss3);
removeChild(boss4);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 103){
boss3.visible = true;
bossStat(10000, 10000);
boss3.periM1.visible = false;
boss3.periM2.visible = false;
boss3.periM3.visible = false;
removeChild(boss2);
removeChild(boss1);
removeChild(boss4);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 104){
boss4.visible = true;
bossStat(15000, 15000);
boss4.periM1.visible = false;
boss4.periM2.visible = true;
boss4.periM3.visible = true;
removeChild(boss2);
removeChild(boss3);
removeChild(boss1);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 105){
boss5.visible = true;
bossStat(25000, 25000);
boss5.periM1.visible = false;
boss5.periM2.visible = false;
boss5.periM3.visible = false;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 106){
boss6.visible = true;
bossStat(28000, 28000);
boss6.periM1.visible = false;
boss6.periM2.visible = false;
boss6.periM3.visible = false;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss5);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 107){
boss7.visible = true;
bossStat(45000, 45000);
boss7.periM1.visible = false;
boss7.periM2.visible = false;
boss7.periM3.visible = false;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss5);
removeChild(boss6);
removeChild(boss8);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 108){
boss8.visible = true;
bossStat(60000, 60000);
boss8.periM1.visible = false;
boss8.periM2.visible = false;
boss8.periM3.visible = false;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss9);
removeChild(boss10);
} else {
if (bossCode == 109){
boss9.visible = true;
bossStat(75000, 75000);
boss9.periM1.visible = false;
boss9.periM2.visible = false;
boss9.periM3.visible = false;
boss9.periM4.visible = false;
boss9.periM5.visible = false;
boss9.periM6.visible = false;
boss9.periM7.visible = false;
boss9.periM8.visible = false;
boss9.periM9.visible = false;
boss9.periM10.visible = false;
bit1Hp = 10000;
bit2Hp = 10000;
bit3Hp = 10000;
bit4Hp = 10000;
bit5Hp = 10000;
bit6Hp = 10000;
bit7Hp = 10000;
bit8Hp = 10000;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss10);
} else {
if (bossCode == 110){
boss10.lockPeri.visible = false;
boss10.lockD.visible = false;
boss10.healing.visible = false;
boss10.visible = true;
boss10.periM1.visible = false;
boss10.periM2.visible = false;
boss10.periM3.visible = false;
boss10.periM4.visible = false;
boss10.periM5.visible = false;
boss10.periM6.visible = false;
boss10.periM7.visible = false;
boss10.periM8.visible = false;
boss10.periM9.visible = false;
bossStat(100000, 100000);
bit1Hp = 15000;
bit2Hp = 15000;
bit3Hp = 15000;
bit4Hp = 15000;
bit5Hp = 15000;
bit6Hp = 15000;
bit7Hp = 15000;
bit8Hp = 15000;
removeChild(boss2);
removeChild(boss3);
removeChild(boss4);
removeChild(boss1);
removeChild(boss5);
removeChild(boss6);
removeChild(boss7);
removeChild(boss8);
removeChild(boss9);
};
};
};
};
};
};
};
};
};
};
}
public function hitBit(_arg1:int, _arg2:int){
if (_arg1 == 1){
bit1Hp = (bit1Hp - _arg2);
} else {
if (_arg1 == 2){
bit2Hp = (bit2Hp - _arg2);
} else {
if (_arg1 == 3){
bit3Hp = (bit3Hp - _arg2);
} else {
if (_arg1 == 4){
bit4Hp = (bit4Hp - _arg2);
} else {
if (_arg1 == 5){
bit5Hp = (bit5Hp - _arg2);
} else {
if (_arg1 == 6){
bit6Hp = (bit6Hp - _arg2);
} else {
if (_arg1 == 7){
bit7Hp = (bit7Hp - _arg2);
} else {
if (_arg1 == 8){
bit8Hp = (bit8Hp - _arg2);
};
};
};
};
};
};
};
};
}
private function eFrame(_arg1:Event):void{
var _local2:int;
var _local3:MovieClip;
if ((((GSEngine.phases == "Main")) || ((GSEngine.phases == "Costumize")))){
removeThis();
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Global Warming")))){
getHit(2);
};
healthPercent = (health / maxHealth);
boss1.transform.colorTransform = thisTintColour;
boss2.transform.colorTransform = thisTintColour;
boss3.transform.colorTransform = thisTintColour;
boss4.boss4Main.transform.colorTransform = thisTintColour;
boss4.miniBoss4Bit1.b4B1In.transform.colorTransform = thisTintColour;
boss4.miniBoss4Bit2.b4B2In.transform.colorTransform = thisTintColour;
boss4.center.transform.colorTransform = thisTintColour;
boss5.transform.colorTransform = thisTintColour;
boss6.transform.colorTransform = thisTintColour;
boss7.transform.colorTransform = thisTintColour;
boss8.transform.colorTransform = thisTintColour;
boss9.transform.colorTransform = thisTintColour;
boss10.transform.colorTransform = thisTintColour;
if (tintTimer <= 0){
thisTintColour.setTint(0, 0);
} else {
if (tintTimer > 0){
tintTimer--;
};
};
if (tintTimer1 <= 0){
thisTintColour1.setTint(0, 0);
} else {
if (tintTimer1 > 0){
tintTimer1--;
};
};
if (tintTimer2 <= 0){
thisTintColour2.setTint(0, 0);
} else {
if (tintTimer2 > 0){
tintTimer2--;
};
};
if (tintTimer3 <= 0){
thisTintColour3.setTint(0, 0);
} else {
if (tintTimer3 > 0){
tintTimer3--;
};
};
if (tintTimer4 <= 0){
thisTintColour4.setTint(0, 0);
} else {
if (tintTimer4 > 0){
tintTimer4--;
};
};
if (tintTimer5 <= 0){
thisTintColour5.setTint(0, 0);
} else {
if (tintTimer5 > 0){
tintTimer5--;
};
};
if (tintTimer6 <= 0){
thisTintColour6.setTint(0, 0);
} else {
if (tintTimer6 > 0){
tintTimer6--;
};
};
if (tintTimer7 <= 0){
thisTintColour7.setTint(0, 0);
} else {
if (tintTimer7 > 0){
tintTimer7--;
};
};
if (tintTimer8 <= 0){
thisTintColour8.setTint(0, 0);
} else {
if (tintTimer8 > 0){
tintTimer8--;
};
};
if (bossCode == 101){
startPosition = new Point(boss1.boss1Cannon.startPos.x, boss1.boss1Cannon.startPos.y);
startPosition = boss1.boss1Cannon.startPos.localToGlobal(startPosition);
} else {
if (bossCode == 105){
startPosition = new Point(boss5.boss3Cannon1.startPos.x, boss5.boss3Cannon1.startPos.y);
startPosition = boss5.boss3Cannon1.startPos.localToGlobal(startPosition);
};
};
if (healthPercent > 0.7){
if ((((((((bossCode == 104)) && (!((boss4 == null))))) && (!((boss4.miniBoss4Bit1 == null))))) && (!((boss4.miniBoss4Bit2 == null))))){
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
};
bossAgresive = 1;
} else {
if ((((healthPercent > 0.3)) && ((healthPercent < 0.7)))){
if ((((((((bossCode == 104)) && (!((boss4 == null))))) && (!((boss4.miniBoss4Bit1 == null))))) && (!((boss4.miniBoss4Bit2 == null))))){
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
};
if (flagChange1 == false){
initThis = true;
flagChange1 = true;
changePos = 1;
};
bossAgresive = 2;
} else {
if (healthPercent < 0.3){
if ((((((((bossCode == 104)) && (!((boss4 == null))))) && (!((boss4.miniBoss4Bit1 == null))))) && (!((boss4.miniBoss4Bit2 == null))))){
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
};
if (flagChange2 == false){
initThis = true;
flagChange2 = true;
changePos = 1;
};
bossAgresive = 3;
};
};
};
if (bMovementType > boss1MovementArray[(bossAgresive - 1)].length){
bMovementType = 1;
};
bossMove = boss1MovementArray[(bossAgresive - 1)][(bMovementType - 1)];
if (GSEngine.bBar != null){
if (healthPercent > 0){
GSEngine.bBar.scaleX = healthPercent;
};
if (healthPercent <= 0){
GSEngine.bBar.visible = false;
};
};
if (GSEngine.isPaused == false){
shootTimer = (shootTimer + 1);
shootTimer2 = (shootTimer2 + 1);
shootTimer3 = (shootTimer3 + 1);
shootTimer4 = (shootTimer4 + 1);
shootTimer5 = (shootTimer5 + 1);
shootTimer6 = (shootTimer6 + 1);
shootTimer7 = (shootTimer7 + 1);
shootTimer8 = (shootTimer8 + 1);
if (bossCode == 101){
if (GSEngine.death == false){
bossBehav(1);
};
checkHitTest(boss1.periM1, boss1.periM2, boss1.periM3);
} else {
if (bossCode == 102){
if (GSEngine.death == false){
bossBehav(2);
};
checkHitTest(boss2.periM1, boss2.periM2, boss2.periM3);
} else {
if (bossCode == 103){
if (GSEngine.death == false){
bossBehav(3);
};
checkHitTest(boss3.periM1, boss3.periM2, boss3.periM3);
} else {
if (bossCode == 104){
if (GSEngine.death == false){
bossBehav(4);
};
checkHitTest(boss4.periM1, boss4.periM2, boss4.periM3);
} else {
if (bossCode == 105){
if (GSEngine.death == false){
bossBehav(5);
};
checkHitTest(boss5.periM1, boss5.periM2, boss5.periM3);
} else {
if (bossCode == 106){
if (GSEngine.death == false){
bossBehav(6);
};
checkHitTest(boss6.periM1, boss6.periM2, boss6.periM3);
} else {
if (bossCode == 107){
if (GSEngine.death == false){
bossBehav(7);
};
checkHitTest(boss7.periM1, boss7.periM2, boss7.periM3);
} else {
if (bossCode == 108){
if (GSEngine.death == false){
bossBehav(8);
};
checkHitTest(boss8.periM1, boss8.periM2, boss8.periM3);
} else {
if (bossCode == 109){
if (GSEngine.death == false){
bossBehav(9);
};
checkHitTest(boss9.periM1, boss9.periM1, boss9.periM1);
} else {
if (bossCode == 110){
if (GSEngine.death == false){
bossBehav(10);
};
checkHitTest(boss10.periM1, boss10.periM1, boss10.periM1);
};
};
};
};
};
};
};
};
};
};
if ((((GSEngine.phases == "Customize")) && (!((this == null))))){
clearThis();
};
if ((((health < 1)) && ((GSEngine.stageComplete == false)))){
if (deathAnim < 60){
deathAnim++;
while (_local2 < 1) {
_local3 = new Effect();
_local3.x = (this.x + (Math.random() * 100));
_local3.y = ((this.y + (Math.random() * 300)) - 100);
stage.addChild(_local3);
_local3.type = 8;
_local2++;
};
} else {
if (deathAnim == 60){
if (GSEngine.currentBoss == 1){
removeThis();
GSEngine.stage1 = true;
GSEngine.boss1Killed = true;
};
if (bossCode == 101){
GSEngine.boss1Killed = true;
};
if (bossCode == 102){
GSEngine.boss2Killed = true;
};
if (bossCode == 103){
GSEngine.boss3Killed = true;
};
if (bossCode == 104){
GSEngine.boss4Killed = true;
};
if (bossCode == 105){
GSEngine.boss5Killed = true;
};
if (bossCode == 106){
GSEngine.boss6Killed = true;
};
if (bossCode == 107){
GSEngine.boss7Killed = true;
};
if (bossCode == 108){
GSEngine.boss8Killed = true;
};
if (bossCode == 109){
GSEngine.boss9Killed = true;
};
if (bossCode == 110){
GSEngine.boss10Killed = true;
};
GSEngine.finishedStage = true;
deathAnim = 0;
};
};
};
};
}
function checkHitTest(_arg1, _arg2, _arg3){
if (((((_arg1.hitTestObject(GSEngine.player.playerPeri)) || (_arg2.hitTestObject(GSEngine.player.playerPeri)))) || (_arg3.hitTestObject(GSEngine.player.playerPeri)))){
if (damageDelay > 3){
trace("kenaBody");
getHit(3);
_root.takeDamage(3);
GSEngine.tintPlayer();
damageDelay = 0;
} else {
damageDelay++;
};
};
if (((((!((GSEngine.sunN == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Raging Sun")))){
if (((((_arg1.hitTestObject(GSEngine.sunN)) || (_arg2.hitTestObject(GSEngine.sunN)))) || (_arg3.hitTestObject(GSEngine.sunN)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(51);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(17);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.shield == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Arc Shield")))){
if (((((_arg1.hitTestObject(GSEngine.shield)) || (_arg2.hitTestObject(GSEngine.shield)))) || (_arg3.hitTestObject(GSEngine.shield)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(24);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(8);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.burN == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Burning Radiation")))){
if (((((_arg1.hitTestObject(GSEngine.burN)) || (_arg2.hitTestObject(GSEngine.burN)))) || (_arg3.hitTestObject(GSEngine.burN)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(45);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(15);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.bRay == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Blue Ray")))){
if (((((_arg1.hitTestObject(GSEngine.bRay)) || (_arg2.hitTestObject(GSEngine.bRay)))) || (_arg3.hitTestObject(GSEngine.bRay)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(60);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(20);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.defl == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Deflect")))){
if (((((_arg1.hitTestObject(GSEngine.defl)) || (_arg2.hitTestObject(GSEngine.defl)))) || (_arg3.hitTestObject(GSEngine.defl)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(48);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(16);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.player == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Black Hole")))){
if (((((_arg1.hitTestObject(GSEngine.player.blackPeri)) || (_arg2.hitTestObject(GSEngine.player.blackPeri)))) || (_arg3.hitTestObject(GSEngine.player.blackPeri)))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(99);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(33);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
};
if (((((!((GSEngine.player == null))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Gravitation")))){
if (damageDelay > 2){
if ((((bossCode == 109)) || ((bossCode == 110)))){
getHit(69);
};
if (((!((bossCode == 109))) && ((bossCode == 110)))){
getHit(23);
};
damageDelay = 0;
} else {
damageDelay++;
};
};
}
function setAggresive(){
}
private function bossStat(_arg1, _arg2){
health = _arg1;
maxHealth = _arg2;
}
private function bossBehav(_arg1){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Point;
var _local6:Point;
var _local7:Point;
var _local8:Point;
var _local9:Number;
var _local10:Number;
var _local11:Point;
var _local12:Point;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Point;
var _local17:Number;
var _local18:Number;
var _local19:Point;
var _local20:Point;
var _local21:Point;
var _local22:int;
var _local23:int;
var _local24:MovieClip;
var _local25:Point;
var _local26:Point;
var _local27:Point;
var _local28:Point;
var _local29:Point;
var _local30:Point;
var _local31:Point;
var _local32:Point;
var _local33:Point;
var _local34:Point;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41:Number;
var _local42:Number;
var _local43:int;
var _local44:MovieClip;
var _local45:int;
var _local46:MovieClip;
var _local47:int;
var _local48:MovieClip;
var _local49:int;
var _local50:MovieClip;
var _local51:int;
var _local52:MovieClip;
var _local53:int;
var _local54:MovieClip;
var _local55:int;
var _local56:MovieClip;
var _local57:int;
var _local58:MovieClip;
var _local59:int;
var _local60:MovieClip;
var _local61:MovieClip;
var _local62:MovieClip;
var _local63:int;
var _local64:MovieClip;
var _local65:Point;
var _local66:Point;
var _local67:Point;
var _local68:Point;
var _local69:Point;
var _local70:Point;
var _local71:Point;
var _local72:Point;
var _local73:Point;
var _local74:Point;
var _local75:Number;
var _local76:Number;
var _local77:Number;
var _local78:Number;
var _local79:Number;
var _local80:Number;
var _local81:Number;
var _local82:Number;
var _local83:int;
var _local84:MovieClip;
var _local85:int;
var _local86:MovieClip;
var _local87:int;
var _local88:MovieClip;
var _local89:int;
var _local90:MovieClip;
var _local91:int;
var _local92:MovieClip;
var _local93:int;
var _local94:MovieClip;
var _local95:int;
var _local96:MovieClip;
var _local97:int;
var _local98:MovieClip;
var _local99:int;
var _local100:MovieClip;
var _local101:int;
var _local102:MovieClip;
if (_arg1 == 1){
if (bossMove == 1){
if (initThis == false){
_local2 = Math.atan2((GSEngine.player.y - this.y), (GSEngine.player.x - this.x));
boss1.boss1Cannon.rotation = (((_local2 / Math.PI) * 180) + 150);
if (this.x > 400){
this.x = (this.x - 2);
if (health > 0){
shoot(4, startPosition.x, startPosition.y, 30, 7, 2, 40, false, 15, 0, _root);
shoot2(54, (this.x - 70), (this.y + 15), 180, 60, 1, 30, false, _root);
shoot3(2, (this.x - 90), (this.y - 10), 30, 35, 1, 30, false, 60, 0, _root);
};
} else {
if (this.x <= 400){
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
backToPlace(650, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
} else {
if (bossMove == 2){
if (initThis == false){
_local3 = Math.atan2((_root.movingTarget.y - this.y), (_root.movingTarget.x - this.x));
boss1.boss1Cannon.rotation = (((_local3 / Math.PI) * 180) + 150);
if (this.x < 600){
this.x = (this.x + 1);
if (health > 0){
shoot(20, startPosition.x, startPosition.y, 30, 5, 1, 27, false, 0, 0, _root);
};
} else {
if (this.x >= 600){
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
backToPlace(400, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 3){
if (initThis == false){
_local4 = Math.atan2((GSEngine.player.y - this.y), (GSEngine.player.x - this.x));
boss1.boss1Cannon.rotation = (((_local4 / Math.PI) * 180) + 150);
if ((((((this.rotation > -40)) && ((this.x > 100)))) && ((this.rotation <= 0)))){
this.rotation = (this.rotation - 2);
} else {
if ((((this.rotation == -40)) && ((this.x > 100)))){
this.x = (this.x - 10);
} else {
if ((((this.x <= 100)) && ((this.rotation < 2)))){
this.rotation = (this.rotation + 2);
} else {
if ((((this.rotation == 2)) && ((this.x < 600)))){
if (health > 0){
shoot(16, startPosition.x, startPosition.y, 30, 25, 1, 27, false, 0, 0, _root);
shoot3(17, startPosition.x, startPosition.y, 30, 25, 1, 27, false, 0, 0, _root);
};
this.x = (this.x + 4);
} else {
if ((((this.x >= 600)) && ((this.rotation == 2)))){
this.rotation = 0;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
};
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
backToPlace(650, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
} else {
if (bossMove == 4){
if (initThis == false){
if (health > 0){
shoot(20, startPosition.x, startPosition.y, 30, 5, 2, 50, true, 30, 0, _root);
};
if ((((this.y > (GSEngine.player.y - 10))) && ((this.y < (GSEngine.player.y + 10))))){
shoot2(73, boss1.periM2.x, (boss1.periM2.y + 20), 0, 50, 1, 50, false, this);
};
if ((((this.y <= 300)) && ((this.rotation == 0)))){
this.rotation = 2;
} else {
if ((((this.y >= 100)) && ((this.rotation == 0)))){
this.rotation = -2;
};
};
if ((((this.rotation == 2)) && ((this.y > 100)))){
this.y = (this.y - 2);
};
if (this.y <= 100){
this.rotation = -2;
};
if ((((this.rotation == -2)) && ((this.y < 300)))){
this.y = (this.y + 2);
};
if (this.y >= 300){
this.rotation = 2;
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
backToPlace(600, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
};
};
};
};
};
if (_arg1 == 2){
if (bossMove == 1){
if (initThis == false){
if (this.x > 350){
if (this.rotation < 22){
this.rotation = (this.rotation + 2);
} else {
if (this.rotation >= 22){
if (health > 0){
shoot(14, (this.x - 75), (this.y - 30), 180, 9, 5, 15, false, 25, 0, _root);
};
};
};
this.x = (this.x - 2);
} else {
if (this.x <= 350){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
};
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
if (this.scaleX == -1){
if (this.x < 900){
this.x = (this.x - 7);
};
if (this.x > 900){
this.scaleX = 1;
};
};
if (this.scaleX != -1){
backToPlace(550, 240);
};
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
} else {
if (bossMove == 2){
if (initThis == false){
if ((((this.x <= -200)) && ((changePos == 1)))){
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
changePos = 2;
} else {
if ((((this.x >= 900)) && ((changePos == 2)))){
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
changePos = 3;
} else {
if ((((this.x <= -200)) && ((changePos == 3)))){
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
bMovementType = (bMovementType + 1);
initThis = true;
changePos = 1;
};
};
};
if ((((this.x > -200)) && ((changePos == 1)))){
this.x = (this.x - 12);
if (health > 0){
shoot2(53, (this.x + 50), this.y, 30, 16, 3, 10, false, _root);
};
} else {
if ((((this.x <= 900)) && ((changePos == 2)))){
this.scaleX = -1;
this.x = (this.x + 12);
this.y = 400;
if (health > 0){
shoot2(53, this.x, this.y, 30, 16, 3, 10, false, _root);
};
} else {
if ((((this.x > -200)) && ((changePos == 3)))){
this.scaleX = 1;
this.x = (this.x - 12);
this.y = 100;
if (health > 0){
shoot2(53, this.x, this.y, 30, 16, 3, 10, false, _root);
};
};
};
};
};
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
if (this.scaleX == -1){
if (this.x < 900){
this.x = (this.x - 7);
};
if (this.x > 900){
this.scaleX = 1;
};
};
if (this.scaleX != -1){
backToPlace(600, 240);
};
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
} else {
if (bossMove == 3){
if (initThis == false){
this.x = (this.x - 2);
if ((((this.y <= 100)) && ((changePos == 1)))){
changePos = 2;
};
if ((((this.y >= 390)) && ((changePos == 2)))){
changePos = 1;
};
if (health > 0){
shoot3(63, (this.x - 30), this.y, 0, 5, 3, 20, false, 20, 0, _root);
shoot2(53, (this.x + 50), this.y, 30, 11, 3, 10, false, _root);
};
if ((((this.y > 100)) && ((changePos == 1)))){
this.y = (this.y - 4);
};
if ((((this.y <= 400)) && ((changePos == 2)))){
this.y = (this.y + 4);
};
if (this.x < 0){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
if (this.scaleX == -1){
if (this.x < 900){
this.x = (this.x - 7);
};
if (this.x > 900){
this.scaleX = 1;
};
};
if (this.scaleX != -1){
backToPlace(700, 400);
};
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
} else {
if (bossMove == 4){
if (initThis == false){
this.x = (this.x - 0.5);
if (health > 0){
shoot(71, (this.x - 30), (this.y - 75), 0, 9, 5, 40, false, -10, 30, _root);
shoot2(63, (this.x - 60), (this.y - 20), 0, 5, 3, 100, false, _root);
shoot3(72, (this.x - 80), this.y, 0, 11, 6, 40, false, 20, 10, _root);
};
if (this.x < 500){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
if (this.scaleX == -1){
if (this.x < 900){
this.x = (this.x - 7);
};
if (this.x > 900){
this.scaleX = 1;
};
};
if (this.scaleX != -1){
backToPlace(600, 240);
};
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
};
};
};
};
};
if (_arg1 == 3){
if (bossMove == 1){
if (initThis == false){
if (changePos == 1){
if (this.x > 100){
this.x = (this.x - 1.7);
this.rotation = (this.rotation + 2);
if (health > 0){
shoot2(73, (boss3.x - 30), boss3.y, 0, 100, 1, 4, false, this);
shoot3(73, (boss3.x + 19), (boss3.y - 9), 135, 100, 1, 4, false, 0, 0, this);
shoot4(73, (boss3.x + 19), (boss3.y + 14), -135, 100, 1, 4, false, this);
};
} else {
if (this.x < 100){
changePos = 2;
};
};
} else {
if (changePos == 2){
if (this.x < 550){
if ((this.rotation - 0) > 4){
this.rotation = (this.rotation - 4);
} else {
this.rotation = 0;
this.x = (this.x + 1.5);
if (health > 0){
shoot2(54, (this.x - 100), this.y, (180 + ((Math.random() * 20) - 10)), 5, 1, 40, false, _root);
shoot3(54, (this.x + 65), (this.y + 75), (45 + ((Math.random() * 20) - 10)), 5, 1, 40, false, 0, 0, _root);
shoot4(54, (this.x + 65), (this.y - 75), (-45 + ((Math.random() * 20) - 10)), 5, 1, 40, false, _root);
};
};
} else {
if (this.x > 550){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - ((boss3.miniBoss3Bit1.y + 26) / 5));
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - ((boss3.miniBoss3Bit2.y - 23) / 5));
boss3.periM2.y = (boss3.periM2.y - ((boss3.periM2.y + 58) / 5));
boss3.periM3.y = (boss3.periM3.y - ((boss3.periM3.y - 5) / 5));
backToPlace(550, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
} else {
if (bossMove == 2){
if (initThis == false){
this.y = (this.y - ((this.y - GSEngine.player.y) / 30));
if (changePos == 1){
if (boss3.miniBoss3Bit1.rotation >= -132){
boss3.miniBoss3Bit1.rotation = (boss3.miniBoss3Bit1.rotation - 3);
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - 1);
boss3.periM2.y = (boss3.periM2.y - 1);
boss3.miniBoss3Bit2.rotation = (boss3.miniBoss3Bit2.rotation + 3);
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y + 1);
boss3.periM3.y = (boss3.periM3.y + 1);
} else {
if (boss3.miniBoss3Bit1.rotation <= -132){
if (health > 0){
shoot2(73, (boss3.x - 30), boss3.y, 0, 100, 1, 4, true, this);
shoot4(14, (this.x + 10), (this.y - 80), (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, _root);
shoot(14, (this.x + 10), (this.y + 80), (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, 0, 0, _root);
};
};
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - ((boss3.miniBoss3Bit1.y + 26) / 5));
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - ((boss3.miniBoss3Bit2.y - 23) / 5));
boss3.periM2.y = (boss3.periM2.y - ((boss3.periM2.y + 58) / 5));
boss3.periM3.y = (boss3.periM3.y - ((boss3.periM3.y - 5) / 5));
backToPlace(600, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 3){
if (initThis == false){
if (boss3.miniBoss3Bit1.rotation < 10){
boss3.miniBoss3Bit1.rotation = (boss3.miniBoss3Bit1.rotation + 3);
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y + 1);
boss3.periM2.y = (boss3.periM2.y + 1);
boss3.miniBoss3Bit2.rotation = (boss3.miniBoss3Bit2.rotation - 3);
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - 1);
boss3.periM3.y = (boss3.periM3.y - 1);
} else {
if ((((this.x > 800)) && ((changePos == 2)))){
this.scaleX = 1;
this.y = 400;
changePos = 1;
};
if ((((this.x <= -200)) && ((changePos == 1)))){
this.scaleX = -1;
this.y = 400;
changePos = 2;
};
if (changePos == 1){
this.x = (this.x - 9);
this.y = (this.y - 4);
if (health > 0){
shoot3(14, (this.x + 65), (this.y + 75), (45 + ((Math.random() * 20) - 10)), 3, 1, 300, false, 0, 0, _root);
shoot4(14, (this.x + 65), (this.y - 75), (-45 + ((Math.random() * 20) - 10)), 3, 1, 100, false, _root);
};
if ((((this.x < 800)) && ((this.x > 700)))){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
if (changePos == 2){
this.x = (this.x + 9);
this.y = (this.y - 4);
if (health > 0){
shoot3(14, (this.x - 65), (this.y + 75), (135 + ((Math.random() * 20) - 10)), 3, 1, 300, false, 0, 0, _root);
shoot4(14, (this.x - 65), (this.y - 75), (-135 + ((Math.random() * 20) - 10)), 3, 1, 300, false, _root);
};
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - ((boss3.miniBoss3Bit1.y + 26) / 5));
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - ((boss3.miniBoss3Bit2.y - 23) / 5));
boss3.periM2.y = (boss3.periM2.y - ((boss3.periM2.y + 58) / 5));
boss3.periM3.y = (boss3.periM3.y - ((boss3.periM3.y - 5) / 5));
backToPlace(600, 400);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 4){
if (initThis == false){
if (changePos == 1){
if (boss3.miniBoss3Bit1.rotation >= -132){
boss3.miniBoss3Bit1.rotation = (boss3.miniBoss3Bit1.rotation - 3);
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - 1);
boss3.periM2.y = (boss3.periM2.y - 1);
boss3.miniBoss3Bit2.rotation = (boss3.miniBoss3Bit2.rotation + 3);
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y + 1);
boss3.periM3.y = (boss3.periM3.y + 1);
} else {
if (boss3.miniBoss3Bit1.rotation <= -132){
changePos = 2;
};
};
};
if (changePos == 2){
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - ((boss3.miniBoss3Bit1.y - (_root.movingTarget.y - 220)) / 1));
boss3.periM2.y = (boss3.periM2.y - ((boss3.periM2.y - (_root.movingTarget.y - 230)) / 1));
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - ((boss3.miniBoss3Bit2.y - (_root.movingTarget2.y - 220)) / 1));
boss3.periM3.y = (boss3.periM3.y - ((boss3.periM3.y - (_root.movingTarget2.y - 230)) / 1));
if (health > 0){
shoot2(73, (boss3.x - 30), boss3.y, 0, 100, 1, 4, true, this);
shoot4(14, (this.x + 10), _root.movingTarget.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, _root);
shoot(14, (this.x + 10), _root.movingTarget2.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, 0, 0, _root);
};
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
boss3.miniBoss3Bit1.y = (boss3.miniBoss3Bit1.y - ((boss3.miniBoss3Bit1.y + 26) / 5));
boss3.miniBoss3Bit2.y = (boss3.miniBoss3Bit2.y - ((boss3.miniBoss3Bit2.y - 23) / 5));
boss3.periM2.y = (boss3.periM2.y - ((boss3.periM2.y + 58) / 5));
boss3.periM3.y = (boss3.periM3.y - ((boss3.periM3.y - 5) / 5));
backToPlace(600, 240);
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
};
};
};
if (_arg1 == 4){
trace(initThis, changePos);
_local5 = stage.globalToLocal(new Point(boss4.center.x, boss4.center.y));
_local6 = stage.globalToLocal(new Point(boss4.center.x, boss4.center.y));
_local7 = boss4.miniBoss4Bit1.localToGlobal(new Point(0, 0));
_local8 = boss4.miniBoss4Bit2.localToGlobal(new Point(0, 0));
boss4.periM3.x = (boss4.miniBoss4Bit1.x + 30);
boss4.periM3.y = (boss4.miniBoss4Bit1.y + 20);
boss4.periM2.x = (boss4.miniBoss4Bit2.x + 30);
boss4.periM2.y = (boss4.miniBoss4Bit2.y + 20);
if (bossMove == 1){
if (initThis == false){
this.y = (this.y - ((this.y - _root.movingTarget2.y) / 15));
if (radius < 150){
radius = (radius + 5);
} else {
if ((((radius > 145)) && ((radius < 155)))){
radius = 150;
};
};
_local9 = ((angleInDegrees * Math.PI) / 180);
boss4.miniBoss4Bit2.x = ((_local6.x - 20) + (radius * Math.cos(_local9)));
boss4.miniBoss4Bit2.y = (_local6.y + (radius * Math.sin(_local9)));
angleInDegrees = (angleInDegrees + 6);
_local10 = ((angleInDegrees2 * Math.PI) / 180);
boss4.miniBoss4Bit1.x = ((_local5.x - 20) + (radius * Math.cos(_local10)));
boss4.miniBoss4Bit1.y = (_local5.y + (radius * Math.sin(_local10)));
angleInDegrees2 = (angleInDegrees2 + 6);
shoot(14, this.x, this.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, true, 0, 0, _root);
shoot2(14, this.x, this.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, _root);
shoot3(14, _local7.x, _local7.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, 0, 0, _root);
shoot4(14, _local8.x, _local8.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, _root);
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
this.boss4.miniBoss4Bit1.x = (this.boss4.miniBoss4Bit1.x - ((this.boss4.miniBoss4Bit1.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (this.boss4.y - 30)) / 2));
this.boss4.miniBoss4Bit2.x = (this.boss4.miniBoss4Bit2.x - ((this.boss4.miniBoss4Bit2.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (this.boss4.y - 30)) / 2));
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
backToPlace(550, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 2){
if (initThis == false){
if (changePos == 1){
this.x = (this.x - 4);
shoot3(14, this.x, (this.y - 50), (180 + ((Math.random() * 34) - 17)), 2, 1, 100, false, 0, 0, _root);
shoot4(14, this.x, (this.y + 50), (180 + ((Math.random() * 34) - 17)), 2, 1, 100, false, _root);
shoot2(73, (boss4.x - 30), boss4.y, 0, 100, 1, 4, false, this);
if (this.x < 300){
changePos = 2;
};
};
if (changePos == 2){
shoot3(14, this.x, _root.movingTarget.y, (180 + ((Math.random() * 34) - 17)), 2, 1, 100, false, 0, 0, _root);
shoot4(14, this.x, _root.movingTarget2.y, (180 + ((Math.random() * 34) - 17)), 2, 1, 100, false, _root);
shoot2(73, (boss4.x - 30), boss4.y, 0, 100, 1, 4, true, this);
_local11 = this.localToGlobal(new Point(boss4.miniBoss4Bit1.x, boss4.miniBoss4Bit1.y));
_local12 = this.localToGlobal(new Point(boss4.miniBoss4Bit2.x, boss4.miniBoss4Bit2.y));
this.x = (this.x - ((this.x - GSEngine.posX) / 30));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (_root.movingTarget.y - 260)) / 4));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (_root.movingTarget2.y - 260)) / 4));
boss4.periM3.x = (boss4.miniBoss4Bit1.x + 10);
boss4.periM3.y = (boss4.miniBoss4Bit1.y + 10);
boss4.periM2.x = (boss4.miniBoss4Bit2.x + 10);
boss4.periM2.y = (boss4.miniBoss4Bit2.y + 10);
};
} else {
if (initThis == true){
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
this.boss4.miniBoss4Bit1.x = (this.boss4.miniBoss4Bit1.x - ((this.boss4.miniBoss4Bit1.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (this.boss4.y - 30)) / 2));
this.boss4.miniBoss4Bit2.x = (this.boss4.miniBoss4Bit2.x - ((this.boss4.miniBoss4Bit2.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (this.boss4.y - 30)) / 2));
nextMoveTimer++;
backToPlace(800, 240);
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 3){
if (initThis == false){
this.boss4.periM2.x = this.boss4.miniBoss4Bit1.x;
this.boss4.periM2.y = this.boss4.miniBoss4Bit1.y;
this.boss4.periM3.x = this.boss4.miniBoss4Bit2.x;
this.boss4.periM3.y = this.boss4.miniBoss4Bit2.y;
if (changePos == 1){
shoot2(55, this.x, this.y, 0, 2, 1, 100, false, _root);
shoot3(73, (boss4.miniBoss4Bit1.x + 50), (boss4.miniBoss4Bit1.y + 110), 0, 50, 1, 50, false, 0, 0, this.boss4.miniBoss4Bit1);
shoot4(73, (boss4.miniBoss4Bit2.x + 40), (boss4.miniBoss4Bit2.y + 10), 0, 50, 1, 50, false, this.boss4.miniBoss4Bit2);
if (boss4.miniBoss4Bit1.x > -800){
boss4.miniBoss4Bit1.x = (boss4.miniBoss4Bit1.x - 10);
boss4.miniBoss4Bit2.x = (boss4.miniBoss4Bit2.x - 10);
boss4.miniBoss4Bit1.y = (boss4.miniBoss4Bit1.y - 4);
boss4.miniBoss4Bit2.y = (boss4.miniBoss4Bit2.y + 4);
} else {
if (boss4.miniBoss4Bit1.x < -800){
boss4.miniBoss4Bit1.y = -200;
boss4.miniBoss4Bit2.y = 150;
changePos = 2;
shootTimer = 0;
shootTimer2 = 0;
shootTimer3 = 0;
shootTimer4 = 0;
shootTimer5 = 0;
};
};
};
if (changePos == 2){
boss4.miniBoss4Bit1.scaleX = -1;
boss4.miniBoss4Bit2.scaleX = -1;
shoot2(55, this.x, this.y, 0, 2, 1, 100, false, _root);
if (boss4.miniBoss4Bit1.x < 750){
boss4.miniBoss4Bit1.x = (boss4.miniBoss4Bit1.x + 10);
boss4.miniBoss4Bit2.x = (boss4.miniBoss4Bit2.x + 10);
boss4.miniBoss4Bit1.y = (boss4.miniBoss4Bit1.y + 4);
boss4.miniBoss4Bit2.y = (boss4.miniBoss4Bit2.y - 4);
} else {
if (boss4.miniBoss4Bit1.x > 750){
changePos = 3;
shootTimer = 0;
shootTimer2 = 0;
shootTimer3 = 0;
shootTimer4 = 0;
shootTimer5 = 0;
shootTimer6 = 0;
shootTimer7 = 0;
shootTimer8 = 0;
};
};
};
if (changePos == 3){
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
this.x = (this.x - 3);
shoot2(55, this.x, this.y, 0, 2, 1, 100, false, _root);
if (boss4.miniBoss4Bit1.x > -100){
boss4.miniBoss4Bit1.y = -120;
boss4.miniBoss4Bit2.y = 70;
boss4.miniBoss4Bit1.x = (boss4.miniBoss4Bit1.x - 10);
boss4.miniBoss4Bit2.x = (boss4.miniBoss4Bit2.x - 10);
} else {
if (boss4.miniBoss4Bit1.x < -100){
changePos = 4;
shootTimer = 0;
shootTimer2 = 0;
shootTimer3 = 0;
shootTimer4 = 0;
shootTimer5 = 0;
shootTimer6 = 0;
shootTimer7 = 0;
shootTimer8 = 0;
};
};
};
if (changePos == 4){
shoot2(55, this.x, this.y, 0, 2, 1, 100, false, _root);
this.boss4.miniBoss4Bit1.x = (this.boss4.miniBoss4Bit1.x - ((this.boss4.miniBoss4Bit1.x - this.boss4.x) / 3));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (boss4.center.y - 50)) / 3));
this.boss4.miniBoss4Bit2.x = (this.boss4.miniBoss4Bit2.x - ((this.boss4.miniBoss4Bit2.x - this.boss4.x) / 3));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (boss4.center.y + 50)) / 6));
if ((((this.boss4.miniBoss4Bit1.x == this.boss4.x)) && ((this.boss4.miniBoss4Bit1.y == (boss4.center.y - 50))))){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
} else {
if (initThis == true){
this.boss4.miniBoss4Bit1.x = (this.boss4.miniBoss4Bit1.x - ((this.boss4.miniBoss4Bit1.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (this.boss4.y - 30)) / 2));
this.boss4.miniBoss4Bit2.x = (this.boss4.miniBoss4Bit2.x - ((this.boss4.miniBoss4Bit2.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (this.boss4.y - 30)) / 2));
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 4){
if (initThis == false){
tembakRot = (tembakRot + 4);
shoot2(54, this.x, this.y, tembakRot, 2, 1, 100, false, _root);
shoot3(54, this.x, this.y, (tembakRot + 180), 2, 1, 100, false, 0, 0, _root);
if ((((changePos == 1)) && ((radius < 350)))){
radius = (radius + 2);
} else {
if ((((changePos == 1)) && ((radius > 349)))){
changePos = 2;
};
};
if ((((changePos == 2)) && ((radius > 50)))){
radius = (radius - 2);
} else {
if ((((changePos == 2)) && ((radius < 51)))){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
_local13 = ((angleInDegrees * Math.PI) / 180);
boss4.miniBoss4Bit2.x = ((_local6.x - 20) + (radius * Math.cos(_local13)));
boss4.miniBoss4Bit2.y = (_local6.y + (radius * Math.sin(_local13)));
boss4.periM2.x = boss4.miniBoss4Bit2.x;
boss4.periM2.y = boss4.miniBoss4Bit2.y;
angleInDegrees = (angleInDegrees - 5);
_local14 = ((angleInDegrees2 * Math.PI) / 180);
boss4.miniBoss4Bit1.x = ((_local5.x - 20) + (radius * Math.cos(_local14)));
boss4.miniBoss4Bit1.y = (_local5.y + (radius * Math.sin(_local14)));
boss4.periM3.x = boss4.miniBoss4Bit1.x;
boss4.periM3.y = boss4.miniBoss4Bit1.y;
angleInDegrees2 = (angleInDegrees2 - 5);
} else {
if (initThis == true){
this.boss4.miniBoss4Bit1.x = (this.boss4.miniBoss4Bit1.x - ((this.boss4.miniBoss4Bit1.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit1.y = (this.boss4.miniBoss4Bit1.y - ((this.boss4.miniBoss4Bit1.y - (this.boss4.y - 30)) / 2));
this.boss4.miniBoss4Bit2.x = (this.boss4.miniBoss4Bit2.x - ((this.boss4.miniBoss4Bit2.x - this.boss4.x) / 2));
this.boss4.miniBoss4Bit2.y = (this.boss4.miniBoss4Bit2.y - ((this.boss4.miniBoss4Bit2.y - (this.boss4.y - 30)) / 2));
boss4.miniBoss4Bit1.scaleX = 1;
boss4.miniBoss4Bit2.scaleX = 1;
backToPlace(350, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
};
};
};
if (_arg1 == 5){
_local16 = stage.globalToLocal(new Point(boss5.boss3Cannon1.x, boss5.boss3Cannon1.y));
if (bossMove == 1){
if (initThis == false){
this.x = (this.x - 0.5);
if (this.x < 500){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
if ((((changePos == 1)) && ((boss5.boss3Cannon1.rotation > -50)))){
boss5.boss3Cannon1.rotation = (boss5.boss3Cannon1.rotation - 2);
boss5.boss3Cannon2.rotation = (boss5.boss3Cannon2.rotation - 2);
boss5.boss3Cannon3.rotation = (boss5.boss3Cannon3.rotation - 2);
boss5.boss3Cannon4.rotation = (boss5.boss3Cannon4.rotation - 2);
boss5.boss3Cannon5.rotation = (boss5.boss3Cannon5.rotation - 2);
shoot(80, (this.x - 35), (this.y - 20), (boss5.boss3Cannon1.rotation + 160), 7, 2, 100, false, 20, 0, _root);
shoot2(80, (this.x - 35), (this.y + 20), (boss5.boss3Cannon3.rotation + 160), 9, 1, 100, false, _root);
shoot3(80, (this.x - 35), (this.y + 40), (boss5.boss3Cannon4.rotation + 160), 8, 1, 100, false, 0, 0, _root);
shoot4(80, (this.x - 35), (this.y + 60), (boss5.boss3Cannon5.rotation + 160), 6, 1, 100, false, _root);
shoot5(48, (this.x - 20), (this.y - 40), 0, 18, 1, 100, false, _root);
} else {
if ((((changePos == 1)) && ((boss5.boss3Cannon1.rotation < -49)))){
changePos = 2;
};
};
if ((((changePos == 2)) && ((boss5.boss3Cannon1.rotation < 90)))){
boss5.boss3Cannon1.rotation = (boss5.boss3Cannon1.rotation + 2);
boss5.boss3Cannon2.rotation = (boss5.boss3Cannon2.rotation + 2);
boss5.boss3Cannon3.rotation = (boss5.boss3Cannon3.rotation + 2);
boss5.boss3Cannon4.rotation = (boss5.boss3Cannon4.rotation + 2);
boss5.boss3Cannon5.rotation = (boss5.boss3Cannon5.rotation + 2);
shoot(80, (this.x - 35), (this.y - 20), (boss5.boss3Cannon1.rotation + 160), 7, 2, 100, false, 20, 0, _root);
shoot2(80, (this.x - 35), (this.y + 20), (boss5.boss3Cannon3.rotation + 160), 9, 1, 100, false, _root);
shoot3(80, (this.x - 35), (this.y + 40), (boss5.boss3Cannon4.rotation + 160), 8, 1, 100, false, 0, 0, _root);
shoot4(80, (this.x - 35), (this.y + 60), (boss5.boss3Cannon5.rotation + 160), 6, 1, 100, false, _root);
shoot5(48, (this.x - 20), (this.y - 40), 0, 18, 1, 100, false, _root);
} else {
if ((((changePos == 2)) && ((boss5.boss3Cannon1.rotation > 89)))){
changePos = 1;
};
};
} else {
if (initThis == true){
if ((((this.rotation > -6)) && ((this.rotation < 6)))){
this.rotation = 0;
} else {
this.rotation = (this.rotation + 6);
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 2){
if (initThis == false){
this.rotation = (this.rotation + 5);
this.x = (this.x - ((this.x - GSEngine.posX) / 30));
shoot5(48, (this.x - 20), (this.y - 40), 0, 15, 1, 25, true, _root);
} else {
if (initThis == true){
if ((((this.rotation > -6)) && ((this.rotation < 6)))){
this.rotation = 0;
} else {
this.rotation = (this.rotation + 6);
};
backToPlace(350, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 3){
if (initThis == false){
if ((((this.x > -150)) && ((changePos == 1)))){
this.x = (this.x - 12);
this.y = (this.y - ((this.y - GSEngine.posY) / 40));
shoot5(53, this.x, (this.y - ((Math.random() * 150) - 50)), 0, 1, 1, 50, false, _root);
} else {
if ((((this.x < -149)) && ((changePos == 1)))){
changePos = 2;
};
};
if ((((changePos == 2)) && ((this.x < 700)))){
this.x = (this.x + 12);
this.y = (this.y - ((this.y - GSEngine.posY) / 40));
shoot5(53, this.x, (this.y - ((Math.random() * 150) - 50)), 0, 1, 1, 50, false, _root);
} else {
if ((((this.x > 699)) && ((changePos == 2)))){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
};
} else {
if (initThis == true){
if ((((this.rotation > -6)) && ((this.rotation < 6)))){
this.rotation = 0;
} else {
this.rotation = (this.rotation + 6);
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 4){
if (initThis == false){
if ((((GSEngine.posX > this.x)) && ((changePos == 1)))){
changePos = 2;
};
if ((((changePos == 2)) && ((this.rotation < 360)))){
this.rotation = (this.rotation + 5);
this.x = (this.x - ((this.x - GSEngine.posX) / 35));
this.y = (this.y - ((this.y - GSEngine.posY) / 60));
} else {
if ((((changePos == 2)) && ((this.rotation > 355)))){
this.rotation = 0;
changePos = 1;
};
};
if (changePos == 1){
_local17 = Math.atan2((GSEngine.player.y - startPosition.y), (GSEngine.player.x - startPosition.x));
boss5.boss3Cannon1.rotation = (((_local17 / Math.PI) * 180) + 190);
boss5.boss3Cannon2.rotation = (((_local17 / Math.PI) * 180) + 190);
boss5.boss3Cannon3.rotation = (((_local17 / Math.PI) * 180) + 190);
boss5.boss3Cannon4.rotation = (((_local17 / Math.PI) * 180) + 190);
boss5.boss3Cannon5.rotation = (((_local17 / Math.PI) * 180) + 190);
shoot(80, (this.x - 35), (this.y - 20), (boss5.boss3Cannon1.rotation + 180), 7, 2, 100, false, 20, 0, _root);
shoot2(80, (this.x - 35), (this.y + 20), (boss5.boss3Cannon2.rotation + 180), 9, 1, 100, false, _root);
shoot3(80, (this.x - 35), (this.y + 40), (boss5.boss3Cannon3.rotation + 180), 8, 1, 100, false, 0, 0, _root);
shoot4(80, (this.x - 35), (this.y + 60), (boss5.boss3Cannon4.rotation + 180), 6, 1, 100, false, _root);
};
shoot5(53, this.x, (this.y + (Math.random() * 200)), 2, 5, 1, 75, true, _root);
} else {
if (initThis == true){
if ((((this.rotation > -6)) && ((this.rotation < 6)))){
this.rotation = 0;
} else {
this.rotation = (this.rotation + 6);
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
};
};
};
if (_arg1 == 6){
if (bossMove == 1){
if (initThis == false){
this.x = (this.x - 1);
shoot5(48, this.x, this.y, 0, 10, 1, 200, false, _root);
shoot4(53, this.x, this.y, 0, 2, 1, 100, false, _root);
if (this.x < 100){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
if ((((changePos == 1)) && ((this.y < 600)))){
if (this.rotation > -90){
this.rotation = (this.rotation - 3);
};
_local18 = (this.rotation * (Math.PI / 180));
ySpeed = (Math.sin(_local18) * 10);
this.y = (this.y - ySpeed);
} else {
if ((((changePos == 1)) && ((this.y > 600)))){
changePos = 2;
};
};
if ((((changePos == 2)) && ((this.y > -120)))){
if (this.rotation < 90){
this.rotation = (this.rotation + 3);
};
_local18 = (this.rotation * (Math.PI / 180));
ySpeed = (Math.sin(_local18) * 10);
this.y = (this.y - ySpeed);
} else {
if ((((changePos == 2)) && ((this.y < 120)))){
changePos = 1;
};
};
} else {
if (initThis == true){
if (this.rotation > 0){
this.rotation = (this.rotation - 4);
} else {
if (this.rotation < 0){
this.rotation = (this.rotation + 4);
};
};
if ((((this.rotation > -5)) && ((this.rotation < 5)))){
this.rotation = 0;
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 2){
if (initThis == false){
this.x = (this.x - 1);
if (this.x < 200){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
shoot5(81, 750, (Math.random() * 480), 0, 3, 1, 50, false, _root);
shoot4(48, this.x, this.y, 0, 8, 1, 100, false, _root);
} else {
if (initThis == true){
if (this.rotation > 0){
this.rotation = (this.rotation - 4);
} else {
if (this.rotation < 0){
this.rotation = (this.rotation + 4);
};
};
if ((((this.rotation > -5)) && ((this.rotation < 5)))){
this.rotation = 0;
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 3){
if (initThis == false){
this.y = (this.y - ((this.y - GSEngine.posY) / 40));
this.x = (this.x - 0.2);
if (this.x < 550){
bMovementType = (bMovementType + 1);
changePos = 1;
initThis = true;
};
shoot3(54, (this.x - 90), (this.y - 15), 180, 13, 2, 100, false, 30, 0, _root);
shoot(58, this.x, this.y, 0, 14, 1, 100, false, 20, 0, _root);
shoot2(14, (this.x + 20), (this.y - 20), -150, 5, 1, 100, false, _root);
shoot5(14, (this.x + 20), (this.y + 20), 150, 5, 1, 100, false, _root);
shoot4(53, this.x, this.y, 0, 9, 1, 200, false, _root);
} else {
if (initThis == true){
if (this.rotation > 0){
this.rotation = (this.rotation - 4);
} else {
if (this.rotation < 0){
this.rotation = (this.rotation + 4);
};
};
if ((((this.rotation > -5)) && ((this.rotation < 5)))){
this.rotation = 0;
};
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
} else {
if (bossMove == 4){
if (initThis == false){
shoot4(53, this.x, this.y, 0, 12, 1, 40, true, _root);
if ((((changePos == 1)) && ((this.x > -300)))){
this.scaleX = 1;
this.x = (this.x - 15);
this.y = (this.y - ((this.y - GSEngine.posY) / 15));
} else {
if ((((changePos == 1)) && ((this.x < -290)))){
changePos = 2;
};
};
if ((((changePos == 2)) && ((this.x < 900)))){
this.scaleX = -1;
this.x = (this.x + 15);
this.y = (this.y - ((this.y - GSEngine.posY) / 15));
} else {
if ((((changePos == 2)) && ((this.x > 890)))){
changePos = 1;
};
};
} else {
if (initThis == true){
if (this.rotation > 0){
this.rotation = (this.rotation - 4);
} else {
if (this.rotation < 0){
this.rotation = (this.rotation + 4);
};
};
if ((((this.rotation > -5)) && ((this.rotation < 5)))){
this.rotation = 0;
};
backToPlace(750, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
};
};
};
if (_arg1 == 7){
_local19 = boss7.localToGlobal(new Point((boss7.center.x + 90), (boss7.center.y - 100)));
_local20 = boss7.localToGlobal(new Point((boss7.center.x - 120), (boss7.center.y - 20)));
_local21 = boss7.localToGlobal(new Point((boss7.center.x + 45), (boss7.center.y + 110)));
if (bossMove == 1){
if (initThis == false){
this.rotation = (this.rotation + 6);
shoot(83, this.x, this.y, this.rotation, 5, 1, 100, false, 20, 0, _root);
shoot2(82, _local19.x, _local19.y, (this.rotation - 45), 5, 1, 100, true, _root);
shoot5(82, _local20.x, _local20.y, (this.rotation + 180), 5, 1, 100, false, _root);
shoot4(82, _local21.x, _local21.y, (this.rotation + 70), 5, 1, 100, false, _root);
shoot3(14, this.x, this.y, (Math.random() * 360), 3, 5, 300, false, 0, 0, _root);
if (this.x > 360){
this.x = (this.x - 1);
};
} else {
if (initThis == true){
this.rotation = (this.rotation + 2);
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 2){
if (initThis == false){
this.rotation = (this.rotation + 5);
shoot2(82, _local19.x, _local19.y, (this.rotation - 45), 5, 1, 50, true, _root);
shoot5(82, _local20.x, _local20.y, (this.rotation + 180), 5, 1, 90, false, _root);
shoot4(82, _local21.x, _local21.y, (this.rotation + 70), 5, 1, 90, false, _root);
shoot(83, this.x, this.y, 0, 7, 1, 100, false, 20, 0, _root);
shoot3(83, this.x, this.y, 180, 7, 1, 100, false, 20, 0, _root);
this.y = (this.y - ((this.y - GSEngine.posY) / 10));
if (this.x < 0){
changePos = 2;
};
if (this.x > 700){
changePos = 1;
};
if (changePos == 1){
this.x = (this.x - 11);
};
if (changePos == 2){
this.x = (this.x + 11);
};
} else {
if (initThis == true){
this.rotation = (this.rotation + 2);
backToPlace(600, 240);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 3){
if (initThis == false){
this.rotation = (this.rotation + 9);
if ((((changePos == 1)) && ((this.x < 0)))){
changePos = 2;
};
if ((((changePos == 2)) && ((this.x > 700)))){
changePos = 1;
};
if (changePos == 1){
this.x = (this.x - 9);
};
if (changePos == 2){
this.x = (this.x + 9);
};
shoot2(83, _local19.x, _local19.y, 270, 5, 1, 100, true, _root);
shoot5(83, _local20.x, _local20.y, 270, 5, 1, 100, false, _root);
shoot4(83, _local21.x, _local21.y, 270, 5, 1, 100, false, _root);
shoot3(14, this.x, this.y, ((Math.random() * 40) + 70), 3, 5, 100, false, 0, 0, _root);
} else {
if (initThis == true){
backToPlace(700, 50);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 4){
if (initThis == false){
this.rotation = (this.rotation + 7);
if (shootTimer > 7){
_local23 = 0;
while (_local23 < 7) {
_local24 = new Bullet();
_local24.x = ((110 * _local23) + 50);
_local24.y = -50;
_local24.bulletBehav = 83;
_local24.tipe = 12;
_local24.rotation = 270;
_root.addChild(_local24);
_local23++;
};
shootTimer = 0;
threshold1 = (threshold1 + 1);
};
if (threshold1 > 27){
bMovementType = (bMovementType + 1);
initThis = true;
threshold2 = 0;
threshold3 = 0;
threshold4 = 0;
threshold1 = 0;
};
shoot3(14, this.x, this.y, (((Math.atan2((this.y - GSEngine.posY), (this.x - GSEngine.posX)) / Math.PI) * 180) + 180), 3, 5, 100, false, 0, 0, _root);
} else {
if (initThis == true){
backToPlace(600, 250);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
if (_arg1 == 8){
if (bossMove == 1){
if (initThis == false){
shoot(84, 750, ((Math.random() * 400) + 50), 0, 7, 1, 100, false, 20, 0, _root);
shoot2(82, this.x, this.y, ((Math.random() * 60) + 150), 3, 2, 200, true, _root);
this.x = (this.x - 0.5);
if (this.x == 350){
bMovementType = (bMovementType + 1);
};
} else {
if (initThis == true){
backToPlace(600, 250);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 2){
if (initThis == false){
if (this.x > 650){
changePos = 1;
};
if (this.x < 200){
changePos = 2;
};
if (changePos == 1){
this.x = (this.x - 2);
};
if (changePos == 2){
this.x = (this.x + 2);
};
shoot(84, 750, ((Math.random() * 400) + 50), 0, 13, 1, 100, false, 20, 0, _root);
shoot2(53, this.x, this.y, ((Math.random() * 60) + 150), 7, 1, 200, true, _root);
shoot3(53, (Math.random() * 800), 0, 0, 12, 1, 100, false, 0, 0, _root);
shoot4(53, 750, ((Math.random() * 600) - 100), 0, 12, 1, 100, false, _root);
} else {
if (initThis == true){
backToPlace(600, 250);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 3){
if (initThis == false){
tembakRot = (tembakRot + 3);
shoot2(82, this.x, this.y, tembakRot, 2, 1, 200, true, _root);
shoot6(82, this.x, this.y, 0, 9, 30, 300, false, _root);
this.x = (this.x - 0.3);
if (health < 60){
shoot3(53, this.x, this.y, (tembakRot - 10), 3, 1, 200, false, 0, 0, _root);
};
} else {
if (initThis == true){
backToPlace(500, 250);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 4){
if (initThis == false){
shoot3(83, (this.x - 50), this.y, ((Math.atan2((this.y - GSEngine.posY), (this.x - GSEngine.posX)) / Math.PI) * 180), 7, 1, 100, false, 0, 0, _root);
shoot2(82, (this.x + ((Math.random() * 70) + 20)), (this.y - 20), ((Math.random() * 80) - 135), 2, 1, 200, true, _root);
shoot4(82, (this.x + ((Math.random() * 70) + 20)), (this.y + 20), ((Math.random() * 80) + 65), 2, 1, 200, false, _root);
this.y = (this.y - ((this.y - GSEngine.posY) / 20));
if (this.x > 550){
changePos = 1;
};
if (this.x < 150){
changePos = 2;
};
if (changePos == 1){
this.x = (this.x - 2);
};
if (changePos == 2){
this.x = (this.x + 2);
};
} else {
if (initThis == true){
backToPlace(500, 250);
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
if (_arg1 == 9){
_local25 = stage.globalToLocal(new Point(GSEngine.player.x, GSEngine.player.y));
_local26 = stage.globalToLocal(new Point(boss9.center.x, boss9.center.y));
_local27 = boss9.bossBit1.localToGlobal(new Point(0, 0));
_local28 = boss9.bossBit2.localToGlobal(new Point(0, 0));
_local29 = boss9.bossBit3.localToGlobal(new Point(0, 0));
_local30 = boss9.bossBit4.localToGlobal(new Point(0, 0));
_local31 = boss9.bossBit5.localToGlobal(new Point(0, 0));
_local32 = boss9.bossBit6.localToGlobal(new Point(0, 0));
_local33 = boss9.bossBit7.localToGlobal(new Point(0, 0));
_local34 = boss9.bossBit8.localToGlobal(new Point(0, 0));
_local35 = ((angleInDegrees * Math.PI) / 180);
_local36 = ((angleInDegreesB2 * Math.PI) / 180);
_local37 = ((angleInDegreesB3 * Math.PI) / 180);
_local38 = ((angleInDegreesB4 * Math.PI) / 180);
_local39 = ((angleInDegreesB5 * Math.PI) / 180);
_local40 = ((angleInDegreesB6 * Math.PI) / 180);
_local41 = ((angleInDegreesB7 * Math.PI) / 180);
_local42 = ((angleInDegreesB8 * Math.PI) / 180);
if ((((bit1Hp < 0)) && ((boss9.bossBit1.visible == true)))){
_local43 = 0;
while (_local43 < 2) {
_local44 = new ledakanMusuh2();
_local44.x = _local27.x;
_local44.y = _local27.y;
stage.addChild(_local44);
_local44.type = 8;
_local43++;
};
boss9.bossBit1.visible = false;
};
if ((((bit2Hp < 0)) && ((boss9.bossBit2.visible == true)))){
_local45 = 0;
while (_local45 < 2) {
_local46 = new ledakanMusuh2();
_local46.x = _local28.x;
_local46.y = _local28.y;
stage.addChild(_local46);
_local46.type = 8;
_local45++;
};
boss9.bossBit2.visible = false;
};
if ((((bit3Hp < 0)) && ((boss9.bossBit3.visible == true)))){
_local47 = 0;
while (_local47 < 2) {
_local48 = new ledakanMusuh2();
_local48.x = _local29.x;
_local48.y = _local29.y;
stage.addChild(_local48);
_local48.type = 8;
_local47++;
};
boss9.bossBit3.visible = false;
};
if ((((bit4Hp < 0)) && ((boss9.bossBit4.visible == true)))){
_local49 = 0;
while (_local49 < 2) {
_local50 = new ledakanMusuh2();
_local50.x = _local30.x;
_local50.y = _local30.y;
stage.addChild(_local50);
_local50.type = 8;
_local49++;
};
boss9.bossBit4.visible = false;
};
if ((((bit5Hp < 0)) && ((boss9.bossBit5.visible == true)))){
_local51 = 0;
while (_local51 < 2) {
_local52 = new ledakanMusuh2();
_local52.x = _local31.x;
_local52.y = _local31.y;
stage.addChild(_local52);
_local52.type = 8;
_local51++;
};
boss9.bossBit5.visible = false;
};
if ((((bit6Hp < 0)) && ((boss9.bossBit6.visible == true)))){
_local53 = 0;
while (_local53 < 2) {
_local54 = new ledakanMusuh2();
_local54.x = _local32.x;
_local54.y = _local32.y;
stage.addChild(_local54);
_local54.type = 8;
_local53++;
};
boss9.bossBit6.visible = false;
};
if ((((bit1Hp < 0)) && ((boss9.bossBit7.visible == true)))){
_local55 = 0;
while (_local55 < 2) {
_local56 = new ledakanMusuh2();
_local56.x = _local33.x;
_local56.y = _local33.y;
stage.addChild(_local56);
_local56.type = 8;
_local55++;
};
boss9.bossBit7.visible = false;
};
if ((((bit1Hp < 0)) && ((boss9.bossBit8.visible == true)))){
_local57 = 0;
while (_local57 < 2) {
_local58 = new ledakanMusuh2();
_local58.x = _local34.x;
_local58.y = _local34.y;
stage.addChild(_local58);
_local58.type = 8;
_local57++;
};
boss9.bossBit8.visible = false;
};
boss9.periM2.x = boss9.bossBit1.x;
boss9.periM2.y = boss9.bossBit1.y;
boss9.periM3.x = boss9.bossBit2.x;
boss9.periM3.y = boss9.bossBit2.y;
boss9.periM4.x = boss9.bossBit3.x;
boss9.periM4.y = boss9.bossBit3.y;
boss9.periM5.x = boss9.bossBit4.x;
boss9.periM5.y = boss9.bossBit4.y;
boss9.periM6.x = boss9.bossBit5.x;
boss9.periM6.y = boss9.bossBit5.y;
boss9.periM7.x = boss9.bossBit6.x;
boss9.periM7.y = boss9.bossBit6.y;
boss9.periM8.x = boss9.bossBit7.x;
boss9.periM8.y = boss9.bossBit7.y;
boss9.periM9.x = boss9.bossBit8.x;
boss9.periM9.y = boss9.bossBit8.y;
if (bossMove == 1){
if (initThis == false){
bitMovTimer++;
this.y = (this.y - ((this.y - GSEngine.player.y) / 20));
this.x = (this.x - ((this.x - (GSEngine.player.x + 200)) / 20));
shoot(83, _local27.x, _local27.y, 0, ((Math.random() * 15) + 12), 1, 45, true, 0, 0, _root);
shoot2(83, _local28.x, _local28.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot3(83, _local29.x, _local29.y, 0, ((Math.random() * 15) + 12), 1, 200, false, 0, 0, _root);
shoot4(83, _local30.x, _local30.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot5(83, _local31.x, _local31.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot6(83, _local32.x, _local32.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot7(83, _local33.x, _local33.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot8(83, _local34.x, _local34.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
if (bitChangePos == 1){
boss9.bossBit1.x = (boss9.bossBit1.x + bit1SpeedX);
boss9.bossBit1.y = (boss9.bossBit1.y + bit1SpeedY);
boss9.bossBit2.x = (boss9.bossBit2.x + bit2SpeedX);
boss9.bossBit2.y = (boss9.bossBit2.y + bit2SpeedY);
boss9.bossBit3.x = (boss9.bossBit3.x + bit3SpeedX);
boss9.bossBit3.y = (boss9.bossBit3.y + bit3SpeedY);
boss9.bossBit4.x = (boss9.bossBit4.x + bit4SpeedX);
boss9.bossBit4.y = (boss9.bossBit4.y + bit4SpeedY);
boss9.bossBit5.x = (boss9.bossBit5.x + bit5SpeedX);
boss9.bossBit5.y = (boss9.bossBit5.y + bit5SpeedY);
boss9.bossBit6.x = (boss9.bossBit6.x + bit6SpeedX);
boss9.bossBit6.y = (boss9.bossBit6.y + bit6SpeedY);
boss9.bossBit7.x = (boss9.bossBit7.x + bit7SpeedX);
boss9.bossBit7.y = (boss9.bossBit7.y + bit7SpeedY);
boss9.bossBit8.x = (boss9.bossBit8.x + bit8SpeedX);
boss9.bossBit8.y = (boss9.bossBit8.y + bit8SpeedY);
};
if (bitChangePos == 2){
boss9.bossBit1.x = (boss9.bossBit1.x - ((boss9.bossBit1.x - -120) / 10));
boss9.bossBit1.y = (boss9.bossBit1.y - ((boss9.bossBit1.y - 1) / 10));
boss9.bossBit2.x = (boss9.bossBit2.x - ((boss9.bossBit2.x - -53) / 10));
boss9.bossBit2.y = (boss9.bossBit2.y - ((boss9.bossBit2.y - -44) / 10));
boss9.bossBit3.x = (boss9.bossBit3.x - ((boss9.bossBit3.x - 4) / 10));
boss9.bossBit3.y = (boss9.bossBit3.y - ((boss9.bossBit3.y - -81) / 10));
boss9.bossBit4.x = (boss9.bossBit4.x - ((boss9.bossBit4.x - 84) / 10));
boss9.bossBit4.y = (boss9.bossBit4.y - ((boss9.bossBit4.y - -56) / 10));
boss9.bossBit5.x = (boss9.bossBit5.x - ((boss9.bossBit5.x - 86) / 10));
boss9.bossBit5.y = (boss9.bossBit5.y - ((boss9.bossBit5.y - -14) / 10));
boss9.bossBit6.x = (boss9.bossBit6.x - ((boss9.bossBit6.x - 75) / 10));
boss9.bossBit6.y = (boss9.bossBit6.y - ((boss9.bossBit6.y - 34) / 10));
boss9.bossBit7.x = (boss9.bossBit7.x - ((boss9.bossBit7.x - 7) / 10));
boss9.bossBit7.y = (boss9.bossBit7.y - ((boss9.bossBit7.y - 63) / 10));
boss9.bossBit8.x = (boss9.bossBit8.x - ((boss9.bossBit8.x - -59) / 10));
boss9.bossBit8.y = (boss9.bossBit8.y - ((boss9.bossBit8.y - 44) / 10));
};
if ((((bitMovTimer > 30)) && ((bitChangePos == 1)))){
bit1SpeedX = ((Math.random() * 12) - 6);
bit1SpeedY = ((Math.random() * 12) - 6);
bit2SpeedX = ((Math.random() * 12) - 6);
bit2SpeedY = ((Math.random() * 12) - 6);
bit3SpeedX = ((Math.random() * 12) - 6);
bit3SpeedY = ((Math.random() * 12) - 6);
bit4SpeedX = ((Math.random() * 12) - 6);
bit4SpeedY = ((Math.random() * 12) - 6);
bit5SpeedX = ((Math.random() * 12) - 6);
bit5SpeedY = ((Math.random() * 12) - 6);
bit6SpeedX = ((Math.random() * 12) - 6);
bit6SpeedY = ((Math.random() * 12) - 6);
bit7SpeedX = ((Math.random() * 12) - 6);
bit7SpeedY = ((Math.random() * 12) - 6);
bit8SpeedX = ((Math.random() * 12) - 6);
bit8SpeedY = ((Math.random() * 12) - 6);
bitMovTimer = 0;
bitChangePos = 2;
};
if ((((bitMovTimer > 30)) && ((bitChangePos == 2)))){
bitChangePos = 1;
bitMovTimer = 0;
};
} else {
if (initThis == true){
backToPlace(500, 250);
boss9.bossBit1.x = (boss9.bossBit1.x - ((boss9.bossBit1.x - -120) / 10));
boss9.bossBit1.y = (boss9.bossBit1.y - ((boss9.bossBit1.y - 1) / 10));
boss9.bossBit2.x = (boss9.bossBit2.x - ((boss9.bossBit2.x - -53) / 10));
boss9.bossBit2.y = (boss9.bossBit2.y - ((boss9.bossBit2.y - -44) / 10));
boss9.bossBit3.x = (boss9.bossBit3.x - ((boss9.bossBit3.x - 4) / 10));
boss9.bossBit3.y = (boss9.bossBit3.y - ((boss9.bossBit3.y - -81) / 10));
boss9.bossBit4.x = (boss9.bossBit4.x - ((boss9.bossBit4.x - 84) / 10));
boss9.bossBit4.y = (boss9.bossBit4.y - ((boss9.bossBit4.y - -56) / 10));
boss9.bossBit5.x = (boss9.bossBit5.x - ((boss9.bossBit5.x - 86) / 10));
boss9.bossBit5.y = (boss9.bossBit5.y - ((boss9.bossBit5.y - -14) / 10));
boss9.bossBit6.x = (boss9.bossBit6.x - ((boss9.bossBit6.x - 75) / 10));
boss9.bossBit6.y = (boss9.bossBit6.y - ((boss9.bossBit6.y - 34) / 10));
boss9.bossBit7.x = (boss9.bossBit7.x - ((boss9.bossBit7.x - 7) / 10));
boss9.bossBit7.y = (boss9.bossBit7.y - ((boss9.bossBit7.y - 63) / 10));
boss9.bossBit8.x = (boss9.bossBit8.x - ((boss9.bossBit8.x - -59) / 10));
boss9.bossBit8.y = (boss9.bossBit8.y - ((boss9.bossBit8.y - 44) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 2){
if (initThis == false){
boss9.bossBit1.x = ((_local26.x - 20) + (radius * Math.cos(_local35)));
boss9.bossBit1.y = (_local26.y + (radius * Math.sin(_local35)));
boss9.bossBit2.x = ((_local26.x - 20) + (radius * Math.cos(_local36)));
boss9.bossBit2.y = (_local26.y + (radius * Math.sin(_local36)));
boss9.bossBit3.x = ((_local26.x - 20) + (radius * Math.cos(_local37)));
boss9.bossBit3.y = (_local26.y + (radius * Math.sin(_local37)));
boss9.bossBit4.x = ((_local26.x - 20) + (radius * Math.cos(_local38)));
boss9.bossBit4.y = (_local26.y + (radius * Math.sin(_local38)));
boss9.bossBit5.x = ((_local26.x - 20) + (radius * Math.cos(_local39)));
boss9.bossBit5.y = (_local26.y + (radius * Math.sin(_local39)));
boss9.bossBit6.x = ((_local26.x - 20) + (radius * Math.cos(_local40)));
boss9.bossBit6.y = (_local26.y + (radius * Math.sin(_local40)));
boss9.bossBit7.x = ((_local26.x - 20) + (radius * Math.cos(_local41)));
boss9.bossBit7.y = (_local26.y + (radius * Math.sin(_local41)));
boss9.bossBit8.x = ((_local26.x - 20) + (radius * Math.cos(_local42)));
boss9.bossBit8.y = (_local26.y + (radius * Math.sin(_local42)));
this.y = (this.y - ((this.y - GSEngine.player.y) / 30));
if (this.x < 700){
this.x = (this.x - ((this.x - (GSEngine.player.x + 350)) / 30));
};
if (shootTimer > 7){
_local59 = 0;
while (_local59 < 20) {
_local60 = new Bullet();
_local60.x = this.x;
_local60.y = this.y;
_local60.bulletBehav = 82;
_local60.tipe = 82;
_local60.rotation = (_local59 * 18);
_root.addChild(_local60);
_local59++;
};
shootTimer = 0;
threshold1 = (threshold1 + 1);
};
shoot2(83, _local28.x, _local28.y, 0, ((Math.random() * 15) + 17), 1, 200, true, _root);
shoot3(82, (this.x - 50), this.y, (((Math.atan2((this.y - GSEngine.player.y), (this.x - GSEngine.player.x)) / Math.PI) * 180) + 180), 7, 1, 50, false, 0, 0, _root);
shoot4(83, _local30.x, _local30.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
shoot6(83, _local32.x, _local32.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
shoot8(83, _local34.x, _local34.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
angleInDegrees = (angleInDegrees + 6);
angleInDegreesB2 = (angleInDegreesB2 + 6);
angleInDegreesB3 = (angleInDegreesB3 + 6);
angleInDegreesB4 = (angleInDegreesB4 + 6);
angleInDegreesB5 = (angleInDegreesB5 + 6);
angleInDegreesB6 = (angleInDegreesB6 + 6);
angleInDegreesB7 = (angleInDegreesB7 + 6);
angleInDegreesB8 = (angleInDegreesB8 + 6);
if (radius > 140){
radius = 140;
} else {
if (radius < 140){
radius = (radius + 2);
};
};
} else {
if (initThis == true){
backToPlace(500, 250);
boss9.bossBit1.x = (boss9.bossBit1.x - ((boss9.bossBit1.x - boss9.center.x) / 10));
boss9.bossBit1.y = (boss9.bossBit1.y - ((boss9.bossBit1.y - boss9.center.y) / 10));
boss9.bossBit2.x = (boss9.bossBit2.x - ((boss9.bossBit2.x - boss9.center.x) / 10));
boss9.bossBit2.y = (boss9.bossBit2.y - ((boss9.bossBit2.y - boss9.center.y) / 10));
boss9.bossBit3.x = (boss9.bossBit3.x - ((boss9.bossBit3.x - boss9.center.x) / 10));
boss9.bossBit3.y = (boss9.bossBit3.y - ((boss9.bossBit3.y - boss9.center.y) / 10));
boss9.bossBit4.x = (boss9.bossBit4.x - ((boss9.bossBit4.x - boss9.center.x) / 10));
boss9.bossBit4.y = (boss9.bossBit4.y - ((boss9.bossBit4.y - boss9.center.y) / 10));
boss9.bossBit5.x = (boss9.bossBit5.x - ((boss9.bossBit5.x - boss9.center.x) / 10));
boss9.bossBit5.y = (boss9.bossBit5.y - ((boss9.bossBit5.y - boss9.center.y) / 10));
boss9.bossBit6.x = (boss9.bossBit6.x - ((boss9.bossBit6.x - boss9.center.x) / 10));
boss9.bossBit6.y = (boss9.bossBit6.y - ((boss9.bossBit6.y - boss9.center.y) / 10));
boss9.bossBit7.x = (boss9.bossBit7.x - ((boss9.bossBit7.x - boss9.center.x) / 10));
boss9.bossBit7.y = (boss9.bossBit7.y - ((boss9.bossBit7.y - boss9.center.y) / 10));
boss9.bossBit8.x = (boss9.bossBit8.x - ((boss9.bossBit8.x - boss9.center.x) / 10));
boss9.bossBit8.y = (boss9.bossBit8.y - ((boss9.bossBit8.y - boss9.center.y) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 3){
if (initThis == false){
bitMovTimer++;
boss9.bossBit1.x = ((_local26.x - 20) + (radius * Math.cos(_local35)));
boss9.bossBit1.y = (_local26.y + (radius * Math.sin(_local35)));
boss9.bossBit2.x = ((_local26.x - 20) + (radius * Math.cos(_local36)));
boss9.bossBit2.y = (_local26.y + (radius * Math.sin(_local36)));
boss9.bossBit3.x = ((_local26.x - 20) + (radius * Math.cos(_local37)));
boss9.bossBit3.y = (_local26.y + (radius * Math.sin(_local37)));
boss9.bossBit4.x = ((_local26.x - 20) + (radius * Math.cos(_local38)));
boss9.bossBit4.y = (_local26.y + (radius * Math.sin(_local38)));
boss9.bossBit5.x = ((_local26.x - 20) + (radius * Math.cos(_local39)));
boss9.bossBit5.y = (_local26.y + (radius * Math.sin(_local39)));
boss9.bossBit6.x = ((_local26.x - 20) + (radius * Math.cos(_local40)));
boss9.bossBit6.y = (_local26.y + (radius * Math.sin(_local40)));
boss9.bossBit7.x = ((_local26.x - 20) + (radius * Math.cos(_local41)));
boss9.bossBit7.y = (_local26.y + (radius * Math.sin(_local41)));
boss9.bossBit8.x = ((_local26.x - 20) + (radius * Math.cos(_local42)));
boss9.bossBit8.y = (_local26.y + (radius * Math.sin(_local42)));
if (bitMovTimer > 50){
_local61 = new dodgeEf2();
stage.addChild(_local61);
_local61.x = this.x;
_local61.y = this.y;
this.x = (GSEngine.player.x + 150);
this.y = GSEngine.player.y;
_local62 = new dodgeEf2();
stage.addChild(_local62);
_local62.x = this.x;
_local62.y = this.y;
radius = 0;
bitMovTimer = 0;
};
if (bitMovTimer < 50){
this.x = (this.x - ((this.x - 700) / 30));
this.y = (this.y - ((this.y - GSEngine.player.y) / 50));
};
angleInDegrees = (angleInDegrees + 6);
angleInDegreesB2 = (angleInDegreesB2 + 6);
angleInDegreesB3 = (angleInDegreesB3 + 6);
angleInDegreesB4 = (angleInDegreesB4 + 6);
angleInDegreesB5 = (angleInDegreesB5 + 6);
angleInDegreesB6 = (angleInDegreesB6 + 6);
angleInDegreesB7 = (angleInDegreesB7 + 6);
angleInDegreesB8 = (angleInDegreesB8 + 6);
if (radius > 160){
radius = 140;
} else {
if (radius < 160){
radius = (radius + 3);
};
};
radius = (radius + 3);
shoot(73, -50, 0, 0, 70, 1, 200, false, 0, 0, this.boss9);
shoot2(82, _local28.x, _local28.y, 180, 3, 1, 200, true, _root);
shoot4(82, _local30.x, _local30.y, 180, 3, 1, 200, false, _root);
shoot3(82, _local32.x, _local32.y, 180, 3, 1, 200, false, 0, 0, _root);
} else {
if (initThis == true){
backToPlace(500, 250);
boss9.bossBit1.x = (boss9.bossBit1.x - ((boss9.bossBit1.x - boss9.center.x) / 10));
boss9.bossBit1.y = (boss9.bossBit1.y - ((boss9.bossBit1.y - boss9.center.y) / 10));
boss9.bossBit2.x = (boss9.bossBit2.x - ((boss9.bossBit2.x - boss9.center.x) / 10));
boss9.bossBit2.y = (boss9.bossBit2.y - ((boss9.bossBit2.y - boss9.center.y) / 10));
boss9.bossBit3.x = (boss9.bossBit3.x - ((boss9.bossBit3.x - boss9.center.x) / 10));
boss9.bossBit3.y = (boss9.bossBit3.y - ((boss9.bossBit3.y - boss9.center.y) / 10));
boss9.bossBit4.x = (boss9.bossBit4.x - ((boss9.bossBit4.x - boss9.center.x) / 10));
boss9.bossBit4.y = (boss9.bossBit4.y - ((boss9.bossBit4.y - boss9.center.y) / 10));
boss9.bossBit5.x = (boss9.bossBit5.x - ((boss9.bossBit5.x - boss9.center.x) / 10));
boss9.bossBit5.y = (boss9.bossBit5.y - ((boss9.bossBit5.y - boss9.center.y) / 10));
boss9.bossBit6.x = (boss9.bossBit6.x - ((boss9.bossBit6.x - boss9.center.x) / 10));
boss9.bossBit6.y = (boss9.bossBit6.y - ((boss9.bossBit6.y - boss9.center.y) / 10));
boss9.bossBit7.x = (boss9.bossBit7.x - ((boss9.bossBit7.x - boss9.center.x) / 10));
boss9.bossBit7.y = (boss9.bossBit7.y - ((boss9.bossBit7.y - boss9.center.y) / 10));
boss9.bossBit8.x = (boss9.bossBit8.x - ((boss9.bossBit8.x - boss9.center.x) / 10));
boss9.bossBit8.y = (boss9.bossBit8.y - ((boss9.bossBit8.y - boss9.center.y) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
if (bossMove == 4){
if (initThis == false){
if (this.y > GSEngine.posY){
this.y = (this.y - ((this.y - (GSEngine.player.y + 200)) / 50));
trace("gajalan");
};
if (this.y < GSEngine.posY){
this.y = (this.y - ((this.y - (GSEngine.player.y - 200)) / 50));
};
if (this.y > 500){
this.y = 500;
};
if (this.y < 0){
this.y = 0;
};
shoot3(82, this.x, this.y, ((((Math.atan2((this.y - GSEngine.player.y), (this.x - GSEngine.player.x)) / Math.PI) * 180) + 160) + (Math.random() * 40)), 2, 1, 10, true, 0, 0, _root);
if (shootTimer > 20){
_local63 = 0;
while (_local63 < 7) {
_local64 = new Bullet();
_local64.x = 750;
_local64.y = ((70 * _local63) + 20);
_local64.bulletBehav = 83;
_local64.tipe = 12;
_local64.rotation = 0;
_root.addChild(_local64);
_local63++;
};
shootTimer = 0;
};
if (bitMovTimer > 300){
bMovementType = (bMovementType + 1);
};
bitMovTimer++;
} else {
if (initThis == true){
backToPlace(500, 250);
boss9.bossBit1.x = (boss9.bossBit1.x - ((boss9.bossBit1.x - (boss9.center.x + 700)) / 30));
boss9.bossBit1.y = (boss9.bossBit1.y - (((boss9.bossBit1.y - boss9.center.y) - 180) / 30));
boss9.bossBit2.x = (boss9.bossBit2.x - ((boss9.bossBit2.x - (boss9.center.x + 700)) / 30));
boss9.bossBit2.y = (boss9.bossBit2.y - (((boss9.bossBit2.y - boss9.center.y) - 120) / 30));
boss9.bossBit3.x = (boss9.bossBit3.x - ((boss9.bossBit3.x - (boss9.center.x + 700)) / 30));
boss9.bossBit3.y = (boss9.bossBit3.y - (((boss9.bossBit3.y - boss9.center.y) - 60) / 30));
boss9.bossBit4.x = (boss9.bossBit4.x - ((boss9.bossBit4.x - (boss9.center.x + 700)) / 30));
boss9.bossBit4.y = (boss9.bossBit4.y - ((boss9.bossBit4.y - boss9.center.y) / 30));
boss9.bossBit5.x = (boss9.bossBit5.x - ((boss9.bossBit5.x - (boss9.center.x + 700)) / 30));
boss9.bossBit5.y = (boss9.bossBit5.y - (((boss9.bossBit5.y - boss9.center.y) + 60) / 30));
boss9.bossBit6.x = (boss9.bossBit6.x - ((boss9.bossBit6.x - (boss9.center.x + 700)) / 30));
boss9.bossBit6.y = (boss9.bossBit6.y - (((boss9.bossBit6.y - boss9.center.y) + 120) / 30));
boss9.bossBit7.x = (boss9.bossBit7.x - ((boss9.bossBit7.x - (boss9.center.x + 700)) / 30));
boss9.bossBit7.y = (boss9.bossBit7.y - (((boss9.bossBit7.y - boss9.center.y) + 180) / 30));
boss9.bossBit8.x = (boss9.bossBit8.x - ((boss9.bossBit8.x - (boss9.center.x + 700)) / 30));
boss9.bossBit8.y = (boss9.bossBit8.y - (((boss9.bossBit8.y - boss9.center.y) + 240) / 30));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
};
};
};
};
if (_arg1 == 10){
_local65 = this.globalToLocal(new Point(GSEngine.player.x, GSEngine.player.y));
_local66 = stage.globalToLocal(new Point(boss10.center.x, boss10.center.y));
_local67 = boss10.bossBit1.localToGlobal(new Point(0, 0));
_local68 = boss10.bossBit2.localToGlobal(new Point(0, 0));
_local69 = boss10.bossBit3.localToGlobal(new Point(0, 0));
_local70 = boss10.bossBit4.localToGlobal(new Point(0, 0));
_local71 = boss10.bossBit5.localToGlobal(new Point(0, 0));
_local72 = boss10.bossBit6.localToGlobal(new Point(0, 0));
_local73 = boss10.bossBit7.localToGlobal(new Point(0, 0));
_local74 = boss10.bossBit8.localToGlobal(new Point(0, 0));
trace(_local65.x);
_local75 = ((angleInDegrees * Math.PI) / 180);
_local76 = ((angleInDegreesB2 * Math.PI) / 180);
_local77 = ((angleInDegreesB3 * Math.PI) / 180);
_local78 = ((angleInDegreesB4 * Math.PI) / 180);
_local79 = ((angleInDegreesB5 * Math.PI) / 180);
_local80 = ((angleInDegreesB6 * Math.PI) / 180);
_local81 = ((angleInDegreesB7 * Math.PI) / 180);
_local82 = ((angleInDegreesB8 * Math.PI) / 180);
if ((((bit1Hp < 0)) && ((boss10.bossBit1.visible == true)))){
_local83 = 0;
while (_local83 < 2) {
_local84 = new ledakanMusuh2();
_local84.x = _local67.x;
_local84.y = _local67.y;
stage.addChild(_local84);
_local84.type = 8;
_local83++;
};
boss10.bossBit1.visible = false;
};
if ((((bit2Hp < 0)) && ((boss10.bossBit2.visible == true)))){
_local85 = 0;
while (_local85 < 2) {
_local86 = new ledakanMusuh2();
_local86.x = _local68.x;
_local86.y = _local68.y;
stage.addChild(_local86);
_local86.type = 8;
_local85++;
};
boss10.bossBit2.visible = false;
};
if ((((bit3Hp < 0)) && ((boss10.bossBit3.visible == true)))){
_local87 = 0;
while (_local87 < 2) {
_local88 = new ledakanMusuh2();
_local88.x = _local69.x;
_local88.y = _local69.y;
stage.addChild(_local88);
_local88.type = 8;
_local87++;
};
boss10.bossBit3.visible = false;
};
if ((((bit4Hp < 0)) && ((boss10.bossBit4.visible == true)))){
_local89 = 0;
while (_local89 < 2) {
_local90 = new ledakanMusuh2();
_local90.x = _local70.x;
_local90.y = _local70.y;
stage.addChild(_local90);
_local90.type = 8;
_local89++;
};
boss10.bossBit4.visible = false;
};
if ((((bit5Hp < 0)) && ((boss10.bossBit5.visible == true)))){
_local91 = 0;
while (_local91 < 2) {
_local92 = new ledakanMusuh2();
_local92.x = _local71.x;
_local92.y = _local71.y;
stage.addChild(_local92);
_local92.type = 8;
_local91++;
};
boss10.bossBit5.visible = false;
};
if ((((bit6Hp < 0)) && ((boss10.bossBit6.visible == true)))){
_local93 = 0;
while (_local93 < 2) {
_local94 = new ledakanMusuh2();
_local94.x = _local72.x;
_local94.y = _local72.y;
stage.addChild(_local94);
_local94.type = 8;
_local93++;
};
boss10.bossBit6.visible = false;
};
if ((((bit1Hp < 0)) && ((boss10.bossBit7.visible == true)))){
_local95 = 0;
while (_local95 < 2) {
_local96 = new ledakanMusuh2();
_local96.x = _local73.x;
_local96.y = _local73.y;
stage.addChild(_local96);
_local96.type = 8;
_local95++;
};
boss10.bossBit7.visible = false;
};
if ((((bit1Hp < 0)) && ((boss10.bossBit8.visible == true)))){
_local97 = 0;
while (_local97 < 2) {
_local98 = new ledakanMusuh2();
_local98.x = _local74.x;
_local98.y = _local74.y;
stage.addChild(_local98);
_local98.type = 8;
_local97++;
};
boss10.bossBit8.visible = false;
};
boss10.periM2.x = boss10.bossBit1.x;
boss10.periM2.y = boss10.bossBit1.y;
boss10.periM3.x = boss10.bossBit2.x;
boss10.periM3.y = boss10.bossBit2.y;
boss10.periM4.x = boss10.bossBit3.x;
boss10.periM4.y = boss10.bossBit3.y;
boss10.periM5.x = boss10.bossBit4.x;
boss10.periM5.y = boss10.bossBit4.y;
boss10.periM6.x = boss10.bossBit5.x;
boss10.periM6.y = boss10.bossBit5.y;
boss10.periM7.x = boss10.bossBit6.x;
boss10.periM7.y = boss10.bossBit6.y;
boss10.periM8.x = boss10.bossBit7.x;
boss10.periM8.y = boss10.bossBit7.y;
boss10.periM9.x = boss10.bossBit8.x;
boss10.periM9.y = boss10.bossBit8.y;
if (bossMove == 1){
if (initThis == false){
bitMovTimer++;
this.y = (this.y - ((this.y - GSEngine.player.y) / 20));
this.x = (this.x - ((this.x - (GSEngine.player.x + 200)) / 20));
shoot(83, _local67.x, _local67.y, 0, ((Math.random() * 15) + 12), 1, 45, true, 0, 0, _root);
shoot2(83, _local68.x, _local68.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot3(83, _local69.x, _local69.y, 0, ((Math.random() * 15) + 12), 1, 200, false, 0, 0, _root);
shoot4(83, _local70.x, _local70.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot5(83, _local71.x, _local71.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot6(83, _local72.x, _local72.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot7(83, _local73.x, _local73.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
shoot8(83, _local74.x, _local74.y, 0, ((Math.random() * 15) + 12), 1, 200, false, _root);
if (bitChangePos == 1){
boss10.bossBit1.x = (boss10.bossBit1.x + bit1SpeedX);
boss10.bossBit1.y = (boss10.bossBit1.y + bit1SpeedY);
boss10.bossBit2.x = (boss10.bossBit2.x + bit2SpeedX);
boss10.bossBit2.y = (boss10.bossBit2.y + bit2SpeedY);
boss10.bossBit3.x = (boss10.bossBit3.x + bit3SpeedX);
boss10.bossBit3.y = (boss10.bossBit3.y + bit3SpeedY);
boss10.bossBit4.x = (boss10.bossBit4.x + bit4SpeedX);
boss10.bossBit4.y = (boss10.bossBit4.y + bit4SpeedY);
boss10.bossBit5.x = (boss10.bossBit5.x + bit5SpeedX);
boss10.bossBit5.y = (boss10.bossBit5.y + bit5SpeedY);
boss10.bossBit6.x = (boss10.bossBit6.x + bit6SpeedX);
boss10.bossBit6.y = (boss10.bossBit6.y + bit6SpeedY);
boss10.bossBit7.x = (boss10.bossBit7.x + bit7SpeedX);
boss10.bossBit7.y = (boss10.bossBit7.y + bit7SpeedY);
boss10.bossBit8.x = (boss10.bossBit8.x + bit8SpeedX);
boss10.bossBit8.y = (boss10.bossBit8.y + bit8SpeedY);
};
if (bitChangePos == 2){
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - -120) / 10));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - 1) / 10));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - -53) / 10));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - -44) / 10));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - 4) / 10));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - -81) / 10));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - 84) / 10));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - -56) / 10));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - 86) / 10));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - -14) / 10));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - 75) / 10));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - 34) / 10));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - 7) / 10));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - 63) / 10));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - -59) / 10));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - 44) / 10));
};
if ((((bitMovTimer > 30)) && ((bitChangePos == 1)))){
bit1SpeedX = ((Math.random() * 12) - 6);
bit1SpeedY = ((Math.random() * 12) - 6);
bit2SpeedX = ((Math.random() * 12) - 6);
bit2SpeedY = ((Math.random() * 12) - 6);
bit3SpeedX = ((Math.random() * 12) - 6);
bit3SpeedY = ((Math.random() * 12) - 6);
bit4SpeedX = ((Math.random() * 12) - 6);
bit4SpeedY = ((Math.random() * 12) - 6);
bit5SpeedX = ((Math.random() * 12) - 6);
bit5SpeedY = ((Math.random() * 12) - 6);
bit6SpeedX = ((Math.random() * 12) - 6);
bit6SpeedY = ((Math.random() * 12) - 6);
bit7SpeedX = ((Math.random() * 12) - 6);
bit7SpeedY = ((Math.random() * 12) - 6);
bit8SpeedX = ((Math.random() * 12) - 6);
bit8SpeedY = ((Math.random() * 12) - 6);
bitMovTimer = 0;
bitChangePos = 2;
};
if ((((bitMovTimer > 30)) && ((bitChangePos == 2)))){
bitChangePos = 1;
bitMovTimer = 0;
};
} else {
if (initThis == true){
backToPlace(500, 250);
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - -120) / 10));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - 1) / 10));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - -53) / 10));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - -44) / 10));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - 4) / 10));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - -81) / 10));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - 84) / 10));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - -56) / 10));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - 86) / 10));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - -14) / 10));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - 75) / 10));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - 34) / 10));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - 7) / 10));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - 63) / 10));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - -59) / 10));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - 44) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
bitMovTimer = 0;
lockDownTimer = 0;
GSEngine.lockedDown = false;
boss10.healing.visible = false;
};
};
};
if (bossMove == 2){
if (initThis == false){
boss10.bossBit1.x = ((_local66.x - 20) + (radius * Math.cos(_local35)));
boss10.bossBit1.y = (_local66.y + (radius * Math.sin(_local35)));
boss10.bossBit2.x = ((_local66.x - 20) + (radius * Math.cos(_local36)));
boss10.bossBit2.y = (_local66.y + (radius * Math.sin(_local36)));
boss10.bossBit3.x = ((_local66.x - 20) + (radius * Math.cos(_local37)));
boss10.bossBit3.y = (_local66.y + (radius * Math.sin(_local37)));
boss10.bossBit4.x = ((_local66.x - 20) + (radius * Math.cos(_local38)));
boss10.bossBit4.y = (_local66.y + (radius * Math.sin(_local38)));
boss10.bossBit5.x = ((_local66.x - 20) + (radius * Math.cos(_local39)));
boss10.bossBit5.y = (_local66.y + (radius * Math.sin(_local39)));
boss10.bossBit6.x = ((_local66.x - 20) + (radius * Math.cos(_local40)));
boss10.bossBit6.y = (_local66.y + (radius * Math.sin(_local40)));
boss10.bossBit7.x = ((_local66.x - 20) + (radius * Math.cos(_local41)));
boss10.bossBit7.y = (_local66.y + (radius * Math.sin(_local41)));
boss10.bossBit8.x = ((_local66.x - 20) + (radius * Math.cos(_local42)));
boss10.bossBit8.y = (_local66.y + (radius * Math.sin(_local42)));
this.y = (this.y - ((this.y - GSEngine.player.y) / 30));
if (this.x < 700){
this.x = (this.x - ((this.x - (GSEngine.player.x + 350)) / 30));
};
if (shootTimer > 7){
_local99 = 0;
while (_local99 < 20) {
_local100 = new Bullet();
_local100.x = this.x;
_local100.y = this.y;
_local100.bulletBehav = 82;
_local100.tipe = 82;
_local100.rotation = (_local99 * 18);
_root.addChild(_local100);
_local99++;
};
shootTimer = 0;
threshold1 = (threshold1 + 1);
};
shoot2(83, _local68.x, _local68.y, 0, ((Math.random() * 15) + 17), 1, 200, true, _root);
shoot3(82, (this.x - 50), this.y, (((Math.atan2((this.y - GSEngine.player.y), (this.x - GSEngine.player.x)) / Math.PI) * 180) + 180), 7, 1, 50, false, 0, 0, _root);
shoot4(83, _local70.x, _local70.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
shoot6(83, _local72.x, _local72.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
shoot8(83, _local74.x, _local74.y, 0, ((Math.random() * 15) + 17), 1, 200, false, _root);
angleInDegrees = (angleInDegrees + 6);
angleInDegreesB2 = (angleInDegreesB2 + 6);
angleInDegreesB3 = (angleInDegreesB3 + 6);
angleInDegreesB4 = (angleInDegreesB4 + 6);
angleInDegreesB5 = (angleInDegreesB5 + 6);
angleInDegreesB6 = (angleInDegreesB6 + 6);
angleInDegreesB7 = (angleInDegreesB7 + 6);
angleInDegreesB8 = (angleInDegreesB8 + 6);
if (radius > 140){
radius = 140;
} else {
if (radius < 140){
radius = (radius + 2);
};
};
} else {
if (initThis == true){
backToPlace(500, 250);
boss10.lockPeri.x = (boss10.lockPeri.x - ((boss10.lockPeri.x - boss10.center.x) / 5));
boss10.lockPeri.y = (boss10.lockPeri.y - ((boss10.lockPeri.y - boss10.center.y) / 5));
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - boss10.center.x) / 5));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - boss10.center.y) / 5));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - boss10.center.x) / 5));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - boss10.center.y) / 5));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - boss10.center.x) / 5));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - boss10.center.y) / 5));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - boss10.center.x) / 5));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - boss10.center.y) / 5));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - boss10.center.x) / 5));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - boss10.center.y) / 5));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - boss10.center.x) / 5));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - boss10.center.y) / 5));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - boss10.center.x) / 5));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - boss10.center.y) / 5));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - boss10.center.x) / 5));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - boss10.center.y) / 5));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
bitMovTimer = 0;
lockDownTimer = 0;
GSEngine.lockedDown = false;
boss10.healing.visible = false;
};
};
};
if (bossMove == 3){
if (initThis == false){
if (((((boss10.lockPeri.hitTestObject(GSEngine.player.playerPeri)) && ((GSEngine.lockedDown == false)))) && ((lockDownTimer > 40)))){
GSEngine.lockedDown = true;
};
if (GSEngine.lockedDown == true){
bitMovTimer++;
this.x = (this.x - ((this.x - 590) / 30));
this.y = (this.y - ((this.y - 250) / 30));
boss10.lockD.visible = true;
};
if (GSEngine.lockedDown == false){
lockDownTimer++;
this.x = (this.x - ((this.x - _root.movingTarget.x) / 30));
this.y = (this.y - ((this.y - _root.movingTarget.y) / 30));
boss10.lockD.visible = false;
};
if (bitMovTimer > 70){
GSEngine.lockedDown = false;
bitMovTimer = 0;
lockDownTimer = 0;
};
if (lockDownTimer > 50){
boss10.lockPeri.x = (boss10.lockPeri.x - ((boss10.lockPeri.x - _local65.x) / 10));
boss10.lockPeri.y = (boss10.lockPeri.y - ((boss10.lockPeri.y - _local65.y) / 10));
boss10.lockD.x = _local65.x;
boss10.lockD.y = _local65.y;
if (GSEngine.lockedDown == false){
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - (_local65.x + (radius * Math.cos(_local75)))) / 10));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - (_local65.y + (radius * Math.sin(_local75)))) / 10));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - (_local65.x + (radius * Math.cos(_local76)))) / 10));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - (_local65.y + (radius * Math.sin(_local76)))) / 10));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - (_local65.x + (radius * Math.cos(_local77)))) / 10));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - (_local65.y + (radius * Math.sin(_local77)))) / 10));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - (_local65.x + (radius * Math.cos(_local78)))) / 10));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - (_local65.y + (radius * Math.sin(_local78)))) / 10));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - (_local65.x + (radius * Math.cos(_local79)))) / 10));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - (_local65.y + (radius * Math.sin(_local79)))) / 10));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - (_local65.x + (radius * Math.cos(_local80)))) / 10));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - (_local65.y + (radius * Math.sin(_local80)))) / 10));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - (_local65.x + (radius * Math.cos(_local81)))) / 10));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - (_local65.y + (radius * Math.sin(_local81)))) / 10));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - (_local65.x + (radius * Math.cos(_local82)))) / 10));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - (_local65.y + (radius * Math.sin(_local82)))) / 10));
};
if (GSEngine.lockedDown == true){
boss10.bossBit1.x = (_local65.x + (radius * Math.cos(_local75)));
boss10.bossBit1.y = (_local65.y + (radius * Math.sin(_local75)));
boss10.bossBit2.x = (_local65.x + (radius * Math.cos(_local76)));
boss10.bossBit2.y = (_local65.y + (radius * Math.sin(_local76)));
boss10.bossBit3.x = (_local65.x + (radius * Math.cos(_local77)));
boss10.bossBit3.y = (_local65.y + (radius * Math.sin(_local77)));
boss10.bossBit4.x = (_local65.x + (radius * Math.cos(_local78)));
boss10.bossBit4.y = (_local65.y + (radius * Math.sin(_local78)));
boss10.bossBit5.x = (_local65.x + (radius * Math.cos(_local79)));
boss10.bossBit5.y = (_local65.y + (radius * Math.sin(_local79)));
boss10.bossBit6.x = (_local65.x + (radius * Math.cos(_local80)));
boss10.bossBit6.y = (_local65.y + (radius * Math.sin(_local80)));
boss10.bossBit7.x = (_local65.x + (radius * Math.cos(_local81)));
boss10.bossBit7.y = (_local65.y + (radius * Math.sin(_local81)));
boss10.bossBit8.x = (_local65.x + (radius * Math.cos(_local82)));
boss10.bossBit8.y = (_local65.y + (radius * Math.sin(_local82)));
};
};
if (lockDownTimer < 50){
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - (_local65.x + (radius * Math.cos(_local75)))) / 30));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - (_local65.y + (radius * Math.sin(_local75)))) / 30));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - (_local65.x + (radius * Math.cos(_local76)))) / 30));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - (_local65.y + (radius * Math.sin(_local76)))) / 30));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - (_local65.x + (radius * Math.cos(_local77)))) / 30));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - (_local65.y + (radius * Math.sin(_local77)))) / 30));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - (_local65.x + (radius * Math.cos(_local78)))) / 30));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - (_local65.y + (radius * Math.sin(_local78)))) / 30));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - (_local65.x + (radius * Math.cos(_local79)))) / 30));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - (_local65.y + (radius * Math.sin(_local79)))) / 30));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - (_local65.x + (radius * Math.cos(_local80)))) / 30));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - (_local65.y + (radius * Math.sin(_local80)))) / 30));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - (_local65.x + (radius * Math.cos(_local81)))) / 30));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - (_local65.y + (radius * Math.sin(_local81)))) / 30));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - (_local65.x + (radius * Math.cos(_local82)))) / 30));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - (_local65.y + (radius * Math.sin(_local82)))) / 30));
};
angleInDegrees = (angleInDegrees + 6);
angleInDegreesB2 = (angleInDegreesB2 + 6);
angleInDegreesB3 = (angleInDegreesB3 + 6);
angleInDegreesB4 = (angleInDegreesB4 + 6);
angleInDegreesB5 = (angleInDegreesB5 + 6);
angleInDegreesB6 = (angleInDegreesB6 + 6);
angleInDegreesB7 = (angleInDegreesB7 + 6);
angleInDegreesB8 = (angleInDegreesB8 + 6);
if (radius > 160){
radius = 140;
} else {
if (radius < 160){
radius = (radius + 3);
};
};
shoot(73, -50, 0, 0, 70, 1, 200, false, 0, 0, this.boss10);
shoot2(82, _local68.x, _local68.y, 180, 3, 1, 200, true, _root);
shoot4(82, _local70.x, _local70.y, 180, 3, 1, 200, false, _root);
shoot3(82, _local72.x, _local72.y, 180, 3, 1, 200, false, 0, 0, _root);
} else {
if (initThis == true){
bitMovTimer = 0;
lockDownTimer = 0;
backToPlace(500, 250);
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - boss10.center.x) / 10));
boss10.bossBit1.y = (boss10.bossBit1.y - ((boss10.bossBit1.y - boss10.center.y) / 10));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - boss10.center.x) / 10));
boss10.bossBit2.y = (boss10.bossBit2.y - ((boss10.bossBit2.y - boss10.center.y) / 10));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - boss10.center.x) / 10));
boss10.bossBit3.y = (boss10.bossBit3.y - ((boss10.bossBit3.y - boss10.center.y) / 10));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - boss10.center.x) / 10));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - boss10.center.y) / 10));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - boss10.center.x) / 10));
boss10.bossBit5.y = (boss10.bossBit5.y - ((boss10.bossBit5.y - boss10.center.y) / 10));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - boss10.center.x) / 10));
boss10.bossBit6.y = (boss10.bossBit6.y - ((boss10.bossBit6.y - boss10.center.y) / 10));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - boss10.center.x) / 10));
boss10.bossBit7.y = (boss10.bossBit7.y - ((boss10.bossBit7.y - boss10.center.y) / 10));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - boss10.center.x) / 10));
boss10.bossBit8.y = (boss10.bossBit8.y - ((boss10.bossBit8.y - boss10.center.y) / 10));
boss10.lockPeri.x = (boss10.lockPeri.x - ((boss10.lockPeri.x - boss10.center.x) / 10));
boss10.lockPeri.y = (boss10.lockPeri.y - ((boss10.lockPeri.y - boss10.center.y) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
GSEngine.lockedDown = false;
boss10.healing.visible = false;
};
};
};
if (bossMove == 4){
if (initThis == false){
boss10.healing.visible = true;
if (health < maxHealth){
health = (health + 1);
};
if (this.y > GSEngine.posY){
this.y = (this.y - ((this.y - (GSEngine.player.y + 200)) / 50));
};
if (this.y < GSEngine.posY){
this.y = (this.y - ((this.y - (GSEngine.player.y - 200)) / 50));
};
if (this.y > 500){
this.y = 500;
};
if (this.y < 0){
this.y = 0;
};
shoot3(82, this.x, this.y, ((((Math.atan2((this.y - GSEngine.player.y), (this.x - GSEngine.player.x)) / Math.PI) * 180) + 160) + (Math.random() * 40)), 2, 1, 10, true, 0, 0, _root);
if (shootTimer > 20){
_local101 = 0;
while (_local101 < 7) {
_local102 = new Bullet();
_local102.x = 750;
_local102.y = ((70 * _local101) + 20);
_local102.bulletBehav = 83;
_local102.tipe = 12;
_local102.rotation = 0;
_root.addChild(_local102);
_local101++;
};
shootTimer = 0;
};
if (bitMovTimer > 400){
bMovementType = (bMovementType + 1);
};
bitMovTimer++;
} else {
if (initThis == true){
backToPlace(500, 250);
boss10.lockPeri.x = (boss10.lockPeri.x - ((boss10.lockPeri.x - boss10.center.x) / 10));
boss10.lockPeri.y = (boss10.lockPeri.y - ((boss10.lockPeri.y - boss10.center.y) / 10));
boss10.bossBit1.x = (boss10.bossBit1.x - ((boss10.bossBit1.x - (boss10.center.x + 700)) / 10));
boss10.bossBit1.y = (boss10.bossBit1.y - (((boss10.bossBit1.y - boss10.center.y) - 180) / 10));
boss10.bossBit2.x = (boss10.bossBit2.x - ((boss10.bossBit2.x - (boss10.center.x + 700)) / 10));
boss10.bossBit2.y = (boss10.bossBit2.y - (((boss10.bossBit2.y - boss10.center.y) - 120) / 10));
boss10.bossBit3.x = (boss10.bossBit3.x - ((boss10.bossBit3.x - (boss10.center.x + 700)) / 10));
boss10.bossBit3.y = (boss10.bossBit3.y - (((boss10.bossBit3.y - boss10.center.y) - 60) / 10));
boss10.bossBit4.x = (boss10.bossBit4.x - ((boss10.bossBit4.x - (boss10.center.x + 700)) / 10));
boss10.bossBit4.y = (boss10.bossBit4.y - ((boss10.bossBit4.y - boss10.center.y) / 10));
boss10.bossBit5.x = (boss10.bossBit5.x - ((boss10.bossBit5.x - (boss10.center.x + 700)) / 10));
boss10.bossBit5.y = (boss10.bossBit5.y - (((boss10.bossBit5.y - boss10.center.y) + 60) / 10));
boss10.bossBit6.x = (boss10.bossBit6.x - ((boss10.bossBit6.x - (boss10.center.x + 700)) / 10));
boss10.bossBit6.y = (boss10.bossBit6.y - (((boss10.bossBit6.y - boss10.center.y) + 120) / 10));
boss10.bossBit7.x = (boss10.bossBit7.x - ((boss10.bossBit7.x - (boss10.center.x + 700)) / 10));
boss10.bossBit7.y = (boss10.bossBit7.y - (((boss10.bossBit7.y - boss10.center.y) + 180) / 10));
boss10.bossBit8.x = (boss10.bossBit8.x - ((boss10.bossBit8.x - (boss10.center.x + 700)) / 10));
boss10.bossBit8.y = (boss10.bossBit8.y - (((boss10.bossBit8.y - boss10.center.y) + 240) / 10));
changePos = 1;
threshold2 = 0;
threshold3 = 0;
threshold1 = 0;
threshold4 = 0;
threshold5 = 0;
GSEngine.lockedDown = false;
lockDownTimer = 0;
bitMovTimer = 0;
boss10.healing.visible = false;
};
};
};
};
}
public function removeThis(){
var _local1:*;
var _local2:MovieClip;
if (GSEngine.stageLevel == 1){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 2){
loot = 18;
};
if (GSEngine.stageLevel == 3){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 4){
loot = 19;
};
if (GSEngine.stageLevel == 5){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 6){
loot = 20;
};
if (GSEngine.stageLevel == 7){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 8){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 9){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if (GSEngine.stageLevel == 10){
loot = Math.ceil(((Math.random() * 30) + 1));
};
if ((Math.random() * 100) < 100){
_local2 = new LootItem();
_local2.x = this.x;
_local2.y = this.y;
_root.addChild(_local2);
_local2.gotoAndStop(loot);
_local2.loot = loot;
};
for (_local1 in GSEngine.bList) {
if (GSEngine.bList[_local1] == this){
delete GSEngine.bList[_local1];
};
};
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
if (((!((stage == null))) && (!((GSEngine.bBar == null))))){
stage.removeChild(GSEngine.bBar);
};
GSEngine.bossKilled++;
GSEngine.currentBoss--;
GSEngine.stageComplete = true;
WorldMap.levelArray.push(GSEngine.bossKilled);
}
public function clearThis(){
var _local1:*;
for (_local1 in GSEngine.bList) {
if (GSEngine.bList[_local1] == this){
delete GSEngine.bList[_local1];
};
};
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
if (((!((stage == null))) && (!((GSEngine.bBar == null))))){
stage.removeChild(GSEngine.bBar);
};
}
private function checkInit(_arg1, _arg2){
if ((((((initThis == false)) && (!((this.x == _arg1))))) && (!((this.y == _arg2))))){
initThis = true;
};
}
private function backToPlace(_arg1, _arg2){
var _local3:Number;
dx = (this.x - _arg1);
dy = (this.y - _arg2);
angle = Math.atan2(dy, dx);
ySpeed = (Math.sin(angle) * 7);
xSpeed = (Math.cos(angle) * 7);
this.x = (this.x - xSpeed);
this.y = (this.y - ySpeed);
if (this.rotation < 0){
this.rotation = (this.rotation + 1);
} else {
if (this.rotation > 0){
this.rotation = (this.rotation - 1);
};
};
if ((((this.rotation < 3)) && ((this.rotation > -3)))){
this.rotation = 0;
};
if ((((((((((dx < 10)) && ((dx > -10)))) && ((dy < 10)))) && ((dy > -10)))) && ((initThis == true)))){
this.x = _arg1;
this.y = _arg2;
initThis = false;
};
if (bossCode == 1){
_local3 = Math.atan2((GSEngine.player.y - this.y), (GSEngine.player.x - this.x));
boss1.boss1Cannon.rotation = (((_local3 / Math.PI) * 180) + 150);
shoot(4, startPosition.x, startPosition.y, 30, 7, 2, 40, false, 15, 0, _root);
shoot3(2, (this.x - 90), (this.y - 10), 30, 35, 1, 30, false, 60, 0, _root);
};
if (bossCode == 2){
shoot(14, (this.x - 75), (this.y - 30), 180, 9, 5, 15, false, 25, 0, _root);
};
if (bossCode == 3){
shoot2(82, this.x, this.y, tembakRot, 2, 1, 200, true, _root);
shoot6(82, this.x, this.y, 0, 9, 30, 300, false, _root);
};
if (bossCode == 4){
shoot(14, this.x, this.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, true, 0, 0, _root);
shoot2(14, this.x, this.y, (180 + ((Math.random() * 34) - 17)), 3, 1, 100, false, _root);
};
if (bossCode == 5){
shoot5(48, (this.x - 20), (this.y - 40), 0, 18, 1, 100, false, _root);
};
if (bossCode == 6){
shoot5(48, this.x, this.y, 0, 10, 1, 200, false, _root);
};
if (bossCode == 7){
shoot2(82, this.x, this.y, (this.rotation - 45), 5, 1, 100, true, _root);
shoot5(82, this.x, this.y, (this.rotation + 180), 5, 1, 100, false, _root);
shoot4(82, this.x, this.y, (this.rotation + 70), 5, 1, 100, false, _root);
};
if (bossCode == 8){
shoot(84, 750, ((Math.random() * 400) + 50), 0, 7, 1, 100, false, 20, 0, _root);
};
if (bossCode == 9){
shoot(83, this.x, this.y, 0, ((Math.random() * 15) + 12), 1, 45, true, 0, 0, _root);
};
if (bossCode == 10){
shoot3(82, (this.x - 50), this.y, (((Math.atan2((this.y - GSEngine.player.y), (this.x - GSEngine.player.x)) / Math.PI) * 180) + 180), 7, 1, 50, false, 0, 0, _root);
};
}
private function shoot(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11){
var _local12:int;
var _local13:MovieClip;
var _local14:int;
var _local15:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer > _arg5){
if (itungMTimer == false){
if (threshold1 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = (_arg2 + (_local12 * _arg10));
_local13.y = (_arg3 + (_local12 * _arg9));
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = _arg4;
_arg11.addChild(_local13);
_local12++;
};
threshold1 = (threshold1 + 1);
shootTimer = 0;
} else {
if (threshold1 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold1 != _arg7){
_local14 = 0;
while (_local14 < _arg6) {
_local15 = new Bullet();
_local15.x = (_arg2 + (_local14 * _arg10));
_local15.y = (_arg3 + (_local14 * _arg9));
_local15.bulletBehav = _arg1;
_local15.tipe = _arg1;
_local15.rotation = _arg4;
_arg11.addChild(_local15);
_local14++;
};
threshold1 = (threshold1 + 1);
shootTimer = 0;
} else {
if (threshold1 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold2 = 0;
threshold3 = 0;
threshold4 = 0;
threshold1 = 0;
};
};
};
};
};
};
}
private function shoot2(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer2 > _arg5){
if (itungMTimer == false){
if (threshold2 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = _arg4;
_arg9.addChild(_local11);
_local10++;
};
threshold2 = (threshold2 + 1);
shootTimer2 = 0;
} else {
if (threshold2 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold2 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = _arg4;
_arg9.addChild(_local13);
_local12++;
};
threshold2 = (threshold2 + 1);
shootTimer2 = 0;
} else {
if (threshold2 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
changePos = 1;
threshold1 = 0;
threshold3 = 0;
threshold4 = 0;
threshold2 = 0;
};
};
};
};
};
};
}
private function shoot3(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11){
var _local12:int;
var _local13:MovieClip;
var _local14:int;
var _local15:MovieClip;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer3 > _arg5){
if (itungMTimer == false){
if (threshold3 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = (_arg2 + (_local12 * _arg10));
_local13.y = (_arg3 + (_local12 * _arg9));
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = _arg4;
_arg11.addChild(_local13);
_local12++;
};
threshold3 = (threshold3 + 1);
shootTimer3 = 0;
} else {
if (threshold3 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold3 != _arg7){
_local14 = 0;
while (_local14 < _arg6) {
_local15 = new Bullet();
_local15.x = (_arg2 + (_local14 * _arg10));
_local15.y = (_arg3 + (_local14 * _arg9));
_local15.bulletBehav = _arg1;
_local15.tipe = _arg1;
_local15.rotation = _arg4;
_arg11.addChild(_local15);
_local14++;
};
threshold3 = (threshold3 + 1);
shootTimer3 = 0;
} else {
if (threshold3 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold2 = 0;
threshold1 = 0;
threshold4 = 0;
threshold3 = 0;
};
};
};
};
};
};
}
private function shoot4(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer4 > _arg5){
if (itungMTimer == false){
if (threshold4 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = _arg4;
_arg9.addChild(_local11);
_local10++;
};
threshold4 = (threshold4 + 1);
shootTimer4 = 0;
} else {
if (threshold4 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold4 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = _arg4;
_arg9.addChild(_local13);
_local12++;
};
threshold4 = (threshold4 + 1);
shootTimer4 = 0;
} else {
if (threshold4 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold1 = 0;
threshold3 = 0;
threshold2 = 0;
threshold4 = 0;
};
};
};
};
};
};
}
private function shoot5(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer5 > _arg5){
if (itungMTimer == false){
if (threshold5 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = _arg4;
_arg9.addChild(_local11);
_local10++;
};
threshold5 = (threshold5 + 1);
shootTimer5 = 0;
} else {
if (threshold5 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold5 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = _arg4;
_arg9.addChild(_local13);
_local12++;
};
threshold5 = (threshold5 + 1);
shootTimer5 = 0;
} else {
if (threshold5 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold1 = 0;
threshold3 = 0;
threshold2 = 0;
threshold4 = 0;
};
};
};
};
};
};
}
private function shoot6(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer5 > _arg5){
if (itungMTimer == false){
if (threshold5 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = (_local10 * (360 / _arg6));
_arg9.addChild(_local11);
_local10++;
};
threshold5 = (threshold5 + 1);
shootTimer5 = 0;
} else {
if (threshold5 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold6 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = (_local12 * (360 / _arg6));
_arg9.addChild(_local13);
_local12++;
};
threshold6 = (threshold6 + 1);
shootTimer6 = 0;
} else {
if (threshold6 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold1 = 0;
threshold3 = 0;
threshold2 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
};
};
};
};
}
private function shoot7(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer7 > _arg5){
if (itungMTimer == false){
if (threshold7 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = (_local10 * (360 / _arg6));
_arg9.addChild(_local11);
_local10++;
};
threshold7 = (threshold7 + 1);
shootTimer7 = 0;
} else {
if (threshold7 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold7 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = (_local12 * (360 / _arg6));
_arg9.addChild(_local13);
_local12++;
};
threshold7 = (threshold7 + 1);
shootTimer7 = 0;
} else {
if (threshold7 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold1 = 0;
threshold3 = 0;
threshold2 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
};
};
};
};
}
private function shoot8(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:int;
var _local11:MovieClip;
var _local12:int;
var _local13:MovieClip;
itungMTimer = _arg8;
if ((((GSEngine.death == false)) && ((GSEngine.finishedStage == false)))){
if (shootTimer8 > _arg5){
if (itungMTimer == false){
if (threshold8 != _arg7){
_local10 = 0;
while (_local10 < _arg6) {
_local11 = new Bullet();
_local11.x = _arg2;
_local11.y = _arg3;
_local11.bulletBehav = _arg1;
_local11.tipe = _arg1;
_local11.rotation = (_local10 * (360 / _arg6));
_arg9.addChild(_local11);
_local10++;
};
threshold8 = (threshold8 + 1);
shootTimer8 = 0;
} else {
if (threshold8 == _arg7){
};
};
} else {
if (itungMTimer == true){
if (threshold8 != _arg7){
_local12 = 0;
while (_local12 < _arg6) {
_local13 = new Bullet();
_local13.x = _arg2;
_local13.y = _arg3;
_local13.bulletBehav = _arg1;
_local13.tipe = _arg1;
_local13.rotation = (_local12 * (360 / _arg6));
_arg9.addChild(_local13);
_local12++;
};
threshold8 = (threshold8 + 1);
shootTimer8 = 0;
} else {
if (threshold8 == _arg7){
bMovementType = (bMovementType + 1);
initThis = true;
threshold1 = 0;
threshold3 = 0;
threshold2 = 0;
threshold4 = 0;
threshold5 = 0;
threshold6 = 0;
threshold7 = 0;
threshold8 = 0;
};
};
};
};
};
};
}
public function tintBit(_arg1:MovieClip){
if (boss9.visible == true){
boss9.bossBit1.transform.colorTransform = thisTintColour1;
boss9.bossBit2.transform.colorTransform = thisTintColour2;
boss9.bossBit3.transform.colorTransform = thisTintColour3;
boss9.bossBit4.transform.colorTransform = thisTintColour4;
boss9.bossBit5.transform.colorTransform = thisTintColour5;
boss9.bossBit6.transform.colorTransform = thisTintColour6;
boss9.bossBit7.transform.colorTransform = thisTintColour7;
boss9.bossBit8.transform.colorTransform = thisTintColour8;
if (_arg1 == boss9.bossBit1){
thisTintColour1.setTint(4294901760, 0.75);
tintTimer1 = 1;
};
if (_arg1 == boss9.bossBit2){
thisTintColour2.setTint(4294901760, 0.75);
tintTimer2 = 1;
};
if (_arg1 == boss9.bossBit3){
thisTintColour3.setTint(4294901760, 0.75);
tintTimer3 = 1;
};
if (_arg1 == boss9.bossBit4){
thisTintColour4.setTint(4294901760, 0.75);
tintTimer4 = 1;
};
if (_arg1 == boss9.bossBit5){
thisTintColour5.setTint(4294901760, 0.75);
tintTimer5 = 1;
};
if (_arg1 == boss9.bossBit6){
thisTintColour6.setTint(4294901760, 0.75);
tintTimer6 = 1;
};
if (_arg1 == boss9.bossBit7){
thisTintColour7.setTint(4294901760, 0.75);
tintTimer7 = 1;
};
if (_arg1 == boss9.bossBit8){
thisTintColour8.setTint(4294901760, 0.75);
tintTimer8 = 1;
};
};
if (boss10.visible == true){
boss10.bossBit1.transform.colorTransform = thisTintColour1;
boss10.bossBit2.transform.colorTransform = thisTintColour2;
boss10.bossBit3.transform.colorTransform = thisTintColour3;
boss10.bossBit4.transform.colorTransform = thisTintColour4;
boss10.bossBit5.transform.colorTransform = thisTintColour5;
boss10.bossBit6.transform.colorTransform = thisTintColour6;
boss10.bossBit7.transform.colorTransform = thisTintColour7;
boss10.bossBit8.transform.colorTransform = thisTintColour8;
if (_arg1 == boss10.bossBit1){
thisTintColour1.setTint(4294901760, 0.75);
tintTimer1 = 1;
};
if (_arg1 == boss10.bossBit2){
thisTintColour2.setTint(4294901760, 0.75);
tintTimer2 = 1;
};
if (_arg1 == boss10.bossBit3){
thisTintColour3.setTint(4294901760, 0.75);
tintTimer3 = 1;
};
if (_arg1 == boss10.bossBit4){
thisTintColour4.setTint(4294901760, 0.75);
tintTimer4 = 1;
};
if (_arg1 == boss10.bossBit5){
thisTintColour5.setTint(4294901760, 0.75);
tintTimer5 = 1;
};
if (_arg1 == boss10.bossBit6){
thisTintColour6.setTint(4294901760, 0.75);
tintTimer6 = 1;
};
if (_arg1 == boss10.bossBit7){
thisTintColour7.setTint(4294901760, 0.75);
tintTimer7 = 1;
};
if (_arg1 == boss10.bossBit8){
thisTintColour8.setTint(4294901760, 0.75);
tintTimer8 = 1;
};
};
}
public function getHit(_arg1){
if (health > 0){
health = (health - _arg1);
};
thisTintColour.setTint(4294901760, 0.75);
if (boss1.visible == true){
boss1.transform.colorTransform = thisTintColour;
};
if (boss2.visible == true){
boss2.transform.colorTransform = thisTintColour;
};
if (boss3.visible == true){
boss3.transform.colorTransform = thisTintColour;
};
if (boss4.visible == true){
boss4.boss4Main.transform.colorTransform = thisTintColour;
boss4.miniBoss4Bit1.b4B1In.transform.colorTransform = thisTintColour;
boss4.miniBoss4Bit2.b4B2In.transform.colorTransform = thisTintColour;
boss4.center.transform.colorTransform = thisTintColour;
};
if (boss5.visible == true){
boss5.transform.colorTransform = thisTintColour;
};
if (boss6.visible == true){
boss6.transform.colorTransform = thisTintColour;
};
if (boss7.visible == true){
boss7.transform.colorTransform = thisTintColour;
};
if (boss8.visible == true){
boss8.transform.colorTransform = thisTintColour;
};
if (boss9.visible == true){
boss9.center.transform.colorTransform = thisTintColour;
};
if (boss10.visible == true){
boss10.transform.colorTransform = thisTintColour;
};
tintTimer = 1;
}
function frame1(){
stop();
}
}
}//package
Section 124
//boss4Main (boss4Main)
package {
import flash.display.*;
public dynamic class boss4Main extends MovieClip {
}
}//package
Section 125
//bossBar (bossBar)
package {
import flash.display.*;
public dynamic class bossBar extends MovieClip {
}
}//package
Section 126
//Bullet (Bullet)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Bullet extends MovieClip {
public var bP10:MovieClip;
public var bP2:MovieClip;
public var bP11:MovieClip;
public var bP3:MovieClip;
public var bP12:MovieClip;
public var bP4:MovieClip;
public var bP13:MovieClip;
public var bP5:MovieClip;
public var bP14:MovieClip;
public var bP6:MovieClip;
public var bP15:MovieClip;
public var bP7:MovieClip;
public var bP16:MovieClip;
public var bP8:MovieClip;
public var b1:MovieClip;
public var bP17:MovieClip;
public var bP9:MovieClip;
public var b2:MovieClip;
public var bP18:MovieClip;
public var b3:MovieClip;
public var b4:MovieClip;
public var b10:MovieClip;
public var b5:MovieClip;
public var b11:MovieClip;
public var b6:MovieClip;
public var b12:MovieClip;
public var b7:MovieClip;
public var b13:MovieClip;
public var b8:MovieClip;
public var b14:MovieClip;
public var b9:MovieClip;
public var b15:MovieClip;
public var bPerimeter:MovieClip;
var globalMulS:Number;// = 1.2
var globalMulD:int;// = 1
private var _root:MovieClip;
private var xSpeed:Number;
private var ySpeed:Number;
private var maxSpeed:Number;// = 7
var bR:Sound;
var myChannel:SoundChannel;
var myTransform:SoundTransform;
private var dodged:Boolean;// = false
var bulletBehav:int;
var tipe:int;
var randomRange:Number;
var damage:int;
private var bTimer:int;
private var missedShoot:Boolean;// = false
private var immuneTimer:int;// = 0
private var damageCD:int;// = 0
private var damageCD2:int;// = 3
var lifeSpan:int;// = 0
public function Bullet(){
bR = new BulletRicochet();
myChannel = new SoundChannel();
myTransform = new SoundTransform();
randomRange = Math.random();
super();
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
this.addEventListener(Event.ENTER_FRAME, eFrame, false, 0, true);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
b1.visible = false;
b2.visible = false;
b3.visible = false;
b4.visible = false;
b5.visible = false;
b6.visible = false;
b7.visible = false;
b8.visible = false;
b9.visible = false;
b10.visible = false;
b11.visible = false;
b12.visible = false;
b13.visible = false;
b14.visible = false;
b15.visible = false;
bP2.visible = false;
bP3.visible = false;
bP4.visible = false;
bP5.visible = false;
bP6.visible = false;
bP7.visible = false;
bP8.visible = false;
bP9.visible = false;
bP10.visible = false;
bP11.visible = false;
bP12.visible = false;
bP13.visible = false;
bP14.visible = false;
bP15.visible = false;
bP16.visible = false;
bP17.visible = false;
bP18.visible = false;
bPerimeter.visible = false;
}
private function beginClass(_arg1:Event):void{
_root = MovieClip(root);
bulletBehaviour();
bulletStat();
}
private function eFrame(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:MovieClip;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:int;
var _local22:MovieClip;
var _local23:int;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
if ((((GSEngine.phases == "Main")) || ((GSEngine.phases == "Customize")))){
removeThis();
};
if (GSEngine.stageLevel == 1){
globalMulD = 1;
};
if (GSEngine.stageLevel == 2){
globalMulD = 1.3;
};
if (GSEngine.stageLevel == 3){
globalMulD = 1.5;
};
if (GSEngine.stageLevel == 4){
globalMulD = 1.5;
};
if (GSEngine.stageLevel == 5){
globalMulD = 1.5;
};
if (GSEngine.stageLevel == 6){
globalMulD = 1.4;
};
if (GSEngine.stageLevel == 6){
globalMulD = 2.5;
};
if (GSEngine.stageLevel == 7){
globalMulD = 2.5;
globalMulS = 1.5;
};
if (GSEngine.stageLevel == 8){
globalMulD = 3;
globalMulS = 1.6;
};
if (bulletBehav == 83){
if (b12.currentFrame == b12.totalFrames){
removeThis();
};
};
if ((((dodged == true)) && ((damageCD2 < 15)))){
damageCD2++;
} else {
if ((((dodged == true)) && ((damageCD2 >= 15)))){
dodged = false;
};
};
if (GSEngine.sound == false){
myTransform.volume = 0;
myChannel.soundTransform = myTransform;
};
if (GSEngine.sound == true){
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
};
if ((((GSEngine.stageComplete == true)) && ((GSEngine.death == true)))){
removeThis();
};
if (GSEngine.isPaused == false){
if (bulletBehav == 48){
if (missedShoot == true){
_local2 = ((randomRange * 600) - 300);
_local3 = (-80 - this.x);
_local5 = ((randomRange * 4) + 11);
} else {
if (missedShoot == false){
_local2 = (GSEngine.player.y - this.y);
_local3 = (GSEngine.player.x - this.x);
_local5 = ((randomRange * 3) + 8);
};
};
_local4 = Math.atan2(_local2, _local3);
ySpeed = (Math.sin(_local4) * _local5);
xSpeed = (Math.cos(_local4) * _local5);
this.rotation = ((_local4 / Math.PI) * 180);
if (lifeSpan > 90){
removeThis();
} else {
lifeSpan++;
};
} else {
if (bulletBehav == 49){
_local7 = (_root.ePod.y - this.y);
_local8 = (_root.ePod.x - this.x);
_local9 = Math.atan2(_local7, _local8);
ySpeed = (Math.sin(_local9) * 9);
xSpeed = (Math.cos(_local9) * 9);
this.rotation = ((_local9 / Math.PI) * 180);
if (lifeSpan > 90){
removeThis();
} else {
lifeSpan++;
};
} else {
if (bulletBehav == 50){
if (lifeSpan > 90){
removeThis();
} else {
lifeSpan++;
};
} else {
if ((((bulletBehav == 51)) || ((bulletBehav == 52)))){
if (((((((this.x - GSEngine.posX) < 200)) && ((GSEngine.death == false)))) && ((GSEngine.assaultMode == false)))){
_local10 = 0;
while (_local10 < 7) {
_local11 = new PecahanBullet();
_root.addChild(_local11);
_local11.x = this.x;
_local11.y = this.y;
_local10++;
};
removeThis();
if (GSEngine.sound == true){
bR.play();
};
};
} else {
if (bulletBehav == 53){
this.rotation = (this.rotation + 5);
} else {
if (bulletBehav == 61){
this.scaleX = (this.scaleX + 0.15);
this.scaleY = (this.scaleY + 0.07);
} else {
if (bulletBehav == 62){
this.scaleX = (this.scaleX + 0.15);
this.scaleY = (this.scaleY + 0.07);
} else {
if (bulletBehav == 64){
bTimer++;
this.rotation = (this.rotation + 3);
if ((((this.rotation > -90)) && ((this.rotation < -86)))){
removeThis();
};
} else {
if (bulletBehav == 65){
bTimer++;
this.rotation = (this.rotation - 3);
if ((((this.rotation > 86)) && ((this.rotation < 90)))){
removeThis();
};
} else {
if (bulletBehav == 66){
bTimer++;
_local12 = (_root.movingTarget2.y - this.y);
_local13 = (_root.movingTarget2.x - this.x);
_local14 = Math.atan2(_local12, _local13);
this.rotation = (((_local14 / Math.PI) * 180) + 180);
this.x = (this.x - (1.5 * globalMulS));
this.y = _root.movingTarget.y;
if (bTimer > 90){
bTimer = 0;
removeThis();
};
} else {
if (bulletBehav == 67){
bTimer++;
_local15 = (_root.movingTarget.y - this.y);
_local16 = (_root.movingTarget.x - this.x);
_local17 = Math.atan2(_local15, _local16);
this.rotation = (((_local17 / Math.PI) * 180) + 180);
this.x = (this.x - (1.5 * globalMulS));
this.y = _root.movingTarget2.y;
if (bTimer > 90){
bTimer = 0;
removeThis();
};
} else {
if (bulletBehav == 68){
bTimer++;
if (bTimer > 7){
bTimer = 0;
removeThis();
};
} else {
if (bulletBehav == 70){
bTimer++;
_local18 = (GSEngine.player.y - this.y);
_local19 = (GSEngine.player.x - this.x);
_local20 = Math.atan2(_local18, _local19);
this.rotation = (((_local20 / Math.PI) * 180) + 180);
if (bTimer > 30){
bTimer = 0;
removeThis();
};
} else {
if (bulletBehav == 73){
bTimer++;
if (bTimer > 70){
bTimer = 0;
removeThis();
};
} else {
if (bulletBehav == 81){
if (((!((this == null))) && (!((GSEngine.player == null))))){
if (this.bPerimeter.p1.hitTestObject(GSEngine.player.playerPeri)){
addEf(this.x, this.y, 8);
removeThis();
GSEngine.shakeTimer = 1;
};
};
} else {
if (bulletBehav == 84){
if (this.x < ((Math.random() * 500) + 150)){
_local21 = 0;
while (_local21 < 7) {
_local22 = new PecahanBullet();
_root.addChild(_local22);
_local22.x = this.x;
_local22.y = this.y;
_local21++;
};
removeThis();
if (GSEngine.sound == true){
bR.play();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (this != null){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))){
_local23 = (this.x - GSEngine.player.x);
_local24 = (this.y - GSEngine.player.y);
_local25 = Math.atan2(_local24, _local23);
_local26 = (Math.cos(_local25) * 9);
_local27 = (Math.sin(_local25) * 9);
this.x = (this.x - (_local26 * globalMulS));
this.y = (this.y - (_local27 * globalMulS));
if (this.bPerimeter.p1.hitTestObject(GSEngine.player.blackPeri)){
GSEngine.healthPoint = (GSEngine.healthPoint + 1);
GSEngine.shakeTimer = 1;
};
} else {
this.x = (this.x + (xSpeed * globalMulS));
this.y = (this.y + (ySpeed * globalMulS));
};
if (GSEngine.phases == "Action"){
if ((((b1.visible == true)) && (!((this.b1 == null))))){
checkHitPlayer(this.b1);
chechkHitEPod(this.b1);
checkHitArmor(this.b1);
checkHitJurus(this.b1);
} else {
if ((((b2.visible == true)) && (!((this.b2 == null))))){
checkHitPlayer(this.b2);
chechkHitEPod(this.b2);
checkHitArmor(this.b2);
checkHitJurus(this.b2);
} else {
if ((((b3.visible == true)) && (!((this.b3 == null))))){
checkHitPlayer(this.b3);
chechkHitEPod(this.b3);
checkHitArmor(this.b3);
checkHitJurus(this.b3);
} else {
if ((((b4.visible == true)) && (!((this.b4 == null))))){
checkHitPlayer(this.b4);
chechkHitEPod(this.b4);
checkHitArmor(this.b4);
checkHitJurus(this.b4);
} else {
if ((((b5.visible == true)) && (!((this.b5 == null))))){
checkHitPlayer(this.b5);
chechkHitEPod(this.b5);
checkHitArmor(this.b5);
checkHitJurus(this.b5);
} else {
if ((((b6.visible == true)) && (!((this.b6 == null))))){
checkHitPlayer(this.b6);
chechkHitEPod(this.b6);
checkHitArmor(this.b6);
checkHitJurus(this.b6);
} else {
if ((((b7.visible == true)) && (!((this.b7 == null))))){
checkHitPlayer(this.b7);
chechkHitEPod(this.b7);
checkHitArmor(this.b7);
checkHitJurus(this.b7);
} else {
if ((((b8.visible == true)) && (!((this.b8 == null))))){
checkHitPlayer(this.b8);
chechkHitEPod(this.b8);
checkHitArmor(this.b8);
checkHitJurus(this.b8);
} else {
if ((((b9.visible == true)) && (!((this.b9 == null))))){
checkHitPlayer(this.b9);
chechkHitEPod(this.b9);
checkHitArmor(this.b9);
checkHitJurus(this.b9);
} else {
if ((((b10.visible == true)) && (!((this.b10 == null))))){
checkHitPlayer(this.b10);
chechkHitEPod(this.b10);
checkHitArmor(this.b10);
checkHitJurus(this.b10);
} else {
if ((((b11.visible == true)) && (!((this.b11 == null))))){
checkHitPlayer(this.b11);
chechkHitEPod(this.b11);
checkHitArmor(this.b11);
checkHitJurus(this.b11);
} else {
if ((((b12.visible == true)) && (!((this.b12 == null))))){
checkHitPlayer(this.b12);
chechkHitEPod(this.b12);
checkHitArmor(this.b12);
checkHitJurus(this.b12);
} else {
if ((((b13.visible == true)) && (!((this.b13 == null))))){
checkHitPlayer(this.b13);
chechkHitEPod(this.b13);
checkHitArmor(this.b13);
checkHitJurus(this.b13);
laserHitArmor(this.b13);
} else {
if ((((b14.visible == true)) && (!((this.b14 == null))))){
checkHitPlayer(this.b14);
chechkHitEPod(this.b14);
checkHitArmor(this.b14);
checkHitJurus(this.b14);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (missedShoot == true){
immuneTimer++;
};
if (immuneTimer > 90){
missedShoot = false;
immuneTimer = 0;
};
if (this != null){
if ((((((((this.x < -100)) || ((this.x > 800)))) || ((this.y < -100)))) || ((this.y > 550)))){
removeThis();
};
};
};
}
function checkHitJurus(_arg1){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
if (this != null){
if (((((((bPerimeter.p1.hitTestObject(GSEngine.player.shield)) && ((GSEngine.assaultMode == true)))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Arc Shield")))){
addEf(this.x, this.y, 16);
removeThis();
};
if (GSEngine.burN != null){
if (((((((bPerimeter.p1.hitTestObject(GSEngine.burN)) && ((GSEngine.assaultMode == true)))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Burning Radiation")))){
addEf(this.x, this.y, 16);
removeThis();
};
};
if (GSEngine.bRay != null){
if (((((((bPerimeter.p1.hitTestObject(GSEngine.bRay)) && ((GSEngine.assaultMode == true)))) && ((GSEngine.njurus == true)))) && ((GSEngine.njurusApa == "Blue Ray")))){
addEf(this.x, this.y, 16);
removeThis();
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))){
if (((bPerimeter.p1.hitTestObject(GSEngine.player.defl)) && ((GSEngine.assaultMode == true)))){
addEf(this.x, this.y, 16);
if ((((((b1.visible == true)) && (!((stage == null))))) && (!((this == null))))){
_local2 = new PlayerBullet();
stage.addChild(_local2);
_local2.x = this.x;
_local2.y = this.y;
_local2.tipeBullet = 20;
} else {
if ((((((b2.visible == true)) && (!((stage == null))))) && (!((this == null))))){
_local3 = new PlayerBullet();
stage.addChild(_local3);
_local3.x = this.x;
_local3.y = this.y;
_local3.tipeBullet = 20;
} else {
if ((((((b10.visible == true)) && (!((stage == null))))) && (!((this == null))))){
_local4 = new PlayerBullet();
stage.addChild(_local4);
_local4.x = this.x;
_local4.y = this.y;
_local4.tipeBullet = 20;
} else {
if ((((((b11.visible == true)) && (!((stage == null))))) && (!((this == null))))){
_local5 = new PlayerBullet();
stage.addChild(_local5);
_local5.x = this.x;
_local5.y = this.y;
_local5.tipeBullet = 20;
};
};
};
};
removeThis();
};
};
};
}
function checkHitPlayer(_arg1){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))){
if (bPerimeter.p1.hitTestObject(GSEngine.player.prot)){
GSEngine.shakeTimer = 1;
_root.takeDamage((-1 * globalMulD));
if (this != null){
addEf(this.x, this.y, 29);
};
removeThis();
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
if (bPerimeter.p1.hitTestObject(GSEngine.player.prot)){
GSEngine.shakeTimer = 1;
_root.takeDamage((-1 * globalMulD));
if (this != null){
addEf(this.x, this.y, 29);
};
removeThis();
};
};
if (((((((!((GSEngine.player == null))) && (!((_arg1 == null))))) && (!((GSEngine.player.playerPeri == null))))) && (!((this == null))))){
if ((((((((((((((((((bulletBehav == 70)) || ((bulletBehav == 73)))) || ((bulletBehav == 68)))) || ((bulletBehav == 66)))) || ((bulletBehav == 67)))) || ((bulletBehav == 60)))) || ((bulletBehav == 64)))) || ((bulletBehav == 65)))) || ((bulletBehav == 83)))){
if (((((((((((((((((((((((((((((((((((bPerimeter.hitTestObject(GSEngine.player.playerPeri)) || (bP2.hitTestObject(GSEngine.player.playerPeri)))) || (bP3.hitTestObject(GSEngine.player.playerPeri)))) || (bP4.hitTestObject(GSEngine.player.playerPeri)))) || (bP5.hitTestObject(GSEngine.player.playerPeri)))) || (bP6.hitTestObject(GSEngine.player.playerPeri)))) || (bP7.hitTestObject(GSEngine.player.playerPeri)))) || (bP8.hitTestObject(GSEngine.player.playerPeri)))) || (bP9.hitTestObject(GSEngine.player.playerPeri)))) || (bP10.hitTestObject(GSEngine.player.playerPeri)))) || (bP11.hitTestObject(GSEngine.player.playerPeri)))) || (bP12.hitTestObject(GSEngine.player.playerPeri)))) || (bP13.hitTestObject(GSEngine.player.playerPeri)))) || (bP14.hitTestObject(GSEngine.player.playerPeri)))) || (bP15.hitTestObject(GSEngine.player.playerPeri)))) || (bP16.hitTestObject(GSEngine.player.playerPeri)))) || (bP17.hitTestObject(GSEngine.player.playerPeri)))) || (bP18.hitTestObject(GSEngine.player.playerPeri)))){
if (damageCD > 2){
GSEngine.shakeTimer = 1;
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))){
_root.takeDamage((-1 * globalMulD));
addEf(this.x, this.y, 29);
} else {
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
_root.takeDamage((-1 * globalMulD));
addEf(this.x, this.y, 29);
} else {
if ((Math.random() * 100) < GSEngine.dodgeRate){
addEf(GSEngine.player.x, GSEngine.player.y, 30);
GSEngine.player.visible = false;
} else {
if ((((GSEngine.shieldAttached == false)) && ((GSEngine.assaultMode == true)))){
_root.takeDamage2();
} else {
if ((((GSEngine.shieldAttached == true)) && ((GSEngine.assaultMode == false)))){
_root.takeDamage((damage * globalMulD));
};
};
addEf(this.x, this.y, 16);
GSEngine.tintPlayer();
bR.play();
addEf(GSEngine.player.x, GSEngine.player.y, 22);
};
};
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (this.bPerimeter.p1.hitTestObject(GSEngine.player.playerPeri)){
GSEngine.shakeTimer = 1;
if (((((((((((((((((((((((((!((bulletBehav == 51))) && (!((bulletBehav == 61))))) && (!((bulletBehav == 62))))) && (!((bulletBehav == 64))))) && (!((bulletBehav == 65))))) && (!((bulletBehav == 66))))) && (!((bulletBehav == 67))))) && (!((bulletBehav == 68))))) && (!((bulletBehav == 70))))) && (!((bulletBehav == 73))))) && (!((bulletBehav == 74))))) && (!((bulletBehav == 75))))) && (!((bulletBehav == 83))))){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
} else {
if ((Math.random() * 100) < GSEngine.dodgeRate){
dodged = true;
};
if (dodged == false){
if (GSEngine.sound == true){
bR.play();
};
_root.takeDamage((damage * globalMulD));
if (this != null){
if (b1.visible == true){
addEf(this.x, this.y, 3);
} else {
if (b2.visible == true){
addEf(this.x, this.y, 31);
} else {
if (b3.visible == true){
addEf(this.x, this.y, 31);
} else {
if (b4.visible == true){
addEf(this.x, this.y, 7);
} else {
if (b5.visible == true){
addEf(this.x, this.y, 7);
} else {
if (b6.visible == true){
addEf(this.x, this.y, 7);
} else {
if (b7.visible == true){
addEf(this.x, this.y, 2);
} else {
if (b8.visible == true){
addEf(this.x, this.y, 2);
} else {
if (b9.visible == true){
addEf(this.x, this.y, 2);
} else {
if (b10.visible == true){
addEf(this.x, this.y, 33);
} else {
if (b11.visible == true){
addEf(this.x, this.y, 14);
} else {
if (b14.visible == true){
addEf(this.x, this.y, 2);
};
};
};
};
};
};
};
};
};
};
};
};
};
GSEngine.tintPlayer();
removeThis();
} else {
if ((((dodged == true)) && ((damageCD2 == 15)))){
addEf(GSEngine.player.x, GSEngine.player.y, 30);
GSEngine.player.visible = false;
damageCD2 = 0;
};
};
};
};
if ((((((bulletBehav == 70)) || ((bulletBehav == 73)))) || ((bulletBehav == 68)))){
if (damageCD > 2){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))){
_root.takeDamage((-1 * globalMulD));
addEf(this.x, this.y, 29);
} else {
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
_root.takeDamage((-1 * globalMulD));
addEf(this.x, this.y, 29);
} else {
if ((Math.random() * 100) < GSEngine.dodgeRate){
addEf(GSEngine.player.x, GSEngine.player.y, 30);
GSEngine.player.visible = false;
} else {
_root.takeDamage((damage * globalMulD));
addEf(this.x, this.y, 16);
GSEngine.tintPlayer();
bR.play();
addEf(GSEngine.player.x, GSEngine.player.y, 22);
};
};
};
damageCD = 0;
} else {
damageCD++;
};
};
};
};
}
function chechkHitEPod(_arg1){
var _local2:*;
if (((((!((GSEngine.ePodArray == null))) && (!((this == null))))) && (!((_arg1 == null))))){
for (_local2 in GSEngine.ePodArray) {
if (((((((!((GSEngine.ePodArray[_local2] == null))) && (!((GSEngine.ePodArray[_local2].eParam == null))))) && (bPerimeter.p1.hitTestObject(GSEngine.ePodArray[_local2].eParam)))) && (!((GSEngine.ePodLeft == 0))))){
if (((((((((((((((((!((bulletBehav == 61))) && (!((bulletBehav == 62))))) && (!((bulletBehav == 64))))) && (!((bulletBehav == 65))))) && (!((bulletBehav == 66))))) && (!((bulletBehav == 67))))) && (!((bulletBehav == 68))))) && (!((bulletBehav == 70))))) && (!((bulletBehav == 73))))){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
GSEngine.ePodArray[_local2].healthPoint = (GSEngine.ePodArray[_local2].healthPoint + 1);
addEf(this.x, this.y, 29);
} else {
GSEngine.ePodArray[_local2].takeDamage(damage);
addEf(this.x, this.y, 16);
};
removeThis();
} else {
if ((((((bulletBehav == 70)) || ((bulletBehav == 73)))) || ((bulletBehav == 68)))){
if (damageCD > 3){
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
GSEngine.ePodArray[_local2].healthPoint = (GSEngine.ePodArray[_local2].healthPoint + 1);
addEf(this.x, this.y, 29);
} else {
if (GSEngine.ePodArray[_local2] != null){
GSEngine.ePodArray[_local2].takeDamage(damage);
addEf(GSEngine.ePodArray[_local2].x, GSEngine.ePodArray[_local2].y, 22);
};
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
};
};
};
}
function laserHitArmor(_arg1){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
if ((((((((damageCD > 2)) && ((GSEngine.njurus == false)))) && (!((GSEngine.njurusApa == "Protect"))))) && (!((GSEngine.njurusApa == "Black Hole"))))){
if (((!((this == null))) && (!((_arg1 == null))))){
if (((!((GSEngine.armor1 == null))) && ((GSEngine.armor1HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor1)) || (bP3.hitTestObject(GSEngine.armor1)))) || (bP4.hitTestObject(GSEngine.armor1)))) || (bP5.hitTestObject(GSEngine.armor1)))) || (bP6.hitTestObject(GSEngine.armor1)))) || (bP7.hitTestObject(GSEngine.armor1)))) || (bP8.hitTestObject(GSEngine.armor1)))) || (bP9.hitTestObject(GSEngine.armor1)))) || (bP10.hitTestObject(GSEngine.armor1)))) || (bP11.hitTestObject(GSEngine.armor1)))) || (bP12.hitTestObject(GSEngine.armor1)))) || (bP13.hitTestObject(GSEngine.armor1)))) || (bP14.hitTestObject(GSEngine.armor1)))) || (bP15.hitTestObject(GSEngine.armor1)))) || (bP16.hitTestObject(GSEngine.armor1)))) || (bP17.hitTestObject(GSEngine.armor1)))) || (bP18.hitTestObject(GSEngine.armor1)))){
GSEngine.armor1.diTint();
GSEngine.armor1HP = (GSEngine.armor1HP - (damage * globalMulD));
_local2 = new Effect();
_local2.type = 14;
_local2.x = GSEngine.armor1.x;
_local2.y = GSEngine.armor1.y;
stage.addChild(_local2);
damageCD = 0;
};
};
if (((!((GSEngine.armor2 == null))) && ((GSEngine.armor2HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor2)) || (bP3.hitTestObject(GSEngine.armor2)))) || (bP4.hitTestObject(GSEngine.armor2)))) || (bP5.hitTestObject(GSEngine.armor2)))) || (bP6.hitTestObject(GSEngine.armor2)))) || (bP7.hitTestObject(GSEngine.armor2)))) || (bP8.hitTestObject(GSEngine.armor2)))) || (bP9.hitTestObject(GSEngine.armor2)))) || (bP10.hitTestObject(GSEngine.armor2)))) || (bP11.hitTestObject(GSEngine.armor2)))) || (bP12.hitTestObject(GSEngine.armor2)))) || (bP13.hitTestObject(GSEngine.armor2)))) || (bP14.hitTestObject(GSEngine.armor2)))) || (bP15.hitTestObject(GSEngine.armor2)))) || (bP16.hitTestObject(GSEngine.armor2)))) || (bP17.hitTestObject(GSEngine.armor2)))) || (bP18.hitTestObject(GSEngine.armor2)))){
GSEngine.armor2.diTint();
GSEngine.armor2HP = (GSEngine.armor2HP - (damage * globalMulD));
_local3 = new Effect();
_local3.type = 14;
_local3.x = GSEngine.armor2.x;
_local3.y = GSEngine.armor2.y;
stage.addChild(_local3);
damageCD = 0;
};
};
if (((!((GSEngine.armor3 == null))) && ((GSEngine.armor3HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor3)) || (bP3.hitTestObject(GSEngine.armor3)))) || (bP4.hitTestObject(GSEngine.armor3)))) || (bP5.hitTestObject(GSEngine.armor3)))) || (bP6.hitTestObject(GSEngine.armor3)))) || (bP7.hitTestObject(GSEngine.armor3)))) || (bP8.hitTestObject(GSEngine.armor3)))) || (bP9.hitTestObject(GSEngine.armor3)))) || (bP10.hitTestObject(GSEngine.armor3)))) || (bP11.hitTestObject(GSEngine.armor3)))) || (bP12.hitTestObject(GSEngine.armor3)))) || (bP13.hitTestObject(GSEngine.armor3)))) || (bP14.hitTestObject(GSEngine.armor3)))) || (bP15.hitTestObject(GSEngine.armor3)))) || (bP16.hitTestObject(GSEngine.armor3)))) || (bP17.hitTestObject(GSEngine.armor3)))) || (bP18.hitTestObject(GSEngine.armor3)))){
GSEngine.armor3.diTint();
GSEngine.armor3HP = (GSEngine.armor3HP - (damage * globalMulD));
_local4 = new Effect();
_local4.type = 14;
_local4.x = GSEngine.armor3.x;
_local4.y = GSEngine.armor3.y;
stage.addChild(_local4);
damageCD = 0;
};
};
if (((!((GSEngine.armor4 == null))) && ((GSEngine.armor4HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor4)) || (bP3.hitTestObject(GSEngine.armor4)))) || (bP4.hitTestObject(GSEngine.armor4)))) || (bP5.hitTestObject(GSEngine.armor4)))) || (bP6.hitTestObject(GSEngine.armor4)))) || (bP7.hitTestObject(GSEngine.armor4)))) || (bP8.hitTestObject(GSEngine.armor4)))) || (bP9.hitTestObject(GSEngine.armor4)))) || (bP10.hitTestObject(GSEngine.armor4)))) || (bP11.hitTestObject(GSEngine.armor4)))) || (bP12.hitTestObject(GSEngine.armor4)))) || (bP13.hitTestObject(GSEngine.armor4)))) || (bP14.hitTestObject(GSEngine.armor4)))) || (bP15.hitTestObject(GSEngine.armor4)))) || (bP16.hitTestObject(GSEngine.armor4)))) || (bP17.hitTestObject(GSEngine.armor4)))) || (bP18.hitTestObject(GSEngine.armor4)))){
GSEngine.armor4.diTint();
GSEngine.armor4HP = (GSEngine.armor4HP - (damage * globalMulD));
_local5 = new Effect();
_local5.type = 14;
_local5.x = GSEngine.armor4.x;
_local5.y = GSEngine.armor4.y;
stage.addChild(_local5);
damageCD = 0;
};
};
if (((!((GSEngine.armor5 == null))) && ((GSEngine.armor5HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor5)) || (bP3.hitTestObject(GSEngine.armor5)))) || (bP4.hitTestObject(GSEngine.armor5)))) || (bP5.hitTestObject(GSEngine.armor5)))) || (bP6.hitTestObject(GSEngine.armor5)))) || (bP7.hitTestObject(GSEngine.armor5)))) || (bP8.hitTestObject(GSEngine.armor5)))) || (bP9.hitTestObject(GSEngine.armor5)))) || (bP10.hitTestObject(GSEngine.armor5)))) || (bP11.hitTestObject(GSEngine.armor5)))) || (bP12.hitTestObject(GSEngine.armor5)))) || (bP13.hitTestObject(GSEngine.armor5)))) || (bP14.hitTestObject(GSEngine.armor5)))) || (bP15.hitTestObject(GSEngine.armor5)))) || (bP16.hitTestObject(GSEngine.armor5)))) || (bP17.hitTestObject(GSEngine.armor5)))) || (bP18.hitTestObject(GSEngine.armor5)))){
GSEngine.armor5.diTint();
GSEngine.armor5HP = (GSEngine.armor5HP - (damage * globalMulD));
_local6 = new Effect();
_local6.type = 14;
_local6.x = GSEngine.armor5.x;
_local6.y = GSEngine.armor5.y;
stage.addChild(_local6);
damageCD = 0;
};
};
if (((!((GSEngine.armor6 == null))) && ((GSEngine.armor6HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor6)) || (bP3.hitTestObject(GSEngine.armor6)))) || (bP4.hitTestObject(GSEngine.armor6)))) || (bP5.hitTestObject(GSEngine.armor6)))) || (bP6.hitTestObject(GSEngine.armor6)))) || (bP7.hitTestObject(GSEngine.armor6)))) || (bP8.hitTestObject(GSEngine.armor6)))) || (bP9.hitTestObject(GSEngine.armor6)))) || (bP10.hitTestObject(GSEngine.armor6)))) || (bP11.hitTestObject(GSEngine.armor6)))) || (bP12.hitTestObject(GSEngine.armor6)))) || (bP13.hitTestObject(GSEngine.armor6)))) || (bP14.hitTestObject(GSEngine.armor6)))) || (bP15.hitTestObject(GSEngine.armor6)))) || (bP16.hitTestObject(GSEngine.armor6)))) || (bP17.hitTestObject(GSEngine.armor6)))) || (bP18.hitTestObject(GSEngine.armor6)))){
GSEngine.armor6.diTint();
GSEngine.armor6HP = (GSEngine.armor6HP - (damage * globalMulD));
_local7 = new Effect();
_local7.type = 14;
_local7.x = GSEngine.armor6.x;
_local7.y = GSEngine.armor6.y;
stage.addChild(_local7);
damageCD = 0;
};
};
if (((!((GSEngine.armor7 == null))) && ((GSEngine.armor7HP > 0)))){
if (((((((((((((((((((((((((((((((((bP2.hitTestObject(GSEngine.armor7)) || (bP3.hitTestObject(GSEngine.armor7)))) || (bP4.hitTestObject(GSEngine.armor7)))) || (bP5.hitTestObject(GSEngine.armor7)))) || (bP6.hitTestObject(GSEngine.armor7)))) || (bP7.hitTestObject(GSEngine.armor7)))) || (bP8.hitTestObject(GSEngine.armor7)))) || (bP9.hitTestObject(GSEngine.armor7)))) || (bP10.hitTestObject(GSEngine.armor7)))) || (bP11.hitTestObject(GSEngine.armor7)))) || (bP12.hitTestObject(GSEngine.armor7)))) || (bP13.hitTestObject(GSEngine.armor7)))) || (bP14.hitTestObject(GSEngine.armor7)))) || (bP15.hitTestObject(GSEngine.armor7)))) || (bP16.hitTestObject(GSEngine.armor7)))) || (bP17.hitTestObject(GSEngine.armor7)))) || (bP18.hitTestObject(GSEngine.armor7)))){
GSEngine.armor7.diTint();
GSEngine.armor7HP = (GSEngine.armor7HP - (damage * globalMulD));
_local8 = new Effect();
_local8.type = 14;
_local8.x = GSEngine.armor7.x;
_local8.y = GSEngine.armor7.y;
stage.addChild(_local8);
damageCD = 0;
};
};
};
} else {
damageCD++;
};
}
function checkHitArmor(_arg1){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:MovieClip;
var _local13:MovieClip;
var _local14:MovieClip;
var _local15:MovieClip;
if (((((((((((((((((((((((((!((this == null))) && (!((_arg1 == null))))) && ((GSEngine.shieldAttached == false)))) && ((GSEngine.assaultMode == true)))) && (!((bulletBehav == 61))))) && (!((bulletBehav == 62))))) && (!((bulletBehav == 64))))) && (!((bulletBehav == 65))))) && (!((bulletBehav == 66))))) && (!((bulletBehav == 67))))) && (!((bulletBehav == 68))))) && (!((bulletBehav == 70))))) && (!((bulletBehav == 73))))){
if (((!((GSEngine.armor1 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor1)) && ((GSEngine.armor1HP > 0)))){
_local2 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor1HP > 1){
GSEngine.armor1HP = (GSEngine.armor1HP + 1);
};
_local2.type = 29;
_local2.x = this.x;
_local2.y = this.y;
stage.addChild(_local2);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor1.diTint();
GSEngine.armor1HP = (GSEngine.armor1HP - (damage * globalMulD));
_local2.type = 16;
_local2.x = this.x;
_local2.y = this.y;
stage.addChild(_local2);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor2 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor2)) && ((GSEngine.armor2HP > 0)))){
_local3 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor2HP > 1){
GSEngine.armor2HP = (GSEngine.armor2HP + 1);
};
_local3.type = 29;
_local3.x = this.x;
_local3.y = this.y;
stage.addChild(_local3);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor2.diTint();
GSEngine.armor2HP = (GSEngine.armor2HP - (damage * globalMulD));
_local3.type = 16;
_local3.x = this.x;
_local3.y = this.y;
stage.addChild(_local3);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor3 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor3)) && ((GSEngine.armor3HP > 0)))){
_local4 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor3HP > 1){
GSEngine.armor3HP = (GSEngine.armor3HP + 1);
};
_local4.type = 29;
_local4.x = this.x;
_local4.y = this.y;
stage.addChild(_local4);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor3.diTint();
GSEngine.armor3HP = (GSEngine.armor3HP - (damage * globalMulD));
_local4.type = 16;
_local4.x = this.x;
_local4.y = this.y;
stage.addChild(_local4);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor4 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor4)) && ((GSEngine.armor4HP > 0)))){
_local5 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor4HP > 1){
GSEngine.armor4HP = (GSEngine.armor4HP + 1);
};
_local5.type = 29;
_local5.x = this.x;
_local5.y = this.y;
stage.addChild(_local5);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor4.diTint();
GSEngine.armor4HP = (GSEngine.armor4HP - (damage * globalMulD));
_local5.type = 16;
_local5.x = this.x;
_local5.y = this.y;
stage.addChild(_local5);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor5 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor5)) && ((GSEngine.armor5HP > 0)))){
_local6 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor5HP > 1){
GSEngine.armor5HP = (GSEngine.armor5HP + 1);
};
_local6.type = 29;
_local6.x = this.x;
_local6.y = this.y;
stage.addChild(_local6);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor5.diTint();
GSEngine.armor5HP = (GSEngine.armor5HP - (damage * globalMulD));
_local6.type = 16;
_local6.x = this.x;
_local6.y = this.y;
stage.addChild(_local6);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor6 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor6)) && ((GSEngine.armor6HP > 0)))){
_local7 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor6HP > 1){
GSEngine.armor6HP = (GSEngine.armor6HP + 1);
};
_local7.type = 29;
_local7.x = this.x;
_local7.y = this.y;
stage.addChild(_local7);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor6.diTint();
GSEngine.armor6HP = (GSEngine.armor6HP - (damage * globalMulD));
_local7.type = 16;
_local7.x = this.x;
_local7.y = this.y;
stage.addChild(_local7);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
if (((!((GSEngine.armor7 == null))) && (!((stage == null))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor7)) && ((GSEngine.armor7HP > 0)))){
_local8 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) || ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor7HP > 1){
GSEngine.armor7HP = (GSEngine.armor7HP + 1);
};
_local8.type = 29;
_local8.x = this.x;
_local8.y = this.y;
stage.addChild(_local8);
};
} else {
if (GSEngine.njurus == false){
if (((!((GSEngine.njurusApa == "Protect"))) && (!((GSEngine.njurusApa == "Black Hole"))))){
GSEngine.armor7.diTint();
GSEngine.armor7HP = (GSEngine.armor7HP - (damage * globalMulD));
_local8.type = 16;
_local8.x = this.x;
_local8.y = this.y;
stage.addChild(_local8);
};
};
};
if (GSEngine.sound == true){
bR.play();
};
removeThis();
};
};
} else {
if (((((((((((((!((this == null))) && (!((_arg1 == null))))) && ((GSEngine.shieldAttached == false)))) && ((GSEngine.assaultMode == true)))) && ((bulletBehav == 70)))) || ((bulletBehav == 73)))) || ((bulletBehav == 68)))){
if (((!((GSEngine.armor1 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor1)) && ((GSEngine.armor1HP > 0)))){
if (damageCD > 4){
_local9 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor1HP > 1){
GSEngine.armor1HP = (GSEngine.armor1HP + 1);
};
_local9.type = 29;
_local9.x = this.x;
_local9.y = this.y;
stage.addChild(_local9);
};
} else {
GSEngine.armor1.diTint();
GSEngine.armor1HP = (GSEngine.armor1HP - (damage * globalMulD));
_local9.type = 16;
_local9.x = this.x;
_local9.y = this.y;
stage.addChild(_local9);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor2 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor2)) && ((GSEngine.armor2HP > 0)))){
if (damageCD > 4){
_local10 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor2HP > 1){
GSEngine.armor2HP = (GSEngine.armor2HP + 1);
};
_local10.type = 29;
_local10.x = this.x;
_local10.y = this.y;
stage.addChild(_local10);
};
} else {
GSEngine.armor2.diTint();
GSEngine.armor2HP = (GSEngine.armor2HP - (damage * globalMulD));
_local10.type = 16;
_local10.x = this.x;
_local10.y = this.y;
stage.addChild(_local10);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor3 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor3)) && ((GSEngine.armor3HP > 0)))){
if (damageCD > 4){
_local11 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor3HP > 1){
GSEngine.armor3HP = (GSEngine.armor3HP + 1);
};
_local11.type = 29;
_local11.x = this.x;
_local11.y = this.y;
stage.addChild(_local11);
};
} else {
GSEngine.armor3.diTint();
GSEngine.armor3HP = (GSEngine.armor3HP - (damage * globalMulD));
_local11.type = 16;
_local11.x = this.x;
_local11.y = this.y;
stage.addChild(_local11);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor4 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor4)) && ((GSEngine.armor4HP > 0)))){
if (damageCD > 4){
_local12 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor4HP > 1){
GSEngine.armor4HP = (GSEngine.armor4HP + 1);
};
_local12.type = 29;
_local12.x = this.x;
_local12.y = this.y;
stage.addChild(_local12);
};
} else {
GSEngine.armor4.diTint();
GSEngine.armor4HP = (GSEngine.armor4HP - (damage * globalMulD));
_local12.type = 16;
_local12.x = this.x;
_local12.y = this.y;
stage.addChild(_local12);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor5 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor5)) && ((GSEngine.armor5HP > 0)))){
if (damageCD > 4){
_local13 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor5HP > 1){
GSEngine.armor5HP = (GSEngine.armor5HP + 1);
};
_local13.type = 29;
_local13.x = this.x;
_local13.y = this.y;
stage.addChild(_local13);
};
} else {
GSEngine.armor5.diTint();
GSEngine.armor5HP = (GSEngine.armor5HP - (damage * globalMulD));
_local13.type = 16;
_local13.x = this.x;
_local13.y = this.y;
stage.addChild(_local13);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor6 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor6)) && ((GSEngine.armor6HP > 0)))){
if (damageCD > 4){
_local14 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor6HP > 1){
GSEngine.armor6HP = (GSEngine.armor6HP + 1);
};
_local14.type = 29;
_local14.x = this.x;
_local14.y = this.y;
stage.addChild(_local14);
};
} else {
GSEngine.armor6.diTint();
GSEngine.armor6HP = (GSEngine.armor6HP - (damage * globalMulD));
_local14.type = 16;
_local14.x = this.x;
_local14.y = this.y;
stage.addChild(_local14);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
if (((!((GSEngine.armor7 == null))) && (!((stage == false))))){
if (((bPerimeter.p1.hitTestObject(GSEngine.armor7)) && ((GSEngine.armor7HP > 0)))){
if (damageCD > 4){
_local15 = new Effect();
if (GSEngine.njurus == true){
if ((((GSEngine.njurusApa == "Protect")) && ((GSEngine.njurusApa == "Black Hole")))){
if (GSEngine.armor7HP > 1){
GSEngine.armor7HP = (GSEngine.armor7HP + 1);
};
_local15.type = 29;
_local15.x = this.x;
_local15.y = this.y;
stage.addChild(_local15);
};
} else {
GSEngine.armor7.diTint();
GSEngine.armor7HP = (GSEngine.armor7HP - (damage * globalMulD));
_local15.type = 16;
_local15.x = this.x;
_local15.y = this.y;
stage.addChild(_local15);
};
if (GSEngine.sound == true){
bR.play();
};
damageCD = 0;
} else {
damageCD++;
};
};
};
};
};
}
function setVisible(_arg1){
_arg1.visible = true;
}
public function removeThis(){
var _local1:MovieClip;
if (((!((this == null))) && (!((this.parent == null))))){
if (bulletBehav == 48){
_local1 = new ledakan2();
_local1.x = this.x;
_local1.y = this.y;
stage.addChild(_local1);
};
this.parent.removeChild(this);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
public function addEf(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (((!((this == null))) && (!((stage == null))))){
_local4 = new Effect();
_local4.type = _arg3;
_local4.x = _arg1;
_local4.y = _arg2;
stage.addChild(_local4);
};
}
private function bulletBehaviour(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41:Number;
var _local42:Number;
var _local43:Number;
var _local44:Number;
var _local45:Number;
var _local46:Number;
var _local47:Number;
var _local48:Number;
var _local49:Number;
var _local50:Number;
var _local51:Number;
var _local52:Number;
var _local53:Number;
var _local54:Number;
var _local55:Number;
var _local56:Number;
var _local57:Number;
var _local58:Number;
var _local59:Number;
var _local60:Number;
var _local61:Number;
var _local62:Number;
var _local63:Number;
var _local64:Number;
var _local65:Number;
var _local66:Number;
var _local67:Number;
var _local68:Number;
var _local69:Number;
var _local70:Number;
var _local71:Number;
var _local72:Number;
var _local73:Number;
var _local74:Number;
var _local75:Number;
var _local76:Number;
var _local77:Number;
var _local78:Number;
var _local79:Number;
var _local80:Number;
var _local81:Number;
var _local82:Number;
var _local83:Number;
var _local84:Number;
var _local85:Number;
var _local86:Number;
var _local87:Number;
var _local88:Number;
var _local89:Number;
var _local90:Number;
var _local91:Number;
var _local92:Number;
var _local93:Number;
var _local94:Number;
var _local95:Number;
var _local96:Number;
var _local97:Number;
var _local98:Number;
var _local99:Number;
var _local100:Number;
var _local101:Number;
var _local102:Number;
var _local103:Number;
var _local104:Number;
var _local105:Number;
var _local106:Number;
var _local107:Number;
var _local108:Number;
var _local109:Number;
var _local110:Number;
var _local111:Number;
var _local112:Number;
var _local113:Number;
var _local114:Number;
var _local115:Number;
var _local116:Number;
var _local117:Number;
var _local118:Number;
var _local119:Number;
var _local120:Number;
var _local121:Number;
var _local122:Number;
var _local123:Number;
if (bulletBehav == 1){
ySpeed = 0;
xSpeed = (-7 * globalMulS);
this.rotation = 180;
setVisible(b1);
} else {
if (bulletBehav == 2){
ySpeed = (2 * globalMulS);
xSpeed = (-7 * globalMulS);
this.rotation = 160;
setVisible(b1);
} else {
if (bulletBehav == 3){
ySpeed = (-2 * globalMulS);
xSpeed = (-7 * globalMulS);
this.rotation = 200;
setVisible(b1);
} else {
if (bulletBehav == 4){
_local1 = (GSEngine.player.y - this.y);
_local2 = (GSEngine.player.x - this.x);
_local3 = Math.atan2(_local1, _local2);
ySpeed = (Math.sin(_local3) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local3) * (maxSpeed * globalMulS));
this.rotation = ((_local3 / Math.PI) * 180);
setVisible(b1);
} else {
if (bulletBehav == 5){
_local4 = (GSEngine.player.y - this.y);
_local5 = (GSEngine.player.x - this.x);
_local6 = Math.atan2(_local4, _local5);
ySpeed = (Math.sin(_local6) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local6) * (maxSpeed * globalMulS));
this.rotation = ((_local6 / Math.PI) * 180);
setVisible(b1);
} else {
if (bulletBehav == 6){
ySpeed = (3 * globalMulS);
xSpeed = (-6.5 * globalMulS);
this.rotation = 160;
setVisible(b2);
} else {
if (bulletBehav == 7){
ySpeed = (-3 * globalMulS);
xSpeed = (-6.5 * globalMulS);
this.rotation = 200;
setVisible(b2);
} else {
if (bulletBehav == 8){
_local7 = (_root.movingTarget.y - this.y);
_local8 = (_root.movingTarget.x - this.x);
_local9 = Math.atan2(_local7, _local8);
ySpeed = (Math.sin(_local9) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local9) * (maxSpeed * globalMulS));
this.rotation = ((_local9 / Math.PI) * 180);
setVisible(b2);
} else {
if (bulletBehav == 9){
_local10 = ((GSEngine.player.y + 70) - this.y);
_local11 = (GSEngine.player.x - this.x);
_local12 = Math.atan2(_local10, _local11);
ySpeed = (Math.sin(_local12) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local12) * (maxSpeed * globalMulS));
this.rotation = ((_local12 / Math.PI) * 180);
setVisible(b2);
} else {
if (bulletBehav == 10){
_local13 = ((_root.movingTarget.y - 70) - this.y);
_local14 = (_root.movingTarget.x - this.x);
_local15 = Math.atan2(_local13, _local14);
ySpeed = (Math.sin(_local15) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local15) * (maxSpeed * globalMulS));
this.rotation = ((_local15 / Math.PI) * 180);
setVisible(b2);
} else {
if (bulletBehav == 11){
ySpeed = 0;
xSpeed = (-7 * globalMulS);
this.rotation = 180;
setVisible(b2);
} else {
if (bulletBehav == 12){
ySpeed = (7 * globalMulS);
xSpeed = 0;
this.rotation = 90;
setVisible(b2);
} else {
if (bulletBehav == 13){
_local16 = (GSEngine.player.y - this.y);
_local17 = (GSEngine.player.x - this.x);
_local18 = Math.atan2(_local16, _local17);
ySpeed = (Math.sin(_local18) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local18) * (maxSpeed * globalMulS));
this.rotation = ((_local18 / Math.PI) * 180);
setVisible(b2);
} else {
if (bulletBehav == 14){
_local19 = (this.rotation * (Math.PI / 180));
ySpeed = (Math.sin(_local19) * (14 * globalMulS));
xSpeed = (Math.cos(_local19) * (14 * globalMulS));
setVisible(b3);
} else {
if (bulletBehav == 15){
_local20 = (GSEngine.player.y - this.y);
_local21 = (GSEngine.player.x - this.x);
_local22 = Math.atan2(_local20, _local21);
ySpeed = (Math.sin(_local22) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local22) * (maxSpeed * globalMulS));
this.rotation = ((_local22 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 16){
_local23 = ((GSEngine.player.y + 70) - this.y);
_local24 = (GSEngine.player.x - this.x);
_local25 = Math.atan2(_local23, _local24);
ySpeed = (Math.sin(_local25) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local25) * (maxSpeed * globalMulS));
this.rotation = ((_local25 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 17){
_local26 = ((GSEngine.player.y - 70) - this.y);
_local27 = (GSEngine.player.x - this.x);
_local28 = Math.atan2(_local26, _local27);
ySpeed = (Math.sin(_local28) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local28) * (maxSpeed * globalMulS));
this.rotation = ((_local28 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 18){
_local29 = ((GSEngine.player.y + 140) - this.y);
_local30 = (GSEngine.player.x - this.x);
_local31 = Math.atan2(_local29, _local30);
ySpeed = (Math.sin(_local31) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local31) * (maxSpeed * globalMulS));
this.rotation = ((_local31 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 19){
_local32 = ((GSEngine.player.y - 140) - this.y);
_local33 = (GSEngine.player.x - this.x);
_local34 = Math.atan2(_local32, _local33);
ySpeed = (Math.sin(_local34) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local34) * (maxSpeed * globalMulS));
this.rotation = ((_local34 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 20){
_local35 = (_root.movingTarget.y - this.y);
_local36 = (_root.movingTarget.x - this.x);
_local37 = Math.atan2(_local35, _local36);
ySpeed = (Math.sin(_local37) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local37) * (maxSpeed * globalMulS));
this.rotation = ((_local37 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 21){
_local38 = ((_root.movingTarget.y + 60) - this.y);
_local39 = (_root.movingTarget.x - this.x);
_local40 = Math.atan2(_local38, _local39);
ySpeed = (Math.sin(_local40) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local40) * (maxSpeed * globalMulS));
this.rotation = ((_local40 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 22){
_local41 = ((_root.movingTarget.y + 120) - this.y);
_local42 = (_root.movingTarget.x - this.x);
_local43 = Math.atan2(_local41, _local42);
ySpeed = (Math.sin(_local43) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local43) * (maxSpeed * globalMulS));
this.rotation = ((_local43 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 23){
_local44 = ((_root.movingTarget.y - 60) - this.y);
_local45 = (_root.movingTarget.x - this.x);
_local46 = Math.atan2(_local44, _local45);
ySpeed = (Math.sin(_local46) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local46) * (maxSpeed * globalMulS));
this.rotation = ((_local46 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 24){
_local47 = ((_root.movingTarget.y - 120) - this.y);
_local48 = (_root.movingTarget.x - this.x);
_local49 = Math.atan2(_local47, _local48);
ySpeed = (Math.sin(_local49) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local49) * (maxSpeed * globalMulS));
this.rotation = ((_local49 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 25){
_local50 = ((_root.ePod.y - 120) - this.y);
_local51 = (_root.ePod.x - this.x);
_local52 = Math.atan2(_local50, _local51);
ySpeed = (Math.sin(_local52) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local52) * (maxSpeed * globalMulS));
this.rotation = ((_local52 / Math.PI) * 180);
setVisible(b3);
} else {
if (bulletBehav == 26){
ySpeed = (7 * globalMulS);
xSpeed = (-7 * globalMulS);
this.rotation = 135;
setVisible(b3);
} else {
if (bulletBehav == 27){
ySpeed = (-7 * globalMulS);
xSpeed = (-7 * globalMulS);
this.rotation = 45;
setVisible(b3);
} else {
if (bulletBehav == 28){
xSpeed = (-8 * globalMulS);
ySpeed = 0;
setVisible(b4);
} else {
if (bulletBehav == 29){
xSpeed = 0;
ySpeed = (8 * globalMulS);
setVisible(b4);
} else {
if (bulletBehav == 30){
xSpeed = 0;
ySpeed = (-8 * globalMulS);
setVisible(b4);
} else {
if (bulletBehav == 31){
xSpeed = 0;
ySpeed = (-8 * globalMulS);
setVisible(b4);
} else {
if (bulletBehav == 32){
xSpeed = (-2 * globalMulS);
ySpeed = (-8 * globalMulS);
setVisible(b4);
} else {
if (bulletBehav == 33){
xSpeed = (-2 * globalMulS);
ySpeed = (-8 * globalMulS);
setVisible(b4);
} else {
if (bulletBehav == 34){
_local53 = (_root.movingTarget2.y - this.y);
_local54 = (_root.movingTarget2.x - this.x);
_local55 = Math.atan2(_local53, _local54);
ySpeed = (Math.sin(_local55) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local55) * (maxSpeed * globalMulS));
this.rotation = ((_local55 / Math.PI) * 180);
setVisible(b4);
} else {
if (bulletBehav == 35){
_local56 = ((_root.movingTarget2.y + 60) - this.y);
_local57 = (_root.movingTarget2.x - this.x);
_local58 = Math.atan2(_local56, _local57);
ySpeed = (Math.sin(_local58) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local58) * (maxSpeed * globalMulS));
this.rotation = ((_local58 / Math.PI) * 180);
setVisible(b4);
} else {
if (bulletBehav == 36){
_local59 = ((_root.movingTarget.y - 60) - this.y);
_local60 = (_root.movingTarget.x - this.x);
_local61 = Math.atan2(_local59, _local60);
ySpeed = (Math.sin(_local61) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local61) * (maxSpeed * globalMulS));
this.rotation = ((_local61 / Math.PI) * 180);
setVisible(b4);
} else {
if (bulletBehav == 37){
_local62 = (GSEngine.player.y - this.y);
_local63 = (GSEngine.player.x - this.x);
_local64 = Math.atan2(_local62, _local63);
ySpeed = (Math.sin(_local64) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local64) * (maxSpeed * globalMulS));
this.rotation = ((_local64 / Math.PI) * 180);
setVisible(b4);
} else {
if (bulletBehav == 38){
_local65 = (_root.movingTarget.y - this.y);
_local66 = (_root.movingTarget.x - this.x);
_local67 = Math.atan2(_local65, _local66);
ySpeed = (Math.sin(_local67) * (maxSpeed * globalMulS));
xSpeed = (Math.cos(_local67) * (maxSpeed * globalMulS));
this.rotation = ((_local67 / Math.PI) * 180);
setVisible(b4);
} else {
if (bulletBehav == 39){
ySpeed = 0;
xSpeed = (-9 * globalMulS);
setVisible(b5);
} else {
if (bulletBehav == 40){
_local68 = ((GSEngine.player.y + ((Math.random() * 100) - 50)) - this.y);
_local69 = (GSEngine.player.x - this.x);
_local70 = Math.atan2(_local68, _local69);
ySpeed = (Math.sin(_local70) * (13 * globalMulS));
xSpeed = (Math.cos(_local70) * (13 * globalMulS));
this.rotation = ((_local70 / Math.PI) * 180);
setVisible(b5);
} else {
if (bulletBehav == 41){
_local71 = (_root.movingTarget.y - this.y);
_local72 = (_root.movingTarget.x - this.x);
_local73 = Math.atan2(_local71, _local72);
ySpeed = (Math.sin(_local73) * (9 * globalMulS));
xSpeed = (Math.cos(_local73) * (9 * globalMulS));
this.rotation = ((_local73 / Math.PI) * 180);
setVisible(b5);
} else {
if (bulletBehav == 42){
_local74 = (_root.movingTarget2.y - this.y);
_local75 = (_root.movingTarget2.x - this.x);
_local76 = Math.atan2(_local74, _local75);
ySpeed = (Math.sin(_local76) * (9 * globalMulS));
xSpeed = (Math.cos(_local76) * (9 * globalMulS));
this.rotation = ((_local76 / Math.PI) * 180);
setVisible(b5);
} else {
if (bulletBehav == 43){
_local77 = (_root.ePod.y - this.y);
_local78 = (_root.ePod.x - this.x);
_local79 = Math.atan2(_local77, _local78);
ySpeed = (Math.sin(_local79) * (9 * globalMulS));
xSpeed = (Math.cos(_local79) * (9 * globalMulS));
this.rotation = ((_local79 / Math.PI) * 180);
setVisible(b5);
} else {
if (bulletBehav == 44){
xSpeed = 0;
ySpeed = (-7 * globalMulS);
setVisible(b6);
} else {
if (bulletBehav == 45){
xSpeed = (((Math.random() * 5) - 10) * globalMulS);
ySpeed = (((Math.random() * 6) - 3) * globalMulS);
setVisible(b6);
} else {
if (bulletBehav == 46){
xSpeed = (((Math.random() * 5) - 10) * globalMulS);
ySpeed = ((Math.random() * 6) * globalMulS);
setVisible(b6);
} else {
if (bulletBehav == 47){
_local80 = ((_root.movingTarget.y + (Math.random() * 60)) - this.y);
_local81 = (_root.movingTarget.x - this.x);
_local82 = Math.atan2(_local80, _local81);
ySpeed = ((Math.sin(_local82) * 9) * globalMulS);
xSpeed = ((Math.cos(_local82) * 9) * globalMulS);
this.rotation = ((_local82 / Math.PI) * 180);
setVisible(b6);
} else {
if (bulletBehav == 48){
setVisible(b7);
} else {
if (bulletBehav == 49){
setVisible(b7);
} else {
if (bulletBehav == 50){
xSpeed = (-10 * globalMulS);
ySpeed = ((Math.random() * 4) * globalMulS);
this.rotation = 180;
setVisible(b7);
} else {
if (bulletBehav == 51){
xSpeed = (-6 * globalMulS);
ySpeed = 0;
this.rotation = 180;
setVisible(b8);
} else {
if (bulletBehav == 52){
_local83 = (GSEngine.player.y - this.y);
_local84 = (GSEngine.player.x - this.x);
_local85 = Math.atan2(_local83, _local84);
ySpeed = ((Math.sin(_local85) * 9) * globalMulS);
xSpeed = ((Math.cos(_local85) * 9) * globalMulS);
this.rotation = ((_local85 / Math.PI) * 180);
setVisible(b8);
} else {
if (bulletBehav == 53){
ySpeed = (((Math.random() * 1) - 0.5) * globalMulS);
xSpeed = (((Math.random() * -3) - 0.5) * globalMulS);
setVisible(b9);
} else {
if (bulletBehav == 54){
_local86 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local86) * 14) * globalMulS);
xSpeed = ((Math.cos(_local86) * 14) * globalMulS);
setVisible(b10);
} else {
if (bulletBehav == 55){
_local87 = (GSEngine.player.y - this.y);
_local88 = (GSEngine.player.x - this.x);
_local89 = Math.atan2(_local87, _local88);
ySpeed = ((Math.sin(_local89) * 14) * globalMulS);
xSpeed = ((Math.cos(_local89) * 14) * globalMulS);
this.rotation = ((_local89 / Math.PI) * 180);
setVisible(b10);
} else {
if (bulletBehav == 56){
_local90 = (_root.movingTarget2.y - this.y);
_local91 = (_root.movingTarget2.x - this.x);
_local92 = Math.atan2(_local90, _local91);
ySpeed = ((Math.sin(_local92) * 14) * globalMulS);
xSpeed = ((Math.cos(_local92) * 14) * globalMulS);
this.rotation = ((_local92 / Math.PI) * 180);
setVisible(b10);
} else {
if (bulletBehav == 57){
ySpeed = 0;
xSpeed = (-13 * globalMulS);
setVisible(b11);
} else {
if (bulletBehav == 58){
_local93 = (GSEngine.player.y - this.y);
_local94 = (GSEngine.player.x - this.x);
_local95 = Math.atan2(_local93, _local94);
ySpeed = ((Math.sin(_local95) * 13) * globalMulS);
xSpeed = ((Math.cos(_local95) * 13) * globalMulS);
this.rotation = ((_local95 / Math.PI) * 180);
setVisible(b11);
} else {
if (bulletBehav == 59){
_local96 = (_root.movingTarget.y - this.y);
_local97 = (_root.movingTarget.x - this.x);
_local98 = Math.atan2(_local96, _local97);
ySpeed = ((Math.sin(_local98) * 13) * globalMulS);
xSpeed = ((Math.cos(_local98) * 13) * globalMulS);
this.rotation = ((_local98 / Math.PI) * 180);
setVisible(b11);
} else {
if (bulletBehav == 60){
_local99 = (_root.movingTarget2.y - this.y);
_local100 = (_root.movingTarget2.x - this.x);
_local101 = Math.atan2(_local99, _local100);
ySpeed = ((Math.sin(_local101) * 13) * globalMulS);
xSpeed = ((Math.cos(_local101) * 13) * globalMulS);
this.rotation = ((_local101 / Math.PI) * 180);
setVisible(b12);
} else {
if (bulletBehav == 61){
ySpeed = (6.4 * globalMulS);
xSpeed = (-4 * globalMulS);
this.rotation = 300;
setVisible(b10);
} else {
if (bulletBehav == 62){
ySpeed = (-6.4 * globalMulS);
xSpeed = (-4 * globalMulS);
this.rotation = 60;
setVisible(b10);
} else {
if (bulletBehav == 63){
xSpeed = (-(((randomRange * 7) + 7)) * globalMulS);
ySpeed = (((randomRange * 10) - 5) * globalMulS);
setVisible(b3);
} else {
if (bulletBehav == 64){
xSpeed = 0;
ySpeed = 0;
setVisible(b13);
} else {
if (bulletBehav == 65){
xSpeed = 0;
ySpeed = 0;
setVisible(b13);
} else {
if (bulletBehav == 66){
xSpeed = 0;
ySpeed = 0;
_local102 = (_root.movingTarget2.y - this.y);
_local103 = (_root.movingTarget2.x - this.x);
_local104 = Math.atan2(_local102, _local103);
this.rotation = (((_local104 / Math.PI) * 180) + 180);
setVisible(b13);
} else {
if (bulletBehav == 67){
xSpeed = 0;
ySpeed = 0;
_local105 = (_root.movingTarget.y - this.y);
_local106 = (_root.movingTarget.x - this.x);
_local107 = Math.atan2(_local105, _local106);
this.rotation = (((_local107 / Math.PI) * 180) + 180);
setVisible(b13);
} else {
if (bulletBehav == 68){
xSpeed = 0;
ySpeed = 0;
_local108 = (GSEngine.player.y - this.y);
_local109 = (GSEngine.player.x - this.x);
_local110 = Math.atan2(_local108, _local109);
this.rotation = (((_local110 / Math.PI) * 180) + 180);
setVisible(b13);
} else {
if (bulletBehav == 69){
xSpeed = (-(((randomRange * 7) + 12)) * globalMulS);
ySpeed = (((randomRange * 6) - 3) * globalMulS);
setVisible(b10);
} else {
if (bulletBehav == 70){
xSpeed = 0;
ySpeed = 0;
_local111 = (GSEngine.player.y - this.y);
_local112 = (GSEngine.player.x - this.x);
_local113 = Math.atan2(_local111, _local112);
this.rotation = (((_local113 / Math.PI) * 180) + 180);
setVisible(b13);
} else {
if (bulletBehav == 71){
xSpeed = (-8 * globalMulS);
ySpeed = (-4 * globalMulS);
this.rotation = 200;
setVisible(b3);
} else {
if (bulletBehav == 72){
xSpeed = (-8 * globalMulS);
ySpeed = (4 * globalMulS);
this.rotation = 160;
setVisible(b3);
} else {
if (bulletBehav == 73){
xSpeed = 0;
ySpeed = 0;
setVisible(b13);
} else {
if (bulletBehav == 74){
xSpeed = 0;
ySpeed = 0;
setVisible(b13);
this.rotation = 135;
} else {
if (bulletBehav == 75){
xSpeed = 0;
ySpeed = 0;
setVisible(b13);
this.rotation = -135;
} else {
if (bulletBehav == 76){
setVisible(b1);
this.rotation = ((Math.random() * 60) - 30);
_local114 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local114) * 7) * globalMulS);
xSpeed = ((Math.cos(_local114) * 7) * globalMulS);
} else {
if (bulletBehav == 77){
setVisible(b2);
this.rotation = ((Math.random() * 60) - 30);
_local115 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local115) * 7) * globalMulS);
xSpeed = ((Math.cos(_local115) * 7) * globalMulS);
} else {
if (bulletBehav == 78){
setVisible(b10);
this.rotation = ((Math.random() * 60) - 30);
_local116 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local116) * 7) * globalMulS);
xSpeed = ((Math.cos(_local116) * 7) * globalMulS);
} else {
if (bulletBehav == 79){
setVisible(b11);
this.rotation = ((Math.random() * 60) - 30);
_local117 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local117) * 7) * globalMulS);
xSpeed = ((Math.cos(_local117) * 7) * globalMulS);
} else {
if (bulletBehav == 80){
_local118 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local118) * 13) * globalMulS);
xSpeed = ((Math.cos(_local118) * 13) * globalMulS);
setVisible(b5);
} else {
if (bulletBehav == 81){
ySpeed = (((randomRange * 2) - 1) * globalMulS);
xSpeed = (-8 * globalMulS);
setVisible(b14);
} else {
if (bulletBehav == 82){
_local119 = (this.rotation * (Math.PI / 180));
ySpeed = ((Math.sin(_local119) * 13) * globalMulS);
xSpeed = ((Math.cos(_local119) * 13) * globalMulS);
setVisible(b11);
} else {
if (bulletBehav == 83){
_local120 = (this.rotation * (Math.PI / 180));
ySpeed = 0;
xSpeed = 0;
setVisible(b12);
if (b12.currentFrame == b12.totalFrames){
removeThis();
};
} else {
if (bulletBehav == 84){
_local121 = (GSEngine.player.y - this.y);
_local122 = (GSEngine.player.x - this.x);
_local123 = Math.atan2(_local121, _local122);
ySpeed = ((Math.sin(_local123) * 9) * globalMulS);
xSpeed = ((Math.cos(_local123) * 9) * globalMulS);
this.rotation = ((_local123 / Math.PI) * 180);
setVisible(b8);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
private function bulletStat(){
if (b1.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (1 * globalMulD);
};
bPerimeter.gotoAndStop(1);
} else {
if (b2.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (2 * globalMulD);
};
bPerimeter.gotoAndStop(2);
} else {
if (b3.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (3 * globalMulD);
};
bPerimeter.gotoAndStop(3);
} else {
if (b4.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (3 * globalMulD);
};
bPerimeter.gotoAndStop(4);
} else {
if (b5.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (3 * globalMulD);
};
bPerimeter.gotoAndStop(5);
} else {
if (b6.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (4 * globalMulD);
};
bPerimeter.gotoAndStop(6);
} else {
if (b7.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (4 * globalMulD);
};
bPerimeter.gotoAndStop(7);
} else {
if (b8.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (10 * globalMulD);
};
bPerimeter.gotoAndStop(8);
} else {
if (b9.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (7 * globalMulD);
};
bPerimeter.gotoAndStop(9);
} else {
if (b10.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (7 * globalMulD);
};
bPerimeter.gotoAndStop(10);
} else {
if (b11.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (6 * globalMulD);
};
bPerimeter.gotoAndStop(11);
} else {
if (b12.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (2 * globalMulD);
};
bPerimeter.gotoAndStop(12);
} else {
if (b13.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (2 * globalMulD);
};
bPerimeter.gotoAndStop(13);
} else {
if (b14.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (3 * globalMulD);
};
bPerimeter.gotoAndStop(14);
} else {
if (b15.visible == true){
if (GSEngine.plusDef == 1){
damage = 0;
} else {
damage = (7 * globalMulD);
};
bPerimeter.gotoAndStop(15);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package
Section 127
//BulletRicochet (BulletRicochet)
package {
import flash.media.*;
public dynamic class BulletRicochet extends Sound {
}
}//package
Section 128
//burningRad (burningRad)
package {
import flash.display.*;
public dynamic class burningRad extends MovieClip {
public function burningRad(){
addFrameScript(1, frame2, 12, frame13, 40, frame41);
}
function frame2(){
stop();
}
function frame13(){
stop();
}
function frame41(){
GSEngine.njurus = false;
gotoAndPlay(1);
}
}
}//package
Section 129
//buyArmor (buyArmor)
package {
import flash.text.*;
public dynamic class buyArmor extends Font {
}
}//package
Section 130
//buyUpButton (buyUpButton)
package {
import flash.display.*;
public dynamic class buyUpButton extends MovieClip {
public function buyUpButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 131
//charge (charge)
package {
import flash.media.*;
public dynamic class charge extends Sound {
}
}//package
Section 132
//collectL (collectL)
package {
import flash.media.*;
public dynamic class collectL extends Sound {
}
}//package
Section 133
//cometTail (cometTail)
package {
import flash.display.*;
public dynamic class cometTail extends MovieClip {
}
}//package
Section 134
//confirmKlik (confirmKlik)
package {
import flash.media.*;
public dynamic class confirmKlik extends Sound {
}
}//package
Section 135
//cring (cring)
package {
import flash.media.*;
public dynamic class cring extends Sound {
}
}//package
Section 136
//dashE (dashE)
package {
import flash.media.*;
public dynamic class dashE extends Sound {
}
}//package
Section 137
//debris (debris)
package {
import flash.display.*;
import flash.events.*;
public class debris extends MovieClip {
var thisType:int;
var thisRot:Number;
var gravity:Number;// = 1.5
var xSpeed:Number;
var ySpeed:Number;
public function debris(){
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, eFrame);
thisType = Math.round((Math.random() * 8));
thisRot = (Math.random() * 9);
xSpeed = ((Math.random() * 6) - 8);
ySpeed = ((Math.random() * 12) + 5);
}
function eFrame(_arg1:Event):void{
if (GSEngine.isPaused == false){
this.x = (this.x + xSpeed);
this.y = (this.y - ySpeed);
this.rotation = (this.rotation + thisRot);
};
ySpeed = (ySpeed - gravity);
if (xSpeed > 0){
xSpeed = (xSpeed - 0.1);
} else {
if (xSpeed < 0){
xSpeed = (xSpeed - 0.1);
};
};
this.gotoAndStop(thisType);
if (((!((this == null))) && ((this.y > 500)))){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
};
if (GSEngine.phases == "Customize"){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
function frame1(){
stop();
}
}
}//package
Section 138
//deflect (deflect)
package {
import flash.display.*;
public dynamic class deflect extends MovieClip {
public function deflect(){
addFrameScript(1, frame2, 14, frame15, 25, frame26);
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame26(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 139
//dodgeEf2 (dodgeEf2)
package {
import flash.display.*;
public dynamic class dodgeEf2 extends MovieClip {
public function dodgeEf2(){
addFrameScript(5, frame6);
}
function frame6(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 140
//eExplosion (eExplosion)
package {
import flash.media.*;
public dynamic class eExplosion extends Sound {
}
}//package
Section 141
//Effect (Effect)
package {
import flash.display.*;
import flash.events.*;
public class Effect extends MovieClip {
public var efDef:MovieClip;
public var eSpark:MovieClip;
public var percikanPeluru3:MovieClip;
public var percikanPKena:MovieClip;
public var percikanKena2:MovieClip;
public var ledakanBatu:MovieClip;
public var listrikLakon:MovieClip;
public var percikanKena1:MovieClip;
public var healPro:MovieClip;
public var none:MovieClip;
public var eCommon:MovieClip;
public var critFlare:MovieClip;
public var ledakanFCannon:MovieClip;
public var heaEN:MovieClip;
public var kenaHits:MovieClip;
public var enemyJet1:MovieClip;
public var ledakanFCannon2:MovieClip;
public var heaAR:MovieClip;
public var eUncommon:MovieClip;
public var efDodge:MovieClip;
public var ledakanMusuh:MovieClip;
public var explosion2:MovieClip;
public var explosion1:MovieClip;
public var heaHP:MovieClip;
public var eRare:MovieClip;
public var percikanPKena2:MovieClip;
public var listrikMusuh:MovieClip;
public var percikanPKena10:MovieClip;
public var kenaRay:MovieClip;
public var percikanPeluru1:MovieClip;
public var percikanKena11:MovieClip;
public var dockEPod:MovieClip;
public var percikanPeluru2:MovieClip;
var type:int;
var efType:MovieClip;
public function Effect(){
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, eFrame);
explosion1.visible = false;
explosion2.visible = false;
percikanPeluru1.visible = false;
percikanPeluru2.visible = false;
percikanPeluru3.visible = false;
ledakanBatu.visible = false;
ledakanFCannon.visible = false;
ledakanMusuh.visible = false;
percikanKena1.visible = false;
percikanKena2.visible = false;
critFlare.visible = false;
listrikLakon.visible = false;
listrikMusuh.visible = false;
percikanPKena.visible = false;
percikanPKena2.visible = false;
enemyJet1.visible = false;
kenaHits.visible = false;
dockEPod.visible = false;
eSpark.visible = false;
eCommon.visible = false;
eUncommon.visible = false;
eRare.visible = false;
kenaRay.visible = false;
heaHP.visible = false;
heaEN.visible = false;
heaAR.visible = false;
efDef.visible = false;
healPro.visible = false;
efDodge.visible = false;
percikanPKena10.visible = false;
ledakanFCannon2.visible = false;
percikanKena11.visible = false;
}
public function eFrame(_arg1:Event):void{
if (this != null){
if (type == 1){
this.explosion1.visible = true;
efType = explosion1;
} else {
if (type == 2){
this.explosion2.visible = true;
efType = explosion2;
} else {
if (type == 3){
this.percikanPeluru1.visible = true;
efType = percikanPeluru1;
} else {
if (type == 4){
this.percikanPeluru2.visible = true;
efType = percikanPeluru2;
} else {
if (type == 5){
this.percikanPeluru2.visible = true;
efType = percikanPeluru3;
} else {
if (type == 6){
this.ledakanBatu.visible = true;
efType = ledakanBatu;
} else {
if (type == 7){
this.ledakanFCannon.visible = true;
efType = ledakanFCannon;
} else {
if (type == 8){
this.ledakanMusuh.visible = true;
efType = ledakanMusuh;
} else {
if (type == 9){
this.percikanKena1.visible = true;
efType = percikanKena1;
} else {
if (type == 10){
this.percikanKena2.visible = true;
efType = percikanKena2;
} else {
if (type == 11){
this.critFlare.visible = true;
efType = critFlare;
} else {
if (type == 12){
this.listrikLakon.visible = true;
efType = listrikLakon;
} else {
if (type == 13){
this.listrikMusuh.visible = true;
efType = listrikMusuh;
} else {
if (type == 14){
this.percikanPKena.visible = true;
efType = percikanPKena;
} else {
if (type == 15){
this.enemyJet1.visible = true;
efType = enemyJet1;
} else {
if (type == 16){
this.kenaHits.visible = true;
efType = kenaHits;
} else {
if (type == 17){
this.dockEPod.visible = true;
efType = dockEPod;
} else {
if (type == 18){
this.eSpark.visible = true;
efType = eSpark;
} else {
if (type == 19){
this.eCommon.visible = true;
efType = eCommon;
} else {
if (type == 20){
this.eUncommon.visible = true;
efType = eUncommon;
} else {
if (type == 21){
this.eRare.visible = true;
efType = eRare;
} else {
if (type == 22){
this.percikanPKena2.visible = true;
efType = percikanPKena2;
} else {
if (type == 23){
this.kenaRay.visible = true;
efType = kenaRay;
} else {
if (type == 24){
this.none.visible = true;
efType = none;
} else {
if (type == 25){
this.heaHP.visible = true;
efType = heaHP;
} else {
if (type == 26){
this.heaEN.visible = true;
efType = heaEN;
} else {
if (type == 27){
this.heaAR.visible = true;
efType = heaAR;
} else {
if (type == 28){
this.efDef.visible = true;
efType = efDef;
} else {
if (type == 29){
this.healPro.visible = true;
efType = healPro;
} else {
if (type == 30){
this.efDodge.visible = true;
efType = efDodge;
} else {
if (type == 31){
this.percikanPKena10.visible = true;
efType = percikanPKena10;
} else {
if (type == 32){
this.ledakanFCannon2.visible = true;
efType = ledakanFCannon2;
} else {
if (type == 33){
this.percikanKena11.visible = true;
efType = percikanKena11;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (((!((this == null))) && (!((this.parent == null))))){
if (this.efType.currentFrame == this.efType.totalFrames){
removeEventListener(Event.ENTER_FRAME, eFrame);
this.parent.removeChild(this);
};
};
}
function frame1(){
stop();
}
}
}//package
Section 142
//efGravitation (efGravitation)
package {
import flash.display.*;
public dynamic class efGravitation extends MovieClip {
public function efGravitation(){
addFrameScript(1, frame2, 5, frame6, 15, frame16);
}
function frame2(){
stop();
}
function frame6(){
stop();
}
function frame16(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 143
//efGWarming (efGWarming)
package {
import flash.events.*;
import flash.display.*;
public dynamic class efGWarming extends MovieClip {
public function efGWarming(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function eFrame(_arg1:Event):void{
this.x = 360;
this.y = 240;
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame10(){
stop();
}
function frame20(){
GSEngine.njurus = false;
if (((!((this == null))) && (!((this.parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.parent.removeChild(this);
};
}
}
}//package
Section 144
//efGWarmingAnim (efGWarmingAnim)
package {
import flash.display.*;
public dynamic class efGWarmingAnim extends MovieClip {
public function efGWarmingAnim(){
addFrameScript(1, frame2, 10, frame11, 22, frame23);
}
function frame2(){
stop();
}
function frame11(){
stop();
}
function frame23(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 145
//efProtect (efProtect)
package {
import flash.display.*;
public dynamic class efProtect extends MovieClip {
public function efProtect(){
addFrameScript(1, frame2, 10, frame11, 20, frame21);
}
function frame2(){
stop();
}
function frame11(){
stop();
}
function frame21(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 146
//endingScene (endingScene)
package {
import flash.display.*;
import flash.events.*;
public dynamic class endingScene extends MovieClip {
public var notif:MovieClip;
public var fade:MovieClip;
public function endingScene(){
addFrameScript(0, frame1, 29, frame30, 309, frame310, 350, frame351);
}
public function eFrame(_arg1:Event){
this.parent.addChild(this);
if (((!((fade == null))) && ((fade.currentFrame == fade.totalFrames)))){
if (((!((this == null))) && (!((this.parent == null))))){
fade.parent.removeChild(fade);
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
};
};
}
public function onClick(_arg1:MouseEvent):void{
fade = new fadeOut();
stage.addChild(fade);
removeEventListener(MouseEvent.CLICK, onClick);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame30(){
addEventListener(MouseEvent.CLICK, onClick);
}
function frame310(){
stop();
}
function frame351(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
}
}//package
Section 147
//Enemy (Enemy)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.media.*;
public class Enemy extends MovieClip {
public var standartEnemy15:MovieClip;
public var jetFire:MovieClip;
public var standartEnemy21:MovieClip;
public var standartEnemy14:MovieClip;
public var standartEnemy20:MovieClip;
public var standartEnemy17:MovieClip;
public var standartEnemy23:MovieClip;
public var standartEnemy16:MovieClip;
public var standartEnemy8:MovieClip;
public var standartEnemy22:MovieClip;
public var standartEnemy11:MovieClip;
public var standartEnemy9:MovieClip;
public var standartEnemy10:MovieClip;
public var standartEnemy13:MovieClip;
public var standartEnemy6:MovieClip;
public var annoyer2:MovieClip;
public var standartEnemy12:MovieClip;
public var standartEnemy7:MovieClip;
public var standartEnemy4:MovieClip;
public var spc1:MovieClip;
public var standartEnemy5:MovieClip;
public var annoyer1:MovieClip;
public var standartEnemy2:MovieClip;
public var jetFire2:MovieClip;
public var standartEnemy3:MovieClip;
public var jetFire3:MovieClip;
public var an:MovieClip;
public var standartEnemy19:MovieClip;
public var standartEnemy18:MovieClip;
public var standartEnemy1:MovieClip;
public var periM1:MovieClip;
var bulLaser1:MovieClip;
var bulLaser2:MovieClip;
var bulLaser3:MovieClip;
var bulLaser4:MovieClip;
var bulLaser5:MovieClip;
var bulLaser6:MovieClip;
var globalMulS:Number;// = 1.3
var globalMulHP:Number;// = 1
var globalMulFR:Number;// = 1.3
var globalMulD:Number;// = 1
var globalMulDR:Number;// = 1
var globalMulMR:Number;// = 1
private var _root:MovieClip;
private var shootPosX:Number;
private var shootPosY:Number;
var shootTimer:Number;
var shootLimit:Number;
var shootTimer2:Number;
var shootLimit2:Number;
private var speed:Number;
private var enemyCode:Number;
var angleInDegrees:Number;// = 90
var radius:Number;// = 400
var dropExperience:int;
var jetTimer:int;// = 0
var thisTintColour:Color;
private var randomRange:Number;
private var movementType:Number;// = 1
private var mTTimer:int;
private var tintTimer:int;
var health:Number;
var getPlPosX:Number;
var getPlPosY:Number;
private var loot:int;
private var dropChange:int;
private var moneyChange:int;
var special:String;
var damageCD:int;// = 0
var eEX1:Sound;
var myChannel:SoundChannel;
var myTransform:SoundTransform;
static var EDdelay:Number;
static var bulletType:Number;
static var shootType:Number;
static var eList:Array = new Array();
public function Enemy(_arg1:int){
thisTintColour = new Color();
eEX1 = new eExplosion();
myChannel = new SoundChannel();
myTransform = new SoundTransform();
super();
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
mTTimer = 0;
periM1.visible = false;
standartEnemy1.visible = false;
standartEnemy2.visible = false;
standartEnemy3.visible = false;
standartEnemy4.visible = false;
standartEnemy5.visible = false;
standartEnemy6.visible = false;
standartEnemy7.visible = false;
standartEnemy8.visible = false;
standartEnemy9.visible = false;
standartEnemy10.visible = false;
standartEnemy11.visible = false;
standartEnemy12.visible = false;
standartEnemy13.visible = false;
standartEnemy14.visible = false;
standartEnemy15.visible = false;
standartEnemy16.visible = false;
standartEnemy17.visible = false;
standartEnemy18.visible = false;
standartEnemy19.visible = false;
standartEnemy20.visible = false;
standartEnemy21.visible = false;
standartEnemy22.visible = false;
standartEnemy23.visible = false;
annoyer1.visible = false;
an.visible = false;
annoyer2.visible = false;
spc1.visible = false;
GSEngine.eList.push(this);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
this.enemyCode = _arg1;
enemyStat();
getPlPosX = GSEngine.posX;
getPlPosY = GSEngine.posY;
randomRange = Math.random();
jetFire2.visible = false;
jetFire3.visible = false;
}
private function beginClass(_arg1:Event):void{
_root = MovieClip(root);
shootTimer = 0;
shootTimer2 = 0;
}
function cekStage(){
if (GSEngine.stageLevel == 1){
globalMulHP = 1;
};
if (GSEngine.stageLevel == 2){
globalMulHP = 2.5;
globalMulD = 1.5;
globalMulFR = 1.5;
};
if (GSEngine.stageLevel == 3){
globalMulHP = 3;
globalMulD = 1.7;
};
if (GSEngine.stageLevel == 7){
globalMulHP = 4;
globalMulFR = 2;
globalMulD = 1.8;
globalMulS = 1.5;
globalMulDR = 0.6;
globalMulMR = 1.1;
};
if (GSEngine.stageLevel == 8){
globalMulHP = 5;
globalMulFR = 2.2;
globalMulD = 2.9;
globalMulS = 1.5;
globalMulMR = 1.2;
};
if (GSEngine.stageLevel == 10){
globalMulHP = 5;
globalMulFR = 2.2;
globalMulD = 2.9;
globalMulS = 1.5;
globalMulMR = 1.2;
};
}
function eFrame(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:*;
var _local8:*;
var _local9:*;
if (GSEngine.sound == false){
myTransform.volume = 0;
myChannel.soundTransform = myTransform;
};
if (GSEngine.sound == true){
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
};
if (GSEngine.isPaused == false){
if ((((health < 0)) && (!((this == null))))){
GSEngine.shakeTimer = 2;
removeThis();
};
if (this.y > 450){
movementType = 10;
};
if (movementType == 10){
this.x = (this.x - 5);
this.y = (this.y - 5);
};
if ((((this.y > 480)) || ((this.y < 0)))){
this.x = (this.x - 6);
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Global Warming")))){
getHit(2);
};
enemyBehaviour();
pasangJet();
shootTimer++;
shootTimer2++;
mTTimer++;
jetTimer++;
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Gravitation")))){
this.y = (this.y + (7 * globalMulS));
if (this.y > 400){
getHit(10000);
};
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))){
_local2 = (this.x - GSEngine.posX);
_local3 = (this.y - GSEngine.posY);
_local4 = Math.atan2(_local3, _local2);
_local5 = (Math.cos(_local4) * 9);
_local6 = (Math.sin(_local4) * 9);
this.x = (this.x - (_local5 * globalMulS));
this.y = (this.y - (_local6 * globalMulS));
if (this.hitTestObject(GSEngine.player.blackPeri)){
getHit(15);
GSEngine.healthPoint = (GSEngine.healthPoint + 2);
if (GSEngine.armor1HP > 1){
GSEngine.armor1HP = (GSEngine.armor1HP + 1);
};
if (GSEngine.armor2HP > 1){
GSEngine.armor2HP = (GSEngine.armor2HP + 1);
};
if (GSEngine.armor3HP > 1){
GSEngine.armor3HP = (GSEngine.armor3HP + 1);
};
if (GSEngine.armor4HP > 1){
GSEngine.armor4HP = (GSEngine.armor4HP + 1);
};
if (GSEngine.armor5HP > 1){
GSEngine.armor5HP = (GSEngine.armor5HP + 1);
};
if (GSEngine.armor6HP > 1){
GSEngine.armor6HP = (GSEngine.armor6HP + 1);
};
if (GSEngine.armor7HP > 1){
GSEngine.armor7HP = (GSEngine.armor7HP + 1);
};
};
};
this.transform.colorTransform = thisTintColour;
if (tintTimer < 0){
thisTintColour.setTint(0, 0);
} else {
if (tintTimer > 0){
tintTimer--;
};
};
if (((this.hitTestObject(GSEngine.player.playerPeri)) && ((GSEngine.death == false)))){
if (damageCD > 5){
getHit(5);
if (GSEngine.plusDef == 1){
_root.takeDamage(0);
} else {
_root.takeDamage((5 * globalMulD));
};
GSEngine.tintPlayer();
damageCD = 0;
} else {
thisTintColour.setTint(4294901760, 0);
damageCD++;
};
} else {
thisTintColour.setTint(4294901760, 0);
};
checkHitTestJurus(GSEngine.player.shield, "Arc Shield", 3, 8, 24);
checkHitTestJurus(GSEngine.player.burN, "Burning Radiation", 2, 9, 24);
checkHitTestJurus(GSEngine.player.bRay, "Blue Ray", 2, 20, 23);
checkHitTestJurus(GSEngine.player.defl, "Deflect", 3, 14, 28);
if (GSEngine.sunN != null){
checkHitTestJurus(GSEngine.sunN, "Raging Sun", 2, 15, 24);
};
if ((((((this.x < -100)) && (!((enemyCode == 69))))) && (!((enemyCode == 70))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
for (_local7 in GSEngine.eList) {
if (GSEngine.eList[_local7] == this){
GSEngine.eList.splice(_local7, 1);
};
};
GSEngine.enemiesLeft--;
};
if ((((this.x < -460)) && ((enemyCode == 69)))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
for (_local8 in GSEngine.eList) {
if (eList[_local8] == this){
GSEngine.eList.splice(_local8, 1);
};
};
GSEngine.enemiesLeft--;
};
if ((((this.x < -460)) && ((enemyCode == 70)))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
for (_local9 in eList) {
if (GSEngine.eList[_local9] == this){
GSEngine.eList.splice(_local9, 1);
};
};
GSEngine.enemiesLeft--;
};
if (GSEngine.death == true){
deleteReset();
};
};
}
function checkHitTestJurus(_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:MovieClip;
if (_arg1 != null){
if (((((((((this.hitTestObject(_arg1)) && ((GSEngine.njurusApa == _arg2)))) && ((GSEngine.njurus == true)))) && (!((this == null))))) && (!((stage == null))))){
if (damageCD > _arg3){
_local6 = new Effect();
_local6.x = this.x;
_local6.y = this.y;
stage.addChild(_local6);
_local6.type = _arg5;
getHit(_arg4);
this.x = (this.x - 9);
damageCD = 0;
} else {
thisTintColour.setTint(4294901760, 0);
damageCD++;
};
} else {
thisTintColour.setTint(4294901760, 0);
};
};
}
private function enemyStat(){
var _local1:*;
for (_local1 in GSEngine.eList) {
if (GSEngine.eList[_local1] == this){
if (enemyCode == 1){
setStatus(800, (100 + (_local1 * 30)), 15, 8, 7, 50, 0, 30, 10, (Math.ceil((Math.random() * 2)) + 1), standartEnemy1, "none");
} else {
if (enemyCode == 2){
setStatus(750, (Math.random() * 200), 15, 10, 6, 40, 0, 30, 10, Math.ceil((Math.random() * 2)), standartEnemy1, "none");
} else {
if (enemyCode == 3){
setStatus(750, 150, 15, 5, 5, 30, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 1), standartEnemy1, "none");
} else {
if (enemyCode == 4){
setStatus(750, (250 + (_local1 * 20)), 15, 9, 5, 30, 0, 10, 20, 5, standartEnemy1, "none");
} else {
if (enemyCode == 5){
setStatus(((Math.random() * 300) + 500), ((Math.random() * 200) - 100), 15, 12, 9, 18, 0, 30, 20, (Math.round((Math.random() * 2)) + 2), standartEnemy1, "none");
} else {
if (enemyCode == 6){
setStatus(750, (150 + (_local1 * 30)), 35, (Math.random() * 20), 6, 40, 0, 30, 20, (Math.round((Math.random() * 3)) + 1), standartEnemy2, "none");
} else {
if (enemyCode == 7){
setStatus(750, (100 + (_local1 * 40)), 35, 0, 6, 40, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 3), standartEnemy2, "none");
} else {
if (enemyCode == 8){
setStatus((750 + (_local1 * 50)), (240 + (_local1 * 40)), 35, 0, 6, 40, 0, 10, 20, 6, standartEnemy2, "none");
} else {
if (enemyCode == 9){
setStatus(750, (350 - (_local1 * 40)), 35, 9, 6, 40, 0, 30, 20, 7, standartEnemy2, "none");
} else {
if (enemyCode == 10){
setStatus((400 + (_local1 * 30)), -100, 35, 12, 6, 40, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 1), standartEnemy2, "none");
} else {
if (enemyCode == 11){
setStatus(750, 200, 40, 10, 7, 50, 0, 30, 20, 3, standartEnemy3, "none");
} else {
if (enemyCode == 12){
setStatus(((Math.random() * 200) + 700), -100, 45, 12, 6, 50, 0, 30, 20, 5, standartEnemy3, "none");
} else {
if (enemyCode == 13){
setStatus(750, ((Math.random() * 200) + 100), 45, 12, 6, 40, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 1), standartEnemy3, "none");
} else {
if (enemyCode == 14){
setStatus(750, (((Math.random() * 200) + 150) + (_local1 * 40)), 50, 12, 6, 40, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 1), standartEnemy3, "none");
} else {
if (enemyCode == 15){
setStatus(750, 430, 50, 15, 6, 20, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 5), standartEnemy4, "none");
} else {
if (enemyCode == 16){
setStatus(750, 430, 50, 17, 4, 20, 0, 30, 20, 7, standartEnemy4, "none");
} else {
if (enemyCode == 17){
setStatus(((Math.random() * 100) + 500), -100, 50, 15, 4, 15, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 6), standartEnemy4, "none");
} else {
if (enemyCode == 18){
setStatus(((Math.random() * 300) + 300), -100, 50, 15, 4, 20, 0, 30, 20, 3, standartEnemy4, "none");
} else {
if (enemyCode == 19){
setStatus(750, (100 + (_local1 * 50)), 50, 15, 4, 20, 0, 30, 20, 4, standartEnemy4, "none");
} else {
if (enemyCode == 20){
setStatus(750, ((Math.random() * 400) + 40), 55, 15, 4, 15, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 7), standartEnemy5, "defense");
} else {
if (enemyCode == 21){
setStatus(750, (-70 + (_local1 * 70)), 60, 15, 3, 15, 0, 30, 20, 6, standartEnemy5, "defense");
} else {
if (enemyCode == 22){
setStatus(750, (590 - (_local1 * 50)), 60, 15, 3, 15, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 8), standartEnemy5, "defense");
} else {
if (enemyCode == 23){
setStatus(750, (590 - (_local1 * 50)), 60, 15, 3, 15, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 8), standartEnemy5, "defense");
} else {
if (enemyCode == 24){
setStatus(750, (((Math.random() * 200) + 150) + (_local1 * 40)), 65, 16, 3, 25, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 6), standartEnemy6, "none");
} else {
if (enemyCode == 25){
setStatus(750, (((randomRange * 200) + 150) + (_local1 * 40)), 65, 17, 3, 25, 0, 15, 25, 10, standartEnemy6, "none");
} else {
if (enemyCode == 26){
setStatus((50 + (_local1 * 50)), -100, 65, 17, 3, 25, 0, 30, 25, 10, standartEnemy6, "none");
} else {
if (enemyCode == 27){
setStatus((50 + (_local1 * 50)), 580, 65, 14, 3, 25, 0, 30, 25, 10, standartEnemy6, "none");
} else {
if (enemyCode == 28){
setStatus(750, (170 + (_local1 * 70)), 75, 0, 3, 25, 0, 10, 30, 12, standartEnemy7, "none");
} else {
if (enemyCode == 29){
setStatus(750, (120 + (_local1 * 100)), 70, 0, 3, 25, 0, 30, 30, (Math.ceil((Math.random() * 2)) + 8), standartEnemy7, "none");
} else {
if (enemyCode == 30){
setStatus(750, 120, 70, 12, 3, 30, 0, 15, 35, (Math.ceil((Math.random() * 2)) + 11), standartEnemy7, "none");
} else {
if (enemyCode == 31){
setStatus(((Math.random() * 100) + 520), -100, 70, 13, 3, 30, 0, 35, 35, 12, standartEnemy7, "none");
} else {
if (enemyCode == 32){
setStatus(750, ((Math.random() * 400) + 40), 75, 14, 3, 25, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 11), standartEnemy7, "none");
} else {
if (enemyCode == 33){
setStatus(750, ((Math.random() * 200) + 40), 90, 12, 3, 25, 0, 30, 20, (Math.ceil((Math.random() * 2)) + 8), standartEnemy8, "none");
} else {
if (enemyCode == 34){
setStatus((500 + (_local1 * 40)), 500, 90, 15, 3, 25, 0, 30, 20, 7, standartEnemy8, "none");
} else {
if (enemyCode == 35){
setStatus((500 + (_local1 * 90)), (-50 - (_local1 * 50)), 90, 0, 2, 25, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 7), standartEnemy8, "none");
} else {
if (enemyCode == 36){
setStatus(750, ((Math.random() * 200) + 50), 95, 30, 2, 25, 0, 30, 20, 10, standartEnemy8, "none");
} else {
if (enemyCode == 37){
setStatus(750, ((Math.random() * 400) + 40), 17, 8, ((Math.random() * 12) + 7), 17, 0, 30, 20, 15, standartEnemy9, "none");
} else {
if (enemyCode == 38){
setStatus(750, (40 + (_local1 * 40)), 25, 8, 8, 17, 0, 30, 20, (Math.ceil((Math.random() * 3)) + 11), standartEnemy9, "none");
} else {
if (enemyCode == 39){
setStatus((600 - (_local1 * 40)), -70, 30, 12, 7, 17, 0, 40, 20, (Math.ceil((Math.random() * 3)) + 21), standartEnemy9, "none");
} else {
if (enemyCode == 40){
setStatus(((Math.random() * 400) + 300), -70, 30, 8, 9, 17, 0, 40, 40, (Math.ceil((Math.random() * 3)) + 21), standartEnemy9, "none");
} else {
if (enemyCode == 41){
setStatus(((Math.random() * 400) + 500), 550, 30, 8, 9, 17, 0, 40, 35, 21, standartEnemy9, "none");
} else {
if (enemyCode == 42){
setStatus(750, (Math.random() * 200), 105, 40, 2, 17, 60, 30, 30, (Math.ceil((Math.random() * 2)) + 12), standartEnemy10, "none");
} else {
if (enemyCode == 43){
setStatus(750, ((Math.random() * 400) + 40), 105, 40, 2, 25, 60, 40, 40, (Math.ceil((Math.random() * 3)) + 21), standartEnemy10, "none");
} else {
if (enemyCode == 44){
setStatus(((Math.random() * 300) + 500), ((Math.random() * 200) - 100), 110, 20, 9, 17, 60, 40, 40, (Math.ceil((Math.random() * 2)) + 20), standartEnemy10, "none");
} else {
if (enemyCode == 45){
setStatus(((Math.random() * 300) + 400), 550, 110, 20, 9, 17, 60, 40, 40, 26, standartEnemy10, "none");
} else {
if (enemyCode == 46){
setStatus(700, (200 + (_local1 * 30)), 100, 20, 7, 15, 60, 40, 30, 21, standartEnemy11, "none");
} else {
if (enemyCode == 47){
setStatus(((Math.random() * 500) + 400), -100, 105, 20, 5, 25, 30, 30, 20, (Math.ceil((Math.random() * 2)) + 15), standartEnemy11, "none");
} else {
if (enemyCode == 48){
setStatus(((Math.random() * 500) + 400), 560, 110, 20, 5, 60, 35, 35, 40, (Math.ceil((Math.random() * 2)) + 13), standartEnemy11, "none");
} else {
if (enemyCode == 49){
setStatus(750, ((Math.random() * 400) + 40), 120, 20, 5, 25, 100, 35, 40, (Math.ceil((Math.random() * 2)) + 11), standartEnemy12, "none");
} else {
if (enemyCode == 50){
setStatus((550 + (_local1 * 70)), (-100 - (_local1 * 60)), 125, 20, 5, 25, 100, 60, 20, 26, standartEnemy12, "none");
} else {
if (enemyCode == 51){
setStatus((550 + (_local1 * 70)), (560 + (_local1 * 60)), 125, 20, 5, 25, 100, 60, 20, 28, standartEnemy12, "none");
} else {
if (enemyCode == 52){
setStatus(720, ((Math.random() * 300) + 80), 125, 20, 5, 25, 70, 70, 40, (Math.ceil((Math.random() * 3)) + 14), standartEnemy12, "none");
} else {
if (enemyCode == 53){
setStatus(750, (80 + (_local1 * 50)), 145, 20, 5, 15, 20, 60, 40, 24, standartEnemy13, "none");
} else {
if (enemyCode == 54){
setStatus(750, ((Math.random() * 200) + 150), 145, 20, 5, 15, 20, 100, 20, 23, standartEnemy13, "none");
} else {
if (enemyCode == 55){
setStatus(750, (110 + (_local1 * 40)), 145, 18, 5, 15, 20, 60, 20, 22, standartEnemy13, "none");
} else {
if (enemyCode == 56){
setStatus(750, (80 + (_local1 * 40)), 145, 0, 5, 15, 20, 50, 20, (Math.ceil((Math.random() * 2)) + 29), standartEnemy13, "none");
} else {
if (enemyCode == 57){
setStatus(750, ((Math.random() * 400) + 40), 150, 0, 5, 15, 20, 40, 45, 21, standartEnemy13, "none");
} else {
if (enemyCode == 58){
setStatus(750, ((Math.random() * 400) + 40), 150, 0, 2, 15, 20, 40, 20, (Math.ceil((Math.random() * 3)) + 13), standartEnemy14, "none");
} else {
if (enemyCode == 59){
setStatus(750, ((Math.random() * 180) + (_local1 * 80)), 170, 0, 2, 15, 20, 70, 20, (Math.ceil((Math.random() * 2)) + 15), standartEnemy14, "none");
} else {
if (enemyCode == 60){
setStatus(750, ((Math.random() * 200) - 100), 180, 0, 2, 15, 20, 70, 50, (Math.ceil((Math.random() * 2)) + 15), standartEnemy14, "none");
} else {
if (enemyCode == 61){
setStatus(750, ((Math.random() * 400) + 40), 170, 20, 4, 15, 20, 50, 50, (Math.ceil((Math.random() * 2)) + 15), standartEnemy15, "none");
} else {
if (enemyCode == 62){
setStatus((750 + (_local1 * 80)), 70, 170, 20, 6, 60, 20, 90, 40, (Math.ceil((Math.random() * 3)) + 21), standartEnemy15, "none");
} else {
if (enemyCode == 63){
setStatus((750 + (_local1 * 80)), 400, 180, 22, 6, 60, 20, 70, 50, 26, standartEnemy15, "none");
} else {
if (enemyCode == 64){
setStatus((750 + (_local1 * 80)), (100 + (_local1 * 60)), 185, 18, 6, 60, 20, 90, 50, 30, standartEnemy15, "none");
} else {
if (enemyCode == 65){
setStatus((750 + (_local1 * 80)), (100 + (_local1 * 60)), 200, 20, 6, 60, 20, 90, 50, 28, standartEnemy16, "none");
} else {
if (enemyCode == 66){
setStatus(750, (70 + (_local1 * 100)), 200, 0, 6, 4, 20, 90, 50, 31, standartEnemy16, "none");
} else {
if (enemyCode == 67){
setStatus(750, (70 + (_local1 * 100)), 200, 0, 6, 4, 20, 60, 50, (Math.ceil((Math.random() * 9)) + 1), standartEnemy16, "none");
} else {
if (enemyCode == 68){
setStatus(750, 240, 200, 28, 2, 40, 20, 60, 50, (Math.ceil((Math.random() * 5)) + 11), standartEnemy16, "none");
} else {
if (enemyCode == 69){
setStatus(750, ((Math.random() * 300) + 100), 230, 28, 2, 15, 20, 70, 60, (Math.ceil((Math.random() * 4)) + 20), standartEnemy17, "none");
} else {
if (enemyCode == 70){
setStatus(750, ((Math.random() * 300) + 100), 230, 31, 2, 30, 20, 60, 50, 26, standartEnemy17, "none");
} else {
if (enemyCode == 71){
setStatus(750, (100 + (_local1 * 40)), 240, 30, 2, 20, 20, 70, 30, 28, standartEnemy17, "none");
} else {
if (enemyCode == 72){
setStatus(750, ((Math.random() * 400) + 40), 250, 20, 4, 20, 20, 60, 60, (Math.ceil((Math.random() * 4)) + 20), standartEnemy17, "none");
} else {
if (enemyCode == 73){
setStatus((750 + (_local1 * 70)), (150 + (_local1 * 40)), 260, 17, 4, 2, 20, 70, 30, (Math.ceil((Math.random() * 2)) + 29), standartEnemy18, "none");
} else {
if (enemyCode == 74){
setStatus((610 + (_local1 * 70)), (380 - (_local1 * 40)), 260, 18, 4, 3, 20, 80, 20, (Math.ceil((Math.random() * 4)) + 20), standartEnemy18, "none");
} else {
if (enemyCode == 75){
setStatus(750, 80, 270, 20, 4, 110, 20, 60, 30, (Math.ceil((Math.random() * 2)) + 29), standartEnemy18, "none");
} else {
if (enemyCode == 76){
setStatus(750, 400, 260, 20, 4, 110, 20, 60, 30, (Math.ceil((Math.random() * 4)) + 20), standartEnemy18, "none");
} else {
if (enemyCode == 77){
setStatus(750, ((Math.random() * 300) + 100), 270, 20, 4, 75, 20, 60, 30, (Math.ceil((Math.random() * 2)) + 29), standartEnemy18, "none");
} else {
if (enemyCode == 78){
setStatus(750, ((Math.random() * 300) + 100), 300, 20, 4, 20, 50, 70, 30, (Math.ceil((Math.random() * 4)) + 20), standartEnemy19, "none");
} else {
if (enemyCode == 79){
setStatus((650 + (_local1 * 30)), -40, 300, 20, 3, 20, 50, 60, 20, (Math.ceil((Math.random() * 4)) + 20), standartEnemy19, "none");
} else {
if (enemyCode == 80){
setStatus((650 + (_local1 * 30)), 520, 300, 20, 3, 20, 50, 60, 30, 28, standartEnemy19, "none");
} else {
if (enemyCode == 81){
setStatus(((Math.random() * 100) + 600), -40, 300, 12, 3, 20, 50, 60, 30, (Math.ceil((Math.random() * 4)) + 20), standartEnemy19, "none");
} else {
if (enemyCode == 82){
setStatus(750, ((Math.random() * 400) + 40), 300, 12, 8, 20, 50, 70, 60, (Math.ceil((Math.random() * 9)) + 1), standartEnemy20, "none");
} else {
if (enemyCode == 83){
setStatus(((Math.random() * 200) + 300), -40, 300, 12, 2, 20, 50, 70, 50, (Math.ceil((Math.random() * 12)) + 11), standartEnemy20, "none");
} else {
if (enemyCode == 84){
setStatus(750, ((Math.random() * 300) + 100), 300, 15, ((Math.random() * 4) + 7), 20, 50, 70, 50, (Math.ceil((Math.random() * 12)) + 11), standartEnemy21, "none");
} else {
if (enemyCode == 85){
setStatus(((Math.random() * 150) + 650), -50, 300, 14, ((Math.random() * 4) + 5), 20, 50, 70, 50, (Math.ceil((Math.random() * 2)) + 29), standartEnemy21, "none");
} else {
if (enemyCode == 86){
setStatus(750, ((Math.random() * 300) + 100), 300, 15, 4, 50, 50, 70, 50, (Math.ceil((Math.random() * 12)) + 11), standartEnemy22, "none");
} else {
if (enemyCode == 87){
setStatus(750, (Math.random() * 500), 300, 14, 11, 50, 50, 70, 50, (Math.ceil((Math.random() * 2)) + 29), standartEnemy22, "none");
} else {
if (enemyCode == 88){
setStatus(750, ((Math.random() * 100) + 50), 300, 14, 9, 20, 50, 70, 50, 26, standartEnemy23, "none");
} else {
if (enemyCode == 89){
setStatus(750, ((Math.random() * 400) + 40), 300, 16, 6, 20, 50, 60, 30, (Math.ceil((Math.random() * 4)) + 20), standartEnemy23, "none");
} else {
if (enemyCode == 90){
setStatus(750, ((Math.random() * 400) + 40), 500, 80, 4, 10, 50, 80, 50, (Math.ceil((Math.random() * 12)) + 12), annoyer1, "none");
} else {
if (enemyCode == 91){
setStatus(((Math.random() * 300) + 650), -60, 500, 80, 4, 10, 50, 70, 50, (Math.ceil((Math.random() * 3)) + 21), annoyer1, "none");
} else {
if (enemyCode == 92){
setStatus(750, ((Math.random() * 400) + 40), 500, 80, 4, 10, 15, 90, 90, (Math.ceil((Math.random() * 12)) + 12), annoyer2, "none");
} else {
if (enemyCode == 93){
setStatus(750, 210, 500, 70, 2, 10, 10, 90, 90, (Math.ceil((Math.random() * 12)) + 12), spc1, "none");
} else {
if (enemyCode == 94){
setStatus(750, ((Math.random() * 400) + 40), 500, 80, 4, 10, 15, 30, 20, (Math.round((Math.random() * 3)) + 1), an, "none");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
private function setStatus(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12){
this.x = _arg1;
this.y = _arg2;
health = (_arg3 * globalMulHP);
EDdelay = _arg4;
speed = _arg5;
shootLimit = (_arg6 / globalMulFR);
shootLimit2 = (_arg7 / globalMulFR);
dropChange = ((_arg8 * globalMulDR) + (30 / GSEngine.stageLevel));
moneyChange = (_arg9 * globalMulMR);
loot = _arg10;
_arg11.visible = true;
special = _arg12;
}
private function enemyBehaviour(){
var _local1:*;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:*;
var _local17:*;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Number;
var _local40:Number;
var _local41:Number;
var _local42:Number;
var _local43:Number;
var _local44:Number;
var _local45:Number;
var _local46:Number;
var _local47:Number;
var _local48:Number;
var _local49:Number;
var _local50:Number;
var _local51:Number;
var _local52:Number;
var _local53:Number;
var _local54:Number;
var _local55:Number;
var _local56:Number;
var _local57:Number;
var _local58:Number;
var _local59:Number;
var _local60:Number;
var _local61:Number;
var _local62:Number;
if (enemyCode == 1){
this.x = (this.x - (speed * globalMulS));
shoot(1);
} else {
if (enemyCode == 2){
this.y = (this.y + ((this.x - 400) / (70 / globalMulS)));
this.x = (this.x - (speed * globalMulS));
shoot(2);
} else {
if (enemyCode == 3){
if (mTTimer > 100){
this.x = (this.x - (3 * globalMulS));
} else {
this.y = (this.y - ((this.y - ((randomRange * 300) + 100)) / (30 / globalMulS)));
this.x = (this.x - ((this.x - ((randomRange * 200) + 250)) / (30 / globalMulS)));
};
shoot(1);
} else {
if (enemyCode == 4){
if (mTTimer > 70){
mTTimer = 0;
if (movementType == 1){
movementType = 2;
} else {
if (movementType == 2){
movementType = 1;
};
};
};
if (movementType == 1){
this.y = (this.y - (4 * globalMulS));
this.x = (this.x - (3 * globalMulS));
shoot(1);
} else {
this.y = (this.y + (4 * globalMulS));
this.x = (this.x - (3 * globalMulS));
shoot(1);
};
} else {
if (enemyCode == 5){
this.y = (this.y + (5 * globalMulS));
this.x = (this.x - (speed * globalMulS));
shoot(2);
} else {
if (enemyCode == 6){
this.x = (this.x - (speed * globalMulS));
shoot(3);
} else {
if (enemyCode == 7){
if (mTTimer < 250){
this.x = (this.x - ((this.x - 380) / (30 / globalMulS)));
this.y = (this.y - ((this.y - (240 + ((randomRange * 400) - 150))) / (30 / globalMulS)));
} else {
this.x = (this.x - (speed * globalMulS));
};
shoot(3);
} else {
if (enemyCode == 8){
this.x = (this.x - (speed * globalMulS));
shoot(3);
} else {
if (enemyCode == 9){
this.x = (this.x - (speed * globalMulS));
shoot(3);
} else {
if (enemyCode == 10){
for (_local1 in GSEngine.eList) {
if (GSEngine.eList[_local1] == this){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - ((this.y - (250 + (_local1 * 40))) / (30 / globalMulS)));
shoot(3);
};
};
} else {
if (enemyCode == 11){
if (this.x < (((randomRange * 200) + 300) + 1)){
this.x = (this.x - (3 * globalMulS));
} else {
this.x = (this.x - ((this.x - ((randomRange * 200) + 300)) / (25 / globalMulS)));
this.y = (this.y - ((this.y - ((randomRange * 400) + 40)) / (25 / globalMulS)));
};
shoot(4);
} else {
if (enemyCode == 12){
if (mTTimer > ((randomRange * 70) + 120)){
this.x = (this.x - (speed * globalMulS));
shoot(2);
} else {
this.x = (this.x - (2 * globalMulS));
this.y = (this.y + (2 * globalMulS));
shoot(4);
};
} else {
if (enemyCode == 13){
if (mTTimer < ((randomRange * 70) + 170)){
this.x = (this.x - ((this.x - (getPlPosX + 100)) / (25 / globalMulS)));
this.y = (this.y - ((this.y - (getPlPosY + 100)) / (25 / globalMulS)));
} else {
this.x = (this.x - (speed * globalMulS));
};
shoot(4);
} else {
if (enemyCode == 14){
bulletType = 2;
if (mTTimer > 70){
shoot(5);
this.y = (this.y + ((this.x - 400) / (30 / globalMulS)));
this.x = (this.x - (5 * globalMulS));
} else {
this.x = (this.x - ((this.x - 500) / (25 / globalMulS)));
};
} else {
if (enemyCode == 15){
shoot(6);
_local2 = (GSEngine.player.x - this.x);
_local3 = (GSEngine.player.y - this.y);
standartEnemy4.stEnemy4Cannon.rotation = (((Math.atan2(_local3, _local2) / Math.PI) * 180) + 160);
if (mTTimer > 90){
this.y = (this.y - ((this.y - 200) / (40 / globalMulS)));
this.x = (this.x - (4.5 * globalMulS));
} else {
this.x = (this.x - ((this.x - ((randomRange * 250) + 250)) / (25 / globalMulS)));
};
} else {
if (enemyCode == 16){
_local4 = (GSEngine.player.x - this.x);
_local5 = (GSEngine.player.y - this.y);
standartEnemy4.stEnemy4Cannon.rotation = (((Math.atan2(_local5, _local4) / Math.PI) * 180) + 160);
if (mTTimer > 90){
this.x = (this.x - ((speed + 1) * globalMulS));
} else {
this.x = (this.x - (speed * globalMulS));
shoot(6);
};
} else {
if (enemyCode == 17){
_local6 = (GSEngine.player.x - this.x);
_local7 = (GSEngine.player.y - this.y);
standartEnemy4.stEnemy4Cannon.rotation = (((Math.atan2(_local7, _local6) / Math.PI) * 180) + 160);
if (this.y > 400){
this.y = 400;
this.x = (this.x - ((speed * 2) * globalMulS));
shoot(6);
} else {
if (this.y < 400){
this.y = (this.y + ((speed * 2) * globalMulS));
};
};
} else {
if (enemyCode == 18){
_local8 = (GSEngine.player.x - this.x);
_local9 = (GSEngine.player.y - this.y);
standartEnemy4.stEnemy4Cannon.rotation = (((Math.atan2(_local9, _local8) / Math.PI) * 180) + 160);
if (mTTimer > 150){
this.x = (this.x - (((randomRange * 6) + 3) * globalMulS));
} else {
this.y = (this.y - ((this.y - ((randomRange * 150) + 200)) / (25 * globalMulS)));
this.x = (this.x - (2 * globalMulS));
shoot(6);
};
} else {
if (enemyCode == 19){
_local10 = (GSEngine.player.x - this.x);
_local11 = (GSEngine.player.y - this.y);
standartEnemy4.stEnemy4Cannon.rotation = (((Math.atan2(_local11, _local10) / Math.PI) * 180) + 160);
this.x = (this.x - (speed * globalMulS));
shoot(7);
} else {
if (enemyCode == 20){
if (mTTimer < 500){
special = "none";
if (this.x < ((randomRange * 200) + 350)){
shoot(3);
bulletType = 2;
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
} else {
this.x = (this.x - (speed * globalMulS));
bulletType = 2;
};
} else {
this.x = (this.x - (speed * globalMulS));
shoot(3);
bulletType = 2;
};
} else {
if (enemyCode == 21){
if (mTTimer > 250){
this.x = (this.x - 2);
};
if (this.x < 420){
if (this.health < 15){
if (this.x > 350){
special = "defense";
if ((((standartEnemy5.stEnemy5Shield1.rotation > 0)) && ((standartEnemy5.stEnemy5Shield2.rotation < 0)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation - 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation + 3);
};
this.x = (this.x - (2 * globalMulS));
} else {
if (this.x < 350){
special = "none";
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
shoot(3);
this.x = (this.x - (1 * globalMulS));
};
};
} else {
special = "none";
bulletType = 2;
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
shoot(3);
};
} else {
bulletType = 2;
this.x = (this.x - (3 * globalMulS));
this.y = (this.y + (2 * globalMulS));
};
} else {
if (enemyCode == 22){
if (this.x < 350){
_local12 = (GSEngine.player.x - this.x);
_local13 = (GSEngine.player.y - this.y);
standartEnemy5.stEnemy5Cannon.rotation = (((Math.atan2(_local13, _local12) / Math.PI) * 180) + 180);
if (this.health < 15){
if (this.x > 250){
special = "defense";
if ((((standartEnemy5.stEnemy5Shield1.rotation > 0)) && ((standartEnemy5.stEnemy5Shield2.rotation < 0)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation - 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation + 3);
};
this.x = (this.x - (2 * globalMulS));
} else {
if (this.x < 250){
special = "none";
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
shoot(8);
this.x = (this.x - (1 * globalMulS));
};
};
} else {
special = "none";
bulletType = 2;
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
shoot(8);
};
} else {
bulletType = 2;
this.x = (this.x - (3 * globalMulS));
this.y = (this.y - (2 * globalMulS));
};
} else {
if (enemyCode == 23){
this.x = (this.x - (2 * globalMulS));
_local14 = (GSEngine.player.x - this.x);
_local15 = (GSEngine.player.y - this.y);
standartEnemy5.stEnemy5Cannon.rotation = (((Math.atan2(_local15, _local14) / Math.PI) * 180) + 180);
if (mTTimer > 70){
special = "none";
if ((((standartEnemy5.stEnemy5Shield1.rotation < 40)) && ((standartEnemy5.stEnemy5Shield2.rotation > -40)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation + 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation - 3);
};
shoot(8);
};
if (mTTimer > 300){
special = "defense";
if ((((standartEnemy5.stEnemy5Shield1.rotation < 0)) && ((standartEnemy5.stEnemy5Shield2.rotation > 0)))){
standartEnemy5.stEnemy5Shield1.rotation = (standartEnemy5.stEnemy5Shield1.rotation - 3);
standartEnemy5.stEnemy5Shield2.rotation = (standartEnemy5.stEnemy5Shield2.rotation + 3);
};
};
} else {
if (enemyCode == 24){
if (this.x < ((randomRange * 150) + 200)){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - ((randomRange * 5) * globalMulS));
shoot(9);
} else {
this.x = (this.x - (speed * globalMulS));
shoot(9);
};
} else {
if (enemyCode == 25){
this.x = (this.x - (1.5 * globalMulS));
shoot(9);
if (this.y < 100){
movementType = 1;
} else {
if (this.y > 380){
movementType = 2;
};
};
if (movementType == 1){
this.y = (this.y - ((this.y - 385) / (30 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y - ((this.y - 95) / (30 / globalMulS)));
};
};
} else {
if (enemyCode == 26){
for (_local16 in GSEngine.eList) {
if (GSEngine.eList[_local16] == this){
if (this.x > (450 + (_local16 * 30))){
movementType = 2;
};
if (movementType == 2){
this.x = (this.x - (3 * globalMulS));
} else {
shoot(9);
bulletType = 2;
this.x = (this.x - ((this.x - (455 + (_local16 * 30))) / (30 / globalMulS)));
this.y = (this.y - ((this.y - (200 + (_local16 * 30))) / (30 / globalMulS)));
};
};
};
} else {
if (enemyCode == 27){
for (_local17 in GSEngine.eList) {
if (GSEngine.eList[_local17] == this){
if (this.x > (450 + (_local17 * 30))){
movementType = 2;
};
if (movementType == 2){
this.x = (this.x - (3 * globalMulS));
} else {
shoot(9);
this.x = (this.x - ((this.x - (455 + (_local17 * 30))) / (30 / globalMulS)));
this.y = (this.y - ((this.y - (100 + (_local17 * 30))) / (30 / globalMulS)));
};
};
};
} else {
if (enemyCode == 28){
shoot(10);
if (this.x > 480){
this.x = (this.x - (3 * globalMulS));
};
if (mTTimer > 500){
this.x = (this.x - (4 * globalMulS));
};
} else {
if (enemyCode == 29){
shoot(10);
bulletType = 3;
if (this.x > 480){
this.x = (this.x - (3 * globalMulS));
};
if (mTTimer > 500){
this.x = (this.x - (4 * globalMulS));
};
} else {
if (enemyCode == 30){
this.x = (this.x - (2 * globalMulS));
shoot(10);
if (this.y < 120){
movementType = 1;
} else {
if (this.y > 380){
movementType = 2;
};
};
if (movementType == 1){
this.y = (this.y - ((this.y - 390) / (40 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y - ((this.y - 110) / (40 / globalMulS)));
};
};
} else {
if (enemyCode == 31){
this.y = (this.y - ((this.y - 400) / (50 / globalMulS)));
shoot(10);
if (this.y > 320){
movementType = 2;
};
if (movementType == 2){
this.x = (this.x - ((speed * 2) * globalMulS));
this.y = (this.y - ((this.y - ((randomRange * 300) + 100)) / (50 / globalMulS)));
};
} else {
if (enemyCode == 32){
this.x = (this.x - (speed * globalMulS));
shoot(10);
} else {
if (enemyCode == 33){
this.x = (this.x - (speed * globalMulS));
_local18 = (GSEngine.player.x - this.x);
_local19 = (GSEngine.player.y - this.y);
standartEnemy8.stEnemy8Cannon.rotation = (((Math.atan2(_local19, _local18) / Math.PI) * 180) + 215);
shoot(11);
} else {
if (enemyCode == 34){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (speed * globalMulS));
_local20 = (GSEngine.player.x - this.x);
_local21 = (GSEngine.player.y - this.y);
standartEnemy8.stEnemy8Cannon.rotation = (((Math.atan2(_local21, _local20) / Math.PI) * 180) + 215);
shoot(11);
} else {
if (enemyCode == 35){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (speed * globalMulS));
_local22 = (GSEngine.player.x - this.x);
_local23 = (GSEngine.player.y - this.y);
standartEnemy8.stEnemy8Cannon.rotation = (((Math.atan2(_local23, _local22) / Math.PI) * 180) + 215);
shoot(11);
} else {
if (enemyCode == 36){
this.y = (this.y + ((this.x - 400) / (90 / globalMulS)));
this.x = (this.x - (speed * globalMulS));
_local24 = (GSEngine.player.x - this.x);
_local25 = (GSEngine.player.y - this.y);
standartEnemy8.stEnemy8Cannon.rotation = (((Math.atan2(_local25, _local24) / Math.PI) * 180) + 215);
shoot(13);
} else {
if (enemyCode == 37){
this.y = (this.y - ((randomRange * 2) - 1));
this.x = (this.x - (speed * globalMulS));
} else {
if (enemyCode == 38){
this.x = (this.x - (speed * globalMulS));
} else {
if (enemyCode == 39){
_local26 = Math.atan2((GSEngine.player.y - this.y), (GSEngine.player.x - this.x));
_local27 = (Math.sin(_local26) * speed);
_local28 = (Math.cos(_local26) * speed);
this.rotation = (((_local26 / Math.PI) * 180) + 180);
this.x = (this.x + (_local28 * globalMulS));
this.y = (this.y + (_local27 * globalMulS));
} else {
if (enemyCode == 40){
this.x = (this.x - (3 * globalMulS));
this.y = (this.y + (speed * globalMulS));
this.rotation = -70;
} else {
if (enemyCode == 41){
this.x = (this.x - (6 * globalMulS));
this.y = (this.y - (speed * globalMulS));
this.rotation = 50;
} else {
if (enemyCode == 42){
this.x = (this.x - (6 * globalMulS));
bulletType = 3;
shoot(14);
} else {
if (enemyCode == 43){
this.x = (this.x - (4 * globalMulS));
if (((((this.x - GSEngine.player.x) < 40)) && ((this.y < GSEngine.player.y)))){
shoot(15);
} else {
shoot(14);
};
} else {
if (enemyCode == 44){
this.y = (this.y + (5 * globalMulS));
this.x = (this.x - (speed * globalMulS));
bulletType = 9;
shoot(14);
} else {
if (enemyCode == 45){
if (this.y > 200){
this.movementType = 1;
} else {
if (this.y < 100){
movementType = 2;
};
};
if (this.movementType == 1){
this.y = (this.y - (4 * globalMulS));
shoot(14);
bulletType = 9;
} else {
if (this.movementType == 2){
this.x = (this.x - (4 * globalMulS));
shoot(15);
bulletType = 3;
};
};
} else {
if (this.enemyCode == 46){
if (mTTimer > 60){
standartEnemy11.play();
mTTimer = 0;
};
this.x = (this.x - (6 * globalMulS));
shoot(16);
} else {
if (this.enemyCode == 47){
if (mTTimer > 60){
standartEnemy11.play();
mTTimer = 0;
};
this.x = (this.x - (((randomRange * 5) + 2) * globalMulS));
this.y = (this.y + (((randomRange * 5) + 2) * globalMulS));
_local29 = (GSEngine.player.x - this.x);
_local30 = (GSEngine.player.y - this.y);
this.rotation = (((Math.atan2(_local30, _local29) / Math.PI) * 180) + 180);
shoot(17);
} else {
if (this.enemyCode == 48){
if (mTTimer > 60){
standartEnemy11.play();
mTTimer = 0;
};
this.x = (this.x - (((randomRange * 5) + 2) * globalMulS));
this.y = (this.y - (((randomRange * 5) + 2) * globalMulS));
_local31 = (GSEngine.player.x - this.x);
_local32 = (GSEngine.player.y - this.y);
this.rotation = (((Math.atan2(_local32, _local31) / Math.PI) * 180) + 180);
shoot(18);
} else {
if (this.enemyCode == 49){
if (this.x < ((randomRange * 100) + 400)){
movementType = 2;
} else {
movementType = 1;
};
if (mTTimer > 350){
movementType = 3;
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
this.y = (this.y + (((randomRange * 2) - 1) * globalMulS));
shoot(18);
} else {
if (movementType == 3){
this.x = (this.x - 9);
};
};
};
} else {
if (this.enemyCode == 50){
if ((((mTTimer > 100)) && ((mTTimer < 400)))){
movementType = 2;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 1;
};
};
if (movementType == 1){
this.y = (this.y + (speed * globalMulS));
this.x = (this.x - (1 * globalMulS));
} else {
if (movementType == 2){
this.y = (this.y + (((randomRange * 2) - 1) * globalMulS));
this.x = (this.x + (((randomRange * 2) - 1) * globalMulS));
shoot(18);
} else {
if (movementType == 3){
this.x = (this.x - (9 * globalMulS));
};
};
};
} else {
if (this.enemyCode == 51){
if ((((mTTimer > 100)) && ((mTTimer < 400)))){
movementType = 2;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 1;
};
};
if (movementType == 1){
this.y = (this.y - (speed * globalMulS));
this.x = (this.x - (1 * globalMulS));
} else {
if (movementType == 2){
this.y = (this.y + (((randomRange * 2) - 1) * globalMulS));
this.x = (this.x + (((randomRange * 2) - 1) * globalMulS));
shoot(18);
} else {
if (movementType == 3){
this.x = (this.x - (9 * globalMulS));
};
};
};
} else {
if (this.enemyCode == 52){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (((randomRange * 4) - 2) * globalMulS));
shoot(14);
} else {
if (this.enemyCode == 53){
if (this.x < 560){
movementType = 2;
} else {
if (mTTimer > 500){
movementType = 3;
} else {
movementType = 1;
};
};
if (movementType == 1){
this.x = (this.x - ((this.x - 540) / (10 / globalMulS)));
} else {
if (movementType == 2){
shoot(19);
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
};
};
};
} else {
if (enemyCode == 54){
if (mTTimer > 70){
shoot(16);
this.y = (this.y + ((this.x - 400) / (25 / globalMulS)));
this.x = (this.x - (4 * globalMulS));
} else {
this.x = (this.x - ((this.x - 500) / (15 / globalMulS)));
};
} else {
if (enemyCode == 55){
this.x = (this.x - (1.5 * globalMulS));
shoot(16);
if (this.y < 100){
movementType = 1;
} else {
if (this.y > 380){
movementType = 2;
};
};
if (movementType == 1){
this.y = (this.y - ((this.y - 385) / (15 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y - ((this.y - 95) / (15 / globalMulS)));
};
};
} else {
if (enemyCode == 56){
if (this.x > ((randomRange * 70) + 500)){
movementType = 1;
} else {
movementType = 2;
};
if (mTTimer > 300){
movementType = 3;
};
if (movementType == 1){
shoot(17);
this.x = (this.x - ((this.x - ((randomRange * 70) + 500)) / (15 / globalMulS)));
} else {
if (movementType == 2){
shoot(11);
} else {
if (movementType == 3){
shoot(17);
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 8) - 4) * globalMulS));
};
};
};
} else {
if (enemyCode == 57){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (((randomRange * 4) - 2) * globalMulS));
shoot(16);
} else {
if (enemyCode == 58){
shoot(11);
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (((randomRange * 2) - 1) * globalMulS));
} else {
if (enemyCode == 59){
shoot(14);
if (this.x > ((randomRange * 100) + 500)){
movementType = 1;
} else {
movementType = 2;
};
if (mTTimer > 400){
movementType = 3;
};
if (movementType == 1){
this.x = (this.x - ((this.x - ((randomRange * 100) + 500)) / (15 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y - ((this.y - (GSEngine.player.y + ((randomRange * 100) - 50))) / (20 / globalMulS)));
this.x = (this.x - (0.5 * globalMulS));
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 8) - 4) * globalMulS));
};
};
};
} else {
if (enemyCode == 60){
shoot(16);
if (this.x > ((randomRange * 100) + 500)){
movementType = 1;
} else {
movementType = 2;
};
if (mTTimer > 500){
movementType = 3;
};
if (movementType == 1){
this.x = (this.x - ((this.x - ((randomRange * 100) + 500)) / (15 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y - ((this.y - GSEngine.player.y) / (((randomRange * 20) + 10) / globalMulS)));
this.x = (this.x - (0.5 * globalMulS));
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 8) - 4) * globalMulS));
};
};
};
} else {
if (enemyCode == 61){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (((randomRange * 2) - 1) * globalMulS));
if (this.x > GSEngine.player.x){
shoot(20);
} else {
shoot(21);
};
} else {
if (enemyCode == 62){
if (mTTimer < 50){
movementType = 1;
} else {
if (mTTimer > ((Math.random() * 100) + 110)){
movementType = 4;
} else {
if (this.rotation == -30){
movementType = 3;
} else {
movementType = 2;
};
};
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
this.rotation = (this.rotation - 2);
} else {
if (movementType == 3){
shoot(22);
} else {
if (movementType == 4){
this.x = (this.x - (speed * globalMulS));
};
};
};
};
} else {
if (enemyCode == 63){
if (mTTimer < 50){
movementType = 1;
} else {
if (mTTimer > ((Math.random() * 100) + 110)){
movementType = 4;
} else {
if (this.rotation == 80){
movementType = 3;
} else {
movementType = 2;
};
};
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
this.rotation = (this.rotation + 2);
} else {
if (movementType == 3){
shoot(24);
} else {
if (movementType == 4){
this.x = (this.x - (speed * globalMulS));
};
};
};
};
} else {
if (enemyCode == 64){
if (this.x > 600){
movementType = 1;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
shoot(24);
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 5) + 2) * globalMulS));
};
};
};
} else {
if (this.enemyCode == 65){
this.x = (this.x - (((randomRange * 5) + 2) * globalMulS));
this.y = (this.y - (((randomRange * 4) - 2) * globalMulS));
_local33 = (GSEngine.player.x - this.x);
_local34 = (GSEngine.player.y - this.y);
standartEnemy16.stEnemy16Cannon.rotation = (((Math.atan2(_local34, _local33) / Math.PI) * 180) + 210);
shoot(25);
} else {
if (this.enemyCode == 66){
_local35 = (_root.movingTarget2.x - this.x);
_local36 = (_root.movingTarget2.y - this.y);
standartEnemy16.stEnemy16Cannon.rotation = (((Math.atan2(_local36, _local35) / Math.PI) * 180) + 210);
if (this.x > 630){
movementType = 1;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - ((this.x - 550) / (10 / globalMulS)));
} else {
if (movementType == 2){
this.x = (this.x - (0.2 * globalMulS));
shoot(26);
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
};
};
};
} else {
if (this.enemyCode == 67){
_local37 = (_root.movingTarget.x - this.x);
_local38 = (_root.movingTarget.y - this.y);
standartEnemy16.stEnemy16Cannon.rotation = (((Math.atan2(_local38, _local37) / Math.PI) * 180) + 210);
if (this.x > 630){
movementType = 1;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - ((this.x - 550) / (10 / globalMulS)));
} else {
if (movementType == 2){
this.x = (this.x - (0.2 * globalMulS));
shoot(27);
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
};
};
};
} else {
if (this.enemyCode == 68){
_local39 = (_root.movingTarget.x - this.x);
_local40 = (_root.movingTarget.y - this.y);
standartEnemy16.stEnemy16Cannon.rotation = (((Math.atan2(_local40, _local39) / Math.PI) * 180) + 210);
this.x = (this.x - (speed * globalMulS));
shoot(28);
if (this.y < 50){
movementType = 1;
} else {
if (this.y > 400){
movementType = 2;
};
};
if (movementType == 1){
this.y = (this.y + ((480 - this.y) / (20 / globalMulS)));
} else {
if (movementType == 2){
this.y = (this.y + ((30 - this.y) / (20 / globalMulS)));
} else {
this.y = (this.y + ((30 - this.y) / (20 / globalMulS)));
};
};
} else {
if (this.enemyCode == 69){
_local41 = (GSEngine.player.x - this.x);
_local42 = (GSEngine.player.y - this.y);
if (mTTimer > 500){
movementType = 2;
} else {
movementType = 1;
};
if (movementType == 2){
this.x = (this.x - (speed * globalMulS));
standartEnemy17.rotation = (((Math.atan2(_local42, _local41) / Math.PI) * 180) + 180);
shoot(29);
} else {
if (movementType == 1){
_local43 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.player.x + (radius * Math.cos(_local43)));
this.y = (GSEngine.player.y + (radius * Math.sin(_local43)));
angleInDegrees = (angleInDegrees + (speed * globalMulS));
shoot(29);
if (radius > 150){
radius = (radius - 2);
};
standartEnemy17.rotation = (((Math.atan2(_local42, _local41) / Math.PI) * 180) + 180);
};
};
} else {
if (this.enemyCode == 70){
_local44 = (GSEngine.player.x - this.x);
_local45 = (GSEngine.player.y - this.y);
if (mTTimer > 500){
movementType = 2;
} else {
movementType = 1;
};
if (movementType == 2){
this.x = (this.x - (speed * globalMulS));
standartEnemy17.rotation = ((Math.atan2(_local45, _local44) / Math.PI) * 180);
} else {
if (movementType == 1){
_local46 = ((angleInDegrees * Math.PI) / 180);
this.x = (GSEngine.player.x + (radius * Math.cos(_local46)));
this.y = (GSEngine.player.y + (radius * Math.sin(_local46)));
angleInDegrees = (angleInDegrees + (speed * globalMulS));
shoot(21);
if (radius > 150){
radius = (radius - 2);
};
standartEnemy17.rotation = ((Math.atan2(_local45, _local44) / Math.PI) * 180);
};
};
} else {
if (this.enemyCode == 71){
_local47 = (GSEngine.player.x - this.x);
_local48 = (GSEngine.player.y - this.y);
if (this.x > ((randomRange * 100) + 500)){
movementType = 1;
} else {
if (health < 75){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - (7 * globalMulS));
} else {
if (movementType == 2){
standartEnemy17.rotation = (((Math.atan2(_local48, _local47) / Math.PI) * 180) + 180);
shoot(29);
} else {
if (movementType == 3){
if (standartEnemy17.rotation < 170){
standartEnemy17.rotation = (standartEnemy17.rotation + 5);
};
this.x = (this.x - (1 * globalMulS));
};
};
};
} else {
if (this.enemyCode == 72){
_local49 = (GSEngine.player.x - this.x);
_local50 = (GSEngine.player.y - this.y);
standartEnemy17.rotation = (((Math.atan2(_local50, _local49) / Math.PI) * 180) + 180);
shoot(29);
this.x = (this.x - (speed * globalMulS));
} else {
if (this.enemyCode == 73){
if (mTTimer < 80){
movementType = 1;
} else {
if (mTTimer > 560){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
standartEnemy18.stEnemy18Cannon.rotation = (standartEnemy18.stEnemy18Cannon.rotation + 3);
if ((((standartEnemy18.stEnemy18Cannon.rotation > -27)) && ((standartEnemy18.stEnemy18Cannon.rotation < -23)))){
shoot(30);
};
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
};
};
};
} else {
if (this.enemyCode == 74){
if (mTTimer < 80){
movementType = 1;
} else {
if (mTTimer > 560){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.x = (this.x - (speed * globalMulS));
} else {
if (movementType == 2){
standartEnemy18.stEnemy18Cannon.rotation = (standartEnemy18.stEnemy18Cannon.rotation - 3);
if ((((standartEnemy18.stEnemy18Cannon.rotation > -27)) && ((standartEnemy18.stEnemy18Cannon.rotation < -23)))){
shoot(31);
};
} else {
if (movementType == 3){
this.x = (this.x - (speed * globalMulS));
};
};
};
} else {
if (this.enemyCode == 75){
this.x = (this.x - (1.5 * globalMulS));
this.y = _root.movingTarget.y;
_local51 = (_root.movingTarget2.x - this.x);
_local52 = (_root.movingTarget2.y - this.y);
standartEnemy18.stEnemy18Cannon.rotation = (((Math.atan2(_local52, _local51) / Math.PI) * 180) + 150);
if (this.x > 150){
shoot(33);
};
} else {
if (this.enemyCode == 76){
this.x = (this.x - (1.5 * globalMulS));
this.y = _root.movingTarget2.y;
_local53 = (_root.movingTarget.x - this.x);
_local54 = (_root.movingTarget.y - this.y);
standartEnemy18.stEnemy18Cannon.rotation = (((Math.atan2(_local54, _local53) / Math.PI) * 180) + 150);
if (this.x > 150){
shoot(34);
};
} else {
if (this.enemyCode == 77){
this.x = (this.x - (speed * globalMulS));
_local55 = (GSEngine.player.x - this.x);
_local56 = (GSEngine.player.y - this.y);
standartEnemy18.stEnemy18Cannon.rotation = (((Math.atan2(_local56, _local55) / Math.PI) * 180) + 150);
shoot(35);
} else {
if (this.enemyCode == 78){
this.x = (this.x - (speed * globalMulS));
shoot(36);
} else {
if (this.enemyCode == 79){
this.y = (this.y - ((this.y - ((randomRange * 100) + 300)) / (20 / globalMulS)));
this.x = (this.x - (speed * globalMulS));
shoot(36);
} else {
if (this.enemyCode == 80){
this.y = (this.y - ((this.y - ((randomRange * 100) + 100)) / (20 / globalMulS)));
this.x = (this.x - (speed * globalMulS));
shoot(36);
} else {
if (this.enemyCode == 81){
if (mTTimer < 90){
movementType = 1;
} else {
if (mTTimer > 400){
movementType = 3;
} else {
movementType = 2;
};
};
if (movementType == 1){
this.y = (this.y - ((this.y - ((randomRange * 300) + 100)) / (25 / globalMulS)));
this.x = (this.x - ((this.x - ((randomRange * 300) + 200)) / (25 / globalMulS)));
} else {
if (movementType == 2){
if (((((this.x - GSEngine.player.x) < 350)) && ((this.x < 700)))){
this.x = (this.x + (2 * globalMulS));
this.y = (this.y - (((randomRange * 2) - 1) * globalMulS));
};
shoot(36);
} else {
if (movementType == 3){
this.x = (this.x - (5 * globalMulS));
};
};
};
} else {
if (this.enemyCode == 82){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 4) - 2) * globalMulS));
shoot(25);
} else {
if (this.enemyCode == 83){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + (((randomRange * 7) + 6) * globalMulS));
shoot(25);
} else {
if (this.enemyCode == 84){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 4) - 2) * globalMulS));
shoot(21);
} else {
if (this.enemyCode == 85){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + ((400 - this.y) / (30 / globalMulS)));
shoot(21);
} else {
if (this.enemyCode == 86){
this.x = (this.x - (speed * globalMulS));
_local57 = (GSEngine.player.x - this.x);
_local58 = (GSEngine.player.y - this.y);
this.rotation = (((Math.atan2(_local58, _local57) / Math.PI) * 180) + 180);
shoot(35);
} else {
if (this.enemyCode == 87){
if (mTTimer < 180){
_local59 = (GSEngine.player.x - this.x);
_local60 = (GSEngine.player.y - this.y);
this.rotation = (((Math.atan2(_local60, _local59) / Math.PI) * 180) + 180);
this.x = (this.x - ((this.x - getPlPosX) / (20 / globalMulS)));
this.y = (this.y - ((this.y - getPlPosY) / (20 / globalMulS)));
shoot(37);
} else {
this.x = (this.x - (speed * globalMulS));
};
} else {
if (this.enemyCode == 88){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y - (((randomRange * 2) - 1) * globalMulS));
shoot(15);
} else {
if (this.enemyCode == 89){
this.x = (this.x - (speed * globalMulS));
if ((this.x - GSEngine.player.x) < 150){
this.y = (this.y + (((randomRange * 12) - 6) * globalMulS));
};
shoot(14);
} else {
if (this.enemyCode == 90){
this.x = (this.x - (speed * globalMulS));
shoot(38);
} else {
if (this.enemyCode == 91){
this.x = (this.x - (speed * globalMulS));
this.y = (this.y + ((randomRange * 4) * globalMulS));
shoot(38);
} else {
if (this.enemyCode == 92){
this.x = (this.x - (speed * globalMulS));
_local61 = (GSEngine.player.x - this.x);
_local62 = (GSEngine.player.y - this.y);
annoyer2.annoyer2Cannon.rotation = (((Math.atan2(_local62, _local61) / Math.PI) * 180) + 180);
shoot(39);
} else {
if (this.enemyCode == 93){
shoot(39);
shoot(36);
if (this.x > 650){
this.x = (this.x - speed);
};
if (this.x <= 650){
if ((((mTTimer < 200)) && ((movementType == 1)))){
this.y = (this.y - 1);
};
if ((((mTTimer > 200)) && ((movementType == 1)))){
movementType = 2;
mTTimer = 0;
};
if ((((mTTimer < 200)) && ((movementType == 2)))){
this.y = (this.y + 1);
};
};
} else {
if (this.enemyCode == 94){
this.x = (this.x - (speed * globalMulS));
shoot(40);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function shoot(_arg1){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:MovieClip;
var _local13:MovieClip;
var _local14:MovieClip;
var _local15:MovieClip;
var _local16:MovieClip;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:MovieClip;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local28:MovieClip;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:MovieClip;
var _local35:MovieClip;
var _local36:MovieClip;
var _local37:MovieClip;
var _local38:MovieClip;
var _local39:MovieClip;
var _local40:MovieClip;
var _local41:Number;
var _local42:Number;
var _local43:Number;
var _local44:Number;
var _local45:Number;
var _local46:MovieClip;
var _local47:MovieClip;
var _local48:Number;
var _local49:Number;
var _local50:Number;
var _local51:Number;
var _local52:Number;
var _local53:MovieClip;
var _local54:Number;
var _local55:Number;
var _local56:Number;
var _local57:Number;
var _local58:Number;
var _local59:MovieClip;
var _local60:Number;
var _local61:Number;
var _local62:Number;
var _local63:Number;
var _local64:Number;
var _local65:MovieClip;
var _local66:MovieClip;
var _local67:MovieClip;
var _local68:MovieClip;
var _local69:MovieClip;
var _local70:MovieClip;
var _local71:MovieClip;
var _local72:MovieClip;
var _local73:MovieClip;
var _local74:MovieClip;
var _local75:MovieClip;
var _local76:MovieClip;
var _local77:MovieClip;
var _local78:Number;
var _local79:Number;
var _local80:Number;
var _local81:Number;
var _local82:Number;
var _local83:MovieClip;
var _local84:Number;
var _local85:Number;
var _local86:Number;
var _local87:Number;
var _local88:Number;
var _local89:MovieClip;
var _local90:Number;
var _local91:Number;
var _local92:Number;
var _local93:Number;
var _local94:Number;
var _local95:MovieClip;
var _local96:MovieClip;
var _local97:MovieClip;
var _local98:MovieClip;
var _local99:MovieClip;
var _local100:Number;
var _local101:Number;
var _local102:Number;
var _local103:Number;
var _local104:Number;
var _local105:MovieClip;
var _local106:MovieClip;
var _local107:MovieClip;
var _local108:Number;
var _local109:Number;
var _local110:Number;
var _local111:Number;
var _local112:Number;
var _local113:MovieClip;
var _local114:MovieClip;
var _local115:MovieClip;
var _local116:MovieClip;
var _local117:MovieClip;
var _local118:MovieClip;
var _local119:MovieClip;
var _local120:MovieClip;
var _local121:MovieClip;
var _local122:MovieClip;
var _local123:MovieClip;
var _local124:MovieClip;
var _local125:MovieClip;
var _local126:MovieClip;
var _local127:MovieClip;
var _local128:MovieClip;
var _local129:MovieClip;
var _local130:int;
var _local131:MovieClip;
var _local132:int;
var _local133:MovieClip;
var _local134:int;
var _local135:int;
var _local136:MovieClip;
var _local137:MovieClip;
var _local138:MovieClip;
var _local139:MovieClip;
var _local140:MovieClip;
var _local141:MovieClip;
var _local142:MovieClip;
var _local143:MovieClip;
var _local144:MovieClip;
var _local145:MovieClip;
var _local146:MovieClip;
var _local147:MovieClip;
var _local148:Number;
var _local149:Number;
var _local150:Number;
var _local151:Number;
var _local152:Number;
if ((((shootTimer > shootLimit)) && ((GSEngine.death == false)))){
switch (_arg1){
case 1:
_local2 = new Effect();
_local3 = new Bullet();
_local3.x = (this.x - 20);
_local3.y = this.y;
_local3.bulletBehav = 1;
_root.addChild(_local3);
_local2.x = (this.x - 20);
_local2.y = this.y;
_local2.rotation = 180;
stage.addChild(_local2);
_local2.type = 4;
shootTimer = 0;
break;
case 2:
_local4 = new Effect();
_local5 = new Bullet();
_local5.x = (this.x - 20);
_local5.y = this.y;
shootTimer = 0;
_local5.bulletBehav = 4;
_root.addChild(_local5);
_local4.x = (this.x - 20);
_local4.y = this.y;
_local4.rotation = 180;
stage.addChild(_local4);
_local4.type = 4;
break;
case 3:
_local6 = new Effect();
_local7 = new Bullet();
_local8 = new Bullet();
_local7.x = (this.x - 20);
_local7.y = this.y;
shootTimer = 0;
_local7.bulletBehav = 1;
_root.addChild(_local7);
_local8.x = (this.x - 20);
_local8.y = (this.y + 10);
shootTimer = 0;
_local8.bulletBehav = 1;
_root.addChild(_local8);
_local6.x = (this.x - 20);
_local6.y = this.y;
_local6.rotation = 180;
stage.addChild(_local6);
_local6.type = 4;
break;
case 4:
_local9 = new Bullet();
_local10 = new Effect();
_local9.x = (this.x - 20);
_local9.y = this.y;
shootTimer = 0;
_local9.bulletBehav = 2;
_root.addChild(_local9);
_local11 = new Bullet();
_local11.x = (this.x - 20);
_local11.y = this.y;
shootTimer = 0;
_local11.bulletBehav = 3;
_root.addChild(_local11);
_local10.x = (this.x - 20);
_local10.y = this.y;
_local10.rotation = 180;
stage.addChild(_local10);
_local10.type = 4;
break;
case 5:
_local12 = new Effect();
_local13 = new Bullet();
_local13.x = (this.x - 20);
_local13.y = this.y;
shootTimer = 0;
_local13.bulletBehav = 2;
_root.addChild(_local13);
_local14 = new Bullet();
_local14.x = (this.x - 20);
_local14.y = this.y;
shootTimer = 0;
_local14.bulletBehav = 3;
_root.addChild(_local14);
_local15 = new Bullet();
_local15.x = (this.x - 20);
_local15.y = this.y;
shootTimer = 0;
_local15.bulletBehav = 13;
_root.addChild(_local15);
_local12.x = (this.x - 20);
_local12.y = this.y;
_local12.rotation = 180;
stage.addChild(_local12);
_local12.type = 4;
break;
case 6:
_local16 = new Bullet();
_local17 = (GSEngine.player.x - this.x);
_local18 = (GSEngine.player.y - this.y);
_local19 = Math.atan2(_local17, _local18);
_local20 = (Math.sin(_local19) * 50);
_local21 = (Math.cos(_local19) * 50);
_local16.x = (this.x + _local20);
_local16.y = (this.y + _local21);
shootTimer = 0;
_local16.bulletBehav = 4;
_root.addChild(_local16);
break;
case 7:
_local22 = new Bullet();
_local23 = (GSEngine.player.x - this.x);
_local24 = (GSEngine.player.y - this.y);
_local25 = Math.atan2(_local23, _local24);
_local26 = (Math.sin(_local25) * 50);
_local27 = (Math.cos(_local25) * 50);
_local22.x = (this.x + _local26);
_local22.y = (this.y + _local27);
shootTimer = 0;
_local22.bulletBehav = 13;
_root.addChild(_local22);
break;
case 8:
_local28 = new Bullet();
_local29 = (GSEngine.player.x - this.x);
_local30 = (GSEngine.player.y - this.y);
_local31 = Math.atan2(_local29, _local30);
_local32 = (Math.sin(_local31) * 50);
_local33 = (Math.cos(_local31) * 50);
_local28.x = (this.x + _local32);
_local28.y = (this.y + _local33);
shootTimer = 0;
_local28.bulletBehav = 13;
_root.addChild(_local28);
break;
case 9:
_local34 = new Bullet();
_local34.x = this.x;
_local34.y = (this.y + 30);
shootTimer = 0;
_local34.bulletBehav = 6;
_root.addChild(_local34);
_local35 = new Bullet();
_local35.x = this.x;
_local35.y = (this.y - 30);
shootTimer = 0;
_local35.bulletBehav = 7;
_root.addChild(_local35);
break;
case 10:
_local36 = new Bullet();
_local36.x = (this.x - 20);
_local36.y = (this.y + 10);
shootTimer = 0;
_local36.bulletBehav = 2;
_root.addChild(_local36);
_local37 = new Bullet();
_local37.x = (this.x - 20);
_local37.y = (this.y - 10);
shootTimer = 0;
_local37.bulletBehav = 3;
_root.addChild(_local37);
_local38 = new Bullet();
_local38.x = (this.x - 20);
_local38.y = this.y;
shootTimer = 0;
_local38.bulletBehav = 11;
_root.addChild(_local38);
break;
case 11:
_local39 = new Bullet();
_local40 = new Bullet();
_local41 = (GSEngine.player.x - this.x);
_local42 = (GSEngine.player.y - this.y);
_local43 = Math.atan2(_local41, _local42);
_local44 = (Math.sin(_local43) * 50);
_local45 = (Math.cos(_local43) * 50);
_local39.x = (this.x + _local44);
_local39.y = (this.y + _local45);
shootTimer = 0;
_local39.bulletBehav = 13;
_root.addChild(_local39);
_local40.x = (this.x + _local44);
_local40.y = (this.y + _local45);
shootTimer = 0;
_local40.bulletBehav = 2;
_root.addChild(_local40);
break;
case 12:
_local46 = new Bullet();
_local47 = new Bullet();
_local48 = (GSEngine.player.x - this.x);
_local49 = (GSEngine.player.y - this.y);
_local50 = Math.atan2(_local48, _local49);
_local51 = (Math.sin(_local50) * 50);
_local52 = (Math.cos(_local50) * 50);
_local46.x = (this.x + _local51);
_local46.y = (this.y + _local52);
shootTimer = 0;
_local46.bulletBehav = 13;
_root.addChild(_local46);
_local47.x = (this.x + _local51);
_local47.y = (this.y + _local52);
shootTimer = 0;
_local47.bulletBehav = 2;
_root.addChild(_local47);
break;
case 13:
_local53 = new Bullet();
_local54 = (GSEngine.player.x - this.x);
_local55 = (GSEngine.player.y - this.y);
_local56 = Math.atan2(_local54, _local55);
_local57 = (Math.sin(_local56) * 50);
_local58 = (Math.cos(_local56) * 50);
_local53.x = (this.x + _local57);
_local53.y = (this.y + _local58);
shootTimer = 0;
_local53.bulletBehav = 13;
_root.addChild(_local53);
break;
case 14:
_local59 = new Bullet();
_local60 = (GSEngine.player.x - this.x);
_local61 = (GSEngine.player.y - this.y);
_local62 = Math.atan2(_local60, _local61);
_local63 = (Math.sin(_local62) * 50);
_local64 = (Math.cos(_local62) * 50);
_local59.x = (this.x + _local63);
_local59.y = (this.y + _local64);
shootTimer = 0;
_local59.bulletBehav = 13;
_root.addChild(_local59);
break;
case 15:
_local65 = new Bullet();
_local66 = new Bullet();
_local67 = new Bullet();
_local65.x = this.x;
_local65.y = this.y;
shootTimer = 0;
_local65.bulletBehav = 12;
_root.addChild(_local65);
_local66.x = (this.x + 30);
_local66.y = this.y;
shootTimer = 0;
_local66.bulletBehav = 12;
_root.addChild(_local66);
_local67.x = (this.x - 30);
_local67.y = this.y;
shootTimer = 0;
_local67.bulletBehav = 12;
_root.addChild(_local67);
break;
case 16:
_local68 = new Bullet();
_local68.x = this.x;
_local68.y = this.y;
shootTimer = 0;
_local68.bulletBehav = 54;
_local68.rotation = 180;
_root.addChild(_local68);
break;
case 17:
_local69 = new Bullet();
_local69.x = (this.x - 50);
_local69.y = this.y;
shootTimer = 0;
_local69.bulletBehav = 55;
_root.addChild(_local69);
break;
case 18:
_local70 = new Bullet();
_local70.x = this.x;
_local70.y = this.y;
shootTimer = 0;
_local70.bulletBehav = 13;
_root.addChild(_local70);
break;
case 19:
_local71 = new Bullet();
_local71.x = this.x;
_local71.y = this.y;
shootTimer = 0;
_local71.bulletBehav = 54;
_local71.rotation = 180;
_root.addChild(_local71);
break;
case 20:
_local72 = new Bullet();
_local72.x = this.x;
_local72.y = this.y;
shootTimer = 0;
_local72.bulletBehav = 40;
_root.addChild(_local72);
break;
case 21:
_local73 = new Bullet();
_local73.x = this.x;
_local73.y = this.y;
shootTimer = 0;
_local73.bulletBehav = 53;
_root.addChild(_local73);
break;
case 22:
_local74 = new Bullet();
_local74.x = (this.x - 25);
_local74.y = (this.y + 50);
shootTimer = 0;
_local74.bulletBehav = 61;
_root.addChild(_local74);
break;
case 23:
_local75 = new Bullet();
_local75.x = (this.x - 25);
_local75.y = (this.y - 50);
shootTimer = 0;
_local75.bulletBehav = 62;
_root.addChild(_local75);
break;
case 24:
_local130 = 0;
while (_local130 < 7) {
_local131 = new Bullet();
_local131.x = this.x;
_local131.y = (this.y + (_local130 * 10));
shootTimer = 0;
_local131.bulletBehav = 63;
_root.addChild(_local131);
_local130++;
};
break;
case 25:
_local76 = new Bullet();
_local77 = new Bullet();
_local78 = (GSEngine.player.x - this.x);
_local79 = (GSEngine.player.y - this.y);
_local80 = Math.atan2(_local78, _local79);
_local81 = (Math.sin(_local80) * 50);
_local82 = (Math.cos(_local80) * 50);
_local77.x = (this.x + _local81);
_local77.y = (this.y + _local82);
_local76.x = (this.x + _local81);
_local76.y = (this.y + _local82);
shootTimer = 0;
_local76.bulletBehav = 15;
_local77.bulletBehav = 16;
_root.addChild(_local76);
_root.addChild(_local77);
break;
case 26:
_local83 = new Bullet();
_local84 = (_root.movingTarget2.x - this.x);
_local85 = (_root.movingTarget2.y - this.y);
_local86 = Math.atan2(_local84, _local85);
_local87 = (Math.sin(_local86) * 50);
_local88 = (Math.cos(_local86) * 50);
_local83.x = (this.x + _local87);
_local83.y = (this.y + _local88);
shootTimer = 0;
_local83.bulletBehav = 42;
_root.addChild(_local83);
break;
case 27:
_local89 = new Bullet();
_local90 = (_root.movingTarget.x - this.x);
_local91 = (_root.movingTarget.y - this.y);
_local92 = Math.atan2(_local90, _local91);
_local93 = (Math.sin(_local92) * 50);
_local94 = (Math.cos(_local92) * 50);
_local89.x = (this.x + _local93);
_local89.y = (this.y + _local94);
shootTimer = 0;
_local89.bulletBehav = 41;
_root.addChild(_local89);
break;
case 28:
_local95 = new Bullet();
_local96 = new Bullet();
_local97 = new Bullet();
_local98 = new Bullet();
_local99 = new Bullet();
_local100 = (_root.movingTarget.x - this.x);
_local101 = (_root.movingTarget.y - this.y);
_local102 = Math.atan2(_local100, _local101);
_local103 = (Math.sin(_local102) * 50);
_local104 = (Math.cos(_local102) * 50);
_local95.x = (this.x + _local103);
_local95.y = (this.y + _local104);
_local96.x = (this.x + _local103);
_local96.y = (this.y + _local104);
_local97.x = (this.x + _local103);
_local97.y = (this.y + _local104);
_local98.x = (this.x + _local103);
_local98.y = (this.y + _local104);
_local99.x = (this.x + _local103);
_local99.y = (this.y + _local104);
shootTimer = 0;
_local95.bulletBehav = 15;
_local96.bulletBehav = 16;
_local97.bulletBehav = 17;
_local98.bulletBehav = 18;
_local99.bulletBehav = 19;
_root.addChild(_local95);
_root.addChild(_local96);
_root.addChild(_local97);
_root.addChild(_local98);
_root.addChild(_local99);
break;
case 29:
_local105 = new Bullet();
_local106 = new Bullet();
_local107 = new Bullet();
_local108 = (_root.movingTarget.x - this.x);
_local109 = (_root.movingTarget.y - this.y);
_local110 = Math.atan2(_local108, _local109);
_local111 = (Math.sin(_local110) * 50);
_local112 = (Math.cos(_local110) * 50);
_local105.x = (this.x + _local111);
_local105.y = (this.y + _local112);
_local106.x = (this.x + _local111);
_local106.y = (this.y + _local112);
_local107.x = (this.x + _local111);
_local107.y = (this.y + _local112);
shootTimer = 0;
_local105.bulletBehav = 55;
_local106.bulletBehav = 16;
_local107.bulletBehav = 17;
_root.addChild(_local105);
_root.addChild(_local106);
_root.addChild(_local107);
break;
case 30:
bulLaser1 = new Bullet();
bulLaser1.x = this.x;
bulLaser1.y = this.y;
shootTimer = 0;
bulLaser1.bulletBehav = 64;
_root.addChild(bulLaser1);
break;
case 31:
bulLaser2 = new Bullet();
bulLaser2.x = this.x;
bulLaser2.y = this.y;
shootTimer = 0;
bulLaser2.bulletBehav = 65;
_root.addChild(bulLaser2);
break;
case 32:
_local113 = new Bullet();
_local113.x = this.x;
_local113.y = this.y;
shootTimer = 0;
_local113.bulletBehav = 65;
_root.addChild(_local113);
break;
case 33:
bulLaser3 = new Bullet();
bulLaser3.x = this.x;
bulLaser3.y = this.y;
shootTimer = 0;
bulLaser3.bulletBehav = 66;
_root.addChild(bulLaser3);
break;
case 34:
bulLaser4 = new Bullet();
bulLaser4.x = this.x;
bulLaser4.y = this.y;
shootTimer = 0;
bulLaser4.bulletBehav = 67;
_root.addChild(bulLaser4);
break;
case 35:
bulLaser5 = new Bullet();
bulLaser5.x = this.x;
bulLaser5.y = this.y;
shootTimer = 0;
bulLaser5.bulletBehav = 68;
_root.addChild(bulLaser5);
break;
case 36:
_local114 = new Bullet();
_local115 = new Bullet();
_local116 = new Bullet();
_local117 = new Bullet();
_local114.x = (this.x - 40);
_local114.y = this.y;
_local115.x = (this.x - 60);
_local115.y = (this.y - 15);
_local116.x = (this.x - 40);
_local116.y = (this.y + 10);
_local117.x = (this.x - 45);
_local117.y = (this.y + 25);
_local114.bulletBehav = 69;
_local115.bulletBehav = 69;
_local116.bulletBehav = 69;
_local117.bulletBehav = 69;
_root.addChild(_local114);
_root.addChild(_local115);
_root.addChild(_local116);
_root.addChild(_local117);
shootTimer = 0;
break;
case 37:
bulLaser6 = new Bullet();
bulLaser6.x = this.x;
bulLaser6.y = this.y;
shootTimer = 0;
bulLaser6.bulletBehav = 70;
_root.addChild(bulLaser6);
break;
case 38:
_local118 = new Bullet();
_local119 = new Bullet();
_local120 = new Bullet();
_local121 = new Bullet();
_local122 = new Bullet();
_local123 = new Bullet();
_local124 = new Bullet();
_local125 = new Bullet();
_local126 = new Bullet();
_local127 = new Bullet();
_local118.x = (this.x - 80);
_local118.y = (this.y - 30);
_local119.x = (this.x - 55);
_local119.y = (this.y - 30);
_local120.x = (this.x - 20);
_local120.y = (this.y - 30);
_local121.x = (this.x + 30);
_local121.y = (this.y - 30);
_local122.x = (this.x + 60);
_local122.y = (this.y - 30);
_local123.x = (this.x - 80);
_local123.y = (this.y + 30);
_local124.x = (this.x - 55);
_local124.y = (this.y + 30);
_local125.x = (this.x - 20);
_local125.y = (this.y + 30);
_local126.x = (this.x + 30);
_local126.y = (this.y + 30);
_local127.x = (this.x + 60);
_local127.y = (this.y + 30);
_local118.bulletBehav = 71;
_local119.bulletBehav = 71;
_local120.bulletBehav = 71;
_local121.bulletBehav = 71;
_local122.bulletBehav = 71;
_local123.bulletBehav = 72;
_local124.bulletBehav = 72;
_local125.bulletBehav = 72;
_local126.bulletBehav = 72;
_local127.bulletBehav = 72;
_root.addChild(_local118);
_root.addChild(_local119);
_root.addChild(_local120);
_root.addChild(_local121);
_root.addChild(_local122);
_root.addChild(_local123);
_root.addChild(_local124);
_root.addChild(_local125);
_root.addChild(_local126);
_root.addChild(_local127);
while (_local132 < 5) {
_local133 = new Bullet();
_local133.x = (this.x - 80);
_local133.y = this.y;
_local133.bulletBehav = 63;
_root.addChild(_local133);
_local132++;
};
shootTimer = 0;
break;
case 39:
_local128 = new Bullet();
while (_local134 < 10) {
_local128.x = (this.x - 30);
_local128.y = (this.y + 20);
_local128.bulletBehav = 63;
_root.addChild(_local128);
_local134++;
};
break;
case 40:
_local129 = new Bullet();
while (_local135 < 15) {
_local129.x = this.x;
_local129.y = this.y;
_local129.bulletBehav = 80;
_local129.rotation = (Math.random() * 360);
_root.addChild(_local129);
_local135++;
};
break;
};
};
if ((((shootTimer2 > shootLimit2)) && ((GSEngine.death == false)))){
switch (_arg1){
case 14:
_local136 = new Bullet();
_local136.x = this.x;
_local136.y = this.y;
shootTimer2 = 0;
_local136.bulletBehav = 53;
_root.addChild(_local136);
break;
case 18:
_local137 = new Bullet();
_local137.x = this.x;
_local137.y = this.y;
shootTimer2 = 0;
_local137.bulletBehav = 48;
_root.addChild(_local137);
_local138 = new Bullet();
_local138.x = (this.x + 10);
_local138.y = (this.y - 20);
shootTimer2 = 0;
_local138.bulletBehav = 48;
_root.addChild(_local138);
_local139 = new Bullet();
_local139.x = (this.x + 20);
_local139.y = (this.y - 40);
shootTimer2 = 0;
_local139.bulletBehav = 48;
_root.addChild(_local139);
break;
case 19:
_local140 = new Bullet();
_local140.x = this.x;
_local140.y = this.y;
shootTimer2 = 0;
_local140.bulletBehav = 15;
_root.addChild(_local140);
break;
case 36:
_local141 = new Bullet();
_local142 = new Bullet();
_local141.x = this.x;
_local141.y = (this.y - 30);
_local142.x = this.x;
_local142.y = (this.y + 30);
_local141.bulletBehav = 48;
_local142.bulletBehav = 48;
_root.addChild(_local141);
_root.addChild(_local142);
shootTimer2 = 0;
break;
case 39:
_local143 = new Bullet();
_local144 = new Bullet();
_local145 = new Bullet();
_local146 = new Bullet();
_local147 = new Bullet();
_local148 = (GSEngine.player.x - this.x);
_local149 = (GSEngine.player.y - this.y);
_local150 = Math.atan2(_local148, _local149);
_local151 = (Math.sin(_local150) * 40);
_local152 = (Math.cos(_local150) * 40);
_local143.x = (this.x + _local151);
_local143.y = (this.y + _local152);
_local144.x = (this.x + _local151);
_local144.y = (this.y + _local152);
_local145.x = (this.x + _local151);
_local145.y = (this.y + _local152);
_local146.x = (this.x + _local151);
_local146.y = (this.y + _local152);
_local147.x = (this.x + _local151);
_local147.y = (this.y + _local152);
_local143.bulletBehav = 15;
_local144.bulletBehav = 16;
_local145.bulletBehav = 17;
_local146.bulletBehav = 18;
_local147.bulletBehav = 19;
_root.addChild(_local143);
_root.addChild(_local144);
_root.addChild(_local145);
_root.addChild(_local146);
_root.addChild(_local147);
shootTimer2 = 0;
break;
};
};
}
public function removeThis(){
var _local1:*;
var _local2:int;
var _local3:MovieClip;
if (bulLaser1 != null){
bulLaser1.removeThis();
};
if (bulLaser2 != null){
bulLaser2.removeThis();
};
if (bulLaser3 != null){
bulLaser3.removeThis();
};
if (bulLaser4 != null){
bulLaser4.removeThis();
};
if (bulLaser5 != null){
bulLaser5.removeThis();
};
if (bulLaser6 != null){
bulLaser6.removeThis();
};
if (this.numChildren > 0){
this.removeChildAt((this.numChildren - 1));
};
dropLoot();
dropEXP();
makeDebris();
for (_local1 in GSEngine.eList) {
if ((((GSEngine.eList[_local1] == this)) && (!((this == null))))){
GSEngine.eList.splice(_local1, 1);
};
};
_local2 = 0;
while (_local2 < 3) {
if (((!((this == null))) && (!((stage == null))))){
_local3 = new Effect();
_local3.x = (this.x + (Math.random() * 20));
_local3.y = (this.y + (Math.random() * 20));
stage.addChild(_local3);
_local3.type = 8;
};
if (GSEngine.sound == true){
myChannel = eEX1.play();
};
_local2++;
};
GSEngine.enemiesLeft--;
GSEngine.enemiesKilled++;
deleteReset();
}
public function deleteReset(){
var _local1:*;
if (((!((this == null))) && (!((this.parent == null))))){
for (_local1 in GSEngine.eList) {
if ((((GSEngine.eList[_local1] == this)) && (!((this == null))))){
GSEngine.eList.splice(_local1, 1);
};
};
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
this.parent.removeChild(this);
};
}
function makeDebris(){
var _local1:int;
var _local2:MovieClip;
if (((!((this == null))) && (!((stage == null))))){
_local1 = 0;
while (_local1 < 2) {
_local2 = new debris();
stage.addChild(_local2);
_local2.x = this.x;
_local2.y = this.y;
_local1++;
};
};
}
function pasangJet(){
if (standartEnemy1.visible == true){
jetFire.x = 34;
jetFire.y = 1;
periM1.x = -11;
periM1.y = -12;
} else {
if (standartEnemy2.visible == true){
jetFire.x = 51;
jetFire.y = -5;
periM1.x = -17;
periM1.y = -17;
periM1.scaleX = 0.3;
periM1.scaleY = 0.3;
} else {
if (standartEnemy3.visible == true){
jetFire.x = 47;
jetFire.y = -8;
periM1.x = -30;
periM1.y = -23;
periM1.scaleX = 0.35;
periM1.scaleY = 0.5;
} else {
if (standartEnemy4.visible == true){
jetFire.x = 47;
jetFire.y = -30;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = -97;
periM1.x = -15;
periM1.y = 37;
periM1.scaleX = 0.4;
periM1.scaleY = 0.5;
} else {
if (standartEnemy5.visible == true){
jetFire.x = 53;
jetFire.y = 0;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = 0;
periM1.x = -25;
periM1.y = -30;
periM1.scaleX = 0.3;
periM1.scaleY = 0.5;
} else {
if (standartEnemy6.visible == true){
jetFire.x = 50;
jetFire.y = 7;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = 6;
periM1.x = -29;
periM1.y = -20;
periM1.scaleX = 0.35;
periM1.scaleY = 0.43;
} else {
if (standartEnemy7.visible == true){
jetFire.x = 50;
jetFire.y = 5;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = 0;
periM1.x = -22;
periM1.y = -20;
periM1.scaleX = 0.3;
periM1.scaleY = 0.4;
} else {
if (standartEnemy8.visible == true){
jetFire.x = 55;
jetFire.y = 6;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire2.visible = true;
jetFire2.x = 22;
jetFire2.y = -10;
jetFire2.rotation = -21;
periM1.rotation = 0;
periM1.x = -34;
periM1.y = -22;
periM1.scaleX = 0.45;
periM1.scaleY = 0.5;
} else {
if (standartEnemy9.visible == true){
jetFire.x = 55;
jetFire.y = 0;
jetFire.scaleX = 1.7;
jetFire.scaleY = 1.7;
periM1.rotation = 0;
periM1.x = -20;
periM1.y = -15;
periM1.scaleX = 0.4;
} else {
if (standartEnemy10.visible == true){
jetFire.x = 44;
jetFire.y = 0;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire2.visible = true;
jetFire2.x = 24;
jetFire2.y = 17;
jetFire2.rotation = 38;
periM1.rotation = 0;
periM1.x = -45;
periM1.y = -14;
periM1.scaleX = 0.5;
} else {
if (standartEnemy11.visible == true){
jetFire.x = 32;
jetFire.y = 13;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire.rotation = 33;
jetFire2.visible = true;
jetFire2.x = 32;
jetFire2.y = -13;
jetFire2.rotation = -33;
periM1.rotation = 0;
periM1.x = -17;
periM1.y = -16;
periM1.scaleX = 0.2;
} else {
if (standartEnemy12.visible == true){
jetFire.x = 49;
jetFire.y = 15;
jetFire.scaleX = 2;
jetFire.scaleY = 2;
jetFire.rotation = 33;
jetFire2.visible = true;
jetFire2.x = 35;
jetFire2.y = 30;
jetFire2.rotation = 53;
periM1.rotation = 165;
periM1.x = 43;
periM1.y = 25;
periM1.scaleX = 0.4;
periM1.scaleY = 0.4;
} else {
if (standartEnemy13.visible == true){
jetFire.x = 49;
jetFire.y = 15;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = 0;
periM1.x = -20;
periM1.y = -5;
periM1.scaleX = 0.3;
periM1.scaleY = 0.3;
} else {
if (standartEnemy14.visible == true){
jetFire.x = 58;
jetFire.y = -2;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire2.visible = true;
jetFire2.x = 16;
jetFire2.y = 20;
jetFire2.rotation = 53;
jetFire3.visible = true;
jetFire3.x = 16;
jetFire3.y = -18;
jetFire3.rotation = -32;
periM1.rotation = 0;
periM1.x = -33;
periM1.y = -15;
periM1.scaleX = 0.45;
periM1.scaleY = 0.3;
} else {
if (standartEnemy15.visible == true){
jetFire.x = 55;
jetFire.y = -4;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire2.visible = true;
jetFire2.x = 7;
jetFire2.y = 23;
jetFire2.rotation = 53;
periM1.rotation = 0;
periM1.x = -29;
periM1.y = -25;
periM1.scaleX = 0.4;
periM1.scaleY = 0.4;
} else {
if (standartEnemy16.visible == true){
jetFire.x = 40;
jetFire.y = -5;
jetFire.scaleX = 1;
jetFire.scaleY = 1;
jetFire2.visible = true;
jetFire2.x = 37;
jetFire2.y = 10;
jetFire2.rotation = 0;
jetFire3.visible = true;
jetFire3.x = 38;
jetFire3.y = -26;
jetFire3.rotation = -32;
periM1.rotation = 0;
periM1.x = -29;
periM1.y = -37;
periM1.scaleX = 0.3;
periM1.scaleY = 0.5;
} else {
if (standartEnemy17.visible == true){
jetFire.visible = false;
periM1.rotation = 0;
periM1.x = -20;
periM1.y = -23;
periM1.scaleX = 0.32;
periM1.scaleY = 0.45;
} else {
if (standartEnemy18.visible == true){
jetFire.x = 56;
jetFire.y = 13;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
periM1.rotation = 29;
periM1.x = 4;
periM1.y = -16;
periM1.scaleX = 0.27;
periM1.scaleY = 0.27;
} else {
if (standartEnemy19.visible == true){
jetFire.x = 50;
jetFire.y = 16;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire2.visible = true;
jetFire2.x = 39;
jetFire2.y = 2;
jetFire2.rotation = 0;
periM1.rotation = 90;
periM1.x = 28;
periM1.y = -35;
periM1.scaleX = 0.4;
periM1.scaleY = 0.45;
} else {
if (standartEnemy20.visible == true){
jetFire.x = 36;
jetFire.y = 0;
jetFire.scaleX = 1.1;
jetFire.scaleY = 1.1;
periM1.rotation = 0;
periM1.x = -14;
periM1.y = -17;
periM1.scaleX = 0.25;
periM1.scaleY = 0.3;
} else {
if (standartEnemy21.visible == true){
jetFire.visible = false;
jetFire2.visible = true;
jetFire2.x = 23;
jetFire2.y = -20;
jetFire2.rotation = -27;
jetFire3.visible = true;
jetFire3.x = 23;
jetFire3.y = 19;
jetFire3.rotation = 40;
periM1.rotation = 0;
periM1.x = -28;
periM1.y = -16;
periM1.scaleX = 0.3;
periM1.scaleY = 0.27;
} else {
if (standartEnemy22.visible == true){
jetFire.x = 28;
jetFire.y = 0;
jetFire.scaleX = 1;
jetFire.scaleY = 1;
periM1.rotation = 0;
periM1.x = -17;
periM1.y = -10;
periM1.scaleX = 0.2;
periM1.scaleY = 0.2;
} else {
if (standartEnemy23.visible == true){
jetFire.x = 45;
jetFire.y = -4;
jetFire.scaleX = 1.5;
jetFire.scaleY = 1.5;
jetFire3.visible = true;
jetFire3.x = 23;
jetFire3.y = 18;
jetFire3.rotation = 40;
periM1.rotation = 0;
periM1.x = -19;
periM1.y = -15;
periM1.scaleX = 0.3;
periM1.scaleY = 0.27;
} else {
if (annoyer1.visible == true){
jetFire.x = 90;
jetFire.y = -3;
jetFire.scaleX = 1;
jetFire.scaleY = 1;
periM1.rotation = 0;
periM1.x = -70;
periM1.y = -12;
periM1.scaleX = 0.8;
periM1.scaleY = 0.2;
} else {
if (an.visible == true){
jetFire.visible = false;
periM1.rotation = 0;
periM1.x = -28;
periM1.y = -26;
periM1.scaleX = 0.33;
periM1.scaleY = 0.53;
} else {
if (annoyer2.visible == true){
jetFire.x = 70;
jetFire.y = -1;
jetFire.scaleX = 1;
jetFire.scaleY = 1;
jetFire3.visible = true;
jetFire3.x = 70;
jetFire3.y = 13;
jetFire3.rotation = 0;
periM1.rotation = 0;
periM1.x = -36;
periM1.y = -22;
periM1.scaleX = 0.35;
periM1.scaleY = 0.35;
} else {
if (spc1.visible == true){
jetFire.x = -70;
jetFire.y = -1;
jetFire.scaleX = -1;
jetFire.scaleY = 1;
jetFire3.visible = false;
jetFire2.visible = false;
periM1.scaleX = 2;
periM1.scaleY = 1.5;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function dropLoot(){
var _local1:MovieClip;
var _local2:int;
var _local3:MovieClip;
if (loot == 0){
loot = 1;
};
if ((randomRange * 100) < (dropChange * GSEngine.plusDrop)){
_local1 = new LootItem();
_local1.x = this.x;
_local1.y = this.y;
_root.addChild(_local1);
_local1.gotoAndStop(loot);
_local1.loot = loot;
};
if ((randomRange * 100) < (moneyChange * GSEngine.plusDrop)){
_local2 = 0;
while (_local2 < Math.round(((Math.random() * (moneyChange / 2)) * GSEngine.plusDrop))) {
_local3 = new LootItem();
_local3.x = (this.x + (Math.random() * 70));
_local3.y = (this.y + (Math.random() * 60));
_root.addChild(_local3);
_local3.gotoAndStop(1);
_local3.loot = 1;
_local2++;
};
};
}
public function dropEXP(){
switch (this.enemyCode){
case 1:
GSEngine.exps = (GSEngine.exps + 15);
GSEngine.expEarned = (GSEngine.expEarned + 15);
break;
case 2:
GSEngine.exps = (GSEngine.exps + 15);
GSEngine.expEarned = (GSEngine.expEarned + 15);
break;
case 3:
GSEngine.exps = (GSEngine.exps + 15);
GSEngine.expEarned = (GSEngine.expEarned + 15);
break;
case 4:
GSEngine.exps = (GSEngine.exps + 15);
GSEngine.expEarned = (GSEngine.expEarned + 15);
break;
case 5:
GSEngine.exps = (GSEngine.exps + 15);
GSEngine.expEarned = (GSEngine.expEarned + 15);
break;
case 6:
GSEngine.exps = (GSEngine.exps + 22);
GSEngine.expEarned = (GSEngine.expEarned + 22);
break;
case 7:
GSEngine.exps = (GSEngine.exps + 23);
GSEngine.expEarned = (GSEngine.expEarned + 23);
break;
case 8:
GSEngine.exps = (GSEngine.exps + 24);
GSEngine.expEarned = (GSEngine.expEarned + 24);
break;
case 9:
GSEngine.exps = (GSEngine.exps + 26);
GSEngine.expEarned = (GSEngine.expEarned + 26);
break;
case 10:
GSEngine.exps = (GSEngine.exps + 30);
GSEngine.expEarned = (GSEngine.expEarned + 30);
break;
case 11:
GSEngine.exps = (GSEngine.exps + 35);
GSEngine.expEarned = (GSEngine.expEarned + 35);
break;
case 12:
GSEngine.exps = (GSEngine.exps + 36);
GSEngine.expEarned = (GSEngine.expEarned + 36);
break;
case 13:
GSEngine.exps = (GSEngine.exps + 37);
GSEngine.expEarned = (GSEngine.expEarned + 37);
break;
case 14:
GSEngine.exps = (GSEngine.exps + 40);
GSEngine.expEarned = (GSEngine.expEarned + 40);
break;
case 15:
GSEngine.exps = (GSEngine.exps + 41);
GSEngine.expEarned = (GSEngine.expEarned + 41);
break;
case 16:
GSEngine.exps = (GSEngine.exps + 44);
GSEngine.expEarned = (GSEngine.expEarned + 44);
break;
case 17:
GSEngine.exps = (GSEngine.exps + 45);
GSEngine.expEarned = (GSEngine.expEarned + 45);
break;
case 18:
GSEngine.exps = (GSEngine.exps + 46);
GSEngine.expEarned = (GSEngine.expEarned + 46);
break;
case 19:
GSEngine.exps = (GSEngine.exps + 46);
GSEngine.expEarned = (GSEngine.expEarned + 46);
break;
case 20:
GSEngine.exps = (GSEngine.exps + 46);
GSEngine.expEarned = (GSEngine.expEarned + 46);
break;
case 21:
GSEngine.exps = (GSEngine.exps + 46);
GSEngine.expEarned = (GSEngine.expEarned + 46);
break;
case 22:
GSEngine.exps = (GSEngine.exps + 47);
GSEngine.expEarned = (GSEngine.expEarned + 47);
break;
case 23:
GSEngine.exps = (GSEngine.exps + 50);
GSEngine.expEarned = (GSEngine.expEarned + 50);
break;
case 24:
GSEngine.exps = (GSEngine.exps + 50);
GSEngine.expEarned = (GSEngine.expEarned + 50);
break;
case 25:
GSEngine.exps = (GSEngine.exps + 50);
GSEngine.expEarned = (GSEngine.expEarned + 50);
break;
case 26:
GSEngine.exps = (GSEngine.exps + 52);
GSEngine.expEarned = (GSEngine.expEarned + 52);
break;
case 27:
GSEngine.exps = (GSEngine.exps + 54);
GSEngine.expEarned = (GSEngine.expEarned + 54);
break;
case 28:
GSEngine.exps = (GSEngine.exps + 55);
GSEngine.expEarned = (GSEngine.expEarned + 55);
break;
case 29:
GSEngine.exps = (GSEngine.exps + 55);
GSEngine.expEarned = (GSEngine.expEarned + 55);
break;
case 30:
GSEngine.exps = (GSEngine.exps + 56);
GSEngine.expEarned = (GSEngine.expEarned + 56);
break;
case 31:
GSEngine.exps = (GSEngine.exps + 60);
GSEngine.expEarned = (GSEngine.expEarned + 60);
break;
case 32:
GSEngine.exps = (GSEngine.exps + 61);
GSEngine.expEarned = (GSEngine.expEarned + 61);
break;
case 33:
GSEngine.exps = (GSEngine.exps + 65);
GSEngine.expEarned = (GSEngine.expEarned + 65);
break;
case 34:
GSEngine.exps = (GSEngine.exps + 68);
GSEngine.expEarned = (GSEngine.expEarned + 68);
break;
case 35:
GSEngine.exps = (GSEngine.exps + 70);
GSEngine.expEarned = (GSEngine.expEarned + 70);
break;
case 36:
GSEngine.exps = (GSEngine.exps + 71);
GSEngine.expEarned = (GSEngine.expEarned + 71);
break;
case 37:
GSEngine.exps = (GSEngine.exps + 71);
GSEngine.expEarned = (GSEngine.expEarned + 71);
break;
case 38:
GSEngine.exps = (GSEngine.exps + 71);
GSEngine.expEarned = (GSEngine.expEarned + 71);
break;
case 39:
GSEngine.exps = (GSEngine.exps + 71);
GSEngine.expEarned = (GSEngine.expEarned + 71);
break;
case 40:
GSEngine.exps = (GSEngine.exps + 72);
GSEngine.expEarned = (GSEngine.expEarned + 72);
break;
case 41:
GSEngine.exps = (GSEngine.exps + 75);
GSEngine.expEarned = (GSEngine.expEarned + 75);
break;
case 42:
GSEngine.exps = (GSEngine.exps + 75);
GSEngine.expEarned = (GSEngine.expEarned + 75);
break;
case 43:
GSEngine.exps = (GSEngine.exps + 78);
GSEngine.expEarned = (GSEngine.expEarned + 78);
break;
case 44:
GSEngine.exps = (GSEngine.exps + 80);
GSEngine.expEarned = (GSEngine.expEarned + 80);
break;
case 45:
GSEngine.exps = (GSEngine.exps + 80);
GSEngine.expEarned = (GSEngine.expEarned + 80);
break;
case 46:
GSEngine.exps = (GSEngine.exps + 86);
GSEngine.expEarned = (GSEngine.expEarned + 86);
break;
case 47:
GSEngine.exps = (GSEngine.exps + 86);
GSEngine.expEarned = (GSEngine.expEarned + 86);
break;
case 48:
GSEngine.exps = (GSEngine.exps + 86);
GSEngine.expEarned = (GSEngine.expEarned + 86);
break;
case 49:
GSEngine.exps = (GSEngine.exps + 90);
GSEngine.expEarned = (GSEngine.expEarned + 90);
break;
case 50:
GSEngine.exps = (GSEngine.exps + 90);
GSEngine.expEarned = (GSEngine.expEarned + 90);
break;
};
}
public function getHit(_arg1){
var _local2:Sound;
if (GSEngine.sound == true){
_local2 = new kenaHit();
_local2.play();
};
health = (health - _arg1);
if (this != null){
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
tintTimer = 1;
};
}
}
}//package
Section 148
//EnemyBullet (EnemyBullet)
package {
import flash.display.*;
public dynamic class EnemyBullet extends MovieClip {
}
}//package
Section 149
//energyShield (energyShield)
package {
import flash.media.*;
public dynamic class energyShield extends Sound {
}
}//package
Section 150
//EscapePod (EscapePod)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.media.*;
public class EscapePod extends MovieClip {
public var indi:MovieClip;
public var kecil:MovieClip;
public var royal:MovieClip;
public var capturerParam:MovieClip;
public var besar:EscapePodBesar;
public var eParam:MovieClip;
var globalHi:int;// = 1
var globalMulS:int;// = 1
var globalMulH:int;// = 1
var speed:Number;
var stopTimer:int;// = 0
var velocity:Number;
var capturerHp:int;
var captured:Boolean;
public var healthPoint:Number;
public var tagging:Boolean;// = false
private var angle:Number;
private var angle1:Number;
private var angle2:Number;
private var ySpeed:Number;
private var xSpeed:Number;
private var ySpeed1:Number;
private var xSpeed1:Number;
private var ySpeed2:Number;
private var xSpeed2:Number;
private var ranPosX:int;
private var ranPosY:int;
public var size:String;
public var sizes:String;
var thisTintColour:Color;
var thisTintColour2:Color;
private var tintTimer:int;
private var tintTimer2:int;
static var ePodArray:Array = new Array();
public function EscapePod(_arg1){
thisTintColour = new Color();
thisTintColour2 = new Color();
super();
indi.visible = false;
eParam.visible = false;
capturerParam.visible = false;
this.besar.visible = false;
this.kecil.visible = false;
this.kecil.protectAuraz.visible = false;
this.royal.visible = false;
this.royal.protectAuraz.visible = false;
speed = 2;
velocity = 2;
addEventListener(Event.ENTER_FRAME, eFrame);
addEventListener(Event.ADDED_TO_STAGE, initEPod);
ranPosY = (Math.round((Math.random() * 50)) - 25);
ranPosX = Math.round((Math.random() * 100));
}
function initEPod(_arg1:Event):void{
sizes = size;
if (size == "besar"){
GSEngine.ePodBesarArray.push(this);
healthPoint = 100;
this.besar.visible = true;
this.kecil.visible = false;
this.royal.visible = false;
};
if (size == "kecil"){
GSEngine.ePodArray.push(this);
if ((((((GSEngine.stageLevel == 8)) || ((GSEngine.stageLevel == 9)))) || ((GSEngine.stageLevel == 10)))){
healthPoint = 25;
};
if (((((!((GSEngine.stageLevel == 8))) && (!((GSEngine.stageLevel == 9))))) && (!((GSEngine.stageLevel == 10))))){
healthPoint = 15;
};
this.kecil.visible = true;
this.besar.visible = false;
this.royal.visible = false;
};
if (size == "royal"){
GSEngine.ePodArray.push(this);
healthPoint = 15;
this.kecil.visible = false;
this.besar.visible = false;
this.royal.visible = true;
captured = true;
if (GSEngine.stageLevel == 1){
capturerHp = 150;
globalHi = 1;
};
if (GSEngine.stageLevel == 2){
capturerHp = 200;
globalHi = 1;
};
if (GSEngine.stageLevel == 3){
capturerHp = 300;
globalHi = 1.5;
};
if (GSEngine.stageLevel == 4){
capturerHp = 400;
globalHi = 1.5;
};
if (GSEngine.stageLevel == 5){
capturerHp = 500;
globalHi = 2;
};
if (GSEngine.stageLevel == 6){
capturerHp = 600;
globalHi = 2;
};
if (GSEngine.stageLevel == 7){
capturerHp = 700;
globalHi = 3;
};
if (GSEngine.stageLevel == 8){
capturerHp = 700;
globalHi = 4;
};
if (GSEngine.stageLevel == 9){
capturerHp = 700;
globalHi = 5;
};
if (GSEngine.stageLevel == 10){
capturerHp = 700;
globalHi = 7;
};
};
}
private function eFrame(_arg1:Event):void{
var _local2:MovieClip;
var _local3:Sound;
var _local4:*;
var _local5:*;
var _local6:MovieClip;
var _local7:*;
var _local8:MovieClip;
var _local9:Sound;
var _local10:MovieClip;
var _local11:*;
var _local12:Number;
var _local13:Number;
var _local14:*;
var _local15:Number;
var _local16:Number;
var _local17:*;
var _local18:Number;
var _local19:Number;
var _local20:*;
var _local21:Number;
var _local22:Number;
if ((((((((healthPoint < 1)) && (!((stage == null))))) && (!((this == null))))) && (!((size == "besar"))))){
if (GSEngine.sound == true){
_local3 = new eExplosion();
_local3.play();
};
_local2 = new Effect();
_local2.type = 8;
_local2.x = this.x;
_local2.y = this.y;
stage.addChild(_local2);
removeThis();
};
if (((!((size == "besar"))) && ((captured == false)))){
for (_local4 in GSEngine.eList) {
if (this.eParam.hitTestObject(GSEngine.eList[_local4].periM1)){
takeDamage(5);
};
};
for (_local5 in GSEngine.bList) {
if (this.eParam.hitTestObject(GSEngine.bList[_local5])){
takeDamage(5);
};
};
};
if (GSEngine.phases == "Customize"){
removeThis();
};
this.transform.colorTransform = thisTintColour;
this.royal.capturer.transform.colorTransform = thisTintColour2;
if ((((GSEngine.stageComplete == true)) && ((GSEngine.death == true)))){
removeThis();
};
if (tintTimer <= 0){
thisTintColour.setTint(0, 0);
} else {
if (tintTimer > 0){
tintTimer--;
};
};
if (tintTimer2 <= 0){
thisTintColour2.setTint(0, 0);
} else {
if (tintTimer2 > 0){
tintTimer2--;
};
};
if (size == "royal"){
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Arc Shield")))) && (this.royal.capturer.hitTestObject(GSEngine.player.shield)))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Raging Sun")))) && (!((GSEngine.sunN == null))))){
if (this.royal.capturer.hitTestObject(GSEngine.sunN)){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
};
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Burning Radiation")))) && (this.royal.capturer.hitTestObject(GSEngine.player.burN)))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Blue Ray")))) && (this.royal.capturer.hitTestObject(GSEngine.player.bRay)))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Deflect")))) && (this.royal.capturer.hitTestObject(GSEngine.player.defl)))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Global Warming")))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Gravitation")))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Black Hole")))) && (this.royal.capturer.hitTestObject(GSEngine.player.black)))){
capturerHp = (capturerHp - (2 * GSEngine.stageLevel));
tintCapturer();
};
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
this.royal.protectAuraz.visible = true;
} else {
this.royal.protectAuraz.visible = false;
};
if (((!((this == null))) && (!((GSEngine.player == null))))){
if ((((tagging == false)) && ((captured == false)))){
if (this.eParam.hitTestObject(GSEngine.player.playerPeri)){
tagging = true;
};
};
};
if (((!((this == null))) && (!((GSEngine.ePodBesarArray[0] == null))))){
if (this.eParam.hitTestObject(GSEngine.ePodBesarArray[0].eParam)){
_local6 = new Effect();
_local6.x = this.x;
_local6.y = this.y;
_local6.type = 17;
stage.addChild(_local6);
if (GSEngine.healthPoint > 0){
GSEngine.ePodSaved = (GSEngine.ePodSaved + 1);
GSEngine.podSave = (GSEngine.podSave + 1);
GSEngine.hiScore = (GSEngine.hiScore + Math.round((10 * globalHi)));
};
removeThis();
};
};
};
if (size == "kecil"){
besar.visible = false;
kecil.visible = true;
if ((((GSEngine.njurus == true)) && ((GSEngine.njurusApa == "Protect")))){
this.kecil.protectAuraz.visible = true;
} else {
this.kecil.protectAuraz.visible = false;
};
if (((!((GSEngine.ePodBesarArray == null))) && (!((this == null))))){
for (_local7 in GSEngine.ePodBesarArray) {
if (this.eParam.hitTestObject(GSEngine.ePodBesarArray[_local7].eParam)){
if ((((tutPanel.tutKe == 5)) && ((tutPanel.syarat1 == false)))){
tutPanel.syarat1 = true;
tutPanel.syarat2 = true;
};
_local8 = new Effect();
_local8.x = this.x;
_local8.y = this.y;
_local8.type = 17;
stage.addChild(_local8);
if (GSEngine.healthPoint > 0){
GSEngine.ePodSaved = (GSEngine.ePodSaved + 1);
GSEngine.podSave = (GSEngine.podSave + 1);
GSEngine.hiScore = (GSEngine.hiScore + Math.round((7 * globalHi)));
};
removeThis();
};
};
};
} else {
if (size == "besar"){
besar.visible = true;
kecil.visible = false;
if (this.besar.currentFrame == 85){
if (GSEngine.sound == true){
_local9 = new dashE();
_local9.play();
};
};
};
};
if (GSEngine.isPaused == false){
if (size == "royal"){
if ((((capturerHp < 0)) && ((this.royal.capturer.visible == true)))){
_local10 = new ledakanMusuh2();
_local10.x = (this.x - 40);
_local10.y = this.y;
stage.addChild(_local10);
this.royal.capturer.visible = false;
this.royal.cJet.visible = false;
captured = false;
};
if (tagging == false){
if (this.x < -200){
removeThis();
};
if (captured == true){
if ((((this.x > 400)) && ((stopTimer == 0)))){
this.x = (this.x - speed);
};
if ((((this.x < 420)) && ((stopTimer < 120)))){
stopTimer++;
this.x = (this.x - 0.5);
};
if (this.x > 1000){
removeThis();
};
if (stopTimer >= 120){
this.x = (this.x + 10);
};
};
if (captured == false){
this.x = (this.x - speed);
};
} else {
if (tagging == true){
if ((((GSEngine.docking == true)) && ((captured == false)))){
for (_local11 in GSEngine.ePodArray) {
if ((((GSEngine.ePodArray[_local11] == this)) && (!((GSEngine.ePodBesarArray[0] == null))))){
_local12 = (GSEngine.ePodBesarArray[0].x - this.x);
_local13 = (GSEngine.ePodBesarArray[0].y - this.y);
angle = Math.atan2(_local13, _local12);
ySpeed = (Math.sin(angle) * 5);
xSpeed = (Math.cos(angle) * 5);
this.x = (this.x + xSpeed);
this.y = (this.y + ySpeed);
};
};
} else {
if (GSEngine.docking == false){
for (_local14 in GSEngine.ePodArray) {
if (GSEngine.ePodArray[_local14] == this){
indi.visible = true;
_local15 = ((GSEngine.posX - ranPosX) - this.x);
_local16 = ((GSEngine.posY - ranPosY) - this.y);
angle = Math.atan2(_local16, _local15);
ySpeed = (Math.sin(angle) * (speed * 2));
xSpeed = (Math.cos(angle) * (speed * 2));
this.x = (this.x + xSpeed);
this.y = (this.y + ySpeed);
indi.rotation = ((angle / Math.PI) * 180);
if ((((((((_local21 < 1)) && ((_local21 > -1)))) && ((_local22 < 1)))) && ((_local22 > -1)))){
this.x = (GSEngine.posX - ranPosX);
this.y = (GSEngine.posY - ranPosY);
};
};
};
};
};
};
};
};
if (size == "kecil"){
if (this.x > 750){
removeThis();
};
if (GSEngine.phases == "Summary"){
tagging = false;
};
if (tagging == false){
this.x = (this.x + speed);
} else {
if (tagging == true){
if (GSEngine.docking == true){
for (_local17 in GSEngine.ePodArray) {
if ((((GSEngine.ePodArray[_local17] == this)) && (!((GSEngine.ePodBesarArray[0] == null))))){
_local18 = (GSEngine.ePodBesarArray[0].x - this.x);
_local19 = (GSEngine.ePodBesarArray[0].y - this.y);
angle = Math.atan2(_local19, _local18);
ySpeed = (Math.sin(angle) * 5);
xSpeed = (Math.cos(angle) * 5);
this.x = (this.x + xSpeed);
this.y = (this.y + ySpeed);
};
};
};
if (GSEngine.docking == false){
for (_local20 in GSEngine.ePodArray) {
if (GSEngine.ePodArray[_local20] == this){
indi.visible = true;
_local21 = ((GSEngine.posX - ranPosX) - this.x);
_local22 = ((GSEngine.posY - ranPosY) - this.y);
angle = Math.atan2(_local22, _local21);
ySpeed = (Math.sin(angle) * (speed * 2));
xSpeed = (Math.cos(angle) * (speed * 2));
this.x = (this.x + xSpeed);
this.y = (this.y + ySpeed);
indi.rotation = ((angle / Math.PI) * 180);
if ((((((((_local21 < 1)) && ((_local21 > -1)))) && ((_local22 < 1)))) && ((_local22 > -1)))){
this.x = (GSEngine.posX - ranPosX);
this.y = (GSEngine.posY - ranPosY);
};
};
};
};
};
};
} else {
if (size == "besar"){
if (this != null){
if (this.x > 450){
this.x = (this.x - speed);
} else {
if ((((this.x <= 450)) && ((GSEngine.docking == false)))){
this.besar.play();
GSEngine.docking = true;
};
};
if ((((GSEngine.ePodArray.length == 0)) && ((GSEngine.docking == true)))){
this.besar.play();
};
if (this.besar.currentFrame == this.besar.totalFrames){
deleteReset();
GSEngine.ePodBesarArray = [];
GSEngine.docking = false;
};
};
};
};
};
}
public function takeDamage(_arg1){
healthPoint = (healthPoint - _arg1);
thisTintColour.setTint(4294901760, 0.75);
this.transform.colorTransform = thisTintColour;
tintTimer = 1;
}
function tintCapturer(){
thisTintColour2.setTint(4294901760, 0.75);
this.royal.capturer.transform.colorTransform = thisTintColour2;
tintTimer2 = 1;
}
public function removeThis(){
var _local1:*;
var _local2:*;
if ((((size == "kecil")) || ((size == "royal")))){
for (_local1 in GSEngine.ePodArray) {
if (((((!((GSEngine.ePodArray[_local1] == null))) && ((GSEngine.ePodArray[_local1] == this)))) && (!((this == null))))){
GSEngine.ePodArray.splice(_local1, 1);
GSEngine.ePodLeft = (GSEngine.ePodLeft - 1);
deleteReset();
};
};
} else {
if (size == "besar"){
for (_local2 in GSEngine.ePodBesarArray) {
if (((((!((GSEngine.ePodBesarArray[_local2] == null))) && ((GSEngine.ePodBesarArray[_local2] == this)))) && (!((this == null))))){
deleteReset();
GSEngine.ePodBesarArray.splice(_local2, 1);
};
};
};
};
}
public function deleteReset(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
removeEventListener(Event.ADDED_TO_STAGE, initEPod);
};
}
}
}//package
Section 151
//EscapePodBesar (EscapePodBesar)
package {
import flash.display.*;
public dynamic class EscapePodBesar extends MovieClip {
public function EscapePodBesar(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package
Section 152
//eventConversation (eventConversation)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
public class eventConversation extends MovieClip {
public var avatarPlayer:MovieClip;
public var dialog:TextField;
public var notif:MovieClip;
public var tutSpc:MovieClip;
public var tutSC:MovieClip;
public var tutPod1:MovieClip;
public var tutPod2:MovieClip;
public var namaAvatar:TextField;
private var _root:MovieClip;
var readingTimer:int;// = 0
var timer:int;// = 0
var p1Point:Point;
var p2Point:Point;
var convFinish:Boolean;// = false
var tutor:MovieClip;
static var dialogKe:int = 1;
static var lagiJalan:Boolean = true;
public function eventConversation(){
addFrameScript(8, frame9, 16, frame17);
_root = MovieClip(root);
this.mouseEnabled = false;
namaAvatar.mouseEnabled = false;
dialog.mouseEnabled = false;
addEventListener(Event.ENTER_FRAME, eFrame);
tutSC.visible = false;
tutSpc.visible = false;
tutPod1.visible = false;
tutPod2.visible = false;
}
public function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
public function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
trace(dialogKe);
if (((!((this == null))) && (!((this.parent == null))))){
if ((((((GSEngine.phases == "Summary")) || ((GSEngine.phases == "Costumize")))) || ((GSEngine.phases == "lanjut")))){
this.parent.removeChild(this);
};
if (GSEngine.ePodArray != null){
for (_local2 in GSEngine.ePodArray) {
if (((!((GSEngine.ePodArray[_local2] == null))) && ((GSEngine.ePodArray[_local2].size == "kecil")))){
p1Point = globalToLocal(new Point(GSEngine.ePodArray[_local2].x, GSEngine.ePodArray[_local2].y));
tutPod1.x = (p1Point.x - 75);
tutPod1.y = (p1Point.y - 34);
};
};
};
if (GSEngine.ePodBesarArray != null){
for (_local3 in GSEngine.ePodBesarArray) {
if (GSEngine.ePodBesarArray[_local3] != null){
p2Point = globalToLocal(new Point(GSEngine.ePodBesarArray[_local3].x, GSEngine.ePodBesarArray[_local3].y));
tutPod2.x = (p2Point.x - 120);
tutPod2.y = (p2Point.y - 70);
};
};
};
};
if (((((((((!((this == null))) && (!((stage == null))))) && (!((namaAvatar == null))))) && (!((avatarPlayer == null))))) && (!((dialog == null))))){
if (((((!((convFinish == true))) && (!((GSEngine.phases == "Summary"))))) && ((GSEngine.eventss == true)))){
stage.addChild(this);
};
if ((((((GSEngine.eventss == false)) && (!((this == null))))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
if (timer < readingTimer){
timer = (timer + 1);
} else {
if (timer == readingTimer){
play();
timer = 0;
};
};
if (GSEngine.stageLevel == 1){
if (dialogKe == 1){
readingTimer = 20;
this.visible = false;
namaAvatar.text = "";
avatarPlayer.gotoAndStop("blank");
dialog.text = "";
GSEngine.stage1 = true;
};
if (dialogKe == 2){
this.visible = true;
readingTimer = 90;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "Alright, boys!!! This is not a drill!! Get your asses on the ship and prepare for the worst.";
};
if (dialogKe == 3){
readingTimer = 40;
namaAvatar.text = "Faren";
avatarPlayer.gotoAndStop("Faren");
dialog.text = "Yes Sir!";
};
if (dialogKe == 4){
readingTimer = 80;
namaAvatar.text = "Yura";
avatarPlayer.gotoAndStop("Yura");
dialog.text = "Captain! Sir, they're hitting us all over the planet. We're finished!";
};
if (dialogKe == 5){
readingTimer = 100;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "There is only one thing to do! We must escort all of the survivors to the Portal of Far' Lounga.";
};
if (dialogKe == 6){
readingTimer = 110;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "We must ensure the safety of the royal family. So save as many escape pods as you can.";
};
if (dialogKe == 7){
readingTimer = 80;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "WE'RE LEAVING THIS PLANET NOW!";
};
if (dialogKe == 8){
readingTimer = 40;
namaAvatar.text = "Faren";
avatarPlayer.gotoAndStop("Faren");
dialog.text = ".........";
};
if (dialogKe == 9){
readingTimer = 80;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "Looks like you need a quick brief, pilot?";
notif.visible = false;
};
if (dialogKe == 10){
readingTimer = 60;
namaAvatar.text = "Faren";
avatarPlayer.gotoAndStop("Faren");
dialog.text = "Who? Me?";
notif.visible = false;
};
if (dialogKe == 11){
readingTimer = 90;
namaAvatar.text = "Captain Extrion";
avatarPlayer.gotoAndStop("Captain Extrion");
dialog.text = "You will get your brief from Miss Deleira. She'll make sure you that you're up to speed.";
notif.visible = false;
};
if (dialogKe == 12){
readingTimer = 70;
namaAvatar.text = "Deleira";
avatarPlayer.gotoAndStop("Deleira");
dialog.text = "Let's go over things quickly, Faren.";
notif.visible = false;
};
if (dialogKe == 13){
if (tutor == null){
tutor = new tutPanel();
};
tutor.y = 285;
stage.addChild(tutor);
this.visible = false;
};
};
};
if (tutPanel.tutKe == 6){
GSEngine.ePodBesarTimer = 0;
GSEngine.ePodTimer = 0;
if (tutor != null){
tutor.removeThis();
};
lagiJalan = false;
convFinish = true;
if (((!((this == null))) && (!((this.parent == null))))){
dialogKe = 1;
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
};
};
}
function frame9(){
stop();
}
function frame17(){
dialogKe = (dialogKe + 1);
}
}
}//package
Section 153
//expBar (expBar)
package {
import flash.display.*;
public dynamic class expBar extends MovieClip {
}
}//package
Section 154
//fadeOut (fadeOut)
package {
import flash.display.*;
import flash.events.*;
public dynamic class fadeOut extends MovieClip {
public function fadeOut(){
addFrameScript(0, frame1);
}
public function eFrame(_arg1:Event){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.addChild(this);
if (this.currentFrame == this.totalFrames){
removeEventListener(Event.ENTER_FRAME, eFrame);
};
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
}
}//package
Section 155
//foreGround (foreGround)
package {
import flash.display.*;
import flash.events.*;
public class foreGround extends MovieClip {
var speed:Number;
public function foreGround(){
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
speed = 66;
}
private function beginClass(_arg1:Event):void{
}
private function eFrame(_arg1:Event):void{
if (GSEngine.isPaused == false){
this.x = (this.x - speed);
if (this.x < -900){
removeThis();
};
if ((((GSEngine.phases == "Customize")) || ((GSEngine.phases == "Main")))){
removeThis();
};
if (GSEngine.shakeTimer > 0){
this.x = (this.x + (Math.round((Math.random() * 2)) - 1));
this.y = (this.y + (Math.round((Math.random() * 2)) - 1));
};
if (GSEngine.shakeTimer == 0){
this.y = 0;
};
};
}
function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
};
}
}
}//package
Section 156
//GSEngine (GSEngine)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
public class GSEngine extends MovieClip {
public var preload:MovieClip;
public var abs_url:String;
public var agi;
public var agiURL:String;
public var loader2:Loader;
public var abs;
public var urlRequest:URLRequest;
public var loader:Loader;
var a1Int:int;// = 1
var a2Int:int;// = 1
var a3Int:int;// = 1
var a4Int:int;// = 1
var a5Int:int;// = 1
var a6Int:int;// = 1
var a7Int:int;// = 1
var jumArmor:int;// = 7
var a1:Boolean;// = false
var a2:Boolean;// = false
var a3:Boolean;// = false
var a4:Boolean;// = false
var a5:Boolean;// = false
var a6:Boolean;// = false
var a7:Boolean;// = false
var aFull:Boolean;// = true
var totalArmorHP:int;
var outside:Boolean;// = false
var lagu:Boolean;// = false
var royalPodChange:int;
var podRate:int;
var asteroidTimer:int;// = 0
var eC:MovieClip;
var opScene:MovieClip;
var scene:MovieClip;
var paus:MovieClip;
public var eDelay:int;
public var eCode:Number;
public var currentWave:int;// = 1
public var currentEnemy:int;// = 0
public var movingTarget:MovieClip;
public var movingTarget2:MovieClip;
public var mtDirection:int;// = 1
public var mtDirection2:int;// = 1
public var testTimer:Number;// = 0
public var initTimer:Number;// = 0
public var eTimer:int;// = 0
public var eTimer2:int;// = 0
var fGTimer1:Number;// = 0
var fGTimer2:Number;// = 0
var fGSTimer:Number;// = 0
var ePodBesar:int;// = 0
var coolDownTimer:Number;// = 0
var score:int;// = 0
public var arrayUsed:int;
public var arrayUsed2:int;
public var arrayUsed3:int;
public var enemyArray:Array;
public var enemyArray2:Array;
public var enemyArray3:Array;
public var enemyArray4:Array;
public var enemyArray5:Array;
public var enemyArray6:Array;
public var enemyArray7:Array;
public var enemyArray8:Array;
public var enemyArray9:Array;
public var enemyArray10:Array;
var bGsound:Sound;
var overButton:Sound;
var confirmButton:Sound;
var onStage:Sound;
var AMfx:Sound;
var rumbleFx:Sound;
var charger:Sound;
var ex1:Sound;
var energy:Sound;
var coll:Sound;
var opEvt:MovieClip;
var skill1:String;
var skill2:String;
var warning:MovieClip;
var url:String;
static var exits:Boolean = false;
static var boss1Killed:Boolean = false;
static var boss2Killed:Boolean = false;
static var boss3Killed:Boolean = false;
static var boss4Killed:Boolean = false;
static var boss5Killed:Boolean = false;
static var boss6Killed:Boolean = false;
static var boss7Killed:Boolean = false;
static var boss8Killed:Boolean = false;
static var boss9Killed:Boolean = false;
static var boss10Killed:Boolean = false;
static var itemTimer1:int = 0;
static var itemTimer2:int = 0;
static var itemTimer3:int = 0;
static var itemTimer4:int = 0;
public static var diWeb:Boolean = true;
static var hiScore:Number;
static var qualities:String = "MEDIUM";
public static var preloadSelesai:Boolean = false;
static var sunN:MovieClip;
static var shakeTimer:int = 0;
static var stage2Obj1:Boolean = false;
static var stage3Obj1:Boolean = false;
static var stage3Obj2:Boolean = false;
static var stage4Obj1:Boolean = false;
static var stage5Obj1:Boolean = false;
static var stage5Obj2:Boolean = false;
static var stage6Obj1:Boolean = false;
static var stage7Obj1:Boolean = false;
static var stage7Obj2:Boolean = false;
static var stage8Obj1:Boolean = false;
static var stage8Obj2:Boolean = false;
static var stage9Obj1:Boolean = false;
static var stage10Obj1:Boolean = false;
static var asteroidArray:Array = new Array();
static var lastStagePodS:int = 0;
static var mySharedObject:SharedObject = SharedObject.getLocal("GuardianStar");
static var save2an:int = 0;
static var armorType:Number;
static var weaponType:Number = 1;
static var currentRank:String = "ZURIA'S SOLDIER";
static var exps:int = 0;
static var podSave:int;
static var lockedDown:Boolean = false;
static var weapon1fireRate:int;
static var weapon2fireRate:int;
static var weapon3fireRate:int;
static var weapon4fireRate:int;
static var weapon5fireRate:int;
static var weapon6fireRate:int;
static var weapon1Level:int;
static var weapon2Level:int;
static var weapon3Level:int;
static var weapon4Level:int;
static var weapon5Level:int;
static var weapon6Level:int;
static var stageFinished:Number;
static var stageLevel:Number;
static var stageComplete:Boolean = true;
static var hpLevel:int;
static var mpLevel:int;
static var agiLevel:int;
static var critLevel:int;
static var spark:int = 0;
static var ore:int = 0;
static var scrapMetal:int = 0;
static var starDust:int = 0;
static var crystal:int = 0;
static var meteorPiece:int = 0;
static var flyingStone:int = 0;
static var remethin:int = 0;
static var fiberConnection:int = 0;
static var ionizedFluid:int = 0;
static var manaStone:int = 0;
static var battery:int = 0;
static var luminaFruit:int = 0;
static var azuriaCarbon:int = 0;
static var blackCrumb:int = 0;
static var sparkFuse:int = 0;
static var lightWeb:int = 0;
static var guardianStarMedal:int = 0;
static var royalRing:int = 0;
static var hearthOfKhaleonia:int = 0;
static var antimater:int = 0;
static var redEnergy:int = 0;
static var blueEnergy:int = 0;
static var yellowEnergy:int = 0;
static var bitModule:int = 0;
static var criticalChipset:int = 0;
static var linker:int = 0;
static var dragonScale:int = 1;
static var sparkLimiter:int = 0;
static var pertamaxFuel:int = 0;
static var atomDecompiler:int = 1;
static var a1S1:Boolean = true;
static var a1S2:Boolean = true;
static var a2S1:Boolean = true;
static var a2S2:Boolean = true;
static var a3S1:Boolean = true;
static var a3S2:Boolean = true;
static var a4S1:Boolean = true;
static var a4S2:Boolean = true;
static var a5S1:Boolean = true;
static var a5S2:Boolean = true;
static var a6S1:Boolean = true;
static var a6S2:Boolean = true;
static var enemiesKilled:int = 0;
static var bossKilled:int = 0;
static var armorArray:Array = new Array();
static var weaponArray:Array = new Array();
static var shortCut1:String;
static var shortCut2:String;
static var shortCut3:String;
static var shortCut4:String;
static var shortCut5:String;
static var weaponSell1:Boolean = true;
static var weaponSell2:Boolean = false;
static var weaponSell3:Boolean = false;
static var weaponSell4:Boolean = false;
static var weaponSell5:Boolean = false;
static var weaponSell6:Boolean = false;
static var stage1:Boolean;
static var stage2:Boolean;
static var stage3:Boolean;
static var stage4:Boolean;
static var stage5:Boolean;
static var stage6:Boolean;
static var stage7:Boolean;
static var stage8:Boolean;
static var stage9:Boolean;
static var stage10:Boolean;
static var secretStage1:Boolean;
static var secretStage2:Boolean;
static var secretStage3:Boolean;
static var secretStage4:Boolean;
static var secretStage5:Boolean;
static var secretStage6:Boolean;
static var dodgeRate:Number = 5;
static var sound:Boolean = true;
static var eventss:Boolean = false;
static var thisTintColour:Color = new Color();
static var tintTimer:int;
public static var wM:MovieClip;
public static var pT:MovieClip;
public static var mG:MovieClip;
public static var mM:MovieClip;
static var mousePosArray:Array = new Array();
static var mousePos:Point;
static var arrayKE:int;
static var panel:MovieClip;
static var maxHp:int;
static var maxMp:Number;
static var agility:int;
static var criticalRate:Number;
static var posX:Number;
static var posY:Number;
static var tarX:Number;
static var tarY:Number;
static var isPaused:Boolean = false;
public static var player:MovieClip;
static var currentBoss:int = 0;
static var criticalChange:int;
static var healthPoint:int;
static var updateHp:int;
static var manaPoint:Number;
static var updateMp:Number;
static var armorSpeed = 7;
static var armor1HP:int;
static var armor2HP:int;
static var armor3HP:int;
static var armor4HP:int;
static var armor5HP:int;
static var armor6HP:int;
static var armor7HP:int;
static var armor1HPMax:int;
static var armor2HPMax:int;
static var armor3HPMax:int;
static var armor4HPMax:int;
static var armor5HPMax:int;
static var armor6HPMax:int;
static var armor7HPMax:int;
static var armorAttack:int;
static var totalArmor:int;
static var curArmor:int;
static var armorRegen:int;
static var mpRegen:int;
static var fireRate:int;
static var expNeed:int;
static var armorText:TextField;
static var armor1HPText:TextField;
static var armor2HPText:TextField;
static var armor3HPText:TextField;
static var armor4HPText:TextField;
static var armor5HPText:TextField;
static var armor6HPText:TextField;
static var armor7HPText:TextField;
static var death:Boolean = true;
static var finishedStage:Boolean = false;
static var armor1:MovieClip;
static var armor2:MovieClip;
static var armor3:MovieClip;
static var armor4:MovieClip;
static var armor5:MovieClip;
static var armor6:MovieClip;
static var armor7:MovieClip;
static var royalTimer:Number = 0;
static var ePodTimer:Number = 0;
static var ePodBesarTimer:Number = 0;
static var ePodLeft:Number = 0;
static var bgSpeed:Number;
static var eBesarTime:Number;
static var assaultMode:Boolean = false;
static var overideMode:Boolean = false;
static var shieldAttached:Boolean = true;
static var attachShield:Boolean = false;
static var shieldFix:Boolean = false;
static var autoShoot:Boolean = true;
static var docking:Boolean = false;
static var initStage:Boolean = false;
static var enemiesLeft:int;
static var miniBossKilled:int;
static var phases:String = "Preloader";
public static var eList:Array = new Array();
public static var bList:Array = new Array();
static var subWeaponArray:Array = new Array();
static var addOnArray:Array = new Array();
static var ePodArray:Array = new Array();
static var ePodBesarArray:Array = new Array();
static var equipedWeapon:int = 1;
static var equipedSubWeapon:int;
static var equipedaddOn:int;
static var equipedArmor:int;
static var soundMenu:Sound;
static var warnS:Sound;
static var collS:int = 0;
static var myChannel:SoundChannel = new SoundChannel();
static var myTransform:SoundTransform = new SoundTransform();
static var subWeapon1Level:int = 1;
static var subWeapon2Level:int = 1;
static var subWeapon3Level:int = 1;
static var subWeapon4Level:int = 1;
static var subWeapon5Level:int = 1;
static var subWeapon6Level:int = 1;
static var wDamage:int = 20;
static var sWDamage:int = 20;
static var wFireRate:int = 5;
static var sWFireRate:int = 5;
static var armor1Level:int;
static var armor2Level:int;
static var armor3Level:int;
static var armor4Level:int;
static var armor5Level:int;
static var armor6Level:int;
static var a1S3:Boolean = false;
static var a2S3:Boolean = false;
static var a3S3:Boolean = false;
static var a4S3:Boolean = false;
static var a4S4:Boolean = false;
static var a5S3:Boolean = false;
static var a5S4:Boolean = false;
static var a6S3:Boolean = false;
static var a6S4:Boolean = false;
static var a1S1CD:int = 0;
static var a1S2CD:int = 0;
static var a1S3CD:int = 0;
static var a2S1CD:int = 0;
static var a2S2CD:int = 0;
static var a2S3CD:int = 0;
static var a3S1CD:int = 0;
static var a3S2CD:int = 0;
static var a3S3CD:int = 0;
static var a4S1CD:int = 0;
static var a4S2CD:int = 0;
static var a4S3CD:int = 0;
static var a4S4CD:int = 0;
static var a5S1CD:int = 0;
static var a5S2CD:int = 0;
static var a5S3CD:int = 0;
static var a5S4CD:int = 0;
static var a6S1CD:int = 0;
static var a6S2CD:int = 0;
static var a6S3CD:int = 0;
static var a6S4CD:int = 0;
static var itemCD:int = 0;
static var buffCD:int = 0;
static var skillCD:int = 0;
static var ngebuff:Boolean = false;
static var njurus:Boolean = false;
static var njurusApa:String;
static var shield:MovieClip;
static var burN:MovieClip;
static var bRay:MovieClip;
static var defl:MovieClip;
static var nova:MovieClip;
static var gWarm:MovieClip;
static var prot:MovieClip;
static var black:MovieClip;
static var grav:MovieClip;
static var critUp:MovieClip;
static var armUp:MovieClip;
static var rateUp:MovieClip;
static var dropUp:MovieClip;
static var plusCrit:int = 0;
static var plusDef:int = 0;
static var plusDrop:int = 1;
static var plusAtk:int = 0;
static var plusRate:int = 0;
static var bBar:MovieClip;
static var ePodSaved:int;
static var expEarned:int;
static var sparkEarned:int;
static var jenisLootArray:Array = new Array();
static var jumlahLootArray:Array = new Array();
public static var percent:uint;
public function GSEngine(){
opScene = new openingScene();
enemyArray = new Array();
enemyArray2 = new Array();
enemyArray3 = new Array();
enemyArray4 = new Array();
enemyArray5 = new Array();
enemyArray6 = new Array();
enemyArray7 = new Array();
enemyArray8 = new Array();
enemyArray9 = new Array();
enemyArray10 = new Array();
overButton = new overButtonS();
url = stage.loaderInfo.url;
super();
addFrameScript(0, frame1, 1, frame2);
stage.quality = qualities;
if ((((((((((((((url.indexOf("http://games.armorgames.com") > -1)) || ((url.indexOf("http://preview.armorgames.com") > -1)))) || ((url.indexOf("http://cache.armorgames.com") > -1)))) || ((url.indexOf("http://cdn.armorgames.com") > -1)))) || ((url.indexOf("http://gamemedia.armorgames.com") > -1)))) || ((url.indexOf("http://files.armorgames.com") > -1)))) || ((url.indexOf("http://*.armorgames.com") > -1)))){
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress);
diWeb = true;
} else {
diWeb = false;
};
myTransform.volume = 0;
myChannel.soundTransform = myTransform;
jumlahLootArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
jenisLootArray = ["none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"];
healthPoint = maxHp;
manaPoint = maxMp;
trace(("save2an" + save2an));
addEventListener(Event.ADDED_TO_STAGE, beginClass);
stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
stage.addEventListener(MouseEvent.MOUSE_DOWN, Pencet);
stage.addEventListener(MouseEvent.MOUSE_UP, noPencet);
armorArray = [1];
weaponArray = [1];
subWeaponArray = [];
addOnArray = [];
fireRate = wFireRate;
enemyArray = [[1, 1, 1], [4, 4, 4], [2, 2, 2], [1, 1, 1, 1, 1, 1, 1], [4, 4, 4, 4, 4, 4, 4], [2, 2, 2, 2, 3, 3], [6, 6, 6, 6, 6, 6], [1, 1, 1, 1, 1, 1, 1], [5, 5, 5, 5, 5, 5, 5], [8, 8, 8, 8, 9, 9, 9, 9], [21, 21, 21, 3, 3, 3, 3, 3], [5, 5, 5, 5, 5, 5, 5, 5, 5], [2, 2, 2, 2, 2, 2, 2, 2], [21, 21, 21, 21], [4, 4, 4, 4, 4, 4, 4, 4, 4], [1, 1, 1, 1, 1, 1, 1, 1], [7, 7, 7, 7, 21, 7, 7, 7, 21, 7, 7], [8, 8, 8, 8, 9, 9, 9, 9], [11, 11, 11, 11, 11, 11, 11], [101]];
enemyArray2 = [[4, 4, 4, 4, 4, 4, 4, 4, 4], [5, 5, 5, 5, 5, 5, 5, 5, 5], [2, 2, 2, 2, 2, 3, 3, 3, 3], [12, 13, 12, 13, 12, 13], [6, 6, 6, 6, 6, 6, 6], [7, 7, 7, 7, 7, 7, 7], [21, 21, 21, 21, 21], [8, 8, 8, 8, 9, 9, 9, 9], [11, 11, 11, 11, 11], [1, 1, 1, 1, 1, 1, 1, 1], [15, 15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [5, 5, 5, 5, 5, 5, 5, 5, 5], [2, 2, 2, 2, 2, 2, 2, 2, 2], [21, 21, 21, 21], [4, 4, 4, 4, 4, 4, 4, 4, 4], [1, 1, 1, 1, 1, 1, 1, 1], [17, 17, 17, 17, 21, 17, 17, 17, 21, 17, 17], [8, 8, 8, 8, 9, 9, 9, 9], [18, 18, 18, 18, 19, 19, 19, 19], [21, 21, 21, 21, 21], [84, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4], [102]];
enemyArray3 = [[14, 14, 14, 14, 14, 14], [15, 15, 15, 15, 15, 15], [20, 20, 21, 21, 20, 20], [24, 24, 24, 24, 24, 24, 24], [25, 25, 25, 25, 25, 25, 25, 25], [27, 27, 27, 27, 27, 27, 27, 27], [6, 6, 6, 6, 6, 6, 6, 6], [11, 11, 11, 11, 11, 11], [28, 28, 28, 28, 6, 6, 6, 6], [32, 32, 32, 32, 32, 32, 43, 43], [25, 25, 25, 4, 4, 4, 4, 4, 4, 4], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [8, 8, 8, 8, 9, 9, 9, 9], [30, 30, 30, 30, 30], [24, 25, 24, 25, 24, 25, 24, 25], [3, 35, 35, 35, 35, 35], [21, 21, 21, 21, 21, 31, 31, 31, 31, 32, 32, 32, 32], [10, 10, 10, 10, 10, 10, 10, 10], [23, 23, 23, 23, 23, 23, 15, 15, 15, 15, 15, 15, 15], [14, 14, 15, 15, 16, 16, 17, 17, 18, 18], [21, 22, 21, 22, 21, 22, 21, 22, 21], [103]];
enemyArray4 = [[20, 20, 20, 20, 20, 20, 20], [14, 14, 14, 15, 15, 15, 15, 15], [35, 35, 35, 35, 35, 35, 35], [30, 30, 30, 30, 30, 30, 30, 30], [36, 36, 32, 32, 36, 36, 32, 32], [5, 5, 5, 5, 5, 23, 23, 23, 23, 23, 5, 5, 5, 5, 5], [5, 40, 5, 40, 5, 40, 5, 40, 5, 40, 5, 40, 40, 40], [25, 25, 25, 24, 24, 24, 27, 27, 27], [43, 43, 43, 40, 40, 40, 43, 40, 40], [21, 22, 21, 22, 21, 22, 21, 22, 21], [28, 29, 28, 29, 28, 29, 28, 29], [8, 8, 8, 8, 8, 9, 9, 9, 9, 9], [12, 12, 5, 5, 5, 12, 12, 12, 5, 5, 12, 12, 5, 5, 12], [17, 17, 17, 17, 17, 17, 17, 26, 26, 26, 26, 26], [34, 35, 34, 35, 34, 35, 34, 35, 34, 35, 34, 35], [38, 38, 38, 38, 38, 38, 38, 38, 38], [104]];
enemyArray5 = [[37, 37, 37, 37, 31, 31, 31, 31, 31, 31], [34, 35, 34, 35, 34, 35, 34, 35, 34, 35], [33, 22, 33, 22, 33, 22, 33, 22], [44, 44, 44, 44, 44, 44, 41, 41, 41, 41], [49, 49, 49, 49, 49, 49, 49, 49], [50, 51, 50, 51, 50, 51, 50, 51, 50], [52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52], [38, 37, 38, 39, 37, 39, 38, 37, 39, 39, 39, 38, 38], [90, 86, 86, 86, 41, 41, 41, 41, 41], [55, 55, 55, 55, 55, 55, 55, 42, 42, 42, 42], [56, 56, 56, 56, 56, 56, 56], [37, 37, 37, 37, 33, 33, 33, 33, 37, 37, 37, 27], [58, 58, 58, 58, 58, 58, 58], [29, 28, 29, 28, 29, 28, 29, 28, 29, 28], [48, 48, 48, 48, 48, 48, 48, 48], [39, 39, 39, 39, 39, 82, 39, 82, 39, 82, 39, 82, 39], [5, 5, 21, 5, 21, 21, 5, 5, 22, 22, 21, 5, 5, 5], [105]];
enemyArray6 = [[50, 50, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45], [52, 52, 52, 52, 52, 52, 52, 52, 52, 52], [51, 51, 51, 51, 51, 51, 51, 51], [84, 84, 84, 46, 47, 48, 46, 47, 48], [49, 49, 49, 49, 49, 49, 49, 42, 42, 42, 42, 42], [50, 51, 50, 51, 50, 51, 50, 51, 50], [52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52], [38, 37, 38, 39, 37, 39, 38, 37, 39, 39, 39, 38, 38], [85, 85, 85, 90, 86, 86, 86, 50, 50, 50, 50, 50], [55, 56, 57, 55, 56, 57, 55, 56, 57, 91], [52, 52, 52, 52, 56, 56, 56, 56, 56, 56], [37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37], [58, 58, 58, 58, 58, 58, 58, 37, 37, 37, 37], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [48, 48, 48, 48, 86, 48, 48, 48, 48], [39, 38, 39, 38, 39, 38, 39, 38, 39, 38, 39, 38, 39, 38, 39, 38, 39, 38], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [47, 47, 47, 47, 47, 47, 47, 47, 47, 47], [106]];
enemyArray7 = [[53, 53, 53, 53, 53, 53, 53, 53], [83, 83, 83, 83, 54, 54, 54, 54, 82, 82, 82], [21, 21, 21, 21, 21, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61], [90, 58, 58, 58, 58, 58, 58, 58, 58], [85, 85, 85, 90, 86, 86, 86, 50, 50, 50, 50], [59, 59, 59, 59, 59, 59, 59, 59, 59], [38, 38, 38, 38, 38, 38, 38, 38, 38, 90, 38, 38, 38, 38, 47, 47, 47, 47, 47], [50, 51, 50, 51, 50, 88, 88, 88, 51, 50, 51, 50], [49, 49, 49, 49, 49, 58, 58, 58, 58, 58, 42, 42], [52, 52, 52, 52, 90, 52, 52, 52, 60, 60, 60, 60], [38, 37, 38, 39, 37, 39, 38, 37, 39, 39, 39, 38, 38], [90, 86, 86, 86, 86, 89, 89, 89], [55, 55, 55, 21, 21, 21, 21, 55, 55], [21, 21, 21, 21, 21, 56, 56, 56, 56, 56], [37, 37, 37, 37, 37, 37, 37, 37], [58, 58, 58, 58, 58, 58, 58, 60, 61, 60, 61, 92], [65, 65, 65, 65, 65, 65, 65, 65, 65, 65], [55, 38, 55, 38, 55, 86, 55, 38, 55, 38], [59, 59, 59, 59, 59, 59, 93, 55, 55, 55, 55], [62, 63, 62, 63, 62, 63, 90, 58, 59, 58, 59, 58, 59], [49, 49, 49, 49, 49, 49, 48, 48, 48, 48, 48], [90, 90, 65, 65, 65, 65, 65, 65, 65], [107]];
enemyArray8 = [[57, 57, 57, 58, 58, 58, 57, 57, 57, 58, 58, 58], [60, 60, 61, 61, 60, 61, 61, 60, 60], [21, 12, 21, 21, 21, 21, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38], [62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [77, 77, 77, 77, 70, 70, 70, 70, 70], [92, 21, 21, 21, 21, 21, 21, 21, 91, 48, 48, 48, 48, 48, 92], [84, 48, 48, 48, 48, 84, 68, 68, 68, 68, 68, 68, 68, 91], [86, 87, 88, 86, 87, 88, 86, 87, 88, 90, 90], [21, 21, 21, 21, 21, 21, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38], [55, 55, 56, 56, 57, 57, 58, 58, 59, 59, 60, 60], [21, 21, 21, 21, 21, 91, 92, 72, 72, 72, 72, 72, 72, 72, 72, 72, 90, 91, 87], [71, 71, 71, 71, 71, 71, 71, 71, 71, 71], [72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72], [59, 59, 59, 86, 86, 86, 59, 59, 59, 86, 86, 86, 59, 59, 59, 86, 86, 86], [38, 38, 38, 38, 38, 38, 38, 73, 73, 73, 73, 73, 90, 91, 92], [65, 65, 65, 65, 65, 66, 66, 66, 66, 65, 65, 65, 65, 66, 66, 66, 66], [90, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 90, 91, 92], [108]];
enemyArray9 = [[69, 70, 69, 70, 69, 70, 91, 92], [71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72], [73, 75, 73, 75, 73, 75, 73, 83, 83, 83], [77, 77, 77, 77, 77, 77, 77, 77, 77], [72, 91, 72, 91, 72, 91, 72, 91, 71], [79, 79, 79, 79, 79, 79, 79, 79, 79, 79], [83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83], [81, 81, 81, 81, 78, 78, 78, 78, 78], [77, 77, 77, 91, 92, 77, 77, 77, 91, 92], [68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 92, 92], [82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82], [74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74], [69, 69, 69, 69, 69, 69, 91, 91, 69, 69, 69, 69, 69, 92, 92], [79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79], [37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37], [68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68], [68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79], [72, 73, 72, 73, 72, 73, 72, 73, 72, 91], [91, 92, 91, 92, 91, 92, 91, 92, 76, 76, 76, 76, 76, 76], [109]];
enemyArray10 = [[90, 91, 77, 77, 77, 90, 91, 77, 77, 77, 90, 91], [89, 89, 89, 89, 88, 88, 88, 88, 87, 87, 87, 86, 86, 86, 86], [85, 84, 85, 84, 85, 84, 85, 84, 85, 84, 85], [81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81], [80, 80, 80, 91, 80, 80, 80, 91, 80, 80, 80], [90, 91, 92, 74, 74, 74, 74, 74, 74, 91, 92], [86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86], [74, 74, 74, 74, 74, 74, 74, 74, 74, 74], [77, 77, 77, 91, 92, 77, 77, 77, 91, 92], [77, 77, 77, 90, 90, 77, 77, 77, 90, 90], [82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82], [74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74], [78, 78, 90, 78, 78, 79, 91, 92, 79, 79, 79, 90, 91, 92], [79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79], [82, 83, 82, 83, 82, 83, 90, 91, 91, 82, 83, 82, 83, 82, 83], [68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68], [88, 89, 75, 75, 75, 75, 88, 89, 88, 75, 75, 75, 75, 89, 88], [85, 91, 85, 91, 85, 91, 85, 91, 85, 91, 85], [91, 92, 91, 92, 91, 92, 91, 92], [75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75], [90, 91, 92, 90, 91, 92, 90, 91, 92, 90, 91, 92], [110]];
}
public function loadComplete(_arg1:Event):void{
if (((((((((((((!((GSEngine.phases == "Opening"))) && (!((GSEngine.phases == "Customize"))))) && (!((GSEngine.phases == "Defeat"))))) && (!((GSEngine.phases == "Summary"))))) && (!((GSEngine.phases == "Main"))))) && (!((GSEngine.phases == "lanjut"))))) && (!((GSEngine.phases == "Action"))))){
abs = _arg1.currentTarget.content;
addChild(abs);
abs.show({x:30, y:20});
};
}
private function progress(_arg1:ProgressEvent):void{
percent = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
if (percent == 100){
addEventListener(Event.ENTER_FRAME, eFramePre);
};
}
function eFramePre(_arg1:Event){
if (preloadSelesai == true){
if ((((((((((((((url.indexOf("http://games.armorgames.com") > -1)) || ((url.indexOf("http://preview.armorgames.com") > -1)))) || ((url.indexOf("http://cache.armorgames.com") > -1)))) || ((url.indexOf("http://cdn.armorgames.com") > -1)))) || ((url.indexOf("http://gamemedia.armorgames.com") > -1)))) || ((url.indexOf("http://files.armorgames.com") > -1)))) || ((url.indexOf("http://*.armorgames.com") > -1)))){
phases = "Main";
gotoAndStop(2);
loadGame();
cekStatus();
checkSkill();
startMenu();
makeSplashScreen();
removeEventListener(Event.ENTER_FRAME, eFramePre);
};
};
}
function makeSplashScreen(){
var _local1:MovieClip = new splashScreen();
stage.addChild(_local1);
}
function saveGame(){
mySharedObject.data.hiScore = hiScore;
mySharedObject.data.stage2Obj1 = stage2Obj1;
mySharedObject.data.stage3Obj1 = stage3Obj1;
mySharedObject.data.stage3Obj2 = stage3Obj2;
mySharedObject.data.stage4Obj1 = stage4Obj1;
mySharedObject.data.stage5Obj1 = stage5Obj1;
mySharedObject.data.stage5Obj2 = stage5Obj2;
mySharedObject.data.stage6Obj1 = stage6Obj1;
mySharedObject.data.stage7Obj1 = stage7Obj1;
mySharedObject.data.stage7Obj2 = stage7Obj2;
mySharedObject.data.stage8Obj1 = stage8Obj1;
mySharedObject.data.stage8Obj2 = stage8Obj2;
mySharedObject.data.stage9Obj1 = stage9Obj1;
mySharedObject.data.stage10Obj1 = stage10Obj1;
mySharedObject.data.lastStagePodS = lastStagePodS;
mySharedObject.data.armorType = armorType;
mySharedObject.data.weaponType = weaponType;
mySharedObject.data.currentRank = currentRank;
mySharedObject.data.exps = exps;
mySharedObject.data.podSave = podSave;
mySharedObject.data.hpLevel = hpLevel;
mySharedObject.data.mpLevel = mpLevel;
mySharedObject.data.agiLevel = agiLevel;
mySharedObject.data.critLevel = critLevel;
mySharedObject.data.hpLevel = hpLevel;
mySharedObject.data.mpLevel = mpLevel;
mySharedObject.data.agiLevel = agiLevel;
mySharedObject.data.critLevel = critLevel;
mySharedObject.data.armorArray = armorArray;
mySharedObject.data.weapon1fireRate = weapon1fireRate;
mySharedObject.data.weapon2fireRate = weapon2fireRate;
mySharedObject.data.weapon3fireRate = weapon3fireRate;
mySharedObject.data.weapon4fireRate = weapon4fireRate;
mySharedObject.data.weapon5fireRate = weapon5fireRate;
mySharedObject.data.weapon6fireRate = weapon6fireRate;
mySharedObject.data.weapon1Level = weapon1Level;
mySharedObject.data.weapon2Level = weapon2Level;
mySharedObject.data.weapon3Level = weapon3Level;
mySharedObject.data.weapon4Level = weapon4Level;
mySharedObject.data.weapon5Level = weapon5Level;
mySharedObject.data.weapon6Level = weapon6Level;
mySharedObject.data.stageFinished = stageFinished;
mySharedObject.data.stageLevel = stageLevel;
mySharedObject.data.spark = spark;
mySharedObject.data.ore = ore;
mySharedObject.data.scrapMetal = scrapMetal;
mySharedObject.data.starDust = starDust;
mySharedObject.data.crystal = crystal;
mySharedObject.data.meteorPiece = meteorPiece;
mySharedObject.data.flyingStone = flyingStone;
mySharedObject.data.remethin = remethin;
mySharedObject.data.fiberConnection = fiberConnection;
mySharedObject.data.ionizedFluid = ionizedFluid;
mySharedObject.data.manaStone = manaStone;
mySharedObject.data.battery = battery;
mySharedObject.data.luminaFruit = luminaFruit;
mySharedObject.data.azuriaCarbon = azuriaCarbon;
mySharedObject.data.blackCrumb = blackCrumb;
mySharedObject.data.sparkFuse = sparkFuse;
mySharedObject.data.lightWeb = lightWeb;
mySharedObject.data.guardianStarMedal = guardianStarMedal;
mySharedObject.data.royalRing = royalRing;
mySharedObject.data.hearthOfKhaleonia = hearthOfKhaleonia;
mySharedObject.data.antimater = antimater;
mySharedObject.data.redEnergy = redEnergy;
mySharedObject.data.blueEnergy = blueEnergy;
mySharedObject.data.yellowEnergy = yellowEnergy;
mySharedObject.data.bitModule = bitModule;
mySharedObject.data.criticalChipset = criticalChipset;
mySharedObject.data.linker = linker;
mySharedObject.data.dragonScale = dragonScale;
mySharedObject.data.sparkLimiter = sparkLimiter;
mySharedObject.data.pertamaxFuel = pertamaxFuel;
mySharedObject.data.atomDecompiler = atomDecompiler;
mySharedObject.data.a1S1 = a1S1;
mySharedObject.data.a1S2 = a1S2;
mySharedObject.data.a2S1 = a2S1;
mySharedObject.data.a2S2 = a2S2;
mySharedObject.data.a3S1 = a3S1;
mySharedObject.data.a3S2 = a3S2;
mySharedObject.data.a4S1 = a4S1;
mySharedObject.data.a4S2 = a4S2;
mySharedObject.data.a5S1 = a5S1;
mySharedObject.data.a5S2 = a5S2;
mySharedObject.data.a6S1 = a6S1;
mySharedObject.data.a6S2 = a6S2;
mySharedObject.data.enemiesKilled = enemiesKilled;
mySharedObject.data.bossKilled = bossKilled;
mySharedObject.data.weaponArray = weaponArray;
mySharedObject.data.shortCut1 = shortCut1;
mySharedObject.data.shortCut2 = shortCut2;
mySharedObject.data.shortCut3 = shortCut3;
mySharedObject.data.shortCut4 = shortCut4;
mySharedObject.data.shortCut5 = shortCut5;
mySharedObject.data.weaponSell1 = weaponSell1;
mySharedObject.data.weaponSell2 = weaponSell2;
mySharedObject.data.weaponSell3 = weaponSell3;
mySharedObject.data.weaponSell4 = weaponSell4;
mySharedObject.data.weaponSell5 = weaponSell5;
mySharedObject.data.weaponSell6 = weaponSell6;
mySharedObject.data.stage1 = stage1;
mySharedObject.data.stage2 = stage2;
mySharedObject.data.stage3 = stage3;
mySharedObject.data.stage4 = stage4;
mySharedObject.data.stage5 = stage5;
mySharedObject.data.stage6 = stage6;
mySharedObject.data.stage7 = stage7;
mySharedObject.data.stage8 = stage8;
mySharedObject.data.stage9 = stage9;
mySharedObject.data.stage10 = stage10;
mySharedObject.data.secretStage1 = secretStage1;
mySharedObject.data.secretStage2 = secretStage2;
mySharedObject.data.secretStage3 = secretStage3;
mySharedObject.data.secretStage4 = secretStage4;
mySharedObject.data.secretStage5 = secretStage5;
mySharedObject.data.secretStage6 = secretStage6;
mySharedObject.data.dodgeRate = dodgeRate;
mySharedObject.data.save2an = 1;
mySharedObject.flush();
}
function loadGame(){
save2an = mySharedObject.data.save2an;
if (save2an == 0){
resetSave();
} else {
if (save2an == 1){
hiScore = mySharedObject.data.hiScore;
stage2Obj1 = mySharedObject.data.stage2Obj1;
stage3Obj1 = mySharedObject.data.stage3Obj1;
stage3Obj2 = mySharedObject.data.stage3Obj2;
stage4Obj1 = mySharedObject.data.stage4Obj1;
stage5Obj1 = mySharedObject.data.stage5Obj1;
stage5Obj2 = mySharedObject.data.stage5Obj2;
stage6Obj1 = mySharedObject.data.stage6Obj1;
stage7Obj1 = mySharedObject.data.stage7Obj1;
stage7Obj2 = mySharedObject.data.stage7Obj2;
stage8Obj1 = mySharedObject.data.stage8Obj1;
stage8Obj2 = mySharedObject.data.stage8Obj2;
stage9Obj1 = mySharedObject.data.stage9Obj1;
stage10Obj1 = mySharedObject.data.stage10Obj1;
lastStagePodS = mySharedObject.data.lastStagePodS;
armorType = mySharedObject.data.armorType;
weaponType = mySharedObject.data.weaponType;
currentRank = mySharedObject.data.currentRank;
exps = mySharedObject.data.exps;
podSave = mySharedObject.data.podSave;
armorArray = mySharedObject.data.armorArray;
hpLevel = mySharedObject.data.hpLevel;
mpLevel = mySharedObject.data.mpLevel;
critLevel = mySharedObject.data.critLevel;
hpLevel = mySharedObject.data.hpLevel;
mpLevel = mySharedObject.data.mpLevel;
agiLevel = mySharedObject.data.agiLevel;
critLevel = mySharedObject.data.critLevel;
weapon1fireRate = mySharedObject.data.weapon1fireRate;
weapon2fireRate = mySharedObject.data.weapon2fireRate;
weapon3fireRate = mySharedObject.data.weapon3fireRate;
weapon4fireRate = mySharedObject.data.weapon4fireRate;
weapon5fireRate = mySharedObject.data.weapon5fireRate;
weapon6fireRate = mySharedObject.data.weapon6fireRate;
weapon1Level = mySharedObject.data.weapon1Level;
weapon2Level = mySharedObject.data.weapon2Level;
weapon3Level = mySharedObject.data.weapon3Level;
weapon4Level = mySharedObject.data.weapon4Level;
weapon5Level = mySharedObject.data.weapon5Level;
weapon6Level = mySharedObject.data.weapon6Level;
stageFinished = mySharedObject.data.stageFinished;
stageLevel = mySharedObject.data.stageLevel;
spark = mySharedObject.data.spark;
ore = mySharedObject.data.ore;
scrapMetal = mySharedObject.data.scrapMetal;
starDust = mySharedObject.data.starDust;
crystal = mySharedObject.data.crystal;
meteorPiece = mySharedObject.data.meteorPiece;
flyingStone = mySharedObject.data.flyingStone;
remethin = mySharedObject.data.remethin;
fiberConnection = mySharedObject.data.fiberConnection;
ionizedFluid = mySharedObject.data.ionizedFluid;
manaStone = mySharedObject.data.manaStone;
battery = mySharedObject.data.battery;
luminaFruit = mySharedObject.data.luminaFruit;
azuriaCarbon = mySharedObject.data.azuriaCarbon;
blackCrumb = mySharedObject.data.blackCrumb;
sparkFuse = mySharedObject.data.sparkFuse;
lightWeb = mySharedObject.data.lightWeb;
guardianStarMedal = mySharedObject.data.guardianStarMedal;
royalRing = mySharedObject.data.royalRing;
hearthOfKhaleonia = mySharedObject.data.hearthOfKhaleonia;
antimater = mySharedObject.data.antimater;
redEnergy = mySharedObject.data.redEnergy;
blueEnergy = mySharedObject.data.blueEnergy;
yellowEnergy = mySharedObject.data.yellowEnergy;
bitModule = mySharedObject.data.bitModule;
criticalChipset = mySharedObject.data.criticalChipset;
linker = mySharedObject.data.linkerr;
dragonScale = mySharedObject.data.dragonScale;
sparkLimiter = mySharedObject.data.sparkLimiter;
pertamaxFuel = mySharedObject.data.pertamaxFuel;
atomDecompiler = mySharedObject.data.atomDecompiler;
a1S1 = mySharedObject.data.a1S1;
a1S2 = mySharedObject.data.a1S2;
a2S1 = mySharedObject.data.a2S1;
a2S2 = mySharedObject.data.a2S2;
a3S1 = mySharedObject.data.a3S1;
a3S2 = mySharedObject.data.a3S2;
a4S1 = mySharedObject.data.a4S1;
a4S2 = mySharedObject.data.a4S2;
a5S1 = mySharedObject.data.a5S1;
a5S2 = mySharedObject.data.a5S2;
a6S1 = mySharedObject.data.a6S;
a6S2 = mySharedObject.data.a6S22;
enemiesKilled = mySharedObject.data.enemiesKilled;
bossKilled = mySharedObject.data.bossKilled;
weaponArray = mySharedObject.data.weaponArray;
weaponSell1 = mySharedObject.data.weaponSell1;
weaponSell2 = mySharedObject.data.weaponSell2;
weaponSell3 = mySharedObject.data.weaponSell3;
weaponSell4 = mySharedObject.data.weaponSell4;
weaponSell5 = mySharedObject.data.weaponSell5;
weaponSell6 = mySharedObject.data.weaponSell6;
stage1 = mySharedObject.data.stage1;
stage2 = mySharedObject.data.stage2;
stage3 = mySharedObject.data.stage3;
stage4 = mySharedObject.data.stage4;
stage5 = mySharedObject.data.stage5;
stage5 = mySharedObject.data.stage6;
stage7 = mySharedObject.data.stage7;
stage8 = mySharedObject.data.stage8;
stage9 = mySharedObject.data.stage9;
stage10 = mySharedObject.data.stage10;
secretStage1 = mySharedObject.data.secretStage1;
secretStage2 = mySharedObject.data.secretStage2;
secretStage3 = mySharedObject.data.secretStage3;
secretStage4 = mySharedObject.data.secretStage4;
secretStage5 = mySharedObject.data.secretStage5;
secretStage6 = mySharedObject.data.secretStage6;
shortCut1 = mySharedObject.data.shortCut1;
shortCut2 = mySharedObject.data.shortCut2;
shortCut3 = mySharedObject.data.shortCut3;
shortCut4 = mySharedObject.data.shortCut4;
shortCut5 = mySharedObject.data.shortCut5;
dodgeRate = mySharedObject.data.dodgeRate;
};
};
}
function cekStatus(){
if (hpLevel == 1){
maxHp = 100;
} else {
if (hpLevel == 2){
maxHp = 150;
} else {
if (hpLevel == 3){
maxHp = 225;
} else {
if (hpLevel == 4){
maxHp = 325;
} else {
if (hpLevel == 5){
maxHp = 450;
} else {
if (hpLevel == 6){
maxHp = 500;
} else {
if (hpLevel >= 7){
maxHp = 500;
};
};
};
};
};
};
};
if (mpLevel == 1){
maxMp = 100;
} else {
if (mpLevel == 2){
maxMp = 150;
} else {
if (mpLevel == 3){
maxMp = 250;
} else {
if (mpLevel == 4){
maxMp = 350;
} else {
if (mpLevel == 5){
maxMp = 475;
} else {
if (mpLevel == 6){
maxMp = 600;
} else {
if (mpLevel == 7){
maxMp = 900;
};
};
};
};
};
};
};
if (agiLevel == 1){
agility = 20;
arrayKE = 0;
} else {
if (agiLevel == 2){
agility = 17;
arrayKE = 0;
} else {
if (agiLevel == 3){
agility = 14;
arrayKE = 0;
} else {
if (agiLevel == 4){
agility = 10;
arrayKE = 0;
} else {
if (agiLevel == 5){
agility = 5;
arrayKE = 0;
} else {
if (agiLevel == 6){
agility = 0;
arrayKE = 0;
};
};
};
};
};
};
if (critLevel == 1){
criticalRate = 10;
} else {
if (critLevel == 2){
criticalRate = 15;
} else {
if (critLevel == 3){
criticalRate = 25;
} else {
if (critLevel == 4){
criticalRate = 35;
} else {
if (critLevel == 5){
criticalRate = 45;
} else {
if (critLevel == 6){
criticalRate = 55;
};
};
};
};
};
};
}
public function beginClass(_arg1:Event){
cekStatus();
loadGame();
checkSkill();
if (armorArray == null){
armorArray = [1];
};
}
public function eFrameMenu(_arg1:Event):void{
itemLimit();
if (((!((bBar == null))) && (!((bBar.parent == null))))){
bBar.parent.removeChild(bBar);
};
if (phases == "Exit"){
SoundMixer.stopAll();
myChannel.stop();
removeAllElements();
stageComplete = true;
death = true;
assaultMode = false;
finishedStage = false;
healthPoint = maxHp;
startMenu();
enemiesLeft = 0;
testTimer = 0;
initTimer = 0;
eTimer = 0;
currentWave = 1;
currentEnemy = 0;
SoundMixer.stopAll();
myChannel.stop();
removeEventListener(Event.ENTER_FRAME, eFrameMenu);
phases = "Main";
};
}
public function startMenu(){
addEventListener(Event.ENTER_FRAME, eFrameMenu);
loadGame();
if (sound == true){
SoundMixer.stopAll();
myChannel.stop();
soundMenu = new BGMmenu();
myChannel = soundMenu.play(0, 9999);
};
if (stage != null){
wM = new WorldMap();
stage.addChild(wM);
wM.x = 360;
wM.y = 240;
};
if (stage != null){
mG = new menuGabungan();
stage.addChild(mG);
mG.x = 1100;
mG.y = 240;
};
if (stage != null){
pT = new menuPanelTetap();
stage.addChild(pT);
pT.x = 360;
pT.y = 240;
pT.exButton.addEventListener(MouseEvent.CLICK, exitToMenu);
};
if ((((phases == "Main")) && (!((stage == null))))){
if (exits == true){
SoundMixer.stopAll();
myChannel.stop();
if (sound == true){
soundMenu = new BGMmenu();
myChannel = soundMenu.play(0, 9999);
};
};
mM = new mainMenu();
stage.addChildAt(mM, 0);
mM.x = 360;
mM.y = 240;
mM.nGButton.addEventListener(MouseEvent.CLICK, onEnter);
mM.conButton.addEventListener(MouseEvent.CLICK, onEnter);
mM.credButton.addEventListener(MouseEvent.CLICK, onEnter);
mM.moreButton.addEventListener(MouseEvent.CLICK, onEnter);
mM.startConfirm.YButt.addEventListener(MouseEvent.CLICK, onEnter);
mM.startConfirm.NButt.addEventListener(MouseEvent.CLICK, onEnter);
};
if (mySharedObject.data.armorType != null){
armorType = mySharedObject.data.armorType;
} else {
if (mySharedObject.data.armorType == null){
armorType = 1;
};
};
if (((!((pT == null))) && (!((pT.expBars == null))))){
pT.expBars.scaleX = (exps / expNeed);
};
if (wM != null){
wM.stage1Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage2Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage3Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage4Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage5Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage6Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage7Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage8Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage9Button.addEventListener(MouseEvent.CLICK, onClick);
wM.stage10Button.addEventListener(MouseEvent.CLICK, onClick);
};
if (((!((opScene == null))) && (!((opScene.skipButton == null))))){
opScene.skipButton.addEventListener(MouseEvent.CLICK, onEnter);
};
}
function exitToMenu(_arg1:MouseEvent):void{
exits = true;
if (mG != null){
stage.removeChild(mG);
};
startMenu();
}
function makeOpScene(){
scene = new openingScene();
addChild(scene);
scene.x = 360;
scene.y = 240;
}
public function onEnter(_arg1:MouseEvent):void{
if (_arg1.target == opScene.skipButton){
beginStage(1);
if (sound == true){
confirmButton = new confirmKlik();
confirmButton.play();
};
eventss = true;
opScene.gotoAndStop(6);
};
if (_arg1.target == mM.startConfirm.YButt){
if (sound == true){
confirmButton = new confirmKlik();
confirmButton.play();
};
resetSave();
lastStagePodS = 0;
stage2Obj1 = false;
stage3Obj1 = false;
stage3Obj2 = false;
stage4Obj1 = false;
stage5Obj1 = false;
stage5Obj2 = false;
stage6Obj1 = false;
stage7Obj1 = false;
stage7Obj2 = false;
stage8Obj1 = false;
stage8Obj2 = false;
stage9Obj1 = false;
stage10Obj1 = false;
phases = "Opening";
stage1 = false;
eventss = true;
eventConversation.lagiJalan = true;
tutPanel.tutKe = 0;
wM.stage1Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage2Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage3Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage4Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage5Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage6Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage7Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage8Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage9Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage10Button.removeEventListener(MouseEvent.CLICK, onClick);
mM.nGButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.conButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.credButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.moreButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.startConfirm.YButt.removeEventListener(MouseEvent.CLICK, onEnter);
mM.startConfirm.NButt.removeEventListener(MouseEvent.CLICK, onEnter);
stage.removeChild(wM);
stage.removeChild(pT);
stage.removeChild(mG);
stage.removeChild(mM);
addEventListener(Event.ENTER_FRAME, eFrame);
stage.addEventListener(Event.DEACTIVATE, pauseGame);
weaponType = 1;
makeOpScene();
};
if (_arg1.target == mM.startConfirm.NButt){
mM.startConfirm.visible = false;
};
if (_arg1.target == mM.nGButton){
if (sound == true){
confirmButton = new confirmKlik();
confirmButton.play();
};
if (save2an == 0){
phases = "Opening";
wM.stage1Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage2Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage3Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage4Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage5Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage6Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage7Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage8Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage9Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage10Button.removeEventListener(MouseEvent.CLICK, onClick);
mM.nGButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.conButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.credButton.removeEventListener(MouseEvent.CLICK, onEnter);
mM.moreButton.removeEventListener(MouseEvent.CLICK, onEnter);
stage.removeChild(wM);
stage.removeChild(pT);
stage.removeChild(mG);
stage.removeChild(mM);
addEventListener(Event.ENTER_FRAME, eFrame);
stage.addEventListener(Event.DEACTIVATE, pauseGame);
makeOpScene();
} else {
if (save2an == 1){
mM.startConfirm.visible = true;
};
};
};
if (_arg1.target == mM.conButton){
if (sound == true){
confirmButton = new confirmKlik();
confirmButton.play();
};
if (mM.startConfirm.visible == true){
mM.startConfirm.visible = false;
};
if (mM.credPanel.visible == true){
(mM.credPanel.visible == false);
};
mM.play();
phases = "Customize";
tutPanel.tutKe = 0;
};
if (_arg1.target == mM.credButton){
mM.credPanel.visible = true;
if (mM.startConfirm.visible == true){
(mM.startConfirm.visible == false);
};
};
}
function onClick(_arg1:MouseEvent){
if (sound == true){
onStage = new startStage();
onStage.play();
};
switch (_arg1.currentTarget.name){
case "stage1Button":
beginStage(1);
break;
case "stage2Button":
beginStage(2);
break;
case "stage3Button":
beginStage(3);
break;
case "stage4Button":
beginStage(4);
break;
case "stage5Button":
beginStage(5);
break;
case "stage6Button":
beginStage(6);
break;
case "stage7Button":
beginStage(7);
break;
case "stage8Button":
beginStage(8);
break;
case "stage9Button":
beginStage(9);
break;
case "stage10Button":
beginStage(10);
break;
};
wM.stage1Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage2Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage3Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage4Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage5Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage6Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage7Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage8Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage9Button.removeEventListener(MouseEvent.CLICK, onClick);
wM.stage10Button.removeEventListener(MouseEvent.CLICK, onClick);
stage.removeChild(wM);
stage.removeChild(pT);
stage.removeChild(mG);
addEventListener(Event.ENTER_FRAME, eFrame);
stage.addEventListener(Event.DEACTIVATE, pauseGame);
}
public function beginStage(_arg1){
jumArmor = 7;
jumArmor = ((((((a1Int + a2Int) + a3Int) + a4Int) + a5Int) + a6Int) + a7Int);
removeEventListener(Event.ENTER_FRAME, eFrameMenu);
energy = new energyShield();
myChannel.stop();
cekStatus();
currentBoss = 0;
mousePosArray = [];
saveGame();
panel = new PanelBawah();
stage.addChild(panel);
panel.x = 394;
panel.y = 455;
panel.warn.visible = false;
panel.arBut.addEventListener(MouseEvent.CLICK, agClick);
if ((((_arg1 == 1)) && ((stage1 == false)))){
eventss = true;
eventConversation.lagiJalan = true;
opEvt = new initStage1();
stage.addChild(opEvt);
opEvt.x = -30;
opEvt.y = -35;
initStage = false;
} else {
if ((((_arg1 == 1)) && ((stage1 == true)))){
initStage = true;
};
};
if ((((_arg1 == 2)) && ((stage2 == false)))){
isPaused = false;
initStage = true;
};
if (stageLevel != 1){
eventss = false;
eventConversation.lagiJalan = false;
};
phases = "Action";
lagu = false;
setArmor();
player = new Player();
stage.addChild(player);
player.x = 100;
player.y = 220;
movingTarget = new MovingTarget();
movingTarget.x = 40;
movingTarget.y = 40;
movingTarget2 = new MovingTarget();
movingTarget2.x = 40;
movingTarget2.y = 440;
stage.addChild(movingTarget);
stage.addChild(movingTarget2);
movingTarget.visible = false;
movingTarget2.visible = false;
stageLevel = _arg1;
var _local2:MovieClip = new Background();
_local2.speed = 0.1;
stage.addChildAt(_local2, 0);
_local2.x = 0;
_local2.y = 0;
_local2.gotoAndStop(stageLevel);
death = false;
stageComplete = false;
assaultMode = false;
healthPoint = maxHp;
manaPoint = maxMp;
a1S3CD = 0;
enemiesLeft = 0;
testTimer = 0;
initTimer = 0;
eTimer = 0;
currentWave = 1;
currentEnemy = 0;
ePodLeft = 0;
ePodTimer = 0;
coolDownTimer = 0;
shieldAttached = true;
attachShield = false;
dodgeRate = 50;
docking = false;
startWave();
if (sound == true){
bGsound = new BackgroundSound();
myChannel = bGsound.play(0, 9999);
};
Key.initialize(stage);
eventConversations();
}
function agClick(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2, "_blank");
}
public function summary(){
var _local1:MovieClip = new summMenu();
stage.addChild(_local1);
_local1.x = 350;
_local1.y = 250;
phases = "Summary";
stage.removeChild(panel);
}
public function defeatSum(){
var _local1:MovieClip = new summMenu();
stage.addChild(_local1);
_local1.x = 350;
_local1.y = 250;
phases = "Defeat";
stage.removeChild(panel);
}
public function stageOver(){
jumArmor = 7;
removeAllElements();
phases = "Customize";
saveGame();
stageComplete = true;
death = true;
assaultMode = false;
finishedStage = false;
healthPoint = maxHp;
startMenu();
enemiesLeft = 0;
testTimer = 0;
initTimer = 0;
eTimer = 0;
currentWave = 1;
currentEnemy = 0;
myChannel.stop();
if (bBar != null){
removeChild(bBar);
};
removeEventListener(Event.ENTER_FRAME, eFrame);
stage.removeEventListener(Event.DEACTIVATE, pauseGame);
}
public function initializing(){
if (assaultMode == true){
if (armor1 != null){
armor1.returnShield();
};
if (armor2 != null){
armor2.returnShield();
};
if (armor3 != null){
armor3.returnShield();
};
if (armor4 != null){
armor4.returnShield();
};
if (armor5 != null){
armor5.returnShield();
};
if (armor6 != null){
armor6.returnShield();
};
if (armor7 != null){
armor7.returnShield();
};
};
if (((((((((((((((((!((armor1 == null))) && ((armor1.radius < 15)))) && ((armor1HP > 0)))) || (((((!((armor2 == null))) && ((armor2.radius < 15)))) && ((armor2HP > 0)))))) || (((((!((armor3 == null))) && ((armor3.radius < 15)))) && ((armor3HP > 0)))))) || (((((!((armor4 == null))) && ((armor4.radius < 15)))) && ((armor4HP > 0)))))) || (((((!((armor5 == null))) && ((armor5.radius < 15)))) && ((armor5HP > 0)))))) || (((((!((armor6 == null))) && ((armor6.radius < 15)))) && ((armor6HP > 0)))))) || (((((!((armor7 == null))) && ((armor7.radius < 15)))) && ((armor7HP > 0)))))){
removeShield();
player.addShield();
};
}
public function startWave():void{
var _local1:int;
if (stageLevel == 1){
podRate = ((Math.random() * 150) + 200);
arrayUsed2 = enemyArray[(currentWave - 1)].length;
if (stage2Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 5 escape pods.";
};
if (stage2Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 2){
podRate = ((Math.random() * 200) + 300);
arrayUsed2 = enemyArray2[(currentWave - 1)].length;
if (stage3Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 6 escape pods.";
};
if (stage3Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 3){
podRate = ((Math.random() * 190) + 290);
arrayUsed2 = enemyArray3[(currentWave - 1)].length;
if (stage4Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 7 escape pods.";
};
if (stage4Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 4){
podRate = ((Math.random() * 180) + 270);
arrayUsed2 = enemyArray4[(currentWave - 1)].length;
if (stage5Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 7 escape pods.";
};
if (stage5Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 5){
podRate = ((Math.random() * 170) + 260);
arrayUsed2 = enemyArray5[(currentWave - 1)].length;
if (stage6Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 8 escape pods.";
};
if (stage6Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 6){
podRate = ((Math.random() * 160) + 230);
arrayUsed2 = enemyArray6[(currentWave - 1)].length;
if (stage7Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 10 escape pods.";
};
if (stage7Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 7){
podRate = ((Math.random() * 130) + 140);
arrayUsed2 = enemyArray7[(currentWave - 1)].length;
if (stage8Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 12 escape pods.";
};
if (stage8Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 8){
podRate = ((Math.random() * 110) + 110);
arrayUsed2 = enemyArray8[(currentWave - 1)].length;
if (stage9Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 14 escape pods.";
};
if (stage9Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 9){
podRate = ((Math.random() * 110) + 110);
arrayUsed2 = enemyArray9[(currentWave - 1)].length;
if (stage10Obj1 == false){
panel.progressE.visible = true;
panel.prog.visible = true;
panel.objectives.visible = true;
panel.objs.visible = true;
panel.progressE.text = ePodSaved.toString();
panel.objectives.text = "Save 16 escape pods.";
};
if (stage10Obj1 == true){
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = true;
panel.objs.visible = false;
panel.objectives.text = "Objective completed.";
};
} else {
if (stageLevel == 10){
podRate = ((Math.random() * 100) + 100);
arrayUsed2 = enemyArray10[(currentWave - 1)].length;
panel.progressE.visible = false;
panel.prog.visible = false;
panel.objectives.visible = false;
panel.objs.visible = false;
};
};
};
};
};
};
};
};
};
};
_local1 = 0;
while (_local1 < arrayUsed2) {
if (stageLevel == 1){
arrayUsed3 = enemyArray[(currentWave - 1)][_local1];
} else {
if (stageLevel == 2){
arrayUsed3 = enemyArray2[(currentWave - 1)][_local1];
} else {
if (stageLevel == 3){
arrayUsed3 = enemyArray3[(currentWave - 1)][_local1];
} else {
if (stageLevel == 4){
arrayUsed3 = enemyArray4[(currentWave - 1)][_local1];
} else {
if (stageLevel == 5){
arrayUsed3 = enemyArray5[(currentWave - 1)][_local1];
} else {
if (stageLevel == 6){
arrayUsed3 = enemyArray6[(currentWave - 1)][_local1];
} else {
if (stageLevel == 7){
arrayUsed3 = enemyArray7[(currentWave - 1)][_local1];
} else {
if (stageLevel == 8){
arrayUsed3 = enemyArray8[(currentWave - 1)][_local1];
} else {
if (stageLevel == 9){
arrayUsed3 = enemyArray9[(currentWave - 1)][_local1];
} else {
if (stageLevel == 10){
arrayUsed3 = enemyArray10[(currentWave - 1)][_local1];
};
};
};
};
};
};
};
};
};
};
if (arrayUsed3 != 0){
enemiesLeft++;
};
_local1++;
};
}
function capturePosition(){
mousePos = new Point(mouseX, mouseY);
mousePosArray.unshift(mousePos);
mousePosArray.splice(5, 1);
}
function itemLimit(){
if (GSEngine.ore > 999){
GSEngine.ore = 999;
};
if (GSEngine.scrapMetal > 999){
GSEngine.scrapMetal = 999;
};
if (GSEngine.starDust > 999){
GSEngine.starDust = 999;
};
if (GSEngine.crystal > 999){
GSEngine.crystal = 999;
};
if (GSEngine.meteorPiece > 999){
GSEngine.meteorPiece = 999;
};
if (GSEngine.flyingStone > 999){
GSEngine.flyingStone = 999;
};
if (GSEngine.remethin > 999){
GSEngine.remethin = 999;
};
if (GSEngine.fiberConnection > 999){
GSEngine.fiberConnection = 999;
};
if (GSEngine.ionizedFluid > 999){
GSEngine.ionizedFluid = 999;
};
if (GSEngine.manaStone > 999){
GSEngine.manaStone = 999;
};
if (GSEngine.battery > 999){
GSEngine.battery = 999;
};
if (GSEngine.luminaFruit > 999){
GSEngine.luminaFruit = 999;
};
if (GSEngine.azuriaCarbon > 999){
GSEngine.azuriaCarbon = 999;
};
if (GSEngine.blackCrumb > 999){
GSEngine.blackCrumb = 999;
};
if (GSEngine.sparkFuse > 999){
GSEngine.sparkFuse = 999;
};
if (GSEngine.lightWeb > 999){
GSEngine.lightWeb = 999;
};
if (GSEngine.guardianStarMedal > 999){
GSEngine.guardianStarMedal = 999;
};
if (GSEngine.royalRing > 999){
GSEngine.royalRing = 999;
};
if (GSEngine.hearthOfKhaleonia > 999){
GSEngine.hearthOfKhaleonia = 999;
};
if (GSEngine.antimater > 999){
GSEngine.antimater = 999;
};
if (GSEngine.redEnergy > 999){
GSEngine.redEnergy = 999;
};
if (GSEngine.blueEnergy > 999){
GSEngine.blueEnergy = 999;
};
if (GSEngine.yellowEnergy > 999){
GSEngine.yellowEnergy = 999;
};
if (GSEngine.bitModule > 999){
GSEngine.bitModule = 999;
};
if (GSEngine.criticalChipset > 999){
GSEngine.criticalChipset = 999;
};
if (GSEngine.linker > 999){
GSEngine.linker = 999;
};
if (GSEngine.dragonScale > 999){
GSEngine.dragonScale = 999;
};
if (GSEngine.sparkLimiter > 999){
GSEngine.sparkLimiter = 999;
};
if (GSEngine.pertamaxFuel > 999){
GSEngine.pertamaxFuel = 999;
};
if (GSEngine.atomDecompiler > 999){
GSEngine.atomDecompiler = 999;
};
}
function pauseGame(_arg1:Event){
if ((((((((isPaused == false)) && ((phases == "Action")))) && ((healthPoint > 0)))) && (!((healthPoint == 0))))){
paus = new pauseMenu();
paus.x = 360;
paus.y = 250;
stage.addChild(paus);
isPaused = true;
};
}
public function eFrame(_arg1:Event){
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:int;
var _local7:Sound;
var _local8:Sound;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:MovieClip;
var _local13:MovieClip;
var _local14:int;
var _local15:int;
var _local16:MovieClip;
var _local17:MovieClip;
var _local18:int;
var _local19:MovieClip;
var _local20:int;
var _local21:MovieClip;
jumArmor = ((((((a1Int + a2Int) + a3Int) + a4Int) + a5Int) + a6Int) + a7Int);
if ((((((((((((((a1 == false)) && ((a2 == false)))) && ((a3 == false)))) && ((a4 == false)))) && ((a5 == false)))) && ((a6 == false)))) && ((a7 == false)))){
aFull = true;
} else {
aFull = false;
};
if (armor1HP > armor1HPMax){
armor1HP = armor1HPMax;
};
if (armor2HP > armor2HPMax){
armor2HP = armor2HPMax;
};
if (armor3HP > armor3HPMax){
armor3HP = armor3HPMax;
};
if (armor4HP > armor4HPMax){
armor4HP = armor4HPMax;
};
if (armor5HP > armor5HPMax){
armor5HP = armor5HPMax;
};
if (armor6HP > armor6HPMax){
armor6HP = armor6HPMax;
};
if (armor7HP > armor7HPMax){
armor7HP = armor7HPMax;
};
if (armor1HP <= 0){
a1Int = 0;
armor1HP = 0;
};
if (armor1HP > 0){
a1Int = 1;
};
if (armor2HP <= 0){
a2Int = 0;
armor2HP = 0;
};
if (armor2HP > 0){
a2Int = 1;
};
if (armor3HP <= 0){
a3Int = 0;
armor3HP = 0;
};
if (armor3HP > 0){
a3Int = 1;
};
if (armor4HP <= 0){
a4Int = 0;
armor4HP = 0;
};
if (armor4HP > 0){
a4Int = 1;
};
if (armor5HP <= 0){
a5Int = 0;
armor5HP = 0;
};
if (armor5HP > 0){
a5Int = 1;
};
if (armor6HP <= 0){
a6Int = 0;
armor6HP = 0;
};
if (armor6HP > 0){
a6Int = 1;
};
if (armor7HP <= 0){
a7Int = 0;
armor7HP = 0;
};
if (armor7HP > 0){
a7Int = 1;
};
if (panel != null){
panel.tutupan.gotoAndStop((jumArmor + 2));
};
if ((((armor1HP > 0)) && ((armor1HP < armor1HPMax)))){
a1 = true;
};
if ((((armor1HP <= 0)) || ((armor1HP == armor1HPMax)))){
a1 = false;
};
if ((((armor2HP > 0)) && ((armor2HP < armor2HPMax)))){
a2 = true;
};
if ((((armor2HP <= 0)) || ((armor2HP == armor2HPMax)))){
a2 = false;
};
if ((((armor3HP > 0)) && ((armor3HP < armor3HPMax)))){
a3 = true;
};
if ((((armor3HP <= 0)) || ((armor3HP == armor3HPMax)))){
a3 = false;
};
if ((((armor4HP > 0)) && ((armor4HP < armor4HPMax)))){
a4 = true;
};
if ((((armor4HP <= 0)) || ((armor4HP == armor4HPMax)))){
a4 = false;
};
if ((((armor5HP > 0)) && ((armor5HP < armor5HPMax)))){
a5 = true;
};
if ((((armor5HP <= 0)) || ((armor5HP == armor5HPMax)))){
a5 = false;
};
if ((((armor6HP > 0)) && ((armor6HP < armor6HPMax)))){
a6 = true;
};
if ((((armor6HP <= 0)) || ((armor6HP == armor6HPMax)))){
a6 = false;
};
if ((((armor7HP > 0)) && ((armor7HP < armor7HPMax)))){
a7 = true;
};
if ((((armor7HP <= 0)) || ((armor7HP == armor7HPMax)))){
a7 = false;
};
totalArmorHP = ((((((armor1HP + armor2HP) + armor3HP) + armor4HP) + armor5HP) + armor6HP) + armor7HP);
itemLimit();
if (panel != null){
panel.progressE.text = ePodSaved.toString();
};
if (eventConversation.lagiJalan == false){
eventss = false;
};
if (manaPoint > maxMp){
manaPoint = maxMp;
};
if (a1S3CD > 0){
a1S3CD = (a1S3CD - 1);
};
if (itemTimer1 > 0){
itemTimer1 = (itemTimer1 - 1);
};
if (itemTimer2 > 0){
itemTimer2 = (itemTimer2 - 1);
};
if (itemTimer3 > 0){
itemTimer3 = (itemTimer3 - 1);
};
if (itemTimer4 > 0){
itemTimer4 = (itemTimer4 - 1);
};
if (qualities == "LOW"){
stage.quality = "LOW";
};
if (qualities == "MEDIUM"){
stage.quality = "MEDIUM";
};
if (qualities == "HIGH"){
stage.quality = "HIGH";
};
stage.quality = qualities;
if ((((sound == true)) && ((collS == 1)))){
coll = new collectL();
coll.play();
collS = 0;
};
if (phases == "Action"){
if ((((stageLevel == 3)) && ((eTimer == 0)))){
addPod(1, 1);
addPod(2, 1);
};
if ((((stageLevel == 6)) && ((eTimer == 0)))){
addPod(2, 1);
addPod(3, 2);
};
if (stageLevel == 9){
asteroidTimer++;
if (asteroidTimer > ((Math.random() * 15) + 90)){
_local2 = 0;
while (_local2 < 1) {
_local3 = new asteroid(Math.ceil((Math.random() * 3)));
stage.addChild(_local3);
_local3.x = ((Math.random() * 100) + 750);
_local3.y = (Math.random() * 500);
_local2++;
};
asteroidTimer = 0;
};
};
if (((!((player == null))) && ((player.visible == false)))){
player.visible = true;
};
if (healthPoint > (maxHp + 1)){
healthPoint = maxHp;
};
if (armor1HP > armor1HPMax){
armor1HP = armor1HPMax;
};
if (armor2HP > armor2HPMax){
armor2HP = armor2HPMax;
};
if (armor3HP > armor3HPMax){
armor3HP = armor3HPMax;
};
if (armor4HP > armor4HPMax){
armor4HP = armor4HPMax;
};
if (armor5HP > armor5HPMax){
armor5HP = armor5HPMax;
};
if (armor6HP > armor6HPMax){
armor6HP = armor6HPMax;
};
if (armor7HP > armor7HPMax){
armor7HP = armor7HPMax;
};
};
if (((((!((scene == null))) && ((scene.currentFrame == 6)))) && ((phases == "Opening")))){
beginStage(1);
};
checkCoolDown();
if (sound == false){
myTransform.volume = 0;
myChannel.soundTransform = myTransform;
myChannel.stop();
};
if (sound == true){
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
};
if (phases == "lanjut"){
if (player != null){
player.nova.gotoAndPlay(1);
player.shield.gotoAndPlay(1);
player.bRay.gotoAndPlay(1);
player.defl.gotoAndPlay(1);
panel.gWarm.gotoAndPlay(1);
player.prot.gotoAndPlay(1);
panel.grav.gotoAndPlay(1);
player.black.gotoAndPlay(1);
};
if (bBar != null){
};
stageOver();
};
if (eventss == true){
if (tutPanel.tutKe == 1){
if ((((eTimer == 60)) && (!((stage == null))))){
_local4 = new Enemy(1);
addChild(_local4);
currentEnemy++;
eTimer = 0;
};
eTimer++;
};
if (tutPanel.tutKe == 4){
if ((((ePodTimer > 50)) && ((ePodArray.length < 2)))){
makeEscapePod("kecil");
ePodTimer = 0;
};
if (ePodArray.length < 2){
ePodTimer++;
};
};
if (tutPanel.tutKe == 5){
if ((((ePodBesarTimer > 50)) && ((ePodBesarArray.length < 1)))){
makeEscapePod("besar");
ePodBesarTimer = 0;
eTimer = 0;
};
if (ePodBesarArray.length < 1){
ePodBesarTimer++;
};
};
};
if (phases == "Main"){
removeAllElements();
stageComplete = true;
death = true;
assaultMode = false;
finishedStage = false;
startMenu();
enemiesLeft = 0;
testTimer = 0;
initTimer = 0;
eTimer = 0;
currentWave = 1;
currentEnemy = 0;
a1S1CD = 0;
a1S2CD = 0;
a1S3CD = 0;
a2S1CD = 0;
a2S2CD = 0;
a2S3CD = 0;
a3S1CD = 0;
a3S2CD = 0;
a3S3CD = 0;
a4S1CD = 0;
a4S2CD = 0;
a4S3CD = 0;
a4S4CD = 0;
a5S1CD = 0;
a5S2CD = 0;
a5S3CD = 0;
a5S4CD = 0;
a6S1CD = 0;
a6S2CD = 0;
a6S3CD = 0;
a6S4CD = 0;
removeEventListener(Event.ENTER_FRAME, eFrame);
};
if (phases == "Opening"){
if ((((opScene.currentFrame == 1)) && (!((opScene.op1 == null))))){
opScene.op1.play();
if (opScene.op1.currentFrame == 0x0101){
opScene.gotoAndStop(2);
};
};
if ((((opScene.currentFrame == 2)) && (!((opScene.op2 == null))))){
if (opScene.op2.currentFrame == 0x0101){
opScene.gotoAndStop(3);
};
};
if ((((opScene.currentFrame == 3)) && (!((opScene.op3 == null))))){
if (opScene.op3.currentFrame == 0x0101){
opScene.gotoAndStop(4);
};
};
if ((((opScene.currentFrame == 4)) && (!((opScene.op4 == null))))){
if (opScene.op4.currentFrame == 0x0101){
opScene.gotoAndStop(5);
};
};
if ((((scene.currentFrame == 5)) && (!((scene.op5 == null))))){
if (scene.op5.currentFrame == 0x0101){
beginStage(1);
scene.gotoAndStop(6);
};
};
} else {
if (((!((phases == "Opening"))) && (!((phases == "Main"))))){
player.base.transform.colorTransform = thisTintColour;
player.armor1.transform.colorTransform = thisTintColour;
player.armor2.transform.colorTransform = thisTintColour;
player.armor3.transform.colorTransform = thisTintColour;
player.armor4.transform.colorTransform = thisTintColour;
player.armor5.transform.colorTransform = thisTintColour;
player.armor6.transform.colorTransform = thisTintColour;
player.armor7.transform.colorTransform = thisTintColour;
if (tintTimer == 0){
thisTintColour.setTint(0, 0);
} else {
if (tintTimer > 0){
tintTimer--;
};
};
if (phases == "lanjut"){
if (player != null){
player.nova.gotoAndPlay(1);
player.shield.gotoAndPlay(1);
player.bRay.gotoAndPlay(1);
player.defl.gotoAndPlay(1);
player.prot.gotoAndPlay(1);
panel.grav.gotoAndPlay(1);
player.black.gotoAndPlay(1);
};
if (panel != null){
panel.gWarm.gotoAndPlay(1);
};
if (bBar != null){
removeChild(bBar);
};
myChannel.stop();
if (sound == true){
soundMenu = new BGMmenu();
myChannel = soundMenu.play(0, 9999);
};
stageOver();
};
cekStatus();
checkSkill();
panel.arBar.scaleX = (((((((armor1HP + armor2HP) + armor3HP) + armor4HP) + armor5HP) + armor6HP) + armor7HP) / ((((((armor1HPMax + armor2HPMax) + armor3HPMax) + armor4HPMax) + armor5HPMax) + armor6HPMax) + armor7HPMax));
panel.hpBar.scaleX = (healthPoint / maxHp);
panel.sC1.gotoAndStop(shortCut1);
panel.sC2.gotoAndStop(shortCut2);
panel.sC3.gotoAndStop(shortCut3);
panel.sC4.gotoAndStop(shortCut4);
panel.sC5.gotoAndStop(shortCut5);
panel.cd1.gotoAndStop(shortCut1);
panel.cd2.gotoAndStop(shortCut2);
panel.cd3.gotoAndStop(shortCut3);
panel.cd4.gotoAndStop(shortCut4);
panel.cd5.gotoAndStop(shortCut5);
panel.sC1.Itemquantity.visible = false;
panel.sC2.Itemquantity.visible = false;
if ((((shortCut3 == "none")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.visible = false;
} else {
if ((((shortCut3 == "Red Energy")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + redEnergy.toString());
} else {
if ((((shortCut3 == "Blue Energy")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + blueEnergy.toString());
} else {
if ((((shortCut3 == "Yellow Energy")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + yellowEnergy.toString());
} else {
if ((((shortCut3 == "critChipset")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + criticalChipset.toString());
} else {
if ((((shortCut3 == "Dragon Scale")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + dragonScale.toString());
} else {
if ((((shortCut3 == "Pertamax Fuel")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + pertamaxFuel.toString());
} else {
if ((((shortCut3 == "Atom Decompiler")) && (!((panel.sC3.Itemquantity == null))))){
panel.sC3.Itemquantity.text = ("x" + atomDecompiler.toString());
};
};
};
};
};
};
};
};
if ((((shortCut4 == "none")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.visible = false;
} else {
if ((((shortCut4 == "Red Energy")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + redEnergy.toString());
} else {
if ((((shortCut4 == "Blue Energy")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + blueEnergy.toString());
} else {
if ((((shortCut4 == "Yellow Energy")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + yellowEnergy.toString());
} else {
if ((((shortCut4 == "critChipset")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + criticalChipset.toString());
} else {
if ((((shortCut4 == "Dragon Scale")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + dragonScale.toString());
} else {
if ((((shortCut4 == "Pertamax Fuel")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + pertamaxFuel.toString());
} else {
if ((((shortCut4 == "Atom Decompiler")) && (!((panel.sC4.Itemquantity == null))))){
panel.sC4.Itemquantity.text = ("x" + atomDecompiler.toString());
};
};
};
};
};
};
};
};
if ((((shortCut5 == "none")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.visible = false;
} else {
if ((((shortCut5 == "Red Energy")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + redEnergy.toString());
} else {
if ((((shortCut5 == "Blue Energy")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + blueEnergy.toString());
} else {
if ((((shortCut5 == "Yellow Energy")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + yellowEnergy.toString());
} else {
if ((((shortCut5 == "critChipset")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + criticalChipset.toString());
} else {
if ((((shortCut5 == "Dragon Scale")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + dragonScale.toString());
} else {
if ((((shortCut5 == "Pertamax Fuel")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + pertamaxFuel.toString());
} else {
if ((((shortCut5 == "Atom Decompiler")) && (!((panel.sC5.Itemquantity == null))))){
panel.sC5.Itemquantity.text = ("x" + atomDecompiler.toString());
};
};
};
};
};
};
};
};
if (((((((!((initTimer == 500))) && ((initStage == false)))) && (!((stageComplete == true))))) && ((stageLevel == 1)))){
initTimer++;
isPaused = true;
_local5 = new Effect();
_local5.x = (Math.random() * 1000);
_local5.y = (Math.random() * 680);
_local5.type = 8;
stage.addChild(_local5);
};
if ((((((initTimer == 500)) && ((initStage == false)))) && ((stageLevel == 1)))){
if (opEvt != null){
opEvt.play();
player.x = (player.x + 2);
};
};
if (ePodArray != null){
_local6 = 0;
while (_local6 < ePodArray.length) {
if (((((!((player == null))) && (!((ePodArray[_local6] == null))))) && (player.playerPeri.hitTestObject(ePodArray[_local6].kecil)))){
if (((((!((tutPanel == null))) && ((eventss == true)))) && ((tutPanel.tutKe == 4)))){
if (_local6 == 0){
tutPanel.syarat1 = true;
};
if (_local6 == 1){
tutPanel.syarat2 = true;
};
};
if (((!((ePodArray[_local6].size == "royal"))) && ((ePodArray[_local6].tagging == false)))){
if ((((sound == true)) && ((ePodArray[_local6].captured == false)))){
_local7 = new cring();
_local7.play();
};
ePodArray[_local6].tagging = true;
};
if ((((ePodArray[_local6].size == "royal")) && ((ePodArray[_local6].tagging == false)))){
if ((((sound == true)) && ((ePodArray[_local6].captured == false)))){
_local8 = new cring();
_local8.play();
};
ePodArray[_local6].tagging = false;
};
};
_local6++;
};
};
if (((!((phases == "lanjut"))) || (!((phases == "Customize"))))){
if (eventss == false){
stage.addChild(panel);
};
};
if ((((phases == "lanjut")) || ((phases == "Customize")))){
myChannel.stop();
if (panel != null){
stage.removeChild(panel);
};
if ((((sound == true)) && ((lagu == false)))){
soundMenu = new BGMmenu();
myChannel = soundMenu.play(0, 9999);
lagu = true;
};
};
if (((!((panel == null))) && ((eventss == true)))){
panel.visible = false;
};
if (((((!((panel == null))) && ((eventss == false)))) && (!((phases == "Opening"))))){
panel.visible = true;
};
if (eC != null){
stage.addChild(eC);
};
eBesarTime = ((Math.random() * 200) + 1500);
totalArmor = ((((((armor1HP + armor2HP) + armor3HP) + armor4HP) + armor5HP) + armor6HP) + armor7HP);
if (currentRank == "ZURIA'S SOLDIER"){
expNeed = 500;
} else {
if (currentRank == "ROYAL GUARDIAN"){
expNeed = 600;
} else {
if (currentRank == "TERESTRIAL BEING"){
expNeed = 1400;
} else {
if (currentRank == "CELESTIAL LIGHT"){
expNeed = 3000;
} else {
if (currentRank == "GUARDIAN STAR"){
expNeed = 0;
};
};
};
};
};
setRank();
if (isPaused == false){
capturePosition();
fGTimer1 = (fGTimer1 + 1);
fGTimer2 = (fGTimer2 + 1);
fGSTimer = (fGSTimer + 1);
ePodTimer = (ePodTimer + 1);
royalTimer = (royalTimer + 1);
ePodBesarTimer = (ePodBesarTimer + 1);
if (assaultMode == true){
coolDownTimer = (coolDownTimer + 1);
if (eventss == false){
manaPoint = (manaPoint - 0.05);
};
panel.manaBar.scaleX = (manaPoint / maxMp);
if (coolDownTimer > 100){
coolDownTimer = 100;
};
} else {
if ((((assaultMode == false)) && ((manaPoint < maxMp)))){
manaPoint = (manaPoint + 0.02);
if (panel != null){
panel.manaBar.scaleX = (manaPoint / maxMp);
};
};
};
if (phases != "Customize"){
if ((((((((stageLevel == 1)) || ((stageLevel == 2)))) || ((stageLevel == 3)))) || ((stageLevel == 4)))){
if (fGTimer1 > ((Math.random() * 50) + 20)){
_local9 = new backGround1();
_local9.x = 700;
stage.addChildAt(_local9, 1);
_local9.gotoAndStop(stageLevel);
fGTimer1 = 0;
};
};
if (stageLevel == 5){
if (fGTimer1 > ((Math.random() * 50) + 40)){
_local10 = new backGround1();
_local10.x = 700;
_local10.y = (Math.random() * 200);
stage.addChildAt(_local10, 1);
_local10.gotoAndStop(stageLevel);
fGTimer1 = 0;
};
};
if (stageLevel == 8){
if (fGTimer1 > ((Math.random() * 50) + 60)){
_local11 = new backGround1();
_local11.x = 700;
_local11.y = ((Math.random() * 400) - 200);
stage.addChildAt(_local11, 1);
_local11.gotoAndStop(stageLevel);
fGTimer1 = 0;
};
};
if (fGTimer2 > ((Math.random() * 200) + 100)){
_local12 = new foreGround();
_local12.x = 700;
stage.addChildAt(_local12, stage.numChildren);
_local12.gotoAndStop(stageLevel);
fGTimer2 = 0;
};
if (fGSTimer > ((Math.random() * 40) + 10)){
_local13 = new speedEfek();
_local13.x = 700;
_local13.y = (Math.random() * 480);
stage.addChild(_local13);
fGSTimer = 0;
};
};
if ((((((((((ePodTimer > podRate)) && (!((phases == "Customize"))))) && (!((phases == "Summary"))))) && ((eventss == false)))) && ((healthPoint > 0)))){
makeEscapePod("kecil");
};
if ((((((((((royalTimer > (podRate + 300))) && (!((phases == "Customize"))))) && (!((phases == "Summary"))))) && ((eventss == false)))) && ((healthPoint > 0)))){
makeEscapePod("royal");
};
if ((((((((((((ePodBesarTimer > eBesarTime)) && ((ePodBesarArray.length == 0)))) && (!((phases == "Customize"))))) && (!((phases == "Summary"))))) && ((eventss == false)))) && ((healthPoint > 0)))){
makeEscapePod("besar");
};
if (player != null){
posX = player.x;
posY = player.y;
};
tarX = movingTarget.x;
tarY = movingTarget.y;
if ((((eventss == false)) && ((healthPoint > 0)))){
makeEnemies();
};
if ((((((enemiesLeft == 0)) && ((eventss == false)))) && (!((eList == null))))){
currentWave++;
currentEnemy = 0;
startWave();
eList.length = 0;
};
if ((((healthPoint > 0)) && (!((player == null))))){
_local14 = (player.x - mouseX);
_local15 = (player.y - mouseY);
};
if ((((lockedDown == false)) && (!((player == null))))){
player.y = (player.y - (_local15 / 10));
player.x = (player.x - (_local14 / 10));
};
if ((((lockedDown == true)) && (!((player == null))))){
player.x = (player.x - ((player.x - (GSEngine.bList[0].x - 100)) / 30));
player.y = (player.y - ((player.y - GSEngine.bList[0].y) / 30));
};
if (player != null){
if (player.x > 720){
player.x = 720;
} else {
if (player.x < 0){
player.x = 0;
} else {
if (player.y > 400){
player.y = 400;
} else {
if (player.y < 0){
player.y = 0;
};
};
};
};
};
};
if (movingTarget.y < 40){
mtDirection = 1;
} else {
if (movingTarget.y > 440){
mtDirection = 2;
};
};
if (mtDirection == 1){
movingTarget.y = (movingTarget.y + 6);
} else {
if (mtDirection == 2){
movingTarget.y = (movingTarget.y - 6);
};
};
if (movingTarget2.y < 40){
mtDirection2 = 1;
} else {
if (movingTarget2.y > 440){
mtDirection2 = 2;
};
};
if (mtDirection2 == 1){
movingTarget2.y = (movingTarget2.y + 6);
} else {
if (mtDirection2 == 2){
movingTarget2.y = (movingTarget2.y - 6);
};
};
updateHp = (healthPoint / maxHp);
updateMp = (manaPoint / maxMp);
if ((((finishedStage == true)) && ((assaultMode == true)))){
initializing();
attachShield = true;
if (initTimer > 120){
summary();
finishedStage = false;
} else {
initTimer++;
};
} else {
if ((((finishedStage == true)) && ((assaultMode == false)))){
if (initTimer > 150){
summary();
finishedStage = false;
} else {
initTimer++;
};
};
};
if ((((finishedStage == false)) && ((healthPoint <= 0)))){
if (initTimer > 150){
defeatSum();
initTimer = 0;
} else {
initTimer++;
};
};
if ((((((((((((((armor1HP < 0)) && ((armor2HP < 0)))) && ((armor3HP < 0)))) && ((armor4HP < 0)))) && ((armor5HP < 0)))) && ((armor6HP < 0)))) && ((armor7HP < 0)))){
assaultMode = false;
};
if ((((((assaultMode == true)) && ((coolDownTimer == 100)))) && ((manaPoint < 1)))){
assaultMode = false;
attachShield = true;
coolDownTimer = 0;
};
if (attachShield == true){
if (((((((((((((((((!((armor1 == null))) && ((armor1.radius < 15)))) && ((armor1HP > 0)))) || (((((!((armor2 == null))) && ((armor2.radius < 15)))) && ((armor2HP > 0)))))) || (((((!((armor3 == null))) && ((armor3.radius < 15)))) && ((armor3HP > 0)))))) || (((((!((armor4 == null))) && ((armor4.radius < 15)))) && ((armor4HP > 0)))))) || (((((!((armor5 == null))) && ((armor5.radius < 15)))) && ((armor5HP > 0)))))) || (((((!((armor6 == null))) && ((armor6.radius < 15)))) && ((armor6HP > 0)))))) || (((((!((armor7 == null))) && ((armor7.radius < 15)))) && ((armor7HP > 0)))))){
_local16 = new AMAnim();
stage.addChild(_local16);
_local16.x = 360;
_local16.y = 240;
_local17 = new AMAnim2();
stage.addChild(_local17);
_local17.x = posX;
_local17.y = posY;
if (sound == true){
AMfx = new steam();
AMfx.play();
};
GSEngine.attachShield = false;
GSEngine.shieldFix = true;
GSEngine.assaultMode = false;
};
};
if (isPaused == false){
if (a1S1CD > 0){
a1S1CD = (a1S1CD - 1);
};
if (a1S2CD > 0){
a1S2CD = (a1S2CD - 1);
};
if (a2S1CD > 0){
a2S1CD = (a2S1CD - 1);
};
if (a2S2CD > 0){
a2S2CD = (a2S2CD - 1);
};
if (a3S1CD > 0){
a3S1CD = (a3S1CD - 1);
};
if (a3S2CD > 0){
a3S2CD = (a3S2CD - 1);
};
if (a4S1CD > 0){
a4S1CD = (a4S1CD - 1);
};
if (a4S2CD > 0){
a4S2CD = (a4S2CD - 1);
};
if (a5S1CD > 0){
a5S1CD = (a5S1CD - 1);
};
if (a5S2CD > 0){
a5S2CD = (a5S2CD - 1);
};
};
if (njurus == true){
if (njurusApa == "Supernova"){
if (a1S1CD > 0){
if (panel != null){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((((((((((((((a1S1CD == 35)) || ((a1S1CD == 25)))) || ((a1S1CD == 18)))) || ((a1S1CD == 14)))) || ((a1S1CD == 10)))) || ((a1S1CD == 7)))) || ((a1S1CD == 5)))) || ((a1S1CD == 4)))){
if (sound == true){
charger = new charge();
charger.play();
};
if (sound == true){
ex1 = new lightEx();
ex1.play();
};
if ((((njurus == true)) && ((njurusApa == "Supernova")))){
_local18 = 0;
while (_local18 < 15) {
_local19 = new PlayerBullet();
stage.addChild(_local19);
_local19.x = player.x;
_local19.y = player.y;
_local19.tipeBullet = 19;
_local18++;
};
};
};
};
};
if (njurusApa == "Arc Shield"){
if (a1S2CD > 0){
if (sound == true){
energy.play(0);
};
if (panel != null){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((((((a1S2CD < 100)) && ((a1S2CD > 0)))) && (!((player == null))))) && (!((player.shield == null))))){
player.shield.play();
};
};
};
if (njurusApa == "Raging Sun"){
if ((((a1S1CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
};
if (njurusApa == "Burning Radiation"){
if ((((a1S2CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S2CD < 15)) && (!((player == null))))){
player.burN.play();
};
};
if (njurusApa == "Blue Ray"){
if ((((a1S1CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S1CD < 15)) && (!((player == null))))){
player.bRay.play();
};
};
if (njurusApa == "Deflect"){
if ((((a1S2CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S2CD < 15)) && (!((player == null))))){
player.defl.play();
};
};
if (njurusApa == "Global Warming"){
if (a1S1CD > 0){
_local20 = 0;
while (_local20 < 1) {
if (isPaused == false){
_local21 = new PlayerBullet();
stage.addChild(_local21);
_local21.x = (Math.random() * 720);
_local21.y = ((Math.random() * 50) - 60);
_local21.tipeBullet = 21;
};
_local20++;
};
if (panel != null){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
};
if ((((a1S1CD < 15)) && (!((panel == null))))){
panel.gWarm.play();
};
};
if (njurusApa == "Protect"){
if ((((a1S2CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S2CD < 15)) && (!((player == null))))){
player.prot.play();
};
};
if (njurusApa == "Gravitation"){
if ((((a1S1CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S1CD < 15)) && (!((panel == null))))){
panel.grav.play();
};
};
if (njurusApa == "Black Hole"){
if ((((a1S2CD > 0)) && (!((panel == null))))){
panel.cd1.visible = true;
panel.cd2.visible = true;
};
if ((((a1S2CD < 15)) && (!((player == null))))){
player.black.play();
};
};
};
if (isPaused == false){
if (itemCD > 0){
itemCD = (itemCD - 1);
};
if (buffCD > 0){
buffCD = (buffCD - 1);
};
if (skillCD > 0){
skillCD = (skillCD - 1);
};
};
};
};
if (bList[0] != null){
};
if ((((((shakeTimer > 0)) && (!((panel == null))))) && (!((player == null))))){
panel.x = (panel.x + (Math.round((Math.random() * 4)) - 2));
panel.y = (panel.y + (Math.round((Math.random() * 4)) - 2));
player.x = (player.x + (Math.round((Math.random() * 4)) - 2));
player.y = (player.y + (Math.round((Math.random() * 4)) - 2));
shakeTimer = (shakeTimer - 1);
};
if ((((shakeTimer == 0)) && (!((panel == null))))){
panel.x = 394;
panel.y = 455;
};
}
function Pencet(_arg1:Event):void{
if (death == false){
player.isDown = true;
};
if ((((((eventss == true)) && ((tutPanel.tutKe == 1)))) && ((tutPanel.syarat1 == false)))){
tutPanel.syarat1 = true;
};
}
function noPencet(_arg1:Event):void{
if (death == false){
player.isDown = false;
};
}
public function detectKey(_arg1:KeyboardEvent):void{
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:Sound;
var _local5:Sound;
var _local6:Sound;
if (((((((((!((initTimer == 500))) && ((initStage == false)))) && (!((stageComplete == true))))) && ((stageLevel == 1)))) && ((eventConversation.dialogKe > 2)))){
initTimer = 500;
eventConversation.dialogKe = 13;
tutPanel.tutKe = 6;
};
if ((((((_arg1.keyCode == 65)) && ((isPaused == false)))) && ((autoShoot == false)))){
autoShoot = true;
if ((((tutPanel.tutKe == 1)) && ((tutPanel.syarat2 == false)))){
tutPanel.syarat2 = true;
};
} else {
if ((((((_arg1.keyCode == 65)) && ((isPaused == false)))) && ((autoShoot == true)))){
autoShoot = false;
if ((((tutPanel.tutKe == 1)) && ((tutPanel.syarat2 == false)))){
tutPanel.syarat2 = true;
};
};
};
if ((((((((((((_arg1.keyCode == 27)) && ((isPaused == false)))) && ((eventss == false)))) && ((phases == "Action")))) && ((healthPoint > 0)))) && (!((healthPoint == 0))))){
paus = new pauseMenu();
paus.x = 360;
paus.y = 250;
stage.addChild(paus);
isPaused = true;
} else {
if ((((_arg1.keyCode == 27)) && ((isPaused == true)))){
stage.removeChild(paus);
isPaused = false;
};
};
if ((((((((((((((((_arg1.keyCode == 32)) && ((isPaused == false)))) && ((assaultMode == false)))) && ((attachShield == false)))) && ((manaPoint > 0)))) && ((phases == "Action")))) && ((finishedStage == false)))) && ((njurus == false)))){
if (tutPanel.tutKe == 2){
tutPanel.syarat1 = true;
};
if (sound == true){
AMfx = new steam();
AMfx.play();
};
_local2 = new AMAnim();
stage.addChild(_local2);
_local2.x = 360;
_local2.y = 240;
_local3 = new AMAnim2();
stage.addChild(_local3);
_local3.x = posX;
_local3.y = posY;
assaultMode = true;
makeShield();
} else {
if ((((((((((_arg1.keyCode == 32)) && ((isPaused == false)))) && ((assaultMode == true)))) && ((coolDownTimer == 100)))) && ((phases == "Action")))){
if (njurus == false){
assaultMode = false;
attachShield = true;
coolDownTimer = 0;
};
};
};
if ((((_arg1.keyCode == 49)) && ((assaultMode == true)))){
if (eventss == false){
useShortcut(shortCut1);
};
if ((((((eventss == true)) && ((tutPanel.tutKe == 3)))) && ((tutPanel.syarat1 == false)))){
useShortcut(shortCut1);
tutPanel.syarat1 = true;
};
} else {
if ((((_arg1.keyCode == 49)) && ((assaultMode == false)))){
munculWarning("You must be in ASSAULT MODE to use a special attack.");
};
};
if ((((_arg1.keyCode == 50)) && ((assaultMode == true)))){
if (eventss == false){
useShortcut(shortCut2);
};
if ((((((eventss == true)) && ((tutPanel.tutKe == 3)))) && ((tutPanel.syarat2 == false)))){
useShortcut(shortCut2);
tutPanel.syarat2 = true;
};
} else {
if ((((_arg1.keyCode == 50)) && ((assaultMode == false)))){
munculWarning("You must be in ASSAULT MODE to use a special attack.");
};
};
if (_arg1.keyCode == 51){
useShortcut(shortCut3);
if (GSEngine.sound == true){
_local4 = new warp();
_local4.play();
};
};
if (_arg1.keyCode == 52){
useShortcut(shortCut4);
if (GSEngine.sound == true){
_local5 = new warp();
_local5.play();
};
};
if (_arg1.keyCode == 53){
useShortcut(shortCut5);
if (GSEngine.sound == true){
_local6 = new warp();
_local6.play();
};
};
if ((((((_arg1.keyCode == 16)) && ((isPaused == false)))) && ((overideMode == false)))){
overideMode = true;
} else {
if ((((((_arg1.keyCode == 16)) && ((isPaused == false)))) && ((overideMode == true)))){
overideMode = false;
};
};
}
function makeEnemies():void{
var _local1:int;
var _local2:MovieClip;
var _local3:MovieClip;
if (eTimer < eDelay){
eTimer++;
} else {
if (stageLevel == 1){
arrayUsed = enemyArray[(currentWave - 1)][currentEnemy];
if (currentWave > enemyArray.length){
currentWave = 1;
currentEnemy = 0;
enemiesLeft = 0;
};
};
if (stageLevel == 2){
arrayUsed = enemyArray2[(currentWave - 1)][currentEnemy];
if (currentWave > enemyArray2.length){
currentWave = 1;
currentEnemy = 0;
enemiesLeft = 0;
};
} else {
if (stageLevel == 3){
arrayUsed = enemyArray3[(currentWave - 1)][currentEnemy];
if (currentWave > enemyArray3.length){
currentWave = 1;
currentEnemy = 0;
enemiesLeft = 0;
};
} else {
if (stageLevel == 4){
arrayUsed = enemyArray4[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 5){
arrayUsed = enemyArray5[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 6){
arrayUsed = enemyArray6[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 7){
arrayUsed = enemyArray7[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 8){
arrayUsed = enemyArray8[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 9){
arrayUsed = enemyArray9[(currentWave - 1)][currentEnemy];
} else {
if (stageLevel == 10){
arrayUsed = enemyArray10[(currentWave - 1)][currentEnemy];
};
};
};
};
};
};
};
};
};
_local1 = arrayUsed;
if (_local1 != 0){
if ((((((_local1 < 101)) && ((currentBoss == 0)))) && (!((phases == "Summary"))))){
_local2 = new Enemy(_local1);
addChild(_local2);
currentEnemy++;
} else {
if ((((((((_local1 >= 101)) && ((_local1 < 199)))) && ((currentBoss == 0)))) && ((stageComplete == false)))){
panel.warn.play();
if (sound == true){
warnS = new warningMP3();
warnS.play();
};
panel.warn.visible = true;
_local3 = new Boss(_local1);
_local3.x = 1000;
_local3.y = 200;
addChild(_local3);
bBar = new bossBar();
bBar.x = 15;
bBar.y = 10;
addChild(bBar);
currentBoss++;
};
};
};
eTimer = 0;
eCode = _local1;
eDelay = Enemy.EDdelay;
};
}
function makeSpecialEnemies(_arg1){
var _local2:MovieClip;
_local2 = new Enemy(_arg1);
stage.addChild(_local2);
}
public function makeShield(){
if (armor1HP > 0){
armor1 = new Armor1();
armor1.scaleX = 0.8;
armor1.scaleY = 0.8;
stage.addChild(armor1);
armor1.gotoAndStop(armorType);
};
if (armor2HP > 0){
armor2 = new Armor2();
armor2.scaleX = 0.8;
armor2.scaleY = 0.8;
stage.addChild(armor2);
armor2.gotoAndStop(armorType);
};
if (armor3HP > 0){
armor3 = new Armor3();
armor3.x = (this.x - 4);
armor3.y = (this.y - 20);
armor3.scaleX = 0.8;
armor3.scaleY = 0.8;
stage.addChild(armor3);
armor3.gotoAndStop(armorType);
};
if (armor4HP > 0){
armor4 = new Armor4();
armor4.scaleX = 0.9;
armor4.scaleY = 0.9;
stage.addChild(armor4);
armor4.gotoAndStop(armorType);
};
if (armor5HP > 0){
armor5 = new Armor5();
armor5.scaleX = 0.8;
armor5.scaleY = 0.8;
stage.addChild(armor5);
armor5.gotoAndStop(armorType);
};
if (armor6HP > 0){
armor6 = new Armor6();
armor6.scaleX = 0.8;
armor6.scaleY = 0.8;
stage.addChild(armor6);
armor6.gotoAndStop(armorType);
};
if (armor7HP > 0){
armor7 = new Armor7();
armor7.scaleX = 0.8;
armor7.scaleY = 0.8;
stage.addChild(armor7);
armor7.gotoAndStop(armorType);
};
}
public function removeShield(){
if (armor1 != null){
armor1.removeA1();
};
if (armor2 != null){
armor2.removeA2();
};
if (armor3 != null){
armor3.removeA3();
};
if (armor4 != null){
armor4.removeA4();
};
if (armor5 != null){
armor5.removeA5();
};
if (armor6 != null){
armor6.removeA6();
};
if (armor7 != null){
armor7.removeA7();
};
}
function takeDamage2(){
}
function takeDamage(_arg1){
var _local2:int;
var _local3:Sound;
if (sound == true){
_local3 = new kenaHit();
_local3.play();
};
_local2 = Math.round(((Math.random() * 6) + 1));
panel.hpBar.scaleX = (healthPoint / maxHp);
if ((((((((((((((armor1HP <= 0)) && ((armor2HP <= 0)))) && ((armor3HP <= 0)))) && ((armor4HP <= 0)))) && ((armor5HP <= 0)))) && ((armor6HP <= 0)))) && ((armor7HP <= 0)))){
healthPoint = (healthPoint - _arg1);
};
if (_local2 == 1){
if (armor1HP > 0){
armor1HP = (armor1HP - _arg1);
} else {
if (armor1HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 2){
if (armor2HP > 0){
armor2HP = (armor2HP - _arg1);
} else {
if (armor2HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 3){
if (armor3HP > 0){
armor3HP = (armor3HP - _arg1);
} else {
if (armor3HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 4){
if (armor4HP > 0){
armor4HP = (armor4HP - _arg1);
} else {
if (armor4HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 5){
if (armor5HP > 0){
armor5HP = (armor5HP - _arg1);
} else {
if (armor5HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 6){
if (armor6HP > 0){
armor6HP = (armor6HP - _arg1);
} else {
if (armor6HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
} else {
if (_local2 == 7){
if (armor7HP > 0){
armor7HP = (armor7HP - _arg1);
} else {
if (armor7HP < 0){
healthPoint = (healthPoint - _arg1);
};
};
};
};
};
};
};
};
};
}
public function makeEscapePod(_arg1){
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
_local2 = 0;
while (_local2 < 1) {
if (stageLevel == 1){
royalPodChange = 30;
};
if (stageLevel == 2){
royalPodChange = 30;
};
if (stageLevel == 3){
royalPodChange = 40;
};
if (stageLevel == 4){
royalPodChange = 40;
};
if (stageLevel == 5){
royalPodChange = 40;
};
if (stageLevel == 6){
royalPodChange = 50;
};
if (stageLevel == 7){
royalPodChange = 50;
};
if (stageLevel == 8){
royalPodChange = 50;
};
if (stageLevel == 9){
royalPodChange = 60;
};
if (stageLevel == 10){
royalPodChange = 60;
};
if ((((_arg1 == "royal")) && ((royalPodChange < (Math.random() * 50))))){
_local4 = new EscapePod("royal");
_local4.size = "royal";
_local4.x = 900;
_local4.y = ((Math.random() * 450) + 25);
stage.addChild(_local4);
royalTimer = 0;
};
if (_arg1 == "kecil"){
_local3 = new EscapePod("kecil");
_local3.size = "kecil";
_local3.x = -100;
stage.addChildAt(_local3, stage.getChildIndex(player));
if (eventss == true){
_local3.y = ((Math.random() * 150) + 50);
} else {
_local3.y = ((Math.random() * 350) + 50);
};
ePodTimer = 0;
ePodLeft = (ePodLeft + 1);
} else {
if (_arg1 == "besar"){
_local3 = new EscapePod("besar");
_local3.size = "besar";
_local3.x = 900;
_local3.y = 240;
stage.addChildAt(_local3, stage.getChildIndex(player));
ePodBesarTimer = 0;
};
};
_local2++;
};
}
public function playerDeath(){
if (healthPoint < 0){
death = true;
healthPoint = 0;
stage.removeChild(player);
removeShield();
};
}
public function setRank(){
if ((((currentRank == "ZURIA'S SOLDIER")) && ((exps > expNeed)))){
currentRank = "ROYAL GUARDIAN";
exps = 0;
pT.rank.text = "ROYAL GUARDIAN";
} else {
if ((((currentRank == "ROYAL GUARDIAN")) && ((exps > expNeed)))){
currentRank = "TERESTRIAL BEING";
exps = 0;
pT.rank.text = "TERESTRIAL BEING";
} else {
if ((((currentRank == "TERESTRIAL BEING")) && ((exps > expNeed)))){
currentRank = "CELESTIAL LIGHT";
exps = 0;
pT.rank.text = "CELESTIAL LIGHT";
} else {
if ((((currentRank == "CELESTIAL LIGHT")) && ((exps > expNeed)))){
currentRank = "GUARDIAN STAR";
exps = 0;
pT.rank.text = "GUARDIAN STAR";
};
};
};
};
}
public function removeAllElements(){
var _local1:*;
var _local2:*;
var _local3:*;
if (armor1 != null){
armor1.removeA1();
};
if (armor2 != null){
armor2.removeA2();
};
if (armor3 != null){
armor3.removeA3();
};
if (armor4 != null){
armor4.removeA4();
};
if (armor5 != null){
armor5.removeA5();
};
if (armor6 != null){
armor6.removeA6();
};
if (armor7 != null){
armor7.removeA7();
};
if (critUp != null){
critUp.gotoAndStop(critUp.totalFrames);
};
if (armUp != null){
armUp.gotoAndStop(armUp.totalFrames);
};
if (rateUp != null){
rateUp.gotoAndStop(rateUp.totalFrames);
};
if (dropUp != null){
dropUp.gotoAndStop(dropUp.totalFrames);
};
if (((!((stage == null))) && (!((panel == null))))){
stage.removeChild(panel);
};
if (player != null){
player.destroyPlayer();
};
if (ePodLeft != 0){
};
for (_local1 in eList) {
eList[_local1].deleteReset();
eList.splice(_local1, 1);
};
for (_local2 in ePodArray) {
ePodArray[_local2].removeThis();
};
for (_local3 in ePodBesarArray) {
ePodBesarArray[_local3].removeThis();
};
if (((!((movingTarget == null))) && (!((stage == null))))){
stage.removeChild(movingTarget);
};
if (((!((movingTarget2 == null))) && (!((stage == null))))){
stage.removeChild(movingTarget2);
};
}
public function addPod(_arg1:int, _arg2:int){
var _local3:*;
if ((((currentWave == _arg1)) && ((currentEnemy == _arg2)))){
_local3 = new EscapePod("kecil");
_local3.size = "kecil";
_local3.x = -100;
_local3.y = ((Math.random() * 400) + 50);
stage.addChildAt(_local3, stage.getChildIndex(player));
};
}
function setArmor(){
if (armorType == 1){
armor1HP = 20;
armor2HP = 20;
armor3HP = 20;
armor4HP = 20;
armor5HP = 20;
armor6HP = 20;
armor7HP = 20;
armor1HPMax = 20;
armor2HPMax = 20;
armor3HPMax = 20;
armor4HPMax = 20;
armor5HPMax = 20;
armor6HPMax = 20;
armor7HPMax = 20;
} else {
if (armorType == 2){
GSEngine.armor1HP = 30;
GSEngine.armor2HP = 30;
GSEngine.armor3HP = 30;
GSEngine.armor4HP = 30;
GSEngine.armor5HP = 30;
GSEngine.armor6HP = 30;
GSEngine.armor7HP = 30;
armor1HPMax = 30;
armor2HPMax = 30;
armor3HPMax = 30;
armor4HPMax = 30;
armor5HPMax = 30;
armor6HPMax = 30;
armor7HPMax = 30;
} else {
if (armorType == 3){
GSEngine.armor1HP = 43;
GSEngine.armor2HP = 43;
GSEngine.armor3HP = 43;
GSEngine.armor4HP = 43;
GSEngine.armor5HP = 43;
GSEngine.armor6HP = 43;
GSEngine.armor7HP = 43;
armor1HPMax = 43;
armor2HPMax = 43;
armor3HPMax = 43;
armor4HPMax = 43;
armor5HPMax = 43;
armor6HPMax = 43;
armor7HPMax = 43;
} else {
if (armorType == 4){
GSEngine.armor1HP = 55;
GSEngine.armor2HP = 55;
GSEngine.armor3HP = 55;
GSEngine.armor4HP = 55;
GSEngine.armor5HP = 55;
GSEngine.armor6HP = 55;
GSEngine.armor7HP = 55;
armor1HPMax = 55;
armor2HPMax = 55;
armor3HPMax = 55;
armor4HPMax = 55;
armor5HPMax = 55;
armor6HPMax = 55;
armor7HPMax = 55;
} else {
if (armorType == 5){
GSEngine.armor1HP = 70;
GSEngine.armor2HP = 70;
GSEngine.armor3HP = 70;
GSEngine.armor4HP = 70;
GSEngine.armor5HP = 70;
GSEngine.armor6HP = 70;
GSEngine.armor7HP = 70;
armor1HPMax = 70;
armor2HPMax = 70;
armor3HPMax = 70;
armor4HPMax = 70;
armor5HPMax = 70;
armor6HPMax = 70;
armor7HPMax = 70;
};
};
};
};
};
}
function useShortcut(_arg1){
var _local2:int;
var _local3:MovieClip;
var _local4:Sound;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
if ((((njurus == false)) && ((skillCD == 0)))){
if ((((((_arg1 == "Supernova")) && ((a1S1CD == 0)))) && ((manaPoint > 20)))){
player.nova.play();
_local2 = 0;
while (_local2 < 10) {
_local3 = new PlayerBullet();
stage.addChild(_local3);
_local3.x = player.x;
_local3.y = player.y;
_local3.tipeBullet = 19;
_local2++;
};
if (eventss == false){
manaPoint = (manaPoint - 20);
};
njurus = true;
njurusApa = "Supernova";
a1S2CD = 40;
a1S1CD = 40;
} else {
if ((((((_arg1 == "Supernova")) && ((a1S1CD == 0)))) && ((manaPoint < 20)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Arc Shield")) && ((a1S2CD == 0)))) && ((manaPoint > 30)))){
if (player.shield.currentFrame == 2){
player.shield.play();
};
if (sound == true){
energy.play();
};
if (eventss == false){
manaPoint = (manaPoint - 15);
};
njurus = true;
njurusApa = "Arc Shield";
a1S1CD = 300;
a1S2CD = 300;
} else {
if ((((((_arg1 == "Arc Shield")) && ((a1S2CD == 0)))) && ((manaPoint < 30)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Raging Sun")) && ((a2S1CD == 0)))) && ((manaPoint > 60)))){
if (sound == true){
rumbleFx = new quake();
rumbleFx.play();
};
if (sound == true){
energy.play();
};
sunN = new ragSun();
stage.addChild(sunN);
sunN.gotoAndPlay(1);
sunN.x = player.x;
sunN.y = player.y;
manaPoint = (manaPoint - 60);
njurus = true;
njurusApa = "Raging Sun";
a1S2CD = 400;
a1S1CD = 400;
} else {
if ((((((_arg1 == "Raging Sun")) && ((a2S1CD == 0)))) && ((manaPoint < 60)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Burning Radiation")) && ((a2S2CD == 0)))) && ((manaPoint > 50)))){
player.burN.play();
manaPoint = (manaPoint - 50);
if (sound == true){
energy.play();
};
njurus = true;
njurusApa = "Burning Radiation";
a1S1CD = 300;
a1S2CD = 300;
} else {
if ((((((_arg1 == "Burning Radiation")) && ((a1S2CD == 0)))) && ((manaPoint < 50)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Blue Ray")) && ((a1S1CD == 0)))) && ((manaPoint > 70)))){
if (sound == true){
_local4 = new laser();
_local4.play();
};
player.bRay.play();
manaPoint = (manaPoint - 70);
njurus = true;
njurusApa = "Blue Ray";
a1S2CD = 200;
a1S1CD = 200;
} else {
if ((((((_arg1 == "Blue Ray")) && ((a1S1CD == 0)))) && ((manaPoint < 70)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Deflect")) && ((a1S2CD == 0)))) && ((manaPoint > 70)))){
player.defl.play();
manaPoint = (manaPoint - 70);
njurus = true;
njurusApa = "Deflect";
a1S1CD = 350;
a1S2CD = 350;
} else {
if ((((((_arg1 == "Deflect")) && ((a1S2CD == 0)))) && ((manaPoint < 70)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Global Warming")) && ((a1S1CD == 0)))) && ((manaPoint > 100)))){
if (sound == true){
energy.play();
};
panel.gWarm.play();
manaPoint = (manaPoint - 100);
njurus = true;
njurusApa = "Global Warming";
a1S2CD = 200;
a1S1CD = 200;
} else {
if ((((((_arg1 == "Global Warming")) && ((a1S1CD == 0)))) && ((manaPoint < 100)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Protect")) && ((a1S2CD == 0)))) && ((manaPoint > 100)))){
player.prot.play();
manaPoint = (manaPoint - 100);
njurus = true;
njurusApa = "Protect";
if (sound == true){
energy.play();
};
a1S1CD = 200;
a1S2CD = 200;
} else {
if ((((((_arg1 == "Protect")) && ((a1S2CD == 0)))) && ((manaPoint < 100)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Black Hole")) && ((a1S1CD == 0)))) && ((manaPoint > 150)))){
if (sound == true){
energy.play();
};
player.black.play();
manaPoint = (manaPoint - 150);
njurus = true;
njurusApa = "Black Hole";
a1S2CD = 200;
a1S1CD = 200;
} else {
if ((((((_arg1 == "Black Hole")) && ((a1S1CD == 0)))) && ((manaPoint < 150)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Gravitation")) && ((a1S2CD == 0)))) && ((manaPoint > 150)))){
panel.grav.play();
if (sound == true){
rumbleFx = new quake();
rumbleFx.play();
};
if (sound == true){
energy.play();
};
manaPoint = (manaPoint - 150);
njurus = true;
njurusApa = "Gravitation";
a1S1CD = 200;
a1S2CD = 200;
} else {
if ((((((_arg1 == "Gravitation")) && ((a1S2CD == 0)))) && ((manaPoint < 150)))){
munculWarning("You don't have enough ENERGY.");
};
};
if ((((((_arg1 == "Red Energy")) && ((itemCD == 0)))) && ((redEnergy > 0)))){
_local5 = new Effect();
_local5.x = player.x;
_local5.y = player.y;
stage.addChild(_local5);
_local5.type = 25;
itemCD = 100;
redEnergy = (redEnergy - 1);
healthPoint = (healthPoint + 30);
} else {
if ((((((_arg1 == "Red Energy")) && ((itemCD == 0)))) && ((redEnergy == 0)))){
munculWarning("Insufficient red energy.");
};
};
if ((((((((_arg1 == "Blue Energy")) && ((itemCD == 0)))) && ((blueEnergy > 0)))) && (!((manaPoint == maxMp))))){
_local6 = new Effect();
_local6.x = player.x;
_local6.y = player.y;
stage.addChild(_local6);
_local6.type = 26;
itemCD = 100;
blueEnergy = (blueEnergy - 1);
manaPoint = (manaPoint + 70);
} else {
if ((((((_arg1 == "Blue Energy")) && ((itemCD == 0)))) && ((blueEnergy == 0)))){
munculWarning("Insufficient blue energy.");
};
};
if ((((((((_arg1 == "Blue Energy")) && ((itemCD == 0)))) && ((blueEnergy > 0)))) && ((totalArmorHP <= 0)))){
munculWarning("You don't have any armor.");
};
trace(manaPoint, maxMp);
if ((((((((_arg1 == "Blue Energy")) && ((itemCD == 0)))) && ((manaPoint == maxMp)))) && ((totalArmorHP > 0)))){
munculWarning("You have full energy.");
};
if ((((((((((_arg1 == "Yellow Energy")) && ((itemCD == 0)))) && ((yellowEnergy > 0)))) && ((totalArmorHP > 0)))) && ((aFull == false)))){
_local7 = new Effect();
_local7.x = player.x;
_local7.y = player.y;
stage.addChild(_local7);
_local7.type = 27;
itemCD = 100;
yellowEnergy = (yellowEnergy - 1);
if (armor1HP > 0){
armor1HP = (armor1HP + 15);
};
if (armor2HP > 0){
armor2HP = (armor2HP + 15);
};
if (armor3HP > 0){
armor3HP = (armor3HP + 15);
};
if (armor4HP > 0){
armor4HP = (armor4HP + 15);
};
if (armor5HP > 0){
armor5HP = (armor5HP + 15);
};
if (armor6HP > 0){
armor6HP = (armor6HP + 15);
};
if (armor7HP > 0){
armor7HP = (armor7HP + 15);
};
} else {
if ((((((_arg1 == "Yellow Energy")) && ((itemCD == 0)))) && ((yellowEnergy == 0)))){
munculWarning("Insufficient yellow energy.");
} else {
if ((((((((_arg1 == "Yellow Energy")) && ((itemCD == 0)))) && ((yellowEnergy > 0)))) && ((totalArmorHP <= 0)))){
munculWarning("You don't have any armor.");
} else {
if ((((((((_arg1 == "Yellow Energy")) && ((itemCD == 0)))) && ((yellowEnergy > 0)))) && ((aFull == true)))){
munculWarning("Your armor is already full.");
};
};
};
};
if ((((((((((itemTimer1 == 0)) && ((_arg1 == "critChipset")))) && ((a1S3CD == 0)))) && ((criticalChipset > 0)))) && ((ngebuff == false)))){
critUp = new tambahCRIT();
critUp.x = player.x;
critUp.y = player.y;
stage.addChild(critUp);
ngebuff = true;
a1S3CD = 120;
criticalChipset = (criticalChipset - 1);
plusCrit = (plusCrit + 40);
itemTimer1 = 120;
} else {
if ((((((_arg1 == "critChipset")) && ((a1S3CD == 0)))) && ((criticalChipset == 0)))){
munculWarning("Insufficient critical chipset.");
};
};
if ((((((((((itemTimer2 == 0)) && ((_arg1 == "Dragon Scale")))) && ((a1S3CD == 0)))) && ((dragonScale > 0)))) && ((ngebuff == false)))){
armUp = new tambahAR();
armUp.x = player.x;
armUp.y = player.y;
stage.addChild(armUp);
ngebuff = true;
a1S3CD = 100;
dragonScale = (dragonScale - 1);
plusDef = 1;
itemTimer2 = 100;
} else {
if ((((((_arg1 == "Dragon Scale")) && ((a1S3CD == 0)))) && ((dragonScale == 0)))){
munculWarning("Insufficient dragon scale.");
};
};
if ((((((((((itemTimer3 == 0)) && ((_arg1 == "Pertamax Fuel")))) && ((a1S3CD == 0)))) && ((pertamaxFuel > 0)))) && ((ngebuff == false)))){
rateUp = new tambahRATE();
rateUp.x = (player.x - 30);
rateUp.y = (player.y + 10);
stage.addChild(rateUp);
ngebuff = true;
a1S3CD = 110;
pertamaxFuel = (pertamaxFuel - 1);
plusRate = -4;
itemTimer3 = 110;
} else {
if ((((((_arg1 == "Pertamax Fuel")) && ((a1S3CD == 0)))) && ((pertamaxFuel == 0)))){
munculWarning("Insufficient pertamax fuel.");
};
};
if ((((((((((itemTimer4 == 0)) && ((_arg1 == "Atom Decompiler")))) && ((a1S3CD == 0)))) && ((atomDecompiler > 0)))) && ((ngebuff == false)))){
dropUp = new tambahDROP();
dropUp.x = (player.x - 30);
dropUp.y = (player.y + 10);
stage.addChild(dropUp);
ngebuff = true;
a1S3CD = 120;
atomDecompiler = (atomDecompiler - 1);
plusDrop = 3;
itemTimer4 = 120;
} else {
if ((((((_arg1 == "Atom Decompiler")) && ((a1S3CD == 0)))) && ((atomDecompiler == 0)))){
munculWarning("Insufficient atom decompiler.");
};
};
};
}
function checkSkill(){
if (armorType == 1){
skill1 = "Supernova";
shortCut1 = "Supernova";
skill2 = "Arc Shield";
shortCut2 = "Arc Shield";
};
if (armorType == 2){
if (a2S1 == true){
skill1 = "Raging Sun";
shortCut1 = "Raging Sun";
} else {
skill1 = "none";
shortCut1 = "none";
};
if (a2S2 == true){
skill2 = "Burning Radiation";
shortCut2 = "Burning Radiation";
} else {
skill2 = "none";
shortCut2 = "none";
};
};
if (armorType == 3){
if (a3S1 == true){
skill1 = "Blue Ray";
shortCut1 = "Blue Ray";
} else {
skill1 = "none";
shortCut1 = "none";
};
if (a3S2 == true){
skill2 = "Deflect";
shortCut2 = "Deflect";
} else {
skill2 = "none";
shortCut2 = "none";
};
};
if (armorType == 4){
if (a4S1 == true){
skill1 = "Global Warming";
shortCut1 = "Global Warming";
} else {
skill1 = "none";
shortCut1 = "none";
};
if (a4S2 == true){
skill2 = "Protect";
shortCut2 = "Protect";
} else {
skill2 = "none";
shortCut2 = "none";
};
};
if (armorType == 5){
if (a5S1 == true){
skill1 = "Gravitation";
shortCut1 = "Gravitation";
} else {
skill1 = "none";
shortCut1 = "none";
};
if (a5S2 == true){
skill2 = "Black Hole";
shortCut2 = "Black Hole";
} else {
skill2 = "none";
shortCut2 = "none";
};
};
}
function checkCoolDown(){
if ((((((shortCut1 == "Supernova")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd1.visible = false;
};
if ((((((shortCut2 == "Arc Shield")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd2.visible = false;
};
if ((((((shortCut1 == "Raging Sun")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd1.visible = false;
};
if ((((((shortCut2 == "Burning Radiation")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd2.visible = false;
};
if ((((((shortCut1 == "Blue Ray")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd1.visible = false;
};
if ((((((shortCut2 == "Deflect")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd2.visible = false;
};
if ((((((shortCut1 == "Global Warming")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd1.visible = false;
};
if ((((((shortCut2 == "Protect")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd2.visible = false;
};
if ((((((shortCut1 == "Black Hole")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd1.visible = false;
};
if ((((((shortCut2 == "Gravitation")) && ((njurus == false)))) && (!((panel == null))))){
panel.cd2.visible = false;
};
if ((((itemCD == 0)) && (!((panel == null))))){
if ((((((((((((((shortCut3 == "Red Energy")) || ((shortCut3 == "Blue Energy")))) || ((shortCut3 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = false;
panel.cd4.visible = false;
panel.cd5.visible = false;
};
if ((((((((((((((shortCut4 == "Red Energy")) || ((shortCut4 == "Blue Energy")))) || ((shortCut4 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = false;
panel.cd4.visible = false;
panel.cd5.visible = false;
};
if ((((((((((((((shortCut5 == "Red Energy")) || ((shortCut5 == "Blue Energy")))) || ((shortCut5 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = false;
panel.cd4.visible = false;
panel.cd5.visible = false;
};
};
if ((((itemCD > 0)) && (!((panel == null))))){
if ((((((((((((((shortCut3 == "Red Energy")) || ((shortCut3 == "Blue Energy")))) || ((shortCut3 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = true;
panel.cd4.visible = true;
panel.cd5.visible = true;
};
if ((((((((((((((shortCut4 == "Red Energy")) || ((shortCut4 == "Blue Energy")))) || ((shortCut4 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = true;
panel.cd4.visible = true;
panel.cd5.visible = true;
};
if ((((((((((((((shortCut5 == "Red Energy")) || ((shortCut5 == "Blue Energy")))) || ((shortCut5 == "Yellow Energy")))) || ((shortCut3 == "critChipset")))) || ((shortCut3 == "Dragon Scale")))) || ((shortCut3 == "Pertamax Fuel")))) || ((shortCut3 == "Atom Decompiler")))){
panel.cd3.visible = true;
panel.cd4.visible = true;
panel.cd5.visible = true;
};
};
}
function munculWarning(_arg1){
if (((!((warning == null))) && (!((warning.parent == null))))){
warning.parent.removeChild(warning);
};
warning = new warningNote();
warning.x = 360;
warning.y = 50;
warning.gotoAndPlay(1);
warning.wText.wIsiText.text = _arg1;
addChild(warning);
}
function eventConversations(){
if ((((stageLevel == 1)) && ((stage1 == false)))){
eC = new eventConversation();
eC.x = 492;
eC.y = 307;
stage.addChildAt(eC, 0);
eventss = true;
};
}
function frame1(){
stop();
abs_url = "http://agi.armorgames.com/assets/agi/ABS.swf";
Security.allowDomain(abs_url);
agiURL = "http://agi.armorgames.com/assets/agi/AGI2.swf";
Security.allowDomain("agi.armorgames.com");
loader2 = new Loader();
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
});
loader2.contentLoaderInfo.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
var e = _arg1;
agi = e.currentTarget.content;
agi.connect({stage:stage, apiKey:"4D770762-9E86-4CE5-8B83-13E42E71DCEC", callback:function (_arg1:Object):void{
if (_arg1.success){
} else {
trace(_arg1.error);
};
}});
});
loader2.load(new URLRequest(agiURL));
urlRequest = new URLRequest(abs_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
}
function frame2(){
stop();
if (abs != null){
removeChild(abs);
};
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadComplete);
}
public static function resetSave(){
hiScore = 0;
lastStagePodS = 0;
menuGabungan.curWeaponDisplay = 1;
armorType = 1;
weaponType = 1;
currentRank = "ZURIA'S SOLDIER";
exps = 0;
podSave = 0;
hpLevel = 1;
mpLevel = 1;
agiLevel = 1;
critLevel = 1;
weapon1fireRate = 3;
weapon2fireRate = 3;
weapon3fireRate = 3;
weapon4fireRate = 3;
weapon5fireRate = 3;
weapon6fireRate = 3;
weapon1Level = 3;
weapon2Level = 3;
weapon3Level = 3;
weapon4Level = 3;
weapon5Level = 3;
weapon6Level = 3;
stageFinished = 0;
stageLevel = 1;
spark = 0;
ore = 0;
scrapMetal = 0;
starDust = 0;
crystal = 0;
meteorPiece = 0;
flyingStone = 0;
remethin = 0;
fiberConnection = 0;
ionizedFluid = 0;
manaStone = 0;
battery = 0;
luminaFruit = 0;
azuriaCarbon = 0;
blackCrumb = 0;
sparkFuse = 0;
lightWeb = 0;
guardianStarMedal = 0;
royalRing = 0;
hearthOfKhaleonia = 0;
antimater = 0;
redEnergy = 2;
blueEnergy = 1;
yellowEnergy = 0;
bitModule = 0;
criticalChipset = 1;
linker = 0;
dragonScale = 0;
sparkLimiter = 0;
pertamaxFuel = 0;
atomDecompiler = 0;
a1S1 = true;
a1S2 = true;
a2S1 = true;
a2S2 = true;
a3S1 = true;
a3S2 = true;
a4S1 = true;
a4S2 = true;
a5S1 = true;
a5S2 = true;
a6S1 = true;
a6S2 = true;
enemiesKilled = 0;
bossKilled = 0;
armorArray = [1];
weaponArray = [1];
shortCut1 = "Supernova";
shortCut2 = "Arc Shield";
shortCut3 = "none";
shortCut4 = "none";
shortCut5 = "none";
weaponSell1 = true;
weaponSell2 = false;
weaponSell3 = false;
weaponSell4 = false;
weaponSell5 = false;
weaponSell6 = false;
stage1 = false;
stage2 = false;
stage3 = false;
stage4 = false;
stage5 = false;
stage6 = false;
stage7 = false;
stage8 = false;
stage9 = false;
stage10 = false;
secretStage1 = false;
secretStage2 = false;
secretStage3 = false;
secretStage4 = false;
secretStage5 = false;
secretStage6 = false;
stage2Obj1 = false;
stage3Obj1 = false;
stage3Obj2 = false;
stage4Obj1 = false;
stage5Obj1 = false;
stage5Obj2 = false;
stage6Obj1 = false;
stage7Obj1 = false;
stage7Obj2 = false;
stage8Obj1 = false;
stage8Obj2 = false;
stage9Obj1 = false;
stage10Obj1 = false;
mySharedObject.data.hiScore = 0;
mySharedObject.data.stage2Obj1 = false;
mySharedObject.data.stage3Obj1 = false;
mySharedObject.data.stage3Obj2 = false;
mySharedObject.data.stage4Obj1 = false;
mySharedObject.data.stage5Obj1 = false;
mySharedObject.data.stage5Obj2 = false;
mySharedObject.data.stage6Obj1 = false;
mySharedObject.data.stage7Obj1 = false;
mySharedObject.data.stage7Obj2 = false;
mySharedObject.data.stage8Obj1 = false;
mySharedObject.data.stage8Obj2 = false;
mySharedObject.data.stage9Obj1 = false;
mySharedObject.data.stage10Obj1 = false;
mySharedObject.data.lastStagePodS = 0;
mySharedObject.data.armorType = armorType;
mySharedObject.data.weaponType = 1;
mySharedObject.data.currentRank = currentRank;
mySharedObject.data.exps = exps;
mySharedObject.data.podSave = podSave;
mySharedObject.data.armorArray = armorArray;
mySharedObject.data.hpLevel = hpLevel;
mySharedObject.data.mpLevel = mpLevel;
mySharedObject.data.agiLevel = agiLevel;
mySharedObject.data.critLevel = critLevel;
mySharedObject.data.hpLevel = hpLevel;
mySharedObject.data.mpLevel = mpLevel;
mySharedObject.data.agiLevel = agiLevel;
mySharedObject.data.critLevel = critLevel;
mySharedObject.data.weapon1fireRate = weapon1fireRate;
mySharedObject.data.weapon2fireRate = weapon2fireRate;
mySharedObject.data.weapon3fireRate = weapon3fireRate;
mySharedObject.data.weapon4fireRate = weapon4fireRate;
mySharedObject.data.weapon5fireRate = weapon5fireRate;
mySharedObject.data.weapon6fireRate = weapon6fireRate;
mySharedObject.data.weapon1Level = weapon1Level;
mySharedObject.data.weapon2Level = weapon2Level;
mySharedObject.data.weapon3Level = weapon3Level;
mySharedObject.data.weapon4Level = weapon4Level;
mySharedObject.data.weapon5Level = weapon5Level;
mySharedObject.data.weapon6Level = weapon6Level;
mySharedObject.data.stageFinished = stageFinished;
mySharedObject.data.stageLevel = stageLevel;
mySharedObject.data.spark = spark;
mySharedObject.data.ore = ore;
mySharedObject.data.scrapMetal = scrapMetal;
mySharedObject.data.starDust = starDust;
mySharedObject.data.crystal = crystal;
mySharedObject.data.meteorPiece = meteorPiece;
mySharedObject.data.flyingStone = flyingStone;
mySharedObject.data.remethin = remethin;
mySharedObject.data.fiberConnection = fiberConnection;
mySharedObject.data.ionizedFluid = ionizedFluid;
mySharedObject.data.manaStone = manaStone;
mySharedObject.data.battery = battery;
mySharedObject.data.luminaFruit = luminaFruit;
mySharedObject.data.azuriaCarbon = azuriaCarbon;
mySharedObject.data.blackCrumb = blackCrumb;
mySharedObject.data.sparkFuse = sparkFuse;
mySharedObject.data.lightWeb = lightWeb;
mySharedObject.data.guardianStarMedal = guardianStarMedal;
mySharedObject.data.royalRing = royalRing;
mySharedObject.data.hearthOfKhaleonia = hearthOfKhaleonia;
mySharedObject.data.antimater = antimater;
mySharedObject.data.redEnergy = redEnergy;
mySharedObject.data.blueEnergy = blueEnergy;
mySharedObject.data.yellowEnergy = yellowEnergy;
mySharedObject.data.bitModule = bitModule;
mySharedObject.data.criticalChipset = criticalChipset;
mySharedObject.data.linker = linker;
mySharedObject.data.dragonScale = dragonScale;
mySharedObject.data.sparkLimiter = sparkLimiter;
mySharedObject.data.pertamaxFuel = pertamaxFuel;
mySharedObject.data.atomDecompiler = atomDecompiler;
mySharedObject.data.a1S1 = a1S1;
mySharedObject.data.a1S2 = a1S2;
mySharedObject.data.a2S1 = a2S1;
mySharedObject.data.a2S2 = a2S2;
mySharedObject.data.a3S1 = a3S1;
mySharedObject.data.a3S2 = a3S2;
mySharedObject.data.a4S1 = a4S1;
mySharedObject.data.a4S2 = a4S2;
mySharedObject.data.a5S1 = a5S1;
mySharedObject.data.a5S2 = a5S2;
mySharedObject.data.a6S1 = a6S1;
mySharedObject.data.a6S2 = a6S2;
mySharedObject.data.enemiesKilled = enemiesKilled;
mySharedObject.data.bossKilled = bossKilled;
mySharedObject.data.weaponArray = weaponArray;
mySharedObject.data.shortCut1 = shortCut1;
mySharedObject.data.shortCut2 = shortCut2;
mySharedObject.data.shortCut3 = shortCut3;
mySharedObject.data.shortCut4 = shortCut4;
mySharedObject.data.shortCut5 = shortCut5;
mySharedObject.data.weaponSell1 = weaponSell1;
mySharedObject.data.weaponSell2 = weaponSell2;
mySharedObject.data.weaponSell3 = weaponSell3;
mySharedObject.data.weaponSell4 = weaponSell4;
mySharedObject.data.weaponSell5 = weaponSell5;
mySharedObject.data.weaponSell6 = weaponSell6;
mySharedObject.data.stage1 = false;
mySharedObject.data.stage2 = false;
mySharedObject.data.stage3 = false;
mySharedObject.data.stage4 = false;
mySharedObject.data.stage5 = false;
mySharedObject.data.stage6 = false;
mySharedObject.data.stage7 = false;
mySharedObject.data.stage8 = false;
mySharedObject.data.stage9 = false;
mySharedObject.data.stage10 = stage10;
mySharedObject.data.secretStage1 = secretStage1;
mySharedObject.data.secretStage2 = secretStage2;
mySharedObject.data.secretStage3 = secretStage3;
mySharedObject.data.secretStage4 = secretStage4;
mySharedObject.data.secretStage5 = secretStage5;
mySharedObject.data.secretStage6 = secretStage6;
mySharedObject.data.dodgeRate = dodgeRate;
save2an = 0;
mySharedObject.data.save2an = 0;
mySharedObject.flush();
}
public static function createmM(){
mM = new mainMenu();
}
public static function checkStage(){
}
public static function tintPlayer(){
thisTintColour.setTint(4294901760, 0.75);
player.base.transform.colorTransform = thisTintColour;
player.armor1.transform.colorTransform = thisTintColour;
player.armor2.transform.colorTransform = thisTintColour;
player.armor3.transform.colorTransform = thisTintColour;
player.armor4.transform.colorTransform = thisTintColour;
player.armor5.transform.colorTransform = thisTintColour;
player.armor6.transform.colorTransform = thisTintColour;
player.armor7.transform.colorTransform = thisTintColour;
tintTimer = 1;
}
}
}//package
Section 157
//hint (hint)
package {
import flash.display.*;
public dynamic class hint extends MovieClip {
}
}//package
Section 158
//initStage1 (initStage1)
package {
import flash.display.*;
public dynamic class initStage1 extends MovieClip {
public function initStage1(){
addFrameScript(0, frame1, 63, frame64);
}
function frame1(){
stop();
}
function frame64(){
GSEngine.isPaused = false;
GSEngine.initStage = true;
if (this != null){
this.parent.removeChild(this);
};
}
}
}//package
Section 159
//jetEnemy (jetEnemy)
package {
import flash.display.*;
public dynamic class jetEnemy extends MovieClip {
}
}//package
Section 160
//kenaHit (kenaHit)
package {
import flash.media.*;
public dynamic class kenaHit extends Sound {
}
}//package
Section 161
//ketBuyArmor (ketBuyArmor)
package {
import flash.text.*;
import flash.display.*;
public dynamic class ketBuyArmor extends MovieClip {
public var armorPrice:TextField;
public var rankReq:TextField;
public var buyAReqItem1Have:TextField;
public var buyAReqItem2Have:TextField;
public var buyAReqItem3Have:TextField;
}
}//package
Section 162
//ketBuyW_AOM_SW (ketBuyW_AOM_SW)
package {
import flash.text.*;
import flash.display.*;
public dynamic class ketBuyW_AOM_SW extends MovieClip {
public var etcRankReq:TextField;
public var etcPrice:TextField;
}
}//package
Section 163
//ketReqSubWeapon (ketReqSubWeapon)
package {
import flash.text.*;
import flash.display.*;
public dynamic class ketReqSubWeapon extends MovieClip {
public var buySWReqItem1Have:TextField;
}
}//package
Section 164
//ketReqWeapon (ketReqWeapon)
package {
import flash.display.*;
public dynamic class ketReqWeapon extends MovieClip {
}
}//package
Section 165
//Key (Key)
package {
import flash.display.*;
import flash.events.*;
public class Key {
private static var initialized:Boolean = false;
private static var keysDown:Object = new Object();
public static function initialize(_arg1:Stage){
if (!initialized){
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
_arg1.addEventListener(Event.DEACTIVATE, clearKeys);
initialized = true;
};
}
public static function isDown(_arg1:uint):Boolean{
return (Boolean((_arg1 in keysDown)));
}
private static function keyPressed(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
private static function keyReleased(_arg1:KeyboardEvent):void{
if ((_arg1.keyCode in keysDown)){
delete keysDown[_arg1.keyCode];
};
}
private static function clearKeys(_arg1:Event):void{
keysDown = new Object();
}
}
}//package
Section 166
//keyBind (keyBind)
package {
import flash.display.*;
public dynamic class keyBind extends MovieClip {
public var closeB:MovieClip;
}
}//package
Section 167
//kotakSubWeapon (kotakSubWeapon)
package {
import flash.display.*;
public dynamic class kotakSubWeapon extends MovieClip {
public var highlightSubWeapon:MovieClip;
}
}//package
Section 168
//laser (laser)
package {
import flash.media.*;
public dynamic class laser extends Sound {
}
}//package
Section 169
//lasKecil (lasKecil)
package {
import flash.media.*;
public dynamic class lasKecil extends Sound {
}
}//package
Section 170
//ledakan2 (ledakan2)
package {
import flash.display.*;
public dynamic class ledakan2 extends MovieClip {
public function ledakan2(){
addFrameScript(6, frame7);
}
function frame7(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 171
//ledakanBatu2 (ledakanBatu2)
package {
import flash.display.*;
public dynamic class ledakanBatu2 extends MovieClip {
public function ledakanBatu2(){
addFrameScript(8, frame9);
}
function frame9(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 172
//ledakanMusuh2 (ledakanMusuh2)
package {
import flash.display.*;
public dynamic class ledakanMusuh2 extends MovieClip {
public function ledakanMusuh2(){
addFrameScript(12, frame13);
}
function frame13(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 173
//ledakanMusuhSing (ledakanMusuhSing)
package {
import flash.display.*;
public dynamic class ledakanMusuhSing extends MovieClip {
}
}//package
Section 174
//ledKecil (ledKecil)
package {
import flash.media.*;
public dynamic class ledKecil extends Sound {
}
}//package
Section 175
//lightEx (lightEx)
package {
import flash.media.*;
public dynamic class lightEx extends Sound {
}
}//package
Section 176
//LootItem (LootItem)
package {
import flash.display.*;
import flash.events.*;
public class LootItem extends MovieClip {
var idleTimer:int;
private var _root:MovieClip;
var loot:Number;
var lootName:String;
var addOnLength:int;
var duitMultiplier:int;// = 1
static var lList:Array = new Array();
public function LootItem(){
addFrameScript(0, frame1);
lList.push(this);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED, beginClass);
idleTimer = 0;
}
private function beginClass(_arg1:Event):void{
_root = MovieClip(root);
}
public function eFrame(_arg1:Event):void{
if ((((GSEngine.phases == "Main")) || ((GSEngine.phases == "Costumize")))){
removeThis();
};
if (GSEngine.stageLevel == 1){
duitMultiplier = 1;
};
if (GSEngine.stageLevel == 2){
duitMultiplier = 1.2;
};
if (GSEngine.stageLevel == 3){
duitMultiplier = 1.5;
};
if (GSEngine.stageLevel == 4){
duitMultiplier = 1.7;
};
if (GSEngine.stageLevel == 5){
duitMultiplier = 2;
};
if (GSEngine.stageLevel == 6){
duitMultiplier = 2.2;
};
if (GSEngine.stageLevel == 7){
duitMultiplier = 2.5;
};
if (GSEngine.stageLevel == 8){
duitMultiplier = 2.7;
};
if (GSEngine.stageLevel == 9){
duitMultiplier = 3;
};
if (GSEngine.stageLevel == 10){
duitMultiplier = 3;
};
addOnLength = (GSEngine.addOnArray.length + 1);
if (GSEngine.phases == "Customize"){
removeThis();
};
if ((((((GSEngine.isPaused == false)) && (!((this == null))))) && (!((GSEngine.player == null))))){
this.x = (this.x - 0.9);
this.y = (this.y + 0.4);
idleTimer = (idleTimer + 1);
if (idleTimer > 30){
if (((this.hitTestObject(GSEngine.player.playerPeri)) && ((GSEngine.healthPoint > 0)))){
GSEngine.collS = 1;
switch (loot){
case 1:
lootName = "Spark";
GSEngine.spark = (GSEngine.spark + (100 * duitMultiplier));
addEffect(18);
GSEngine.sparkEarned = (GSEngine.sparkEarned + (100 * duitMultiplier));
break;
case 2:
lootName = "Ore";
GSEngine.ore = (GSEngine.ore + 1);
addEffect(19);
checklootArray("Ore", 1);
break;
case 3:
lootName = "Scrap Metal";
GSEngine.scrapMetal = (GSEngine.scrapMetal + 1);
addEffect(19);
checklootArray("Scrap Metal", 1);
break;
case 4:
lootName = "Star Dust";
GSEngine.starDust = (GSEngine.starDust + 1);
addEffect(19);
checklootArray("Star Dust", 1);
break;
case 5:
lootName = "Crystal";
GSEngine.crystal = (GSEngine.crystal + 1);
addEffect(19);
checklootArray("Crystal", 1);
break;
case 6:
lootName = "Meteor Piece";
GSEngine.meteorPiece = (GSEngine.meteorPiece + 1);
addEffect(19);
checklootArray("Meteor Piece", 1);
break;
case 7:
lootName = "Flying Stone";
GSEngine.flyingStone = (GSEngine.flyingStone + 1);
addEffect(19);
checklootArray("Flying Stone", 1);
break;
case 8:
lootName = "Remethin";
GSEngine.remethin = (GSEngine.remethin + 1);
addEffect(19);
checklootArray("Remethin", 1);
break;
case 9:
lootName = "Fiber Connection";
GSEngine.fiberConnection = (GSEngine.fiberConnection + 1);
addEffect(19);
checklootArray("Fiber Connection", 1);
break;
case 10:
lootName = "Ionized Fluid";
GSEngine.ionizedFluid = (GSEngine.ionizedFluid + 1);
addEffect(19);
checklootArray("Ionized Fluid", 1);
break;
case 11:
lootName = "Mana Stone";
GSEngine.manaStone = (GSEngine.manaStone + 1);
addEffect(19);
checklootArray("Mana Stone", 1);
break;
case 12:
lootName = "Battery";
GSEngine.battery = (GSEngine.battery + 1);
addEffect(19);
checklootArray("Battery", 1);
break;
case 13:
lootName = "Lumina Fruit";
GSEngine.luminaFruit = (GSEngine.luminaFruit + 1);
addEffect(19);
checklootArray("Lumina Fruit", 1);
break;
case 14:
lootName = "Azuria Carbon";
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon + 1);
addEffect(19);
checklootArray("Azuria Carbon", 1);
break;
case 15:
lootName = "Black Crumb";
GSEngine.blackCrumb = (GSEngine.blackCrumb + 1);
addEffect(19);
checklootArray("Black Crumb", 1);
break;
case 16:
lootName = "Spark Fuse";
GSEngine.sparkFuse = (GSEngine.sparkFuse + 1);
checklootArray("Spark Fuse", 1);
addEffect(19);
break;
case 17:
lootName = "Light Web";
GSEngine.lightWeb = (GSEngine.lightWeb + 1);
addEffect(20);
checklootArray("Light Web", 1);
break;
case 18:
lootName = "Guardian Star Medal";
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal + 1);
addEffect(20);
checklootArray("Guardian Star Medal", 1);
break;
case 19:
lootName = "Royal Ring";
GSEngine.royalRing = (GSEngine.royalRing + 1);
addEffect(20);
checklootArray("Royal Ring", 1);
trace("19", GSEngine.royalRing);
break;
case 20:
lootName = "Hearth of Khaleonia";
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia + 1);
addEffect(20);
checklootArray("Hearth of Khaleonia", 1);
break;
case 21:
lootName = "Antimater";
GSEngine.antimater = (GSEngine.antimater + 1);
addEffect(20);
checklootArray("Antimater", 1);
break;
case 22:
lootName = "Red Energy";
GSEngine.redEnergy = (GSEngine.redEnergy + 1);
addEffect(19);
checklootArray("Red Energy", 1);
break;
case 23:
lootName = "Blue Energy";
GSEngine.blueEnergy = (GSEngine.blueEnergy + 1);
addEffect(19);
checklootArray("Blue Energy", 1);
break;
case 24:
lootName = "Yellow Energy";
GSEngine.yellowEnergy = (GSEngine.yellowEnergy + 1);
addEffect(19);
checklootArray("Yellow Energy", 1);
break;
case 25:
lootName = "Bit Module";
if (GSEngine.bitModule == 0){
GSEngine.addOnArray.push(1);
};
GSEngine.bitModule = (GSEngine.bitModule + 1);
addEffect(21);
break;
case 26:
lootName = "Critical Chipset";
GSEngine.criticalChipset = (GSEngine.criticalChipset + 1);
addEffect(21);
checklootArray("Critical Chipset", 1);
break;
case 27:
lootName = "Linker";
GSEngine.linker = (GSEngine.linker + 1);
addEffect(21);
checklootArray("Linker", 1);
break;
case 28:
lootName = "Dragon Scale";
GSEngine.dragonScale = (GSEngine.dragonScale + 1);
addEffect(21);
checklootArray("Dragon Scale", 1);
break;
case 29:
lootName = "Spark Limiter";
GSEngine.sparkLimiter = (GSEngine.sparkLimiter + 1);
addEffect(21);
checklootArray("Spark Limiter", 1);
break;
case 30:
lootName = "Pertamax Fuel";
GSEngine.pertamaxFuel = (GSEngine.pertamaxFuel + 1);
addEffect(21);
checklootArray("Pertamax Fuel", 1);
break;
case 31:
lootName = "Atom Decompiler";
GSEngine.atomDecompiler = (GSEngine.atomDecompiler + 1);
addEffect(21);
checklootArray("Atom Decompiler", 1);
break;
};
removeThis();
};
};
if (this.x < 10){
removeThis();
} else {
if (this.x > 650){
removeThis();
} else {
if (this.y < -10){
removeThis();
} else {
if (this.y > 490){
removeThis();
};
};
};
};
};
}
function checklootArray(_arg1, _arg2){
var _local3:*;
if (GSEngine.jenisLootArray != null){
for (_local3 in GSEngine.jenisLootArray) {
if (((!((GSEngine.jenisLootArray[_local3] == _arg1))) && ((GSEngine.jenisLootArray[_local3] == "none")))){
GSEngine.jenisLootArray[_local3] = _arg1;
GSEngine.jumlahLootArray[_local3] = (GSEngine.jumlahLootArray[_local3] + 1);
break;
} else {
if (GSEngine.jenisLootArray[_local3] == _arg1){
GSEngine.jumlahLootArray[_local3] = (GSEngine.jumlahLootArray[_local3] + 1);
break;
};
};
};
};
trace(GSEngine.jenisLootArray, GSEngine.jumlahLootArray);
}
public function addEffect(_arg1){
var _local2:MovieClip;
if (((!((this == null))) && (!((stage == null))))){
_local2 = new Effect();
_local2.x = this.x;
_local2.y = this.y;
_local2.type = _arg1;
stage.addChild(_local2);
};
}
public function removeThis(){
var _local1:*;
if (((!((this == null))) && (!((this.parent == null))))){
for (_local1 in lList) {
if (lList[_local1] == this){
delete lList[_local1];
};
};
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED, beginClass);
};
}
function frame1(){
stop();
}
}
}//package
Section 177
//lootReq (lootReq)
package {
import flash.display.*;
public dynamic class lootReq extends MovieClip {
public function lootReq(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 178
//mainMenu (mainMenu)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
public class mainMenu extends MovieClip {
public var conButtonMati:MovieClip;
public var agBut:MovieClip;
public var nGButton:MovieClip;
public var likeButton:MovieClip;
public var credPanel:MovieClip;
public var startConfirm:MovieClip;
public var credButton:MovieClip;
public var conButton:MovieClip;
public var dmBut:MovieClip;
public var moreButton:MovieClip;
public var overButton:Sound;
public var klikButton:Sound;
public function mainMenu(){
addFrameScript(397, frame398, 403, frame404, 422, frame423);
startConfirm.visible = false;
credPanel.visible = false;
addEventListener(Event.ENTER_FRAME, eFrame);
dmBut.addEventListener(MouseEvent.CLICK, toDmWeb);
}
public function onOut(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(1);
}
public function onOver(_arg1:MouseEvent):void{
if (GSEngine.sound == true){
overButton.play();
};
_arg1.target.gotoAndStop(2);
}
public function onClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLRequest;
var _local4:URLRequest;
var _local5:URLRequest;
if (_arg1.target == likeButton){
_local2 = new URLRequest("http://www.facebook.com/ArmorGames");
navigateToURL(_local2, "_blank");
};
if (_arg1.target == credButton){
credPanel.visible = true;
if (GSEngine.sound == true){
klikButton.play();
};
if (startConfirm.visible == true){
startConfirm.visible = false;
};
};
if (_arg1.target == credPanel.agBut){
_local3 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local3, "_blank");
};
if (_arg1.target == credPanel.dmBut){
_local4 = new URLRequest("https://www.facebook.com/dmaestergames/");
navigateToURL(_local4, "_blank");
};
if (_arg1.target == credPanel.credClose){
credPanel.visible = false;
if (GSEngine.sound == true){
overButton.play();
};
};
if (_arg1.target == moreButton){
_local5 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local5, "_blank");
};
}
function toDmWeb(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("https://www.facebook.com/dmaestergames/");
navigateToURL(_local2, "_blank");
}
function eFrame(_arg1:Event):void{
if ((((GSEngine.exits == true)) && ((this.currentFrame < 337)))){
trace("SKIP");
this.gotoAndPlay(337);
trace(this.currentFrame);
};
}
function frame398(){
stop();
overButton = new overButtonS();
klikButton = new confirmKlik();
likeButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
likeButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
likeButton.addEventListener(MouseEvent.CLICK, onClick);
nGButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
conButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
credButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
moreButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
nGButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
conButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
credButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
moreButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
credButton.addEventListener(MouseEvent.CLICK, onClick);
moreButton.addEventListener(MouseEvent.CLICK, onClick);
credPanel.credClose.addEventListener(MouseEvent.CLICK, onClick);
startConfirm.YButt.addEventListener(MouseEvent.CLICK, onClick);
agBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
dmBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
moreButton.addEventListener(MouseEvent.CLICK, onClick);
dmBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.agBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
credPanel.dmBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
credPanel.agBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.dmBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.agBut.addEventListener(MouseEvent.CLICK, onClick);
credPanel.dmBut.addEventListener(MouseEvent.CLICK, onClick);
if (GSEngine.save2an == 0){
conButton.visible = false;
conButtonMati.visible = true;
};
if (GSEngine.save2an == 1){
conButton.visible = true;
conButtonMati.visible = false;
};
}
function frame404(){
nGButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
conButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
credButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
moreButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
nGButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
conButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
credButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
moreButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
credButton.removeEventListener(MouseEvent.CLICK, onClick);
moreButton.removeEventListener(MouseEvent.CLICK, onClick);
likeButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
likeButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
likeButton.removeEventListener(MouseEvent.CLICK, onClick);
agBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
dmBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
dmBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.agBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
credPanel.dmBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
credPanel.agBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.dmBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
credPanel.agBut.removeEventListener(MouseEvent.CLICK, onClick);
credPanel.dmBut.removeEventListener(MouseEvent.CLICK, onClick);
}
function frame423(){
this.parent.removeChild(this);
}
}
}//package
Section 179
//menuBuy (menuBuy)
package {
import flash.events.*;
import flash.text.*;
import flash.display.*;
public class menuBuy extends MovieClip {
public var kategoriAtas:pencetKaKi;
public var jenisKanan:pencetKaKi;
public var kategoriBawah:pencetKaKi;
public var buyArmorReq:ketBuyArmor;
public var etcReq:ketBuyW_AOM_SW;
public var w1:MovieClip;
public var ketBuyArmors:TextField;
public var arFrameHighlight:MovieClip;
public var w2:MovieClip;
public var w3:MovieClip;
public var buyArmorKanan:pencetKaKi;
public var sWDisplay:MovieClip;
public var w4:MovieClip;
public var w5:MovieClip;
public var buyAReqItem3:lootReq;
public var w6:MovieClip;
public var buyAReqItem2:lootReq;
public var ketKategoriNJenis:TextField;
public var buyAReqItem1:lootReq;
public var jenisKiri:pencetKaKi;
public var buyArmorName:TextField;
public var purArmorButton:buyUpButton;
public var kategoriNJenis:TextField;
public var buyArIcon:MovieClip;
public var buyArmorKiri:pencetKaKi;
public var buyEquipHighlight:MovieClip;
public var purEtc:buyUpButton;
var jenisSubWeapon:int;// = 1
var jenisWeapon:int;// = 1
var hargaWeapon:int;
var hargaSubWeapon:int;
var kategoriBeli:String;// = "WEAPON"
var namaSenjata:String;// = "Spark"
var namaSubSenjata:String;// = "Mine Cluster"
var weaponSellArray:Array;
var armorSellArray:Array;
var subWeaponSellArray:Array;
static var armorSell:int;
public function menuBuy(){
weaponSellArray = new Array();
armorSellArray = new Array();
subWeaponSellArray = new Array();
super();
weaponSellArray = [2, 3, 4, 5, 6];
armorSellArray = [2, 3, 4, 5, 6];
subWeaponSellArray = [1, 2, 3, 4, 5, 6];
kategoriNJenis.text = ((kategoriBeli + " ") + namaSenjata);
w1.visible = false;
w2.visible = false;
w3.visible = false;
w4.visible = false;
w5.visible = false;
w6.visible = false;
sWDisplay.visible = false;
addEventListener(Event.ENTER_FRAME, eFrame);
kategoriAtas.addEventListener(MouseEvent.MOUSE_OVER, onOver);
kategoriBawah.addEventListener(MouseEvent.MOUSE_OVER, onOver);
jenisKanan.addEventListener(MouseEvent.MOUSE_OVER, onOver);
jenisKiri.addEventListener(MouseEvent.MOUSE_OVER, onOver);
buyArmorKiri.addEventListener(MouseEvent.MOUSE_OVER, onOver);
buyArmorKanan.addEventListener(MouseEvent.MOUSE_OVER, onOver);
purArmorButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
purEtc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
kategoriAtas.addEventListener(MouseEvent.MOUSE_OUT, onOut);
kategoriBawah.addEventListener(MouseEvent.MOUSE_OUT, onOut);
jenisKanan.addEventListener(MouseEvent.MOUSE_OUT, onOut);
jenisKiri.addEventListener(MouseEvent.MOUSE_OUT, onOut);
buyArmorKiri.addEventListener(MouseEvent.MOUSE_OUT, onOut);
buyArmorKanan.addEventListener(MouseEvent.MOUSE_OUT, onOut);
purArmorButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
purEtc.addEventListener(MouseEvent.MOUSE_OUT, onOut);
kategoriAtas.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
kategoriBawah.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
jenisKanan.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
jenisKiri.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
buyArmorKiri.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
buyArmorKanan.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
purArmorButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
purEtc.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
armorSell = 1;
}
function eFrame(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (kategoriBeli == "WEAPON"){
sWDisplay.visible = false;
if (jenisWeapon == 1){
namaSenjata = "Spark";
hargaWeapon = 0;
etcReq.etcPrice.text = "Owned!";
ketKategoriNJenis.text = "Standart weapon with bullet powered by spark. You owned it.";
w1.visible = true;
w2.visible = false;
w3.visible = false;
w4.visible = false;
w5.visible = false;
w6.visible = false;
};
if (jenisWeapon == 2){
namaSenjata = "Plasma Cannon";
hargaWeapon = 10000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "Old fashion technology of plasma, but yet strong and fast.";
etcReq.etcRankReq.text = "ROYAL GUARDIAN";
w1.visible = false;
w2.visible = true;
w3.visible = false;
w4.visible = false;
w5.visible = false;
w6.visible = false;
} else {
if (jenisWeapon == 3){
namaSenjata = "Electron";
hargaWeapon = 20000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "A breakthru in quantumn physic that applied on this weapon. It can shoot a high charge electrisity particle";
etcReq.etcRankReq.text = "TERESTRIAL BEING";
w1.visible = false;
w2.visible = false;
w3.visible = true;
w4.visible = false;
w5.visible = false;
w6.visible = false;
} else {
if (jenisWeapon == 4){
namaSenjata = "Gattling Gun";
hargaWeapon = 32500;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "High fire rate automatic weapon. Can shoot up to 10 bullet per second, somethimes can pierce through enemy ship";
etcReq.etcRankReq.text = "CELESTIAL LIGHT";
w1.visible = false;
w2.visible = false;
w3.visible = false;
w4.visible = true;
w5.visible = false;
w6.visible = false;
} else {
if (jenisWeapon == 5){
namaSenjata = "Laser";
hargaWeapon = 50000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "New technology of laser that can shoot through solid object, equiped with additional support weapon";
etcReq.etcRankReq.text = "GUARDIAN STAR";
w1.visible = false;
w2.visible = false;
w3.visible = false;
w4.visible = false;
w5.visible = true;
w6.visible = false;
} else {
if (jenisWeapon == 6){
namaSenjata = "Blaster";
hargaWeapon = 75000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "The most effective weapon for swarm of enemy ship. Every time it hit something it emmit extraordinary forces.";
etcReq.etcRankReq.text = "GUARDIAN STAR";
w1.visible = false;
w2.visible = false;
w3.visible = false;
w4.visible = false;
w5.visible = false;
w6.visible = true;
};
};
};
};
};
for (_local2 in GSEngine.weaponArray) {
if (jenisWeapon == GSEngine.weaponArray[_local2]){
etcReq.etcPrice.text = "Owned!";
};
};
};
if (kategoriBeli == "SUB WEAPON"){
w1.visible = false;
w2.visible = false;
w3.visible = false;
w4.visible = false;
w5.visible = false;
w6.visible = false;
sWDisplay.visible = true;
if (jenisSubWeapon == 1){
namaSenjata = "Mara Gun";
hargaWeapon = 17500;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "Additional spark of Mara, the stollen technology from Mara Tribe that found on North side.";
etcReq.etcRankReq.text = "ROYAL GUARDIAN";
sWDisplay.sW1.visible = true;
sWDisplay.sW2.visible = false;
sWDisplay.sW3.visible = false;
sWDisplay.sW4.visible = false;
sWDisplay.sW5.visible = false;
sWDisplay.sW6.visible = false;
} else {
if (jenisSubWeapon == 2){
namaSenjata = "M13 Flak Cannon";
hargaWeapon = 35000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "Its very effective against armored enemy ship. It been modified according to ancient weapon.";
etcReq.etcRankReq.text = "TERESTRIAL BEING";
sWDisplay.sW1.visible = false;
sWDisplay.sW2.visible = true;
sWDisplay.sW3.visible = false;
sWDisplay.sW4.visible = false;
sWDisplay.sW5.visible = false;
sWDisplay.sW6.visible = false;
} else {
if (jenisSubWeapon == 3){
namaSenjata = "Homming Needle";
hargaWeapon = 50000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "The effective weapon that will chase the target anywhere it move.";
etcReq.etcRankReq.text = "CELESTIAL LIGHT";
sWDisplay.sW1.visible = false;
sWDisplay.sW2.visible = false;
sWDisplay.sW3.visible = true;
sWDisplay.sW4.visible = false;
sWDisplay.sW5.visible = false;
sWDisplay.sW6.visible = false;
} else {
if (jenisSubWeapon == 4){
namaSenjata = "Compacted Cluster";
hargaWeapon = 75000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "It deploy several smaller bullet that scatered all over the place.";
etcReq.etcRankReq.text = "CELESTIAL LIGHT";
sWDisplay.sW1.visible = false;
sWDisplay.sW2.visible = false;
sWDisplay.sW3.visible = false;
sWDisplay.sW4.visible = true;
sWDisplay.sW5.visible = false;
sWDisplay.sW6.visible = false;
} else {
if (jenisSubWeapon == 5){
namaSenjata = "Aerial Mine";
hargaWeapon = 100000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "Scater numerous mine that explode one enemy contact. It usefull against swarm of enemy.";
etcReq.etcRankReq.text = "GUARDIAN STAR";
sWDisplay.sW1.visible = false;
sWDisplay.sW2.visible = false;
sWDisplay.sW3.visible = false;
sWDisplay.sW4.visible = false;
sWDisplay.sW5.visible = true;
sWDisplay.sW6.visible = false;
} else {
if (jenisSubWeapon == 6){
namaSenjata = "Gamma Laser";
hargaWeapon = 110000;
etcReq.etcPrice.text = hargaWeapon.toString();
ketKategoriNJenis.text = "Laser weapon that damage directly at enemy engine, give a huge damage over time";
etcReq.etcRankReq.text = "GUARDIAN STAR";
sWDisplay.sW1.visible = false;
sWDisplay.sW2.visible = false;
sWDisplay.sW3.visible = false;
sWDisplay.sW4.visible = false;
sWDisplay.sW5.visible = false;
sWDisplay.sW6.visible = true;
};
};
};
};
};
};
for (_local3 in GSEngine.subWeaponArray) {
if (jenisSubWeapon == GSEngine.subWeaponArray[_local3]){
etcReq.etcPrice.text = "Owned!";
};
};
};
kategoriNJenis.text = ((kategoriBeli + " ") + namaSenjata);
buyArIcon.gotoAndStop(armorSell);
if (armorSell == 1){
buyArmorName.text = "WHITE SUN";
ketBuyArmors.text = "Standart Guardian Star Armor, a white pearly metal made out of precious Ramament metal and forged with energy from Zuria's Sun itself. This armor are already available for you as a Zuria's soldier.";
buyArmorReq.rankReq.text = "ZURIA'S SOLDIER";
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
};
if (armorSell == 2){
buyArmorName.text = "ALDEBARAN LIGHTS";
ketBuyArmors.text = "Armor Imbuse with core of Aldebaran Star System Forbiden Energy It’ll boost your defense to the Max. It got regenerated over time so it will be a good choice for defending the Escape Pod.";
for (_local4 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local4] != 2){
buyArmorReq.rankReq.text = "ROYAL GUARDIAN";
buyArmorReq.armorPrice.text = "10.000";
buyAReqItem1.visible = true;
buyAReqItem2.visible = true;
buyAReqItem3.visible = true;
buyArmorReq.buyAReqItem1Have.visible = true;
buyArmorReq.buyAReqItem2Have.visible = true;
buyArmorReq.buyAReqItem3Have.visible = true;
buyAReqItem1.gotoAndStop(3);
buyAReqItem2.gotoAndStop(4);
buyAReqItem3.gotoAndStop(5);
buyArmorReq.buyAReqItem1Have.text = ((GSEngine.scrapMetal.toString() + "/") + 40);
buyArmorReq.buyAReqItem2Have.text = ((GSEngine.starDust.toString() + "/") + 20);
buyArmorReq.buyAReqItem3Have.text = ((GSEngine.crystal.toString() + "/") + 20);
};
if (GSEngine.armorArray[_local4] == 2){
buyArmorReq.rankReq.visible = false;
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
break;
};
};
};
if (armorSell == 3){
buyArmorName.text = "BELT ORION";
ketBuyArmors.text = "Strong padded and scaly blue armor that have a special atribute when fuse it into the Guardian Star cores energy. It'll deflect most of damage its takken.";
buyArmorReq.rankReq.text = "TERESTRIAL BEING";
for (_local5 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local5] != 3){
buyArmorReq.rankReq.visible = true;
buyArmorReq.armorPrice.text = "25.000";
buyAReqItem1.gotoAndStop(6);
buyAReqItem2.gotoAndStop(7);
buyAReqItem3.gotoAndStop(8);
buyAReqItem1.visible = true;
buyAReqItem2.visible = true;
buyAReqItem3.visible = true;
buyArmorReq.buyAReqItem1Have.visible = true;
buyArmorReq.buyAReqItem2Have.visible = true;
buyArmorReq.buyAReqItem3Have.visible = true;
buyArmorReq.buyAReqItem1Have.text = ((GSEngine.meteorPiece.toString() + "/") + 40);
buyArmorReq.buyAReqItem2Have.text = ((GSEngine.flyingStone.toString() + "/") + 20);
buyArmorReq.buyAReqItem3Have.text = ((GSEngine.remethin.toString() + "/") + 20);
};
if (GSEngine.armorArray[_local5] == 3){
buyArmorReq.rankReq.visible = false;
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
break;
};
};
};
if (armorSell == 4){
buyArmorName.text = "THE EYE OF POLARIS";
ketBuyArmors.text = "Fuse with strong ancient energy, Crafted at the peak of Polar Mountain and Modified by high civilization of El' Zura. As if the armor has many eyes.";
buyArmorReq.rankReq.text = "CELESTIAL LIGHT";
for (_local6 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local6] != 4){
buyArmorReq.rankReq.visible = true;
buyArmorReq.armorPrice.text = "50.000";
buyAReqItem1.visible = true;
buyAReqItem2.visible = true;
buyAReqItem3.visible = true;
buyArmorReq.buyAReqItem1Have.visible = true;
buyArmorReq.buyAReqItem2Have.visible = true;
buyArmorReq.buyAReqItem3Have.visible = true;
} else {
buyArmorReq.rankReq.visible = false;
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
break;
};
};
};
if (armorSell == 5){
buyArmorName.text = "SHIELD OF ANDROMEDA";
ketBuyArmors.text = "It roumored that it came from distance galaxy brought by unknown merchant. It has Strong ability that Zuria's people never knows about. Beware of its secret origin.";
buyArmorReq.rankReq.text = "GUARDIAN STAR";
for (_local7 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local7] != 5){
buyArmorReq.rankReq.visible = true;
buyArmorReq.armorPrice.text = "75.000";
buyAReqItem1.visible = true;
buyAReqItem2.visible = true;
buyAReqItem3.visible = true;
buyArmorReq.buyAReqItem1Have.visible = true;
buyArmorReq.buyAReqItem2Have.visible = true;
buyArmorReq.buyAReqItem3Have.visible = true;
};
if (GSEngine.armorArray[_local7] == 5){
buyArmorReq.rankReq.visible = false;
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
break;
};
};
};
if (armorSell == 6){
buyArmorName.text = "BLACK SUN";
ketBuyArmors.text = "It forged by Anti Mater that burst out from Ra Black Sun, its dark magnificent energy has the most destructive force among all.";
buyArmorReq.rankReq.text = "GUARDIAN STAR";
for (_local8 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local8] != 6){
buyArmorReq.armorPrice.text = "100.000";
buyAReqItem1.visible = true;
buyAReqItem2.visible = true;
buyAReqItem3.visible = true;
buyArmorReq.buyAReqItem1Have.visible = true;
buyArmorReq.buyAReqItem2Have.visible = true;
buyArmorReq.buyAReqItem3Have.visible = true;
};
if (GSEngine.armorArray[_local8] == 6){
buyArmorReq.rankReq.visible = false;
buyArmorReq.armorPrice.text = "Owned!";
buyAReqItem1.visible = false;
buyAReqItem2.visible = false;
buyAReqItem3.visible = false;
buyArmorReq.buyAReqItem1Have.visible = false;
buyArmorReq.buyAReqItem2Have.visible = false;
buyArmorReq.buyAReqItem3Have.visible = false;
break;
};
};
};
}
function onOver(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(2);
}
function onOut(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(1);
}
function onDown(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_arg1.target.gotoAndPlay(3);
switch (_arg1.target){
case buyArmorKanan:
arFrameHighlight.play();
if ((((_arg1.target == buyArmorKanan)) && ((armorSell == 6)))){
armorSell = 1;
} else {
if ((((_arg1.target == buyArmorKanan)) && (!((armorSell == 6))))){
armorSell = (armorSell + 1);
};
};
break;
case buyArmorKiri:
arFrameHighlight.play();
if ((((_arg1.target == buyArmorKiri)) && ((armorSell == 1)))){
armorSell = 6;
} else {
if ((((_arg1.target == buyArmorKiri)) && (!((armorSell == 1))))){
armorSell = (armorSell - 1);
};
};
break;
case kategoriAtas:
buyEquipHighlight.play();
if (kategoriBeli == "WEAPON"){
kategoriBeli = "SUB WEAPON";
kategoriNJenis.text = ((kategoriBeli + " ") + namaSubSenjata);
} else {
if (kategoriBeli == "SUB WEAPON"){
kategoriBeli = "WEAPON";
kategoriNJenis.text = ((kategoriBeli + " ") + namaSenjata);
};
};
break;
case kategoriBawah:
buyEquipHighlight.play();
if (kategoriBeli == "WEAPON"){
kategoriBeli = "SUB WEAPON";
kategoriNJenis.text = ((kategoriBeli + " ") + namaSubSenjata);
} else {
if (kategoriBeli == "SUB WEAPON"){
kategoriBeli = "WEAPON";
kategoriNJenis.text = ((kategoriBeli + " ") + namaSenjata);
};
};
break;
case jenisKiri:
if (kategoriBeli == "WEAPON"){
if (jenisWeapon != 1){
jenisWeapon = (jenisWeapon - 1);
} else {
if (jenisWeapon == 1){
jenisWeapon = 6;
};
};
} else {
if (kategoriBeli == "SUB WEAPON"){
if (jenisSubWeapon != 1){
jenisSubWeapon = (jenisSubWeapon - 1);
} else {
if (jenisSubWeapon == 1){
jenisSubWeapon = 6;
};
};
};
};
buyEquipHighlight.play();
break;
case jenisKanan:
buyEquipHighlight.play();
if (kategoriBeli == "WEAPON"){
if (jenisWeapon != 6){
jenisWeapon = (jenisWeapon + 1);
} else {
if (jenisWeapon == 6){
jenisWeapon = 1;
};
};
} else {
if (kategoriBeli == "SUB WEAPON"){
if (jenisSubWeapon != 6){
jenisSubWeapon = (jenisSubWeapon + 1);
} else {
if (jenisSubWeapon == 6){
jenisSubWeapon = 1;
};
};
};
};
break;
};
if (_arg1.target == purArmorButton){
for (_local2 in armorSellArray) {
if (armorSellArray[_local2] == armorSell){
GSEngine.armorArray.push(armorSell);
armorSellArray.splice(_local2, 1);
};
};
if (armorSell == 2){
menuEquip.armor2 = true;
} else {
if (armorSell == 3){
menuEquip.armor3 = true;
} else {
if (armorSell == 4){
menuEquip.armor4 = true;
} else {
if (armorSell == 5){
menuEquip.armor5 = true;
} else {
if (armorSell == 6){
menuEquip.armor6 = true;
};
};
};
};
};
};
if (_arg1.target == purEtc){
if (kategoriBeli == "WEAPON"){
if (jenisWeapon == 2){
menuEquip.weapon2 = true;
} else {
if (jenisWeapon == 3){
menuEquip.weapon3 = true;
} else {
if (jenisWeapon == 4){
menuEquip.weapon4 = true;
} else {
if (jenisWeapon == 5){
menuEquip.weapon5 = true;
} else {
if (jenisWeapon == 6){
menuEquip.weapon6 = true;
};
};
};
};
};
for (_local3 in weaponSellArray) {
if ((((weaponSellArray[_local3] == jenisWeapon)) && ((kategoriBeli == "WEAPON")))){
GSEngine.weaponArray.push(jenisWeapon);
weaponSellArray.splice(_local3, 1);
etcReq.etcPrice.text = "Owned!";
};
};
};
if (kategoriBeli == "SUB WEAPON"){
if (jenisSubWeapon == 2){
menuEquip.subWeapon2 = true;
} else {
if (jenisSubWeapon == 3){
menuEquip.subWeapon3 = true;
} else {
if (jenisSubWeapon == 4){
menuEquip.subWeapon4 = true;
} else {
if (jenisSubWeapon == 5){
menuEquip.subWeapon5 = true;
} else {
if (jenisSubWeapon == 6){
menuEquip.subWeapon6 = true;
};
};
};
};
};
for (_local4 in subWeaponSellArray) {
if ((((subWeaponSellArray[_local4] == jenisSubWeapon)) && ((kategoriBeli == "SUB WEAPON")))){
GSEngine.subWeaponArray.push(jenisSubWeapon);
subWeaponSellArray.splice(_local4, 1);
etcReq.etcPrice.text = "Owned!";
};
};
};
};
}
}
}//package
Section 180
//menuEquip (menuEquip)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class menuEquip extends MovieClip {
public var buyWReqItem2Have:TextField;
public var weaponEquipedDetail:weaponStatus;
public var subWeaponKiri:pencetKaKi;
public var buyWReqItem3Have:TextField;
public var subWeaponItemReq1:lootReq;
public var weaponKiri:pencetKaKi;
public var weaponKanan:pencetKaKi;
public var armorKiri:pencetKaKi;
public var buyWReqItem1Have:TextField;
public var armorKanan:pencetKaKi;
public var armorDisplay:MovieClip;
public var addOnName:TextField;
public var skillDetails:TextField;
public var subWeaponItemReq3:lootReq;
public var wLevel:weaponLevel;
public var subWeaponKanan:pencetKaKi;
public var subWeaponEquipedDetail:subWeaponStatus;
public var subWeaponItemReq2:lootReq;
public var weaponEquiped:MovieClip;
public var highlightArmor:MovieClip;
public var buySWReqItem1Have:TextField;
public var subWeaponEquiped:MovieClip;
public var learnButton:MovieClip;
public var weaponItemReq1:lootReq;
public var slotIcon4:skillSlot;
public var hLAddOn:slotEqIcon;
public var buySWReqItem3Have:TextField;
public var weaponItemReq3:lootReq;
public var buySWReqItem2Have:TextField;
public var namaSkill:TextField;
public var allStatus:shipStatus;
public var weaponItemReq2:lootReq;
public var slotIcon1:skillSlot;
public var skillArmor:armorSkillIcon;
public var upgradeWeapon:MovieClip;
public var addOnKiri:pencetKaKi;
public var upgradeSubWeapon:MovieClip;
public var sWLevel:weaponLevel;
public var slotIcon3:skillSlot;
public var slotIcon2:skillSlot;
public var addOnKanan:pencetKaKi;
public var kSubWeapon:kotakSubWeapon;
public var addOnEquiped:MovieClip;
public var hLWeapon:slotEqIcon;
public var kWeapon:MovieClip;
public var addOnDetails:TextField;
public var hLSubWeapon:slotEqIcon;
var armorIndex:int;
var weaponIndex:int;
var subWeaponIndex:int;
var addOnIndex:int;
var itemReq1:Object;
var itemReq2:Object;
var itemReq3:Object;
var swItemReq1:Object;
var swItemReq2:Object;
var swItemReq3:Object;
var weapAddAttStat:int;
var weapAddCritStat:int;
var weapAddHpStat:int;
var weapAddMpStat:int;
var weapAddArStat:int;
var weapAddArRegStat:int;
var weapAddMpRegStat:int;
var weapAddAgiStat:int;
var SweapAddAttStat:int;
var SweapAddCritStat:int;
var SweapAddHpStat:int;
var SweapAddMpStat:int;
var SweapAddArStat:int;
var SweapAddArRegStat:int;
var SweapAddMpRegStat:int;
var SweapAddAgiStat:int;
var AOAddAttStat:int;
var AOAddCritStat:int;
var AOAddHpStat:int;
var AOAddMpStat:int;
var AOAddArStat:int;
var AOAddArRegStat:int;
var AOAddMpRegStat:int;
var AOAddAgiStat:int;
var additionalAttackStatus:int;
var additionalCriticalStatus:int;
var additionalHitpointStatus:int;
var additionalMpStatus:int;
var additionalArmorStatus:int;
var additionalArmorRegStatus:int;
var additionalMpRegStatus:int;
var additionalAgilityStatus:int;
var armorDisplayArray:Array;
static var armor1:Boolean;
static var armor2:Boolean;
static var armor3:Boolean;
static var armor4:Boolean;
static var armor5:Boolean;
static var armor6:Boolean;
static var armor7:Boolean;
static var weapon1:Boolean;
static var weapon2:Boolean;
static var weapon3:Boolean;
static var weapon4:Boolean;
static var weapon5:Boolean;
static var weapon6:Boolean;
static var subWeapon1:Boolean;
static var subWeapon2:Boolean;
static var subWeapon3:Boolean;
static var subWeapon4:Boolean;
static var subWeapon5:Boolean;
static var subWeapon6:Boolean;
static var addOn1:Boolean;
static var addOn2:Boolean;
static var addOn3:Boolean;
static var addOn4:Boolean;
static var addOn5:Boolean;
static var addOn6:Boolean;
static var currArmorDisplay:int;
static var currAddOnDisplay:int;
static var currWeaponDisplay:int;
static var currSubWeaponDisplay:int;
static var buyWReqItem1Need:int;
static var buyWReqItem2Need:int;
static var buyWReqItem3Need:int;
public function menuEquip(){
armorDisplayArray = new Array();
super();
addEventListener(Event.ENTER_FRAME, eFrame);
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
learnButton.addEventListener(MouseEvent.MOUSE_DOWN, skillLearn);
learnButton.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
learnButton.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
armorKanan.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
armorKiri.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
weaponKanan.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
weaponKiri.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
subWeaponKanan.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
subWeaponKiri.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
addOnKanan.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
addOnKiri.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
upgradeWeapon.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
upgradeSubWeapon.addEventListener(MouseEvent.MOUSE_OVER, dirOnOver);
armorKanan.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
armorKiri.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
weaponKanan.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
weaponKiri.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
subWeaponKanan.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
subWeaponKiri.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
addOnKanan.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
addOnKiri.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
upgradeWeapon.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
upgradeSubWeapon.addEventListener(MouseEvent.MOUSE_OUT, dirOnOut);
armorKanan.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
armorKiri.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
weaponKanan.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
weaponKiri.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
subWeaponKanan.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
subWeaponKiri.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
addOnKanan.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
addOnKiri.addEventListener(MouseEvent.MOUSE_DOWN, dirOnDown);
upgradeWeapon.addEventListener(MouseEvent.MOUSE_DOWN, checkRequirement);
upgradeSubWeapon.addEventListener(MouseEvent.MOUSE_DOWN, checkRequirement);
skillArmor.skill1Icons.addEventListener(MouseEvent.MOUSE_DOWN, skillHighlight);
skillArmor.skill2Icons.addEventListener(MouseEvent.MOUSE_DOWN, skillHighlight);
skillArmor.skill3Icons.addEventListener(MouseEvent.MOUSE_DOWN, skillHighlight);
skillArmor.skill4Icons.addEventListener(MouseEvent.MOUSE_DOWN, skillHighlight);
currArmorDisplay = 1;
currAddOnDisplay = 0;
currWeaponDisplay = 1;
currSubWeaponDisplay = 0;
armorIndex = 0;
weaponIndex = 0;
subWeaponIndex = 0;
addOnIndex = 0;
}
function addedToStage(_arg1:Event){
learnButton.visible = false;
if (GSEngine.addOnArray.length == 0){
currAddOnDisplay = 0;
};
if (GSEngine.addOnArray.length != 0){
currAddOnDisplay = GSEngine.addOnArray[0];
};
if (GSEngine.subWeaponArray.length == 0){
currSubWeaponDisplay = 0;
};
if (GSEngine.subWeaponArray.length != 0){
currSubWeaponDisplay = GSEngine.subWeaponArray[0];
};
}
function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
GSEngine.armorType = currArmorDisplay;
additionalAttackStatus = ((weapAddAttStat + SweapAddAttStat) + AOAddAttStat);
additionalCriticalStatus = ((weapAddCritStat + SweapAddCritStat) + AOAddCritStat);
additionalHitpointStatus = ((weapAddHpStat + SweapAddHpStat) + AOAddHpStat);
additionalMpStatus = ((weapAddMpStat + SweapAddMpStat) + AOAddMpStat);
additionalArmorStatus = ((weapAddArStat + SweapAddArStat) + AOAddArStat);
additionalArmorRegStatus = ((weapAddArRegStat + SweapAddArRegStat) + AOAddArRegStat);
additionalMpRegStatus = ((weapAddMpRegStat + SweapAddMpRegStat) + AOAddMpRegStat);
additionalAgilityStatus = ((weapAddAgiStat + SweapAddAgiStat) + AOAddAgiStat);
if (currAddOnDisplay == 0){
addOnEquiped.visible = false;
addOnName.visible = false;
addOnDetails.visible = false;
} else {
if (currAddOnDisplay != 0){
addOnEquiped.visible = true;
addOnName.visible = true;
addOnDetails.visible = true;
};
};
if (GSEngine.subWeaponArray[0] == null){
upgradeSubWeapon.visible = false;
} else {
upgradeSubWeapon.visible = true;
};
if (currSubWeaponDisplay == 0){
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.visible = false;
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
} else {
if (currSubWeaponDisplay != 0){
subWeaponEquiped.sW1.visible = true;
subWeaponEquiped.sW2.visible = true;
subWeaponEquiped.sW3.visible = true;
subWeaponEquiped.sW4.visible = true;
subWeaponEquiped.sW5.visible = true;
subWeaponEquiped.sW6.visible = true;
subWeaponEquipedDetail.visible = true;
subWeaponItemReq1.visible = true;
subWeaponItemReq2.visible = true;
subWeaponItemReq3.visible = true;
buySWReqItem1Have.visible = true;
buySWReqItem2Have.visible = true;
buySWReqItem3Have.visible = true;
};
};
if (allStatus.addAttStatus.text == "+0"){
allStatus.addAttStatus.visible = false;
} else {
allStatus.addAttStatus.visible = true;
};
if (allStatus.addCriticalStatus.text == "+0"){
allStatus.addCriticalStatus.visible = false;
} else {
allStatus.addCriticalStatus.visible = true;
};
if (allStatus.addHpStatus.text == "+0"){
allStatus.addHpStatus.visible = false;
} else {
allStatus.addHpStatus.visible = true;
};
if (allStatus.addMpStatus.text == "+0"){
allStatus.addMpStatus.visible = false;
} else {
allStatus.addMpStatus.visible = true;
};
if (allStatus.addArmorStatus.text == "+0"){
allStatus.addArmorStatus.visible = false;
} else {
allStatus.addArmorStatus.visible = true;
};
if (allStatus.addArmorRegenStatus.text == "+0"){
allStatus.addArmorRegenStatus.visible = false;
} else {
allStatus.addArmorRegenStatus.visible = true;
};
if (allStatus.addMpRegenStatus.text == "+0"){
allStatus.addMpRegenStatus.visible = false;
} else {
allStatus.addMpRegenStatus.visible = true;
};
if (allStatus.addMoveSpeedStatus.text == "+0"){
allStatus.addMoveSpeedStatus.visible = false;
} else {
allStatus.addMoveSpeedStatus.visible = true;
};
setArmorDisplay();
aturtombolLearn();
for (_local2 in GSEngine.weaponArray) {
if (GSEngine.weaponArray[_local2] == 1){
weapon1 = true;
} else {
if (GSEngine.weaponArray[_local2] == 2){
weapon2 = true;
} else {
if (GSEngine.weaponArray[_local2] == 3){
weapon3 = true;
} else {
if (GSEngine.weaponArray[_local2] == 4){
weapon4 = true;
} else {
if (GSEngine.weaponArray[_local2] == 5){
weapon5 = true;
} else {
if (GSEngine.weaponArray[_local2] == 6){
weapon6 = true;
};
};
};
};
};
};
};
for (_local3 in GSEngine.subWeaponArray) {
if (GSEngine.subWeaponArray[_local3] == 1){
subWeapon1 = true;
} else {
if (GSEngine.subWeaponArray[_local3] == 2){
subWeapon2 = true;
} else {
if (GSEngine.subWeaponArray[_local3] == 3){
subWeapon3 = true;
} else {
if (GSEngine.subWeaponArray[_local3] == 4){
subWeapon4 = true;
} else {
if (GSEngine.subWeaponArray[_local3] == 5){
subWeapon5 = true;
} else {
if (GSEngine.subWeaponArray[_local3] == 6){
subWeapon6 = true;
};
};
};
};
};
};
if (GSEngine.subWeaponArray.length == 1){
currSubWeaponDisplay = GSEngine.subWeaponArray[0];
};
};
for (_local4 in GSEngine.addOnArray) {
if (GSEngine.addOnArray[_local4] == 1){
addOn1 = true;
} else {
if (GSEngine.addOnArray[_local4] == 2){
addOn2 = true;
} else {
if (GSEngine.addOnArray[_local4] == 3){
addOn3 = true;
} else {
if (GSEngine.addOnArray[_local4] == 4){
addOn4 = true;
} else {
if (GSEngine.addOnArray[_local4] == 5){
addOn5 = true;
} else {
if (GSEngine.addOnArray[_local4] == 6){
addOn6 = true;
};
};
};
};
};
};
if (GSEngine.addOnArray.length == 1){
currAddOnDisplay = GSEngine.addOnArray[0];
};
};
checkSkill();
switch (currAddOnDisplay){
case 1:
addOnName.text = "BIT MODULE";
addOnDetails.text = "Add 2 weapon bit to assist you.";
addOnEquiped.gotoAndStop(1);
setAddOnDisplay("AOAddAttStat", 0);
break;
case 2:
addOnName.text = "CRITICAL CHIPSET";
addOnDetails.text = "Boost 25% critical change & critical damage.";
setAddOnDisplay("AOAddAttStat", 5);
addOnEquiped.gotoAndStop(2);
break;
case 3:
addOnName.text = "LINKER";
addOnDetails.text = "Control escape pod with this device.";
setAddOnDisplay("AOAddAttStat", 10);
addOnEquiped.gotoAndStop(3);
break;
case 4:
addOnName.text = "DRAGON SCALE";
addOnDetails.text = "Add more 30% of Armor Point.";
setAddOnDisplay("AOAddArStat", 49);
addOnEquiped.gotoAndStop(4);
break;
case 5:
addOnName.text = "SPARKLIMITER";
addOnDetails.text = "Special attack use 30% less energy.";
setAddOnDisplay("AOAddMpStat", 30);
addOnEquiped.gotoAndStop(5);
break;
case 6:
addOnName.text = "PERTAMAX FUEL";
addOnDetails.text = "Raise movement speed for 20%.";
setAddOnDisplay("AOAddAgiStat", 15);
addOnEquiped.gotoAndStop(6);
break;
case 7:
addOnName.text = "ATOM DECOMPILER";
addOnDetails.text = "+ 10% Change to evade enemy bullet.";
setAddOnDisplay("AOAddAgiStat", 5);
addOnEquiped.gotoAndStop(7);
break;
};
switch (currArmorDisplay){
case 1:
setStatusDisplay(30, 5, 150, 100, 140, 1, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0);
break;
case 2:
setStatusDisplay(40, 7, 150, 100, 175, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0);
break;
case 3:
setStatusDisplay(60, 12, 200, 125, 200, 2, 2, 8, 5, 0, 0, 0, 0, 0, 0, 0);
break;
case 4:
setStatusDisplay(60, 12, 200, 125, 200, 2, 2, 8, 5, 0, 0, 0, 0, 0, 0, 0);
break;
case 5:
break;
case 6:
break;
};
switch (currWeaponDisplay){
case 1:
weaponEquiped.w1.visible = true;
weaponEquiped.w2.visible = false;
weaponEquiped.w3.visible = false;
weaponEquiped.w4.visible = false;
weaponEquiped.w5.visible = false;
weaponEquiped.w6.visible = false;
weaponEquipedDetail.wEDName.text = (("Spark" + " Lv. ") + GSEngine.weapon1Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon1Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon1Level == 0){
setWeaponDisplay(13, "ore", "starDust", "crystal", GSEngine.ore, GSEngine.starDust, GSEngine.crystal, "", "1", 25, 12, 10, 7, "weapAddAttStat", 2);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon1Level == 1){
setWeaponDisplay(12, "ore", "starDust", "crystal", GSEngine.ore, GSEngine.starDust, GSEngine.crystal, "", "1", 25, 12, 10, 7, "weapAddAttStat", 2);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon1Level == 2){
setWeaponDisplay(10, "scrapMetal", "starDust", "crystal", GSEngine.scrapMetal, GSEngine.starDust, GSEngine.crystal, "Add bonus 10 attack", "2", 30, 15, 10, 10, "weapAddAttStat", 10);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon1Level == 3){
setWeaponDisplay(8, "scrapMetal", "starDust", "crystal", GSEngine.scrapMetal, GSEngine.starDust, GSEngine.crystal, "Add bonus 15 damage", "2", 35, 20, 15, 20, "weapAddAttStat", 15);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon1Level == 4){
setWeaponDisplay(6, "scrapMetal", "starDust", "crystal", GSEngine.scrapMetal, GSEngine.starDust, GSEngine.crystal, "Add bonus 20 damage", "3", 35, 25, 20, 20, "weapAddAttStat", 20);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
case 2:
weaponEquiped.w1.visible = false;
weaponEquiped.w2.visible = true;
weaponEquiped.w3.visible = false;
weaponEquiped.w4.visible = false;
weaponEquiped.w5.visible = false;
weaponEquiped.w6.visible = false;
weaponEquipedDetail.wEDName.text = (("Plasma Cannon" + " Lv. ") + GSEngine.weapon2Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon2Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon2Level == 0){
setWeaponDisplay(12, "starDust", "crystal", "meteorPiece", GSEngine.starDust, GSEngine.crystal, GSEngine.meteorPiece, "", "1", 35, 7, 15, 15, "weapAddCritStat", 4);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon2Level == 1){
setWeaponDisplay(10, "starDust", "crystal", "meteorPiece", GSEngine.starDust, GSEngine.crystal, GSEngine.meteorPiece, "", "1", 35, 7, 15, 15, "weapAddCritStat", 4);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon2Level == 2){
setWeaponDisplay(10, "scrapMetal", "starDust", "crystal", GSEngine.scrapMetal, GSEngine.starDust, GSEngine.crystal, "Add 5 critical", "2", 35, 10, 17, 17, "weapAddCritStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon2Level == 3){
setWeaponDisplay(8, "scrapMetal", "starDust", "flyingStone", GSEngine.scrapMetal, GSEngine.starDust, GSEngine.flyingStone, "Add 7 critical", "2", 40, 13, 20, 20, "weapAddCritStat", 7);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon2Level == 4){
setWeaponDisplay(6, "starDust", "meteorPiece", "flyingStone", GSEngine.starDust, GSEngine.meteorPiece, GSEngine.flyingStone, "Add 9 critical", "3", 40, 15, 25, 25, "weapAddCritStat", 9);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
case 3:
weaponEquiped.w1.visible = false;
weaponEquiped.w2.visible = false;
weaponEquiped.w3.visible = true;
weaponEquiped.w4.visible = false;
weaponEquiped.w5.visible = false;
weaponEquiped.w6.visible = false;
weaponEquipedDetail.wEDName.text = (("Electron" + " Lv. ") + GSEngine.weapon3Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon3Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon3Level == 0){
setWeaponDisplay(11, "crystal", "meteorPiece", "flyingStone", GSEngine.crystal, GSEngine.meteorPiece, GSEngine.flyingStone, "", "2", 45, 10, 25, 20, "weapAddCritStat", 12);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon3Level == 1){
setWeaponDisplay(9, "crystal", "meteorPiece", "flyingStone", GSEngine.crystal, GSEngine.meteorPiece, GSEngine.flyingStone, "", "2", 45, 10, 25, 20, "weapAddCritStat", 12);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon3Level == 2){
setWeaponDisplay(8, "crystal", "meteorPiece", "remethin", GSEngine.crystal, GSEngine.meteorPiece, GSEngine.remethin, "+5% damage & +5% critical", "2", 50, 12, 30, 25, "weapAddCritStat", 10);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon3Level == 3){
setWeaponDisplay(7, "crystal", "flyingStone", "fiberConnection", GSEngine.crystal, GSEngine.flyingStone, GSEngine.fiberConnection, "+10% damage & +7% critical", "3", 50, 15, 33, 10, "weapAddCritStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon3Level == 4){
setWeaponDisplay(5, "meteorPiece", "remethin", "ionizedFluid", GSEngine.meteorPiece, GSEngine.remethin, GSEngine.ionizedFluid, "+15% damage & +10% critical", "4", 50, 15, 15, 20, "weapAddCritStat", 5);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
case 4:
weaponEquiped.w1.visible = false;
weaponEquiped.w2.visible = false;
weaponEquiped.w3.visible = false;
weaponEquiped.w4.visible = true;
weaponEquiped.w5.visible = false;
weaponEquiped.w6.visible = false;
weaponEquipedDetail.wEDName.text = (("Gattling Gun" + " Lv. ") + GSEngine.weapon4Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon4Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon4Level == 0){
setWeaponDisplay(7, "remethin", "fiberConnection", "ionizedFluid", GSEngine.remethin, GSEngine.fiberConnection, GSEngine.ionizedFluid, "", "2", 55, 20, 25, 30, "weapAddAgiStat", 6);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon4Level == 1){
setWeaponDisplay(7, "remethin", "fiberConnection", "ionizedFluid", GSEngine.remethin, GSEngine.fiberConnection, GSEngine.ionizedFluid, "", "2", 55, 20, 25, 30, "weapAddAgiStat", 6);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon4Level == 2){
setWeaponDisplay(7, "remethin", "fiberConnection", "manaStone", GSEngine.remethin, GSEngine.fiberConnection, GSEngine.manaStone, "Movement Speed +5%", "3", 55, 25, 27, 35, "weapAddAgiStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon4Level == 3){
setWeaponDisplay(5, "fiberConnection", "ionizedFluid", "batery", GSEngine.fiberConnection, GSEngine.ionizedFluid, GSEngine.battery, "Movement Speed +10%", "33", 60, 29, 30, 15, "weapAddAgiStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon4Level == 4){
setWeaponDisplay(3, "ionizedFluid", "manaStone", "luminaFruit", GSEngine.ionizedFluid, GSEngine.manaStone, GSEngine.luminaFruit, "Movement Speed +15%", "4", 65, 30, 5, 7, "weapAddAgiStat", 5);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
case 5:
weaponEquiped.w1.visible = false;
weaponEquiped.w2.visible = false;
weaponEquiped.w3.visible = false;
weaponEquiped.w4.visible = false;
weaponEquiped.w5.visible = true;
weaponEquiped.w6.visible = false;
weaponEquipedDetail.wEDName.text = (("Laser" + " Lv. ") + GSEngine.weapon5Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon5Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon5Level == 0){
setWeaponDisplay(12, "manaStone", "batery", "luminaFruit", GSEngine.manaStone, GSEngine.battery, GSEngine.luminaFruit, "", "1", 80, 10, 25, 8, "weapAddCritStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon5Level == 1){
setWeaponDisplay(12, "manaStone", "batery", "luminaFruit", GSEngine.manaStone, GSEngine.battery, GSEngine.luminaFruit, "", "1", 80, 10, 25, 8, "weapAddCritStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon5Level == 2){
setWeaponDisplay(11, "manaStone", "luminaFruit", "azuriaCarbon", GSEngine.manaStone, GSEngine.luminaFruit, GSEngine.azuriaCarbon, "+10% EP Regen", "2", 80, 12, 10, 5, "weapAddMpRegStat", 10);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon5Level == 3){
setWeaponDisplay(11, "batery", "azuriaCarbon", "blackCrumb", GSEngine.battery, GSEngine.azuriaCarbon, GSEngine.blackCrumb, "+15% EP Regen, +100 EP", "3", 85, 27, 7, 10, "weapAddMpRegStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon5Level == 4){
setWeaponDisplay(10, "luminaFruit", "blackCrumb", "sparkFuse", GSEngine.luminaFruit, GSEngine.blackCrumb, GSEngine.sparkFuse, "+17% EP Regen, +150 EP", "5", 90, 10, 12, 3, "weapAddMpRegStat", 5);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
case 6:
weaponEquiped.w1.visible = false;
weaponEquiped.w2.visible = false;
weaponEquiped.w3.visible = false;
weaponEquiped.w4.visible = false;
weaponEquiped.w5.visible = false;
weaponEquiped.w6.visible = true;
weaponEquipedDetail.wEDName.text = (("Blaster" + " Lv. ") + GSEngine.weapon6Level.toString());
weaponEquipedDetail.wEDFireRate.text = GSEngine.wFireRate.toString();
if (GSEngine.weapon6Level != 4){
weaponItemReq1.visible = true;
weaponItemReq2.visible = true;
weaponItemReq3.visible = true;
buyWReqItem1Have.visible = true;
buyWReqItem2Have.visible = true;
buyWReqItem3Have.visible = true;
};
if (GSEngine.weapon6Level == 0){
setWeaponDisplay(10, "azuriaCarbon", "blackCrumb", "sparkFuse", GSEngine.azuriaCarbon, GSEngine.blackCrumb, GSEngine.sparkFuse, "", "1", 100, 20, 13, 7, "weapAddMpRegStat", 0);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
};
if (GSEngine.weapon6Level == 1){
setWeaponDisplay(10, "azuriaCarbon", "blackCrumb", "sparkFuse", GSEngine.azuriaCarbon, GSEngine.blackCrumb, GSEngine.sparkFuse, "", "1", 100, 20, 13, 7, "weapAddMpRegStat", 0);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(2);
} else {
if (GSEngine.weapon6Level == 2){
setWeaponDisplay(9, "blackCrumb", "sparkFuse", "lightWeb", GSEngine.blackCrumb, GSEngine.sparkFuse, GSEngine.lightWeb, "+15% Critical, +10% Damage", "2", 105, 15, 10, 20, "weapAddMpRegStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(3);
} else {
if (GSEngine.weapon6Level == 3){
setWeaponDisplay(9, "blackCrumb", "lightWeb", "guardianStarMedal", GSEngine.blackCrumb, GSEngine.lightWeb, GSEngine.guardianStarMedal, "+20% Critical, +15% Damage", "3", 120, 17, 25, 2, "weapAddMpRegStat", 5);
upgradeWeapon.visible = true;
wLevel.gotoAndStop(4);
} else {
if (GSEngine.weapon6Level == 4){
setWeaponDisplay(7, "sparkFuse", "guardianStarMedal", "hearthOfKhaleonia", GSEngine.sparkFuse, GSEngine.guardianStarMedal, GSEngine.hearthOfKhaleonia, "+25% Critical, +20% Damage", "4", 130, 9, 5, 2, "weapAddMpRegStat", 5);
upgradeWeapon.visible = false;
wLevel.gotoAndStop(5);
weaponItemReq1.visible = false;
weaponItemReq2.visible = false;
weaponItemReq3.visible = false;
buyWReqItem1Have.visible = false;
buyWReqItem2Have.visible = false;
buyWReqItem3Have.visible = false;
};
};
};
};
break;
};
switch (currSubWeaponDisplay){
case 1:
subWeaponEquiped.sW1.visible = true;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.visible = true;
subWeaponEquipedDetail.sWEDName.text = (("Mara Gun" + " Lv. ") + GSEngine.subWeapon1Level.toString());
if (GSEngine.subWeapon1Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(13, "meteorPiece", "flyingStone", "remethin", GSEngine.meteorPiece, GSEngine.flyingStone, GSEngine.remethin, "", 30, 25, 20, 15, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon1Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(12, "meteorPiece", "flyingStone", "fiberConnection", GSEngine.meteorPiece, GSEngine.flyingStone, GSEngine.fiberConnection, "+5% damage & + 5% EP Regen", 35, 25, 20, 25, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon1Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(11, "flyingStone", "remethin", "fiberConnection", GSEngine.flyingStone, GSEngine.remethin, GSEngine.fiberConnection, "+10% damage & + 7% EP Regen", 40, 25, 30, 25, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon1Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(10, "flyingStone", "remethin", "fiberConnection", GSEngine.flyingStone, GSEngine.remethin, GSEngine.fiberConnection, "+10% damage, +7% EP Regen, +10% Armor ", 45, 27, 35, 30, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
case 2:
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = true;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.sWEDName.text = (("M13 Flak Cannon" + " Lv. ") + GSEngine.subWeapon2Level.toString());
if (GSEngine.subWeapon2Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(12, "blackCrumb", "manaStone", "remethin", GSEngine.blackCrumb, GSEngine.manaStone, GSEngine.remethin, "", 45, 20, 15, 13, "SweapAddAttStat", 15);
} else {
if (GSEngine.subWeapon2Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(12, "blackCrumb", "manaStone", "ionizedFluid", GSEngine.blackCrumb, GSEngine.manaStone, GSEngine.ionizedFluid, "Add 5% HitPoint", 47, 25, 20, 20, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon2Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(10, "blackCrumb", "manaStone", "batery", GSEngine.blackCrumb, GSEngine.manaStone, GSEngine.battery, "Add 5% HitPoint", 50, 30, 25, 20, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon2Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(9, "blackCrumb", "sparkFuse", "batery", GSEngine.blackCrumb, GSEngine.sparkFuse, GSEngine.battery, "Add 5% HitPoint", 55, 35, 25, 25, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
case 3:
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = true;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.sWEDName.text = (("Homming Needle" + " Lv. ") + GSEngine.subWeapon3Level.toString());
if (GSEngine.subWeapon3Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(14, "ionizedFluid", "manaStone", "sparkFuse", GSEngine.ionizedFluid, GSEngine.manaStone, GSEngine.sparkFuse, "", 60, 25, 15, 10, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon3Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(13, "scrapMetal", "manaStone", "sparkFuse", GSEngine.scrapMetal, GSEngine.manaStone, GSEngine.sparkFuse, "", 63, 35, 17, 15, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon3Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(12, "scrapMetal", "manaStone", "antimater", GSEngine.scrapMetal, GSEngine.manaStone, GSEngine.antimater, "", 67, 40, 20, 5, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon3Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(10, "scrapMetal", "manaStone", "antimater", GSEngine.scrapMetal, GSEngine.manaStone, GSEngine.antimater, "", 70, 45, 25, 7, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
case 4:
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = true;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.sWEDName.text = (("Compacted Cluster" + " Lv. ") + GSEngine.subWeapon4Level.toString());
if (GSEngine.subWeapon4Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(17, "blackCrumb", "lightWeb", "sparkFuse", GSEngine.blackCrumb, GSEngine.lightWeb, GSEngine.sparkFuse, "", 75, 20, 15, 17, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon4Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(16, "blackCrumb", "guardianStarMedal", "sparkFuse", GSEngine.blackCrumb, GSEngine.guardianStarMedal, GSEngine.sparkFuse, "", 85, 25, 5, 20, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon4Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(16, "luminaFruit", "guardianStarMedal", "sparkFuse", GSEngine.luminaFruit, GSEngine.guardianStarMedal, GSEngine.sparkFuse, "", 95, 20, 7, 25, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon4Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(15, "luminaFruit", "guardianStarMedal", "sparkFuse", GSEngine.luminaFruit, GSEngine.guardianStarMedal, GSEngine.sparkFuse, "", 100, 25, 9, 30, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
case 5:
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = true;
subWeaponEquiped.sW6.visible = false;
subWeaponEquipedDetail.sWEDName.text = (("Aerial Mine" + " Lv. ") + GSEngine.subWeapon5Level.toString());
if (GSEngine.subWeapon5Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(16, "azuriaCarbon", "luminaFruit", "hearthOfKhaleonia", GSEngine.azuriaCarbon, GSEngine.luminaFruit, GSEngine.hearthOfKhaleonia, "", 100, 20, 20, 5, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon5Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(14, "azuriaCarbon", "luminaFruit", "hearthOfKhaleonia", GSEngine.azuriaCarbon, GSEngine.luminaFruit, GSEngine.hearthOfKhaleonia, "", 110, 25, 25, 7, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon5Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(12, "azuriaCarbon", "luminaFruit", "hearthOfKhaleonia", GSEngine.azuriaCarbon, GSEngine.luminaFruit, GSEngine.hearthOfKhaleonia, "", 120, 30, 30, 9, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon5Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(10, "azuriaCarbon", "antimater", "hearthOfKhaleonia", GSEngine.azuriaCarbon, GSEngine.antimater, GSEngine.hearthOfKhaleonia, "", 130, 33, 7, 12, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
case 6:
subWeaponEquiped.sW1.visible = false;
subWeaponEquiped.sW2.visible = false;
subWeaponEquiped.sW3.visible = false;
subWeaponEquiped.sW4.visible = false;
subWeaponEquiped.sW5.visible = false;
subWeaponEquiped.sW6.visible = true;
subWeaponEquipedDetail.sWEDName.text = (("Gamma Laser" + " Lv. ") + GSEngine.subWeapon6Level.toString());
if (GSEngine.subWeapon6Level == 1){
sWLevel.gotoAndStop(2);
setSubWeaponDisplay(13, "sparkFuse", "royalRing", "antimater", GSEngine.sparkFuse, GSEngine.royalRing, GSEngine.antimater, "", 100, 20, 5, 10, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon6Level == 2){
sWLevel.gotoAndStop(3);
setSubWeaponDisplay(12, "hearthOfKhaleonia", "royalRing", "antimater", GSEngine.hearthOfKhaleonia, GSEngine.royalRing, GSEngine.antimater, "", 120, 15, 9, 17, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon6Level == 3){
sWLevel.gotoAndStop(4);
setSubWeaponDisplay(10, "hearthOfKhaleonia", "royalRing", "antimater", GSEngine.hearthOfKhaleonia, GSEngine.royalRing, GSEngine.antimater, "", 135, 20, 15, 23, "SweapAddAttStat", 10);
} else {
if (GSEngine.subWeapon6Level == 4){
sWLevel.gotoAndStop(5);
setSubWeaponDisplay(8, "hearthOfKhaleonia", "royalRing", "antimater", GSEngine.hearthOfKhaleonia, GSEngine.royalRing, GSEngine.antimater, "", 150, 30, 20, 25, "SweapAddAttStat", 10);
subWeaponItemReq1.visible = false;
subWeaponItemReq2.visible = false;
subWeaponItemReq3.visible = false;
buySWReqItem1Have.visible = false;
buySWReqItem2Have.visible = false;
buySWReqItem3Have.visible = false;
upgradeSubWeapon.visible = false;
};
};
};
};
break;
};
if ((((currWeaponDisplay == 1)) && ((weapon1 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
if ((((currWeaponDisplay == 2)) && ((weapon2 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
if ((((currWeaponDisplay == 3)) && ((weapon3 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
if ((((currWeaponDisplay == 4)) && ((weapon4 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
if ((((currWeaponDisplay == 5)) && ((weapon5 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
if ((((currWeaponDisplay == 6)) && ((weapon6 == false)))){
weaponEquiped.alpha = 0.3;
weaponEquipedDetail.alpha = 0;
} else {
weaponEquiped.alpha = 1;
weaponEquipedDetail.alpha = 1;
};
};
};
};
};
};
if ((((currSubWeaponDisplay == 1)) && ((subWeapon1 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
if ((((currSubWeaponDisplay == 2)) && ((subWeapon2 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
if ((((currSubWeaponDisplay == 3)) && ((subWeapon3 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
if ((((currSubWeaponDisplay == 4)) && ((subWeapon4 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
if ((((currSubWeaponDisplay == 5)) && ((subWeapon5 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
if ((((currSubWeaponDisplay == 6)) && ((subWeapon6 == false)))){
subWeaponEquiped.alpha = 0.1;
} else {
subWeaponEquiped.alpha = 1;
};
};
};
};
};
};
}
function checkRequirement(_arg1:MouseEvent):void{
if (_arg1.target == upgradeWeapon){
switch (currWeaponDisplay){
case 1:
if (GSEngine.weapon1Level == 0){
GSEngine.weapon1Level = 1;
GSEngine.ore = (GSEngine.ore - 12);
GSEngine.starDust = (GSEngine.starDust - 10);
GSEngine.crystal = (GSEngine.crystal - 7);
weaponEquiped.w1.gotoAndStop(1);
} else {
if (GSEngine.weapon1Level == 1){
GSEngine.weapon1Level = 2;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 15);
GSEngine.starDust = (GSEngine.starDust - 10);
GSEngine.crystal = (GSEngine.crystal - 10);
weaponEquiped.w1.gotoAndStop(2);
} else {
if (GSEngine.weapon1Level == 2){
GSEngine.weapon1Level = 3;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 20);
GSEngine.starDust = (GSEngine.starDust - 15);
GSEngine.crystal = (GSEngine.crystal - 20);
weaponEquiped.w1.gotoAndStop(3);
} else {
if (GSEngine.weapon1Level == 3){
GSEngine.weapon1Level = 4;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 25);
GSEngine.starDust = (GSEngine.starDust - 20);
GSEngine.crystal = (GSEngine.crystal - 20);
weaponEquiped.w1.gotoAndStop(4);
};
};
};
};
break;
case 2:
if (GSEngine.weapon2Level == 0){
GSEngine.weapon2Level = 1;
GSEngine.starDust = (GSEngine.starDust - 7);
GSEngine.crystal = (GSEngine.crystal - 15);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 15);
weaponEquiped.w2.gotoAndStop(1);
} else {
if (GSEngine.weapon2Level == 1){
GSEngine.scrapMetal = (GSEngine.scrapMetal - 10);
GSEngine.starDust = (GSEngine.starDust - 17);
GSEngine.crystal = (GSEngine.crystal - 17);
GSEngine.weapon2Level = 2;
weaponEquiped.w2.gotoAndStop(2);
} else {
if (GSEngine.weapon2Level == 2){
GSEngine.weapon2Level = 3;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 13);
GSEngine.starDust = (GSEngine.starDust - 20);
GSEngine.flyingStone = (GSEngine.flyingStone - 20);
weaponEquiped.w2.gotoAndStop(3);
} else {
if (GSEngine.weapon2Level == 3){
GSEngine.weapon2Level = 4;
GSEngine.starDust = (GSEngine.starDust - 15);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 25);
GSEngine.flyingStone = (GSEngine.flyingStone - 25);
weaponEquiped.w2.gotoAndStop(4);
};
};
};
};
break;
case 3:
if (GSEngine.weapon3Level == 0){
GSEngine.weapon3Level = 1;
GSEngine.crystal = (GSEngine.crystal - 10);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 25);
GSEngine.flyingStone = (GSEngine.flyingStone - 20);
weaponEquiped.w3.gotoAndStop(1);
} else {
if (GSEngine.weapon3Level == 1){
GSEngine.weapon3Level = 2;
GSEngine.crystal = (GSEngine.crystal - 12);
GSEngine.remethin = (GSEngine.remethin - 25);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 30);
weaponEquiped.w3.gotoAndStop(2);
} else {
if (GSEngine.weapon3Level == 2){
GSEngine.crystal = (GSEngine.crystal - 15);
GSEngine.flyingStone = (GSEngine.flyingStone - 33);
GSEngine.fiberConnection = (GSEngine.fiberConnection - 10);
GSEngine.weapon3Level = 3;
weaponEquiped.w3.gotoAndStop(3);
} else {
if (GSEngine.weapon3Level == 3){
GSEngine.meteorPiece = (GSEngine.meteorPiece - 15);
GSEngine.remethin = (GSEngine.remethin - 15);
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 20);
GSEngine.weapon3Level = 4;
weaponEquiped.w3.gotoAndStop(4);
};
};
};
};
break;
case 4:
if (GSEngine.weapon4Level == 0){
GSEngine.weapon4Level = 1;
GSEngine.remethin = (GSEngine.remethin - 20);
GSEngine.fiberConnection = (GSEngine.fiberConnection - 25);
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 30);
weaponEquiped.w4.gotoAndStop(1);
} else {
if (GSEngine.weapon4Level == 1){
GSEngine.weapon4Level = 2;
GSEngine.remethin = (GSEngine.remethin - 25);
GSEngine.fiberConnection = (GSEngine.fiberConnection - 27);
GSEngine.manaStone = (GSEngine.manaStone - 35);
weaponEquiped.w4.gotoAndStop(2);
} else {
if (GSEngine.weapon4Level == 2){
GSEngine.fiberConnection = (GSEngine.fiberConnection - 29);
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 30);
GSEngine.battery = (GSEngine.battery - 15);
GSEngine.weapon4Level = 3;
weaponEquiped.w4.gotoAndStop(3);
} else {
if (GSEngine.weapon4Level == 3){
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 30);
GSEngine.manaStone = (GSEngine.manaStone - 5);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 7);
GSEngine.weapon4Level = 4;
weaponEquiped.w4.gotoAndStop(4);
};
};
};
};
break;
case 5:
if (GSEngine.weapon5Level == 0){
GSEngine.weapon5Level = 1;
GSEngine.manaStone = (GSEngine.manaStone - 10);
GSEngine.battery = (GSEngine.battery - 25);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 8);
weaponEquiped.w5.gotoAndStop(1);
} else {
if (GSEngine.weapon5Level == 1){
GSEngine.weapon5Level = 2;
GSEngine.manaStone = (GSEngine.manaStone - 12);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 10);
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 5);
weaponEquiped.w5.gotoAndStop(2);
} else {
if (GSEngine.weapon5Level == 2){
GSEngine.weapon5Level = 3;
GSEngine.battery = (GSEngine.battery - 27);
GSEngine.blackCrumb = (GSEngine.blackCrumb - 10);
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 7);
weaponEquiped.w5.gotoAndStop(3);
} else {
if (GSEngine.weapon5Level == 3){
GSEngine.weapon5Level = 4;
GSEngine.luminaFruit = (GSEngine.luminaFruit - 10);
GSEngine.blackCrumb = (GSEngine.blackCrumb - 12);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 3);
weaponEquiped.w5.gotoAndStop(4);
};
};
};
};
break;
case 6:
if (GSEngine.weapon6Level == 0){
GSEngine.weapon6Level = 1;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 15);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 10);
GSEngine.lightWeb = (GSEngine.lightWeb - 20);
weaponEquiped.w6.gotoAndStop(1);
} else {
if (GSEngine.weapon6Level == 1){
GSEngine.weapon6Level = 2;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 15);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 10);
GSEngine.lightWeb = (GSEngine.lightWeb - 20);
weaponEquiped.w6.gotoAndStop(2);
} else {
if (GSEngine.weapon6Level == 2){
GSEngine.weapon6Level = 3;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 17);
GSEngine.lightWeb = (GSEngine.lightWeb - 25);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 2);
weaponEquiped.w6.gotoAndStop(3);
} else {
if (GSEngine.weapon6Level == 3){
GSEngine.weapon6Level = 4;
GSEngine.sparkFuse = (GSEngine.sparkFuse - 9);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 5);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 2);
weaponEquiped.w6.gotoAndStop(4);
};
};
};
};
break;
};
} else {
if (_arg1.target == upgradeSubWeapon){
trace(GSEngine.subWeapon1Level);
switch (currSubWeaponDisplay){
case 1:
if (GSEngine.subWeapon1Level == 1){
GSEngine.subWeapon1Level = 2;
GSEngine.meteorPiece = (GSEngine.meteorPiece - 25);
GSEngine.flyingStone = (GSEngine.flyingStone - 20);
GSEngine.remethin = (GSEngine.remethin - 15);
} else {
if (GSEngine.subWeapon1Level == 2){
GSEngine.subWeapon1Level = 3;
GSEngine.meteorPiece = (GSEngine.meteorPiece - 25);
GSEngine.flyingStone = (GSEngine.flyingStone - 20);
GSEngine.fiberConnection = (GSEngine.fiberConnection - 25);
} else {
if (GSEngine.subWeapon1Level == 3){
GSEngine.subWeapon1Level = 4;
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 20);
GSEngine.royalRing = (GSEngine.royalRing - 15);
GSEngine.antimater = (GSEngine.antimater - 23);
};
};
};
break;
case 2:
if (GSEngine.subWeapon2Level == 1){
GSEngine.subWeapon2Level = 2;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 20);
GSEngine.manaStone = (GSEngine.manaStone - 15);
GSEngine.remethin = (GSEngine.remethin - 13);
} else {
if (GSEngine.subWeapon2Level == 2){
GSEngine.subWeapon2Level = 3;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 25);
GSEngine.manaStone = (GSEngine.manaStone - 20);
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 20);
} else {
if (GSEngine.subWeapon2Level == 3){
GSEngine.subWeapon2Level = 4;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 30);
GSEngine.manaStone = (GSEngine.manaStone - 25);
GSEngine.battery = (GSEngine.battery - 20);
};
};
};
break;
case 3:
if (GSEngine.subWeapon3Level == 1){
GSEngine.subWeapon3Level = 2;
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 25);
GSEngine.manaStone = (GSEngine.manaStone - 15);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 10);
} else {
if (GSEngine.subWeapon3Level == 2){
GSEngine.subWeapon3Level = 3;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 35);
GSEngine.manaStone = (GSEngine.manaStone - 17);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 15);
} else {
if (GSEngine.subWeapon3Level == 3){
GSEngine.subWeapon3Level = 4;
GSEngine.scrapMetal = (GSEngine.scrapMetal - 40);
GSEngine.manaStone = (GSEngine.manaStone - 20);
GSEngine.antimater = (GSEngine.antimater - 5);
};
};
};
break;
case 4:
if (GSEngine.subWeapon4Level == 1){
GSEngine.subWeapon4Level = 2;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 20);
GSEngine.lightWeb = (GSEngine.lightWeb - 15);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 17);
} else {
if (GSEngine.subWeapon4Level == 2){
GSEngine.subWeapon4Level = 3;
GSEngine.blackCrumb = (GSEngine.blackCrumb - 25);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 5);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 20);
} else {
if (GSEngine.subWeapon4Level == 3){
GSEngine.subWeapon4Level = 4;
GSEngine.luminaFruit = (GSEngine.luminaFruit - 20);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 7);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 25);
};
};
};
break;
case 5:
if (GSEngine.subWeapon5Level == 1){
GSEngine.subWeapon5Level = 2;
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 20);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 20);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 5);
} else {
if (GSEngine.subWeapon5Level == 2){
GSEngine.subWeapon5Level = 3;
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 25);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 25);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 7);
} else {
if (GSEngine.subWeapon5Level == 3){
GSEngine.subWeapon5Level = 4;
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 30);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 30);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 9);
};
};
};
break;
case 6:
if (GSEngine.subWeapon6Level == 1){
GSEngine.subWeapon6Level = 2;
GSEngine.sparkFuse = (GSEngine.sparkFuse - 20);
GSEngine.royalRing = (GSEngine.royalRing - 5);
GSEngine.antimater = (GSEngine.antimater - 10);
} else {
if (GSEngine.subWeapon6Level == 2){
GSEngine.subWeapon6Level = 3;
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 15);
GSEngine.royalRing = (GSEngine.royalRing - 9);
GSEngine.antimater = (GSEngine.antimater - 17);
} else {
if (GSEngine.subWeapon6Level == 3){
GSEngine.subWeapon6Level = 4;
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 20);
GSEngine.royalRing = (GSEngine.royalRing - 15);
GSEngine.antimater = (GSEngine.antimater - 23);
};
};
};
break;
};
};
};
}
function setArmorDisplay(){
var _local1:int;
while (_local1 < 6) {
if ((((GSEngine.armorArray[_local1] == 1)) && ((currArmorDisplay == 1)))){
armor1 = true;
if (GSEngine.a1S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a1S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a1S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
} else {
if ((((GSEngine.armorArray[_local1] == 2)) && ((currArmorDisplay == 2)))){
armor2 = true;
if (GSEngine.a2S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a2S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a2S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
} else {
if ((((GSEngine.armorArray[_local1] == 3)) && ((currArmorDisplay == 3)))){
armor3 = true;
if (GSEngine.a3S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a3S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a3S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
} else {
if ((((GSEngine.armorArray[_local1] == 4)) && ((currArmorDisplay == 4)))){
armor4 = true;
if (GSEngine.a4S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a4S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a4S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
if (GSEngine.a4S4 == true){
skillArmor.skill4Icons.alpha = 1;
} else {
skillArmor.skill4Icons.alpha = 0.5;
};
} else {
if ((((GSEngine.armorArray[_local1] == 5)) && ((currArmorDisplay == 5)))){
armor5 = true;
if (GSEngine.a5S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a5S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a5S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
if (GSEngine.a5S4 == true){
skillArmor.skill4Icons.alpha = 1;
} else {
skillArmor.skill4Icons.alpha = 0.5;
};
} else {
if ((((GSEngine.armorArray[_local1] == 6)) && ((currArmorDisplay == 6)))){
armor6 = true;
if (GSEngine.a6S1 == true){
skillArmor.skill1Icons.alpha = 1;
};
if (GSEngine.a6S2 == true){
skillArmor.skill2Icons.alpha = 1;
} else {
skillArmor.skill2Icons.alpha = 0.5;
};
if (GSEngine.a6S3 == true){
skillArmor.skill3Icons.alpha = 1;
} else {
skillArmor.skill3Icons.alpha = 0.5;
};
if (GSEngine.a6S4 == true){
skillArmor.skill4Icons.alpha = 1;
} else {
skillArmor.skill4Icons.alpha = 0.5;
};
};
};
};
};
};
};
_local1++;
};
}
function dirOnOver(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(2);
}
function dirOnOut(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(1);
}
function dirOnDown(_arg1:MouseEvent):void{
switch (_arg1.target){
case armorKanan:
highlightArmor.play();
resetDisplaySkill();
if ((((_arg1.target == armorKanan)) && ((armorIndex == (GSEngine.armorArray.length - 1))))){
currArmorDisplay = 1;
armorIndex = 0;
} else {
if ((((_arg1.target == armorKanan)) && (!((armorIndex == (GSEngine.armorArray.length - 1)))))){
armorIndex = (armorIndex + 1);
currArmorDisplay = GSEngine.armorArray[armorIndex];
clearShortcut();
};
};
case armorKiri:
highlightArmor.play();
resetDisplaySkill();
if ((((_arg1.target == armorKiri)) && ((armorIndex == 0)))){
armorIndex = (GSEngine.armorArray.length - 1);
currArmorDisplay = GSEngine.armorArray[armorIndex];
if (GSEngine.armorArray.length > 1){
clearShortcut();
};
} else {
if ((((_arg1.target == armorKiri)) && (!((armorIndex == 0))))){
armorIndex = (armorIndex - 1);
currArmorDisplay = GSEngine.armorArray[armorIndex];
clearShortcut();
};
};
case addOnKanan:
if ((((_arg1.target == addOnKanan)) && ((addOnIndex == (GSEngine.addOnArray.length - 1))))){
currAddOnDisplay = GSEngine.addOnArray[0];
addOnIndex = 0;
} else {
if ((((_arg1.target == addOnKanan)) && (!((addOnIndex == (GSEngine.addOnArray.length - 1)))))){
addOnIndex = (addOnIndex + 1);
currAddOnDisplay = GSEngine.addOnArray[addOnIndex];
} else {
if ((((_arg1.target == addOnKanan)) && ((GSEngine.addOnArray.length == 0)))){
currAddOnDisplay = 0;
};
};
};
case addOnKiri:
if ((((_arg1.target == addOnKiri)) && ((addOnIndex == 0)))){
addOnIndex = (GSEngine.addOnArray.length - 1);
currAddOnDisplay = GSEngine.addOnArray[addOnIndex];
} else {
if ((((_arg1.target == addOnKiri)) && (!((addOnIndex == 0))))){
addOnIndex = (addOnIndex - 1);
currAddOnDisplay = GSEngine.addOnArray[addOnIndex];
};
};
case weaponKanan:
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
if ((((_arg1.target == weaponKanan)) && ((weaponIndex == (GSEngine.weaponArray.length - 1))))){
currWeaponDisplay = 1;
weaponIndex = 0;
} else {
if ((((_arg1.target == weaponKanan)) && (!((weaponIndex == (GSEngine.weaponArray.length - 1)))))){
weaponIndex = (weaponIndex + 1);
currWeaponDisplay = GSEngine.weaponArray[weaponIndex];
};
};
case weaponKiri:
upgradeWeapon.visible = true;
wLevel.gotoAndStop(1);
if ((((_arg1.target == weaponKiri)) && ((weaponIndex == 0)))){
weaponIndex = (GSEngine.weaponArray.length - 1);
currWeaponDisplay = GSEngine.weaponArray[weaponIndex];
} else {
if ((((_arg1.target == weaponKiri)) && (!((weaponIndex == 0))))){
weaponIndex = (weaponIndex - 1);
currWeaponDisplay = GSEngine.weaponArray[weaponIndex];
};
};
case subWeaponKanan:
sWLevel.gotoAndStop(1);
if ((((_arg1.target == subWeaponKanan)) && ((subWeaponIndex == (GSEngine.subWeaponArray.length - 1))))){
currSubWeaponDisplay = 1;
subWeaponIndex = 0;
} else {
if ((((_arg1.target == subWeaponKanan)) && (!((subWeaponIndex == (GSEngine.subWeaponArray.length - 1)))))){
subWeaponIndex = (subWeaponIndex + 1);
currSubWeaponDisplay = GSEngine.subWeaponArray[subWeaponIndex];
} else {
if ((((_arg1.target == subWeaponKanan)) && ((GSEngine.subWeaponArray.length == 0)))){
currSubWeaponDisplay = 0;
};
};
};
case subWeaponKiri:
sWLevel.gotoAndStop(1);
if ((((_arg1.target == subWeaponKiri)) && ((subWeaponIndex == 0)))){
subWeaponIndex = (GSEngine.subWeaponArray.length - 1);
currSubWeaponDisplay = GSEngine.subWeaponArray[subWeaponIndex];
} else {
if ((((_arg1.target == subWeaponKiri)) && (!((subWeaponIndex == 0))))){
subWeaponIndex = (subWeaponIndex - 1);
currSubWeaponDisplay = GSEngine.subWeaponArray[subWeaponIndex];
};
};
};
if ((((_arg1.target == weaponKanan)) || ((_arg1.target == weaponKiri)))){
hLWeapon.play();
} else {
if ((((_arg1.target == subWeaponKanan)) || ((_arg1.target == subWeaponKiri)))){
hLSubWeapon.play();
} else {
if ((((_arg1.target == addOnKanan)) || ((_arg1.target == addOnKiri)))){
hLAddOn.play();
};
};
};
_arg1.target.gotoAndPlay(3);
armorDisplay.gotoAndStop(currArmorDisplay);
addOnEquiped.gotoAndStop(currAddOnDisplay);
}
function setWeaponDisplay(_arg1:int, _arg2:String, _arg3:String, _arg4:String, _arg5:int, _arg6:int, _arg7:int, _arg8:String, _arg9:String, _arg10:int, _arg11:int, _arg12:int, _arg13:int, _arg14, _arg15:int){
GSEngine.wDamage = _arg10;
weaponEquipedDetail.wEDDamage.text = ((GSEngine.wDamage.toString() + " X ") + _arg9);
GSEngine.wFireRate = _arg1;
weaponItemReq1.gotoAndStop(_arg2);
weaponItemReq2.gotoAndStop(_arg3);
weaponItemReq3.gotoAndStop(_arg4);
itemReq1 = _arg5;
itemReq2 = _arg6;
itemReq3 = _arg7;
weaponEquipedDetail.wEDAdditionalStatus.text = _arg8;
buyWReqItem1Have.text = ((itemReq1.toString() + " / ") + _arg11.toString());
buyWReqItem2Have.text = ((itemReq2.toString() + " / ") + _arg12.toString());
buyWReqItem3Have.text = ((itemReq3.toString() + " / ") + _arg13.toString());
if (_arg14 == "weapAddAttStat"){
weapAddAttStat = _arg15;
weapAddCritStat = 0;
weapAddHpStat = 0;
weapAddMpStat = 0;
weapAddArStat = 0;
weapAddArRegStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddCritStat"){
weapAddCritStat = _arg15;
weapAddAttStat = 0;
weapAddHpStat = 0;
weapAddMpStat = 0;
weapAddArStat = 0;
weapAddArRegStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddHpStat"){
weapAddHpStat = _arg15;
weapAddCritStat = 0;
weapAddAttStat = 0;
weapAddMpStat = 0;
weapAddArStat = 0;
weapAddArRegStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddMpStat"){
weapAddMpStat = _arg15;
weapAddHpStat = 0;
weapAddCritStat = 0;
weapAddAttStat = 0;
weapAddArStat = 0;
weapAddArRegStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddArStat"){
weapAddArStat = _arg15;
weapAddMpStat = 0;
weapAddHpStat = 0;
weapAddCritStat = 0;
weapAddAttStat = 0;
weapAddArRegStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddArRegStat"){
weapAddArRegStat = _arg15;
weapAddArStat = 0;
weapAddMpStat = 0;
weapAddHpStat = 0;
weapAddCritStat = 0;
weapAddAttStat = 0;
weapAddMpRegStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddMpRegStat"){
weapAddMpRegStat = _arg15;
weapAddArRegStat = 0;
weapAddArStat = 0;
weapAddMpStat = 0;
weapAddHpStat = 0;
weapAddCritStat = 0;
weapAddAttStat = 0;
weapAddAgiStat = 0;
} else {
if (_arg14 == "weapAddAgiStat"){
weapAddAgiStat = _arg15;
weapAddMpRegStat = 0;
weapAddArRegStat = 0;
weapAddArStat = 0;
weapAddMpStat = 0;
weapAddHpStat = 0;
weapAddCritStat = 0;
weapAddAttStat = 0;
};
};
};
};
};
};
};
};
}
function setAddOnDisplay(_arg1, _arg2:int){
switch (_arg1){
case "AOAddAttStat":
AOAddAttStat = _arg2;
AOAddCritStat = 0;
AOAddHpStat = 0;
AOAddMpStat = 0;
AOAddArStat = 0;
AOAddArRegStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddCritStat":
AOAddCritStat = _arg2;
AOAddAttStat = 0;
AOAddHpStat = 0;
AOAddMpStat = 0;
AOAddArStat = 0;
AOAddArRegStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddHpStat":
AOAddHpStat = _arg2;
AOAddCritStat = 0;
AOAddAttStat = 0;
AOAddMpStat = 0;
AOAddArStat = 0;
AOAddArRegStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddMpStat":
AOAddMpStat = _arg2;
AOAddHpStat = 0;
AOAddCritStat = 0;
AOAddAttStat = 0;
AOAddArStat = 0;
AOAddArRegStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddArStat":
AOAddArStat = _arg2;
AOAddMpStat = 0;
AOAddHpStat = 0;
AOAddCritStat = 0;
AOAddAttStat = 0;
AOAddArRegStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddArRegStat":
AOAddArRegStat = _arg2;
AOAddArStat = 0;
AOAddMpStat = 0;
AOAddHpStat = 0;
AOAddCritStat = 0;
AOAddAttStat = 0;
AOAddMpRegStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddMpRegStat":
AOAddMpRegStat = _arg2;
AOAddArRegStat = 0;
AOAddArStat = 0;
AOAddMpStat = 0;
AOAddHpStat = 0;
AOAddCritStat = 0;
AOAddAttStat = 0;
AOAddAgiStat = 0;
break;
case "AOAddAgiStat":
AOAddAgiStat = _arg2;
AOAddMpRegStat = 0;
AOAddArRegStat = 0;
AOAddArStat = 0;
AOAddMpStat = 0;
AOAddHpStat = 0;
AOAddCritStat = 0;
AOAddAttStat = 0;
break;
};
}
function setSubWeaponDisplay(_arg1:int, _arg2:String, _arg3:String, _arg4:String, _arg5:int, _arg6:int, _arg7:int, _arg8:String, _arg9:int, _arg10:int, _arg11:int, _arg12:int, _arg13, _arg14:int){
GSEngine.sWDamage = _arg9;
subWeaponEquipedDetail.sWEDDamage.text = GSEngine.sWDamage.toString();
GSEngine.sWFireRate = _arg1;
subWeaponItemReq1.gotoAndStop(_arg2);
subWeaponItemReq2.gotoAndStop(_arg3);
subWeaponItemReq3.gotoAndStop(_arg4);
subWeaponEquipedDetail.sWEDAdditionalStatus.text = _arg8;
swItemReq1 = _arg5;
swItemReq2 = _arg6;
swItemReq3 = _arg7;
buySWReqItem1Have.text = ((swItemReq1.toString() + " / ") + _arg10.toString());
buySWReqItem2Have.text = ((swItemReq2.toString() + " / ") + _arg11.toString());
buySWReqItem3Have.text = ((swItemReq3.toString() + " / ") + _arg12.toString());
switch (_arg13){
case "SweapAddAttStat":
SweapAddAttStat = _arg14;
SweapAddCritStat = 0;
SweapAddHpStat = 0;
SweapAddMpStat = 0;
SweapAddArStat = 0;
SweapAddArRegStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddCritStat":
SweapAddCritStat = _arg14;
SweapAddAttStat = 0;
SweapAddHpStat = 0;
SweapAddMpStat = 0;
SweapAddArStat = 0;
SweapAddArRegStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddHpStat":
SweapAddHpStat = _arg14;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
SweapAddMpStat = 0;
SweapAddArStat = 0;
SweapAddArRegStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddMpStat":
SweapAddMpStat = _arg14;
SweapAddHpStat = 0;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
SweapAddArStat = 0;
SweapAddArRegStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddArStat":
SweapAddArStat = _arg14;
SweapAddMpStat = 0;
SweapAddHpStat = 0;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
SweapAddArRegStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddArRegStat":
SweapAddArRegStat = _arg14;
SweapAddArStat = 0;
SweapAddMpStat = 0;
SweapAddHpStat = 0;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
SweapAddMpRegStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddMpRegStat":
SweapAddMpRegStat = _arg14;
SweapAddArRegStat = 0;
SweapAddArStat = 0;
SweapAddMpStat = 0;
SweapAddHpStat = 0;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
SweapAddAgiStat = 0;
break;
case "SweapAddAgiStat":
SweapAddAgiStat = _arg14;
SweapAddMpRegStat = 0;
SweapAddArRegStat = 0;
SweapAddArStat = 0;
SweapAddMpStat = 0;
SweapAddHpStat = 0;
SweapAddCritStat = 0;
SweapAddAttStat = 0;
break;
};
}
function setStatusDisplay(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:int, _arg10:int, _arg11:int, _arg12:int, _arg13:int, _arg14:int, _arg15:int, _arg16:int){
allStatus.visible = true;
allStatus.attackStatus.text = _arg1.toString();
allStatus.criticalStatus.text = _arg2.toString();
allStatus.hpStatus.text = _arg3.toString();
allStatus.mpStatus.text = _arg4.toString();
allStatus.armorStatus.text = _arg5.toString();
allStatus.armorRegenStatus.text = _arg6.toString();
allStatus.mpRegenStatus.text = _arg7.toString();
allStatus.moveSpeedStatus.text = _arg8.toString();
allStatus.addAttStatus.text = ("+" + additionalAttackStatus.toString());
allStatus.addCriticalStatus.text = ("+" + additionalCriticalStatus.toString());
allStatus.addHpStatus.text = ("+" + additionalHitpointStatus.toString());
allStatus.addMpStatus.text = ("+" + additionalMpStatus.toString());
allStatus.addArmorStatus.text = ("+" + additionalArmorStatus.toString());
allStatus.addArmorRegenStatus.text = ("+" + additionalArmorRegStatus.toString());
allStatus.addMpRegenStatus.text = ("+" + additionalMpRegStatus.toString());
allStatus.addMoveSpeedStatus.text = ("+" + additionalAgilityStatus.toString());
GSEngine.armorAttack = (_arg1 + additionalAttackStatus);
GSEngine.criticalChange = (_arg2 + additionalCriticalStatus);
GSEngine.maxHp = (_arg3 + additionalHitpointStatus);
GSEngine.maxMp = (_arg4 + additionalMpStatus);
GSEngine.armor1HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor2HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor3HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor4HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor5HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor6HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.armor7HP = ((_arg5 + additionalArmorStatus) / 7);
GSEngine.mpRegen = (_arg7 + additionalMpRegStatus);
GSEngine.armorRegen = (_arg6 + additionalArmorRegStatus);
GSEngine.agility = (_arg8 + additionalAgilityStatus);
}
function checkSkill(){
skillArmor.skill1Icons.gotoAndStop(currArmorDisplay);
skillArmor.skill2Icons.gotoAndStop(currArmorDisplay);
skillArmor.skill3Icons.gotoAndStop(currArmorDisplay);
skillArmor.skill4Icons.gotoAndStop(currArmorDisplay);
}
function skillHighlight(_arg1:MouseEvent):void{
setArmorDisplay();
if (_arg1.target == skillArmor.skill1Icons){
slotIcon1.gotoAndStop(2);
slotIcon2.gotoAndStop(1);
slotIcon3.gotoAndStop(1);
slotIcon4.gotoAndStop(1);
if (currArmorDisplay == 1){
namaSkill.text = "SUPERNOVA";
skillDetails.text = "Cast a blast of white energy Ray. Req. Armor Level 1";
} else {
if (currArmorDisplay == 2){
namaSkill.text = "BURNING RADIATION";
skillDetails.text = "Radiate a hot gas to burn enemy. Req. Armor Level 1";
} else {
if (currArmorDisplay == 3){
namaSkill.text = "DEFLECT";
skillDetails.text = "Deflect enemy bullet to random direction. Req. Armor Level 1";
} else {
if (currArmorDisplay == 4){
namaSkill.text = "PROTECT";
skillDetails.text = "cast armor to protect escape Pod Req. Armor Level 1";
} else {
if (currArmorDisplay == 5){
namaSkill.text = "INVURNERABLE";
skillDetails.text = "The ship become invisible and cannot take damage. Req. Armor Level 1";
} else {
if (currArmorDisplay == 6){
namaSkill.text = "SHADOW SHIP";
skillDetails.text = "Create a decoy ship to fool enemy. Req. Armor Level 1";
};
};
};
};
};
};
} else {
if (_arg1.target == skillArmor.skill2Icons){
slotIcon2.gotoAndStop(2);
slotIcon1.gotoAndStop(1);
slotIcon3.gotoAndStop(1);
slotIcon4.gotoAndStop(1);
if (currArmorDisplay == 1){
namaSkill.text = "ARC SHIELD";
skillDetails.text = "Deploy Shield like an arc in front of ship. Req. Armor Level 3";
} else {
if (currArmorDisplay == 2){
namaSkill.text = "WILD FIRE";
skillDetails.text = "Shoot Emense energy Laser toward enemies. Req. Armor Level 3";
skillDetails.text = "Cast a lot of swirling fire ball. Req. Armor Level 3";
} else {
if (currArmorDisplay == 3){
namaSkill.text = "BLUE RAY";
skillDetails.text = "Shoot Emense energy Laser toward enemies. Req. Armor Level 3";
} else {
if (currArmorDisplay == 4){
namaSkill.text = "SWARMING RAY";
skillDetails.text = "Deploy small attack Pod to destroy enemy. Armor Level 2";
} else {
if (currArmorDisplay == 5){
namaSkill.text = "ELECTROMAGNETIC FIELD";
skillDetails.text = "Jam enemy ship causing enemy malfunction. Req. Armor Level 2";
} else {
if (currArmorDisplay == 6){
namaSkill.text = "GRAVITATION";
skillDetails.text = "Pull down asteroids to attack the enemy. Req. Armor Level 2";
};
};
};
};
};
};
} else {
if (_arg1.target == skillArmor.skill3Icons){
slotIcon3.gotoAndStop(2);
slotIcon2.gotoAndStop(1);
slotIcon1.gotoAndStop(1);
slotIcon4.gotoAndStop(1);
if (currArmorDisplay == 1){
namaSkill.text = "RAGING SUN";
skillDetails.text = "Cast a ball like energy swaping the enemy. Req. Armor Level 5";
} else {
if (currArmorDisplay == 2){
namaSkill.text = "SOLAR STORM";
skillDetails.text = "Release waves of hot particle to burn enemy. Req. Armor Level 5";
} else {
if (currArmorDisplay == 3){
namaSkill.text = "COMET TAIL";
skillDetails.text = "Armor act like a bunch of commet swaping the enemy. Req. Armor Level 5";
} else {
if (currArmorDisplay == 4){
namaSkill.text = "CRITICAL ATTACK";
skillDetails.text = "Raise ship critical hit change for 100%. Req. Armor Level 4";
} else {
if (currArmorDisplay == 5){
namaSkill.text = "COUNTER WAVE";
skillDetails.text = "Call backup for hundreads Guardian Stars. Req. Armor Level 4";
} else {
if (currArmorDisplay == 6){
namaSkill.text = "ORBITAL SHIELD";
skillDetails.text = "Make everything on the screen as a shield. Req. Armor Level 4";
};
};
};
};
};
};
} else {
if (_arg1.target == skillArmor.skill4Icons){
slotIcon4.gotoAndStop(2);
slotIcon3.gotoAndStop(1);
slotIcon2.gotoAndStop(1);
slotIcon1.gotoAndStop(1);
if (currArmorDisplay == 1){
namaSkill.text = "";
skillDetails.text = "";
} else {
if (currArmorDisplay == 2){
namaSkill.text = "";
skillDetails.text = "";
} else {
if (currArmorDisplay == 3){
namaSkill.text = "";
skillDetails.text = "";
} else {
if (currArmorDisplay == 4){
namaSkill.text = "GLOBAL WARMING";
skillDetails.text = "Call down a fierce rain of bullet. Req. Armor Level 5";
} else {
if (currArmorDisplay == 5){
namaSkill.text = "DEAD LINES";
skillDetails.text = "Shoot large scale of massive Laser Attack. Req. Armor Level 5";
} else {
if (currArmorDisplay == 6){
namaSkill.text = "BLACK HOLE";
skillDetails.text = "Suck everything to singularity & regen HP & MP. Req. Armor Level 5";
};
};
};
};
};
};
};
};
};
};
}
function resetDisplaySkill(){
slotIcon4.gotoAndStop(1);
slotIcon3.gotoAndStop(1);
slotIcon2.gotoAndStop(1);
slotIcon1.gotoAndStop(2);
if (currArmorDisplay == 1){
namaSkill.text = "SUPERNOVA";
skillDetails.text = "Cast a blast of white energy Ray. Req. Armor Level 1";
} else {
if (currArmorDisplay == 2){
namaSkill.text = "BURNING RADIATION";
skillDetails.text = "Radiate a hot gas to burn enemy. Req. Armor Level 1";
} else {
if (currArmorDisplay == 3){
namaSkill.text = "DEFLECT";
skillDetails.text = "Deflect enemy bullet to random direction. Req. Armor Level 1";
} else {
if (currArmorDisplay == 4){
namaSkill.text = "PROTECT";
skillDetails.text = "cast armor to protect escape Pod Req. Armor Level 1";
} else {
if (currArmorDisplay == 5){
namaSkill.text = "INVURNERABLE";
skillDetails.text = "The ship become invisible and cannot take damage. Req. Armor Level 1";
} else {
if (currArmorDisplay == 6){
namaSkill.text = "SHADOW SHIP";
skillDetails.text = "Create a decoy ship to fool enemy. Req. Armor Level 1";
};
};
};
};
};
};
}
function aturtombolLearn(){
if (currArmorDisplay == 1){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a1S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a1S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a1S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a1S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a1S3 == false)))){
learnButton.visible = true;
};
};
};
if (currArmorDisplay == 2){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a2S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a2S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a2S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a2S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a2S3 == false)))){
learnButton.visible = true;
};
};
};
if (currArmorDisplay == 3){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a3S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a3S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a3S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a3S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a3S3 == false)))){
learnButton.visible = true;
};
};
};
if (currArmorDisplay == 4){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a4S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a4S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a4S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a4S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a4S3 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a4S4 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a4S4 == false)))){
learnButton.visible = true;
};
};
};
if (currArmorDisplay == 5){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a5S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a5S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a5S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a5S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a5S3 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a5S4 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a5S4 == false)))){
learnButton.visible = true;
};
};
};
if (currArmorDisplay == 6){
if ((((slotIcon1.currentFrame == 2)) && ((GSEngine.a6S1 == true)))){
learnButton.visible = false;
};
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a6S2 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon2.currentFrame == 2)) && ((GSEngine.a6S2 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a6S3 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon3.currentFrame == 2)) && ((GSEngine.a6S3 == false)))){
learnButton.visible = true;
};
};
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a6S4 == true)))){
learnButton.visible = false;
} else {
if ((((slotIcon4.currentFrame == 2)) && ((GSEngine.a6S4 == false)))){
learnButton.visible = true;
};
};
};
}
function skillLearn(_arg1:MouseEvent):void{
learnButton.gotoAndStop(3);
if (currArmorDisplay == 1){
if ((((GSEngine.a1S1 == false)) && ((namaSkill.text == "SUPERNOVA")))){
GSEngine.a1S1 = true;
};
if ((((GSEngine.a1S2 == false)) && ((namaSkill.text == "ARC SHIELD")))){
GSEngine.a1S2 = true;
};
if ((((GSEngine.a1S3 == false)) && ((namaSkill.text == "RAGING SUN")))){
GSEngine.a1S3 = true;
};
};
if (currArmorDisplay == 2){
if ((((GSEngine.a2S1 == false)) && ((namaSkill.text == "BURNING RADIATION")))){
GSEngine.a2S3 = true;
};
if ((((GSEngine.a2S2 == false)) && ((namaSkill.text == "WILD FIRE")))){
GSEngine.a2S2 = true;
};
if ((((GSEngine.a2S3 == false)) && ((namaSkill.text == "SOLAR STORM")))){
GSEngine.a2S3 = true;
};
};
if (currArmorDisplay == 3){
if ((((GSEngine.a3S1 == false)) && ((namaSkill.text == "DEFLECT")))){
GSEngine.a3S1 = true;
};
if ((((GSEngine.a3S2 == false)) && ((namaSkill.text == "BLUE RAY")))){
GSEngine.a3S2 = true;
};
if ((((GSEngine.a3S3 == false)) && ((namaSkill.text == "COMET TAIL")))){
GSEngine.a3S3 = true;
};
};
if (currArmorDisplay == 4){
if ((((GSEngine.a4S1 == false)) && ((namaSkill.text == "PROTECT")))){
GSEngine.a4S1 = true;
};
if ((((GSEngine.a4S2 == false)) && ((namaSkill.text == "SWARMING RAY")))){
GSEngine.a4S2 = true;
};
if ((((GSEngine.a4S3 == false)) && ((namaSkill.text == "CRITICAL ATTACK")))){
GSEngine.a4S3 = true;
};
if ((((GSEngine.a4S4 == false)) && ((namaSkill.text == "GLOBAL WARMING")))){
GSEngine.a4S4 = true;
};
};
if (currArmorDisplay == 5){
if ((((GSEngine.a5S1 == false)) && ((namaSkill.text == "INVURNERABLE")))){
GSEngine.a5S1 = true;
};
if ((((GSEngine.a5S2 == false)) && ((namaSkill.text == "ELECTROMAGNETIC FIELD")))){
GSEngine.a5S2 = true;
};
if ((((GSEngine.a5S3 == false)) && ((namaSkill.text == "COUNTER WAVE")))){
GSEngine.a5S3 = true;
};
if ((((GSEngine.a5S4 == false)) && ((namaSkill.text == "DEAD LINES")))){
GSEngine.a5S4 = true;
};
};
if (currArmorDisplay == 6){
if ((((GSEngine.a6S1 == false)) && ((namaSkill.text == "SHADOW SHIP")))){
GSEngine.a6S1 = true;
};
if ((((GSEngine.a6S2 == false)) && ((namaSkill.text == "GRAVITATION")))){
GSEngine.a6S2 = true;
};
if ((((GSEngine.a6S3 == false)) && ((namaSkill.text == "ORBITAL SHIELD")))){
GSEngine.a6S3 = true;
};
if ((((GSEngine.a6S4 == false)) && ((namaSkill.text == "BLACK HOLE")))){
GSEngine.a6S4 = true;
};
};
}
function removeThis(){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
}
function adListener(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function clearShortcut(){
(GSEngine.shortCut1 == "Supernova");
if ("BlackHole"){
GSEngine.shortCut1 = "none";
};
(GSEngine.shortCut2 == "Supernova");
if ("BlackHole"){
GSEngine.shortCut2 = "none";
};
(GSEngine.shortCut3 == "Supernova");
if ("BlackHole"){
GSEngine.shortCut3 = "none";
};
(GSEngine.shortCut4 == "Supernova");
if ("BlackHole"){
GSEngine.shortCut4 = "none";
};
(GSEngine.shortCut5 == "Supernova");
if ("BlackHole"){
GSEngine.shortCut5 = "none";
};
}
}
}//package
Section 181
//menuGabungan (menuGabungan)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
public class menuGabungan extends MovieClip {
public var displayCRIT:TextField;
public var description:TextField;
public var IndWeaponType:MovieClip;
public var armorDisplay:MovieClip;
public var arDisplay:MovieClip;
public var displayAGI:TextField;
public var displayMP:TextField;
public var weaponDisplayAll:MovieClip;
public var shipPanel:MovieClip;
public var shipTAB:MovieClip;
public var arTAB:MovieClip;
public var parCARGO:MovieClip;
public var carPanel:MovieClip;
public var arPanel:MovieClip;
public var displayARMOR:TextField;
public var displayHP:TextField;
public var namaSet:TextField;
public var parSHIP:MovieClip;
public var parARMOR:MovieClip;
public var carTAB:MovieClip;
var currTAB:String;// = "ship"
var selledWeapon:int;// = 1
var selledArmor:int;// = 1
var eqWeapon:int;// = 1
var eqArmor:int;
var upHPCost:int;
var upENCost:int;
var upAGICost:int;
var upCRITCost:int;
var arType:int;
var arReqItem1:int;// = 10
var arReqItem2:int;// = 11
var arReqItem3:int;// = 13
var arReqItem4:int;// = 20
var selledAr2:Boolean;// = true
var selledAr3:Boolean;// = true
var selledAr4:Boolean;// = true
var selledAr5:Boolean;// = true
var thisTintColour:Color;
var thisTintColour2:Color;
var upgradeHPCost:int;
var upgradeMPCost:int;
var upgradeAGICost:int;
var upgradeCRITCost:int;
var upgradeFIRATECost:int;
var upgradeBULLCost:int;
var overB:Sound;
var confirm:Sound;
var totalArmor:int;
var a2S1Cost:int;// = 1500
var a2S2Cost:int;// = 1400
var a3S1Cost:int;// = 2500
var a3S2Cost:int;// = 2300
var a4S1Cost:int;// = 3500
var a4S2Cost:int;// = 3300
var a5S1Cost:int;// = 5000
var a5S2Cost:int;// = 5000
var myChannel:SoundChannel;
static var curArmorDisplay:int = 1;
static var curWeaponDisplay:int = 1;
static var hilightedArmor:int = 0;
static var hilightedWeapon:int = 1;
static var fiRateDisplay:int;
static var powDisplay:int;
static var myTransform:SoundTransform = new SoundTransform();
public function menuGabungan(){
thisTintColour = new Color();
thisTintColour2 = new Color();
overB = new overButtonS();
confirm = new confirmKlik();
myChannel = new SoundChannel();
super();
shipPanel.hpDisplayBar.gotoAndStop(GSEngine.hpLevel);
shipPanel.mpDisplayBar.gotoAndStop(GSEngine.mpLevel);
shipPanel.agiDisplayBar.gotoAndStop(GSEngine.agiLevel);
shipPanel.critDisplayBar.gotoAndStop(GSEngine.critLevel);
arPanel.hLArmor.x = 32;
addEventListener(Event.ENTER_FRAME, eFrame);
addEventListener(Event.ADDED_TO_STAGE, beginClass);
arPanel.ar0Icon.alpha = 0.4;
arPanel.ar1Icon.alpha = 0.4;
arPanel.ar2Icon.alpha = 0.4;
arPanel.ar3Icon.alpha = 0.4;
arPanel.ar4Icon.alpha = 0.4;
arPanel.arBuyButton.visible = false;
carPanel.dragNotices.visible = false;
this.shipPanel.visible = true;
this.arPanel.visible = false;
this.carPanel.visible = false;
carPanel.dBat.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBCrumb.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dLum.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dOr.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dSM.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dStDu.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrys.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dMetP.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dFStone.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRem.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dIFluid.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dFiConn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dACarbon.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dSFuse.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dLWeb.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dGSM.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRRing.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dHOKhal.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dAnti.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBat.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dBCrumb.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dLum.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dOr.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dSM.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dStDu.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dCrys.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dMetP.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dFStone.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRem.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dIFluid.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dFiConn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dACarbon.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dSFuse.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dLWeb.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dGSM.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRRing.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dHOKhal.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dAnti.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRedEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBluEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dYelEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrit.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dDragon.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dPert.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dAtom.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRedEn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dBluEn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dYelEn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dCrit.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dDragon.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dPert.addEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dAtom.addEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.arBuyButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.arBuyButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.arBuyButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapBuy.buyWeapon.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapBuy.buyWeapon.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapBuy.buyWeapon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.shipPanel.weapUogMenu.visible = true;
this.shipPanel.weapBuy.visible = false;
this.shipPanel.HPuPGCost.alpha = 0.7;
this.shipPanel.ENupGCOst.alpha = 0.7;
this.shipPanel.AGIupGCost.alpha = 0.7;
this.shipPanel.CRITupGCost.alpha = 0.7;
shipPanel.weapUogMenu.FEupGCost.alpha = 0.7;
shipPanel.weapUogMenu.BVupGCost.alpha = 0.7;
carPanel.dRedEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBluEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dYelEn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrit.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dDragon.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dPert.addEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRedEn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dBluEn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dYelEn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dCrit.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dDragon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dPert.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dAtom.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dRedEn.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dBluEn.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dYelEn.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dCrit.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dDragon.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dPert.addEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dAtom.addEventListener(MouseEvent.MOUSE_UP, onUp);
parSHIP.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
parARMOR.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
parCARGO.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
parSHIP.addEventListener(MouseEvent.MOUSE_OVER, onOver);
parARMOR.addEventListener(MouseEvent.MOUSE_OVER, onOver);
parCARGO.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.wRightButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.wLeftButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.HPupGButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.ENupGButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.AGIupGButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.CRITupGButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapUogMenu.upFRButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapUogMenu.upBVButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.eqWeaponButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill1Button.addEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill2Button.addEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill1Button.addEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.uPSkill2Button.addEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.ar0Icon.addEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.ar0Icon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar1Icon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar2Icon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar3Icon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar4Icon.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.arPanel.uPSkill1Button.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.arPanel.uPSkill2Button.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapUogMenu.upFRButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapUogMenu.upBVButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.eqWeaponButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.HPupGButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.ENupGButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.AGIupGButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.CRITupGButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
parSHIP.addEventListener(MouseEvent.MOUSE_OUT, onOut);
parARMOR.addEventListener(MouseEvent.MOUSE_OUT, onOut);
parCARGO.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wRightButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wLeftButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.HPupGButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.ENupGButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.AGIupGButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.CRITupGButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapUogMenu.upFRButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapUogMenu.upBVButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.eqWeaponButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wRightButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.wLeftButton.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.arREQAl.reqItem1Qty.mouseEnabled = false;
arPanel.arREQAl.reqItem2Qty.mouseEnabled = false;
arPanel.arREQAl.reqItem3Qty.mouseEnabled = false;
arPanel.arREQAl.reqItem4Qty.mouseEnabled = false;
arPanel.sK1Name.mouseEnabled = false;
arPanel.sK2Name.mouseEnabled = false;
arPanel.sK1Detail.mouseEnabled = false;
arPanel.sK2Detail.mouseEnabled = false;
arPanel.ketText.mouseEnabled = false;
shipPanel.weapBuy.RJ1.mouseEnabled = false;
shipPanel.weapBuy.RJ2.mouseEnabled = false;
shipPanel.weapBuy.RJ3.mouseEnabled = false;
shipPanel.weapBuy.reqText.mouseEnabled = false;
shipPanel.weapBuy.rankReq.mouseEnabled = false;
shipPanel.weaponName.mouseEnabled = false;
shipPanel.sPHP.mouseEnabled = false;
shipPanel.sPEN.mouseEnabled = false;
shipPanel.sPAGI.mouseEnabled = false;
shipPanel.sPCRIT.mouseEnabled = false;
shipPanel.HPuPGCost.upHpCostText.mouseEnabled = false;
shipPanel.ENupGCOst.upMpCostText.mouseEnabled = false;
shipPanel.AGIupGCost.upAgiCostText.mouseEnabled = false;
shipPanel.CRITupGCost.upCritCostText.mouseEnabled = false;
namaSet.mouseEnabled = false;
displayHP.mouseEnabled = false;
displayMP.mouseEnabled = false;
displayARMOR.mouseEnabled = false;
displayAGI.mouseEnabled = false;
displayCRIT.mouseEnabled = false;
shipPanel.weapUogMenu.FEupGCost.upFRCostText.mouseEnabled = false;
shipPanel.weapUogMenu.BVupGCost.upBVCostText.mouseEnabled = false;
arPanel.uPSkill1Cost.upHpCostText.mouseEnabled = false;
arPanel.uPSkill2Cost.upHpCostText.mouseEnabled = false;
carPanel.ketUse.mouseEnabled = false;
carPanel.ketItem.mouseEnabled = false;
}
function beginClass(_arg1:Event):void{
checkArmor();
if (GSEngine.weaponType == 1){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon1Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon1Level);
} else {
if (GSEngine.weaponType == 2){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon2Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon2Level);
} else {
if (GSEngine.weaponType == 3){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon3Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon3Level);
} else {
if (GSEngine.weaponType == 4){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon4Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon4Level);
} else {
if (GSEngine.weaponType == 5){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon5Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon5Level);
} else {
if (GSEngine.weaponType == 6){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon6Level);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon6Level);
};
};
};
};
};
};
if (GSEngine.armorType == 1){
arPanel.hLArmor.x = 32;
hilightedArmor = 0;
curArmorDisplay = 1;
curWeaponDisplay = 1;
} else {
if (GSEngine.armorType == 2){
arPanel.hLArmor.x = 111;
hilightedArmor = 1;
curArmorDisplay = 2;
curWeaponDisplay = 2;
} else {
if (GSEngine.armorType == 3){
arPanel.hLArmor.x = 188;
hilightedArmor = 2;
curArmorDisplay = 3;
curWeaponDisplay = 3;
} else {
if (GSEngine.armorType == 4){
arPanel.hLArmor.x = 266;
hilightedArmor = 3;
curArmorDisplay = 4;
curWeaponDisplay = 4;
} else {
if (GSEngine.armorType == 5){
arPanel.hLArmor.x = 343;
hilightedArmor = 4;
curArmorDisplay = 5;
curWeaponDisplay = 5;
};
};
};
};
};
}
function cekCost(){
shipPanel.ENupGCOst.upMpCostText.text = upgradeMPCost.toString();
shipPanel.HPuPGCost.upHpCostText.text = upgradeHPCost.toString();
shipPanel.AGIupGCost.upAgiCostText.text = upgradeAGICost.toString();
shipPanel.CRITupGCost.upCritCostText.text = upgradeCRITCost.toString();
shipPanel.weapUogMenu.FEupGCost.upFRCostText.text = upgradeFIRATECost.toString();
shipPanel.weapUogMenu.BVupGCost.upBVCostText.text = upgradeBULLCost.toString();
if (GSEngine.hpLevel == 1){
upgradeHPCost = 1500;
shipPanel.HPuPGCost.visible = true;
shipPanel.HPupGButton.visible = true;
};
if (GSEngine.hpLevel == 2){
upgradeHPCost = 4500;
};
if (GSEngine.hpLevel == 3){
upgradeHPCost = 14000;
};
if (GSEngine.hpLevel == 4){
upgradeHPCost = 50000;
};
if (GSEngine.hpLevel == 5){
upgradeHPCost = 150000;
};
if (GSEngine.hpLevel == 6){
upgradeHPCost = 300000;
};
if (GSEngine.hpLevel == 7){
shipPanel.HPuPGCost.visible = false;
shipPanel.HPupGButton.visible = false;
};
if (GSEngine.mpLevel == 1){
upgradeMPCost = 2000;
shipPanel.ENupGCOst.visible = true;
shipPanel.ENupGButton.visible = true;
};
if (GSEngine.mpLevel == 2){
upgradeMPCost = 6000;
};
if (GSEngine.mpLevel == 3){
upgradeMPCost = 24000;
};
if (GSEngine.mpLevel == 4){
upgradeMPCost = 70000;
};
if (GSEngine.mpLevel == 5){
upgradeMPCost = 210000;
};
if (GSEngine.mpLevel == 6){
upgradeMPCost = 350000;
};
if (GSEngine.mpLevel == 7){
shipPanel.ENupGCOst.visible = false;
shipPanel.ENupGButton.visible = false;
};
if (GSEngine.agiLevel == 1){
upgradeAGICost = 2100;
shipPanel.AGIupGCost.visible = true;
shipPanel.AGIupGButton.visible = true;
};
if (GSEngine.agiLevel == 2){
upgradeAGICost = 6500;
};
if (GSEngine.agiLevel == 3){
upgradeAGICost = 25000;
};
if (GSEngine.agiLevel == 4){
upgradeAGICost = 75000;
};
if (GSEngine.agiLevel == 5){
upgradeAGICost = 225000;
};
if (GSEngine.agiLevel == 6){
upgradeAGICost = 675000;
};
if (GSEngine.agiLevel == 7){
shipPanel.AGIupGCost.visible = false;
shipPanel.AGIupGButton.visible = false;
};
if (GSEngine.critLevel == 1){
upgradeCRITCost = 1500;
shipPanel.CRITupGCost.visible = true;
shipPanel.CRITupGButton.visible = true;
};
if (GSEngine.critLevel == 2){
upgradeCRITCost = 4500;
};
if (GSEngine.critLevel == 3){
upgradeCRITCost = 14000;
};
if (GSEngine.critLevel == 4){
upgradeCRITCost = 50000;
};
if (GSEngine.critLevel == 5){
upgradeCRITCost = 150000;
};
if (GSEngine.critLevel == 6){
upgradeCRITCost = 500000;
};
if (GSEngine.critLevel == 7){
shipPanel.CRITupGCost.visible = false;
shipPanel.CRITupGButton.visible = false;
};
if (GSEngine.weaponType == 1){
if (GSEngine.weapon1fireRate == 0){
upgradeFIRATECost = 100;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 1){
upgradeFIRATECost = 200;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 2){
upgradeFIRATECost = 400;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 3){
upgradeFIRATECost = 650;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 4){
upgradeFIRATECost = 1400;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 5){
upgradeFIRATECost = 2300;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon1fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon1Level == 0){
upgradeBULLCost = 100;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon1Level == 1){
upgradeBULLCost = 200;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon1Level == 2){
upgradeBULLCost = 400;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon1Level == 3){
upgradeBULLCost = 650;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon1Level == 4){
upgradeBULLCost = 1400;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon1Level == 5){
upgradeBULLCost = 2300;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon1Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
if (GSEngine.weaponType == 2){
if (GSEngine.weapon2fireRate == 0){
upgradeFIRATECost = 300;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 1){
upgradeFIRATECost = 600;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 2){
upgradeFIRATECost = 1200;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 3){
upgradeFIRATECost = 2400;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 4){
upgradeFIRATECost = 4800;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 5){
upgradeFIRATECost = 9000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon2fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon2Level == 0){
upgradeBULLCost = 300;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon2Level == 1){
upgradeBULLCost = 600;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon2Level == 2){
upgradeBULLCost = 1200;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon2Level == 3){
upgradeBULLCost = 2400;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon2Level == 4){
upgradeBULLCost = 4800;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon2Level == 5){
upgradeBULLCost = 9000;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon2Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
if (GSEngine.weaponType == 3){
if (GSEngine.weapon3fireRate == 0){
upgradeFIRATECost = 600;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 1){
upgradeFIRATECost = 1500;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 2){
upgradeFIRATECost = 4000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 3){
upgradeFIRATECost = 12000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 4){
upgradeFIRATECost = 25000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 5){
upgradeFIRATECost = 50000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon3fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon3Level == 0){
upgradeBULLCost = 600;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon3Level == 1){
upgradeBULLCost = 1500;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon3Level == 2){
upgradeBULLCost = 4000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon3Level == 3){
upgradeBULLCost = 12000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon3Level == 4){
upgradeBULLCost = 25000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon3Level == 5){
upgradeBULLCost = 50000;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon3Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
if (GSEngine.weaponType == 4){
if (GSEngine.weapon4fireRate == 0){
upgradeFIRATECost = 1000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 1){
upgradeFIRATECost = 2500;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 2){
upgradeFIRATECost = 6000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 3){
upgradeFIRATECost = 15000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 4){
upgradeFIRATECost = 35000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 5){
upgradeFIRATECost = 80000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon4fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon4Level == 0){
upgradeBULLCost = 1000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon4Level == 1){
upgradeBULLCost = 2500;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon4Level == 2){
upgradeBULLCost = 6000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon4Level == 3){
upgradeBULLCost = 15000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon4Level == 4){
upgradeBULLCost = 35000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon4Level == 5){
upgradeBULLCost = 80000;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon4Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
if (GSEngine.weaponType == 5){
if (GSEngine.weapon5fireRate == 0){
upgradeFIRATECost = 2000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 1){
upgradeFIRATECost = 5500;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 2){
upgradeFIRATECost = 15000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 3){
upgradeFIRATECost = 40000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 4){
upgradeFIRATECost = 100000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 5){
upgradeFIRATECost = 250000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon5fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon5Level == 0){
upgradeBULLCost = 2000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon5Level == 1){
upgradeBULLCost = 5500;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon5Level == 2){
upgradeBULLCost = 15000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon5Level == 3){
upgradeBULLCost = 40000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon5Level == 4){
upgradeBULLCost = 100000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon5Level == 5){
upgradeBULLCost = 250000;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon5Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
if (GSEngine.weaponType == 6){
if (GSEngine.weapon6fireRate == 0){
upgradeFIRATECost = 450;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 1){
upgradeFIRATECost = 900;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 2){
upgradeFIRATECost = 2000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 3){
upgradeFIRATECost = 4500;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 4){
upgradeFIRATECost = 10000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 5){
upgradeFIRATECost = 20000;
shipPanel.weapUogMenu.FEupGCost.visible = true;
shipPanel.weapUogMenu.upFRButton.visible = true;
};
if (GSEngine.weapon6fireRate == 6){
shipPanel.weapUogMenu.FEupGCost.visible = false;
shipPanel.weapUogMenu.upFRButton.visible = false;
};
if (GSEngine.weapon6Level == 0){
upgradeBULLCost = 500;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon6Level == 1){
upgradeBULLCost = 1000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon6Level == 2){
upgradeBULLCost = 2500;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon6Level == 3){
upgradeBULLCost = 6000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon6Level == 4){
upgradeBULLCost = 12000;
shipPanel.weapUogMenu.upBVButton.visible = true;
shipPanel.weapUogMenu.BVupGCost.visible = true;
};
if (GSEngine.weapon6Level == 5){
upgradeBULLCost = 25000;
shipPanel.weapUogMenu.BVupGCost.visible = true;
shipPanel.weapUogMenu.upBVButton.visible = true;
};
if (GSEngine.weapon6Level == 6){
shipPanel.weapUogMenu.BVupGCost.visible = false;
shipPanel.weapUogMenu.upBVButton.visible = false;
};
};
}
function cekStatus(){
if (GSEngine.weaponType == 1){
fiRateDisplay = (15 + (GSEngine.weapon1fireRate * 2));
powDisplay = (((15 * GSEngine.weapon1fireRate) * GSEngine.weaponType) + (GSEngine.weapon1fireRate * GSEngine.weaponType));
} else {
if (GSEngine.weaponType == 2){
fiRateDisplay = (15 + (GSEngine.weapon2fireRate * 2));
powDisplay = (((15 * GSEngine.weapon2fireRate) * GSEngine.weaponType) + (GSEngine.weapon2fireRate * GSEngine.weaponType));
} else {
if (GSEngine.weaponType == 3){
fiRateDisplay = (15 + (GSEngine.weapon3fireRate * 2));
powDisplay = (((15 * GSEngine.weapon3fireRate) * GSEngine.weaponType) + (GSEngine.weapon3fireRate * GSEngine.weaponType));
} else {
if (GSEngine.weaponType == 4){
fiRateDisplay = (15 + (GSEngine.weapon4fireRate * 2));
powDisplay = (((15 * GSEngine.weapon4fireRate) * GSEngine.weaponType) + (GSEngine.weapon4fireRate * GSEngine.weaponType));
} else {
if (GSEngine.weaponType == 5){
fiRateDisplay = (15 + (GSEngine.weapon5fireRate * 2));
powDisplay = (((15 * GSEngine.weapon5fireRate) * GSEngine.weaponType) + (GSEngine.weapon5fireRate * GSEngine.weaponType));
} else {
if (GSEngine.weaponType == 6){
fiRateDisplay = (15 + (GSEngine.weapon6fireRate * 2));
powDisplay = (((15 * GSEngine.weapon6fireRate) * GSEngine.weaponType) + (GSEngine.weapon6fireRate * GSEngine.weaponType));
};
};
};
};
};
};
if (GSEngine.hpLevel == 1){
GSEngine.maxHp = 100;
} else {
if (GSEngine.hpLevel == 2){
GSEngine.maxHp = 150;
} else {
if (GSEngine.hpLevel == 3){
GSEngine.maxHp = 225;
} else {
if (GSEngine.hpLevel == 4){
GSEngine.maxHp = 325;
} else {
if (GSEngine.hpLevel == 5){
GSEngine.maxHp = 450;
} else {
if (GSEngine.hpLevel == 6){
GSEngine.maxHp = 500;
} else {
if (GSEngine.hpLevel == 7){
GSEngine.maxHp = 600;
};
};
};
};
};
};
};
if (GSEngine.mpLevel == 1){
GSEngine.maxMp = 100;
} else {
if (GSEngine.mpLevel == 2){
GSEngine.maxMp = 150;
} else {
if (GSEngine.mpLevel == 3){
GSEngine.maxMp = 250;
} else {
if (GSEngine.mpLevel == 4){
GSEngine.maxMp = 350;
} else {
if (GSEngine.mpLevel == 5){
GSEngine.maxMp = 475;
} else {
if (GSEngine.mpLevel == 6){
GSEngine.maxMp = 600;
} else {
if (GSEngine.mpLevel == 7){
GSEngine.maxMp = 900;
};
};
};
};
};
};
};
if (GSEngine.agiLevel == 1){
GSEngine.dodgeRate = 7;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 2){
GSEngine.dodgeRate = 9;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 3){
GSEngine.dodgeRate = 13;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 4){
GSEngine.dodgeRate = 18;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 5){
GSEngine.dodgeRate = 25;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 6){
GSEngine.dodgeRate = 30;
GSEngine.arrayKE = 0;
} else {
if (GSEngine.agiLevel == 7){
GSEngine.dodgeRate = 35;
GSEngine.arrayKE = 0;
};
};
};
};
};
};
};
if (GSEngine.critLevel == 0){
GSEngine.criticalRate = 5;
} else {
if (GSEngine.critLevel == 1){
GSEngine.criticalRate = 10;
} else {
if (GSEngine.critLevel == 2){
GSEngine.criticalRate = 15;
} else {
if (GSEngine.critLevel == 3){
GSEngine.criticalRate = 25;
} else {
if (GSEngine.critLevel == 4){
GSEngine.criticalRate = 35;
} else {
if (GSEngine.critLevel == 5){
GSEngine.criticalRate = 45;
} else {
if (GSEngine.critLevel == 6){
GSEngine.criticalRate = 55;
} else {
if (GSEngine.critLevel == 7){
GSEngine.criticalRate = 60;
};
};
};
};
};
};
};
};
}
public function eFrame(_arg1:Event):void{
if (GSEngine.phases == "Action"){
removeThis();
};
shipPanel.pows.text = powDisplay.toString();
shipPanel.spd.text = fiRateDisplay.toString();
checkArmor();
checkConsume();
checkSC();
checkWeapon();
cekStatus();
checkSkill();
cekCost();
arPanel.skill1Icon.transform.colorTransform = thisTintColour;
arPanel.skill2Icon.transform.colorTransform = thisTintColour2;
shipPanel.sPHP.text = ((GSEngine.maxHp.toString() + " / ") + GSEngine.maxHp.toString());
shipPanel.sPEN.text = ((GSEngine.maxMp.toString() + " / ") + GSEngine.maxMp.toString());
shipPanel.sPAGI.text = ((GSEngine.dodgeRate.toString() + "% ") + "Dodge Rate");
shipPanel.sPCRIT.text = ((GSEngine.criticalRate.toString() + "% ") + "Critical Rate");
displayHP.text = ((GSEngine.maxHp.toString() + " / ") + GSEngine.maxHp.toString());
displayMP.text = ((GSEngine.maxMp.toString() + " / ") + GSEngine.maxMp.toString());
displayCRIT.text = (GSEngine.criticalRate.toString() + "%");
if (GSEngine.agiLevel == 1){
displayAGI.text = "7";
} else {
if (GSEngine.agiLevel == 2){
displayAGI.text = "9";
} else {
if (GSEngine.agiLevel == 3){
displayAGI.text = "13";
} else {
if (GSEngine.agiLevel == 4){
displayAGI.text = "18";
} else {
if (GSEngine.agiLevel == 5){
displayAGI.text = "25";
} else {
if (GSEngine.agiLevel == 6){
displayAGI.text = "30";
} else {
if (GSEngine.agiLevel == 7){
displayAGI.text = "35";
};
};
};
};
};
};
};
if (curWeaponDisplay == 1){
};
shipPanel.weaponDisplay.gotoAndStop(curWeaponDisplay);
weaponDisplayAll.gotoAndStop(GSEngine.weaponType);
arDisplay.gotoAndStop(GSEngine.armorType);
armorDisplay.gotoAndStop(GSEngine.armorType);
if (selledAr2 == false){
arPanel.ar1Icon.gotoAndStop(2);
};
if (selledAr3 == false){
arPanel.ar2Icon.gotoAndStop(2);
};
if (selledAr4 == false){
arPanel.ar3Icon.gotoAndStop(2);
};
if (selledAr5 == false){
arPanel.ar4Icon.gotoAndStop(2);
};
arPanel.skill1Icon.gotoAndStop((hilightedArmor + 1));
arPanel.skill2Icon.gotoAndStop((hilightedArmor + 1));
itemAlpha(GSEngine.battery, carPanel.dBat);
itemAlpha(GSEngine.blackCrumb, carPanel.dBCrumb);
itemAlpha(GSEngine.luminaFruit, carPanel.dLum);
itemAlpha(GSEngine.ore, carPanel.dOr);
itemAlpha(GSEngine.scrapMetal, carPanel.dSM);
itemAlpha(GSEngine.starDust, carPanel.dStDu);
itemAlpha(GSEngine.crystal, carPanel.dCrys);
itemAlpha(GSEngine.meteorPiece, carPanel.dCrys);
itemAlpha(GSEngine.flyingStone, carPanel.dFStone);
itemAlpha(GSEngine.remethin, carPanel.dRem);
itemAlpha(GSEngine.ionizedFluid, carPanel.dIFluid);
itemAlpha(GSEngine.fiberConnection, carPanel.dFiConn);
itemAlpha(GSEngine.azuriaCarbon, carPanel.dACarbon);
itemAlpha(GSEngine.sparkFuse, carPanel.dSFuse);
itemAlpha(GSEngine.lightWeb, carPanel.dLWeb);
itemAlpha(GSEngine.guardianStarMedal, carPanel.dGSM);
itemAlpha(GSEngine.royalRing, carPanel.dRRing);
itemAlpha(GSEngine.hearthOfKhaleonia, carPanel.dHOKhal);
itemAlpha(GSEngine.antimater, carPanel.dAnti);
shipPanel.hpDisplayBar.gotoAndStop(GSEngine.hpLevel);
shipPanel.mpDisplayBar.gotoAndStop(GSEngine.mpLevel);
shipPanel.agiDisplayBar.gotoAndStop(GSEngine.agiLevel);
shipPanel.critDisplayBar.gotoAndStop(GSEngine.critLevel);
if (GSEngine.weaponType == 1){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon1fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon1Level);
} else {
if (GSEngine.weaponType == 2){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon2fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon2Level);
} else {
if (GSEngine.weaponType == 3){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon3fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon3Level);
} else {
if (GSEngine.weaponType == 4){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon4fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon4Level);
} else {
if (GSEngine.weaponType == 5){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon5fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon5Level);
} else {
if (GSEngine.weaponType == 6){
shipPanel.weapUogMenu.dRdisplayLvl.gotoAndStop(GSEngine.weapon6fireRate);
shipPanel.weapUogMenu.bvDisplayLevel.gotoAndStop(GSEngine.weapon6Level);
};
};
};
};
};
};
}
function checkWeapon(){
if (curWeaponDisplay == 1){
shipPanel.weaponName.text = "SPARK";
buyWeaponReq("ore", 10, "scrapMetal", 15, "starDust", 10, "ROYAL GUARDIAN");
};
if (curWeaponDisplay == 2){
shipPanel.weaponName.text = "PLASMA CANNON";
buyWeaponReq("ore", 10, "scrapMetal", 15, "starDust", 10, "ROYAL GUARDIAN");
};
if (curWeaponDisplay == 3){
shipPanel.weaponName.text = "ELECTRON";
buyWeaponReq("ore", 25, "flyingStone", 15, "azuriaCarbon", 30, "TERESTRIAL BEING");
};
if (curWeaponDisplay == 4){
shipPanel.weaponName.text = "GATLING GUN";
buyWeaponReq("fiberConnection", 25, "scrapMetal", 40, "batery", 30, "CELESTIAL LIGHT");
};
if (curWeaponDisplay == 5){
shipPanel.weaponName.text = "LASER";
buyWeaponReq("azuriaCarbon", 40, "lightWeb", 20, "guardianStarMedal", 3, "CELESTIAL LIGHT");
};
if (curWeaponDisplay == 6){
shipPanel.weaponName.text = "BLASTER";
buyWeaponReq("azuriaCarbon", 60, "royalRing", 5, "hearthOfKhaleonia", 5, "GUARDIAN STAR");
};
if (curWeaponDisplay == 1){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 1;
if (GSEngine.weaponType == 1){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
if (curWeaponDisplay == 2){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 2;
if (GSEngine.weaponType == 2){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
if (curWeaponDisplay == 3){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 3;
if (GSEngine.weaponType == 3){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
if (curWeaponDisplay == 4){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 4;
if (GSEngine.weaponType == 4){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
if (curWeaponDisplay == 5){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 5;
if (GSEngine.weaponType == 5){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
if (curWeaponDisplay == 6){
shipPanel.weapBuy.visible = false;
shipPanel.weapUogMenu.visible = true;
GSEngine.weaponType = 6;
if (GSEngine.weaponType == 6){
shipPanel.eqWeaponButton.visible = false;
shipPanel.weapUogMenu.visible = true;
};
};
}
function buyWeaponReq(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
shipPanel.weapBuy.rankReq.text = _arg7;
shipPanel.weapBuy.R1.gotoAndStop(_arg1);
shipPanel.weapBuy.RJ1.text = ("x" + _arg2.toString());
shipPanel.weapBuy.R2.gotoAndStop(_arg3);
shipPanel.weapBuy.RJ2.text = ("x" + _arg4.toString());
shipPanel.weapBuy.R3.gotoAndStop(_arg5);
shipPanel.weapBuy.RJ3.text = ("x" + _arg6.toString());
}
function checkArmor(){
var _local1:*;
for (_local1 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local1] == 1){
arPanel.ar0Icon.alpha = 1;
};
if (GSEngine.armorArray[_local1] == 2){
arPanel.ar1Icon.alpha = 1;
};
if (GSEngine.armorArray[_local1] == 3){
arPanel.ar2Icon.alpha = 1;
};
if (GSEngine.armorArray[_local1] == 4){
arPanel.ar3Icon.alpha = 1;
};
if (GSEngine.armorArray[_local1] == 5){
arPanel.ar4Icon.alpha = 1;
};
};
if (GSEngine.armorArray.length == 1){
arPanel.ar0Icon.alpha = 1;
arPanel.ar1Icon.alpha = 0.4;
arPanel.ar2Icon.alpha = 0.4;
arPanel.ar3Icon.alpha = 0.4;
arPanel.ar4Icon.alpha = 0.4;
selledAr2 = true;
selledAr3 = true;
selledAr4 = true;
selledAr5 = true;
};
if ((((curArmorDisplay == 1)) && ((arPanel.ar0Icon.alpha == 1)))){
arPanel.arBuyButton.visible = false;
arPanel.arREQAl.visible = false;
arPanel.ketText.text = "ALREADY PURCHASED";
displayARMOR.text = "140";
namaSet.text = "WHITE SUN";
description.text = "This armor is a form of solid crystal and is the hardest substance known to the Azurian race. It can deflect attacks and emits a wide piercing energy beam.";
};
if ((((curArmorDisplay == 2)) && ((arPanel.ar1Icon.alpha == 1)))){
arPanel.arBuyButton.visible = false;
arPanel.arREQAl.visible = false;
arPanel.ketText.text = "ALREADY PURCHASED";
displayARMOR.text = "210";
namaSet.text = "ALDEBARAN";
description.text = "Alien alloys were harvested from meteorites that landed on Azuria to create this armor. A powerful burning force radiates from the crafted metal.";
};
if ((((curArmorDisplay == 2)) && (!((arPanel.ar1Icon.alpha == 1))))){
arPanel.arBuyButton.visible = true;
arPanel.arREQAl.visible = true;
arPanel.ketText.text = "REQUIREMENT";
checkReq("ore", GSEngine.ore, 15, "meteorPiece", GSEngine.meteorPiece, 5, "starDust", GSEngine.starDust, 10, "scrapMetal", GSEngine.scrapMetal, 25, "guardianStarMedal", GSEngine.guardianStarMedal, 1);
};
if ((((curArmorDisplay == 3)) && ((arPanel.ar2Icon.alpha == 1)))){
arPanel.arBuyButton.visible = false;
arPanel.arREQAl.visible = false;
arPanel.ketText.text = "ALREADY PURCHASED";
displayARMOR.text = "301";
namaSet.text = "NEUTRON STAR";
description.text = "This armor is a form of solid crystal and is the hardest substance known to the Azurian race. It can deflect attacks and emits a wide piercing energy beam.";
};
if ((((curArmorDisplay == 3)) && (!((arPanel.ar2Icon.alpha == 1))))){
arPanel.arBuyButton.visible = true;
arPanel.arREQAl.visible = true;
arPanel.ketText.text = "REQUIREMENT";
checkReq("scrapMetal", GSEngine.scrapMetal, 45, "flyingStone", GSEngine.flyingStone, 7, "remethin", GSEngine.remethin, 9, "fiberConnection", GSEngine.fiberConnection, 6, "royalRing", GSEngine.royalRing, 2);
};
if ((((curArmorDisplay == 4)) && ((arPanel.ar3Icon.alpha == 1)))){
arPanel.arBuyButton.visible = false;
arPanel.arREQAl.visible = false;
arPanel.ketText.text = "ALREADY PURCHASED";
displayARMOR.text = "385";
namaSet.text = "CENTAURI";
description.text = "A more advanced race once gifted technology that helped create this complex mechanical armor that can create local clouds of hellfire to rain down.";
};
if ((((curArmorDisplay == 4)) && (!((arPanel.ar3Icon.alpha == 1))))){
arPanel.arBuyButton.visible = true;
arPanel.arREQAl.visible = true;
arPanel.ketText.text = "REQUIREMENT";
checkReq("ionizedFluid", GSEngine.ionizedFluid, 20, "azuriaCarbon", GSEngine.azuriaCarbon, 10, "batery", GSEngine.battery, 25, "luminaFruit", GSEngine.luminaFruit, 7, "hearthOfKhaleonia", GSEngine.hearthOfKhaleonia, 2);
};
if ((((curArmorDisplay == 5)) && ((arPanel.ar4Icon.alpha == 1)))){
arPanel.arBuyButton.visible = false;
arPanel.arREQAl.visible = false;
arPanel.ketText.text = "ALREADY PURCHASED";
displayARMOR.text = "490";
namaSet.text = "DARK STAR";
description.text = "This incredibly dense armor has the ability to create localized voids of such immense gravitational force that little can withstand being crushed by its power.";
};
if ((((curArmorDisplay == 5)) && (!((arPanel.ar4Icon.alpha == 1))))){
arPanel.arBuyButton.visible = true;
arPanel.arREQAl.visible = true;
arPanel.ketText.text = "REQUIREMENT";
checkReq("blackCrumb", GSEngine.blackCrumb, 30, "antimater", GSEngine.antimater, 50, "sparkFuse", GSEngine.sparkFuse, 25, "lightWeb", GSEngine.lightWeb, 7, "royalRing", GSEngine.royalRing, 2);
};
}
function checkConsume(){
carPanel.SC3.gotoAndStop(GSEngine.shortCut3);
carPanel.SC4.gotoAndStop(GSEngine.shortCut4);
carPanel.SC5.gotoAndStop(GSEngine.shortCut5);
}
function checkSkill(){
if (curArmorDisplay == 1){
arPanel.sK1Name.text = "SUPERNOVA";
arPanel.sK2Name.text = "ARC SHIELD";
arPanel.sK1Detail.text = "Fires a volley of bullets in every direction.";
arPanel.sK2Detail.text = "Creates a force field that blocks forward attacks.";
carPanel.skill1Icon.gotoAndStop(1);
carPanel.skill2Icon.gotoAndStop(2);
if (GSEngine.a1S1 == true){
thisTintColour.setTint(4283453520, 0);
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
} else {
if (GSEngine.a1S1 == false){
thisTintColour.setTint(4283453520, 0.6);
arPanel.uPSkill1Button.visible = true;
arPanel.uPSkill1Cost.visible = true;
};
};
if (GSEngine.a1S2 == true){
thisTintColour2.setTint(4283453520, 0);
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
} else {
if (GSEngine.a1S2 == false){
thisTintColour2.setTint(4283453520, 0.6);
arPanel.uPSkill2Button.visible = true;
arPanel.uPSkill2Cost.visible = true;
};
};
if (arPanel.ar0Icon.alpha != 1){
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
};
} else {
if (curArmorDisplay == 2){
arPanel.sK1Name.text = "RAGING SUN";
arPanel.sK2Name.text = "BURNING RADIATION";
arPanel.sK1Detail.text = "Launches a slow-moving fireball forward that increases in size.";
arPanel.sK2Detail.text = "Surrounds the ship with a temporary aura of protective burning energy.";
carPanel.skill1Icon.gotoAndStop(3);
carPanel.skill2Icon.gotoAndStop(4);
if (GSEngine.a2S1 == true){
thisTintColour.setTint(4283453520, 0);
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
} else {
if (GSEngine.a2S1 == false){
thisTintColour.setTint(4283453520, 0.6);
arPanel.uPSkill1Button.visible = true;
arPanel.uPSkill1Cost.visible = true;
arPanel.uPSkill1Cost.upHpCostText.text = a2S1Cost.toString();
};
};
if (GSEngine.a2S2 == true){
thisTintColour2.setTint(4283453520, 0);
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
} else {
if (GSEngine.a2S2 == false){
thisTintColour2.setTint(4283453520, 0.6);
arPanel.uPSkill2Button.visible = true;
arPanel.uPSkill2Cost.visible = true;
arPanel.uPSkill2Cost.upHpCostText.text = a2S2Cost.toString();
};
};
if (arPanel.ar1Icon.alpha != 1){
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
};
} else {
if (curArmorDisplay == 3){
arPanel.sK1Name.text = "BLUE RAY";
arPanel.sK2Name.text = "DEFLECT";
arPanel.sK1Detail.text = "Fires a bright blue laser that pierces everything in its path.";
arPanel.sK2Detail.text = "Creates an arc shield that deflects enemy shots.";
carPanel.skill1Icon.gotoAndStop(5);
carPanel.skill2Icon.gotoAndStop(6);
if (GSEngine.a3S1 == true){
thisTintColour.setTint(4283453520, 0);
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
} else {
if (GSEngine.a3S1 == false){
thisTintColour.setTint(4283453520, 0.6);
arPanel.uPSkill1Button.visible = true;
arPanel.uPSkill1Cost.visible = true;
arPanel.uPSkill1Cost.upHpCostText.text = a3S1Cost.toString();
};
};
if (GSEngine.a3S2 == true){
thisTintColour2.setTint(4283453520, 0);
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
} else {
if (GSEngine.a3S2 == false){
thisTintColour2.setTint(4283453520, 0.6);
arPanel.uPSkill2Button.visible = true;
arPanel.uPSkill2Cost.visible = true;
arPanel.uPSkill2Cost.upHpCostText.text = a3S2Cost.toString();
};
};
if (arPanel.ar2Icon.alpha != 1){
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
};
} else {
if (curArmorDisplay == 4){
arPanel.sK1Name.text = "GLOBAL WARMING";
arPanel.sK2Name.text = "PROTECT";
arPanel.sK1Detail.text = "Creates a firestorm to rain down up your enemies.";
arPanel.sK2Detail.text = "Creates a protective field around the ship and nearby allies.";
carPanel.skill1Icon.gotoAndStop(7);
carPanel.skill2Icon.gotoAndStop(8);
if (GSEngine.a4S1 == true){
thisTintColour.setTint(4283453520, 0);
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
} else {
if (GSEngine.a4S1 == false){
thisTintColour.setTint(4283453520, 0.6);
arPanel.uPSkill1Button.visible = true;
arPanel.uPSkill1Cost.visible = true;
arPanel.uPSkill1Cost.upHpCostText.text = a4S1Cost.toString();
};
};
if (GSEngine.a4S2 == true){
thisTintColour2.setTint(4283453520, 0);
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
} else {
if (GSEngine.a4S2 == false){
thisTintColour2.setTint(4283453520, 0.6);
arPanel.uPSkill2Button.visible = true;
arPanel.uPSkill2Cost.visible = true;
arPanel.uPSkill2Cost.upHpCostText.text = a4S2Cost.toString();
};
};
if (arPanel.ar3Icon.alpha != 1){
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
};
} else {
if (curArmorDisplay == 5){
arPanel.sK1Name.text = "GRAVITATION";
arPanel.sK2Name.text = "BLACK HOLE";
arPanel.sK1Detail.text = "Increases the surrounding gravity that drags enemy ships down.";
arPanel.sK2Detail.text = "Creates an intense gravity well shield around the ship that pulls enemies in and crushes them.";
carPanel.skill1Icon.gotoAndStop(9);
carPanel.skill2Icon.gotoAndStop(10);
if (GSEngine.a5S1 == true){
thisTintColour.setTint(4283453520, 0);
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
} else {
if (GSEngine.a5S1 == false){
thisTintColour.setTint(4283453520, 0.6);
arPanel.uPSkill1Button.visible = true;
arPanel.uPSkill1Cost.visible = true;
arPanel.uPSkill1Cost.upHpCostText.text = a5S1Cost.toString();
};
};
if (GSEngine.a5S2 == true){
thisTintColour2.setTint(4283453520, 0);
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
} else {
if (GSEngine.a5S2 == false){
thisTintColour2.setTint(4283453520, 0.6);
arPanel.uPSkill2Button.visible = true;
arPanel.uPSkill2Cost.visible = true;
arPanel.uPSkill2Cost.upHpCostText.text = a5S2Cost.toString();
};
};
if (arPanel.ar4Icon.alpha != 1){
arPanel.uPSkill1Button.visible = false;
arPanel.uPSkill1Cost.visible = false;
arPanel.uPSkill2Button.visible = false;
arPanel.uPSkill2Cost.visible = false;
};
};
};
};
};
};
}
function onDown(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1.target == shipPanel.eqWeaponButton){
shipPanel.eqWeaponButton.gotoAndStop(3);
IndWeaponType.play();
if (curWeaponDisplay == 1){
GSEngine.weaponType = 1;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
if ((((curWeaponDisplay == 2)) && ((GSEngine.weaponSell2 == true)))){
GSEngine.weaponType = 2;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
if ((((curWeaponDisplay == 3)) && ((GSEngine.weaponSell3 == true)))){
GSEngine.weaponType = 3;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
if ((((curWeaponDisplay == 4)) && ((GSEngine.weaponSell4 == true)))){
GSEngine.weaponType = 4;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
if ((((curWeaponDisplay == 5)) && ((GSEngine.weaponSell5 == true)))){
GSEngine.weaponType = 5;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
if ((((curWeaponDisplay == 6)) && ((GSEngine.weaponSell6 == true)))){
GSEngine.weaponType = 6;
shipPanel.eqWeaponButton.visible = false;
shipPanel.eqWeaponNotice.visible = true;
};
};
if (_arg1.target == shipPanel.weapBuy.buyWeapon){
if (GSEngine.sound == true){
confirm.play();
};
if ((((curWeaponDisplay == 2)) && ((GSEngine.weaponSell2 == false)))){
if ((((((((GSEngine.ore > 10)) && ((GSEngine.scrapMetal > 15)))) && ((GSEngine.starDust > 10)))) && ((GSEngine.currentRank == "ROYAL GUARDIAN")))){
GSEngine.ore = (GSEngine.ore - 10);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 15);
GSEngine.scrapMetal = (GSEngine.scrapMetal - 10);
GSEngine.weaponSell2 = true;
};
GSEngine.weaponSell2 = true;
} else {
if ((((curWeaponDisplay == 3)) && ((GSEngine.weaponSell3 == false)))){
if ((((((((GSEngine.scrapMetal > 25)) && ((GSEngine.flyingStone > 15)))) && ((GSEngine.azuriaCarbon > 30)))) && ((GSEngine.currentRank == "TERESTRIAL BEING")))){
GSEngine.scrapMetal = (GSEngine.scrapMetal - 25);
GSEngine.flyingStone = (GSEngine.flyingStone - 15);
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 30);
GSEngine.weaponSell3 = true;
};
GSEngine.weaponSell3 = true;
} else {
if ((((curWeaponDisplay == 4)) && ((GSEngine.weaponSell4 == false)))){
if ((((((((GSEngine.fiberConnection > 25)) && ((GSEngine.scrapMetal > 40)))) && ((GSEngine.battery > 30)))) && ((GSEngine.currentRank == "CELESTIAL LIGHT")))){
GSEngine.fiberConnection = (GSEngine.fiberConnection - 25);
GSEngine.scrapMetal = (GSEngine.scrapMetal - 40);
GSEngine.battery = (GSEngine.battery - 30);
GSEngine.weaponSell4 = true;
};
GSEngine.weaponSell4 = true;
} else {
if ((((curWeaponDisplay == 5)) && ((GSEngine.weaponSell5 == false)))){
if ((((((((GSEngine.azuriaCarbon > 40)) && ((GSEngine.lightWeb > 20)))) && ((GSEngine.guardianStarMedal > 3)))) && ((GSEngine.currentRank == "CELESTIAL LIGHT")))){
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 40);
GSEngine.lightWeb = (GSEngine.lightWeb - 20);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 3);
GSEngine.weaponSell5 = true;
};
GSEngine.weaponSell5 = true;
} else {
if ((((curWeaponDisplay == 6)) && ((GSEngine.weaponSell6 == false)))){
if ((((((((GSEngine.azuriaCarbon > 60)) && ((GSEngine.royalRing > 5)))) && ((GSEngine.hearthOfKhaleonia > 5)))) && ((GSEngine.currentRank == "GUARDIAN STAR")))){
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 60);
GSEngine.royalRing = (GSEngine.royalRing - 5);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 5);
GSEngine.weaponSell6 = true;
};
GSEngine.weaponSell6 = true;
};
};
};
};
};
};
if (_arg1.target == shipPanel.wRightButton){
if ((GSEngine.sound = true)){
overB.play();
};
} else {
if (_arg1.target == shipPanel.wLeftButton){
if ((GSEngine.sound = true)){
overB.play();
};
};
};
if (_arg1.target == shipPanel.weapUogMenu.upFRButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((((GSEngine.weaponType == 1)) && ((GSEngine.weapon1fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon1fireRate = (GSEngine.weapon1fireRate + 1);
GSEngine.weapon1Level = (GSEngine.weapon1Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
} else {
if ((((((GSEngine.weaponType == 2)) && ((GSEngine.weapon2fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon2fireRate = (GSEngine.weapon2fireRate + 1);
GSEngine.weapon2Level = (GSEngine.weapon2Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
} else {
if ((((((GSEngine.weaponType == 3)) && ((GSEngine.weapon3fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon3fireRate = (GSEngine.weapon3fireRate + 1);
GSEngine.weapon3Level = (GSEngine.weapon3Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
} else {
if ((((((GSEngine.weaponType == 4)) && ((GSEngine.weapon4fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon4fireRate = (GSEngine.weapon4fireRate + 1);
GSEngine.weapon4Level = (GSEngine.weapon4Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
} else {
if ((((((GSEngine.weaponType == 5)) && ((GSEngine.weapon5fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon5fireRate = (GSEngine.weapon5fireRate + 1);
GSEngine.weapon5Level = (GSEngine.weapon5Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
} else {
if ((((((GSEngine.weaponType == 6)) && ((GSEngine.weapon6fireRate < 6)))) && ((GSEngine.spark > upgradeFIRATECost)))){
GSEngine.weapon6fireRate = (GSEngine.weapon6fireRate + 1);
GSEngine.weapon6Level = (GSEngine.weapon6Level + 1);
GSEngine.spark = (GSEngine.spark - upgradeFIRATECost);
};
};
};
};
};
};
};
if (_arg1.target == shipPanel.weapUogMenu.upBVButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((((GSEngine.weaponType == 1)) && ((GSEngine.weapon1Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon1Level = (GSEngine.weapon1Level + 1);
GSEngine.weapon1fireRate = (GSEngine.weapon1fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
} else {
if ((((((GSEngine.weaponType == 2)) && ((GSEngine.weapon2Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon2Level = (GSEngine.weapon2Level + 1);
GSEngine.weapon2fireRate = (GSEngine.weapon2fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
} else {
if ((((((GSEngine.weaponType == 3)) && ((GSEngine.weapon3Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon3Level = (GSEngine.weapon3Level + 1);
GSEngine.weapon3fireRate = (GSEngine.weapon3fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
} else {
if ((((((GSEngine.weaponType == 4)) && ((GSEngine.weapon4Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon4Level = (GSEngine.weapon4Level + 1);
GSEngine.weapon4fireRate = (GSEngine.weapon4fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
} else {
if ((((((GSEngine.weaponType == 5)) && ((GSEngine.weapon5Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon5Level = (GSEngine.weapon5Level + 1);
GSEngine.weapon5fireRate = (GSEngine.weapon5fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
} else {
if ((((((GSEngine.weaponType == 6)) && ((GSEngine.weapon6Level < 6)))) && ((GSEngine.spark > upgradeBULLCost)))){
GSEngine.weapon6Level = (GSEngine.weapon6Level + 1);
GSEngine.weapon6fireRate = (GSEngine.weapon6fireRate + 1);
GSEngine.spark = (GSEngine.spark - upgradeBULLCost);
};
};
};
};
};
};
};
if (_arg1.target == shipPanel.HPupGButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((GSEngine.hpLevel < 7)) && ((GSEngine.spark > upgradeHPCost)))){
GSEngine.hpLevel = (GSEngine.hpLevel + 1);
GSEngine.spark = (GSEngine.spark - upgradeHPCost);
};
};
if (_arg1.target == shipPanel.ENupGButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((GSEngine.mpLevel < 7)) && ((GSEngine.spark > upgradeMPCost)))){
GSEngine.mpLevel = (GSEngine.mpLevel + 1);
GSEngine.spark = (GSEngine.spark - upgradeMPCost);
};
};
if (_arg1.target == shipPanel.AGIupGButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((GSEngine.agiLevel < 7)) && ((GSEngine.spark > upgradeAGICost)))){
GSEngine.agiLevel = (GSEngine.agiLevel + 1);
GSEngine.spark = (GSEngine.spark - upgradeAGICost);
};
};
if (_arg1.target == shipPanel.CRITupGButton){
if ((GSEngine.sound = true)){
confirm.play();
};
if ((((GSEngine.critLevel < 7)) && ((GSEngine.spark > upgradeCRITCost)))){
GSEngine.critLevel = (GSEngine.critLevel + 1);
GSEngine.spark = (GSEngine.spark - upgradeCRITCost);
};
};
if (_arg1.target == arPanel.arBuyButton){
if ((GSEngine.sound = true)){
confirm.play();
};
checkArmor();
if (hilightedArmor == 1){
if (selledAr2 == true){
if ((((((((((GSEngine.ore >= 15)) && ((GSEngine.meteorPiece >= 5)))) && ((GSEngine.starDust >= 10)))) && ((GSEngine.scrapMetal >= 25)))) && ((GSEngine.guardianStarMedal >= 1)))){
GSEngine.ore = (GSEngine.ore - 15);
GSEngine.meteorPiece = (GSEngine.meteorPiece - 5);
GSEngine.starDust = (GSEngine.starDust - 20);
GSEngine.scrapMetal = (GSEngine.scrapMetal - 30);
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - 1);
GSEngine.armorArray.push(2);
selledAr2 = false;
GSEngine.armorType = 2;
curWeaponDisplay = 2;
};
};
};
if (hilightedArmor == 2){
if (selledAr3 == true){
if ((((((((((GSEngine.scrapMetal >= 45)) && ((GSEngine.flyingStone >= 7)))) && ((GSEngine.remethin >= 9)))) && ((GSEngine.fiberConnection >= 6)))) && ((GSEngine.royalRing >= 2)))){
GSEngine.scrapMetal = (GSEngine.scrapMetal - 45);
GSEngine.flyingStone = (GSEngine.flyingStone - 7);
GSEngine.remethin = (GSEngine.remethin - 20);
GSEngine.royalRing = (GSEngine.royalRing - 2);
GSEngine.fiberConnection = (GSEngine.fiberConnection - 6);
selledAr3 = false;
GSEngine.armorArray.push(3);
GSEngine.armorType = 3;
curWeaponDisplay = 3;
};
};
};
if (hilightedArmor == 3){
if (selledAr4 == true){
if ((((((((((GSEngine.ionizedFluid >= 20)) && ((GSEngine.azuriaCarbon >= 10)))) && ((GSEngine.battery >= 25)))) && ((GSEngine.luminaFruit >= 7)))) && ((GSEngine.hearthOfKhaleonia >= 2)))){
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - 20);
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - 10);
GSEngine.battery = (GSEngine.battery - 25);
GSEngine.luminaFruit = (GSEngine.luminaFruit - 7);
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - 2);
selledAr4 = false;
GSEngine.armorArray.push(4);
GSEngine.armorType = 4;
curWeaponDisplay = 4;
};
};
};
if (hilightedArmor == 4){
if (selledAr5 == true){
if ((((((((((GSEngine.blackCrumb >= 30)) && ((GSEngine.antimater >= 50)))) && ((GSEngine.sparkFuse >= 25)))) && ((GSEngine.lightWeb >= 7)))) && ((GSEngine.royalRing >= 2)))){
GSEngine.blackCrumb = (GSEngine.blackCrumb - 30);
GSEngine.antimater = (GSEngine.antimater - 50);
GSEngine.sparkFuse = (GSEngine.sparkFuse - 25);
GSEngine.lightWeb = (GSEngine.lightWeb - 7);
GSEngine.royalRing = (GSEngine.royalRing - 2);
selledAr5 = false;
GSEngine.armorArray.push(5);
GSEngine.armorType = 5;
curWeaponDisplay = 5;
};
};
};
};
if ((((_arg1.target == carPanel.dRedEn)) && ((carPanel.dRedEn.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dRedEn.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dBluEn)) && ((carPanel.dBluEn.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dBluEn.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dYelEn)) && ((carPanel.dYelEn.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dYelEn.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dCrit)) && ((carPanel.dCrit.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dCrit.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dDragon)) && ((carPanel.dDragon.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dDragon.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dPert)) && ((carPanel.dPert.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dPert.startDrag();
carPanel.dragNotices.visible = true;
};
if ((((_arg1.target == carPanel.dAtom)) && ((carPanel.dAtom.alpha == 1)))){
if ((GSEngine.sound = true)){
overB.play();
};
carPanel.dAtom.startDrag();
carPanel.dragNotices.visible = true;
};
if (_arg1.target == this.arPanel.ar0Icon){
if ((GSEngine.sound = true)){
overB.play();
};
arPanel.hLArmor.x = 32;
hilightedArmor = 0;
curArmorDisplay = 1;
curWeaponDisplay = 1;
for (_local2 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local2] == 1){
GSEngine.armorType = 1;
carPanel.skill1Icon.gotoAndStop("Supernova");
carPanel.skill2Icon.gotoAndStop("Arc Shield");
};
};
} else {
if (_arg1.target == this.arPanel.ar1Icon){
if ((GSEngine.sound = true)){
overB.play();
};
hilightedArmor = 1;
arPanel.hLArmor.x = 111;
curArmorDisplay = 2;
for (_local3 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local3] == 2){
GSEngine.armorType = 2;
curWeaponDisplay = 2;
carPanel.skill1Icon.gotoAndStop("Raging Sun");
carPanel.skill2Icon.gotoAndStop("Burning Radiation");
};
};
} else {
if (_arg1.target == this.arPanel.ar2Icon){
if ((GSEngine.sound = true)){
overB.play();
};
hilightedArmor = 2;
arPanel.hLArmor.x = 188;
curArmorDisplay = 3;
for (_local4 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local4] == 3){
GSEngine.armorType = 3;
curWeaponDisplay = 3;
carPanel.skill1Icon.gotoAndStop("Blue Ray");
carPanel.skill2Icon.gotoAndStop("Deflect");
};
};
} else {
if (_arg1.target == this.arPanel.ar3Icon){
if ((GSEngine.sound = true)){
overB.play();
};
hilightedArmor = 3;
arPanel.hLArmor.x = 266;
curArmorDisplay = 4;
for (_local5 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local5] == 4){
GSEngine.armorType = 4;
curWeaponDisplay = 4;
carPanel.skill1Icon.gotoAndStop("Global Warming");
carPanel.skill2Icon.gotoAndStop("Protect");
};
};
} else {
if (_arg1.target == this.arPanel.ar4Icon){
if ((GSEngine.sound = true)){
overB.play();
};
hilightedArmor = 4;
arPanel.hLArmor.x = 343;
curArmorDisplay = 5;
for (_local6 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local6] == 5){
GSEngine.armorType = 5;
curWeaponDisplay = 5;
carPanel.skill1Icon.gotoAndStop("Gravitation");
carPanel.skill2Icon.gotoAndStop("Black Hole");
};
};
};
};
};
};
};
if (_arg1.target == parSHIP){
if ((GSEngine.sound = true)){
overB.play();
};
this.shipPanel.visible = true;
this.shipPanel.x = 160;
this.arPanel.visible = false;
this.arPanel.x = 1000;
this.carPanel.visible = false;
this.carPanel.x = 1000;
};
if (_arg1.target == parARMOR){
if ((GSEngine.sound = true)){
overB.play();
};
this.shipPanel.visible = false;
this.shipPanel.x = 1000;
this.arPanel.visible = true;
this.arPanel.x = -80;
this.carPanel.visible = false;
this.carPanel.x = 1000;
};
if (_arg1.target == parCARGO){
if ((GSEngine.sound = true)){
overB.play();
};
this.shipPanel.visible = false;
this.shipPanel.x = 1000;
this.arPanel.visible = false;
this.arPanel.x = 1000;
this.carPanel.visible = true;
this.carPanel.x = 160;
};
if (_arg1.target == arPanel.uPSkill1Button){
if ((GSEngine.sound = true)){
confirm.play();
};
arPanel.uPSkill1Button.gotoAndStop(3);
if (GSEngine.armorType == 1){
} else {
if ((((GSEngine.armorType == 2)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a2S1Cost){
GSEngine.a2S1 = true;
GSEngine.spark = (GSEngine.spark - a2S1Cost);
};
} else {
if ((((GSEngine.armorType == 3)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a3S1Cost){
GSEngine.a3S1 = true;
GSEngine.spark = (GSEngine.spark - a3S1Cost);
};
} else {
if ((((GSEngine.armorType == 4)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a4S1Cost){
GSEngine.a4S1 = true;
GSEngine.spark = (GSEngine.spark - a4S1Cost);
};
} else {
if ((((GSEngine.armorType == 5)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a5S1Cost){
GSEngine.a5S1 = true;
GSEngine.spark = (GSEngine.spark - a5S1Cost);
};
};
};
};
};
};
};
if (_arg1.target == arPanel.uPSkill2Button){
if ((GSEngine.sound = true)){
confirm.play();
};
arPanel.uPSkill2Button.gotoAndStop(3);
if (GSEngine.armorType == 1){
GSEngine.a1S2 = true;
} else {
if ((((GSEngine.armorType == 2)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a2S2Cost){
GSEngine.a2S2 = true;
GSEngine.spark = (GSEngine.spark - a2S2Cost);
};
} else {
if ((((GSEngine.armorType == 3)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a3S2Cost){
GSEngine.a3S2 = true;
GSEngine.spark = (GSEngine.spark - a3S2Cost);
};
} else {
if ((((GSEngine.armorType == 4)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a4S2Cost){
GSEngine.a4S2 = true;
GSEngine.spark = (GSEngine.spark - a4S2Cost);
};
} else {
if ((((GSEngine.armorType == 5)) && ((arPanel.ketText.text == "ALREADY PURCHASE")))){
if (GSEngine.spark > a5S2Cost){
GSEngine.a5S2 = true;
GSEngine.spark = (GSEngine.spark - a5S2Cost);
};
};
};
};
};
};
};
}
function onUp(_arg1:MouseEvent){
if (_arg1.target == carPanel.dRedEn){
if (carPanel.dRedEn.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dRedEn.hitTestObject(carPanel.eSC2)){
} else {
if (carPanel.dRedEn.hitTestObject(carPanel.eSC3)){
GSEngine.shortCut3 = "Red Energy";
} else {
if (carPanel.dRedEn.hitTestObject(carPanel.eSC4)){
GSEngine.shortCut4 = "Red Energy";
} else {
if (carPanel.dRedEn.hitTestObject(carPanel.eSC5)){
GSEngine.shortCut5 = "Red Energy";
};
};
};
};
};
carPanel.dRedEn.stopDrag();
carPanel.dRedEn.x = -167;
carPanel.dRedEn.y = -52;
carPanel.dragNotices.visible = false;
};
if (_arg1.target == carPanel.dBluEn){
if (carPanel.dBluEn.hitTestObject(carPanel.eSC1)){
};
if (carPanel.dBluEn.hitTestObject(carPanel.eSC2)){
};
if (((((carPanel.dBluEn.hitTestObject(carPanel.eSC3)) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "Blue Energy";
};
if (((((carPanel.dBluEn.hitTestObject(carPanel.eSC4)) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "Blue Energy";
};
if (((((carPanel.dBluEn.hitTestObject(carPanel.eSC5)) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dBluEn.hitTestObject(carPanel.eSC3))))){
GSEngine.shortCut5 = "Blue Energy";
};
carPanel.dBluEn.stopDrag();
carPanel.dBluEn.x = -128;
carPanel.dBluEn.y = -54;
carPanel.dragNotices.visible = false;
};
if (_arg1.target == carPanel.dYelEn){
if (carPanel.dYelEn.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dYelEn.hitTestObject(carPanel.eSC2)){
} else {
if (((((carPanel.dYelEn.hitTestObject(carPanel.eSC3)) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "Yellow Energy";
} else {
if (((((carPanel.dYelEn.hitTestObject(carPanel.eSC4)) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "Yellow Energy";
} else {
if (((((carPanel.dYelEn.hitTestObject(carPanel.eSC5)) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dYelEn.hitTestObject(carPanel.eSC3))))){
GSEngine.shortCut5 = "Yellow Energy";
};
};
};
};
};
carPanel.dYelEn.stopDrag();
carPanel.dYelEn.x = -86;
carPanel.dYelEn.y = -54;
carPanel.dragNotices.visible = false;
};
if (_arg1.target == carPanel.dCrit){
if (carPanel.dCrit.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dCrit.hitTestObject(carPanel.eSC2)){
} else {
if (((((carPanel.dCrit.hitTestObject(carPanel.eSC3)) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "critChipset";
} else {
if (((((carPanel.dCrit.hitTestObject(carPanel.eSC4)) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "critChipset";
} else {
if (((((carPanel.dCrit.hitTestObject(carPanel.eSC5)) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dCrit.hitTestObject(carPanel.eSC3))))){
GSEngine.shortCut5 = "critChipset";
};
};
};
};
};
carPanel.dCrit.stopDrag();
carPanel.dCrit.x = -31;
carPanel.dCrit.y = -52;
carPanel.dragNotices.visible = false;
};
if (_arg1.target == carPanel.dDragon){
if (carPanel.dDragon.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dDragon.hitTestObject(carPanel.eSC2)){
} else {
if (((((carPanel.dDragon.hitTestObject(carPanel.eSC3)) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "Dragon Scale";
} else {
if (((((carPanel.dDragon.hitTestObject(carPanel.eSC4)) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "Dragon Scale";
} else {
if (((((carPanel.dDragon.hitTestObject(carPanel.eSC5)) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dDragon.hitTestObject(carPanel.eSC4))))){
GSEngine.shortCut5 = "Dragon Scale";
};
};
};
};
};
carPanel.dDragon.stopDrag();
carPanel.dDragon.x = 12;
carPanel.dDragon.y = -52;
carPanel.dragNotices.visible = false;
};
if (_arg1.target == carPanel.dPert){
if (carPanel.dPert.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dPert.hitTestObject(carPanel.eSC2)){
} else {
if (((((carPanel.dPert.hitTestObject(carPanel.eSC3)) && (!(carPanel.dPert.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dPert.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "Pertamax Fuel";
} else {
if (((((carPanel.dPert.hitTestObject(carPanel.eSC4)) && (!(carPanel.dPert.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dPert.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "Pertamax Fuel";
} else {
if (((((carPanel.dPert.hitTestObject(carPanel.eSC5)) && (!(carPanel.dPert.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dPert.hitTestObject(carPanel.eSC4))))){
GSEngine.shortCut5 = "Pertamax Fuel";
};
};
};
};
};
carPanel.dPert.stopDrag();
carPanel.dPert.x = 57;
carPanel.dPert.y = -54;
carPanel.dragNotices.visible = false;
};
if ((((_arg1.target == carPanel.dAtom)) && ((carPanel.dAtom.alpha == 1)))){
if (carPanel.dAtom.hitTestObject(carPanel.eSC1)){
} else {
if (carPanel.dAtom.hitTestObject(carPanel.eSC2)){
} else {
if (((((carPanel.dAtom.hitTestObject(carPanel.eSC3)) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC4))))) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut3 = "Atom Decompiler";
} else {
if (((((carPanel.dAtom.hitTestObject(carPanel.eSC4)) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC5))))){
GSEngine.shortCut4 = "Atom Decompiler";
} else {
if (((((carPanel.dAtom.hitTestObject(carPanel.eSC5)) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC3))))) && (!(carPanel.dAtom.hitTestObject(carPanel.eSC4))))){
GSEngine.shortCut5 = "Atom Decompiler";
};
};
};
};
};
carPanel.dAtom.stopDrag();
carPanel.dAtom.x = 101;
carPanel.dAtom.y = -55;
carPanel.dragNotices.visible = false;
};
}
function onOver(_arg1:MouseEvent){
if (_arg1.target == shipPanel.eqWeaponButton){
shipPanel.eqWeaponButton.gotoAndStop(2);
};
if (_arg1.target == parSHIP){
shipTAB.gotoAndStop(2);
};
if (_arg1.target == parARMOR){
arTAB.gotoAndStop(2);
};
if (_arg1.target == parCARGO){
carTAB.gotoAndStop(2);
};
if (_arg1.target == this.shipPanel.HPupGButton){
this.shipPanel.HPuPGCost.alpha = 1;
};
if (_arg1.target == this.shipPanel.ENupGButton){
this.shipPanel.ENupGCOst.alpha = 1;
};
if (_arg1.target == this.shipPanel.AGIupGButton){
this.shipPanel.AGIupGCost.alpha = 1;
};
if (_arg1.target == this.shipPanel.CRITupGButton){
this.shipPanel.CRITupGCost.alpha = 1;
};
if (_arg1.target == shipPanel.weapUogMenu.upFRButton){
shipPanel.weapUogMenu.FEupGCost.alpha = 1;
};
if (_arg1.target == shipPanel.weapUogMenu.upBVButton){
shipPanel.weapUogMenu.BVupGCost.alpha = 1;
};
if (_arg1.target == carPanel.dBat){
checkAvailability(GSEngine.battery, carPanel.dBat, "BATTERY", "Unused battery", carPanel.ketItem);
};
if (_arg1.target == carPanel.dBCrumb){
checkAvailability(GSEngine.blackCrumb, carPanel.dBCrumb, "BLACK CRUMB", "Carbon crumb", carPanel.ketItem);
};
if (_arg1.target == carPanel.dLum){
checkAvailability(GSEngine.luminaFruit, carPanel.dLum, "LUMINA FRUIT", "Glowing rare fruit", carPanel.ketItem);
};
if (_arg1.target == carPanel.dOr){
checkAvailability(GSEngine.ore, carPanel.dOr, "ORE", "Common ore", carPanel.ketItem);
};
if (_arg1.target == carPanel.dSM){
checkAvailability(GSEngine.scrapMetal, carPanel.dSM, "SCRAP METAL", "Basic ingredient", carPanel.ketItem);
};
if (_arg1.target == carPanel.dStDu){
checkAvailability(GSEngine.starDust, carPanel.dStDu, "STAR DUST", "Dust from stars", carPanel.ketItem);
};
if (_arg1.target == carPanel.dCrys){
checkAvailability(GSEngine.crystal, carPanel.dCrys, "CRYSTAL", "Crystal shards", carPanel.ketItem);
};
if (_arg1.target == carPanel.dMetP){
checkAvailability(GSEngine.meteorPiece, carPanel.dMetP, "METEOR PIECE", "Celestial rocks", carPanel.ketItem);
};
if (_arg1.target == carPanel.dFStone){
checkAvailability(GSEngine.flyingStone, carPanel.dFStone, "FLYING STONE", "Mysterious floating stones", carPanel.ketItem);
};
if (_arg1.target == carPanel.dRem){
checkAvailability(GSEngine.remethin, carPanel.dRem, "REMETHIN", "Natural liquid isolator", carPanel.ketItem);
};
if (_arg1.target == carPanel.dIFluid){
checkAvailability(GSEngine.ionizedFluid, carPanel.dIFluid, "IONIZED FLUID", "Ion-charged fluid", carPanel.ketItem);
};
if (_arg1.target == carPanel.dFiConn){
checkAvailability(GSEngine.fiberConnection, carPanel.dFiConn, "FIBER CONNECTION", "Ancient connection cables", carPanel.ketItem);
};
if (_arg1.target == carPanel.dACarbon){
checkAvailability(GSEngine.azuriaCarbon, carPanel.dACarbon, "AZURIA CARBON", "Local carbon matter", carPanel.ketItem);
};
if (_arg1.target == carPanel.dSFuse){
checkAvailability(GSEngine.sparkFuse, carPanel.dSFuse, "SPARK FUSE", "Old motor vehicle part", carPanel.ketItem);
};
if (_arg1.target == carPanel.dLWeb){
checkAvailability(GSEngine.lightWeb, carPanel.dLWeb, "LIGHT WEB", "Glowing threads", carPanel.ketItem);
};
if (_arg1.target == carPanel.dGSM){
checkAvailability(GSEngine.guardianStarMedal, carPanel.dGSM, "GUARDIAN STAR MEDAL", "Hero's medal", carPanel.ketItem);
};
if (_arg1.target == carPanel.dRRing){
checkAvailability(GSEngine.royalRing, carPanel.dRRing, "ROYAL RING", "Princess' ring", carPanel.ketItem);
};
if (_arg1.target == carPanel.dHOKhal){
checkAvailability(GSEngine.hearthOfKhaleonia, carPanel.dHOKhal, "HEARTH OF KHALEONIA", "Nature's hearth", carPanel.ketItem);
};
if (_arg1.target == carPanel.dAnti){
checkAvailability(GSEngine.antimater, carPanel.dAnti, "ANTIMATER", "Matter's opposite", carPanel.ketItem);
};
if (_arg1.target == carPanel.dRedEn){
checkAvailability(GSEngine.redEnergy, carPanel.dRedEn, "RED ENERGY", "Heals 100 HP", carPanel.ketUse);
};
if (_arg1.target == carPanel.dBluEn){
checkAvailability(GSEngine.blueEnergy, carPanel.dBluEn, "BLUE ENERGY", "Restores 100 energy", carPanel.ketUse);
};
if (_arg1.target == carPanel.dYelEn){
checkAvailability(GSEngine.yellowEnergy, carPanel.dYelEn, "YELLOW ENERGY", "Restores 100 armor", carPanel.ketUse);
};
if (_arg1.target == carPanel.dCrit){
checkAvailability(GSEngine.criticalChipset, carPanel.dCrit, "CRITICAL CHIPSET", "Increase critical hits for 6s", carPanel.ketUse);
};
if (_arg1.target == carPanel.dDragon){
checkAvailability(GSEngine.dragonScale, carPanel.dDragon, "DRAGON SCALE", "Invulnerable for 5s", carPanel.ketUse);
};
if (_arg1.target == carPanel.dPert){
checkAvailability(GSEngine.pertamaxFuel, carPanel.dPert, "PERTAMAX FUEL", "Increase fire rate for 5s", carPanel.ketUse);
};
if (_arg1.target == carPanel.dAtom){
checkAvailability(GSEngine.atomDecompiler, carPanel.dAtom, "ATOM DECOMPILER", "Increases item drops for 6s", carPanel.ketUse);
};
_arg1.target.gotoAndStop(2);
}
function onOut(_arg1:MouseEvent){
_arg1.target.gotoAndStop(1);
if (_arg1.target == parSHIP){
shipTAB.gotoAndStop(1);
};
if (_arg1.target == parARMOR){
arTAB.gotoAndStop(1);
};
if (_arg1.target == parCARGO){
carTAB.gotoAndStop(1);
};
if (_arg1.target == this.shipPanel.HPupGButton){
this.shipPanel.HPuPGCost.alpha = 0.5;
};
if (_arg1.target == this.shipPanel.ENupGButton){
this.shipPanel.ENupGCOst.alpha = 0.5;
};
if (_arg1.target == this.shipPanel.AGIupGButton){
this.shipPanel.AGIupGCost.alpha = 0.5;
};
if (_arg1.target == this.shipPanel.CRITupGButton){
this.shipPanel.CRITupGCost.alpha = 0.5;
};
if (_arg1.target == shipPanel.weapUogMenu.upFRButton){
shipPanel.weapUogMenu.FEupGCost.alpha = 0.5;
};
if (_arg1.target == shipPanel.weapUogMenu.upBVButton){
shipPanel.weapUogMenu.BVupGCost.alpha = 0.5;
};
if (_arg1.target == carPanel.dBat){
unCheckAvailability(carPanel.dBat);
};
if (_arg1.target == carPanel.dBCrumb){
unCheckAvailability(carPanel.dBCrumb);
};
if (_arg1.target == carPanel.dLum){
unCheckAvailability(carPanel.dLum);
};
if (_arg1.target == carPanel.dOr){
unCheckAvailability(carPanel.dOr);
};
if (_arg1.target == carPanel.dSM){
unCheckAvailability(carPanel.dSM);
};
if (_arg1.target == carPanel.dStDu){
unCheckAvailability(carPanel.dStDu);
};
if (_arg1.target == carPanel.dCrys){
unCheckAvailability(carPanel.dCrys);
};
if (_arg1.target == carPanel.dMetP){
unCheckAvailability(carPanel.dMetP);
};
if (_arg1.target == carPanel.dFStone){
unCheckAvailability(carPanel.dFStone);
};
if (_arg1.target == carPanel.dRem){
unCheckAvailability(carPanel.dRem);
};
if (_arg1.target == carPanel.dIFluid){
unCheckAvailability(carPanel.dIFluid);
};
if (_arg1.target == carPanel.dFiConn){
unCheckAvailability(carPanel.dFiConn);
};
if (_arg1.target == carPanel.dACarbon){
unCheckAvailability(carPanel.dACarbon);
};
if (_arg1.target == carPanel.dSFuse){
unCheckAvailability(carPanel.dSFuse);
};
if (_arg1.target == carPanel.dLWeb){
unCheckAvailability(carPanel.dLWeb);
};
if (_arg1.target == carPanel.dGSM){
unCheckAvailability(carPanel.dGSM);
};
if (_arg1.target == carPanel.dRRing){
unCheckAvailability(carPanel.dRRing);
};
if (_arg1.target == carPanel.dHOKhal){
unCheckAvailability(carPanel.dHOKhal);
};
if (_arg1.target == carPanel.dAnti){
unCheckAvailability(carPanel.dAnti);
};
if (_arg1.target == carPanel.dRedEn){
unCheckAvailability(carPanel.dRedEn);
};
if (_arg1.target == carPanel.dBluEn){
unCheckAvailability(carPanel.dBluEn);
};
if (_arg1.target == carPanel.dYelEn){
unCheckAvailability(carPanel.dYelEn);
};
if (_arg1.target == carPanel.dCrit){
unCheckAvailability(carPanel.dCrit);
};
if (_arg1.target == carPanel.dDragon){
unCheckAvailability(carPanel.dDragon);
};
if (_arg1.target == carPanel.dPert){
unCheckAvailability(carPanel.dPert);
};
if (_arg1.target == carPanel.dAtom){
unCheckAvailability(carPanel.dAtom);
};
}
function checkSC(){
if ((((((((GSEngine.shortCut3 == "Red Energy")) || ((GSEngine.shortCut4 == "Red Energy")))) || ((GSEngine.shortCut5 == "Red Energy")))) || ((GSEngine.redEnergy == 0)))){
carPanel.dRedEn.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Red Energy"))) || (!((GSEngine.shortCut4 == "Red Energy"))))) || (!((GSEngine.shortCut5 == "Red Energy"))))) || ((GSEngine.redEnergy > 0)))){
carPanel.dRedEn.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "Blue Energy")) || ((GSEngine.shortCut4 == "Blue Energy")))) || ((GSEngine.shortCut5 == "Blue Energy")))) || ((GSEngine.blueEnergy == 0)))){
carPanel.dBluEn.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Blue Energy"))) || (!((GSEngine.shortCut4 == "Blue Energy"))))) || (!((GSEngine.shortCut5 == "Blue Energy"))))) || ((GSEngine.blueEnergy > 0)))){
carPanel.dBluEn.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "Yellow Energy")) || ((GSEngine.shortCut4 == "Yellow Energy")))) || ((GSEngine.shortCut5 == "Yellow Energy")))) || ((GSEngine.yellowEnergy == 0)))){
carPanel.dYelEn.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Yellow Energy"))) || (!((GSEngine.shortCut4 == "Yellow Energy"))))) || (!((GSEngine.shortCut5 == "Yellow Energy"))))) || ((GSEngine.yellowEnergy > 0)))){
carPanel.dYelEn.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "critChipset")) || ((GSEngine.shortCut4 == "critChipset")))) || ((GSEngine.shortCut5 == "critChipset")))) || ((GSEngine.criticalChipset == 0)))){
carPanel.dCrit.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "critChipset"))) || (!((GSEngine.shortCut4 == "critChipset"))))) || (!((GSEngine.shortCut5 == "critChipset"))))) || ((GSEngine.criticalChipset > 0)))){
carPanel.dCrit.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "Dragon Scale")) || ((GSEngine.shortCut4 == "Dragon Scale")))) || ((GSEngine.shortCut5 == "Dragon Scale")))) || ((GSEngine.dragonScale == 0)))){
carPanel.dDragon.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Dragon Scale"))) || (!((GSEngine.shortCut4 == "Dragon Scale"))))) || (!((GSEngine.shortCut5 == "Dragon Scale"))))) || ((GSEngine.dragonScale > 0)))){
carPanel.dDragon.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "Pertamax Fuel")) || ((GSEngine.shortCut4 == "Pertamax Fuel")))) || ((GSEngine.shortCut5 == "Pertamax Fuel")))) || ((GSEngine.pertamaxFuel == 0)))){
carPanel.dPert.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Pertamax Fuel"))) || (!((GSEngine.shortCut4 == "Pertamax Fuel"))))) || (!((GSEngine.shortCut5 == "Pertamax Fuel"))))) || ((GSEngine.pertamaxFuel > 0)))){
carPanel.dPert.alpha = 1;
};
};
if ((((((((GSEngine.shortCut3 == "Atom Decompiler")) || ((GSEngine.shortCut4 == "Atom Decompiler")))) || ((GSEngine.shortCut5 == "Atom Decompiler")))) || ((GSEngine.atomDecompiler == 0)))){
carPanel.dAtom.alpha = 0.5;
} else {
if (((((((!((GSEngine.shortCut3 == "Atom Decompiler"))) || (!((GSEngine.shortCut4 == "Atom Decompiler"))))) || (!((GSEngine.shortCut5 == "Atom Decompiler"))))) || ((GSEngine.atomDecompiler > 0)))){
carPanel.dAtom.alpha = 1;
};
};
}
function checkAvailability(_arg1, _arg2, _arg3, _arg4, _arg5){
_arg2.scaleX = 1.3;
_arg2.scaleY = 1.3;
var _local6:String = _arg1.toString();
_arg5.text = ((((((_arg3 + " X") + _local6) + " ") + "(") + _arg4) + ")");
if (_arg1 == 0){
_arg2.alpha = 0.5;
};
if (_arg1 != 0){
_arg2.alpha = 1;
};
}
function unCheckAvailability(_arg1){
_arg1.scaleX = 1;
_arg1.scaleY = 1;
carPanel.ketItem.text = "";
}
function checkReq(_arg1, _arg2, _arg3:int, _arg4, _arg5, _arg6:int, _arg7, _arg8, _arg9:int, _arg10, _arg11, _arg12:int, _arg13, _arg14, _arg15:int){
arPanel.arREQAl.reqItem1.gotoAndStop(_arg1);
arPanel.arREQAl.reqItem2.gotoAndStop(_arg4);
arPanel.arREQAl.reqItem3.gotoAndStop(_arg7);
arPanel.arREQAl.reqItem4.gotoAndStop(_arg10);
arPanel.arREQAl.reqItem5.gotoAndStop(_arg13);
arPanel.arREQAl.reqItem1Qty.text = ((_arg2.toString() + "/") + _arg3);
arPanel.arREQAl.reqItem2Qty.text = ((_arg5.toString() + "/") + _arg6);
arPanel.arREQAl.reqItem3Qty.text = ((_arg8.toString() + "/") + _arg9);
arPanel.arREQAl.reqItem4Qty.text = ((_arg11.toString() + "/") + _arg12);
arPanel.arREQAl.reqItem5Qty.text = ((_arg14.toString() + "/") + _arg15);
}
function itemAlpha(_arg1, _arg2){
if (_arg1 > 0){
_arg2.alpha = 1;
} else {
if (_arg1 == 0){
_arg2.alpha = 0.5;
};
};
}
public function removeThis(){
removeEventListener(Event.ENTER_FRAME, eFrame);
removeEventListener(Event.ADDED_TO_STAGE, beginClass);
if (((!((this.parent == null))) && (!((this == null))))){
this.parent.removeChild(this);
};
removeListeners();
}
public function removeListeners(){
carPanel.dBat.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBCrumb.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dLum.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dOr.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dSM.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dStDu.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrys.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dMetP.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dFStone.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRem.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dIFluid.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dFiConn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dACarbon.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dSFuse.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dLWeb.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dGSM.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRRing.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dHOKhal.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dAnti.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dOr.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dSM.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dStDu.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dCrys.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dMetP.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dFStone.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRem.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dIFluid.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dFiConn.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dACarbon.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dSFuse.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dLWeb.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dGSM.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRRing.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dHOKhal.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dAnti.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dRedEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBluEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dYelEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrit.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dDragon.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dPert.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dAtom.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRedEn.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dBluEn.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dYelEn.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dCrit.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dDragon.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dPert.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
carPanel.dAtom.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.arBuyButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.arBuyButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.arBuyButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapBuy.buyWeapon.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapBuy.buyWeapon.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapBuy.buyWeapon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dRedEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dBluEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dYelEn.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dCrit.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dDragon.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dPert.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
carPanel.dRedEn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dBluEn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dYelEn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dCrit.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dDragon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dPert.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dAtom.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
carPanel.dRedEn.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dBluEn.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dYelEn.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dCrit.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dDragon.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dPert.removeEventListener(MouseEvent.MOUSE_UP, onUp);
carPanel.dAtom.removeEventListener(MouseEvent.MOUSE_UP, onUp);
parSHIP.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
parARMOR.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
parCARGO.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
parSHIP.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
parARMOR.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
parCARGO.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.wRightButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.wLeftButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.HPupGButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.ENupGButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.AGIupGButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.CRITupGButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapUogMenu.upFRButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.weapUogMenu.upBVButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
shipPanel.eqWeaponButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill1Button.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill2Button.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.uPSkill1Button.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.uPSkill2Button.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
arPanel.ar0Icon.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
arPanel.ar0Icon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar1Icon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar2Icon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar3Icon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
arPanel.ar4Icon.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.arPanel.uPSkill1Button.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.arPanel.uPSkill2Button.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapUogMenu.upFRButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.weapUogMenu.upBVButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.eqWeaponButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.HPupGButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.ENupGButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.AGIupGButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.CRITupGButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
parSHIP.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
parARMOR.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
parCARGO.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wRightButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wLeftButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.HPupGButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.ENupGButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.AGIupGButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.CRITupGButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapUogMenu.upFRButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.weapUogMenu.upBVButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.eqWeaponButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
shipPanel.wRightButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
shipPanel.wLeftButton.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
}
}
}//package
Section 182
//menuItemPanel (menuItemPanel)
package {
import flash.events.*;
import flash.text.*;
import flash.display.*;
import fl.motion.*;
public class menuItemPanel extends MovieClip {
public var item5:TextField;
public var i4:lootReq;
public var item6:TextField;
public var i5:lootReq;
public var item7:TextField;
public var i10:lootReq;
public var i6:lootReq;
public var item10:TextField;
public var item8:TextField;
public var i20:lootReq;
public var i11:lootReq;
public var i7:lootReq;
public var item20:TextField;
public var item11:TextField;
public var item9:TextField;
public var i30:lootReq;
public var i21:lootReq;
public var i12:lootReq;
public var i8:lootReq;
public var item30:TextField;
public var item21:TextField;
public var item12:TextField;
public var i22:lootReq;
public var i13:lootReq;
public var i9:lootReq;
public var item22:TextField;
public var item13:TextField;
public var namaItem:TextField;
public var i23:lootReq;
public var i14:lootReq;
public var item23:TextField;
public var item14:TextField;
public var i24:lootReq;
public var i15:lootReq;
public var item24:TextField;
public var item15:TextField;
public var i25:lootReq;
public var i16:lootReq;
public var item25:TextField;
public var item16:TextField;
public var closed:MovieClip;
public var keteranganItem:TextField;
public var i26:lootReq;
public var i17:lootReq;
public var item26:TextField;
public var item17:TextField;
public var i27:lootReq;
public var i18:lootReq;
public var item27:TextField;
public var item18:TextField;
public var i28:lootReq;
public var i19:lootReq;
public var item28:TextField;
public var item19:TextField;
public var i29:lootReq;
public var item29:TextField;
public var item1:TextField;
public var item2:TextField;
public var i1:lootReq;
public var item3:TextField;
public var i2:lootReq;
public var item4:TextField;
public var i3:lootReq;
var itemTintColour:Color;
public function menuItemPanel(){
itemTintColour = new Color();
super();
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.addEventListener(MouseEvent.MOUSE_UP, onUp);
closed.addEventListener(MouseEvent.MOUSE_OVER, onOver);
closed.addEventListener(MouseEvent.CLICK, onClick);
closed.addEventListener(MouseEvent.MOUSE_OUT, onOut);
item1.mouseEnabled = false;
item2.mouseEnabled = false;
item3.mouseEnabled = false;
item4.mouseEnabled = false;
item5.mouseEnabled = false;
item6.mouseEnabled = false;
item7.mouseEnabled = false;
item8.mouseEnabled = false;
item9.mouseEnabled = false;
item10.mouseEnabled = false;
item11.mouseEnabled = false;
item12.mouseEnabled = false;
item13.mouseEnabled = false;
item14.mouseEnabled = false;
item15.mouseEnabled = false;
item16.mouseEnabled = false;
item17.mouseEnabled = false;
item18.mouseEnabled = false;
item19.mouseEnabled = false;
item20.mouseEnabled = false;
item21.mouseEnabled = false;
item22.mouseEnabled = false;
item23.mouseEnabled = false;
item24.mouseEnabled = false;
item25.mouseEnabled = false;
item26.mouseEnabled = false;
item27.mouseEnabled = false;
item28.mouseEnabled = false;
item29.mouseEnabled = false;
item30.mouseEnabled = false;
i1.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i2.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i3.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i4.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i5.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i6.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i7.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i8.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i9.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i10.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i11.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i12.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i13.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i14.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i15.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i16.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i17.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i18.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i19.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i20.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i21.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i22.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i23.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i24.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i25.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i26.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i27.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i28.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i29.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i30.addEventListener(MouseEvent.MOUSE_OVER, onOver);
i1.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i2.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i3.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i4.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i5.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i6.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i7.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i8.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i9.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i10.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i11.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i12.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i13.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i14.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i15.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i16.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i17.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i18.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i19.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i20.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i21.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i22.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i23.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i24.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i25.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i26.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i27.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i28.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i29.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i30.addEventListener(MouseEvent.MOUSE_OUT, onOut);
i1.gotoAndStop(1);
i2.gotoAndStop(2);
i3.gotoAndStop(3);
i4.gotoAndStop(4);
i5.gotoAndStop(5);
i6.gotoAndStop(6);
i7.gotoAndStop(7);
i8.gotoAndStop(8);
i9.gotoAndStop(9);
i10.gotoAndStop(10);
i11.gotoAndStop(11);
i12.gotoAndStop(12);
i13.gotoAndStop(13);
i14.gotoAndStop(14);
i15.gotoAndStop(15);
i16.gotoAndStop(16);
i17.gotoAndStop(17);
i18.gotoAndStop(18);
i19.gotoAndStop(19);
i20.gotoAndStop(20);
i21.gotoAndStop(21);
i22.gotoAndStop(22);
i23.gotoAndStop(23);
i24.gotoAndStop(24);
i25.gotoAndStop(25);
i26.gotoAndStop(26);
i27.gotoAndStop(27);
i28.gotoAndStop(28);
i29.gotoAndStop(29);
i30.gotoAndStop(30);
}
function eFrame(_arg1:Event):void{
if (GSEngine.phases == "Action"){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
removeListeners();
menuPanelTetap.phase = "normalPhase";
};
};
if ((((menuPanelTetap.phase == "emergencyOut")) && (!((this == null))))){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
removeListeners();
menuPanelTetap.phase = "normalPhase";
};
};
itemTintColour.setTint(4294901760, 0.75);
if (GSEngine.ore == 0){
i1.alpha = 0.3;
item1.alpha = 0.3;
} else {
i1.alpha = 1;
item1.alpha = 1;
};
if (GSEngine.scrapMetal == 0){
i2.alpha = 0.3;
item2.alpha = 0.3;
} else {
i2.alpha = 1;
item2.alpha = 1;
};
if (GSEngine.starDust == 0){
i3.alpha = 0.3;
item3.alpha = 0.3;
} else {
i3.alpha = 1;
item3.alpha = 1;
};
if (GSEngine.crystal == 0){
i4.alpha = 0.3;
item4.alpha = 0.3;
} else {
i4.alpha = 1;
item4.alpha = 1;
};
if (GSEngine.meteorPiece == 0){
i5.alpha = 0.3;
item5.alpha = 0.3;
} else {
i5.alpha = 1;
item5.alpha = 1;
};
if (GSEngine.flyingStone == 0){
i6.alpha = 0.3;
item6.alpha = 0.3;
} else {
i6.alpha = 1;
item6.alpha = 1;
};
if (GSEngine.remethin == 0){
i7.alpha = 0.3;
item7.alpha = 0.3;
} else {
i7.alpha = 1;
item7.alpha = 1;
};
if (GSEngine.fiberConnection == 0){
i8.alpha = 0.3;
item8.alpha = 0.3;
} else {
i8.alpha = 1;
item8.alpha = 1;
};
if (GSEngine.ionizedFluid == 0){
i9.alpha = 0.3;
item9.alpha = 0.3;
} else {
i9.alpha = 1;
item9.alpha = 1;
};
if (GSEngine.manaStone == 0){
i10.alpha = 0.3;
item10.alpha = 0.3;
} else {
i10.alpha = 1;
item10.alpha = 1;
};
if (GSEngine.battery == 0){
i11.alpha = 0.3;
item11.alpha = 0.3;
} else {
i11.alpha = 1;
item11.alpha = 1;
};
if (GSEngine.luminaFruit == 0){
i12.alpha = 0.3;
item12.alpha = 0.3;
} else {
i12.alpha = 1;
item12.alpha = 1;
};
if (GSEngine.azuriaCarbon == 0){
i13.alpha = 0.3;
item13.alpha = 0.3;
} else {
i13.alpha = 1;
item13.alpha = 1;
};
if (GSEngine.blackCrumb == 0){
i14.alpha = 0.3;
item14.alpha = 0.3;
} else {
i14.alpha = 1;
item14.alpha = 1;
};
if (GSEngine.sparkFuse == 0){
i15.alpha = 0.3;
item15.alpha = 0.3;
} else {
i15.alpha = 1;
item15.alpha = 1;
};
if (GSEngine.lightWeb == 0){
i16.alpha = 0.3;
item16.alpha = 0.3;
} else {
i16.alpha = 1;
item16.alpha = 1;
};
if (GSEngine.guardianStarMedal == 0){
i17.alpha = 0.3;
item17.alpha = 0.3;
} else {
i17.alpha = 1;
item17.alpha = 1;
};
if (GSEngine.royalRing == 0){
i18.alpha = 0.3;
item18.alpha = 0.3;
} else {
i18.alpha = 1;
item18.alpha = 1;
};
if (GSEngine.hearthOfKhaleonia == 0){
i19.alpha = 0.3;
item19.alpha = 0.3;
} else {
i19.alpha = 1;
item19.alpha = 1;
};
if (GSEngine.antimater == 0){
i20.alpha = 0.3;
item20.alpha = 0.3;
} else {
i20.alpha = 1;
item20.alpha = 1;
};
if (GSEngine.redEnergy == 0){
i21.alpha = 0.3;
item21.alpha = 0.3;
} else {
i21.alpha = 1;
item21.alpha = 1;
};
if (GSEngine.blueEnergy == 0){
i22.alpha = 0.3;
item22.alpha = 0.3;
} else {
i22.alpha = 1;
item22.alpha = 1;
};
if (GSEngine.yellowEnergy == 0){
i23.alpha = 0.3;
item23.alpha = 0.3;
} else {
i23.alpha = 1;
item23.alpha = 1;
};
if (GSEngine.bitModule == 0){
i24.alpha = 0.3;
item24.alpha = 0.3;
} else {
i24.alpha = 1;
item24.alpha = 1;
};
if (GSEngine.criticalChipset == 0){
i25.alpha = 0.3;
item25.alpha = 0.3;
} else {
i25.alpha = 1;
item25.alpha = 1;
};
if (GSEngine.linker == 0){
i26.alpha = 0.3;
item26.alpha = 0.3;
} else {
i26.alpha = 1;
item26.alpha = 1;
};
if (GSEngine.dragonScale == 0){
i27.alpha = 0.3;
item27.alpha = 0.3;
} else {
i27.alpha = 1;
item27.alpha = 1;
};
if (GSEngine.sparkLimiter == 0){
i28.alpha = 0.3;
item28.alpha = 0.3;
} else {
i28.alpha = 1;
item28.alpha = 1;
};
if (GSEngine.pertamaxFuel == 0){
i29.alpha = 0.3;
item29.alpha = 0.3;
} else {
i29.alpha = 1;
item29.alpha = 1;
};
if (GSEngine.atomDecompiler == 0){
i30.alpha = 0.3;
item30.alpha = 0.3;
} else {
i30.alpha = 1;
item30.alpha = 1;
};
item1.text = ("x" + GSEngine.ore.toString());
item2.text = ("x" + GSEngine.scrapMetal.toString());
item3.text = ("x" + GSEngine.starDust.toString());
item4.text = ("x" + GSEngine.crystal.toString());
item5.text = ("x" + GSEngine.meteorPiece.toString());
item6.text = ("x" + GSEngine.flyingStone.toString());
item7.text = ("x" + GSEngine.remethin.toString());
item8.text = ("x" + GSEngine.fiberConnection.toString());
item9.text = ("x" + GSEngine.ionizedFluid.toString());
item10.text = ("x" + GSEngine.manaStone.toString());
item11.text = ("x" + GSEngine.battery.toString());
item12.text = ("x" + GSEngine.luminaFruit.toString());
item13.text = ("x" + GSEngine.azuriaCarbon.toString());
item14.text = ("x" + GSEngine.blackCrumb.toString());
item15.text = ("x" + GSEngine.sparkFuse.toString());
item16.text = ("x" + GSEngine.lightWeb.toString());
item17.text = ("x" + GSEngine.guardianStarMedal.toString());
item18.text = ("x" + GSEngine.royalRing.toString());
item19.text = ("x" + GSEngine.hearthOfKhaleonia.toString());
item20.text = ("x" + GSEngine.antimater.toString());
item21.text = ("x" + GSEngine.redEnergy.toString());
item22.text = ("x" + GSEngine.blueEnergy.toString());
item23.text = ("x" + GSEngine.yellowEnergy.toString());
item24.text = ("x" + GSEngine.bitModule.toString());
item25.text = ("x" + GSEngine.criticalChipset.toString());
item26.text = ("x" + GSEngine.linker.toString());
item27.text = ("x" + GSEngine.dragonScale.toString());
item28.text = ("x" + GSEngine.sparkLimiter.toString());
item29.text = ("x" + GSEngine.pertamaxFuel.toString());
item30.text = ("x" + GSEngine.atomDecompiler.toString());
}
function onOver(_arg1:MouseEvent):void{
_arg1.target.scaleX = 1.6;
_arg1.target.scaleY = 1.6;
if (_arg1.target == closed){
_arg1.target.gotoAndStop(2);
};
switch (_arg1.target){
case i1:
namaItem.text = ("ORE " + item1.text);
keteranganItem.text = "Common Mineral of the Azuria Planet.";
break;
case i2:
namaItem.text = ("SCRAP METAL " + item2.text);
keteranganItem.text = "Remains of destroyed ship.";
break;
case i3:
namaItem.text = ("STAR DUST " + item3.text);
keteranganItem.text = "Particle essence of the sunlight.";
break;
case i4:
namaItem.text = ("CRYSTAL " + item4.text);
keteranganItem.text = "Hard form of Zurias liquid.";
break;
case i5:
namaItem.text = ("METEOR PIECE " + item5.text);
keteranganItem.text = "Piece of fallen meteor.";
break;
case i6:
namaItem.text = ("FLYING STONE " + item6.text);
keteranganItem.text = "Common Mineral of the Azuria Planet.";
break;
case i7:
namaItem.text = ("REMETHIN " + item7.text);
keteranganItem.text = "An oily extract from Garghoul horn.";
break;
case i8:
namaItem.text = ("FIBER CONNECTION " + item8.text);
keteranganItem.text = "Transfer data medium that used by old civilization.";
break;
case i9:
namaItem.text = ("IONIZED FLUID " + item9.text);
keteranganItem.text = "Charged fluid drop from enemy engine.";
break;
case i10:
namaItem.text = ("MANA STONE " + item10.text);
keteranganItem.text = "Stone with magical power.";
break;
case i11:
namaItem.text = ("BATTERY " + item11.text);
keteranganItem.text = "Energy source used by military.";
break;
case i12:
namaItem.text = ("LUMINA FRUIT " + item12.text);
keteranganItem.text = "Glowing misterious fruit.";
break;
case i13:
namaItem.text = ("AZURIA CARBON " + item13.text);
keteranganItem.text = "Pitch black material from Zuria's crust.";
break;
case i14:
namaItem.text = ("BLACK CRUMB " + item14.text);
keteranganItem.text = "Small crumb of dark Garandil ore.";
break;
case i15:
namaItem.text = ("SPARK FUSE " + item15.text);
keteranganItem.text = "Small part of Ship engine.";
break;
case i16:
namaItem.text = ("LIGHT WEB " + item16.text);
keteranganItem.text = "Strong and glowing animal web.";
break;
case i17:
namaItem.text = ("GUARDIAN STAR MEDAL " + item17.text);
keteranganItem.text = "Achievement of old heroes.";
break;
case i18:
namaItem.text = ("ROYAL RING " + item18.text);
keteranganItem.text = "One of Queen's ring that long gone.";
break;
case i19:
namaItem.text = ("HEART OF KHALEONIA " + item19.text);
keteranganItem.text = "The precious relic of Khaleonia.";
break;
case i20:
namaItem.text = ("ANTIMATER " + item20.text);
keteranganItem.text = "The oposite element of mater.";
break;
case i21:
namaItem.text = ("RED ENERGY " + item21.text);
keteranganItem.text = "Add 100 of ship hit point.";
break;
case i22:
namaItem.text = ("BLUE ENERGY " + item22.text);
keteranganItem.text = "Add 100 of ship armor.";
break;
case i23:
namaItem.text = ("YELLOW ENERGY " + item23.text);
keteranganItem.text = "Add 200 of armor energy point.";
break;
case i24:
namaItem.text = ("BIT MODULE " + item24.text);
keteranganItem.text = "Add 2 weapon bit to assist you.";
break;
case i25:
namaItem.text = ("CRITICAL CHIPSET " + item25.text);
keteranganItem.text = "Boost 25% critical change & critical damage.";
break;
case i26:
namaItem.text = ("LINKER " + item26.text);
keteranganItem.text = "Control escape pod with this device.";
break;
case i27:
namaItem.text = ("DRAGON SCALE " + item27.text);
keteranganItem.text = "Add more 30% of Armor Point.";
break;
case i28:
namaItem.text = ("SPARK LIMITER " + item28.text);
keteranganItem.text = "Special attack use 30% less energy.";
break;
case i29:
namaItem.text = ("PERTAMAX FUEL " + item29.text);
keteranganItem.text = "Raise movement speed for 20%.";
break;
case i30:
namaItem.text = ("ATOM DECOMPILER " + item30.text);
keteranganItem.text = "+ 10% Change to evade enemy bullet.";
break;
};
}
function onClick(_arg1:MouseEvent):void{
if ((((menuPanelTetap.phase == "itemPhase")) && (!((this == null))))){
this.parent.removeChild(this);
closed.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
closed.removeEventListener(MouseEvent.CLICK, onClick);
menuPanelTetap.phase = "normalPhase";
};
}
function onOut(_arg1:MouseEvent):void{
if (_arg1.target == closed){
closed.gotoAndStop(1);
};
_arg1.target.scaleX = 1;
_arg1.target.scaleY = 1;
}
function onDown(_arg1:MouseEvent):void{
this.startDrag();
}
function onUp(_arg1:MouseEvent):void{
this.stopDrag();
}
public function removeThis(){
this.parent.removeChild(this);
}
public function removeListeners(){
this.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.removeEventListener(MouseEvent.MOUSE_UP, onUp);
closed.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
closed.removeEventListener(MouseEvent.CLICK, onClick);
closed.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i1.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i2.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i3.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i4.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i5.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i6.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i7.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i8.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i9.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i10.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i11.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i12.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i13.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i14.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i15.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i16.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i17.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i18.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i19.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i20.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i21.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i22.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i23.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i24.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i25.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i26.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i27.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i28.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i29.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i30.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
i1.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i2.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i3.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i4.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i5.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i6.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i7.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i8.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i9.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i10.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i11.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i12.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i13.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i14.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i15.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i16.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i17.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i18.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i19.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i20.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i21.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i22.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i23.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i24.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i25.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i26.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i27.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i28.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i29.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
i30.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
removeEventListener(Event.ENTER_FRAME, eFrame);
}
function frame1(){
stop();
}
}
}//package
Section 183
//menuPanelTetap (menuPanelTetap)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
public class menuPanelTetap extends MovieClip {
public var expBars:expBar;
public var exButton:MovieClip;
public var agBut:MovieClip;
public var currentMenu:TextField;
public var arrowKiri:panelTetapNext;
public var rank:TextField;
public var petunjukKanan:TextField;
public var configBut:MovieClip;
public var arrowKanan:panelTetapNext;
public var petunjukKiri:TextField;
public var keyConfig:keyBind;
public var soundBut:MovieClip;
public var qtyBut:qlty;
public var moneyBar:sparkSlot;
private var _root:MovieClip;
var udahGanti:Boolean;// = true
var overB:Sound;
var confirm:Sound;
var myChannel:SoundChannel;
var redCD:int;
var greenCD:int;
var yellowCD:int;
var dragonCD:int;
var pertaCD:int;
var atomCD:int;
var spNoveCD:int;
var critCD:int;
var arcCD;
var ragingCD:int;
var burnCD:int;
var wildCD:int;
var solarCD:int;
var deflectCD:int;
var blueCD:int;
var cometCD:int;
var protectCD:int;
var swarmCD:int;
var critAtkCD:int;
var globalCD:int;
var invurnCD:int;
var electroCD:int;
var counterCD:int;
var deadCD:int;
var shadowCD:int;
var graviCD:int;
var orbCD:int;
var blackCD:int;
static var phase:String = "normalPhase";
static var currMenu:String;
static var myTransform:SoundTransform = new SoundTransform();
public function menuPanelTetap(){
overB = new overButtonS();
confirm = new confirmKlik();
myChannel = new SoundChannel();
super();
configBut.stop();
soundBut.stop();
keyConfig.visible = false;
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = false;
qtyBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
qtyBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
qtyBut.addEventListener(MouseEvent.CLICK, onClick);
agBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
agBut.addEventListener(MouseEvent.CLICK, onClick);
keyConfig.closeB.addEventListener(MouseEvent.MOUSE_OVER, onOver);
keyConfig.closeB.addEventListener(MouseEvent.MOUSE_OUT, onOut);
keyConfig.closeB.addEventListener(MouseEvent.CLICK, onClick);
configBut.addEventListener(MouseEvent.CLICK, onClick);
configBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
configBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
exButton.addEventListener(MouseEvent.CLICK, onClick);
exButton.addEventListener(MouseEvent.MOUSE_OVER, onOver);
exButton.addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(Event.ENTER_FRAME, eFrame);
this.arrowKiri.addEventListener(MouseEvent.MOUSE_OVER, onOver);
this.arrowKanan.addEventListener(MouseEvent.MOUSE_OVER, onOver);
moneyBar.addEventListener(MouseEvent.MOUSE_OVER, onOver);
this.arrowKiri.addEventListener(MouseEvent.CLICK, onClick);
this.arrowKanan.addEventListener(MouseEvent.CLICK, onClick);
moneyBar.addEventListener(MouseEvent.CLICK, onClick);
this.arrowKiri.addEventListener(MouseEvent.MOUSE_OUT, onOut);
this.arrowKanan.addEventListener(MouseEvent.MOUSE_OUT, onOut);
moneyBar.addEventListener(MouseEvent.MOUSE_OUT, onOut);
moneyBar.pTetapSpark.mouseEnabled = false;
currentMenu.mouseEnabled = false;
petunjukKiri.mouseEnabled = false;
petunjukKanan.mouseEnabled = false;
rank.mouseEnabled = false;
soundBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
soundBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
soundBut.addEventListener(MouseEvent.CLICK, onClick);
this.petunjukKiri.text = "WORLD MAP";
this.petunjukKanan.text = "HANGAR";
_root = MovieClip(root);
}
function removeThis(){
qtyBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
qtyBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
qtyBut.removeEventListener(MouseEvent.CLICK, onClick);
agBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
agBut.removeEventListener(MouseEvent.CLICK, onClick);
keyConfig.closeB.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
keyConfig.closeB.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
keyConfig.closeB.removeEventListener(MouseEvent.CLICK, onClick);
configBut.removeEventListener(MouseEvent.CLICK, onClick);
configBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
configBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
exButton.removeEventListener(MouseEvent.CLICK, onClick);
exButton.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
exButton.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
removeEventListener(Event.ENTER_FRAME, eFrame);
this.arrowKiri.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
this.arrowKanan.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
moneyBar.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
this.arrowKiri.removeEventListener(MouseEvent.CLICK, onClick);
this.arrowKanan.removeEventListener(MouseEvent.CLICK, onClick);
moneyBar.removeEventListener(MouseEvent.CLICK, onClick);
this.arrowKiri.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
this.arrowKanan.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
moneyBar.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
function eFrame(_arg1:Event):void{
if (GSEngine.phases == "Action"){
removeThis();
};
if (GSEngine.phases == "Main"){
this.visible = false;
};
if (GSEngine.phases == "Customize"){
this.visible = true;
};
if (GSEngine.qualities == "LOW"){
qtyBut.lo.visible = true;
qtyBut.me.visible = false;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "MEDIUM"){
qtyBut.lo.visible = false;
qtyBut.me.visible = true;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "HIGH"){
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = true;
};
if (GSEngine.mM.visible == false){
stage.addChild(this);
};
if (GSEngine.sound == true){
soundBut.sOff.visible = false;
} else {
if (GSEngine.sound == false){
soundBut.sOff.visible = true;
};
};
if ((((GSEngine.currentRank == "ZURIA'S SOLDIER")) && ((GSEngine.exps > GSEngine.expNeed)))){
GSEngine.currentRank = "ROYAL GUARDIAN";
GSEngine.exps = 0;
rank.text = "ROYAL GUARDIAN";
};
if ((((GSEngine.currentRank == "ROYAL GUARDIAN")) && ((GSEngine.exps > GSEngine.expNeed)))){
GSEngine.currentRank = "TERESTRIAL BEING";
GSEngine.exps = 0;
rank.text = "TERESTRIAL BEING";
};
if ((((GSEngine.currentRank == "TERESTRIAL BEING")) && ((GSEngine.exps > GSEngine.expNeed)))){
GSEngine.currentRank = "CELESTIAL LIGHT";
GSEngine.exps = 0;
rank.text = "CELESTIAL LIGHT";
};
if ((((GSEngine.currentRank == "CELESTIAL LIGHT")) && ((GSEngine.exps > GSEngine.expNeed)))){
GSEngine.currentRank = "GUARDIAN STAR";
GSEngine.exps = 0;
rank.text = "GUARDIAN STAR";
};
if (GSEngine.currentRank == "GUARDIAN STAR"){
expBars.scaleX = 1;
} else {
expBars.scaleX = (GSEngine.exps / GSEngine.expNeed);
};
if (((((!((this == null))) && (!((stage == null))))) && ((GSEngine.mM == null)))){
stage.addChild(this);
};
currMenu = this.currentMenu.text;
moneyBar.pTetapSpark.text = GSEngine.spark.toString();
rank.text = GSEngine.currentRank;
}
function onClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (_arg1.target != qtyBut){
_arg1.target.gotoAndPlay(3);
};
if (_arg1.target == qtyBut){
udahGanti = false;
if ((((GSEngine.qualities == "LOW")) && ((udahGanti == false)))){
GSEngine.qualities = "MEDIUM";
trace(stage.quality);
stage.quality = "MEDIUM";
udahGanti = true;
};
if ((((GSEngine.qualities == "MEDIUM")) && ((udahGanti == false)))){
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = true;
GSEngine.qualities = "HIGH";
trace(stage.quality);
stage.quality = "HIGH";
udahGanti = true;
};
if ((((GSEngine.qualities == "HIGH")) && ((udahGanti == false)))){
GSEngine.qualities = "LOW";
trace(stage.quality);
stage.quality = "LOW";
udahGanti = true;
};
};
if (_arg1.target == agBut){
_arg1.target.gotoAndStop(2);
_local2 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2, "_blank");
};
if (_arg1.target == keyConfig.closeB){
keyConfig.visible = false;
};
if (_arg1.target == configBut){
keyConfig.visible = true;
};
if (_arg1.target == exButton){
GSEngine.exits = true;
GSEngine.myChannel.stop();
GSEngine.phases = "Main";
GSEngine.isPaused = false;
};
if (_arg1.target == soundBut){
if (GSEngine.sound == false){
GSEngine.myTransform.volume = 1;
GSEngine.sound = true;
GSEngine.myChannel.soundTransform = GSEngine.myTransform;
} else {
if (GSEngine.sound == true){
GSEngine.sound = false;
GSEngine.myTransform.volume = 0;
GSEngine.myChannel.soundTransform = GSEngine.myTransform;
};
};
};
if (_arg1.target == arrowKiri){
if (GSEngine.sound == true){
confirm.play();
};
if (phase == "itemPhase"){
phase = "emergencyOut";
};
if (this.currentMenu.text == "WORLD MAP"){
this.currentMenu.text = "WORLD MAP";
GSEngine.mG.x = 1100;
} else {
if (this.currentMenu.text == "HANGAR"){
this.currentMenu.text = "WORLD MAP";
GSEngine.wM.x = 360;
GSEngine.mG.x = 1100;
};
};
} else {
if (_arg1.target == arrowKanan){
if (GSEngine.sound == true){
confirm.play();
};
if (phase == "itemPhase"){
phase = "emergencyOut";
};
if (this.currentMenu.text == "WORLD MAP"){
this.currentMenu.text = "HANGAR";
GSEngine.mG.x = 360;
GSEngine.wM.x = -400;
} else {
if (this.currentMenu.text == "HANGAR"){
this.currentMenu.text = "HANGAR";
GSEngine.mG.x = 360;
};
};
};
};
}
function onOver(_arg1:MouseEvent):void{
if (_arg1.target == qtyBut){
qtyBut.play();
};
if (((!((_arg1.target == configBut))) && (!((_arg1.target == qtyBut))))){
_arg1.target.gotoAndStop(2);
};
if (_arg1.target == configBut){
_arg1.target.play();
};
if (_arg1.target == soundBut){
_arg1.target.play();
};
if (_arg1.target == exButton){
_arg1.target.scaleX = 1.5;
_arg1.target.scaleY = 1.5;
};
}
function onOut(_arg1:MouseEvent):void{
if (_arg1.target != qtyBut){
_arg1.target.gotoAndStop(1);
};
if (_arg1.target == qtyBut){
qtyBut.gotoAndStop(1);
};
if (_arg1.target == configBut){
_arg1.target.stop();
};
if (_arg1.target == exButton){
_arg1.target.scaleX = 1;
_arg1.target.scaleY = 1;
};
}
}
}//package
Section 184
//menuShortcut (menuShortcut)
package {
import flash.display.*;
public dynamic class menuShortcut extends MovieClip {
}
}//package
Section 185
//MiniBoss (MiniBoss)
package {
import flash.display.*;
public dynamic class MiniBoss extends MovieClip {
public var miniBoss2:MovieClip;
}
}//package
Section 186
//miniBossPeri (miniBossPeri)
package {
import flash.display.*;
public dynamic class miniBossPeri extends MovieClip {
}
}//package
Section 187
//miscItem (miscItem)
package {
import flash.display.*;
public dynamic class miscItem extends MovieClip {
public function miscItem(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 188
//MovingTarget (MovingTarget)
package {
import flash.display.*;
public dynamic class MovingTarget extends MovieClip {
}
}//package
Section 189
//openingScene (openingScene)
package {
import flash.display.*;
import flash.events.*;
public dynamic class openingScene extends MovieClip {
public var op1:MovieClip;
public var op2:MovieClip;
public var op3:MovieClip;
public var op4:MovieClip;
public var op5:MovieClip;
public var skipButton:MovieClip;
public function openingScene(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function onPressed(_arg1:KeyboardEvent):void{
this.gotoAndStop(6);
}
public function onClick(_arg1:MouseEvent):void{
this.gotoAndStop(6);
}
public function eFrame(_arg1:Event):void{
if (op1 != null){
if (op1.currentFrame == op1.totalFrames){
this.gotoAndStop(2);
};
};
}
public function eFrame2(_arg1:Event):void{
if (op2 != null){
if (op2.currentFrame == op2.totalFrames){
this.gotoAndStop(3);
};
};
}
public function eFrame3(_arg1:Event):void{
if (op3 != null){
if (op3.currentFrame == op3.totalFrames){
this.gotoAndStop(4);
};
};
}
public function eFrame4(_arg1:Event):void{
if (op4 != null){
if (op4.currentFrame == op4.totalFrames){
this.gotoAndStop(5);
};
};
}
public function eFrame5(_arg1:Event):void{
if (op5 != null){
if (op5.currentFrame == op5.totalFrames){
this.gotoAndStop(6);
};
};
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, onClick);
this.addEventListener(KeyboardEvent.KEY_DOWN, onPressed);
stop();
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame2(){
addEventListener(Event.ENTER_FRAME, eFrame2);
}
function frame3(){
addEventListener(Event.ENTER_FRAME, eFrame3);
}
function frame4(){
addEventListener(Event.ENTER_FRAME, eFrame4);
}
function frame5(){
addEventListener(Event.ENTER_FRAME, eFrame5);
}
function frame6(){
if (((!((this.parent == null))) && (!((this == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 190
//overButtonS (overButtonS)
package {
import flash.media.*;
public dynamic class overButtonS extends Sound {
}
}//package
Section 191
//overStages (overStages)
package {
import flash.media.*;
public dynamic class overStages extends Sound {
}
}//package
Section 192
//PanelBawah (PanelBawah)
package {
import flash.display.*;
import flash.text.*;
public dynamic class PanelBawah extends MovieClip {
public var arBut:MovieClip;
public var sC1:MovieClip;
public var manaBar:MovieClip;
public var prog:TextField;
public var objectives:TextField;
public var sC2:MovieClip;
public var sC3:MovieClip;
public var sC4:MovieClip;
public var warn:MovieClip;
public var sC5:MovieClip;
public var hpBar:MovieClip;
public var sCS1:MovieClip;
public var objs:MovieClip;
public var tutupan:MovieClip;
public var sCS2:MovieClip;
public var sCS3:MovieClip;
public var grav:efGravitation;
public var cd1:MovieClip;
public var sCS4:MovieClip;
public var gWarm:efGWarmingAnim;
public var cd2:MovieClip;
public var sCS5:MovieClip;
public var arBar:MovieClip;
public var cd3:MovieClip;
public var progressE:TextField;
public var cd4:MovieClip;
public var cd5:MovieClip;
}
}//package
Section 193
//panelShortCut (panelShortCut)
package {
import flash.events.*;
import flash.display.*;
public class panelShortCut extends MovieClip {
public var sC1:MovieClip;
public var sC2:MovieClip;
public var bgBlack:MovieClip;
public var sC3:MovieClip;
public var sC4:MovieClip;
public var sC5:MovieClip;
public var pAvailableSC:MovieClip;
var slotAssign:int;
var SCEquiped:String;
public function panelShortCut(){
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, eFrame);
pAvailableSC.visible = false;
sC1.scNumber.mouseEnabled = false;
sC2.scNumber.mouseEnabled = false;
sC3.scNumber.mouseEnabled = false;
sC4.scNumber.mouseEnabled = false;
sC5.scNumber.mouseEnabled = false;
sC1.sCI.mouseEnabled = false;
sC2.sCI.mouseEnabled = false;
sC3.sCI.mouseEnabled = false;
sC4.sCI.mouseEnabled = false;
sC5.sCI.mouseEnabled = false;
sC1.sCI.visible = false;
sC2.sCI.visible = false;
sC3.sCI.visible = false;
sC4.sCI.visible = false;
sC5.sCI.visible = false;
sC1.scNumber.gotoAndStop(1);
sC2.scNumber.gotoAndStop(2);
sC3.scNumber.gotoAndStop(3);
sC4.scNumber.gotoAndStop(4);
sC5.scNumber.gotoAndStop(5);
sC1.addEventListener(MouseEvent.CLICK, onDown);
sC2.addEventListener(MouseEvent.CLICK, onDown);
sC3.addEventListener(MouseEvent.CLICK, onDown);
sC4.addEventListener(MouseEvent.CLICK, onDown);
sC5.addEventListener(MouseEvent.CLICK, onDown);
sC1.addEventListener(MouseEvent.MOUSE_OVER, onOver);
sC2.addEventListener(MouseEvent.MOUSE_OVER, onOver);
sC3.addEventListener(MouseEvent.MOUSE_OVER, onOver);
sC4.addEventListener(MouseEvent.MOUSE_OVER, onOver);
sC5.addEventListener(MouseEvent.MOUSE_OVER, onOver);
sC1.addEventListener(MouseEvent.MOUSE_OUT, onOut);
sC2.addEventListener(MouseEvent.MOUSE_OUT, onOut);
sC3.addEventListener(MouseEvent.MOUSE_OUT, onOut);
sC4.addEventListener(MouseEvent.MOUSE_OUT, onOut);
sC5.addEventListener(MouseEvent.MOUSE_OUT, onOut);
bgBlack.addEventListener(MouseEvent.CLICK, onDown);
pAvailableSC.avSkill1.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avSkill2.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avSkill3.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avSkill4.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt1.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt2.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt3.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt4.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt5.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avIt6.addEventListener(MouseEvent.MOUSE_OVER, onOver);
pAvailableSC.avSkill1.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avSkill2.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avSkill3.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avSkill4.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt1.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt2.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt3.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt4.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt5.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avIt6.addEventListener(MouseEvent.MOUSE_OUT, onOut);
pAvailableSC.avSkill1.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avSkill2.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avSkill3.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avSkill4.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt1.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt2.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt3.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt4.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt5.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt6.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
pAvailableSC.avIt1.iconEquiped.gotoAndStop(1);
pAvailableSC.avIt2.iconEquiped.gotoAndStop(2);
pAvailableSC.avIt3.iconEquiped.gotoAndStop(3);
pAvailableSC.avIt4.iconEquiped.gotoAndStop(4);
pAvailableSC.avIt5.iconEquiped.gotoAndStop(5);
pAvailableSC.avIt6.iconEquiped.gotoAndStop(6);
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
sC1.sGlow.mouseEnabled = false;
sC2.sGlow.mouseEnabled = false;
sC3.sGlow.mouseEnabled = false;
sC4.sGlow.mouseEnabled = false;
sC5.sGlow.mouseEnabled = false;
sC1.gotoAndStop(1);
sC2.gotoAndStop(1);
sC3.gotoAndStop(1);
sC4.gotoAndStop(1);
sC5.gotoAndStop(1);
pAvailableSC.avSkill1.iSkill.mouseEnabled = false;
pAvailableSC.avSkill2.iSkill.mouseEnabled = false;
pAvailableSC.avSkill3.iSkill.mouseEnabled = false;
pAvailableSC.avSkill4.iSkill.mouseEnabled = false;
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill4.slotNumEq.visible = false;
pAvailableSC.avSkill1.skiSlotGlow.visible = false;
pAvailableSC.avSkill2.skiSlotGlow.visible = false;
pAvailableSC.avSkill3.skiSlotGlow.visible = false;
pAvailableSC.avSkill4.skiSlotGlow.visible = false;
pAvailableSC.avIt1.glow.visible = false;
pAvailableSC.avIt2.glow.visible = false;
pAvailableSC.avIt3.glow.visible = false;
pAvailableSC.avIt4.glow.visible = false;
pAvailableSC.avIt5.glow.visible = false;
pAvailableSC.avIt6.glow.visible = false;
pAvailableSC.avIt1.shortCutNumber.visible = false;
pAvailableSC.avIt2.shortCutNumber.visible = false;
pAvailableSC.avIt3.shortCutNumber.visible = false;
pAvailableSC.avIt4.shortCutNumber.visible = false;
pAvailableSC.avIt5.shortCutNumber.visible = false;
pAvailableSC.avIt6.shortCutNumber.visible = false;
}
function eFrame(_arg1:Event):void{
displaySC();
checkEquip();
pAvailableSC.avSkill1.iSkill.gotoAndStop(GSEngine.armorType);
pAvailableSC.avSkill2.iSkill.gotoAndStop(GSEngine.armorType);
pAvailableSC.avSkill3.iSkill.gotoAndStop(GSEngine.armorType);
pAvailableSC.avSkill4.iSkill.gotoAndStop(GSEngine.armorType);
if (GSEngine.redEnergy == 0){
pAvailableSC.avIt1.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.redEnergy > 0){
pAvailableSC.avIt1.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
if (GSEngine.blueEnergy == 0){
pAvailableSC.avIt2.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.blueEnergy > 0){
pAvailableSC.avIt2.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
if (GSEngine.yellowEnergy == 0){
pAvailableSC.avIt3.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.yellowEnergy > 0){
pAvailableSC.avIt3.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
if (GSEngine.dragonScale == 0){
pAvailableSC.avIt4.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.dragonScale > 0){
pAvailableSC.avIt4.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
if (GSEngine.antimater == 0){
pAvailableSC.avIt5.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.antimater > 0){
pAvailableSC.avIt5.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
if (GSEngine.atomDecompiler == 0){
pAvailableSC.avIt6.iconEquiped.alpha = 0.3;
pAvailableSC.itemDetails.alpha = 0.3;
} else {
if (GSEngine.atomDecompiler > 0){
pAvailableSC.avIt6.iconEquiped.alpha = 1;
pAvailableSC.itemDetails.alpha = 1;
};
};
}
function onOver(_arg1:MouseEvent):void{
if (pAvailableSC.visible == false){
if (_arg1.target == sC1){
sC1.sGlow.visible = true;
} else {
if (_arg1.target == sC2){
sC2.sGlow.visible = true;
} else {
if (_arg1.target == sC3){
sC3.sGlow.visible = true;
} else {
if (_arg1.target == sC4){
sC4.sGlow.visible = true;
} else {
if (_arg1.target == sC5){
sC5.sGlow.visible = true;
};
};
};
};
};
};
if (_arg1.target == pAvailableSC.avSkill1){
pAvailableSC.avSkill1.skiSlotGlow.visible = true;
if (GSEngine.armorType == 1){
pAvailableSC.skillDetails.text = "SKILL: SUPERNOVA - COST: 40MP";
} else {
if (GSEngine.armorType == 2){
pAvailableSC.skillDetails.text = "SKILL: BURNING RADIATION - COST: 45MP";
} else {
if (GSEngine.armorType == 3){
pAvailableSC.skillDetails.text = "SKILL: DEFLECT - COST: 45MP";
} else {
if (GSEngine.armorType == 4){
pAvailableSC.skillDetails.text = "SKILL: PROTECT - COST: 50MP";
} else {
if (GSEngine.armorType == 5){
pAvailableSC.skillDetails.text = "SKILL: INVURNERABLE - COST: 60MP";
} else {
if (GSEngine.armorType == 6){
pAvailableSC.skillDetails.text = "SKILL: SHADOW SHIP - COST: 75MP";
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill2){
pAvailableSC.avSkill2.skiSlotGlow.visible = true;
if (GSEngine.armorType == 1){
pAvailableSC.skillDetails.text = "SKILL: ARC SHIELD - COST: 50 MP";
} else {
if (GSEngine.armorType == 2){
pAvailableSC.skillDetails.text = "SKILL: WILD FIRE - COST: 70 MP";
} else {
if (GSEngine.armorType == 3){
pAvailableSC.skillDetails.text = "SKILL: BLUE RAY - COST: 75 MP";
} else {
if (GSEngine.armorType == 4){
pAvailableSC.skillDetails.text = "SKILL: SWARMING RAY - COST: 75 MP";
} else {
if (GSEngine.armorType == 5){
pAvailableSC.skillDetails.text = "SKILL: ELECTROMAGNETIC FIELD - COST: 60 MP";
} else {
if (GSEngine.armorType == 6){
pAvailableSC.skillDetails.text = "SKILL: GRAVITATION - COST: 65 MP";
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill3){
pAvailableSC.avSkill3.skiSlotGlow.visible = true;
if (GSEngine.armorType == 1){
pAvailableSC.skillDetails.text = "SKILL: RAGING SUN - COST: 80 MP";
} else {
if (GSEngine.armorType == 2){
pAvailableSC.skillDetails.text = "SKILL: SOLAR STORM - COST: 90 MP";
} else {
if (GSEngine.armorType == 3){
pAvailableSC.skillDetails.text = "SKILL: COMET TAIL - COST: 95 MP";
} else {
if (GSEngine.armorType == 4){
pAvailableSC.skillDetails.text = "SKILL: CRITICAL ATTACK - COST: 100 MP";
} else {
if (GSEngine.armorType == 5){
pAvailableSC.skillDetails.text = "SKILL: COUNTER WAVE - COST: 105 MP";
} else {
if (GSEngine.armorType == 6){
pAvailableSC.skillDetails.text = "SKILL: ORBITAL SHIELD - COST: 110 MP";
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill4){
pAvailableSC.avSkill4.skiSlotGlow.visible = true;
if (GSEngine.armorType == 1){
pAvailableSC.skillDetails.text = "";
} else {
if (GSEngine.armorType == 2){
pAvailableSC.skillDetails.text = "";
} else {
if (GSEngine.armorType == 3){
pAvailableSC.skillDetails.text = "";
} else {
if (GSEngine.armorType == 4){
pAvailableSC.skillDetails.text = "SKILL: GLOBAL WARMING - COST: 130 MP";
} else {
if (GSEngine.armorType == 5){
pAvailableSC.skillDetails.text = "SKILL: DEAD LINES - COST: 140 MP";
} else {
if (GSEngine.armorType == 6){
pAvailableSC.skillDetails.text = "SKILL: BLACK HOLE - COST: 150 MP";
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avIt1){
pAvailableSC.avIt1.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: RED POTION - HEAL 100 HP";
} else {
if (_arg1.target == pAvailableSC.avIt2){
pAvailableSC.avIt2.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: BLUE POTION - HEAL 100 MP";
} else {
if (_arg1.target == pAvailableSC.avIt3){
pAvailableSC.avIt3.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: YELLOW POTION - HEAL 100 ARMOR";
} else {
if (_arg1.target == pAvailableSC.avIt4){
pAvailableSC.avIt4.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: DRAGON SCALE - ADD DAMAGE RESISTANCE";
} else {
if (_arg1.target == pAvailableSC.avIt5){
pAvailableSC.avIt5.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: ANTIMATER - CREATE MINI BLACK HOLE";
} else {
if (_arg1.target == pAvailableSC.avIt6){
pAvailableSC.avIt6.glow.visible = true;
pAvailableSC.itemDetails.text = "ITEM: ATOM DECOMPILER - INCREASE 50% EVADE";
};
};
};
};
};
};
};
};
};
};
}
function onOut(_arg1:MouseEvent):void{
if (pAvailableSC.visible == false){
if (_arg1.target == sC1){
sC1.sGlow.visible = false;
} else {
if (_arg1.target == sC2){
sC2.sGlow.visible = false;
};
};
if (_arg1.target == sC3){
sC3.sGlow.visible = false;
};
if (_arg1.target == sC4){
sC4.sGlow.visible = false;
};
if (_arg1.target == sC5){
sC5.sGlow.visible = false;
};
};
if (_arg1.target == pAvailableSC.avSkill1){
pAvailableSC.avSkill1.skiSlotGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avSkill2){
pAvailableSC.avSkill2.skiSlotGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avSkill3){
pAvailableSC.avSkill3.skiSlotGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avSkill4){
pAvailableSC.avSkill4.skiSlotGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt1){
pAvailableSC.avIt1.glow.visible = false;
pAvailableSC.itemDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt2){
pAvailableSC.avIt2.glow.visible = false;
pAvailableSC.itemDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt3){
pAvailableSC.avIt3.glow.visible = false;
pAvailableSC.itemDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt4){
pAvailableSC.avIt4.glow.visible = false;
pAvailableSC.itemDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt5){
pAvailableSC.avIt5.glow.visible = false;
pAvailableSC.itemDetails.text = "";
} else {
if (_arg1.target == pAvailableSC.avIt6){
pAvailableSC.avIt6.glow.visible = false;
pAvailableSC.itemDetails.text = "";
};
};
};
};
};
};
};
};
};
};
}
function onDown(_arg1:MouseEvent):void{
if (_arg1.target == bgBlack){
this.parent.removeChild(this);
trace(GSEngine.shortCut1, GSEngine.shortCut2, GSEngine.shortCut3, GSEngine.shortCut4, GSEngine.shortCut5);
};
if (_arg1.target == pAvailableSC.avSkill1){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
if ((((GSEngine.armorType == 1)) && (!((GSEngine.a1S1 == false))))){
pasangSC("Supernova");
} else {
if ((((GSEngine.armorType == 2)) && (!((GSEngine.a2S1 == false))))){
pasangSC("BurningRadiation");
} else {
if ((((GSEngine.armorType == 3)) && (!((GSEngine.a3S1 == false))))){
pasangSC("Deflect");
} else {
if ((((GSEngine.armorType == 4)) && (!((GSEngine.a4S1 == false))))){
pasangSC("Protect");
} else {
if ((((GSEngine.armorType == 5)) && (!((GSEngine.a5S1 == false))))){
pasangSC("Invurnerable");
} else {
if ((((GSEngine.armorType == 6)) && (!((GSEngine.a6S1 == false))))){
pasangSC("ShadowShip");
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill2){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
if ((((GSEngine.armorType == 1)) && (!((GSEngine.a1S2 == false))))){
pasangSC("ArcShield");
} else {
if ((((GSEngine.armorType == 2)) && (!((GSEngine.a2S2 == false))))){
pasangSC("WildFire");
} else {
if ((((GSEngine.armorType == 3)) && (!((GSEngine.a3S2 == false))))){
pasangSC("BlueRay");
} else {
if ((((GSEngine.armorType == 4)) && (!((GSEngine.a4S2 == false))))){
pasangSC("SwarmingRay");
} else {
if ((((GSEngine.armorType == 5)) && (!((GSEngine.a5S2 == false))))){
pasangSC("ElectromagneticField");
} else {
if ((((GSEngine.armorType == 6)) && (!((GSEngine.a6S2 == false))))){
pasangSC("Gravitation");
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill3){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
if ((((GSEngine.armorType == 1)) && (!((GSEngine.a1S3 == false))))){
pasangSC("RagingSun");
} else {
if ((((GSEngine.armorType == 2)) && (!((GSEngine.a2S3 == false))))){
pasangSC("SolarStorm");
} else {
if ((((GSEngine.armorType == 3)) && (!((GSEngine.a3S3 == false))))){
pasangSC("CometTail");
} else {
if ((((GSEngine.armorType == 4)) && (!((GSEngine.a4S3 == false))))){
pasangSC("CriticalAttack");
} else {
if ((((GSEngine.armorType == 5)) && (!((GSEngine.a5S3 == false))))){
pasangSC("CounterWave");
} else {
if ((((GSEngine.armorType == 6)) && (!((GSEngine.a6S3 == false))))){
pasangSC("OrbitalShield");
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avSkill4){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
if (GSEngine.armorType == 1){
pasangSC("none");
} else {
if (GSEngine.armorType == 2){
pasangSC("none");
} else {
if (GSEngine.armorType == 3){
pasangSC("none");
} else {
if ((((GSEngine.armorType == 4)) && (!((GSEngine.a4S4 == false))))){
pasangSC("GlobalWarming");
} else {
if ((((GSEngine.armorType == 5)) && (!((GSEngine.a5S4 == false))))){
pasangSC("DeadLines");
} else {
if ((((GSEngine.armorType == 6)) && (!((GSEngine.a6S4 == false))))){
pasangSC("BlackHole");
};
};
};
};
};
};
} else {
if (_arg1.target == pAvailableSC.avIt1){
if (GSEngine.redEnergy > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "redEnergy";
pasangSC("redEnergy");
} else {
if (GSEngine.redEnergy == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
} else {
if (_arg1.target == pAvailableSC.avIt2){
if (GSEngine.blueEnergy > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "blueEnergy";
pasangSC("blueEnergy");
} else {
if (GSEngine.blueEnergy == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
} else {
if (_arg1.target == pAvailableSC.avIt3){
if (GSEngine.yellowEnergy > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "yellowEnergy";
pasangSC("yellowEnergy");
} else {
if (GSEngine.yellowEnergy == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
} else {
if (_arg1.target == pAvailableSC.avIt4){
if (GSEngine.dragonScale > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "dragonScale";
pasangSC("dragonScale");
} else {
if (GSEngine.dragonScale == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
} else {
if (_arg1.target == pAvailableSC.avIt5){
if (GSEngine.antimater > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "antimater";
pasangSC("antimater");
} else {
if (GSEngine.antimater == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
} else {
if (_arg1.target == pAvailableSC.avIt6){
if (GSEngine.atomDecompiler > 0){
pAvailableSC.visible = false;
sC1.sGlow.visible = false;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
SCEquiped = "atomDecompiler";
pasangSC("atomDecompiler");
} else {
if (GSEngine.atomDecompiler == 0){
pAvailableSC.itemDetails.text = "YOU DON'T HAVE THIS ITEM";
SCEquiped = "none";
pasangSC("none");
};
};
};
};
};
};
};
};
};
};
};
};
if (_arg1.target == sC1){
slotAssign = 1;
pAvailableSC.visible = true;
sC1.sGlow.visible = true;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == sC2){
slotAssign = 2;
pAvailableSC.visible = true;
sC2.sGlow.visible = true;
sC1.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == sC3){
slotAssign = 3;
pAvailableSC.visible = true;
sC3.sGlow.visible = true;
sC2.sGlow.visible = false;
sC1.sGlow.visible = false;
sC4.sGlow.visible = false;
sC5.sGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == sC4){
slotAssign = 4;
pAvailableSC.visible = true;
sC4.sGlow.visible = true;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC1.sGlow.visible = false;
sC5.sGlow.visible = false;
pAvailableSC.skillDetails.text = "";
} else {
if (_arg1.target == sC5){
slotAssign = 5;
pAvailableSC.visible = true;
sC5.sGlow.visible = true;
sC2.sGlow.visible = false;
sC3.sGlow.visible = false;
sC4.sGlow.visible = false;
sC1.sGlow.visible = false;
pAvailableSC.skillDetails.text = "";
};
};
};
};
};
}
function pasangSC(_arg1){
if (slotAssign == 1){
if ((((((((((GSEngine.shortCut1 == "none")) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut1 = _arg1;
} else {
if (((!((GSEngine.shortCut1 == "none"))) && ((GSEngine.shortCut1 == _arg1)))){
GSEngine.shortCut1 = "none";
sC1.sCI.gotoAndStop(1);
} else {
if (((((((((((!((GSEngine.shortCut1 == "none"))) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut1 = _arg1;
};
};
};
} else {
if (slotAssign == 2){
if ((((((((((GSEngine.shortCut2 == "none")) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut2 = _arg1;
} else {
if (((!((GSEngine.shortCut2 == "none"))) && ((GSEngine.shortCut2 == _arg1)))){
GSEngine.shortCut2 = "none";
sC2.sCI.gotoAndStop(1);
} else {
if (((((((((((!((GSEngine.shortCut2 == "none"))) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut2 = _arg1;
};
};
};
} else {
if (slotAssign == 3){
if ((((((((((GSEngine.shortCut3 == "none")) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut3 = _arg1;
} else {
if (((!((GSEngine.shortCut3 == "none"))) && ((GSEngine.shortCut3 == _arg1)))){
GSEngine.shortCut3 = "none";
sC3.sCI.gotoAndStop(1);
} else {
if (((((((((((!((GSEngine.shortCut3 == "none"))) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut3 = _arg1;
};
};
};
} else {
if (slotAssign == 4){
if ((((((((((GSEngine.shortCut4 == "none")) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut4 = _arg1;
} else {
if (((!((GSEngine.shortCut4 == "none"))) && ((GSEngine.shortCut4 == _arg1)))){
GSEngine.shortCut4 = "none";
sC4.sCI.gotoAndStop(1);
} else {
if (((((((((((!((GSEngine.shortCut4 == "none"))) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut4 = _arg1;
};
};
};
} else {
if (slotAssign == 5){
if ((((((((((GSEngine.shortCut5 == "none")) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))){
GSEngine.shortCut5 = _arg1;
} else {
if (((!((GSEngine.shortCut5 == "none"))) && ((GSEngine.shortCut5 == _arg1)))){
GSEngine.shortCut5 = "none";
sC5.sCI.gotoAndStop(1);
} else {
if (((((((((((!((GSEngine.shortCut5 == "none"))) && (!((GSEngine.shortCut1 == _arg1))))) && (!((GSEngine.shortCut2 == _arg1))))) && (!((GSEngine.shortCut3 == _arg1))))) && (!((GSEngine.shortCut4 == _arg1))))) && (!((GSEngine.shortCut5 == _arg1))))){
GSEngine.shortCut5 = _arg1;
};
};
};
};
};
};
};
};
}
function displaySC(){
if (GSEngine.shortCut1 != "none"){
sC1.sCI.gotoAndStop(GSEngine.shortCut1);
sC1.sCI.visible = true;
};
if (GSEngine.shortCut2 != "none"){
sC2.sCI.gotoAndStop(GSEngine.shortCut2);
sC2.sCI.visible = true;
};
if (GSEngine.shortCut3 != "none"){
sC3.sCI.gotoAndStop(GSEngine.shortCut3);
sC3.sCI.visible = true;
};
if (GSEngine.shortCut4 != "none"){
sC4.sCI.gotoAndStop(GSEngine.shortCut4);
sC4.sCI.visible = true;
};
if (GSEngine.shortCut5 != "none"){
sC5.sCI.gotoAndStop(GSEngine.shortCut5);
sC5.sCI.visible = true;
};
}
function checkEquip(){
if (GSEngine.armorType == 1){
if (GSEngine.a1S1 == true){
if ((((((((((GSEngine.shortCut1 == "Supernova")) || ((GSEngine.shortCut2 == "Supernova")))) || ((GSEngine.shortCut3 == "Supernova")))) || ((GSEngine.shortCut4 == "Supernova")))) || ((GSEngine.shortCut5 == "Supernova")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a1S2 == true){
if ((((((((((GSEngine.shortCut1 == "ArcShield")) || ((GSEngine.shortCut2 == "ArcShield")))) || ((GSEngine.shortCut3 == "ArcShield")))) || ((GSEngine.shortCut4 == "ArcShield")))) || ((GSEngine.shortCut5 == "ArcShield")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a1S3 == true){
if ((((((((((GSEngine.shortCut1 == "RagingSun")) || ((GSEngine.shortCut2 == "RagingSun")))) || ((GSEngine.shortCut3 == "RagingSun")))) || ((GSEngine.shortCut4 == "RagingSun")))) || ((GSEngine.shortCut5 == "RagingSun")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
} else {
if (GSEngine.armorType == 2){
if (GSEngine.a2S1 == true){
if ((((((((((GSEngine.shortCut1 == "BurningRadiation")) || ((GSEngine.shortCut2 == "BurningRadiation")))) || ((GSEngine.shortCut3 == "BurningRadiation")))) || ((GSEngine.shortCut4 == "BurningRadiation")))) || ((GSEngine.shortCut5 == "BurningRadiation")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a2S2 == true){
if ((((((((((GSEngine.shortCut1 == "WildFire")) || ((GSEngine.shortCut2 == "WildFire")))) || ((GSEngine.shortCut3 == "WildFire")))) || ((GSEngine.shortCut4 == "WildFire")))) || ((GSEngine.shortCut5 == "WildFire")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a2S3 == true){
if ((((((((((GSEngine.shortCut1 == "SolarStorm")) || ((GSEngine.shortCut2 == "SolarStorm")))) || ((GSEngine.shortCut3 == "SolarStorm")))) || ((GSEngine.shortCut4 == "SolarStorm")))) || ((GSEngine.shortCut5 == "SolarStorm")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
} else {
if (GSEngine.armorType == 3){
if (GSEngine.a3S1 == true){
if ((((((((((GSEngine.shortCut1 == "Deflect")) || ((GSEngine.shortCut2 == "Deflect")))) || ((GSEngine.shortCut3 == "Deflect")))) || ((GSEngine.shortCut4 == "Deflect")))) || ((GSEngine.shortCut5 == "Deflect")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a3S2 == true){
if ((((((((((GSEngine.shortCut1 == "BlueRay")) || ((GSEngine.shortCut2 == "BlueRay")))) || ((GSEngine.shortCut3 == "BlueRay")))) || ((GSEngine.shortCut4 == "BlueRay")))) || ((GSEngine.shortCut5 == "BlueRay")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a3S3 == true){
if ((((((((((GSEngine.shortCut1 == "CometTail")) || ((GSEngine.shortCut2 == "CometTail")))) || ((GSEngine.shortCut3 == "CometTail")))) || ((GSEngine.shortCut4 == "CometTail")))) || ((GSEngine.shortCut5 == "CometTail")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
} else {
if (GSEngine.armorType == 4){
if (GSEngine.a4S1 == true){
if ((((((((((GSEngine.shortCut1 == "Protect")) || ((GSEngine.shortCut2 == "Protect")))) || ((GSEngine.shortCut3 == "Protect")))) || ((GSEngine.shortCut4 == "Protect")))) || ((GSEngine.shortCut5 == "Protect")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a4S2 == true){
if ((((((((((GSEngine.shortCut1 == "SwarmingRay")) || ((GSEngine.shortCut2 == "SwarmingRay")))) || ((GSEngine.shortCut3 == "SwarmingRay")))) || ((GSEngine.shortCut4 == "SwarmingRay")))) || ((GSEngine.shortCut5 == "SwarmingRay")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a4S3 == true){
if ((((((((((GSEngine.shortCut1 == "CriticalAttack")) || ((GSEngine.shortCut2 == "CriticalAttack")))) || ((GSEngine.shortCut3 == "CriticalAttack")))) || ((GSEngine.shortCut4 == "CriticalAttack")))) || ((GSEngine.shortCut5 == "CriticalAttack")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
if (GSEngine.a4S4 == true){
if ((((((((((GSEngine.shortCut1 == "GlobalWarming")) || ((GSEngine.shortCut2 == "GlobalWarming")))) || ((GSEngine.shortCut3 == "GlobalWarming")))) || ((GSEngine.shortCut4 == "GlobalWarming")))) || ((GSEngine.shortCut5 == "GlobalWarming")))){
pAvailableSC.avSkill4.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill4.slotNumEq.visible = false;
pAvailableSC.avSkill4.iSkill.alpha = 0.3;
};
} else {
if (GSEngine.armorType == 5){
if (GSEngine.a5S1 == true){
if ((((((((((GSEngine.shortCut1 == "Invurnerable")) || ((GSEngine.shortCut2 == "Invurnerable")))) || ((GSEngine.shortCut3 == "Invurnerable")))) || ((GSEngine.shortCut4 == "Invurnerable")))) || ((GSEngine.shortCut5 == "Invurnerable")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a5S2 == true){
if ((((((((((GSEngine.shortCut1 == "ElectromagneticField")) || ((GSEngine.shortCut2 == "ElectromagneticField")))) || ((GSEngine.shortCut3 == "ElectromagneticField")))) || ((GSEngine.shortCut4 == "ElectromagneticField")))) || ((GSEngine.shortCut5 == "ElectromagneticField")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a5S3 == true){
if ((((((((((GSEngine.shortCut1 == "CounterWave")) || ((GSEngine.shortCut2 == "CounterWave")))) || ((GSEngine.shortCut3 == "CounterWave")))) || ((GSEngine.shortCut4 == "CounterWave")))) || ((GSEngine.shortCut5 == "CounterWave")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
if (GSEngine.a5S4 == true){
if ((((((((((GSEngine.shortCut1 == "DeadLines")) || ((GSEngine.shortCut2 == "DeadLines")))) || ((GSEngine.shortCut3 == "DeadLines")))) || ((GSEngine.shortCut4 == "DeadLines")))) || ((GSEngine.shortCut5 == "DeadLines")))){
pAvailableSC.avSkill4.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill4.slotNumEq.visible = false;
pAvailableSC.avSkill4.iSkill.alpha = 0.3;
};
} else {
if (GSEngine.armorType == 6){
if (GSEngine.a6S1 == true){
if ((((((((((GSEngine.shortCut1 == "ShadowShip")) || ((GSEngine.shortCut2 == "ShadowShip")))) || ((GSEngine.shortCut3 == "ShadowShip")))) || ((GSEngine.shortCut4 == "ShadowShip")))) || ((GSEngine.shortCut5 == "ShadowShip")))){
pAvailableSC.avSkill1.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill1.slotNumEq.visible = false;
pAvailableSC.avSkill1.iSkill.alpha = 0.3;
};
if (GSEngine.a6S2 == true){
if ((((((((((GSEngine.shortCut1 == "Gravitation")) || ((GSEngine.shortCut2 == "Gravitation")))) || ((GSEngine.shortCut3 == "Gravitation")))) || ((GSEngine.shortCut4 == "Gravitation")))) || ((GSEngine.shortCut5 == "Gravitation")))){
pAvailableSC.avSkill2.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill2.slotNumEq.visible = false;
pAvailableSC.avSkill2.iSkill.alpha = 0.3;
};
if (GSEngine.a6S3 == true){
if ((((((((((GSEngine.shortCut1 == "OrbitalShield")) || ((GSEngine.shortCut2 == "OrbitalShield")))) || ((GSEngine.shortCut3 == "OrbitalShield")))) || ((GSEngine.shortCut4 == "OrbitalShield")))) || ((GSEngine.shortCut5 == "OrbitalShield")))){
pAvailableSC.avSkill3.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill3.slotNumEq.visible = false;
pAvailableSC.avSkill3.iSkill.alpha = 0.3;
};
if (GSEngine.a6S4 == true){
if ((((((((((GSEngine.shortCut1 == "BlackHole")) || ((GSEngine.shortCut2 == "BlackHole")))) || ((GSEngine.shortCut3 == "BlackHole")))) || ((GSEngine.shortCut4 == "BlackHole")))) || ((GSEngine.shortCut5 == "BlackHole")))){
pAvailableSC.avSkill4.slotNumEq.visible = true;
};
} else {
pAvailableSC.avSkill4.slotNumEq.visible = false;
pAvailableSC.avSkill4.iSkill.alpha = 0.3;
};
};
};
};
};
};
};
if ((((((((((GSEngine.shortCut1 == "redEnergy")) || ((GSEngine.shortCut2 == "redEnergy")))) || ((GSEngine.shortCut3 == "redEnergy")))) || ((GSEngine.shortCut4 == "redEnergy")))) || ((GSEngine.shortCut5 == "redEnergy")))){
pAvailableSC.avIt1.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt1.shortCutNumber.visible = false;
};
if ((((((((((GSEngine.shortCut1 == "blueEnergy")) || ((GSEngine.shortCut2 == "blueEnergy")))) || ((GSEngine.shortCut3 == "blueEnergy")))) || ((GSEngine.shortCut4 == "blueEnergy")))) || ((GSEngine.shortCut5 == "blueEnergy")))){
pAvailableSC.avIt2.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt2.shortCutNumber.visible = false;
};
if ((((((((((GSEngine.shortCut1 == "yellowEnergy")) || ((GSEngine.shortCut2 == "yellowEnergy")))) || ((GSEngine.shortCut3 == "yellowEnergy")))) || ((GSEngine.shortCut4 == "yellowEnergy")))) || ((GSEngine.shortCut5 == "yellowEnergy")))){
pAvailableSC.avIt3.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt3.shortCutNumber.visible = false;
};
if ((((((((((GSEngine.shortCut1 == "dragonScale")) || ((GSEngine.shortCut2 == "dragonScale")))) || ((GSEngine.shortCut3 == "dragonScale")))) || ((GSEngine.shortCut4 == "dragonScale")))) || ((GSEngine.shortCut5 == "dragonScale")))){
pAvailableSC.avIt4.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt4.shortCutNumber.visible = false;
};
if ((((((((((GSEngine.shortCut1 == "antimater")) || ((GSEngine.shortCut2 == "antimater")))) || ((GSEngine.shortCut3 == "antimater")))) || ((GSEngine.shortCut4 == "antimater")))) || ((GSEngine.shortCut5 == "antimater")))){
pAvailableSC.avIt5.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt5.shortCutNumber.visible = false;
};
if ((((((((((GSEngine.shortCut1 == "atomDecompiler")) || ((GSEngine.shortCut2 == "atomDecompiler")))) || ((GSEngine.shortCut3 == "atomDecompiler")))) || ((GSEngine.shortCut4 == "atomDecompiler")))) || ((GSEngine.shortCut5 == "atomDecompiler")))){
pAvailableSC.avIt6.shortCutNumber.visible = true;
} else {
pAvailableSC.avIt6.shortCutNumber.visible = false;
};
}
function frame1(){
stop();
}
}
}//package
Section 194
//panelTetapNext (panelTetapNext)
package {
import flash.display.*;
public dynamic class panelTetapNext extends MovieClip {
public function panelTetapNext(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 195
//pauseMenu (pauseMenu)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class pauseMenu extends MovieClip {
public var agBut:MovieClip;
public var backHangar:MovieClip;
public var configBut:MovieClip;
public var soundSet:MovieClip;
public var exitGame:MovieClip;
public var keyConfig:keyBind;
public var resumeGame:MovieClip;
public var qtyBut:qlty;
private var _root:MovieClip;
var udahGanti:Boolean;// = true
public function pauseMenu(){
addFrameScript(0, frame1);
_root = MovieClip(root);
keyConfig.visible = false;
if (GSEngine.qualities == "LOW"){
qtyBut.lo.visible = true;
qtyBut.me.visible = false;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "MEDIUM"){
qtyBut.lo.visible = false;
qtyBut.me.visible = true;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "HIGH"){
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = true;
};
if (GSEngine.sound == false){
soundSet.sOff.visible = true;
};
if (GSEngine.sound == true){
soundSet.sOff.visible = false;
};
keyConfig.closeB.addEventListener(MouseEvent.CLICK, onClick);
keyConfig.closeB.addEventListener(MouseEvent.MOUSE_OVER, onOver);
keyConfig.closeB.addEventListener(MouseEvent.MOUSE_OUT, onOut);
configBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
configBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
configBut.addEventListener(MouseEvent.CLICK, onClick);
agBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
agBut.addEventListener(MouseEvent.CLICK, onClick);
qtyBut.addEventListener(MouseEvent.MOUSE_OVER, onOver);
qtyBut.addEventListener(MouseEvent.CLICK, onClick);
qtyBut.addEventListener(MouseEvent.MOUSE_OUT, onOut);
resumeGame.addEventListener(MouseEvent.MOUSE_OVER, onOver);
resumeGame.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
resumeGame.addEventListener(MouseEvent.MOUSE_OUT, onOut);
backHangar.addEventListener(MouseEvent.MOUSE_OVER, onOver);
backHangar.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
backHangar.addEventListener(MouseEvent.MOUSE_OUT, onOut);
exitGame.addEventListener(MouseEvent.MOUSE_OVER, onOver);
exitGame.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
exitGame.addEventListener(MouseEvent.MOUSE_OUT, onOut);
soundSet.addEventListener(MouseEvent.MOUSE_OVER, onOver);
soundSet.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
soundSet.addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(Event.ENTER_FRAME, eFrame);
soundSet.stop();
configBut.stop();
}
function onOver(_arg1:MouseEvent):void{
if (((((!((_arg1.target == soundSet))) && (!((_arg1.target == qtyBut))))) && (!((_arg1.target == configBut))))){
_arg1.target.gotoAndStop(2);
};
if (_arg1.target == qtyBut){
qtyBut.play();
};
if (_arg1.target == soundSet){
soundSet.play();
};
if (_arg1.target == configBut){
configBut.play();
};
}
function onClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (_arg1.target == keyConfig.closeB){
keyConfig.visible = false;
};
if (_arg1.target == configBut){
keyConfig.visible = true;
};
if (_arg1.target == agBut){
_local2 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2, "_blank");
};
if (_arg1.target == qtyBut){
udahGanti = false;
if ((((GSEngine.qualities == "LOW")) && ((udahGanti == false)))){
stage.quality = "MEDIUM";
GSEngine.qualities = "MEDIUM";
trace(stage.quality);
qtyBut.lo.visible = false;
qtyBut.me.visible = true;
qtyBut.hi.visible = false;
udahGanti = true;
};
if ((((GSEngine.qualities == "MEDIUM")) && ((udahGanti == false)))){
stage.quality = "HIGH";
GSEngine.qualities = "HIGH";
trace(stage.quality);
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = true;
udahGanti = true;
};
if ((((GSEngine.qualities == "HIGH")) && ((udahGanti == false)))){
stage.quality = "LOW";
GSEngine.qualities = "LOW";
trace(stage.quality);
qtyBut.lo.visible = true;
qtyBut.me.visible = false;
qtyBut.hi.visible = false;
udahGanti = true;
};
};
}
function onDown(_arg1:MouseEvent):void{
if (((((!((_arg1.target == qtyBut))) && (!((_arg1.target == soundSet))))) && (!((_arg1.target == configBut))))){
_arg1.target.gotoAndStop(3);
};
if (_arg1.target == soundSet){
if (GSEngine.sound == true){
GSEngine.sound = false;
GSEngine.myTransform.volume = 0;
soundSet.sOff.visible = true;
} else {
if (GSEngine.sound == false){
GSEngine.sound = true;
soundSet.sOff.visible = false;
GSEngine.myTransform.volume = 1;
};
};
};
if (_arg1.target == resumeGame){
GSEngine.isPaused = false;
removeThis();
};
if (_arg1.target == backHangar){
GSEngine.skillCD = 0;
GSEngine.skillCD = 0;
GSEngine.a1S1CD = 0;
GSEngine.a1S2CD = 0;
GSEngine.a1S3CD = 0;
GSEngine.a2S1CD = 0;
GSEngine.a2S2CD = 0;
GSEngine.a2S3CD = 0;
GSEngine.a3S1CD = 0;
GSEngine.a3S2CD = 0;
GSEngine.a3S3CD = 0;
GSEngine.a4S1CD = 0;
GSEngine.a4S2CD = 0;
GSEngine.a4S3CD = 0;
GSEngine.a4S4CD = 0;
GSEngine.a5S1CD = 0;
GSEngine.a5S2CD = 0;
GSEngine.a5S3CD = 0;
GSEngine.a5S4CD = 0;
GSEngine.a6S1CD = 0;
GSEngine.a6S2CD = 0;
GSEngine.a6S3CD = 0;
GSEngine.a6S4CD = 0;
GSEngine.njurus = false;
GSEngine.ePodSaved = 0;
if (GSEngine.stage1 == true){
minus();
removeThis();
GSEngine.isPaused = false;
GSEngine.phases = "lanjut";
GSEngine.myChannel.stop();
} else {
GSEngine.isPaused = false;
this.parent.removeChild(this);
};
};
if (_arg1.target == exitGame){
GSEngine.skillCD = 0;
GSEngine.a1S1CD = 0;
GSEngine.a1S2CD = 0;
GSEngine.a1S3CD = 0;
GSEngine.a2S1CD = 0;
GSEngine.a2S2CD = 0;
GSEngine.a2S3CD = 0;
GSEngine.a3S1CD = 0;
GSEngine.a3S2CD = 0;
GSEngine.a3S3CD = 0;
GSEngine.a4S1CD = 0;
GSEngine.a4S2CD = 0;
GSEngine.a4S3CD = 0;
GSEngine.a4S4CD = 0;
GSEngine.a5S1CD = 0;
GSEngine.a5S2CD = 0;
GSEngine.a5S3CD = 0;
GSEngine.a5S4CD = 0;
GSEngine.a6S1CD = 0;
GSEngine.a6S2CD = 0;
GSEngine.a6S3CD = 0;
GSEngine.a6S4CD = 0;
GSEngine.njurus = false;
trace(GSEngine.njurus);
GSEngine.ePodSaved = 0;
GSEngine.exits = true;
if (GSEngine.stage1 == true){
minus();
removeThis();
GSEngine.phases = "Main";
GSEngine.isPaused = false;
GSEngine.myChannel.stop();
};
};
}
function eFrame(_arg1:Event):void{
if (((!((stage == null))) && (!((this == null))))){
stage.addChild(this);
};
if (GSEngine.sound == true){
soundSet.sOff.visible = false;
} else {
if (GSEngine.sound == false){
soundSet.sOff.visible = true;
};
};
if (GSEngine.qualities == "LOW"){
qtyBut.lo.visible = true;
qtyBut.me.visible = false;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "MEDIUM"){
qtyBut.lo.visible = false;
qtyBut.me.visible = true;
qtyBut.hi.visible = false;
};
if (GSEngine.qualities == "HIGH"){
qtyBut.lo.visible = false;
qtyBut.me.visible = false;
qtyBut.hi.visible = true;
};
}
function onOut(_arg1:MouseEvent):void{
if (_arg1.target != qtyBut){
_arg1.target.gotoAndStop(1);
};
if (_arg1.target == qtyBut){
qtyBut.gotoAndStop(1);
};
}
public function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
keyConfig.closeB.removeEventListener(MouseEvent.CLICK, onClick);
keyConfig.closeB.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
keyConfig.closeB.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
configBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
configBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
configBut.removeEventListener(MouseEvent.CLICK, onClick);
agBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
agBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
agBut.removeEventListener(MouseEvent.CLICK, onClick);
qtyBut.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
qtyBut.removeEventListener(MouseEvent.CLICK, onClick);
qtyBut.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
resumeGame.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
resumeGame.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
resumeGame.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
backHangar.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
backHangar.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
backHangar.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
exitGame.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
exitGame.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
exitGame.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
soundSet.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
soundSet.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
soundSet.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
function frame1(){
stop();
}
public static function minus(){
var _local1:*;
for (_local1 in GSEngine.jenisLootArray) {
if (GSEngine.jenisLootArray[_local1] == "Ore"){
GSEngine.ore = (GSEngine.ore - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Scrap Metal"){
GSEngine.scrapMetal = (GSEngine.scrapMetal - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Star Dust"){
GSEngine.starDust = (GSEngine.starDust - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Crystal"){
GSEngine.crystal = (GSEngine.crystal - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Meteor Piece"){
GSEngine.meteorPiece = (GSEngine.meteorPiece - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Flying Stone"){
GSEngine.flyingStone = (GSEngine.flyingStone - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Remethin"){
GSEngine.remethin = (GSEngine.remethin - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Fiber Connection"){
GSEngine.fiberConnection = (GSEngine.fiberConnection - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Ionized Fluid"){
GSEngine.ionizedFluid = (GSEngine.ionizedFluid - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Mana Stone"){
GSEngine.manaStone = (GSEngine.manaStone - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Battery"){
GSEngine.battery = (GSEngine.battery - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Lumina Fruit"){
GSEngine.luminaFruit = (GSEngine.luminaFruit - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Azuria Carbon"){
GSEngine.azuriaCarbon = (GSEngine.azuriaCarbon - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Black Crumb"){
GSEngine.blackCrumb = (GSEngine.blackCrumb - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Spark Fuse"){
GSEngine.sparkFuse = (GSEngine.sparkFuse - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Light Web"){
GSEngine.lightWeb = (GSEngine.lightWeb - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Guardian Star Medal"){
GSEngine.guardianStarMedal = (GSEngine.guardianStarMedal - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Royal Ring"){
GSEngine.royalRing = (GSEngine.royalRing - GSEngine.jumlahLootArray[_local1]);
};
if (GSEngine.jenisLootArray[_local1] == "Hearth of Khaleonia"){
GSEngine.hearthOfKhaleonia = (GSEngine.hearthOfKhaleonia - GSEngine.jumlahLootArray[_local1]);
};
};
GSEngine.jumlahLootArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
GSEngine.jenisLootArray = ["none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"];
}
}
}//package
Section 196
//pBulletSplash (pBulletSplash)
package {
import flash.display.*;
public dynamic class pBulletSplash extends MovieClip {
public var s1:MovieClip;
}
}//package
Section 197
//PecahanBullet (PecahanBullet)
package {
import flash.display.*;
import flash.events.*;
public class PecahanBullet extends MovieClip {
private var _root:MovieClip;
var xSpeed:int;
var ySpeed:int;
var maxSpeed:int;
public function PecahanBullet(){
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
}
private function beginClass(_arg1:Event):void{
maxSpeed = 7;
_root = MovieClip(root);
behaviour();
}
public function eFrame(_arg1:Event):void{
this.x = (this.x - xSpeed);
this.y = (this.y - ySpeed);
if (this.hitTestObject(GSEngine.player.playerPeri)){
removeThis();
};
if (GSEngine.assaultMode == true){
if (GSEngine.armor1 != null){
if (((this.hitTestObject(GSEngine.armor1)) && ((GSEngine.armor1HP > 0)))){
GSEngine.armor1HP--;
removeThis();
};
};
if (GSEngine.armor2 != null){
if (((this.hitTestObject(GSEngine.armor2)) && ((GSEngine.armor2HP > 0)))){
GSEngine.armor2HP--;
removeThis();
};
};
if (GSEngine.armor3 != null){
if (((this.hitTestObject(GSEngine.armor3)) && ((GSEngine.armor3HP > 0)))){
GSEngine.armor3HP--;
removeThis();
};
};
if (GSEngine.armor4 != null){
if (((this.hitTestObject(GSEngine.armor4)) && ((GSEngine.armor4HP > 0)))){
GSEngine.armor4HP--;
removeThis();
};
};
if (GSEngine.armor5 != null){
if (((this.hitTestObject(GSEngine.armor5)) && ((GSEngine.armor5HP > 0)))){
GSEngine.armor5HP--;
removeThis();
};
};
if (GSEngine.armor6 != null){
if (((this.hitTestObject(GSEngine.armor6)) && ((GSEngine.armor6HP > 0)))){
GSEngine.armor6HP--;
removeThis();
};
};
if (GSEngine.armor7 != null){
if (((this.hitTestObject(GSEngine.armor7)) && ((GSEngine.armor7HP > 0)))){
GSEngine.armor7HP--;
removeThis();
};
};
};
}
private function behaviour(){
maxSpeed = 7;
var _local1:Number = (GSEngine.posY - (this.y - ((Math.random() * 150) - 300)));
var _local2:Number = (GSEngine.posX - this.x);
var _local3:Number = Math.atan2(_local1, _local2);
ySpeed = (Math.sin(_local3) * maxSpeed);
xSpeed = (Math.cos(_local3) * maxSpeed);
this.rotation = ((_local3 / Math.PI) * 180);
}
function removeThis(){
var _local1:MovieClip = new Effect();
_local1.x = (this.x + (Math.random() * 20));
_local1.y = (this.y + (Math.random() * 20));
stage.addChild(_local1);
_local1.type = 2;
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED, beginClass);
}
}
}//package
Section 198
//pencetKaKi (pencetKaKi)
package {
import flash.display.*;
public dynamic class pencetKaKi extends MovieClip {
public function pencetKaKi(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 199
//PlayAgain (PlayAgain)
package {
import flash.display.*;
public dynamic class PlayAgain extends MovieClip {
}
}//package
Section 200
//Player (Player)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Player extends MovieClip {
public var prot:efProtect;
public var black:blackHole;
public var defl:deflect;
public var bRay:blueRay;
public var nova:superNovaEffect;
public var base:MovieClip;
public var burN:burningRad;
public var playerPeri:MovieClip;
public var blackPeri:MovieClip;
public var shield:aShield;
public var isDown:Boolean;
var shootDelay:Number;// = 0
var sWShootDelay:int;// = 0
var sHsound:Sound;
var myChannel:SoundChannel;
var myTransform:SoundTransform;
var fiRate:int;
var eqWeapon:int;
var armor1:MovieClip;
var armor2:MovieClip;
var armor3:MovieClip;
var armor4:MovieClip;
var armor5:MovieClip;
var armor6:MovieClip;
var armor7:MovieClip;
var lTimer:int;// = 0
public function Player(){
sHsound = new ShootSound();
myChannel = new SoundChannel();
myTransform = new SoundTransform();
super();
myTransform.volume = 1;
myChannel.soundTransform = myTransform;
playerPeri.visible = false;
blackPeri.visible = false;
checkFireRate();
addShield();
this.addEventListener(Event.ENTER_FRAME, eFrame);
}
function checkFireRate(){
if (GSEngine.weaponType == 1){
fiRate = (15 - (GSEngine.weapon1fireRate * 2));
} else {
if (GSEngine.weaponType == 2){
fiRate = (15 - (GSEngine.weapon2fireRate * 2));
} else {
if (GSEngine.weaponType == 3){
fiRate = (15 - (GSEngine.weapon3fireRate * 2));
} else {
if (GSEngine.weaponType == 4){
fiRate = (15 - (GSEngine.weapon4fireRate * 2));
} else {
if (GSEngine.weaponType == 5){
fiRate = (15 - (GSEngine.weapon5fireRate * 2));
} else {
if (GSEngine.weaponType == 6){
fiRate = (15 - (GSEngine.weapon6fireRate * 2));
};
};
};
};
};
};
}
private function eFrame(_arg1:Event):void{
var _local2:MovieClip;
if ((((GSEngine.armor1HP <= 0)) && (!((armor1 == null))))){
armor1.removeA1();
};
if ((((GSEngine.armor2HP <= 0)) && (!((armor2 == null))))){
armor2.removeA2();
};
if ((((GSEngine.armor3HP <= 0)) && (!((armor3 == null))))){
armor3.removeA3();
};
if ((((GSEngine.armor4HP <= 0)) && (!((armor4 == null))))){
armor4.removeA4();
};
if ((((GSEngine.armor5HP <= 0)) && (!((armor5 == null))))){
armor5.removeA5();
};
if ((((GSEngine.armor6HP <= 0)) && (!((armor6 == null))))){
armor6.removeA6();
};
if ((((GSEngine.armor7HP <= 0)) && (!((armor7 == null))))){
armor7.removeA7();
};
if (GSEngine.sound == false){
myTransform.volume = 0;
};
if (GSEngine.sound == true){
myTransform.volume = 1;
};
if (GSEngine.isPaused == false){
if ((((((isDown == true)) && ((GSEngine.stageComplete == false)))) && ((GSEngine.autoShoot == false)))){
shootDelay++;
sWShootDelay++;
if (((!((stage == null))) && ((GSEngine.healthPoint > 0)))){
shoot();
};
};
if ((((GSEngine.autoShoot == true)) && ((GSEngine.stageComplete == false)))){
shootDelay++;
sWShootDelay++;
if (shootDelay > (GSEngine.fireRate + GSEngine.plusRate)){
if (((!((stage == null))) && ((GSEngine.healthPoint > 0)))){
shoot();
};
};
};
if ((((GSEngine.assaultMode == true)) && ((GSEngine.shieldAttached == true)))){
if (((!((GSEngine.armor1HP == 0))) && (!((armor1 == null))))){
armor1.removeA1();
};
if (((!((GSEngine.armor2HP == 0))) && (!((armor2 == null))))){
armor2.removeA2();
};
if (((!((GSEngine.armor3HP == 0))) && (!((armor3 == null))))){
armor3.removeA3();
};
if (((!((GSEngine.armor4HP == 0))) && (!((armor4 == null))))){
armor4.removeA4();
};
if (((!((GSEngine.armor5HP == 0))) && (!((armor5 == null))))){
armor5.removeA5();
};
if (((!((GSEngine.armor6HP == 0))) && (!((armor6 == null))))){
armor6.removeA6();
};
if (((!((GSEngine.armor7HP == 0))) && (!((armor7 == null))))){
armor7.removeA7();
};
GSEngine.shieldAttached = false;
};
if ((((((GSEngine.assaultMode == false)) && ((GSEngine.shieldAttached == false)))) && ((GSEngine.attachShield == false)))){
addShield();
GSEngine.shieldAttached = true;
};
if ((((((GSEngine.healthPoint < 0)) && ((GSEngine.stageComplete == false)))) && (!((stage == null))))){
lTimer++;
if (lTimer > 18){
_local2 = new Effect();
_local2.x = this.x;
_local2.y = this.y;
stage.addChild(_local2);
_local2.type = 12;
lTimer = 0;
};
};
};
}
public function shoot(){
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:int;
var _local9:MovieClip;
var _local10:int;
var _local11:MovieClip;
var _local12:MovieClip;
var _local13:Sound;
var _local14:MovieClip;
var _local15:Sound;
var _local16:MovieClip;
var _local17:Sound;
var _local18:MovieClip;
var _local19:Sound;
var _local20:MovieClip;
var _local21:MovieClip;
var _local22:MovieClip;
var _local23:Number;
var _local24:MovieClip;
var _local25:MovieClip;
var _local26:MovieClip;
var _local27:MovieClip;
if (GSEngine.weaponType == 1){
if (shootDelay > (fiRate + GSEngine.plusRate)){
if ((((((GSEngine.weapon1Level == 0)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local7 = new Effect();
_local7.x = (this.x + 50);
_local7.y = (this.y + 5);
stage.addChild(_local7);
_local7.type = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 1)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local7 = new Effect();
_local7.x = (this.x + 50);
_local7.y = (this.y + 5);
stage.addChild(_local7);
_local7.type = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local7 = new Effect();
_local7.x = (this.x + 50);
_local7.y = (this.y + 5);
stage.addChild(_local7);
_local7.type = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 3;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 10);
stage.addChild(_local3);
_local3.tipeBullet = 2;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 3;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 10);
stage.addChild(_local3);
_local3.tipeBullet = 2;
if ((Math.random() * 100) < 10){
_local8 = 0;
while (_local8 < 1) {
_local9 = new PlayerBullet();
_local9.x = this.x;
_local9.y = this.y;
stage.addChild(_local9);
_local9.tipeBullet = 19;
_local8++;
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon1Level == 6)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 1;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 3;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 10);
stage.addChild(_local3);
_local3.tipeBullet = 2;
if ((Math.random() * 100) < 30){
_local10 = 0;
while (_local10 < 2) {
_local11 = new PlayerBullet();
_local11.x = this.x;
_local11.y = this.y;
stage.addChild(_local11);
_local11.tipeBullet = 19;
_local10++;
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
if (GSEngine.weaponType == 2){
if (shootDelay > (fiRate + GSEngine.plusRate)){
if ((((((GSEngine.weapon2Level == 0)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 1)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = this.y;
stage.addChild(_local2);
_local2.tipeBullet = 6;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = this.y;
stage.addChild(_local2);
_local2.tipeBullet = 6;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = this.y;
stage.addChild(_local2);
_local2.tipeBullet = 6;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = this.y;
stage.addChild(_local2);
_local2.tipeBullet = 6;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon2Level == 6)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 5;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = this.y;
stage.addChild(_local2);
_local2.tipeBullet = 6;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 4;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
if (GSEngine.weaponType == 3){
if (shootDelay > (fiRate + GSEngine.plusRate)){
if ((((((GSEngine.weapon3Level == 0)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 1)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 25);
stage.addChild(_local3);
_local3.tipeBullet = 9;
if ((Math.random() * 100) < 10){
_local12 = new PlayerBullet();
_local12.x = this.x;
_local12.y = this.y;
stage.addChild(_local12);
_local12.tipeBullet = 23;
if (GSEngine.sound == true){
_local13 = new lasKecil();
_local13.play();
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 25);
stage.addChild(_local3);
_local3.tipeBullet = 9;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 25);
stage.addChild(_local4);
_local4.tipeBullet = 6;
if ((Math.random() * 100) < 20){
_local14 = new PlayerBullet();
_local14.x = this.x;
_local14.y = this.y;
stage.addChild(_local14);
_local14.tipeBullet = 23;
if (GSEngine.sound == true){
_local15 = new lasKecil();
_local15.play();
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 25);
stage.addChild(_local3);
_local3.tipeBullet = 9;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 25);
stage.addChild(_local4);
_local4.tipeBullet = 6;
if ((Math.random() * 100) < 20){
_local16 = new PlayerBullet();
_local16.x = this.x;
_local16.y = this.y;
stage.addChild(_local16);
_local16.tipeBullet = 23;
if (GSEngine.sound == true){
_local17 = new lasKecil();
_local17.play();
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon3Level == 6)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 5);
stage.addChild(_local1);
_local1.tipeBullet = 9;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 20);
stage.addChild(_local2);
_local2.tipeBullet = 1;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 25);
stage.addChild(_local3);
_local3.tipeBullet = 9;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 25);
stage.addChild(_local4);
_local4.tipeBullet = 6;
if ((Math.random() * 100) < 40){
_local18 = new PlayerBullet();
_local18.x = this.x;
_local18.y = this.y;
stage.addChild(_local18);
_local18.tipeBullet = 23;
if (GSEngine.sound == true){
_local19 = new lasKecil();
_local19.play();
};
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
if ((((((GSEngine.weaponType == 4)) && (!((stage == null))))) && (!((this == null))))){
if (shootDelay > (fiRate + GSEngine.plusRate)){
if (GSEngine.weapon4Level == 1){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon4Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 5);
stage.addChild(_local3);
_local3.tipeBullet = 14;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon4Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 5);
stage.addChild(_local3);
_local3.tipeBullet = 14;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 15);
stage.addChild(_local4);
_local4.tipeBullet = 14;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon4Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 5);
stage.addChild(_local3);
_local3.tipeBullet = 14;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 15);
stage.addChild(_local4);
_local4.tipeBullet = 14;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y - 15);
stage.addChild(_local5);
_local5.tipeBullet = 6;
if ((Math.random() * 100) < 10){
_local20 = new PlayerBullet();
_local20.x = this.x;
_local20.y = this.y;
stage.addChild(_local20);
_local20.tipeBullet = 24;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon4Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 5);
stage.addChild(_local3);
_local3.tipeBullet = 14;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 15);
stage.addChild(_local4);
_local4.tipeBullet = 14;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y - 15);
stage.addChild(_local5);
_local5.tipeBullet = 6;
if ((Math.random() * 100) < 20){
_local21 = new PlayerBullet();
_local21.x = this.x;
_local21.y = this.y;
stage.addChild(_local21);
_local21.tipeBullet = 24;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon4Level == 6)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 15);
stage.addChild(_local1);
_local1.tipeBullet = 14;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 5);
stage.addChild(_local2);
_local2.tipeBullet = 14;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y - 5);
stage.addChild(_local3);
_local3.tipeBullet = 14;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 15);
stage.addChild(_local4);
_local4.tipeBullet = 14;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y - 15);
stage.addChild(_local5);
_local5.tipeBullet = 6;
if ((Math.random() * 100) < 40){
_local22 = new PlayerBullet();
_local22.x = this.x;
_local22.y = this.y;
stage.addChild(_local22);
_local22.tipeBullet = 24;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
if (GSEngine.weaponType == 5){
if (shootDelay > (fiRate + GSEngine.plusRate)){
_local23 = Math.random();
if ((((((GSEngine.weapon5Level == 1)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y + 5);
stage.addChild(_local1);
_local1.tipeBullet = 16;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon5Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 10);
stage.addChild(_local1);
_local1.tipeBullet = 16;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 13);
stage.addChild(_local2);
_local2.tipeBullet = 16;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon5Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 16;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 13);
stage.addChild(_local2);
_local2.tipeBullet = 16;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = this.y;
stage.addChild(_local3);
_local3.tipeBullet = 16;
if ((Math.random() * 100) < 20){
_local24 = new PlayerBullet();
_local24.x = this.x;
_local24.y = this.y;
stage.addChild(_local24);
_local24.scaleX = (_local23 + 0.5);
_local24.scaleY = (_local23 + 0.5);
_local24.tipeBullet = 25;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon5Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 16;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 13);
stage.addChild(_local2);
_local2.tipeBullet = 16;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = this.y;
stage.addChild(_local3);
_local3.tipeBullet = 16;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 13);
stage.addChild(_local4);
_local4.tipeBullet = 6;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y + 13);
stage.addChild(_local5);
_local5.tipeBullet = 8;
if ((Math.random() * 100) < 20){
_local25 = new PlayerBullet();
_local25.x = this.x;
_local25.y = this.y;
stage.addChild(_local25);
_local25.scaleX = (_local23 + 0.5);
_local25.scaleY = (_local23 + 0.5);
_local25.tipeBullet = 25;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon5Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 16;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 13);
stage.addChild(_local2);
_local2.tipeBullet = 16;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = this.y;
stage.addChild(_local3);
_local3.tipeBullet = 16;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 13);
stage.addChild(_local4);
_local4.tipeBullet = 6;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y + 13);
stage.addChild(_local5);
_local5.tipeBullet = 8;
if ((Math.random() * 100) < 30){
_local26 = new PlayerBullet();
_local26.x = this.x;
_local26.y = this.y;
stage.addChild(_local26);
_local26.scaleX = (_local23 + 0.5);
_local26.scaleY = (_local23 + 0.5);
_local26.tipeBullet = 25;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon5Level == 6)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 16;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 13);
stage.addChild(_local2);
_local2.tipeBullet = 16;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = this.y;
stage.addChild(_local3);
_local3.tipeBullet = 16;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 13);
stage.addChild(_local4);
_local4.tipeBullet = 6;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y + 13);
stage.addChild(_local5);
_local5.tipeBullet = 8;
if ((Math.random() * 100) < 40){
_local27 = new PlayerBullet();
_local27.x = this.x;
_local27.y = this.y;
_local27.scaleX = (_local23 + 0.5);
_local27.scaleY = (_local23 + 0.5);
stage.addChild(_local27);
_local27.tipeBullet = 25;
};
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
if (GSEngine.weaponType == 6){
if (shootDelay > (fiRate + GSEngine.plusRate)){
if ((((((GSEngine.weapon6Level == 1)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 18;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon6Level == 2)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 18;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 10);
stage.addChild(_local2);
_local2.tipeBullet = 18;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon6Level == 3)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 18;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 10);
stage.addChild(_local2);
_local2.tipeBullet = 18;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 16;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon6Level == 4)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 18;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 10);
stage.addChild(_local2);
_local2.tipeBullet = 18;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 16;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 20);
stage.addChild(_local4);
_local4.tipeBullet = 16;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y - 20);
stage.addChild(_local5);
_local5.tipeBullet = 6;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
if ((((((GSEngine.weapon6Level == 5)) && (!((stage == null))))) && (!((this == null))))){
_local1 = new PlayerBullet();
_local1.x = (this.x + 55);
_local1.y = (this.y - 13);
stage.addChild(_local1);
_local1.tipeBullet = 18;
_local2 = new PlayerBullet();
_local2.x = (this.x + 55);
_local2.y = (this.y + 10);
stage.addChild(_local2);
_local2.tipeBullet = 18;
_local3 = new PlayerBullet();
_local3.x = (this.x + 55);
_local3.y = (this.y + 20);
stage.addChild(_local3);
_local3.tipeBullet = 16;
_local4 = new PlayerBullet();
_local4.x = (this.x + 55);
_local4.y = (this.y - 20);
stage.addChild(_local4);
_local4.tipeBullet = 16;
_local5 = new PlayerBullet();
_local5.x = (this.x + 55);
_local5.y = (this.y - 20);
stage.addChild(_local5);
_local5.tipeBullet = 6;
if (GSEngine.sound == true){
myChannel = sHsound.play();
};
shootDelay = 0;
};
};
};
}
public function shootSubWeapon(){
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:MovieClip;
if (menuEquip.currSubWeaponDisplay == 1){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon1Level == 1){
_local1 = new sWBullet(3);
_local1.x = (this.x + 55);
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
if (GSEngine.subWeapon1Level == 2){
_local1 = new sWBullet(31);
_local1.x = (this.x + 55);
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
if (menuEquip.currSubWeaponDisplay == 2){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon2Level == 1){
_local1 = new sWBullet(5);
_local1.x = (this.x + 55);
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
if (menuEquip.currSubWeaponDisplay == 3){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon3Level == 1){
_local1 = new sWBullet(7);
_local1.x = (this.x + 55);
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
if (menuEquip.currSubWeaponDisplay == 4){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon4Level == 1){
_local1 = new sWBullet(8);
_local1.x = (this.x + 55);
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
if (menuEquip.currSubWeaponDisplay == 5){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon5Level == 1){
_local1 = new sWBullet(9);
_local1.x = this.x;
_local1.y = this.y;
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
if (menuEquip.currSubWeaponDisplay == 6){
if (sWShootDelay > GSEngine.sWFireRate){
if (GSEngine.subWeapon6Level == 1){
_local1 = new sWBullet(10);
_local1.x = (this.x + 30);
_local1.y = ((this.y + (Math.random() * 20)) - 10);
stage.addChild(_local1);
sWShootDelay = 0;
};
};
};
}
public function addShield(){
trace(GSEngine.armor1HP, GSEngine.armor2HP, GSEngine.armor3HP, GSEngine.armor4HP, GSEngine.armor5HP);
if ((((GSEngine.armor1HP > 1)) && (!((this == null))))){
armor1 = new Armor1();
armor1.x = -10;
armor1.y = 15;
armor1.scaleX = 0.8;
armor1.scaleY = 0.8;
armor1.gotoAndStop(GSEngine.armorType);
this.addChild(armor1);
};
if ((((GSEngine.armor2HP > 1)) && (!((this == null))))){
armor2 = new Armor2();
this.addChild(armor2);
armor2.x = -25;
armor2.y = 0;
armor2.scaleX = 0.8;
armor2.scaleY = 0.8;
armor2.gotoAndStop(GSEngine.armorType);
};
if ((((GSEngine.armor3HP > 1)) && (!((this == null))))){
armor3 = new Armor3();
this.addChild(armor3);
armor3.x = -4;
armor3.y = -20;
armor3.scaleX = 0.8;
armor3.scaleY = 0.8;
armor3.gotoAndStop(GSEngine.armorType);
};
if ((((GSEngine.armor4HP > 1)) && (!((this == null))))){
armor4 = new Armor4();
this.addChild(armor4);
armor4.x = 12;
armor4.y = 17;
armor4.scaleX = 0.8;
armor4.scaleY = 0.8;
armor4.gotoAndStop(GSEngine.armorType);
};
if ((((GSEngine.armor5HP > 1)) && (!((this == null))))){
armor5 = new Armor5();
this.addChild(armor5);
armor5.x = 12;
armor5.y = -10;
armor5.scaleX = 0.8;
armor5.scaleY = 0.8;
armor5.gotoAndStop(GSEngine.armorType);
};
if ((((GSEngine.armor6HP > 1)) && (!((this == null))))){
armor6 = new Armor6();
this.addChild(armor6);
armor6.x = 27;
armor6.y = 0;
armor6.scaleX = 0.8;
armor6.scaleY = 0.8;
armor6.gotoAndStop(GSEngine.armorType);
};
if ((((GSEngine.armor7HP > 1)) && (!((this == null))))){
armor7 = new Armor7();
this.addChild(armor7);
armor7.x = 45;
armor7.y = 3;
armor7.scaleX = 0.8;
armor7.scaleY = 0.8;
armor7.gotoAndStop(GSEngine.armorType);
};
}
public function destroyPlayer(){
if (((!((this == null))) && (!((stage == null))))){
stage.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
};
if (((!((GSEngine.armor1HP == 0))) && (!((armor1 == null))))){
armor1.removeA1();
};
if (((!((GSEngine.armor2HP == 0))) && (!((armor2 == null))))){
armor2.removeA2();
};
if (((!((GSEngine.armor3HP == 0))) && (!((armor3 == null))))){
armor3.removeA3();
};
if (((!((GSEngine.armor4HP == 0))) && (!((armor4 == null))))){
armor4.removeA4();
};
if (((!((GSEngine.armor5HP == 0))) && (!((armor5 == null))))){
armor5.removeA5();
};
if (((!((GSEngine.armor6HP == 0))) && (!((armor6 == null))))){
armor6.removeA6();
};
if (((!((GSEngine.armor7HP == 0))) && (!((armor7 == null))))){
armor7.removeA7();
};
}
}
}//package
Section 201
//PlayerBullet (PlayerBullet)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class PlayerBullet extends MovieClip {
public var b17:MovieClip;
public var b18:MovieClip;
public var b19:MovieClip;
public var b1:MovieClip;
public var b2:MovieClip;
public var peri:MovieClip;
public var bSpcL:cometTail;
public var b3:MovieClip;
public var b4:MovieClip;
public var b10:MovieClip;
public var b5:MovieClip;
public var b20:MovieClip;
public var b11:MovieClip;
public var b6:MovieClip;
public var b21:MovieClip;
public var b12:MovieClip;
public var b7:MovieClip;
public var b22:MovieClip;
public var b13:MovieClip;
public var b8:MovieClip;
public var b23:MovieClip;
public var b14:MovieClip;
public var b9:MovieClip;
public var b24:MovieClip;
public var b15:MovieClip;
public var b16:MovieClip;
var globalMulS:Number;// = 1.2
var globalMulD:int;// = 1
private var _root:MovieClip;
private var dx:Number;
private var dy:Number;
private var xSpeed:Number;// = 20
private var ySpeed:Number;// = 0
private var maxSpeed:Number;// = 7
private var crit:int;
private var bulletMendal:Boolean;
private var angle:Number;
private var randomRange:Number;
public var tipeBullet:int;
var wDamage:int;
var sudahHit:Boolean;// = false
private var bounced:Boolean;// = false
public function PlayerBullet(){
randomRange = Math.random();
crit = (Math.random() * 100);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
setSpeed();
b1.visible = false;
b2.visible = false;
b3.visible = false;
b4.visible = false;
b5.visible = false;
b6.visible = false;
b7.visible = false;
b8.visible = false;
b9.visible = false;
b10.visible = false;
b11.visible = false;
b12.visible = false;
b13.visible = false;
b14.visible = false;
b15.visible = false;
b16.visible = false;
b17.visible = false;
b18.visible = false;
b19.visible = false;
b20.visible = false;
b21.visible = false;
b22.visible = false;
b23.visible = false;
b24.visible = false;
peri.visible = false;
bSpcL.visible = false;
}
function beginClass(_arg1:Event):void{
}
private function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:MovieClip;
var _local4:Sound;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:MovieClip;
if ((((GSEngine.phases == "Main")) || ((GSEngine.phases == "Customize")))){
removeThis();
};
setVisible();
if (bounced == false){
setSpeed();
};
if (GSEngine.isPaused == false){
this.x = (this.x + (xSpeed * globalMulS));
this.y = (this.y + (ySpeed * globalMulS));
if (GSEngine.stageComplete == false){
if (tipeBullet == 22){
if (b21.currentFrame == b21.totalFrames){
removeThis();
};
};
if (tipeBullet == 23){
if (b22.currentFrame == b22.totalFrames){
removeThis();
};
};
if (tipeBullet == 24){
if (b23.currentFrame == b23.totalFrames){
removeThis();
};
};
if (((((!((this == null))) && (!((GSEngine.eList == null))))) && ((sudahHit == false)))){
for (_local2 in GSEngine.eList) {
if (GSEngine.eList[_local2] != null){
if (this.peri.hitTestObject(GSEngine.eList[_local2].periM1)){
if (tipeBullet == 24){
GSEngine.eList[_local2].x = (GSEngine.eList[_local2].x + 9);
};
if (tipeBullet == 25){
GSEngine.eList[_local2].x = (GSEngine.eList[_local2].x + 13);
};
if ((((GSEngine.eList[_local2].special == "defense")) && ((bounced == false)))){
this.rotation = (Math.random() * 360);
if (((((!((tipeBullet == 22))) && (!((tipeBullet == 23))))) && (!((tipeBullet == 24))))){
bounced = true;
angle = ((this.rotation / 180) * Math.PI);
ySpeed = ((Math.sin(angle) * maxSpeed) * globalMulS);
xSpeed = ((Math.cos(angle) * maxSpeed) * globalMulS);
};
if ((((((((tipeBullet == 22)) || ((tipeBullet == 23)))) || ((tipeBullet == 24)))) || ((tipeBullet == 25)))){
bounced = false;
this.rotation = 0;
GSEngine.eList[_local2].getHit((wDamage * globalMulD));
};
} else {
if (GSEngine.eList[_local2].special == "none"){
criticalHit();
if (GSEngine.armorType == 2){
if ((Math.random() * 100) < 30){
_local3 = new PlayerBullet();
_local3.x = this.x;
_local3.y = this.y;
_local3.tipeBullet = 22;
stage.addChild(_local3);
if (GSEngine.sound == true){
_local4 = new ledKecil();
_local4.play();
};
};
};
GSEngine.eList[_local2].getHit((wDamage * globalMulD));
if (((((!((tipeBullet == 22))) && (!((tipeBullet == 23))))) && (!((tipeBullet == 24))))){
removeThis();
};
sudahHit = true;
break;
};
};
};
};
};
};
if (((!((this == null))) && (!((GSEngine.ePodArray == null))))){
for (_local5 in GSEngine.ePodArray) {
if (((!((GSEngine.ePodArray[_local5].capturerParam == null))) && (!((GSEngine.ePodArray[_local5].royal == null))))){
if (((((this.peri.hitTestObject(GSEngine.ePodArray[_local5].capturerParam)) && ((GSEngine.ePodArray[_local5].royal.visible == true)))) && ((GSEngine.ePodArray[_local5].captured == true)))){
GSEngine.ePodArray[_local5].capturerHp = (GSEngine.ePodArray[_local5].capturerHp - wDamage);
GSEngine.ePodArray[_local5].tintCapturer();
removeThis();
break;
};
};
};
};
if (this != null){
for (_local6 in GSEngine.bList) {
if (((((!((GSEngine.bList[_local6] == null))) && (!((this == null))))) && ((sudahHit == false)))){
if (GSEngine.bList[_local6].bossCode == 101){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss1.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss1.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss1.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 102){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss2.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss2.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss2.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 103){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss3.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss3.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss3.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 104){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss4.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss4.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss4.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 105){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss5.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss5.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss5.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 106){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss6.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss6.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss6.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 107){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss7.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss7.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss7.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if (GSEngine.bList[_local6].bossCode == 108){
if (((((this.peri.hitTestObject(GSEngine.bList[_local6].boss8.periM1)) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss8.periM2)))) || (this.peri.hitTestObject(GSEngine.bList[_local6].boss8.periM3)))){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
};
} else {
if ((((GSEngine.bList[_local6].bossCode == 109)) && ((GSEngine.stageLevel == 9)))){
if (this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM1)){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM2)) && ((GSEngine.bList[_local6].bit1Hp > 0)))){
GSEngine.bList[_local6].hitBit(1, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit1);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM3)) && ((GSEngine.bList[_local6].bit2Hp > 0)))){
GSEngine.bList[_local6].hitBit(2, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit2);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM4)) && ((GSEngine.bList[_local6].bit3Hp > 0)))){
GSEngine.bList[_local6].hitBit(3, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit3);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM5)) && ((GSEngine.bList[_local6].bit4Hp > 0)))){
GSEngine.bList[_local6].hitBit(4, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit4);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM6)) && ((GSEngine.bList[_local6].bit5Hp > 0)))){
GSEngine.bList[_local6].hitBit(5, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit5);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM7)) && ((GSEngine.bList[_local6].bit6Hp > 0)))){
GSEngine.bList[_local6].hitBit(6, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit6);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM8)) && ((GSEngine.bList[_local6].bit7Hp > 0)))){
GSEngine.bList[_local6].hitBit(7, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit7);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss9.periM9)) && ((GSEngine.bList[_local6].bit8Hp > 0)))){
GSEngine.bList[_local6].hitBit(8, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss9.bossBit8);
removeThis();
sudahHit = true;
break;
};
};
};
};
};
};
};
};
};
} else {
if ((((GSEngine.bList[_local6].bossCode == 110)) && ((GSEngine.stageLevel == 10)))){
if (this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM1)){
criticalHit();
GSEngine.bList[_local6].getHit((wDamage * globalMulD));
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM2)) && ((GSEngine.bList[_local6].bit1Hp > 0)))){
GSEngine.bList[_local6].hitBit(1, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit1);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM3)) && ((GSEngine.bList[_local6].bit2Hp > 0)))){
GSEngine.bList[_local6].hitBit(2, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit2);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM4)) && ((GSEngine.bList[_local6].bit3Hp > 0)))){
GSEngine.bList[_local6].hitBit(3, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit3);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM5)) && ((GSEngine.bList[_local6].bit4Hp > 0)))){
GSEngine.bList[_local6].hitBit(4, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit4);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM6)) && ((GSEngine.bList[_local6].bit5Hp > 0)))){
GSEngine.bList[_local6].hitBit(5, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit5);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM7)) && ((GSEngine.bList[_local6].bit6Hp > 0)))){
GSEngine.bList[_local6].hitBit(6, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit6);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM8)) && ((GSEngine.bList[_local6].bit7Hp > 0)))){
GSEngine.bList[_local6].hitBit(7, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit7);
removeThis();
sudahHit = true;
break;
} else {
if (((this.peri.hitTestObject(GSEngine.bList[_local6].boss10.periM9)) && ((GSEngine.bList[_local6].bit8Hp > 0)))){
GSEngine.bList[_local6].hitBit(8, (wDamage * globalMulD));
GSEngine.bList[_local6].tintBit(GSEngine.bList[_local6].boss10.bossBit8);
removeThis();
sudahHit = true;
break;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (((!((this == null))) && ((sudahHit == false)))){
if (GSEngine.stageLevel == 9){
for (_local7 in GSEngine.asteroidArray) {
if (GSEngine.asteroidArray[_local7] != null){
if (this.peri.hitTestObject(GSEngine.asteroidArray[_local7].peri)){
GSEngine.asteroidArray[_local7].setTints();
GSEngine.asteroidArray[_local7].hp = (GSEngine.asteroidArray[_local7].hp - (wDamage * globalMulD));
_local8 = new ledakanBatu2();
stage.addChild(_local8);
_local8.x = GSEngine.asteroidArray[_local7].x;
_local8.y = GSEngine.asteroidArray[_local7].y;
removeThis();
sudahHit = true;
break;
};
};
};
};
};
};
if (this != null){
if ((((((((this.x > 740)) || ((this.x < -50)))) || ((this.y < -50)))) || ((this.y > 550)))){
removeThis();
};
};
};
}
function setVisible(){
if (tipeBullet == 1){
b1.visible = true;
} else {
if (tipeBullet == 2){
b2.visible = true;
} else {
if (tipeBullet == 3){
b3.visible = true;
} else {
if (tipeBullet == 4){
b4.visible = true;
} else {
if (tipeBullet == 5){
b5.visible = true;
} else {
if (tipeBullet == 6){
b6.visible = true;
} else {
if (tipeBullet == 7){
b7.visible = true;
} else {
if (tipeBullet == 8){
b8.visible = true;
} else {
if (tipeBullet == 9){
b9.visible = true;
} else {
if (tipeBullet == 10){
b10.visible = true;
} else {
if (tipeBullet == 11){
b11.visible = true;
} else {
if (tipeBullet == 12){
b12.visible = true;
} else {
if (tipeBullet == 13){
b13.visible = true;
} else {
if (tipeBullet == 14){
b14.visible = true;
} else {
if (tipeBullet == 15){
b15.visible = true;
} else {
if (tipeBullet == 16){
b16.visible = true;
} else {
if (tipeBullet == 17){
b17.visible = true;
} else {
if (tipeBullet == 18){
b18.visible = true;
} else {
if (tipeBullet == 19){
b19.visible = true;
} else {
if (tipeBullet == 20){
b20.visible = true;
} else {
if (tipeBullet == 21){
b5.visible = true;
} else {
if (tipeBullet == 22){
b21.visible = true;
peri.scaleX = 6;
peri.scaleY = 6;
} else {
if (tipeBullet == 23){
b22.visible = true;
peri.scaleX = 50;
} else {
if (tipeBullet == 24){
b23.visible = true;
peri.scaleX = 2;
peri.scaleY = 7;
} else {
if (tipeBullet == 25){
b24.visible = true;
peri.scaleX = 1.5;
peri.scaleY = 2;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function moveThis(){
var _local1:Number;
}
public function setSpeed(){
if (tipeBullet == 1){
wDamage = (20 * globalMulD);
setAngle(0, 10);
} else {
if (tipeBullet == 2){
wDamage = (18 * globalMulD);
setAngle(-20, 12);
} else {
if (tipeBullet == 3){
wDamage = (20 * globalMulD);
setAngle(0, 13);
} else {
if (tipeBullet == 4){
setAngle(20, 13);
wDamage = (18 * globalMulD);
} else {
if (tipeBullet == 5){
wDamage = (25 * globalMulD);
setAngle(0, 13);
} else {
if (tipeBullet == 6){
setAngle(-20, 13);
wDamage = (21 * globalMulD);
} else {
if (tipeBullet == 7){
setAngle(20, 13);
wDamage = (25 * globalMulD);
} else {
if (tipeBullet == 8){
setAngle(20, 13);
wDamage = (21 * globalMulD);
} else {
if (tipeBullet == 9){
setAngle(0, 13);
wDamage = (31 * globalMulD);
} else {
if (tipeBullet == 10){
setAngle(0, 13);
wDamage = (27 * globalMulD);
} else {
if (tipeBullet == 11){
setAngle(0, 13);
wDamage = (27 * globalMulD);
} else {
if (tipeBullet == 12){
setAngle(0, 13);
wDamage = (28 * globalMulD);
} else {
if (tipeBullet == 13){
setAngle(0, 13);
wDamage = (27 * globalMulD);
} else {
if (tipeBullet == 14){
setAngle(0, 13);
wDamage = (26 * globalMulD);
} else {
if (tipeBullet == 15){
setAngle(0, 13);
wDamage = (25 * globalMulD);
} else {
if (tipeBullet == 16){
setAngle(0, 13);
wDamage = (35 * globalMulD);
} else {
if (tipeBullet == 17){
setAngle(0, 13);
wDamage = (36 * globalMulD);
} else {
if (tipeBullet == 18){
setAngle(0, 13);
wDamage = (42 * globalMulD);
} else {
if (tipeBullet == 19){
setAngle((randomRange * 360), 13);
wDamage = (40 * globalMulD);
} else {
if (tipeBullet == 20){
setAngle(((randomRange * 60) - 30), 13);
wDamage = (15 * globalMulD);
} else {
if (tipeBullet == 21){
setAngle(90, 13);
wDamage = (23 * globalMulD);
} else {
if (tipeBullet == 22){
setAngle((Math.random() * 180), 0);
wDamage = (2 * globalMulD);
} else {
if (tipeBullet == 23){
setAngle(0, 0);
wDamage = (3 * globalMulD);
} else {
if (tipeBullet == 24){
setAngle(0, 10);
wDamage = (5 * globalMulD);
} else {
if (tipeBullet == 25){
setAngle(0, 7);
wDamage = (10 * globalMulD);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function setAngle(_arg1, _arg2){
this.rotation = _arg1;
maxSpeed = _arg2;
angle = ((this.rotation / 180) * Math.PI);
ySpeed = ((Math.sin(angle) * maxSpeed) * globalMulS);
xSpeed = ((Math.cos(angle) * maxSpeed) * globalMulS);
}
public function criticalHit(){
var _local1:MovieClip;
var _local2:MovieClip;
if (((!((this == null))) && (!((stage == null))))){
if (crit < (GSEngine.criticalRate + GSEngine.plusCrit)){
_local1 = new Effect();
_local1.x = (this.x + (Math.random() * 20));
_local1.y = (this.y + (Math.random() * 20));
(_local1.scaleX * 2);
(_local1.scaleY * 2);
stage.addChild(_local1);
_local1.type = 11;
} else {
_local2 = new Effect();
_local2.x = (this.x + (Math.random() * 20));
_local2.y = (this.y + (Math.random() * 20));
(_local2.scaleX * 2);
(_local2.scaleY * 2);
stage.addChild(_local2);
_local2.type = 14;
};
};
}
public function removeThis(){
if (((!((this == null))) && (!((stage == null))))){
stage.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED_TO_STAGE, beginClass);
};
}
function playerBulletBehaviour(){
}
}
}//package
Section 202
//PLAYS (PLAYS)
package {
import flash.display.*;
public dynamic class PLAYS extends MovieClip {
public function PLAYS(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 203
//podCounter (podCounter)
package {
import flash.text.*;
import flash.display.*;
public dynamic class podCounter extends MovieClip {
public var counter:TextField;
}
}//package
Section 204
//qlty (qlty)
package {
import flash.display.*;
public dynamic class qlty extends MovieClip {
public var me:MovieClip;
public var hi:MovieClip;
public var lo:MovieClip;
public function qlty(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 205
//quake (quake)
package {
import flash.media.*;
public dynamic class quake extends Sound {
}
}//package
Section 206
//ragSun (ragSun)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ragSun extends MovieClip {
public function ragSun(){
addFrameScript(0, frame1, 39, frame40);
}
public function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (((!((this == null))) && (!((this.parent == null))))){
for (_local2 in GSEngine.eList) {
if (((this.hitTestObject(GSEngine.eList[_local2])) && (!((GSEngine.eList[_local2] == null))))){
if (GSEngine.isPaused == false){
GSEngine.eList[_local2].getHit(3);
};
};
};
if (this.x > 900){
GSEngine.njurus = false;
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.parent.removeChild(this);
} else {
if (GSEngine.isPaused == false){
this.scaleX = (this.scaleX + 0.01);
this.scaleY = (this.scaleY + 0.01);
this.rotation = (this.rotation + 2);
this.x = (this.x + 4);
};
};
if (GSEngine.death == true){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.parent.removeChild(this);
GSEngine.njurus = false;
};
for (_local3 in GSEngine.eList) {
if (GSEngine.eList != null){
if (this.hitTestObject(GSEngine.eList[_local3].periM1)){
GSEngine.eList[_local3].getHit(15);
};
};
};
};
}
function frame1(){
this.addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame40(){
gotoAndPlay(1);
}
}
}//package
Section 207
//shipStatus (shipStatus)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shipStatus extends MovieClip {
public var addMpStatus:TextField;
public var addAttStatus:TextField;
public var hpStatus:TextField;
public var addMpRegenStatus:TextField;
public var mpRegenStatus:TextField;
public var addArmorStatus:TextField;
public var addCriticalStatus:TextField;
public var mpStatus:TextField;
public var addArmorRegenStatus:TextField;
public var criticalStatus:TextField;
public var addHpStatus:TextField;
public var attackStatus:TextField;
public var addMoveSpeedStatus:TextField;
public var armorStatus:TextField;
public var moveSpeedStatus:TextField;
public var armorRegenStatus:TextField;
}
}//package
Section 208
//ShootSound (ShootSound)
package {
import flash.media.*;
public dynamic class ShootSound extends Sound {
}
}//package
Section 209
//skill1_1 (skill1_1)
package {
import flash.display.*;
public dynamic class skill1_1 extends MovieClip {
public function skill1_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 210
//skill1_3 (skill1_3)
package {
import flash.display.*;
public dynamic class skill1_3 extends MovieClip {
public function skill1_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 211
//skill1All (skill1All)
package {
import flash.display.*;
public dynamic class skill1All extends MovieClip {
public var arcShield:skill1_3;
public var Supernova:skill1_1;
public var ragingSun:MovieClip;
}
}//package
Section 212
//skill2_1 (skill2_1)
package {
import flash.display.*;
public dynamic class skill2_1 extends MovieClip {
public function skill2_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 213
//skill2_2 (skill2_2)
package {
import flash.display.*;
public dynamic class skill2_2 extends MovieClip {
public function skill2_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 214
//skill2_3 (skill2_3)
package {
import flash.display.*;
public dynamic class skill2_3 extends MovieClip {
public function skill2_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 215
//skill2All (skill2All)
package {
import flash.display.*;
public dynamic class skill2All extends MovieClip {
public var deflect:skill2_3;
public var cometTail:skill2_2;
public var blueRay:skill2_1;
}
}//package
Section 216
//skill3_1 (skill3_1)
package {
import flash.display.*;
public dynamic class skill3_1 extends MovieClip {
public function skill3_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 217
//skill3_2 (skill3_2)
package {
import flash.display.*;
public dynamic class skill3_2 extends MovieClip {
public function skill3_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 218
//skill3_3 (skill3_3)
package {
import flash.display.*;
public dynamic class skill3_3 extends MovieClip {
public function skill3_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 219
//skill3All (skill3All)
package {
import flash.display.*;
public dynamic class skill3All extends MovieClip {
public var solarStorm:skill3_2;
public var burningRadiation:skill3_1;
public var wildFire:skill3_3;
}
}//package
Section 220
//skill4_1 (skill4_1)
package {
import flash.display.*;
public dynamic class skill4_1 extends MovieClip {
public function skill4_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 221
//skill4_2 (skill4_2)
package {
import flash.display.*;
public dynamic class skill4_2 extends MovieClip {
public function skill4_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 222
//skill4_3 (skill4_3)
package {
import flash.display.*;
public dynamic class skill4_3 extends MovieClip {
public function skill4_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 223
//skill4_4 (skill4_4)
package {
import flash.display.*;
public dynamic class skill4_4 extends MovieClip {
public function skill4_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 224
//skill4All (skill4All)
package {
import flash.display.*;
public dynamic class skill4All extends MovieClip {
public var swarmingRay:skill4_4;
public var globalWarming:skill4_2;
public var protect:skill4_3;
public var criticalAttack:skill4_1;
}
}//package
Section 225
//skill5_1 (skill5_1)
package {
import flash.display.*;
public dynamic class skill5_1 extends MovieClip {
public function skill5_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 226
//skill5_2 (skill5_2)
package {
import flash.display.*;
public dynamic class skill5_2 extends MovieClip {
public function skill5_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 227
//skill5_3 (skill5_3)
package {
import flash.display.*;
public dynamic class skill5_3 extends MovieClip {
public function skill5_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 228
//skill5_4 (skill5_4)
package {
import flash.display.*;
public dynamic class skill5_4 extends MovieClip {
public function skill5_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 229
//skill5All (skill5All)
package {
import flash.display.*;
public dynamic class skill5All extends MovieClip {
public var deadLines:skill5_1;
public var counterWave:skill5_4;
public var invurnerable:skill5_3;
public var electromagneticField:skill5_2;
}
}//package
Section 230
//skill6_1 (skill6_1)
package {
import flash.display.*;
public dynamic class skill6_1 extends MovieClip {
public function skill6_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 231
//skill6_2 (skill6_2)
package {
import flash.display.*;
public dynamic class skill6_2 extends MovieClip {
public function skill6_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 232
//skill6_3 (skill6_3)
package {
import flash.display.*;
public dynamic class skill6_3 extends MovieClip {
public function skill6_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 233
//skill6_4 (skill6_4)
package {
import flash.display.*;
public dynamic class skill6_4 extends MovieClip {
public function skill6_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 234
//skill6All (skill6All)
package {
import flash.display.*;
public dynamic class skill6All extends MovieClip {
public var shadowShip:skill6_1;
public var gravitation:skill6_3;
public var blackHole:skill6_4;
public var orbitalShield:skill6_2;
}
}//package
Section 235
//skillSlot (skillSlot)
package {
import flash.display.*;
public dynamic class skillSlot extends MovieClip {
public function skillSlot(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 236
//slotEqIcon (slotEqIcon)
package {
import flash.display.*;
public dynamic class slotEqIcon extends MovieClip {
public function slotEqIcon(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 237
//slotSkill (slotSkill)
package {
import flash.display.*;
public dynamic class slotSkill extends MovieClip {
}
}//package
Section 238
//sparkSlot (sparkSlot)
package {
import flash.display.*;
import flash.text.*;
public dynamic class sparkSlot extends MovieClip {
public var pTetapSpark:TextField;
}
}//package
Section 239
//speedEfek (speedEfek)
package {
import flash.display.*;
import flash.events.*;
public class speedEfek extends MovieClip {
var speed:Number;
public function speedEfek(){
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED, beginClass);
speed = ((Math.random() * 10) + 70);
this.gotoAndStop(Math.round((Math.random() * 5)));
}
private function beginClass(_arg1:Event):void{
}
private function eFrame(_arg1:Event):void{
if (GSEngine.isPaused == false){
this.x = (this.x - speed);
if (this.x < -600){
removeThis();
};
if (GSEngine.stageComplete == true){
removeThis();
};
};
}
function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ADDED, beginClass);
};
}
function frame1(){
stop();
}
}
}//package
Section 240
//splashScreen (splashScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class splashScreen extends MovieClip {
public var agBut:MovieClip;
public var dmBut:MovieClip;
public function splashScreen(){
addFrameScript(323, frame324);
agBut.addEventListener(MouseEvent.CLICK, gotoWeb);
dmBut.addEventListener(MouseEvent.CLICK, gotoWebKu);
}
function gotoWeb(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2, "_blank");
}
function gotoWebKu(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("https://www.facebook.com/dmaestergames/");
navigateToURL(_local2, "_blank");
}
function frame324(){
stop();
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 241
//stageDetail (stageDetail)
package {
import flash.text.*;
public dynamic class stageDetail extends Font {
}
}//package
Section 242
//stageDetails (stageDetails)
package {
import flash.display.*;
import flash.text.*;
public dynamic class stageDetails extends MovieClip {
public var completed:TextField;
public var rekor:TextField;
public var rekor2:TextField;
public var reqPod:TextField;
public var tempDet:MovieClip;
public var completed2:TextField;
public var tempDet2:MovieClip;
public var stageDetail:TextField;
public var namaStage:TextField;
public var reqPod2:TextField;
}
}//package
Section 243
//StartButton (StartButton)
package {
import flash.display.*;
public class StartButton extends MovieClip {
}
}//package
Section 244
//startStage (startStage)
package {
import flash.media.*;
public dynamic class startStage extends Sound {
}
}//package
Section 245
//steam (steam)
package {
import flash.media.*;
public dynamic class steam extends Sound {
}
}//package
Section 246
//subWeaponStatus (subWeaponStatus)
package {
import flash.display.*;
import flash.text.*;
public dynamic class subWeaponStatus extends MovieClip {
public var sWEDAdditionalStatus:TextField;
public var sWEDName:TextField;
public var sWEDDamage:TextField;
}
}//package
Section 247
//summMenu (summMenu)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class summMenu extends MovieClip {
public var DjumlahItem10:TextField;
public var DjumlahItem2:TextField;
public var DjenisItem9:MovieClip;
public var ePodSaved:TextField;
public var DjumlahItem1:TextField;
public var DjumlahItem12:TextField;
public var DjumlahItem7:TextField;
public var DjenisItem4:MovieClip;
public var proceed:MovieClip;
public var DjumlahItem6:TextField;
public var DjenisItem5:MovieClip;
public var sparkGet:TextField;
public var DjumlahItem5:TextField;
public var DjenisItem6:MovieClip;
public var backH:MovieClip;
public var DjumlahItem4:TextField;
public var DjenisItem7:MovieClip;
public var DjenisItem1:MovieClip;
public var areaName:TextField;
public var obj:TextField;
public var DjenisItem2:MovieClip;
public var DjumlahItem9:TextField;
public var DjenisItem10:MovieClip;
public var DjenisItem3:MovieClip;
public var obj2:TextField;
public var DjumlahItem8:TextField;
public var DjenisItem11:MovieClip;
public var DjenisItem12:MovieClip;
public var nextA:MovieClip;
public var DjumlahItem11:TextField;
public var DjumlahItem3:TextField;
public var DjenisItem8:MovieClip;
var ePodSaveTemp:int;
var expTemp:int;
var sparkTemp:int;
var oreTemp:int;
var scrapMetalTemp:int;
var starDustTemp:int;
var crystalTemp:int;
var meteorPieceTemp:int;
var flyingStoneTemp:int;
var remethinTemp:int;
var fiberConnectionTemp:int;
var ionizedFluidTemp:int;
var manaStoneTemp:int;
var batteryTemp:int;
var luminaFruitTemp:int;
var azuriaCarbonTemp:int;
var blackCrumbTemp:int;
var sparkFuseTemp:int;
var lightWebTemp:int;
var guardianStarMedalTemp:int;
var royalRingTemp:int;
var hearthOfKhaleoniaTemp:int;
var antimaterTemp:int;
var redEnergyTemp:int;
var blueEnergyTemp:int;
var yellowEnergyTemp:int;
var bitModuleTemp:int;
var criticalChipsetTemp:int;
var linkerTemp:int;
var dragonScaleTemp:int;
var sparkLimiterTemp:int;
var pertamaxFuelTemp:int;
var atomDecompilerTemp:int;
public function summMenu(){
backH.visible = false;
obj.visible = false;
addEventListener(Event.ENTER_FRAME, eFrame);
proceed.addEventListener(MouseEvent.MOUSE_OVER, onOver);
proceed.addEventListener(MouseEvent.MOUSE_OUT, onOut);
proceed.addEventListener(MouseEvent.CLICK, onDown);
obj.mouseEnabled = false;
sparkGet.mouseEnabled = false;
DjumlahItem1.mouseEnabled = false;
DjumlahItem2.mouseEnabled = false;
DjumlahItem3.mouseEnabled = false;
DjumlahItem4.mouseEnabled = false;
DjumlahItem5.mouseEnabled = false;
DjumlahItem6.mouseEnabled = false;
DjumlahItem7.mouseEnabled = false;
DjumlahItem8.mouseEnabled = false;
DjumlahItem9.mouseEnabled = false;
DjumlahItem10.mouseEnabled = false;
DjumlahItem11.mouseEnabled = false;
DjumlahItem12.mouseEnabled = false;
nextA.mouseEnabled = false;
areaName.mouseEnabled = false;
}
function eFrame(_arg1:Event):void{
if (GSEngine.phases == "Customize"){
removeThis();
};
if (GSEngine.phases == "Defeat"){
sparkGet.text = "0";
areaName.text = "TAKING HEAVY DAMAGE";
obj.text = "OBJECTIVE FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
backH.visible = true;
DjenisItem1.visible = false;
DjumlahItem1.visible = false;
DjenisItem2.visible = false;
DjumlahItem2.visible = false;
DjenisItem3.visible = false;
DjumlahItem3.visible = false;
DjenisItem4.visible = false;
DjumlahItem4.visible = false;
DjenisItem5.visible = false;
DjumlahItem5.visible = false;
DjenisItem6.visible = false;
DjumlahItem6.visible = false;
DjenisItem7.visible = false;
DjumlahItem7.visible = false;
DjenisItem8.visible = false;
DjumlahItem8.visible = false;
DjenisItem9.visible = false;
DjumlahItem9.visible = false;
DjenisItem10.visible = false;
DjumlahItem10.visible = false;
DjenisItem11.visible = false;
DjumlahItem11.visible = false;
DjenisItem12.visible = false;
DjumlahItem12.visible = false;
GSEngine.ePodSaved = 0;
};
ePodSaved.text = GSEngine.ePodSaved.toString();
if (GSEngine.phases != "Defeat"){
if (GSEngine.stageLevel == 1){
areaName.text = "FAR' NARRIA";
};
if (GSEngine.stageLevel == 2){
areaName.text = "NARRIA PLAIN";
};
if (GSEngine.stageLevel == 3){
areaName.text = "EK' WANA FOREST";
};
if (GSEngine.stageLevel == 4){
areaName.text = "MAR' KAPURA";
};
if (GSEngine.stageLevel == 5){
areaName.text = "KHALEONIA HIGHLAND";
};
if (GSEngine.stageLevel == 6){
areaName.text = "AZURIA'S CEILING";
};
if (GSEngine.stageLevel == 7){
areaName.text = "THE STRATOSPHERE";
};
if (GSEngine.stageLevel == 8){
areaName.text = "ORBITAL BLOCKADE";
};
if (GSEngine.stageLevel == 9){
areaName.text = "SKY JUNKYARD";
};
if (GSEngine.stageLevel == 10){
areaName.text = "FAR' LOUNGA";
};
};
if (((!((this == null))) && (!((stage == null))))){
if (GSEngine.phases != "Defeat"){
cekRequirement();
};
stage.addChild(this);
if (GSEngine.jenisLootArray[0] == "none"){
DjenisItem1.visible = false;
DjumlahItem1.visible = false;
};
if (GSEngine.jenisLootArray[1] == "none"){
DjenisItem2.visible = false;
DjumlahItem2.visible = false;
};
if (GSEngine.jenisLootArray[2] == "none"){
DjenisItem3.visible = false;
DjumlahItem3.visible = false;
};
if (GSEngine.jenisLootArray[3] == "none"){
DjenisItem4.visible = false;
DjumlahItem4.visible = false;
};
if (GSEngine.jenisLootArray[4] == "none"){
DjenisItem5.visible = false;
DjumlahItem5.visible = false;
};
if (GSEngine.jenisLootArray[5] == "none"){
DjenisItem6.visible = false;
DjumlahItem6.visible = false;
};
if (GSEngine.jenisLootArray[6] == "none"){
DjenisItem7.visible = false;
DjumlahItem7.visible = false;
};
if (GSEngine.jenisLootArray[7] == "none"){
DjenisItem8.visible = false;
DjumlahItem8.visible = false;
};
if (GSEngine.jenisLootArray[8] == "none"){
DjenisItem9.visible = false;
DjumlahItem9.visible = false;
};
if (GSEngine.jenisLootArray[9] == "none"){
DjenisItem10.visible = false;
DjumlahItem10.visible = false;
};
if (GSEngine.jenisLootArray[10] == "none"){
DjenisItem11.visible = false;
DjumlahItem11.visible = false;
};
if (GSEngine.jenisLootArray[11] == "none"){
DjenisItem12.visible = false;
DjumlahItem12.visible = false;
};
DjenisItem1.gotoAndStop(GSEngine.jenisLootArray[0]);
DjenisItem2.gotoAndStop(GSEngine.jenisLootArray[1]);
DjenisItem3.gotoAndStop(GSEngine.jenisLootArray[2]);
DjenisItem4.gotoAndStop(GSEngine.jenisLootArray[3]);
DjenisItem5.gotoAndStop(GSEngine.jenisLootArray[4]);
DjenisItem6.gotoAndStop(GSEngine.jenisLootArray[5]);
DjenisItem7.gotoAndStop(GSEngine.jenisLootArray[6]);
DjenisItem8.gotoAndStop(GSEngine.jenisLootArray[7]);
DjenisItem9.gotoAndStop(GSEngine.jenisLootArray[8]);
DjenisItem10.gotoAndStop(GSEngine.jenisLootArray[9]);
DjenisItem11.gotoAndStop(GSEngine.jenisLootArray[10]);
DjenisItem12.gotoAndStop(GSEngine.jenisLootArray[11]);
DjumlahItem1.text = ("x" + GSEngine.jumlahLootArray[0].toString());
DjumlahItem2.text = ("x" + GSEngine.jumlahLootArray[1].toString());
DjumlahItem3.text = ("x" + GSEngine.jumlahLootArray[2].toString());
DjumlahItem4.text = ("x" + GSEngine.jumlahLootArray[3].toString());
DjumlahItem5.text = ("x" + GSEngine.jumlahLootArray[4].toString());
DjumlahItem6.text = ("x" + GSEngine.jumlahLootArray[5].toString());
DjumlahItem7.text = ("x" + GSEngine.jumlahLootArray[6].toString());
DjumlahItem8.text = ("x" + GSEngine.jumlahLootArray[7].toString());
DjumlahItem9.text = ("x" + GSEngine.jumlahLootArray[8].toString());
DjumlahItem10.text = ("x" + GSEngine.jumlahLootArray[9].toString());
DjumlahItem11.text = ("x" + GSEngine.jumlahLootArray[10].toString());
DjumlahItem12.text = ("x" + GSEngine.jumlahLootArray[11].toString());
sparkGet.text = GSEngine.sparkEarned.toString();
};
}
function onOver(_arg1:MouseEvent){
if (_arg1.target == proceed){
proceed.gotoAndStop(2);
};
}
function onDown(_arg1:MouseEvent){
var _local2:MovieClip;
if (_arg1.target == proceed){
if (GSEngine.phases == "Defeat"){
GSEngine.spark = (GSEngine.spark - GSEngine.sparkEarned);
};
if ((((GSEngine.stageLevel == 10)) && (!((GSEngine.phases == "Defeat"))))){
_local2 = new endingScene();
stage.addChild(_local2);
_local2.x = 0;
_local2.y = 0;
};
proceed.gotoAndStop(3);
GSEngine.phases = "lanjut";
GSEngine.ePodSaved = 0;
GSEngine.sparkEarned = 0;
removeThis();
};
}
function onOut(_arg1:MouseEvent){
if (_arg1.target == proceed){
proceed.gotoAndStop(1);
};
}
function cekRequirement(){
GSEngine.lastStagePodS = GSEngine.ePodSaved;
if ((((((GSEngine.stageLevel == 1)) && ((GSEngine.lastStagePodS >= 5)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage2 = true;
GSEngine.lastStagePodS = 0;
nextA.visible = true;
if (GSEngine.stage2Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage2Obj1 == false){
obj2.text = "SAVE 5 PODS FROM FAR' NARRIA SUCCESS";
};
if (GSEngine.boss1Killed == true){
GSEngine.stage2Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 1)) && ((GSEngine.lastStagePodS < 5)))){
if (GSEngine.stage2Obj1 == false){
obj.text = "SAVE 5 PODS FROM FAR' NARRIA FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage2Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 2)) && ((GSEngine.lastStagePodS >= 6)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.lastStagePodS = 0;
if (GSEngine.stage3Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage3Obj1 == false){
obj2.text = "SAVE 6 PODS FROM NARRIA PLAIN SUCCESS";
};
if (GSEngine.boss2Killed == true){
GSEngine.stage3Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 2)) && ((GSEngine.lastStagePodS < 6)))){
if (GSEngine.stage3Obj1 == false){
obj.text = "SAVE 6 PODS FROM NARRIA PLAIN FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage3Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 3)) && ((GSEngine.lastStagePodS >= 7)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage4 = true;
GSEngine.lastStagePodS = 0;
if (GSEngine.stage4Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage4Obj1 == false){
obj2.text = "SAVE 7 PODS FROM EK' WANA FOREST SUCCESS";
};
if (GSEngine.boss3Killed == true){
GSEngine.stage4Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 3)) && ((GSEngine.lastStagePodS < 7)))){
if (GSEngine.stage4Obj1 == false){
obj.text = "SAVE 7 PODS FROM EK' WANA FOREST FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage4Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 4)) && ((GSEngine.lastStagePodS >= 8)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.lastStagePodS = 0;
if (GSEngine.stage5Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage5Obj1 == false){
obj2.text = "SAVE 7 PODS FROM MAR' KAPURA SUCCESS";
};
if (GSEngine.boss4Killed == true){
GSEngine.stage5Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 4)) && ((GSEngine.lastStagePodS < 8)))){
if (GSEngine.stage5Obj1 == false){
obj.text = "SAVE 7 PODS FROM MAR' KAPURA FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage5Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 5)) && ((GSEngine.lastStagePodS >= 9)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage6 = true;
GSEngine.lastStagePodS = 0;
if (GSEngine.stage6Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage6Obj1 == false){
obj2.text = "SAVE 8 PODS FROM KHALEONIA HIGHLAND SUCCESS";
};
if (GSEngine.boss5Killed == true){
GSEngine.stage6Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 5)) && ((GSEngine.lastStagePodS < 9)))){
if (GSEngine.stage6Obj1 == false){
obj.text = "SAVE 8 PODS FROM KHALEONIA HIGHLAND FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage6Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 6)) && ((GSEngine.lastStagePodS >= 11)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.lastStagePodS = 0;
if (GSEngine.stage7Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage7Obj1 == false){
obj2.text = "SAVE 10 PODS FROM AZURIA'S CEILING SUCCESS";
};
if (GSEngine.boss6Killed == true){
GSEngine.stage7Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 6)) && ((GSEngine.lastStagePodS < 11)))){
if (GSEngine.stage7Obj1 == false){
obj.text = "SAVE 10 PODS FROM AZURIA'S CEILING FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage7Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 7)) && ((GSEngine.lastStagePodS >= 13)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.lastStagePodS = 0;
if (GSEngine.stage8Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage8Obj1 == false){
obj2.text = "SAVE 12 PODS FROM THE STRATOSPHERE SUCCESS";
};
if (GSEngine.boss7Killed == true){
GSEngine.stage8Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 7)) && ((GSEngine.lastStagePodS < 13)))){
if (GSEngine.stage8Obj1 == false){
obj.text = "SAVE 12 PODS FROM THE STRATOSPHERE FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage8Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 8)) && ((GSEngine.lastStagePodS >= 15)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage9 = true;
GSEngine.lastStagePodS = 0;
if (GSEngine.stage9Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage9Obj1 == false){
obj2.text = "SAVE 14 PODS FROM ORBITAL BLOCKADE SUCCESS";
};
if (GSEngine.boss8Killed == true){
GSEngine.stage9Obj1 = true;
};
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 8)) && ((GSEngine.lastStagePodS < 15)))){
if (GSEngine.stage9Obj1 == false){
obj.text = "SAVE 14 PODS FROM ORBITAL BLOCKADE FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage9Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((((GSEngine.stageLevel == 9)) && ((GSEngine.lastStagePodS >= 17)))) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage10 = true;
GSEngine.lastStagePodS = 0;
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage10Obj1 == true){
obj2.text = "COMPLETED";
};
if (GSEngine.stage10Obj1 == false){
obj2.text = "SAVE 16 PODS FROM SKY JUNKYARD SUCCESS";
};
if (GSEngine.boss9Killed == true){
GSEngine.stage10Obj1 = true;
};
if (GSEngine.stage2 == true){
nextA.visible = false;
};
if (GSEngine.stage2 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 9)) && ((GSEngine.lastStagePodS < 17)))){
if (GSEngine.stage9Obj1 == false){
obj.text = "SAVE 16 PODS FROM SKY JUNKYARD FAILED";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage9Obj1 == true){
obj2.text = "COMPLETED";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
if ((((GSEngine.stageLevel == 10)) && (!((GSEngine.phases == "Defeat"))))){
GSEngine.stage10 = true;
GSEngine.lastStagePodS = 0;
obj2.visible = true;
obj.visible = false;
if (GSEngine.stage10Obj1 == true){
obj2.text = "";
};
if (GSEngine.stage10Obj1 == true){
obj2.text = "";
};
if (GSEngine.boss10Killed == true){
GSEngine.stage10Obj1 = true;
};
if (GSEngine.stage10 == true){
nextA.visible = false;
};
if (GSEngine.stage10 == false){
nextA.visible = true;
};
} else {
if ((((GSEngine.stageLevel == 10)) && ((GSEngine.lastStagePodS < 17)))){
if (GSEngine.stage10Obj1 == false){
obj.text = "";
obj2.visible = false;
obj.visible = true;
nextA.visible = false;
};
if (GSEngine.stage10Obj1 == true){
obj2.text = "";
obj2.visible = true;
obj.visible = false;
nextA.visible = true;
};
};
};
}
function removeThis(){
if (((!((this == null))) && (!((this.parent == null))))){
GSEngine.jumlahLootArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
GSEngine.jenisLootArray = ["none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"];
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, eFrame);
proceed.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
proceed.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
proceed.removeEventListener(MouseEvent.CLICK, onDown);
};
}
}
}//package
Section 248
//superNovaEffect (superNovaEffect)
package {
import flash.display.*;
public dynamic class superNovaEffect extends MovieClip {
public function superNovaEffect(){
addFrameScript(1, frame2, 45, frame46);
}
function frame2(){
stop();
}
function frame46(){
GSEngine.njurus = false;
this.gotoAndPlay(1);
}
}
}//package
Section 249
//sWBullet (sWBullet)
package {
import flash.display.*;
import flash.events.*;
public class sWBullet extends MovieClip {
private var xSpeed:Number;
private var ySpeed:Number;
private var angle:Number;
var randomRange:Number;
var type:int;
var tipe:int;
private var crit:Number;// = 30
private var lifeSpan:int;// = 0
public function sWBullet(_arg1){
randomRange = Math.random();
super();
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, eFrame);
this.addEventListener(Event.ADDED_TO_STAGE, beginClass);
tipe = _arg1;
}
public function beginClass(_arg1:Event):void{
setDisplay();
}
private function eFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (GSEngine.isPaused == false){
setBehav();
lifeSpan++;
this.x = (this.x + xSpeed);
this.y = (this.y + ySpeed);
if ((((((((this.x > 740)) || ((this.x < -100)))) || ((this.y > 700)))) || ((this.y < -200)))){
removeThis();
};
if (GSEngine.stageComplete == false){
for (_local2 in Enemy.eList) {
if (((!((Enemy.eList == null))) && (!((Enemy.eList[_local2] == null))))){
if (this.hitTestObject(Enemy.eList[_local2].standartEnemy1.periM1)){
criticalHit();
Enemy.eList[_local2].getHit(GSEngine.sWDamage);
removeThis();
break;
};
};
};
for (_local3 in Boss.bList) {
if (Boss.bList[_local3] != null){
if (Boss.CBoss == 101){
if (((((this.hitTestObject(Boss.bList[_local3].boss1.periM1)) || (this.hitTestObject(Boss.bList[_local3].boss1.periM2)))) || (this.hitTestObject(Boss.bList[_local3].boss1.periM3)))){
criticalHit();
Boss.bList[_local3].getHit(2);
removeThis();
break;
};
} else {
if (Boss.CBoss == 102){
if (((((this.hitTestObject(Boss.bList[_local3].boss2.periM1)) || (this.hitTestObject(Boss.bList[_local3].boss2.periM2)))) || (this.hitTestObject(Boss.bList[_local3].boss2.periM3)))){
criticalHit();
Boss.bList[_local3].getHit(2);
removeThis();
break;
};
};
};
};
};
};
};
}
private function setBehav(){
var _local1:Number;
var _local2:MovieClip;
var _local3:int;
var _local4:MovieClip;
if (tipe == 3){
xSpeed = 13;
ySpeed = ((randomRange * 10) - 5);
};
if (tipe == 31){
this.gotoAndStop(type);
xSpeed = 13;
ySpeed = ((randomRange * 10) - 5);
};
if (tipe == 5){
this.gotoAndStop(type);
xSpeed = 13;
ySpeed = ((randomRange * 10) - 5);
};
if (tipe == 7){
this.gotoAndStop(type);
if (((!((Enemy.eList == null))) && (!((this == null))))){
if (Enemy.eList[0] != null){
_local1 = Math.atan2((Enemy.eList[0].y - this.y), (Enemy.eList[0].x - this.x));
if ((((this.rotation > ((_local1 / Math.PI) * 180))) && ((this.rotation > -180)))){
this.rotation = (this.rotation - 6);
} else {
if ((((this.rotation < ((_local1 / Math.PI) * 180))) && ((this.rotation < 180)))){
this.rotation = (this.rotation + 6);
};
};
angle = ((this.rotation / 180) * Math.PI);
ySpeed = (Math.sin(angle) * 15);
xSpeed = (Math.cos(angle) * 15);
} else {
this.rotation = (this.rotation - ((randomRange * 3) - 1.5));
angle = ((this.rotation / 180) * Math.PI);
ySpeed = (Math.sin(angle) * 15);
xSpeed = (Math.cos(angle) * 15);
};
};
};
if (tipe == 8){
this.gotoAndStop(type);
this.rotation = (this.rotation - ((randomRange * 3) - 1.5));
angle = ((this.rotation / 180) * Math.PI);
ySpeed = (Math.sin(angle) * 15);
xSpeed = (Math.cos(angle) * 15);
if (lifeSpan > ((randomRange * 30) + 10)){
_local2 = new Effect();
_local2.x = (this.x + (Math.random() * 20));
_local2.y = (this.y + (Math.random() * 20));
(_local2.scaleX * 2);
(_local2.scaleY * 2);
stage.addChild(_local2);
_local2.type = 11;
_local3 = 0;
while (_local3 < 7) {
_local4 = new sWBullet(91);
_local4.x = this.x;
_local4.y = this.y;
stage.addChild(_local4);
_local4.type = 91;
_local3++;
};
removeThis();
};
};
if (tipe == 91){
this.gotoAndStop(8);
this.scaleX = 0.3;
this.scaleY = 0.3;
this.rotation = ((randomRange * 360) - 180);
angle = ((this.rotation / 180) * Math.PI);
ySpeed = (Math.sin(angle) * 15);
xSpeed = (Math.cos(angle) * 15);
};
if (tipe == 9){
ySpeed = ((randomRange * 2) + 1);
xSpeed = ((randomRange * -2) - 1);
this.rotation = (this.rotation + ((randomRange * 10) + 5));
};
if (tipe == 10){
xSpeed = ((randomRange * 12) + 10);
ySpeed = 0;
};
}
public function setDisplay(){
if (tipe == 3){
this.gotoAndStop(tipe);
};
if (tipe == 31){
this.gotoAndStop(3);
};
if (tipe == 32){
};
if (tipe == 9){
this.gotoAndStop(9);
};
if (tipe == 10){
this.gotoAndStop(10);
};
}
public function criticalHit(){
var _local1:MovieClip;
var _local2:MovieClip;
if (crit < GSEngine.criticalRate){
_local1 = new Effect();
_local1.x = (this.x + (Math.random() * 20));
_local1.y = (this.y + (Math.random() * 20));
(_local1.scaleX * 2);
(_local1.scaleY * 2);
stage.addChild(_local1);
_local1.type = 11;
} else {
_local2 = new Effect();
_local2.x = (this.x + (Math.random() * 20));
_local2.y = (this.y + (Math.random() * 20));
(_local2.scaleX * 2);
(_local2.scaleY * 2);
stage.addChild(_local2);
_local2.type = 14;
};
}
public function removeThis(){
if (((!((this == null))) && (!((stage == null))))){
stage.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
};
}
function frame1(){
stop();
}
}
}//package
Section 250
//Symbol22 (Symbol22)
package {
import flash.display.*;
public dynamic class Symbol22 extends MovieClip {
}
}//package
Section 251
//Symbol23 (Symbol23)
package {
import flash.display.*;
public dynamic class Symbol23 extends MovieClip {
}
}//package
Section 252
//tambahAGI (tambahAGI)
package {
import flash.display.*;
public dynamic class tambahAGI extends MovieClip {
}
}//package
Section 253
//tambahAR (tambahAR)
package {
import flash.display.*;
import flash.events.*;
public dynamic class tambahAR extends MovieClip {
public function tambahAR(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function eFrame(_arg1:Event):void{
this.x = GSEngine.posX;
this.y = GSEngine.posY;
}
public function eFrame2(_arg1:Event){
if (GSEngine.itemTimer2 == 0){
play();
} else {
stop();
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame10(){
stop();
addEventListener(Event.ENTER_FRAME, eFrame2);
}
function frame20(){
GSEngine.plusDef = 0;
GSEngine.ngebuff = false;
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ENTER_FRAME, eFrame2);
};
}
}
}//package
Section 254
//tambahCRIT (tambahCRIT)
package {
import flash.display.*;
import flash.events.*;
public dynamic class tambahCRIT extends MovieClip {
public function tambahCRIT(){
addFrameScript(0, frame1, 8, frame9, 19, frame20);
}
public function eFrame(_arg1:Event):void{
this.x = GSEngine.posX;
this.y = GSEngine.posY;
}
public function eFrame2(_arg1:Event){
if (GSEngine.itemTimer1 == 0){
play();
} else {
stop();
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame9(){
stop();
addEventListener(Event.ENTER_FRAME, eFrame2);
}
function frame20(){
GSEngine.plusCrit = 0;
GSEngine.ngebuff = false;
if (((!((this == null))) && (!((parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ENTER_FRAME, eFrame2);
this.parent.removeChild(this);
};
}
}
}//package
Section 255
//tambahDROP (tambahDROP)
package {
import flash.display.*;
import flash.events.*;
public dynamic class tambahDROP extends MovieClip {
public function tambahDROP(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function eFrame(_arg1:Event):void{
this.x = GSEngine.posX;
this.y = GSEngine.posY;
}
public function eFrame2(_arg1:Event){
if (GSEngine.itemTimer4 == 0){
play();
} else {
stop();
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame10(){
stop();
addEventListener(Event.ENTER_FRAME, eFrame2);
}
function frame20(){
GSEngine.plusDrop = 0;
GSEngine.ngebuff = false;
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ENTER_FRAME, eFrame2);
};
}
}
}//package
Section 256
//tambahRATE (tambahRATE)
package {
import flash.display.*;
import flash.events.*;
public dynamic class tambahRATE extends MovieClip {
public function tambahRATE(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function eFrame(_arg1:Event):void{
this.x = (GSEngine.posX - 10);
this.y = (GSEngine.posY + 10);
}
public function eFrame2(_arg1:Event){
if (GSEngine.itemTimer3 == 0){
play();
} else {
stop();
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, eFrame);
}
function frame10(){
stop();
addEventListener(Event.ENTER_FRAME, eFrame2);
}
function frame20(){
GSEngine.plusRate = 0;
GSEngine.ngebuff = false;
if (((!((this == null))) && (!((parent == null))))){
this.removeEventListener(Event.ENTER_FRAME, eFrame);
this.removeEventListener(Event.ENTER_FRAME, eFrame2);
this.parent.removeChild(this);
};
}
}
}//package
Section 257
//tutPanel (tutPanel)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class tutPanel extends MovieClip {
public var tagging1:MovieClip;
public var mouseKlick:MovieClip;
public var dock1:MovieClip;
public var dock2:MovieClip;
public var armorDisplay:MovieClip;
public var spaceButt:MovieClip;
public var button1:MovieClip;
public var button2:MovieClip;
public var tagging2:MovieClip;
public var AButt:MovieClip;
var ePod:int;
var dPod:int;
var eTimer:int;// = 0
var tutTimer:int;// = 0
var thisTintColour:Color;
static var tutKe:int = 0;
static var syarat1:Boolean = false;
static var syarat2:Boolean = false;
public function tutPanel(){
thisTintColour = new Color();
super();
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, eFrame);
}
function eFrame(_arg1:Event):void{
if (this != null){
stage.addChild(this);
};
if (tutKe == 0){
tutKe = 1;
};
if (tutKe == 1){
tutTimer++;
this.gotoAndStop(tutKe);
if (syarat1 == true){
trace("hijau");
mouseKlick.transform.colorTransform = thisTintColour;
thisTintColour.setTint(4278255360, 1);
};
if (syarat2 == true){
AButt.transform.colorTransform = thisTintColour;
thisTintColour.setTint(4278255360, 1);
};
if (tutTimer > 200){
syarat1 = true;
syarat2 = true;
};
if ((((syarat2 == true)) && ((syarat1 == true)))){
tutKe = 2;
syarat1 = false;
syarat2 = false;
tutTimer = 0;
};
};
if (tutKe == 2){
tutTimer++;
this.gotoAndStop(tutKe);
if (tutTimer > 200){
syarat1 = true;
};
if (syarat1 == true){
spaceButt.transform.colorTransform = thisTintColour;
thisTintColour.setTint(4278255360, 1);
tutKe = 3;
syarat1 = false;
syarat2 = false;
tutTimer = 0;
};
};
if (tutKe == 3){
tutTimer++;
this.gotoAndStop(tutKe);
if (syarat1 == true){
button1.transform.colorTransform = thisTintColour;
thisTintColour.setTint(4278255360, 1);
};
if (syarat2 == true){
button2.transform.colorTransform = thisTintColour;
thisTintColour.setTint(4278255360, 1);
};
if (tutTimer > 300){
syarat1 = true;
syarat2 = true;
};
if ((((syarat2 == true)) && ((syarat1 == true)))){
tutKe = 4;
syarat1 = false;
syarat2 = false;
tutTimer = 0;
};
};
if (tutKe == 4){
tutTimer++;
this.gotoAndStop(tutKe);
if (syarat1 == true){
tagging1.alpha = 1;
};
if (syarat2 == true){
tagging2.alpha = 1;
};
if (tutTimer > 300){
syarat1 = true;
syarat2 = true;
};
if ((((syarat1 == true)) && ((syarat2 == true)))){
tutKe = 5;
syarat1 = false;
syarat2 = false;
tutTimer = 0;
};
};
if (tutKe == 5){
tutTimer++;
this.gotoAndStop(tutKe);
if (syarat1 == true){
dock1.alpha = 1;
};
if (syarat2 == true){
dock2.alpha = 2;
};
if (tutTimer > 600){
syarat1 = true;
syarat2 = true;
GSEngine.autoShoot = true;
};
if ((((syarat1 == true)) && ((syarat2 == true)))){
tutKe = 6;
GSEngine.autoShoot = true;
};
};
if (tutKe == 6){
syarat1 = false;
syarat2 = false;
};
}
function removeThis(){
syarat1 = false;
syarat2 = false;
removeEventListener(Event.ENTER_FRAME, eFrame);
this.parent.removeChild(this);
}
function frame1(){
stop();
}
}
}//package
Section 258
//warningMP3 (warningMP3)
package {
import flash.media.*;
public dynamic class warningMP3 extends Sound {
}
}//package
Section 259
//warningNote (warningNote)
package {
import flash.display.*;
public dynamic class warningNote extends MovieClip {
public var wText:MovieClip;
public function warningNote(){
addFrameScript(35, frame36);
}
function frame36(){
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
}
}
}//package
Section 260
//warp (warp)
package {
import flash.media.*;
public dynamic class warp extends Sound {
}
}//package
Section 261
//weaponLevel (weaponLevel)
package {
import flash.display.*;
public dynamic class weaponLevel extends MovieClip {
public function weaponLevel(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 262
//weaponStatus (weaponStatus)
package {
import flash.display.*;
import flash.text.*;
public dynamic class weaponStatus extends MovieClip {
public var wEDDamage:TextField;
public var wEDAdditionalStatus:TextField;
public var wEDName:TextField;
public var wEDFireRate:TextField;
}
}//package
Section 263
//WorldMap (WorldMap)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class WorldMap extends MovieClip {
public var stage8Button:MovieClip;
public var stage9Button:MovieClip;
public var secret6G:MovieClip;
public var secret5G:MovieClip;
public var stage3ButtonG:MovieClip;
public var stage4Button:MovieClip;
public var stage2ButtonG:MovieClip;
public var stage5Button:MovieClip;
public var stage10ButtonG:MovieClip;
public var stage1ButtonG:MovieClip;
public var stage6Button:MovieClip;
public var stage7Button:MovieClip;
public var secret1:MovieClip;
public var stage7ButtonG:MovieClip;
public var secret2:MovieClip;
public var stage6ButtonG:MovieClip;
public var stage10Button:MovieClip;
public var secret3:MovieClip;
public var stage1Button:MovieClip;
public var stage5ButtonG:MovieClip;
public var secret4:MovieClip;
public var stage2Button:MovieClip;
public var stage4ButtonG:MovieClip;
public var secret5:MovieClip;
public var stage3Button:MovieClip;
public var secret6:MovieClip;
public var stageDetail:stageDetails;
public var secret3G:MovieClip;
public var secret2G:MovieClip;
public var stage9ButtonG:MovieClip;
public var secret1G:MovieClip;
public var stage8ButtonG:MovieClip;
var overStage:Sound;
static var levelArray:Array = new Array();
public function WorldMap(){
overStage = new overStages();
super();
levelArray = [1, 2];
stage1Button.stop();
stage2Button.stop();
stage3Button.stop();
stage4Button.stop();
stage5Button.stop();
stage6Button.stop();
stage7Button.stop();
stage8Button.stop();
stage9Button.stop();
stage10Button.stop();
stage1ButtonG.stop();
stage2ButtonG.stop();
stage3ButtonG.stop();
stage4ButtonG.stop();
stage5ButtonG.stop();
stage6ButtonG.stop();
stage7ButtonG.stop();
stage8ButtonG.stop();
stage9ButtonG.stop();
stage10ButtonG.stop();
secret1.stop();
secret2.stop();
secret3.stop();
secret4.stop();
secret5.stop();
secret6.stop();
stage1Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage2Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage3Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage4Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage5Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage6Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage7Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage8Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage9Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage10Button.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage1ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage2ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage3ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage4ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage5ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage6ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage7ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage8ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage9ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage10ButtonG.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage1ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage2ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage3ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage4ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage5ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage6ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage7ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage8ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage9ButtonG.addEventListener(MouseEvent.CLICK, onClick);
stage10ButtonG.addEventListener(MouseEvent.CLICK, onClick);
secret1.addEventListener(MouseEvent.ROLL_OVER, onOver);
secret2.addEventListener(MouseEvent.ROLL_OVER, onOver);
secret3.addEventListener(MouseEvent.ROLL_OVER, onOver);
secret4.addEventListener(MouseEvent.ROLL_OVER, onOver);
secret5.addEventListener(MouseEvent.ROLL_OVER, onOver);
secret6.addEventListener(MouseEvent.ROLL_OVER, onOver);
stage1Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage2Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage3Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage4Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage5Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage6Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage7Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage8Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage9Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage10Button.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage1ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage2ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage3ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage4ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage5ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage6ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage7ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage8ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage9ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
stage10ButtonG.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret1.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret2.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret3.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret4.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret5.addEventListener(MouseEvent.ROLL_OUT, onOut);
secret6.addEventListener(MouseEvent.ROLL_OUT, onOut);
addEventListener(Event.ENTER_FRAME, eFrame);
stageDetail.completed.visible = false;
stageDetail.completed2.visible = false;
stage1ButtonG.visible = false;
stage2ButtonG.visible = true;
stage3ButtonG.visible = true;
stage4ButtonG.visible = true;
stage5ButtonG.visible = true;
stage6ButtonG.visible = true;
stage7ButtonG.visible = true;
stage8ButtonG.visible = true;
stage9ButtonG.visible = true;
secret1G.visible = false;
secret2G.visible = false;
secret3G.visible = false;
secret5G.visible = false;
secret6G.visible = false;
stage1Button.visible = true;
stage2Button.visible = false;
stage3Button.visible = false;
stage4Button.visible = false;
stage5Button.visible = false;
stage6Button.visible = false;
stage7Button.visible = false;
stage8Button.visible = false;
stage9Button.visible = false;
stage10Button.visible = false;
secret1.visible = false;
secret2.visible = false;
secret3.visible = false;
secret4.visible = false;
secret5.visible = false;
secret6.visible = false;
stageDetail.visible = false;
}
function eFrame(_arg1:Event):void{
var _local2:*;
if (GSEngine.phases == "Action"){
removeThis();
};
if (GSEngine.phases == "Main"){
this.visible = false;
};
if (GSEngine.phases == "Customize"){
this.visible = true;
};
GSEngine.checkStage();
for (_local2 in GSEngine.armorArray) {
if (GSEngine.armorArray[_local2] == 2){
GSEngine.stage3Obj2 = true;
};
if (GSEngine.armorArray[_local2] == 3){
GSEngine.stage5Obj2 = true;
};
if (GSEngine.armorArray[_local2] == 4){
GSEngine.stage7Obj2 = true;
};
if (GSEngine.armorArray[_local2] == 5){
GSEngine.stage8Obj2 = true;
};
};
if (GSEngine.stage2Obj1 == false){
if ((((GSEngine.lastStagePodS > 5)) && ((GSEngine.boss1Killed == true)))){
GSEngine.stage2Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss1Killed = false;
GSEngine.stage2Obj1 = false;
};
};
if (GSEngine.stage3Obj1 == false){
if ((((GSEngine.lastStagePodS > 6)) && ((GSEngine.boss2Killed == true)))){
GSEngine.stage3Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss2Killed = false;
GSEngine.stage3Obj1 = false;
};
};
if (GSEngine.stage4Obj1 == false){
if ((((GSEngine.lastStagePodS > 7)) && ((GSEngine.boss3Killed == true)))){
GSEngine.stage4Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss3Killed = false;
GSEngine.stage4Obj1 = false;
};
};
if (GSEngine.stage5Obj1 == false){
if ((((GSEngine.lastStagePodS > 7)) && ((GSEngine.boss4Killed == true)))){
GSEngine.stage5Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss4Killed = false;
GSEngine.stage5Obj1 = false;
};
};
if (GSEngine.stage6Obj1 == false){
if ((((GSEngine.lastStagePodS > 8)) && ((GSEngine.boss5Killed == true)))){
GSEngine.stage6Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss5Killed = false;
GSEngine.stage6Obj1 = false;
};
};
if (GSEngine.stage7Obj1 == false){
if ((((GSEngine.lastStagePodS > 10)) && ((GSEngine.boss6Killed == true)))){
GSEngine.stage7Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss6Killed = false;
GSEngine.stage7Obj1 = false;
};
};
if (GSEngine.stage8Obj1 == false){
if ((((GSEngine.lastStagePodS > 12)) && ((GSEngine.boss7Killed == true)))){
GSEngine.stage8Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss7Killed = false;
GSEngine.stage8Obj1 = false;
};
};
if (GSEngine.stage9Obj1 == false){
if ((((GSEngine.lastStagePodS > 14)) && ((GSEngine.boss8Killed == true)))){
GSEngine.stage9Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss8Killed = false;
GSEngine.stage9Obj1 = false;
};
};
if (GSEngine.stage10Obj1 == false){
if ((((GSEngine.lastStagePodS > 16)) && ((GSEngine.boss9Killed == true)))){
GSEngine.stage10Obj1 = true;
GSEngine.lastStagePodS = 0;
} else {
GSEngine.boss9Killed = false;
GSEngine.stage10Obj1 = false;
};
};
if (GSEngine.stage2Obj1 == true){
GSEngine.stage2 = true;
};
if ((((GSEngine.stage3Obj1 == true)) && ((GSEngine.stage3Obj2 == true)))){
GSEngine.stage3 = true;
};
if (GSEngine.stage4Obj1 == true){
GSEngine.stage4 = true;
};
if ((((GSEngine.stage5Obj1 == true)) && ((GSEngine.stage5Obj2 == true)))){
GSEngine.stage5 = true;
};
if (GSEngine.stage6Obj1 == true){
GSEngine.stage6 = true;
};
if ((((GSEngine.stage7Obj1 == true)) && ((GSEngine.stage7Obj2 == true)))){
GSEngine.stage7 = true;
};
if ((((GSEngine.stage8Obj1 == true)) && ((GSEngine.stage8Obj2 == true)))){
GSEngine.stage8 = true;
};
if (GSEngine.stage9Obj1 == true){
GSEngine.stage9 = true;
};
if (GSEngine.stage10Obj1 == true){
GSEngine.stage10 = true;
};
if (GSEngine.stage1 == true){
stage1Button.visible = true;
};
if (GSEngine.stage2 == true){
stage2Button.visible = true;
stage2ButtonG.visible = false;
} else {
stage2Button.visible = false;
stage2ButtonG.visible = true;
};
if (GSEngine.stage3 == true){
stage3Button.visible = true;
stage3ButtonG.visible = false;
} else {
stage3Button.visible = false;
stage3ButtonG.visible = true;
};
if (GSEngine.stage4 == true){
stage4Button.visible = true;
stage4ButtonG.visible = false;
} else {
stage4Button.visible = false;
stage4ButtonG.visible = true;
};
if (GSEngine.stage5 == true){
stage5Button.visible = true;
stage5ButtonG.visible = false;
} else {
stage5Button.visible = false;
stage5ButtonG.visible = true;
};
if (GSEngine.stage6 == true){
stage6Button.visible = true;
stage6ButtonG.visible = false;
} else {
stage6Button.visible = false;
stage6ButtonG.visible = true;
};
if (GSEngine.stage7 == true){
stage7Button.visible = true;
stage7ButtonG.visible = false;
} else {
stage7Button.visible = false;
stage7ButtonG.visible = true;
};
if (GSEngine.stage8 == true){
stage8Button.visible = true;
stage8ButtonG.visible = false;
} else {
stage8Button.visible = false;
stage8ButtonG.visible = true;
};
if (GSEngine.stage9 == true){
stage9Button.visible = true;
stage9ButtonG.visible = false;
} else {
stage9Button.visible = false;
stage9ButtonG.visible = true;
};
if (GSEngine.stage10 == true){
stage10Button.visible = true;
stage10ButtonG.visible = false;
} else {
stage10Button.visible = false;
stage10ButtonG.visible = true;
};
}
public function removeThis(){
stage1Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage2Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage3Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage4Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage5Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage6Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage7Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage8Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage9Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage10Button.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage1ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage2ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage3ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage4ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage5ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage6ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage7ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage8ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage9ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage10ButtonG.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage1ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage2ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage3ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage4ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage5ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage6ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage7ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage8ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage9ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
stage10ButtonG.removeEventListener(MouseEvent.CLICK, onClick);
secret1.removeEventListener(MouseEvent.ROLL_OVER, onOver);
secret2.removeEventListener(MouseEvent.ROLL_OVER, onOver);
secret3.removeEventListener(MouseEvent.ROLL_OVER, onOver);
secret4.removeEventListener(MouseEvent.ROLL_OVER, onOver);
secret5.removeEventListener(MouseEvent.ROLL_OVER, onOver);
secret6.removeEventListener(MouseEvent.ROLL_OVER, onOver);
stage1Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage2Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage3Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage4Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage5Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage6Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage7Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage8Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage9Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage10Button.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage1ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage2ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage3ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage4ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage5ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage6ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage7ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage8ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage9ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
stage10ButtonG.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret1.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret2.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret3.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret4.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret5.removeEventListener(MouseEvent.ROLL_OUT, onOut);
secret6.removeEventListener(MouseEvent.ROLL_OUT, onOut);
if (((!((this == null))) && (!((this.parent == null))))){
this.parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, eFrame);
}
function onOver(_arg1:MouseEvent):void{
stageDetail.visible = true;
_arg1.target.play();
if (GSEngine.sound == true){
overStage.play();
};
if ((((_arg1.target == this.stage1Button)) || ((_arg1.target == this.stage1ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.namaStage.text = "FAR' NARRIA";
stageDetail.stageDetail.text = "The birthplace of the ancient Azurian civilization is defended by the special Guardian Star craft.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
if (GSEngine.stage2Obj1 == true){
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
};
if (GSEngine.stage2Obj1 == false){
stageDetail.reqPod.text = "SAVE 5 PODS TO UNLOCK NARRIA PLAIN";
stageDetail.tempDet.visible = true;
stageDetail.reqPod.visible = true;
if (GSEngine.stage1 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage1 == false){
stageDetail.rekor.visible = false;
};
};
};
if ((((_arg1.target == this.stage2Button)) || ((_arg1.target == this.stage2ButtonG)))){
stageDetail.reqPod.text = "SAVE 6 PODS TO UNLOCK EK' WANA FOREST";
stageDetail.namaStage.text = "NARRIA PLAIN";
stageDetail.stageDetail.text = "The city stretches out to the great grassland plains. Many people live in this area.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
stageDetail.reqPod2.text = "PURCHASE ALDEBARAN ARMOR";
stageDetail.rekor.visible = false;
stageDetail.reqPod2.visible = true;
if ((((GSEngine.stage3Obj1 == true)) && ((GSEngine.stage3Obj2 == true)))){
stageDetail.completed.visible = false;
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = false;
stageDetail.completed2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.reqPod2.visible = false;
};
if ((((GSEngine.stage3Obj1 == false)) && ((GSEngine.stage3Obj2 == false)))){
if (GSEngine.stage2 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage2 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage3Obj1 == true)) && ((GSEngine.stage3Obj2 == false)))){
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = true;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage3Obj1 == false)) && ((GSEngine.stage3Obj2 == true)))){
if (GSEngine.stage2 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage2 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = true;
stageDetail.reqPod.visible = true;
};
};
if ((((_arg1.target == this.stage3Button)) || ((_arg1.target == this.stage3ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.reqPod.text = "SAVE 7 PODS TO UNLOCK MAR' KAPURA";
stageDetail.namaStage.text = "EK' WANA FOREST";
stageDetail.stageDetail.text = "No one goes to this forbidden forest. It is rumored to be the home of the mystic Ek' Wana.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
if (GSEngine.stage4Obj1 == true){
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
} else {
stageDetail.tempDet.visible = true;
stageDetail.reqPod.visible = true;
if (GSEngine.stage3 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage3 == false){
stageDetail.rekor.visible = false;
};
};
};
if ((((_arg1.target == this.stage4Button)) || ((_arg1.target == this.stage4ButtonG)))){
stageDetail.reqPod.text = "SAVE 7 PODS TO UNLOCK KHALEONIA HIGHLAND";
stageDetail.namaStage.text = "MAR' KAPURA";
stageDetail.stageDetail.text = "At the far edge of the forest lies a giant waterfall flowing down the mountain slopes.";
stageDetail.reqPod2.text = "PURCHASE NEUTRON STAR ARMOR";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
stageDetail.rekor.visible = false;
stageDetail.reqPod2.visible = true;
if ((((GSEngine.stage5Obj1 == true)) && ((GSEngine.stage5Obj2 == true)))){
stageDetail.completed.visible = false;
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = false;
stageDetail.completed2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.reqPod2.visible = false;
};
if ((((GSEngine.stage5Obj1 == false)) && ((GSEngine.stage5Obj2 == false)))){
if (GSEngine.stage4 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage4 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage5Obj1 == true)) && ((GSEngine.stage5Obj2 == false)))){
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = true;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage5Obj1 == false)) && ((GSEngine.stage5Obj2 == true)))){
if (GSEngine.stage4 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage4 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = true;
stageDetail.reqPod.visible = true;
};
};
if ((((_arg1.target == this.stage5Button)) || ((_arg1.target == this.stage5ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.reqPod.text = "SAVE 8 PODS TO UNLOCK AZURIA'S CEILING";
stageDetail.namaStage.text = "KHALEONIA HIGHLAND";
stageDetail.stageDetail.text = "The flying mountain range of Khaleonia is home to thousands of ferocious winged creatures called the Khal.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
if (GSEngine.stage6Obj1 == true){
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
} else {
stageDetail.tempDet.visible = true;
stageDetail.reqPod.visible = true;
if (GSEngine.stage5 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage5 == false){
stageDetail.rekor.visible = false;
};
};
};
if ((((_arg1.target == this.stage6Button)) || ((_arg1.target == this.stage6ButtonG)))){
stageDetail.reqPod.text = "SAVE 10 PODS TO UNLOCK THE STRATOSPHERE";
stageDetail.namaStage.text = "AZURIA'S CEILING";
stageDetail.stageDetail.text = "Strange and unexplained phenomena occur in the upper part of Khaleonia's mountain range.";
stageDetail.reqPod2.text = "PURCHASE CENTAURI ARMOR";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
stageDetail.rekor.visible = false;
stageDetail.reqPod2.visible = true;
if ((((GSEngine.stage7Obj1 == true)) && ((GSEngine.stage7Obj2 == true)))){
stageDetail.completed.visible = false;
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = false;
stageDetail.completed2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.reqPod2.visible = false;
};
if ((((GSEngine.stage7Obj1 == false)) && ((GSEngine.stage7Obj2 == false)))){
if (GSEngine.stage6 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage6 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage7Obj1 == true)) && ((GSEngine.stage7Obj2 == false)))){
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = true;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage7Obj1 == false)) && ((GSEngine.stage7Obj2 == true)))){
if (GSEngine.stage6 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage6 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = true;
};
};
if ((((_arg1.target == this.stage7Button)) || ((_arg1.target == this.stage7ButtonG)))){
stageDetail.reqPod.text = "SAVE 12 PODS TO UNLOCK ORBITAL BLOCKADE";
stageDetail.namaStage.text = "THE STRATOSPHERE";
stageDetail.stageDetail.text = "It is dangerous to engage enemies in the outer layer of Azuria's atmosphere.";
stageDetail.reqPod2.text = "PURCHASE DARK STAR ARMOR";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
stageDetail.rekor.visible = false;
stageDetail.reqPod2.visible = true;
if ((((GSEngine.stage8Obj1 == true)) && ((GSEngine.stage8Obj2 == true)))){
stageDetail.completed.visible = false;
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = false;
stageDetail.completed2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.reqPod2.visible = false;
};
if ((((GSEngine.stage8Obj1 == false)) && ((GSEngine.stage8Obj2 == false)))){
if (GSEngine.stage7 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage7 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage8Obj1 == true)) && ((GSEngine.stage8Obj2 == false)))){
stageDetail.rekor.visible = false;
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = true;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = false;
stageDetail.reqPod.visible = true;
};
if ((((GSEngine.stage8Obj1 == false)) && ((GSEngine.stage8Obj2 == true)))){
if (GSEngine.stage7 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage7 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.completed.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.tempDet2.visible = true;
stageDetail.completed2.visible = true;
stageDetail.reqPod.visible = true;
};
};
if ((((_arg1.target == this.stage8Button)) || ((_arg1.target == this.stage8ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.reqPod.text = "SAVE 14 PODS TO UNLOCK SKY JUNKYARD";
stageDetail.namaStage.text = "ORBITAL BLOCKADE";
stageDetail.stageDetail.text = "The Shrazaaks have are in orbit with their massive army to prevent any escape.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
if (GSEngine.stage9Obj1 == true){
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
} else {
if (GSEngine.stage8 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage8 == false){
stageDetail.rekor.visible = false;
};
stageDetail.tempDet.visible = true;
stageDetail.reqPod.visible = true;
};
};
if ((((_arg1.target == this.stage9Button)) || ((_arg1.target == this.stage9ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.reqPod.text = "SAVE 16 PODS TO UNLOCK FAR' LOUNGA";
stageDetail.namaStage.text = "SKY JUNKYARD";
stageDetail.stageDetail.text = "The remnants of stellar wars long past. Sometimes precious items can be salvaged from the debris.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
if (GSEngine.stage10Obj1 == true){
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
} else {
stageDetail.tempDet.visible = true;
stageDetail.reqPod.visible = true;
if (GSEngine.stage9 == true){
stageDetail.rekor.visible = true;
};
if (GSEngine.stage9 == false){
stageDetail.rekor.visible = false;
};
};
};
if ((((_arg1.target == this.stage10Button)) || ((_arg1.target == this.stage10ButtonG)))){
stageDetail.tempDet2.visible = false;
stageDetail.reqPod2.visible = false;
stageDetail.rekor2.visible = false;
stageDetail.completed2.visible = false;
stageDetail.completed.visible = false;
stageDetail.tempDet.visible = false;
stageDetail.reqPod.visible = false;
stageDetail.rekor.visible = false;
stageDetail.reqPod.text = "";
stageDetail.namaStage.text = "FAR' LOUNGA";
stageDetail.stageDetail.text = "Nobody knows who built this ancient portal, but one thing that is certain is that it is linked to the center of the galaxy.";
stageDetail.rekor.text = ("BEST RECORD: " + GSEngine.lastStagePodS.toString());
};
if ((((_arg1.target == secret1)) || ((_arg1.target == this.secret1G)))){
stageDetail.namaStage.text = "Far' Naria Border";
stageDetail.stageDetail.text = "There is suburban in this area, save as many survivor as you can";
} else {
if ((((_arg1.target == secret2)) || ((_arg1.target == this.secret2G)))){
stageDetail.namaStage.text = "Wild Ek Jungle";
stageDetail.stageDetail.text = "There is a roumor that say something about ancient civilization in this area";
} else {
if ((((_arg1.target == secret3)) || ((_arg1.target == this.secret3G)))){
stageDetail.namaStage.text = "Waynaria Baya";
stageDetail.stageDetail.text = "Old abandoned national conservation area, we need to received some data from the information center";
} else {
if (_arg1.target == secret4){
stageDetail.namaStage.text = "Sky Fortres of Jounha";
stageDetail.stageDetail.text = "The secret flying fortres of Jounha, house of the legendary Sky people. We need to save them to";
} else {
if ((((_arg1.target == secret5)) || ((_arg1.target == this.secret5G)))){
stageDetail.namaStage.text = "Orbital Outpost";
stageDetail.stageDetail.text = "Make sure this outpost is clear, we don't want to lost anymore survivor";
} else {
if ((((_arg1.target == secret6)) || ((_arg1.target == this.secret6G)))){
stageDetail.namaStage.text = "Mother Ship";
stageDetail.stageDetail.text = "They hold some hostage at the mother ship, just fly through the fleet and save the survivor";
};
};
};
};
};
};
}
function onClick(_arg1:MouseEvent):void{
stageDetail.podIndi.play();
}
function onOut(_arg1:MouseEvent):void{
stageDetail.visible = false;
_arg1.target.gotoAndStop(1);
stageDetail.namaStage.text = "";
stageDetail.stageDetail.text = "";
}
}
}//package