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 shootEvent:Function;
public var cooldowncount:Number;
public var reloadEvent:Function;
public var fullEvent:Function;
public var workEvent:Function;
public var mag:Number;
public var reloadcount:Number;
public var shootClass:Object;
public var frequency:Number;
public var reload:Number;
public var magcount:Number;
public var cooldown:Number;
public var frequencycount:Number;
public var gageframe:Number;
public var currentmag:Number;
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.currentmag = magcount;
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.bulletlist);
};
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);
if (shootEvent != null){
shootEvent(shootClass.bulletlist);
};
gageframe = int(((magcount / mag) * 100));
magcount--;
if (magcount == 0){
if (reloadEvent != null){
reloadEvent();
};
reloadcount = reload;
};
};
}
}
}//package GREENHERMIT.GHGun
Section 5
//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 6
//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 7
//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 8
//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);
bulletlist = new Array();
bulletlist.push(_local4);
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 9
//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);
bulletlist = new Array();
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local6);
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 10
//ShootBaseMethod (GREENHERMIT.GHShootingStyle.ShootBaseMethod)
package GREENHERMIT.GHShootingStyle {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import flash.geom.*;
public dynamic class ShootBaseMethod {
var bulletlist:Array;
public var shooter:Object;
public var game:Object;
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 11
//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);
};
bulletlist = new Array();
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local6);
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 12
//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);
bulletlist = new Array();
_local6 = 0;
while (_local6 < info.way) {
_local7 = API.createMovieFromBase(_local3.parent.objectin, bullet);
bulletlist.push(_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 13
//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);
bulletlist = new Array();
_local4 = 0;
while (_local4 < info.way) {
_local5 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local5);
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 14
//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);
bulletlist = new Array();
_local4 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local4);
_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 15
//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 16
//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 releaseFocus(){
try {
stage.focus = keyfocus;
} catch(e) {
};
}
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 17
//API (GREENHERMIT.GHUtils.API)
package GREENHERMIT.GHUtils {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHShootingStyle.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHTemplate.*;
import GREENHERMIT.GHDurationControl.*;
import flash.utils.*;
public class API {
private static var createcount:Number = 0;
private static var camspeed:Number = 40;
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){
return (0);
};
_arg1.motclass.setSpeed(_arg2);
}
public static function smoothCamY(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = (_arg1.y - _arg1.smoothy);
_local3 = int((Math.abs((_arg1.y - _arg1.smoothy)) / 3));
if (_local3 > camspeed){
_local3 = camspeed;
};
if (_local2 < 0){
_arg1.y = (_arg1.y + _local3);
} else {
if (_local2 > 0){
_arg1.y = (_arg1.y - _local3);
};
};
}
public static function updateWorld(_arg1:Object, _arg2:Object){
_arg1.x = -(_arg2.x);
_arg1.y = -(_arg2.y);
}
public static function getDuration(_arg1:MovieClip){
return (_arg1.durationclass);
}
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 backup:*;
var field:*;
var worldobj = _arg1;
var base = _arg2;
var addition = _arg3;
var name = _arg4;
world = MovieClip(worldobj);
imgclass = null;
newclip = null;
backup = new Object();
if (base.editfrom != null){
for (field in base) {
backup[field] = base[field];
};
base = TemplateBaseClass(world.parent).css[base.editfrom];
};
if (backup.linkage != null){
try {
newclip = new (getClass(backup.linkage));
} catch(e) {
try {
newclip = new (getClass("cerror"));
} catch(e) {
return (base);
};
};
} else {
try {
newclip = new (getClass(base.linkage));
} catch(e) {
try {
newclip = new (getClass("cerror"));
} catch(e) {
return (base);
};
};
};
for (field in base) {
newclip[field] = base[field];
};
if (backup != null){
for (field in backup) {
newclip[field] = backup[field];
};
};
if (addition != null){
for (field in addition) {
newclip[field] = addition[field];
};
};
if (name == null){
createcount++;
newclip.name = (((((((base.layer + "/") + "[css:") + newclip.__ghbasename) + "]/") + newclip) + ".") + createcount);
} else {
newclip.name = name;
};
if (newclip.createMovieFinish != null){
newclip.createMovieFinish(newclip, base);
};
newclip.objectin = world;
world[base.layer].addChild(newclip);
return (newclip);
}
public static function getSpeed(_arg1:MovieClip):Number{
if (_arg1.motclass == null){
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 removeMotion(_arg1:MovieClip){
_arg1.motclass = null;
}
public static function resumeTime(_arg1:MovieClip){
if (_arg1.durationclass != null){
_arg1.durationclass.resume();
};
}
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 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 smoothCamX(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = (_arg1.x - _arg1.smoothx);
_local3 = int((Math.abs((_arg1.x - _arg1.smoothx)) / 3));
if (_local3 > camspeed){
_local3 = camspeed;
};
if (_local2 < 0){
_arg1.x = (_arg1.x + _local3);
} else {
if (_local2 > 0){
_arg1.x = (_arg1.x - _local3);
};
};
}
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 setCamSpeed(_arg1:Number){
camspeed = _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){
return;
};
_arg5.game = MovieClip(_arg1);
_arg5.world = MovieClip(_arg2);
_arg5.shooter = _arg3;
_arg4.shootClass = _arg5;
_arg3.gunclasslist.push(_arg4);
}
}
}//package GREENHERMIT.GHUtils
Section 18
//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) {
};
}
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:*;
var _local5:*;
_local2 = new Array();
for (_local3 in _arg1) {
_local4 = String(_local3).substr(0, 5);
if (_local4 == "frame"){
_local5 = String(_local3).substr(5, 500);
_local2[Number(_local5)] = _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 19
//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 20
//MapHelper (GREENHERMIT.GHUtils.MapHelper)
package GREENHERMIT.GHUtils {
import flash.display.*;
public class MapHelper {
public static var view:BitmapData;
public static var width:Number;
public static var where:MovieClip;
public static var scale:Number;
public static var index:BitmapData;
public static var tileset:Class;
public static var height:Number;
public static var dat:BitmapData;
public static var maptable:Array;
public static function DrawSectionMap(_arg1:Object, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local3 = int((_arg2.width / scale));
_local4 = int((_arg2.height / scale));
_local5 = int((_arg1.x / scale));
_local6 = int((_arg1.y / scale));
_local7 = (_local6 - 3);
while (_local7 < ((_local6 + _local4) + 3)) {
_local8 = (_local5 - 3);
while (_local8 < ((_local5 + _local3) + 3)) {
_local9 = 0xFF00;
_local10 = ((("block" + _local8) + "_") + _local7);
if (_local7 >= 0){
if (where.getChildByName(_local10) == null){
_local11 = new tileset();
_local11.x = (scale * _local8);
_local11.y = (scale * _local7);
if (_local11.width != scale){
_local11.width = scale;
_local11.height = scale;
};
_local11.name = _local10;
if (_local7 == 0){
_local11.gotoAndStop(2);
} else {
_local11.gotoAndStop(1);
};
where.addChild(_local11);
};
};
_local8++;
};
_local7++;
};
_local8 = (where.numChildren - 1);
while (_local8 >= 0) {
_local11 = where.getChildAt(_local8);
if ((((((((_local11.x < ((_local5 - 3) * scale))) || ((_local11.x > (((_local5 + _local3) + 3) * scale))))) || ((_local11.y < ((_local6 - 3) * scale))))) || ((_local11.y > (((_local6 + _local4) + 3) * scale))))){
delete ??getglobalscope
[where.removeChildAt(_local8)];
};
_local8--;
};
}
public static function getStatus(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number=40):Number{
return (_arg1.getPixel(int((_arg2 / _arg4)), int((_arg3 / _arg4))));
}
public static function getMapdata():BitmapData{
return (dat);
}
public static function CreateSectionMap(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=40){
var i:*;
var iwhere = _arg1;
var dats = _arg2;
var views = _arg3;
var indexs = _arg4;
var tilesets = _arg5;
var iscale = _arg6;
try {
dat = new API.getClass(dats)(0, 0);
view = new API.getClass(views)(0, 0);
index = new API.getClass(indexs)(0, 0);
tileset = API.getClass(tilesets);
} catch(e) {
trace("map error");
dat = new API.getClass("daterror")(0, 0);
view = new API.getClass("daterror")(0, 0);
index = new API.getClass("tileerrorindex")(0, 0);
tileset = API.getClass("tileerror");
};
where = iwhere;
scale = iscale;
width = (dat.width * scale);
height = (dat.height * scale);
maptable = new Array();
i = 0;
while (i < index.width) {
if (index.getPixel(i, 0) != 0){
maptable[index.getPixel(i, 0)] = (i + 1);
};
i = (i + 1);
};
}
public static function CreateFullMap(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=40){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
dat = new API.getClass(_arg2)(0, 0);
view = new API.getClass(_arg3)(0, 0);
index = new API.getClass(_arg4)(0, 0);
tileset = API.getClass(_arg5);
where = _arg1;
scale = _arg6;
width = (dat.width * scale);
height = (dat.height * scale);
maptable = new Array();
_local7 = 0;
while (_local7 < index.width) {
if (index.getPixel(_local7, 0) != 0){
maptable[index.getPixel(_local7, 0)] = (_local7 + 1);
};
_local7++;
};
_local8 = 0;
while (_local8 < view.height) {
_local7 = 0;
while (_local7 < view.width) {
_local9 = view.getPixel(_local7, _local8);
if (maptable[_local9] != null){
_local10 = new tileset();
_local10.x = (scale * _local7);
_local10.y = (scale * _local8);
_local10.gotoAndStop(maptable[_local9]);
where.addChild(_local10);
};
_local7++;
};
_local8++;
};
}
}
}//package GREENHERMIT.GHUtils
Section 21
//bar_root_18 (mominer_521207_newpb_fla.bar_root_18)
package mominer_521207_newpb_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package mominer_521207_newpb_fla
Section 22
//BG_2 (mominer_521207_newpb_fla.BG_2)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 23
//LOGOEND_43 (mominer_521207_newpb_fla.LOGOEND_43)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 24
//LOGOPRELOAD_0_23 (mominer_521207_newpb_fla.LOGOPRELOAD_0_23)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 25
//LOGOPRELOAD_1_27 (mominer_521207_newpb_fla.LOGOPRELOAD_1_27)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 26
//LOGOPRELOAD_2_30 (mominer_521207_newpb_fla.LOGOPRELOAD_2_30)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 27
//LOGOPRELOAD_3_32 (mominer_521207_newpb_fla.LOGOPRELOAD_3_32)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 28
//LOGOPRELOAD_4_34 (mominer_521207_newpb_fla.LOGOPRELOAD_4_34)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 29
//LOGOPRELOAD_5_36 (mominer_521207_newpb_fla.LOGOPRELOAD_5_36)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 30
//LOGOPRELOAD_6_38 (mominer_521207_newpb_fla.LOGOPRELOAD_6_38)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 31
//LOGOPRELOAD_7_40 (mominer_521207_newpb_fla.LOGOPRELOAD_7_40)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 32
//m_end_119 (mominer_521207_newpb_fla.m_end_119)
package mominer_521207_newpb_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 m_end_119 extends MovieClip {
public function m_end_119(){
addFrameScript(0, frame1, 139, frame140);
}
function frame1(){
stop();
}
function frame140(){
var _local2 = MovieClip(this.parent).game;
with (_local2) {
if (world != null){
removeChild(world);
world = null;
};
};
MovieClip(this.parent).game.freeSystemListener();
this.parent.removeEventListener(MouseEvent.MOUSE_DOWN, MovieClip(this.parent).game.mouseDown);
this.visible = false;
MovieClip(this.parent).gotoAndStop(1, "submit");
trace(" ______ Finish");
}
}
}//package mominer_521207_newpb_fla
Section 33
//m_mo_58 (mominer_521207_newpb_fla.m_mo_58)
package mominer_521207_newpb_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 m_mo_58 extends MovieClip {
public var des:TextField;
public function m_mo_58(){
addFrameScript(0, frame1, 53, frame54);
}
function frame1(){
stop();
}
function frame54(){
trace(MovieClip(this.parent));
trace(MovieClip(this.parent.parent));
trace(MovieClip(this.parent.parent.parent.parent));
MovieClip(this.parent.parent.parent.parent).startDrill();
}
}
}//package mominer_521207_newpb_fla
Section 34
//m_not_reach_127 (mominer_521207_newpb_fla.m_not_reach_127)
package mominer_521207_newpb_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 m_not_reach_127 extends MovieClip {
public function m_not_reach_127(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
var _local2 = MovieClip(this.parent).game;
with (_local2) {
if (world != null){
removeChild(world);
world = null;
};
};
MovieClip(this.parent).game.freeSystemListener();
this.parent.removeEventListener(MouseEvent.MOUSE_DOWN, MovieClip(this.parent).game.mouseDown);
this.visible = false;
MovieClip(this.parent).gotoAndStop(1, "submit");
trace(" not Finish xxx x x x ");
}
function frame1(){
stop();
}
}
}//package mominer_521207_newpb_fla
Section 35
//m_pause_149 (mominer_521207_newpb_fla.m_pause_149)
package mominer_521207_newpb_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 m_pause_149 extends MovieClip {
public var pg;
public var b_con:SimpleButton;
public function m_pause_149(){
addFrameScript(0, frame1);
}
function frame1(){
pg = this;
b_con.addEventListener("click", playGame);
}
public function playGame(_arg1){
MovieClip(this.parent).game.gamepause = false;
pg.visible = false;
}
}
}//package mominer_521207_newpb_fla
Section 36
//m_reach_125 (mominer_521207_newpb_fla.m_reach_125)
package mominer_521207_newpb_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 m_reach_125 extends MovieClip {
public function m_reach_125(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
var _local2 = MovieClip(this.parent).game;
with (_local2) {
if (world != null){
removeChild(world);
world = null;
};
};
MovieClip(this.parent).game.freeSystemListener();
this.parent.removeEventListener(MouseEvent.MOUSE_DOWN, MovieClip(this.parent).game.mouseDown);
this.visible = false;
MovieClip(this.parent).mend.visible = true;
MovieClip(this.parent).mend.gotoAndPlay(2);
trace("Congratulation");
}
function frame1(){
stop();
}
}
}//package mominer_521207_newpb_fla
Section 37
//m_reachcopy_126 (mominer_521207_newpb_fla.m_reachcopy_126)
package mominer_521207_newpb_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 m_reachcopy_126 extends MovieClip {
public var fake;
public function m_reachcopy_126(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
fake = this;
fake.x = 0;
fake.y = 0;
fake.visible = false;
}
}
}//package mominer_521207_newpb_fla
Section 38
//m_shop_128 (mominer_521207_newpb_fla.m_shop_128)
package mominer_521207_newpb_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 m_shop_128 extends MovieClip {
public var b1:SimpleButton;
public var b2:SimpleButton;
public var b4:SimpleButton;
public var b5:SimpleButton;
public var b3:SimpleButton;
public var b6:SimpleButton;
public var s4:SimpleButton;
public var s1:SimpleButton;
public var s2:SimpleButton;
public var s3:SimpleButton;
public var s5:SimpleButton;
public var c1:SimpleButton;
public var c3:SimpleButton;
public var c4:SimpleButton;
public var c5:SimpleButton;
public var c2:SimpleButton;
public var b_ach2:SimpleButton;
public var t2:SimpleButton;
public var t3:SimpleButton;
public var t5:SimpleButton;
public var t7:SimpleButton;
public var t1:SimpleButton;
public var t9:SimpleButton;
public var d4:SimpleButton;
public var d6:SimpleButton;
public var b_ach3:SimpleButton;
public var d5:SimpleButton;
public var d8:SimpleButton;
public var d2:SimpleButton;
public var goldrep:TextField;
public var dia_scan:MovieClip;
public var d7:SimpleButton;
public var t8:SimpleButton;
public var d3:SimpleButton;
public var sn;
public var t4:SimpleButton;
public var bn;
public var t6:SimpleButton;
public var so;
public var d9:SimpleButton;
public var d1:SimpleButton;
public var i;
public var dia_control:MovieClip;
public var g2:SimpleButton;
public var g3:SimpleButton;
public var g4:SimpleButton;
public var g1:SimpleButton;
public var idn;
public var roundrep:TextField;
public var dia_booster:MovieClip;
public var b_ok:SimpleButton;
public var dia_drill:MovieClip;
public var shop;
public var dia_gun:MovieClip;
public var okclick;
public var dia_oil:MovieClip;
public var dia_tower:MovieClip;
public var o1:SimpleButton;
public var o3:SimpleButton;
public var o5:SimpleButton;
public var o6:SimpleButton;
public var o7:SimpleButton;
public var o8:SimpleButton;
public var o9:SimpleButton;
public var o4:SimpleButton;
public var shopLogoach2;
public var g_root;
public var o2:SimpleButton;
public var shopLogo;
public var game;
public function m_shop_128(){
addFrameScript(0, frame1);
}
public function controlClick(_arg1){
var _local2:*;
var _local3:*;
_local2 = String(_arg1.target.name).substr(1);
game.controlid = _local2;
game.money = (game.money - game.controlM[game.controlid]);
_local3 = SharedObject.getLocal("MO");
_local3.data["controlid"] = _local2;
_local3.flush();
_local3.close();
trace(((("controlClick" + _arg1.target.name) + " , ") + _local2));
}
public function gunClick(_arg1){
var _local2:*;
var _local3:*;
_local2 = String(_arg1.target.name).substr(1);
game.gunid = _local2;
game.money = (game.money - game.gunM[game.gunid]);
_local3 = SharedObject.getLocal("MO");
_local3.data["gunid"] = _local2;
_local3.flush();
_local3.close();
trace(((("gunClick" + _arg1.target.name) + " , ") + _local2));
}
public function towermove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_tower.visible = true;
dia_tower.gotoAndStop(_local2);
}
public function scannerClick(_arg1){
var _local2:*;
var _local3:*;
_local2 = String(_arg1.target.name).substr(1);
game.scanner = true;
game.scanid = _local2;
game.money = (game.money - game.scanM[game.scanid]);
_local3 = SharedObject.getLocal("MO");
_local3.data["scanid"] = _local2;
_local3.data["scanner"] = true;
_local3.flush();
_local3.close();
trace(((("scannerClick " + _arg1.target.name) + " , ") + _local2));
}
function frame1(){
shop = this;
game = MovieClip(this.parent).game;
g_root = MovieClip(this.parent);
dia_close();
game.gamepause = true;
shopLogo = function (){
shop.parent.getURL("http://www.mofunzone.com/", "_blank");
};
b_ach3.addEventListener("click", shopLogo);
shopLogoach2 = function (){
shop.parent.getURL("http://www.mofunzone.com/online_games/mominer.shtml", "_blank");
};
b_ach2.addEventListener("click", shopLogoach2);
so = SharedObject.getLocal("MO");
if (so.data != null){
game.roundplay = so.data["so_roundplay"];
game.money = so.data["so_money"];
};
so.close();
roundrep.text = game.roundplay;
bn = "b,c,s,o,g,d,t";
sn = "boosterM,controlM,scanM,oilM,gunM,drillM,towerM";
idn = "boosterid,controlid,scanid,oilid,gunid,drillid,towerid";
shop.addEventListener(Event.ENTER_FRAME, loop);
i = 1;
while (i < 10) {
shop[("t" + i)].addEventListener("click", towerClick);
shop[("t" + i)].addEventListener(MouseEvent.MOUSE_MOVE, towermove);
shop[("d" + i)].addEventListener("click", drillClick);
shop[("d" + i)].addEventListener(MouseEvent.MOUSE_MOVE, drillmove);
shop[("o" + i)].addEventListener("click", oilClick);
shop[("o" + i)].addEventListener(MouseEvent.MOUSE_MOVE, oilmove);
i++;
};
i = 1;
while (i < 6) {
shop[("c" + i)].addEventListener("click", controlClick);
shop[("c" + i)].addEventListener(MouseEvent.MOUSE_MOVE, controlmove);
shop[("s" + i)].addEventListener("click", scannerClick);
shop[("s" + i)].addEventListener(MouseEvent.MOUSE_MOVE, scanmove);
i++;
};
i = 1;
while (i < 7) {
shop[("b" + i)].addEventListener("click", boosterClick);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_MOVE, boostermove);
i++;
};
i = 1;
while (i < 5) {
shop[("g" + i)].addEventListener("click", gunClick);
shop[("g" + i)].addEventListener(MouseEvent.MOUSE_MOVE, gunmove);
i++;
};
okclick = function (){
trace("click");
shop.visible = false;
game.levelUp();
game.gamepause = false;
shop.removeEventListener(Event.ENTER_FRAME, loop);
};
b_ok.addEventListener("click", okclick);
}
public function dia_close(){
dia_tower.visible = false;
dia_drill.visible = false;
dia_oil.visible = false;
dia_control.visible = false;
dia_scan.visible = false;
dia_booster.visible = false;
dia_gun.visible = false;
}
public function controlmove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_control.visible = true;
dia_control.gotoAndStop(_local2);
}
public function drillmove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_drill.visible = true;
dia_drill.gotoAndStop(_local2);
}
public function oilmove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_oil.visible = true;
dia_oil.gotoAndStop(_local2);
}
public function loop(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = bn.split(",");
_local3 = sn.split(",");
_local4 = idn.split(",");
_local5 = SharedObject.getLocal("MO");
if (_local5.data["so_roundplay"] >= 2){
b_ach2.x = -87;
b_ach2.y = 284.8;
} else {
b_ach2.x = 500;
b_ach2.y = 284.8;
};
if (_local5.data["so_roundplay"] >= 4){
b_ach3.x = -3;
b_ach3.y = 215;
} else {
b_ach3.x = 1000;
b_ach3.y = 215;
};
_local6 = 0;
while (_local6 < _local2.length) {
_local7 = 1;
while (_local7 < 10) {
if (((!((shop[(_local2[_local6] + _local7)] == null))) && (!((game[_local3[_local6]][_local7] == null))))){
if (_local5.data[_local4[_local6]] == null){
_local5.data[_local4[_local6]] = game[_local4[_local6]];
};
if ((((game.money < game[_local3[_local6]][_local7])) || ((_local7 <= _local5.data[_local4[_local6]])))){
game[_local4[_local6]] = _local5.data[_local4[_local6]];
shop[(_local2[_local6] + _local7)].alpha = 0.2;
shop[(_local2[_local6] + _local7)].mouseEnabled = false;
} else {
shop[(_local2[_local6] + _local7)].alpha = 1;
shop[(_local2[_local6] + _local7)].mouseEnabled = true;
};
};
_local7++;
};
_local6++;
};
_local5.flush();
_local5.close();
goldrep.text = game.money;
}
public function oilClick(_arg1){
var sindex:*;
var so:*;
var e = _arg1;
sindex = String(e.target.name).substr(1);
game.oilid = sindex;
game.money = (game.money - game.oilM[game.oilid]);
so = SharedObject.getLocal("MO");
so.data["oilid"] = sindex;
so.flush();
so.close();
if (game.oilid == 9){
trace("crude_for_the_win");
try {
} catch(e) {
};
};
trace(((("oilClick" + e.target.name) + " , ") + sindex));
}
public function gunmove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_gun.visible = true;
dia_gun.gotoAndStop(_local2);
}
public function boostermove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_booster.visible = true;
dia_booster.gotoAndStop(_local2);
}
public function scanmove(_arg1){
var _local2:*;
dia_close();
_local2 = String(_arg1.target.name).substr(1);
dia_scan.visible = true;
dia_scan.gotoAndStop(_local2);
}
public function boosterClick(_arg1){
var sindex:*;
var so:*;
var e = _arg1;
sindex = String(e.target.name).substr(1);
game.boosterid = sindex;
game.money = (game.money - game.boosterM[game.boosterid]);
so = SharedObject.getLocal("MO");
so.data["boosterid"] = sindex;
so.flush();
so.close();
if (game.boosterid == 6){
trace("fast_and_furious");
try {
} catch(e) {
};
};
trace(((("boosterClick" + e.target.name) + " , ") + sindex));
}
public function drillClick(_arg1){
var sindex:*;
var so:*;
var e = _arg1;
sindex = String(e.target.name).substr(1);
game.drillid = sindex;
game.money = (game.money - game.drillM[game.drillid]);
trace(game.drillid);
trace(game.drillM[5]);
trace(game.drillM[game.drillid]);
so = SharedObject.getLocal("MO");
so.data["drillid"] = sindex;
so.flush();
so.close();
if (game.drillid == 9){
trace("eco_engine");
try {
} catch(e) {
};
};
trace(((("drillClick" + e.target.name) + " , ") + sindex));
}
public function towerClick(_arg1){
var sindex:*;
var so:*;
var e = _arg1;
sindex = String(e.target.name).substr(1);
game.towerid = sindex;
game.money = (game.money - game.towerM[game.towerid]);
so = SharedObject.getLocal("MO");
so.data["towerid"] = sindex;
so.flush();
so.close();
if (game.towerid == 9){
trace("the_highest_tower");
try {
} catch(e) {
};
};
trace(((("towerClick" + e.target.name) + " , ") + sindex));
}
}
}//package mominer_521207_newpb_fla
Section 39
//MainTimeline (mominer_521207_newpb_fla.MainTimeline)
package mominer_521207_newpb_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 b_mfz2:SimpleButton;
public var b_mfz3:SimpleButton;
public var submit;
public var urlCSS;
public var deeprep:TextField;
public var submitClick;
public var achieve;
public var b_highscores:SimpleButton;
public var i;
public var bmoregames:SimpleButton;
public var bplayagain:SimpleButton;
public var score;
public var b_mfz:SimpleButton;
public var hightScore;
public var b_moregame1:SimpleButton;
public var b_next:SimpleButton;
public var scorerep:TextField;
public var now;
public var gamelevel;
public var playMoreGameTitle;
public var mshop:MovieClip;
public var EPOCH_TIME;
public var playername:TextField;
public var bsubmit:SimpleButton;
public var bcontinue:SimpleButton;
public var mreach:MovieClip;
public var b_ach:SimpleButton;
public var b_preload:SimpleButton;
public var m_reach2:MovieClip;
public var b_preloadRelease;
public var allcssfile;
public var bstart:SimpleButton;
public var mend:MovieClip;
public var clickLogo;
public var designCSS;
public var tot;
public var b_nextPress;
public var completecount;
public var bplayagain_click;
public var mpause:MovieClip;
public var csstext;
public var m_die:MovieClip;
public var ldrCSS;
public var loadCSSComplete;
public var g_root;
public var bstart_click;
public var cssstring;
public var moneyrep:TextField;
public var finishscore:TextField;
public var fuelgage:MovieClip;
public var game:gameinline;
public var outcss;
public var ldr:URLLoader;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 11, frame12, 16, frame17, 92, frame93, 93, frame94, 113, frame114, 133, frame134, 153, frame154, 154, frame155);
}
function frame155(){
SoundMixer.stopAll();
Mouse.show();
submit = this;
g_root.con = false;
deeprep.text = g_root.findeep;
finishscore.text = g_root.finscore;
submit.addEventListener(Event.ENTER_FRAME, relesefocus2);
stage.focus = playername;
bplayagain_click = function (){
submit.removeEventListener(Event.ENTER_FRAME, submitLoop);
bplayagain.removeEventListener("click", bplayagain_click);
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop(1, "game");
g_root.con = true;
};
bplayagain.addEventListener("click", bplayagain_click);
submitClick = function (_arg1):void{
submit.removeEventListener(Event.ENTER_FRAME, submitLoop);
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");
submit.removeEventListener(Event.ENTER_FRAME, submitLoop);
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop(1, "title");
};
bmoregames.addEventListener("click", playMoreGameSub);
clickLogo = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/mominer.shtml", "_blank");
};
b_mfz3.addEventListener("click", clickLogo);
submit.addEventListener(Event.ENTER_FRAME, submitLoop);
stop();
}
function frame154(){
SoundMixer.stopAll();
if (game != null){
game.visible = true;
};
if (mshop != null){
mshop.visible = true;
};
if (mpause != null){
mpause.visible = false;
};
if (mreach != null){
mreach.visible = false;
};
if (mend != null){
mend.visible = false;
};
if (m_die != null){
m_die.visible = false;
};
if (m_reach2 != null){
m_reach2.visible = false;
};
trace(("mreach " + mreach));
trace(("mend " + mend));
trace(("m_die " + m_die));
trace(("m_reach2 " + m_reach2));
stop();
}
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) {
trace("404 not page");
};
}
function frame12(){
}
function frame2(){
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 = "";
designCSS.parseCSS(csstext);
};
}
function frame3(){
now = new Date();
EPOCH_TIME = now.getTime();
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
public function ioErrorHandler(_arg1){
trace("404 not page");
}
function frame1(){
}
function frame17(){
gotoAndPlay("go");
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.addEventListener(SecurityErrorEvent.SECURITY_ERROR, ioErrorHandler);
_local3.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_local3.load(_local2);
}
public function submitLoop(_arg1){
var _local2:*;
_local2 = SharedObject.getLocal("MO");
if (_local2.data["so_roundplay"] >= 6){
bplayagain.y = 0x0200;
bmoregames.y = 420;
};
}
public function titleLoop(_arg1){
var _local2:*;
_local2 = SharedObject.getLocal("MO");
if (_local2.data["so_roundplay"] >= 1){
b_ach.x = 240;
b_ach.y = 337.9;
} else {
b_ach.x = 1000;
b_ach.y = 0;
};
}
function frame93(){
SoundMixer.stopAll();
Mouse.show();
g_root = this;
score = 0;
gamelevel = 0;
g_root.con = false;
SoundMixer.stopAll();
bstart_click = function (){
var _local1:*;
_local1 = SharedObject.getLocal("MO");
_local1.clear();
_local1.data["so_roundplay"] = 0;
_local1.data["so_money"] = 0;
_local1.close();
g_root.gotoAndStop(1, "tutorial");
g_root.removeEventListener(Event.ENTER_FRAME, titleLoop);
};
bstart.addEventListener("click", bstart_click);
playMoreGameTitle = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregame1.addEventListener("click", playMoreGameTitle);
b_mfz.addEventListener("click", playMoreGameTitle);
b_mfz2.addEventListener("click", playMoreGameTitle);
hightScore = function (){
};
b_highscores.addEventListener("click", hightScore);
achieve = function (){
trace("click achievement");
getURL("http://www.mofunzone.com/online_games/mominer.shtml", "_blank");
};
b_ach.addEventListener("click", achieve);
g_root.addEventListener(Event.ENTER_FRAME, titleLoop);
stop();
}
function frame94(){
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);
}
public function relesefocus(_arg1){
stage.focus = tot;
}
function frame114(){
stop();
}
public function onKeySkip(_arg1){
if (_arg1.keyCode == 75){
tot.gotoAndPlay("skip");
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
};
}
function frame134(){
Mouse.show();
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
}
}
}//package mominer_521207_newpb_fla
Section 40
//THEPRELOADER_1 (mominer_521207_newpb_fla.THEPRELOADER_1)
package mominer_521207_newpb_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 mominer_521207_newpb_fla
Section 41
//bgm1 (bgm1)
package {
import flash.media.*;
public dynamic class bgm1 extends Sound {
}
}//package
Section 42
//bgm2 (bgm2)
package {
import flash.media.*;
public dynamic class bgm2 extends Sound {
}
}//package
Section 43
//bullet_Lv1 (bullet_Lv1)
package {
import flash.display.*;
public dynamic class bullet_Lv1 extends MovieClip {
public function bullet_Lv1(){
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 44
//bullet_Lv2 (bullet_Lv2)
package {
import flash.display.*;
public dynamic class bullet_Lv2 extends MovieClip {
public function bullet_Lv2(){
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 45
//bullet_Lv3 (bullet_Lv3)
package {
import flash.display.*;
public dynamic class bullet_Lv3 extends MovieClip {
public function bullet_Lv3(){
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 46
//bullet_Lv4 (bullet_Lv4)
package {
import flash.display.*;
public dynamic class bullet_Lv4 extends MovieClip {
public function bullet_Lv4(){
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 47
//cerror (cerror)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class cerror extends MovieClip {
public var gun1:hittemp;
public var gun5:hittemp;
public var gun3:hittemp;
public var gun4:hittemp;
public var nametext:TextField;
public var hit:hittemp;
public var gun2:hittemp;
public function cerror(){
addFrameScript(15, frame16, 17, frame18);
}
function frame18(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame16(){
gotoAndPlay(1);
}
}
}//package
Section 48
//daterror (daterror)
package {
import flash.display.*;
public dynamic class daterror extends BitmapData {
public function daterror(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 49
//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 boosterpic;
public var s_oil;
public var pass;
public var speed;
public var gunpic;
public var scanid;
public var i;
public var k;
public var l;
public var backupspacex;
public var dY;
public var o;
public var bcooldownmax;
public var backupspacey;
public var deepfinish;
public var dig;
public var acc;
public var bulletspeed;
public var diecount;
public var drillfuel;
public var gunang;
public var boosterid;
public var talk;
public var hitstone;
public var boostdura;
public var money;
public var fg;
public var oilM;
public var bootster;
public var bgm;
public var scandeep;
public var bgm_end;
public var deep;
public var fgcount;
public var allxmltag;
public var s_ore;
public var upall;
public var bulletpic;
public var control;
public var scanM;
public var s_stone;
public var s_drill;
public var fuel;
public var g_root;
public var roundplay;
public var bcooldown;
public var ang;
public var modter;
public var ttc;
public var towerid;
public var achgold;
public var towerpic;
public var scanpic;
public var oilfider;
public var s_ribertium;
public var stonedie;
public var scanner;
public var dashdirect;
public var deeplevel;
public var str;
public var movang;
public var canshoot;
public var createObj;
public var so;
public var gunid;
public var towerM;
public var oilid;
public var tc;
public var ach_finish;
public var objcount;
public var oilcount;
public var controlM;
public var score;
public var thisitem;
public var drillid;
public var boosterM;
public var playergun;
public var gamelevel;
public var levelObj;
public var superclass:KeyframeTemplate;
public var player;
public var gamexml:XML;
public var camlook;
public var oreMoney;
public var shake;
public var tower;
public var finishgame;
public var gunM;
public var gunp;
public var controlid;
public var drillpic;
public var drillM;
public var startgame;
public var bcooldowncount;
public var s_gun;
public var vfx_drillX;
public var vfx_drillY;
public var consspeed;
public var gundura;
public var backspeed;
public var framecount;
public var guncount;
public var fuelmax;
public var boosteruse;
public function gameinline(){
addFrameScript(0, frame1);
}
function frame1(){
superclass = this;
createGameStage();
createObj = new Array();
createObj[0] = stone1;
createObj[1] = stone2;
createObj[2] = stone3;
createObj[3] = stone4;
createObj[4] = ore1;
createObj[5] = ore2;
createObj[6] = ore3;
createObj[7] = ore4;
createObj[8] = ore5;
createObj[9] = oil;
createObj[10] = ribertium;
levelObj = new Array();
levelObj[0] = new Array();
levelObj[1] = new Array();
levelObj[2] = new Array();
levelObj[3] = new Array();
levelObj[4] = new Array();
levelObj[5] = new Array();
levelObj[6] = new Array();
levelObj[7] = new Array();
levelObj[8] = new Array();
levelObj[9] = new Array();
levelObj[10] = new Array();
oreMoney = new Array();
consspeed = new Array();
drillfuel = new Array();
control = new Array();
oilfider = new Array();
scandeep = new Array();
boostdura = new Array();
gundura = new Array();
bulletspeed = new Array();
towerM = new Array();
boosterM = new Array();
controlM = new Array();
scanM = new Array();
oilM = new Array();
gunM = new Array();
drillM = new Array();
deepfinish = new Array();
gamexml = <gamebalance>
<oreMoney data="0,120,80,60,240,480"/>
<consspeed data="0,10,13,16,19,22,25,28,31,34"/>
<drillfuel data="0,9,8,7,6,5,4,3,2,1"/>
<control data="1,2,3,4,5,6,7,8,9,10"/>
<oilfider data="0,1,2,3,4,5,6,7,8,9"/>
<scandeep data="0,500,600,700,800,900"/>
<boostdura data="0,50,75,100,125,150,175"/>
<gundura data="0,25,25,25,25"/>
<bulletspeed data="0,10,20,30,40"/>
<levelObj level="0" data="0,0,0,0,0,0,0,0,0,0,0"/>
<levelObj level="1" data="0,0,0,0,3,4,5,0,0,1,0"/>
<levelObj level="2" data="1,0,0,0,6,8,10,0,0,1,1"/>
<levelObj level="3" data="2,1,0,0,9,12,15,0,0,1,0"/>
<levelObj level="4" data="3,2,0,0,12,16,20,2,0,1,1"/>
<levelObj level="5" data="4,3,1,0,15,20,25,4,0,1,0"/>
<levelObj level="6" data="5,4,2,0,15,20,25,6,1,1,1"/>
<levelObj level="7" data="6,5,3,2,15,20,25,6,2,1,0"/>
<levelObj level="8" data="7,6,4,4,15,20,25,6,3,1,1"/>
<levelObj level="9" data="8,7,5,6,15,20,25,6,3,1,0"/>
<levelObj level="10" data="9,8,6,8,15,20,25,6,3,1,1"/>
<towerM data="0,100,400,900,1600,2500,3600,4900,6400,8100"/>
<drillM data="0,120,480,1080,1920,3000,4320,5880,7680,9720"/>
<oilM data="0,90,360,810,1440,2250,3240,4410,5760,7290"/>
<boosterM data="0,300,1000,2100,3600,5500,7800"/>
<controlM data="0,100,400,900,1600,2500"/>
<scanM data="0,150,600,1350,2400,3750"/>
<gunM data="0,500,2000,4500,8000"/>
<deepfinish data="10000"/>
</gamebalance>
;
allxmltag = new Array("oreMoney", "consspeed", "drillfuel", "control", "oilfider", "scandeep", "boostdura", "gundura", "bulletspeed", "levelObj", "towerM", "boosterM", "controlM", "scanM", "oilM", "gunM", "drillM", "deepfinish");
tc = 0;
while (tc < allxmltag.length) {
if (!(game[allxmltag[tc]][0] is Array)){
str = gamexml[allxmltag[tc]][0].@data.split(",");
k = 0;
while (k < str.length) {
trace(("k=" + k));
game[allxmltag[tc]][k] = new Number(str[k]);
k++;
};
} else {
ttc = 0;
while (ttc < game[allxmltag[tc]].length) {
str = gamexml[allxmltag[tc]].(@level == ttc).@data.split(",");
l = 0;
while (l < str.length) {
trace(("l=" + l));
game[allxmltag[tc]][ttc][l] = new Number(str[l]);
l++;
};
ttc++;
};
};
tc++;
};
tc = 0;
while (tc < allxmltag.length) {
if (!(game[allxmltag[tc]][0] is Array)){
trace((((allxmltag[tc] + " = [") + game[allxmltag[tc]]) + "];"));
} else {
ttc = 0;
while (ttc < game[allxmltag[tc]].length) {
trace(((((allxmltag[tc] + ttc) + " = [") + game[allxmltag[tc]][ttc]) + "];"));
ttc++;
};
};
tc++;
};
dY = new Array(0, -75, -100, -115, -132, -143, -151, -165, -180, -208);
vfx_drillX = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
vfx_drillY = new Array(0, 15, 25, 30, 35, 40, 42, 42, 45, 45);
towerpic = new Array(0, m_base_Lv1, m_base_Lv2, m_base_Lv3, m_base_Lv4, m_base_Lv5, m_base_Lv6, m_base_Lv7, m_base_Lv8, m_base_Lv9);
towerid = 1;
drillpic = new Array(0, m_drill_Lv1, m_drill_Lv2, m_drill_Lv3, m_drill_Lv4, m_drill_Lv5, m_drill_Lv6, m_drill_Lv7, m_drill_Lv8, m_drill_Lv9);
drillid = 1;
controlid = 1;
scanpic = new Array(0, m_scanner, m_scanner_stone, m_scanner_ore);
scanid = 0;
boosterpic = new Array(0, m_bootster_Lv1, m_bootster_Lv2, m_bootster_Lv3, m_bootster_Lv4, m_bootster_Lv5, m_bootster_Lv6);
boosterid = 0;
bcooldown = new Array(0, 75, 65, 55, 45, 35, 25);
oilid = 0;
gunid = 0;
gunpic = new Array(0, m_gun_Lv1, m_gun_Lv2, m_gun_Lv3, m_gun_Lv4);
bulletpic = new Array(0, bullet_Lv1, bullet_Lv2, bullet_Lv3, bullet_Lv4);
g_root = game.parent;
gamelevel = 0;
player = null;
camlook = null;
startgame = false;
tower = null;
achgold = null;
score = 0;
money = 0;
backupspacex = 1;
backupspacey = -1;
movang = 0;
hitstone = false;
stonedie = 0;
objcount = 0;
oilcount = 0;
upall = false;
fuel = 1000;
fuelmax = 1000;
boosteruse = false;
speed = 40;
backspeed = null;
acc = 0.99;
gunp = null;
gunang = null;
dig = null;
playergun = null;
diecount = 0;
bootster = null;
scanner = false;
canshoot = true;
guncount = 0;
bcooldownmax = 0;
bcooldowncount = 0;
s_drill = new sfx_drill();
s_gun = new sfx_gun();
s_oil = new sfx_oil();
s_ore = new sfx_ore();
s_ribertium = new sfx_ribertium();
s_stone = new sfx_stone();
bgm_end = new bgm1();
bgm = new bgm2();
talk = new Array("Fail, fail again but fail better.", "Keep digging.", "Mofunzone.com wants YOU to dig for treasure!", "I can smell treasure under my feet.", "Do you like Thai food?", "For the horde!", "I’ll build bigger company with this treasure. Can you help me find it?", "Smoking isn’t good for your health, you know?", "Success is going from failure to failure with no loss of enthusiasm.", "The early bird gets the worm but the second mouse get the cheese!?", "I’ll give you a free dinner for this trouble.", "winRARRRR!!", "Time is treasure!", "Mofunzone.com is the best game site in the world!", "Deeeeper!", "I wish I can get a lot of money so I can ‘fix’ the world.", "Do you like rap music? Diggity Dig Yo!", "All I want to do is rock!", "MoFunZone.com gives free treasure!", "Hate cannot conquer hate you know?", "Every dig leads to treasure... right?", "I’m hungry. Can I ask for a day off?", "I miss my family. I have to dig my way to them!", "GOOOOLD", "Better late than never!", "How will I get back up!!", "Someday you’ll know why I need this treasure.", "Everything will flow.", "Chuck Norris is the reason why Waldo is hiding", "Play it cool!", "Don’t panic!", "Damn Birds!! I mean Rocks!", "You should really try a game named Ninjutsu on MoFunZone.com", "WIN WIN WIN!!!", "GO GO GO!!!", "Solution to all of life’s problems: Dig!", "Digging my way out of life!", "Dig, Dig, Dig your boat!", "Dig to win! Win to Dig!", "Chuck Norris diggs this game!", "Don’t worry, Dig happy!", "Dig, dig it goood!", "I think I’ll name myself Digman!", "I eat danger for breakfast, then I dig.", "Don’t support diamonds!", "Gold is the best currency!", "Mine your manners!", "When I mine, I get mine!", "Mo mines, do you?", "Did you ever get Rick Rolled?");
superclass.EventKBRelease = keyRelease;
superclass.EventKBPress = keyPress;
dashdirect = 0;
game.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
game.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
pass = false;
shake = 0;
framecount = 0;
deep = 0;
roundplay = 0;
modter = 0;
deeplevel = 0;
fg = 0;
finishgame = false;
fgcount = false;
ach_finish = false;
superclass.keyFrameStyleEnterFrame = function (_arg1){
var e = _arg1;
stage.focus = keyfocus;
if (gamepause){
return;
};
framecount++;
if (player.dodge != null){
if (player.dodge > 0){
player.dodge--;
player.visible = !(player.visible);
} else {
player.visible = true;
};
};
if (player != null){
ang = ((player.rotation + 360) % 360);
if ((((ang > 30)) && ((ang < 180)))){
player.rotation = 30;
};
if ((((ang < 330)) && ((ang > 180)))){
player.rotation = 330;
};
};
deep = int((player.y / 10));
if ((((deep > deepfinish)) && ((fg == 0)))){
finishgame = true;
cam.focusobject = null;
fgcount = true;
trace("_______________ End Game ________________");
};
if (fgcount == true){
fg = 30;
fgcount = false;
};
if (diecount > 0){
diecount--;
if (diecount == 1){
game.parent.findeep = deep;
game.parent.finscore = score;
if (finishgame == true){
fuel = 0;
speed = 0;
roundplay = (roundplay + 1);
so = SharedObject.getLocal("MO");
so.data["so_roundplay"] = roundplay;
so.data["so_money"] = money;
so.data["so_score"] = score;
so.data["so_stonedie"] = stonedie;
so.data["so_achgold"] = achgold;
so.data["so_upall"] = upall;
so.flush();
so.close();
if (ach_finish != true){
try {
} catch(e) {
trace(e);
};
if (roundplay <= 10){
try {
} catch(e) {
};
};
ach_finish = true;
};
gamepause = true;
freeSystemListener();
game.parent.mreach.visible = true;
game.parent.mreach.gotoAndPlay(2);
return;
};
if (finishgame != true){
roundplay = (roundplay + 1);
so = SharedObject.getLocal("MO");
so.data["so_roundplay"] = roundplay;
so.data["so_money"] = money;
so.data["so_score"] = score;
so.data["so_stonedie"] = stonedie;
so.data["so_achgold"] = achgold;
so.data["so_upall"] = upall;
so.flush();
so.close();
gamepause = true;
freeSystemListener();
trace("____ dd d ");
if (game.parent.m_reach2 != null){
game.parent.m_reach2.visible = true;
game.parent.m_reach2.gotoAndPlay(2);
};
if (game.parent.m_die != null){
game.parent.m_die.visible = true;
game.parent.m_die.gotoAndPlay(2);
};
return;
};
};
};
if (guncount > 0){
guncount--;
};
if (guncount == 0){
canshoot = true;
};
i = 0;
while (i < world.item_layer.numChildren) {
thisitem = world.item_layer.getChildAt(i);
if ((player.y - 600) > thisitem.y){
destroy(thisitem);
};
i++;
};
deeplevel = (int((deep / 1000)) + 1);
if (deeplevel > 10){
deeplevel = 10;
};
modter = deeplevel;
if (deep >= 0){
if (objcount < 30){
if ((deep % modter) == 0){
o = 0;
while (o < 11) {
if ((Math.random() * 100) <= levelObj[deeplevel][o]){
var _local3 = createObj;
_local3[o]();
};
o++;
};
if (oilid > 0){
if ((Math.random() * 100) <= oilfider[oilid]){
_local3 = createObj;
_local3[9]();
};
};
};
};
};
if (shake > 0){
shake--;
game.x = (Math.random() * shake);
game.y = (Math.random() * shake);
} else {
game.x = 0;
game.y = 0;
};
game.parent.deeprep.text = deep;
game.parent.moneyrep.text = money;
game.parent.scorerep.text = score;
game.parent.fuelgage.gotoAndStop(int(((fuel / fuelmax) * 100)));
MapHelper.DrawSectionMap(cam, {width:1260, height:1260});
};
stop();
}
public function stone1(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_stone1();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.nickname = "stone";
_local1.hp = 2;
_local1.scanid = 2;
_local1.process = objectHitPlayer;
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function stone2(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_stone2();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.nickname = "stone";
_local1.hp = 2;
_local1.scanid = 2;
_local1.process = objectHitPlayer;
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function stone3(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_stone3();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.nickname = "stone";
_local1.hp = 5;
_local1.shake = 13;
_local1.scanid = 2;
_local1.process = objectHitPlayer;
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function stone4(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_stone4();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.nickname = "stone";
_local1.hp = 5;
_local1.shake = 17;
_local1.scanid = 2;
_local1.process = objectHitPlayer;
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function createGameStage(){
superclass.worldlist.push({layername:"bg_layer", movieclip:null});
superclass.worldlist.push({layername:"footprint_layer", movieclip:null});
superclass.worldlist.push({layername:"sky_layer", movieclip:"msky"});
superclass.worldlist.push({layername:"tower_layer", movieclip:null});
superclass.worldlist.push({layername:"vfxplayer_layer", movieclip:null});
superclass.worldlist.push({layername:"player_layer", movieclip:null});
superclass.worldlist.push({layername:"playergun_layer", movieclip:null});
superclass.worldlist.push({layername:"scanner_layer", movieclip:null});
superclass.worldlist.push({layername:"item_layer", movieclip:null});
superclass.worldlist.push({layername:"bullet_layer", movieclip:null});
superclass.processlist.push("player_layer", "playergun_layer");
superclass.processlist.push("bullet_layer");
superclass.processlist.push("item_layer", "scanner_layer");
superclass.processfn.push("process", "processdura");
superclass.processfn.push("control");
superclass.gamewidth = 480;
superclass.gameheight = 640;
superclass.cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:null};
gamepause = false;
}
public function keyRelease(_arg1:Number){
}
public function stoneHit(_arg1:MovieClip){
if (player.dodge == null){
player.dodge = 0;
};
if (player.dodge <= 0){
if (_arg1.shake != null){
shake = _arg1.shake;
} else {
shake = 10;
};
_arg1.hp = (_arg1.hp - 1);
player.dodge = 10;
};
if (_arg1.hp <= 0){
stoneDie(_arg1);
destroy(_arg1);
};
}
public function startDrill(){
player.gotoAndPlay("walk");
player.lance = true;
s_drill.play(1, 100000);
dig = new vfx_drill();
dig.x = vfx_drillX[drillid];
dig.y = vfx_drillY[drillid];
playergun.addChild(dig);
if (camlook != null){
cam.focusobject = camlook;
};
}
public function keyPress(_arg1:Number){
if (gamepause == true){
return;
};
if (_arg1 == 13){
if (startgame == false){
tower.mo.gotoAndPlay(2);
tower.mo.des.text = talk[int((Math.random() * 50))];
startgame = true;
};
};
if (_arg1 == 80){
gamepause = true;
game.parent.mpause.visible = true;
};
if (_arg1 == 40){
if ((((boosteruse == false)) && ((diecount <= 0)))){
if ((((boosterid > 0)) && ((bcooldowncount <= 0)))){
speed = 42;
player.speedup = boostdura[boosterid];
if (bootster != null){
bootster.gotoAndPlay("walk");
};
boosteruse = true;
trace(("Booster on" + fuel));
};
};
};
}
public function levelUp(){
var so:*;
if (g_root.con){
trace(("game continue " + g_root.con));
so = SharedObject.getLocal("MO");
if (so.data != null){
stonedie = so.data["so_stonedie"];
scanner = so.data["scanner"];
achgold = so.data["so_achgold"];
upall = so.data["so_upall"];
trace("*************** ");
};
};
diecount = 0;
gunp = null;
if (superclass.world != null){
superclass.game.removeChild(world);
superclass.world = null;
};
createWorld();
startgame = false;
tower = new (towerpic[towerid]);
tower.x = 240;
tower.y = -2;
tower.mo.stop();
world.tower_layer.addChild(tower);
superclass.cam = {x:240, y:-300, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:null};
player = new (drillpic[drillid]);
player.x = 240;
player.y = dY[towerid];
player.lance = false;
player.speedup = 0;
world.player_layer.addChild(player);
player.process = playerdig;
player.control = keyProcess;
camlook = new MovieClip();
world.player_layer.addChild(camlook);
camlook.process = function (_arg1){
_arg1.x = player.x;
_arg1.y = (player.y + 120);
};
cam.focusobject = player;
playergun = new MovieClip();
world.playergun_layer.addChild(playergun);
playergun.process = function (_arg1){
var _local2:*;
_arg1.x = player.x;
_arg1.y = player.y;
_arg1.rotation = player.rotation;
if (gunid > 0){
_local2 = API.findAngle(player, new Point(world.mouseX, world.mouseY));
gunp.rotation = ((_local2 - _arg1.rotation) - 90);
};
if (boosterid > 0){
bootster.boost_gage.gotoAndStop(1);
if (boosteruse == true){
bootster.boost_gage.gotoAndStop(int(Math.abs((((player.speedup / boostdura[boosterid]) * 100) - 101))));
};
};
};
trace(("gunid : " + gunid));
if (gunid > 0){
gunp = new (gunpic[gunid]);
gunp.x = 0;
gunp.y = -10;
playergun.addChild(gunp);
};
trace(("boosterid " + boosterid));
if (boosterid > 0){
bootster = new (boosterpic[boosterid]);
bootster.x = 0;
bootster.y = -45;
playergun.addChild(bootster);
};
trace(("___ upall " + upall));
if (upall != true){
trace(gunid, drillid, controlid, scanid, boosterid, gunid, oilid);
if ((((((((((((((towerid == 9)) && ((drillid == 9)))) && ((controlid == 5)))) && ((scanid == 5)))) && ((boosterid == 6)))) && ((gunid == 4)))) && ((oilid == 9)))){
try {
} catch(e) {
};
upall = true;
};
};
SoundMixer.stopAll();
bgm.play(1, 100000);
MapHelper.CreateSectionMap(world.bg_layer, "???", "???", "???", "????", 480);
}
public function createScanner(_arg1){
var _local2:MovieClip;
_local2 = new (scanpic[_arg1.scanid]);
world.scanner_layer.addChild(_local2);
_arg1.scanner = _local2;
_local2.obj = _arg1;
_local2.process = iscanner;
}
public function iscanner(_arg1){
var _local2:*;
var _local3:*;
if (_arg1.obj.parent == null){
world.scanner_layer.removeChild(_arg1);
};
if (_arg1.parent != null){
_local2 = _arg1.obj.x;
_local3 = (cam.y + 600);
_arg1.rotation = (API.findAngle(player, _arg1.obj) - 90);
if (_arg1.obj.y < (cam.y + 600)){
_local2 = _arg1.obj.x;
_local3 = (_arg1.obj.y - 20);
_arg1.rotation = 0;
};
_arg1.x = _local2;
_arg1.y = _local3;
if ((_arg1.obj.y - player.y) > scandeep[scanid]){
_arg1.visible = false;
} else {
_arg1.visible = true;
};
};
}
public function ore1(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ore1();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 5000)) - 2500);
_local1.money = oreMoney[1];
_local1.process = objectHitPlayer;
_local1.stop();
_local1.scanid = 3;
_local1.name = "ore";
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function ore2(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ore2();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.money = oreMoney[2];
_local1.process = objectHitPlayer;
_local1.stop();
_local1.scanid = 3;
_local1.name = "ore";
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function ore3(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ore3();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.money = oreMoney[3];
_local1.process = objectHitPlayer;
_local1.stop();
_local1.scanid = 3;
_local1.name = "ore";
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function ore4(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ore4();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.money = oreMoney[4];
_local1.process = objectHitPlayer;
_local1.stop();
_local1.scanid = 3;
_local1.name = "ore";
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function ore5(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ore5();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.money = oreMoney[5];
_local1.process = objectHitPlayer;
_local1.stop();
_local1.scanid = 3;
_local1.name = "ore";
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function oil(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_fuel();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.revfuel = 1;
_local1.scanid = 1;
_local1.name = "oil";
_local1.process = objectHitPlayer;
_local1.gotoAndPlay("stand");
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function stoneDie(_arg1:MovieClip){
var obj = _arg1;
if (obj.nickname == "stone"){
if (backspeed != null){
speed = backspeed;
};
s_stone.play();
backspeed = null;
hitstone = false;
stonedie = (stonedie + 1);
if (stonedie == 50){
trace("achievement rocking_the_rock");
try {
} catch(e) {
};
};
trace(("S T O N E count : " + stonedie));
};
}
public function shootBullet(){
var bullet:*;
var p:*;
var mot:*;
if (gunp != null){
gunp.gotoAndPlay("attack");
};
bullet = new (bulletpic[gunid]);
bullet.x = player.x;
bullet.y = player.y;
world.bullet_layer.addChild(bullet);
p = new Point(world.player_layer.mouseX, world.player_layer.mouseY);
gunang = API.findAngle(bullet, p);
s_gun.play();
mot = new AngleMove(bullet, gunang, bulletspeed[gunid]);
API.setMotion(bullet, mot);
bullet.dura = 100;
bullet.process = bulletHit;
bullet.processdura = function (_arg1){
if (_arg1.dura == null){
_arg1.dura = 100;
};
_arg1.dura--;
if (_arg1.dura == 0){
destroy(_arg1);
_arg1.processdura = null;
};
};
}
public function playerdig(_arg1){
var _local2:*;
if (!_arg1.lance){
return;
};
_local2 = new holdmark();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
_local2.rotation = (Math.random() * 360);
world.footprint_layer.addChild(_local2);
movang = (_arg1.rotation + 90);
_arg1.x = (_arg1.x + (speed * Math.cos(((movang * Math.PI) / 180))));
_arg1.y = (_arg1.y + (speed * Math.sin(((movang * Math.PI) / 180))));
if ((((speed <= 1)) && ((fuel == 0)))){
speed = 0;
diecount = 50;
SoundMixer.stopAll();
bgm_end.play();
_arg1.gotoAndStop("stand");
dig.gotoAndPlay("die");
_arg1.process = null;
};
if (fg > 0){
fg--;
trace(("fg " + fg));
if (fg == 1){
speed = 0;
fuel = 0;
diecount = 5;
SoundMixer.stopAll();
bgm_end.play();
_arg1.gotoAndStop("stand");
dig.gotoAndPlay("die");
_arg1.process = null;
};
};
if (fuel > 0){
if (_arg1.speedup > 0){
_arg1.speedup--;
} else {
if (_arg1.speedup <= 0){
speed = (speed * acc);
if (bootster != null){
bootster.gotoAndStop("stand");
};
fuel = (fuel - (drillfuel[drillid] / 2));
};
};
if ((((speed < consspeed[towerid])) && ((hitstone == false)))){
speed = consspeed[towerid];
};
};
if (fuel <= 0){
if (_arg1.speedup > 0){
_arg1.speedup--;
} else {
if (_arg1.speedup <= 0){
speed = (speed * acc);
if (bootster != null){
bootster.gotoAndStop("stand");
};
};
};
fuel = 0;
speed = (speed * acc);
};
}
public function mouseUp(_arg1:MouseEvent){
releaseFocus();
if ((((diecount == 0)) && ((gunid > 0)))){
if (canshoot == true){
shootBullet();
canshoot = false;
guncount = gundura[gunid];
};
};
}
public function ribertium(){
var _local1:*;
objcount = (objcount + 1);
_local1 = new m_ribertiom();
_local1.y = ((player.y + (Math.random() * 200)) + 1600);
_local1.x = ((player.x + (Math.random() * 600)) - 200);
_local1.revfuel = 2;
_local1.scanid = 1;
_local1.name = "ribertium";
_local1.process = objectHitPlayer;
_local1.gotoAndPlay("stand");
world.item_layer.addChild(_local1);
if (scanner){
createScanner(_local1);
};
}
public function mouseDown(_arg1:MouseEvent){
releaseFocus();
}
public function keyProcess(_arg1:MovieClip){
if (key[37]){
player.rotation = (player.rotation + control[controlid]);
};
if (key[39]){
player.rotation = (player.rotation - control[controlid]);
};
}
public function bulletHit(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < world.item_layer.numChildren) {
_local3 = world.item_layer.getChildAt(_local2);
if (_arg1.hitTestObject(_local3)){
if (_local3.nickname != "stone"){
itemHit(_local3);
};
if (_local3.nickname == "stone"){
stoneDie(_local3);
};
destroy(_arg1);
destroy(_local3);
};
_local2++;
};
}
public function itemHit(_arg1:MovieClip){
if (_arg1.money != null){
money = (money + _arg1.money);
score = (score + int((_arg1.money * (100 / (100 + roundplay)))));
if (achgold == null){
if (money >= 100){
trace("Achievement : Gold Farmer");
achgold = true;
};
};
};
if (_arg1.revfuel != null){
fuel = (fuel + ((fuelmax * (int((Math.random() * (15 * _arg1.revfuel))) + (10 * _arg1.revfuel))) / 100));
if (fuel > fuelmax){
fuel = fuelmax;
};
};
if (_arg1.name == "ore"){
s_ore.play();
} else {
if (_arg1.name == "oil"){
s_oil.play();
oilcount = (oilcount + 1);
if (oilcount == 100){
trace("Achievement : The Middle East");
};
} else {
if (_arg1.name == "ribertium"){
s_ribertium.play();
};
};
};
}
public function objectHitPlayer(_arg1:MovieClip){
if (_arg1.hitTestObject(player.hit)){
if (_arg1.nickname == "stone"){
if (backspeed == null){
backspeed = speed;
};
hitstone = true;
speed = 0;
stoneHit(_arg1);
} else {
destroy(_arg1);
itemHit(_arg1);
};
};
}
public function destroy(_arg1:MovieClip){
if (_arg1.die != null){
return;
};
if (_arg1.scanid != null){
objcount--;
};
_arg1.die = true;
_arg1.process = null;
if (_arg1.dieframe != null){
if (_arg1.currentLabel != _arg1.dieframe){
_arg1.gotoAndPlay(_arg1.dieframe);
};
} else {
if (_arg1.currentLabel != "die"){
_arg1.gotoAndPlay("die");
};
};
}
}
}//package
Section 50
//hittemp (hittemp)
package {
import flash.display.*;
public dynamic class hittemp extends MovieClip {
}
}//package
Section 51
//holdmark (holdmark)
package {
import flash.display.*;
public dynamic class holdmark extends MovieClip {
public function holdmark(){
addFrameScript(200, frame201);
}
function frame201(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 52
//m_base_Lv1 (m_base_Lv1)
package {
import flash.display.*;
public dynamic class m_base_Lv1 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 53
//m_base_Lv2 (m_base_Lv2)
package {
import flash.display.*;
public dynamic class m_base_Lv2 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 54
//m_base_Lv3 (m_base_Lv3)
package {
import flash.display.*;
public dynamic class m_base_Lv3 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 55
//m_base_Lv4 (m_base_Lv4)
package {
import flash.display.*;
public dynamic class m_base_Lv4 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 56
//m_base_Lv5 (m_base_Lv5)
package {
import flash.display.*;
public dynamic class m_base_Lv5 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 57
//m_base_Lv6 (m_base_Lv6)
package {
import flash.display.*;
public dynamic class m_base_Lv6 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 58
//m_base_Lv7 (m_base_Lv7)
package {
import flash.display.*;
public dynamic class m_base_Lv7 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 59
//m_base_Lv8 (m_base_Lv8)
package {
import flash.display.*;
public dynamic class m_base_Lv8 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 60
//m_base_Lv9 (m_base_Lv9)
package {
import flash.display.*;
public dynamic class m_base_Lv9 extends MovieClip {
public var mo:MovieClip;
}
}//package
Section 61
//m_bootster_Lv1 (m_bootster_Lv1)
package {
import flash.display.*;
public dynamic class m_bootster_Lv1 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv1(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndStop("stand");
}
}
}//package
Section 62
//m_bootster_Lv2 (m_bootster_Lv2)
package {
import flash.display.*;
public dynamic class m_bootster_Lv2 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv2(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 63
//m_bootster_Lv3 (m_bootster_Lv3)
package {
import flash.display.*;
public dynamic class m_bootster_Lv3 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv3(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 64
//m_bootster_Lv4 (m_bootster_Lv4)
package {
import flash.display.*;
public dynamic class m_bootster_Lv4 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv4(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 65
//m_bootster_Lv5 (m_bootster_Lv5)
package {
import flash.display.*;
public dynamic class m_bootster_Lv5 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv5(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 66
//m_bootster_Lv6 (m_bootster_Lv6)
package {
import flash.display.*;
public dynamic class m_bootster_Lv6 extends MovieClip {
public var boost_gage:MovieClip;
public function m_bootster_Lv6(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 67
//m_drill_Lv1 (m_drill_Lv1)
package {
import flash.display.*;
public dynamic class m_drill_Lv1 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv1(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 68
//m_drill_Lv2 (m_drill_Lv2)
package {
import flash.display.*;
public dynamic class m_drill_Lv2 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv2(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 69
//m_drill_Lv3 (m_drill_Lv3)
package {
import flash.display.*;
public dynamic class m_drill_Lv3 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv3(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 70
//m_drill_Lv4 (m_drill_Lv4)
package {
import flash.display.*;
public dynamic class m_drill_Lv4 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv4(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 71
//m_drill_Lv5 (m_drill_Lv5)
package {
import flash.display.*;
public dynamic class m_drill_Lv5 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv5(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 72
//m_drill_Lv6 (m_drill_Lv6)
package {
import flash.display.*;
public dynamic class m_drill_Lv6 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv6(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 73
//m_drill_Lv7 (m_drill_Lv7)
package {
import flash.display.*;
public dynamic class m_drill_Lv7 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv7(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 74
//m_drill_Lv8 (m_drill_Lv8)
package {
import flash.display.*;
public dynamic class m_drill_Lv8 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv8(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 75
//m_drill_Lv9 (m_drill_Lv9)
package {
import flash.display.*;
public dynamic class m_drill_Lv9 extends MovieClip {
public var hit:MovieClip;
public function m_drill_Lv9(){
addFrameScript(8, frame9, 13, frame14);
}
function frame14(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 76
//m_fuel (m_fuel)
package {
import flash.display.*;
public dynamic class m_fuel extends MovieClip {
public function m_fuel(){
addFrameScript(8, frame9, 24, frame25);
}
function frame25(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 77
//m_gun_Lv1 (m_gun_Lv1)
package {
import flash.display.*;
public dynamic class m_gun_Lv1 extends MovieClip {
public function m_gun_Lv1(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 78
//m_gun_Lv2 (m_gun_Lv2)
package {
import flash.display.*;
public dynamic class m_gun_Lv2 extends MovieClip {
public function m_gun_Lv2(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 79
//m_gun_Lv3 (m_gun_Lv3)
package {
import flash.display.*;
public dynamic class m_gun_Lv3 extends MovieClip {
public function m_gun_Lv3(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 80
//m_gun_Lv4 (m_gun_Lv4)
package {
import flash.display.*;
public dynamic class m_gun_Lv4 extends MovieClip {
public function m_gun_Lv4(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 81
//m_ore1 (m_ore1)
package {
import flash.display.*;
public dynamic class m_ore1 extends MovieClip {
public function m_ore1(){
addFrameScript(21, frame22, 37, frame38);
}
function frame22(){
gotoAndPlay("stand");
}
function frame38(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 82
//m_ore2 (m_ore2)
package {
import flash.display.*;
public dynamic class m_ore2 extends MovieClip {
public function m_ore2(){
addFrameScript(20, frame21, 36, frame37);
}
function frame21(){
gotoAndPlay("stand");
}
function frame37(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 83
//m_ore3 (m_ore3)
package {
import flash.display.*;
public dynamic class m_ore3 extends MovieClip {
public function m_ore3(){
addFrameScript(21, frame22, 37, frame38);
}
function frame22(){
gotoAndPlay("stand");
}
function frame38(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 84
//m_ore4 (m_ore4)
package {
import flash.display.*;
public dynamic class m_ore4 extends MovieClip {
public function m_ore4(){
addFrameScript(21, frame22, 37, frame38);
}
function frame22(){
gotoAndPlay("stand");
}
function frame38(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 85
//m_ore5 (m_ore5)
package {
import flash.display.*;
public dynamic class m_ore5 extends MovieClip {
public function m_ore5(){
addFrameScript(21, frame22, 37, frame38);
}
function frame22(){
gotoAndPlay("stand");
}
function frame38(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 86
//m_ribertiom (m_ribertiom)
package {
import flash.display.*;
public dynamic class m_ribertiom extends MovieClip {
public function m_ribertiom(){
addFrameScript(18, frame19, 35, frame36);
}
function frame19(){
gotoAndPlay("stand");
}
function frame36(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 87
//m_scanner (m_scanner)
package {
import flash.display.*;
public dynamic class m_scanner extends MovieClip {
public function m_scanner(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package
Section 88
//m_scanner_ore (m_scanner_ore)
package {
import flash.display.*;
public dynamic class m_scanner_ore extends MovieClip {
public function m_scanner_ore(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package
Section 89
//m_scanner_stone (m_scanner_stone)
package {
import flash.display.*;
public dynamic class m_scanner_stone extends MovieClip {
public function m_scanner_stone(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package
Section 90
//m_stone1 (m_stone1)
package {
import flash.display.*;
public dynamic class m_stone1 extends MovieClip {
public function m_stone1(){
addFrameScript(8, frame9, 17, frame18);
}
function frame18(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 91
//m_stone2 (m_stone2)
package {
import flash.display.*;
public dynamic class m_stone2 extends MovieClip {
public function m_stone2(){
addFrameScript(8, frame9, 18, frame19);
}
function frame19(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 92
//m_stone3 (m_stone3)
package {
import flash.display.*;
public dynamic class m_stone3 extends MovieClip {
public function m_stone3(){
addFrameScript(8, frame9, 18, frame19);
}
function frame19(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 93
//m_stone4 (m_stone4)
package {
import flash.display.*;
public dynamic class m_stone4 extends MovieClip {
public function m_stone4(){
addFrameScript(8, frame9, 18, frame19);
}
function frame19(){
stop();
if (MovieClip(this.parent) != null){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 94
//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 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 95
//msky (msky)
package {
import flash.display.*;
public dynamic class msky extends MovieClip {
}
}//package
Section 96
//sfx_drill (sfx_drill)
package {
import flash.media.*;
public dynamic class sfx_drill extends Sound {
}
}//package
Section 97
//sfx_gun (sfx_gun)
package {
import flash.media.*;
public dynamic class sfx_gun extends Sound {
}
}//package
Section 98
//sfx_oil (sfx_oil)
package {
import flash.media.*;
public dynamic class sfx_oil extends Sound {
}
}//package
Section 99
//sfx_ore (sfx_ore)
package {
import flash.media.*;
public dynamic class sfx_ore extends Sound {
}
}//package
Section 100
//sfx_ribertium (sfx_ribertium)
package {
import flash.media.*;
public dynamic class sfx_ribertium extends Sound {
}
}//package
Section 101
//sfx_stone (sfx_stone)
package {
import flash.media.*;
public dynamic class sfx_stone extends Sound {
}
}//package
Section 102
//tileerror (tileerror)
package {
import flash.display.*;
public dynamic class tileerror extends MovieClip {
public function tileerror(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 103
//tileerrorbak (tileerrorbak)
package {
import flash.display.*;
public dynamic class tileerrorbak extends MovieClip {
}
}//package
Section 104
//tileerrorindex (tileerrorindex)
package {
import flash.display.*;
public dynamic class tileerrorindex extends BitmapData {
public function tileerrorindex(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 105
//vfx_drill (vfx_drill)
package {
import flash.display.*;
public dynamic class vfx_drill extends MovieClip {
public function vfx_drill(){
addFrameScript(36, frame37, 41, frame42);
}
function frame37(){
gotoAndPlay("stand");
}
function frame42(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package