Section 1
//AlarmClock (GREENHERMIT.GHDurationControl.AlarmClock)
package GREENHERMIT.GHDurationControl {
public class AlarmClock extends TimerBase {
public var timecount:Number;
public var stoptimer:Boolean;
public var timearray:Object;
public var getupfn:Function;
public function AlarmClock(_arg1:Function, _arg2:Array){
this.getupfn = _arg1;
this.timearray = _arg2;
timecount = 0;
stoptimer = false;
}
public function stop(){
stoptimer = true;
}
public function resume(){
stoptimer = false;
}
override public function process(){
if (stoptimer){
return;
};
if (timearray[timecount] != null){
getupfn(timearray[timecount], objectduration);
};
timecount++;
}
}
}//package GREENHERMIT.GHDurationControl
Section 2
//Duration (GREENHERMIT.GHDurationControl.Duration)
package GREENHERMIT.GHDurationControl {
public class Duration extends TimerBase {
public var durationEvent:Function;
public var countdown:Number;
public var duration:Number;
public function Duration(_arg1:Number, _arg2:Function){
this.duration = _arg1;
this.countdown = _arg1;
this.durationEvent = _arg2;
}
override public function process(){
if (this.duration <= 0){
return;
};
if (this.countdown > 0){
this.countdown--;
if (this.countdown == 0){
if (durationEvent != null){
durationEvent(objectduration);
};
};
};
}
}
}//package GREENHERMIT.GHDurationControl
Section 3
//TimerBase (GREENHERMIT.GHDurationControl.TimerBase)
package GREENHERMIT.GHDurationControl {
public class TimerBase {
public var objectduration:Object;
public function process(){
}
}
}//package GREENHERMIT.GHDurationControl
Section 4
//GunDesc (GREENHERMIT.GHGun.GunDesc)
package GREENHERMIT.GHGun {
public class GunDesc {
public var gun:String;
public var reloadEvent:Function;
public var workEvent:Function;
public var cooldowncount:Number;
public var fullEvent:Function;
public var mag:Number;
public var reloadcount:Number;
public var shootClass:Object;
public var magcount:Number;
public var reload:Number;
public var frequency:Number;
public var cooldown:Number;
public var frequencycount:Number;
public var gageframe:Number;
public var shootEvent:Function;
public var pause:Boolean;
public function GunDesc(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0){
this.mag = _arg2;
this.magcount = _arg2;
this.reload = _arg3;
this.reloadcount = 0;
this.frequency = _arg4;
this.frequencycount = 0;
this.pause = false;
this.gun = _arg1;
this.cooldown = _arg5;
this.cooldowncount = 0;
gageframe = int(((magcount / _arg2) * 100));
}
public function fullMag(){
reloadcount = 0;
magcount = mag;
frequencycount = 0;
gageframe = int(((magcount / mag) * 100));
}
public function process(){
if (mag <= 0){
return;
};
if (frequency <= 0){
return;
};
if (reload < 0){
return;
};
if (workEvent != null){
workEvent();
};
if (cooldown != 0){
cooldowncount++;
if (cooldowncount == cooldown){
if ((((reloadcount == 0)) && ((magcount < mag)))){
magcount++;
gageframe = int(((magcount / mag) * 100));
};
cooldowncount = 0;
};
};
if (frequencycount > 50000000){
frequencycount = 0;
};
if (reloadcount > 0){
reloadcount--;
gageframe = int((((reload - reloadcount) / (reload + 1)) * 100));
if (reloadcount == 0){
if (fullEvent != null){
gageframe = 100;
fullEvent();
};
magcount = mag;
gageframe = int(((magcount / mag) * 100));
frequencycount = 0;
};
};
if (pause){
return;
};
frequencycount++;
if (frequencycount == frequency){
if (magcount > 0){
shootClass.process(this);
if (shootEvent != null){
shootEvent(shootClass.lastbullet);
};
frequencycount = 0;
gageframe = int(((magcount / mag) * 100));
magcount--;
if (magcount == 0){
reloadcount = reload;
if (reloadEvent != null){
reloadEvent();
};
};
};
};
}
public function pauseToggle(_arg1:Object=null){
if (_arg1 != null){
this.pause = _arg1;
} else {
this.pause = !(this.pause);
};
}
public function shootNow(){
if (magcount > 0){
shootClass.process(this);
gageframe = int(((magcount / mag) * 100));
magcount--;
if (magcount == 0){
if (reloadEvent != null){
reloadEvent();
};
reloadcount = reload;
};
};
}
}
}//package GREENHERMIT.GHGun
Section 5
//AngleDropMove (GREENHERMIT.GHMovement.AngleDropMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class AngleDropMove extends MoveBaseClass {
var speed:Number;
var speedy:Number;
var angle:Number;
var rot:Boolean;
var speedx:Number;
var gravity:Number;
var accy:Number;
var speedy2:Number;
public function AngleDropMove(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Boolean=true, _arg5:Number=0.5){
control = _arg1;
this.angle = _arg2;
this.speed = _arg3;
this.speedx = (_arg3 * Math.cos(((_arg2 * Math.PI) / 180)));
this.speedy = (_arg3 * Math.sin(((_arg2 * Math.PI) / 180)));
this.rot = _arg4;
this.accy = 0;
this.gravity = _arg5;
this.speedy2 = 0;
}
override public function setSpeed(_arg1:Number){
this.speed = _arg1;
this.speedx = (_arg1 * Math.cos(((angle * Math.PI) / 180)));
this.speedy = (_arg1 * Math.sin(((angle * Math.PI) / 180)));
}
override public function getSpeed():Number{
return (speed);
}
override public function process(){
accy = (accy + gravity);
speedy2 = (speedy + accy);
if (rot){
control.rotation = ((Math.atan2(speedy2, speedx) * 180) / Math.PI);
};
control.y = (control.y + speedy2);
control.x = (control.x + speedx);
}
}
}//package GREENHERMIT.GHMovement
Section 6
//AngleMove (GREENHERMIT.GHMovement.AngleMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class AngleMove extends LineMove {
public function AngleMove(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Boolean=true){
this.angle = _arg2;
this.speed = _arg3;
super(_arg1, (_arg3 * Math.cos(((_arg2 * Math.PI) / 180))), (_arg3 * Math.sin(((_arg2 * Math.PI) / 180))), _arg4);
}
}
}//package GREENHERMIT.GHMovement
Section 7
//LineMove (GREENHERMIT.GHMovement.LineMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class LineMove extends MoveBaseClass {
public var speed:Number;
public var speedx:Number;
public var speedy:Number;
public var angle:Number;
public var rotation:Boolean;
public function LineMove(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Boolean=true){
control = _arg1;
this.speedx = _arg2;
this.speedy = _arg3;
angle = ((Math.atan2(_arg3, _arg2) * 180) / Math.PI);
speed = Math.sqrt(((_arg2 * _arg2) + (_arg3 * _arg3)));
this.rotation = _arg4;
}
override public function setSpeed(_arg1:Number){
this.speed = _arg1;
this.speedx = (this.speed * Math.cos(((angle * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((angle * Math.PI) / 180)));
}
override public function process(){
control.x = (control.x + speedx);
control.y = (control.y + speedy);
if (rotation){
control.rotation = ((((Math.atan2(speedy, speedx) * 180) / Math.PI) + 360) % 360);
};
}
override public function getSpeed():Number{
return (speed);
}
}
}//package GREENHERMIT.GHMovement
Section 8
//MapMove (GREENHERMIT.GHMovement.MapMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class MapMove extends MoveBaseClass {
private var SLOPEB2:Number;// = 0x808000
private var speedx:Number;
private var SLOPELEFT:Number;// = 0xFF0000
public var ground:Boolean;
private var SLOPEB:Number;// = 0x800000
public var dashground:Boolean;
public var right:Number;
public var left:Number;
private var speedy:Number;
private var CLOSEALL:Number;// = 0xFF
public var dash:Number;
private var speed:Number;
public var jumplimit:Number;
private var SLOPERIGHT:Number;// = 0xFFFF00
private var CLOSETOP:Number;// = 0xFF00
private var map:BitmapData;
public var isjump:Boolean;
public var cannotWalk:Function;
private var mapscale:Number;
private var FREE:Number;// = 0
public var dashdirect:Number;
public var jumpfactor:Number;
public var jumpbase:Number;
public function MapMove(_arg1:MovieClip, _arg2:BitmapData, _arg3:Number, _arg4:Number=40){
CLOSEALL = 0xFF;
CLOSETOP = 0xFF00;
SLOPELEFT = 0xFF0000;
SLOPERIGHT = 0xFFFF00;
SLOPEB = 0x800000;
SLOPEB2 = 0x808000;
FREE = 0;
super();
control = _arg1;
if (control.gravity == null){
control.gravity = 3;
control.movegravity = control.gravity;
} else {
control.movegravity = control.gravity;
};
if (control.direct == null){
control.direct = 0;
control.movedirect = control.direct;
} else {
control.movedirect = control.direct;
};
this.speedy = 0;
this.speedx = 0;
this.speed = _arg3;
this.map = _arg2;
this.mapscale = _arg4;
this.ground = false;
this.jumpfactor = 0;
this.jumplimit = 0;
isjump = false;
jumpbase = 0;
dash = 0;
dashground = false;
}
override public function setSpeed(_arg1:Number){
this.speed = _arg1;
}
override public function getSpeed():Number{
return (speed);
}
public function setZone(_arg1:Number, _arg2:Number){
this.left = _arg1;
this.right = _arg2;
}
public function jumpNow(_arg1:Number=10, _arg2:Number=81){
if (((ground) && ((dash == 0)))){
ground = false;
isjump = !(ground);
speedy = control.movegravity;
speedy = (speedy - (_arg1 * control.movegravity));
jumpbase = control.y;
this.jumplimit = _arg2;
};
}
public function getDirect():Number{
return (control.direct);
}
public function dashNow(_arg1:Number, _arg2:Number=10){
this.dashdirect = _arg1;
this.dash = _arg2;
if (ground){
dashground = true;
} else {
dashground = false;
};
}
override public function process(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
dash--;
if (dash > 0){
_local2 = dash;
} else {
_local2 = 1;
dash = 0;
};
_local1 = 0;
while (_local1 < _local2) {
_local3 = control.x;
_local4 = control.y;
speedx = speed;
if (speed > mapscale){
speedx = mapscale;
};
speedx = (control.movedirect * speedx);
if (dash > 0){
speedx = ((dash / 2) * dashdirect);
};
speedy = (speedy + control.movegravity);
if (speedy > mapscale){
speedy = mapscale;
};
if (speedy < -(mapscale)){
speedy = -(mapscale);
};
if (dash > 0){
if (!dashground){
speedy = 1;
} else {
_local10 = int((_local3 / mapscale));
_local11 = int(((_local4 + 10) / mapscale));
_local12 = map.getPixel(_local7, _local8);
if (_local12 == FREE){
dashground = false;
};
};
};
_local5 = (_local4 + speedy);
_local6 = (_local3 + speedx);
_local7 = int((_local6 / mapscale));
_local8 = int((_local4 / mapscale));
_local9 = map.getPixel(_local7, _local8);
if ((((_local9 == SLOPEB)) || ((_local9 == SLOPEB2)))){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
_local3 = _local6;
ground = true;
isjump = !(ground);
speedy = 0;
} else {
if (_local9 == CLOSEALL){
if (cannotWalk != null){
cannotWalk();
};
} else {
_local3 = _local6;
};
};
control.x = _local3;
if (speedy >= 0){
_local7 = int((_local3 / mapscale));
_local8 = int((_local5 / mapscale));
_local9 = map.getPixel(_local7, _local8);
_local13 = int((_local4 / mapscale));
_local14 = map.getPixel(_local7, _local13);
if ((((_local14 == SLOPEB)) || ((_local14 == SLOPEB2)))){
_local5 = ((_local13 * mapscale) - 1);
_local4 = _local5;
ground = true;
isjump = !(ground);
speedy = 0;
};
if (_local14 == SLOPERIGHT){
_local15 = ((((_local13 + 1) * mapscale) - 1) - (mapscale - (_local3 % mapscale)));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local14 == SLOPELEFT){
_local15 = ((((_local13 + 1) * mapscale) - 1) - (_local3 % mapscale));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if ((((_local14 == FREE)) || ((_local14 == CLOSETOP)))){
if (_local9 == FREE){
_local4 = _local5;
} else {
if (_local9 == CLOSEALL){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
speedy = 0;
ground = true;
isjump = !(ground);
} else {
if (_local9 == CLOSETOP){
_local16 = ((_local8 * mapscale) - 1);
if ((jumpbase - jumplimit) < _local16){
_local4 = _local16;
speedy = 0;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local9 == SLOPELEFT){
_local15 = ((((_local8 + 1) * mapscale) - 1) - (_local3 % mapscale));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local9 == SLOPERIGHT){
_local15 = ((((_local8 + 1) * mapscale) - 1) - (mapscale - (_local3 % mapscale)));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if ((((_local9 == SLOPEB)) || ((_local9 == SLOPEB2)))){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
ground = true;
isjump = !(ground);
speedy = 0;
};
};
};
};
};
};
};
};
};
} else {
if (speedy < 0){
_local7 = int((_local3 / mapscale));
_local8 = int((_local5 / mapscale));
_local9 = map.getPixel(_local7, _local8);
if (_local9 == CLOSEALL){
speedy = control.movegravity;
} else {
_local4 = _local5;
};
};
};
if (!isjump){
jumpbase = 0;
};
control.y = _local4;
_local1++;
};
if (control.x > right){
control.x = right;
if (cannotWalk != null){
cannotWalk();
};
};
if (control.x < left){
control.x = left;
if (cannotWalk != null){
cannotWalk();
};
};
}
public function setDirect(_arg1:Number){
control.movedirect = _arg1;
control.direct = _arg1;
}
}
}//package GREENHERMIT.GHMovement
Section 9
//MoveBaseClass (GREENHERMIT.GHMovement.MoveBaseClass)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class MoveBaseClass {
public var ai:Function;
private var testcounter:Number;
public var control:MovieClip;
public function setSpeed(_arg1:Number){
trace(("Not impliment" + this));
}
public function process(){
trace(("Not impliment" + this));
}
public function getSpeed():Number{
trace(("Not impliment" + this));
return (0);
}
}
}//package GREENHERMIT.GHMovement
Section 10
//PositionMove (GREENHERMIT.GHMovement.PositionMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public class PositionMove extends LineMove {
public function PositionMove(_arg1:MovieClip, _arg2:Object, _arg3:Number, _arg4:Boolean=true){
this.angle = API.findAngle(_arg1, _arg2);
this.speed = _arg3;
super(_arg1, (_arg3 * Math.cos(((angle * Math.PI) / 180))), (_arg3 * Math.sin(((angle * Math.PI) / 180))), _arg4);
}
}
}//package GREENHERMIT.GHMovement
Section 11
//RandomShoot (GREENHERMIT.GHShootingStyle.RandomShoot)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class RandomShoot extends ShootBaseMethod {
var bullet:Object;
public function RandomShoot(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = API.createMovieFromBase(_local2.parent.objectin, bullet);
if (_local3 != null){
_local4.x = _local3.x;
_local4.y = _local3.y;
} else {
_local4.x = shooter.x;
_local4.y = shooter.y;
};
API.setMotion(_local4, new AngleMove(_local4, (Math.random() * 360), _local4.speed));
}
}
}//package GREENHERMIT.GHShootingStyle
Section 12
//RandomShootEx (GREENHERMIT.GHShootingStyle.RandomShootEx)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class RandomShootEx extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function RandomShootEx(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = (Math.random() * 360);
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
if (_local3 != null){
_local6.x = _local3.x;
_local6.y = _local3.y;
} else {
_local6.x = shooter.x;
_local6.y = shooter.y;
};
_local6.rotation = (_local4 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local6, new AngleMove(_local6, (_local4 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local6.speed));
_local5++;
};
}
}
}//package GREENHERMIT.GHShootingStyle
Section 13
//ShootBaseMethod (GREENHERMIT.GHShootingStyle.ShootBaseMethod)
package GREENHERMIT.GHShootingStyle {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import flash.geom.*;
public dynamic class ShootBaseMethod {
public var shooter:Object;
public var game:Object;
public var lastbullet:MovieClip;
public var world:MovieClip;
public function getGunPoint(_arg1:MovieClip):Point{
var _local2:*;
if (_arg1 != null){
_local2 = new Point(_arg1.x, _arg1.y);
_local2 = _arg1.parent.localToGlobal(_local2);
_local2 = MovieClip(_arg1.parent).objectin.globalToLocal(_local2);
return (_local2);
};
return (null);
}
public function getGunObject(_arg1:GunDesc):MovieClip{
if (shooter[_arg1.gun] == null){
throw (Error(((("Error: " + shooter) + " need ") + _arg1.gun)));
};
return (shooter[_arg1.gun]);
}
public function clear(){
}
public function getWorldPoint(_arg1:MovieClip):Point{
var gp:*;
var object = _arg1;
if (object != null){
try {
gp = new Point(object.x, object.y);
gp = object.parent.localToGlobal(gp);
gp = MovieClip(object.parent).objectin.globalToLocal(gp);
} catch(e) {
gp = null;
};
return (gp);
//unresolved jump
};
return (null);
}
public function process(_arg1:GunDesc){
}
}
}//package GREENHERMIT.GHShootingStyle
Section 14
//ShootLookingObject (GREENHERMIT.GHShootingStyle.ShootLookingObject)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import flash.geom.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootLookingObject extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootLookingObject(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (shooter.looking == null){
return;
};
if (!shooter.looking.visible){
return;
};
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = new Point(shooter.looking.x, shooter.looking.y);
if (shooter.looking.hit != null){
_local4 = getWorldPoint(shooter.looking.hit);
};
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
if (_local3 != null){
_local6.x = _local3.x;
_local6.y = _local3.y;
} else {
_local6.x = shooter.x;
_local6.y = shooter.y;
};
_local7 = API.findAngle(_local3, _local4);
if (info.err != null){
_local7 = (_local7 + ((Math.random() * info.err) - (info.err / 2)));
};
_local6.rotation = (_local7 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local6, new AngleMove(_local6, (_local7 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local6.speed));
_local5++;
};
_local4 = null;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 15
//ShootMouse (GREENHERMIT.GHShootingStyle.ShootMouse)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import flash.geom.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootMouse extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootMouse(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = super.game;
_local3 = getGunObject(_arg1);
_local4 = getGunPoint(_local3);
_local5 = new Point(_local3.parent.objectin.mouseX, _local3.parent.objectin.mouseY);
_local6 = 0;
while (_local6 < info.way) {
_local7 = API.createMovieFromBase(_local3.parent.objectin, bullet);
lastbullet = _local7;
if (_local4 != null){
_local7.x = _local4.x;
_local7.y = _local4.y;
} else {
_local7.x = shooter.x;
_local7.y = shooter.y;
};
_local8 = API.findAngle(_local4, _local5);
if (info.err != null){
_local8 = (_local8 + ((Math.random() * info.err) - (info.err / 2)));
};
API.setMotion(_local7, new AngleMove(_local7, (_local8 - ((_local6 - ((info.way - 1) * 0.5)) * info.angle)), _local7.speed));
_local6++;
};
_local5 = null;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 16
//ShootOwnerAngle (GREENHERMIT.GHShootingStyle.ShootOwnerAngle)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootOwnerAngle extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootOwnerAngle(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = 0;
while (_local4 < info.way) {
_local5 = API.createMovieFromBase(_local2.parent.objectin, bullet);
if (_local3 != null){
_local5.x = _local3.x;
_local5.y = _local3.y;
} else {
_local5.x = shooter.x;
_local5.y = shooter.y;
};
_local6 = _local2.parent.rotation;
if (info.err != null){
_local6 = (_local6 + ((Math.random() * info.err) - (info.err / 2)));
};
_local5.rotation = (_local6 - ((_local4 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local5, new AngleMove(_local5, (_local6 - ((_local4 - ((info.way - 1) * 0.5)) * info.angle)), _local5.speed));
_local4++;
};
}
}
}//package GREENHERMIT.GHShootingStyle
Section 17
//ShootOwnerAngleLoop (GREENHERMIT.GHShootingStyle.ShootOwnerAngleLoop)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootOwnerAngleLoop extends ShootBaseMethod {
var bullet:Object;
var info:Object;
var shootorder:Number;
public function ShootOwnerAngleLoop(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
shootorder = 0;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = API.createMovieFromBase(_local2.parent.objectin, bullet);
_local5 = (shootorder % info.way);
if (_local3 != null){
_local4.x = _local3.x;
_local4.y = _local3.y;
} else {
_local4.x = shooter.x;
_local4.y = shooter.y;
};
_local6 = _local2.parent.rotation;
if (info.err != null){
_local6 = (_local6 + ((Math.random() * info.err) - (info.err / 2)));
};
_local4.rotation = (_local6 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local4, new AngleMove(_local4, (_local6 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local4.speed));
shootorder++;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 18
//KeyframeTemplate (GREENHERMIT.GHTemplate.KeyframeTemplate)
package GREENHERMIT.GHTemplate {
import flash.events.*;
public class KeyframeTemplate extends TemplateBaseClass {
public var keyFrameStyleEnterFrame:Function;
public var EventKBRelease:Function;
public var EventKBPress:Function;
override public function keyboardRelease(_arg1:Number){
if (EventKBRelease != null){
EventKBRelease(_arg1);
};
}
override public function EnterFrame(_arg1:Event){
var e = _arg1;
try {
super.EnterFrame(e);
if (this.keyFrameStyleEnterFrame != null){
this.keyFrameStyleEnterFrame(e);
};
} catch(e) {
trace(e);
};
}
override public function keyboardPress(_arg1:Number){
if (EventKBPress != null){
EventKBPress(_arg1);
};
}
}
}//package GREENHERMIT.GHTemplate
Section 19
//TemplateBaseClass (GREENHERMIT.GHTemplate.TemplateBaseClass)
package GREENHERMIT.GHTemplate {
import flash.display.*;
import GREENHERMIT.GHShootingStyle.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
public class TemplateBaseClass extends MovieClip {
public var space:Object;
public var css:Object;
public var gamewidth:Number;
public var worldlist:Array;
public var gamepause:Boolean;
public var GHLINK:DisplayObject;
public var key:Array;
public var processfn:Array;
public var world:Object;
public var gameheight:Number;
public var processlist:Array;
public var spacelist:Array;
public var spaceprocesslist:Array;
public var cam:Object;
public var GHDESIGNCSS:StyleSheet;
public var keyfocus:MovieClip;
public var game:Object;
public function TemplateBaseClass(){
var _local1:RandomShoot;
var _local2:RandomShootEx;
var _local3:ShootLookingObject;
var _local4:ShootMouse;
var _local5:ShootOwnerAngle;
var _local6:ShootOwnerAngleLoop;
super();
game = this;
gamepause = false;
GHDESIGNCSS = MovieClip(parent).designCSS;
GHLINK = MovieClip(parent).llink;
css = CSSToVar.createVariable(this);
worldlist = new Array();
spacelist = new Array();
spaceprocesslist = new Array();
processlist = new Array();
processfn = new Array();
gamewidth = 640;
gameheight = 480;
key = new Array();
API.setLibrary(GHLINK);
cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:{x1:0, y1:0, x2:640, y2:480}};
keyfocus = new MovieClip();
keyfocus.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
keyfocus.addEventListener(KeyboardEvent.KEY_UP, keyup);
this.addEventListener(Event.ENTER_FRAME, EnterFrame);
stop();
}
public function keyboardRelease(_arg1:Number){
}
public function keydown(_arg1:KeyboardEvent){
keyboardPress(_arg1.keyCode);
key[_arg1.keyCode] = true;
}
public function keyup(_arg1:KeyboardEvent){
key[_arg1.keyCode] = false;
keyboardRelease(_arg1.keyCode);
delete key[_arg1.keyCode];
}
public function camProcess(){
if (cam.focusobject != null){
cam.smoothx = (cam.focusobject.x - (gamewidth / 2));
cam.smoothy = (cam.focusobject.y - (gameheight / 2));
if (cam.round != null){
if (cam.smoothx > (cam.round.x2 - gamewidth)){
cam.smoothx = (cam.round.x2 - gamewidth);
};
if (cam.smoothx < cam.round.x1){
cam.smoothx = cam.round.x1;
};
if (cam.smoothy > (cam.round.y2 - gameheight)){
cam.smoothy = (cam.round.y2 - gameheight);
};
if (cam.smoothy < cam.round.y1){
cam.smoothy = cam.round.y1;
};
};
API.smoothCamY(cam);
API.smoothCamX(cam);
API.updateWorld(world, cam);
};
}
public function freeSystemListener(){
this.removeEventListener(Event.ENTER_FRAME, EnterFrame);
keyfocus.removeEventListener(KeyboardEvent.KEY_DOWN, keydown);
keyfocus.removeEventListener(KeyboardEvent.KEY_UP, keyup);
}
public function createLayer(){
LayerCore.addGroup(this, "world", 0, 0);
LayerCore.addGroup(this, "space", 0, 0);
LayerCore.createLayerFromList(world, worldlist);
LayerCore.createLayerFromList(space, spacelist);
}
public function EnterFrame(_arg1:Event){
var e = _arg1;
if (gamepause){
return;
};
try {
stage.focus = keyfocus;
} catch(e) {
};
if (world != null){
try {
camProcess();
LayerCore.processListGroup(world, processlist, processfn);
LayerCore.processListGroup(space, spaceprocesslist, processfn);
} catch(e) {
trace(e);
};
};
}
public function keyboardPress(_arg1:Number){
}
public function readDesignDoc(_arg1:String):Object{
var _local2:*;
var _local3:*;
_local2 = GHDESIGNCSS.getStyle(_arg1);
for (_local3 in _local2) {
if (isNaN(Number(_local2[_local3]))){
} else {
_local2[_local3] = Number(_local2[_local3]);
};
};
return (_local2);
}
public function createWorld(){
createLayer();
}
}
}//package GREENHERMIT.GHTemplate
Section 20
//API (GREENHERMIT.GHUtils.API)
package GREENHERMIT.GHUtils {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHShootingStyle.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHDurationControl.*;
import flash.utils.*;
public class API {
private static var createcount:Number = 0;
private static var library:DisplayObject = null;
public static function setTimeCount(_arg1:MovieClip, _arg2:Number){
if (_arg1.durationclass != null){
_arg1.durationclass.timecount = _arg2;
};
}
public static function getClass(_arg1:String):Class{
if (library != null){
return (MovieClip(library).getClass(_arg1));
};
return ((getDefinitionByName(_arg1) as Class));
}
public static function setSpeed(_arg1:MovieClip, _arg2:Number){
if (_arg1.motclass == null){
trace((_arg1.name + " need GHMotion setSpeed"));
return (0);
};
_arg1.motclass.setSpeed(_arg2);
}
public static function smoothCamY(_arg1:Object){
var _local2:*;
_local2 = (_arg1.y - _arg1.smoothy);
if (_local2 < 0){
_arg1.y = (_arg1.y + int((Math.abs((_arg1.y - _arg1.smoothy)) / 3)));
} else {
if (_local2 > 0){
_arg1.y = (_arg1.y - int((Math.abs((_arg1.y - _arg1.smoothy)) / 3)));
};
};
}
public static function updateWorld(_arg1:Object, _arg2:Object){
_arg1.x = -(_arg2.x);
_arg1.y = -(_arg2.y);
}
public static function getTimeCount(_arg1:MovieClip):Number{
if (_arg1.durationclass != null){
return (_arg1.durationclass.timecount);
};
return (0);
}
public static function createMovieFromBase(_arg1:Object, _arg2:Object, _arg3:Object=null, _arg4:String=null){
var world:*;
var imgclass:*;
var newclip:*;
var field:*;
var worldobj = _arg1;
var base = _arg2;
var addition = _arg3;
var name = _arg4;
world = MovieClip(worldobj);
imgclass = null;
newclip = null;
try {
newclip = new (getClass(base.linkage));
} catch(e) {
try {
newclip = new (getClass("cerror"));
} catch(e) {
trace("Create cerror::linkage in library to Show Error Object");
return (base);
};
};
for (field in base) {
newclip[field] = base[field];
};
if (addition != null){
for (field in addition) {
newclip[field] = addition[field];
};
};
if (name == null){
createcount++;
newclip.name = (((((((base.layer + "/") + "[css:") + base.__ghbasename) + "]/") + newclip) + ".") + createcount);
} else {
createcount++;
newclip.name = (((name + "[") + createcount) + "]");
};
if (base.createMovieFinish != null){
base.createMovieFinish(newclip, base);
};
newclip.objectin = world;
world[base.layer].addChild(newclip);
return (newclip);
}
public static function getSpeed(_arg1:MovieClip):Number{
if (_arg1.motclass == null){
trace((_arg1.name + " need GHMotion getSpeed"));
return (0);
};
return (_arg1.motclass.getSpeed());
}
public static function setDuration(_arg1:MovieClip, _arg2:Number, _arg3:Function){
_arg1.durationclass = new Duration(_arg2, _arg3);
_arg1.durationclass.objectduration = _arg1;
}
public static function resumeTime(_arg1:MovieClip){
if (_arg1.durationclass != null){
_arg1.durationclass.resume();
};
}
public static function findAngle(_arg1:Object, _arg2:Object):Number{
var dx:*;
var dy:*;
var red:*;
var p1 = _arg1;
var p2 = _arg2;
try {
dx = (p2.x - p1.x);
dy = (p2.y - p1.y);
red = Math.atan2(dy, dx);
} catch(e) {
red = ((Math.random() * 2) * Math.PI);
};
return (((red * 180) / Math.PI));
}
public static function setShooterType(_arg1:MovieClip){
_arg1.gunclasslist = new Array();
}
public static function setDurationEx(_arg1:MovieClip, _arg2:Array, _arg3:Function){
_arg1.durationclass = new AlarmClock(_arg3, _arg2);
_arg1.durationclass.objectduration = _arg1;
}
public static function getMotion(_arg1:MovieClip):MoveBaseClass{
return (_arg1.motclass);
}
public static function stopTime(_arg1:MovieClip){
if (_arg1.durationclass != null){
_arg1.durationclass.stop();
};
}
public static function removeMotion(_arg1:MovieClip){
_arg1.motclass = null;
}
public static function smoothCamX(_arg1:Object){
var _local2:*;
_local2 = (_arg1.x - _arg1.smoothx);
if (_local2 < 0){
_arg1.x = (_arg1.x + int((Math.abs((_arg1.x - _arg1.smoothx)) / 3)));
} else {
if (_local2 > 0){
_arg1.x = (_arg1.x - int((Math.abs((_arg1.x - _arg1.smoothx)) / 3)));
};
};
}
public static function setMotion(_arg1:MovieClip, _arg2:MoveBaseClass){
_arg2.control = _arg1;
_arg1.motclass = _arg2;
}
public static function setLibrary(_arg1:DisplayObject){
library = _arg1;
}
public static function setAlarmTime(_arg1:MovieClip, _arg2:Number){
if (_arg1.durationclass != null){
_arg1.durationclass.timecount = _arg2;
};
}
public static function removeAllCompositClass(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = 0;
if (_arg1.motclass != null){
delete _arg1.motclass;
};
if (_arg1.gunclasslist != null){
_local2 = (_arg1.gunclasslist.length - 1);
while (_local2 >= 0) {
_arg1.gunclasslist[_local2].shootClass.clear();
delete _arg1.gunclasslist[_local2].shootClass;
delete _arg1.gunclasslist[_local2];
_local2--;
};
delete _arg1.gunclasslist;
};
if (_arg1.durationclass != null){
delete _arg1.durationclass;
};
for (_local3 in _arg1) {
if (_arg1[_local3] != null){
delete _arg1[_local3];
};
};
}
public static function addShootMethod(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:GunDesc, _arg5:ShootBaseMethod){
if (_arg3.gunclasslist == null){
trace(("setShooterType First " + _arg3.name));
return;
};
_arg5.game = MovieClip(_arg1);
_arg5.world = MovieClip(_arg2);
_arg5.shooter = _arg3;
_arg4.shootClass = _arg5;
_arg3.gunclasslist.push(_arg4);
}
}
}//package GREENHERMIT.GHUtils
Section 21
//CSSToVar (GREENHERMIT.GHUtils.CSSToVar)
package GREENHERMIT.GHUtils {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHTemplate.*;
import flash.utils.*;
import GREENHERMIT.GHDataType.*;
public class CSSToVar {
public static function CSSCreateShootSet(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:Object){
var shootclass:Class;
var gun:GunDesc;
var shoot:*;
var game = _arg1;
var world = _arg2;
var obj = _arg3;
var css = _arg4;
try {
shootclass = (getDefinitionByName(("GREENHERMIT.GHShootingStyle." + css.shoot)) as Class);
gun = new GunDesc(css.gun, css.mag, css.reload, css.frq, css.cooldown);
shoot = new shootclass(game.css[css.bullet], css);
API.addShootMethod(game, world, obj, gun, shoot);
} catch(e) {
trace(((((("GREENHERMIT.GHShootingStyle." + css.shoot) + " not found\n") + "\t 1.ปัญหาอาจเกิดจาก เขียนชื่อ Class ผิดลองสะกดดู\n") + "\t 2.ไม่ได้ประกาศไว้ใน registerClass.as\n") + "\t 3.ไม่มี Class อยู่ใน package GREENHERMIT.GHShootingStyle ควร impliment ก่อน"));
};
}
public static function importCSSObject(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Function){
var _local5:*;
_local5 = 0;
while (_local5 < _arg3) {
if (_arg1[(_arg2 + _local5)] != null){
_arg1[(_arg2 + _local5)].createMovieFinish = _arg4;
};
_local5++;
};
}
public static function CSSEvent(_arg1:Object):Array{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = new Array();
for (_local3 in _arg1) {
_local4 = String(_local3).substr(5, 500);
_local2[Number(_local4)] = _arg1[_local3];
};
return (_local2);
}
public static function createVariable(_arg1:TemplateBaseClass):Object{
var _local2:*;
var _local3:*;
_local2 = new Object();
_local3 = 0;
while (_local3 < _arg1.GHDESIGNCSS.styleNames.length) {
_local2[_arg1.GHDESIGNCSS.styleNames[_local3]] = _arg1.readDesignDoc(_arg1.GHDESIGNCSS.styleNames[_local3]);
_local2[_arg1.GHDESIGNCSS.styleNames[_local3]].__ghbasename = _arg1.GHDESIGNCSS.styleNames[_local3];
_local3++;
};
return (_local2);
}
public static function CSSApplyObject(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:Object){
if (_arg4.process != null){
_arg3.process = _arg1[_arg4.process];
};
if (_arg4.initobject != null){
_arg3.initobject = _arg1[_arg4.initobject];
};
if (_arg4.gun != null){
CSSCreateShootSet(_arg1, _arg2, _arg3, _arg1.css[_arg4.gun]);
};
if (_arg4.clock != null){
API.setDurationEx(_arg3, CSSEvent(_arg1.css[_arg4.clock]), _arg1[_arg4.clockfunction]);
};
if (_arg3.initobject != null){
_arg3.initobject(_arg3);
};
}
public static function CSSGun(_arg1:Object){
return (new GunDesc(_arg1.gun, _arg1.mag, _arg1.reload, _arg1.frq, _arg1.cooldown));
}
public static function createGlobal(_arg1:TemplateBaseClass):Object{
var _local2:*;
_local2 = 0;
while (_local2 < _arg1.GHDESIGNCSS.styleNames.length) {
_arg1[_arg1.GHDESIGNCSS.styleNames[_local2]] = _arg1.readDesignDoc(_arg1.GHDESIGNCSS.styleNames[_local2]);
_local2++;
};
return (_arg1);
}
}
}//package GREENHERMIT.GHUtils
Section 22
//LayerCore (GREENHERMIT.GHUtils.LayerCore)
package GREENHERMIT.GHUtils {
import flash.display.*;
import flash.utils.*;
public class LayerCore {
public static function processGroup(_arg1:Object, _arg2:Array){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local3 = (_arg1.numChildren - 1);
for (;_local3 >= 0;_local3--) {
_local4 = _arg1.getChildAt(_local3);
if ((_local4 is MovieClip)){
} else {
continue;
};
_local5 = 0;
while (_local5 < _arg2.length) {
if ((_local4[_arg2[_local5]] as Function)){
var _local7 = _local4;
_local7[_arg2[_local5]](_local4);
};
_local5++;
};
if (_local4.motclass != null){
_local4.motclass.process();
};
if (_local4.gunclasslist != null){
_local6 = 0;
while (_local6 < _local4.gunclasslist.length) {
_local4.gunclasslist[_local6].process();
_local6++;
};
};
if (_local4.durationclass != null){
_local4.durationclass.process();
};
};
}
public static function processListGroup(_arg1:Object, _arg2:Array, _arg3:Array){
var _local4:*;
_local4 = 0;
while (_local4 < _arg2.length) {
processGroup(_arg1[_arg2[_local4]], _arg3);
_local4++;
};
}
public static function createLayerFromList(_arg1:Object, _arg2:Array, _arg3:Object=null){
var _local4:*;
if (_arg3 == null){
_arg3 = _arg1;
};
_local4 = 0;
while (_local4 < _arg2.length) {
if (_arg2[_local4].movieclip == null){
addGroup(_arg1, _arg2[_local4].layername, 0, 0, _arg3);
} else {
addGroupByClip(_arg1, _arg2[_local4].layername, 0, 0, _arg2[_local4].movieclip, _arg3);
};
_local4++;
};
}
public static function addGroupByClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Object){
var _local7:*;
if (_arg6 == null){
_arg6 = _arg1;
};
_local7 = new ((getDefinitionByName(_arg5) as Class));
_local7.x = _arg3;
_local7.y = _arg4;
_arg6[_arg2] = _arg1.addChild(_local7);
return (_arg6[_arg2]);
}
public static function addGroup(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Object=null){
var _local6:*;
if (_arg5 == null){
_arg5 = _arg1;
};
_local6 = new MovieClip();
_local6.x = _arg3;
_local6.y = _arg4;
_arg5[_arg2] = _arg1.addChild(_local6);
return (_arg5[_arg2]);
}
}
}//package GREENHERMIT.GHUtils
Section 23
//ObjectSearch (GREENHERMIT.GHUtils.ObjectSearch)
package GREENHERMIT.GHUtils {
import flash.display.*;
public class ObjectSearch {
public static function searchRangeObjectIn(_arg1:MovieClip, _arg2:Object, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (_arg1.numChildren < 1){
return (null);
};
_local4 = null;
_local5 = new Array();
_local6 = (_arg1.numChildren - 1);
while (_local6 >= 0) {
_local8 = _arg1.getChildAt(_local6);
if (_local8 != null){
if ((_local8 is MovieClip)){
if ((((Math.abs((_local8.x - _arg2.x)) < _arg3)) && ((Math.abs((_local8.y - _arg2.y)) < _arg3)))){
_local5.push(_local8);
};
};
};
_local6--;
};
if (_local5.length < 0){
return (null);
};
_local7 = int((Math.random() * _local5.length));
return (_local5[_local7]);
}
public static function searchFarObjectIn(_arg1:MovieClip, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (_arg1.numChildren < 1){
return (null);
};
_local3 = null;
_local4 = 0;
_local5 = (_arg1.numChildren - 1);
while (_local5 >= 0) {
_local6 = _arg1.getChildAt(_local5);
if (_local6 != null){
if ((_local6 is MovieClip)){
_local7 = Math.sqrt((((_local6.x - _arg2.x) * (_local6.x - _arg2.x)) + ((_local6.y - _arg2.y) * (_local6.y - _arg2.y))));
if (_local4 < _local7){
_local4 = _local7;
_local3 = _local6;
};
};
};
_local5--;
};
return (_local3);
}
public static function searchNearObjectIn(_arg1:MovieClip, _arg2:Object, _arg3:Array=null){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
if (_arg1.numChildren < 1){
return (null);
};
_local4 = null;
_local5 = 1E26;
_local6 = (_arg1.numChildren - 1);
while (_local6 >= 0) {
_local7 = _arg1.getChildAt(_local6);
_local8 = false;
if (_arg3 != null){
_local9 = 0;
while (_local9 < _arg3.length) {
if (_arg3[_local9] == _local7){
_local8 = true;
};
_local9++;
};
};
if (((!((_local7 == null))) && (!(_local8)))){
if ((_local7 is MovieClip)){
_local10 = Math.sqrt((((_local7.x - _arg2.x) * (_local7.x - _arg2.x)) + ((_local7.y - _arg2.y) * (_local7.y - _arg2.y))));
if (_local5 > _local10){
_local5 = _local10;
_local4 = _local7;
};
};
};
_local6--;
};
return (_local4);
}
public static function getSomeObjectInByFiled(_arg1:MovieClip, _arg2:String){
var _local3:*;
var _local4:*;
if (_arg1.numChildren < 1){
return (null);
};
_local3 = 0;
while (_local3 < (_arg1.numChildren - 1)) {
_local4 = _arg1.getChildAt(_local3);
if ((_local4 is MovieClip)){
if (_local4[_arg2] != null){
return (_local4);
};
};
_local3++;
};
return (null);
}
public static function getSomeObjectIn(_arg1:MovieClip){
var _local2:*;
var _local3:*;
if (_arg1.numChildren < 1){
return (null);
};
_local2 = int((Math.random() * _arg1.numChildren));
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
if (_local3.status == false){
return (null);
};
return (_local3);
};
}
}
}//package GREENHERMIT.GHUtils
Section 24
//bar_root_18 (ribettium_wars_511111_pb_fla.bar_root_18)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package ribettium_wars_511111_pb_fla
Section 25
//BG_2 (ribettium_wars_511111_pb_fla.BG_2)
package ribettium_wars_511111_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 ribettium_wars_511111_pb_fla
Section 26
//LOGOEND_43 (ribettium_wars_511111_pb_fla.LOGOEND_43)
package ribettium_wars_511111_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 ribettium_wars_511111_pb_fla
Section 27
//LOGOPRELOAD_0_23 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_0_23)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 28
//LOGOPRELOAD_1_27 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_1_27)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 29
//LOGOPRELOAD_2_30 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_2_30)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 30
//LOGOPRELOAD_3_32 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_3_32)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 31
//LOGOPRELOAD_4_34 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_4_34)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 32
//LOGOPRELOAD_5_36 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_5_36)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 33
//LOGOPRELOAD_6_38 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_6_38)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 34
//LOGOPRELOAD_7_40 (ribettium_wars_511111_pb_fla.LOGOPRELOAD_7_40)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
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 ribettium_wars_511111_pb_fla
Section 35
//MainTimeline (ribettium_wars_511111_pb_fla.MainTimeline)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var playMoreGameSub;
public var stageclear:MovieClip;
public var urlCSS;
public var b_mfz9:SimpleButton;
public var crosshair:MovieClip;
public var icongun:MovieClip;
public var breset:SimpleButton;
public var submitClick;
public var delaygage2:MovieClip;
public var bshop:SimpleButton;
public var b_highscores:SimpleButton;
public var so:SharedObject;
public var i;
public var bmoregames:SimpleButton;
public var textlevel:TextField;
public var b_mfz_logo0:SimpleButton;
public var bmenu_click;
public var score;
public var b_mfz_logo9:SimpleButton;
public var rep:TextField;
public var b_mfz_logo1:SimpleButton;
public var b_mfz:SimpleButton;
public var hightScore;
public var b_moregame1:SimpleButton;
public var b_next:SimpleButton;
public var bmenu:SimpleButton;
public var expgage:MovieClip;
public var now;
public var gamelevel;
public var playMoreGameTitle;
public var bcontinue_click;
public var disable_game;
public var EPOCH_TIME;
public var playername:TextField;
public var shop:MovieClip;
public var myLoader:URLLoader;
public var bsubmit:SimpleButton;
public var breset_click;
public var bcontinue:SimpleButton;
public var bmenu_backclick;
public var b_preload:SimpleButton;
public var allcssfile;
public var b_preloadRelease;
public var bstart:SimpleButton;
public var MoFunZone_path;
public var weapongage:MovieClip;
public var designCSS;
public var tot;
public var limitgage:MovieClip;
public var completecount;
public var timetext:TextField;
public var textscore:TextField;
public var b_nextPress;
public var textsmoney:TextField;
public var loadCSSComplete;
public var ldrCSS;
public var csstext;
public var MoFunZone_URL;
public var g_root;
public var bstart_click;
public var gameover:MovieClip;
public var cssstring;
public var finishscore:TextField;
public var game:gameinline;
public var outcss;
public var ldr:URLLoader;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 10, frame11, 15, frame16, 91, frame92, 95, frame96, 97, frame98, 106, frame107, 116, frame117, 126, frame127, 135, frame136, 142, frame143, 145, frame146, 345, frame346);
}
public function relesefocus2(_arg1){
stage.focus = playername;
}
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 frame10(){
gotoAndPlay("go");
}
public function shopclick(_arg1:Event){
var _local2:SharedObject;
SoundMixer.soundTransform = new SoundTransform(0.25);
trace(game.score);
_local2 = SharedObject.getLocal("RBT");
if (_local2.data.money == undefined){
_local2.data.money = 1;
};
if (_local2.data.gamelevel == undefined){
_local2.data.gamelevel = 0;
};
if (_local2.data.scorepoint == undefined){
_local2.data.scorepoint = 0;
};
_local2.data.gamelevel = game.gamelevel;
_local2.data.money = game.score;
trace(_local2.data.money);
trace(game.score);
_local2.flush();
_local2.close();
shop.openShop();
}
function frame16(){
gotoAndPlay("go");
}
function frame2(){
now = new Date();
EPOCH_TIME = now.getTime();
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
function frame1(){
outcss = false;
designCSS = new StyleSheet();
allcssfile = new Array("design.css");
ldrCSS = new Array();
loadCSSComplete = new Array();
urlCSS = new Array();
completecount = 0;
cssstring = "";
if (outcss){
i = 0;
while (i < allcssfile.length) {
ldrCSS[i] = new URLLoader();
loadCSSComplete[i] = function (_arg1){
ldr = _arg1.target;
cssstring = (cssstring + ldr.data);
completecount++;
if (completecount >= allcssfile.length){
trace(cssstring);
designCSS.parseCSS(cssstring);
play();
};
};
trace(allcssfile[i]);
urlCSS[i] = new URLRequest(("project/css/" + allcssfile[i]));
ldrCSS[i].addEventListener(Event.COMPLETE, loadCSSComplete[i]);
ldrCSS[i].load(urlCSS[i]);
stop();
i++;
};
} else {
csstext = "enemy3{speedlv13:6;hplv14:10;initobject:initEnemy3;hplv12:8;mininglv5:175;speedlv12:6;hplv1:6;hplv15:10;mininglv15:175;mininglv6:175;restingtime:100;linkage:????;hplv3:6;speedlv5:6;speedlv14:6;mininglv7:175;hplv4:6;hplv2:6;speedlv6:6;speedlv8:6;mininglv8:175;speedlv15:6;hp:100;hplv6:6;speedlv4:6;speedlv3:6;hplv7:6;hplv5:6;speedlv1:6;speedlv10:6;hplv8:6;layer:enemy_layer;speedlv9:6;mininglv9:175;mininglv11:175;mininglv1:175;gfx:gfxe3;hplv10:6;mininglv10:175;speedlv2:6;mininglv2:175;hplv9:6;hplv11:6;speedlv11:6;mininglv12:175;mininglv3:175;speedlv7:6;mininglv14:175;mininglv13:175;mininglv4:175;terbo:1;hplv13:8;miningtime:50;speed:1;}gun0{maglv2:3;maglv9:3;bullet:bullet0;waylv7:1;waylv5:1;frqlv12:60;gun:gun1;maglv3:3;maglv13:3;maglv4:3;maglv15:3;waylv13:5;reloadlv2:100;reloadlv11:100;reloadlv9:100;reloadlv10:100;waylv9:1;maglv12:3;reloadlv8:100;reloadlv3:100;frq:200;maglv0:3;waylv10:3;way:1;maglv14:3;reloadlv12:100;frqlv15:60;frqlv3:60;waylv1:1;frqlv4:60;waylv11:3;frqlv1:60;reload:150;frqlv13:60;frqlv14:60;reloadlv7:100;maglv7:3;waylv3:1;mag:1;maglv5:3;waylv2:1;waylv4:1;frqlv7:60;waylv14:5;reloadlv6:100;maglv11:3;frqlv5:60;reloadlv15:100;maglv1:3;waylv6:1;waylv12:1;reloadlv14:100;reloadlv5:100;frqlv2:60;frqlv6:60;maglv8:3;reloadlv1:100;frqlv9:60;shoot:ShootLookingObject;cooldown:0;frqlv8:60;waylv15:5;reloadlv13:100;reloadlv4:100;frqlv11:60;waylv8:1;frqlv10:60;maglv6:3;angle:30;}creatorclock2{frame50:createObject,enemy99;frame78:createObject,enemy1;frame77:createObject,enemy1;frame25:createObject,enemy99;frame135:createObject,enemy0;frame1:createObject,enemy4;frame625:goto,76;frame250:createObject,enemy1;frame251:createObject,enemy1;frame75:createObject,enemy99;}skill6{name:+2 to fire rate, and +3 seconds duration. USELESS WITHOUT MACHINE GUN.;money:16;machinefreequency:-2;}creator3{linkage:?????;layer:door_layer;clock:creatorclock3;clockfunction:functionMap;}skill17{name:+20 to spark effect. USELESS WITHOUT TESLAA COIL.;money:32;teslacount:20;}creator11{linkage:?????;layer:door_layer;clock:creatorclock11;clockfunction:functionMap;}creator12{linkage:?????;layer:door_layer;clock:creatorclock12;clockfunction:functionMap;}creatorclock10{frame50:createObject,enemy99;frame151:createObject,enemy0;frame75:createObject,enemy99;frame25:createObject,enemy99;frame701:createObject,enemy3;frame150:createObject,enemy0;frame700:createObject,enemy3;frame154:createObject,enemy0;frame500:createObject,enemy3;frame1:createObject,enemy4;frame501:createObject,enemy3;frame950:goto,400;}creator9{linkage:?????;layer:door_layer;clock:creatorclock9;clockfunction:functionMap;}enemy1{speedlv13:2;hplv14:15;initobject:initEnemy1;hplv12:8;mininglv5:225;hplv13:15;hplv1:5;hplv15:15;mininglv15:225;mininglv6:225;restingtime:100;linkage:????;hplv3:5;speedlv5:2;speedlv14:2;mininglv7:225;hplv4:6;hplv2:5;gun:gun0;speedlv6:2;speedlv8:2;hplv5:8;speedlv15:2;hp:100;hplv6:8;speedlv4:2;speedlv3:2;hplv7:10;mininglv8:225;speedlv1:2;speedlv10:2;hplv8:10;layer:enemy_layer;speedlv9:2;mininglv9:225;mininglv11:225;mininglv1:225;gfx:gfxe1;hplv10:12;mininglv10:225;speedlv7:2;mininglv2:225;hplv9:10;hplv11:12;speedlv11:2;mininglv12:225;mininglv3:225;speedlv2:2;mininglv14:225;mininglv13:225;mininglv4:225;terbo:0;speedlv12:2;miningtime:25;speed:2;}gold0{linkage:rebetium1;layer:gold_layer;}skill12{name:+1 to fire effect, and +3 seconds duration.. USELESS WITHOUT BAZOOKA.;money:24;bazookaAOE:1;bazookaduration:75;}creator15{linkage:?????;layer:door_layer;clock:creatorclock15;clockfunction:functionMap;}creatorclock7{frame50:createObject,enemy99;frame425:createObject,enemy1;frame925:goto,249;frame1:createObject,enemy4;frame575:createObject,enemy2;frame75:createObject,enemy99;frame150:createObject,enemy2;frame250:createObject,enemy2;frame225:createObject,enemy2;frame426:createObject,enemy1;frame725:createObject,enemy2;frame500:createObject,enemy2;frame200:createObject,enemy2;frame125:createObject,enemy2;frame275:createObject,enemy2;frame750:createObject,enemy2;frame100:createObject,enemy2;frame25:createObject,enemy99;frame175:createObject,enemy2;frame650:createObject,enemy2;}skill20{name:Increase bonus score.;money:47;scorerate:50;}bullet0{speedlv10:7;damagelv12:3;damagelv1:3;layer:enemybullet_layer;damagelv11:3;scaleX:1.0;damagelv5:3;speedlv7:6;speedlv5:5;damagelv2:3;speedlv13:8;speedlv12:4;damagelv9:3;damagelv4:3;scaleY:1.0;speedlv9:6;damagelv15:3;speedlv3:4;speedlv14:8;speedlv8:6;linkage:????;damagelv3:3;speedlv6:5;damagelv6:3;damagelv14:3;speedlv4:4;speedlv15:8;hp:1;style:0;damagelv8:3;damagelv10:3;speedlv11:7;damage:10;damagelv7:3;damagelv13:3;speed:6;speedlv2:4;speedlv1:4;}skill14{name:Enable TeslaA Coil to be dropped to you!;unlocktesla:2;money:101;}skill3{name:+1 Damage.;money:77;gundamage:1;}creator8{linkage:?????;layer:door_layer;clock:creatorclock8;clockfunction:functionMap;}skill5{name:+10 seconds duration. USELESS WITHOUT MACHINE GUN.;machineduration:250;money:16;}enemy99{linkage:playerharvester;gfx:gfxhexplode;layer:player_layer;restingtime:5;miningtime:100;hp:300;bornningtime:25;timeborn:25;initobject:initPlayer;speed:0;terbo:1;}planeclock0{frame80:createObject,enemy5;frame81:goto,1;}creatorclock12{frame50:createObject,enemy99;frame220:createObject,enemy1;frame335:createObjectRandom,enemy,2,0;frame140:createObject,enemy1;frame150:createObject,enemy0;frame130:createObject,enemy0;frame1:createObject,enemy4;frame190:createObject,enemy0;frame340:createObjectRandom,enemy,2,0;frame75:createObject,enemy99;frame25:createObject,enemy99;frame180:createObject,enemy1;frame330:createObjectRandom,enemy,2,0;frame570:goto,129;frame345:createObjectRandom,enemy,2,0;}skill21{name:ชื่อสกิวว;}creatorclock4{frame50:createObject,enemy99;frame120:createObject,enemy1;frame130:createObject,enemy1;frame200:createObject,enemy0;frame75:createObject,enemy99;frame110:createObject,enemy1;frame300:createObject,enemy0;frame100:createObject,enemy0;frame725:goto,99;frame1:createObject,enemy4;frame400:createObject,enemy0;frame25:createObject,enemy99;}skill9{name:Enable Bazooka to be dropped to you!;unlockbazooka:1;money:67;}creator14{linkage:?????;layer:door_layer;clock:creatorclock14;clockfunction:functionMap;}bullet4{damage:0.2;linkage:m_hero_bullet4;gfx:gfxhit2;layer:playerbullet_layer;scaleY:1;hp:1;scaleX:1;style:4;speed:4;}gold1{linkage:rebetium2;layer:gold_layer;}skill16{name:+2 seconds duration, and +1 to bullet magazine. USELESS WITHOUT TESLAA COIL.;money:32;tesladuration:50;teslamag:1;}creatorclock3{frame50:createObject,enemy99;frame1:createObject,enemy4;frame78:createObject,enemy2;frame75:createObject,enemy99;frame400:createObject,enemy0;frame151:createObject,enemy2;frame500:createObject,enemy0;frame475:createObject,enemy0;frame1000:goto,76;frame77:createObject,enemy2;frame401:createObject,enemy0;frame150:createObject,enemy2;frame25:createObject,enemy99;frame600:createObject,enemy0;}creatorclock13{frame50:createObject,enemy99;frame640:createObject,enemy1;frame350:createObject,enemy0;frame75:createObject,enemy99;frame360:createObject,enemy0;frame250:createObject,enemy1;frame460:createObject,enemy3;frame800:createObject,enemy1;frame1:createObject,enemy4;frame620:createObject,enemy3;frame600:createObject,enemy0;frame450:createObject,enemy0;frame25:createObject,enemy99;frame610:createObject,enemy1;frame630:createObject,enemy0;frame750:createObject,enemy1;frame700:createObject,enemy0;frame1050:goto,699;frame470:createObject,enemy0;frame900:createObject,enemy3;}config{lv14harvestspeed:40;lv5itemmax:1;lv19harvestspeed:70;rbtlv15:16;lv20bonus:150;duration2:300;rbtlv10:15;lv11magbazooka:30;lv7machineduration:150;tlv1:1500;lv13bazookaduration:200;reloadgun4:20;fqc4:12;counthit:80;tlv6:1875;tlv4:1875;rbtlv1:10;tlv11:2625;magazinegun4:1;baAOE:4;getscore:3;lv6machinefrequency:20;tlv7:2250;duration4:250;rbtlv9:13;rbtlv13:16;rbtlv5:12;tlv2:1500;tlv10:2250;lv8machinefrequency:150;duration3:250;goldarea:200;rbtlv3:10;lv2reloadgun:500;reloadgun2:9;ratescore:100;tlv14:3000;magazinegun1:2;limitover:28;lv12magbazooka:40;tlv9:2250;tlv8:2250;tlv12:2625;lv16tesladuration:200;lv4harvestspeed:30;rbtlv2:10;magazinegun3:1;magazinegun2:8;minidamage:1;reloadgun3:20;getenemyscore:4;rbtlv11:15;lv18tesladuration:400;lv17tesladuration:300;rbtlv12:15;lv9harvestspeed:40;fqc1:9;rbtlv6:12;fqc3:20;lv3magazinegun:30;rbtlv14:16;fqc2:7;scorerandom:200;lv10itemmax:2;reloadgun1:13;tlv5:1875;rbtlv4:12;tlv3:1500;rbtlv7:13;tlv13:3000;rbtlv8:13;lv15itemmax:3;tlv15:3000;}creatorclock11{frame50:createObject,enemy99;frame1:createObject,enemy4;frame355:createObject,enemy3;frame455:createObject,enemy3;frame430:createObject,enemy0;frame750:goto,549;frame75:createObject,enemy99;frame155:createObject,enemy3;frame230:createObject,enemy0;frame25:createObject,enemy99;frame551:createObjectRandom,enemy,2,0;frame550:createObjectRandom,enemy,2,0;frame330:createObject,enemy0;frame255:createObject,enemy3;frame130:createObject,enemy0;}creator1{linkage:?????;layer:door_layer;clock:creatorclock1;clockfunction:functionMap;}skill10{name:+1 to bullet magazine, and +2 seconds duration. USELESS WITHOUT BAZOOKA.;money:24;bazookamag:1;bazookaduration:50;}swap3{slv7:0;slv12:1;slv14:2;slv9:0;slv8:0;slv11:0;slv6:0;slv1:0;slv10:0;slv4:0;slv3:0;slv2:0;slv15:2;slv5:0;slv13:1;}creatorclock15{frame50:createObject,enemy99;frame1200:createObject,enemy3;frame1204:createObject,enemy3;frame500:createObject,enemy0;frame1500:createObjectRandom,enemy,4,0;frame1206:createObject,enemy3;frame1600:createObjectRandom,enemy,4,0;frame1201:createObject,enemy0;frame1205:createObject,enemy0;frame200:createObjectRandom,enemy,2,1;frame75:createObject,enemy99;frame2075:goto,1999;frame1207:createObject,enemy1;frame1650:createObjectRandom,enemy,4,0;frame1202:createObject,enemy3;frame225:createObjectRandom,enemy,2,1;frame450:createObjectRandom,enemy,2,1;frame250:createObject,enemy0;frame1:createObject,enemy4;frame25:createObject,enemy99;frame1203:createObject,enemy1;frame800:createObject,enemy3;frame810:createObject,enemy0;frame1550:createObjectRandom,enemy,4,0;frame820:createObject,enemy3;frame475:createObjectRandom,enemy,2,1;frame350:createObject,enemy0;frame840:createObject,enemy3;frame2001:createObject,enemy1;frame525:createObject,enemy0;frame830:createObject,enemy1;}enemy2{speedlv13:8;hplv14:5;initobject:initEnemy2;hplv12:5;mininglv5:100;speedlv12:8;hplv1:3;hplv15:5;mininglv15:100;mininglv6:100;restingtime:100;linkage:????;hplv3:3;speedlv5:4;speedlv14:8;mininglv7:100;hplv4:3;hplv2:3;speedlv6:6;speedlv8:6;mininglv8:100;speedlv15:8;hp:100;hplv6:3;speedlv4:4;speedlv3:4;hplv7:3;hplv5:3;speedlv1:4;speedlv10:6;hplv8:4;layer:enemy_layer;speedlv9:6;mininglv9:100;mininglv11:100;mininglv1:100;gfx:gfxe2;hplv10:4;mininglv10:100;speedlv2:4;mininglv2:100;hplv9:4;hplv11:5;speedlv11:8;mininglv12:100;mininglv3:100;speedlv7:4;mininglv14:100;mininglv13:100;mininglv4:100;terbo:2;hplv13:5;miningtime:25;speed:3;}skill4{name:Enable Machine Gun to be dropped to you!;money:35;unlockmachine:0;}swap1{slv7:2;slv12:1;slv14:4;slv9:2;slv8:2;slv11:3;slv6:1;slv1:0;slv10:3;slv4:0;slv3:0;slv2:0;slv15:4;slv5:1;slv13:4;}skill0{machineduration:1;bazookaduration:1;terbo:1;teslacount:1;teslamag:1;tesladuration:1;gundamage:1;bazookaAOE:1;gunfreequency:1;bazookamag:1;gunmagazine:1;money:300;name:ปืน1;scorerate:1;machinefreequency:1;}creator5{linkage:?????;layer:door_layer;clock:creatorclock5;clockfunction:functionMap;}goldclock0{frame150:createObject,gold0;frame850:createObject,gold0;frame1400:createObject,gold0;frame25:createObject,gold0;frame650:createObject,gold0;frame450:createObject,gold0;frame1500:goto,24;frame1050:createObject,gold0;frame300:createObject,gold0;}swap2{slv7:0;slv12:2;slv14:2;slv9:1;slv8:1;slv11:2;slv6:1;slv1:0;slv10:1;slv4:0;slv3:0;slv2:0;slv15:2;slv5:0;slv13:2;}creator2{linkage:?????;layer:door_layer;clock:creatorclock2;clockfunction:functionMap;}goldpoint0{linkage:?????;layer:door_layer;clock:goldclock0;clockfunction:functionMap;}skill19{name:Improved movement speed of harvester.;money:47;terbo:0.5;}swap0{slv7:3;slv12:0;slv14:4;slv9:4;slv8:3;slv11:4;slv6:2;slv1:0;slv10:4;slv4:1;slv3:1;slv2:0;slv15:4;slv5:2;slv13:4;}skill7{name:+1 to fire rate, and +5 seconds duration. USELESS WITHOUT MACHINE GUN.;machineduration:125;money:16;machinefreequency:-1;}creatorclock9{frame50:createObject,enemy99;frame600:goto,124;frame75:createObject,enemy99;frame125:createObject,enemy0;frame127:createObjectRandom,enemy,2,0;frame126:createObjectRandom,enemy,2,0;frame25:createObject,enemy99;frame1:createObject,enemy4;frame300:createObjectRandom,enemy,2,0;frame400:createObjectRandom,enemy,2,0;frame350:createObjectRandom,enemy,2,0;}skill1{name:+1 to Fire Rate.;gunfreequency:-1;money:9;}creator10{linkage:?????;layer:door_layer;clock:creatorclock10;clockfunction:functionMap;}bullet2{damage:1;linkage:m_hero_bullet2;gfx:gfxhit1;layer:playerbullet_layer;scaleY:1;hp:1;scaleX:1;style:2;speed:30;}creator6{linkage:?????;layer:door_layer;clock:creatorclock6;clockfunction:functionMap;}bullet1{damage:1;linkage:m_hero_bullet1;gfx:gfxhit1;layer:playerbullet_layer;scaleY:1;hp:1;scaleX:1.0;style:1;speed:40;}enemy0{speedlv13:1;hplv14:20;initobject:initEnemy0;mininglv15:125;mininglv5:125;hplv13:20;hplv1:7;hpmax:100;hplv15:20;speedlv5:1;restingtime:100;linkage:????;hplv3:8;speedlv14:1;mininglv7:125;speedlv1:1;mininglv6:125;speedlv6:1;speedlv8:1;mininglv8:125;speedlv15:1;hplv2:7;hp:100;hplv6:11;hplv4:8;speedlv3:1;hplv7:14;hplv5:11;speedlv4:1;speedlv10:1;hplv8:14;layer:enemy_layer;speedlv9:1;mininglv9:125;hplv9:20;mininglv1:125;gfx:gfxe0;mininglv12:125;mininglv10:125;speedlv2:1;mininglv2:125;mininglv11:125;hplv11:20;speedlv11:1;hplv10:20;mininglv3:125;speedlv7:1;hplv12:8;mininglv13:125;mininglv4:125;terbo:1;speedlv12:1;miningtime:25;speed:2;mininglv14:125;}creatorclock14{frame50:createObject,enemy99;frame401:createObject,enemy1;frame350:createObject,enemy2;frame1250:goto,150;frame75:createObject,enemy99;frame351:createObject,enemy2;frame550:createObject,enemy1;frame750:createObject,enemy1;frame600:createObject,enemy1;frame400:createObject,enemy2;frame851:createObject,enemy2;frame900:createObject,enemy2;frame25:createObject,enemy99;frame201:createObject,enemy2;frame950:createObjectRandom,enemy,4,0;frame200:createObject,enemy2;frame850:createObject,enemy2;frame700:createObject,enemy1;frame901:createObject,enemy1;frame1:createObject,enemy4;frame152:createObject,enemy2;frame450:createObject,enemy3;frame650:createObject,enemy3;}creator7{linkage:?????;layer:door_layer;clock:creatorclock7;clockfunction:functionMap;}skill11{name:+1 to bullet magazine, +1 to fire effect, and +7 seconds duration. USELESS WITHOUT BAZOOKA.;bazookamag:1;bazookaAOE:1;bazookaduration:175;money:81;}creator13{linkage:?????;layer:door_layer;clock:creatorclock13;clockfunction:functionMap;}creatorclock5{frame50:createObject,enemy99;frame102:createObjectRandom,enemy,2,0;frame25:createObject,enemy99;frame380:goto,99;frame101:createObjectRandom,enemy,2,0;frame100:createObjectRandom,enemy,2,0;frame75:createObject,enemy99;frame1:createObject,enemy4;}enemy4{linkage:?????;bornningtime:300;layer:gate_layer;initobject:posgun;}skill18{name:+10 to spark effect, and +9 seconds duration. USELESS WITHOUT TESLAA COIL.;money:105;teslacount:10;tesladuration:225;}plane0{linkage:hero_plane;layer:door_layer;clock:planeclock0;clockfunction:functionMap;}creatorclock1{frame50:createObject,enemy99;frame185:createObject,enemy0;frame135:createObject,enemy0;frame25:createObject,enemy99;frame440:goto,76;frame77:createObject,enemy0;frame75:createObject,enemy99;frame1:createObject,enemy4;}skill2{name:+1 to Bullet Magazine.;money:9;gunmagazine:1;}creator4{linkage:?????;layer:door_layer;clock:creatorclock4;clockfunction:functionMap;}skill15{name:+5 seconds duration. USELESS WITHOUT TESLAA COIL.;money:32;tesladuration:125;}creatorclock6{frame50:createObject,enemy99;frame1:createObject,enemy4;frame75:createObject,enemy99;frame25:createObject,enemy99;frame105:createObjectRandom,enemy,2,0;frame103:createObject,enemy0;frame100:createObject,enemy0;frame102:createObject,enemy0;frame445:goto,99;}skill8{name:+1 to fire rate, and +5 seconds duration. USELESS WITHOUT MACHINE GUN.;machineduration:750;money:57;machinefreequency:-1;}skill13{name:+2 to fire effect, and +2 seconds duration. USELESS WITHOUT BAZOOKA.;money:24;bazookaAOE:2;bazookaduration:50;}creatorclock8{frame50:createObject,enemy99;frame855:createObject,enemy2;frame127:createObject,enemy2;frame1075:goto,999;frame126:createObject,enemy2;frame25:createObject,enemy99;frame857:createObject,enemy2;frame1000:createObjectRandom,enemy,2,0;frame856:createObject,enemy2;frame577:createObject,enemy2;frame850:createObject,enemy2;frame1:createObject,enemy4;frame576:createObject,enemy2;frame75:createObject,enemy99;frame853:createObject,enemy2;frame325:createObject,enemy2;frame851:createObject,enemy2;frame578:createObject,enemy2;frame852:createObject,enemy2;frame125:createObject,enemy2;frame327:createObject,enemy2;frame854:createObject,enemy2;frame326:createObject,enemy2;frame579:createObject,enemy2;frame575:createObject,enemy2;frame328:createObject,enemy2;frame858:createObject,enemy2;}bullet3{damage:6;linkage:m_hero_bullet3;gfx:gfxbazooka;layer:playerbullet_layer;scaleY:1;hp:1;scaleX:1;style:3;speed:9;}enemy5{linkage:heroitem;dname:item;layer:item_layer;speed:3;initobject:initEnemy5;}";
designCSS.parseCSS(csstext);
};
}
function frame11(){
disable_game = function (){
var url:*;
var request:*;
trace("run disable");
url = "http://www.mofunzone.com/";
request = new URLRequest(url);
try {
navigateToURL(request, "_self");
} catch(e:Error) {
trace("Error occurred!");
};
};
MoFunZone_URL = "http://gamefilez.mofunzone.com/";
MoFunZone_path = loaderInfo.url.substring(0, MoFunZone_URL.length);
if (MoFunZone_path != MoFunZone_URL){
disable_game();
} else {
myLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
myLoader.load(new URLRequest("http://www.mofunzone.com/hotlink/check_online_game.php"));
myLoader.addEventListener(Event.COMPLETE, onDataLoad);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
};
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
public function onDataLoad(_arg1:Event){
trace(_arg1.toString());
if (_arg1.target.data.mofunzone_allow_game == "true"){
} else {
trace("xxx");
disable_game();
};
}
public function onSecurityError(_arg1:SecurityErrorEvent){
return (true);
}
function frame98(){
Mouse.show();
stop();
SoundMixer.stopAll();
b_nextPress = function (){
play();
};
b_next.addEventListener("click", b_nextPress);
tot = this;
tot.addEventListener(Event.ENTER_FRAME, relesefocus);
tot.addEventListener("keyDown", onKeySkip);
}
function frame92(){
SoundMixer.stopAll();
Mouse.show();
g_root = this;
g_root.con = false;
score = 0;
gamelevel = 0;
so = SharedObject.getLocal("RBT");
if ((((so.data.gamelevel <= 0)) && ((so.data.money <= 0)))){
bcontinue.alpha = 0.5;
};
SoundMixer.stopAll();
bstart_click = function (){
so = SharedObject.getLocal("RBT");
if (so.data.gamelevel != null){
g_root.con = false;
bstart.removeEventListener("click", bstart_click);
g_root.gotoAndStop(5);
} else {
g_root.gotoAndStop(1, "tutorial");
};
};
bcontinue_click = function (){
g_root.con = false;
bstart.removeEventListener("click", bstart_click);
g_root.gotoAndStop(5);
};
playMoreGameTitle = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregame1.addEventListener("click", playMoreGameTitle);
b_mfz.addEventListener("click", playMoreGameTitle);
b_mfz_logo0.addEventListener("click", playMoreGameTitle);
hightScore = function (){
getURL("http://www.mofunzone.com/game_scores/ribertium_wars/highscores.shtml", "_blank");
};
b_highscores.addEventListener("click", hightScore);
stop();
bstart.addEventListener("click", bstart_click);
bcontinue.addEventListener("click", bcontinue_click);
stop();
}
function frame96(){
breset_click = function (_arg1){
breset.removeEventListener("click", bstart_click);
so = SharedObject.getLocal("RBT");
so.clear();
so.close();
g_root.con = false;
g_root.play();
};
bmenu_backclick = function (_arg1){
g_root.gotoAndStop(1);
};
breset.addEventListener("click", breset_click);
bmenu.addEventListener("click", bmenu_backclick);
b_mfz_logo9.addEventListener("click", playMoreGameTitle);
b_mfz9.addEventListener("click", playMoreGameTitle);
}
public function relesefocus(_arg1){
stage.focus = tot;
}
function frame107(){
stop();
}
function frame346(){
this.addEventListener(Event.ENTER_FRAME, relesefocus2);
SoundMixer.stopAll();
stage.focus = playername;
Mouse.show();
finishscore.text = ("" + int(g_root.scoresubmit));
bmenu_click = function (){
bmenu.removeEventListener("click", bmenu_click);
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop(1, "title");
};
bmenu.addEventListener("click", bmenu_click);
submitClick = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/ribertium_war.shtml", "_blank");
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop(1, "title");
};
bsubmit.addEventListener("click", submitClick);
playMoreGameSub = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop(1, "title");
};
bmoregames.addEventListener("click", playMoreGameSub);
stop();
Mouse.show();
SoundMixer.stopAll();
}
function frame117(){
stop();
}
public function onKeySkip(_arg1){
if (_arg1.keyCode == 75){
tot.gotoAndPlay("skip");
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
};
}
public function onHTTPStatus(_arg1:HTTPStatusEvent){
return (true);
}
public function onIOError(_arg1:IOErrorEvent){
trace("xxx");
disable_game();
return (true);
}
function frame136(){
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
}
function frame127(){
b_next.removeEventListener("click", b_nextPress);
}
function frame143(){
stop();
game.visible = true;
gameover.visible = false;
stageclear.visible = false;
shop.visible = false;
textscore.text = "545435435";
timetext.text = "5435435435";
bshop.addEventListener("click", shopclick);
SoundMixer.stopAll();
b_mfz_logo1.addEventListener("click", playMoreGameTitle);
}
function frame146(){
Mouse.show();
SoundMixer.stopAll();
}
}
}//package ribettium_wars_511111_pb_fla
Section 36
//mdia_game_over_121 (ribettium_wars_511111_pb_fla.mdia_game_over_121)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mdia_game_over_121 extends MovieClip {
public var gameover;
public var game;
public function mdia_game_over_121(){
addFrameScript(0, frame1);
}
function frame1(){
gameover = this;
game = MovieClip(this.parent).game;
Mouse.show();
}
}
}//package ribettium_wars_511111_pb_fla
Section 37
//mdia_stage_clear_119 (ribettium_wars_511111_pb_fla.mdia_stage_clear_119)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mdia_stage_clear_119 extends MovieClip {
public var leftscore:TextField;
public var diescore:TextField;
public var stageclear;
public var total:TextField;
public var dietext:TextField;
public var g_root;
public var lefttext:TextField;
public var bok:SimpleButton;
public var scoretext:TextField;
public var bok_click;
public var game;
public function mdia_stage_clear_119(){
addFrameScript(0, frame1);
}
function frame1(){
stageclear = this;
game = MovieClip(this.parent).game;
g_root = MovieClip(this.parent);
bok_click = function (_arg1){
if (game.gamelevel == 15){
game.removeEventListener(Event.ENTER_FRAME, game.EnterFrame);
game.removeEventListener(MouseEvent.MOUSE_DOWN, game.mouseDown);
game.removeEventListener(MouseEvent.MOUSE_UP, game.mouseUp);
game.keyfocus.removeEventListener(KeyboardEvent.KEY_DOWN, game.keydown);
game.keyfocus.removeEventListener(KeyboardEvent.KEY_UP, game.keyup);
game.gamepause = true;
g_root.gotoAndPlay(1, "ending");
return;
};
game.levelUp();
game.scorepoint = Number(total.text);
game.pass = false;
game.gamepause = false;
visible = false;
};
bok.addEventListener("click", bok_click);
}
}
}//package ribettium_wars_511111_pb_fla
Section 38
//mgui_gage_sound_48 (ribettium_wars_511111_pb_fla.mgui_gage_sound_48)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
public dynamic class mgui_gage_sound_48 extends MovieClip {
public function mgui_gage_sound_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ribettium_wars_511111_pb_fla
Section 39
//mshop_123 (ribettium_wars_511111_pb_fla.mshop_123)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mshop_123 extends MovieClip {
public var b10:SimpleButton;
public var b12:SimpleButton;
public var b14:SimpleButton;
public var b16:SimpleButton;
public var b17:SimpleButton;
public var b18:SimpleButton;
public var b19:SimpleButton;
public var b13:SimpleButton;
public var b15:SimpleButton;
public var b1:SimpleButton;
public var b5:SimpleButton;
public var b8:SimpleButton;
public var b2:SimpleButton;
public var b3:SimpleButton;
public var b7:SimpleButton;
public var b4:SimpleButton;
public var b6:SimpleButton;
public var b20:SimpleButton;
public var b21:SimpleButton;
public var b11:SimpleButton;
public var scorepoint;
public var b9:SimpleButton;
public var so:SharedObject;
public var i;
public var c;
public var btext:TextField;
public var p11:TextField;
public var p12:TextField;
public var p15:TextField;
public var p16:TextField;
public var p17:TextField;
public var p18:TextField;
public var p19:TextField;
public var p13:TextField;
public var p14:TextField;
public var score;
public var p10:TextField;
public var p20:TextField;
public var scoretext:TextField;
public var gamelevel;
public var gd0;
public var shop;
public var soundbuy;
public var soundnobuy;
public var enemy;
public var p1:TextField;
public var p2:TextField;
public var p3:TextField;
public var p5:TextField;
public var p8:TextField;
public var p9:TextField;
public var p6:TextField;
public var p7:TextField;
public var p4:TextField;
public var game;
public function mshop_123(){
addFrameScript(0, frame1);
}
public function checkSkill(_arg1){
if (game.css[("skill" + _arg1)].gunfreequency != null){
game.css["config"].fqc1 = (game.css["config"].fqc1 + game.css[("skill" + _arg1)].gunfreequency);
};
if (game.css[("skill" + _arg1)].gunmagazine != null){
game.css["config"].magazinegun1 = (game.css["config"].magazinegun1 + game.css[("skill" + _arg1)].gunmagazine);
};
if (game.css[("skill" + _arg1)].gundamage != null){
game.css["bullet1"].damage = (game.css["bullet1"].damage + game.css[("skill" + _arg1)].gundamage);
};
if (game.css[("skill" + _arg1)].machinefreequency != null){
game.css["config"].fqc2 = (game.css["config"].fqc2 + game.css[("skill" + _arg1)].machinefreequency);
};
if (game.css[("skill" + _arg1)].machineduration != null){
game.css["config"].duration2 = (game.css["config"].duration2 + game.css[("skill" + _arg1)].machineduration);
};
if (game.css[("skill" + _arg1)].bazookamag != null){
game.css["config"].magazinegun3 = (game.css["config"].magazinegun3 + game.css[("skill" + _arg1)].bazookamag);
};
if (game.css[("skill" + _arg1)].bazookaduration != null){
game.css["config"].duration3 = (game.css["config"].duration3 + game.css[("skill" + _arg1)].bazookaduration);
};
if (game.css[("skill" + _arg1)].bazookaAOE != null){
game.css["config"].baAOE = (game.css["config"].baAOE + game.css[("skill" + _arg1)].bazookaAOE);
};
if (game.css[("skill" + _arg1)].tesladuration != null){
game.css["config"].duration4 = (game.css["config"].duration4 + game.css[("skill" + _arg1)].tesladuration);
};
if (game.css[("skill" + _arg1)].teslamag != null){
game.css["config"].magazinegun4 = (game.css["config"].magazinegun4 + game.css[("skill" + _arg1)].teslamag);
};
if (game.css[("skill" + _arg1)].teslacount != null){
game.css["config"].counthit = (game.css["config"].counthit + game.css[("skill" + _arg1)].teslacount);
};
if (game.css[("skill" + _arg1)].terbo != null){
game.css["enemy99"].speed = (game.css["enemy99"].speed + game.css[("skill" + _arg1)].terbo);
};
if (game.css[("skill" + _arg1)].scorerate != null){
game.css["config"].ratescore = (game.css["config"].ratescore + game.css[("skill" + _arg1)].scorerate);
};
if (game.css[("skill" + _arg1)].unlockmachine != null){
game.itemgun.push(game.css[("skill" + _arg1)].unlockmachine);
trace(game.css[("skill" + _arg1)].unlockmachine);
};
if (game.css[("skill" + _arg1)].unlockbazooka != null){
game.itemgun.push(game.css[("skill" + _arg1)].unlockbazooka);
trace(game.css[("skill" + _arg1)].unlockbazooka);
};
if (game.css[("skill" + _arg1)].unlocktesla != null){
game.itemgun.push(game.css[("skill" + _arg1)].unlocktesla);
trace(game.css[("skill" + _arg1)].unlocktesla);
};
}
public function openShop(){
Mouse.show();
so = SharedObject.getLocal("RBT");
trace("Openshop");
if (so.data.money == undefined){
so.data.money = 0;
};
if (so.data.gamelevel == undefined){
so.data.gamelevel = 0;
};
if (so.data.scorepoint == undefined){
so.data.scorepoint = 0;
};
scorepoint = so.data.scorepoint;
score = so.data.money;
gamelevel = so.data.gamelevel;
scoretext.text = score;
shop.btext.text = "Please roll over each icon to see its cost and detail.";
game.gamepause = true;
shop.visible = true;
SoundMixer.soundTransform = new SoundTransform(0.25);
}
public function itemover(_arg1){
var _local2:*;
_local2 = _arg1.target.name.substr(1);
if (game.css[("skill" + _local2)].name != null){
btext.text = game.css[("skill" + _local2)].name;
};
}
function frame1(){
shop = this;
game = MovieClip(this.parent).game;
gd0 = game.gd0;
soundbuy = new sfxbuy();
soundnobuy = new sfxnomoney();
Mouse.show();
openShop();
closeShop();
c = 0;
while (c < 100) {
if (shop[("p" + c)] != null){
if (game.css[("skill" + c)].money != null){
shop[("p" + c)].text = game.css[("skill" + c)].money;
};
};
if (so.data[("b" + c)] == true){
if (c == 21){
shop[("b" + c)].visible = true;
} else {
shop[("b" + c)].visible = false;
shop[("p" + c)].visible = false;
};
checkSkill(c);
};
so.close();
c++;
};
i = 0;
while (i < 100) {
if (shop[("b" + i)] != null){
shop[("b" + i)].addEventListener("click", itemclick);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, itemover);
};
i++;
};
stop();
}
public function itemclick(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < 100) {
if (_arg1.target.name == ("b" + _local2)){
_local3 = _arg1.target.name.substr(1);
if (_arg1.target.name != "b21"){
if (game.css[("skill" + _local2)].name != null){
if (game.css[("skill" + _local2)].money != null){
if (score >= game.css[("skill" + _local2)].money){
trace(score);
trace(("bit" + game.css[("skill" + _local2)].money));
score = (score - game.css[("skill" + _local2)].money);
scoretext.text = score;
trace((" -money = " + score));
checkSkill(_local3);
so.data[("b" + _local2)] = true;
soundbuy.play();
shop[("p" + _local2)].visible = false;
_arg1.target.visible = false;
} else {
trace(score);
trace("เงินไม่พอ");
soundnobuy.play();
};
};
} else {
trace("ไม่มีสกิว ใน css");
};
} else {
if (game.world.player_layer.numChildren < 1){
enemy = API.createMovieFromBase(game.world, game.css["enemy99"], {x:400, y:600});
_local4 = new enemy_gage();
enemy.die = null;
enemy.addChild(_local4);
_local4.x = 0;
_local4.y = 30;
_local4.scaleX = 0.5;
_local4.scaleY = 0.5;
enemy.gage = _local4;
enemy.resting = enemy.restingtime;
};
trace(scorepoint);
so.data.money = score;
so.data.gamelevel = gamelevel;
so.data.sorepoint = scorepoint;
game.score = so.data.money;
game.scorepoint = so.data.scorepoint;
game.gamelevel = so.data.gamelevel;
game.gamepause = false;
shop.visible = false;
Mouse.hide();
closeShop();
};
};
_local2++;
};
}
public function closeShop(){
Mouse.hide();
so.flush();
so.close();
game.gamepause = false;
shop.visible = false;
SoundMixer.soundTransform = new SoundTransform(1);
}
}
}//package ribettium_wars_511111_pb_fla
Section 40
//spr_gfx_bazooka_fade_84 (ribettium_wars_511111_pb_fla.spr_gfx_bazooka_fade_84)
package ribettium_wars_511111_pb_fla {
import flash.display.*;
public dynamic class spr_gfx_bazooka_fade_84 extends MovieClip {
public function spr_gfx_bazooka_fade_84(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package ribettium_wars_511111_pb_fla
Section 41
//THEPRELOADER_1 (ribettium_wars_511111_pb_fla.THEPRELOADER_1)
package ribettium_wars_511111_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();
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 ribettium_wars_511111_pb_fla
Section 42
//bgm1 (bgm1)
package {
import flash.media.*;
public dynamic class bgm1 extends Sound {
}
}//package
Section 43
//bgm2 (bgm2)
package {
import flash.media.*;
public dynamic class bgm2 extends Sound {
}
}//package
Section 44
//bt0 (bt0)
package {
import flash.display.*;
public dynamic class bt0 extends MovieClip {
}
}//package
Section 45
//bt1 (bt1)
package {
import flash.display.*;
public dynamic class bt1 extends MovieClip {
}
}//package
Section 46
//bt2 (bt2)
package {
import flash.display.*;
public dynamic class bt2 extends MovieClip {
}
}//package
Section 47
//bt3 (bt3)
package {
import flash.display.*;
public dynamic class bt3 extends MovieClip {
}
}//package
Section 48
//bt4 (bt4)
package {
import flash.display.*;
public dynamic class bt4 extends MovieClip {
}
}//package
Section 49
//cbazuka (cbazuka)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class cbazuka extends MovieClip {
public var hit:MovieClip;
public function cbazuka(){
addFrameScript(7, frame8, 29, frame30);
}
function frame8(){
stop();
}
function frame30(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 50
//cerror (cerror)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class cerror extends MovieClip {
public var gun1:MovieClip;
public var gun5:MovieClip;
public var gun3:MovieClip;
public var gun4:MovieClip;
public var nametext:TextField;
public var hit:MovieClip;
public var gun2:MovieClip;
public function cerror(){
addFrameScript(15, frame16, 31, frame32);
}
function frame16(){
gotoAndPlay(1);
}
function frame32(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 51
//crono (crono)
package {
import flash.display.*;
import flash.text.*;
public dynamic class crono extends MovieClip {
public var nametext:TextField;
public var hit:unmean2;
public function crono(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 52
//crono0 (crono0)
package {
import flash.display.*;
public dynamic class crono0 extends MovieClip {
public var hit:MovieClip;
public function crono0(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 53
//crono1 (crono1)
package {
import flash.display.*;
public dynamic class crono1 extends MovieClip {
public var hit:MovieClip;
public function crono1(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 54
//crono2 (crono2)
package {
import flash.display.*;
public dynamic class crono2 extends MovieClip {
public var hit:MovieClip;
public function crono2(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 55
//daterror (daterror)
package {
import flash.display.*;
public dynamic class daterror extends BitmapData {
public function daterror(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 56
//enemy_gage (enemy_gage)
package {
import flash.display.*;
public dynamic class enemy_gage extends MovieClip {
}
}//package
Section 57
//gameinline (gameinline)
package {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHShootingStyle.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHTemplate.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import GREENHERMIT.GHDurationControl.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
import GREENHERMIT.GHBulletCollection.*;
public dynamic class gameinline extends KeyframeTemplate {
public var left;
public var enemyscore;
public var dashdirect;
public var icongun;
public var pass;
public var creator;
public var terbo;
public var scorepoint;
public var golddig;
public var enemyindex;
public var b;
public var so:SharedObject;
public var itemmin;
public var a;
public var i;
public var t;
public var die;
public var scorerate;
public var playerindex;
public var plane;
public var score;
public var areacount;
public var et;
public var soundplayer;
public var z;
public var playergun:GunDesc;
public var gamelevel;
public var countrbt;
public var senemydead;
public var superclass:KeyframeTemplate;
public var gunindex2;
public var gd2:GunDesc;
public var gd3:GunDesc;
public var gd4:GunDesc;
public var shop;
public var gd0:GunDesc;
public var soundchannel;
public var gd1:GunDesc;
public var itemgun;
public var durationmax;
public var so2:SharedObject;
public var sbgm2;
public var sbgm1;
public var gameoverd;
public var gunindex;
public var selectname;
public var limit;
public var g_root;
public var gameover;
public var gametime;
public var soundgun;
public var car;
public var soundenemy;
public function gameinline(){
addFrameScript(0, frame1);
}
public function setDuration(_arg1:MovieClip){
var _local2:*;
if (playergun != gd0){
playergun.cooldown--;
};
if ((((playergun.cooldown <= 0)) && (!((playergun == gd0))))){
if (playergun.pause){
_local2 = true;
} else {
_local2 = false;
};
playergun.pauseToggle(true);
playergun = gd0;
playergun.pauseToggle(_local2);
playergun.cooldown = 100;
gunindex = 0;
gunindex2 = 1;
};
}
public function initPlayer(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = 400;
_local3 = 670;
_arg1.x = _local2;
_arg1.y = _local3;
_arg1.getGold = false;
_arg1.status = false;
_arg1.areacheck = removeOut;
_arg1.hpprocess = checkgage;
_arg1.hp = 100;
_arg1.maxhp = 100;
_arg1.hitsearch = playerHit;
_arg1.moveend = bornenemy;
_arg1.playerhitbull = playerhitBull;
_arg1.resting = css.enemy99.restingtime;
}
public function goRight(_arg1:MovieClip, _arg2){
var _local3:*;
_arg1.gotoAndPlay("walk");
_local3 = API.getMotion(_arg1);
if ((_local3 is MapMove)){
if (_arg2[1] == null){
MapMove(_local3).setDirect(1);
} else {
if ((Math.random() * 100) < int(_arg2[1])){
MapMove(_local3).setDirect(1);
};
};
};
}
public function removeOut(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < world.enemy_layer.numChildren) {
_local3 = world.enemy_layer.getChildAt(_local2);
if ((((((((_local3.x > 0)) && ((_local3.x < 800)))) && ((_local3.y > 0)))) && ((_arg1.y < 600)))){
_local3.status = true;
};
_local2++;
};
if ((((_arg1.moveGold == true)) && ((_arg1.dead == null)))){
if ((((_arg1.x > 820)) || ((_arg1.x < -50)))){
_arg1.dead = true;
enemyscore = (enemyscore + css.config.getenemyscore);
left++;
_arg1.status = false;
destroy(_arg1);
} else {
if ((((_arg1.y > 720)) || ((_arg1.y < -20)))){
_arg1.dead = true;
enemyscore = (enemyscore + css.config.getenemyscore);
left++;
_arg1.status = false;
destroy(_arg1);
};
};
} else {
if (_arg1.dead == null){
if ((((_arg1.x > 1000)) || ((_arg1.x < -160)))){
_arg1.dead = true;
_arg1.status = false;
destroy(_arg1);
} else {
if ((((_arg1.y > 840)) || ((_arg1.y < -160)))){
_arg1.dead = true;
_arg1.status = false;
destroy(_arg1);
};
};
};
};
}
public function cronoHit(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = ObjectSearch.searchNearObjectIn(world.gold_layer, _arg1);
if (((((((!((_local2 == null))) && ((_arg1.getGold == false)))) && ((_local2.diger == null)))) && (!((_arg1.hit == null))))){
_arg1.visible = false;
_local3 = new PositionMove(_arg1, {x:_local2.x, y:_local2.y}, (_arg1.speed + _arg1.terbo), false);
API.setMotion(_arg1, _local3);
if (((_local2.hit.hitTestObject(_arg1.hit)) && ((_arg1.getGold == false)))){
_arg1.visible = true;
_local3 = API.getMotion(_arg1);
_local3.setSpeed(0);
_arg1.mining = _arg1.miningtime;
_arg1.process = mining;
_arg1.gold = _local2;
_local2.diger = _arg1;
};
} else {
if ((((_local2 == null)) || ((_arg1.getGold == true)))){
if ((((_arg1.gold == true)) && ((_arg1.die == null)))){
if (_arg1.currentLabel != "walk_gathered"){
_arg1.gotoAndPlay("walk_gathered");
};
_arg1.visible = true;
} else {
_arg1.visible = true;
};
};
};
}
public function jump(_arg1:MovieClip, _arg2){
var _local3:*;
_arg1.gotoAndPlay("jump");
_local3 = API.getMotion(_arg1);
if ((_local3 is MapMove)){
if (_arg2[1] == null){
MapMove(_local3).jumpNow();
} else {
if ((Math.random() * 100) < int(_arg2[1])){
MapMove(_local3).jumpNow();
};
};
};
}
public function searchGold(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = new Array();
_local3 = 0;
while (_local3 < world.gold_layer.numChildren) {
_local4 = world.gold_layer.getChildAt(_local3);
if (_local4.diger == null){
_local2.push(_local4);
};
_local3++;
};
_local3 = 0;
while (_local3 < _local2.length) {
_local5 = (_local2[_local3].x - _arg1.x);
_local6 = (_local2[_local3].y - _arg1.y);
_local2[_local3].far = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
_local3++;
};
_local2.sortOn("far", Array.NUMERIC);
return (_local2[0]);
}
public function mouseUp(_arg1:MouseEvent){
game.parent.crosshair.gotoAndStop(5);
gd0.pauseToggle(true);
gd1.pauseToggle(true);
gd2.pauseToggle(true);
gd3.pauseToggle(true);
}
public function mining(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.mining > 0){
_arg1.mining--;
if (((!((_arg1.currentLabel == "gathering"))) && ((_arg1.die == null)))){
_arg1.gotoAndPlay("gathering");
};
if (_arg1.die != null){
_arg1.gold.diger = null;
_arg1.process = null;
};
} else {
soundenemy[0].play();
_arg1.moveGold = true;
_local2 = (Math.random() * 820);
_local3 = (Math.random() * 560);
if ((Math.random() * 100) < 25){
_local2 = -20;
} else {
if ((Math.random() * 100) < 25){
_local2 = 660;
} else {
_local3 = 0;
};
};
if (((!((_arg1.currentLabel == "walk_gathered"))) && ((_arg1.die == null)))){
_arg1.gotoAndPlay("walk_gathered");
};
_local4 = new PositionMove(_arg1, {x:_local2, y:_local3}, _arg1.speed, false);
API.setMotion(_arg1, _local4);
destroy(_arg1.gold);
_arg1.getGold = true;
_arg1.moveGold = true;
_arg1.process = null;
_arg1.mining = null;
};
}
public function checkgage(_arg1:MovieClip){
if (((!((_arg1.hp == null))) && (!((_arg1.maxhp == null))))){
_arg1.gage.gotoAndStop(int(((_arg1.hp * 100) / _arg1.maxhp)));
};
if (_arg1.hp <= 0){
_arg1.gage.visible = false;
};
}
public function getHit(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < world.gold_layer.numChildren) {
_local3 = world.gold_layer.getChildAt(_local2);
if (_local3.diger != null){
} else {
if ((((_local3.hit == null)) || ((_arg1.hit == null)))){
} else {
if (((_local3.hit.hitTestObject(_arg1.hit)) && ((_arg1.moveGold == false)))){
_arg1.mining = _arg1.miningtime;
_arg1.process = mining;
_local4 = API.getMotion(_arg1);
_local4.setSpeed(0);
_local3.diger = _arg1;
_arg1.gold = _local3;
break;
};
};
};
_local2++;
};
}
public function planeMove(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
_arg1.y = (_arg1.y + _arg1.speed);
if (_arg1.y > 620){
destroy(_arg1);
};
_local2 = 0;
while (_local2 < world.playerbullet_layer.numChildren) {
_local3 = world.playerbullet_layer.getChildAt(_local2);
if (((_arg1.hitTestObject(_local3)) && ((_arg1.die == null)))){
if (playergun.pause){
_local4 = true;
} else {
_local4 = false;
};
trace(("item" + _arg1.numitem));
switch (_arg1.numitem){
case 0:
playergun.pauseToggle(true);
playergun = gd1;
playergun.pauseToggle(_local4);
playergun.cooldown = css.config.duration2;
durationmax = css.config.duration2;
gunindex = 1;
gunindex2 = 2;
break;
case 1:
playergun.pauseToggle(true);
playergun = gd2;
playergun.pauseToggle(_local4);
playergun.cooldown = css.config.duration3;
durationmax = css.config.duration3;
gunindex = 2;
gunindex2 = 3;
break;
case 2:
playergun.pauseToggle(true);
playergun = gd3;
playergun.pauseToggle(_local4);
playergun.cooldown = css.config.duration4;
durationmax = css.config.duration4;
gunindex = 3;
gunindex2 = 4;
break;
};
_arg1.visible = false;
_arg1.die = true;
destroy(_arg1);
};
_local2++;
};
}
public function initEnemy(_arg1:MovieClip, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
if (_arg1[("speedlv" + gamelevel)] != null){
_arg1.speed = _arg1[("speedlv" + gamelevel)];
};
if (_arg1[("hplv" + gamelevel)] != null){
_arg1.hp = _arg1[("hplv" + gamelevel)];
};
if (_arg1[("mininglv" + gamelevel)] != null){
_arg1.miningtime = _arg1[("mininglv" + gamelevel)];
};
_local3 = _arg1.hp;
_local4 = (Math.random() * 850);
_local5 = (Math.random() * 620);
_arg1.maxhp = _local3;
if ((Math.random() * 100) < 25){
_local4 = -160;
} else {
if ((Math.random() * 100) < 25){
_local4 = 900;
} else {
_local5 = -100;
};
};
_arg1.x = _local4;
_arg1.y = _local5;
_arg1.baseX = _local4;
_arg1.baseY = _local5;
_arg1.getGold = false;
_arg1.status = false;
_arg1.hpprocess = checkgage;
_arg1.areacheck = removeOut;
_arg1.playerhitbull = enemyhitBull;
_arg1.thisgun = playergun;
_arg1.pgd1 = gd1;
_arg1.pgd2 = gd2;
_arg1.pgd3 = gd3;
_arg1.moveGold = false;
API.setShooterType(_arg1);
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function initBullet(_arg1:MovieClip, _arg2:Object){
if (_arg1[("speedlv" + gamelevel)] != null){
_arg1.speed = _arg1[("speedlv" + gamelevel)];
};
if (_arg1[("damagelv" + gamelevel)] != null){
_arg1.damage = _arg1[("damagelv" + gamelevel)];
};
if (css.gun0[("waylv" + gamelevel)] != null){
css.gun0.way = css.gun0[("waylv" + gamelevel)];
};
if (css.gun0[("maglv" + gamelevel)] != null){
css.gun0.mag = css.gun0[("maglv" + gamelevel)];
};
if (css.gun0[("reloadlv" + gamelevel)] != null){
css.gun0.reload = css.gun0[("reloadlv" + gamelevel)];
};
if (css.gun0[("frqlv" + gamelevel)] != null){
css.gun0.frq = css.gun0[("frqlv" + gamelevel)];
};
API.setShooterType(_arg1);
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
_arg1.areacheck = removeOut;
}
public function posgun(_arg1:MovieClip){
var shoot:*;
var normalShoot:Function;
var enemy = _arg1;
normalShoot = function (_arg1){
soundgun[gunindex].play();
};
enemy.x = 400;
enemy.y = 690;
gd0 = new GunDesc("gun1", css.config.magazinegun1, css.config.reloadgun1, css.config.fqc1);
shoot = new ShootMouse(css["bullet1"], {way:1, angle:0});
API.addShootMethod(game, world, enemy, gd0, shoot);
gd1 = new GunDesc("gun1", css.config.magazinegun2, css.config.reloadgun2, css.config.fqc2, css.config.duration2);
shoot = new ShootMouse(css["bullet2"], {way:1, angle:0});
API.addShootMethod(game, world, enemy, gd1, shoot);
gd2 = new GunDesc("gun1", css.config.magazinegun3, css.config.reloadgun3, css.config.fqc3, css.config.duration3);
shoot = new ShootMouse(css["bullet3"], {way:1, angle:0});
API.addShootMethod(game, world, enemy, gd2, shoot);
gd3 = new GunDesc("gun1", css.config.magazinegun4, css.config.reloadgun4, css.config.fqc4, css.config.duration4);
shoot = new ShootMouse(css["bullet4"], {way:1, angle:0});
API.addShootMethod(game, world, enemy, gd3, shoot);
gd0.pauseToggle(true);
gd0.shootEvent = normalShoot;
gd1.pauseToggle(true);
gd1.shootEvent = normalShoot;
gd2.shootEvent = function (_arg1){
var bullet = _arg1;
soundgun[gunindex].play();
bullet.locatey = world.mouseY;
bullet.locatex = world.mouseX;
bullet.process = function (_arg1){
var thisBull:*;
var a:*;
var gfxclass:*;
var gfx:*;
var i:*;
var car:*;
var fire:*;
var mot:*;
var me = _arg1;
thisBull = me;
if ((((((thisBull.y <= thisBull.locatey)) && ((thisBull.die == null)))) && ((thisBull.time == null)))){
(thisBull.x <= thisBull.locatex);
(thisBull.y <= thisBull.locatey);
API.setSpeed(thisBull, 0);
a = 0;
while (a < world.enemy_layer.numChildren) {
car = world.enemy_layer.getChildAt(a);
if (((!((thisBull.hit == null))) && (!((car.hit == null))))){
if (car.hit.hitTestObject(thisBull.hit)){
car.hp = (car.hp - css.bullet3.damage);
};
};
a = (a + 1);
};
gfxclass = API.getClass(thisBull.gfx);
gfx = new (gfxclass);
gfx.x = thisBull.x;
gfx.y = thisBull.y;
world.gfx_layer.addChild(gfx);
i = 0;
while (i < css.config.baAOE) {
fire = new gfx3();
mot = new AngleDropMove(fire, ((-90 + (Math.random() * 30)) - 15), ((Math.random() * 5) + 15), false, 1);
API.setMotion(fire, mot);
fire.x = thisBull.x;
fire.y = (thisBull.y - 5);
fire.finishy = thisBull.y;
fire.process = function (_arg1){
var _local2:*;
var _local3:*;
if (_arg1.y >= _arg1.finishy){
API.removeMotion(_arg1);
};
_local2 = 0;
while (_local2 < world.enemy_layer.numChildren) {
_local3 = world.enemy_layer.getChildAt(_local2);
if (((!((_local3.hit == null))) && (!((_arg1.hit == null))))){
if (((_local3.hit.hitTestObject(_arg1.hit)) && (((Math.random() * 100) < 25)))){
_local3.hp = (_local3.hp - css.config.minidamage);
};
};
_local2++;
};
};
world.playerbullet_layer.addChild(fire);
i = (i + 1);
};
thisBull.time = 50;
thisBull.die = true;
thisBull.fire = fire;
thisBull.process = null;
destroy(thisBull);
};
};
};
gd2.pauseToggle(true);
gd3.pauseToggle(true);
gd3.shootEvent = normalShoot;
playergun = gd0;
enemy.hp = 10000000000;
enemy.playerhitbull = playerhitBull;
enemy.moveend = bornenemy;
enemy.process = setDuration;
}
public function functionMap(_arg1:String, _arg2:MovieClip){
var _local3:*;
_local3 = _arg1.split(",");
if ((game[_local3[0]] is Function)){
var _local4 = game;
_local4[_local3[0]](_arg2, _local3);
};
}
public function createGameStage(){
superclass.worldlist.push({layername:"gold_layer", movieclip:null});
superclass.worldlist.push({layername:"door_layer", movieclip:null});
superclass.worldlist.push({layername:"player_layer", movieclip:null});
superclass.worldlist.push({layername:"item_layer", movieclip:null});
superclass.worldlist.push({layername:"bazooka_layer", movieclip:null});
superclass.worldlist.push({layername:"gate_layer", movieclip:null});
superclass.worldlist.push({layername:"playerbullet_layer", movieclip:null});
superclass.worldlist.push({layername:"enemy_layer", movieclip:null});
superclass.worldlist.push({layername:"enemybullet_layer", movieclip:null});
superclass.worldlist.push({layername:"gfx_layer", movieclip:null});
superclass.processlist.push("player_layer");
superclass.processlist.push("enemy_layer");
superclass.processlist.push("door_layer");
superclass.processlist.push("gate_layer");
superclass.processlist.push("enemybullet_layer");
superclass.processlist.push("playerbullet_layer");
superclass.processlist.push("item_layer");
superclass.processlist.push("bazooka_layer");
superclass.processfn.push("process", "hitsearch", "moveend", "creBullet", "playerhitbull", "areacheck", "hpprocess");
superclass.gamewidth = 640;
superclass.gameheight = 480;
superclass.cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:null};
gamepause = true;
}
function frame1(){
superclass = this;
soundgun = new Array();
gunindex = 0;
soundgun[0] = new sfxgun();
soundgun[1] = new sfxmachine();
soundgun[2] = new sfxbazooka();
soundgun[3] = new sfxtesla();
soundplayer = new Array();
playerindex = 0;
soundplayer[0] = new sfxmining();
soundenemy = new Array();
enemyindex = 0;
soundenemy[0] = new sfxenemymining();
createGameStage();
gunindex2 = 1;
senemydead = new sfxbomb();
CSSToVar.importCSSObject(css, "bullet", 100, initBullet);
CSSToVar.importCSSObject(css, "enemy", 100, initEnemy);
CSSToVar.importCSSObject(css, "creator", 100, initCreator);
CSSToVar.importCSSObject(css, "gold", 100, initGold);
CSSToVar.importCSSObject(css, "goldpoint", 100, initGoldPoint);
CSSToVar.importCSSObject(css, "plane", 100, initplane);
so = SharedObject.getLocal("RBT");
if (so.data.money == undefined){
so.data.money = 0;
};
if (so.data.scorepoint == undefined){
so.data.scorepoint = 0;
};
if (so.data.gamelevel == undefined){
so.data.gamelevel = 0;
};
score = so.data.money;
selectname = null;
if ((so.data.gamelevel - 1) >= 0){
gamelevel = (so.data.gamelevel - 1);
} else {
gamelevel = 0;
};
areacount = 0;
scorepoint = so.data.scorepoint;
limit = css.config.limitover;
countrbt = 0;
left = 0;
durationmax = 0;
die = 0;
enemyscore = 0;
gametime = 300;
t = 0;
et = 0;
itemmin = 0;
itemgun = new Array();
terbo = 1;
scorerate = css.config.ratescore;
sbgm1 = new bgm1();
sbgm2 = new bgm2();
so.close();
soundchannel = null;
levelUp();
shop = MovieClip(parent).shop;
gameoverd = MovieClip(parent).gameover;
icongun = MovieClip(parent).icongun;
superclass.EventKBRelease = keyRelease;
superclass.EventKBPress = keyPress;
dashdirect = 0;
game.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
game.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
gameover = MovieClip(parent).gameover;
g_root = MovieClip(parent).g_root;
pass = false;
so2 = SharedObject.getLocal("RBT");
Mouse.hide();
superclass.keyFrameStyleEnterFrame = function (_arg1){
stage.focus = keyfocus;
if (gamepause){
return;
};
Mouse.hide();
so2.data.scorepoint = scorepoint;
so2.flush();
if (playergun != null){
g_root.delaygage2.gotoAndStop(GunDesc(playergun).gageframe);
};
g_root.icongun.gotoAndStop(gunindex2);
gametime--;
if (gametime <= 0){
gametime = 0;
creator.durationclass.stoptimer = true;
a = 0;
while (a < world.enemy_layer.numChildren) {
car = world.enemy_layer.getChildAt(a);
if ((((car.status == false)) && ((car.die == null)))){
car.die = true;
destroy(car);
};
a++;
};
if (world.enemy_layer.numChildren <= 0){
gamepause = true;
g_root.stageclear.visible = true;
Mouse.show();
};
};
game.parent.timetext.text = ("" + int((gametime / 25)));
game.parent.textsmoney.text = score;
game.parent.textscore.text = scorepoint;
g_root.textlevel.text = gamelevel;
g_root.stageclear.scoretext.text = scorepoint;
g_root.stageclear.dietext.text = (die * int((scorepoint * 0.06)));
g_root.stageclear.lefttext.text = (left * int((scorepoint * 0.01)));
g_root.stageclear.diescore.text = die;
g_root.stageclear.leftscore.text = left;
g_root.stageclear.total.text = ((scorepoint - (die * int((scorepoint * 0.06)))) - (left * int((scorepoint * 0.01))));
game.parent.rep.text = "";
i = 0;
while (i < world.player_layer.numChildren) {
game.parent.rep.text = (game.parent.rep.text + (world.player_layer.getChildAt(i).name + "\n"));
i++;
};
game.parent.limitgage.gotoAndStop(int(((enemyscore * 100) / css.config.limitover)));
if (enemyscore >= css.config.limitover){
game.gamepause = true;
gameoverd.visible = true;
game.removeEventListener(Event.ENTER_FRAME, EnterFrame);
game.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
game.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
game.keyfocus.removeEventListener(KeyboardEvent.KEY_DOWN, keydown);
game.keyfocus.removeEventListener(KeyboardEvent.KEY_UP, keyup);
g_root.gotoAndStop(1, "submit");
return;
};
z = 0;
while (z < world.gold_layer.numChildren) {
golddig = world.gold_layer.getChildAt(z);
if (golddig.diger != null){
trace(golddig.diger);
};
z++;
};
game.parent.expgage.gotoAndStop(100);
g_root.scoresubmit = scorepoint;
game.parent.crosshair.x = mouseX;
game.parent.crosshair.y = mouseY;
if (playergun == gd0){
game.parent.weapongage.gotoAndStop(int(100));
} else {
game.parent.weapongage.gotoAndStop(int(((playergun.cooldown * 100) / durationmax)));
};
b = 0;
while (b < 4) {
if (game[("gd" + b)] != null){
if (game[("gd" + b)].mag < css.config[("magazinegun" + (b + 1))]){
game[("gd" + b)].mag = css.config[("magazinegun" + (b + 1))];
};
if (game[("gd" + b)].frequency >= css.config[("fqc" + (b + 1))]){
game[("gd" + b)].frequency = css.config[("fqc" + (b + 1))];
};
if (game[("gd" + b)].cooldown >= css.config[("duration" + (b + 1))]){
game[("gd" + b)].cooldown = css.config[("duration" + (b + 1))];
};
if (game[("gd" + b)].reload < css.config[("reloadgun" + (b + 1))]){
game[("gd" + b)].reload = css.config[("reloadgun" + (b + 1))];
};
};
b++;
};
};
stop();
}
public function keyRelease(_arg1:Number){
}
public function enemyhitBull(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local2 = 0;
while (_local2 < world.playerbullet_layer.numChildren) {
_local3 = world.playerbullet_layer.getChildAt(_local2);
_local4 = 0;
while (_local4 < world.enemybullet_layer.numChildren) {
_local5 = world.enemybullet_layer.getChildAt(_local4);
if (((!((_local3.hit == null))) && ((_local5.visible == true)))){
if (_local3.hit.hitTestObject(_local5)){
if (_local3.style == 1){
_local3.die = true;
_local3.visible = false;
destroy(_local3);
_local5.die = true;
_local5.visible = false;
destroy(_local3);
};
if (_local3.style == 2){
_local3.die = true;
_local3.visible = false;
destroy(_local3);
_local5.die = true;
_local5.visible = false;
destroy(_local3);
};
};
};
_local4++;
};
if (((!((_local3.hit == null))) && (!((_arg1.hit == null))))){
if (((((((_local3.hit.hitTestObject(_arg1.hit)) && ((_arg1.die == null)))) && ((_local3.die == null)))) && ((_arg1.visible == true)))){
if (_local3.style == 1){
_arg1.hp = (_arg1.hp - _local3.damage);
_local3.die = true;
_local3.visible = false;
destroy(_local3);
};
if (_local3.style == 2){
_arg1.hp = (_arg1.hp - _local3.damage);
_local3.die = true;
_local3.visible = false;
destroy(_local3);
};
if (_local3.style == 3){
} else {
if (_local3.gfx != null){
_local6 = API.getClass(_local3.gfx);
_local7 = new (_local6);
_local7.x = _local3.x;
_local7.y = _local3.y;
world.gfx_layer.addChild(_local7);
};
};
if (_local3.style == 4){
_arg1.hp = (_arg1.hp - _local3.damage);
if (_local3.count == null){
_local3.count = css.config.counthit;
};
if (_local3.count != null){
_local3.count--;
if (_local3.passlist == null){
_local3.passlist = new Array();
};
_local3.passlist.push(_arg1);
_local8 = ObjectSearch.searchNearObjectIn(world.enemy_layer, _local3, _local3.passlist);
if (((!((_local8 == null))) && (!((_arg1 == null))))){
_local9 = new PositionMove(_local3, {x:_local8.x, y:_local8.y}, _local3.speed, false);
API.setMotion(_local3, _local9);
};
if (_local3.count <= 0){
_local3.die = true;
_local3.visible = false;
destroy(_local3);
};
};
};
};
};
_local2++;
};
if ((((_arg1.hp <= 0)) && ((_arg1.die == null)))){
_arg1.die = true;
senemydead.play();
_local6 = API.getClass(_arg1.gfx);
_local7 = new (_local6);
_local7.x = _arg1.x;
_local7.y = _arg1.y;
world.gfx_layer.addChild(_local7);
scorepoint = (scorepoint + (100 + int((Math.random() * 300))));
if (_arg1.moveGold == true){
if (_arg1.status == true){
_local10 = API.createMovieFromBase(world, css["gold0"]);
_local10.x = _arg1.x;
_local10.y = _arg1.y;
};
};
destroy(_arg1);
};
}
public function initEnemy2(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = (Math.random() * 800);
_local3 = (Math.random() * 600);
_local4 = new PositionMove(_arg1, {x:_local2, y:_local3}, (_arg1.speed + _arg1.terbo), false);
API.setMotion(_arg1, _local4);
_arg1.nx = _local2;
_arg1.ny = _local3;
_arg1.hitsearch = getHit;
_arg1.moveend = moveFinish;
}
public function initEnemy3(_arg1:MovieClip){
_arg1.visible = false;
_arg1.hitsearch = cronoHit;
}
public function initEnemy0(_arg1:MovieClip){
_arg1.hitsearch = enemyharvestHit;
}
public function initEnemy1(_arg1:MovieClip){
var nx:*;
var ny:*;
var mot:*;
var enemy = _arg1;
trace(enemy.linkage);
nx = (Math.random() * 800);
ny = (Math.random() * 600);
mot = new PositionMove(enemy, {x:nx, y:ny}, enemy.speed, false);
API.setMotion(enemy, mot);
enemy.nx = nx;
enemy.ny = ny;
enemy.hitsearch = getHit;
enemy.moveend = moveFinish;
enemy.process = function (){
enemy.looking = ObjectSearch.getSomeObjectIn(world.player_layer);
};
}
public function playerHit(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.y < 600){
_arg1.status = true;
} else {
_arg1.status = false;
};
if (_arg1.passlist == null){
_arg1.passlist = new Array();
};
if ((((_arg1.y > 650)) && ((_arg1.getGold == true)))){
_local4 = API.getMotion(_arg1);
_local4.setSpeed(0);
if (_arg1.getGold == true){
if (_arg1.moveGold != null){
score = (score + (css.config.getscore * (scorerate / 100)));
scorepoint = (scorepoint + (css.config.getscore + int((Math.random() * css.config.scorerandom))));
_arg1.moveGold = null;
if (_arg1.currentLabel != "walk_normal"){
_arg1.gotoAndPlay("walk_normal");
};
};
_arg1.resting--;
if (_arg1.resting <= 0){
_arg1.getGold = false;
if (_arg1.currentLabel != "walk_normal"){
_arg1.gotoAndPlay("walk_normal");
};
};
} else {
_arg1.resting = _arg1.restingtime;
_arg1.getGold = false;
if (_arg1.currentLabel != "walk_normal"){
_arg1.gotoAndPlay("walk_normal");
};
};
};
if (_arg1.getGold){
return;
};
if (_arg1.process != null){
return;
};
if (_arg1.getGold){
return;
};
_local2 = 0;
while (_local2 < world.gold_layer.numChildren) {
_local3 = world.gold_layer.getChildAt(_local2);
if ((((_local3.diger == null)) && (!((_local3.hit == null))))){
if (_arg1.hit != null){
if (_arg1.hit.hitTestObject(_local3.hit)){
_local4 = API.getMotion(_arg1);
_local4.setSpeed(0);
_arg1.mining = _arg1.miningtime;
_arg1.process = miningPlayer;
_arg1.gold = _local3;
_local3.diger = _arg1;
return;
};
};
};
_local2++;
};
if (_arg1.target != null){
if (((!((_arg1.target.diger == null))) && (!((_arg1.target.diger == _arg1))))){
_arg1.target = null;
};
};
if (_arg1.target == null){
_local3 = searchGold(_arg1);
if (_local3 != null){
(_arg1.target == _local3);
_local4 = new PositionMove(_arg1, {x:_local3.x, y:_local3.y}, (_arg1.speed + terbo), false);
API.setMotion(_arg1, _local4);
} else {
_local4 = new PositionMove(_arg1, {x:400, y:670}, (_arg1.speed + terbo), false);
API.setMotion(_arg1, _local4);
};
};
}
public function initEnemy5(_arg1:MovieClip){
if (itemgun.length > 0){
_arg1.x = plane.x;
_arg1.y = 50;
} else {
_arg1.x = -10000;
_arg1.y = -10000;
};
_arg1.numitem = itemgun[int((Math.random() * itemgun.length))];
_arg1.moveend = planeMove;
_arg1.gotoAndStop((_arg1.numitem + 1));
_arg1.areacheck = removeOut;
}
public function enemyharvestHit(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = ObjectSearch.searchNearObjectIn(world.gold_layer, _arg1);
if (((((((!((_local2 == null))) && ((_arg1.getGold == false)))) && ((_local2.diger == null)))) && (!((_arg1.hit == null))))){
if (((!((_arg1.currentLabel == "walk_normal"))) && ((_arg1.die == null)))){
_arg1.gotoAndPlay("walk_normal");
};
_local3 = new PositionMove(_arg1, {x:_local2.x, y:_local2.y}, (_arg1.speed + _arg1.terbo), false);
API.setMotion(_arg1, _local3);
if (_local2.hit != null){
if (((_local2.hit.hitTestObject(_arg1.hit)) && ((_arg1.getGold == false)))){
_arg1.visible = true;
_local3 = API.getMotion(_arg1);
_local3.setSpeed(0);
_arg1.mining = _arg1.miningtime;
_arg1.process = mining;
_arg1.gold = _local2;
_local2.diger = _arg1;
};
};
} else {
if (_local2 == null){
};
};
}
public function mouseDown(_arg1:MouseEvent){
var _local2:*;
if (gd0 != null){
_local2 = new gfx();
world.gfx_layer.addChild(_local2);
_local2.x = world.mouseX;
_local2.y = world.mouseY;
playergun.pauseToggle(false);
game.parent.crosshair.gotoAndStop(1);
};
}
public function active(_arg1:MovieClip, _arg2){
if (_arg1.active == null){
_arg1.gotoAndPlay("active");
_arg1.active = true;
} else {
if (_arg1.active == false){
_arg1.gotoAndPlay("active");
_arg1.active = true;
};
};
}
public function keyProcess(_arg1:MovieClip){
}
public function initCreator(_arg1:MovieClip, _arg2:Object){
_arg1.x = -1000;
_arg1.y = -1000;
API.setShooterType(_arg1);
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
selectname = _arg1.name;
}
public function goLeft(_arg1:MovieClip, _arg2){
var _local3:*;
_arg1.gotoAndPlay("walk");
_local3 = API.getMotion(_arg1);
if ((_local3 is MapMove)){
if (_arg2[1] == null){
MapMove(_local3).setDirect(-1);
} else {
if ((Math.random() * 100) < int(_arg2[1])){
MapMove(_local3).setDirect(-1);
};
};
};
}
public function keyPress(_arg1:Number){
}
public function levelUp(){
var goldpoint:*;
var s:Sound;
var soundCompleteHandler:*;
gamelevel++;
gunindex2 = 1;
if (css.config[("tlv" + gamelevel)] != null){
gametime = css.config[("tlv" + gamelevel)];
};
if (soundchannel == null){
s = game[("sbgm" + int(((Math.random() * 2) + 1)))];
SoundMixer.stopAll();
soundchannel = s.play(1, 1);
soundCompleteHandler = function (){
var _local1:Sound;
soundchannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
_local1 = game[("sbgm" + int(((Math.random() * 2) + 1)))];
soundchannel = _local1.play(1, 1);
soundchannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
soundchannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
left = 0;
die = 0;
areacount = 0;
countrbt = 0;
if (superclass.world != null){
superclass.game.removeChild(world);
superclass.world = null;
};
createWorld();
creator = API.createMovieFromBase(world, css[("creator" + gamelevel)]);
goldpoint = API.createMovieFromBase(world, css["goldpoint0"]);
plane = API.createMovieFromBase(world, css["plane0"]);
if (css.swap0[("slv" + gamelevel)] != null){
css.enemy0.linkage = ("harvester" + css.swap0[("slv" + gamelevel)]);
};
if (css.swap1[("slv" + gamelevel)] != null){
css.enemy1.linkage = ("tank" + css.swap1[("slv" + gamelevel)]);
css.bullet0.linkage = ("bt" + css.swap1[("slv" + gamelevel)]);
};
if (css.swap2[("slv" + gamelevel)] != null){
css.enemy2.linkage = ("speeder" + css.swap2[("slv" + gamelevel)]);
};
if (css.swap3[("slv" + gamelevel)] != null){
css.enemy3.linkage = ("crono" + css.swap3[("slv" + gamelevel)]);
};
}
public function playerhitBull(_arg1:MovieClip){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = 0;
while (_local2 < world.enemybullet_layer.numChildren) {
_local3 = world.enemybullet_layer.getChildAt(_local2);
if (((((_local3.hitTestObject(_arg1)) && ((_arg1.die == null)))) && ((_local3.die == null)))){
_arg1.hp = (_arg1.hp - _local3.damage);
_local3.hp = (_local3.hp - 1000);
_local3.die = true;
_local3.visible = false;
destroy(_local3);
};
_local2++;
};
if ((((_arg1.hp <= 0)) && ((_arg1.die == null)))){
_local4 = API.getClass(_arg1.gfx);
_local5 = new (_local4);
_local5.x = _arg1.x;
_local5.y = _arg1.y;
world.gfx_layer.addChild(_local5);
_arg1.die = true;
_arg1.gold.diger = null;
die++;
if (_arg1.moveGold == true){
_local6 = API.createMovieFromBase(world, css["gold0"]);
_local6.x = _arg1.x;
_local6.y = _arg1.y;
};
destroy(_arg1);
};
}
public function initplane(_arg1:MovieClip, _arg2:Object){
var mot:*;
var plane = _arg1;
var base = _arg2;
plane.x = -1000;
plane.y = 50;
API.setShooterType(plane);
CSSToVar.CSSApplyObject(game, world, plane, base);
mot = new LineMove(plane, 10, 0);
API.setMotion(plane, mot);
plane.rd = 7500;
plane.process = function (_arg1){
if (_arg1.x > (800 + _arg1.rd)){
_arg1.rd = 7500;
_arg1.x = -50;
};
};
}
public function miningPlayer(_arg1:MovieClip){
var _local2:*;
if (_arg1.mining > 0){
_arg1.mining--;
if (((!((_arg1.currentLabel == "gathering"))) && ((_arg1.die == null)))){
_arg1.gotoAndPlay("gathering");
};
} else {
soundplayer[0].play();
destroy(_arg1.gold);
_arg1.moveGold = true;
_arg1.getGold = true;
_arg1.moveGold = true;
_arg1.process = null;
_arg1.mining = null;
_local2 = new PositionMove(_arg1, {x:400, y:670}, (_arg1.speed + terbo), false);
API.setMotion(_arg1, _local2);
_arg1.gotoAndPlay("walk_gathered");
};
}
public function createObject(_arg1:MovieClip, _arg2){
var _local3:*;
var _local4:*;
_local3 = API.createMovieFromBase(world, css[_arg2[1]], {x:_arg1.x, y:_arg1.y});
_local4 = new enemy_gage();
_local3.addChild(_local4);
_local4.x = 0;
_local4.y = 30;
_local4.scaleX = 0.5;
_local4.scaleY = 0.5;
_local3.gage = _local4;
if (_local3.layer == "gold_layer"){
if (countrbt >= css.config[("rbtlv" + gamelevel)]){
destroy(_local3);
} else {
countrbt++;
};
};
if (_arg1.name == selectname){
};
if ((((_local3.layer == "gold_layer")) || ((_local3.layer == "item_layer")))){
_local3.gage.visible = false;
};
}
public function bulletSearch(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = ObjectSearch.searchNearObjectIn(world.enemy_layer, _arg1);
if (((!((_local2 == null))) && (!((_arg1.hit == null))))){
_local3 = new PositionMove(_arg1, {x:_local2.x, y:_local2.y}, _arg1.speed, false);
API.setMotion(_arg1, _local3);
} else {
destroy(_arg1);
};
_arg1.process = null;
}
public function goto(_arg1:MovieClip, _arg2){
API.setTimeCount(_arg1, int(_arg2[1]));
}
public function retime(_arg1:MovieClip){
var _local2:*;
_local2 = _arg1.fire;
if (_arg1.time >= 0){
_arg1.time--;
trace(_arg1.time);
_local2.scaleX = (_local2.scaleX + 0.05);
_local2.scaleY = (_local2.scaleY + 0.05);
} else {
if (_arg1.die != null){
world.gfx_layer.removeChildAt(_arg1.numgfx);
_arg1.die = true;
destroy(_arg1);
_arg1.process = null;
};
};
}
public function initGold(_arg1:MovieClip, _arg2:Object){
_arg1.x = ((400 + (Math.random() * css.config.goldarea)) - (css.config.goldarea / 2));
_arg1.y = ((300 + (Math.random() * css.config.goldarea)) - (css.config.goldarea / 2));
API.setShooterType(_arg1);
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function moveFinish(_arg1:MovieClip){
var _local2:*;
if (_arg1.hitTestPoint(_arg1.nx, _arg1.ny)){
_arg1.nx = (Math.random() * 650);
_arg1.ny = (Math.random() * 400);
_local2 = new PositionMove(_arg1, {x:_arg1.nx, y:_arg1.ny}, (_arg1.speed + _arg1.terbo), false);
API.setMotion(_arg1, _local2);
};
}
public function stand(_arg1:MovieClip, _arg2){
var _local3:*;
_arg1.gotoAndPlay("stand");
_local3 = API.getMotion(_arg1);
if ((_local3 is MapMove)){
if (_arg2[1] == null){
MapMove(_local3).setDirect(0);
} else {
if ((Math.random() * 100) < int(_arg2[1])){
MapMove(_local3).setDirect(0);
};
};
};
}
public function bornenemy(_arg1:MovieClip){
var _local2:*;
if (world.player_layer.numChildren < 1){
if (_arg1.bornningtime > 0){
_arg1.bornningtime--;
} else {
_arg1 = API.createMovieFromBase(world, css["enemy99"], {x:320, y:480});
_local2 = new enemy_gage();
_arg1.bornningtime = _arg1.timeborn;
_arg1.die = null;
_arg1.addChild(_local2);
_local2.x = 0;
_local2.y = 30;
_local2.scaleX = 0.5;
_local2.scaleY = 0.5;
_arg1.gage = _local2;
_arg1.resting = _arg1.restingtime;
};
};
}
public function initGoldPoint(_arg1:MovieClip, _arg2:Object){
_arg1.x = -1000;
_arg1.y = -1000;
API.setShooterType(_arg1);
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function destroy(_arg1:MovieClip, _arg2=null){
_arg1.gotoAndPlay("die");
}
public function createObjectRandom(_arg1:MovieClip, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = (_arg2[1] + (int(_arg2[3]) + int((Math.random() * _arg2[2]))));
_local4 = API.createMovieFromBase(world, css[_local3], {x:_arg1.x, y:_arg1.y});
_local5 = new enemy_gage();
_local4.addChild(_local5);
_local5.x = 0;
_local5.y = 30;
_local5.scaleX = 0.5;
_local5.scaleY = 0.5;
_local4.gage = _local5;
trace(_local4.name);
if (_local4.layer == "gold_layer"){
_local4.gage.visible = false;
};
}
}
}//package
Section 58
//gfx (gfx)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx extends MovieClip {
public function gfx(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 59
//gfx2 (gfx2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx2 extends MovieClip {
public function gfx2(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 60
//gfx3 (gfx3)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx3 extends MovieClip {
public var hit:MovieClip;
public function gfx3(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 61
//gfxbazooka (gfxbazooka)
package {
import flash.display.*;
public dynamic class gfxbazooka extends MovieClip {
public function gfxbazooka(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 62
//gfxe0 (gfxe0)
package {
import flash.display.*;
public dynamic class gfxe0 extends MovieClip {
public function gfxe0(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 63
//gfxe1 (gfxe1)
package {
import flash.display.*;
public dynamic class gfxe1 extends MovieClip {
public function gfxe1(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 64
//gfxe2 (gfxe2)
package {
import flash.display.*;
public dynamic class gfxe2 extends MovieClip {
public function gfxe2(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 65
//gfxe3 (gfxe3)
package {
import flash.display.*;
public dynamic class gfxe3 extends MovieClip {
public function gfxe3(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 66
//gfxhexplode (gfxhexplode)
package {
import flash.display.*;
public dynamic class gfxhexplode extends MovieClip {
public function gfxhexplode(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 67
//gfxhit1 (gfxhit1)
package {
import flash.display.*;
public dynamic class gfxhit1 extends MovieClip {
public function gfxhit1(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 68
//gfxhit2 (gfxhit2)
package {
import flash.display.*;
public dynamic class gfxhit2 extends MovieClip {
public function gfxhit2(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 69
//harvester (harvester)
package {
import flash.display.*;
import flash.text.*;
public dynamic class harvester extends MovieClip {
public var nametext:TextField;
public var hit:unmean2;
public function harvester(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 70
//harvester0 (harvester0)
package {
import flash.display.*;
public dynamic class harvester0 extends MovieClip {
public var hit:MovieClip;
public function harvester0(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 71
//harvester1 (harvester1)
package {
import flash.display.*;
public dynamic class harvester1 extends MovieClip {
public var hit:MovieClip;
public function harvester1(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 72
//harvester2 (harvester2)
package {
import flash.display.*;
public dynamic class harvester2 extends MovieClip {
public var hit:MovieClip;
public function harvester2(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 73
//harvester3 (harvester3)
package {
import flash.display.*;
public dynamic class harvester3 extends MovieClip {
public var hit:MovieClip;
public function harvester3(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 74
//harvester4 (harvester4)
package {
import flash.display.*;
public dynamic class harvester4 extends MovieClip {
public var hit:MovieClip;
public function harvester4(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 75
//hero_plane (hero_plane)
package {
import flash.display.*;
public dynamic class hero_plane extends MovieClip {
public var hit:MovieClip;
public function hero_plane(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 76
//heroitem (heroitem)
package {
import flash.display.*;
public dynamic class heroitem extends MovieClip {
public function heroitem(){
addFrameScript(3, frame4);
}
function frame4(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 77
//m_hero_bullet1 (m_hero_bullet1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_bullet1 extends MovieClip {
public var hit:MovieClip;
public function m_hero_bullet1(){
addFrameScript(8, frame9, 15, frame16);
}
function frame16(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
stop();
}
}
}//package
Section 78
//m_hero_bullet2 (m_hero_bullet2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_bullet2 extends MovieClip {
public var hit:MovieClip;
public function m_hero_bullet2(){
addFrameScript(8, frame9, 15, frame16);
}
function frame16(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
stop();
}
}
}//package
Section 79
//m_hero_bullet3 (m_hero_bullet3)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_bullet3 extends MovieClip {
public var hit:MovieClip;
public function m_hero_bullet3(){
addFrameScript(8, frame9, 15, frame16);
}
function frame16(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
stop();
}
}
}//package
Section 80
//m_hero_bullet4 (m_hero_bullet4)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_bullet4 extends MovieClip {
public var hit:MovieClip;
public function m_hero_bullet4(){
addFrameScript(8, frame9, 26, frame27);
}
function frame9(){
stop();
}
function frame27(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 81
//mdummymap (mdummymap)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mdummymap extends MovieClip {
public var b0:SimpleButton;
public var b1:SimpleButton;
public var savegage:MovieClip;
public var desc:TextField;
public var desc0:TextField;
public var desc1:TextField;
public var score0:TextField;
public var bsave:SimpleButton;
public var score1:TextField;
public function mdummymap(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 82
//playerharvester (playerharvester)
package {
import flash.display.*;
public dynamic class playerharvester extends MovieClip {
public var hit:MovieClip;
public function playerharvester(){
addFrameScript(25, frame26, 51, frame52, 75, frame76, 86, frame87);
}
function frame76(){
gotoAndPlay("gathering");
}
function frame87(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame26(){
gotoAndPlay("walk_normal");
}
function frame52(){
gotoAndPlay("walk_gathered");
}
}
}//package
Section 83
//rebetium1 (rebetium1)
package {
import flash.display.*;
import flash.text.*;
public dynamic class rebetium1 extends MovieClip {
public var nametext:TextField;
public var hit:unmean2;
public function rebetium1(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 84
//rebetium2 (rebetium2)
package {
import flash.display.*;
public dynamic class rebetium2 extends MovieClip {
public var hit:unmean2;
public function rebetium2(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 85
//sfxbazooka (sfxbazooka)
package {
import flash.media.*;
public dynamic class sfxbazooka extends Sound {
}
}//package
Section 86
//sfxbomb (sfxbomb)
package {
import flash.media.*;
public dynamic class sfxbomb extends Sound {
}
}//package
Section 87
//sfxbuy (sfxbuy)
package {
import flash.media.*;
public dynamic class sfxbuy extends Sound {
}
}//package
Section 88
//sfxenemymining (sfxenemymining)
package {
import flash.media.*;
public dynamic class sfxenemymining extends Sound {
}
}//package
Section 89
//sfxgun (sfxgun)
package {
import flash.media.*;
public dynamic class sfxgun extends Sound {
}
}//package
Section 90
//sfxmachine (sfxmachine)
package {
import flash.media.*;
public dynamic class sfxmachine extends Sound {
}
}//package
Section 91
//sfxmining (sfxmining)
package {
import flash.media.*;
public dynamic class sfxmining extends Sound {
}
}//package
Section 92
//sfxnomoney (sfxnomoney)
package {
import flash.media.*;
public dynamic class sfxnomoney extends Sound {
}
}//package
Section 93
//sfxtesla (sfxtesla)
package {
import flash.media.*;
public dynamic class sfxtesla extends Sound {
}
}//package
Section 94
//speeder (speeder)
package {
import flash.display.*;
import flash.text.*;
public dynamic class speeder extends MovieClip {
public var nametext:TextField;
public var hit:unmean2;
public function speeder(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 95
//speeder0 (speeder0)
package {
import flash.display.*;
public dynamic class speeder0 extends MovieClip {
public var hit:MovieClip;
public function speeder0(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 38, frame39, 49, frame50);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame39(){
gotoAndPlay("gathering");
}
function frame50(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 96
//speeder1 (speeder1)
package {
import flash.display.*;
public dynamic class speeder1 extends MovieClip {
public var hit:MovieClip;
public function speeder1(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 38, frame39, 49, frame50);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame39(){
gotoAndPlay("gathering");
}
function frame50(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 97
//speeder2 (speeder2)
package {
import flash.display.*;
public dynamic class speeder2 extends MovieClip {
public var hit:MovieClip;
public function speeder2(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 38, frame39, 49, frame50);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame39(){
gotoAndPlay("gathering");
}
function frame50(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 98
//tank (tank)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tank extends MovieClip {
public var nametext:TextField;
public var hit:unmean2;
public var gun1:MovieClip;
public function tank(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 99
//tank0 (tank0)
package {
import flash.display.*;
public dynamic class tank0 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function tank0(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 100
//tank1 (tank1)
package {
import flash.display.*;
public dynamic class tank1 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function tank1(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 101
//tank2 (tank2)
package {
import flash.display.*;
public dynamic class tank2 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function tank2(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 102
//tank3 (tank3)
package {
import flash.display.*;
public dynamic class tank3 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function tank3(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 103
//tank4 (tank4)
package {
import flash.display.*;
public dynamic class tank4 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function tank4(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 34, frame35, 45, frame46);
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay("walk_gathered");
}
function frame9(){
gotoAndPlay("walk_normal");
}
function frame35(){
gotoAndPlay("gathering");
}
function frame46(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 104
//tileerror (tileerror)
package {
import flash.display.*;
public dynamic class tileerror extends MovieClip {
}
}//package
Section 105
//tileerrorindex (tileerrorindex)
package {
import flash.display.*;
public dynamic class tileerrorindex extends BitmapData {
public function tileerrorindex(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 106
//unmean (unmean)
package {
import flash.display.*;
public dynamic class unmean extends MovieClip {
}
}//package
Section 107
//unmean2 (unmean2)
package {
import flash.display.*;
public dynamic class unmean2 extends MovieClip {
}
}//package