Section 1
//Key (com.greenhermit.key.Key)
package com.greenhermit.key {
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;
};
}
private static function clearKeys(_arg1:Event):void{
keysDown = new Object();
}
public static function isDown(_arg1:uint):Boolean{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
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];
};
}
}
}//package com.greenhermit.key
Section 2
//GHGhostMove (com.greenhermit.motion.GHGhostMove)
package com.greenhermit.motion {
import flash.display.*;
import com.greenhermit.object.*;
public class GHGhostMove extends GHMotion {
public var framecount:Number;
public var timedetect;
public var sleep;
public var locktarget:MovieClip;
public function GHGhostMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip, _arg6:Number, _arg7:GHObject):void{
_arg7.x = (_arg7.px = _arg1);
_arg7.y = (_arg7.py = _arg2);
_arg7.speed = _arg6;
this.locktarget = _arg5;
this.timedetect = _arg4;
this.sleep = _arg3;
this.framecount = 0;
}
override public function process():void{
framecount++;
if ((((framecount < timedetect)) || ((timedetect < 0)))){
if ((framecount % sleep) == 0){
control.ang = ((Math.atan2((this.locktarget.y - control.py), (this.locktarget.x - control.px)) * 180) / Math.PI);
this.speedx = (control.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (control.speed * Math.sin(((control.ang * Math.PI) / 180)));
};
} else {
framecount = timedetect;
};
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 3
//GHHomingMove (com.greenhermit.motion.GHHomingMove)
package com.greenhermit.motion {
import flash.display.*;
import flash.events.*;
import com.greenhermit.object.*;
public class GHHomingMove extends GHMotion {
public var stoprotation:Boolean;
private var framecount:Number;
private var lockcount;
private var speed;
private var rndpor;
private var timedetect;
public var locktarget:MovieClip;
public function GHHomingMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:MovieClip, _arg7:GHObject):void{
this.control = _arg7;
_arg7.x = (_arg7.px = _arg1);
_arg7.y = (_arg7.py = _arg2);
_arg7.ang = _arg3;
_arg7.speed = _arg5;
_arg7.sleep = 1000;
this.speed = (_arg7.speed / 2);
this.stoprotation = true;
this.lockcount = 0;
this.framecount = 0;
this.locktarget = _arg6;
this.timedetect = _arg4;
_arg7.graphics.beginFill(0xFF0000, 0);
_arg7.graphics.lineStyle(1, 0xFF0000, 0);
_arg7.graphics.moveTo(0, 0);
_arg7.graphics.lineTo(640, -100);
_arg7.graphics.lineTo(640, 100);
_arg7.graphics.lineTo(0, 0);
_arg7.graphics.endFill();
rndpor = (((Math.random() * 100))<50) ? 1 : -1;
this.speedx = (this.speed * Math.cos(((_arg7.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((_arg7.ang * Math.PI) / 180)));
}
override public function process():void{
this.lockcount++;
this.framecount++;
if ((((this.framecount < this.timedetect)) || ((this.timedetect == -1)))){
if ((((this.lockcount > (60 / (control.speed / 5)))) || ((this.lockcount > control.sleep)))){
this.lockcount = 0;
this.stoprotation = false;
control.graphics.clear();
control.graphics.beginFill(0xFF0000, 0);
control.graphics.lineStyle(1, 0xFF0000, 0);
control.graphics.moveTo(0, 0);
control.graphics.lineTo(640, -100);
control.graphics.lineTo(640, 100);
control.graphics.lineTo(0, 0);
control.graphics.endFill();
this.speed = (control.speed / 2);
};
} else {
this.framecount = this.timedetect;
};
if (((!((this.locktarget == null))) && (!(this.stoprotation)))){
if (((((((control.hitTestPoint((this.locktarget.x - (this.locktarget.width / 2)), this.locktarget.y, true)) || (control.hitTestPoint((this.locktarget.x + (this.locktarget.width / 2)), this.locktarget.y, true)))) || (control.hitTestPoint(this.locktarget.x, (this.locktarget.y + (this.locktarget.height / 2)), true)))) || (control.hitTestPoint(this.locktarget.x, (this.locktarget.y - (this.locktarget.height / 2)), true)))){
control.ang = ((Math.atan2((this.locktarget.y - control.py), (this.locktarget.x - control.px)) * 180) / Math.PI);
this.stoprotation = true;
this.speed = control.speed;
control.graphics.clear();
rndpor = (((Math.random() * 100))<50) ? 1 : -1;
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
};
};
if (!this.stoprotation){
control.ang = (control.ang + ((rndpor * control.speed) / 1.5));
this.speed = (control.speed / 2);
this.speedx = ((this.speed / 1.1) * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = ((this.speed / 1.1) * Math.sin(((control.ang * Math.PI) / 180)));
};
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 4
//GHLineMove (com.greenhermit.motion.GHLineMove)
package com.greenhermit.motion {
import flash.display.*;
import com.greenhermit.object.*;
public class GHLineMove extends GHMotion {
public var py2:Number;
public var px2;
public var locktarget:MovieClip;
public function GHLineMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:MovieClip, _arg7:Number, _arg8:GHObject):void{
_arg8.x = (_arg8.px = _arg1);
_arg8.y = (_arg8.py = _arg2);
_arg8.speed = _arg7;
_arg8.ang = _arg5;
this.px2 = _arg3;
this.py2 = _arg4;
this.locktarget = _arg6;
if (_arg8.ang >= 0){
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
} else {
if (this.locktarget != null){
_arg8.ang = ((Math.atan2((this.locktarget.y - _arg8.py), (this.locktarget.x - _arg8.px)) * 180) / Math.PI);
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
} else {
_arg8.ang = ((Math.atan2((this.py2 - _arg8.py), (this.px2 - _arg8.px)) * 180) / Math.PI);
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
};
};
}
override public function process():void{
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 5
//GHMotion (com.greenhermit.motion.GHMotion)
package com.greenhermit.motion {
import com.greenhermit.object.*;
public class GHMotion {
public var amp:Number;
public var speedx;
public var speedy;
public var control:GHObject;
public function GHMotion():void{
speedx = 0;
speedy = 0;
amp = 1;
}
public function process():void{
control.px = (Math.random() * 640);
control.py = (Math.random() * 480);
}
public function Applyspeed():void{
control.px = (control.px + (this.speedx * this.amp));
control.py = (control.py + (this.speedy * this.amp));
}
}
}//package com.greenhermit.motion
Section 6
//GHTimeRandomMove (com.greenhermit.motion.GHTimeRandomMove)
package com.greenhermit.motion {
import com.greenhermit.object.*;
public class GHTimeRandomMove extends GHMotion {
public var anglestage;
public var framecount:Number;
public var sleep;
public var speed;
public function GHTimeRandomMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:GHObject):void{
anglestage = new Array(90, 270);
super();
_arg6.x = (_arg6.px = _arg1);
_arg6.y = (_arg6.py = _arg2);
_arg6.speed = _arg4;
this.sleep = _arg3;
this.framecount = 0;
_arg6.ang = _arg5;
this.speedx = (_arg6.speed * Math.cos(((_arg6.ang * Math.PI) / 180)));
this.speedy = (_arg6.speed * Math.sin(((_arg6.ang * Math.PI) / 180)));
this.speed = ((_arg6.speed * this.sleep) / 8);
}
override public function process():void{
var _local1:*;
framecount++;
if ((framecount % sleep) == 0){
_local1 = control.ang;
this.speed = ((control.speed * this.sleep) / 8);
control.ang = ((control.ang + anglestage[int((Math.random() * 2))]) % 360);
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
framecount = 0;
};
this.speed = (this.speed - (control.speed / 8));
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 7
//GHObject (com.greenhermit.object.GHObject)
package com.greenhermit.object {
import flash.display.*;
import flash.events.*;
import com.greenhermit.motion.*;
import flash.text.*;
public dynamic class GHObject extends MovieClip {
public const GH_TEAM_D = 8;
public const GH_TEAM_E = 16;
public const GH_TEAM_G = 64;
public const GH_TEAM_H = 128;
public const GH_ALLTEAM = 35184372088831;
public const GH_BOSS = 0x0800;
public const GH_TEAM_F = 32;
public const GH_BULLET = 0x0400;
public const GH_TEAM_C = 4;
public const GH_ENEMY = 0x0200;
public const GH_UNTEAM = 0;
public const GH_TEAM_A = 1;
public const GH_TEAM_B = 2;
public const GH_PLAYER = 0x0100;
public var subspeed;
public var py:Number;
public var px:Number;
public var checkin:MovieClip;
public var hitactive:Boolean;
public var team;
public var speed;
public var dxy;
public var process;
public var subindex:Number;
public var ux;
public var uy;
public var attackteam:Number;
public var hitObject;
public var mcount:Number;
public var submot:Array;
public var hp:Number;
public var anglesnap:Boolean;
public var mpx;
public var mpy;
public var range:Number;
public var motionobj:GHMotion;
public var ang:Number;
public function GHObject():void{
var _local1:*;
hitObject = function (_arg1, _arg2:MovieClip){
};
process = function (_arg1:MovieClip){
};
super();
this.motionobj = null;
px = 0;
py = 0;
ang = 0;
speed = 0;
subspeed = 0;
subindex = 0;
mcount = 0;
dxy = 0;
mpx = 0;
mpy = 0;
hitactive = true;
anglesnap = true;
this.team = GH_UNTEAM;
this.attackteam = GH_UNTEAM;
this.checkin = null;
this.range = 0;
_local1 = new Shape();
_local1.name = "hit";
this.addChild(_local1);
}
public function setRange(_arg1:Number, _arg2:Boolean){
var _local3:*;
this.range = _arg1;
if (_arg2){
_local3 = this.getChildByName("hit");
_local3.graphics.clear;
_local3.graphics.beginFill(0xFF0000, 0.3);
_local3.graphics.drawCircle(0, 0, this.range);
_local3.graphics.endFill();
_local3.name = "hit";
this.addChild(_local3);
};
}
public function setMotion(_arg1:GHMotion){
if (_arg1 != null){
this.motionobj = GHMotion(_arg1);
this.motionobj.control = this;
if (anglesnap){
this.motionobj.control.rotation = this.motionobj.control.ang;
};
};
}
public function updatePosition(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (submot != null){
if (submot.length < ((subindex + 1) * 2)){
subindex = 0;
mpx = 0;
mpy = 0;
mcount = 0;
dxy = 0;
ux = 0;
uy = 0;
};
if ((mcount * subspeed) >= dxy){
_local1 = submot[(subindex * 2)];
_local2 = submot[((subindex * 2) + 1)];
_local3 = submot[((subindex + 1) * 2)];
_local4 = submot[(((subindex + 1) * 2) + 1)];
_local5 = (_local3 - _local1);
_local6 = (_local4 - _local2);
if (_local3 != null){
dxy = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
ux = (_local5 / dxy);
uy = (_local6 / dxy);
} else {
ux = 0;
uy = 0;
};
mcount = 0;
subindex++;
};
mcount++;
this.mpx = (this.mpx + (subspeed * this.ux));
this.mpy = (this.mpy + (subspeed * this.uy));
this.x = (this.px + this.mpx);
this.y = (this.py + this.mpy);
} else {
this.x = this.px;
this.y = this.py;
};
}
public function hitable(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
this.hitactive = true;
this.team = _arg1;
this.attackteam = _arg2;
this.checkin = _arg4;
setRange(_arg3, false);
}
public function enterFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:GHObject;
var _local6:*;
if (this.visible){
this.process(this);
if (this.motionobj != null){
this.motionobj.process();
};
if (((hitactive) && (checkin))){
_local6 = 0;
while (_local6 < checkin.numChildren) {
if ((checkin.getChildAt(_local6) is GHObject)){
_local5 = GHObject(checkin.getChildAt(_local6));
if ((this.attackteam & _local5.team) > 0){
if (((((!((this == _local5))) && (_local5.hitactive))) && (_local5.visible))){
_local2 = (this.x - _local5.x);
_local3 = (this.y - _local5.y);
_local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3)));
if (_local4 < (this.range + _local5.range)){
hitObject(this, _local5);
};
};
};
};
_local6++;
};
};
if (this.anglesnap){
this.rotation = this.ang;
};
};
}
}
}//package com.greenhermit.object
Section 8
//GHObjectV2 (com.greenhermit.object.GHObjectV2)
package com.greenhermit.object {
import flash.display.*;
import flash.events.*;
import com.greenhermit.motion.*;
public dynamic class GHObjectV2 extends GHObject {
public var callbackframe:Array;
public var b_homing:MovieClip;
public var b_laser:MovieClip;
public var b_next:SimpleButton;
public var b_rapid:MovieClip;
public var power:Number;
private var objectcount:Number;
public var b_floating:MovieClip;
public var pirece:Boolean;
public var onRemove;
public var onCallBack;
public var b_strom:MovieClip;
public var framecount:Number;
public function GHObjectV2():void{
onCallBack = function (_arg1:Number, _arg2:GHObject){
};
onRemove = function (_arg1:Number, _arg2:GHObject){
};
super();
this.power = 0;
this.callbackframe = new Array(-1, -1, -1);
this.framecount = 0;
this.pirece = true;
}
public function normalCallBack(_arg1:Number, _arg2){
if (_arg1 == 0){
this.visible = false;
onRemove(0, _arg2);
} else {
if (_arg1 == 1){
this.hitactive = true;
} else {
if (_arg1 == 2){
this.hitactive = false;
};
};
};
}
public function setSpeed(_arg1:Number){
var _local2:*;
var _local3:*;
var _local4:*;
this.speed = _arg1;
if (motionobj != null){
_local2 = (this.motionobj.speedx * this.motionobj.speedx);
_local3 = (this.motionobj.speedy * this.motionobj.speedy);
_local4 = Math.sqrt((_local2 + _local3));
this.motionobj.speedx = ((this.motionobj.speedx / _local4) * this.speed);
this.motionobj.speedy = ((this.motionobj.speedy / _local4) * this.speed);
};
}
override public function enterFrame(_arg1:Event):void{
var _local2:*;
super.enterFrame(_arg1);
this.framecount++;
_local2 = 0;
while (_local2 < this.callbackframe.length) {
if (this.framecount == this.callbackframe[_local2]){
onCallBack(_local2, this);
};
_local2++;
};
}
public function setNormal(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean, _arg6:GHMotion){
this.hitactive = false;
this.callbackframe[0] = _arg1;
this.callbackframe[1] = _arg2;
this.callbackframe[2] = _arg3;
this.power = _arg4;
this.pirece = _arg5;
this.onCallBack = this.normalCallBack;
setMotion(_arg6);
}
}
}//package com.greenhermit.object
Section 9
//FlashGame (com.greenhermit.template.FlashGame)
package com.greenhermit.template {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import com.greenhermit.*;
public dynamic class FlashGame extends GHGameFlash {
public var GH_enterframeuse:Boolean;
public var GHEnterFrame;
public var chrep:TextField;
public var bg:MovieClip;
public var GH_stopgame:Boolean;
public function FlashGame():void{
GHEnterFrame = function (){
};
super();
this.GH_enterframeuse = false;
this.GH_stopgame = false;
}
override public function enterFrame(_arg1:Event):void{
if (!GH_stopgame){
super.enterFrame(_arg1);
if (this.GH_enterframeuse){
GHEnterFrame();
};
};
}
}
}//package com.greenhermit.template
Section 10
//GHGameFlash (com.greenhermit.GHGameFlash)
package com.greenhermit {
import flash.display.*;
import flash.events.*;
import com.greenhermit.object.*;
public class GHGameFlash extends MovieClip {
public function GHGameFlash():void{
addEventListener(Event.ENTER_FRAME, enterFrame);
}
public function enterFrame(_arg1:Event):void{
var _local2:*;
stage.focus = this;
_local2 = 0;
while (_local2 < this.numChildren) {
if ((this.getChildAt(_local2) is GHObject)){
GHObject(this.getChildAt(_local2)).enterFrame(_arg1);
GHObject(this.getChildAt(_local2)).updatePosition();
};
_local2++;
};
_local2 = 0;
while (_local2 < this.numChildren) {
if ((this.getChildAt(_local2) is GHObject)){
if (!this.getChildAt(_local2).visible){
GHObject(this.getChildAt(_local2)).motionobj = null;
delete ??getglobalscope
[this.getChildAt(_local2)];
this.removeChild(this.getChildAt(_local2));
};
};
_local2++;
};
}
}
}//package com.greenhermit
Section 11
//bar_root_18 (core_071018c_PB_fla.bar_root_18)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package core_071018c_PB_fla
Section 12
//BG_2 (core_071018c_PB_fla.BG_2)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package core_071018c_PB_fla
Section 13
//LOGOEND_43 (core_071018c_PB_fla.LOGOEND_43)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package core_071018c_PB_fla
Section 14
//LOGOPRELOAD_0_23 (core_071018c_PB_fla.LOGOPRELOAD_0_23)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 15
//LOGOPRELOAD_1_27 (core_071018c_PB_fla.LOGOPRELOAD_1_27)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 16
//LOGOPRELOAD_2_30 (core_071018c_PB_fla.LOGOPRELOAD_2_30)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 17
//LOGOPRELOAD_3_32 (core_071018c_PB_fla.LOGOPRELOAD_3_32)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 18
//LOGOPRELOAD_4_34 (core_071018c_PB_fla.LOGOPRELOAD_4_34)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 19
//LOGOPRELOAD_5_36 (core_071018c_PB_fla.LOGOPRELOAD_5_36)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 20
//LOGOPRELOAD_6_38 (core_071018c_PB_fla.LOGOPRELOAD_6_38)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 21
//LOGOPRELOAD_7_40 (core_071018c_PB_fla.LOGOPRELOAD_7_40)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package core_071018c_PB_fla
Section 22
//MainTimeline (core_071018c_PB_fla.MainTimeline)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var rarep:TextField;
public var highScore;
public var bhighscore:SimpleButton;
public var lasrep:TextField;
public var b_homing:MovieClip;
public var playerhpgage:MovieClip;
public var itutor:gui_dia_tutorial;
public var stromrep:TextField;
public var hprep:TextField;
public var homrep:TextField;
public var levelrep:TextField;
public var b_mfz:SimpleButton;
public var b_laser:MovieClip;
public var floatrep:TextField;
public var now;
public var stagerep:TextField;
public var b_rapid:MovieClip;
public var EPOCH_TIME;
public var ishop:shop;
public var moreGame;
public var replife:TextField;
public var bmoregame:SimpleButton;
public var b_preload:SimpleButton;
public var igameover:MovieClip;
public var b_preloadRelease;
public var b_floating:MovieClip;
public var bstart:Bgui_start;
public var rscore:TextField;
public var idestroy:MovieClip;
public var startGame;
public var iclear:MovieClip;
public var rmoney:TextField;
public var b_strom:MovieClip;
public var isubmit:MovieClip;
public var iend:end;
public var igame:game;
public var imouse:cair;
public var bosshpgage:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 3, frame4, 19, frame20, 20, frame21);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame4(){
}
function frame1(){
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
}
function frame21(){
if (getChildByName("iclear") != null){
getChildByName("iclear").visible = false;
};
if (getChildByName("iend") != null){
getChildByName("iend").visible = false;
};
if (getChildByName("isubmit") != null){
getChildByName("isubmit").visible = false;
};
if (getChildByName("igameover") != null){
getChildByName("igameover").visible = false;
};
if (getChildByName("ishop") != null){
getChildByName("ishop").visible = false;
};
if (getChildByName("igame") != null){
getChildByName("igame").visible = true;
};
if (getChildByName("itutor") != null){
getChildByName("itutor").visible = false;
};
if (getChildByName("itutor_test") != null){
getChildByName("itutor_test").visible = false;
};
if (getChildByName("imouse") != null){
getChildByName("imouse").visible = false;
};
if (getChildByName("idestroy") != null){
getChildByName("idestroy").visible = false;
};
stop();
now = new Date();
EPOCH_TIME = now.getTime();
}
function frame20(){
startGame = function (_arg1):void{
gotoAndStop(1, "Game");
};
getChildByName("bstart").addEventListener(MouseEvent.CLICK, startGame);
moreGame = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
};
getChildByName("bmoregame").addEventListener(MouseEvent.CLICK, moreGame);
b_mfz.addEventListener("mouseUp", moreGame);
highScore = function (_arg1):void{
getURL("http://www.mofunzone.com/game_scores/core/highscores.shtml", "_blank");
};
getChildByName("bhighscore").addEventListener(MouseEvent.CLICK, highScore);
stop();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
}
}//package core_071018c_PB_fla
Section 23
//Mdia_game_over_134 (core_071018c_PB_fla.Mdia_game_over_134)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Mdia_game_over_134 extends MovieClip {
public function Mdia_game_over_134(){
addFrameScript(0, frame1, 94, frame95);
}
function frame95(){
MovieClip(parent).isubmit.visible = true;
MovieClip(parent).isubmit.play();
visible = false;
Mouse.show();
stop();
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 24
//Mdia_stage_over_135 (core_071018c_PB_fla.Mdia_stage_over_135)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Mdia_stage_over_135 extends MovieClip {
public var g;
public function Mdia_stage_over_135(){
addFrameScript(0, frame1, 94, frame95);
}
function frame95(){
g = MovieClip(parent).igame;
if (g.levelcount != 15){
MovieClip(parent).ishop.visible = true;
} else {
MovieClip(parent).iend.visible = true;
MovieClip(parent).iend.gotoAndPlay(2);
};
Mouse.show();
visible = false;
stop();
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 25
//Mdia_submit_score_129 (core_071018c_PB_fla.Mdia_submit_score_129)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Mdia_submit_score_129 extends MovieClip {
public var bsubmit:SimpleButton;
public var playername:TextField;
public var bplaymore:SimpleButton;
public var at_mfz;
public var playMoreGame;
public var g;
public var b_at_mfz:SimpleButton;
public var score:TextField;
public var bmenu:SimpleButton;
public var menuGame;
public function Mdia_submit_score_129(){
addFrameScript(0, frame1, 1, frame2);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame1(){
stop();
}
function frame2(){
g = MovieClip(parent).igame;
score.text = g.player.score;
Mouse.show();
MovieClip(parent).imouse.visible = false;
menuGame = function (_arg1):void{
SoundMixer.stopAll();
MovieClip(parent).gotoAndStop(1, "Title");
};
getChildByName("bmenu").addEventListener(MouseEvent.CLICK, menuGame);
at_mfz = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/core.shtml", "_blank");
SoundMixer.stopAll();
MovieClip(parent).gotoAndStop(1, "Title");
};
getChildByName("b_at_mfz").addEventListener(MouseEvent.CLICK, at_mfz);
playMoreGame = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
SoundMixer.stopAll();
MovieClip(parent).gotoAndStop(1, "Title");
};
getChildByName("bplaymore").addEventListener(MouseEvent.CLICK, playMoreGame);
stop();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
}
}//package core_071018c_PB_fla
Section 26
//Mgfx_core_burst_91 (core_071018c_PB_fla.Mgfx_core_burst_91)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_core_burst_91 extends MovieClip {
public function Mgfx_core_burst_91(){
addFrameScript(0, frame1, 2, frame3, 4, frame5, 6, frame7, 8, frame9, 10, frame11, 12, frame13, 14, frame15, 16, frame17, 19, frame20, 22, frame23, 26, frame27, 30, frame31, 34, frame35, 36, frame37, 40, frame41);
}
function frame3(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame15(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame7(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame1(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame13(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame17(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame5(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame9(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame20(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame27(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame23(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame37(){
root.x = 0;
root.y = 0;
}
function frame31(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame11(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame35(){
root.x = ((Math.random() * 10) - (10 / 2));
root.y = ((Math.random() * 10) - (10 / 2));
}
function frame41(){
stop();
root.x = 0;
root.y = 0;
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 27
//Mgfx_dark_strom_flake_97 (core_071018c_PB_fla.Mgfx_dark_strom_flake_97)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_dark_strom_flake_97 extends MovieClip {
public function Mgfx_dark_strom_flake_97(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 28
//Mgfx_ene_bullet_flake_95 (core_071018c_PB_fla.Mgfx_ene_bullet_flake_95)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_ene_bullet_flake_95 extends MovieClip {
public function Mgfx_ene_bullet_flake_95(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 29
//Mgfx_ene_bullet_flake02_96 (core_071018c_PB_fla.Mgfx_ene_bullet_flake02_96)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_ene_bullet_flake02_96 extends MovieClip {
public function Mgfx_ene_bullet_flake02_96(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 30
//Mgfx_enemy_burst_92 (core_071018c_PB_fla.Mgfx_enemy_burst_92)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_enemy_burst_92 extends MovieClip {
public function Mgfx_enemy_burst_92(){
addFrameScript(0, frame1, 40, frame41, 79, frame80);
}
function frame80(){
stop();
parent.visible = false;
}
function frame1(){
gotoAndPlay(("p0" + Math.round(((Math.random() * 2) + 1))));
}
function frame41(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 31
//Mgfx_enemy_burst03_94 (core_071018c_PB_fla.Mgfx_enemy_burst03_94)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_enemy_burst03_94 extends MovieClip {
public function Mgfx_enemy_burst03_94(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 32
//Mgfx_enemy_burst04_93 (core_071018c_PB_fla.Mgfx_enemy_burst04_93)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_enemy_burst04_93 extends MovieClip {
public function Mgfx_enemy_burst04_93(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 33
//Mgfx_filter_119 (core_071018c_PB_fla.Mgfx_filter_119)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_filter_119 extends MovieClip {
public function Mgfx_filter_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 34
//Mgfx_floating_mine_burst_51 (core_071018c_PB_fla.Mgfx_floating_mine_burst_51)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_floating_mine_burst_51 extends MovieClip {
public function Mgfx_floating_mine_burst_51(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 35
//Mgfx_hero_burst_89 (core_071018c_PB_fla.Mgfx_hero_burst_89)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_hero_burst_89 extends MovieClip {
public function Mgfx_hero_burst_89(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 36
//Mgfx_homing_mine_flake_87 (core_071018c_PB_fla.Mgfx_homing_mine_flake_87)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_homing_mine_flake_87 extends MovieClip {
public function Mgfx_homing_mine_flake_87(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 37
//Mgfx_laser_flake_86 (core_071018c_PB_fla.Mgfx_laser_flake_86)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_laser_flake_86 extends MovieClip {
public function Mgfx_laser_flake_86(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 38
//Mgfx_meteor_flake_88 (core_071018c_PB_fla.Mgfx_meteor_flake_88)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_meteor_flake_88 extends MovieClip {
public function Mgfx_meteor_flake_88(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 39
//Mgfx_r_vulcan_flake_85 (core_071018c_PB_fla.Mgfx_r_vulcan_flake_85)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgfx_r_vulcan_flake_85 extends MovieClip {
public function Mgfx_r_vulcan_flake_85(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
parent.visible = false;
}
}
}//package core_071018c_PB_fla
Section 40
//Mgui_gage_boss_hp_127 (core_071018c_PB_fla.Mgui_gage_boss_hp_127)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgui_gage_boss_hp_127 extends MovieClip {
public function Mgui_gage_boss_hp_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 41
//Mgui_gage_hero_hp_126 (core_071018c_PB_fla.Mgui_gage_hero_hp_126)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgui_gage_hero_hp_126 extends MovieClip {
public function Mgui_gage_hero_hp_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 42
//Mgui_shop_description_118 (core_071018c_PB_fla.Mgui_shop_description_118)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mgui_shop_description_118 extends MovieClip {
public function Mgui_shop_description_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 43
//Mgui_text_core_stage_125 (core_071018c_PB_fla.Mgui_text_core_stage_125)
package core_071018c_PB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Mgui_text_core_stage_125 extends MovieClip {
public var levelrep:TextField;
public function Mgui_text_core_stage_125(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 44
//Mobj_force_export_46 (core_071018c_PB_fla.Mobj_force_export_46)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mobj_force_export_46 extends MovieClip {
public function Mobj_force_export_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package core_071018c_PB_fla
Section 45
//Mspr_bullet_floating_mine_bullet_50 (core_071018c_PB_fla.Mspr_bullet_floating_mine_bullet_50)
package core_071018c_PB_fla {
import flash.display.*;
public dynamic class Mspr_bullet_floating_mine_bullet_50 extends MovieClip {
public function Mspr_bullet_floating_mine_bullet_50(){
addFrameScript(5, frame6);
}
function frame6(){
gotoAndPlay(1);
}
}
}//package core_071018c_PB_fla
Section 46
//THEPRELOADER_1 (core_071018c_PB_fla.THEPRELOADER_1)
package core_071018c_PB_fla {
import flash.display.*;
import flash.events.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
MovieClip(root).stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package core_071018c_PB_fla
Section 47
//Bgui_start (Bgui_start)
package {
import flash.display.*;
public dynamic class Bgui_start extends SimpleButton {
}
}//package
Section 48
//buy (buy)
package {
import flash.display.*;
public dynamic class buy extends SimpleButton {
}
}//package
Section 49
//cair (cair)
package {
import flash.display.*;
import flash.events.*;
import com.greenhermit.object.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class cair extends GHObjectV2 {
public var EnterFrame;
public var mcross;
public function cair(){
addFrameScript(0, frame1);
}
function frame1(){
mcross = new tmouse();
mcross.gotoAndStop(1);
mcross.x = (mcross.px = 500);
mcross.y = (mcross.py = 500);
this.addChild(mcross);
EnterFrame = function (){
if ("mcross" != null){
mcross.x = mouseX;
mcross.y = mouseY;
};
};
addEventListener(Event.ENTER_FRAME, EnterFrame);
stop();
}
}
}//package
Section 50
//effect1 (effect1)
package {
import com.greenhermit.object.*;
public dynamic class effect1 extends GHObjectV2 {
public function effect1(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
parent.visible = false;
}
}
}//package
Section 51
//effect2 (effect2)
package {
import com.greenhermit.object.*;
public dynamic class effect2 extends GHObjectV2 {
public function effect2(){
addFrameScript(15, frame16);
}
function frame16(){
parent.visible = false;
}
}
}//package
Section 52
//end (end)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class end extends MovieClip {
public var b_next:SimpleButton;
public var b_nextRelease2;
public function end(){
addFrameScript(0, frame1, 84, frame85, 189, frame190, 214, frame215, 279, frame280);
}
function frame280(){
MovieClip(parent).isubmit.visible = true;
MovieClip(parent).isubmit.play();
visible = false;
Mouse.show();
stop();
}
function frame85(){
stop();
}
function frame215(){
stop();
}
function frame1(){
stop();
b_nextRelease2 = function (){
play();
};
b_next.addEventListener("click", b_nextRelease2);
}
function frame190(){
stop();
}
}
}//package
Section 53
//game (game)
package {
import flash.display.*;
import flash.events.*;
import com.greenhermit.object.*;
import com.greenhermit.motion.*;
import com.greenhermit.key.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class game extends FlashGame {
public var gunC_A;
public var enemyevent;
public var levelcount;
public var weapon;
public var submit;
public var ST4_EN3_pic;
public var gunCircle;
public var gunlevel;
public var vulcanlevel;
public var sc;
public var weaponindex;
public var ST4_EN2;
public var ST2_EN2B;
public var laserspeed;
public var ST4_EN3;
public var homingMine;
public var i;
public var key;
public var gunB_A;
public var tt;
public var bm_ene_event;
public var rapidvulcanspeed;
public var s;
public var bm_ene_core;
public var floatingminespeed;
public var score;
public var hprecovery;
public var lineTarget;
public var core3path;
public var floatingminespeedaoe;
public var ST4_CO;
public var strompower;
public var homingpower;
public var ST2_EN2_pic;
public var recharge;
public var coreGunB_A;
public var ST5_CO;
public var money;
public var ST4_EN2_pic;
public var laser;
public var end;
public var ST3_EN3;
public var player;
public var sclass;
public var go;
public var ST3_EN2;
public var bosshparray;
public var obj;
public var gunA;
public var vulcanspeed;
public var coreGunA_A;
public var gunD;
public var hprecoverylevel;
public var coreGunA_B;
public var enemylevel;
public var stromlevel;
public var subcircle;
public var add_atk_chance;
public var laserpower;
public var gunC;
public var ghostMove;
public var vulcan;
public var gunspeed;
public var hominglevel;
public var position;
public var bulletmax;
public var life;
public var cmpHandler;
public var linePosition;
public var rapidVulcan;
public var coreGunC;
public var coreGunD;
public var bs_for_all;
public var bulletuse;
public var coreGunA;
public var coreGunB;
public var floatingminepower;
public var lineAng;
public var coreGunE;
public var bulletcount;
public var rapidvulcanpower;
public var gunB;
public var ST5_EN3_pic;
public var gun;
public var shake;
public var coreGunF;
public var subsquare;
public var add_hp;
public var showpic;
public var ST3_EN3_pic;
public var ST1_CO;
public var corelevel;
public var ST2_EN2;
public var rechargelevel;
public var floatingMine;
public var ST2_CO;
public var meteorStrom;
public var ST4_EN2B;
public var buied;
public var laserlevel;
public var ST4_EN3B;
public var ST3_EN2_pic;
public var bulletrecharge;
public var bm_ene_tile;
public var tilecount;
public var ST5_EN2_pic;
public var rapidvulcanlevel;
public var floatingBomb;
public var vulcanpower;
public var homingMove;
public var soundtimer;
public var floatingminelevel;
public var ST3_CO;
public var subplus;
public var ST5_EN2;
public var timeRandomMove;
public var framecount;
public var ST5_EN3;
public var stromspeed;
public var homingspeed;
public var bgsound:Sound;
public var createEnemy;
public var darkStrom;
public function game(){
addFrameScript(0, frame1);
}
public function darkHit(_arg1, _arg2){
if (((_arg2.visible) && (_arg1.visible))){
if (_arg1.name == "core"){
};
if (_arg1.team == _arg1.GH_PLAYER){
_arg1.hp = (_arg1.hp - _arg2.power);
};
if (_arg1.team == _arg1.GH_TEAM_A){
};
if (_arg2.name == "core"){
};
if (_arg2.team == _arg2.GH_PLAYER){
_arg2.hp = (_arg2.hp - _arg1.power);
};
if (_arg2.team == _arg2.GH_TEAM_A){
};
if (_arg1.hp <= 0){
if (_arg1.pirece){
if (_arg1.team == _arg1.GH_TEAM_I){
player.money = (player.money + _arg1.money);
player.score = (player.score + _arg1.score);
};
_arg1.visible = false;
};
};
if (_arg2.hp <= 0){
_arg2.visible = false;
};
};
}
public function kbUp(_arg1:KeyboardEvent){
key = 0;
}
function frame1(){
s = MovieClip(parent).ishop;
go = MovieClip(parent).igameover;
submit = MovieClip(parent).isubmit;
sc = MovieClip(parent).iclear;
tt = MovieClip(parent).itutor;
end = MovieClip(parent).iend;
lineAng = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13=true){
var _local14:*;
var _local15:*;
_local14 = new mspr_all();
_local14.gotoAndStop(_arg1);
_local14.anglesnap = _arg13;
_local15 = new GHLineMove(_arg2, _arg3, 0, 0, _arg4, null, _arg5, _local14);
_local14.setNormal(_arg6, _arg7, _arg8, _arg9, true, _local15);
_local14.hitable(_local14.GH_ENEMY, (_local14.GH_PLAYER | _local14.GH_UNTEAM), _arg10, this);
if (_arg11 != null){
_local14.hitObject = _arg11;
} else {
_local14.hitObject = objectHit;
};
_local14.onRemove = _arg12;
this.addChild(_local14);
return (_local14);
};
linePosition = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14=true){
var _local15:*;
var _local16:*;
_local15 = new mspr_all();
_local15.gotoAndStop(_arg1);
_local15.anglesnap = _arg14;
_local16 = new GHLineMove(_arg2, _arg3, _arg4, _arg5, -1, null, _arg6, _local15);
_local15.setNormal(_arg7, _arg8, _arg9, _arg10, true, _local16);
_local15.hitable(_local15.GH_ENEMY, (_local15.GH_PLAYER | _local15.GH_UNTEAM), _arg11, this);
if (_arg12 != null){
_local15.hitObject = _arg12;
} else {
_local15.hitObject = objectHit;
};
_local15.onRemove = _arg13;
this.addChild(_local15);
return (_local15);
};
lineTarget = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13=true){
var _local14:*;
var _local15:*;
_local14 = new mspr_all();
_local14.gotoAndStop(_arg1);
_local14.anglesnap = _arg13;
_local15 = new GHLineMove(_arg2, _arg3, 0, 0, -1, _arg4, _arg5, _local14);
_local14.setNormal(_arg6, _arg7, _arg8, _arg9, true, _local15);
_local14.hitable(_local14.GH_ENEMY, (_local14.GH_PLAYER | _local14.GH_UNTEAM), _arg10, this);
if (_arg11 != null){
_local14.hitObject = _arg11;
} else {
_local14.hitObject = objectHit;
};
_local14.onRemove = _arg12;
this.addChild(_local14);
return (_local14);
};
timeRandomMove = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14=true){
var _local15:*;
var _local16:*;
_local15 = new mspr_all();
_local15.gotoAndStop(_arg1);
_local15.anglesnap = _arg14;
_local16 = new GHTimeRandomMove(_arg2, _arg3, _arg4, _arg5, _arg6, _local15);
_local15.setNormal(_arg7, _arg8, _arg9, _arg10, true, _local16);
_local15.hitable(_local15.GH_ENEMY, (_local15.GH_PLAYER | _local15.GH_UNTEAM), _arg11, this);
if (_arg12 != null){
_local15.hitObject = _arg12;
} else {
_local15.hitObject = objectHit;
};
_local15.onRemove = _arg13;
this.addChild(_local15);
return (_local15);
};
homingMove = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14, _arg15=true){
var _local16:*;
var _local17:*;
_local16 = new mspr_all();
_local16.gotoAndStop(_arg1);
_local16.anglesnap = _arg15;
_local17 = new GHHomingMove(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _local16);
_local16.setNormal(_arg8, _arg9, _arg10, _arg11, true, _local17);
_local16.hitable(_local16.GH_ENEMY, (_local16.GH_PLAYER | _local16.GH_UNTEAM), _arg12, this);
if (_arg13 != null){
_local16.hitObject = _arg13;
} else {
_local16.hitObject = objectHit;
};
_local16.onRemove = _arg14;
this.addChild(_local16);
return (_local16);
};
ghostMove = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14, _arg15=true){
var _local16:*;
var _local17:*;
_local16 = new mspr_all();
_local16.gotoAndStop(_arg1);
_local16.anglesnap = _arg15;
_local17 = new GHGhostMove(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _local16);
_local16.setNormal(_arg8, _arg9, _arg10, _arg11, true, _local17);
_local16.hitable(_local16.GH_ENEMY, (_local16.GH_PLAYER | _local16.GH_UNTEAM), _arg12, this);
if (_arg13 != null){
_local16.hitObject = _arg13;
} else {
_local16.hitObject = objectHit;
};
_local16.onRemove = _arg14;
this.addChild(_local16);
return (_local16);
};
showpic = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:*;
_local10 = new mspr_all();
_local10.gotoAndStop(_arg1);
_local10.px = _arg2;
_local10.py = _arg3;
_local10.hitcheck = false;
_local10.hitable(_local10.GH_ENEMY, (_local10.GH_PLAYER | _local10.GH_UNTEAM), 10, this);
_local10.setNormal(_arg4, _arg5, _arg6, _arg7, true, null);
if (_arg8 != null){
_local10.hitObject = _arg8;
} else {
_local10.hitObject = objectHit;
};
_local10.onRemove = _arg9;
this.addChild(_local10);
return (_local10);
};
add_hp = new Array(100, 100, 100, 100, 110, 110, 110, 120, 120, 120, 130, 130, 130, 140, 140, 140, 300);
add_atk_chance = new Array(20, 20, 20, 20, 22, 22, 22, 24, 24, 24, 26, 26, 26, 28, 28, 28, 30);
bm_ene_tile = 400;
bm_ene_event = 150;
bm_ene_core = 800;
bs_for_all = 2000;
hprecoverylevel = 0;
hprecovery = new Array(25, 20, 15, 10, 5);
vulcanlevel = 0;
vulcanspeed = new Array(10, (10.4 + 0.1), (10.8 + 0.1), (11.2 + 0.2), (11.6 + 0.2), (12 + 0.3), (12.4 + 0.3), (12.8 + 0.4), (13.2 + 0.4), (13.6 + 0.5), (14 + 0.5));
vulcanpower = new Array(1, (1.2 + 0.1), (1.4 + 0.1), (1.6 + 0.2), (1.8 + 0.2), (2 + 0.3), (2.2 + 0.3), (2.4 + 0.4), (2.6 + 0.4), (2.8 + 0.5), (3 + 0.5));
rapidvulcanlevel = 0;
rapidvulcanspeed = new Array(9, 9.3, 9.6, 9.9, 10.2, 10.5, 10.8, 11.1, 11.4, 11.7, 12);
rapidvulcanpower = new Array(1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6, 2.8, 3);
floatingminelevel = 0;
floatingminespeed = new Array(2.5, 2.5, 2.4, 2.4, 2.3, 2.3, 2.2, 2.2, 2.1, 2.1, 2);
floatingminespeedaoe = new Array(50, (52 + 1), (54 + 1), (56 + 2), (58 + 2), (60 + 3), (62 + 3), (64 + 4), (66 + 4), (68 + 5), (70 + 5));
floatingminepower = new Array(0.3, 0.33, 0.36, 0.39, (0.42 + 0.1), 0.45, 0.48, 0.51, 0.54, 0.57, 0.6);
laserlevel = 0;
laserspeed = new Array(9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9);
laserpower = new Array(0.7, (0.71 + 0.1), (0.72 + 0.1), (0.73 + 0.2), (0.74 + 0.2), (0.75 + 0.3), (0.76 + 0.3), (0.77 + 0.4), (0.78 + 0.4), (0.79 + 0.5), (0.8 + 0.5));
hominglevel = 0;
homingspeed = new Array(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3);
homingpower = new Array(1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6, 2.8, 3);
stromlevel = 0;
stromspeed = new Array(4, (3.9 - 0.1), (3.8 - 0.1), (3.7 - 0.2), (3.6 - 0.2), (3.5 - 0.3), (3.4 - 0.3), (3.3 - 0.4), (3.2 - 0.4), (3.1 - 0.5), (3 - 0.5));
strompower = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
gunspeed = new Array();
bulletrecharge = new Array();
gunlevel = new Array(0, 0, 0, 0, 0, 0, 0);
bulletmax = new Array(0, 999, 999, 999, 999, 999, 999);
bulletcount = new Array(0, 0, 0, 0, 0, 0, 0);
bulletuse = new Array(0, 0, 5, 34, 21, 6, 99);
gunspeed[1] = new Array(10, 10, 10, 9, 9, 8, 8, 7, 7, 6, (6 - 1));
bulletrecharge[1] = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);
gunspeed[2] = new Array(6, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2);
bulletrecharge[2] = new Array(14, (15 + 1), (16 + 1), (17 + 2), (18 + 2), (19 + 3), (20 + 3), (21 + 4), (22 + 4), (23 + 5), (24 + 6));
gunspeed[3] = new Array(25, 24, 24, 23, 23, 22, 22, 21, 21, 20, 19);
bulletrecharge[3] = new Array(10, (11 + 1), (12 + 1), (13 + 2), (14 + 2), (15 + 3), (16 + 3), (17 + 4), (18 + 4), (19 + 5), (20 + 6));
gunspeed[4] = new Array(12, 11, 11, 9, 9, 8, 8, 7, 7, 6, 6);
bulletrecharge[4] = new Array(16, 18, 20, 22, 24, 26, 28, 30, 32, 34, (36 + 1));
gunspeed[5] = new Array(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3);
bulletrecharge[5] = new Array(9, (10 + 1), (11 + 1), (12 + 2), (13 + 2), (14 + 3), (15 + 3), (16 + 4), (17 + 4), (18 + 5), (19 + 6));
gunspeed[6] = new Array(35, 34, 34, 33, 33, 32, 32, 31, 31, 30, 30);
bulletrecharge[6] = new Array(2, 3, 3, 4, 4, 5, 5, 6, 6, 7, (7 + 1));
buied = new Array();
buied[1] = true;
buied[2] = false;
buied[3] = false;
buied[4] = false;
buied[5] = false;
buied[6] = false;
coreGunA = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(75, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 640), 9, 100, 1, -1, 30, 10, objectHit, objectRemove);
_local2.hp = 2;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
coreGunA_A = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(75, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 640), 2, 400, 1, -1, 30, 10, objectHit, objectRemove);
_local2.hp = 80;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = true;
return (_local2);
};
coreGunA_B = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(81, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 640), 6, 400, 1, -1, 30, 10, objectHit, objectRemove);
_local2.hp = 10;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
coreGunB = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(76, _arg1.x, _arg1.y, player, 8, 100, 1, -1, 10, 10, objectHit, objectRemove);
_local2.hp = 100;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
coreGunB_A = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(77, _arg1.x, _arg1.y, player, 1, 600, 1, -1, 10, 10, objectHit, objectRemove);
_local2.hp = 40;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = true;
return (_local2);
};
coreGunC = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(75, _arg1.x, _arg1.y, player, 10, 100, 1, -1, 10, 10, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
return (_local2);
};
coreGunD = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(75, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 640), 10, 100, 1, -1, 30, 10, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
return (_local2);
};
coreGunE = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(75, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 640), 10, 100, 1, -1, 10, 10, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
return (_local2);
};
coreGunF = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = timeRandomMove(83, _arg1.x, _arg1.y, 75, 1, (Math.random() * 360), 500, 1, -1, 10, 15, objectHit, objectRemove);
_local2.hp = 8;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
ST2_EN2B = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = ghostMove(79, _arg1.x, _arg1.y, 5, 45, player, 5, 150, 1, -1, 2, 10, objectHit, objectRemove, false);
_local2.hp = 4;
_local2.money = 0.2;
_local2.score = 0;
return (_local2);
};
ST4_EN2B = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = homingMove(82, _arg1.x, _arg1.y, (Math.random() * 360), 150, 9, player, 450, 1, -1, 4, 10, objectHit, objectRemove, false);
_local2.hp = 16;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
ST4_EN3B = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = ghostMove(81, _arg1.x, _arg1.y, 1, 250, player, 3, 115, 1, -1, 2, 10, objectHit, objectRemove, false);
_local2.hp = 10;
_local2.money = 0.2;
_local2.score = 0;
_local2.anglesnap = true;
return (_local2);
};
gunCircle = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = new mspr_all();
_local2.gotoAndStop(80);
_local2.x = (_local2.px = _arg1.x);
_local2.y = (_local2.py = _arg1.y);
_local2.rotation = Math.round((Math.random() * 360));
_local2.anglesnap = false;
_local2.hp = 15;
_local2.money = 0.2;
_local2.score = 0;
_local2.setNormal(400, 1, -1, 3, true, null);
_local2.submot = subamp(subcircle, 80);
_local2.subspeed = 4;
_local2.hitObject = objectHit;
_local2.onRemove = objectRemove;
this.addChild(_local2);
return (_local2);
};
darkStrom = function (){
var _local1:*;
var _local2:*;
_local1 = null;
_local2 = (Math.random() * 4);
if (_local2 < 1){
_local1 = linePosition(63, (Math.random() * 640), 0, 320, 320, 3, 400, 1, -1, 5, 22, darkHit, objectRemove);
} else {
if (_local2 < 2){
_local1 = linePosition(63, (Math.random() * 640), 640, 320, 320, 3, 400, 1, -1, 5, 22, darkHit, objectRemove);
} else {
if (_local2 < 3){
_local1 = linePosition(63, 0, (Math.random() * 640), 320, 320, 3, 400, 1, -1, 5, 22, darkHit, objectRemove);
} else {
if (_local2 < 4){
_local1 = linePosition(63, 640, (Math.random() * 640), 320, 320, 3, 400, 1, -1, 5, 22, darkHit, objectRemove);
};
};
};
};
_local1.hp = 999;
_local1.money = 0.2;
_local1.score = 0;
_local1.anglesnap = false;
_local1.team = _local1.GH_TEAM_C;
_local1.lobj = null;
_local1.ltime = 0;
_local1.attackteam = (_local1.GH_PLAYER | _local1.GH_ENEMY);
return (_local1);
};
gunA = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = linePosition(60, _arg1.x, _arg1.y, (Math.random() * 640), (Math.random() * 480), 4, 100, 1, -1, 5, 3, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
gunB = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(60, _arg1.x, _arg1.y, player, 5, 100, 1, -1, 5, 3, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
gunB_A = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(60, _arg1.x, _arg1.y, player, 7, 100, 1, -1, 5, 3, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
gunC = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(60, _arg1.x, _arg1.y, player, 4, 100, 1, -1, 5, 3, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
gunC_A = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineTarget(60, _arg1.x, _arg1.y, player, 3, 100, 1, -1, 5, 3, objectHit, objectRemove);
_local2.hp = 1;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
gunD = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = timeRandomMove(49, _arg1.x, _arg1.y, 30, 4, (int((Math.random() * 4)) * 90), 100, 1, -1, 10, 3, objectHit, objectRemove);
_local2.hp = 10;
_local2.money = 0.2;
_local2.score = 0;
_local2.rotation = 0;
_local2.anglesnap = false;
return (_local2);
};
weapon = new Array();
vulcan = function (){
var _local1:*;
_local1 = null;
_local1 = linePosition(1, player.x, player.y, mouseX, mouseY, vulcanspeed[gunlevel[1]], 70, 1, -1, vulcanpower[gunlevel[1]], 6, objectHit, objectRemove);
_local1.hp = 1;
_local1.pirece = true;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
weapon[1] = vulcan;
rapidVulcan = function (){
var _local1:*;
var _local2:*;
_local1 = null;
_local2 = ((Math.atan2((mouseY - player.y), (mouseX - player.x)) * 180) / Math.PI);
_local1 = lineAng(2, player.x, player.y, ((int(((_local2 + (Math.random() * 20)) - 5)) + 360) % 360), rapidvulcanspeed[gunlevel[2]], 70, 1, -1, rapidvulcanpower[gunlevel[2]], 5, objectHit, objectRemove);
_local1.hp = 1;
_local1.pirece = true;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
weapon[2] = rapidVulcan;
floatingMine = function (){
var _local1:*;
var _local2:*;
_local1 = null;
_local2 = ((Math.atan2((mouseY - player.y), (mouseX - player.x)) * 180) / Math.PI);
_local1 = lineAng(3, player.x, player.y, ((int(((_local2 + (Math.random() * 20)) - 5)) + 360) % 360), floatingminespeed[gunlevel[3]], 0, 1, -1, 0, 10, floatingHit, floatingRemove);
_local1.hp = 1;
_local1.pirece = true;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
floatingBomb = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = new mspr_all();
_local2.gotoAndStop(4);
_local2.x = (_local2.px = _arg1.px);
_local2.y = (_local2.py = _arg1.py);
_local2.hitable(_local2.GH_TEAM_A, (_local2.GH_ENEMY | _local2.GH_TEAM_C), floatingminespeedaoe[gunlevel[3]], this);
_local2.setNormal(50, 1, 25, floatingminepower[gunlevel[3]], true, null);
_local2.hitObject = objectHit;
_local2.onRemove = objectRemove;
_local2.pirece = true;
this.addChild(_local2);
return (_local2);
};
weapon[3] = floatingMine;
laser = function (){
var _local1:*;
_local1 = null;
_local1 = linePosition(5, player.px, player.py, mouseX, mouseY, laserspeed[gunlevel[4]], 100, 1, -1, laserpower[gunlevel[4]], 4, objectHit, objectRemove);
_local1.hp = 1;
_local1.lobj = null;
_local1.ltime = 0;
_local1.anglesnap = false;
_local1.pirece = false;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
weapon[4] = laser;
homingMine = function (){
var _local1:*;
_local1 = null;
_local1 = homingMove(6, player.px, player.py, (Math.random() * 360), 150, homingspeed[gunlevel[5]], getChildByName("core"), 500, 1, -1, homingpower[gunlevel[5]], 5, objectHit, objectRemove);
_local1.hp = 5;
_local1.pirece = true;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
weapon[5] = homingMine;
meteorStrom = function (){
var _local1:*;
var _local2:*;
_local1 = null;
_local2 = (Math.random() * 4);
if (_local2 < 1){
_local1 = linePosition(7, (Math.random() * 640), 0, 320, 320, stromspeed[gunlevel[6]], 500, 1, -1, strompower[gunlevel[6]], 20, objectHit, objectRemove);
} else {
if (_local2 < 2){
_local1 = linePosition(7, (Math.random() * 640), 640, 320, 320, stromspeed[gunlevel[6]], 500, 1, -1, strompower[gunlevel[6]], 20, objectHit, objectRemove);
} else {
if (_local2 < 3){
_local1 = linePosition(7, 0, (Math.random() * 640), 320, 320, stromspeed[gunlevel[6]], 500, 1, -1, strompower[gunlevel[6]], 20, objectHit, objectRemove);
} else {
if (_local2 < 4){
_local1 = linePosition(7, 640, (Math.random() * 640), 320, 320, stromspeed[gunlevel[6]], 500, 1, -1, strompower[gunlevel[6]], 20, objectHit, objectRemove);
};
};
};
};
_local1.hp = 5;
_local1.lobj = null;
_local1.ltime = 0;
_local1.anglesnap = false;
_local1.pirece = false;
_local1.team = _local1.GH_TEAM_A;
_local1.attackteam = (_local1.GH_ENEMY | _local1.GH_TEAM_C);
return (_local1);
};
weapon[6] = meteorStrom;
createEnemy = new Array();
subplus = new Array(0, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 0, 1);
subcircle = new Array(0, 1, 1, 0, 2, 0, 3, 1, 3, 2, 2, 3, 1, 3, 0, 2, 0, 1);
subsquare = new Array(0, 0, 1, 0, 1, 1, 0, 1, 0, 0);
core3path = new Array(0, -300, 600, 0, 600, 440, 0, 440, 0, 0);
createEnemy[10] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(44);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 2;
obj.hp = Math.round(((99999 * add_hp[levelcount]) / 100));
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hp * 1) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 12, where);
obj.process = function (_arg1){
hpRecovery(_arg1);
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[9] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(39);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((13 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 150){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunD(_arg1);
gun.setNormal(750, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[8] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(38);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((11 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 240){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunB(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
gun = gunC(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
gun = gunC_A(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
} else {
_arg1.framecount = 0;
gun = gunC_A(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[7] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(37);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.magazine = 4;
obj.mag_full = true;
obj.hp = Math.round(((13 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if ((((((_arg1.framecount >= 150)) && ((_arg1.magazine > 0)))) && ((_arg1.mag_full == true)))){
_arg1.framecount = 130;
_arg1.magazine--;
if (_arg1.magazine <= 0){
_arg1.mag_full = false;
};
gun = gunC(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
} else {
if ((((_arg1.framecount >= 200)) && (((Math.random() * 100) <= add_atk_chance[levelcount])))){
_arg1.framecount = 0;
_arg1.magazine++;
if (_arg1.magazine >= 4){
_arg1.magazine = 4;
_arg1.mag_full = true;
};
gun = gunB(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[6] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(35);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((11 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 130){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
i = 0;
while (i < 4) {
gun = gunA(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
i++;
};
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[5] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(35);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((13 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 100){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunB(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[4] = function (_arg1, _arg2, _arg3){
obj = new mspr_all();
obj.gotoAndStop(34);
obj.x = (obj.px = _arg1);
obj.y = (obj.py = _arg2);
obj.power = 5;
obj.hp = Math.round(((11 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, _arg3);
obj.submot = subamp(subplus, 10);
obj.subspeed = 1;
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
_arg3.addChild(obj);
return (obj);
};
createEnemy[3] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(33);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((8 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 110){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunB_A(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[2] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(32);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((7 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.submot = subamp(subcircle, 5);
obj.subspeed = 1;
obj.process = function (_arg1){
if (_arg1.framecount >= 100){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunA(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[1] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(31);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((6 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, (obj.GH_PLAYER | obj.GH_UNTEAM), 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 120){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunB(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
createEnemy[0] = function (_arg1, _arg2, _arg3){
var ix = _arg1;
var iy = _arg2;
var where = _arg3;
obj = new mspr_all();
obj.gotoAndStop(30);
obj.x = (obj.px = ix);
obj.y = (obj.py = iy);
obj.power = 5;
obj.hp = Math.round(((3 * add_hp[levelcount]) / 100));
obj.money = ((obj.hp * bm_ene_tile) / 100);
obj.score = ((obj.hp * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 12, where);
obj.process = function (_arg1){
if (_arg1.framecount >= 100){
_arg1.framecount = 0;
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = gunA(_arg1);
gun.setNormal(250, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, where);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
where.addChild(obj);
return (obj);
};
ST5_EN3_pic = 49;
ST5_EN3 = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = timeRandomMove(ST5_EN3_pic, -100, (Math.random() * 740), 100, 1, 0, 400, 1, -1, 10, 10, objectHit, objectRemove, false);
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 10, _arg1);
_local2.hp = Math.round(((3 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
_local2.anglesnap = true;
return (_local2);
};
ST5_EN2_pic = 48;
ST5_EN2 = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = ghostMove(ST5_EN2_pic, 740, (Math.random() * 740), 10, 70, player, 10, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 10, _arg1);
_local2.hp = Math.round(((5 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
ST4_EN3_pic = 48;
ST4_EN3 = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = null;
_local3 = (Math.random() * 4);
if (_local3 < 1){
_local2 = ghostMove(ST4_EN3_pic, (Math.random() * 740), -100, 5, 50, player, 5, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 2){
_local2 = ghostMove(ST4_EN3_pic, (Math.random() * 740), 740, 5, 50, player, 5, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 3){
_local2 = ghostMove(ST4_EN3_pic, -100, (Math.random() * 740), 5, 50, player, 5, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 4){
_local2 = ghostMove(ST4_EN3_pic, 740, (Math.random() * 740), 5, 50, player, 5, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
};
};
};
};
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 10, _arg1);
_local2.hp = Math.round(((5 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
ST4_EN2_pic = 48;
ST4_EN2 = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = null;
_local3 = (Math.random() * 4);
if (_local3 < 1){
_local2 = homingMove(ST4_EN2_pic, (Math.random() * 740), -100, 90, 80, 10, player, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 2){
_local2 = homingMove(ST4_EN2_pic, (Math.random() * 740), 740, 270, 80, 10, player, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 3){
_local2 = homingMove(ST4_EN2_pic, 740, (Math.random() * 740), 180, 80, 10, player, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 4){
_local2 = homingMove(ST4_EN2_pic, -100, (Math.random() * 740), 0, 80, 10, player, 200, 1, -1, 10, 10, objectHit, objectRemove, false);
};
};
};
};
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 10, _arg1);
_local2.hp = Math.round(((5 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
ST3_EN3_pic = 47;
ST3_EN3 = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineAng(ST3_EN3_pic, 0, (Math.random() * 740), 0, 2, 500, 1, -1, 2, 35, objectHit, objectRemove);
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 35, _arg1);
_local2.hp = Math.round(((10 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
ST3_EN2_pic = 47;
ST3_EN2 = function (_arg1){
var _local2:*;
_local2 = null;
_local2 = lineAng(ST3_EN2_pic, 640, (Math.random() * 740), 180, 2, 500, 1, -1, 2, 35, objectHit, objectRemove, false);
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 35, _arg1);
_local2.hp = Math.round(((10 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
ST2_EN2_pic = 48;
ST2_EN2 = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = null;
_local3 = (Math.random() * 4);
if (_local3 < 1){
_local2 = ghostMove(ST2_EN2_pic, (Math.random() * 740), -100, 5, 250, player, 4, 250, 1, -1, 3, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 2){
_local2 = ghostMove(ST2_EN2_pic, (Math.random() * 740), 740, 5, 250, player, 4, 250, 1, -1, 3, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 3){
_local2 = ghostMove(ST2_EN2_pic, -100, (Math.random() * 740), 5, 250, player, 4, 250, 1, -1, 3, 10, objectHit, objectRemove, false);
} else {
if (_local3 < 4){
_local2 = ghostMove(ST2_EN2_pic, 740, (Math.random() * 740), 5, 250, player, 4, 250, 1, -1, 3, 10, objectHit, objectRemove, false);
};
};
};
};
_local2.hitable(_local2.GH_ENEMY, _local2.GH_PLAYER, 12, _arg1);
_local2.hp = Math.round(((1 * add_hp[levelcount]) / 100));
_local2.money = ((_local2.hp * bm_ene_event) / 100);
_local2.score = ((_local2.hp * bs_for_all) / 100);
return (_local2);
};
enemylevel = new Array();
enemylevel[0] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[1] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[2] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[3] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[4] = new Array(40, 0, 0, 0, 0, 0, 0);
enemylevel[5] = new Array(45, 0, 0, 0, 0, 0, 0);
enemylevel[6] = new Array(50, 0, 0, 0, 0, 0, 0);
enemylevel[7] = new Array(0, 25, 25, 0, 0, 0, 0);
enemylevel[8] = new Array(0, 30, 30, 0, 0, 0, 0);
enemylevel[9] = new Array(0, 35, 35, 0, 0, 0, 0);
enemylevel[10] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[11] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[12] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[13] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[14] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[15] = new Array(0, 0, 0, 0, 0, 0, 0);
enemylevel[16] = new Array(0, 0, 0, 0, 0, 0, 0);
enemyevent = new Array();
enemyevent[0] = ST2_EN2;
enemyevent[1] = ST3_EN2;
enemyevent[2] = ST3_EN3;
enemyevent[3] = ST4_EN2;
enemyevent[4] = ST4_EN3;
enemyevent[5] = ST5_EN2;
enemyevent[6] = ST5_EN3;
ST5_CO = function (_arg1){
var at = _arg1;
obj = new mspr_all();
obj.name = "core";
obj.gotoAndStop(24);
obj.x = (obj.px = 320);
obj.y = (obj.py = 320);
obj.hp = bosshparray[levelcount];
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hpmax * 1) / 100));
obj.money = ((obj.hpmax * bm_ene_core) / 100);
obj.score = ((obj.hpmax * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 16, at);
obj.power = 5;
obj.submot = subamp(subcircle, 5);
obj.subspeed = 1;
obj.process = function (_arg1){
hpRecovery(_arg1);
if ((framecount % 33) == 0){
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = coreGunF(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 13, at);
};
};
if (_arg1.framecount >= 66){
_arg1.framecount = 0;
if (_arg1.hp < Math.round(((_arg1.hpmax * 80) / 100))){
if ((Math.random() * 100) <= 80){
darkStrom();
};
if ((Math.random() * 100) <= 70){
darkStrom();
};
if ((Math.random() * 100) <= 60){
darkStrom();
};
if ((Math.random() * 100) <= 50){
darkStrom();
};
if ((Math.random() * 100) <= 40){
darkStrom();
};
};
if ((Math.random() * 100) <= 70){
darkStrom();
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
at.addChild(obj);
return (obj);
};
ST4_CO = function (_arg1){
var at = _arg1;
obj = new mspr_all();
obj.name = "core";
obj.gotoAndStop(23);
obj.x = (obj.px = 320);
obj.y = (obj.py = 320);
obj.hp = bosshparray[levelcount];
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hpmax * 1) / 100));
obj.money = ((obj.hpmax * bm_ene_core) / 100);
obj.score = ((obj.hpmax * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 42, at);
obj.power = 5;
obj.process = function (_arg1){
var _local2:*;
hpRecovery(_arg1);
if ((framecount % 33) == 0){
if ((Math.random() * 100) <= 80){
gun = ST4_EN3B(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 7, at);
};
};
if (_arg1.framecount >= 66){
_arg1.framecount = 0;
if (_arg1.hp < Math.round(((_arg1.hpmax * 80) / 100))){
_local2 = 0;
while (_local2 < 8) {
gun = coreGunA_B(_arg1);
gun.setNormal(200, 0, -1, 10, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 4, at);
_local2++;
};
};
i = 0;
while (i < 3) {
if ((Math.random() * 100) <= add_atk_chance[levelcount]){
gun = ST4_EN2B(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 10, at);
};
i++;
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
at.addChild(obj);
return (obj);
};
ST3_CO = function (_arg1){
var at = _arg1;
obj = new mspr_all();
obj.name = "core";
obj.gotoAndStop(22);
obj.x = (obj.px = 100);
obj.y = (obj.py = 320);
obj.hp = bosshparray[levelcount];
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hpmax * 1) / 100));
obj.money = ((obj.hpmax * bm_ene_core) / 100);
obj.score = ((obj.hpmax * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 35, at);
obj.power = 5;
obj.submot = subamp(subcircle, 150);
obj.subspeed = 2;
obj.process = function (_arg1){
hpRecovery(_arg1);
if ((_arg1.framecount % 75) == 0){
if (Math.round((Math.random() * 100)) <= 60){
gun = gunCircle(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 30, at);
};
if (_arg1.hp < Math.round(((_arg1.hpmax * 80) / 100))){
gun = coreGunB(_arg1);
gun.setNormal(300, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 16, at);
};
};
if (_arg1.framecount >= 155){
_arg1.framecount = 0;
if ((Math.random() * 100) <= 30){
gun = gunCircle(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 30, at);
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
at.addChild(obj);
return (obj);
};
ST2_CO = function (_arg1){
var at = _arg1;
obj = new mspr_all();
obj.name = "core";
obj.gotoAndStop(21);
obj.x = (obj.px = 320);
obj.y = (obj.py = 320);
obj.hp = bosshparray[levelcount];
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hpmax * 1) / 100));
obj.money = ((obj.hpmax * bm_ene_core) / 100);
obj.score = ((obj.hpmax * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 19, at);
obj.power = 5;
obj.process = function (_arg1){
hpRecovery(_arg1);
if ((framecount % 50) == 0){
if ((Math.random() * 100) <= 40){
gun = coreGunB_A(_arg1);
gun.setNormal(600, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 10, at);
};
};
if (_arg1.framecount >= 75){
_arg1.framecount = 0;
if (Math.round((Math.random() * 100)) <= 80){
gun = ST2_EN2B(_arg1);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 15, at);
if (_arg1.hp < Math.round(((_arg1.hpmax * 80) / 100))){
if (Math.round((Math.random() * 100)) <= 60){
_arg1.framecount = 60;
};
};
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
at.addChild(obj);
return (obj);
};
ST1_CO = function (_arg1){
var at = _arg1;
obj = new mspr_all();
obj.name = "core";
obj.gotoAndStop(20);
obj.x = (obj.px = 320);
obj.y = (obj.py = 320);
obj.hp = bosshparray[levelcount];
obj.hpmax = obj.hp;
obj.hpr = Math.round(((obj.hpmax * 1) / 100));
obj.money = ((obj.hpmax * bm_ene_core) / 100);
obj.score = ((obj.hpmax * bs_for_all) / 100);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 26, at);
obj.power = 5;
obj.process = function (_arg1){
var _local2:*;
var _local3:*;
hpRecovery(_arg1);
if ((_arg1.framecount % 40) == 0){
if (Math.round((Math.random() * 100)) <= 80){
gun = coreGunB(_arg1);
gun.setNormal(300, 0, -1, 4, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 16, at);
if (_arg1.hp < Math.round(((_arg1.hpmax * 80) / 100))){
_local2 = 0;
while (_local2 < 6) {
gun = coreGunA(_arg1);
gun.setNormal(300, 0, -1, 10, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 4, at);
_local2++;
};
};
};
};
if (_arg1.framecount >= 50){
_arg1.framecount = 0;
if (Math.round((Math.random() * 100)) <= 80){
_local3 = 0;
while (_local3 < 6) {
gun = coreGunA(_arg1);
gun.setNormal(300, 0, -1, 10, true, null);
gun.hitable(gun.GH_ENEMY, gun.GH_PLAYER, 5, at);
_local3++;
};
if (Math.round((Math.random() * 100)) <= 35){
_arg1.framecount = 55;
};
};
};
};
obj.hitObject = objectHit;
obj.onRemove = objectRemove;
at.addChild(obj);
return (obj);
};
corelevel = new Array(null, ST1_CO, null, null, ST2_CO, null, null, ST3_CO, null, null, ST4_CO, null, null, ST5_CO, null, null);
bosshparray = new Array(null, 100, 100, 100, 200, 200, 200, 700, 700, 700, 1200, 1200, 1200, 1500, 1500, 1500);
levelcount = 0;
position = 0;
shake = 0;
life = 2;
player = new mspr_all();
player.gotoAndStop("hero");
player.hitable(player.GH_PLAYER, player.GH_UNTEAM, 8, this);
position = ((Math.PI / 2) * 20);
player.x = (player.px = ((250 * Math.cos((position / 20))) + 320));
player.y = (player.py = ((250 * Math.sin((position / 20))) + 320));
player.name = "ahero";
player.hp = 100;
player.hpMax = 100;
player.hpr = 1;
player.power = 1;
player.money = 0;
player.score = 0;
player.process = function (_arg1){
hpRecoveryEx(_arg1, hprecovery[hprecoverylevel]);
};
this.addChild(player);
key = 0;
stage.addEventListener(KeyboardEvent.KEY_DOWN, kbDown);
stage.addEventListener(KeyboardEvent.KEY_UP, kbUp);
tilecount = 0;
levelUp();
GH_enterframeuse = true;
weaponindex = 1;
rechargelevel = 1;
recharge = new Array(15, 14, 1);
framecount = 0;
soundtimer = getTimer();
cmpHandler = function (){
var _local1:*;
_local1 = (getDefinitionByName(("sound" + (int((Math.random() * 3)) + 1))) as Class);
bgsound = new (_local1);
bgsound.play(1, 1);
soundtimer = getTimer();
};
sclass = (getDefinitionByName(("sound" + (int((Math.random() * 3)) + 1))) as Class);
bgsound = new sclass();
bgsound.play(1, 1);
soundtimer = getTimer();
this.resetgame = false;
GHEnterFrame = function (){
if (((soundtimer + bgsound.length) + 2000) < getTimer()){
cmpHandler();
};
stage.focus = this;
Key.initialize(stage);
if ((framecount % 25) == 0){
i = 0;
while (i < 7) {
if (enemylevel[levelcount][i] > (Math.random() * 100)){
var _local1 = enemyevent;
_local1[i](this);
};
i++;
};
};
if (shake > 0){
this.x = ((Math.random() * shake) - (shake / 2));
this.y = ((Math.random() * shake) - (shake / 2));
shake--;
} else {
this.x = 0;
this.y = 0;
};
framecount = (framecount + (1 % 1000));
if (Key.isDown(39)){
position--;
};
if (Key.isDown(38)){
position--;
};
if (Key.isDown(37)){
position++;
};
if (Key.isDown(40)){
position++;
};
if (Key.isDown(65)){
position++;
};
if (Key.isDown(68)){
position--;
};
if ("player" != null){
player.px = ((250 * Math.cos((position / 20))) + 320);
player.py = ((250 * Math.sin((position / 20))) + 320);
if (player.hp > player.hpMax){
player.hp = player.hpMax;
};
if (player.hp <= 0){
if (life >= 0){
life--;
player.hp = 100;
MovieClip(parent).replife.text = life;
};
if (life < 0){
player.hp = 0;
player.visible = false;
GH_stopgame = true;
go.visible = true;
go.gotoAndPlay(2);
MovieClip(parent).replife.visible = false;
};
};
};
if ((framecount % gunspeed[weaponindex][gunlevel[weaponindex]]) == 0){
if (bulletcount[weaponindex] > bulletuse[weaponindex]){
_local1 = weapon;
_local1[weaponindex]();
bulletcount[weaponindex] = (bulletcount[weaponindex] - bulletuse[weaponindex]);
};
};
MovieClip(parent).rarep.text = bulletcount[2];
MovieClip(parent).floatrep.text = bulletcount[3];
MovieClip(parent).lasrep.text = bulletcount[4];
MovieClip(parent).homrep.text = bulletcount[5];
MovieClip(parent).stromrep.text = bulletcount[6];
if ((framecount % 25) == 0){
i = 1;
while (i < 7) {
if (bulletcount[i] < bulletmax[i]){
bulletcount[i] = (bulletcount[i] + bulletrecharge[i][gunlevel[i]]);
};
if (bulletcount[i] >= bulletmax[i]){
bulletcount[i] = bulletmax[i];
};
i++;
};
};
if (((((((((!((levelcount == 0))) && (!((levelcount == 16))))) && ((tilecount <= 0)))) && (!(((levelcount % 3) == 0))))) || ((((levelcount == 16)) && ((getChildByName("core") == null)))))){
if ((((player.hp > 0)) && ((life > 0)))){
GH_stopgame = true;
if (levelcount != 16){
sc.visible = true;
sc.gotoAndPlay(2);
} else {
player.visible = false;
i = 0;
while (i < numChildren) {
if ((getChildAt(i) as GHObject)){
if (((!((GHObject(getChildAt(i)) == player))) && (!((getChildAt(i) == getChildByName("core")))))){
GHObject(getChildAt(i)).visible = false;
};
};
i++;
};
};
};
};
MovieClip(parent).playerhpgage.gotoAndStop(Math.round(((player.hp * 100) / player.hpMax)));
if (getChildByName("core") != null){
MovieClip(parent).bosshpgage.gotoAndStop((int(((GHObject(getChildByName("core")).hp * 100) / bosshparray[levelcount])) + 1));
} else {
MovieClip(parent).bosshpgage.gotoAndStop(1);
};
MovieClip(parent).levelrep.text = levelcount;
chrep.text = ("" + numChildren);
MovieClip(parent).rscore.text = player.score;
};
stop();
}
public function floatingRemove(_arg1, _arg2){
floatingBomb(_arg2);
}
public function objectRemove(_arg1, _arg2){
effectAdd(_arg2);
}
public function kbDown(_arg1:KeyboardEvent){
key = _arg1.keyCode;
if ((((_arg1.keyCode >= 49)) && ((_arg1.keyCode <= 54)))){
if (buied[(_arg1.keyCode - 48)]){
weaponindex = (_arg1.keyCode - 48);
};
};
if (_arg1.keyCode == 75){
GH_stopgame = true;
tt.gotoAndPlay("skip");
};
}
public function hpRecovery(_arg1){
if ((framecount % 75) == 0){
_arg1.hp = (_arg1.hp + Math.round((Math.random() * _arg1.hpr)));
};
if (_arg1.hp >= _arg1.hpmax){
_arg1.hp = _arg1.hpmax;
};
}
public function hpRecoveryEx(_arg1, _arg2){
if ((framecount % 250) == 0){
_arg1.framecount = 0;
_arg1.hp = (_arg1.hp + _arg1.hpr);
};
}
public function effectAdd(_arg1){
var _local2:*;
_local2 = new mgfx_all();
_local2.gotoAndStop(_arg1.currentFrame);
_local2.x = (_local2.px = _arg1.x);
_local2.y = (_local2.py = _arg1.y);
this.addChild(_local2);
}
public function subamp(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = new Array();
_local4 = 0;
while (_local4 < _arg1.length) {
_local3[_local4] = (_arg1[_local4] * _arg2);
_local4++;
};
return (_local3);
}
public function levelUp(){
var _local1:*;
var _local2:*;
var _local3:*;
if (levelcount == 0){
GH_stopgame = true;
visible = false;
tt.visible = true;
};
levelcount++;
position = ((Math.PI / 2) * 20);
player.px = ((250 * Math.cos((position / 20))) + 320);
player.py = ((250 * Math.sin((position / 20))) + 320);
Mouse.hide();
_local1 = null;
i = 0;
while (i < numChildren) {
if ((getChildAt(i) as GHObject)){
if (((!((GHObject(getChildAt(i)) == player))) && (!((getChildAt(i) == getChildByName("core")))))){
GHObject(getChildAt(i)).visible = false;
};
};
i++;
};
if (levelcount == 1){
_local1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
tilecount = 0;
_local2 = 0;
while (_local2 < 13) {
_local3 = 0;
while (_local3 < 16) {
if (int(_local1[((_local2 * 16) + _local3)]) != 0){
obj = createEnemy[(_local1[((_local2 * 16) + _local3)] - 1)](((40 * _local3) + 20), ((40 * _local2) + 80), this);
obj.istile = true;
if (int(_local1[((_local2 * 16) + _local3)]) != 11){
tilecount++;
};
};
_local3++;
};
_local2++;
};
if (corelevel[levelcount] != null){
var _local4 = corelevel;
_local4[levelcount](this);
};
if ((((levelcount >= 1)) && ((levelcount <= 3)))){
bg.gotoAndStop(1);
} else {
if ((((levelcount >= 4)) && ((levelcount <= 6)))){
bg.gotoAndStop(2);
} else {
if ((((levelcount >= 7)) && ((levelcount <= 9)))){
bg.gotoAndStop(3);
} else {
if ((((levelcount >= 10)) && ((levelcount <= 12)))){
bg.gotoAndStop(4);
} else {
if ((((levelcount >= 13)) && ((levelcount <= 15)))){
bg.gotoAndStop(5);
};
};
};
};
};
if ((((((((((levelcount == 3)) || ((levelcount == 6)))) || ((levelcount == 9)))) || ((levelcount == 12)))) || ((levelcount == 15)))){
MovieClip(parent).idestroy.visible = true;
MovieClip(parent).idestroy.gotoAndStop("core_stage");
} else {
MovieClip(parent).idestroy.visible = true;
MovieClip(parent).idestroy.gotoAndStop("normal_stage");
};
}
public function floatingHit(_arg1, _arg2){
_arg2.hp = (_arg2.hp - _arg1.power);
_arg1.hp = (_arg1.hp - _arg2.power);
floatingBomb(_arg1);
_arg1.visible = false;
}
public function objectHit(_arg1, _arg2){
var _local3:*;
if (((_arg2.visible) && (_arg1.visible))){
_arg2.hp = (_arg2.hp - _arg1.power);
_arg1.hp = (_arg1.hp - _arg2.power);
if (_arg1.name == "ahero"){
obj = new hero_hited();
obj.gotoAndPlay(1);
obj.x = (obj.px = _arg1.x);
obj.y = (obj.py = _arg1.y);
this.addChild(obj);
};
if (_arg2.name == "ahero"){
_local3 = new hero_hited();
_local3.gotoAndPlay(1);
_local3.x = (_local3.px = _arg1.x);
_local3.y = (_local3.py = _arg1.y);
this.addChild(_local3);
};
if ((((_arg1.hp <= 0)) && (!((_arg1.name == "ahero"))))){
if (_arg1.name == "core"){
shake = 100;
if (levelcount <= 3){
levelcount = 3;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 6){
levelcount = 6;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 9){
levelcount = 9;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 12){
levelcount = 12;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 15){
levelcount = 15;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
};
};
};
};
};
};
if (_arg1.pirece == false){
if (getTimer() > (_arg1.ltime + 500)){
effectAdd(_arg1);
shake = 3;
_arg1.lobj = _arg2;
_arg1.ltime = getTimer();
};
} else {
effectAdd(_arg1);
};
if (_arg1.pirece){
if (_arg1.team == _arg1.GH_ENEMY){
player.money = (player.money + _arg1.money);
player.score = (player.score + _arg1.score);
};
_arg1.visible = false;
if (_arg1.istile != null){
if (_arg1.istile){
tilecount--;
};
};
};
};
if ((((_arg2.hp <= 0)) && (!((_arg2.name == "ahero"))))){
if (_arg2.name == "core"){
shake = 10;
if (levelcount <= 3){
levelcount = 3;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 6){
levelcount = 6;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 9){
levelcount = 9;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 12){
levelcount = 12;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
} else {
if (levelcount <= 15){
levelcount = 15;
GH_stopgame = true;
sc.visible = true;
sc.gotoAndPlay(2);
};
};
};
};
};
};
shake = 4;
effectAdd(_arg2);
if (_arg2.pirece){
if (_arg2.team == _arg2.GH_ENEMY){
player.money = (player.money + _arg2.money);
player.score = (player.score + _arg2.score);
};
_arg2.visible = false;
if (_arg2.istile != null){
if (_arg2.istile){
tilecount--;
};
};
};
};
};
}
}
}//package
Section 54
//gui_dia_tutorial (gui_dia_tutorial)
package {
import flash.display.*;
import flash.events.*;
import com.greenhermit.object.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gui_dia_tutorial extends GHObjectV2 {
public var g;
public var b_nextRelease;
public function gui_dia_tutorial(){
addFrameScript(0, frame1, 24, frame25, 49, frame50, 74, frame75, 99, frame100, 129, frame130);
}
function frame1(){
stop();
Mouse.show();
b_nextRelease = function (){
play();
};
b_next.addEventListener("click", b_nextRelease);
}
function frame25(){
stop();
}
function frame50(){
stop();
}
function frame75(){
stop();
}
function frame100(){
stop();
}
function frame130(){
g = MovieClip(parent).igame;
MovieClip(parent).igame.visible = true;
MovieClip(parent).igame.GH_stopgame = false;
MovieClip(parent).imouse.visible = true;
visible = false;
Mouse.hide();
stop();
}
}
}//package
Section 55
//hero_hited (hero_hited)
package {
import com.greenhermit.object.*;
public dynamic class hero_hited extends GHObjectV2 {
public function hero_hited(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package
Section 56
//mgfx_all (mgfx_all)
package {
import com.greenhermit.object.*;
public dynamic class mgfx_all extends GHObjectV2 {
public function mgfx_all(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 57
//mspr_all (mspr_all)
package {
import com.greenhermit.object.*;
public dynamic class mspr_all extends GHObjectV2 {
public function mspr_all(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 58
//shop (shop)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shop extends MovieClip {
public var b10:buy;
public var b12:SimpleButton;
public var b_moregame:SimpleButton;
public var b0:SimpleButton;
public var b1:SimpleButton;
public var b2:SimpleButton;
public var b4:SimpleButton;
public var b5:SimpleButton;
public var b8:buy;
public var b9:buy;
public var b3:SimpleButton;
public var b6:SimpleButton;
public var add_price;
public var b7:buy;
public var moreGame3;
public var b11:buy;
public var rolloutButton;
public var g;
public var i;
public var yourmoney:TextField;
public var buyprice;
public var w1:TextField;
public var w2:TextField;
public var w4:TextField;
public var w6:TextField;
public var w3:TextField;
public var b_mfz:SimpleButton;
public var w5:TextField;
public var laser_price;
public var clickButton;
public var meteor_price;
public var gui_description:MovieClip;
public var pw2:TextField;
public var pw4:TextField;
public var pw5:TextField;
public var pw3:TextField;
public var pw1:TextField;
public var pw6:TextField;
public var overButton;
public var vulcan_price;
public var hm_price;
public var EnterFrame;
public var upgprice;
public var fm_price;
public var r_vulcan_price;
public function shop(){
addFrameScript(0, frame1);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame1(){
overButton = new Array();
overButton[0] = function (_arg1:MouseEvent):void{
};
overButton[1] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_v");
};
overButton[2] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_rv");
};
overButton[3] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_fm");
};
overButton[4] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_l");
};
overButton[5] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_hm");
};
overButton[6] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("up_ms");
};
overButton[7] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("buy_rv");
};
overButton[8] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("buy_fm");
};
overButton[9] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("buy_l");
};
overButton[10] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("buy_hm");
};
overButton[11] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop("buy_ms");
};
overButton[12] = function (_arg1:MouseEvent):void{
};
rolloutButton = new Array();
rolloutButton[0] = function (_arg1:MouseEvent):void{
};
rolloutButton[1] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[2] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[3] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[4] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[5] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[6] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[7] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[8] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[9] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[10] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[11] = function (_arg1:MouseEvent):void{
gui_description.gotoAndStop(1);
};
rolloutButton[12] = function (_arg1:MouseEvent):void{
};
g = MovieClip(parent).igame;
b2.visible = false;
b3.visible = false;
b4.visible = false;
b5.visible = false;
b6.visible = false;
MovieClip(parent).b_rapid.visible = false;
MovieClip(parent).rarep.visible = false;
MovieClip(parent).b_floating.visible = false;
MovieClip(parent).floatrep.visible = false;
MovieClip(parent).b_laser.visible = false;
MovieClip(parent).b_homing.visible = false;
MovieClip(parent).b_strom.visible = false;
MovieClip(parent).lasrep.visible = false;
MovieClip(parent).homrep.visible = false;
MovieClip(parent).stromrep.visible = false;
buyprice = new Array(0, 0, 1600, 2000, 4500, 3500, 6000);
upgprice = new Array(0, 28, 60, 55, 90, 80, 95);
add_price = new Array(0, 110, 120, (130 + 10), (140 + 10), (150 + 20), (160 + 20), (170 + 30), (180 + 30), (190 + 45), (200 + 45));
clickButton = new Array();
clickButton[0] = function (_arg1:MouseEvent):void{
if (g.player.money >= (500 * (g.hprecoverylevel + 1))){
if (g.hprecoverylevel < (g.hprecovery.length - 1)){
g.player.money = (g.player.money - (500 * (g.hprecoverylevel + 1)));
g.hprecoverylevel++;
};
if (g.hprecoverylevel >= (g.hprecovery.length - 1)){
getChildByName("b0").visible = false;
};
};
};
clickButton[1] = function (_arg1:MouseEvent):void{
vulcan_price = Math.round((((upgprice[1] * (g.vulcanlevel + 1)) * add_price[(g.vulcanlevel + 1)]) / 100));
if (g.player.money >= vulcan_price){
if (g.vulcanlevel < (g.vulcanspeed.length - 1)){
g.player.money = (g.player.money - vulcan_price);
g.vulcanlevel++;
var _local2 = g.gunlevel;
var _local3 = 1;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.vulcanlevel >= (g.vulcanspeed.length - 1)){
getChildByName("b1").visible = false;
};
};
};
clickButton[2] = function (_arg1:MouseEvent):void{
r_vulcan_price = Math.round((((upgprice[2] * (g.rapidvulcanlevel + 1)) * add_price[(g.rapidvulcanlevel + 1)]) / 100));
if (g.player.money >= r_vulcan_price){
if (g.rapidvulcanlevel < (g.rapidvulcanspeed.length - 1)){
g.player.money = (g.player.money - r_vulcan_price);
g.rapidvulcanlevel++;
var _local2 = g.gunlevel;
var _local3 = 2;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.rapidvulcanlevel >= (g.rapidvulcanspeed.length - 1)){
getChildByName("b2").visible = false;
};
};
};
clickButton[3] = function (_arg1:MouseEvent):void{
fm_price = Math.round((((upgprice[3] * (g.floatingminelevel + 1)) * add_price[(g.floatingminelevel + 1)]) / 100));
if (g.player.money >= fm_price){
if (g.floatingminelevel < (g.floatingminespeed.length - 1)){
g.player.money = (g.player.money - fm_price);
g.floatingminelevel++;
var _local2 = g.gunlevel;
var _local3 = 3;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.floatingminelevel >= (g.floatingminespeed.length - 1)){
getChildByName("b3").visible = false;
};
};
};
clickButton[4] = function (_arg1:MouseEvent):void{
laser_price = Math.round((((upgprice[4] * (g.laserlevel + 1)) * add_price[(g.laserlevel + 1)]) / 100));
if (g.player.money >= laser_price){
if (g.laserlevel < (g.laserspeed.length - 1)){
g.player.money = (g.player.money - laser_price);
g.laserlevel++;
var _local2 = g.gunlevel;
var _local3 = 4;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.laserlevel >= (g.laserspeed.length - 1)){
getChildByName("b4").visible = false;
};
};
};
clickButton[5] = function (_arg1:MouseEvent):void{
hm_price = Math.round((((upgprice[5] * (g.hominglevel + 1)) * add_price[(g.hominglevel + 1)]) / 100));
if (g.player.money >= hm_price){
if (g.hominglevel < (g.homingspeed.length - 1)){
g.player.money = (g.player.money - hm_price);
g.hominglevel++;
var _local2 = g.gunlevel;
var _local3 = 5;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.hominglevel >= (g.homingspeed.length - 1)){
getChildByName("b5").visible = false;
};
};
};
clickButton[6] = function (_arg1:MouseEvent):void{
meteor_price = Math.round((((upgprice[6] * (g.stromlevel + 1)) * add_price[(g.stromlevel + 1)]) / 100));
if (g.player.money >= meteor_price){
if (g.stromlevel < (g.stromspeed.length - 1)){
g.player.money = (g.player.money - meteor_price);
g.stromlevel++;
var _local2 = g.gunlevel;
var _local3 = 6;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
if (g.stromlevel >= (g.stromspeed.length - 1)){
getChildByName("b6").visible = false;
};
};
};
clickButton[7] = function (_arg1:MouseEvent):void{
if (g.player.money >= buyprice[2]){
g.player.money = (g.player.money - buyprice[2]);
getChildByName("b7").visible = false;
getChildByName("b2").visible = true;
g.buied[2] = true;
MovieClip(parent).b_rapid.visible = true;
MovieClip(parent).rarep.visible = true;
};
};
clickButton[8] = function (_arg1:MouseEvent):void{
if (g.player.money >= buyprice[3]){
g.player.money = (g.player.money - buyprice[3]);
getChildByName("b8").visible = false;
getChildByName("b3").visible = true;
g.buied[3] = true;
MovieClip(parent).b_floating.visible = true;
MovieClip(parent).floatrep.visible = true;
};
};
clickButton[9] = function (_arg1:MouseEvent):void{
if (g.player.money >= buyprice[4]){
g.player.money = (g.player.money - buyprice[4]);
getChildByName("b9").visible = false;
getChildByName("b4").visible = true;
g.buied[4] = true;
MovieClip(parent).b_laser.visible = true;
MovieClip(parent).lasrep.visible = true;
};
};
clickButton[10] = function (_arg1:MouseEvent):void{
if (g.player.money >= buyprice[5]){
g.player.money = (g.player.money - buyprice[5]);
getChildByName("b10").visible = false;
getChildByName("b5").visible = true;
g.buied[5] = true;
MovieClip(parent).b_homing.visible = true;
MovieClip(parent).homrep.visible = true;
};
};
clickButton[11] = function (_arg1:MouseEvent):void{
if (g.player.money >= buyprice[6]){
g.player.money = (g.player.money - buyprice[6]);
getChildByName("b11").visible = false;
getChildByName("b6").visible = true;
g.buied[6] = true;
MovieClip(parent).b_strom.visible = true;
MovieClip(parent).stromrep.visible = true;
};
};
clickButton[12] = function (_arg1:MouseEvent):void{
g.GH_stopgame = false;
g.levelUp();
visible = false;
};
i = 0;
while (i < 100) {
if (getChildByName(("b" + i)) != null){
getChildByName(("b" + i)).addEventListener(MouseEvent.CLICK, clickButton[i]);
getChildByName(("b" + i)).addEventListener(MouseEvent.MOUSE_OVER, overButton[i]);
getChildByName(("b" + i)).addEventListener(MouseEvent.MOUSE_OUT, rolloutButton[i]);
};
i++;
};
EnterFrame = function (){
alpha = (alpha + 0.1);
if (alpha > 1){
alpha = 1;
};
i = 1;
while (i < 7) {
TextField(getChildByName(("w" + i))).text = g.gunlevel[i];
i++;
};
i = 1;
while (i < 7) {
if (getChildByName(("b" + i)).visible){
Math.round((((upgprice[6] * (g.stromlevel + 1)) * add_price[(g.stromlevel + 1)]) / 100));
TextField(getChildByName(("pw" + i))).text = ("" + Math.round(((((g.gunlevel[i] + 1) * upgprice[i]) * add_price[(g.gunlevel[i] + 1)]) / 100)));
} else {
TextField(getChildByName(("pw" + i))).text = "MAX";
};
if ((((i >= 2)) && ((i <= 6)))){
if (getChildByName(("b" + (i + 5))).visible){
TextField(getChildByName(("pw" + i))).text = ("" + buyprice[i]);
};
};
i++;
};
yourmoney.text = ("" + (Math.round((g.player.money * 10)) / 10));
MovieClip(parent).rmoney.text = (Math.round((g.player.money * 10)) / 10);
};
addEventListener(Event.ENTER_FRAME, EnterFrame);
stop();
moreGame3 = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregame.addEventListener("mouseUp", moreGame3);
b_mfz.addEventListener("mouseUp", moreGame3);
}
}
}//package
Section 59
//sound1 (sound1)
package {
import flash.media.*;
public dynamic class sound1 extends Sound {
}
}//package
Section 60
//sound2 (sound2)
package {
import flash.media.*;
public dynamic class sound2 extends Sound {
}
}//package
Section 61
//sound3 (sound3)
package {
import flash.media.*;
public dynamic class sound3 extends Sound {
}
}//package
Section 62
//tmouse (tmouse)
package {
import com.greenhermit.object.*;
public dynamic class tmouse extends GHObjectV2 {
public function tmouse(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package